diff --git a/.github/workflows/release-stack.yml b/.github/workflows/release-stack.yml deleted file mode 100644 index 5f0f1470fa..0000000000 --- a/.github/workflows/release-stack.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Stack - Release -on: - push: - tags: - - 'releases/v*.*.*' -permissions: - contents: write - -jobs: - upload: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/releases/*/}" | cut -f1,2 -d'.' >> $GITHUB_ENV - - name: Release - uses: softprops/action-gh-release@v1 - with: - files: | - ./releases/versions/${{ env.RELEASE_VERSION }}/main.yaml - ./releases/versions/${{ env.RELEASE_VERSION }}/openapi.json \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index a25997fa31..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Default - Release -on: - push: - tags: - - 'components/*/v*.*.*' - - 'ee/*/v*.*.*' - -jobs: - Extract: - name: Extract - runs-on: "formance-runner" - outputs: - type: ${{ steps.extract3.outputs.type }} - service: ${{ steps.extract.outputs.service }} - version: ${{ steps.extract2.outputs.version }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 16 - - name: Extract service name - id: extract - run: echo "service=$(node .github/actions/extract-in-tag/service.js ${{ github.ref_name }})" >> $GITHUB_OUTPUT - - name: Extract version name - id: extract2 - run: echo "version=$(node .github/actions/extract-in-tag/version.js ${{ github.ref_name }})" >> $GITHUB_OUTPUT - - name: Extract type name - id: extract3 - run: echo "type=$(node .github/actions/extract-in-tag/type.js ${{ github.ref_name }})" >> $GITHUB_OUTPUT - - Release: - runs-on: "formance-runner" - needs: - - Extract - steps: - - uses: 'actions/checkout@v4' - with: - fetch-depth: 0 - - name: Setup Env - uses: ./.github/actions/env - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: "NumaryBot" - password: ${{ secrets.NUMARY_GITHUB_TOKEN }} - - run: > - earthly - --no-output - --allow-privileged - --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY - --secret SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY - --secret GITHUB_TOKEN=$GITHUB_TOKEN - --secret FURY_TOKEN=$FURY_TOKEN - --secret GORELEASER_KEY=$GORELEASER_KEY - ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }} - +goreleaser --mode=release --type=${{ needs.Extract.outputs.type }} --components=${{ needs.Extract.outputs.service }} - env: - GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }} - SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }} - FURY_TOKEN: ${{ secrets.FURY_TOKEN }} - GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} - SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_OSS }} \ No newline at end of file diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml new file mode 100644 index 0000000000..8635911e2f --- /dev/null +++ b/.github/workflows/releases.yml @@ -0,0 +1,97 @@ +name: Release +on: + push: + tags: + - 'v*.*.*' +permissions: + contents: write + +jobs: + Dirty: + runs-on: "formance-runner" + steps: + - uses: 'actions/checkout@v4' + with: + fetch-depth: 0 + - name: Setup Env + uses: ./.github/actions/env + - run: > + earthly + --allow-privileged + --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY + --secret GITHUB_TOKEN=$GITHUB_TOKEN + ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }} + +pre-commit + env: + GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }} + SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }} + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v40 + with: + since_last_remote_commit: true + - name: Run step if test file(s) change + if: steps.changed-files.outputs.all_changed_files == 'true' + run: | + echo "One or more test file(s) has changed." + echo "List all the files that have changed: ${{ steps.changed-files.outputs.all_changed_files }}" + exit 1 + + Extract: + name: Extract + runs-on: "ubuntu-latest" + outputs: + components: ${{ steps.extract.outputs.components }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Extract service name + id: extract + run: echo "components=$(node .github/actions/find-directory/index.js)" >> $GITHUB_OUTPUT + + GoReleaser: + runs-on: "ubuntu-latest" + if: contains(github.event.pull_request.labels.*.name, 'build-images') || github.ref == 'refs/heads/main' + needs: + - Extract + - Dirty + strategy: + matrix: + components: ${{ fromJson(needs.Extract.outputs.components) }} + steps: + - uses: earthly/actions-setup@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + version: "latest" + - uses: 'actions/checkout@v4' + with: + fetch-depth: 0 + - name: Setup Env + uses: ./.github/actions/env + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: "NumaryBot" + password: ${{ secrets.NUMARY_GITHUB_TOKEN }} + - run: > + earthly + --no-output + --allow-privileged + --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY + --secret SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY + --secret GITHUB_TOKEN=$GITHUB_TOKEN + --secret FURY_TOKEN=$FURY_TOKEN + --secret GORELEASER_KEY=$GORELEASER_KEY + ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }} + +goreleaser --type=${{ matrix.components.type }} --components=${{ matrix.components.component }} --mode=ci + env: + GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }} + SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }} + FURY_TOKEN: ${{ secrets.FURY_TOKEN }} + SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_OSS }} + GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 57d9c2d894..43c015a5a2 100644 --- a/.gitignore +++ b/.gitignore @@ -29,11 +29,8 @@ worktrees # Earthly .tmp-earthly-out - -# Ignore SDKS -sdks .DS_Store openapi/node_modules -releases/sdks + .kubeconfig \ No newline at end of file diff --git a/Earthfile b/Earthfile index af9187a534..e9973d8a5c 100644 --- a/Earthfile +++ b/Earthfile @@ -20,10 +20,11 @@ speakeasy: SAVE ARTIFACT speakeasy build-final-spec: + ARG version=INTERNAL FROM core+base-image RUN apk update && apk add yarn nodejs npm jq - WORKDIR /src/libs/clients - COPY libs/clients/package.* . + WORKDIR /src/releases + COPY releases/package.* . RUN npm install WORKDIR /src/components FOR c IN payments ledger @@ -34,30 +35,21 @@ build-final-spec: COPY (./ee/$c+openapi/openapi.yaml) /src/ee/$c/ END - WORKDIR /src/libs/clients - COPY libs/clients/base.yaml . - COPY libs/clients/openapi-overlay.json . - COPY libs/clients/openapi-merge.json . + WORKDIR /src/releases + COPY releases/base.yaml . + COPY releases/openapi-overlay.json . + COPY releases/openapi-merge.json . RUN mkdir ./build RUN npm run build - RUN jq -s '.[0] * .[1]' build/generate.json openapi-overlay.json > build/final.json - RUN sed -i 's/SDK_VERSION/INTERNAL/g' build/final.json - SAVE ARTIFACT build/final.json AS LOCAL libs/clients/build/generate.json - -build-sdk: - BUILD --pass-args +build-final-spec # Force output of the final spec - FROM core+base-image - WORKDIR /src - RUN apk update && apk add yq - COPY (+speakeasy/speakeasy) /bin/speakeasy - COPY (+build-final-spec/final.json) final-spec.json - COPY --dir libs/clients/go ./sdks/go - IF [ "SPEAKEASY_API_KEY" != "" ] - RUN --secret SPEAKEASY_API_KEY speakeasy generate sdk -s ./final-spec.json -o ./sdks/go -l go + RUN jq -s '.[0] * .[1]' build/generate.json openapi-overlay.json > build/latest.json + IF [ "$version" = "INTERNAL" ] + RUN sed -i 's/SDK_VERSION/INTERNAL/g' build/latest.json + SAVE ARTIFACT build/latest.json AS LOCAL releases/build/latest.json + ELSE + RUN sed -i 's/SDK_VERSION/'$version'/g' build/latest.json + SAVE ARTIFACT build/latest.json AS LOCAL releases/build/$version.json END - RUN rm -rf ./libs/clients/go - SAVE ARTIFACT sdks/go AS LOCAL ./libs/clients/go - SAVE ARTIFACT sdks/go + SAVE ARTIFACT build/latest.json openapi: FROM core+base-image @@ -77,7 +69,6 @@ goreleaser: ARG --required components ARG --required type COPY . /src - COPY (+build-sdk/go --LANG=go) /src/libs/clients/go WORKDIR /src/$type/$components ARG mode=local LET buildArgs = --clean @@ -149,7 +140,7 @@ tests-integration: pre-commit: # Generate the final spec and run all the pre-commit hooks LOCALLY - BUILD --pass-args +build-sdk + BUILD --pass-args ./releases+sdk-generate FOR component IN $(cd ./components && ls -d */) BUILD --pass-args ./components/${component}+pre-commit END diff --git a/components/fctl/Earthfile b/components/fctl/Earthfile index 627a3b8e86..30d26ce949 100644 --- a/components/fctl/Earthfile +++ b/components/fctl/Earthfile @@ -3,6 +3,7 @@ VERSION --pass-args --arg-scope-and-set 0.7 ARG core=github.com/formancehq/earthly:v0.6.0 IMPORT $core AS core IMPORT ../.. AS stack +IMPORT ../../releases AS releases IMPORT .. AS components FROM core+base-image @@ -18,7 +19,7 @@ tests: sources: WORKDIR src - COPY --pass-args (stack+build-sdk/go) libs/clients/go + COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go DO stack+INCLUDE_GO_LIBS --LOCATION libs/go-libs WORKDIR /src/components/fctl COPY go.* . diff --git a/components/fctl/go.mod b/components/fctl/go.mod index 6d8dd6dd2f..d10add3f69 100644 --- a/components/fctl/go.mod +++ b/components/fctl/go.mod @@ -82,4 +82,4 @@ replace github.com/formancehq/fctl/membershipclient => ./membershipclient replace github.com/spf13/cobra v1.6.1 => github.com/formancehq/cobra v0.0.0-20221112160629-60a6d6d55ef9 -replace github.com/formancehq/formance-sdk-go => ../../libs/clients/go +replace github.com/formancehq/formance-sdk-go => ../../releases/sdks/go diff --git a/components/ledger/.goreleaser.yml b/components/ledger/.goreleaser.yml index 4e18acdaad..0b8961a85a 100644 --- a/components/ledger/.goreleaser.yml +++ b/components/ledger/.goreleaser.yml @@ -1,6 +1,6 @@ project_name: ledger monorepo: - tag_prefix: components/ledger/ + tag_prefix: v dir: ./ includes: diff --git a/components/operator/.goreleaser.yml b/components/operator/.goreleaser.yml index 9c160b38e1..c1171328ce 100644 --- a/components/operator/.goreleaser.yml +++ b/components/operator/.goreleaser.yml @@ -4,7 +4,7 @@ includes: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: components/operator/ + tag_prefix: v dir: ./ builds: diff --git a/components/payments/.goreleaser.yml b/components/payments/.goreleaser.yml index f8e3edce6f..4a2ceb1bda 100644 --- a/components/payments/.goreleaser.yml +++ b/components/payments/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: components/payments/ + tag_prefix: v dir: ./ builds: diff --git a/components/payments/Earthfile b/components/payments/Earthfile index 9486053b41..3da30dc333 100644 --- a/components/payments/Earthfile +++ b/components/payments/Earthfile @@ -3,6 +3,7 @@ VERSION --pass-args --arg-scope-and-set 0.7 ARG core=github.com/formancehq/earthly:v0.6.0 IMPORT $core AS core IMPORT ../.. AS stack +IMPORT ../../releases AS releases IMPORT .. AS components FROM core+base-image @@ -10,7 +11,7 @@ FROM core+base-image sources: WORKDIR src DO stack+INCLUDE_GO_LIBS --LOCATION libs/go-libs - COPY --pass-args (stack+build-sdk/go) libs/clients/go + COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go WORKDIR /src/components/payments COPY go.* . COPY --dir pkg cmd internal . diff --git a/ee/agent/.goreleaser.yml b/ee/agent/.goreleaser.yml index a5437b72e5..7fc2ec6b1d 100644 --- a/ee/agent/.goreleaser.yml +++ b/ee/agent/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/agent/ + tag_prefix: v dir: ./ builds: diff --git a/ee/auth/.goreleaser.yml b/ee/auth/.goreleaser.yml index b22c751b42..fd9d351ef6 100644 --- a/ee/auth/.goreleaser.yml +++ b/ee/auth/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/auth/ + tag_prefix: v dir: ./ builds: diff --git a/ee/gateway/.goreleaser.yml b/ee/gateway/.goreleaser.yml index 3b04d07d0c..f7c8e7d6ae 100644 --- a/ee/gateway/.goreleaser.yml +++ b/ee/gateway/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/gateway/ + tag_prefix: v dir: ./ builds: diff --git a/ee/orchestration/.goreleaser.yml b/ee/orchestration/.goreleaser.yml index ef1a338979..0b3f41a6f7 100644 --- a/ee/orchestration/.goreleaser.yml +++ b/ee/orchestration/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/orchestration/ + tag_prefix: v dir: ./ builds: diff --git a/ee/orchestration/Earthfile b/ee/orchestration/Earthfile index f010b8a8bc..cd55769479 100644 --- a/ee/orchestration/Earthfile +++ b/ee/orchestration/Earthfile @@ -3,6 +3,7 @@ VERSION --pass-args --arg-scope-and-set 0.7 ARG core=github.com/formancehq/earthly:v0.6.0 IMPORT $core AS core IMPORT ../.. AS stack +IMPORT ../../releases AS releases IMPORT .. AS ee FROM core+base-image @@ -10,7 +11,7 @@ FROM core+base-image sources: WORKDIR src DO stack+INCLUDE_GO_LIBS --LOCATION libs/go-libs - COPY --pass-args (stack+build-sdk/go) libs/clients/go + COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go WORKDIR /src/ee/orchestration COPY go.* . COPY --dir pkg cmd internal . diff --git a/ee/orchestration/go.mod b/ee/orchestration/go.mod index 532251af67..e19af0b217 100644 --- a/ee/orchestration/go.mod +++ b/ee/orchestration/go.mod @@ -158,4 +158,4 @@ require ( replace github.com/formancehq/stack/libs/go-libs => ../../libs/go-libs -replace github.com/formancehq/formance-sdk-go => ../../libs/clients/go +replace github.com/formancehq/formance-sdk-go => ../../releases/sdks/go diff --git a/ee/reconciliation/.goreleaser.yml b/ee/reconciliation/.goreleaser.yml index de9c921b1b..dcb0a8bd20 100644 --- a/ee/reconciliation/.goreleaser.yml +++ b/ee/reconciliation/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/reconciliation/ + tag_prefix: v dir: ./ builds: diff --git a/ee/reconciliation/Earthfile b/ee/reconciliation/Earthfile index 0805d9051a..9b408479eb 100644 --- a/ee/reconciliation/Earthfile +++ b/ee/reconciliation/Earthfile @@ -3,6 +3,7 @@ VERSION --pass-args --arg-scope-and-set 0.7 ARG core=github.com/formancehq/earthly:v0.6.0 IMPORT $core AS core IMPORT ../.. AS stack +IMPORT ../../releases AS releases IMPORT .. AS ee FROM core+base-image @@ -10,7 +11,7 @@ FROM core+base-image sources: WORKDIR src DO stack+INCLUDE_GO_LIBS --LOCATION libs/go-libs - COPY --pass-args (stack+build-sdk/go) libs/clients/go + COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go WORKDIR /src/ee/reconciliation COPY go.* . COPY --dir cmd internal . diff --git a/ee/reconciliation/go.mod b/ee/reconciliation/go.mod index 5c29df84f5..c75d55de4d 100644 --- a/ee/reconciliation/go.mod +++ b/ee/reconciliation/go.mod @@ -118,4 +118,4 @@ require ( replace github.com/formancehq/stack/libs/go-libs => ../../libs/go-libs -replace github.com/formancehq/formance-sdk-go => ../../libs/clients/go +replace github.com/formancehq/formance-sdk-go => ../../releases/sdks/go diff --git a/ee/search/.goreleaser.yml b/ee/search/.goreleaser.yml index 6a5d118e04..ecc5e22834 100644 --- a/ee/search/.goreleaser.yml +++ b/ee/search/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/search/ + tag_prefix: v dir: ./ builds: diff --git a/ee/stargate/.goreleaser.yml b/ee/stargate/.goreleaser.yml index 444fd921e1..c9c6f1d952 100644 --- a/ee/stargate/.goreleaser.yml +++ b/ee/stargate/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/stargate/ + tag_prefix: v dir: ./ builds: diff --git a/ee/wallets/.goreleaser.yml b/ee/wallets/.goreleaser.yml index 0850c52771..e866499eca 100644 --- a/ee/wallets/.goreleaser.yml +++ b/ee/wallets/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/wallets/ + tag_prefix: v dir: ./ builds: diff --git a/ee/wallets/Earthfile b/ee/wallets/Earthfile index e767d8860c..53f34b5fbd 100644 --- a/ee/wallets/Earthfile +++ b/ee/wallets/Earthfile @@ -3,6 +3,7 @@ VERSION --pass-args --arg-scope-and-set 0.7 ARG core=github.com/formancehq/earthly:v0.6.0 IMPORT $core AS core IMPORT ../.. AS stack +IMPORT ../../releases AS releases IMPORT .. AS ee FROM core+base-image @@ -10,7 +11,7 @@ FROM core+base-image sources: WORKDIR src DO stack+INCLUDE_GO_LIBS --LOCATION libs/go-libs - COPY --pass-args (stack+build-sdk/go) libs/clients/go + COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go WORKDIR /src/ee/wallets COPY go.* . COPY --dir pkg cmd . diff --git a/ee/wallets/go.mod b/ee/wallets/go.mod index 02fe0090b4..ea450a0797 100644 --- a/ee/wallets/go.mod +++ b/ee/wallets/go.mod @@ -78,4 +78,4 @@ require ( replace github.com/formancehq/stack/libs/go-libs => ../../libs/go-libs -replace github.com/formancehq/formance-sdk-go => ../../libs/clients/go +replace github.com/formancehq/formance-sdk-go => ../../releases/sdks/go diff --git a/ee/webhooks/.goreleaser.yml b/ee/webhooks/.goreleaser.yml index fa2cecbc51..ab1dde0845 100644 --- a/ee/webhooks/.goreleaser.yml +++ b/ee/webhooks/.goreleaser.yml @@ -3,7 +3,7 @@ includes: - from_file: path: ./../../.goreleaser.default.yaml monorepo: - tag_prefix: ee/webhooks/ + tag_prefix: v dir: ./ builds: diff --git a/libs/clients/.gitignore b/libs/clients/.gitignore deleted file mode 100644 index c795b054e5..0000000000 --- a/libs/clients/.gitignore +++ /dev/null @@ -1 +0,0 @@ -build \ No newline at end of file diff --git a/libs/clients/README.md b/libs/clients/README.md deleted file mode 100644 index ab229a19c9..0000000000 --- a/libs/clients/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Formance Stack API OpenAPI Definition - -```` -yarn install -yarn run build -```` diff --git a/libs/clients/package-lock.json b/libs/clients/package-lock.json deleted file mode 100644 index 7dcaa61467..0000000000 --- a/libs/clients/package-lock.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "name": "openapi", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "openapi", - "version": "1.0.0", - "dependencies": { - "openapi-merge-cli": "^1.3.1" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/atlassian-openapi": { - "version": "1.0.17", - "resolved": "https://registry.npmjs.org/atlassian-openapi/-/atlassian-openapi-1.0.17.tgz", - "integrity": "sha512-8aW0Xgl9mVdL9dCABSZAvCayMPyh6uVu86UzOat8Kc1qDMUtXn2OxcwDsJfm/qCtBSeZ+GE/PkFxx3ZRIp3hFg==", - "dependencies": { - "jsonpointer": "^5.0.0", - "urijs": "^1.19.10" - } - }, - "node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/isomorphic-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", - "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", - "dependencies": { - "node-fetch": "^2.6.1", - "whatwg-fetch": "^3.4.1" - } - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/jsonpointer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/node-fetch": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", - "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/openapi-merge": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/openapi-merge/-/openapi-merge-1.3.2.tgz", - "integrity": "sha512-qRWBwPMiKIUrAcKW6lstMPKpFEWy32dBbP1UjHH9jlWgw++2BCqOVbsjO5Wa4H1Ll3c4cn+lyi4TinUy8iswzw==", - "dependencies": { - "atlassian-openapi": "^1.0.8", - "lodash": "^4.17.15", - "ts-is-present": "^1.1.1" - } - }, - "node_modules/openapi-merge-cli": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/openapi-merge-cli/-/openapi-merge-cli-1.3.1.tgz", - "integrity": "sha512-YGBkzuYrDc4kTMVoGrNTCI/eNCKtE5JcCGmcmkhtl0M7+hNXm4kP+n83ilZ+kCxa7/xicTj0cww/q1P4KxlQ8Q==", - "dependencies": { - "ajv": "^6.12.2", - "commander": "^5.1.0", - "es6-promise": "^4.2.8", - "isomorphic-fetch": "^3", - "js-yaml": "^3.14.0", - "openapi-merge": "^1.2.0" - }, - "bin": { - "openapi-merge-cli": "dist/cli.js" - } - }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/ts-is-present": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/ts-is-present/-/ts-is-present-1.2.2.tgz", - "integrity": "sha512-cA5MPLWGWYXvnlJb4TamUUx858HVHBsxxdy8l7jxODOLDyGYnQOllob2A2jyDghGa5iJHs2gzFNHvwGJ0ZfR8g==" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/urijs": { - "version": "1.19.11", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", - "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-fetch": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", - "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - } - } -} diff --git a/libs/clients/package.json b/libs/clients/package.json deleted file mode 100644 index 32bdf639fc..0000000000 --- a/libs/clients/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "openapi", - "version": "1.0.0", - "dependencies": { - "openapi-merge-cli": "^1.3.1" - }, - "private": true, - "scripts": { - "build": "openapi-merge-cli" - } -} diff --git a/releases/.gitignore b/releases/.gitignore index b7dab5e9cb..7561032d40 100644 --- a/releases/.gitignore +++ b/releases/.gitignore @@ -1,2 +1,6 @@ -node_modules -build \ No newline at end of file +build +sdks/php +sdks/ruby +sdks/typescript +sdks/java +sdks/python \ No newline at end of file diff --git a/releases/Earthfile b/releases/Earthfile index 77ec036eb8..f13584a2aa 100644 --- a/releases/Earthfile +++ b/releases/Earthfile @@ -6,48 +6,22 @@ IMPORT ./../ AS stack sources: FROM core+base-image - WORKDIR /src - COPY *.json . - COPY *.js . - COPY templates templates - COPY versions versions - SAVE ARTIFACT /src - -install: - FROM node:20-alpine - WORKDIR /src - COPY (+sources/src) /src - RUN npm install - SAVE ARTIFACT /src - -build: - FROM node:20-alpine - ARG --required version - ENV version_short=$(echo ${version} | sed 's![^.]*$!!' | sed '$ s/.$//') - WORKDIR /src - COPY (+install/src) /src -# RUN --secret GITHUB_TOKEN node main.js create $version - RUN --secret GITHUB_TOKEN node main.js generate $version - RUN --secret GITHUB_TOKEN node main.js operator $version_short - BUILD +sdk-generate-all --version=${version_short} - SAVE ARTIFACT /src/versions AS LOCAL ./versions - SAVE ARTIFACT /src/build AS LOCAL ./build + COPY . /src SAVE ARTIFACT /src sdk-generate: - ARG --required version + ARG version=INTERNAL ARG LANG=go FROM node:20-alpine RUN apk update && apk add yq git WORKDIR /src COPY (stack+speakeasy/speakeasy) /bin/speakeasy - COPY (+install/src) /src - RUN git clone https://github.com/formancehq/formance-sdk-${LANG}.git ./sdks/${LANG} + COPY (stack+build-final-spec/latest.json --version=$version) /src/releases/build/latest.json + WORKDIR /src/releases RUN rm -rf ./sdks/${LANG}/gen.yaml ./sdks/${LANG}/LICENSE ./sdks/${LANG}/.github/workflows COPY --dir templates/sdk/${LANG}/* ./sdks/${LANG}/ - RUN --secret SPEAKEASY_API_KEY \ - speakeasy generate sdk -s ./versions/${version}/openapi.json -o ./sdks/${LANG} -l ${LANG} - SAVE ARTIFACT /src/sdks/${LANG} AS LOCAL ./sdks/generate/${LANG} + RUN --secret SPEAKEASY_API_KEY speakeasy generate sdk -s ./build/latest.json -o ./sdks/${LANG} -l ${LANG} + SAVE ARTIFACT /src/releases/sdks/${LANG} AS LOCAL ./sdks/${LANG} sdk-publish: ARG --required version @@ -55,15 +29,14 @@ sdk-publish: FROM node:20-alpine RUN apk update && apk add yq git WORKDIR /src - COPY (+install/src) /src - LET version_full=$(yq .version ./versions/${version}/main.yaml) + GIT CLONE https://github.com/formancehq/formance-sdk-${LANG}.git ./sdks/${LANG} COPY --dir ./sdks/generate/${LANG} ./sdks/${LANG} WORKDIR /src/sdks/${LANG} RUN git config --global user.email "support@formance.com" RUN git config --global user.name "NumaryBot" - RUN git checkout -b release/${version_full} + RUN git checkout -b release/${version} RUN git add . - RUN git commit -m "release(sdk): ${version_full}" + RUN git commit -m "release(sdk): ${version}" RUN git remote remove origin RUN --secret GITHUB_TOKEN git remote add origin https://${GITHUB_TOKEN}@github.com/formancehq/formance-sdk-${LANG}.git RUN --secret GITHUB_TOKEN git push origin release/${version_full} --force @@ -80,12 +53,4 @@ sdk-publish-all: LOCALLY FOR lang IN $(ls templates/sdk) BUILD --pass-args +sdk-publish --LANG=${lang} - END - -release: - ARG --required version - LOCALLY - RUN cp ./versions/${version}/operator.yaml ./../helm/regions/templates/versions/${version}.yaml - RUN cp ./versions/${version}/operator.yaml ./../docs/openapi/${version}.yaml - BUILD +sdk-publish-all --version=${version} - + END \ No newline at end of file diff --git a/releases/README.md b/releases/README.md deleted file mode 100644 index b7d6854dc4..0000000000 --- a/releases/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Formance - -## Create a new release - -``` -earthly +build --version=vX.Y.Z -``` - -## Publish a new release - -``` -earthly +release --version=vX.Y -``` \ No newline at end of file diff --git a/libs/clients/base.yaml b/releases/base.yaml similarity index 100% rename from libs/clients/base.yaml rename to releases/base.yaml diff --git a/releases/main.js b/releases/main.js deleted file mode 100644 index 7072ab9d51..0000000000 --- a/releases/main.js +++ /dev/null @@ -1,206 +0,0 @@ -import { exec } from "child_process"; -import {Octokit} from "@octokit/core"; -import {paginateRest} from "@octokit/plugin-paginate-rest"; -import semver from "semver"; -import YAML from 'yaml' -import {Command} from "commander"; -import fs from "fs"; - -const getVersions = async (string) => { - const data = []; - - const MyOctokit = Octokit.plugin(paginateRest); - const octokit = new MyOctokit({ - auth: process.env.GITHUB_TOKEN, - }); - - const stackResponse = await octokit.paginate("GET /repos/{owner}/{repo}/releases", { - owner: "formancehq", - repo: "stack", - per_page: 100, - }); - - stackResponse.forEach((release) => { - if (release.tag_name.includes('components/')) - { - const name = release.tag_name.match(/([a-z].*)\/([a-z].*)\/([a-z].*)/)[2]; - if (name !== "ledger" || name !== "fctl" || name !== "operator" || name !== "agent") - { - data.push( - release.tag_name.replace('components/', '') - ); - } - } - if (release.tag_name.includes('ee/')) - { - const name = release.tag_name.match(/([a-z].*)\/([a-z].*)\/([a-z].*)/)[2]; - if (name !== "ledger" || name !== "fctl" || name !== "operator" || name !== "agent") - { - data.push( - release.tag_name.replace('ee/', '') - ); - } - } - }); - - const ledgerResponse = await octokit.paginate("GET /repos/{owner}/{repo}/releases", { - owner: "formancehq", - repo: "ledger", - per_page: 100, - }); - - ledgerResponse.forEach((release) => { - if (semver.satisfies(release.tag_name, '1.x || <= 2.0.0')) - { - data.push("ledger/"+release.tag_name); - } - }); - - return data; -} - -const generateVersions = async () => { - const releases = await getVersions(); - const data = {}; - releases.forEach((release) => { - const regex = release.match(/(.*)\/(.*)/) - const service = regex[1]; - const version = regex[2]; - if (service === "fctl" || service === "operator" || service === "agent") - { - return; - } - if (semver.prerelease(version) !== null) - { - return; - } - - if (data[service] === undefined || semver.lt(data[service], version)){ - data[service] = version; - } - }); - return data; -} - -const versionMajor = (version) => { - // Extract version for folder name - return `v${semver.major(version)}.${semver.minor(version)}`; -} - -const program = new Command(); -program.command('create') - .description('Create a new version file') - .argument('', 'Version to create') - .action(async (str, options) => { - const version = str; - - // Check if version is semver - if (!semver.valid(version)) { - console.error("Version is not semver"); - process.exit(1); - } - - const components = await generateVersions(); - const jsonObject = { - "version": version, - "components": components - } - const doc = new YAML.Document(); - doc.contents = jsonObject; - - // Extract version for folder name - const versionFolder = versionMajor(version); - - // Write to file in versions folder - const dir = `./versions/${versionFolder}`; - if (!fs.existsSync(dir)){ - fs.mkdirSync(dir); - } - fs.writeFileSync(`${dir}/main.yaml`, doc.toString()) - console.log(`Created version ${version}`) - }); - -program.command('generate') - .description('Generate OPENAPI') - .argument('', 'Version to create') - .action(async (str, options) => { - const version = str; - - // Create directory if not exist build - if (!fs.existsSync('./build')){ - fs.mkdirSync('./build'); - } - - // Extract version for folder name - const versionFolder = versionMajor(version); - const dirVersion = `./versions/${versionFolder}`; - - const versionFile = fs.readFileSync(`${dirVersion}/main.yaml`, 'utf8') - const CONTENT = YAML.parse(versionFile) - - // Generate openapi-merge.json - const openapiFile = fs.readFileSync(`./templates/openapi/openapi-merge.json`, 'utf8') - const openapiConfig = openapiFile - .replace('AUTH_VERSION', CONTENT.components.auth) - .replace('LEDGER_VERSION', CONTENT.components.ledger) - .replace('PAYMENTS_VERSION', CONTENT.components.payments) - .replace('SEARCH_VERSION', CONTENT.components.search) - .replace('ORCHESTRATION_VERSION', CONTENT.components.orchestration) - .replace('RECONCILIATION_VERSION', CONTENT.components.reconciliation) - .replace('WALLETS_VERSION', CONTENT.components.wallets) - .replace('WEBHOOKS_VERSION', CONTENT.components.webhooks) - .replace('STARGATE_VERSION', CONTENT.components.stargate) - .replace('GATEWAY_VERSION', CONTENT.components.gateway) - .replace('OUTPUT_FILE', `./../${dirVersion}/openapi.json`) - fs.writeFileSync(`./build/openapi-merge.json`, openapiConfig) - - // Generate base.yaml - const baseFile = fs.readFileSync(`./templates/openapi/base.yaml`, 'utf8') - const baseConfig = baseFile - .replace('SDK_VERSION', CONTENT.version) - fs.writeFileSync(`./build/base.yaml`, baseConfig) - - // Run command for generate openapi.json - // openapi-merge-cli --config ./build/openapi-merge.json - exec(`npm run build`, (error, stdout, stderr) => { - if (error) { - console.log(`error: ${error.message}`); - process.exit(1); - } - }); - - console.log(`Generated version ${version}`) - }); - -program.command('operator') - .description('Create a new version file for Operator') - .argument('', 'Version to create') - .action(async (str, options) => { - const version = str; - - // Extract version for folder name - const versionFile = fs.readFileSync(`./versions/${version}/main.yaml`, 'utf8') - const CONTENT = YAML.parse(versionFile) - - const jsonObject = { - "apiVersion": "stack.formance.com/v1beta3", - "kind": "Versions", - "metadata": { - "name": version - }, - "spec": CONTENT.components - } - const doc = new YAML.Document(); - doc.contents = jsonObject; - - // Write to file in versions folder - const dir = `./versions/${version}`; - if (!fs.existsSync(dir)){ - fs.mkdirSync(dir); - } - fs.writeFileSync(`${dir}/operator.yaml`, doc.toString()) - console.log(`Created version ${version}`) - - }); - -program.parse(); diff --git a/libs/clients/openapi-merge.json b/releases/openapi-merge.json similarity index 76% rename from libs/clients/openapi-merge.json rename to releases/openapi-merge.json index f19e217797..54704da28d 100644 --- a/libs/clients/openapi-merge.json +++ b/releases/openapi-merge.json @@ -4,7 +4,7 @@ "inputFile": "./base.yaml" }, { - "inputFile": "./../../ee/auth/openapi.yaml", + "inputFile": "./../ee/auth/openapi.yaml", "pathModification":{ "prepend": "/api/auth" }, @@ -13,13 +13,13 @@ } }, { - "inputFile": "./../../components/ledger/openapi.yaml", + "inputFile": "./../components/ledger/openapi.yaml", "pathModification":{ "prepend": "/api/ledger" } }, { - "inputFile": "./../../components/payments/openapi.yaml", + "inputFile": "./../components/payments/openapi.yaml", "pathModification":{ "prepend": "/api/payments" }, @@ -28,7 +28,7 @@ } }, { - "inputFile": "./../../ee/search/openapi.yaml", + "inputFile": "./../ee/search/openapi.yaml", "pathModification":{ "prepend": "/api/search" }, @@ -37,7 +37,7 @@ } }, { - "inputFile": "./../../ee/webhooks/openapi.yaml", + "inputFile": "./../ee/webhooks/openapi.yaml", "pathModification":{ "prepend": "/api/webhooks" }, @@ -49,7 +49,7 @@ } }, { - "inputFile": "./../../ee/wallets/openapi.yaml", + "inputFile": "./../ee/wallets/openapi.yaml", "pathModification":{ "prepend": "/api/wallets" }, @@ -61,7 +61,7 @@ } }, { - "inputFile": "./../../ee/orchestration/openapi.yaml", + "inputFile": "./../ee/orchestration/openapi.yaml", "pathModification":{ "prepend": "/api/orchestration" }, @@ -73,7 +73,7 @@ } }, { - "inputFile": "./../../ee/reconciliation/openapi.yaml", + "inputFile": "./../ee/reconciliation/openapi.yaml", "pathModification":{ "prepend": "/api/reconciliation" }, diff --git a/libs/clients/openapi-overlay.json b/releases/openapi-overlay.json similarity index 100% rename from libs/clients/openapi-overlay.json rename to releases/openapi-overlay.json diff --git a/releases/package-lock.json b/releases/package-lock.json index fb7331f0ae..7dcaa61467 100644 --- a/releases/package-lock.json +++ b/releases/package-lock.json @@ -1,447 +1,20 @@ { - "name": "releases", + "name": "openapi", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { + "name": "openapi", + "version": "1.0.0", "dependencies": { - "child_process": "^1.0.2", - "commander": "^11.1.0" - }, - "devDependencies": { - "@octokit/plugin-paginate-rest": "^7.1.2", - "axios": "^1.6.0", - "octokit": "^2.1.0", - "openapi-merge-cli": "^1.3.1", - "semver": "^7.5.4", - "yaml": "^2.3.3" - } - }, - "node_modules/@octokit/app": { - "version": "13.1.8", - "resolved": "https://registry.npmjs.org/@octokit/app/-/app-13.1.8.tgz", - "integrity": "sha512-bCncePMguVyFpdBbnceFKfmPOuUD94T189GuQ0l00ZcQ+mX4hyPqnaWJlsXE2HSdA71eV7p8GPDZ+ErplTkzow==", - "dev": true, - "dependencies": { - "@octokit/auth-app": "^4.0.13", - "@octokit/auth-unauthenticated": "^3.0.0", - "@octokit/core": "^4.0.0", - "@octokit/oauth-app": "^4.0.7", - "@octokit/plugin-paginate-rest": "^6.0.0", - "@octokit/types": "^9.0.0", - "@octokit/webhooks": "^10.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/app/node_modules/@octokit/plugin-paginate-rest": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-6.1.2.tgz", - "integrity": "sha512-qhrmtQeHU/IivxucOV1bbI/xZyC/iOBhclokv7Sut5vnejAIAEXVcGQeRpQlU39E0WwK9lNvJHphHri/DB6lbQ==", - "dev": true, - "dependencies": { - "@octokit/tsconfig": "^1.0.2", - "@octokit/types": "^9.2.3" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "@octokit/core": ">=4" - } - }, - "node_modules/@octokit/app/node_modules/@octokit/tsconfig": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", - "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==", - "dev": true - }, - "node_modules/@octokit/auth-app": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-4.0.13.tgz", - "integrity": "sha512-NBQkmR/Zsc+8fWcVIFrwDgNXS7f4XDrkd9LHdi9DPQw1NdGHLviLzRO2ZBwTtepnwHXW5VTrVU9eFGijMUqllg==", - "dev": true, - "dependencies": { - "@octokit/auth-oauth-app": "^5.0.0", - "@octokit/auth-oauth-user": "^2.0.0", - "@octokit/request": "^6.0.0", - "@octokit/request-error": "^3.0.0", - "@octokit/types": "^9.0.0", - "deprecation": "^2.3.1", - "lru-cache": "^9.0.0", - "universal-github-app-jwt": "^1.1.1", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/auth-oauth-app": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-5.0.6.tgz", - "integrity": "sha512-SxyfIBfeFcWd9Z/m1xa4LENTQ3l1y6Nrg31k2Dcb1jS5ov7pmwMJZ6OGX8q3K9slRgVpeAjNA1ipOAMHkieqyw==", - "dev": true, - "dependencies": { - "@octokit/auth-oauth-device": "^4.0.0", - "@octokit/auth-oauth-user": "^2.0.0", - "@octokit/request": "^6.0.0", - "@octokit/types": "^9.0.0", - "@types/btoa-lite": "^1.0.0", - "btoa-lite": "^1.0.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/auth-oauth-device": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-4.0.5.tgz", - "integrity": "sha512-XyhoWRTzf2ZX0aZ52a6Ew5S5VBAfwwx1QnC2Np6Et3MWQpZjlREIcbcvVZtkNuXp6Z9EeiSLSDUqm3C+aMEHzQ==", - "dev": true, - "dependencies": { - "@octokit/oauth-methods": "^2.0.0", - "@octokit/request": "^6.0.0", - "@octokit/types": "^9.0.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/auth-oauth-user": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-2.1.2.tgz", - "integrity": "sha512-kkRqNmFe7s5GQcojE3nSlF+AzYPpPv7kvP/xYEnE57584pixaFBH8Vovt+w5Y3E4zWUEOxjdLItmBTFAWECPAg==", - "dev": true, - "dependencies": { - "@octokit/auth-oauth-device": "^4.0.0", - "@octokit/oauth-methods": "^2.0.0", - "@octokit/request": "^6.0.0", - "@octokit/types": "^9.0.0", - "btoa-lite": "^1.0.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/auth-token": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-3.0.4.tgz", - "integrity": "sha512-TWFX7cZF2LXoCvdmJWY7XVPi74aSY0+FfBZNSXEXFkMpjcqsQwDSYVv5FhRFaI0V1ECnwbz4j59T/G+rXNWaIQ==", - "dev": true, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/auth-unauthenticated": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@octokit/auth-unauthenticated/-/auth-unauthenticated-3.0.5.tgz", - "integrity": "sha512-yH2GPFcjrTvDWPwJWWCh0tPPtTL5SMgivgKPA+6v/XmYN6hGQkAto8JtZibSKOpf8ipmeYhLNWQ2UgW0GYILCw==", - "dev": true, - "dependencies": { - "@octokit/request-error": "^3.0.0", - "@octokit/types": "^9.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/core": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-4.2.4.tgz", - "integrity": "sha512-rYKilwgzQ7/imScn3M9/pFfUf4I1AZEH3KhyJmtPdE2zfaXAn2mFfUy4FbKewzc2We5y/LlKLj36fWJLKC2SIQ==", - "dev": true, - "dependencies": { - "@octokit/auth-token": "^3.0.0", - "@octokit/graphql": "^5.0.0", - "@octokit/request": "^6.0.0", - "@octokit/request-error": "^3.0.0", - "@octokit/types": "^9.0.0", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/endpoint": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.6.tgz", - "integrity": "sha512-5L4fseVRUsDFGR00tMWD/Trdeeihn999rTMGRMC1G/Ldi1uWlWJzI98H4Iak5DB/RVvQuyMYKqSK/R6mbSOQyg==", - "dev": true, - "dependencies": { - "@octokit/types": "^9.0.0", - "is-plain-object": "^5.0.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/graphql": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.6.tgz", - "integrity": "sha512-Fxyxdy/JH0MnIB5h+UQ3yCoh1FG4kWXfFKkpWqjZHw/p+Kc8Y44Hu/kCgNBT6nU1shNumEchmW/sUO1JuQnPcw==", - "dev": true, - "dependencies": { - "@octokit/request": "^6.0.0", - "@octokit/types": "^9.0.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/oauth-app": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@octokit/oauth-app/-/oauth-app-4.2.4.tgz", - "integrity": "sha512-iuOVFrmm5ZKNavRtYu5bZTtmlKLc5uVgpqTfMEqYYf2OkieV6VdxKZAb5qLVdEPL8LU2lMWcGpavPBV835cgoA==", - "dev": true, - "dependencies": { - "@octokit/auth-oauth-app": "^5.0.0", - "@octokit/auth-oauth-user": "^2.0.0", - "@octokit/auth-unauthenticated": "^3.0.0", - "@octokit/core": "^4.0.0", - "@octokit/oauth-authorization-url": "^5.0.0", - "@octokit/oauth-methods": "^2.0.0", - "@types/aws-lambda": "^8.10.83", - "fromentries": "^1.3.1", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/oauth-authorization-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-5.0.0.tgz", - "integrity": "sha512-y1WhN+ERDZTh0qZ4SR+zotgsQUE1ysKnvBt1hvDRB2WRzYtVKQjn97HEPzoehh66Fj9LwNdlZh+p6TJatT0zzg==", - "dev": true, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/oauth-methods": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-2.0.6.tgz", - "integrity": "sha512-l9Uml2iGN2aTWLZcm8hV+neBiFXAQ9+3sKiQe/sgumHlL6HDg0AQ8/l16xX/5jJvfxueqTW5CWbzd0MjnlfHZw==", - "dev": true, - "dependencies": { - "@octokit/oauth-authorization-url": "^5.0.0", - "@octokit/request": "^6.2.3", - "@octokit/request-error": "^3.0.3", - "@octokit/types": "^9.0.0", - "btoa-lite": "^1.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/openapi-types": { - "version": "18.1.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.1.1.tgz", - "integrity": "sha512-VRaeH8nCDtF5aXWnjPuEMIYf1itK/s3JYyJcWFJT8X9pSNnBtriDf7wlEWsGuhPLl4QIH4xM8fqTXDwJ3Mu6sw==", - "dev": true - }, - "node_modules/@octokit/plugin-paginate-rest": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-7.1.2.tgz", - "integrity": "sha512-Jx8KuKqEAVRsK6fMzZKv3h6UH9/NRDHsDRtUAROqqmZlCptM///Uef7A1ViZ/cbDplekz7VbDWdFLAZ/mpuDww==", - "dev": true, - "dependencies": { - "@octokit/tsconfig": "^2.0.0", - "@octokit/types": "^9.3.2" - }, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": ">=4" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-7.2.3.tgz", - "integrity": "sha512-I5Gml6kTAkzVlN7KCtjOM+Ruwe/rQppp0QU372K1GP7kNOYEKe8Xn5BW4sE62JAHdwpq95OQK/qGNyKQMUzVgA==", - "dev": true, - "dependencies": { - "@octokit/types": "^10.0.0" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "@octokit/core": ">=3" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-10.0.0.tgz", - "integrity": "sha512-Vm8IddVmhCgU1fxC1eyinpwqzXPEYu0NrYzD3YZjlGjyftdLBTeqNblRC0jmJmgxbJIsQlyogVeGnrNaaMVzIg==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^18.0.0" - } - }, - "node_modules/@octokit/plugin-retry": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-4.1.6.tgz", - "integrity": "sha512-obkYzIgEC75r8+9Pnfiiqy3y/x1bc3QLE5B7qvv9wi9Kj0R5tGQFC6QMBg1154WQ9lAVypuQDGyp3hNpp15gQQ==", - "dev": true, - "dependencies": { - "@octokit/types": "^9.0.0", - "bottleneck": "^2.15.3" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "@octokit/core": ">=3" - } - }, - "node_modules/@octokit/plugin-throttling": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-5.2.3.tgz", - "integrity": "sha512-C9CFg9mrf6cugneKiaI841iG8DOv6P5XXkjmiNNut+swePxQ7RWEdAZRp5rJoE1hjsIqiYcKa/ZkOQ+ujPI39Q==", - "dev": true, - "dependencies": { - "@octokit/types": "^9.0.0", - "bottleneck": "^2.15.3" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "@octokit/core": "^4.0.0" - } - }, - "node_modules/@octokit/request": { - "version": "6.2.8", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-6.2.8.tgz", - "integrity": "sha512-ow4+pkVQ+6XVVsekSYBzJC0VTVvh/FCTUUgTsboGq+DTeWdyIFV8WSCdo0RIxk6wSkBTHqIK1mYuY7nOBXOchw==", - "dev": true, - "dependencies": { - "@octokit/endpoint": "^7.0.0", - "@octokit/request-error": "^3.0.0", - "@octokit/types": "^9.0.0", - "is-plain-object": "^5.0.0", - "node-fetch": "^2.6.7", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/request-error": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-3.0.3.tgz", - "integrity": "sha512-crqw3V5Iy2uOU5Np+8M/YexTlT8zxCfI+qu+LxUB7SZpje4Qmx3mub5DfEKSO8Ylyk0aogi6TYdf6kxzh2BguQ==", - "dev": true, - "dependencies": { - "@octokit/types": "^9.0.0", - "deprecation": "^2.0.0", - "once": "^1.4.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/tsconfig": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-2.0.0.tgz", - "integrity": "sha512-tWnrai3quGt8+gRN2edzo9fmraWekeryXPeXDomMw2oFSpu/lH3VSWGn/q4V+rwjTRMeeXk/ci623/01Zet4VQ==", - "dev": true - }, - "node_modules/@octokit/types": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz", - "integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^18.0.0" - } - }, - "node_modules/@octokit/webhooks": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-10.9.1.tgz", - "integrity": "sha512-5NXU4VfsNOo2VSU/SrLrpPH2Z1ZVDOWFcET4EpnEBX1uh/v8Uz65UVuHIRx5TZiXhnWyRE9AO1PXHa+M/iWwZA==", - "dev": true, - "dependencies": { - "@octokit/request-error": "^3.0.0", - "@octokit/webhooks-methods": "^3.0.0", - "@octokit/webhooks-types": "6.11.0", - "aggregate-error": "^3.1.0" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/webhooks-methods": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@octokit/webhooks-methods/-/webhooks-methods-3.0.3.tgz", - "integrity": "sha512-2vM+DCNTJ5vL62O5LagMru6XnYhV4fJslK+5YUkTa6rWlW2S+Tqs1lF9Wr9OGqHfVwpBj3TeztWfVON/eUoW1Q==", - "dev": true, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@octokit/webhooks-types": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-6.11.0.tgz", - "integrity": "sha512-AanzbulOHljrku1NGfafxdpTCfw2ENaWzH01N2vqQM+cUFbk868Cgh0xylz0JIM9BoKbfI++bdD6EYX0Q/UTEw==", - "dev": true - }, - "node_modules/@types/aws-lambda": { - "version": "8.10.125", - "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.125.tgz", - "integrity": "sha512-Vqw/WMlV4O1fJT6capim01v7VLDZkcX1n6Yhb52E7IfnMqYbNfwHfyDV8rRN42NLBtdDvfaqcCqs2K0fr5ljZw==", - "dev": true - }, - "node_modules/@types/btoa-lite": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/btoa-lite/-/btoa-lite-1.0.1.tgz", - "integrity": "sha512-YwCjy5v1THSaj5KrBz0SKwKYtjwT0YpOm8VB4TR6DzyvTa503T+rE0Ku6Q3DUKtm1rzNrEXyqdYHpcLiYN6oXg==", - "dev": true - }, - "node_modules/@types/jsonwebtoken": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.4.tgz", - "integrity": "sha512-8UYapdmR0QlxgvJmyE8lP7guxD0UGVMfknsdtCFZh4ovShdBl3iOI4zdvqBHrB/IS+xUj3PSx73Qkey1fhWz+g==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "20.8.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", - "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", - "dev": true, - "dependencies": { - "undici-types": "~5.25.1" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" + "openapi-merge-cli": "^1.3.1" } }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -457,131 +30,36 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "dependencies": { "sprintf-js": "~1.0.2" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true - }, "node_modules/atlassian-openapi": { "version": "1.0.17", "resolved": "https://registry.npmjs.org/atlassian-openapi/-/atlassian-openapi-1.0.17.tgz", "integrity": "sha512-8aW0Xgl9mVdL9dCABSZAvCayMPyh6uVu86UzOat8Kc1qDMUtXn2OxcwDsJfm/qCtBSeZ+GE/PkFxx3ZRIp3hFg==", - "dev": true, "dependencies": { "jsonpointer": "^5.0.0", "urijs": "^1.19.10" } }, - "node_modules/axios": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", - "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", - "dev": true, - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/before-after-hook": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", - "dev": true - }, - "node_modules/bottleneck": { - "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", - "dev": true - }, - "node_modules/btoa-lite": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", - "integrity": "sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA==", - "dev": true - }, - "node_modules/buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "dev": true - }, - "node_modules/child_process": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/child_process/-/child_process-1.0.2.tgz", - "integrity": "sha512-Wmza/JzL0SiWz7kl6MhIKT5ceIlnFPJX+lwUGj7Clhy5MMldsSoJR0+uvRzOS5Kv45Mq7t1PoE8TsOA9bzvb6g==" - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/commander": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", - "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", - "engines": { - "node": ">=16" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true, + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", - "dev": true - }, - "node_modules/ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.0.1" + "node": ">= 6" } }, "node_modules/es6-promise": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", - "dev": true + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -593,92 +71,17 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fromentries": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", - "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/isomorphic-fetch": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", - "dev": true, "dependencies": { "node-fetch": "^2.6.1", "whatwg-fetch": "^3.4.1" @@ -688,7 +91,6 @@ "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -700,150 +102,25 @@ "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/jsonpointer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", - "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/jsonwebtoken": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", - "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", - "dev": true, - "dependencies": { - "jws": "^3.2.2", - "lodash.includes": "^4.3.0", - "lodash.isboolean": "^3.0.3", - "lodash.isinteger": "^4.0.4", - "lodash.isnumber": "^3.0.3", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.once": "^4.0.0", - "ms": "^2.1.1", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=12", - "npm": ">=6" - } - }, - "node_modules/jwa": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", - "dev": true, - "dependencies": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/jws": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", - "dev": true, - "dependencies": { - "jwa": "^1.4.1", - "safe-buffer": "^5.0.1" - } - }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.includes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", - "dev": true - }, - "node_modules/lodash.isboolean": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", - "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", - "dev": true - }, - "node_modules/lodash.isinteger": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", - "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", - "dev": true - }, - "node_modules/lodash.isnumber": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", - "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", - "dev": true - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "dev": true - }, - "node_modules/lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", - "dev": true - }, - "node_modules/lodash.once": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", - "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.2.tgz", - "integrity": "sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==", - "dev": true, - "engines": { - "node": "14 || >=16.14" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dev": true, + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -859,62 +136,10 @@ } } }, - "node_modules/octokit": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/octokit/-/octokit-2.1.0.tgz", - "integrity": "sha512-Pxi6uKTjBRZWgAwsw1NgHdRlL+QASCN35OYS7X79o7PtBME0CLXEroZmPtEwlWZbPTP+iDbEy2wCbSOgm0uGIQ==", - "dev": true, - "dependencies": { - "@octokit/app": "^13.1.5", - "@octokit/core": "^4.2.1", - "@octokit/oauth-app": "^4.2.1", - "@octokit/plugin-paginate-rest": "^6.1.0", - "@octokit/plugin-rest-endpoint-methods": "^7.1.1", - "@octokit/plugin-retry": "^4.1.3", - "@octokit/plugin-throttling": "^5.2.2", - "@octokit/request-error": "^v3.0.3", - "@octokit/types": "^9.2.2" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/octokit/node_modules/@octokit/plugin-paginate-rest": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-6.1.2.tgz", - "integrity": "sha512-qhrmtQeHU/IivxucOV1bbI/xZyC/iOBhclokv7Sut5vnejAIAEXVcGQeRpQlU39E0WwK9lNvJHphHri/DB6lbQ==", - "dev": true, - "dependencies": { - "@octokit/tsconfig": "^1.0.2", - "@octokit/types": "^9.2.3" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "@octokit/core": ">=4" - } - }, - "node_modules/octokit/node_modules/@octokit/tsconfig": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", - "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==", - "dev": true - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, "node_modules/openapi-merge": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/openapi-merge/-/openapi-merge-1.3.2.tgz", "integrity": "sha512-qRWBwPMiKIUrAcKW6lstMPKpFEWy32dBbP1UjHH9jlWgw++2BCqOVbsjO5Wa4H1Ll3c4cn+lyi4TinUy8iswzw==", - "dev": true, "dependencies": { "atlassian-openapi": "^1.0.8", "lodash": "^4.17.15", @@ -925,7 +150,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/openapi-merge-cli/-/openapi-merge-cli-1.3.1.tgz", "integrity": "sha512-YGBkzuYrDc4kTMVoGrNTCI/eNCKtE5JcCGmcmkhtl0M7+hNXm4kP+n83ilZ+kCxa7/xicTj0cww/q1P4KxlQ8Q==", - "dev": true, "dependencies": { "ajv": "^6.12.2", "commander": "^5.1.0", @@ -938,122 +162,33 @@ "openapi-merge-cli": "dist/cli.js" } }, - "node_modules/openapi-merge-cli/node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true - }, "node_modules/punycode": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "dev": true, "engines": { "node": ">=6" } }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/ts-is-present": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/ts-is-present/-/ts-is-present-1.2.2.tgz", - "integrity": "sha512-cA5MPLWGWYXvnlJb4TamUUx858HVHBsxxdy8l7jxODOLDyGYnQOllob2A2jyDghGa5iJHs2gzFNHvwGJ0ZfR8g==", - "dev": true - }, - "node_modules/undici-types": { - "version": "5.25.3", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", - "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", - "dev": true - }, - "node_modules/universal-github-app-jwt": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/universal-github-app-jwt/-/universal-github-app-jwt-1.1.1.tgz", - "integrity": "sha512-G33RTLrIBMFmlDV4u4CBF7dh71eWwykck4XgaxaIVeZKOYZRAAxvcGMRFTUclVY6xoUPQvO4Ne5wKGxYm/Yy9w==", - "dev": true, - "dependencies": { - "@types/jsonwebtoken": "^9.0.0", - "jsonwebtoken": "^9.0.0" - } - }, - "node_modules/universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", - "dev": true + "integrity": "sha512-cA5MPLWGWYXvnlJb4TamUUx858HVHBsxxdy8l7jxODOLDyGYnQOllob2A2jyDghGa5iJHs2gzFNHvwGJ0ZfR8g==" }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -1061,51 +196,26 @@ "node_modules/urijs": { "version": "1.19.11", "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", - "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==", - "dev": true + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "dev": true + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "node_modules/whatwg-fetch": { - "version": "3.6.19", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.19.tgz", - "integrity": "sha512-d67JP4dHSbm2TrpFj8AbO8DnL1JXL5J9u0Kq2xW6d0TFDbCA3Muhdt8orXC22utleTVj7Prqt82baN6RBvnEgw==", - "dev": true + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", + "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dev": true, "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yaml": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.3.tgz", - "integrity": "sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==", - "dev": true, - "engines": { - "node": ">= 14" - } } } } diff --git a/releases/package.json b/releases/package.json index 8810367fdc..32bdf639fc 100644 --- a/releases/package.json +++ b/releases/package.json @@ -1,18 +1,11 @@ { - "type": "module", - "devDependencies": { - "@octokit/plugin-paginate-rest": "^7.1.2", - "axios": "^1.6.0", - "octokit": "^2.1.0", - "openapi-merge-cli": "^1.3.1", - "semver": "^7.5.4", - "yaml": "^2.3.3" + "name": "openapi", + "version": "1.0.0", + "dependencies": { + "openapi-merge-cli": "^1.3.1" }, + "private": true, "scripts": { - "build": "openapi-merge-cli --config ./build/openapi-merge.json" - }, - "dependencies": { - "child_process": "^1.0.2", - "commander": "^11.1.0" + "build": "openapi-merge-cli" } } diff --git a/libs/clients/go/.gitattributes b/releases/sdks/go/.gitattributes similarity index 100% rename from libs/clients/go/.gitattributes rename to releases/sdks/go/.gitattributes diff --git a/releases/sdks/go/.github/workflows/speakeasy_sdk_publish.yml b/releases/sdks/go/.github/workflows/speakeasy_sdk_publish.yml new file mode 100644 index 0000000000..3bef06984e --- /dev/null +++ b/releases/sdks/go/.github/workflows/speakeasy_sdk_publish.yml @@ -0,0 +1,28 @@ +name: Publish +"on": + push: + branches: + - release/v*.*.* + - release/v*.*.*-alpha.* + - release/v*.*.*-beta.* + - release/v*.*.*-rc.*version +jobs: + Release: + name: 'Release' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/release/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ steps.extract_branch.outputs.branch }} + release_name: Release ${{ steps.extract_branch.outputs.branch }} + draft: false + prerelease: false \ No newline at end of file diff --git a/libs/clients/go/.gitignore b/releases/sdks/go/.gitignore similarity index 100% rename from libs/clients/go/.gitignore rename to releases/sdks/go/.gitignore diff --git a/releases/LICENSE b/releases/sdks/go/LICENSE similarity index 100% rename from releases/LICENSE rename to releases/sdks/go/LICENSE diff --git a/libs/clients/go/README.md b/releases/sdks/go/README.md similarity index 97% rename from libs/clients/go/README.md rename to releases/sdks/go/README.md index 3ebd10e6a8..007469cde5 100755 --- a/libs/clients/go/README.md +++ b/releases/sdks/go/README.md @@ -13,7 +13,7 @@ It has been generated successfully based on your OpenAPI spec. However, it is no - [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/productionize-sdks/publish-sdks) - [ ] ✨ When ready to productionize, delete this section from the README -## SDK Installation +# SDK Installation ```bash go get github.com/formancehq/formance-sdk-go @@ -22,6 +22,8 @@ go get github.com/formancehq/formance-sdk-go ## SDK Example Usage + + ```go package main @@ -49,14 +51,14 @@ func main() { -## Available Resources and Operations +# Available Resources and Operations -### [Formance SDK](docs/sdks/formance/README.md) +## [Formance SDK](docs/sdks/formance/README.md) * [GetVersions](docs/sdks/formance/README.md#getversions) - Show stack version information * [GetAPIAuthWellKnownOpenidConfiguration](docs/sdks/formance/README.md#getapiauthwellknownopenidconfiguration) -### [Auth](docs/sdks/auth/README.md) +## [Auth](docs/sdks/auth/README.md) * [CreateClient](docs/sdks/auth/README.md#createclient) - Create client * [CreateSecret](docs/sdks/auth/README.md#createsecret) - Add a secret to a client @@ -69,7 +71,7 @@ func main() { * [ReadUser](docs/sdks/auth/README.md#readuser) - Read user * [UpdateClient](docs/sdks/auth/README.md#updateclient) - Update client -### [Ledger](docs/sdks/ledger/README.md) +## [Ledger](docs/sdks/ledger/README.md) * [CreateTransactions](docs/sdks/ledger/README.md#createtransactions) - Create a new batch of transactions to a ledger * [AddMetadataOnTransaction](docs/sdks/ledger/README.md#addmetadataontransaction) - Set the metadata of a transaction by its ID @@ -113,7 +115,7 @@ func main() { * [V2ReadStats](docs/sdks/ledger/README.md#v2readstats) - Get statistics from a ledger * [V2RevertTransaction](docs/sdks/ledger/README.md#v2reverttransaction) - Revert a ledger transaction by its ID -### [Orchestration](docs/sdks/orchestration/README.md) +## [Orchestration](docs/sdks/orchestration/README.md) * [CancelEvent](docs/sdks/orchestration/README.md#cancelevent) - Cancel a running workflow * [CreateTrigger](docs/sdks/orchestration/README.md#createtrigger) - Create trigger @@ -151,7 +153,7 @@ func main() { * [V2RunWorkflow](docs/sdks/orchestration/README.md#v2runworkflow) - Run workflow * [V2SendEvent](docs/sdks/orchestration/README.md#v2sendevent) - Send an event to a running workflow -### [Payments](docs/sdks/payments/README.md) +## [Payments](docs/sdks/payments/README.md) * [AddAccountToPool](docs/sdks/payments/README.md#addaccounttopool) - Add an account to a pool * [ConnectorsTransfer](docs/sdks/payments/README.md#connectorstransfer) - Transfer funds between Connector accounts @@ -193,7 +195,7 @@ func main() { * [UpdateConnectorConfigV1](docs/sdks/payments/README.md#updateconnectorconfigv1) - Update the config of a connector * [UpdateMetadata](docs/sdks/payments/README.md#updatemetadata) - Update metadata -### [Reconciliation](docs/sdks/reconciliation/README.md) +## [Reconciliation](docs/sdks/reconciliation/README.md) * [CreatePolicy](docs/sdks/reconciliation/README.md#createpolicy) - Create a policy * [DeletePolicy](docs/sdks/reconciliation/README.md#deletepolicy) - Delete a policy @@ -204,12 +206,12 @@ func main() { * [Reconcile](docs/sdks/reconciliation/README.md#reconcile) - Reconcile using a policy * [ReconciliationgetServerInfo](docs/sdks/reconciliation/README.md#reconciliationgetserverinfo) - Get server info -### [Search](docs/sdks/search/README.md) +## [Search](docs/sdks/search/README.md) * [Search](docs/sdks/search/README.md#search) - Search * [SearchgetServerInfo](docs/sdks/search/README.md#searchgetserverinfo) - Get server info -### [Wallets](docs/sdks/wallets/README.md) +## [Wallets](docs/sdks/wallets/README.md) * [ConfirmHold](docs/sdks/wallets/README.md#confirmhold) - Confirm a hold * [CreateBalance](docs/sdks/wallets/README.md#createbalance) - Create a balance @@ -228,7 +230,7 @@ func main() { * [VoidHold](docs/sdks/wallets/README.md#voidhold) - Cancel a hold * [WalletsgetServerInfo](docs/sdks/wallets/README.md#walletsgetserverinfo) - Get server info -### [Webhooks](docs/sdks/webhooks/README.md) +## [Webhooks](docs/sdks/webhooks/README.md) * [ActivateConfig](docs/sdks/webhooks/README.md#activateconfig) - Activate one config * [ChangeConfigSecret](docs/sdks/webhooks/README.md#changeconfigsecret) - Change the signing secret of a config @@ -241,6 +243,8 @@ func main() { + + diff --git a/libs/clients/go/USAGE.md b/releases/sdks/go/USAGE.md similarity index 100% rename from libs/clients/go/USAGE.md rename to releases/sdks/go/USAGE.md diff --git a/libs/clients/go/auth.go b/releases/sdks/go/auth.go similarity index 100% rename from libs/clients/go/auth.go rename to releases/sdks/go/auth.go diff --git a/libs/clients/go/docs/models/errors/errorresponse.md b/releases/sdks/go/docs/models/errors/errorresponse.md similarity index 100% rename from libs/clients/go/docs/models/errors/errorresponse.md rename to releases/sdks/go/docs/models/errors/errorresponse.md diff --git a/libs/clients/go/docs/models/errors/errorsenum.md b/releases/sdks/go/docs/models/errors/errorsenum.md similarity index 100% rename from libs/clients/go/docs/models/errors/errorsenum.md rename to releases/sdks/go/docs/models/errors/errorsenum.md diff --git a/libs/clients/go/docs/models/errors/v2error.md b/releases/sdks/go/docs/models/errors/v2error.md similarity index 100% rename from libs/clients/go/docs/models/errors/v2error.md rename to releases/sdks/go/docs/models/errors/v2error.md diff --git a/libs/clients/go/docs/models/errors/v2errorerrorcode.md b/releases/sdks/go/docs/models/errors/v2errorerrorcode.md similarity index 100% rename from libs/clients/go/docs/models/errors/v2errorerrorcode.md rename to releases/sdks/go/docs/models/errors/v2errorerrorcode.md diff --git a/libs/clients/go/docs/models/errors/v2errorresponse.md b/releases/sdks/go/docs/models/errors/v2errorresponse.md similarity index 100% rename from libs/clients/go/docs/models/errors/v2errorresponse.md rename to releases/sdks/go/docs/models/errors/v2errorresponse.md diff --git a/libs/clients/go/docs/models/errors/v2errorsenum.md b/releases/sdks/go/docs/models/errors/v2errorsenum.md similarity index 100% rename from libs/clients/go/docs/models/errors/v2errorsenum.md rename to releases/sdks/go/docs/models/errors/v2errorsenum.md diff --git a/libs/clients/go/docs/models/errors/webhookserrorresponse.md b/releases/sdks/go/docs/models/errors/webhookserrorresponse.md similarity index 100% rename from libs/clients/go/docs/models/errors/webhookserrorresponse.md rename to releases/sdks/go/docs/models/errors/webhookserrorresponse.md diff --git a/libs/clients/go/docs/models/errors/webhookserrorsenum.md b/releases/sdks/go/docs/models/errors/webhookserrorsenum.md similarity index 100% rename from libs/clients/go/docs/models/errors/webhookserrorsenum.md rename to releases/sdks/go/docs/models/errors/webhookserrorsenum.md diff --git a/libs/clients/go/docs/models/operations/activateconfigrequest.md b/releases/sdks/go/docs/models/operations/activateconfigrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/activateconfigrequest.md rename to releases/sdks/go/docs/models/operations/activateconfigrequest.md diff --git a/libs/clients/go/docs/models/operations/activateconfigresponse.md b/releases/sdks/go/docs/models/operations/activateconfigresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/activateconfigresponse.md rename to releases/sdks/go/docs/models/operations/activateconfigresponse.md diff --git a/libs/clients/go/docs/models/operations/addaccounttopoolrequest.md b/releases/sdks/go/docs/models/operations/addaccounttopoolrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/addaccounttopoolrequest.md rename to releases/sdks/go/docs/models/operations/addaccounttopoolrequest.md diff --git a/libs/clients/go/docs/models/operations/addaccounttopoolresponse.md b/releases/sdks/go/docs/models/operations/addaccounttopoolresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/addaccounttopoolresponse.md rename to releases/sdks/go/docs/models/operations/addaccounttopoolresponse.md diff --git a/libs/clients/go/docs/models/operations/addmetadataontransactionrequest.md b/releases/sdks/go/docs/models/operations/addmetadataontransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/addmetadataontransactionrequest.md rename to releases/sdks/go/docs/models/operations/addmetadataontransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/addmetadataontransactionresponse.md b/releases/sdks/go/docs/models/operations/addmetadataontransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/addmetadataontransactionresponse.md rename to releases/sdks/go/docs/models/operations/addmetadataontransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/addmetadatatoaccountrequest.md b/releases/sdks/go/docs/models/operations/addmetadatatoaccountrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/addmetadatatoaccountrequest.md rename to releases/sdks/go/docs/models/operations/addmetadatatoaccountrequest.md diff --git a/libs/clients/go/docs/models/operations/addmetadatatoaccountresponse.md b/releases/sdks/go/docs/models/operations/addmetadatatoaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/addmetadatatoaccountresponse.md rename to releases/sdks/go/docs/models/operations/addmetadatatoaccountresponse.md diff --git a/libs/clients/go/docs/models/operations/canceleventrequest.md b/releases/sdks/go/docs/models/operations/canceleventrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/canceleventrequest.md rename to releases/sdks/go/docs/models/operations/canceleventrequest.md diff --git a/libs/clients/go/docs/models/operations/canceleventresponse.md b/releases/sdks/go/docs/models/operations/canceleventresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/canceleventresponse.md rename to releases/sdks/go/docs/models/operations/canceleventresponse.md diff --git a/libs/clients/go/docs/models/operations/changeconfigsecretrequest.md b/releases/sdks/go/docs/models/operations/changeconfigsecretrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/changeconfigsecretrequest.md rename to releases/sdks/go/docs/models/operations/changeconfigsecretrequest.md diff --git a/libs/clients/go/docs/models/operations/changeconfigsecretresponse.md b/releases/sdks/go/docs/models/operations/changeconfigsecretresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/changeconfigsecretresponse.md rename to releases/sdks/go/docs/models/operations/changeconfigsecretresponse.md diff --git a/libs/clients/go/docs/models/operations/confirmholdrequest.md b/releases/sdks/go/docs/models/operations/confirmholdrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/confirmholdrequest.md rename to releases/sdks/go/docs/models/operations/confirmholdrequest.md diff --git a/libs/clients/go/docs/models/operations/confirmholdresponse.md b/releases/sdks/go/docs/models/operations/confirmholdresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/confirmholdresponse.md rename to releases/sdks/go/docs/models/operations/confirmholdresponse.md diff --git a/libs/clients/go/docs/models/operations/connectorstransferrequest.md b/releases/sdks/go/docs/models/operations/connectorstransferrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/connectorstransferrequest.md rename to releases/sdks/go/docs/models/operations/connectorstransferrequest.md diff --git a/libs/clients/go/docs/models/operations/connectorstransferresponse.md b/releases/sdks/go/docs/models/operations/connectorstransferresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/connectorstransferresponse.md rename to releases/sdks/go/docs/models/operations/connectorstransferresponse.md diff --git a/libs/clients/go/docs/models/operations/countaccountsrequest.md b/releases/sdks/go/docs/models/operations/countaccountsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/countaccountsrequest.md rename to releases/sdks/go/docs/models/operations/countaccountsrequest.md diff --git a/libs/clients/go/docs/models/operations/countaccountsresponse.md b/releases/sdks/go/docs/models/operations/countaccountsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/countaccountsresponse.md rename to releases/sdks/go/docs/models/operations/countaccountsresponse.md diff --git a/libs/clients/go/docs/models/operations/counttransactionsmetadata.md b/releases/sdks/go/docs/models/operations/counttransactionsmetadata.md similarity index 100% rename from libs/clients/go/docs/models/operations/counttransactionsmetadata.md rename to releases/sdks/go/docs/models/operations/counttransactionsmetadata.md diff --git a/libs/clients/go/docs/models/operations/counttransactionsrequest.md b/releases/sdks/go/docs/models/operations/counttransactionsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/counttransactionsrequest.md rename to releases/sdks/go/docs/models/operations/counttransactionsrequest.md diff --git a/libs/clients/go/docs/models/operations/counttransactionsresponse.md b/releases/sdks/go/docs/models/operations/counttransactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/counttransactionsresponse.md rename to releases/sdks/go/docs/models/operations/counttransactionsresponse.md diff --git a/libs/clients/go/docs/models/operations/createbalancerequest.md b/releases/sdks/go/docs/models/operations/createbalancerequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/createbalancerequest.md rename to releases/sdks/go/docs/models/operations/createbalancerequest.md diff --git a/libs/clients/go/docs/models/operations/createbalanceresponse.md b/releases/sdks/go/docs/models/operations/createbalanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createbalanceresponse.md rename to releases/sdks/go/docs/models/operations/createbalanceresponse.md diff --git a/libs/clients/go/docs/models/operations/createbankaccountresponse.md b/releases/sdks/go/docs/models/operations/createbankaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createbankaccountresponse.md rename to releases/sdks/go/docs/models/operations/createbankaccountresponse.md diff --git a/libs/clients/go/docs/models/operations/createclientresponse.md b/releases/sdks/go/docs/models/operations/createclientresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createclientresponse.md rename to releases/sdks/go/docs/models/operations/createclientresponse.md diff --git a/libs/clients/go/docs/models/operations/createpaymentresponse.md b/releases/sdks/go/docs/models/operations/createpaymentresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createpaymentresponse.md rename to releases/sdks/go/docs/models/operations/createpaymentresponse.md diff --git a/libs/clients/go/docs/models/operations/createpolicyresponse.md b/releases/sdks/go/docs/models/operations/createpolicyresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createpolicyresponse.md rename to releases/sdks/go/docs/models/operations/createpolicyresponse.md diff --git a/libs/clients/go/docs/models/operations/createpoolresponse.md b/releases/sdks/go/docs/models/operations/createpoolresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createpoolresponse.md rename to releases/sdks/go/docs/models/operations/createpoolresponse.md diff --git a/libs/clients/go/docs/models/operations/createsecretrequest.md b/releases/sdks/go/docs/models/operations/createsecretrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/createsecretrequest.md rename to releases/sdks/go/docs/models/operations/createsecretrequest.md diff --git a/libs/clients/go/docs/models/operations/createsecretresponse.md b/releases/sdks/go/docs/models/operations/createsecretresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createsecretresponse.md rename to releases/sdks/go/docs/models/operations/createsecretresponse.md diff --git a/libs/clients/go/docs/models/operations/createtransactionrequest.md b/releases/sdks/go/docs/models/operations/createtransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/createtransactionrequest.md rename to releases/sdks/go/docs/models/operations/createtransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/createtransactionresponse.md b/releases/sdks/go/docs/models/operations/createtransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createtransactionresponse.md rename to releases/sdks/go/docs/models/operations/createtransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/createtransactionsrequest.md b/releases/sdks/go/docs/models/operations/createtransactionsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/createtransactionsrequest.md rename to releases/sdks/go/docs/models/operations/createtransactionsrequest.md diff --git a/libs/clients/go/docs/models/operations/createtransactionsresponse.md b/releases/sdks/go/docs/models/operations/createtransactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createtransactionsresponse.md rename to releases/sdks/go/docs/models/operations/createtransactionsresponse.md diff --git a/libs/clients/go/docs/models/operations/createtransferinitiationresponse.md b/releases/sdks/go/docs/models/operations/createtransferinitiationresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createtransferinitiationresponse.md rename to releases/sdks/go/docs/models/operations/createtransferinitiationresponse.md diff --git a/libs/clients/go/docs/models/operations/createtriggerresponse.md b/releases/sdks/go/docs/models/operations/createtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createtriggerresponse.md rename to releases/sdks/go/docs/models/operations/createtriggerresponse.md diff --git a/libs/clients/go/docs/models/operations/createwalletresponse.md b/releases/sdks/go/docs/models/operations/createwalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createwalletresponse.md rename to releases/sdks/go/docs/models/operations/createwalletresponse.md diff --git a/libs/clients/go/docs/models/operations/createworkflowresponse.md b/releases/sdks/go/docs/models/operations/createworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/createworkflowresponse.md rename to releases/sdks/go/docs/models/operations/createworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/creditwalletrequest.md b/releases/sdks/go/docs/models/operations/creditwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/creditwalletrequest.md rename to releases/sdks/go/docs/models/operations/creditwalletrequest.md diff --git a/libs/clients/go/docs/models/operations/creditwalletresponse.md b/releases/sdks/go/docs/models/operations/creditwalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/creditwalletresponse.md rename to releases/sdks/go/docs/models/operations/creditwalletresponse.md diff --git a/libs/clients/go/docs/models/operations/deactivateconfigrequest.md b/releases/sdks/go/docs/models/operations/deactivateconfigrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deactivateconfigrequest.md rename to releases/sdks/go/docs/models/operations/deactivateconfigrequest.md diff --git a/libs/clients/go/docs/models/operations/deactivateconfigresponse.md b/releases/sdks/go/docs/models/operations/deactivateconfigresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deactivateconfigresponse.md rename to releases/sdks/go/docs/models/operations/deactivateconfigresponse.md diff --git a/libs/clients/go/docs/models/operations/debitwalletrequest.md b/releases/sdks/go/docs/models/operations/debitwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/debitwalletrequest.md rename to releases/sdks/go/docs/models/operations/debitwalletrequest.md diff --git a/libs/clients/go/docs/models/operations/debitwalletresponse.md b/releases/sdks/go/docs/models/operations/debitwalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/debitwalletresponse.md rename to releases/sdks/go/docs/models/operations/debitwalletresponse.md diff --git a/libs/clients/go/docs/models/operations/deleteclientrequest.md b/releases/sdks/go/docs/models/operations/deleteclientrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deleteclientrequest.md rename to releases/sdks/go/docs/models/operations/deleteclientrequest.md diff --git a/libs/clients/go/docs/models/operations/deleteclientresponse.md b/releases/sdks/go/docs/models/operations/deleteclientresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deleteclientresponse.md rename to releases/sdks/go/docs/models/operations/deleteclientresponse.md diff --git a/libs/clients/go/docs/models/operations/deleteconfigrequest.md b/releases/sdks/go/docs/models/operations/deleteconfigrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deleteconfigrequest.md rename to releases/sdks/go/docs/models/operations/deleteconfigrequest.md diff --git a/libs/clients/go/docs/models/operations/deleteconfigresponse.md b/releases/sdks/go/docs/models/operations/deleteconfigresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deleteconfigresponse.md rename to releases/sdks/go/docs/models/operations/deleteconfigresponse.md diff --git a/libs/clients/go/docs/models/operations/deletepolicyrequest.md b/releases/sdks/go/docs/models/operations/deletepolicyrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletepolicyrequest.md rename to releases/sdks/go/docs/models/operations/deletepolicyrequest.md diff --git a/libs/clients/go/docs/models/operations/deletepolicyresponse.md b/releases/sdks/go/docs/models/operations/deletepolicyresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletepolicyresponse.md rename to releases/sdks/go/docs/models/operations/deletepolicyresponse.md diff --git a/libs/clients/go/docs/models/operations/deletepoolrequest.md b/releases/sdks/go/docs/models/operations/deletepoolrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletepoolrequest.md rename to releases/sdks/go/docs/models/operations/deletepoolrequest.md diff --git a/libs/clients/go/docs/models/operations/deletepoolresponse.md b/releases/sdks/go/docs/models/operations/deletepoolresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletepoolresponse.md rename to releases/sdks/go/docs/models/operations/deletepoolresponse.md diff --git a/libs/clients/go/docs/models/operations/deletesecretrequest.md b/releases/sdks/go/docs/models/operations/deletesecretrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletesecretrequest.md rename to releases/sdks/go/docs/models/operations/deletesecretrequest.md diff --git a/libs/clients/go/docs/models/operations/deletesecretresponse.md b/releases/sdks/go/docs/models/operations/deletesecretresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletesecretresponse.md rename to releases/sdks/go/docs/models/operations/deletesecretresponse.md diff --git a/libs/clients/go/docs/models/operations/deletetransferinitiationrequest.md b/releases/sdks/go/docs/models/operations/deletetransferinitiationrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletetransferinitiationrequest.md rename to releases/sdks/go/docs/models/operations/deletetransferinitiationrequest.md diff --git a/libs/clients/go/docs/models/operations/deletetransferinitiationresponse.md b/releases/sdks/go/docs/models/operations/deletetransferinitiationresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletetransferinitiationresponse.md rename to releases/sdks/go/docs/models/operations/deletetransferinitiationresponse.md diff --git a/libs/clients/go/docs/models/operations/deletetriggerrequest.md b/releases/sdks/go/docs/models/operations/deletetriggerrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletetriggerrequest.md rename to releases/sdks/go/docs/models/operations/deletetriggerrequest.md diff --git a/libs/clients/go/docs/models/operations/deletetriggerresponse.md b/releases/sdks/go/docs/models/operations/deletetriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deletetriggerresponse.md rename to releases/sdks/go/docs/models/operations/deletetriggerresponse.md diff --git a/libs/clients/go/docs/models/operations/deleteworkflowrequest.md b/releases/sdks/go/docs/models/operations/deleteworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/deleteworkflowrequest.md rename to releases/sdks/go/docs/models/operations/deleteworkflowrequest.md diff --git a/libs/clients/go/docs/models/operations/deleteworkflowresponse.md b/releases/sdks/go/docs/models/operations/deleteworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/deleteworkflowresponse.md rename to releases/sdks/go/docs/models/operations/deleteworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/getaccountbalancesrequest.md b/releases/sdks/go/docs/models/operations/getaccountbalancesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getaccountbalancesrequest.md rename to releases/sdks/go/docs/models/operations/getaccountbalancesrequest.md diff --git a/libs/clients/go/docs/models/operations/getaccountbalancesresponse.md b/releases/sdks/go/docs/models/operations/getaccountbalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getaccountbalancesresponse.md rename to releases/sdks/go/docs/models/operations/getaccountbalancesresponse.md diff --git a/libs/clients/go/docs/models/operations/getaccountrequest.md b/releases/sdks/go/docs/models/operations/getaccountrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getaccountrequest.md rename to releases/sdks/go/docs/models/operations/getaccountrequest.md diff --git a/libs/clients/go/docs/models/operations/getaccountresponse.md b/releases/sdks/go/docs/models/operations/getaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getaccountresponse.md rename to releases/sdks/go/docs/models/operations/getaccountresponse.md diff --git a/libs/clients/go/docs/models/operations/getapiauthwellknownopenidconfigurationresponse.md b/releases/sdks/go/docs/models/operations/getapiauthwellknownopenidconfigurationresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getapiauthwellknownopenidconfigurationresponse.md rename to releases/sdks/go/docs/models/operations/getapiauthwellknownopenidconfigurationresponse.md diff --git a/libs/clients/go/docs/models/operations/getbalancerequest.md b/releases/sdks/go/docs/models/operations/getbalancerequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbalancerequest.md rename to releases/sdks/go/docs/models/operations/getbalancerequest.md diff --git a/libs/clients/go/docs/models/operations/getbalanceresponse.md b/releases/sdks/go/docs/models/operations/getbalanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbalanceresponse.md rename to releases/sdks/go/docs/models/operations/getbalanceresponse.md diff --git a/libs/clients/go/docs/models/operations/getbalancesaggregatedrequest.md b/releases/sdks/go/docs/models/operations/getbalancesaggregatedrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbalancesaggregatedrequest.md rename to releases/sdks/go/docs/models/operations/getbalancesaggregatedrequest.md diff --git a/libs/clients/go/docs/models/operations/getbalancesaggregatedresponse.md b/releases/sdks/go/docs/models/operations/getbalancesaggregatedresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbalancesaggregatedresponse.md rename to releases/sdks/go/docs/models/operations/getbalancesaggregatedresponse.md diff --git a/libs/clients/go/docs/models/operations/getbalancesrequest.md b/releases/sdks/go/docs/models/operations/getbalancesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbalancesrequest.md rename to releases/sdks/go/docs/models/operations/getbalancesrequest.md diff --git a/libs/clients/go/docs/models/operations/getbalancesresponse.md b/releases/sdks/go/docs/models/operations/getbalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbalancesresponse.md rename to releases/sdks/go/docs/models/operations/getbalancesresponse.md diff --git a/libs/clients/go/docs/models/operations/getbankaccountrequest.md b/releases/sdks/go/docs/models/operations/getbankaccountrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbankaccountrequest.md rename to releases/sdks/go/docs/models/operations/getbankaccountrequest.md diff --git a/libs/clients/go/docs/models/operations/getbankaccountresponse.md b/releases/sdks/go/docs/models/operations/getbankaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getbankaccountresponse.md rename to releases/sdks/go/docs/models/operations/getbankaccountresponse.md diff --git a/libs/clients/go/docs/models/operations/getconnectortaskrequest.md b/releases/sdks/go/docs/models/operations/getconnectortaskrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getconnectortaskrequest.md rename to releases/sdks/go/docs/models/operations/getconnectortaskrequest.md diff --git a/libs/clients/go/docs/models/operations/getconnectortaskresponse.md b/releases/sdks/go/docs/models/operations/getconnectortaskresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getconnectortaskresponse.md rename to releases/sdks/go/docs/models/operations/getconnectortaskresponse.md diff --git a/libs/clients/go/docs/models/operations/getconnectortaskv1request.md b/releases/sdks/go/docs/models/operations/getconnectortaskv1request.md similarity index 100% rename from libs/clients/go/docs/models/operations/getconnectortaskv1request.md rename to releases/sdks/go/docs/models/operations/getconnectortaskv1request.md diff --git a/libs/clients/go/docs/models/operations/getconnectortaskv1response.md b/releases/sdks/go/docs/models/operations/getconnectortaskv1response.md similarity index 100% rename from libs/clients/go/docs/models/operations/getconnectortaskv1response.md rename to releases/sdks/go/docs/models/operations/getconnectortaskv1response.md diff --git a/libs/clients/go/docs/models/operations/getholdrequest.md b/releases/sdks/go/docs/models/operations/getholdrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getholdrequest.md rename to releases/sdks/go/docs/models/operations/getholdrequest.md diff --git a/libs/clients/go/docs/models/operations/getholdresponse.md b/releases/sdks/go/docs/models/operations/getholdresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getholdresponse.md rename to releases/sdks/go/docs/models/operations/getholdresponse.md diff --git a/libs/clients/go/docs/models/operations/getholdsrequest.md b/releases/sdks/go/docs/models/operations/getholdsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getholdsrequest.md rename to releases/sdks/go/docs/models/operations/getholdsrequest.md diff --git a/libs/clients/go/docs/models/operations/getholdsresponse.md b/releases/sdks/go/docs/models/operations/getholdsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getholdsresponse.md rename to releases/sdks/go/docs/models/operations/getholdsresponse.md diff --git a/libs/clients/go/docs/models/operations/getinforesponse.md b/releases/sdks/go/docs/models/operations/getinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getinforesponse.md rename to releases/sdks/go/docs/models/operations/getinforesponse.md diff --git a/libs/clients/go/docs/models/operations/getinstancehistoryrequest.md b/releases/sdks/go/docs/models/operations/getinstancehistoryrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getinstancehistoryrequest.md rename to releases/sdks/go/docs/models/operations/getinstancehistoryrequest.md diff --git a/libs/clients/go/docs/models/operations/getinstancehistoryresponse.md b/releases/sdks/go/docs/models/operations/getinstancehistoryresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getinstancehistoryresponse.md rename to releases/sdks/go/docs/models/operations/getinstancehistoryresponse.md diff --git a/libs/clients/go/docs/models/operations/getinstancerequest.md b/releases/sdks/go/docs/models/operations/getinstancerequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getinstancerequest.md rename to releases/sdks/go/docs/models/operations/getinstancerequest.md diff --git a/libs/clients/go/docs/models/operations/getinstanceresponse.md b/releases/sdks/go/docs/models/operations/getinstanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getinstanceresponse.md rename to releases/sdks/go/docs/models/operations/getinstanceresponse.md diff --git a/libs/clients/go/docs/models/operations/getinstancestagehistoryrequest.md b/releases/sdks/go/docs/models/operations/getinstancestagehistoryrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getinstancestagehistoryrequest.md rename to releases/sdks/go/docs/models/operations/getinstancestagehistoryrequest.md diff --git a/libs/clients/go/docs/models/operations/getinstancestagehistoryresponse.md b/releases/sdks/go/docs/models/operations/getinstancestagehistoryresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getinstancestagehistoryresponse.md rename to releases/sdks/go/docs/models/operations/getinstancestagehistoryresponse.md diff --git a/libs/clients/go/docs/models/operations/getledgerinforequest.md b/releases/sdks/go/docs/models/operations/getledgerinforequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getledgerinforequest.md rename to releases/sdks/go/docs/models/operations/getledgerinforequest.md diff --git a/libs/clients/go/docs/models/operations/getledgerinforesponse.md b/releases/sdks/go/docs/models/operations/getledgerinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getledgerinforesponse.md rename to releases/sdks/go/docs/models/operations/getledgerinforesponse.md diff --git a/libs/clients/go/docs/models/operations/getmanyconfigsrequest.md b/releases/sdks/go/docs/models/operations/getmanyconfigsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getmanyconfigsrequest.md rename to releases/sdks/go/docs/models/operations/getmanyconfigsrequest.md diff --git a/libs/clients/go/docs/models/operations/getmanyconfigsresponse.md b/releases/sdks/go/docs/models/operations/getmanyconfigsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getmanyconfigsresponse.md rename to releases/sdks/go/docs/models/operations/getmanyconfigsresponse.md diff --git a/libs/clients/go/docs/models/operations/getmappingrequest.md b/releases/sdks/go/docs/models/operations/getmappingrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getmappingrequest.md rename to releases/sdks/go/docs/models/operations/getmappingrequest.md diff --git a/libs/clients/go/docs/models/operations/getmappingresponse.md b/releases/sdks/go/docs/models/operations/getmappingresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getmappingresponse.md rename to releases/sdks/go/docs/models/operations/getmappingresponse.md diff --git a/libs/clients/go/docs/models/operations/getpaymentrequest.md b/releases/sdks/go/docs/models/operations/getpaymentrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpaymentrequest.md rename to releases/sdks/go/docs/models/operations/getpaymentrequest.md diff --git a/libs/clients/go/docs/models/operations/getpaymentresponse.md b/releases/sdks/go/docs/models/operations/getpaymentresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpaymentresponse.md rename to releases/sdks/go/docs/models/operations/getpaymentresponse.md diff --git a/libs/clients/go/docs/models/operations/getpolicyrequest.md b/releases/sdks/go/docs/models/operations/getpolicyrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpolicyrequest.md rename to releases/sdks/go/docs/models/operations/getpolicyrequest.md diff --git a/libs/clients/go/docs/models/operations/getpolicyresponse.md b/releases/sdks/go/docs/models/operations/getpolicyresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpolicyresponse.md rename to releases/sdks/go/docs/models/operations/getpolicyresponse.md diff --git a/libs/clients/go/docs/models/operations/getpoolbalancesrequest.md b/releases/sdks/go/docs/models/operations/getpoolbalancesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpoolbalancesrequest.md rename to releases/sdks/go/docs/models/operations/getpoolbalancesrequest.md diff --git a/libs/clients/go/docs/models/operations/getpoolbalancesresponse.md b/releases/sdks/go/docs/models/operations/getpoolbalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpoolbalancesresponse.md rename to releases/sdks/go/docs/models/operations/getpoolbalancesresponse.md diff --git a/libs/clients/go/docs/models/operations/getpoolrequest.md b/releases/sdks/go/docs/models/operations/getpoolrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpoolrequest.md rename to releases/sdks/go/docs/models/operations/getpoolrequest.md diff --git a/libs/clients/go/docs/models/operations/getpoolresponse.md b/releases/sdks/go/docs/models/operations/getpoolresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getpoolresponse.md rename to releases/sdks/go/docs/models/operations/getpoolresponse.md diff --git a/libs/clients/go/docs/models/operations/getreconciliationrequest.md b/releases/sdks/go/docs/models/operations/getreconciliationrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getreconciliationrequest.md rename to releases/sdks/go/docs/models/operations/getreconciliationrequest.md diff --git a/libs/clients/go/docs/models/operations/getreconciliationresponse.md b/releases/sdks/go/docs/models/operations/getreconciliationresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getreconciliationresponse.md rename to releases/sdks/go/docs/models/operations/getreconciliationresponse.md diff --git a/libs/clients/go/docs/models/operations/getserverinforesponse.md b/releases/sdks/go/docs/models/operations/getserverinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getserverinforesponse.md rename to releases/sdks/go/docs/models/operations/getserverinforesponse.md diff --git a/libs/clients/go/docs/models/operations/gettransactionrequest.md b/releases/sdks/go/docs/models/operations/gettransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/gettransactionrequest.md rename to releases/sdks/go/docs/models/operations/gettransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/gettransactionresponse.md b/releases/sdks/go/docs/models/operations/gettransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/gettransactionresponse.md rename to releases/sdks/go/docs/models/operations/gettransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/gettransactionsrequest.md b/releases/sdks/go/docs/models/operations/gettransactionsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/gettransactionsrequest.md rename to releases/sdks/go/docs/models/operations/gettransactionsrequest.md diff --git a/libs/clients/go/docs/models/operations/gettransactionsresponse.md b/releases/sdks/go/docs/models/operations/gettransactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/gettransactionsresponse.md rename to releases/sdks/go/docs/models/operations/gettransactionsresponse.md diff --git a/libs/clients/go/docs/models/operations/gettransferinitiationrequest.md b/releases/sdks/go/docs/models/operations/gettransferinitiationrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/gettransferinitiationrequest.md rename to releases/sdks/go/docs/models/operations/gettransferinitiationrequest.md diff --git a/libs/clients/go/docs/models/operations/gettransferinitiationresponse.md b/releases/sdks/go/docs/models/operations/gettransferinitiationresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/gettransferinitiationresponse.md rename to releases/sdks/go/docs/models/operations/gettransferinitiationresponse.md diff --git a/libs/clients/go/docs/models/operations/getversionsresponse.md b/releases/sdks/go/docs/models/operations/getversionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getversionsresponse.md rename to releases/sdks/go/docs/models/operations/getversionsresponse.md diff --git a/libs/clients/go/docs/models/operations/getwalletrequest.md b/releases/sdks/go/docs/models/operations/getwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getwalletrequest.md rename to releases/sdks/go/docs/models/operations/getwalletrequest.md diff --git a/libs/clients/go/docs/models/operations/getwalletresponse.md b/releases/sdks/go/docs/models/operations/getwalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getwalletresponse.md rename to releases/sdks/go/docs/models/operations/getwalletresponse.md diff --git a/libs/clients/go/docs/models/operations/getwalletsummaryrequest.md b/releases/sdks/go/docs/models/operations/getwalletsummaryrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getwalletsummaryrequest.md rename to releases/sdks/go/docs/models/operations/getwalletsummaryrequest.md diff --git a/libs/clients/go/docs/models/operations/getwalletsummaryresponse.md b/releases/sdks/go/docs/models/operations/getwalletsummaryresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getwalletsummaryresponse.md rename to releases/sdks/go/docs/models/operations/getwalletsummaryresponse.md diff --git a/libs/clients/go/docs/models/operations/getworkflowrequest.md b/releases/sdks/go/docs/models/operations/getworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/getworkflowrequest.md rename to releases/sdks/go/docs/models/operations/getworkflowrequest.md diff --git a/libs/clients/go/docs/models/operations/getworkflowresponse.md b/releases/sdks/go/docs/models/operations/getworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/getworkflowresponse.md rename to releases/sdks/go/docs/models/operations/getworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/insertconfigresponse.md b/releases/sdks/go/docs/models/operations/insertconfigresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/insertconfigresponse.md rename to releases/sdks/go/docs/models/operations/insertconfigresponse.md diff --git a/libs/clients/go/docs/models/operations/installconnectorrequest.md b/releases/sdks/go/docs/models/operations/installconnectorrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/installconnectorrequest.md rename to releases/sdks/go/docs/models/operations/installconnectorrequest.md diff --git a/libs/clients/go/docs/models/operations/installconnectorresponse.md b/releases/sdks/go/docs/models/operations/installconnectorresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/installconnectorresponse.md rename to releases/sdks/go/docs/models/operations/installconnectorresponse.md diff --git a/libs/clients/go/docs/models/operations/listaccountsrequest.md b/releases/sdks/go/docs/models/operations/listaccountsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listaccountsrequest.md rename to releases/sdks/go/docs/models/operations/listaccountsrequest.md diff --git a/libs/clients/go/docs/models/operations/listaccountsresponse.md b/releases/sdks/go/docs/models/operations/listaccountsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listaccountsresponse.md rename to releases/sdks/go/docs/models/operations/listaccountsresponse.md diff --git a/libs/clients/go/docs/models/operations/listallconnectorsresponse.md b/releases/sdks/go/docs/models/operations/listallconnectorsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listallconnectorsresponse.md rename to releases/sdks/go/docs/models/operations/listallconnectorsresponse.md diff --git a/libs/clients/go/docs/models/operations/listbalancesrequest.md b/releases/sdks/go/docs/models/operations/listbalancesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listbalancesrequest.md rename to releases/sdks/go/docs/models/operations/listbalancesrequest.md diff --git a/libs/clients/go/docs/models/operations/listbalancesresponse.md b/releases/sdks/go/docs/models/operations/listbalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listbalancesresponse.md rename to releases/sdks/go/docs/models/operations/listbalancesresponse.md diff --git a/libs/clients/go/docs/models/operations/listbankaccountsrequest.md b/releases/sdks/go/docs/models/operations/listbankaccountsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listbankaccountsrequest.md rename to releases/sdks/go/docs/models/operations/listbankaccountsrequest.md diff --git a/libs/clients/go/docs/models/operations/listbankaccountsresponse.md b/releases/sdks/go/docs/models/operations/listbankaccountsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listbankaccountsresponse.md rename to releases/sdks/go/docs/models/operations/listbankaccountsresponse.md diff --git a/libs/clients/go/docs/models/operations/listclientsresponse.md b/releases/sdks/go/docs/models/operations/listclientsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listclientsresponse.md rename to releases/sdks/go/docs/models/operations/listclientsresponse.md diff --git a/libs/clients/go/docs/models/operations/listconfigsavailableconnectorsresponse.md b/releases/sdks/go/docs/models/operations/listconfigsavailableconnectorsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listconfigsavailableconnectorsresponse.md rename to releases/sdks/go/docs/models/operations/listconfigsavailableconnectorsresponse.md diff --git a/libs/clients/go/docs/models/operations/listconnectortasksrequest.md b/releases/sdks/go/docs/models/operations/listconnectortasksrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listconnectortasksrequest.md rename to releases/sdks/go/docs/models/operations/listconnectortasksrequest.md diff --git a/libs/clients/go/docs/models/operations/listconnectortasksresponse.md b/releases/sdks/go/docs/models/operations/listconnectortasksresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listconnectortasksresponse.md rename to releases/sdks/go/docs/models/operations/listconnectortasksresponse.md diff --git a/libs/clients/go/docs/models/operations/listconnectortasksv1request.md b/releases/sdks/go/docs/models/operations/listconnectortasksv1request.md similarity index 100% rename from libs/clients/go/docs/models/operations/listconnectortasksv1request.md rename to releases/sdks/go/docs/models/operations/listconnectortasksv1request.md diff --git a/libs/clients/go/docs/models/operations/listconnectortasksv1response.md b/releases/sdks/go/docs/models/operations/listconnectortasksv1response.md similarity index 100% rename from libs/clients/go/docs/models/operations/listconnectortasksv1response.md rename to releases/sdks/go/docs/models/operations/listconnectortasksv1response.md diff --git a/libs/clients/go/docs/models/operations/listinstancesrequest.md b/releases/sdks/go/docs/models/operations/listinstancesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listinstancesrequest.md rename to releases/sdks/go/docs/models/operations/listinstancesrequest.md diff --git a/libs/clients/go/docs/models/operations/listinstancesresponse.md b/releases/sdks/go/docs/models/operations/listinstancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listinstancesresponse.md rename to releases/sdks/go/docs/models/operations/listinstancesresponse.md diff --git a/libs/clients/go/docs/models/operations/listlogsrequest.md b/releases/sdks/go/docs/models/operations/listlogsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listlogsrequest.md rename to releases/sdks/go/docs/models/operations/listlogsrequest.md diff --git a/libs/clients/go/docs/models/operations/listlogsresponse.md b/releases/sdks/go/docs/models/operations/listlogsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listlogsresponse.md rename to releases/sdks/go/docs/models/operations/listlogsresponse.md diff --git a/libs/clients/go/docs/models/operations/listpaymentsrequest.md b/releases/sdks/go/docs/models/operations/listpaymentsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listpaymentsrequest.md rename to releases/sdks/go/docs/models/operations/listpaymentsrequest.md diff --git a/libs/clients/go/docs/models/operations/listpaymentsresponse.md b/releases/sdks/go/docs/models/operations/listpaymentsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listpaymentsresponse.md rename to releases/sdks/go/docs/models/operations/listpaymentsresponse.md diff --git a/libs/clients/go/docs/models/operations/listpoliciesrequest.md b/releases/sdks/go/docs/models/operations/listpoliciesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listpoliciesrequest.md rename to releases/sdks/go/docs/models/operations/listpoliciesrequest.md diff --git a/libs/clients/go/docs/models/operations/listpoliciesresponse.md b/releases/sdks/go/docs/models/operations/listpoliciesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listpoliciesresponse.md rename to releases/sdks/go/docs/models/operations/listpoliciesresponse.md diff --git a/libs/clients/go/docs/models/operations/listpoolsrequest.md b/releases/sdks/go/docs/models/operations/listpoolsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listpoolsrequest.md rename to releases/sdks/go/docs/models/operations/listpoolsrequest.md diff --git a/libs/clients/go/docs/models/operations/listpoolsresponse.md b/releases/sdks/go/docs/models/operations/listpoolsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listpoolsresponse.md rename to releases/sdks/go/docs/models/operations/listpoolsresponse.md diff --git a/libs/clients/go/docs/models/operations/listreconciliationsrequest.md b/releases/sdks/go/docs/models/operations/listreconciliationsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listreconciliationsrequest.md rename to releases/sdks/go/docs/models/operations/listreconciliationsrequest.md diff --git a/libs/clients/go/docs/models/operations/listreconciliationsresponse.md b/releases/sdks/go/docs/models/operations/listreconciliationsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listreconciliationsresponse.md rename to releases/sdks/go/docs/models/operations/listreconciliationsresponse.md diff --git a/libs/clients/go/docs/models/operations/listtransactionsrequest.md b/releases/sdks/go/docs/models/operations/listtransactionsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listtransactionsrequest.md rename to releases/sdks/go/docs/models/operations/listtransactionsrequest.md diff --git a/libs/clients/go/docs/models/operations/listtransactionsresponse.md b/releases/sdks/go/docs/models/operations/listtransactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listtransactionsresponse.md rename to releases/sdks/go/docs/models/operations/listtransactionsresponse.md diff --git a/libs/clients/go/docs/models/operations/listtransferinitiationsrequest.md b/releases/sdks/go/docs/models/operations/listtransferinitiationsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listtransferinitiationsrequest.md rename to releases/sdks/go/docs/models/operations/listtransferinitiationsrequest.md diff --git a/libs/clients/go/docs/models/operations/listtransferinitiationsresponse.md b/releases/sdks/go/docs/models/operations/listtransferinitiationsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listtransferinitiationsresponse.md rename to releases/sdks/go/docs/models/operations/listtransferinitiationsresponse.md diff --git a/libs/clients/go/docs/models/operations/listtriggersoccurrencesrequest.md b/releases/sdks/go/docs/models/operations/listtriggersoccurrencesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listtriggersoccurrencesrequest.md rename to releases/sdks/go/docs/models/operations/listtriggersoccurrencesrequest.md diff --git a/libs/clients/go/docs/models/operations/listtriggersoccurrencesresponse.md b/releases/sdks/go/docs/models/operations/listtriggersoccurrencesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listtriggersoccurrencesresponse.md rename to releases/sdks/go/docs/models/operations/listtriggersoccurrencesresponse.md diff --git a/libs/clients/go/docs/models/operations/listtriggersresponse.md b/releases/sdks/go/docs/models/operations/listtriggersresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listtriggersresponse.md rename to releases/sdks/go/docs/models/operations/listtriggersresponse.md diff --git a/libs/clients/go/docs/models/operations/listusersresponse.md b/releases/sdks/go/docs/models/operations/listusersresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listusersresponse.md rename to releases/sdks/go/docs/models/operations/listusersresponse.md diff --git a/libs/clients/go/docs/models/operations/listwalletsrequest.md b/releases/sdks/go/docs/models/operations/listwalletsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/listwalletsrequest.md rename to releases/sdks/go/docs/models/operations/listwalletsrequest.md diff --git a/libs/clients/go/docs/models/operations/listwalletsresponse.md b/releases/sdks/go/docs/models/operations/listwalletsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listwalletsresponse.md rename to releases/sdks/go/docs/models/operations/listwalletsresponse.md diff --git a/libs/clients/go/docs/models/operations/listworkflowsresponse.md b/releases/sdks/go/docs/models/operations/listworkflowsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/listworkflowsresponse.md rename to releases/sdks/go/docs/models/operations/listworkflowsresponse.md diff --git a/libs/clients/go/docs/models/operations/orchestrationgetserverinforesponse.md b/releases/sdks/go/docs/models/operations/orchestrationgetserverinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/orchestrationgetserverinforesponse.md rename to releases/sdks/go/docs/models/operations/orchestrationgetserverinforesponse.md diff --git a/libs/clients/go/docs/models/operations/paymentsgetaccountrequest.md b/releases/sdks/go/docs/models/operations/paymentsgetaccountrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/paymentsgetaccountrequest.md rename to releases/sdks/go/docs/models/operations/paymentsgetaccountrequest.md diff --git a/libs/clients/go/docs/models/operations/paymentsgetaccountresponse.md b/releases/sdks/go/docs/models/operations/paymentsgetaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/paymentsgetaccountresponse.md rename to releases/sdks/go/docs/models/operations/paymentsgetaccountresponse.md diff --git a/libs/clients/go/docs/models/operations/paymentsgetserverinforesponse.md b/releases/sdks/go/docs/models/operations/paymentsgetserverinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/paymentsgetserverinforesponse.md rename to releases/sdks/go/docs/models/operations/paymentsgetserverinforesponse.md diff --git a/libs/clients/go/docs/models/operations/paymentslistaccountsrequest.md b/releases/sdks/go/docs/models/operations/paymentslistaccountsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/paymentslistaccountsrequest.md rename to releases/sdks/go/docs/models/operations/paymentslistaccountsrequest.md diff --git a/libs/clients/go/docs/models/operations/paymentslistaccountsresponse.md b/releases/sdks/go/docs/models/operations/paymentslistaccountsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/paymentslistaccountsresponse.md rename to releases/sdks/go/docs/models/operations/paymentslistaccountsresponse.md diff --git a/libs/clients/go/docs/models/operations/readclientrequest.md b/releases/sdks/go/docs/models/operations/readclientrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/readclientrequest.md rename to releases/sdks/go/docs/models/operations/readclientrequest.md diff --git a/libs/clients/go/docs/models/operations/readclientresponse.md b/releases/sdks/go/docs/models/operations/readclientresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/readclientresponse.md rename to releases/sdks/go/docs/models/operations/readclientresponse.md diff --git a/libs/clients/go/docs/models/operations/readconnectorconfigrequest.md b/releases/sdks/go/docs/models/operations/readconnectorconfigrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/readconnectorconfigrequest.md rename to releases/sdks/go/docs/models/operations/readconnectorconfigrequest.md diff --git a/libs/clients/go/docs/models/operations/readconnectorconfigresponse.md b/releases/sdks/go/docs/models/operations/readconnectorconfigresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/readconnectorconfigresponse.md rename to releases/sdks/go/docs/models/operations/readconnectorconfigresponse.md diff --git a/libs/clients/go/docs/models/operations/readconnectorconfigv1request.md b/releases/sdks/go/docs/models/operations/readconnectorconfigv1request.md similarity index 100% rename from libs/clients/go/docs/models/operations/readconnectorconfigv1request.md rename to releases/sdks/go/docs/models/operations/readconnectorconfigv1request.md diff --git a/libs/clients/go/docs/models/operations/readconnectorconfigv1response.md b/releases/sdks/go/docs/models/operations/readconnectorconfigv1response.md similarity index 100% rename from libs/clients/go/docs/models/operations/readconnectorconfigv1response.md rename to releases/sdks/go/docs/models/operations/readconnectorconfigv1response.md diff --git a/libs/clients/go/docs/models/operations/readstatsrequest.md b/releases/sdks/go/docs/models/operations/readstatsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/readstatsrequest.md rename to releases/sdks/go/docs/models/operations/readstatsrequest.md diff --git a/libs/clients/go/docs/models/operations/readstatsresponse.md b/releases/sdks/go/docs/models/operations/readstatsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/readstatsresponse.md rename to releases/sdks/go/docs/models/operations/readstatsresponse.md diff --git a/libs/clients/go/docs/models/operations/readtriggerrequest.md b/releases/sdks/go/docs/models/operations/readtriggerrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/readtriggerrequest.md rename to releases/sdks/go/docs/models/operations/readtriggerrequest.md diff --git a/libs/clients/go/docs/models/operations/readtriggerresponse.md b/releases/sdks/go/docs/models/operations/readtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/readtriggerresponse.md rename to releases/sdks/go/docs/models/operations/readtriggerresponse.md diff --git a/libs/clients/go/docs/models/operations/readuserrequest.md b/releases/sdks/go/docs/models/operations/readuserrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/readuserrequest.md rename to releases/sdks/go/docs/models/operations/readuserrequest.md diff --git a/libs/clients/go/docs/models/operations/readuserresponse.md b/releases/sdks/go/docs/models/operations/readuserresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/readuserresponse.md rename to releases/sdks/go/docs/models/operations/readuserresponse.md diff --git a/libs/clients/go/docs/models/operations/reconcilerequest.md b/releases/sdks/go/docs/models/operations/reconcilerequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/reconcilerequest.md rename to releases/sdks/go/docs/models/operations/reconcilerequest.md diff --git a/libs/clients/go/docs/models/operations/reconcileresponse.md b/releases/sdks/go/docs/models/operations/reconcileresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/reconcileresponse.md rename to releases/sdks/go/docs/models/operations/reconcileresponse.md diff --git a/libs/clients/go/docs/models/operations/reconciliationgetserverinforesponse.md b/releases/sdks/go/docs/models/operations/reconciliationgetserverinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/reconciliationgetserverinforesponse.md rename to releases/sdks/go/docs/models/operations/reconciliationgetserverinforesponse.md diff --git a/libs/clients/go/docs/models/operations/removeaccountfrompoolrequest.md b/releases/sdks/go/docs/models/operations/removeaccountfrompoolrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/removeaccountfrompoolrequest.md rename to releases/sdks/go/docs/models/operations/removeaccountfrompoolrequest.md diff --git a/libs/clients/go/docs/models/operations/removeaccountfrompoolresponse.md b/releases/sdks/go/docs/models/operations/removeaccountfrompoolresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/removeaccountfrompoolresponse.md rename to releases/sdks/go/docs/models/operations/removeaccountfrompoolresponse.md diff --git a/libs/clients/go/docs/models/operations/resetconnectorrequest.md b/releases/sdks/go/docs/models/operations/resetconnectorrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/resetconnectorrequest.md rename to releases/sdks/go/docs/models/operations/resetconnectorrequest.md diff --git a/libs/clients/go/docs/models/operations/resetconnectorresponse.md b/releases/sdks/go/docs/models/operations/resetconnectorresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/resetconnectorresponse.md rename to releases/sdks/go/docs/models/operations/resetconnectorresponse.md diff --git a/libs/clients/go/docs/models/operations/resetconnectorv1request.md b/releases/sdks/go/docs/models/operations/resetconnectorv1request.md similarity index 100% rename from libs/clients/go/docs/models/operations/resetconnectorv1request.md rename to releases/sdks/go/docs/models/operations/resetconnectorv1request.md diff --git a/libs/clients/go/docs/models/operations/resetconnectorv1response.md b/releases/sdks/go/docs/models/operations/resetconnectorv1response.md similarity index 100% rename from libs/clients/go/docs/models/operations/resetconnectorv1response.md rename to releases/sdks/go/docs/models/operations/resetconnectorv1response.md diff --git a/libs/clients/go/docs/models/operations/retrytransferinitiationrequest.md b/releases/sdks/go/docs/models/operations/retrytransferinitiationrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/retrytransferinitiationrequest.md rename to releases/sdks/go/docs/models/operations/retrytransferinitiationrequest.md diff --git a/libs/clients/go/docs/models/operations/retrytransferinitiationresponse.md b/releases/sdks/go/docs/models/operations/retrytransferinitiationresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/retrytransferinitiationresponse.md rename to releases/sdks/go/docs/models/operations/retrytransferinitiationresponse.md diff --git a/libs/clients/go/docs/models/operations/reverttransactionrequest.md b/releases/sdks/go/docs/models/operations/reverttransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/reverttransactionrequest.md rename to releases/sdks/go/docs/models/operations/reverttransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/reverttransactionresponse.md b/releases/sdks/go/docs/models/operations/reverttransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/reverttransactionresponse.md rename to releases/sdks/go/docs/models/operations/reverttransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/runscriptrequest.md b/releases/sdks/go/docs/models/operations/runscriptrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/runscriptrequest.md rename to releases/sdks/go/docs/models/operations/runscriptrequest.md diff --git a/libs/clients/go/docs/models/operations/runscriptresponse.md b/releases/sdks/go/docs/models/operations/runscriptresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/runscriptresponse.md rename to releases/sdks/go/docs/models/operations/runscriptresponse.md diff --git a/libs/clients/go/docs/models/operations/runworkflowrequest.md b/releases/sdks/go/docs/models/operations/runworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/runworkflowrequest.md rename to releases/sdks/go/docs/models/operations/runworkflowrequest.md diff --git a/libs/clients/go/docs/models/operations/runworkflowresponse.md b/releases/sdks/go/docs/models/operations/runworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/runworkflowresponse.md rename to releases/sdks/go/docs/models/operations/runworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/searchgetserverinforesponse.md b/releases/sdks/go/docs/models/operations/searchgetserverinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/searchgetserverinforesponse.md rename to releases/sdks/go/docs/models/operations/searchgetserverinforesponse.md diff --git a/libs/clients/go/docs/models/operations/searchresponse.md b/releases/sdks/go/docs/models/operations/searchresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/searchresponse.md rename to releases/sdks/go/docs/models/operations/searchresponse.md diff --git a/libs/clients/go/docs/models/operations/sendeventrequest.md b/releases/sdks/go/docs/models/operations/sendeventrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/sendeventrequest.md rename to releases/sdks/go/docs/models/operations/sendeventrequest.md diff --git a/libs/clients/go/docs/models/operations/sendeventrequestbody.md b/releases/sdks/go/docs/models/operations/sendeventrequestbody.md similarity index 100% rename from libs/clients/go/docs/models/operations/sendeventrequestbody.md rename to releases/sdks/go/docs/models/operations/sendeventrequestbody.md diff --git a/libs/clients/go/docs/models/operations/sendeventresponse.md b/releases/sdks/go/docs/models/operations/sendeventresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/sendeventresponse.md rename to releases/sdks/go/docs/models/operations/sendeventresponse.md diff --git a/libs/clients/go/docs/models/operations/testconfigrequest.md b/releases/sdks/go/docs/models/operations/testconfigrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/testconfigrequest.md rename to releases/sdks/go/docs/models/operations/testconfigrequest.md diff --git a/libs/clients/go/docs/models/operations/testconfigresponse.md b/releases/sdks/go/docs/models/operations/testconfigresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/testconfigresponse.md rename to releases/sdks/go/docs/models/operations/testconfigresponse.md diff --git a/libs/clients/go/docs/models/operations/testtriggerrequest.md b/releases/sdks/go/docs/models/operations/testtriggerrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/testtriggerrequest.md rename to releases/sdks/go/docs/models/operations/testtriggerrequest.md diff --git a/libs/clients/go/docs/models/operations/testtriggerresponse.md b/releases/sdks/go/docs/models/operations/testtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/testtriggerresponse.md rename to releases/sdks/go/docs/models/operations/testtriggerresponse.md diff --git a/libs/clients/go/docs/models/operations/udpatetransferinitiationstatusrequest.md b/releases/sdks/go/docs/models/operations/udpatetransferinitiationstatusrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/udpatetransferinitiationstatusrequest.md rename to releases/sdks/go/docs/models/operations/udpatetransferinitiationstatusrequest.md diff --git a/libs/clients/go/docs/models/operations/udpatetransferinitiationstatusresponse.md b/releases/sdks/go/docs/models/operations/udpatetransferinitiationstatusresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/udpatetransferinitiationstatusresponse.md rename to releases/sdks/go/docs/models/operations/udpatetransferinitiationstatusresponse.md diff --git a/libs/clients/go/docs/models/operations/uninstallconnectorrequest.md b/releases/sdks/go/docs/models/operations/uninstallconnectorrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/uninstallconnectorrequest.md rename to releases/sdks/go/docs/models/operations/uninstallconnectorrequest.md diff --git a/libs/clients/go/docs/models/operations/uninstallconnectorresponse.md b/releases/sdks/go/docs/models/operations/uninstallconnectorresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/uninstallconnectorresponse.md rename to releases/sdks/go/docs/models/operations/uninstallconnectorresponse.md diff --git a/libs/clients/go/docs/models/operations/uninstallconnectorv1request.md b/releases/sdks/go/docs/models/operations/uninstallconnectorv1request.md similarity index 100% rename from libs/clients/go/docs/models/operations/uninstallconnectorv1request.md rename to releases/sdks/go/docs/models/operations/uninstallconnectorv1request.md diff --git a/libs/clients/go/docs/models/operations/uninstallconnectorv1response.md b/releases/sdks/go/docs/models/operations/uninstallconnectorv1response.md similarity index 100% rename from libs/clients/go/docs/models/operations/uninstallconnectorv1response.md rename to releases/sdks/go/docs/models/operations/uninstallconnectorv1response.md diff --git a/libs/clients/go/docs/models/operations/updateclientrequest.md b/releases/sdks/go/docs/models/operations/updateclientrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/updateclientrequest.md rename to releases/sdks/go/docs/models/operations/updateclientrequest.md diff --git a/libs/clients/go/docs/models/operations/updateclientresponse.md b/releases/sdks/go/docs/models/operations/updateclientresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/updateclientresponse.md rename to releases/sdks/go/docs/models/operations/updateclientresponse.md diff --git a/libs/clients/go/docs/models/operations/updateconnectorconfigv1request.md b/releases/sdks/go/docs/models/operations/updateconnectorconfigv1request.md similarity index 100% rename from libs/clients/go/docs/models/operations/updateconnectorconfigv1request.md rename to releases/sdks/go/docs/models/operations/updateconnectorconfigv1request.md diff --git a/libs/clients/go/docs/models/operations/updateconnectorconfigv1response.md b/releases/sdks/go/docs/models/operations/updateconnectorconfigv1response.md similarity index 100% rename from libs/clients/go/docs/models/operations/updateconnectorconfigv1response.md rename to releases/sdks/go/docs/models/operations/updateconnectorconfigv1response.md diff --git a/libs/clients/go/docs/models/operations/updatemappingrequest.md b/releases/sdks/go/docs/models/operations/updatemappingrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/updatemappingrequest.md rename to releases/sdks/go/docs/models/operations/updatemappingrequest.md diff --git a/libs/clients/go/docs/models/operations/updatemappingresponse.md b/releases/sdks/go/docs/models/operations/updatemappingresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/updatemappingresponse.md rename to releases/sdks/go/docs/models/operations/updatemappingresponse.md diff --git a/libs/clients/go/docs/models/operations/updatemetadatarequest.md b/releases/sdks/go/docs/models/operations/updatemetadatarequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/updatemetadatarequest.md rename to releases/sdks/go/docs/models/operations/updatemetadatarequest.md diff --git a/libs/clients/go/docs/models/operations/updatemetadataresponse.md b/releases/sdks/go/docs/models/operations/updatemetadataresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/updatemetadataresponse.md rename to releases/sdks/go/docs/models/operations/updatemetadataresponse.md diff --git a/libs/clients/go/docs/models/operations/updatewalletrequest.md b/releases/sdks/go/docs/models/operations/updatewalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/updatewalletrequest.md rename to releases/sdks/go/docs/models/operations/updatewalletrequest.md diff --git a/libs/clients/go/docs/models/operations/updatewalletrequestbody.md b/releases/sdks/go/docs/models/operations/updatewalletrequestbody.md similarity index 100% rename from libs/clients/go/docs/models/operations/updatewalletrequestbody.md rename to releases/sdks/go/docs/models/operations/updatewalletrequestbody.md diff --git a/libs/clients/go/docs/models/operations/updatewalletresponse.md b/releases/sdks/go/docs/models/operations/updatewalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/updatewalletresponse.md rename to releases/sdks/go/docs/models/operations/updatewalletresponse.md diff --git a/libs/clients/go/docs/models/operations/v2addmetadataontransactionrequest.md b/releases/sdks/go/docs/models/operations/v2addmetadataontransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2addmetadataontransactionrequest.md rename to releases/sdks/go/docs/models/operations/v2addmetadataontransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/v2addmetadataontransactionresponse.md b/releases/sdks/go/docs/models/operations/v2addmetadataontransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2addmetadataontransactionresponse.md rename to releases/sdks/go/docs/models/operations/v2addmetadataontransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/v2addmetadatatoaccountrequest.md b/releases/sdks/go/docs/models/operations/v2addmetadatatoaccountrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2addmetadatatoaccountrequest.md rename to releases/sdks/go/docs/models/operations/v2addmetadatatoaccountrequest.md diff --git a/libs/clients/go/docs/models/operations/v2addmetadatatoaccountresponse.md b/releases/sdks/go/docs/models/operations/v2addmetadatatoaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2addmetadatatoaccountresponse.md rename to releases/sdks/go/docs/models/operations/v2addmetadatatoaccountresponse.md diff --git a/libs/clients/go/docs/models/operations/v2canceleventrequest.md b/releases/sdks/go/docs/models/operations/v2canceleventrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2canceleventrequest.md rename to releases/sdks/go/docs/models/operations/v2canceleventrequest.md diff --git a/libs/clients/go/docs/models/operations/v2canceleventresponse.md b/releases/sdks/go/docs/models/operations/v2canceleventresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2canceleventresponse.md rename to releases/sdks/go/docs/models/operations/v2canceleventresponse.md diff --git a/libs/clients/go/docs/models/operations/v2countaccountsrequest.md b/releases/sdks/go/docs/models/operations/v2countaccountsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2countaccountsrequest.md rename to releases/sdks/go/docs/models/operations/v2countaccountsrequest.md diff --git a/libs/clients/go/docs/models/operations/v2countaccountsresponse.md b/releases/sdks/go/docs/models/operations/v2countaccountsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2countaccountsresponse.md rename to releases/sdks/go/docs/models/operations/v2countaccountsresponse.md diff --git a/libs/clients/go/docs/models/operations/v2counttransactionsrequest.md b/releases/sdks/go/docs/models/operations/v2counttransactionsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2counttransactionsrequest.md rename to releases/sdks/go/docs/models/operations/v2counttransactionsrequest.md diff --git a/libs/clients/go/docs/models/operations/v2counttransactionsresponse.md b/releases/sdks/go/docs/models/operations/v2counttransactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2counttransactionsresponse.md rename to releases/sdks/go/docs/models/operations/v2counttransactionsresponse.md diff --git a/libs/clients/go/docs/models/operations/v2createbulkrequest.md b/releases/sdks/go/docs/models/operations/v2createbulkrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createbulkrequest.md rename to releases/sdks/go/docs/models/operations/v2createbulkrequest.md diff --git a/libs/clients/go/docs/models/operations/v2createbulkresponse.md b/releases/sdks/go/docs/models/operations/v2createbulkresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createbulkresponse.md rename to releases/sdks/go/docs/models/operations/v2createbulkresponse.md diff --git a/libs/clients/go/docs/models/operations/v2createledgerrequest.md b/releases/sdks/go/docs/models/operations/v2createledgerrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createledgerrequest.md rename to releases/sdks/go/docs/models/operations/v2createledgerrequest.md diff --git a/libs/clients/go/docs/models/operations/v2createledgerresponse.md b/releases/sdks/go/docs/models/operations/v2createledgerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createledgerresponse.md rename to releases/sdks/go/docs/models/operations/v2createledgerresponse.md diff --git a/libs/clients/go/docs/models/operations/v2createtransactionrequest.md b/releases/sdks/go/docs/models/operations/v2createtransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createtransactionrequest.md rename to releases/sdks/go/docs/models/operations/v2createtransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/v2createtransactionresponse.md b/releases/sdks/go/docs/models/operations/v2createtransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createtransactionresponse.md rename to releases/sdks/go/docs/models/operations/v2createtransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/v2createtriggerresponse.md b/releases/sdks/go/docs/models/operations/v2createtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createtriggerresponse.md rename to releases/sdks/go/docs/models/operations/v2createtriggerresponse.md diff --git a/libs/clients/go/docs/models/operations/v2createworkflowresponse.md b/releases/sdks/go/docs/models/operations/v2createworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2createworkflowresponse.md rename to releases/sdks/go/docs/models/operations/v2createworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/v2deleteaccountmetadatarequest.md b/releases/sdks/go/docs/models/operations/v2deleteaccountmetadatarequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deleteaccountmetadatarequest.md rename to releases/sdks/go/docs/models/operations/v2deleteaccountmetadatarequest.md diff --git a/libs/clients/go/docs/models/operations/v2deleteaccountmetadataresponse.md b/releases/sdks/go/docs/models/operations/v2deleteaccountmetadataresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deleteaccountmetadataresponse.md rename to releases/sdks/go/docs/models/operations/v2deleteaccountmetadataresponse.md diff --git a/libs/clients/go/docs/models/operations/v2deletetransactionmetadatarequest.md b/releases/sdks/go/docs/models/operations/v2deletetransactionmetadatarequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deletetransactionmetadatarequest.md rename to releases/sdks/go/docs/models/operations/v2deletetransactionmetadatarequest.md diff --git a/libs/clients/go/docs/models/operations/v2deletetransactionmetadataresponse.md b/releases/sdks/go/docs/models/operations/v2deletetransactionmetadataresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deletetransactionmetadataresponse.md rename to releases/sdks/go/docs/models/operations/v2deletetransactionmetadataresponse.md diff --git a/libs/clients/go/docs/models/operations/v2deletetriggerrequest.md b/releases/sdks/go/docs/models/operations/v2deletetriggerrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deletetriggerrequest.md rename to releases/sdks/go/docs/models/operations/v2deletetriggerrequest.md diff --git a/libs/clients/go/docs/models/operations/v2deletetriggerresponse.md b/releases/sdks/go/docs/models/operations/v2deletetriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deletetriggerresponse.md rename to releases/sdks/go/docs/models/operations/v2deletetriggerresponse.md diff --git a/libs/clients/go/docs/models/operations/v2deleteworkflowrequest.md b/releases/sdks/go/docs/models/operations/v2deleteworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deleteworkflowrequest.md rename to releases/sdks/go/docs/models/operations/v2deleteworkflowrequest.md diff --git a/libs/clients/go/docs/models/operations/v2deleteworkflowresponse.md b/releases/sdks/go/docs/models/operations/v2deleteworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2deleteworkflowresponse.md rename to releases/sdks/go/docs/models/operations/v2deleteworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getaccountrequest.md b/releases/sdks/go/docs/models/operations/v2getaccountrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getaccountrequest.md rename to releases/sdks/go/docs/models/operations/v2getaccountrequest.md diff --git a/libs/clients/go/docs/models/operations/v2getaccountresponse.md b/releases/sdks/go/docs/models/operations/v2getaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getaccountresponse.md rename to releases/sdks/go/docs/models/operations/v2getaccountresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getbalancesaggregatedrequest.md b/releases/sdks/go/docs/models/operations/v2getbalancesaggregatedrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getbalancesaggregatedrequest.md rename to releases/sdks/go/docs/models/operations/v2getbalancesaggregatedrequest.md diff --git a/libs/clients/go/docs/models/operations/v2getbalancesaggregatedresponse.md b/releases/sdks/go/docs/models/operations/v2getbalancesaggregatedresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getbalancesaggregatedresponse.md rename to releases/sdks/go/docs/models/operations/v2getbalancesaggregatedresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getinforesponse.md b/releases/sdks/go/docs/models/operations/v2getinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getinforesponse.md rename to releases/sdks/go/docs/models/operations/v2getinforesponse.md diff --git a/libs/clients/go/docs/models/operations/v2getinstancehistoryrequest.md b/releases/sdks/go/docs/models/operations/v2getinstancehistoryrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getinstancehistoryrequest.md rename to releases/sdks/go/docs/models/operations/v2getinstancehistoryrequest.md diff --git a/libs/clients/go/docs/models/operations/v2getinstancehistoryresponse.md b/releases/sdks/go/docs/models/operations/v2getinstancehistoryresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getinstancehistoryresponse.md rename to releases/sdks/go/docs/models/operations/v2getinstancehistoryresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getinstancerequest.md b/releases/sdks/go/docs/models/operations/v2getinstancerequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getinstancerequest.md rename to releases/sdks/go/docs/models/operations/v2getinstancerequest.md diff --git a/libs/clients/go/docs/models/operations/v2getinstanceresponse.md b/releases/sdks/go/docs/models/operations/v2getinstanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getinstanceresponse.md rename to releases/sdks/go/docs/models/operations/v2getinstanceresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getinstancestagehistoryrequest.md b/releases/sdks/go/docs/models/operations/v2getinstancestagehistoryrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getinstancestagehistoryrequest.md rename to releases/sdks/go/docs/models/operations/v2getinstancestagehistoryrequest.md diff --git a/libs/clients/go/docs/models/operations/v2getinstancestagehistoryresponse.md b/releases/sdks/go/docs/models/operations/v2getinstancestagehistoryresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getinstancestagehistoryresponse.md rename to releases/sdks/go/docs/models/operations/v2getinstancestagehistoryresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getledgerinforequest.md b/releases/sdks/go/docs/models/operations/v2getledgerinforequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getledgerinforequest.md rename to releases/sdks/go/docs/models/operations/v2getledgerinforequest.md diff --git a/libs/clients/go/docs/models/operations/v2getledgerinforesponse.md b/releases/sdks/go/docs/models/operations/v2getledgerinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getledgerinforesponse.md rename to releases/sdks/go/docs/models/operations/v2getledgerinforesponse.md diff --git a/libs/clients/go/docs/models/operations/v2getledgerrequest.md b/releases/sdks/go/docs/models/operations/v2getledgerrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getledgerrequest.md rename to releases/sdks/go/docs/models/operations/v2getledgerrequest.md diff --git a/libs/clients/go/docs/models/operations/v2getledgerresponse.md b/releases/sdks/go/docs/models/operations/v2getledgerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getledgerresponse.md rename to releases/sdks/go/docs/models/operations/v2getledgerresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getserverinforesponse.md b/releases/sdks/go/docs/models/operations/v2getserverinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getserverinforesponse.md rename to releases/sdks/go/docs/models/operations/v2getserverinforesponse.md diff --git a/libs/clients/go/docs/models/operations/v2gettransactionrequest.md b/releases/sdks/go/docs/models/operations/v2gettransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2gettransactionrequest.md rename to releases/sdks/go/docs/models/operations/v2gettransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/v2gettransactionresponse.md b/releases/sdks/go/docs/models/operations/v2gettransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2gettransactionresponse.md rename to releases/sdks/go/docs/models/operations/v2gettransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/v2getworkflowrequest.md b/releases/sdks/go/docs/models/operations/v2getworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getworkflowrequest.md rename to releases/sdks/go/docs/models/operations/v2getworkflowrequest.md diff --git a/libs/clients/go/docs/models/operations/v2getworkflowresponse.md b/releases/sdks/go/docs/models/operations/v2getworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2getworkflowresponse.md rename to releases/sdks/go/docs/models/operations/v2getworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listaccountsrequest.md b/releases/sdks/go/docs/models/operations/v2listaccountsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listaccountsrequest.md rename to releases/sdks/go/docs/models/operations/v2listaccountsrequest.md diff --git a/libs/clients/go/docs/models/operations/v2listaccountsresponse.md b/releases/sdks/go/docs/models/operations/v2listaccountsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listaccountsresponse.md rename to releases/sdks/go/docs/models/operations/v2listaccountsresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listinstancesrequest.md b/releases/sdks/go/docs/models/operations/v2listinstancesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listinstancesrequest.md rename to releases/sdks/go/docs/models/operations/v2listinstancesrequest.md diff --git a/libs/clients/go/docs/models/operations/v2listinstancesresponse.md b/releases/sdks/go/docs/models/operations/v2listinstancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listinstancesresponse.md rename to releases/sdks/go/docs/models/operations/v2listinstancesresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listledgersrequest.md b/releases/sdks/go/docs/models/operations/v2listledgersrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listledgersrequest.md rename to releases/sdks/go/docs/models/operations/v2listledgersrequest.md diff --git a/libs/clients/go/docs/models/operations/v2listledgersresponse.md b/releases/sdks/go/docs/models/operations/v2listledgersresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listledgersresponse.md rename to releases/sdks/go/docs/models/operations/v2listledgersresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listlogsrequest.md b/releases/sdks/go/docs/models/operations/v2listlogsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listlogsrequest.md rename to releases/sdks/go/docs/models/operations/v2listlogsrequest.md diff --git a/libs/clients/go/docs/models/operations/v2listlogsresponse.md b/releases/sdks/go/docs/models/operations/v2listlogsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listlogsresponse.md rename to releases/sdks/go/docs/models/operations/v2listlogsresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listtransactionsrequest.md b/releases/sdks/go/docs/models/operations/v2listtransactionsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listtransactionsrequest.md rename to releases/sdks/go/docs/models/operations/v2listtransactionsrequest.md diff --git a/libs/clients/go/docs/models/operations/v2listtransactionsresponse.md b/releases/sdks/go/docs/models/operations/v2listtransactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listtransactionsresponse.md rename to releases/sdks/go/docs/models/operations/v2listtransactionsresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listtriggersoccurrencesrequest.md b/releases/sdks/go/docs/models/operations/v2listtriggersoccurrencesrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listtriggersoccurrencesrequest.md rename to releases/sdks/go/docs/models/operations/v2listtriggersoccurrencesrequest.md diff --git a/libs/clients/go/docs/models/operations/v2listtriggersoccurrencesresponse.md b/releases/sdks/go/docs/models/operations/v2listtriggersoccurrencesresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listtriggersoccurrencesresponse.md rename to releases/sdks/go/docs/models/operations/v2listtriggersoccurrencesresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listtriggersresponse.md b/releases/sdks/go/docs/models/operations/v2listtriggersresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listtriggersresponse.md rename to releases/sdks/go/docs/models/operations/v2listtriggersresponse.md diff --git a/libs/clients/go/docs/models/operations/v2listworkflowsresponse.md b/releases/sdks/go/docs/models/operations/v2listworkflowsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2listworkflowsresponse.md rename to releases/sdks/go/docs/models/operations/v2listworkflowsresponse.md diff --git a/libs/clients/go/docs/models/operations/v2readstatsrequest.md b/releases/sdks/go/docs/models/operations/v2readstatsrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2readstatsrequest.md rename to releases/sdks/go/docs/models/operations/v2readstatsrequest.md diff --git a/libs/clients/go/docs/models/operations/v2readstatsresponse.md b/releases/sdks/go/docs/models/operations/v2readstatsresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2readstatsresponse.md rename to releases/sdks/go/docs/models/operations/v2readstatsresponse.md diff --git a/libs/clients/go/docs/models/operations/v2readtriggerrequest.md b/releases/sdks/go/docs/models/operations/v2readtriggerrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2readtriggerrequest.md rename to releases/sdks/go/docs/models/operations/v2readtriggerrequest.md diff --git a/libs/clients/go/docs/models/operations/v2readtriggerresponse.md b/releases/sdks/go/docs/models/operations/v2readtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2readtriggerresponse.md rename to releases/sdks/go/docs/models/operations/v2readtriggerresponse.md diff --git a/libs/clients/go/docs/models/operations/v2reverttransactionrequest.md b/releases/sdks/go/docs/models/operations/v2reverttransactionrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2reverttransactionrequest.md rename to releases/sdks/go/docs/models/operations/v2reverttransactionrequest.md diff --git a/libs/clients/go/docs/models/operations/v2reverttransactionresponse.md b/releases/sdks/go/docs/models/operations/v2reverttransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2reverttransactionresponse.md rename to releases/sdks/go/docs/models/operations/v2reverttransactionresponse.md diff --git a/libs/clients/go/docs/models/operations/v2runworkflowrequest.md b/releases/sdks/go/docs/models/operations/v2runworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2runworkflowrequest.md rename to releases/sdks/go/docs/models/operations/v2runworkflowrequest.md diff --git a/libs/clients/go/docs/models/operations/v2runworkflowresponse.md b/releases/sdks/go/docs/models/operations/v2runworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2runworkflowresponse.md rename to releases/sdks/go/docs/models/operations/v2runworkflowresponse.md diff --git a/libs/clients/go/docs/models/operations/v2sendeventrequest.md b/releases/sdks/go/docs/models/operations/v2sendeventrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2sendeventrequest.md rename to releases/sdks/go/docs/models/operations/v2sendeventrequest.md diff --git a/libs/clients/go/docs/models/operations/v2sendeventrequestbody.md b/releases/sdks/go/docs/models/operations/v2sendeventrequestbody.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2sendeventrequestbody.md rename to releases/sdks/go/docs/models/operations/v2sendeventrequestbody.md diff --git a/libs/clients/go/docs/models/operations/v2sendeventresponse.md b/releases/sdks/go/docs/models/operations/v2sendeventresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/v2sendeventresponse.md rename to releases/sdks/go/docs/models/operations/v2sendeventresponse.md diff --git a/libs/clients/go/docs/models/operations/voidholdrequest.md b/releases/sdks/go/docs/models/operations/voidholdrequest.md similarity index 100% rename from libs/clients/go/docs/models/operations/voidholdrequest.md rename to releases/sdks/go/docs/models/operations/voidholdrequest.md diff --git a/libs/clients/go/docs/models/operations/voidholdresponse.md b/releases/sdks/go/docs/models/operations/voidholdresponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/voidholdresponse.md rename to releases/sdks/go/docs/models/operations/voidholdresponse.md diff --git a/libs/clients/go/docs/models/operations/walletsgetserverinforesponse.md b/releases/sdks/go/docs/models/operations/walletsgetserverinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/operations/walletsgetserverinforesponse.md rename to releases/sdks/go/docs/models/operations/walletsgetserverinforesponse.md diff --git a/libs/clients/go/docs/models/shared/account.md b/releases/sdks/go/docs/models/shared/account.md similarity index 100% rename from libs/clients/go/docs/models/shared/account.md rename to releases/sdks/go/docs/models/shared/account.md diff --git a/libs/clients/go/docs/models/shared/accountbalance.md b/releases/sdks/go/docs/models/shared/accountbalance.md similarity index 100% rename from libs/clients/go/docs/models/shared/accountbalance.md rename to releases/sdks/go/docs/models/shared/accountbalance.md diff --git a/libs/clients/go/docs/models/shared/accountresponse.md b/releases/sdks/go/docs/models/shared/accountresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/accountresponse.md rename to releases/sdks/go/docs/models/shared/accountresponse.md diff --git a/libs/clients/go/docs/models/shared/accountscursor.md b/releases/sdks/go/docs/models/shared/accountscursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/accountscursor.md rename to releases/sdks/go/docs/models/shared/accountscursor.md diff --git a/libs/clients/go/docs/models/shared/accountscursorcursor.md b/releases/sdks/go/docs/models/shared/accountscursorcursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/accountscursorcursor.md rename to releases/sdks/go/docs/models/shared/accountscursorcursor.md diff --git a/libs/clients/go/docs/models/shared/accountscursorresponse.md b/releases/sdks/go/docs/models/shared/accountscursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/accountscursorresponse.md rename to releases/sdks/go/docs/models/shared/accountscursorresponse.md diff --git a/libs/clients/go/docs/models/shared/accountscursorresponsecursor.md b/releases/sdks/go/docs/models/shared/accountscursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/accountscursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/accountscursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/accountwithvolumesandbalances.md b/releases/sdks/go/docs/models/shared/accountwithvolumesandbalances.md similarity index 100% rename from libs/clients/go/docs/models/shared/accountwithvolumesandbalances.md rename to releases/sdks/go/docs/models/shared/accountwithvolumesandbalances.md diff --git a/libs/clients/go/docs/models/shared/activityconfirmhold.md b/releases/sdks/go/docs/models/shared/activityconfirmhold.md similarity index 100% rename from libs/clients/go/docs/models/shared/activityconfirmhold.md rename to releases/sdks/go/docs/models/shared/activityconfirmhold.md diff --git a/libs/clients/go/docs/models/shared/activitycreatetransaction.md b/releases/sdks/go/docs/models/shared/activitycreatetransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitycreatetransaction.md rename to releases/sdks/go/docs/models/shared/activitycreatetransaction.md diff --git a/libs/clients/go/docs/models/shared/activitycreatetransactionoutput.md b/releases/sdks/go/docs/models/shared/activitycreatetransactionoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitycreatetransactionoutput.md rename to releases/sdks/go/docs/models/shared/activitycreatetransactionoutput.md diff --git a/libs/clients/go/docs/models/shared/activitycreditwallet.md b/releases/sdks/go/docs/models/shared/activitycreditwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitycreditwallet.md rename to releases/sdks/go/docs/models/shared/activitycreditwallet.md diff --git a/libs/clients/go/docs/models/shared/activitydebitwallet.md b/releases/sdks/go/docs/models/shared/activitydebitwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitydebitwallet.md rename to releases/sdks/go/docs/models/shared/activitydebitwallet.md diff --git a/libs/clients/go/docs/models/shared/activitydebitwalletoutput.md b/releases/sdks/go/docs/models/shared/activitydebitwalletoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitydebitwalletoutput.md rename to releases/sdks/go/docs/models/shared/activitydebitwalletoutput.md diff --git a/libs/clients/go/docs/models/shared/activitygetaccount.md b/releases/sdks/go/docs/models/shared/activitygetaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitygetaccount.md rename to releases/sdks/go/docs/models/shared/activitygetaccount.md diff --git a/libs/clients/go/docs/models/shared/activitygetaccountoutput.md b/releases/sdks/go/docs/models/shared/activitygetaccountoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitygetaccountoutput.md rename to releases/sdks/go/docs/models/shared/activitygetaccountoutput.md diff --git a/libs/clients/go/docs/models/shared/activitygetpayment.md b/releases/sdks/go/docs/models/shared/activitygetpayment.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitygetpayment.md rename to releases/sdks/go/docs/models/shared/activitygetpayment.md diff --git a/libs/clients/go/docs/models/shared/activitygetpaymentoutput.md b/releases/sdks/go/docs/models/shared/activitygetpaymentoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitygetpaymentoutput.md rename to releases/sdks/go/docs/models/shared/activitygetpaymentoutput.md diff --git a/libs/clients/go/docs/models/shared/activitygetwallet.md b/releases/sdks/go/docs/models/shared/activitygetwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitygetwallet.md rename to releases/sdks/go/docs/models/shared/activitygetwallet.md diff --git a/libs/clients/go/docs/models/shared/activitygetwalletoutput.md b/releases/sdks/go/docs/models/shared/activitygetwalletoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitygetwalletoutput.md rename to releases/sdks/go/docs/models/shared/activitygetwalletoutput.md diff --git a/libs/clients/go/docs/models/shared/activitylistwallets.md b/releases/sdks/go/docs/models/shared/activitylistwallets.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitylistwallets.md rename to releases/sdks/go/docs/models/shared/activitylistwallets.md diff --git a/libs/clients/go/docs/models/shared/activityreverttransaction.md b/releases/sdks/go/docs/models/shared/activityreverttransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/activityreverttransaction.md rename to releases/sdks/go/docs/models/shared/activityreverttransaction.md diff --git a/libs/clients/go/docs/models/shared/activityreverttransactionoutput.md b/releases/sdks/go/docs/models/shared/activityreverttransactionoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/activityreverttransactionoutput.md rename to releases/sdks/go/docs/models/shared/activityreverttransactionoutput.md diff --git a/libs/clients/go/docs/models/shared/activitystripetransfer.md b/releases/sdks/go/docs/models/shared/activitystripetransfer.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitystripetransfer.md rename to releases/sdks/go/docs/models/shared/activitystripetransfer.md diff --git a/libs/clients/go/docs/models/shared/activitystripetransfermetadata.md b/releases/sdks/go/docs/models/shared/activitystripetransfermetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/activitystripetransfermetadata.md rename to releases/sdks/go/docs/models/shared/activitystripetransfermetadata.md diff --git a/libs/clients/go/docs/models/shared/activityvoidhold.md b/releases/sdks/go/docs/models/shared/activityvoidhold.md similarity index 100% rename from libs/clients/go/docs/models/shared/activityvoidhold.md rename to releases/sdks/go/docs/models/shared/activityvoidhold.md diff --git a/libs/clients/go/docs/models/shared/addaccounttopoolrequest.md b/releases/sdks/go/docs/models/shared/addaccounttopoolrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/addaccounttopoolrequest.md rename to releases/sdks/go/docs/models/shared/addaccounttopoolrequest.md diff --git a/libs/clients/go/docs/models/shared/adyenconfig.md b/releases/sdks/go/docs/models/shared/adyenconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/adyenconfig.md rename to releases/sdks/go/docs/models/shared/adyenconfig.md diff --git a/libs/clients/go/docs/models/shared/aggregatebalancesresponse.md b/releases/sdks/go/docs/models/shared/aggregatebalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/aggregatebalancesresponse.md rename to releases/sdks/go/docs/models/shared/aggregatebalancesresponse.md diff --git a/libs/clients/go/docs/models/shared/assetholder.md b/releases/sdks/go/docs/models/shared/assetholder.md similarity index 100% rename from libs/clients/go/docs/models/shared/assetholder.md rename to releases/sdks/go/docs/models/shared/assetholder.md diff --git a/libs/clients/go/docs/models/shared/atlarconfig.md b/releases/sdks/go/docs/models/shared/atlarconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/atlarconfig.md rename to releases/sdks/go/docs/models/shared/atlarconfig.md diff --git a/libs/clients/go/docs/models/shared/attempt.md b/releases/sdks/go/docs/models/shared/attempt.md similarity index 100% rename from libs/clients/go/docs/models/shared/attempt.md rename to releases/sdks/go/docs/models/shared/attempt.md diff --git a/libs/clients/go/docs/models/shared/attemptresponse.md b/releases/sdks/go/docs/models/shared/attemptresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/attemptresponse.md rename to releases/sdks/go/docs/models/shared/attemptresponse.md diff --git a/libs/clients/go/docs/models/shared/balance.md b/releases/sdks/go/docs/models/shared/balance.md similarity index 100% rename from libs/clients/go/docs/models/shared/balance.md rename to releases/sdks/go/docs/models/shared/balance.md diff --git a/libs/clients/go/docs/models/shared/balancescursor.md b/releases/sdks/go/docs/models/shared/balancescursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/balancescursor.md rename to releases/sdks/go/docs/models/shared/balancescursor.md diff --git a/libs/clients/go/docs/models/shared/balancescursorcursor.md b/releases/sdks/go/docs/models/shared/balancescursorcursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/balancescursorcursor.md rename to releases/sdks/go/docs/models/shared/balancescursorcursor.md diff --git a/libs/clients/go/docs/models/shared/balancescursorresponse.md b/releases/sdks/go/docs/models/shared/balancescursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/balancescursorresponse.md rename to releases/sdks/go/docs/models/shared/balancescursorresponse.md diff --git a/libs/clients/go/docs/models/shared/balancescursorresponsecursor.md b/releases/sdks/go/docs/models/shared/balancescursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/balancescursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/balancescursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/balancewithassets.md b/releases/sdks/go/docs/models/shared/balancewithassets.md similarity index 100% rename from libs/clients/go/docs/models/shared/balancewithassets.md rename to releases/sdks/go/docs/models/shared/balancewithassets.md diff --git a/libs/clients/go/docs/models/shared/bankaccount.md b/releases/sdks/go/docs/models/shared/bankaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/bankaccount.md rename to releases/sdks/go/docs/models/shared/bankaccount.md diff --git a/libs/clients/go/docs/models/shared/bankaccountrequest.md b/releases/sdks/go/docs/models/shared/bankaccountrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/bankaccountrequest.md rename to releases/sdks/go/docs/models/shared/bankaccountrequest.md diff --git a/libs/clients/go/docs/models/shared/bankaccountresponse.md b/releases/sdks/go/docs/models/shared/bankaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/bankaccountresponse.md rename to releases/sdks/go/docs/models/shared/bankaccountresponse.md diff --git a/libs/clients/go/docs/models/shared/bankaccountscursor.md b/releases/sdks/go/docs/models/shared/bankaccountscursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/bankaccountscursor.md rename to releases/sdks/go/docs/models/shared/bankaccountscursor.md diff --git a/libs/clients/go/docs/models/shared/bankaccountscursorcursor.md b/releases/sdks/go/docs/models/shared/bankaccountscursorcursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/bankaccountscursorcursor.md rename to releases/sdks/go/docs/models/shared/bankaccountscursorcursor.md diff --git a/libs/clients/go/docs/models/shared/bankingcircleconfig.md b/releases/sdks/go/docs/models/shared/bankingcircleconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/bankingcircleconfig.md rename to releases/sdks/go/docs/models/shared/bankingcircleconfig.md diff --git a/libs/clients/go/docs/models/shared/client.md b/releases/sdks/go/docs/models/shared/client.md similarity index 100% rename from libs/clients/go/docs/models/shared/client.md rename to releases/sdks/go/docs/models/shared/client.md diff --git a/libs/clients/go/docs/models/shared/clientsecret.md b/releases/sdks/go/docs/models/shared/clientsecret.md similarity index 100% rename from libs/clients/go/docs/models/shared/clientsecret.md rename to releases/sdks/go/docs/models/shared/clientsecret.md diff --git a/libs/clients/go/docs/models/shared/config.md b/releases/sdks/go/docs/models/shared/config.md similarity index 100% rename from libs/clients/go/docs/models/shared/config.md rename to releases/sdks/go/docs/models/shared/config.md diff --git a/libs/clients/go/docs/models/shared/configchangesecret.md b/releases/sdks/go/docs/models/shared/configchangesecret.md similarity index 100% rename from libs/clients/go/docs/models/shared/configchangesecret.md rename to releases/sdks/go/docs/models/shared/configchangesecret.md diff --git a/libs/clients/go/docs/models/shared/configinfo.md b/releases/sdks/go/docs/models/shared/configinfo.md similarity index 100% rename from libs/clients/go/docs/models/shared/configinfo.md rename to releases/sdks/go/docs/models/shared/configinfo.md diff --git a/libs/clients/go/docs/models/shared/configinforesponse.md b/releases/sdks/go/docs/models/shared/configinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/configinforesponse.md rename to releases/sdks/go/docs/models/shared/configinforesponse.md diff --git a/libs/clients/go/docs/models/shared/configresponse.md b/releases/sdks/go/docs/models/shared/configresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/configresponse.md rename to releases/sdks/go/docs/models/shared/configresponse.md diff --git a/libs/clients/go/docs/models/shared/configsresponse.md b/releases/sdks/go/docs/models/shared/configsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/configsresponse.md rename to releases/sdks/go/docs/models/shared/configsresponse.md diff --git a/libs/clients/go/docs/models/shared/configsresponsecursor.md b/releases/sdks/go/docs/models/shared/configsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/configsresponsecursor.md rename to releases/sdks/go/docs/models/shared/configsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/configuser.md b/releases/sdks/go/docs/models/shared/configuser.md similarity index 100% rename from libs/clients/go/docs/models/shared/configuser.md rename to releases/sdks/go/docs/models/shared/configuser.md diff --git a/libs/clients/go/docs/models/shared/confirmholdrequest.md b/releases/sdks/go/docs/models/shared/confirmholdrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/confirmholdrequest.md rename to releases/sdks/go/docs/models/shared/confirmholdrequest.md diff --git a/libs/clients/go/docs/models/shared/connector.md b/releases/sdks/go/docs/models/shared/connector.md similarity index 100% rename from libs/clients/go/docs/models/shared/connector.md rename to releases/sdks/go/docs/models/shared/connector.md diff --git a/libs/clients/go/docs/models/shared/connectorconfig.md b/releases/sdks/go/docs/models/shared/connectorconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorconfig.md rename to releases/sdks/go/docs/models/shared/connectorconfig.md diff --git a/libs/clients/go/docs/models/shared/connectorconfigresponse.md b/releases/sdks/go/docs/models/shared/connectorconfigresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorconfigresponse.md rename to releases/sdks/go/docs/models/shared/connectorconfigresponse.md diff --git a/libs/clients/go/docs/models/shared/connectorresponse.md b/releases/sdks/go/docs/models/shared/connectorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorresponse.md rename to releases/sdks/go/docs/models/shared/connectorresponse.md diff --git a/libs/clients/go/docs/models/shared/connectorresponsedata.md b/releases/sdks/go/docs/models/shared/connectorresponsedata.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorresponsedata.md rename to releases/sdks/go/docs/models/shared/connectorresponsedata.md diff --git a/libs/clients/go/docs/models/shared/connectorsconfigsresponse.md b/releases/sdks/go/docs/models/shared/connectorsconfigsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorsconfigsresponse.md rename to releases/sdks/go/docs/models/shared/connectorsconfigsresponse.md diff --git a/libs/clients/go/docs/models/shared/connectorsconfigsresponsedata.md b/releases/sdks/go/docs/models/shared/connectorsconfigsresponsedata.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorsconfigsresponsedata.md rename to releases/sdks/go/docs/models/shared/connectorsconfigsresponsedata.md diff --git a/libs/clients/go/docs/models/shared/connectorsconfigsresponsedataconnector.md b/releases/sdks/go/docs/models/shared/connectorsconfigsresponsedataconnector.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorsconfigsresponsedataconnector.md rename to releases/sdks/go/docs/models/shared/connectorsconfigsresponsedataconnector.md diff --git a/libs/clients/go/docs/models/shared/connectorsconfigsresponsedataconnectorkey.md b/releases/sdks/go/docs/models/shared/connectorsconfigsresponsedataconnectorkey.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorsconfigsresponsedataconnectorkey.md rename to releases/sdks/go/docs/models/shared/connectorsconfigsresponsedataconnectorkey.md diff --git a/libs/clients/go/docs/models/shared/connectorsresponse.md b/releases/sdks/go/docs/models/shared/connectorsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorsresponse.md rename to releases/sdks/go/docs/models/shared/connectorsresponse.md diff --git a/libs/clients/go/docs/models/shared/connectorsresponsedata.md b/releases/sdks/go/docs/models/shared/connectorsresponsedata.md similarity index 100% rename from libs/clients/go/docs/models/shared/connectorsresponsedata.md rename to releases/sdks/go/docs/models/shared/connectorsresponsedata.md diff --git a/libs/clients/go/docs/models/shared/contract.md b/releases/sdks/go/docs/models/shared/contract.md similarity index 100% rename from libs/clients/go/docs/models/shared/contract.md rename to releases/sdks/go/docs/models/shared/contract.md diff --git a/libs/clients/go/docs/models/shared/contractexpr.md b/releases/sdks/go/docs/models/shared/contractexpr.md similarity index 100% rename from libs/clients/go/docs/models/shared/contractexpr.md rename to releases/sdks/go/docs/models/shared/contractexpr.md diff --git a/libs/clients/go/docs/models/shared/createbalancerequest.md b/releases/sdks/go/docs/models/shared/createbalancerequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/createbalancerequest.md rename to releases/sdks/go/docs/models/shared/createbalancerequest.md diff --git a/libs/clients/go/docs/models/shared/createbalanceresponse.md b/releases/sdks/go/docs/models/shared/createbalanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/createbalanceresponse.md rename to releases/sdks/go/docs/models/shared/createbalanceresponse.md diff --git a/libs/clients/go/docs/models/shared/createclientrequest.md b/releases/sdks/go/docs/models/shared/createclientrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/createclientrequest.md rename to releases/sdks/go/docs/models/shared/createclientrequest.md diff --git a/libs/clients/go/docs/models/shared/createclientresponse.md b/releases/sdks/go/docs/models/shared/createclientresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/createclientresponse.md rename to releases/sdks/go/docs/models/shared/createclientresponse.md diff --git a/libs/clients/go/docs/models/shared/createsecretrequest.md b/releases/sdks/go/docs/models/shared/createsecretrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/createsecretrequest.md rename to releases/sdks/go/docs/models/shared/createsecretrequest.md diff --git a/libs/clients/go/docs/models/shared/createsecretresponse.md b/releases/sdks/go/docs/models/shared/createsecretresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/createsecretresponse.md rename to releases/sdks/go/docs/models/shared/createsecretresponse.md diff --git a/libs/clients/go/docs/models/shared/createtriggerresponse.md b/releases/sdks/go/docs/models/shared/createtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/createtriggerresponse.md rename to releases/sdks/go/docs/models/shared/createtriggerresponse.md diff --git a/libs/clients/go/docs/models/shared/createwalletrequest.md b/releases/sdks/go/docs/models/shared/createwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/createwalletrequest.md rename to releases/sdks/go/docs/models/shared/createwalletrequest.md diff --git a/libs/clients/go/docs/models/shared/createwalletresponse.md b/releases/sdks/go/docs/models/shared/createwalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/createwalletresponse.md rename to releases/sdks/go/docs/models/shared/createwalletresponse.md diff --git a/libs/clients/go/docs/models/shared/createworkflowrequest.md b/releases/sdks/go/docs/models/shared/createworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/createworkflowrequest.md rename to releases/sdks/go/docs/models/shared/createworkflowrequest.md diff --git a/libs/clients/go/docs/models/shared/createworkflowresponse.md b/releases/sdks/go/docs/models/shared/createworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/createworkflowresponse.md rename to releases/sdks/go/docs/models/shared/createworkflowresponse.md diff --git a/libs/clients/go/docs/models/shared/creditwalletrequest.md b/releases/sdks/go/docs/models/shared/creditwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/creditwalletrequest.md rename to releases/sdks/go/docs/models/shared/creditwalletrequest.md diff --git a/libs/clients/go/docs/models/shared/currencycloudconfig.md b/releases/sdks/go/docs/models/shared/currencycloudconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/currencycloudconfig.md rename to releases/sdks/go/docs/models/shared/currencycloudconfig.md diff --git a/libs/clients/go/docs/models/shared/debitwalletrequest.md b/releases/sdks/go/docs/models/shared/debitwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/debitwalletrequest.md rename to releases/sdks/go/docs/models/shared/debitwalletrequest.md diff --git a/libs/clients/go/docs/models/shared/debitwalletresponse.md b/releases/sdks/go/docs/models/shared/debitwalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/debitwalletresponse.md rename to releases/sdks/go/docs/models/shared/debitwalletresponse.md diff --git a/libs/clients/go/docs/models/shared/dummypayconfig.md b/releases/sdks/go/docs/models/shared/dummypayconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/dummypayconfig.md rename to releases/sdks/go/docs/models/shared/dummypayconfig.md diff --git a/libs/clients/go/docs/models/shared/error.md b/releases/sdks/go/docs/models/shared/error.md similarity index 100% rename from libs/clients/go/docs/models/shared/error.md rename to releases/sdks/go/docs/models/shared/error.md diff --git a/libs/clients/go/docs/models/shared/errorerrorcode.md b/releases/sdks/go/docs/models/shared/errorerrorcode.md similarity index 100% rename from libs/clients/go/docs/models/shared/errorerrorcode.md rename to releases/sdks/go/docs/models/shared/errorerrorcode.md diff --git a/libs/clients/go/docs/models/shared/errorresponse.md b/releases/sdks/go/docs/models/shared/errorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/errorresponse.md rename to releases/sdks/go/docs/models/shared/errorresponse.md diff --git a/libs/clients/go/docs/models/shared/errorsenum.md b/releases/sdks/go/docs/models/shared/errorsenum.md similarity index 100% rename from libs/clients/go/docs/models/shared/errorsenum.md rename to releases/sdks/go/docs/models/shared/errorsenum.md diff --git a/libs/clients/go/docs/models/shared/expandeddebithold.md b/releases/sdks/go/docs/models/shared/expandeddebithold.md similarity index 100% rename from libs/clients/go/docs/models/shared/expandeddebithold.md rename to releases/sdks/go/docs/models/shared/expandeddebithold.md diff --git a/libs/clients/go/docs/models/shared/getbalanceresponse.md b/releases/sdks/go/docs/models/shared/getbalanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getbalanceresponse.md rename to releases/sdks/go/docs/models/shared/getbalanceresponse.md diff --git a/libs/clients/go/docs/models/shared/getholdresponse.md b/releases/sdks/go/docs/models/shared/getholdresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getholdresponse.md rename to releases/sdks/go/docs/models/shared/getholdresponse.md diff --git a/libs/clients/go/docs/models/shared/getholdsresponse.md b/releases/sdks/go/docs/models/shared/getholdsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getholdsresponse.md rename to releases/sdks/go/docs/models/shared/getholdsresponse.md diff --git a/libs/clients/go/docs/models/shared/getholdsresponsecursor.md b/releases/sdks/go/docs/models/shared/getholdsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/getholdsresponsecursor.md rename to releases/sdks/go/docs/models/shared/getholdsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/gettransactionsresponse.md b/releases/sdks/go/docs/models/shared/gettransactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/gettransactionsresponse.md rename to releases/sdks/go/docs/models/shared/gettransactionsresponse.md diff --git a/libs/clients/go/docs/models/shared/gettransactionsresponsecursor.md b/releases/sdks/go/docs/models/shared/gettransactionsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/gettransactionsresponsecursor.md rename to releases/sdks/go/docs/models/shared/gettransactionsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/getversionsresponse.md b/releases/sdks/go/docs/models/shared/getversionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getversionsresponse.md rename to releases/sdks/go/docs/models/shared/getversionsresponse.md diff --git a/libs/clients/go/docs/models/shared/getwalletresponse.md b/releases/sdks/go/docs/models/shared/getwalletresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getwalletresponse.md rename to releases/sdks/go/docs/models/shared/getwalletresponse.md diff --git a/libs/clients/go/docs/models/shared/getwalletsummaryresponse.md b/releases/sdks/go/docs/models/shared/getwalletsummaryresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getwalletsummaryresponse.md rename to releases/sdks/go/docs/models/shared/getwalletsummaryresponse.md diff --git a/libs/clients/go/docs/models/shared/getworkflowinstancehistoryresponse.md b/releases/sdks/go/docs/models/shared/getworkflowinstancehistoryresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getworkflowinstancehistoryresponse.md rename to releases/sdks/go/docs/models/shared/getworkflowinstancehistoryresponse.md diff --git a/libs/clients/go/docs/models/shared/getworkflowinstancehistorystageresponse.md b/releases/sdks/go/docs/models/shared/getworkflowinstancehistorystageresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getworkflowinstancehistorystageresponse.md rename to releases/sdks/go/docs/models/shared/getworkflowinstancehistorystageresponse.md diff --git a/libs/clients/go/docs/models/shared/getworkflowinstanceresponse.md b/releases/sdks/go/docs/models/shared/getworkflowinstanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getworkflowinstanceresponse.md rename to releases/sdks/go/docs/models/shared/getworkflowinstanceresponse.md diff --git a/libs/clients/go/docs/models/shared/getworkflowresponse.md b/releases/sdks/go/docs/models/shared/getworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/getworkflowresponse.md rename to releases/sdks/go/docs/models/shared/getworkflowresponse.md diff --git a/libs/clients/go/docs/models/shared/hold.md b/releases/sdks/go/docs/models/shared/hold.md similarity index 100% rename from libs/clients/go/docs/models/shared/hold.md rename to releases/sdks/go/docs/models/shared/hold.md diff --git a/libs/clients/go/docs/models/shared/ledgeraccountsubject.md b/releases/sdks/go/docs/models/shared/ledgeraccountsubject.md similarity index 100% rename from libs/clients/go/docs/models/shared/ledgeraccountsubject.md rename to releases/sdks/go/docs/models/shared/ledgeraccountsubject.md diff --git a/libs/clients/go/docs/models/shared/ledgerinfo.md b/releases/sdks/go/docs/models/shared/ledgerinfo.md similarity index 100% rename from libs/clients/go/docs/models/shared/ledgerinfo.md rename to releases/sdks/go/docs/models/shared/ledgerinfo.md diff --git a/libs/clients/go/docs/models/shared/ledgerinforesponse.md b/releases/sdks/go/docs/models/shared/ledgerinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/ledgerinforesponse.md rename to releases/sdks/go/docs/models/shared/ledgerinforesponse.md diff --git a/libs/clients/go/docs/models/shared/ledgerinfostorage.md b/releases/sdks/go/docs/models/shared/ledgerinfostorage.md similarity index 100% rename from libs/clients/go/docs/models/shared/ledgerinfostorage.md rename to releases/sdks/go/docs/models/shared/ledgerinfostorage.md diff --git a/libs/clients/go/docs/models/shared/ledgerstorage.md b/releases/sdks/go/docs/models/shared/ledgerstorage.md similarity index 100% rename from libs/clients/go/docs/models/shared/ledgerstorage.md rename to releases/sdks/go/docs/models/shared/ledgerstorage.md diff --git a/libs/clients/go/docs/models/shared/listbalancesresponse.md b/releases/sdks/go/docs/models/shared/listbalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listbalancesresponse.md rename to releases/sdks/go/docs/models/shared/listbalancesresponse.md diff --git a/libs/clients/go/docs/models/shared/listbalancesresponsecursor.md b/releases/sdks/go/docs/models/shared/listbalancesresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/listbalancesresponsecursor.md rename to releases/sdks/go/docs/models/shared/listbalancesresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/listclientsresponse.md b/releases/sdks/go/docs/models/shared/listclientsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listclientsresponse.md rename to releases/sdks/go/docs/models/shared/listclientsresponse.md diff --git a/libs/clients/go/docs/models/shared/listrunsresponse.md b/releases/sdks/go/docs/models/shared/listrunsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listrunsresponse.md rename to releases/sdks/go/docs/models/shared/listrunsresponse.md diff --git a/libs/clients/go/docs/models/shared/listtriggersoccurrencesresponse.md b/releases/sdks/go/docs/models/shared/listtriggersoccurrencesresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listtriggersoccurrencesresponse.md rename to releases/sdks/go/docs/models/shared/listtriggersoccurrencesresponse.md diff --git a/libs/clients/go/docs/models/shared/listtriggersresponse.md b/releases/sdks/go/docs/models/shared/listtriggersresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listtriggersresponse.md rename to releases/sdks/go/docs/models/shared/listtriggersresponse.md diff --git a/libs/clients/go/docs/models/shared/listusersresponse.md b/releases/sdks/go/docs/models/shared/listusersresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listusersresponse.md rename to releases/sdks/go/docs/models/shared/listusersresponse.md diff --git a/libs/clients/go/docs/models/shared/listwalletsresponse.md b/releases/sdks/go/docs/models/shared/listwalletsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listwalletsresponse.md rename to releases/sdks/go/docs/models/shared/listwalletsresponse.md diff --git a/libs/clients/go/docs/models/shared/listwalletsresponsecursor.md b/releases/sdks/go/docs/models/shared/listwalletsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/listwalletsresponsecursor.md rename to releases/sdks/go/docs/models/shared/listwalletsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/listworkflowsresponse.md b/releases/sdks/go/docs/models/shared/listworkflowsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/listworkflowsresponse.md rename to releases/sdks/go/docs/models/shared/listworkflowsresponse.md diff --git a/libs/clients/go/docs/models/shared/log.md b/releases/sdks/go/docs/models/shared/log.md similarity index 100% rename from libs/clients/go/docs/models/shared/log.md rename to releases/sdks/go/docs/models/shared/log.md diff --git a/libs/clients/go/docs/models/shared/logscursorresponse.md b/releases/sdks/go/docs/models/shared/logscursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/logscursorresponse.md rename to releases/sdks/go/docs/models/shared/logscursorresponse.md diff --git a/libs/clients/go/docs/models/shared/logscursorresponsecursor.md b/releases/sdks/go/docs/models/shared/logscursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/logscursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/logscursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/logtype.md b/releases/sdks/go/docs/models/shared/logtype.md similarity index 100% rename from libs/clients/go/docs/models/shared/logtype.md rename to releases/sdks/go/docs/models/shared/logtype.md diff --git a/libs/clients/go/docs/models/shared/mangopayconfig.md b/releases/sdks/go/docs/models/shared/mangopayconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/mangopayconfig.md rename to releases/sdks/go/docs/models/shared/mangopayconfig.md diff --git a/libs/clients/go/docs/models/shared/mapping.md b/releases/sdks/go/docs/models/shared/mapping.md similarity index 100% rename from libs/clients/go/docs/models/shared/mapping.md rename to releases/sdks/go/docs/models/shared/mapping.md diff --git a/libs/clients/go/docs/models/shared/mappingresponse.md b/releases/sdks/go/docs/models/shared/mappingresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/mappingresponse.md rename to releases/sdks/go/docs/models/shared/mappingresponse.md diff --git a/libs/clients/go/docs/models/shared/migrationinfo.md b/releases/sdks/go/docs/models/shared/migrationinfo.md similarity index 100% rename from libs/clients/go/docs/models/shared/migrationinfo.md rename to releases/sdks/go/docs/models/shared/migrationinfo.md diff --git a/libs/clients/go/docs/models/shared/migrationinfostate.md b/releases/sdks/go/docs/models/shared/migrationinfostate.md similarity index 100% rename from libs/clients/go/docs/models/shared/migrationinfostate.md rename to releases/sdks/go/docs/models/shared/migrationinfostate.md diff --git a/libs/clients/go/docs/models/shared/modulrconfig.md b/releases/sdks/go/docs/models/shared/modulrconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/modulrconfig.md rename to releases/sdks/go/docs/models/shared/modulrconfig.md diff --git a/libs/clients/go/docs/models/shared/monetary.md b/releases/sdks/go/docs/models/shared/monetary.md similarity index 100% rename from libs/clients/go/docs/models/shared/monetary.md rename to releases/sdks/go/docs/models/shared/monetary.md diff --git a/libs/clients/go/docs/models/shared/moneycorpconfig.md b/releases/sdks/go/docs/models/shared/moneycorpconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/moneycorpconfig.md rename to releases/sdks/go/docs/models/shared/moneycorpconfig.md diff --git a/libs/clients/go/docs/models/shared/orchestrationaccount.md b/releases/sdks/go/docs/models/shared/orchestrationaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationaccount.md rename to releases/sdks/go/docs/models/shared/orchestrationaccount.md diff --git a/libs/clients/go/docs/models/shared/orchestrationconnector.md b/releases/sdks/go/docs/models/shared/orchestrationconnector.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationconnector.md rename to releases/sdks/go/docs/models/shared/orchestrationconnector.md diff --git a/libs/clients/go/docs/models/shared/orchestrationlistwalletsresponse.md b/releases/sdks/go/docs/models/shared/orchestrationlistwalletsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationlistwalletsresponse.md rename to releases/sdks/go/docs/models/shared/orchestrationlistwalletsresponse.md diff --git a/libs/clients/go/docs/models/shared/orchestrationlistwalletsresponsecursor.md b/releases/sdks/go/docs/models/shared/orchestrationlistwalletsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationlistwalletsresponsecursor.md rename to releases/sdks/go/docs/models/shared/orchestrationlistwalletsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpayment.md b/releases/sdks/go/docs/models/shared/orchestrationpayment.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpayment.md rename to releases/sdks/go/docs/models/shared/orchestrationpayment.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpaymentadjustment.md b/releases/sdks/go/docs/models/shared/orchestrationpaymentadjustment.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpaymentadjustment.md rename to releases/sdks/go/docs/models/shared/orchestrationpaymentadjustment.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpaymentadjustmentraw.md b/releases/sdks/go/docs/models/shared/orchestrationpaymentadjustmentraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpaymentadjustmentraw.md rename to releases/sdks/go/docs/models/shared/orchestrationpaymentadjustmentraw.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpaymentmetadata.md b/releases/sdks/go/docs/models/shared/orchestrationpaymentmetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpaymentmetadata.md rename to releases/sdks/go/docs/models/shared/orchestrationpaymentmetadata.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpaymentraw.md b/releases/sdks/go/docs/models/shared/orchestrationpaymentraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpaymentraw.md rename to releases/sdks/go/docs/models/shared/orchestrationpaymentraw.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpaymentscheme.md b/releases/sdks/go/docs/models/shared/orchestrationpaymentscheme.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpaymentscheme.md rename to releases/sdks/go/docs/models/shared/orchestrationpaymentscheme.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpaymentstatus.md b/releases/sdks/go/docs/models/shared/orchestrationpaymentstatus.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpaymentstatus.md rename to releases/sdks/go/docs/models/shared/orchestrationpaymentstatus.md diff --git a/libs/clients/go/docs/models/shared/orchestrationpaymenttype.md b/releases/sdks/go/docs/models/shared/orchestrationpaymenttype.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationpaymenttype.md rename to releases/sdks/go/docs/models/shared/orchestrationpaymenttype.md diff --git a/libs/clients/go/docs/models/shared/orchestrationposttransaction.md b/releases/sdks/go/docs/models/shared/orchestrationposttransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationposttransaction.md rename to releases/sdks/go/docs/models/shared/orchestrationposttransaction.md diff --git a/libs/clients/go/docs/models/shared/orchestrationposttransactionscript.md b/releases/sdks/go/docs/models/shared/orchestrationposttransactionscript.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationposttransactionscript.md rename to releases/sdks/go/docs/models/shared/orchestrationposttransactionscript.md diff --git a/libs/clients/go/docs/models/shared/orchestrationtransaction.md b/releases/sdks/go/docs/models/shared/orchestrationtransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationtransaction.md rename to releases/sdks/go/docs/models/shared/orchestrationtransaction.md diff --git a/libs/clients/go/docs/models/shared/orchestrationv2transaction.md b/releases/sdks/go/docs/models/shared/orchestrationv2transaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/orchestrationv2transaction.md rename to releases/sdks/go/docs/models/shared/orchestrationv2transaction.md diff --git a/libs/clients/go/docs/models/shared/payment.md b/releases/sdks/go/docs/models/shared/payment.md similarity index 100% rename from libs/clients/go/docs/models/shared/payment.md rename to releases/sdks/go/docs/models/shared/payment.md diff --git a/libs/clients/go/docs/models/shared/paymentadjustment.md b/releases/sdks/go/docs/models/shared/paymentadjustment.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentadjustment.md rename to releases/sdks/go/docs/models/shared/paymentadjustment.md diff --git a/libs/clients/go/docs/models/shared/paymentadjustmentraw.md b/releases/sdks/go/docs/models/shared/paymentadjustmentraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentadjustmentraw.md rename to releases/sdks/go/docs/models/shared/paymentadjustmentraw.md diff --git a/libs/clients/go/docs/models/shared/paymentraw.md b/releases/sdks/go/docs/models/shared/paymentraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentraw.md rename to releases/sdks/go/docs/models/shared/paymentraw.md diff --git a/libs/clients/go/docs/models/shared/paymentrequest.md b/releases/sdks/go/docs/models/shared/paymentrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentrequest.md rename to releases/sdks/go/docs/models/shared/paymentrequest.md diff --git a/libs/clients/go/docs/models/shared/paymentresponse.md b/releases/sdks/go/docs/models/shared/paymentresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentresponse.md rename to releases/sdks/go/docs/models/shared/paymentresponse.md diff --git a/libs/clients/go/docs/models/shared/paymentsaccount.md b/releases/sdks/go/docs/models/shared/paymentsaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentsaccount.md rename to releases/sdks/go/docs/models/shared/paymentsaccount.md diff --git a/libs/clients/go/docs/models/shared/paymentsaccountraw.md b/releases/sdks/go/docs/models/shared/paymentsaccountraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentsaccountraw.md rename to releases/sdks/go/docs/models/shared/paymentsaccountraw.md diff --git a/libs/clients/go/docs/models/shared/paymentsaccountresponse.md b/releases/sdks/go/docs/models/shared/paymentsaccountresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentsaccountresponse.md rename to releases/sdks/go/docs/models/shared/paymentsaccountresponse.md diff --git a/libs/clients/go/docs/models/shared/paymentscheme.md b/releases/sdks/go/docs/models/shared/paymentscheme.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentscheme.md rename to releases/sdks/go/docs/models/shared/paymentscheme.md diff --git a/libs/clients/go/docs/models/shared/paymentscursor.md b/releases/sdks/go/docs/models/shared/paymentscursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentscursor.md rename to releases/sdks/go/docs/models/shared/paymentscursor.md diff --git a/libs/clients/go/docs/models/shared/paymentscursorcursor.md b/releases/sdks/go/docs/models/shared/paymentscursorcursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentscursorcursor.md rename to releases/sdks/go/docs/models/shared/paymentscursorcursor.md diff --git a/libs/clients/go/docs/models/shared/paymentstatus.md b/releases/sdks/go/docs/models/shared/paymentstatus.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymentstatus.md rename to releases/sdks/go/docs/models/shared/paymentstatus.md diff --git a/libs/clients/go/docs/models/shared/paymenttype.md b/releases/sdks/go/docs/models/shared/paymenttype.md similarity index 100% rename from libs/clients/go/docs/models/shared/paymenttype.md rename to releases/sdks/go/docs/models/shared/paymenttype.md diff --git a/libs/clients/go/docs/models/shared/policiescursorresponse.md b/releases/sdks/go/docs/models/shared/policiescursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/policiescursorresponse.md rename to releases/sdks/go/docs/models/shared/policiescursorresponse.md diff --git a/libs/clients/go/docs/models/shared/policiescursorresponsecursor.md b/releases/sdks/go/docs/models/shared/policiescursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/policiescursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/policiescursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/policy.md b/releases/sdks/go/docs/models/shared/policy.md similarity index 100% rename from libs/clients/go/docs/models/shared/policy.md rename to releases/sdks/go/docs/models/shared/policy.md diff --git a/libs/clients/go/docs/models/shared/policyrequest.md b/releases/sdks/go/docs/models/shared/policyrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/policyrequest.md rename to releases/sdks/go/docs/models/shared/policyrequest.md diff --git a/libs/clients/go/docs/models/shared/policyresponse.md b/releases/sdks/go/docs/models/shared/policyresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/policyresponse.md rename to releases/sdks/go/docs/models/shared/policyresponse.md diff --git a/libs/clients/go/docs/models/shared/pool.md b/releases/sdks/go/docs/models/shared/pool.md similarity index 100% rename from libs/clients/go/docs/models/shared/pool.md rename to releases/sdks/go/docs/models/shared/pool.md diff --git a/libs/clients/go/docs/models/shared/poolbalance.md b/releases/sdks/go/docs/models/shared/poolbalance.md similarity index 100% rename from libs/clients/go/docs/models/shared/poolbalance.md rename to releases/sdks/go/docs/models/shared/poolbalance.md diff --git a/libs/clients/go/docs/models/shared/poolbalances.md b/releases/sdks/go/docs/models/shared/poolbalances.md similarity index 100% rename from libs/clients/go/docs/models/shared/poolbalances.md rename to releases/sdks/go/docs/models/shared/poolbalances.md diff --git a/libs/clients/go/docs/models/shared/poolbalancesresponse.md b/releases/sdks/go/docs/models/shared/poolbalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/poolbalancesresponse.md rename to releases/sdks/go/docs/models/shared/poolbalancesresponse.md diff --git a/libs/clients/go/docs/models/shared/poolrequest.md b/releases/sdks/go/docs/models/shared/poolrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/poolrequest.md rename to releases/sdks/go/docs/models/shared/poolrequest.md diff --git a/libs/clients/go/docs/models/shared/poolresponse.md b/releases/sdks/go/docs/models/shared/poolresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/poolresponse.md rename to releases/sdks/go/docs/models/shared/poolresponse.md diff --git a/libs/clients/go/docs/models/shared/poolscursor.md b/releases/sdks/go/docs/models/shared/poolscursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/poolscursor.md rename to releases/sdks/go/docs/models/shared/poolscursor.md diff --git a/libs/clients/go/docs/models/shared/poolscursorcursor.md b/releases/sdks/go/docs/models/shared/poolscursorcursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/poolscursorcursor.md rename to releases/sdks/go/docs/models/shared/poolscursorcursor.md diff --git a/libs/clients/go/docs/models/shared/posting.md b/releases/sdks/go/docs/models/shared/posting.md similarity index 100% rename from libs/clients/go/docs/models/shared/posting.md rename to releases/sdks/go/docs/models/shared/posting.md diff --git a/libs/clients/go/docs/models/shared/posttransaction.md b/releases/sdks/go/docs/models/shared/posttransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/posttransaction.md rename to releases/sdks/go/docs/models/shared/posttransaction.md diff --git a/libs/clients/go/docs/models/shared/posttransactionscript.md b/releases/sdks/go/docs/models/shared/posttransactionscript.md similarity index 100% rename from libs/clients/go/docs/models/shared/posttransactionscript.md rename to releases/sdks/go/docs/models/shared/posttransactionscript.md diff --git a/libs/clients/go/docs/models/shared/query.md b/releases/sdks/go/docs/models/shared/query.md similarity index 100% rename from libs/clients/go/docs/models/shared/query.md rename to releases/sdks/go/docs/models/shared/query.md diff --git a/libs/clients/go/docs/models/shared/queryraw.md b/releases/sdks/go/docs/models/shared/queryraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/queryraw.md rename to releases/sdks/go/docs/models/shared/queryraw.md diff --git a/libs/clients/go/docs/models/shared/readclientresponse.md b/releases/sdks/go/docs/models/shared/readclientresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/readclientresponse.md rename to releases/sdks/go/docs/models/shared/readclientresponse.md diff --git a/libs/clients/go/docs/models/shared/readtriggerresponse.md b/releases/sdks/go/docs/models/shared/readtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/readtriggerresponse.md rename to releases/sdks/go/docs/models/shared/readtriggerresponse.md diff --git a/libs/clients/go/docs/models/shared/readuserresponse.md b/releases/sdks/go/docs/models/shared/readuserresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/readuserresponse.md rename to releases/sdks/go/docs/models/shared/readuserresponse.md diff --git a/libs/clients/go/docs/models/shared/reconciliation.md b/releases/sdks/go/docs/models/shared/reconciliation.md similarity index 100% rename from libs/clients/go/docs/models/shared/reconciliation.md rename to releases/sdks/go/docs/models/shared/reconciliation.md diff --git a/libs/clients/go/docs/models/shared/reconciliationerrorresponse.md b/releases/sdks/go/docs/models/shared/reconciliationerrorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/reconciliationerrorresponse.md rename to releases/sdks/go/docs/models/shared/reconciliationerrorresponse.md diff --git a/libs/clients/go/docs/models/shared/reconciliationrequest.md b/releases/sdks/go/docs/models/shared/reconciliationrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/reconciliationrequest.md rename to releases/sdks/go/docs/models/shared/reconciliationrequest.md diff --git a/libs/clients/go/docs/models/shared/reconciliationresponse.md b/releases/sdks/go/docs/models/shared/reconciliationresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/reconciliationresponse.md rename to releases/sdks/go/docs/models/shared/reconciliationresponse.md diff --git a/libs/clients/go/docs/models/shared/reconciliationscursorresponse.md b/releases/sdks/go/docs/models/shared/reconciliationscursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/reconciliationscursorresponse.md rename to releases/sdks/go/docs/models/shared/reconciliationscursorresponse.md diff --git a/libs/clients/go/docs/models/shared/reconciliationscursorresponsecursor.md b/releases/sdks/go/docs/models/shared/reconciliationscursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/reconciliationscursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/reconciliationscursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/response.md b/releases/sdks/go/docs/models/shared/response.md similarity index 100% rename from libs/clients/go/docs/models/shared/response.md rename to releases/sdks/go/docs/models/shared/response.md diff --git a/libs/clients/go/docs/models/shared/responsecursor.md b/releases/sdks/go/docs/models/shared/responsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/responsecursor.md rename to releases/sdks/go/docs/models/shared/responsecursor.md diff --git a/libs/clients/go/docs/models/shared/responsecursortotal.md b/releases/sdks/go/docs/models/shared/responsecursortotal.md similarity index 100% rename from libs/clients/go/docs/models/shared/responsecursortotal.md rename to releases/sdks/go/docs/models/shared/responsecursortotal.md diff --git a/libs/clients/go/docs/models/shared/runworkflowresponse.md b/releases/sdks/go/docs/models/shared/runworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/runworkflowresponse.md rename to releases/sdks/go/docs/models/shared/runworkflowresponse.md diff --git a/libs/clients/go/docs/models/shared/script.md b/releases/sdks/go/docs/models/shared/script.md similarity index 100% rename from libs/clients/go/docs/models/shared/script.md rename to releases/sdks/go/docs/models/shared/script.md diff --git a/libs/clients/go/docs/models/shared/scriptresponse.md b/releases/sdks/go/docs/models/shared/scriptresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/scriptresponse.md rename to releases/sdks/go/docs/models/shared/scriptresponse.md diff --git a/libs/clients/go/docs/models/shared/secret.md b/releases/sdks/go/docs/models/shared/secret.md similarity index 100% rename from libs/clients/go/docs/models/shared/secret.md rename to releases/sdks/go/docs/models/shared/secret.md diff --git a/libs/clients/go/docs/models/shared/serverinfo.md b/releases/sdks/go/docs/models/shared/serverinfo.md similarity index 100% rename from libs/clients/go/docs/models/shared/serverinfo.md rename to releases/sdks/go/docs/models/shared/serverinfo.md diff --git a/libs/clients/go/docs/models/shared/stage.md b/releases/sdks/go/docs/models/shared/stage.md similarity index 100% rename from libs/clients/go/docs/models/shared/stage.md rename to releases/sdks/go/docs/models/shared/stage.md diff --git a/libs/clients/go/docs/models/shared/stagedelay.md b/releases/sdks/go/docs/models/shared/stagedelay.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagedelay.md rename to releases/sdks/go/docs/models/shared/stagedelay.md diff --git a/libs/clients/go/docs/models/shared/stagesend.md b/releases/sdks/go/docs/models/shared/stagesend.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesend.md rename to releases/sdks/go/docs/models/shared/stagesend.md diff --git a/libs/clients/go/docs/models/shared/stagesenddestination.md b/releases/sdks/go/docs/models/shared/stagesenddestination.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesenddestination.md rename to releases/sdks/go/docs/models/shared/stagesenddestination.md diff --git a/libs/clients/go/docs/models/shared/stagesenddestinationaccount.md b/releases/sdks/go/docs/models/shared/stagesenddestinationaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesenddestinationaccount.md rename to releases/sdks/go/docs/models/shared/stagesenddestinationaccount.md diff --git a/libs/clients/go/docs/models/shared/stagesenddestinationpayment.md b/releases/sdks/go/docs/models/shared/stagesenddestinationpayment.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesenddestinationpayment.md rename to releases/sdks/go/docs/models/shared/stagesenddestinationpayment.md diff --git a/libs/clients/go/docs/models/shared/stagesenddestinationwallet.md b/releases/sdks/go/docs/models/shared/stagesenddestinationwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesenddestinationwallet.md rename to releases/sdks/go/docs/models/shared/stagesenddestinationwallet.md diff --git a/libs/clients/go/docs/models/shared/stagesendsource.md b/releases/sdks/go/docs/models/shared/stagesendsource.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesendsource.md rename to releases/sdks/go/docs/models/shared/stagesendsource.md diff --git a/libs/clients/go/docs/models/shared/stagesendsourceaccount.md b/releases/sdks/go/docs/models/shared/stagesendsourceaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesendsourceaccount.md rename to releases/sdks/go/docs/models/shared/stagesendsourceaccount.md diff --git a/libs/clients/go/docs/models/shared/stagesendsourcepayment.md b/releases/sdks/go/docs/models/shared/stagesendsourcepayment.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesendsourcepayment.md rename to releases/sdks/go/docs/models/shared/stagesendsourcepayment.md diff --git a/libs/clients/go/docs/models/shared/stagesendsourcewallet.md b/releases/sdks/go/docs/models/shared/stagesendsourcewallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagesendsourcewallet.md rename to releases/sdks/go/docs/models/shared/stagesendsourcewallet.md diff --git a/libs/clients/go/docs/models/shared/stagestatus.md b/releases/sdks/go/docs/models/shared/stagestatus.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagestatus.md rename to releases/sdks/go/docs/models/shared/stagestatus.md diff --git a/libs/clients/go/docs/models/shared/stagewaitevent.md b/releases/sdks/go/docs/models/shared/stagewaitevent.md similarity index 100% rename from libs/clients/go/docs/models/shared/stagewaitevent.md rename to releases/sdks/go/docs/models/shared/stagewaitevent.md diff --git a/libs/clients/go/docs/models/shared/stats.md b/releases/sdks/go/docs/models/shared/stats.md similarity index 100% rename from libs/clients/go/docs/models/shared/stats.md rename to releases/sdks/go/docs/models/shared/stats.md diff --git a/libs/clients/go/docs/models/shared/statsresponse.md b/releases/sdks/go/docs/models/shared/statsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/statsresponse.md rename to releases/sdks/go/docs/models/shared/statsresponse.md diff --git a/libs/clients/go/docs/models/shared/stripeconfig.md b/releases/sdks/go/docs/models/shared/stripeconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/stripeconfig.md rename to releases/sdks/go/docs/models/shared/stripeconfig.md diff --git a/libs/clients/go/docs/models/shared/subject.md b/releases/sdks/go/docs/models/shared/subject.md similarity index 100% rename from libs/clients/go/docs/models/shared/subject.md rename to releases/sdks/go/docs/models/shared/subject.md diff --git a/libs/clients/go/docs/models/shared/taskbankingcircle.md b/releases/sdks/go/docs/models/shared/taskbankingcircle.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskbankingcircle.md rename to releases/sdks/go/docs/models/shared/taskbankingcircle.md diff --git a/libs/clients/go/docs/models/shared/taskbankingcircledescriptor.md b/releases/sdks/go/docs/models/shared/taskbankingcircledescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskbankingcircledescriptor.md rename to releases/sdks/go/docs/models/shared/taskbankingcircledescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskbankingcirclestate.md b/releases/sdks/go/docs/models/shared/taskbankingcirclestate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskbankingcirclestate.md rename to releases/sdks/go/docs/models/shared/taskbankingcirclestate.md diff --git a/libs/clients/go/docs/models/shared/taskcurrencycloud.md b/releases/sdks/go/docs/models/shared/taskcurrencycloud.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskcurrencycloud.md rename to releases/sdks/go/docs/models/shared/taskcurrencycloud.md diff --git a/libs/clients/go/docs/models/shared/taskcurrencyclouddescriptor.md b/releases/sdks/go/docs/models/shared/taskcurrencyclouddescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskcurrencyclouddescriptor.md rename to releases/sdks/go/docs/models/shared/taskcurrencyclouddescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskcurrencycloudstate.md b/releases/sdks/go/docs/models/shared/taskcurrencycloudstate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskcurrencycloudstate.md rename to releases/sdks/go/docs/models/shared/taskcurrencycloudstate.md diff --git a/libs/clients/go/docs/models/shared/taskdummypay.md b/releases/sdks/go/docs/models/shared/taskdummypay.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskdummypay.md rename to releases/sdks/go/docs/models/shared/taskdummypay.md diff --git a/libs/clients/go/docs/models/shared/taskdummypaydescriptor.md b/releases/sdks/go/docs/models/shared/taskdummypaydescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskdummypaydescriptor.md rename to releases/sdks/go/docs/models/shared/taskdummypaydescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskdummypaystate.md b/releases/sdks/go/docs/models/shared/taskdummypaystate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskdummypaystate.md rename to releases/sdks/go/docs/models/shared/taskdummypaystate.md diff --git a/libs/clients/go/docs/models/shared/taskmangopay.md b/releases/sdks/go/docs/models/shared/taskmangopay.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmangopay.md rename to releases/sdks/go/docs/models/shared/taskmangopay.md diff --git a/libs/clients/go/docs/models/shared/taskmangopaydescriptor.md b/releases/sdks/go/docs/models/shared/taskmangopaydescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmangopaydescriptor.md rename to releases/sdks/go/docs/models/shared/taskmangopaydescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskmangopaystate.md b/releases/sdks/go/docs/models/shared/taskmangopaystate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmangopaystate.md rename to releases/sdks/go/docs/models/shared/taskmangopaystate.md diff --git a/libs/clients/go/docs/models/shared/taskmodulr.md b/releases/sdks/go/docs/models/shared/taskmodulr.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmodulr.md rename to releases/sdks/go/docs/models/shared/taskmodulr.md diff --git a/libs/clients/go/docs/models/shared/taskmodulrdescriptor.md b/releases/sdks/go/docs/models/shared/taskmodulrdescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmodulrdescriptor.md rename to releases/sdks/go/docs/models/shared/taskmodulrdescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskmodulrstate.md b/releases/sdks/go/docs/models/shared/taskmodulrstate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmodulrstate.md rename to releases/sdks/go/docs/models/shared/taskmodulrstate.md diff --git a/libs/clients/go/docs/models/shared/taskmoneycorp.md b/releases/sdks/go/docs/models/shared/taskmoneycorp.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmoneycorp.md rename to releases/sdks/go/docs/models/shared/taskmoneycorp.md diff --git a/libs/clients/go/docs/models/shared/taskmoneycorpdescriptor.md b/releases/sdks/go/docs/models/shared/taskmoneycorpdescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmoneycorpdescriptor.md rename to releases/sdks/go/docs/models/shared/taskmoneycorpdescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskmoneycorpstate.md b/releases/sdks/go/docs/models/shared/taskmoneycorpstate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskmoneycorpstate.md rename to releases/sdks/go/docs/models/shared/taskmoneycorpstate.md diff --git a/libs/clients/go/docs/models/shared/taskresponse.md b/releases/sdks/go/docs/models/shared/taskresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskresponse.md rename to releases/sdks/go/docs/models/shared/taskresponse.md diff --git a/libs/clients/go/docs/models/shared/taskresponsedata.md b/releases/sdks/go/docs/models/shared/taskresponsedata.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskresponsedata.md rename to releases/sdks/go/docs/models/shared/taskresponsedata.md diff --git a/libs/clients/go/docs/models/shared/taskscursor.md b/releases/sdks/go/docs/models/shared/taskscursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskscursor.md rename to releases/sdks/go/docs/models/shared/taskscursor.md diff --git a/libs/clients/go/docs/models/shared/taskscursorcursor.md b/releases/sdks/go/docs/models/shared/taskscursorcursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskscursorcursor.md rename to releases/sdks/go/docs/models/shared/taskscursorcursor.md diff --git a/libs/clients/go/docs/models/shared/taskscursorcursordata.md b/releases/sdks/go/docs/models/shared/taskscursorcursordata.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskscursorcursordata.md rename to releases/sdks/go/docs/models/shared/taskscursorcursordata.md diff --git a/libs/clients/go/docs/models/shared/taskstripe.md b/releases/sdks/go/docs/models/shared/taskstripe.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskstripe.md rename to releases/sdks/go/docs/models/shared/taskstripe.md diff --git a/libs/clients/go/docs/models/shared/taskstripedescriptor.md b/releases/sdks/go/docs/models/shared/taskstripedescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskstripedescriptor.md rename to releases/sdks/go/docs/models/shared/taskstripedescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskstripestate.md b/releases/sdks/go/docs/models/shared/taskstripestate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskstripestate.md rename to releases/sdks/go/docs/models/shared/taskstripestate.md diff --git a/libs/clients/go/docs/models/shared/taskwise.md b/releases/sdks/go/docs/models/shared/taskwise.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskwise.md rename to releases/sdks/go/docs/models/shared/taskwise.md diff --git a/libs/clients/go/docs/models/shared/taskwisedescriptor.md b/releases/sdks/go/docs/models/shared/taskwisedescriptor.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskwisedescriptor.md rename to releases/sdks/go/docs/models/shared/taskwisedescriptor.md diff --git a/libs/clients/go/docs/models/shared/taskwisestate.md b/releases/sdks/go/docs/models/shared/taskwisestate.md similarity index 100% rename from libs/clients/go/docs/models/shared/taskwisestate.md rename to releases/sdks/go/docs/models/shared/taskwisestate.md diff --git a/libs/clients/go/docs/models/shared/transaction.md b/releases/sdks/go/docs/models/shared/transaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/transaction.md rename to releases/sdks/go/docs/models/shared/transaction.md diff --git a/libs/clients/go/docs/models/shared/transactiondata.md b/releases/sdks/go/docs/models/shared/transactiondata.md similarity index 100% rename from libs/clients/go/docs/models/shared/transactiondata.md rename to releases/sdks/go/docs/models/shared/transactiondata.md diff --git a/libs/clients/go/docs/models/shared/transactionresponse.md b/releases/sdks/go/docs/models/shared/transactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/transactionresponse.md rename to releases/sdks/go/docs/models/shared/transactionresponse.md diff --git a/libs/clients/go/docs/models/shared/transactions.md b/releases/sdks/go/docs/models/shared/transactions.md similarity index 100% rename from libs/clients/go/docs/models/shared/transactions.md rename to releases/sdks/go/docs/models/shared/transactions.md diff --git a/libs/clients/go/docs/models/shared/transactionscursorresponse.md b/releases/sdks/go/docs/models/shared/transactionscursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/transactionscursorresponse.md rename to releases/sdks/go/docs/models/shared/transactionscursorresponse.md diff --git a/libs/clients/go/docs/models/shared/transactionscursorresponsecursor.md b/releases/sdks/go/docs/models/shared/transactionscursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/transactionscursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/transactionscursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/transactionsresponse.md b/releases/sdks/go/docs/models/shared/transactionsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/transactionsresponse.md rename to releases/sdks/go/docs/models/shared/transactionsresponse.md diff --git a/libs/clients/go/docs/models/shared/transferinitiation.md b/releases/sdks/go/docs/models/shared/transferinitiation.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiation.md rename to releases/sdks/go/docs/models/shared/transferinitiation.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationpayments.md b/releases/sdks/go/docs/models/shared/transferinitiationpayments.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationpayments.md rename to releases/sdks/go/docs/models/shared/transferinitiationpayments.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationrequest.md b/releases/sdks/go/docs/models/shared/transferinitiationrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationrequest.md rename to releases/sdks/go/docs/models/shared/transferinitiationrequest.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationrequesttype.md b/releases/sdks/go/docs/models/shared/transferinitiationrequesttype.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationrequesttype.md rename to releases/sdks/go/docs/models/shared/transferinitiationrequesttype.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationresponse.md b/releases/sdks/go/docs/models/shared/transferinitiationresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationresponse.md rename to releases/sdks/go/docs/models/shared/transferinitiationresponse.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationscursor.md b/releases/sdks/go/docs/models/shared/transferinitiationscursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationscursor.md rename to releases/sdks/go/docs/models/shared/transferinitiationscursor.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationscursorcursor.md b/releases/sdks/go/docs/models/shared/transferinitiationscursorcursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationscursorcursor.md rename to releases/sdks/go/docs/models/shared/transferinitiationscursorcursor.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationstatus.md b/releases/sdks/go/docs/models/shared/transferinitiationstatus.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationstatus.md rename to releases/sdks/go/docs/models/shared/transferinitiationstatus.md diff --git a/libs/clients/go/docs/models/shared/transferinitiationtype.md b/releases/sdks/go/docs/models/shared/transferinitiationtype.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferinitiationtype.md rename to releases/sdks/go/docs/models/shared/transferinitiationtype.md diff --git a/libs/clients/go/docs/models/shared/transferrequest.md b/releases/sdks/go/docs/models/shared/transferrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferrequest.md rename to releases/sdks/go/docs/models/shared/transferrequest.md diff --git a/libs/clients/go/docs/models/shared/transferresponse.md b/releases/sdks/go/docs/models/shared/transferresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/transferresponse.md rename to releases/sdks/go/docs/models/shared/transferresponse.md diff --git a/libs/clients/go/docs/models/shared/trigger.md b/releases/sdks/go/docs/models/shared/trigger.md similarity index 100% rename from libs/clients/go/docs/models/shared/trigger.md rename to releases/sdks/go/docs/models/shared/trigger.md diff --git a/libs/clients/go/docs/models/shared/triggerdata.md b/releases/sdks/go/docs/models/shared/triggerdata.md similarity index 100% rename from libs/clients/go/docs/models/shared/triggerdata.md rename to releases/sdks/go/docs/models/shared/triggerdata.md diff --git a/libs/clients/go/docs/models/shared/triggeroccurrence.md b/releases/sdks/go/docs/models/shared/triggeroccurrence.md similarity index 100% rename from libs/clients/go/docs/models/shared/triggeroccurrence.md rename to releases/sdks/go/docs/models/shared/triggeroccurrence.md diff --git a/libs/clients/go/docs/models/shared/updateclientrequest.md b/releases/sdks/go/docs/models/shared/updateclientrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/updateclientrequest.md rename to releases/sdks/go/docs/models/shared/updateclientrequest.md diff --git a/libs/clients/go/docs/models/shared/updateclientresponse.md b/releases/sdks/go/docs/models/shared/updateclientresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/updateclientresponse.md rename to releases/sdks/go/docs/models/shared/updateclientresponse.md diff --git a/libs/clients/go/docs/models/shared/updatetransferinitiationstatusrequest.md b/releases/sdks/go/docs/models/shared/updatetransferinitiationstatusrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/updatetransferinitiationstatusrequest.md rename to releases/sdks/go/docs/models/shared/updatetransferinitiationstatusrequest.md diff --git a/libs/clients/go/docs/models/shared/updatetransferinitiationstatusrequeststatus.md b/releases/sdks/go/docs/models/shared/updatetransferinitiationstatusrequeststatus.md similarity index 100% rename from libs/clients/go/docs/models/shared/updatetransferinitiationstatusrequeststatus.md rename to releases/sdks/go/docs/models/shared/updatetransferinitiationstatusrequeststatus.md diff --git a/libs/clients/go/docs/models/shared/user.md b/releases/sdks/go/docs/models/shared/user.md similarity index 100% rename from libs/clients/go/docs/models/shared/user.md rename to releases/sdks/go/docs/models/shared/user.md diff --git a/libs/clients/go/docs/models/shared/v2account.md b/releases/sdks/go/docs/models/shared/v2account.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2account.md rename to releases/sdks/go/docs/models/shared/v2account.md diff --git a/libs/clients/go/docs/models/shared/v2accountresponse.md b/releases/sdks/go/docs/models/shared/v2accountresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2accountresponse.md rename to releases/sdks/go/docs/models/shared/v2accountresponse.md diff --git a/libs/clients/go/docs/models/shared/v2accountscursorresponse.md b/releases/sdks/go/docs/models/shared/v2accountscursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2accountscursorresponse.md rename to releases/sdks/go/docs/models/shared/v2accountscursorresponse.md diff --git a/libs/clients/go/docs/models/shared/v2accountscursorresponsecursor.md b/releases/sdks/go/docs/models/shared/v2accountscursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2accountscursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2accountscursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2activityconfirmhold.md b/releases/sdks/go/docs/models/shared/v2activityconfirmhold.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activityconfirmhold.md rename to releases/sdks/go/docs/models/shared/v2activityconfirmhold.md diff --git a/libs/clients/go/docs/models/shared/v2activitycreatetransaction.md b/releases/sdks/go/docs/models/shared/v2activitycreatetransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitycreatetransaction.md rename to releases/sdks/go/docs/models/shared/v2activitycreatetransaction.md diff --git a/libs/clients/go/docs/models/shared/v2activitycreatetransactionoutput.md b/releases/sdks/go/docs/models/shared/v2activitycreatetransactionoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitycreatetransactionoutput.md rename to releases/sdks/go/docs/models/shared/v2activitycreatetransactionoutput.md diff --git a/libs/clients/go/docs/models/shared/v2activitycreditwallet.md b/releases/sdks/go/docs/models/shared/v2activitycreditwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitycreditwallet.md rename to releases/sdks/go/docs/models/shared/v2activitycreditwallet.md diff --git a/libs/clients/go/docs/models/shared/v2activitydebitwallet.md b/releases/sdks/go/docs/models/shared/v2activitydebitwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitydebitwallet.md rename to releases/sdks/go/docs/models/shared/v2activitydebitwallet.md diff --git a/libs/clients/go/docs/models/shared/v2activitydebitwalletoutput.md b/releases/sdks/go/docs/models/shared/v2activitydebitwalletoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitydebitwalletoutput.md rename to releases/sdks/go/docs/models/shared/v2activitydebitwalletoutput.md diff --git a/libs/clients/go/docs/models/shared/v2activitygetaccount.md b/releases/sdks/go/docs/models/shared/v2activitygetaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitygetaccount.md rename to releases/sdks/go/docs/models/shared/v2activitygetaccount.md diff --git a/libs/clients/go/docs/models/shared/v2activitygetaccountoutput.md b/releases/sdks/go/docs/models/shared/v2activitygetaccountoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitygetaccountoutput.md rename to releases/sdks/go/docs/models/shared/v2activitygetaccountoutput.md diff --git a/libs/clients/go/docs/models/shared/v2activitygetpayment.md b/releases/sdks/go/docs/models/shared/v2activitygetpayment.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitygetpayment.md rename to releases/sdks/go/docs/models/shared/v2activitygetpayment.md diff --git a/libs/clients/go/docs/models/shared/v2activitygetpaymentoutput.md b/releases/sdks/go/docs/models/shared/v2activitygetpaymentoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitygetpaymentoutput.md rename to releases/sdks/go/docs/models/shared/v2activitygetpaymentoutput.md diff --git a/libs/clients/go/docs/models/shared/v2activitygetwallet.md b/releases/sdks/go/docs/models/shared/v2activitygetwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitygetwallet.md rename to releases/sdks/go/docs/models/shared/v2activitygetwallet.md diff --git a/libs/clients/go/docs/models/shared/v2activitygetwalletoutput.md b/releases/sdks/go/docs/models/shared/v2activitygetwalletoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitygetwalletoutput.md rename to releases/sdks/go/docs/models/shared/v2activitygetwalletoutput.md diff --git a/libs/clients/go/docs/models/shared/v2activitylistwallets.md b/releases/sdks/go/docs/models/shared/v2activitylistwallets.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitylistwallets.md rename to releases/sdks/go/docs/models/shared/v2activitylistwallets.md diff --git a/libs/clients/go/docs/models/shared/v2activitystripetransfer.md b/releases/sdks/go/docs/models/shared/v2activitystripetransfer.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitystripetransfer.md rename to releases/sdks/go/docs/models/shared/v2activitystripetransfer.md diff --git a/libs/clients/go/docs/models/shared/v2activitystripetransfermetadata.md b/releases/sdks/go/docs/models/shared/v2activitystripetransfermetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activitystripetransfermetadata.md rename to releases/sdks/go/docs/models/shared/v2activitystripetransfermetadata.md diff --git a/libs/clients/go/docs/models/shared/v2activityvoidhold.md b/releases/sdks/go/docs/models/shared/v2activityvoidhold.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2activityvoidhold.md rename to releases/sdks/go/docs/models/shared/v2activityvoidhold.md diff --git a/libs/clients/go/docs/models/shared/v2aggregatebalancesresponse.md b/releases/sdks/go/docs/models/shared/v2aggregatebalancesresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2aggregatebalancesresponse.md rename to releases/sdks/go/docs/models/shared/v2aggregatebalancesresponse.md diff --git a/libs/clients/go/docs/models/shared/v2assetholder.md b/releases/sdks/go/docs/models/shared/v2assetholder.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2assetholder.md rename to releases/sdks/go/docs/models/shared/v2assetholder.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelement.md b/releases/sdks/go/docs/models/shared/v2bulkelement.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelement.md rename to releases/sdks/go/docs/models/shared/v2bulkelement.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementresult.md b/releases/sdks/go/docs/models/shared/v2bulkelementresult.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementresult.md rename to releases/sdks/go/docs/models/shared/v2bulkelementresult.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultaddmetadata.md b/releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultaddmetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultaddmetadata.md rename to releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultaddmetadata.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultcreatetransaction.md b/releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultcreatetransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultcreatetransaction.md rename to releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultcreatetransaction.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultdeletemetadata.md b/releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultdeletemetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultdeletemetadata.md rename to releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultdeletemetadata.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresulterror.md b/releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresulterror.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresulterror.md rename to releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresulterror.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultreverttransaction.md b/releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultreverttransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementresultv2bulkelementresultreverttransaction.md rename to releases/sdks/go/docs/models/shared/v2bulkelementresultv2bulkelementresultreverttransaction.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadata.md b/releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadata.md rename to releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadata.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadatadata.md b/releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadatadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadatadata.md rename to releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementaddmetadatadata.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementcreatetransaction.md b/releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementcreatetransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementcreatetransaction.md rename to releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementcreatetransaction.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadata.md b/releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadata.md rename to releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadata.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadatadata.md b/releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadatadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadatadata.md rename to releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementdeletemetadatadata.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementreverttransaction.md b/releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementreverttransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementreverttransaction.md rename to releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementreverttransaction.md diff --git a/libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementreverttransactiondata.md b/releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementreverttransactiondata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkelementv2bulkelementreverttransactiondata.md rename to releases/sdks/go/docs/models/shared/v2bulkelementv2bulkelementreverttransactiondata.md diff --git a/libs/clients/go/docs/models/shared/v2bulkresponse.md b/releases/sdks/go/docs/models/shared/v2bulkresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2bulkresponse.md rename to releases/sdks/go/docs/models/shared/v2bulkresponse.md diff --git a/libs/clients/go/docs/models/shared/v2configinforesponse.md b/releases/sdks/go/docs/models/shared/v2configinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2configinforesponse.md rename to releases/sdks/go/docs/models/shared/v2configinforesponse.md diff --git a/libs/clients/go/docs/models/shared/v2connector.md b/releases/sdks/go/docs/models/shared/v2connector.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2connector.md rename to releases/sdks/go/docs/models/shared/v2connector.md diff --git a/libs/clients/go/docs/models/shared/v2createledgerrequest.md b/releases/sdks/go/docs/models/shared/v2createledgerrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2createledgerrequest.md rename to releases/sdks/go/docs/models/shared/v2createledgerrequest.md diff --git a/libs/clients/go/docs/models/shared/v2createtransactionresponse.md b/releases/sdks/go/docs/models/shared/v2createtransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2createtransactionresponse.md rename to releases/sdks/go/docs/models/shared/v2createtransactionresponse.md diff --git a/libs/clients/go/docs/models/shared/v2createtriggerresponse.md b/releases/sdks/go/docs/models/shared/v2createtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2createtriggerresponse.md rename to releases/sdks/go/docs/models/shared/v2createtriggerresponse.md diff --git a/libs/clients/go/docs/models/shared/v2createworkflowrequest.md b/releases/sdks/go/docs/models/shared/v2createworkflowrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2createworkflowrequest.md rename to releases/sdks/go/docs/models/shared/v2createworkflowrequest.md diff --git a/libs/clients/go/docs/models/shared/v2createworkflowresponse.md b/releases/sdks/go/docs/models/shared/v2createworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2createworkflowresponse.md rename to releases/sdks/go/docs/models/shared/v2createworkflowresponse.md diff --git a/libs/clients/go/docs/models/shared/v2creditwalletrequest.md b/releases/sdks/go/docs/models/shared/v2creditwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2creditwalletrequest.md rename to releases/sdks/go/docs/models/shared/v2creditwalletrequest.md diff --git a/libs/clients/go/docs/models/shared/v2debitwalletrequest.md b/releases/sdks/go/docs/models/shared/v2debitwalletrequest.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2debitwalletrequest.md rename to releases/sdks/go/docs/models/shared/v2debitwalletrequest.md diff --git a/libs/clients/go/docs/models/shared/v2error.md b/releases/sdks/go/docs/models/shared/v2error.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2error.md rename to releases/sdks/go/docs/models/shared/v2error.md diff --git a/libs/clients/go/docs/models/shared/v2errorerrorcode.md b/releases/sdks/go/docs/models/shared/v2errorerrorcode.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2errorerrorcode.md rename to releases/sdks/go/docs/models/shared/v2errorerrorcode.md diff --git a/libs/clients/go/docs/models/shared/v2errorresponse.md b/releases/sdks/go/docs/models/shared/v2errorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2errorresponse.md rename to releases/sdks/go/docs/models/shared/v2errorresponse.md diff --git a/libs/clients/go/docs/models/shared/v2errorsenum.md b/releases/sdks/go/docs/models/shared/v2errorsenum.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2errorsenum.md rename to releases/sdks/go/docs/models/shared/v2errorsenum.md diff --git a/libs/clients/go/docs/models/shared/v2expandedtransaction.md b/releases/sdks/go/docs/models/shared/v2expandedtransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2expandedtransaction.md rename to releases/sdks/go/docs/models/shared/v2expandedtransaction.md diff --git a/libs/clients/go/docs/models/shared/v2gettransactionresponse.md b/releases/sdks/go/docs/models/shared/v2gettransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2gettransactionresponse.md rename to releases/sdks/go/docs/models/shared/v2gettransactionresponse.md diff --git a/libs/clients/go/docs/models/shared/v2getworkflowinstancehistoryresponse.md b/releases/sdks/go/docs/models/shared/v2getworkflowinstancehistoryresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2getworkflowinstancehistoryresponse.md rename to releases/sdks/go/docs/models/shared/v2getworkflowinstancehistoryresponse.md diff --git a/libs/clients/go/docs/models/shared/v2getworkflowinstancehistorystageresponse.md b/releases/sdks/go/docs/models/shared/v2getworkflowinstancehistorystageresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2getworkflowinstancehistorystageresponse.md rename to releases/sdks/go/docs/models/shared/v2getworkflowinstancehistorystageresponse.md diff --git a/libs/clients/go/docs/models/shared/v2getworkflowinstanceresponse.md b/releases/sdks/go/docs/models/shared/v2getworkflowinstanceresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2getworkflowinstanceresponse.md rename to releases/sdks/go/docs/models/shared/v2getworkflowinstanceresponse.md diff --git a/libs/clients/go/docs/models/shared/v2getworkflowresponse.md b/releases/sdks/go/docs/models/shared/v2getworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2getworkflowresponse.md rename to releases/sdks/go/docs/models/shared/v2getworkflowresponse.md diff --git a/libs/clients/go/docs/models/shared/v2hold.md b/releases/sdks/go/docs/models/shared/v2hold.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2hold.md rename to releases/sdks/go/docs/models/shared/v2hold.md diff --git a/libs/clients/go/docs/models/shared/v2ledger.md b/releases/sdks/go/docs/models/shared/v2ledger.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2ledger.md rename to releases/sdks/go/docs/models/shared/v2ledger.md diff --git a/libs/clients/go/docs/models/shared/v2ledgeraccountsubject.md b/releases/sdks/go/docs/models/shared/v2ledgeraccountsubject.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2ledgeraccountsubject.md rename to releases/sdks/go/docs/models/shared/v2ledgeraccountsubject.md diff --git a/libs/clients/go/docs/models/shared/v2ledgerinfo.md b/releases/sdks/go/docs/models/shared/v2ledgerinfo.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2ledgerinfo.md rename to releases/sdks/go/docs/models/shared/v2ledgerinfo.md diff --git a/libs/clients/go/docs/models/shared/v2ledgerinforesponse.md b/releases/sdks/go/docs/models/shared/v2ledgerinforesponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2ledgerinforesponse.md rename to releases/sdks/go/docs/models/shared/v2ledgerinforesponse.md diff --git a/libs/clients/go/docs/models/shared/v2ledgerinfostorage.md b/releases/sdks/go/docs/models/shared/v2ledgerinfostorage.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2ledgerinfostorage.md rename to releases/sdks/go/docs/models/shared/v2ledgerinfostorage.md diff --git a/libs/clients/go/docs/models/shared/v2ledgerlistresponse.md b/releases/sdks/go/docs/models/shared/v2ledgerlistresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2ledgerlistresponse.md rename to releases/sdks/go/docs/models/shared/v2ledgerlistresponse.md diff --git a/libs/clients/go/docs/models/shared/v2ledgerlistresponsecursor.md b/releases/sdks/go/docs/models/shared/v2ledgerlistresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2ledgerlistresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2ledgerlistresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2listrunsresponse.md b/releases/sdks/go/docs/models/shared/v2listrunsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listrunsresponse.md rename to releases/sdks/go/docs/models/shared/v2listrunsresponse.md diff --git a/libs/clients/go/docs/models/shared/v2listrunsresponsecursor.md b/releases/sdks/go/docs/models/shared/v2listrunsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listrunsresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2listrunsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2listtriggersoccurrencesresponse.md b/releases/sdks/go/docs/models/shared/v2listtriggersoccurrencesresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listtriggersoccurrencesresponse.md rename to releases/sdks/go/docs/models/shared/v2listtriggersoccurrencesresponse.md diff --git a/libs/clients/go/docs/models/shared/v2listtriggersoccurrencesresponsecursor.md b/releases/sdks/go/docs/models/shared/v2listtriggersoccurrencesresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listtriggersoccurrencesresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2listtriggersoccurrencesresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2listtriggersresponse.md b/releases/sdks/go/docs/models/shared/v2listtriggersresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listtriggersresponse.md rename to releases/sdks/go/docs/models/shared/v2listtriggersresponse.md diff --git a/libs/clients/go/docs/models/shared/v2listtriggersresponsecursor.md b/releases/sdks/go/docs/models/shared/v2listtriggersresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listtriggersresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2listtriggersresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2listwalletsresponse.md b/releases/sdks/go/docs/models/shared/v2listwalletsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listwalletsresponse.md rename to releases/sdks/go/docs/models/shared/v2listwalletsresponse.md diff --git a/libs/clients/go/docs/models/shared/v2listwalletsresponsecursor.md b/releases/sdks/go/docs/models/shared/v2listwalletsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listwalletsresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2listwalletsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2listworkflowsresponse.md b/releases/sdks/go/docs/models/shared/v2listworkflowsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listworkflowsresponse.md rename to releases/sdks/go/docs/models/shared/v2listworkflowsresponse.md diff --git a/libs/clients/go/docs/models/shared/v2listworkflowsresponsecursor.md b/releases/sdks/go/docs/models/shared/v2listworkflowsresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2listworkflowsresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2listworkflowsresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2log.md b/releases/sdks/go/docs/models/shared/v2log.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2log.md rename to releases/sdks/go/docs/models/shared/v2log.md diff --git a/libs/clients/go/docs/models/shared/v2logscursorresponse.md b/releases/sdks/go/docs/models/shared/v2logscursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2logscursorresponse.md rename to releases/sdks/go/docs/models/shared/v2logscursorresponse.md diff --git a/libs/clients/go/docs/models/shared/v2logscursorresponsecursor.md b/releases/sdks/go/docs/models/shared/v2logscursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2logscursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2logscursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2logtype.md b/releases/sdks/go/docs/models/shared/v2logtype.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2logtype.md rename to releases/sdks/go/docs/models/shared/v2logtype.md diff --git a/libs/clients/go/docs/models/shared/v2migrationinfo.md b/releases/sdks/go/docs/models/shared/v2migrationinfo.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2migrationinfo.md rename to releases/sdks/go/docs/models/shared/v2migrationinfo.md diff --git a/libs/clients/go/docs/models/shared/v2migrationinfostate.md b/releases/sdks/go/docs/models/shared/v2migrationinfostate.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2migrationinfostate.md rename to releases/sdks/go/docs/models/shared/v2migrationinfostate.md diff --git a/libs/clients/go/docs/models/shared/v2monetary.md b/releases/sdks/go/docs/models/shared/v2monetary.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2monetary.md rename to releases/sdks/go/docs/models/shared/v2monetary.md diff --git a/libs/clients/go/docs/models/shared/v2payment.md b/releases/sdks/go/docs/models/shared/v2payment.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2payment.md rename to releases/sdks/go/docs/models/shared/v2payment.md diff --git a/libs/clients/go/docs/models/shared/v2paymentadjustment.md b/releases/sdks/go/docs/models/shared/v2paymentadjustment.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2paymentadjustment.md rename to releases/sdks/go/docs/models/shared/v2paymentadjustment.md diff --git a/libs/clients/go/docs/models/shared/v2paymentadjustmentraw.md b/releases/sdks/go/docs/models/shared/v2paymentadjustmentraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2paymentadjustmentraw.md rename to releases/sdks/go/docs/models/shared/v2paymentadjustmentraw.md diff --git a/libs/clients/go/docs/models/shared/v2paymentmetadata.md b/releases/sdks/go/docs/models/shared/v2paymentmetadata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2paymentmetadata.md rename to releases/sdks/go/docs/models/shared/v2paymentmetadata.md diff --git a/libs/clients/go/docs/models/shared/v2paymentraw.md b/releases/sdks/go/docs/models/shared/v2paymentraw.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2paymentraw.md rename to releases/sdks/go/docs/models/shared/v2paymentraw.md diff --git a/libs/clients/go/docs/models/shared/v2paymentscheme.md b/releases/sdks/go/docs/models/shared/v2paymentscheme.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2paymentscheme.md rename to releases/sdks/go/docs/models/shared/v2paymentscheme.md diff --git a/libs/clients/go/docs/models/shared/v2paymentstatus.md b/releases/sdks/go/docs/models/shared/v2paymentstatus.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2paymentstatus.md rename to releases/sdks/go/docs/models/shared/v2paymentstatus.md diff --git a/libs/clients/go/docs/models/shared/v2paymenttype.md b/releases/sdks/go/docs/models/shared/v2paymenttype.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2paymenttype.md rename to releases/sdks/go/docs/models/shared/v2paymenttype.md diff --git a/libs/clients/go/docs/models/shared/v2posting.md b/releases/sdks/go/docs/models/shared/v2posting.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2posting.md rename to releases/sdks/go/docs/models/shared/v2posting.md diff --git a/libs/clients/go/docs/models/shared/v2posttransaction.md b/releases/sdks/go/docs/models/shared/v2posttransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2posttransaction.md rename to releases/sdks/go/docs/models/shared/v2posttransaction.md diff --git a/libs/clients/go/docs/models/shared/v2posttransactionscript.md b/releases/sdks/go/docs/models/shared/v2posttransactionscript.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2posttransactionscript.md rename to releases/sdks/go/docs/models/shared/v2posttransactionscript.md diff --git a/libs/clients/go/docs/models/shared/v2readtriggerresponse.md b/releases/sdks/go/docs/models/shared/v2readtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2readtriggerresponse.md rename to releases/sdks/go/docs/models/shared/v2readtriggerresponse.md diff --git a/libs/clients/go/docs/models/shared/v2reverttransactionresponse.md b/releases/sdks/go/docs/models/shared/v2reverttransactionresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2reverttransactionresponse.md rename to releases/sdks/go/docs/models/shared/v2reverttransactionresponse.md diff --git a/libs/clients/go/docs/models/shared/v2runworkflowresponse.md b/releases/sdks/go/docs/models/shared/v2runworkflowresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2runworkflowresponse.md rename to releases/sdks/go/docs/models/shared/v2runworkflowresponse.md diff --git a/libs/clients/go/docs/models/shared/v2serverinfo.md b/releases/sdks/go/docs/models/shared/v2serverinfo.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2serverinfo.md rename to releases/sdks/go/docs/models/shared/v2serverinfo.md diff --git a/libs/clients/go/docs/models/shared/v2stage.md b/releases/sdks/go/docs/models/shared/v2stage.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stage.md rename to releases/sdks/go/docs/models/shared/v2stage.md diff --git a/libs/clients/go/docs/models/shared/v2stagedelay.md b/releases/sdks/go/docs/models/shared/v2stagedelay.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagedelay.md rename to releases/sdks/go/docs/models/shared/v2stagedelay.md diff --git a/libs/clients/go/docs/models/shared/v2stagesend.md b/releases/sdks/go/docs/models/shared/v2stagesend.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesend.md rename to releases/sdks/go/docs/models/shared/v2stagesend.md diff --git a/libs/clients/go/docs/models/shared/v2stagesenddestination.md b/releases/sdks/go/docs/models/shared/v2stagesenddestination.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesenddestination.md rename to releases/sdks/go/docs/models/shared/v2stagesenddestination.md diff --git a/libs/clients/go/docs/models/shared/v2stagesenddestinationaccount.md b/releases/sdks/go/docs/models/shared/v2stagesenddestinationaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesenddestinationaccount.md rename to releases/sdks/go/docs/models/shared/v2stagesenddestinationaccount.md diff --git a/libs/clients/go/docs/models/shared/v2stagesenddestinationpayment.md b/releases/sdks/go/docs/models/shared/v2stagesenddestinationpayment.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesenddestinationpayment.md rename to releases/sdks/go/docs/models/shared/v2stagesenddestinationpayment.md diff --git a/libs/clients/go/docs/models/shared/v2stagesenddestinationwallet.md b/releases/sdks/go/docs/models/shared/v2stagesenddestinationwallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesenddestinationwallet.md rename to releases/sdks/go/docs/models/shared/v2stagesenddestinationwallet.md diff --git a/libs/clients/go/docs/models/shared/v2stagesendsource.md b/releases/sdks/go/docs/models/shared/v2stagesendsource.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesendsource.md rename to releases/sdks/go/docs/models/shared/v2stagesendsource.md diff --git a/libs/clients/go/docs/models/shared/v2stagesendsourceaccount.md b/releases/sdks/go/docs/models/shared/v2stagesendsourceaccount.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesendsourceaccount.md rename to releases/sdks/go/docs/models/shared/v2stagesendsourceaccount.md diff --git a/libs/clients/go/docs/models/shared/v2stagesendsourcepayment.md b/releases/sdks/go/docs/models/shared/v2stagesendsourcepayment.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesendsourcepayment.md rename to releases/sdks/go/docs/models/shared/v2stagesendsourcepayment.md diff --git a/libs/clients/go/docs/models/shared/v2stagesendsourcewallet.md b/releases/sdks/go/docs/models/shared/v2stagesendsourcewallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagesendsourcewallet.md rename to releases/sdks/go/docs/models/shared/v2stagesendsourcewallet.md diff --git a/libs/clients/go/docs/models/shared/v2stagestatus.md b/releases/sdks/go/docs/models/shared/v2stagestatus.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagestatus.md rename to releases/sdks/go/docs/models/shared/v2stagestatus.md diff --git a/libs/clients/go/docs/models/shared/v2stagewaitevent.md b/releases/sdks/go/docs/models/shared/v2stagewaitevent.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stagewaitevent.md rename to releases/sdks/go/docs/models/shared/v2stagewaitevent.md diff --git a/libs/clients/go/docs/models/shared/v2stats.md b/releases/sdks/go/docs/models/shared/v2stats.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2stats.md rename to releases/sdks/go/docs/models/shared/v2stats.md diff --git a/libs/clients/go/docs/models/shared/v2statsresponse.md b/releases/sdks/go/docs/models/shared/v2statsresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2statsresponse.md rename to releases/sdks/go/docs/models/shared/v2statsresponse.md diff --git a/libs/clients/go/docs/models/shared/v2subject.md b/releases/sdks/go/docs/models/shared/v2subject.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2subject.md rename to releases/sdks/go/docs/models/shared/v2subject.md diff --git a/libs/clients/go/docs/models/shared/v2targetid.md b/releases/sdks/go/docs/models/shared/v2targetid.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2targetid.md rename to releases/sdks/go/docs/models/shared/v2targetid.md diff --git a/libs/clients/go/docs/models/shared/v2targettype.md b/releases/sdks/go/docs/models/shared/v2targettype.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2targettype.md rename to releases/sdks/go/docs/models/shared/v2targettype.md diff --git a/libs/clients/go/docs/models/shared/v2testtriggerresponse.md b/releases/sdks/go/docs/models/shared/v2testtriggerresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2testtriggerresponse.md rename to releases/sdks/go/docs/models/shared/v2testtriggerresponse.md diff --git a/libs/clients/go/docs/models/shared/v2transaction.md b/releases/sdks/go/docs/models/shared/v2transaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2transaction.md rename to releases/sdks/go/docs/models/shared/v2transaction.md diff --git a/libs/clients/go/docs/models/shared/v2transactionscursorresponse.md b/releases/sdks/go/docs/models/shared/v2transactionscursorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2transactionscursorresponse.md rename to releases/sdks/go/docs/models/shared/v2transactionscursorresponse.md diff --git a/libs/clients/go/docs/models/shared/v2transactionscursorresponsecursor.md b/releases/sdks/go/docs/models/shared/v2transactionscursorresponsecursor.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2transactionscursorresponsecursor.md rename to releases/sdks/go/docs/models/shared/v2transactionscursorresponsecursor.md diff --git a/libs/clients/go/docs/models/shared/v2trigger.md b/releases/sdks/go/docs/models/shared/v2trigger.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2trigger.md rename to releases/sdks/go/docs/models/shared/v2trigger.md diff --git a/libs/clients/go/docs/models/shared/v2triggerdata.md b/releases/sdks/go/docs/models/shared/v2triggerdata.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2triggerdata.md rename to releases/sdks/go/docs/models/shared/v2triggerdata.md diff --git a/libs/clients/go/docs/models/shared/v2triggeroccurrence.md b/releases/sdks/go/docs/models/shared/v2triggeroccurrence.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2triggeroccurrence.md rename to releases/sdks/go/docs/models/shared/v2triggeroccurrence.md diff --git a/libs/clients/go/docs/models/shared/v2triggertest.md b/releases/sdks/go/docs/models/shared/v2triggertest.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2triggertest.md rename to releases/sdks/go/docs/models/shared/v2triggertest.md diff --git a/libs/clients/go/docs/models/shared/v2triggertestfilter.md b/releases/sdks/go/docs/models/shared/v2triggertestfilter.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2triggertestfilter.md rename to releases/sdks/go/docs/models/shared/v2triggertestfilter.md diff --git a/libs/clients/go/docs/models/shared/v2triggertestvariables.md b/releases/sdks/go/docs/models/shared/v2triggertestvariables.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2triggertestvariables.md rename to releases/sdks/go/docs/models/shared/v2triggertestvariables.md diff --git a/libs/clients/go/docs/models/shared/v2volume.md b/releases/sdks/go/docs/models/shared/v2volume.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2volume.md rename to releases/sdks/go/docs/models/shared/v2volume.md diff --git a/libs/clients/go/docs/models/shared/v2wallet.md b/releases/sdks/go/docs/models/shared/v2wallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2wallet.md rename to releases/sdks/go/docs/models/shared/v2wallet.md diff --git a/libs/clients/go/docs/models/shared/v2walletsubject.md b/releases/sdks/go/docs/models/shared/v2walletsubject.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2walletsubject.md rename to releases/sdks/go/docs/models/shared/v2walletsubject.md diff --git a/libs/clients/go/docs/models/shared/v2walletwithbalances.md b/releases/sdks/go/docs/models/shared/v2walletwithbalances.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2walletwithbalances.md rename to releases/sdks/go/docs/models/shared/v2walletwithbalances.md diff --git a/libs/clients/go/docs/models/shared/v2walletwithbalancesbalances.md b/releases/sdks/go/docs/models/shared/v2walletwithbalancesbalances.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2walletwithbalancesbalances.md rename to releases/sdks/go/docs/models/shared/v2walletwithbalancesbalances.md diff --git a/libs/clients/go/docs/models/shared/v2workflow.md b/releases/sdks/go/docs/models/shared/v2workflow.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2workflow.md rename to releases/sdks/go/docs/models/shared/v2workflow.md diff --git a/libs/clients/go/docs/models/shared/v2workflowconfig.md b/releases/sdks/go/docs/models/shared/v2workflowconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2workflowconfig.md rename to releases/sdks/go/docs/models/shared/v2workflowconfig.md diff --git a/libs/clients/go/docs/models/shared/v2workflowinstance.md b/releases/sdks/go/docs/models/shared/v2workflowinstance.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2workflowinstance.md rename to releases/sdks/go/docs/models/shared/v2workflowinstance.md diff --git a/libs/clients/go/docs/models/shared/v2workflowinstancehistory.md b/releases/sdks/go/docs/models/shared/v2workflowinstancehistory.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2workflowinstancehistory.md rename to releases/sdks/go/docs/models/shared/v2workflowinstancehistory.md diff --git a/libs/clients/go/docs/models/shared/v2workflowinstancehistorystage.md b/releases/sdks/go/docs/models/shared/v2workflowinstancehistorystage.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2workflowinstancehistorystage.md rename to releases/sdks/go/docs/models/shared/v2workflowinstancehistorystage.md diff --git a/libs/clients/go/docs/models/shared/v2workflowinstancehistorystageinput.md b/releases/sdks/go/docs/models/shared/v2workflowinstancehistorystageinput.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2workflowinstancehistorystageinput.md rename to releases/sdks/go/docs/models/shared/v2workflowinstancehistorystageinput.md diff --git a/libs/clients/go/docs/models/shared/v2workflowinstancehistorystageoutput.md b/releases/sdks/go/docs/models/shared/v2workflowinstancehistorystageoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/v2workflowinstancehistorystageoutput.md rename to releases/sdks/go/docs/models/shared/v2workflowinstancehistorystageoutput.md diff --git a/libs/clients/go/docs/models/shared/version.md b/releases/sdks/go/docs/models/shared/version.md similarity index 100% rename from libs/clients/go/docs/models/shared/version.md rename to releases/sdks/go/docs/models/shared/version.md diff --git a/libs/clients/go/docs/models/shared/volume.md b/releases/sdks/go/docs/models/shared/volume.md similarity index 100% rename from libs/clients/go/docs/models/shared/volume.md rename to releases/sdks/go/docs/models/shared/volume.md diff --git a/libs/clients/go/docs/models/shared/wallet.md b/releases/sdks/go/docs/models/shared/wallet.md similarity index 100% rename from libs/clients/go/docs/models/shared/wallet.md rename to releases/sdks/go/docs/models/shared/wallet.md diff --git a/libs/clients/go/docs/models/shared/walletserrorresponse.md b/releases/sdks/go/docs/models/shared/walletserrorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/walletserrorresponse.md rename to releases/sdks/go/docs/models/shared/walletserrorresponse.md diff --git a/libs/clients/go/docs/models/shared/walletserrorresponseerrorcode.md b/releases/sdks/go/docs/models/shared/walletserrorresponseerrorcode.md similarity index 100% rename from libs/clients/go/docs/models/shared/walletserrorresponseerrorcode.md rename to releases/sdks/go/docs/models/shared/walletserrorresponseerrorcode.md diff --git a/libs/clients/go/docs/models/shared/walletstransaction.md b/releases/sdks/go/docs/models/shared/walletstransaction.md similarity index 100% rename from libs/clients/go/docs/models/shared/walletstransaction.md rename to releases/sdks/go/docs/models/shared/walletstransaction.md diff --git a/libs/clients/go/docs/models/shared/walletsubject.md b/releases/sdks/go/docs/models/shared/walletsubject.md similarity index 100% rename from libs/clients/go/docs/models/shared/walletsubject.md rename to releases/sdks/go/docs/models/shared/walletsubject.md diff --git a/libs/clients/go/docs/models/shared/walletsvolume.md b/releases/sdks/go/docs/models/shared/walletsvolume.md similarity index 100% rename from libs/clients/go/docs/models/shared/walletsvolume.md rename to releases/sdks/go/docs/models/shared/walletsvolume.md diff --git a/libs/clients/go/docs/models/shared/walletwithbalances.md b/releases/sdks/go/docs/models/shared/walletwithbalances.md similarity index 100% rename from libs/clients/go/docs/models/shared/walletwithbalances.md rename to releases/sdks/go/docs/models/shared/walletwithbalances.md diff --git a/libs/clients/go/docs/models/shared/walletwithbalancesbalances.md b/releases/sdks/go/docs/models/shared/walletwithbalancesbalances.md similarity index 100% rename from libs/clients/go/docs/models/shared/walletwithbalancesbalances.md rename to releases/sdks/go/docs/models/shared/walletwithbalancesbalances.md diff --git a/libs/clients/go/docs/models/shared/webhooksconfig.md b/releases/sdks/go/docs/models/shared/webhooksconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/webhooksconfig.md rename to releases/sdks/go/docs/models/shared/webhooksconfig.md diff --git a/libs/clients/go/docs/models/shared/webhookserrorresponse.md b/releases/sdks/go/docs/models/shared/webhookserrorresponse.md similarity index 100% rename from libs/clients/go/docs/models/shared/webhookserrorresponse.md rename to releases/sdks/go/docs/models/shared/webhookserrorresponse.md diff --git a/libs/clients/go/docs/models/shared/webhookserrorsenum.md b/releases/sdks/go/docs/models/shared/webhookserrorsenum.md similarity index 100% rename from libs/clients/go/docs/models/shared/webhookserrorsenum.md rename to releases/sdks/go/docs/models/shared/webhookserrorsenum.md diff --git a/libs/clients/go/docs/models/shared/wiseconfig.md b/releases/sdks/go/docs/models/shared/wiseconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/wiseconfig.md rename to releases/sdks/go/docs/models/shared/wiseconfig.md diff --git a/libs/clients/go/docs/models/shared/workflow.md b/releases/sdks/go/docs/models/shared/workflow.md similarity index 100% rename from libs/clients/go/docs/models/shared/workflow.md rename to releases/sdks/go/docs/models/shared/workflow.md diff --git a/libs/clients/go/docs/models/shared/workflowconfig.md b/releases/sdks/go/docs/models/shared/workflowconfig.md similarity index 100% rename from libs/clients/go/docs/models/shared/workflowconfig.md rename to releases/sdks/go/docs/models/shared/workflowconfig.md diff --git a/libs/clients/go/docs/models/shared/workflowinstance.md b/releases/sdks/go/docs/models/shared/workflowinstance.md similarity index 100% rename from libs/clients/go/docs/models/shared/workflowinstance.md rename to releases/sdks/go/docs/models/shared/workflowinstance.md diff --git a/libs/clients/go/docs/models/shared/workflowinstancehistory.md b/releases/sdks/go/docs/models/shared/workflowinstancehistory.md similarity index 100% rename from libs/clients/go/docs/models/shared/workflowinstancehistory.md rename to releases/sdks/go/docs/models/shared/workflowinstancehistory.md diff --git a/libs/clients/go/docs/models/shared/workflowinstancehistorystage.md b/releases/sdks/go/docs/models/shared/workflowinstancehistorystage.md similarity index 100% rename from libs/clients/go/docs/models/shared/workflowinstancehistorystage.md rename to releases/sdks/go/docs/models/shared/workflowinstancehistorystage.md diff --git a/libs/clients/go/docs/models/shared/workflowinstancehistorystageinput.md b/releases/sdks/go/docs/models/shared/workflowinstancehistorystageinput.md similarity index 100% rename from libs/clients/go/docs/models/shared/workflowinstancehistorystageinput.md rename to releases/sdks/go/docs/models/shared/workflowinstancehistorystageinput.md diff --git a/libs/clients/go/docs/models/shared/workflowinstancehistorystageoutput.md b/releases/sdks/go/docs/models/shared/workflowinstancehistorystageoutput.md similarity index 100% rename from libs/clients/go/docs/models/shared/workflowinstancehistorystageoutput.md rename to releases/sdks/go/docs/models/shared/workflowinstancehistorystageoutput.md diff --git a/releases/sdks/go/docs/sdks/auth/README.md b/releases/sdks/go/docs/sdks/auth/README.md new file mode 100755 index 0000000000..e8f5603fd8 --- /dev/null +++ b/releases/sdks/go/docs/sdks/auth/README.md @@ -0,0 +1,499 @@ +# Auth +(*Auth*) + +### Available Operations + +* [CreateClient](#createclient) - Create client +* [CreateSecret](#createsecret) - Add a secret to a client +* [DeleteClient](#deleteclient) - Delete client +* [DeleteSecret](#deletesecret) - Delete a secret from a client +* [GetServerInfo](#getserverinfo) - Get server info +* [ListClients](#listclients) - List clients +* [ListUsers](#listusers) - List users +* [ReadClient](#readclient) - Read client +* [ReadUser](#readuser) - Read user +* [UpdateClient](#updateclient) - Update client + +## CreateClient + +Create client + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.CreateClient(ctx, &shared.CreateClientRequest{ + Metadata: map[string]interface{}{ + "key": "string", + }, + Name: "string", + PostLogoutRedirectUris: []string{ + "string", + }, + RedirectUris: []string{ + "string", + }, + Scopes: []string{ + "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.CreateClientResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.CreateClientRequest](../../models/shared/createclientrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateClientResponse](../../models/operations/createclientresponse.md), error** + + +## CreateSecret + +Add a secret to a client + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.CreateSecret(ctx, operations.CreateSecretRequest{ + CreateSecretRequest: &shared.CreateSecretRequest{ + Metadata: map[string]interface{}{ + "key": "string", + }, + Name: "string", + }, + ClientID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.CreateSecretResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateSecretRequest](../../models/operations/createsecretrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateSecretResponse](../../models/operations/createsecretresponse.md), error** + + +## DeleteClient + +Delete client + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.DeleteClient(ctx, operations.DeleteClientRequest{ + ClientID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteClientRequest](../../models/operations/deleteclientrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeleteClientResponse](../../models/operations/deleteclientresponse.md), error** + + +## DeleteSecret + +Delete a secret from a client + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.DeleteSecret(ctx, operations.DeleteSecretRequest{ + ClientID: "string", + SecretID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteSecretRequest](../../models/operations/deletesecretrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeleteSecretResponse](../../models/operations/deletesecretresponse.md), error** + + +## GetServerInfo + +Get server info + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.GetServerInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ServerInfo != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.GetServerInfoResponse](../../models/operations/getserverinforesponse.md), error** + + +## ListClients + +List clients + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.ListClients(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ListClientsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.ListClientsResponse](../../models/operations/listclientsresponse.md), error** + + +## ListUsers + +List users + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.ListUsers(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ListUsersResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.ListUsersResponse](../../models/operations/listusersresponse.md), error** + + +## ReadClient + +Read client + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.ReadClient(ctx, operations.ReadClientRequest{ + ClientID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.ReadClientResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ReadClientRequest](../../models/operations/readclientrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ReadClientResponse](../../models/operations/readclientresponse.md), error** + + +## ReadUser + +Read user + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.ReadUser(ctx, operations.ReadUserRequest{ + UserID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.ReadUserResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ReadUserRequest](../../models/operations/readuserrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ReadUserResponse](../../models/operations/readuserresponse.md), error** + + +## UpdateClient + +Update client + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Auth.UpdateClient(ctx, operations.UpdateClientRequest{ + UpdateClientRequest: &shared.UpdateClientRequest{ + Metadata: map[string]interface{}{ + "key": "string", + }, + Name: "string", + PostLogoutRedirectUris: []string{ + "string", + }, + RedirectUris: []string{ + "string", + }, + Scopes: []string{ + "string", + }, + }, + ClientID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.UpdateClientResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateClientRequest](../../models/operations/updateclientrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UpdateClientResponse](../../models/operations/updateclientresponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/formance/README.md b/releases/sdks/go/docs/sdks/formance/README.md new file mode 100755 index 0000000000..6b4ee7966e --- /dev/null +++ b/releases/sdks/go/docs/sdks/formance/README.md @@ -0,0 +1,104 @@ +# Formance SDK + + +## Overview + +Formance Stack API: Open, modular foundation for unique payments flows + +# Introduction +This API is documented in **OpenAPI format**. + +# Authentication +Formance Stack offers one forms of authentication: + - OAuth2 +OAuth2 - an open protocol to allow secure authorization in a simple +and standard method from web, mobile and desktop applications. + + + +### Available Operations + +* [GetVersions](#getversions) - Show stack version information +* [GetAPIAuthWellKnownOpenidConfiguration](#getapiauthwellknownopenidconfiguration) + +## GetVersions + +Show stack version information + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Formance.GetVersions(ctx) + if err != nil { + log.Fatal(err) + } + + if res.GetVersionsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.GetVersionsResponse](../../models/operations/getversionsresponse.md), error** + + +## GetAPIAuthWellKnownOpenidConfiguration + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Formance.GetAPIAuthWellKnownOpenidConfiguration(ctx) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.GetAPIAuthWellKnownOpenidConfigurationResponse](../../models/operations/getapiauthwellknownopenidconfigurationresponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/ledger/README.md b/releases/sdks/go/docs/sdks/ledger/README.md new file mode 100755 index 0000000000..7fc0cd8833 --- /dev/null +++ b/releases/sdks/go/docs/sdks/ledger/README.md @@ -0,0 +1,2145 @@ +# Ledger +(*Ledger*) + +### Available Operations + +* [CreateTransactions](#createtransactions) - Create a new batch of transactions to a ledger +* [AddMetadataOnTransaction](#addmetadataontransaction) - Set the metadata of a transaction by its ID +* [AddMetadataToAccount](#addmetadatatoaccount) - Add metadata to an account +* [CountAccounts](#countaccounts) - Count the accounts from a ledger +* [CountTransactions](#counttransactions) - Count the transactions from a ledger +* [CreateTransaction](#createtransaction) - Create a new transaction to a ledger +* [GetAccount](#getaccount) - Get account by its address +* [GetBalances](#getbalances) - Get the balances from a ledger's account +* [GetBalancesAggregated](#getbalancesaggregated) - Get the aggregated balances from selected accounts +* [GetInfo](#getinfo) - Show server information +* [GetLedgerInfo](#getledgerinfo) - Get information about a ledger +* [GetMapping](#getmapping) - Get the mapping of a ledger +* [GetTransaction](#gettransaction) - Get transaction from a ledger by its ID +* [ListAccounts](#listaccounts) - List accounts from a ledger +* [ListLogs](#listlogs) - List the logs from a ledger +* [ListTransactions](#listtransactions) - List transactions from a ledger +* [ReadStats](#readstats) - Get statistics from a ledger +* [RevertTransaction](#reverttransaction) - Revert a ledger transaction by its ID +* [~~RunScript~~](#runscript) - Execute a Numscript :warning: **Deprecated** +* [UpdateMapping](#updatemapping) - Update the mapping of a ledger +* [V2AddMetadataOnTransaction](#v2addmetadataontransaction) - Set the metadata of a transaction by its ID +* [V2AddMetadataToAccount](#v2addmetadatatoaccount) - Add metadata to an account +* [V2CountAccounts](#v2countaccounts) - Count the accounts from a ledger +* [V2CountTransactions](#v2counttransactions) - Count the transactions from a ledger +* [V2CreateBulk](#v2createbulk) - Bulk request +* [V2CreateLedger](#v2createledger) - Create a ledger +* [V2CreateTransaction](#v2createtransaction) - Create a new transaction to a ledger +* [V2DeleteAccountMetadata](#v2deleteaccountmetadata) - Delete metadata by key +* [V2DeleteTransactionMetadata](#v2deletetransactionmetadata) - Delete metadata by key +* [V2GetAccount](#v2getaccount) - Get account by its address +* [V2GetBalancesAggregated](#v2getbalancesaggregated) - Get the aggregated balances from selected accounts +* [V2GetInfo](#v2getinfo) - Show server information +* [V2GetLedger](#v2getledger) - Get a ledger +* [V2GetLedgerInfo](#v2getledgerinfo) - Get information about a ledger +* [V2GetTransaction](#v2gettransaction) - Get transaction from a ledger by its ID +* [V2ListAccounts](#v2listaccounts) - List accounts from a ledger +* [V2ListLedgers](#v2listledgers) - List ledgers +* [V2ListLogs](#v2listlogs) - List the logs from a ledger +* [V2ListTransactions](#v2listtransactions) - List transactions from a ledger +* [V2ReadStats](#v2readstats) - Get statistics from a ledger +* [V2RevertTransaction](#v2reverttransaction) - Revert a ledger transaction by its ID + +## CreateTransactions + +Create a new batch of transactions to a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.CreateTransactions(ctx, operations.CreateTransactionsRequest{ + Transactions: shared.Transactions{ + Transactions: []shared.TransactionData{ + shared.TransactionData{ + Metadata: map[string]interface{}{ + "key": "string", + }, + Postings: []shared.Posting{ + shared.Posting{ + Amount: big.NewInt(100), + Asset: "COIN", + Destination: "users:002", + Source: "users:001", + }, + }, + Reference: formancesdkgo.String("ref:001"), + }, + }, + }, + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.TransactionsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateTransactionsRequest](../../models/operations/createtransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateTransactionsResponse](../../models/operations/createtransactionsresponse.md), error** + + +## AddMetadataOnTransaction + +Set the metadata of a transaction by its ID + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.AddMetadataOnTransaction(ctx, operations.AddMetadataOnTransactionRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Ledger: "ledger001", + Txid: big.NewInt(1234), + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.AddMetadataOnTransactionRequest](../../models/operations/addmetadataontransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.AddMetadataOnTransactionResponse](../../models/operations/addmetadataontransactionresponse.md), error** + + +## AddMetadataToAccount + +Add metadata to an account + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.AddMetadataToAccount(ctx, operations.AddMetadataToAccountRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Address: "users:001", + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.AddMetadataToAccountRequest](../../models/operations/addmetadatatoaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.AddMetadataToAccountResponse](../../models/operations/addmetadatatoaccountresponse.md), error** + + +## CountAccounts + +Count the accounts from a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.CountAccounts(ctx, operations.CountAccountsRequest{ + Address: formancesdkgo.String("users:.+"), + Ledger: "ledger001", + Metadata: map[string]interface{}{ + "key": "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CountAccountsRequest](../../models/operations/countaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CountAccountsResponse](../../models/operations/countaccountsresponse.md), error** + + +## CountTransactions + +Count the transactions from a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.CountTransactions(ctx, operations.CountTransactionsRequest{ + Account: formancesdkgo.String("users:001"), + Destination: formancesdkgo.String("users:001"), + Ledger: "ledger001", + Metadata: &operations.CountTransactionsMetadata{}, + Reference: formancesdkgo.String("ref:001"), + Source: formancesdkgo.String("users:001"), + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CountTransactionsRequest](../../models/operations/counttransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CountTransactionsResponse](../../models/operations/counttransactionsresponse.md), error** + + +## CreateTransaction + +Create a new transaction to a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.CreateTransaction(ctx, operations.CreateTransactionRequest{ + PostTransaction: shared.PostTransaction{ + Metadata: map[string]interface{}{ + "key": "string", + }, + Postings: []shared.Posting{ + shared.Posting{ + Amount: big.NewInt(100), + Asset: "COIN", + Destination: "users:002", + Source: "users:001", + }, + }, + Reference: formancesdkgo.String("ref:001"), + Script: &shared.PostTransactionScript{ + Plain: "vars { + account $user + } + send [COIN 10] ( + source = @world + destination = $user + ) + ", + Vars: map[string]interface{}{ + "user": "string", + }, + }, + }, + Ledger: "ledger001", + Preview: formancesdkgo.Bool(true), + }) + if err != nil { + log.Fatal(err) + } + + if res.TransactionsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateTransactionRequest](../../models/operations/createtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateTransactionResponse](../../models/operations/createtransactionresponse.md), error** + + +## GetAccount + +Get account by its address + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.GetAccount(ctx, operations.GetAccountRequest{ + Address: "users:001", + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.AccountResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetAccountRequest](../../models/operations/getaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetAccountResponse](../../models/operations/getaccountresponse.md), error** + + +## GetBalances + +Get the balances from a ledger's account + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.GetBalances(ctx, operations.GetBalancesRequest{ + Address: formancesdkgo.String("users:001"), + After: formancesdkgo.String("users:003"), + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.BalancesCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBalancesRequest](../../models/operations/getbalancesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetBalancesResponse](../../models/operations/getbalancesresponse.md), error** + + +## GetBalancesAggregated + +Get the aggregated balances from selected accounts + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.GetBalancesAggregated(ctx, operations.GetBalancesAggregatedRequest{ + Address: formancesdkgo.String("users:001"), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.AggregateBalancesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBalancesAggregatedRequest](../../models/operations/getbalancesaggregatedrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetBalancesAggregatedResponse](../../models/operations/getbalancesaggregatedresponse.md), error** + + +## GetInfo + +Show server information + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.GetInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ConfigInfoResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.GetInfoResponse](../../models/operations/getinforesponse.md), error** + + +## GetLedgerInfo + +Get information about a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.GetLedgerInfo(ctx, operations.GetLedgerInfoRequest{ + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.LedgerInfoResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetLedgerInfoRequest](../../models/operations/getledgerinforequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetLedgerInfoResponse](../../models/operations/getledgerinforesponse.md), error** + + +## GetMapping + +Get the mapping of a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.GetMapping(ctx, operations.GetMappingRequest{ + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.MappingResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetMappingRequest](../../models/operations/getmappingrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetMappingResponse](../../models/operations/getmappingresponse.md), error** + + +## GetTransaction + +Get transaction from a ledger by its ID + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.GetTransaction(ctx, operations.GetTransactionRequest{ + Ledger: "ledger001", + Txid: big.NewInt(1234), + }) + if err != nil { + log.Fatal(err) + } + + if res.TransactionResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetTransactionRequest](../../models/operations/gettransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetTransactionResponse](../../models/operations/gettransactionresponse.md), error** + + +## ListAccounts + +List accounts from a ledger, sorted by address in descending order. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.ListAccounts(ctx, operations.ListAccountsRequest{ + Address: formancesdkgo.String("users:.+"), + After: formancesdkgo.String("users:003"), + Balance: formancesdkgo.Int64(2400), + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Ledger: "ledger001", + Metadata: map[string]interface{}{ + "key": "string", + }, + PaginationToken: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + }) + if err != nil { + log.Fatal(err) + } + + if res.AccountsCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListAccountsRequest](../../models/operations/listaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListAccountsResponse](../../models/operations/listaccountsresponse.md), error** + + +## ListLogs + +List the logs from a ledger, sorted by ID in descending order. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.ListLogs(ctx, operations.ListLogsRequest{ + After: formancesdkgo.String("1234"), + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.LogsCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListLogsRequest](../../models/operations/listlogsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListLogsResponse](../../models/operations/listlogsresponse.md), error** + + +## ListTransactions + +List transactions from a ledger, sorted by txid in descending order. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.ListTransactions(ctx, operations.ListTransactionsRequest{ + Account: formancesdkgo.String("users:001"), + After: formancesdkgo.String("1234"), + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Destination: formancesdkgo.String("users:001"), + Ledger: "ledger001", + Metadata: map[string]interface{}{ + "key": "string", + }, + Reference: formancesdkgo.String("ref:001"), + Source: formancesdkgo.String("users:001"), + }) + if err != nil { + log.Fatal(err) + } + + if res.TransactionsCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListTransactionsRequest](../../models/operations/listtransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListTransactionsResponse](../../models/operations/listtransactionsresponse.md), error** + + +## ReadStats + +Get statistics from a ledger. (aggregate metrics on accounts and transactions) + + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.ReadStats(ctx, operations.ReadStatsRequest{ + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ReadStatsRequest](../../models/operations/readstatsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ReadStatsResponse](../../models/operations/readstatsresponse.md), error** + + +## RevertTransaction + +Revert a ledger transaction by its ID + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.RevertTransaction(ctx, operations.RevertTransactionRequest{ + Ledger: "ledger001", + Txid: big.NewInt(1234), + }) + if err != nil { + log.Fatal(err) + } + + if res.TransactionResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RevertTransactionRequest](../../models/operations/reverttransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.RevertTransactionResponse](../../models/operations/reverttransactionresponse.md), error** + + +## ~~RunScript~~ + +This route is deprecated, and has been merged into `POST /{ledger}/transactions`. + + +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.RunScript(ctx, operations.RunScriptRequest{ + Script: shared.Script{ + Metadata: map[string]interface{}{ + "key": "string", + }, + Plain: "vars { + account $user + } + send [COIN 10] ( + source = @world + destination = $user + ) + ", + Reference: formancesdkgo.String("order_1234"), + Vars: map[string]interface{}{ + "user": "string", + }, + }, + Ledger: "ledger001", + Preview: formancesdkgo.Bool(true), + }) + if err != nil { + log.Fatal(err) + } + + if res.ScriptResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RunScriptRequest](../../models/operations/runscriptrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.RunScriptResponse](../../models/operations/runscriptresponse.md), error** + + +## UpdateMapping + +Update the mapping of a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.UpdateMapping(ctx, operations.UpdateMappingRequest{ + Mapping: &shared.Mapping{ + Contracts: []shared.Contract{ + shared.Contract{ + Account: formancesdkgo.String("users:001"), + Expr: shared.ContractExpr{}, + }, + }, + }, + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.MappingResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateMappingRequest](../../models/operations/updatemappingrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UpdateMappingResponse](../../models/operations/updatemappingresponse.md), error** + + +## V2AddMetadataOnTransaction + +Set the metadata of a transaction by its ID + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2AddMetadataOnTransaction(ctx, operations.V2AddMetadataOnTransactionRequest{ + RequestBody: map[string]string{ + "admin": "true", + }, + DryRun: formancesdkgo.Bool(true), + ID: big.NewInt(1234), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2AddMetadataOnTransactionRequest](../../models/operations/v2addmetadataontransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2AddMetadataOnTransactionResponse](../../models/operations/v2addmetadataontransactionresponse.md), error** + + +## V2AddMetadataToAccount + +Add metadata to an account + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2AddMetadataToAccount(ctx, operations.V2AddMetadataToAccountRequest{ + RequestBody: map[string]string{ + "admin": "true", + }, + Address: "users:001", + DryRun: formancesdkgo.Bool(true), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2AddMetadataToAccountRequest](../../models/operations/v2addmetadatatoaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2AddMetadataToAccountResponse](../../models/operations/v2addmetadatatoaccountresponse.md), error** + + +## V2CountAccounts + +Count the accounts from a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2CountAccounts(ctx, operations.V2CountAccountsRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2CountAccountsRequest](../../models/operations/v2countaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CountAccountsResponse](../../models/operations/v2countaccountsresponse.md), error** + + +## V2CountTransactions + +Count the transactions from a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2CountTransactions(ctx, operations.V2CountTransactionsRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2CountTransactionsRequest](../../models/operations/v2counttransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CountTransactionsResponse](../../models/operations/v2counttransactionsresponse.md), error** + + +## V2CreateBulk + +Bulk request + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2CreateBulk(ctx, operations.V2CreateBulkRequest{ + RequestBody: []shared.V2BulkElement{ + shared.CreateV2BulkElementV2BulkElementV2BulkElementAddMetadata( + shared.V2BulkElementV2BulkElementAddMetadata{ + Action: "string", + Data: &shared.V2BulkElementV2BulkElementAddMetadataData{ + Metadata: map[string]string{ + "key": "string", + }, + TargetID: shared.CreateV2TargetIDStr( + "string", + ), + TargetType: shared.V2TargetTypeAccount, + }, + }, + ), + }, + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2BulkResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2CreateBulkRequest](../../models/operations/v2createbulkrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CreateBulkResponse](../../models/operations/v2createbulkresponse.md), error** + + +## V2CreateLedger + +Create a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2CreateLedger(ctx, operations.V2CreateLedgerRequest{ + V2CreateLedgerRequest: &shared.V2CreateLedgerRequest{}, + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2CreateLedgerRequest](../../models/operations/v2createledgerrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CreateLedgerResponse](../../models/operations/v2createledgerresponse.md), error** + + +## V2CreateTransaction + +Create a new transaction to a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2CreateTransaction(ctx, operations.V2CreateTransactionRequest{ + V2PostTransaction: shared.V2PostTransaction{ + Metadata: map[string]string{ + "admin": "true", + }, + Postings: []shared.V2Posting{ + shared.V2Posting{ + Amount: big.NewInt(100), + Asset: "COIN", + Destination: "users:002", + Source: "users:001", + }, + }, + Reference: formancesdkgo.String("ref:001"), + Script: &shared.V2PostTransactionScript{ + Plain: "vars { + account $user + } + send [COIN 10] ( + source = @world + destination = $user + ) + ", + Vars: map[string]interface{}{ + "user": "string", + }, + }, + }, + DryRun: formancesdkgo.Bool(true), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2CreateTransactionResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2CreateTransactionRequest](../../models/operations/v2createtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CreateTransactionResponse](../../models/operations/v2createtransactionresponse.md), error** + + +## V2DeleteAccountMetadata + +Delete metadata by key + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2DeleteAccountMetadata(ctx, operations.V2DeleteAccountMetadataRequest{ + Address: "3680 Emile Grove", + Key: "foo", + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2DeleteAccountMetadataRequest](../../models/operations/v2deleteaccountmetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2DeleteAccountMetadataResponse](../../models/operations/v2deleteaccountmetadataresponse.md), error** + + +## V2DeleteTransactionMetadata + +Delete metadata by key + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2DeleteTransactionMetadata(ctx, operations.V2DeleteTransactionMetadataRequest{ + ID: big.NewInt(1234), + Key: "foo", + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2DeleteTransactionMetadataRequest](../../models/operations/v2deletetransactionmetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2DeleteTransactionMetadataResponse](../../models/operations/v2deletetransactionmetadataresponse.md), error** + + +## V2GetAccount + +Get account by its address + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2GetAccount(ctx, operations.V2GetAccountRequest{ + Address: "users:001", + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2AccountResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetAccountRequest](../../models/operations/v2getaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetAccountResponse](../../models/operations/v2getaccountresponse.md), error** + + +## V2GetBalancesAggregated + +Get the aggregated balances from selected accounts + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2GetBalancesAggregated(ctx, operations.V2GetBalancesAggregatedRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2AggregateBalancesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetBalancesAggregatedRequest](../../models/operations/v2getbalancesaggregatedrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetBalancesAggregatedResponse](../../models/operations/v2getbalancesaggregatedresponse.md), error** + + +## V2GetInfo + +Show server information + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2GetInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.V2ConfigInfoResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.V2GetInfoResponse](../../models/operations/v2getinforesponse.md), error** + + +## V2GetLedger + +Get a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2GetLedger(ctx, operations.V2GetLedgerRequest{ + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2Ledger != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetLedgerRequest](../../models/operations/v2getledgerrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetLedgerResponse](../../models/operations/v2getledgerresponse.md), error** + + +## V2GetLedgerInfo + +Get information about a ledger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2GetLedgerInfo(ctx, operations.V2GetLedgerInfoRequest{ + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2LedgerInfoResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetLedgerInfoRequest](../../models/operations/v2getledgerinforequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetLedgerInfoResponse](../../models/operations/v2getledgerinforesponse.md), error** + + +## V2GetTransaction + +Get transaction from a ledger by its ID + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2GetTransaction(ctx, operations.V2GetTransactionRequest{ + ID: big.NewInt(1234), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2GetTransactionResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetTransactionRequest](../../models/operations/v2gettransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetTransactionResponse](../../models/operations/v2gettransactionresponse.md), error** + + +## V2ListAccounts + +List accounts from a ledger, sorted by address in descending order. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2ListAccounts(ctx, operations.V2ListAccountsRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2AccountsCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ListAccountsRequest](../../models/operations/v2listaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ListAccountsResponse](../../models/operations/v2listaccountsresponse.md), error** + + +## V2ListLedgers + +List ledgers + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2ListLedgers(ctx, operations.V2ListLedgersRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + }) + if err != nil { + log.Fatal(err) + } + + if res.V2LedgerListResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ListLedgersRequest](../../models/operations/v2listledgersrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ListLedgersResponse](../../models/operations/v2listledgersresponse.md), error** + + +## V2ListLogs + +List the logs from a ledger, sorted by ID in descending order. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2ListLogs(ctx, operations.V2ListLogsRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2LogsCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ListLogsRequest](../../models/operations/v2listlogsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ListLogsResponse](../../models/operations/v2listlogsresponse.md), error** + + +## V2ListTransactions + +List transactions from a ledger, sorted by id in descending order. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2ListTransactions(ctx, operations.V2ListTransactionsRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2TransactionsCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ListTransactionsRequest](../../models/operations/v2listtransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ListTransactionsResponse](../../models/operations/v2listtransactionsresponse.md), error** + + +## V2ReadStats + +Get statistics from a ledger. (aggregate metrics on accounts and transactions) + + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2ReadStats(ctx, operations.V2ReadStatsRequest{ + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2StatsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ReadStatsRequest](../../models/operations/v2readstatsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ReadStatsResponse](../../models/operations/v2readstatsresponse.md), error** + + +## V2RevertTransaction + +Revert a ledger transaction by its ID + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Ledger.V2RevertTransaction(ctx, operations.V2RevertTransactionRequest{ + ID: big.NewInt(1234), + Ledger: "ledger001", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2RevertTransactionResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2RevertTransactionRequest](../../models/operations/v2reverttransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2RevertTransactionResponse](../../models/operations/v2reverttransactionresponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/orchestration/README.md b/releases/sdks/go/docs/sdks/orchestration/README.md new file mode 100755 index 0000000000..0cb8d11c95 --- /dev/null +++ b/releases/sdks/go/docs/sdks/orchestration/README.md @@ -0,0 +1,1655 @@ +# Orchestration +(*Orchestration*) + +### Available Operations + +* [CancelEvent](#cancelevent) - Cancel a running workflow +* [CreateTrigger](#createtrigger) - Create trigger +* [CreateWorkflow](#createworkflow) - Create workflow +* [DeleteTrigger](#deletetrigger) - Delete trigger +* [DeleteWorkflow](#deleteworkflow) - Delete a flow by id +* [GetInstance](#getinstance) - Get a workflow instance by id +* [GetInstanceHistory](#getinstancehistory) - Get a workflow instance history by id +* [GetInstanceStageHistory](#getinstancestagehistory) - Get a workflow instance stage history +* [GetWorkflow](#getworkflow) - Get a flow by id +* [ListInstances](#listinstances) - List instances of a workflow +* [ListTriggers](#listtriggers) - List triggers +* [ListTriggersOccurrences](#listtriggersoccurrences) - List triggers occurrences +* [ListWorkflows](#listworkflows) - List registered workflows +* [OrchestrationgetServerInfo](#orchestrationgetserverinfo) - Get server info +* [ReadTrigger](#readtrigger) - Read trigger +* [RunWorkflow](#runworkflow) - Run workflow +* [SendEvent](#sendevent) - Send an event to a running workflow +* [TestTrigger](#testtrigger) - Test trigger +* [V2CancelEvent](#v2cancelevent) - Cancel a running workflow +* [V2CreateTrigger](#v2createtrigger) - Create trigger +* [V2CreateWorkflow](#v2createworkflow) - Create workflow +* [V2DeleteTrigger](#v2deletetrigger) - Delete trigger +* [V2DeleteWorkflow](#v2deleteworkflow) - Delete a flow by id +* [V2GetInstance](#v2getinstance) - Get a workflow instance by id +* [V2GetInstanceHistory](#v2getinstancehistory) - Get a workflow instance history by id +* [V2GetInstanceStageHistory](#v2getinstancestagehistory) - Get a workflow instance stage history +* [V2GetServerInfo](#v2getserverinfo) - Get server info +* [V2GetWorkflow](#v2getworkflow) - Get a flow by id +* [V2ListInstances](#v2listinstances) - List instances of a workflow +* [V2ListTriggers](#v2listtriggers) - List triggers +* [V2ListTriggersOccurrences](#v2listtriggersoccurrences) - List triggers occurrences +* [V2ListWorkflows](#v2listworkflows) - List registered workflows +* [V2ReadTrigger](#v2readtrigger) - Read trigger +* [V2RunWorkflow](#v2runworkflow) - Run workflow +* [V2SendEvent](#v2sendevent) - Send an event to a running workflow + +## CancelEvent + +Cancel a running workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.CancelEvent(ctx, operations.CancelEventRequest{ + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CancelEventRequest](../../models/operations/canceleventrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CancelEventResponse](../../models/operations/canceleventresponse.md), error** + + +## CreateTrigger + +Create trigger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.CreateTrigger(ctx, &shared.TriggerData{ + Event: "string", + Vars: map[string]interface{}{ + "key": "string", + }, + WorkflowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.CreateTriggerResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.TriggerData](../../models/shared/triggerdata.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateTriggerResponse](../../models/operations/createtriggerresponse.md), error** + + +## CreateWorkflow + +Create a workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.CreateWorkflow(ctx, &shared.CreateWorkflowRequest{ + Stages: []map[string]interface{}{ + map[string]interface{}{ + "key": "string", + }, + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.CreateWorkflowResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.CreateWorkflowRequest](../../models/shared/createworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateWorkflowResponse](../../models/operations/createworkflowresponse.md), error** + + +## DeleteTrigger + +Read trigger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.DeleteTrigger(ctx, operations.DeleteTriggerRequest{ + TriggerID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteTriggerRequest](../../models/operations/deletetriggerrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeleteTriggerResponse](../../models/operations/deletetriggerresponse.md), error** + + +## DeleteWorkflow + +Delete a flow by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.DeleteWorkflow(ctx, operations.DeleteWorkflowRequest{ + FlowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteWorkflowRequest](../../models/operations/deleteworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeleteWorkflowResponse](../../models/operations/deleteworkflowresponse.md), error** + + +## GetInstance + +Get a workflow instance by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.GetInstance(ctx, operations.GetInstanceRequest{ + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.GetWorkflowInstanceResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetInstanceRequest](../../models/operations/getinstancerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetInstanceResponse](../../models/operations/getinstanceresponse.md), error** + + +## GetInstanceHistory + +Get a workflow instance history by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.GetInstanceHistory(ctx, operations.GetInstanceHistoryRequest{ + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.GetWorkflowInstanceHistoryResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetInstanceHistoryRequest](../../models/operations/getinstancehistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetInstanceHistoryResponse](../../models/operations/getinstancehistoryresponse.md), error** + + +## GetInstanceStageHistory + +Get a workflow instance stage history + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.GetInstanceStageHistory(ctx, operations.GetInstanceStageHistoryRequest{ + InstanceID: "string", + Number: 600636, + }) + if err != nil { + log.Fatal(err) + } + + if res.GetWorkflowInstanceHistoryStageResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetInstanceStageHistoryRequest](../../models/operations/getinstancestagehistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetInstanceStageHistoryResponse](../../models/operations/getinstancestagehistoryresponse.md), error** + + +## GetWorkflow + +Get a flow by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.GetWorkflow(ctx, operations.GetWorkflowRequest{ + FlowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.GetWorkflowResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetWorkflowRequest](../../models/operations/getworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetWorkflowResponse](../../models/operations/getworkflowresponse.md), error** + + +## ListInstances + +List instances of a workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.ListInstances(ctx, operations.ListInstancesRequest{}) + if err != nil { + log.Fatal(err) + } + + if res.ListRunsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListInstancesRequest](../../models/operations/listinstancesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListInstancesResponse](../../models/operations/listinstancesresponse.md), error** + + +## ListTriggers + +List triggers + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.ListTriggers(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ListTriggersResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.ListTriggersResponse](../../models/operations/listtriggersresponse.md), error** + + +## ListTriggersOccurrences + +List triggers occurrences + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.ListTriggersOccurrences(ctx, operations.ListTriggersOccurrencesRequest{ + TriggerID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.ListTriggersOccurrencesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListTriggersOccurrencesRequest](../../models/operations/listtriggersoccurrencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListTriggersOccurrencesResponse](../../models/operations/listtriggersoccurrencesresponse.md), error** + + +## ListWorkflows + +List registered workflows + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.ListWorkflows(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ListWorkflowsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.ListWorkflowsResponse](../../models/operations/listworkflowsresponse.md), error** + + +## OrchestrationgetServerInfo + +Get server info + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.OrchestrationgetServerInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ServerInfo != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.OrchestrationgetServerInfoResponse](../../models/operations/orchestrationgetserverinforesponse.md), error** + + +## ReadTrigger + +Read trigger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.ReadTrigger(ctx, operations.ReadTriggerRequest{ + TriggerID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.ReadTriggerResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ReadTriggerRequest](../../models/operations/readtriggerrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ReadTriggerResponse](../../models/operations/readtriggerresponse.md), error** + + +## RunWorkflow + +Run workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.RunWorkflow(ctx, operations.RunWorkflowRequest{ + RequestBody: map[string]string{ + "key": "string", + }, + WorkflowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.RunWorkflowResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RunWorkflowRequest](../../models/operations/runworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.RunWorkflowResponse](../../models/operations/runworkflowresponse.md), error** + + +## SendEvent + +Send an event to a running workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.SendEvent(ctx, operations.SendEventRequest{ + RequestBody: &operations.SendEventRequestBody{ + Name: "string", + }, + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.SendEventRequest](../../models/operations/sendeventrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.SendEventResponse](../../models/operations/sendeventresponse.md), error** + + +## TestTrigger + +Test trigger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.TestTrigger(ctx, operations.TestTriggerRequest{ + RequestBody: map[string]interface{}{ + "key": "string", + }, + TriggerID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2TestTriggerResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.TestTriggerRequest](../../models/operations/testtriggerrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.TestTriggerResponse](../../models/operations/testtriggerresponse.md), error** + + +## V2CancelEvent + +Cancel a running workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2CancelEvent(ctx, operations.V2CancelEventRequest{ + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2CancelEventRequest](../../models/operations/v2canceleventrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CancelEventResponse](../../models/operations/v2canceleventresponse.md), error** + + +## V2CreateTrigger + +Create trigger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2CreateTrigger(ctx, &shared.V2TriggerData{ + Event: "string", + Vars: map[string]interface{}{ + "key": "string", + }, + WorkflowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2CreateTriggerResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.V2TriggerData](../../models/shared/v2triggerdata.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CreateTriggerResponse](../../models/operations/v2createtriggerresponse.md), error** + + +## V2CreateWorkflow + +Create a workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2CreateWorkflow(ctx, &shared.V2CreateWorkflowRequest{ + Stages: []map[string]interface{}{ + map[string]interface{}{ + "key": "string", + }, + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.V2CreateWorkflowResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.V2CreateWorkflowRequest](../../models/shared/v2createworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2CreateWorkflowResponse](../../models/operations/v2createworkflowresponse.md), error** + + +## V2DeleteTrigger + +Read trigger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2DeleteTrigger(ctx, operations.V2DeleteTriggerRequest{ + TriggerID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2DeleteTriggerRequest](../../models/operations/v2deletetriggerrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2DeleteTriggerResponse](../../models/operations/v2deletetriggerresponse.md), error** + + +## V2DeleteWorkflow + +Delete a flow by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2DeleteWorkflow(ctx, operations.V2DeleteWorkflowRequest{ + FlowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2DeleteWorkflowRequest](../../models/operations/v2deleteworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2DeleteWorkflowResponse](../../models/operations/v2deleteworkflowresponse.md), error** + + +## V2GetInstance + +Get a workflow instance by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2GetInstance(ctx, operations.V2GetInstanceRequest{ + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2GetWorkflowInstanceResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetInstanceRequest](../../models/operations/v2getinstancerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetInstanceResponse](../../models/operations/v2getinstanceresponse.md), error** + + +## V2GetInstanceHistory + +Get a workflow instance history by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2GetInstanceHistory(ctx, operations.V2GetInstanceHistoryRequest{ + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2GetWorkflowInstanceHistoryResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetInstanceHistoryRequest](../../models/operations/v2getinstancehistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetInstanceHistoryResponse](../../models/operations/v2getinstancehistoryresponse.md), error** + + +## V2GetInstanceStageHistory + +Get a workflow instance stage history + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2GetInstanceStageHistory(ctx, operations.V2GetInstanceStageHistoryRequest{ + InstanceID: "string", + Number: 465454, + }) + if err != nil { + log.Fatal(err) + } + + if res.V2GetWorkflowInstanceHistoryStageResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetInstanceStageHistoryRequest](../../models/operations/v2getinstancestagehistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetInstanceStageHistoryResponse](../../models/operations/v2getinstancestagehistoryresponse.md), error** + + +## V2GetServerInfo + +Get server info + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2GetServerInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.V2ServerInfo != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.V2GetServerInfoResponse](../../models/operations/v2getserverinforesponse.md), error** + + +## V2GetWorkflow + +Get a flow by id + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2GetWorkflow(ctx, operations.V2GetWorkflowRequest{ + FlowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2GetWorkflowResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2GetWorkflowRequest](../../models/operations/v2getworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2GetWorkflowResponse](../../models/operations/v2getworkflowresponse.md), error** + + +## V2ListInstances + +List instances of a workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2ListInstances(ctx, operations.V2ListInstancesRequest{}) + if err != nil { + log.Fatal(err) + } + + if res.V2ListRunsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ListInstancesRequest](../../models/operations/v2listinstancesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ListInstancesResponse](../../models/operations/v2listinstancesresponse.md), error** + + +## V2ListTriggers + +List triggers + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2ListTriggers(ctx) + if err != nil { + log.Fatal(err) + } + + if res.V2ListTriggersResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.V2ListTriggersResponse](../../models/operations/v2listtriggersresponse.md), error** + + +## V2ListTriggersOccurrences + +List triggers occurrences + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2ListTriggersOccurrences(ctx, operations.V2ListTriggersOccurrencesRequest{ + TriggerID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2ListTriggersOccurrencesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ListTriggersOccurrencesRequest](../../models/operations/v2listtriggersoccurrencesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ListTriggersOccurrencesResponse](../../models/operations/v2listtriggersoccurrencesresponse.md), error** + + +## V2ListWorkflows + +List registered workflows + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2ListWorkflows(ctx) + if err != nil { + log.Fatal(err) + } + + if res.V2ListWorkflowsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.V2ListWorkflowsResponse](../../models/operations/v2listworkflowsresponse.md), error** + + +## V2ReadTrigger + +Read trigger + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2ReadTrigger(ctx, operations.V2ReadTriggerRequest{ + TriggerID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2ReadTriggerResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2ReadTriggerRequest](../../models/operations/v2readtriggerrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2ReadTriggerResponse](../../models/operations/v2readtriggerresponse.md), error** + + +## V2RunWorkflow + +Run workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2RunWorkflow(ctx, operations.V2RunWorkflowRequest{ + RequestBody: map[string]string{ + "key": "string", + }, + WorkflowID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.V2RunWorkflowResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2RunWorkflowRequest](../../models/operations/v2runworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2RunWorkflowResponse](../../models/operations/v2runworkflowresponse.md), error** + + +## V2SendEvent + +Send an event to a running workflow + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Orchestration.V2SendEvent(ctx, operations.V2SendEventRequest{ + RequestBody: &operations.V2SendEventRequestBody{ + Name: "string", + }, + InstanceID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.V2SendEventRequest](../../models/operations/v2sendeventrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.V2SendEventResponse](../../models/operations/v2sendeventresponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/payments/README.md b/releases/sdks/go/docs/sdks/payments/README.md new file mode 100755 index 0000000000..f9c2b1efd1 --- /dev/null +++ b/releases/sdks/go/docs/sdks/payments/README.md @@ -0,0 +1,1945 @@ +# Payments +(*Payments*) + +### Available Operations + +* [AddAccountToPool](#addaccounttopool) - Add an account to a pool +* [ConnectorsTransfer](#connectorstransfer) - Transfer funds between Connector accounts +* [CreateBankAccount](#createbankaccount) - Create a BankAccount in Payments and on the PSP +* [CreatePayment](#createpayment) - Create a payment +* [CreatePool](#createpool) - Create a Pool +* [CreateTransferInitiation](#createtransferinitiation) - Create a TransferInitiation +* [DeletePool](#deletepool) - Delete a Pool +* [DeleteTransferInitiation](#deletetransferinitiation) - Delete a transfer initiation +* [GetAccountBalances](#getaccountbalances) - Get account balances +* [GetBankAccount](#getbankaccount) - Get a bank account created by user on Formance +* [~~GetConnectorTask~~](#getconnectortask) - Read a specific task of the connector :warning: **Deprecated** +* [GetConnectorTaskV1](#getconnectortaskv1) - Read a specific task of the connector +* [GetPayment](#getpayment) - Get a payment +* [GetPool](#getpool) - Get a Pool +* [GetPoolBalances](#getpoolbalances) - Get pool balances +* [GetTransferInitiation](#gettransferinitiation) - Get a transfer initiation +* [InstallConnector](#installconnector) - Install a connector +* [ListAllConnectors](#listallconnectors) - List all installed connectors +* [ListBankAccounts](#listbankaccounts) - List bank accounts created by user on Formance +* [ListConfigsAvailableConnectors](#listconfigsavailableconnectors) - List the configs of each available connector +* [~~ListConnectorTasks~~](#listconnectortasks) - List tasks from a connector :warning: **Deprecated** +* [ListConnectorTasksV1](#listconnectortasksv1) - List tasks from a connector +* [ListPayments](#listpayments) - List payments +* [ListPools](#listpools) - List Pools +* [ListTransferInitiations](#listtransferinitiations) - List Transfer Initiations +* [PaymentsgetAccount](#paymentsgetaccount) - Get an account +* [PaymentsgetServerInfo](#paymentsgetserverinfo) - Get server info +* [PaymentslistAccounts](#paymentslistaccounts) - List accounts +* [~~ReadConnectorConfig~~](#readconnectorconfig) - Read the config of a connector :warning: **Deprecated** +* [ReadConnectorConfigV1](#readconnectorconfigv1) - Read the config of a connector +* [RemoveAccountFromPool](#removeaccountfrompool) - Remove an account from a pool +* [~~ResetConnector~~](#resetconnector) - Reset a connector :warning: **Deprecated** +* [ResetConnectorV1](#resetconnectorv1) - Reset a connector +* [RetryTransferInitiation](#retrytransferinitiation) - Retry a failed transfer initiation +* [UdpateTransferInitiationStatus](#udpatetransferinitiationstatus) - Update the status of a transfer initiation +* [~~UninstallConnector~~](#uninstallconnector) - Uninstall a connector :warning: **Deprecated** +* [UninstallConnectorV1](#uninstallconnectorv1) - Uninstall a connector +* [UpdateConnectorConfigV1](#updateconnectorconfigv1) - Update the config of a connector +* [UpdateMetadata](#updatemetadata) - Update metadata + +## AddAccountToPool + +Add an account to a pool + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.AddAccountToPool(ctx, operations.AddAccountToPoolRequest{ + AddAccountToPoolRequest: shared.AddAccountToPoolRequest{ + AccountID: "string", + }, + PoolID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.AddAccountToPoolRequest](../../models/operations/addaccounttopoolrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.AddAccountToPoolResponse](../../models/operations/addaccounttopoolresponse.md), error** + + +## ConnectorsTransfer + +Execute a transfer between two accounts. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ConnectorsTransfer(ctx, operations.ConnectorsTransferRequest{ + TransferRequest: shared.TransferRequest{ + Amount: big.NewInt(100), + Asset: "USD", + Destination: "acct_1Gqj58KZcSIg2N2q", + Source: formancesdkgo.String("acct_1Gqj58KZcSIg2N2q"), + }, + Connector: shared.ConnectorCurrencyCloud, + }) + if err != nil { + log.Fatal(err) + } + + if res.TransferResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ConnectorsTransferRequest](../../models/operations/connectorstransferrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ConnectorsTransferResponse](../../models/operations/connectorstransferresponse.md), error** + + +## CreateBankAccount + +Create a bank account in Payments and on the PSP. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.CreateBankAccount(ctx, shared.BankAccountRequest{ + ConnectorID: "string", + Country: "GB", + Metadata: map[string]string{ + "key": "string", + }, + Name: "My account", + }) + if err != nil { + log.Fatal(err) + } + + if res.BankAccountResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.BankAccountRequest](../../models/shared/bankaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateBankAccountResponse](../../models/operations/createbankaccountresponse.md), error** + + +## CreatePayment + +Create a payment + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" + "github.com/formancehq/formance-sdk-go/pkg/types" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.CreatePayment(ctx, shared.PaymentRequest{ + Amount: big.NewInt(100), + Asset: "USD", + ConnectorID: "string", + CreatedAt: types.MustTimeFromString("2023-11-09T02:12:55.787Z"), + Reference: "string", + Scheme: shared.PaymentSchemeGooglePay, + Status: shared.PaymentStatusRefunded, + Type: shared.PaymentTypeTransfer, + }) + if err != nil { + log.Fatal(err) + } + + if res.PaymentResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.PaymentRequest](../../models/shared/paymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreatePaymentResponse](../../models/operations/createpaymentresponse.md), error** + + +## CreatePool + +Create a Pool + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.CreatePool(ctx, shared.PoolRequest{ + AccountIDs: []string{ + "string", + }, + Name: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.PoolResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.PoolRequest](../../models/shared/poolrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreatePoolResponse](../../models/operations/createpoolresponse.md), error** + + +## CreateTransferInitiation + +Create a transfer initiation + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" + "github.com/formancehq/formance-sdk-go/pkg/types" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.CreateTransferInitiation(ctx, shared.TransferInitiationRequest{ + Amount: big.NewInt(256698), + Asset: "USD", + Description: "Multi-tiered incremental methodology", + DestinationAccountID: "string", + Reference: "XXX", + ScheduledAt: types.MustTimeFromString("2022-05-04T12:05:29.406Z"), + SourceAccountID: "string", + Type: shared.TransferInitiationRequestTypeTransfer, + Validated: false, + }) + if err != nil { + log.Fatal(err) + } + + if res.TransferInitiationResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.TransferInitiationRequest](../../models/shared/transferinitiationrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateTransferInitiationResponse](../../models/operations/createtransferinitiationresponse.md), error** + + +## DeletePool + +Delete a pool by its id. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.DeletePool(ctx, operations.DeletePoolRequest{ + PoolID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeletePoolRequest](../../models/operations/deletepoolrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeletePoolResponse](../../models/operations/deletepoolresponse.md), error** + + +## DeleteTransferInitiation + +Delete a transfer initiation by its id. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.DeleteTransferInitiation(ctx, operations.DeleteTransferInitiationRequest{ + TransferID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteTransferInitiationRequest](../../models/operations/deletetransferinitiationrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeleteTransferInitiationResponse](../../models/operations/deletetransferinitiationresponse.md), error** + + +## GetAccountBalances + +Get account balances + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetAccountBalances(ctx, operations.GetAccountBalancesRequest{ + AccountID: "string", + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Sort: []string{ + "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.BalancesCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetAccountBalancesRequest](../../models/operations/getaccountbalancesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetAccountBalancesResponse](../../models/operations/getaccountbalancesresponse.md), error** + + +## GetBankAccount + +Get a bank account created by user on Formance + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetBankAccount(ctx, operations.GetBankAccountRequest{ + BankAccountID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.BankAccountResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBankAccountRequest](../../models/operations/getbankaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetBankAccountResponse](../../models/operations/getbankaccountresponse.md), error** + + +## ~~GetConnectorTask~~ + +Get a specific task associated to the connector. + +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetConnectorTask(ctx, operations.GetConnectorTaskRequest{ + Connector: shared.ConnectorAtlar, + TaskID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.TaskResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetConnectorTaskRequest](../../models/operations/getconnectortaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetConnectorTaskResponse](../../models/operations/getconnectortaskresponse.md), error** + + +## GetConnectorTaskV1 + +Get a specific task associated to the connector. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetConnectorTaskV1(ctx, operations.GetConnectorTaskV1Request{ + Connector: shared.ConnectorCurrencyCloud, + ConnectorID: "string", + TaskID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.TaskResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetConnectorTaskV1Request](../../models/operations/getconnectortaskv1request.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetConnectorTaskV1Response](../../models/operations/getconnectortaskv1response.md), error** + + +## GetPayment + +Get a payment + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetPayment(ctx, operations.GetPaymentRequest{ + PaymentID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.PaymentResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetPaymentRequest](../../models/operations/getpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetPaymentResponse](../../models/operations/getpaymentresponse.md), error** + + +## GetPool + +Get a Pool + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetPool(ctx, operations.GetPoolRequest{ + PoolID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.PoolResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetPoolRequest](../../models/operations/getpoolrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetPoolResponse](../../models/operations/getpoolresponse.md), error** + + +## GetPoolBalances + +Get pool balances + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/types" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetPoolBalances(ctx, operations.GetPoolBalancesRequest{ + At: types.MustTimeFromString("2022-05-04T19:57:32.195Z"), + PoolID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.PoolBalancesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetPoolBalancesRequest](../../models/operations/getpoolbalancesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetPoolBalancesResponse](../../models/operations/getpoolbalancesresponse.md), error** + + +## GetTransferInitiation + +Get a transfer initiation + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.GetTransferInitiation(ctx, operations.GetTransferInitiationRequest{ + TransferID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.TransferInitiationResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetTransferInitiationRequest](../../models/operations/gettransferinitiationrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetTransferInitiationResponse](../../models/operations/gettransferinitiationresponse.md), error** + + +## InstallConnector + +Install a connector by its name and config. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.InstallConnector(ctx, operations.InstallConnectorRequest{ + ConnectorConfig: shared.CreateConnectorConfigWiseConfig( + shared.WiseConfig{ + APIKey: "XXX", + Name: "My Wise Account", + PollingPeriod: formancesdkgo.String("60s"), + }, + ), + Connector: shared.ConnectorAtlar, + }) + if err != nil { + log.Fatal(err) + } + + if res.ConnectorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.InstallConnectorRequest](../../models/operations/installconnectorrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.InstallConnectorResponse](../../models/operations/installconnectorresponse.md), error** + + +## ListAllConnectors + +List all installed connectors. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListAllConnectors(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ConnectorsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.ListAllConnectorsResponse](../../models/operations/listallconnectorsresponse.md), error** + + +## ListBankAccounts + +List all bank accounts created by user on Formance. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListBankAccounts(ctx, operations.ListBankAccountsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Sort: []string{ + "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.BankAccountsCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListBankAccountsRequest](../../models/operations/listbankaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListBankAccountsResponse](../../models/operations/listbankaccountsresponse.md), error** + + +## ListConfigsAvailableConnectors + +List the configs of each available connector. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListConfigsAvailableConnectors(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ConnectorsConfigsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.ListConfigsAvailableConnectorsResponse](../../models/operations/listconfigsavailableconnectorsresponse.md), error** + + +## ~~ListConnectorTasks~~ + +List all tasks associated with this connector. + +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListConnectorTasks(ctx, operations.ListConnectorTasksRequest{ + Connector: shared.ConnectorWise, + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + }) + if err != nil { + log.Fatal(err) + } + + if res.TasksCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListConnectorTasksRequest](../../models/operations/listconnectortasksrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListConnectorTasksResponse](../../models/operations/listconnectortasksresponse.md), error** + + +## ListConnectorTasksV1 + +List all tasks associated with this connector. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListConnectorTasksV1(ctx, operations.ListConnectorTasksV1Request{ + Connector: shared.ConnectorBankingCircle, + ConnectorID: "string", + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + }) + if err != nil { + log.Fatal(err) + } + + if res.TasksCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListConnectorTasksV1Request](../../models/operations/listconnectortasksv1request.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListConnectorTasksV1Response](../../models/operations/listconnectortasksv1response.md), error** + + +## ListPayments + +List payments + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListPayments(ctx, operations.ListPaymentsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Sort: []string{ + "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.PaymentsCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListPaymentsRequest](../../models/operations/listpaymentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListPaymentsResponse](../../models/operations/listpaymentsresponse.md), error** + + +## ListPools + +List Pools + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListPools(ctx, operations.ListPoolsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Sort: []string{ + "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.PoolsCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListPoolsRequest](../../models/operations/listpoolsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListPoolsResponse](../../models/operations/listpoolsresponse.md), error** + + +## ListTransferInitiations + +List Transfer Initiations + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ListTransferInitiations(ctx, operations.ListTransferInitiationsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Sort: []string{ + "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.TransferInitiationsCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListTransferInitiationsRequest](../../models/operations/listtransferinitiationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListTransferInitiationsResponse](../../models/operations/listtransferinitiationsresponse.md), error** + + +## PaymentsgetAccount + +Get an account + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.PaymentsgetAccount(ctx, operations.PaymentsgetAccountRequest{ + AccountID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.PaymentsAccountResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.PaymentsgetAccountRequest](../../models/operations/paymentsgetaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.PaymentsgetAccountResponse](../../models/operations/paymentsgetaccountresponse.md), error** + + +## PaymentsgetServerInfo + +Get server info + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.PaymentsgetServerInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ServerInfo != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.PaymentsgetServerInfoResponse](../../models/operations/paymentsgetserverinforesponse.md), error** + + +## PaymentslistAccounts + +List accounts + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.PaymentslistAccounts(ctx, operations.PaymentslistAccountsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Sort: []string{ + "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.AccountsCursor != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.PaymentslistAccountsRequest](../../models/operations/paymentslistaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.PaymentslistAccountsResponse](../../models/operations/paymentslistaccountsresponse.md), error** + + +## ~~ReadConnectorConfig~~ + +Read connector config + +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ReadConnectorConfig(ctx, operations.ReadConnectorConfigRequest{ + Connector: shared.ConnectorAdyen, + }) + if err != nil { + log.Fatal(err) + } + + if res.ConnectorConfigResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ReadConnectorConfigRequest](../../models/operations/readconnectorconfigrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ReadConnectorConfigResponse](../../models/operations/readconnectorconfigresponse.md), error** + + +## ReadConnectorConfigV1 + +Read connector config + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ReadConnectorConfigV1(ctx, operations.ReadConnectorConfigV1Request{ + Connector: shared.ConnectorCurrencyCloud, + ConnectorID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.ConnectorConfigResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ReadConnectorConfigV1Request](../../models/operations/readconnectorconfigv1request.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ReadConnectorConfigV1Response](../../models/operations/readconnectorconfigv1response.md), error** + + +## RemoveAccountFromPool + +Remove an account from a pool by its id. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.RemoveAccountFromPool(ctx, operations.RemoveAccountFromPoolRequest{ + AccountID: "string", + PoolID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RemoveAccountFromPoolRequest](../../models/operations/removeaccountfrompoolrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.RemoveAccountFromPoolResponse](../../models/operations/removeaccountfrompoolresponse.md), error** + + +## ~~ResetConnector~~ + +Reset a connector by its name. +It will remove the connector and ALL PAYMENTS generated with it. + + +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ResetConnector(ctx, operations.ResetConnectorRequest{ + Connector: shared.ConnectorMoneycorp, + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ResetConnectorRequest](../../models/operations/resetconnectorrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ResetConnectorResponse](../../models/operations/resetconnectorresponse.md), error** + + +## ResetConnectorV1 + +Reset a connector by its name. +It will remove the connector and ALL PAYMENTS generated with it. + + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.ResetConnectorV1(ctx, operations.ResetConnectorV1Request{ + Connector: shared.ConnectorAdyen, + ConnectorID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ResetConnectorV1Request](../../models/operations/resetconnectorv1request.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ResetConnectorV1Response](../../models/operations/resetconnectorv1response.md), error** + + +## RetryTransferInitiation + +Retry a failed transfer initiation + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.RetryTransferInitiation(ctx, operations.RetryTransferInitiationRequest{ + TransferID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RetryTransferInitiationRequest](../../models/operations/retrytransferinitiationrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.RetryTransferInitiationResponse](../../models/operations/retrytransferinitiationresponse.md), error** + + +## UdpateTransferInitiationStatus + +Update a transfer initiation status + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.UdpateTransferInitiationStatus(ctx, operations.UdpateTransferInitiationStatusRequest{ + UpdateTransferInitiationStatusRequest: shared.UpdateTransferInitiationStatusRequest{ + Status: shared.UpdateTransferInitiationStatusRequestStatusValidated, + }, + TransferID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UdpateTransferInitiationStatusRequest](../../models/operations/udpatetransferinitiationstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UdpateTransferInitiationStatusResponse](../../models/operations/udpatetransferinitiationstatusresponse.md), error** + + +## ~~UninstallConnector~~ + +Uninstall a connector by its name. + +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.UninstallConnector(ctx, operations.UninstallConnectorRequest{ + Connector: shared.ConnectorWise, + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UninstallConnectorRequest](../../models/operations/uninstallconnectorrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UninstallConnectorResponse](../../models/operations/uninstallconnectorresponse.md), error** + + +## UninstallConnectorV1 + +Uninstall a connector by its name. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.UninstallConnectorV1(ctx, operations.UninstallConnectorV1Request{ + Connector: shared.ConnectorAdyen, + ConnectorID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UninstallConnectorV1Request](../../models/operations/uninstallconnectorv1request.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UninstallConnectorV1Response](../../models/operations/uninstallconnectorv1response.md), error** + + +## UpdateConnectorConfigV1 + +Update connector config + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.UpdateConnectorConfigV1(ctx, operations.UpdateConnectorConfigV1Request{ + ConnectorConfig: shared.CreateConnectorConfigStripeConfig( + shared.StripeConfig{ + APIKey: "XXX", + Name: "My Stripe Account", + PageSize: formancesdkgo.Int64(50), + PollingPeriod: formancesdkgo.String("60s"), + }, + ), + Connector: shared.ConnectorStripe, + ConnectorID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateConnectorConfigV1Request](../../models/operations/updateconnectorconfigv1request.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UpdateConnectorConfigV1Response](../../models/operations/updateconnectorconfigv1response.md), error** + + +## UpdateMetadata + +Update metadata + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Payments.UpdateMetadata(ctx, operations.UpdateMetadataRequest{ + RequestBody: map[string]string{ + "key": "string", + }, + PaymentID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateMetadataRequest](../../models/operations/updatemetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UpdateMetadataResponse](../../models/operations/updatemetadataresponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/reconciliation/README.md b/releases/sdks/go/docs/sdks/reconciliation/README.md new file mode 100755 index 0000000000..7002fed12c --- /dev/null +++ b/releases/sdks/go/docs/sdks/reconciliation/README.md @@ -0,0 +1,386 @@ +# Reconciliation +(*Reconciliation*) + +### Available Operations + +* [CreatePolicy](#createpolicy) - Create a policy +* [DeletePolicy](#deletepolicy) - Delete a policy +* [GetPolicy](#getpolicy) - Get a policy +* [GetReconciliation](#getreconciliation) - Get a reconciliation +* [ListPolicies](#listpolicies) - List policies +* [ListReconciliations](#listreconciliations) - List reconciliations +* [Reconcile](#reconcile) - Reconcile using a policy +* [ReconciliationgetServerInfo](#reconciliationgetserverinfo) - Get server info + +## CreatePolicy + +Create a policy + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.CreatePolicy(ctx, shared.PolicyRequest{ + LedgerName: "default", + LedgerQuery: "{\"$match\": {\"metadata[reconciliation]\": \"pool:main\"}}", + Name: "XXX", + PaymentsPoolID: "XXX", + }) + if err != nil { + log.Fatal(err) + } + + if res.PolicyResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.PolicyRequest](../../models/shared/policyrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreatePolicyResponse](../../models/operations/createpolicyresponse.md), error** + + +## DeletePolicy + +Delete a policy by its id. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.DeletePolicy(ctx, operations.DeletePolicyRequest{ + PolicyID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeletePolicyRequest](../../models/operations/deletepolicyrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeletePolicyResponse](../../models/operations/deletepolicyresponse.md), error** + + +## GetPolicy + +Get a policy + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.GetPolicy(ctx, operations.GetPolicyRequest{ + PolicyID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.PolicyResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetPolicyRequest](../../models/operations/getpolicyrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetPolicyResponse](../../models/operations/getpolicyresponse.md), error** + + +## GetReconciliation + +Get a reconciliation + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.GetReconciliation(ctx, operations.GetReconciliationRequest{ + ReconciliationID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.ReconciliationResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetReconciliationRequest](../../models/operations/getreconciliationrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetReconciliationResponse](../../models/operations/getreconciliationresponse.md), error** + + +## ListPolicies + +List policies + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.ListPolicies(ctx, operations.ListPoliciesRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + }) + if err != nil { + log.Fatal(err) + } + + if res.PoliciesCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListPoliciesRequest](../../models/operations/listpoliciesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListPoliciesResponse](../../models/operations/listpoliciesresponse.md), error** + + +## ListReconciliations + +List reconciliations + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.ListReconciliations(ctx, operations.ListReconciliationsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + }) + if err != nil { + log.Fatal(err) + } + + if res.ReconciliationsCursorResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListReconciliationsRequest](../../models/operations/listreconciliationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListReconciliationsResponse](../../models/operations/listreconciliationsresponse.md), error** + + +## Reconcile + +Reconcile using a policy + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "github.com/formancehq/formance-sdk-go/pkg/types" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.Reconcile(ctx, operations.ReconcileRequest{ + ReconciliationRequest: shared.ReconciliationRequest{ + ReconciledAtLedger: types.MustTimeFromString("2021-01-01T00:00:00.000Z"), + ReconciledAtPayments: types.MustTimeFromString("2021-01-01T00:00:00.000Z"), + }, + PolicyID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.ReconciliationResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ReconcileRequest](../../models/operations/reconcilerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ReconcileResponse](../../models/operations/reconcileresponse.md), error** + + +## ReconciliationgetServerInfo + +Get server info + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Reconciliation.ReconciliationgetServerInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ServerInfo != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.ReconciliationgetServerInfoResponse](../../models/operations/reconciliationgetserverinforesponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/search/README.md b/releases/sdks/go/docs/sdks/search/README.md new file mode 100755 index 0000000000..3931de5e1c --- /dev/null +++ b/releases/sdks/go/docs/sdks/search/README.md @@ -0,0 +1,148 @@ +# Search +(*Search*) + +### Available Operations + +* [Search](#search) - Search +* [SearchgetServerInfo](#searchgetserverinfo) - Get server info + +## Search + +ElasticSearch query engine + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Search.Search(ctx, shared.Query{ + After: []string{ + "u", + "s", + "e", + "r", + "s", + ":", + "0", + "0", + "2", + }, + Cursor: formancesdkgo.String("YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="), + Ledgers: []string{ + "q", + "u", + "i", + "c", + "k", + "s", + "t", + "a", + "r", + "t", + }, + Policy: formancesdkgo.String("OR"), + Raw: &shared.QueryRaw{}, + Sort: formancesdkgo.String("id:asc"), + Terms: []string{ + "d", + "e", + "s", + "t", + "i", + "n", + "a", + "t", + "i", + "o", + "n", + "=", + "c", + "e", + "n", + "t", + "r", + "a", + "l", + "_", + "b", + "a", + "n", + "k", + "1", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.Response != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.Query](../../models/shared/query.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.SearchResponse](../../models/operations/searchresponse.md), error** + + +## SearchgetServerInfo + +Get server info + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Search.SearchgetServerInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ServerInfo != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.SearchgetServerInfoResponse](../../models/operations/searchgetserverinforesponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/wallets/README.md b/releases/sdks/go/docs/sdks/wallets/README.md new file mode 100755 index 0000000000..01f2fba391 --- /dev/null +++ b/releases/sdks/go/docs/sdks/wallets/README.md @@ -0,0 +1,815 @@ +# Wallets +(*Wallets*) + +### Available Operations + +* [ConfirmHold](#confirmhold) - Confirm a hold +* [CreateBalance](#createbalance) - Create a balance +* [CreateWallet](#createwallet) - Create a new wallet +* [CreditWallet](#creditwallet) - Credit a wallet +* [DebitWallet](#debitwallet) - Debit a wallet +* [GetBalance](#getbalance) - Get detailed balance +* [GetHold](#gethold) - Get a hold +* [GetHolds](#getholds) - Get all holds for a wallet +* [GetTransactions](#gettransactions) +* [GetWallet](#getwallet) - Get a wallet +* [GetWalletSummary](#getwalletsummary) - Get wallet summary +* [ListBalances](#listbalances) - List balances of a wallet +* [ListWallets](#listwallets) - List all wallets +* [UpdateWallet](#updatewallet) - Update a wallet +* [VoidHold](#voidhold) - Cancel a hold +* [WalletsgetServerInfo](#walletsgetserverinfo) - Get server info + +## ConfirmHold + +Confirm a hold + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.ConfirmHold(ctx, operations.ConfirmHoldRequest{ + ConfirmHoldRequest: &shared.ConfirmHoldRequest{ + Amount: big.NewInt(100), + Final: formancesdkgo.Bool(true), + }, + HoldID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ConfirmHoldRequest](../../models/operations/confirmholdrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ConfirmHoldResponse](../../models/operations/confirmholdresponse.md), error** + + +## CreateBalance + +Create a balance + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.CreateBalance(ctx, operations.CreateBalanceRequest{ + CreateBalanceRequest: &shared.CreateBalanceRequest{ + Name: "string", + }, + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.CreateBalanceResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateBalanceRequest](../../models/operations/createbalancerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateBalanceResponse](../../models/operations/createbalanceresponse.md), error** + + +## CreateWallet + +Create a new wallet + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.CreateWallet(ctx, &shared.CreateWalletRequest{ + Metadata: map[string]string{ + "key": "string", + }, + Name: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.CreateWalletResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.CreateWalletRequest](../../models/shared/createwalletrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreateWalletResponse](../../models/operations/createwalletresponse.md), error** + + +## CreditWallet + +Credit a wallet + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.CreditWallet(ctx, operations.CreditWalletRequest{ + CreditWalletRequest: &shared.CreditWalletRequest{ + Amount: shared.Monetary{ + Amount: big.NewInt(201874), + Asset: "string", + }, + Metadata: map[string]string{ + "key": "string", + }, + Sources: []shared.Subject{ + shared.CreateSubjectLedgerAccountSubject( + shared.LedgerAccountSubject{ + Identifier: "string", + Type: "string", + }, + ), + }, + }, + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreditWalletRequest](../../models/operations/creditwalletrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.CreditWalletResponse](../../models/operations/creditwalletresponse.md), error** + + +## DebitWallet + +Debit a wallet + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" + "math/big" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.DebitWallet(ctx, operations.DebitWalletRequest{ + DebitWalletRequest: &shared.DebitWalletRequest{ + Amount: shared.Monetary{ + Amount: big.NewInt(245256), + Asset: "string", + }, + Balances: []string{ + "string", + }, + Destination: shared.CreateSubjectLedgerAccountSubject( + shared.LedgerAccountSubject{ + Identifier: "string", + Type: "string", + }, + ), + Metadata: map[string]string{ + "key": "string", + }, + }, + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.DebitWalletResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DebitWalletRequest](../../models/operations/debitwalletrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DebitWalletResponse](../../models/operations/debitwalletresponse.md), error** + + +## GetBalance + +Get detailed balance + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.GetBalance(ctx, operations.GetBalanceRequest{ + BalanceName: "string", + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.GetBalanceResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBalanceRequest](../../models/operations/getbalancerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetBalanceResponse](../../models/operations/getbalanceresponse.md), error** + + +## GetHold + +Get a hold + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.GetHold(ctx, operations.GetHoldRequest{ + HoldID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.GetHoldResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetHoldRequest](../../models/operations/getholdrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetHoldResponse](../../models/operations/getholdresponse.md), error** + + +## GetHolds + +Get all holds for a wallet + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.GetHolds(ctx, operations.GetHoldsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Metadata: map[string]string{ + "key": "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.GetHoldsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetHoldsRequest](../../models/operations/getholdsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetHoldsResponse](../../models/operations/getholdsresponse.md), error** + + +## GetTransactions + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.GetTransactions(ctx, operations.GetTransactionsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + }) + if err != nil { + log.Fatal(err) + } + + if res.GetTransactionsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetTransactionsRequest](../../models/operations/gettransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetTransactionsResponse](../../models/operations/gettransactionsresponse.md), error** + + +## GetWallet + +Get a wallet + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.GetWallet(ctx, operations.GetWalletRequest{ + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.GetWalletResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetWalletRequest](../../models/operations/getwalletrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetWalletResponse](../../models/operations/getwalletresponse.md), error** + + +## GetWalletSummary + +Get wallet summary + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.GetWalletSummary(ctx, operations.GetWalletSummaryRequest{ + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.GetWalletSummaryResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetWalletSummaryRequest](../../models/operations/getwalletsummaryrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetWalletSummaryResponse](../../models/operations/getwalletsummaryresponse.md), error** + + +## ListBalances + +List balances of a wallet + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.ListBalances(ctx, operations.ListBalancesRequest{ + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.ListBalancesResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListBalancesRequest](../../models/operations/listbalancesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListBalancesResponse](../../models/operations/listbalancesresponse.md), error** + + +## ListWallets + +List all wallets + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.ListWallets(ctx, operations.ListWalletsRequest{ + Cursor: formancesdkgo.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), + Metadata: map[string]string{ + "key": "string", + }, + }) + if err != nil { + log.Fatal(err) + } + + if res.ListWalletsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListWalletsRequest](../../models/operations/listwalletsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ListWalletsResponse](../../models/operations/listwalletsresponse.md), error** + + +## UpdateWallet + +Update a wallet + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.UpdateWallet(ctx, operations.UpdateWalletRequest{ + RequestBody: &operations.UpdateWalletRequestBody{ + Metadata: map[string]string{ + "key": "string", + }, + }, + ID: "", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateWalletRequest](../../models/operations/updatewalletrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UpdateWalletResponse](../../models/operations/updatewalletresponse.md), error** + + +## VoidHold + +Cancel a hold + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.VoidHold(ctx, operations.VoidHoldRequest{ + HoldID: "string", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.VoidHoldRequest](../../models/operations/voidholdrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.VoidHoldResponse](../../models/operations/voidholdresponse.md), error** + + +## WalletsgetServerInfo + +Get server info + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Wallets.WalletsgetServerInfo(ctx) + if err != nil { + log.Fatal(err) + } + + if res.ServerInfo != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | + + +### Response + +**[*operations.WalletsgetServerInfoResponse](../../models/operations/walletsgetserverinforesponse.md), error** + diff --git a/releases/sdks/go/docs/sdks/webhooks/README.md b/releases/sdks/go/docs/sdks/webhooks/README.md new file mode 100755 index 0000000000..0e18e3d3f9 --- /dev/null +++ b/releases/sdks/go/docs/sdks/webhooks/README.md @@ -0,0 +1,357 @@ +# Webhooks +(*Webhooks*) + +### Available Operations + +* [ActivateConfig](#activateconfig) - Activate one config +* [ChangeConfigSecret](#changeconfigsecret) - Change the signing secret of a config +* [DeactivateConfig](#deactivateconfig) - Deactivate one config +* [DeleteConfig](#deleteconfig) - Delete one config +* [GetManyConfigs](#getmanyconfigs) - Get many configs +* [InsertConfig](#insertconfig) - Insert a new config +* [TestConfig](#testconfig) - Test one config + +## ActivateConfig + +Activate a webhooks config by ID, to start receiving webhooks to its endpoint. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Webhooks.ActivateConfig(ctx, operations.ActivateConfigRequest{ + ID: "4997257d-dfb6-445b-929c-cbe2ab182818", + }) + if err != nil { + log.Fatal(err) + } + + if res.ConfigResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ActivateConfigRequest](../../models/operations/activateconfigrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ActivateConfigResponse](../../models/operations/activateconfigresponse.md), error** + + +## ChangeConfigSecret + +Change the signing secret of the endpoint of a webhooks config. + +If not passed or empty, a secret is automatically generated. +The format is a random string of bytes of size 24, base64 encoded. (larger size after encoding) + + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Webhooks.ChangeConfigSecret(ctx, operations.ChangeConfigSecretRequest{ + ConfigChangeSecret: &shared.ConfigChangeSecret{ + Secret: "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3", + }, + ID: "4997257d-dfb6-445b-929c-cbe2ab182818", + }) + if err != nil { + log.Fatal(err) + } + + if res.ConfigResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ChangeConfigSecretRequest](../../models/operations/changeconfigsecretrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ChangeConfigSecretResponse](../../models/operations/changeconfigsecretresponse.md), error** + + +## DeactivateConfig + +Deactivate a webhooks config by ID, to stop receiving webhooks to its endpoint. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Webhooks.DeactivateConfig(ctx, operations.DeactivateConfigRequest{ + ID: "4997257d-dfb6-445b-929c-cbe2ab182818", + }) + if err != nil { + log.Fatal(err) + } + + if res.ConfigResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeactivateConfigRequest](../../models/operations/deactivateconfigrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeactivateConfigResponse](../../models/operations/deactivateconfigresponse.md), error** + + +## DeleteConfig + +Delete a webhooks config by ID. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Webhooks.DeleteConfig(ctx, operations.DeleteConfigRequest{ + ID: "4997257d-dfb6-445b-929c-cbe2ab182818", + }) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteConfigRequest](../../models/operations/deleteconfigrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.DeleteConfigResponse](../../models/operations/deleteconfigresponse.md), error** + + +## GetManyConfigs + +Sorted by updated date descending + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Webhooks.GetManyConfigs(ctx, operations.GetManyConfigsRequest{ + Endpoint: formancesdkgo.String("https://example.com"), + ID: formancesdkgo.String("4997257d-dfb6-445b-929c-cbe2ab182818"), + }) + if err != nil { + log.Fatal(err) + } + + if res.ConfigsResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetManyConfigsRequest](../../models/operations/getmanyconfigsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.GetManyConfigsResponse](../../models/operations/getmanyconfigsresponse.md), error** + + +## InsertConfig + +Insert a new webhooks config. + +The endpoint should be a valid https URL and be unique. + +The secret is the endpoint's verification secret. +If not passed or empty, a secret is automatically generated. +The format is a random string of bytes of size 24, base64 encoded. (larger size after encoding) + +All eventTypes are converted to lower-case when inserted. + + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/shared" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Webhooks.InsertConfig(ctx, shared.ConfigUser{ + Endpoint: "https://example.com", + EventTypes: []string{ + "TYPE1", + "TYPE2", + }, + Secret: formancesdkgo.String("V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3"), + }) + if err != nil { + log.Fatal(err) + } + + if res.ConfigResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.ConfigUser](../../models/shared/configuser.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.InsertConfigResponse](../../models/operations/insertconfigresponse.md), error** + + +## TestConfig + +Test a config by sending a webhook to its endpoint. + +### Example Usage + +```go +package main + +import( + "context" + "log" + formancesdkgo "github.com/formancehq/formance-sdk-go" + "github.com/formancehq/formance-sdk-go/pkg/models/operations" +) + +func main() { + s := formancesdkgo.New() + + ctx := context.Background() + res, err := s.Webhooks.TestConfig(ctx, operations.TestConfigRequest{ + ID: "4997257d-dfb6-445b-929c-cbe2ab182818", + }) + if err != nil { + log.Fatal(err) + } + + if res.AttemptResponse != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.TestConfigRequest](../../models/operations/testconfigrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.TestConfigResponse](../../models/operations/testconfigresponse.md), error** + diff --git a/libs/clients/go/files.gen b/releases/sdks/go/files.gen similarity index 100% rename from libs/clients/go/files.gen rename to releases/sdks/go/files.gen diff --git a/libs/clients/go/formance.go b/releases/sdks/go/formance.go similarity index 98% rename from libs/clients/go/formance.go rename to releases/sdks/go/formance.go index f2f7edea9a..6dafad4a99 100755 --- a/libs/clients/go/formance.go +++ b/releases/sdks/go/formance.go @@ -142,9 +142,9 @@ func New(opts ...SDKOption) *Formance { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "INTERNAL", - SDKVersion: "v0.1.0", + SDKVersion: "", GenVersion: "2.173.0", - UserAgent: "speakeasy-sdk/go v0.1.0 2.173.0 INTERNAL github.com/formancehq/formance-sdk-go", + UserAgent: "speakeasy-sdk/go 2.173.0 INTERNAL github.com/formancehq/formance-sdk-go", }, } for _, opt := range opts { diff --git a/libs/clients/go/gen.yaml b/releases/sdks/go/gen.yaml similarity index 96% rename from libs/clients/go/gen.yaml rename to releases/sdks/go/gen.yaml index fc8e5e6a69..1521405d1f 100755 --- a/libs/clients/go/gen.yaml +++ b/releases/sdks/go/gen.yaml @@ -14,7 +14,7 @@ features: ignores: 2.81.1 unions: 2.84.1 go: - version: v0.1.0 + version: "" author: Formance flattenGlobalSecurity: false maxMethodParams: 0 diff --git a/libs/clients/go/go.mod b/releases/sdks/go/go.mod similarity index 100% rename from libs/clients/go/go.mod rename to releases/sdks/go/go.mod diff --git a/libs/clients/go/go.sum b/releases/sdks/go/go.sum similarity index 100% rename from libs/clients/go/go.sum rename to releases/sdks/go/go.sum diff --git a/libs/clients/go/ledger.go b/releases/sdks/go/ledger.go similarity index 100% rename from libs/clients/go/ledger.go rename to releases/sdks/go/ledger.go diff --git a/libs/clients/go/orchestration.go b/releases/sdks/go/orchestration.go similarity index 100% rename from libs/clients/go/orchestration.go rename to releases/sdks/go/orchestration.go diff --git a/libs/clients/go/payments.go b/releases/sdks/go/payments.go similarity index 100% rename from libs/clients/go/payments.go rename to releases/sdks/go/payments.go diff --git a/libs/clients/go/pkg/models/operations/activateconfig.go b/releases/sdks/go/pkg/models/operations/activateconfig.go similarity index 100% rename from libs/clients/go/pkg/models/operations/activateconfig.go rename to releases/sdks/go/pkg/models/operations/activateconfig.go diff --git a/libs/clients/go/pkg/models/operations/addaccounttopool.go b/releases/sdks/go/pkg/models/operations/addaccounttopool.go similarity index 100% rename from libs/clients/go/pkg/models/operations/addaccounttopool.go rename to releases/sdks/go/pkg/models/operations/addaccounttopool.go diff --git a/libs/clients/go/pkg/models/operations/addmetadataontransaction.go b/releases/sdks/go/pkg/models/operations/addmetadataontransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/addmetadataontransaction.go rename to releases/sdks/go/pkg/models/operations/addmetadataontransaction.go diff --git a/libs/clients/go/pkg/models/operations/addmetadatatoaccount.go b/releases/sdks/go/pkg/models/operations/addmetadatatoaccount.go similarity index 100% rename from libs/clients/go/pkg/models/operations/addmetadatatoaccount.go rename to releases/sdks/go/pkg/models/operations/addmetadatatoaccount.go diff --git a/libs/clients/go/pkg/models/operations/cancelevent.go b/releases/sdks/go/pkg/models/operations/cancelevent.go similarity index 100% rename from libs/clients/go/pkg/models/operations/cancelevent.go rename to releases/sdks/go/pkg/models/operations/cancelevent.go diff --git a/libs/clients/go/pkg/models/operations/changeconfigsecret.go b/releases/sdks/go/pkg/models/operations/changeconfigsecret.go similarity index 100% rename from libs/clients/go/pkg/models/operations/changeconfigsecret.go rename to releases/sdks/go/pkg/models/operations/changeconfigsecret.go diff --git a/libs/clients/go/pkg/models/operations/confirmhold.go b/releases/sdks/go/pkg/models/operations/confirmhold.go similarity index 100% rename from libs/clients/go/pkg/models/operations/confirmhold.go rename to releases/sdks/go/pkg/models/operations/confirmhold.go diff --git a/libs/clients/go/pkg/models/operations/connectorstransfer.go b/releases/sdks/go/pkg/models/operations/connectorstransfer.go similarity index 100% rename from libs/clients/go/pkg/models/operations/connectorstransfer.go rename to releases/sdks/go/pkg/models/operations/connectorstransfer.go diff --git a/libs/clients/go/pkg/models/operations/countaccounts.go b/releases/sdks/go/pkg/models/operations/countaccounts.go similarity index 100% rename from libs/clients/go/pkg/models/operations/countaccounts.go rename to releases/sdks/go/pkg/models/operations/countaccounts.go diff --git a/libs/clients/go/pkg/models/operations/counttransactions.go b/releases/sdks/go/pkg/models/operations/counttransactions.go similarity index 100% rename from libs/clients/go/pkg/models/operations/counttransactions.go rename to releases/sdks/go/pkg/models/operations/counttransactions.go diff --git a/libs/clients/go/pkg/models/operations/createbalance.go b/releases/sdks/go/pkg/models/operations/createbalance.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createbalance.go rename to releases/sdks/go/pkg/models/operations/createbalance.go diff --git a/libs/clients/go/pkg/models/operations/createbankaccount.go b/releases/sdks/go/pkg/models/operations/createbankaccount.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createbankaccount.go rename to releases/sdks/go/pkg/models/operations/createbankaccount.go diff --git a/libs/clients/go/pkg/models/operations/createclient.go b/releases/sdks/go/pkg/models/operations/createclient.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createclient.go rename to releases/sdks/go/pkg/models/operations/createclient.go diff --git a/libs/clients/go/pkg/models/operations/createpayment.go b/releases/sdks/go/pkg/models/operations/createpayment.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createpayment.go rename to releases/sdks/go/pkg/models/operations/createpayment.go diff --git a/libs/clients/go/pkg/models/operations/createpolicy.go b/releases/sdks/go/pkg/models/operations/createpolicy.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createpolicy.go rename to releases/sdks/go/pkg/models/operations/createpolicy.go diff --git a/libs/clients/go/pkg/models/operations/createpool.go b/releases/sdks/go/pkg/models/operations/createpool.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createpool.go rename to releases/sdks/go/pkg/models/operations/createpool.go diff --git a/libs/clients/go/pkg/models/operations/createsecret.go b/releases/sdks/go/pkg/models/operations/createsecret.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createsecret.go rename to releases/sdks/go/pkg/models/operations/createsecret.go diff --git a/libs/clients/go/pkg/models/operations/createtransaction.go b/releases/sdks/go/pkg/models/operations/createtransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createtransaction.go rename to releases/sdks/go/pkg/models/operations/createtransaction.go diff --git a/libs/clients/go/pkg/models/operations/createtransactions.go b/releases/sdks/go/pkg/models/operations/createtransactions.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createtransactions.go rename to releases/sdks/go/pkg/models/operations/createtransactions.go diff --git a/libs/clients/go/pkg/models/operations/createtransferinitiation.go b/releases/sdks/go/pkg/models/operations/createtransferinitiation.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createtransferinitiation.go rename to releases/sdks/go/pkg/models/operations/createtransferinitiation.go diff --git a/libs/clients/go/pkg/models/operations/createtrigger.go b/releases/sdks/go/pkg/models/operations/createtrigger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createtrigger.go rename to releases/sdks/go/pkg/models/operations/createtrigger.go diff --git a/libs/clients/go/pkg/models/operations/createwallet.go b/releases/sdks/go/pkg/models/operations/createwallet.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createwallet.go rename to releases/sdks/go/pkg/models/operations/createwallet.go diff --git a/libs/clients/go/pkg/models/operations/createworkflow.go b/releases/sdks/go/pkg/models/operations/createworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/createworkflow.go rename to releases/sdks/go/pkg/models/operations/createworkflow.go diff --git a/libs/clients/go/pkg/models/operations/creditwallet.go b/releases/sdks/go/pkg/models/operations/creditwallet.go similarity index 100% rename from libs/clients/go/pkg/models/operations/creditwallet.go rename to releases/sdks/go/pkg/models/operations/creditwallet.go diff --git a/libs/clients/go/pkg/models/operations/deactivateconfig.go b/releases/sdks/go/pkg/models/operations/deactivateconfig.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deactivateconfig.go rename to releases/sdks/go/pkg/models/operations/deactivateconfig.go diff --git a/libs/clients/go/pkg/models/operations/debitwallet.go b/releases/sdks/go/pkg/models/operations/debitwallet.go similarity index 100% rename from libs/clients/go/pkg/models/operations/debitwallet.go rename to releases/sdks/go/pkg/models/operations/debitwallet.go diff --git a/libs/clients/go/pkg/models/operations/deleteclient.go b/releases/sdks/go/pkg/models/operations/deleteclient.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deleteclient.go rename to releases/sdks/go/pkg/models/operations/deleteclient.go diff --git a/libs/clients/go/pkg/models/operations/deleteconfig.go b/releases/sdks/go/pkg/models/operations/deleteconfig.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deleteconfig.go rename to releases/sdks/go/pkg/models/operations/deleteconfig.go diff --git a/libs/clients/go/pkg/models/operations/deletepolicy.go b/releases/sdks/go/pkg/models/operations/deletepolicy.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deletepolicy.go rename to releases/sdks/go/pkg/models/operations/deletepolicy.go diff --git a/libs/clients/go/pkg/models/operations/deletepool.go b/releases/sdks/go/pkg/models/operations/deletepool.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deletepool.go rename to releases/sdks/go/pkg/models/operations/deletepool.go diff --git a/libs/clients/go/pkg/models/operations/deletesecret.go b/releases/sdks/go/pkg/models/operations/deletesecret.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deletesecret.go rename to releases/sdks/go/pkg/models/operations/deletesecret.go diff --git a/libs/clients/go/pkg/models/operations/deletetransferinitiation.go b/releases/sdks/go/pkg/models/operations/deletetransferinitiation.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deletetransferinitiation.go rename to releases/sdks/go/pkg/models/operations/deletetransferinitiation.go diff --git a/libs/clients/go/pkg/models/operations/deletetrigger.go b/releases/sdks/go/pkg/models/operations/deletetrigger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deletetrigger.go rename to releases/sdks/go/pkg/models/operations/deletetrigger.go diff --git a/libs/clients/go/pkg/models/operations/deleteworkflow.go b/releases/sdks/go/pkg/models/operations/deleteworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/deleteworkflow.go rename to releases/sdks/go/pkg/models/operations/deleteworkflow.go diff --git a/libs/clients/go/pkg/models/operations/getaccount.go b/releases/sdks/go/pkg/models/operations/getaccount.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getaccount.go rename to releases/sdks/go/pkg/models/operations/getaccount.go diff --git a/libs/clients/go/pkg/models/operations/getaccountbalances.go b/releases/sdks/go/pkg/models/operations/getaccountbalances.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getaccountbalances.go rename to releases/sdks/go/pkg/models/operations/getaccountbalances.go diff --git a/libs/clients/go/pkg/models/operations/getapiauthwellknownopenidconfiguration.go b/releases/sdks/go/pkg/models/operations/getapiauthwellknownopenidconfiguration.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getapiauthwellknownopenidconfiguration.go rename to releases/sdks/go/pkg/models/operations/getapiauthwellknownopenidconfiguration.go diff --git a/libs/clients/go/pkg/models/operations/getbalance.go b/releases/sdks/go/pkg/models/operations/getbalance.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getbalance.go rename to releases/sdks/go/pkg/models/operations/getbalance.go diff --git a/libs/clients/go/pkg/models/operations/getbalances.go b/releases/sdks/go/pkg/models/operations/getbalances.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getbalances.go rename to releases/sdks/go/pkg/models/operations/getbalances.go diff --git a/libs/clients/go/pkg/models/operations/getbalancesaggregated.go b/releases/sdks/go/pkg/models/operations/getbalancesaggregated.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getbalancesaggregated.go rename to releases/sdks/go/pkg/models/operations/getbalancesaggregated.go diff --git a/libs/clients/go/pkg/models/operations/getbankaccount.go b/releases/sdks/go/pkg/models/operations/getbankaccount.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getbankaccount.go rename to releases/sdks/go/pkg/models/operations/getbankaccount.go diff --git a/libs/clients/go/pkg/models/operations/getconnectortask.go b/releases/sdks/go/pkg/models/operations/getconnectortask.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getconnectortask.go rename to releases/sdks/go/pkg/models/operations/getconnectortask.go diff --git a/libs/clients/go/pkg/models/operations/getconnectortaskv1.go b/releases/sdks/go/pkg/models/operations/getconnectortaskv1.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getconnectortaskv1.go rename to releases/sdks/go/pkg/models/operations/getconnectortaskv1.go diff --git a/libs/clients/go/pkg/models/operations/gethold.go b/releases/sdks/go/pkg/models/operations/gethold.go similarity index 100% rename from libs/clients/go/pkg/models/operations/gethold.go rename to releases/sdks/go/pkg/models/operations/gethold.go diff --git a/libs/clients/go/pkg/models/operations/getholds.go b/releases/sdks/go/pkg/models/operations/getholds.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getholds.go rename to releases/sdks/go/pkg/models/operations/getholds.go diff --git a/libs/clients/go/pkg/models/operations/getinfo.go b/releases/sdks/go/pkg/models/operations/getinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getinfo.go rename to releases/sdks/go/pkg/models/operations/getinfo.go diff --git a/libs/clients/go/pkg/models/operations/getinstance.go b/releases/sdks/go/pkg/models/operations/getinstance.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getinstance.go rename to releases/sdks/go/pkg/models/operations/getinstance.go diff --git a/libs/clients/go/pkg/models/operations/getinstancehistory.go b/releases/sdks/go/pkg/models/operations/getinstancehistory.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getinstancehistory.go rename to releases/sdks/go/pkg/models/operations/getinstancehistory.go diff --git a/libs/clients/go/pkg/models/operations/getinstancestagehistory.go b/releases/sdks/go/pkg/models/operations/getinstancestagehistory.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getinstancestagehistory.go rename to releases/sdks/go/pkg/models/operations/getinstancestagehistory.go diff --git a/libs/clients/go/pkg/models/operations/getledgerinfo.go b/releases/sdks/go/pkg/models/operations/getledgerinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getledgerinfo.go rename to releases/sdks/go/pkg/models/operations/getledgerinfo.go diff --git a/libs/clients/go/pkg/models/operations/getmanyconfigs.go b/releases/sdks/go/pkg/models/operations/getmanyconfigs.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getmanyconfigs.go rename to releases/sdks/go/pkg/models/operations/getmanyconfigs.go diff --git a/libs/clients/go/pkg/models/operations/getmapping.go b/releases/sdks/go/pkg/models/operations/getmapping.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getmapping.go rename to releases/sdks/go/pkg/models/operations/getmapping.go diff --git a/libs/clients/go/pkg/models/operations/getpayment.go b/releases/sdks/go/pkg/models/operations/getpayment.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getpayment.go rename to releases/sdks/go/pkg/models/operations/getpayment.go diff --git a/libs/clients/go/pkg/models/operations/getpolicy.go b/releases/sdks/go/pkg/models/operations/getpolicy.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getpolicy.go rename to releases/sdks/go/pkg/models/operations/getpolicy.go diff --git a/libs/clients/go/pkg/models/operations/getpool.go b/releases/sdks/go/pkg/models/operations/getpool.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getpool.go rename to releases/sdks/go/pkg/models/operations/getpool.go diff --git a/libs/clients/go/pkg/models/operations/getpoolbalances.go b/releases/sdks/go/pkg/models/operations/getpoolbalances.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getpoolbalances.go rename to releases/sdks/go/pkg/models/operations/getpoolbalances.go diff --git a/libs/clients/go/pkg/models/operations/getreconciliation.go b/releases/sdks/go/pkg/models/operations/getreconciliation.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getreconciliation.go rename to releases/sdks/go/pkg/models/operations/getreconciliation.go diff --git a/libs/clients/go/pkg/models/operations/getserverinfo.go b/releases/sdks/go/pkg/models/operations/getserverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getserverinfo.go rename to releases/sdks/go/pkg/models/operations/getserverinfo.go diff --git a/libs/clients/go/pkg/models/operations/gettransaction.go b/releases/sdks/go/pkg/models/operations/gettransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/gettransaction.go rename to releases/sdks/go/pkg/models/operations/gettransaction.go diff --git a/libs/clients/go/pkg/models/operations/gettransactions.go b/releases/sdks/go/pkg/models/operations/gettransactions.go similarity index 100% rename from libs/clients/go/pkg/models/operations/gettransactions.go rename to releases/sdks/go/pkg/models/operations/gettransactions.go diff --git a/libs/clients/go/pkg/models/operations/gettransferinitiation.go b/releases/sdks/go/pkg/models/operations/gettransferinitiation.go similarity index 100% rename from libs/clients/go/pkg/models/operations/gettransferinitiation.go rename to releases/sdks/go/pkg/models/operations/gettransferinitiation.go diff --git a/libs/clients/go/pkg/models/operations/getversions.go b/releases/sdks/go/pkg/models/operations/getversions.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getversions.go rename to releases/sdks/go/pkg/models/operations/getversions.go diff --git a/libs/clients/go/pkg/models/operations/getwallet.go b/releases/sdks/go/pkg/models/operations/getwallet.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getwallet.go rename to releases/sdks/go/pkg/models/operations/getwallet.go diff --git a/libs/clients/go/pkg/models/operations/getwalletsummary.go b/releases/sdks/go/pkg/models/operations/getwalletsummary.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getwalletsummary.go rename to releases/sdks/go/pkg/models/operations/getwalletsummary.go diff --git a/libs/clients/go/pkg/models/operations/getworkflow.go b/releases/sdks/go/pkg/models/operations/getworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/getworkflow.go rename to releases/sdks/go/pkg/models/operations/getworkflow.go diff --git a/libs/clients/go/pkg/models/operations/insertconfig.go b/releases/sdks/go/pkg/models/operations/insertconfig.go similarity index 100% rename from libs/clients/go/pkg/models/operations/insertconfig.go rename to releases/sdks/go/pkg/models/operations/insertconfig.go diff --git a/libs/clients/go/pkg/models/operations/installconnector.go b/releases/sdks/go/pkg/models/operations/installconnector.go similarity index 100% rename from libs/clients/go/pkg/models/operations/installconnector.go rename to releases/sdks/go/pkg/models/operations/installconnector.go diff --git a/libs/clients/go/pkg/models/operations/listaccounts.go b/releases/sdks/go/pkg/models/operations/listaccounts.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listaccounts.go rename to releases/sdks/go/pkg/models/operations/listaccounts.go diff --git a/libs/clients/go/pkg/models/operations/listallconnectors.go b/releases/sdks/go/pkg/models/operations/listallconnectors.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listallconnectors.go rename to releases/sdks/go/pkg/models/operations/listallconnectors.go diff --git a/libs/clients/go/pkg/models/operations/listbalances.go b/releases/sdks/go/pkg/models/operations/listbalances.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listbalances.go rename to releases/sdks/go/pkg/models/operations/listbalances.go diff --git a/libs/clients/go/pkg/models/operations/listbankaccounts.go b/releases/sdks/go/pkg/models/operations/listbankaccounts.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listbankaccounts.go rename to releases/sdks/go/pkg/models/operations/listbankaccounts.go diff --git a/libs/clients/go/pkg/models/operations/listclients.go b/releases/sdks/go/pkg/models/operations/listclients.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listclients.go rename to releases/sdks/go/pkg/models/operations/listclients.go diff --git a/libs/clients/go/pkg/models/operations/listconfigsavailableconnectors.go b/releases/sdks/go/pkg/models/operations/listconfigsavailableconnectors.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listconfigsavailableconnectors.go rename to releases/sdks/go/pkg/models/operations/listconfigsavailableconnectors.go diff --git a/libs/clients/go/pkg/models/operations/listconnectortasks.go b/releases/sdks/go/pkg/models/operations/listconnectortasks.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listconnectortasks.go rename to releases/sdks/go/pkg/models/operations/listconnectortasks.go diff --git a/libs/clients/go/pkg/models/operations/listconnectortasksv1.go b/releases/sdks/go/pkg/models/operations/listconnectortasksv1.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listconnectortasksv1.go rename to releases/sdks/go/pkg/models/operations/listconnectortasksv1.go diff --git a/libs/clients/go/pkg/models/operations/listinstances.go b/releases/sdks/go/pkg/models/operations/listinstances.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listinstances.go rename to releases/sdks/go/pkg/models/operations/listinstances.go diff --git a/libs/clients/go/pkg/models/operations/listlogs.go b/releases/sdks/go/pkg/models/operations/listlogs.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listlogs.go rename to releases/sdks/go/pkg/models/operations/listlogs.go diff --git a/libs/clients/go/pkg/models/operations/listpayments.go b/releases/sdks/go/pkg/models/operations/listpayments.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listpayments.go rename to releases/sdks/go/pkg/models/operations/listpayments.go diff --git a/libs/clients/go/pkg/models/operations/listpolicies.go b/releases/sdks/go/pkg/models/operations/listpolicies.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listpolicies.go rename to releases/sdks/go/pkg/models/operations/listpolicies.go diff --git a/libs/clients/go/pkg/models/operations/listpools.go b/releases/sdks/go/pkg/models/operations/listpools.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listpools.go rename to releases/sdks/go/pkg/models/operations/listpools.go diff --git a/libs/clients/go/pkg/models/operations/listreconciliations.go b/releases/sdks/go/pkg/models/operations/listreconciliations.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listreconciliations.go rename to releases/sdks/go/pkg/models/operations/listreconciliations.go diff --git a/libs/clients/go/pkg/models/operations/listtransactions.go b/releases/sdks/go/pkg/models/operations/listtransactions.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listtransactions.go rename to releases/sdks/go/pkg/models/operations/listtransactions.go diff --git a/libs/clients/go/pkg/models/operations/listtransferinitiations.go b/releases/sdks/go/pkg/models/operations/listtransferinitiations.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listtransferinitiations.go rename to releases/sdks/go/pkg/models/operations/listtransferinitiations.go diff --git a/libs/clients/go/pkg/models/operations/listtriggers.go b/releases/sdks/go/pkg/models/operations/listtriggers.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listtriggers.go rename to releases/sdks/go/pkg/models/operations/listtriggers.go diff --git a/libs/clients/go/pkg/models/operations/listtriggersoccurrences.go b/releases/sdks/go/pkg/models/operations/listtriggersoccurrences.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listtriggersoccurrences.go rename to releases/sdks/go/pkg/models/operations/listtriggersoccurrences.go diff --git a/libs/clients/go/pkg/models/operations/listusers.go b/releases/sdks/go/pkg/models/operations/listusers.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listusers.go rename to releases/sdks/go/pkg/models/operations/listusers.go diff --git a/libs/clients/go/pkg/models/operations/listwallets.go b/releases/sdks/go/pkg/models/operations/listwallets.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listwallets.go rename to releases/sdks/go/pkg/models/operations/listwallets.go diff --git a/libs/clients/go/pkg/models/operations/listworkflows.go b/releases/sdks/go/pkg/models/operations/listworkflows.go similarity index 100% rename from libs/clients/go/pkg/models/operations/listworkflows.go rename to releases/sdks/go/pkg/models/operations/listworkflows.go diff --git a/libs/clients/go/pkg/models/operations/orchestrationgetserverinfo.go b/releases/sdks/go/pkg/models/operations/orchestrationgetserverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/orchestrationgetserverinfo.go rename to releases/sdks/go/pkg/models/operations/orchestrationgetserverinfo.go diff --git a/libs/clients/go/pkg/models/operations/paymentsgetaccount.go b/releases/sdks/go/pkg/models/operations/paymentsgetaccount.go similarity index 100% rename from libs/clients/go/pkg/models/operations/paymentsgetaccount.go rename to releases/sdks/go/pkg/models/operations/paymentsgetaccount.go diff --git a/libs/clients/go/pkg/models/operations/paymentsgetserverinfo.go b/releases/sdks/go/pkg/models/operations/paymentsgetserverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/paymentsgetserverinfo.go rename to releases/sdks/go/pkg/models/operations/paymentsgetserverinfo.go diff --git a/libs/clients/go/pkg/models/operations/paymentslistaccounts.go b/releases/sdks/go/pkg/models/operations/paymentslistaccounts.go similarity index 100% rename from libs/clients/go/pkg/models/operations/paymentslistaccounts.go rename to releases/sdks/go/pkg/models/operations/paymentslistaccounts.go diff --git a/libs/clients/go/pkg/models/operations/readclient.go b/releases/sdks/go/pkg/models/operations/readclient.go similarity index 100% rename from libs/clients/go/pkg/models/operations/readclient.go rename to releases/sdks/go/pkg/models/operations/readclient.go diff --git a/libs/clients/go/pkg/models/operations/readconnectorconfig.go b/releases/sdks/go/pkg/models/operations/readconnectorconfig.go similarity index 100% rename from libs/clients/go/pkg/models/operations/readconnectorconfig.go rename to releases/sdks/go/pkg/models/operations/readconnectorconfig.go diff --git a/libs/clients/go/pkg/models/operations/readconnectorconfigv1.go b/releases/sdks/go/pkg/models/operations/readconnectorconfigv1.go similarity index 100% rename from libs/clients/go/pkg/models/operations/readconnectorconfigv1.go rename to releases/sdks/go/pkg/models/operations/readconnectorconfigv1.go diff --git a/libs/clients/go/pkg/models/operations/readstats.go b/releases/sdks/go/pkg/models/operations/readstats.go similarity index 100% rename from libs/clients/go/pkg/models/operations/readstats.go rename to releases/sdks/go/pkg/models/operations/readstats.go diff --git a/libs/clients/go/pkg/models/operations/readtrigger.go b/releases/sdks/go/pkg/models/operations/readtrigger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/readtrigger.go rename to releases/sdks/go/pkg/models/operations/readtrigger.go diff --git a/libs/clients/go/pkg/models/operations/readuser.go b/releases/sdks/go/pkg/models/operations/readuser.go similarity index 100% rename from libs/clients/go/pkg/models/operations/readuser.go rename to releases/sdks/go/pkg/models/operations/readuser.go diff --git a/libs/clients/go/pkg/models/operations/reconcile.go b/releases/sdks/go/pkg/models/operations/reconcile.go similarity index 100% rename from libs/clients/go/pkg/models/operations/reconcile.go rename to releases/sdks/go/pkg/models/operations/reconcile.go diff --git a/libs/clients/go/pkg/models/operations/reconciliationgetserverinfo.go b/releases/sdks/go/pkg/models/operations/reconciliationgetserverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/reconciliationgetserverinfo.go rename to releases/sdks/go/pkg/models/operations/reconciliationgetserverinfo.go diff --git a/libs/clients/go/pkg/models/operations/removeaccountfrompool.go b/releases/sdks/go/pkg/models/operations/removeaccountfrompool.go similarity index 100% rename from libs/clients/go/pkg/models/operations/removeaccountfrompool.go rename to releases/sdks/go/pkg/models/operations/removeaccountfrompool.go diff --git a/libs/clients/go/pkg/models/operations/resetconnector.go b/releases/sdks/go/pkg/models/operations/resetconnector.go similarity index 100% rename from libs/clients/go/pkg/models/operations/resetconnector.go rename to releases/sdks/go/pkg/models/operations/resetconnector.go diff --git a/libs/clients/go/pkg/models/operations/resetconnectorv1.go b/releases/sdks/go/pkg/models/operations/resetconnectorv1.go similarity index 100% rename from libs/clients/go/pkg/models/operations/resetconnectorv1.go rename to releases/sdks/go/pkg/models/operations/resetconnectorv1.go diff --git a/libs/clients/go/pkg/models/operations/retrytransferinitiation.go b/releases/sdks/go/pkg/models/operations/retrytransferinitiation.go similarity index 100% rename from libs/clients/go/pkg/models/operations/retrytransferinitiation.go rename to releases/sdks/go/pkg/models/operations/retrytransferinitiation.go diff --git a/libs/clients/go/pkg/models/operations/reverttransaction.go b/releases/sdks/go/pkg/models/operations/reverttransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/reverttransaction.go rename to releases/sdks/go/pkg/models/operations/reverttransaction.go diff --git a/libs/clients/go/pkg/models/operations/runscript.go b/releases/sdks/go/pkg/models/operations/runscript.go similarity index 100% rename from libs/clients/go/pkg/models/operations/runscript.go rename to releases/sdks/go/pkg/models/operations/runscript.go diff --git a/libs/clients/go/pkg/models/operations/runworkflow.go b/releases/sdks/go/pkg/models/operations/runworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/runworkflow.go rename to releases/sdks/go/pkg/models/operations/runworkflow.go diff --git a/libs/clients/go/pkg/models/operations/search.go b/releases/sdks/go/pkg/models/operations/search.go similarity index 100% rename from libs/clients/go/pkg/models/operations/search.go rename to releases/sdks/go/pkg/models/operations/search.go diff --git a/libs/clients/go/pkg/models/operations/searchgetserverinfo.go b/releases/sdks/go/pkg/models/operations/searchgetserverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/searchgetserverinfo.go rename to releases/sdks/go/pkg/models/operations/searchgetserverinfo.go diff --git a/libs/clients/go/pkg/models/operations/sendevent.go b/releases/sdks/go/pkg/models/operations/sendevent.go similarity index 100% rename from libs/clients/go/pkg/models/operations/sendevent.go rename to releases/sdks/go/pkg/models/operations/sendevent.go diff --git a/libs/clients/go/pkg/models/operations/testconfig.go b/releases/sdks/go/pkg/models/operations/testconfig.go similarity index 100% rename from libs/clients/go/pkg/models/operations/testconfig.go rename to releases/sdks/go/pkg/models/operations/testconfig.go diff --git a/libs/clients/go/pkg/models/operations/testtrigger.go b/releases/sdks/go/pkg/models/operations/testtrigger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/testtrigger.go rename to releases/sdks/go/pkg/models/operations/testtrigger.go diff --git a/libs/clients/go/pkg/models/operations/udpatetransferinitiationstatus.go b/releases/sdks/go/pkg/models/operations/udpatetransferinitiationstatus.go similarity index 100% rename from libs/clients/go/pkg/models/operations/udpatetransferinitiationstatus.go rename to releases/sdks/go/pkg/models/operations/udpatetransferinitiationstatus.go diff --git a/libs/clients/go/pkg/models/operations/uninstallconnector.go b/releases/sdks/go/pkg/models/operations/uninstallconnector.go similarity index 100% rename from libs/clients/go/pkg/models/operations/uninstallconnector.go rename to releases/sdks/go/pkg/models/operations/uninstallconnector.go diff --git a/libs/clients/go/pkg/models/operations/uninstallconnectorv1.go b/releases/sdks/go/pkg/models/operations/uninstallconnectorv1.go similarity index 100% rename from libs/clients/go/pkg/models/operations/uninstallconnectorv1.go rename to releases/sdks/go/pkg/models/operations/uninstallconnectorv1.go diff --git a/libs/clients/go/pkg/models/operations/updateclient.go b/releases/sdks/go/pkg/models/operations/updateclient.go similarity index 100% rename from libs/clients/go/pkg/models/operations/updateclient.go rename to releases/sdks/go/pkg/models/operations/updateclient.go diff --git a/libs/clients/go/pkg/models/operations/updateconnectorconfigv1.go b/releases/sdks/go/pkg/models/operations/updateconnectorconfigv1.go similarity index 100% rename from libs/clients/go/pkg/models/operations/updateconnectorconfigv1.go rename to releases/sdks/go/pkg/models/operations/updateconnectorconfigv1.go diff --git a/libs/clients/go/pkg/models/operations/updatemapping.go b/releases/sdks/go/pkg/models/operations/updatemapping.go similarity index 100% rename from libs/clients/go/pkg/models/operations/updatemapping.go rename to releases/sdks/go/pkg/models/operations/updatemapping.go diff --git a/libs/clients/go/pkg/models/operations/updatemetadata.go b/releases/sdks/go/pkg/models/operations/updatemetadata.go similarity index 100% rename from libs/clients/go/pkg/models/operations/updatemetadata.go rename to releases/sdks/go/pkg/models/operations/updatemetadata.go diff --git a/libs/clients/go/pkg/models/operations/updatewallet.go b/releases/sdks/go/pkg/models/operations/updatewallet.go similarity index 100% rename from libs/clients/go/pkg/models/operations/updatewallet.go rename to releases/sdks/go/pkg/models/operations/updatewallet.go diff --git a/libs/clients/go/pkg/models/operations/v2addmetadataontransaction.go b/releases/sdks/go/pkg/models/operations/v2addmetadataontransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2addmetadataontransaction.go rename to releases/sdks/go/pkg/models/operations/v2addmetadataontransaction.go diff --git a/libs/clients/go/pkg/models/operations/v2addmetadatatoaccount.go b/releases/sdks/go/pkg/models/operations/v2addmetadatatoaccount.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2addmetadatatoaccount.go rename to releases/sdks/go/pkg/models/operations/v2addmetadatatoaccount.go diff --git a/libs/clients/go/pkg/models/operations/v2cancelevent.go b/releases/sdks/go/pkg/models/operations/v2cancelevent.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2cancelevent.go rename to releases/sdks/go/pkg/models/operations/v2cancelevent.go diff --git a/libs/clients/go/pkg/models/operations/v2countaccounts.go b/releases/sdks/go/pkg/models/operations/v2countaccounts.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2countaccounts.go rename to releases/sdks/go/pkg/models/operations/v2countaccounts.go diff --git a/libs/clients/go/pkg/models/operations/v2counttransactions.go b/releases/sdks/go/pkg/models/operations/v2counttransactions.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2counttransactions.go rename to releases/sdks/go/pkg/models/operations/v2counttransactions.go diff --git a/libs/clients/go/pkg/models/operations/v2createbulk.go b/releases/sdks/go/pkg/models/operations/v2createbulk.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2createbulk.go rename to releases/sdks/go/pkg/models/operations/v2createbulk.go diff --git a/libs/clients/go/pkg/models/operations/v2createledger.go b/releases/sdks/go/pkg/models/operations/v2createledger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2createledger.go rename to releases/sdks/go/pkg/models/operations/v2createledger.go diff --git a/libs/clients/go/pkg/models/operations/v2createtransaction.go b/releases/sdks/go/pkg/models/operations/v2createtransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2createtransaction.go rename to releases/sdks/go/pkg/models/operations/v2createtransaction.go diff --git a/libs/clients/go/pkg/models/operations/v2createtrigger.go b/releases/sdks/go/pkg/models/operations/v2createtrigger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2createtrigger.go rename to releases/sdks/go/pkg/models/operations/v2createtrigger.go diff --git a/libs/clients/go/pkg/models/operations/v2createworkflow.go b/releases/sdks/go/pkg/models/operations/v2createworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2createworkflow.go rename to releases/sdks/go/pkg/models/operations/v2createworkflow.go diff --git a/libs/clients/go/pkg/models/operations/v2deleteaccountmetadata.go b/releases/sdks/go/pkg/models/operations/v2deleteaccountmetadata.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2deleteaccountmetadata.go rename to releases/sdks/go/pkg/models/operations/v2deleteaccountmetadata.go diff --git a/libs/clients/go/pkg/models/operations/v2deletetransactionmetadata.go b/releases/sdks/go/pkg/models/operations/v2deletetransactionmetadata.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2deletetransactionmetadata.go rename to releases/sdks/go/pkg/models/operations/v2deletetransactionmetadata.go diff --git a/libs/clients/go/pkg/models/operations/v2deletetrigger.go b/releases/sdks/go/pkg/models/operations/v2deletetrigger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2deletetrigger.go rename to releases/sdks/go/pkg/models/operations/v2deletetrigger.go diff --git a/libs/clients/go/pkg/models/operations/v2deleteworkflow.go b/releases/sdks/go/pkg/models/operations/v2deleteworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2deleteworkflow.go rename to releases/sdks/go/pkg/models/operations/v2deleteworkflow.go diff --git a/libs/clients/go/pkg/models/operations/v2getaccount.go b/releases/sdks/go/pkg/models/operations/v2getaccount.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getaccount.go rename to releases/sdks/go/pkg/models/operations/v2getaccount.go diff --git a/libs/clients/go/pkg/models/operations/v2getbalancesaggregated.go b/releases/sdks/go/pkg/models/operations/v2getbalancesaggregated.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getbalancesaggregated.go rename to releases/sdks/go/pkg/models/operations/v2getbalancesaggregated.go diff --git a/libs/clients/go/pkg/models/operations/v2getinfo.go b/releases/sdks/go/pkg/models/operations/v2getinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getinfo.go rename to releases/sdks/go/pkg/models/operations/v2getinfo.go diff --git a/libs/clients/go/pkg/models/operations/v2getinstance.go b/releases/sdks/go/pkg/models/operations/v2getinstance.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getinstance.go rename to releases/sdks/go/pkg/models/operations/v2getinstance.go diff --git a/libs/clients/go/pkg/models/operations/v2getinstancehistory.go b/releases/sdks/go/pkg/models/operations/v2getinstancehistory.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getinstancehistory.go rename to releases/sdks/go/pkg/models/operations/v2getinstancehistory.go diff --git a/libs/clients/go/pkg/models/operations/v2getinstancestagehistory.go b/releases/sdks/go/pkg/models/operations/v2getinstancestagehistory.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getinstancestagehistory.go rename to releases/sdks/go/pkg/models/operations/v2getinstancestagehistory.go diff --git a/libs/clients/go/pkg/models/operations/v2getledger.go b/releases/sdks/go/pkg/models/operations/v2getledger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getledger.go rename to releases/sdks/go/pkg/models/operations/v2getledger.go diff --git a/libs/clients/go/pkg/models/operations/v2getledgerinfo.go b/releases/sdks/go/pkg/models/operations/v2getledgerinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getledgerinfo.go rename to releases/sdks/go/pkg/models/operations/v2getledgerinfo.go diff --git a/libs/clients/go/pkg/models/operations/v2getserverinfo.go b/releases/sdks/go/pkg/models/operations/v2getserverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getserverinfo.go rename to releases/sdks/go/pkg/models/operations/v2getserverinfo.go diff --git a/libs/clients/go/pkg/models/operations/v2gettransaction.go b/releases/sdks/go/pkg/models/operations/v2gettransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2gettransaction.go rename to releases/sdks/go/pkg/models/operations/v2gettransaction.go diff --git a/libs/clients/go/pkg/models/operations/v2getworkflow.go b/releases/sdks/go/pkg/models/operations/v2getworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2getworkflow.go rename to releases/sdks/go/pkg/models/operations/v2getworkflow.go diff --git a/libs/clients/go/pkg/models/operations/v2listaccounts.go b/releases/sdks/go/pkg/models/operations/v2listaccounts.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listaccounts.go rename to releases/sdks/go/pkg/models/operations/v2listaccounts.go diff --git a/libs/clients/go/pkg/models/operations/v2listinstances.go b/releases/sdks/go/pkg/models/operations/v2listinstances.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listinstances.go rename to releases/sdks/go/pkg/models/operations/v2listinstances.go diff --git a/libs/clients/go/pkg/models/operations/v2listledgers.go b/releases/sdks/go/pkg/models/operations/v2listledgers.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listledgers.go rename to releases/sdks/go/pkg/models/operations/v2listledgers.go diff --git a/libs/clients/go/pkg/models/operations/v2listlogs.go b/releases/sdks/go/pkg/models/operations/v2listlogs.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listlogs.go rename to releases/sdks/go/pkg/models/operations/v2listlogs.go diff --git a/libs/clients/go/pkg/models/operations/v2listtransactions.go b/releases/sdks/go/pkg/models/operations/v2listtransactions.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listtransactions.go rename to releases/sdks/go/pkg/models/operations/v2listtransactions.go diff --git a/libs/clients/go/pkg/models/operations/v2listtriggers.go b/releases/sdks/go/pkg/models/operations/v2listtriggers.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listtriggers.go rename to releases/sdks/go/pkg/models/operations/v2listtriggers.go diff --git a/libs/clients/go/pkg/models/operations/v2listtriggersoccurrences.go b/releases/sdks/go/pkg/models/operations/v2listtriggersoccurrences.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listtriggersoccurrences.go rename to releases/sdks/go/pkg/models/operations/v2listtriggersoccurrences.go diff --git a/libs/clients/go/pkg/models/operations/v2listworkflows.go b/releases/sdks/go/pkg/models/operations/v2listworkflows.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2listworkflows.go rename to releases/sdks/go/pkg/models/operations/v2listworkflows.go diff --git a/libs/clients/go/pkg/models/operations/v2readstats.go b/releases/sdks/go/pkg/models/operations/v2readstats.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2readstats.go rename to releases/sdks/go/pkg/models/operations/v2readstats.go diff --git a/libs/clients/go/pkg/models/operations/v2readtrigger.go b/releases/sdks/go/pkg/models/operations/v2readtrigger.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2readtrigger.go rename to releases/sdks/go/pkg/models/operations/v2readtrigger.go diff --git a/libs/clients/go/pkg/models/operations/v2reverttransaction.go b/releases/sdks/go/pkg/models/operations/v2reverttransaction.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2reverttransaction.go rename to releases/sdks/go/pkg/models/operations/v2reverttransaction.go diff --git a/libs/clients/go/pkg/models/operations/v2runworkflow.go b/releases/sdks/go/pkg/models/operations/v2runworkflow.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2runworkflow.go rename to releases/sdks/go/pkg/models/operations/v2runworkflow.go diff --git a/libs/clients/go/pkg/models/operations/v2sendevent.go b/releases/sdks/go/pkg/models/operations/v2sendevent.go similarity index 100% rename from libs/clients/go/pkg/models/operations/v2sendevent.go rename to releases/sdks/go/pkg/models/operations/v2sendevent.go diff --git a/libs/clients/go/pkg/models/operations/voidhold.go b/releases/sdks/go/pkg/models/operations/voidhold.go similarity index 100% rename from libs/clients/go/pkg/models/operations/voidhold.go rename to releases/sdks/go/pkg/models/operations/voidhold.go diff --git a/libs/clients/go/pkg/models/operations/walletsgetserverinfo.go b/releases/sdks/go/pkg/models/operations/walletsgetserverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/operations/walletsgetserverinfo.go rename to releases/sdks/go/pkg/models/operations/walletsgetserverinfo.go diff --git a/libs/clients/go/pkg/models/sdkerrors/errorresponse.go b/releases/sdks/go/pkg/models/sdkerrors/errorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/errorresponse.go rename to releases/sdks/go/pkg/models/sdkerrors/errorresponse.go diff --git a/libs/clients/go/pkg/models/sdkerrors/errorsenum.go b/releases/sdks/go/pkg/models/sdkerrors/errorsenum.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/errorsenum.go rename to releases/sdks/go/pkg/models/sdkerrors/errorsenum.go diff --git a/libs/clients/go/pkg/models/sdkerrors/sdkerror.go b/releases/sdks/go/pkg/models/sdkerrors/sdkerror.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/sdkerror.go rename to releases/sdks/go/pkg/models/sdkerrors/sdkerror.go diff --git a/libs/clients/go/pkg/models/sdkerrors/v2error.go b/releases/sdks/go/pkg/models/sdkerrors/v2error.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/v2error.go rename to releases/sdks/go/pkg/models/sdkerrors/v2error.go diff --git a/libs/clients/go/pkg/models/sdkerrors/v2errorresponse.go b/releases/sdks/go/pkg/models/sdkerrors/v2errorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/v2errorresponse.go rename to releases/sdks/go/pkg/models/sdkerrors/v2errorresponse.go diff --git a/libs/clients/go/pkg/models/sdkerrors/v2errorsenum.go b/releases/sdks/go/pkg/models/sdkerrors/v2errorsenum.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/v2errorsenum.go rename to releases/sdks/go/pkg/models/sdkerrors/v2errorsenum.go diff --git a/libs/clients/go/pkg/models/sdkerrors/webhookserrorresponse.go b/releases/sdks/go/pkg/models/sdkerrors/webhookserrorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/webhookserrorresponse.go rename to releases/sdks/go/pkg/models/sdkerrors/webhookserrorresponse.go diff --git a/libs/clients/go/pkg/models/sdkerrors/webhookserrorsenum.go b/releases/sdks/go/pkg/models/sdkerrors/webhookserrorsenum.go similarity index 100% rename from libs/clients/go/pkg/models/sdkerrors/webhookserrorsenum.go rename to releases/sdks/go/pkg/models/sdkerrors/webhookserrorsenum.go diff --git a/libs/clients/go/pkg/models/shared/account.go b/releases/sdks/go/pkg/models/shared/account.go similarity index 100% rename from libs/clients/go/pkg/models/shared/account.go rename to releases/sdks/go/pkg/models/shared/account.go diff --git a/libs/clients/go/pkg/models/shared/accountbalance.go b/releases/sdks/go/pkg/models/shared/accountbalance.go similarity index 100% rename from libs/clients/go/pkg/models/shared/accountbalance.go rename to releases/sdks/go/pkg/models/shared/accountbalance.go diff --git a/libs/clients/go/pkg/models/shared/accountresponse.go b/releases/sdks/go/pkg/models/shared/accountresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/accountresponse.go rename to releases/sdks/go/pkg/models/shared/accountresponse.go diff --git a/libs/clients/go/pkg/models/shared/accountscursor.go b/releases/sdks/go/pkg/models/shared/accountscursor.go similarity index 100% rename from libs/clients/go/pkg/models/shared/accountscursor.go rename to releases/sdks/go/pkg/models/shared/accountscursor.go diff --git a/libs/clients/go/pkg/models/shared/accountscursorresponse.go b/releases/sdks/go/pkg/models/shared/accountscursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/accountscursorresponse.go rename to releases/sdks/go/pkg/models/shared/accountscursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/accountwithvolumesandbalances.go b/releases/sdks/go/pkg/models/shared/accountwithvolumesandbalances.go similarity index 100% rename from libs/clients/go/pkg/models/shared/accountwithvolumesandbalances.go rename to releases/sdks/go/pkg/models/shared/accountwithvolumesandbalances.go diff --git a/libs/clients/go/pkg/models/shared/activityconfirmhold.go b/releases/sdks/go/pkg/models/shared/activityconfirmhold.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activityconfirmhold.go rename to releases/sdks/go/pkg/models/shared/activityconfirmhold.go diff --git a/libs/clients/go/pkg/models/shared/activitycreatetransaction.go b/releases/sdks/go/pkg/models/shared/activitycreatetransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitycreatetransaction.go rename to releases/sdks/go/pkg/models/shared/activitycreatetransaction.go diff --git a/libs/clients/go/pkg/models/shared/activitycreatetransactionoutput.go b/releases/sdks/go/pkg/models/shared/activitycreatetransactionoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitycreatetransactionoutput.go rename to releases/sdks/go/pkg/models/shared/activitycreatetransactionoutput.go diff --git a/libs/clients/go/pkg/models/shared/activitycreditwallet.go b/releases/sdks/go/pkg/models/shared/activitycreditwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitycreditwallet.go rename to releases/sdks/go/pkg/models/shared/activitycreditwallet.go diff --git a/libs/clients/go/pkg/models/shared/activitydebitwallet.go b/releases/sdks/go/pkg/models/shared/activitydebitwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitydebitwallet.go rename to releases/sdks/go/pkg/models/shared/activitydebitwallet.go diff --git a/libs/clients/go/pkg/models/shared/activitydebitwalletoutput.go b/releases/sdks/go/pkg/models/shared/activitydebitwalletoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitydebitwalletoutput.go rename to releases/sdks/go/pkg/models/shared/activitydebitwalletoutput.go diff --git a/libs/clients/go/pkg/models/shared/activitygetaccount.go b/releases/sdks/go/pkg/models/shared/activitygetaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitygetaccount.go rename to releases/sdks/go/pkg/models/shared/activitygetaccount.go diff --git a/libs/clients/go/pkg/models/shared/activitygetaccountoutput.go b/releases/sdks/go/pkg/models/shared/activitygetaccountoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitygetaccountoutput.go rename to releases/sdks/go/pkg/models/shared/activitygetaccountoutput.go diff --git a/libs/clients/go/pkg/models/shared/activitygetpayment.go b/releases/sdks/go/pkg/models/shared/activitygetpayment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitygetpayment.go rename to releases/sdks/go/pkg/models/shared/activitygetpayment.go diff --git a/libs/clients/go/pkg/models/shared/activitygetpaymentoutput.go b/releases/sdks/go/pkg/models/shared/activitygetpaymentoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitygetpaymentoutput.go rename to releases/sdks/go/pkg/models/shared/activitygetpaymentoutput.go diff --git a/libs/clients/go/pkg/models/shared/activitygetwallet.go b/releases/sdks/go/pkg/models/shared/activitygetwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitygetwallet.go rename to releases/sdks/go/pkg/models/shared/activitygetwallet.go diff --git a/libs/clients/go/pkg/models/shared/activitygetwalletoutput.go b/releases/sdks/go/pkg/models/shared/activitygetwalletoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitygetwalletoutput.go rename to releases/sdks/go/pkg/models/shared/activitygetwalletoutput.go diff --git a/libs/clients/go/pkg/models/shared/activitylistwallets.go b/releases/sdks/go/pkg/models/shared/activitylistwallets.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitylistwallets.go rename to releases/sdks/go/pkg/models/shared/activitylistwallets.go diff --git a/libs/clients/go/pkg/models/shared/activityreverttransaction.go b/releases/sdks/go/pkg/models/shared/activityreverttransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activityreverttransaction.go rename to releases/sdks/go/pkg/models/shared/activityreverttransaction.go diff --git a/libs/clients/go/pkg/models/shared/activityreverttransactionoutput.go b/releases/sdks/go/pkg/models/shared/activityreverttransactionoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activityreverttransactionoutput.go rename to releases/sdks/go/pkg/models/shared/activityreverttransactionoutput.go diff --git a/libs/clients/go/pkg/models/shared/activitystripetransfer.go b/releases/sdks/go/pkg/models/shared/activitystripetransfer.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activitystripetransfer.go rename to releases/sdks/go/pkg/models/shared/activitystripetransfer.go diff --git a/libs/clients/go/pkg/models/shared/activityvoidhold.go b/releases/sdks/go/pkg/models/shared/activityvoidhold.go similarity index 100% rename from libs/clients/go/pkg/models/shared/activityvoidhold.go rename to releases/sdks/go/pkg/models/shared/activityvoidhold.go diff --git a/libs/clients/go/pkg/models/shared/addaccounttopoolrequest.go b/releases/sdks/go/pkg/models/shared/addaccounttopoolrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/addaccounttopoolrequest.go rename to releases/sdks/go/pkg/models/shared/addaccounttopoolrequest.go diff --git a/libs/clients/go/pkg/models/shared/adyenconfig.go b/releases/sdks/go/pkg/models/shared/adyenconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/adyenconfig.go rename to releases/sdks/go/pkg/models/shared/adyenconfig.go diff --git a/libs/clients/go/pkg/models/shared/aggregatebalancesresponse.go b/releases/sdks/go/pkg/models/shared/aggregatebalancesresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/aggregatebalancesresponse.go rename to releases/sdks/go/pkg/models/shared/aggregatebalancesresponse.go diff --git a/libs/clients/go/pkg/models/shared/assetholder.go b/releases/sdks/go/pkg/models/shared/assetholder.go similarity index 100% rename from libs/clients/go/pkg/models/shared/assetholder.go rename to releases/sdks/go/pkg/models/shared/assetholder.go diff --git a/libs/clients/go/pkg/models/shared/atlarconfig.go b/releases/sdks/go/pkg/models/shared/atlarconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/atlarconfig.go rename to releases/sdks/go/pkg/models/shared/atlarconfig.go diff --git a/libs/clients/go/pkg/models/shared/attempt.go b/releases/sdks/go/pkg/models/shared/attempt.go similarity index 100% rename from libs/clients/go/pkg/models/shared/attempt.go rename to releases/sdks/go/pkg/models/shared/attempt.go diff --git a/libs/clients/go/pkg/models/shared/attemptresponse.go b/releases/sdks/go/pkg/models/shared/attemptresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/attemptresponse.go rename to releases/sdks/go/pkg/models/shared/attemptresponse.go diff --git a/libs/clients/go/pkg/models/shared/balance.go b/releases/sdks/go/pkg/models/shared/balance.go similarity index 100% rename from libs/clients/go/pkg/models/shared/balance.go rename to releases/sdks/go/pkg/models/shared/balance.go diff --git a/libs/clients/go/pkg/models/shared/balancescursor.go b/releases/sdks/go/pkg/models/shared/balancescursor.go similarity index 100% rename from libs/clients/go/pkg/models/shared/balancescursor.go rename to releases/sdks/go/pkg/models/shared/balancescursor.go diff --git a/libs/clients/go/pkg/models/shared/balancescursorresponse.go b/releases/sdks/go/pkg/models/shared/balancescursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/balancescursorresponse.go rename to releases/sdks/go/pkg/models/shared/balancescursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/balancewithassets.go b/releases/sdks/go/pkg/models/shared/balancewithassets.go similarity index 100% rename from libs/clients/go/pkg/models/shared/balancewithassets.go rename to releases/sdks/go/pkg/models/shared/balancewithassets.go diff --git a/libs/clients/go/pkg/models/shared/bankaccount.go b/releases/sdks/go/pkg/models/shared/bankaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/bankaccount.go rename to releases/sdks/go/pkg/models/shared/bankaccount.go diff --git a/libs/clients/go/pkg/models/shared/bankaccountrequest.go b/releases/sdks/go/pkg/models/shared/bankaccountrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/bankaccountrequest.go rename to releases/sdks/go/pkg/models/shared/bankaccountrequest.go diff --git a/libs/clients/go/pkg/models/shared/bankaccountresponse.go b/releases/sdks/go/pkg/models/shared/bankaccountresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/bankaccountresponse.go rename to releases/sdks/go/pkg/models/shared/bankaccountresponse.go diff --git a/libs/clients/go/pkg/models/shared/bankaccountscursor.go b/releases/sdks/go/pkg/models/shared/bankaccountscursor.go similarity index 100% rename from libs/clients/go/pkg/models/shared/bankaccountscursor.go rename to releases/sdks/go/pkg/models/shared/bankaccountscursor.go diff --git a/libs/clients/go/pkg/models/shared/bankingcircleconfig.go b/releases/sdks/go/pkg/models/shared/bankingcircleconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/bankingcircleconfig.go rename to releases/sdks/go/pkg/models/shared/bankingcircleconfig.go diff --git a/libs/clients/go/pkg/models/shared/client.go b/releases/sdks/go/pkg/models/shared/client.go similarity index 100% rename from libs/clients/go/pkg/models/shared/client.go rename to releases/sdks/go/pkg/models/shared/client.go diff --git a/libs/clients/go/pkg/models/shared/clientsecret.go b/releases/sdks/go/pkg/models/shared/clientsecret.go similarity index 100% rename from libs/clients/go/pkg/models/shared/clientsecret.go rename to releases/sdks/go/pkg/models/shared/clientsecret.go diff --git a/libs/clients/go/pkg/models/shared/config.go b/releases/sdks/go/pkg/models/shared/config.go similarity index 100% rename from libs/clients/go/pkg/models/shared/config.go rename to releases/sdks/go/pkg/models/shared/config.go diff --git a/libs/clients/go/pkg/models/shared/configchangesecret.go b/releases/sdks/go/pkg/models/shared/configchangesecret.go similarity index 100% rename from libs/clients/go/pkg/models/shared/configchangesecret.go rename to releases/sdks/go/pkg/models/shared/configchangesecret.go diff --git a/libs/clients/go/pkg/models/shared/configinfo.go b/releases/sdks/go/pkg/models/shared/configinfo.go similarity index 100% rename from libs/clients/go/pkg/models/shared/configinfo.go rename to releases/sdks/go/pkg/models/shared/configinfo.go diff --git a/libs/clients/go/pkg/models/shared/configinforesponse.go b/releases/sdks/go/pkg/models/shared/configinforesponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/configinforesponse.go rename to releases/sdks/go/pkg/models/shared/configinforesponse.go diff --git a/libs/clients/go/pkg/models/shared/configresponse.go b/releases/sdks/go/pkg/models/shared/configresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/configresponse.go rename to releases/sdks/go/pkg/models/shared/configresponse.go diff --git a/libs/clients/go/pkg/models/shared/configsresponse.go b/releases/sdks/go/pkg/models/shared/configsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/configsresponse.go rename to releases/sdks/go/pkg/models/shared/configsresponse.go diff --git a/libs/clients/go/pkg/models/shared/configuser.go b/releases/sdks/go/pkg/models/shared/configuser.go similarity index 100% rename from libs/clients/go/pkg/models/shared/configuser.go rename to releases/sdks/go/pkg/models/shared/configuser.go diff --git a/libs/clients/go/pkg/models/shared/confirmholdrequest.go b/releases/sdks/go/pkg/models/shared/confirmholdrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/confirmholdrequest.go rename to releases/sdks/go/pkg/models/shared/confirmholdrequest.go diff --git a/libs/clients/go/pkg/models/shared/connector.go b/releases/sdks/go/pkg/models/shared/connector.go similarity index 100% rename from libs/clients/go/pkg/models/shared/connector.go rename to releases/sdks/go/pkg/models/shared/connector.go diff --git a/libs/clients/go/pkg/models/shared/connectorconfig.go b/releases/sdks/go/pkg/models/shared/connectorconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/connectorconfig.go rename to releases/sdks/go/pkg/models/shared/connectorconfig.go diff --git a/libs/clients/go/pkg/models/shared/connectorconfigresponse.go b/releases/sdks/go/pkg/models/shared/connectorconfigresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/connectorconfigresponse.go rename to releases/sdks/go/pkg/models/shared/connectorconfigresponse.go diff --git a/libs/clients/go/pkg/models/shared/connectorresponse.go b/releases/sdks/go/pkg/models/shared/connectorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/connectorresponse.go rename to releases/sdks/go/pkg/models/shared/connectorresponse.go diff --git a/libs/clients/go/pkg/models/shared/connectorsconfigsresponse.go b/releases/sdks/go/pkg/models/shared/connectorsconfigsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/connectorsconfigsresponse.go rename to releases/sdks/go/pkg/models/shared/connectorsconfigsresponse.go diff --git a/libs/clients/go/pkg/models/shared/connectorsresponse.go b/releases/sdks/go/pkg/models/shared/connectorsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/connectorsresponse.go rename to releases/sdks/go/pkg/models/shared/connectorsresponse.go diff --git a/libs/clients/go/pkg/models/shared/contract.go b/releases/sdks/go/pkg/models/shared/contract.go similarity index 100% rename from libs/clients/go/pkg/models/shared/contract.go rename to releases/sdks/go/pkg/models/shared/contract.go diff --git a/libs/clients/go/pkg/models/shared/createbalancerequest.go b/releases/sdks/go/pkg/models/shared/createbalancerequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createbalancerequest.go rename to releases/sdks/go/pkg/models/shared/createbalancerequest.go diff --git a/libs/clients/go/pkg/models/shared/createbalanceresponse.go b/releases/sdks/go/pkg/models/shared/createbalanceresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createbalanceresponse.go rename to releases/sdks/go/pkg/models/shared/createbalanceresponse.go diff --git a/libs/clients/go/pkg/models/shared/createclientrequest.go b/releases/sdks/go/pkg/models/shared/createclientrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createclientrequest.go rename to releases/sdks/go/pkg/models/shared/createclientrequest.go diff --git a/libs/clients/go/pkg/models/shared/createclientresponse.go b/releases/sdks/go/pkg/models/shared/createclientresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createclientresponse.go rename to releases/sdks/go/pkg/models/shared/createclientresponse.go diff --git a/libs/clients/go/pkg/models/shared/createsecretrequest.go b/releases/sdks/go/pkg/models/shared/createsecretrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createsecretrequest.go rename to releases/sdks/go/pkg/models/shared/createsecretrequest.go diff --git a/libs/clients/go/pkg/models/shared/createsecretresponse.go b/releases/sdks/go/pkg/models/shared/createsecretresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createsecretresponse.go rename to releases/sdks/go/pkg/models/shared/createsecretresponse.go diff --git a/libs/clients/go/pkg/models/shared/createtriggerresponse.go b/releases/sdks/go/pkg/models/shared/createtriggerresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createtriggerresponse.go rename to releases/sdks/go/pkg/models/shared/createtriggerresponse.go diff --git a/libs/clients/go/pkg/models/shared/createwalletrequest.go b/releases/sdks/go/pkg/models/shared/createwalletrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createwalletrequest.go rename to releases/sdks/go/pkg/models/shared/createwalletrequest.go diff --git a/libs/clients/go/pkg/models/shared/createwalletresponse.go b/releases/sdks/go/pkg/models/shared/createwalletresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createwalletresponse.go rename to releases/sdks/go/pkg/models/shared/createwalletresponse.go diff --git a/libs/clients/go/pkg/models/shared/createworkflowrequest.go b/releases/sdks/go/pkg/models/shared/createworkflowrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createworkflowrequest.go rename to releases/sdks/go/pkg/models/shared/createworkflowrequest.go diff --git a/libs/clients/go/pkg/models/shared/createworkflowresponse.go b/releases/sdks/go/pkg/models/shared/createworkflowresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/createworkflowresponse.go rename to releases/sdks/go/pkg/models/shared/createworkflowresponse.go diff --git a/libs/clients/go/pkg/models/shared/creditwalletrequest.go b/releases/sdks/go/pkg/models/shared/creditwalletrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/creditwalletrequest.go rename to releases/sdks/go/pkg/models/shared/creditwalletrequest.go diff --git a/libs/clients/go/pkg/models/shared/currencycloudconfig.go b/releases/sdks/go/pkg/models/shared/currencycloudconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/currencycloudconfig.go rename to releases/sdks/go/pkg/models/shared/currencycloudconfig.go diff --git a/libs/clients/go/pkg/models/shared/debitwalletrequest.go b/releases/sdks/go/pkg/models/shared/debitwalletrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/debitwalletrequest.go rename to releases/sdks/go/pkg/models/shared/debitwalletrequest.go diff --git a/libs/clients/go/pkg/models/shared/debitwalletresponse.go b/releases/sdks/go/pkg/models/shared/debitwalletresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/debitwalletresponse.go rename to releases/sdks/go/pkg/models/shared/debitwalletresponse.go diff --git a/libs/clients/go/pkg/models/shared/dummypayconfig.go b/releases/sdks/go/pkg/models/shared/dummypayconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/dummypayconfig.go rename to releases/sdks/go/pkg/models/shared/dummypayconfig.go diff --git a/libs/clients/go/pkg/models/shared/error.go b/releases/sdks/go/pkg/models/shared/error.go similarity index 100% rename from libs/clients/go/pkg/models/shared/error.go rename to releases/sdks/go/pkg/models/shared/error.go diff --git a/libs/clients/go/pkg/models/shared/errorresponse.go b/releases/sdks/go/pkg/models/shared/errorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/errorresponse.go rename to releases/sdks/go/pkg/models/shared/errorresponse.go diff --git a/libs/clients/go/pkg/models/shared/errorsenum.go b/releases/sdks/go/pkg/models/shared/errorsenum.go similarity index 100% rename from libs/clients/go/pkg/models/shared/errorsenum.go rename to releases/sdks/go/pkg/models/shared/errorsenum.go diff --git a/libs/clients/go/pkg/models/shared/expandeddebithold.go b/releases/sdks/go/pkg/models/shared/expandeddebithold.go similarity index 100% rename from libs/clients/go/pkg/models/shared/expandeddebithold.go rename to releases/sdks/go/pkg/models/shared/expandeddebithold.go diff --git a/libs/clients/go/pkg/models/shared/getbalanceresponse.go b/releases/sdks/go/pkg/models/shared/getbalanceresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getbalanceresponse.go rename to releases/sdks/go/pkg/models/shared/getbalanceresponse.go diff --git a/libs/clients/go/pkg/models/shared/getholdresponse.go b/releases/sdks/go/pkg/models/shared/getholdresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getholdresponse.go rename to releases/sdks/go/pkg/models/shared/getholdresponse.go diff --git a/libs/clients/go/pkg/models/shared/getholdsresponse.go b/releases/sdks/go/pkg/models/shared/getholdsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getholdsresponse.go rename to releases/sdks/go/pkg/models/shared/getholdsresponse.go diff --git a/libs/clients/go/pkg/models/shared/gettransactionsresponse.go b/releases/sdks/go/pkg/models/shared/gettransactionsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/gettransactionsresponse.go rename to releases/sdks/go/pkg/models/shared/gettransactionsresponse.go diff --git a/libs/clients/go/pkg/models/shared/getversionsresponse.go b/releases/sdks/go/pkg/models/shared/getversionsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getversionsresponse.go rename to releases/sdks/go/pkg/models/shared/getversionsresponse.go diff --git a/libs/clients/go/pkg/models/shared/getwalletresponse.go b/releases/sdks/go/pkg/models/shared/getwalletresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getwalletresponse.go rename to releases/sdks/go/pkg/models/shared/getwalletresponse.go diff --git a/libs/clients/go/pkg/models/shared/getwalletsummaryresponse.go b/releases/sdks/go/pkg/models/shared/getwalletsummaryresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getwalletsummaryresponse.go rename to releases/sdks/go/pkg/models/shared/getwalletsummaryresponse.go diff --git a/libs/clients/go/pkg/models/shared/getworkflowinstancehistoryresponse.go b/releases/sdks/go/pkg/models/shared/getworkflowinstancehistoryresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getworkflowinstancehistoryresponse.go rename to releases/sdks/go/pkg/models/shared/getworkflowinstancehistoryresponse.go diff --git a/libs/clients/go/pkg/models/shared/getworkflowinstancehistorystageresponse.go b/releases/sdks/go/pkg/models/shared/getworkflowinstancehistorystageresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getworkflowinstancehistorystageresponse.go rename to releases/sdks/go/pkg/models/shared/getworkflowinstancehistorystageresponse.go diff --git a/libs/clients/go/pkg/models/shared/getworkflowinstanceresponse.go b/releases/sdks/go/pkg/models/shared/getworkflowinstanceresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getworkflowinstanceresponse.go rename to releases/sdks/go/pkg/models/shared/getworkflowinstanceresponse.go diff --git a/libs/clients/go/pkg/models/shared/getworkflowresponse.go b/releases/sdks/go/pkg/models/shared/getworkflowresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/getworkflowresponse.go rename to releases/sdks/go/pkg/models/shared/getworkflowresponse.go diff --git a/libs/clients/go/pkg/models/shared/hold.go b/releases/sdks/go/pkg/models/shared/hold.go similarity index 100% rename from libs/clients/go/pkg/models/shared/hold.go rename to releases/sdks/go/pkg/models/shared/hold.go diff --git a/libs/clients/go/pkg/models/shared/ledgeraccountsubject.go b/releases/sdks/go/pkg/models/shared/ledgeraccountsubject.go similarity index 100% rename from libs/clients/go/pkg/models/shared/ledgeraccountsubject.go rename to releases/sdks/go/pkg/models/shared/ledgeraccountsubject.go diff --git a/libs/clients/go/pkg/models/shared/ledgerinfo.go b/releases/sdks/go/pkg/models/shared/ledgerinfo.go similarity index 100% rename from libs/clients/go/pkg/models/shared/ledgerinfo.go rename to releases/sdks/go/pkg/models/shared/ledgerinfo.go diff --git a/libs/clients/go/pkg/models/shared/ledgerinforesponse.go b/releases/sdks/go/pkg/models/shared/ledgerinforesponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/ledgerinforesponse.go rename to releases/sdks/go/pkg/models/shared/ledgerinforesponse.go diff --git a/libs/clients/go/pkg/models/shared/ledgerstorage.go b/releases/sdks/go/pkg/models/shared/ledgerstorage.go similarity index 100% rename from libs/clients/go/pkg/models/shared/ledgerstorage.go rename to releases/sdks/go/pkg/models/shared/ledgerstorage.go diff --git a/libs/clients/go/pkg/models/shared/listbalancesresponse.go b/releases/sdks/go/pkg/models/shared/listbalancesresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listbalancesresponse.go rename to releases/sdks/go/pkg/models/shared/listbalancesresponse.go diff --git a/libs/clients/go/pkg/models/shared/listclientsresponse.go b/releases/sdks/go/pkg/models/shared/listclientsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listclientsresponse.go rename to releases/sdks/go/pkg/models/shared/listclientsresponse.go diff --git a/libs/clients/go/pkg/models/shared/listrunsresponse.go b/releases/sdks/go/pkg/models/shared/listrunsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listrunsresponse.go rename to releases/sdks/go/pkg/models/shared/listrunsresponse.go diff --git a/libs/clients/go/pkg/models/shared/listtriggersoccurrencesresponse.go b/releases/sdks/go/pkg/models/shared/listtriggersoccurrencesresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listtriggersoccurrencesresponse.go rename to releases/sdks/go/pkg/models/shared/listtriggersoccurrencesresponse.go diff --git a/libs/clients/go/pkg/models/shared/listtriggersresponse.go b/releases/sdks/go/pkg/models/shared/listtriggersresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listtriggersresponse.go rename to releases/sdks/go/pkg/models/shared/listtriggersresponse.go diff --git a/libs/clients/go/pkg/models/shared/listusersresponse.go b/releases/sdks/go/pkg/models/shared/listusersresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listusersresponse.go rename to releases/sdks/go/pkg/models/shared/listusersresponse.go diff --git a/libs/clients/go/pkg/models/shared/listwalletsresponse.go b/releases/sdks/go/pkg/models/shared/listwalletsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listwalletsresponse.go rename to releases/sdks/go/pkg/models/shared/listwalletsresponse.go diff --git a/libs/clients/go/pkg/models/shared/listworkflowsresponse.go b/releases/sdks/go/pkg/models/shared/listworkflowsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/listworkflowsresponse.go rename to releases/sdks/go/pkg/models/shared/listworkflowsresponse.go diff --git a/libs/clients/go/pkg/models/shared/log.go b/releases/sdks/go/pkg/models/shared/log.go similarity index 100% rename from libs/clients/go/pkg/models/shared/log.go rename to releases/sdks/go/pkg/models/shared/log.go diff --git a/libs/clients/go/pkg/models/shared/logscursorresponse.go b/releases/sdks/go/pkg/models/shared/logscursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/logscursorresponse.go rename to releases/sdks/go/pkg/models/shared/logscursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/mangopayconfig.go b/releases/sdks/go/pkg/models/shared/mangopayconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/mangopayconfig.go rename to releases/sdks/go/pkg/models/shared/mangopayconfig.go diff --git a/libs/clients/go/pkg/models/shared/mapping.go b/releases/sdks/go/pkg/models/shared/mapping.go similarity index 100% rename from libs/clients/go/pkg/models/shared/mapping.go rename to releases/sdks/go/pkg/models/shared/mapping.go diff --git a/libs/clients/go/pkg/models/shared/mappingresponse.go b/releases/sdks/go/pkg/models/shared/mappingresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/mappingresponse.go rename to releases/sdks/go/pkg/models/shared/mappingresponse.go diff --git a/libs/clients/go/pkg/models/shared/migrationinfo.go b/releases/sdks/go/pkg/models/shared/migrationinfo.go similarity index 100% rename from libs/clients/go/pkg/models/shared/migrationinfo.go rename to releases/sdks/go/pkg/models/shared/migrationinfo.go diff --git a/libs/clients/go/pkg/models/shared/modulrconfig.go b/releases/sdks/go/pkg/models/shared/modulrconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/modulrconfig.go rename to releases/sdks/go/pkg/models/shared/modulrconfig.go diff --git a/libs/clients/go/pkg/models/shared/monetary.go b/releases/sdks/go/pkg/models/shared/monetary.go similarity index 100% rename from libs/clients/go/pkg/models/shared/monetary.go rename to releases/sdks/go/pkg/models/shared/monetary.go diff --git a/libs/clients/go/pkg/models/shared/moneycorpconfig.go b/releases/sdks/go/pkg/models/shared/moneycorpconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/moneycorpconfig.go rename to releases/sdks/go/pkg/models/shared/moneycorpconfig.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationaccount.go b/releases/sdks/go/pkg/models/shared/orchestrationaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationaccount.go rename to releases/sdks/go/pkg/models/shared/orchestrationaccount.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationconnector.go b/releases/sdks/go/pkg/models/shared/orchestrationconnector.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationconnector.go rename to releases/sdks/go/pkg/models/shared/orchestrationconnector.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationlistwalletsresponse.go b/releases/sdks/go/pkg/models/shared/orchestrationlistwalletsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationlistwalletsresponse.go rename to releases/sdks/go/pkg/models/shared/orchestrationlistwalletsresponse.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationpayment.go b/releases/sdks/go/pkg/models/shared/orchestrationpayment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationpayment.go rename to releases/sdks/go/pkg/models/shared/orchestrationpayment.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationpaymentadjustment.go b/releases/sdks/go/pkg/models/shared/orchestrationpaymentadjustment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationpaymentadjustment.go rename to releases/sdks/go/pkg/models/shared/orchestrationpaymentadjustment.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationpaymentmetadata.go b/releases/sdks/go/pkg/models/shared/orchestrationpaymentmetadata.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationpaymentmetadata.go rename to releases/sdks/go/pkg/models/shared/orchestrationpaymentmetadata.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationpaymentstatus.go b/releases/sdks/go/pkg/models/shared/orchestrationpaymentstatus.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationpaymentstatus.go rename to releases/sdks/go/pkg/models/shared/orchestrationpaymentstatus.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationposttransaction.go b/releases/sdks/go/pkg/models/shared/orchestrationposttransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationposttransaction.go rename to releases/sdks/go/pkg/models/shared/orchestrationposttransaction.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationtransaction.go b/releases/sdks/go/pkg/models/shared/orchestrationtransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationtransaction.go rename to releases/sdks/go/pkg/models/shared/orchestrationtransaction.go diff --git a/libs/clients/go/pkg/models/shared/orchestrationv2transaction.go b/releases/sdks/go/pkg/models/shared/orchestrationv2transaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/orchestrationv2transaction.go rename to releases/sdks/go/pkg/models/shared/orchestrationv2transaction.go diff --git a/libs/clients/go/pkg/models/shared/payment.go b/releases/sdks/go/pkg/models/shared/payment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/payment.go rename to releases/sdks/go/pkg/models/shared/payment.go diff --git a/libs/clients/go/pkg/models/shared/paymentadjustment.go b/releases/sdks/go/pkg/models/shared/paymentadjustment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentadjustment.go rename to releases/sdks/go/pkg/models/shared/paymentadjustment.go diff --git a/libs/clients/go/pkg/models/shared/paymentrequest.go b/releases/sdks/go/pkg/models/shared/paymentrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentrequest.go rename to releases/sdks/go/pkg/models/shared/paymentrequest.go diff --git a/libs/clients/go/pkg/models/shared/paymentresponse.go b/releases/sdks/go/pkg/models/shared/paymentresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentresponse.go rename to releases/sdks/go/pkg/models/shared/paymentresponse.go diff --git a/libs/clients/go/pkg/models/shared/paymentsaccount.go b/releases/sdks/go/pkg/models/shared/paymentsaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentsaccount.go rename to releases/sdks/go/pkg/models/shared/paymentsaccount.go diff --git a/libs/clients/go/pkg/models/shared/paymentsaccountresponse.go b/releases/sdks/go/pkg/models/shared/paymentsaccountresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentsaccountresponse.go rename to releases/sdks/go/pkg/models/shared/paymentsaccountresponse.go diff --git a/libs/clients/go/pkg/models/shared/paymentscheme.go b/releases/sdks/go/pkg/models/shared/paymentscheme.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentscheme.go rename to releases/sdks/go/pkg/models/shared/paymentscheme.go diff --git a/libs/clients/go/pkg/models/shared/paymentscursor.go b/releases/sdks/go/pkg/models/shared/paymentscursor.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentscursor.go rename to releases/sdks/go/pkg/models/shared/paymentscursor.go diff --git a/libs/clients/go/pkg/models/shared/paymentstatus.go b/releases/sdks/go/pkg/models/shared/paymentstatus.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymentstatus.go rename to releases/sdks/go/pkg/models/shared/paymentstatus.go diff --git a/libs/clients/go/pkg/models/shared/paymenttype.go b/releases/sdks/go/pkg/models/shared/paymenttype.go similarity index 100% rename from libs/clients/go/pkg/models/shared/paymenttype.go rename to releases/sdks/go/pkg/models/shared/paymenttype.go diff --git a/libs/clients/go/pkg/models/shared/policiescursorresponse.go b/releases/sdks/go/pkg/models/shared/policiescursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/policiescursorresponse.go rename to releases/sdks/go/pkg/models/shared/policiescursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/policy.go b/releases/sdks/go/pkg/models/shared/policy.go similarity index 100% rename from libs/clients/go/pkg/models/shared/policy.go rename to releases/sdks/go/pkg/models/shared/policy.go diff --git a/libs/clients/go/pkg/models/shared/policyrequest.go b/releases/sdks/go/pkg/models/shared/policyrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/policyrequest.go rename to releases/sdks/go/pkg/models/shared/policyrequest.go diff --git a/libs/clients/go/pkg/models/shared/policyresponse.go b/releases/sdks/go/pkg/models/shared/policyresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/policyresponse.go rename to releases/sdks/go/pkg/models/shared/policyresponse.go diff --git a/libs/clients/go/pkg/models/shared/pool.go b/releases/sdks/go/pkg/models/shared/pool.go similarity index 100% rename from libs/clients/go/pkg/models/shared/pool.go rename to releases/sdks/go/pkg/models/shared/pool.go diff --git a/libs/clients/go/pkg/models/shared/poolbalance.go b/releases/sdks/go/pkg/models/shared/poolbalance.go similarity index 100% rename from libs/clients/go/pkg/models/shared/poolbalance.go rename to releases/sdks/go/pkg/models/shared/poolbalance.go diff --git a/libs/clients/go/pkg/models/shared/poolbalances.go b/releases/sdks/go/pkg/models/shared/poolbalances.go similarity index 100% rename from libs/clients/go/pkg/models/shared/poolbalances.go rename to releases/sdks/go/pkg/models/shared/poolbalances.go diff --git a/libs/clients/go/pkg/models/shared/poolbalancesresponse.go b/releases/sdks/go/pkg/models/shared/poolbalancesresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/poolbalancesresponse.go rename to releases/sdks/go/pkg/models/shared/poolbalancesresponse.go diff --git a/libs/clients/go/pkg/models/shared/poolrequest.go b/releases/sdks/go/pkg/models/shared/poolrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/poolrequest.go rename to releases/sdks/go/pkg/models/shared/poolrequest.go diff --git a/libs/clients/go/pkg/models/shared/poolresponse.go b/releases/sdks/go/pkg/models/shared/poolresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/poolresponse.go rename to releases/sdks/go/pkg/models/shared/poolresponse.go diff --git a/libs/clients/go/pkg/models/shared/poolscursor.go b/releases/sdks/go/pkg/models/shared/poolscursor.go similarity index 100% rename from libs/clients/go/pkg/models/shared/poolscursor.go rename to releases/sdks/go/pkg/models/shared/poolscursor.go diff --git a/libs/clients/go/pkg/models/shared/posting.go b/releases/sdks/go/pkg/models/shared/posting.go similarity index 100% rename from libs/clients/go/pkg/models/shared/posting.go rename to releases/sdks/go/pkg/models/shared/posting.go diff --git a/libs/clients/go/pkg/models/shared/posttransaction.go b/releases/sdks/go/pkg/models/shared/posttransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/posttransaction.go rename to releases/sdks/go/pkg/models/shared/posttransaction.go diff --git a/libs/clients/go/pkg/models/shared/query.go b/releases/sdks/go/pkg/models/shared/query.go similarity index 100% rename from libs/clients/go/pkg/models/shared/query.go rename to releases/sdks/go/pkg/models/shared/query.go diff --git a/libs/clients/go/pkg/models/shared/readclientresponse.go b/releases/sdks/go/pkg/models/shared/readclientresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/readclientresponse.go rename to releases/sdks/go/pkg/models/shared/readclientresponse.go diff --git a/libs/clients/go/pkg/models/shared/readtriggerresponse.go b/releases/sdks/go/pkg/models/shared/readtriggerresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/readtriggerresponse.go rename to releases/sdks/go/pkg/models/shared/readtriggerresponse.go diff --git a/libs/clients/go/pkg/models/shared/readuserresponse.go b/releases/sdks/go/pkg/models/shared/readuserresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/readuserresponse.go rename to releases/sdks/go/pkg/models/shared/readuserresponse.go diff --git a/libs/clients/go/pkg/models/shared/reconciliation.go b/releases/sdks/go/pkg/models/shared/reconciliation.go similarity index 100% rename from libs/clients/go/pkg/models/shared/reconciliation.go rename to releases/sdks/go/pkg/models/shared/reconciliation.go diff --git a/libs/clients/go/pkg/models/shared/reconciliationerrorresponse.go b/releases/sdks/go/pkg/models/shared/reconciliationerrorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/reconciliationerrorresponse.go rename to releases/sdks/go/pkg/models/shared/reconciliationerrorresponse.go diff --git a/libs/clients/go/pkg/models/shared/reconciliationrequest.go b/releases/sdks/go/pkg/models/shared/reconciliationrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/reconciliationrequest.go rename to releases/sdks/go/pkg/models/shared/reconciliationrequest.go diff --git a/libs/clients/go/pkg/models/shared/reconciliationresponse.go b/releases/sdks/go/pkg/models/shared/reconciliationresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/reconciliationresponse.go rename to releases/sdks/go/pkg/models/shared/reconciliationresponse.go diff --git a/libs/clients/go/pkg/models/shared/reconciliationscursorresponse.go b/releases/sdks/go/pkg/models/shared/reconciliationscursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/reconciliationscursorresponse.go rename to releases/sdks/go/pkg/models/shared/reconciliationscursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/response.go b/releases/sdks/go/pkg/models/shared/response.go similarity index 100% rename from libs/clients/go/pkg/models/shared/response.go rename to releases/sdks/go/pkg/models/shared/response.go diff --git a/libs/clients/go/pkg/models/shared/runworkflowresponse.go b/releases/sdks/go/pkg/models/shared/runworkflowresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/runworkflowresponse.go rename to releases/sdks/go/pkg/models/shared/runworkflowresponse.go diff --git a/libs/clients/go/pkg/models/shared/script.go b/releases/sdks/go/pkg/models/shared/script.go similarity index 100% rename from libs/clients/go/pkg/models/shared/script.go rename to releases/sdks/go/pkg/models/shared/script.go diff --git a/libs/clients/go/pkg/models/shared/scriptresponse.go b/releases/sdks/go/pkg/models/shared/scriptresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/scriptresponse.go rename to releases/sdks/go/pkg/models/shared/scriptresponse.go diff --git a/libs/clients/go/pkg/models/shared/secret.go b/releases/sdks/go/pkg/models/shared/secret.go similarity index 100% rename from libs/clients/go/pkg/models/shared/secret.go rename to releases/sdks/go/pkg/models/shared/secret.go diff --git a/libs/clients/go/pkg/models/shared/serverinfo.go b/releases/sdks/go/pkg/models/shared/serverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/shared/serverinfo.go rename to releases/sdks/go/pkg/models/shared/serverinfo.go diff --git a/libs/clients/go/pkg/models/shared/stage.go b/releases/sdks/go/pkg/models/shared/stage.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stage.go rename to releases/sdks/go/pkg/models/shared/stage.go diff --git a/libs/clients/go/pkg/models/shared/stagedelay.go b/releases/sdks/go/pkg/models/shared/stagedelay.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagedelay.go rename to releases/sdks/go/pkg/models/shared/stagedelay.go diff --git a/libs/clients/go/pkg/models/shared/stagesend.go b/releases/sdks/go/pkg/models/shared/stagesend.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesend.go rename to releases/sdks/go/pkg/models/shared/stagesend.go diff --git a/libs/clients/go/pkg/models/shared/stagesenddestination.go b/releases/sdks/go/pkg/models/shared/stagesenddestination.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesenddestination.go rename to releases/sdks/go/pkg/models/shared/stagesenddestination.go diff --git a/libs/clients/go/pkg/models/shared/stagesenddestinationaccount.go b/releases/sdks/go/pkg/models/shared/stagesenddestinationaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesenddestinationaccount.go rename to releases/sdks/go/pkg/models/shared/stagesenddestinationaccount.go diff --git a/libs/clients/go/pkg/models/shared/stagesenddestinationpayment.go b/releases/sdks/go/pkg/models/shared/stagesenddestinationpayment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesenddestinationpayment.go rename to releases/sdks/go/pkg/models/shared/stagesenddestinationpayment.go diff --git a/libs/clients/go/pkg/models/shared/stagesenddestinationwallet.go b/releases/sdks/go/pkg/models/shared/stagesenddestinationwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesenddestinationwallet.go rename to releases/sdks/go/pkg/models/shared/stagesenddestinationwallet.go diff --git a/libs/clients/go/pkg/models/shared/stagesendsource.go b/releases/sdks/go/pkg/models/shared/stagesendsource.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesendsource.go rename to releases/sdks/go/pkg/models/shared/stagesendsource.go diff --git a/libs/clients/go/pkg/models/shared/stagesendsourceaccount.go b/releases/sdks/go/pkg/models/shared/stagesendsourceaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesendsourceaccount.go rename to releases/sdks/go/pkg/models/shared/stagesendsourceaccount.go diff --git a/libs/clients/go/pkg/models/shared/stagesendsourcepayment.go b/releases/sdks/go/pkg/models/shared/stagesendsourcepayment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesendsourcepayment.go rename to releases/sdks/go/pkg/models/shared/stagesendsourcepayment.go diff --git a/libs/clients/go/pkg/models/shared/stagesendsourcewallet.go b/releases/sdks/go/pkg/models/shared/stagesendsourcewallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagesendsourcewallet.go rename to releases/sdks/go/pkg/models/shared/stagesendsourcewallet.go diff --git a/libs/clients/go/pkg/models/shared/stagestatus.go b/releases/sdks/go/pkg/models/shared/stagestatus.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagestatus.go rename to releases/sdks/go/pkg/models/shared/stagestatus.go diff --git a/libs/clients/go/pkg/models/shared/stagewaitevent.go b/releases/sdks/go/pkg/models/shared/stagewaitevent.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stagewaitevent.go rename to releases/sdks/go/pkg/models/shared/stagewaitevent.go diff --git a/libs/clients/go/pkg/models/shared/stats.go b/releases/sdks/go/pkg/models/shared/stats.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stats.go rename to releases/sdks/go/pkg/models/shared/stats.go diff --git a/libs/clients/go/pkg/models/shared/statsresponse.go b/releases/sdks/go/pkg/models/shared/statsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/statsresponse.go rename to releases/sdks/go/pkg/models/shared/statsresponse.go diff --git a/libs/clients/go/pkg/models/shared/stripeconfig.go b/releases/sdks/go/pkg/models/shared/stripeconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/stripeconfig.go rename to releases/sdks/go/pkg/models/shared/stripeconfig.go diff --git a/libs/clients/go/pkg/models/shared/subject.go b/releases/sdks/go/pkg/models/shared/subject.go similarity index 100% rename from libs/clients/go/pkg/models/shared/subject.go rename to releases/sdks/go/pkg/models/shared/subject.go diff --git a/libs/clients/go/pkg/models/shared/taskbankingcircle.go b/releases/sdks/go/pkg/models/shared/taskbankingcircle.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskbankingcircle.go rename to releases/sdks/go/pkg/models/shared/taskbankingcircle.go diff --git a/libs/clients/go/pkg/models/shared/taskcurrencycloud.go b/releases/sdks/go/pkg/models/shared/taskcurrencycloud.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskcurrencycloud.go rename to releases/sdks/go/pkg/models/shared/taskcurrencycloud.go diff --git a/libs/clients/go/pkg/models/shared/taskdummypay.go b/releases/sdks/go/pkg/models/shared/taskdummypay.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskdummypay.go rename to releases/sdks/go/pkg/models/shared/taskdummypay.go diff --git a/libs/clients/go/pkg/models/shared/taskmangopay.go b/releases/sdks/go/pkg/models/shared/taskmangopay.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskmangopay.go rename to releases/sdks/go/pkg/models/shared/taskmangopay.go diff --git a/libs/clients/go/pkg/models/shared/taskmodulr.go b/releases/sdks/go/pkg/models/shared/taskmodulr.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskmodulr.go rename to releases/sdks/go/pkg/models/shared/taskmodulr.go diff --git a/libs/clients/go/pkg/models/shared/taskmoneycorp.go b/releases/sdks/go/pkg/models/shared/taskmoneycorp.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskmoneycorp.go rename to releases/sdks/go/pkg/models/shared/taskmoneycorp.go diff --git a/libs/clients/go/pkg/models/shared/taskresponse.go b/releases/sdks/go/pkg/models/shared/taskresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskresponse.go rename to releases/sdks/go/pkg/models/shared/taskresponse.go diff --git a/libs/clients/go/pkg/models/shared/taskscursor.go b/releases/sdks/go/pkg/models/shared/taskscursor.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskscursor.go rename to releases/sdks/go/pkg/models/shared/taskscursor.go diff --git a/libs/clients/go/pkg/models/shared/taskstripe.go b/releases/sdks/go/pkg/models/shared/taskstripe.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskstripe.go rename to releases/sdks/go/pkg/models/shared/taskstripe.go diff --git a/libs/clients/go/pkg/models/shared/taskwise.go b/releases/sdks/go/pkg/models/shared/taskwise.go similarity index 100% rename from libs/clients/go/pkg/models/shared/taskwise.go rename to releases/sdks/go/pkg/models/shared/taskwise.go diff --git a/libs/clients/go/pkg/models/shared/transaction.go b/releases/sdks/go/pkg/models/shared/transaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transaction.go rename to releases/sdks/go/pkg/models/shared/transaction.go diff --git a/libs/clients/go/pkg/models/shared/transactiondata.go b/releases/sdks/go/pkg/models/shared/transactiondata.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transactiondata.go rename to releases/sdks/go/pkg/models/shared/transactiondata.go diff --git a/libs/clients/go/pkg/models/shared/transactionresponse.go b/releases/sdks/go/pkg/models/shared/transactionresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transactionresponse.go rename to releases/sdks/go/pkg/models/shared/transactionresponse.go diff --git a/libs/clients/go/pkg/models/shared/transactions.go b/releases/sdks/go/pkg/models/shared/transactions.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transactions.go rename to releases/sdks/go/pkg/models/shared/transactions.go diff --git a/libs/clients/go/pkg/models/shared/transactionscursorresponse.go b/releases/sdks/go/pkg/models/shared/transactionscursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transactionscursorresponse.go rename to releases/sdks/go/pkg/models/shared/transactionscursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/transactionsresponse.go b/releases/sdks/go/pkg/models/shared/transactionsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transactionsresponse.go rename to releases/sdks/go/pkg/models/shared/transactionsresponse.go diff --git a/libs/clients/go/pkg/models/shared/transferinitiation.go b/releases/sdks/go/pkg/models/shared/transferinitiation.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferinitiation.go rename to releases/sdks/go/pkg/models/shared/transferinitiation.go diff --git a/libs/clients/go/pkg/models/shared/transferinitiationpayments.go b/releases/sdks/go/pkg/models/shared/transferinitiationpayments.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferinitiationpayments.go rename to releases/sdks/go/pkg/models/shared/transferinitiationpayments.go diff --git a/libs/clients/go/pkg/models/shared/transferinitiationrequest.go b/releases/sdks/go/pkg/models/shared/transferinitiationrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferinitiationrequest.go rename to releases/sdks/go/pkg/models/shared/transferinitiationrequest.go diff --git a/libs/clients/go/pkg/models/shared/transferinitiationresponse.go b/releases/sdks/go/pkg/models/shared/transferinitiationresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferinitiationresponse.go rename to releases/sdks/go/pkg/models/shared/transferinitiationresponse.go diff --git a/libs/clients/go/pkg/models/shared/transferinitiationscursor.go b/releases/sdks/go/pkg/models/shared/transferinitiationscursor.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferinitiationscursor.go rename to releases/sdks/go/pkg/models/shared/transferinitiationscursor.go diff --git a/libs/clients/go/pkg/models/shared/transferinitiationstatus.go b/releases/sdks/go/pkg/models/shared/transferinitiationstatus.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferinitiationstatus.go rename to releases/sdks/go/pkg/models/shared/transferinitiationstatus.go diff --git a/libs/clients/go/pkg/models/shared/transferrequest.go b/releases/sdks/go/pkg/models/shared/transferrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferrequest.go rename to releases/sdks/go/pkg/models/shared/transferrequest.go diff --git a/libs/clients/go/pkg/models/shared/transferresponse.go b/releases/sdks/go/pkg/models/shared/transferresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/transferresponse.go rename to releases/sdks/go/pkg/models/shared/transferresponse.go diff --git a/libs/clients/go/pkg/models/shared/trigger.go b/releases/sdks/go/pkg/models/shared/trigger.go similarity index 100% rename from libs/clients/go/pkg/models/shared/trigger.go rename to releases/sdks/go/pkg/models/shared/trigger.go diff --git a/libs/clients/go/pkg/models/shared/triggerdata.go b/releases/sdks/go/pkg/models/shared/triggerdata.go similarity index 100% rename from libs/clients/go/pkg/models/shared/triggerdata.go rename to releases/sdks/go/pkg/models/shared/triggerdata.go diff --git a/libs/clients/go/pkg/models/shared/triggeroccurrence.go b/releases/sdks/go/pkg/models/shared/triggeroccurrence.go similarity index 100% rename from libs/clients/go/pkg/models/shared/triggeroccurrence.go rename to releases/sdks/go/pkg/models/shared/triggeroccurrence.go diff --git a/libs/clients/go/pkg/models/shared/updateclientrequest.go b/releases/sdks/go/pkg/models/shared/updateclientrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/updateclientrequest.go rename to releases/sdks/go/pkg/models/shared/updateclientrequest.go diff --git a/libs/clients/go/pkg/models/shared/updateclientresponse.go b/releases/sdks/go/pkg/models/shared/updateclientresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/updateclientresponse.go rename to releases/sdks/go/pkg/models/shared/updateclientresponse.go diff --git a/libs/clients/go/pkg/models/shared/updatetransferinitiationstatusrequest.go b/releases/sdks/go/pkg/models/shared/updatetransferinitiationstatusrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/updatetransferinitiationstatusrequest.go rename to releases/sdks/go/pkg/models/shared/updatetransferinitiationstatusrequest.go diff --git a/libs/clients/go/pkg/models/shared/user.go b/releases/sdks/go/pkg/models/shared/user.go similarity index 100% rename from libs/clients/go/pkg/models/shared/user.go rename to releases/sdks/go/pkg/models/shared/user.go diff --git a/libs/clients/go/pkg/models/shared/v2account.go b/releases/sdks/go/pkg/models/shared/v2account.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2account.go rename to releases/sdks/go/pkg/models/shared/v2account.go diff --git a/libs/clients/go/pkg/models/shared/v2accountresponse.go b/releases/sdks/go/pkg/models/shared/v2accountresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2accountresponse.go rename to releases/sdks/go/pkg/models/shared/v2accountresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2accountscursorresponse.go b/releases/sdks/go/pkg/models/shared/v2accountscursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2accountscursorresponse.go rename to releases/sdks/go/pkg/models/shared/v2accountscursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2activityconfirmhold.go b/releases/sdks/go/pkg/models/shared/v2activityconfirmhold.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activityconfirmhold.go rename to releases/sdks/go/pkg/models/shared/v2activityconfirmhold.go diff --git a/libs/clients/go/pkg/models/shared/v2activitycreatetransaction.go b/releases/sdks/go/pkg/models/shared/v2activitycreatetransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitycreatetransaction.go rename to releases/sdks/go/pkg/models/shared/v2activitycreatetransaction.go diff --git a/libs/clients/go/pkg/models/shared/v2activitycreatetransactionoutput.go b/releases/sdks/go/pkg/models/shared/v2activitycreatetransactionoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitycreatetransactionoutput.go rename to releases/sdks/go/pkg/models/shared/v2activitycreatetransactionoutput.go diff --git a/libs/clients/go/pkg/models/shared/v2activitycreditwallet.go b/releases/sdks/go/pkg/models/shared/v2activitycreditwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitycreditwallet.go rename to releases/sdks/go/pkg/models/shared/v2activitycreditwallet.go diff --git a/libs/clients/go/pkg/models/shared/v2activitydebitwallet.go b/releases/sdks/go/pkg/models/shared/v2activitydebitwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitydebitwallet.go rename to releases/sdks/go/pkg/models/shared/v2activitydebitwallet.go diff --git a/libs/clients/go/pkg/models/shared/v2activitydebitwalletoutput.go b/releases/sdks/go/pkg/models/shared/v2activitydebitwalletoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitydebitwalletoutput.go rename to releases/sdks/go/pkg/models/shared/v2activitydebitwalletoutput.go diff --git a/libs/clients/go/pkg/models/shared/v2activitygetaccount.go b/releases/sdks/go/pkg/models/shared/v2activitygetaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitygetaccount.go rename to releases/sdks/go/pkg/models/shared/v2activitygetaccount.go diff --git a/libs/clients/go/pkg/models/shared/v2activitygetaccountoutput.go b/releases/sdks/go/pkg/models/shared/v2activitygetaccountoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitygetaccountoutput.go rename to releases/sdks/go/pkg/models/shared/v2activitygetaccountoutput.go diff --git a/libs/clients/go/pkg/models/shared/v2activitygetpayment.go b/releases/sdks/go/pkg/models/shared/v2activitygetpayment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitygetpayment.go rename to releases/sdks/go/pkg/models/shared/v2activitygetpayment.go diff --git a/libs/clients/go/pkg/models/shared/v2activitygetpaymentoutput.go b/releases/sdks/go/pkg/models/shared/v2activitygetpaymentoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitygetpaymentoutput.go rename to releases/sdks/go/pkg/models/shared/v2activitygetpaymentoutput.go diff --git a/libs/clients/go/pkg/models/shared/v2activitygetwallet.go b/releases/sdks/go/pkg/models/shared/v2activitygetwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitygetwallet.go rename to releases/sdks/go/pkg/models/shared/v2activitygetwallet.go diff --git a/libs/clients/go/pkg/models/shared/v2activitygetwalletoutput.go b/releases/sdks/go/pkg/models/shared/v2activitygetwalletoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitygetwalletoutput.go rename to releases/sdks/go/pkg/models/shared/v2activitygetwalletoutput.go diff --git a/libs/clients/go/pkg/models/shared/v2activitylistwallets.go b/releases/sdks/go/pkg/models/shared/v2activitylistwallets.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitylistwallets.go rename to releases/sdks/go/pkg/models/shared/v2activitylistwallets.go diff --git a/libs/clients/go/pkg/models/shared/v2activitystripetransfer.go b/releases/sdks/go/pkg/models/shared/v2activitystripetransfer.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activitystripetransfer.go rename to releases/sdks/go/pkg/models/shared/v2activitystripetransfer.go diff --git a/libs/clients/go/pkg/models/shared/v2activityvoidhold.go b/releases/sdks/go/pkg/models/shared/v2activityvoidhold.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2activityvoidhold.go rename to releases/sdks/go/pkg/models/shared/v2activityvoidhold.go diff --git a/libs/clients/go/pkg/models/shared/v2aggregatebalancesresponse.go b/releases/sdks/go/pkg/models/shared/v2aggregatebalancesresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2aggregatebalancesresponse.go rename to releases/sdks/go/pkg/models/shared/v2aggregatebalancesresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2assetholder.go b/releases/sdks/go/pkg/models/shared/v2assetholder.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2assetholder.go rename to releases/sdks/go/pkg/models/shared/v2assetholder.go diff --git a/libs/clients/go/pkg/models/shared/v2bulkelement.go b/releases/sdks/go/pkg/models/shared/v2bulkelement.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2bulkelement.go rename to releases/sdks/go/pkg/models/shared/v2bulkelement.go diff --git a/libs/clients/go/pkg/models/shared/v2bulkelementresult.go b/releases/sdks/go/pkg/models/shared/v2bulkelementresult.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2bulkelementresult.go rename to releases/sdks/go/pkg/models/shared/v2bulkelementresult.go diff --git a/libs/clients/go/pkg/models/shared/v2bulkresponse.go b/releases/sdks/go/pkg/models/shared/v2bulkresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2bulkresponse.go rename to releases/sdks/go/pkg/models/shared/v2bulkresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2configinforesponse.go b/releases/sdks/go/pkg/models/shared/v2configinforesponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2configinforesponse.go rename to releases/sdks/go/pkg/models/shared/v2configinforesponse.go diff --git a/libs/clients/go/pkg/models/shared/v2connector.go b/releases/sdks/go/pkg/models/shared/v2connector.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2connector.go rename to releases/sdks/go/pkg/models/shared/v2connector.go diff --git a/libs/clients/go/pkg/models/shared/v2createledgerrequest.go b/releases/sdks/go/pkg/models/shared/v2createledgerrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2createledgerrequest.go rename to releases/sdks/go/pkg/models/shared/v2createledgerrequest.go diff --git a/libs/clients/go/pkg/models/shared/v2createtransactionresponse.go b/releases/sdks/go/pkg/models/shared/v2createtransactionresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2createtransactionresponse.go rename to releases/sdks/go/pkg/models/shared/v2createtransactionresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2createtriggerresponse.go b/releases/sdks/go/pkg/models/shared/v2createtriggerresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2createtriggerresponse.go rename to releases/sdks/go/pkg/models/shared/v2createtriggerresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2createworkflowrequest.go b/releases/sdks/go/pkg/models/shared/v2createworkflowrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2createworkflowrequest.go rename to releases/sdks/go/pkg/models/shared/v2createworkflowrequest.go diff --git a/libs/clients/go/pkg/models/shared/v2createworkflowresponse.go b/releases/sdks/go/pkg/models/shared/v2createworkflowresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2createworkflowresponse.go rename to releases/sdks/go/pkg/models/shared/v2createworkflowresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2creditwalletrequest.go b/releases/sdks/go/pkg/models/shared/v2creditwalletrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2creditwalletrequest.go rename to releases/sdks/go/pkg/models/shared/v2creditwalletrequest.go diff --git a/libs/clients/go/pkg/models/shared/v2debitwalletrequest.go b/releases/sdks/go/pkg/models/shared/v2debitwalletrequest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2debitwalletrequest.go rename to releases/sdks/go/pkg/models/shared/v2debitwalletrequest.go diff --git a/libs/clients/go/pkg/models/shared/v2error.go b/releases/sdks/go/pkg/models/shared/v2error.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2error.go rename to releases/sdks/go/pkg/models/shared/v2error.go diff --git a/libs/clients/go/pkg/models/shared/v2errorresponse.go b/releases/sdks/go/pkg/models/shared/v2errorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2errorresponse.go rename to releases/sdks/go/pkg/models/shared/v2errorresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2errorsenum.go b/releases/sdks/go/pkg/models/shared/v2errorsenum.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2errorsenum.go rename to releases/sdks/go/pkg/models/shared/v2errorsenum.go diff --git a/libs/clients/go/pkg/models/shared/v2expandedtransaction.go b/releases/sdks/go/pkg/models/shared/v2expandedtransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2expandedtransaction.go rename to releases/sdks/go/pkg/models/shared/v2expandedtransaction.go diff --git a/libs/clients/go/pkg/models/shared/v2gettransactionresponse.go b/releases/sdks/go/pkg/models/shared/v2gettransactionresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2gettransactionresponse.go rename to releases/sdks/go/pkg/models/shared/v2gettransactionresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2getworkflowinstancehistoryresponse.go b/releases/sdks/go/pkg/models/shared/v2getworkflowinstancehistoryresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2getworkflowinstancehistoryresponse.go rename to releases/sdks/go/pkg/models/shared/v2getworkflowinstancehistoryresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2getworkflowinstancehistorystageresponse.go b/releases/sdks/go/pkg/models/shared/v2getworkflowinstancehistorystageresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2getworkflowinstancehistorystageresponse.go rename to releases/sdks/go/pkg/models/shared/v2getworkflowinstancehistorystageresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2getworkflowinstanceresponse.go b/releases/sdks/go/pkg/models/shared/v2getworkflowinstanceresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2getworkflowinstanceresponse.go rename to releases/sdks/go/pkg/models/shared/v2getworkflowinstanceresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2getworkflowresponse.go b/releases/sdks/go/pkg/models/shared/v2getworkflowresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2getworkflowresponse.go rename to releases/sdks/go/pkg/models/shared/v2getworkflowresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2hold.go b/releases/sdks/go/pkg/models/shared/v2hold.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2hold.go rename to releases/sdks/go/pkg/models/shared/v2hold.go diff --git a/libs/clients/go/pkg/models/shared/v2ledger.go b/releases/sdks/go/pkg/models/shared/v2ledger.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2ledger.go rename to releases/sdks/go/pkg/models/shared/v2ledger.go diff --git a/libs/clients/go/pkg/models/shared/v2ledgeraccountsubject.go b/releases/sdks/go/pkg/models/shared/v2ledgeraccountsubject.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2ledgeraccountsubject.go rename to releases/sdks/go/pkg/models/shared/v2ledgeraccountsubject.go diff --git a/libs/clients/go/pkg/models/shared/v2ledgerinfo.go b/releases/sdks/go/pkg/models/shared/v2ledgerinfo.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2ledgerinfo.go rename to releases/sdks/go/pkg/models/shared/v2ledgerinfo.go diff --git a/libs/clients/go/pkg/models/shared/v2ledgerinforesponse.go b/releases/sdks/go/pkg/models/shared/v2ledgerinforesponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2ledgerinforesponse.go rename to releases/sdks/go/pkg/models/shared/v2ledgerinforesponse.go diff --git a/libs/clients/go/pkg/models/shared/v2ledgerlistresponse.go b/releases/sdks/go/pkg/models/shared/v2ledgerlistresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2ledgerlistresponse.go rename to releases/sdks/go/pkg/models/shared/v2ledgerlistresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2listrunsresponse.go b/releases/sdks/go/pkg/models/shared/v2listrunsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2listrunsresponse.go rename to releases/sdks/go/pkg/models/shared/v2listrunsresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2listtriggersoccurrencesresponse.go b/releases/sdks/go/pkg/models/shared/v2listtriggersoccurrencesresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2listtriggersoccurrencesresponse.go rename to releases/sdks/go/pkg/models/shared/v2listtriggersoccurrencesresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2listtriggersresponse.go b/releases/sdks/go/pkg/models/shared/v2listtriggersresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2listtriggersresponse.go rename to releases/sdks/go/pkg/models/shared/v2listtriggersresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2listwalletsresponse.go b/releases/sdks/go/pkg/models/shared/v2listwalletsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2listwalletsresponse.go rename to releases/sdks/go/pkg/models/shared/v2listwalletsresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2listworkflowsresponse.go b/releases/sdks/go/pkg/models/shared/v2listworkflowsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2listworkflowsresponse.go rename to releases/sdks/go/pkg/models/shared/v2listworkflowsresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2log.go b/releases/sdks/go/pkg/models/shared/v2log.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2log.go rename to releases/sdks/go/pkg/models/shared/v2log.go diff --git a/libs/clients/go/pkg/models/shared/v2logscursorresponse.go b/releases/sdks/go/pkg/models/shared/v2logscursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2logscursorresponse.go rename to releases/sdks/go/pkg/models/shared/v2logscursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2migrationinfo.go b/releases/sdks/go/pkg/models/shared/v2migrationinfo.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2migrationinfo.go rename to releases/sdks/go/pkg/models/shared/v2migrationinfo.go diff --git a/libs/clients/go/pkg/models/shared/v2monetary.go b/releases/sdks/go/pkg/models/shared/v2monetary.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2monetary.go rename to releases/sdks/go/pkg/models/shared/v2monetary.go diff --git a/libs/clients/go/pkg/models/shared/v2payment.go b/releases/sdks/go/pkg/models/shared/v2payment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2payment.go rename to releases/sdks/go/pkg/models/shared/v2payment.go diff --git a/libs/clients/go/pkg/models/shared/v2paymentadjustment.go b/releases/sdks/go/pkg/models/shared/v2paymentadjustment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2paymentadjustment.go rename to releases/sdks/go/pkg/models/shared/v2paymentadjustment.go diff --git a/libs/clients/go/pkg/models/shared/v2paymentmetadata.go b/releases/sdks/go/pkg/models/shared/v2paymentmetadata.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2paymentmetadata.go rename to releases/sdks/go/pkg/models/shared/v2paymentmetadata.go diff --git a/libs/clients/go/pkg/models/shared/v2paymentstatus.go b/releases/sdks/go/pkg/models/shared/v2paymentstatus.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2paymentstatus.go rename to releases/sdks/go/pkg/models/shared/v2paymentstatus.go diff --git a/libs/clients/go/pkg/models/shared/v2posting.go b/releases/sdks/go/pkg/models/shared/v2posting.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2posting.go rename to releases/sdks/go/pkg/models/shared/v2posting.go diff --git a/libs/clients/go/pkg/models/shared/v2posttransaction.go b/releases/sdks/go/pkg/models/shared/v2posttransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2posttransaction.go rename to releases/sdks/go/pkg/models/shared/v2posttransaction.go diff --git a/libs/clients/go/pkg/models/shared/v2readtriggerresponse.go b/releases/sdks/go/pkg/models/shared/v2readtriggerresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2readtriggerresponse.go rename to releases/sdks/go/pkg/models/shared/v2readtriggerresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2reverttransactionresponse.go b/releases/sdks/go/pkg/models/shared/v2reverttransactionresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2reverttransactionresponse.go rename to releases/sdks/go/pkg/models/shared/v2reverttransactionresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2runworkflowresponse.go b/releases/sdks/go/pkg/models/shared/v2runworkflowresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2runworkflowresponse.go rename to releases/sdks/go/pkg/models/shared/v2runworkflowresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2serverinfo.go b/releases/sdks/go/pkg/models/shared/v2serverinfo.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2serverinfo.go rename to releases/sdks/go/pkg/models/shared/v2serverinfo.go diff --git a/libs/clients/go/pkg/models/shared/v2stage.go b/releases/sdks/go/pkg/models/shared/v2stage.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stage.go rename to releases/sdks/go/pkg/models/shared/v2stage.go diff --git a/libs/clients/go/pkg/models/shared/v2stagedelay.go b/releases/sdks/go/pkg/models/shared/v2stagedelay.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagedelay.go rename to releases/sdks/go/pkg/models/shared/v2stagedelay.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesend.go b/releases/sdks/go/pkg/models/shared/v2stagesend.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesend.go rename to releases/sdks/go/pkg/models/shared/v2stagesend.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesenddestination.go b/releases/sdks/go/pkg/models/shared/v2stagesenddestination.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesenddestination.go rename to releases/sdks/go/pkg/models/shared/v2stagesenddestination.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesenddestinationaccount.go b/releases/sdks/go/pkg/models/shared/v2stagesenddestinationaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesenddestinationaccount.go rename to releases/sdks/go/pkg/models/shared/v2stagesenddestinationaccount.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesenddestinationpayment.go b/releases/sdks/go/pkg/models/shared/v2stagesenddestinationpayment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesenddestinationpayment.go rename to releases/sdks/go/pkg/models/shared/v2stagesenddestinationpayment.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesenddestinationwallet.go b/releases/sdks/go/pkg/models/shared/v2stagesenddestinationwallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesenddestinationwallet.go rename to releases/sdks/go/pkg/models/shared/v2stagesenddestinationwallet.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesendsource.go b/releases/sdks/go/pkg/models/shared/v2stagesendsource.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesendsource.go rename to releases/sdks/go/pkg/models/shared/v2stagesendsource.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesendsourceaccount.go b/releases/sdks/go/pkg/models/shared/v2stagesendsourceaccount.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesendsourceaccount.go rename to releases/sdks/go/pkg/models/shared/v2stagesendsourceaccount.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesendsourcepayment.go b/releases/sdks/go/pkg/models/shared/v2stagesendsourcepayment.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesendsourcepayment.go rename to releases/sdks/go/pkg/models/shared/v2stagesendsourcepayment.go diff --git a/libs/clients/go/pkg/models/shared/v2stagesendsourcewallet.go b/releases/sdks/go/pkg/models/shared/v2stagesendsourcewallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagesendsourcewallet.go rename to releases/sdks/go/pkg/models/shared/v2stagesendsourcewallet.go diff --git a/libs/clients/go/pkg/models/shared/v2stagestatus.go b/releases/sdks/go/pkg/models/shared/v2stagestatus.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagestatus.go rename to releases/sdks/go/pkg/models/shared/v2stagestatus.go diff --git a/libs/clients/go/pkg/models/shared/v2stagewaitevent.go b/releases/sdks/go/pkg/models/shared/v2stagewaitevent.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stagewaitevent.go rename to releases/sdks/go/pkg/models/shared/v2stagewaitevent.go diff --git a/libs/clients/go/pkg/models/shared/v2stats.go b/releases/sdks/go/pkg/models/shared/v2stats.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2stats.go rename to releases/sdks/go/pkg/models/shared/v2stats.go diff --git a/libs/clients/go/pkg/models/shared/v2statsresponse.go b/releases/sdks/go/pkg/models/shared/v2statsresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2statsresponse.go rename to releases/sdks/go/pkg/models/shared/v2statsresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2subject.go b/releases/sdks/go/pkg/models/shared/v2subject.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2subject.go rename to releases/sdks/go/pkg/models/shared/v2subject.go diff --git a/libs/clients/go/pkg/models/shared/v2targetid.go b/releases/sdks/go/pkg/models/shared/v2targetid.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2targetid.go rename to releases/sdks/go/pkg/models/shared/v2targetid.go diff --git a/libs/clients/go/pkg/models/shared/v2targettype.go b/releases/sdks/go/pkg/models/shared/v2targettype.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2targettype.go rename to releases/sdks/go/pkg/models/shared/v2targettype.go diff --git a/libs/clients/go/pkg/models/shared/v2testtriggerresponse.go b/releases/sdks/go/pkg/models/shared/v2testtriggerresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2testtriggerresponse.go rename to releases/sdks/go/pkg/models/shared/v2testtriggerresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2transaction.go b/releases/sdks/go/pkg/models/shared/v2transaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2transaction.go rename to releases/sdks/go/pkg/models/shared/v2transaction.go diff --git a/libs/clients/go/pkg/models/shared/v2transactionscursorresponse.go b/releases/sdks/go/pkg/models/shared/v2transactionscursorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2transactionscursorresponse.go rename to releases/sdks/go/pkg/models/shared/v2transactionscursorresponse.go diff --git a/libs/clients/go/pkg/models/shared/v2trigger.go b/releases/sdks/go/pkg/models/shared/v2trigger.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2trigger.go rename to releases/sdks/go/pkg/models/shared/v2trigger.go diff --git a/libs/clients/go/pkg/models/shared/v2triggerdata.go b/releases/sdks/go/pkg/models/shared/v2triggerdata.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2triggerdata.go rename to releases/sdks/go/pkg/models/shared/v2triggerdata.go diff --git a/libs/clients/go/pkg/models/shared/v2triggeroccurrence.go b/releases/sdks/go/pkg/models/shared/v2triggeroccurrence.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2triggeroccurrence.go rename to releases/sdks/go/pkg/models/shared/v2triggeroccurrence.go diff --git a/libs/clients/go/pkg/models/shared/v2triggertest.go b/releases/sdks/go/pkg/models/shared/v2triggertest.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2triggertest.go rename to releases/sdks/go/pkg/models/shared/v2triggertest.go diff --git a/libs/clients/go/pkg/models/shared/v2volume.go b/releases/sdks/go/pkg/models/shared/v2volume.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2volume.go rename to releases/sdks/go/pkg/models/shared/v2volume.go diff --git a/libs/clients/go/pkg/models/shared/v2wallet.go b/releases/sdks/go/pkg/models/shared/v2wallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2wallet.go rename to releases/sdks/go/pkg/models/shared/v2wallet.go diff --git a/libs/clients/go/pkg/models/shared/v2walletsubject.go b/releases/sdks/go/pkg/models/shared/v2walletsubject.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2walletsubject.go rename to releases/sdks/go/pkg/models/shared/v2walletsubject.go diff --git a/libs/clients/go/pkg/models/shared/v2walletwithbalances.go b/releases/sdks/go/pkg/models/shared/v2walletwithbalances.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2walletwithbalances.go rename to releases/sdks/go/pkg/models/shared/v2walletwithbalances.go diff --git a/libs/clients/go/pkg/models/shared/v2workflow.go b/releases/sdks/go/pkg/models/shared/v2workflow.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2workflow.go rename to releases/sdks/go/pkg/models/shared/v2workflow.go diff --git a/libs/clients/go/pkg/models/shared/v2workflowconfig.go b/releases/sdks/go/pkg/models/shared/v2workflowconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2workflowconfig.go rename to releases/sdks/go/pkg/models/shared/v2workflowconfig.go diff --git a/libs/clients/go/pkg/models/shared/v2workflowinstance.go b/releases/sdks/go/pkg/models/shared/v2workflowinstance.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2workflowinstance.go rename to releases/sdks/go/pkg/models/shared/v2workflowinstance.go diff --git a/libs/clients/go/pkg/models/shared/v2workflowinstancehistory.go b/releases/sdks/go/pkg/models/shared/v2workflowinstancehistory.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2workflowinstancehistory.go rename to releases/sdks/go/pkg/models/shared/v2workflowinstancehistory.go diff --git a/libs/clients/go/pkg/models/shared/v2workflowinstancehistorystage.go b/releases/sdks/go/pkg/models/shared/v2workflowinstancehistorystage.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2workflowinstancehistorystage.go rename to releases/sdks/go/pkg/models/shared/v2workflowinstancehistorystage.go diff --git a/libs/clients/go/pkg/models/shared/v2workflowinstancehistorystageinput.go b/releases/sdks/go/pkg/models/shared/v2workflowinstancehistorystageinput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2workflowinstancehistorystageinput.go rename to releases/sdks/go/pkg/models/shared/v2workflowinstancehistorystageinput.go diff --git a/libs/clients/go/pkg/models/shared/v2workflowinstancehistorystageoutput.go b/releases/sdks/go/pkg/models/shared/v2workflowinstancehistorystageoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/v2workflowinstancehistorystageoutput.go rename to releases/sdks/go/pkg/models/shared/v2workflowinstancehistorystageoutput.go diff --git a/libs/clients/go/pkg/models/shared/version.go b/releases/sdks/go/pkg/models/shared/version.go similarity index 100% rename from libs/clients/go/pkg/models/shared/version.go rename to releases/sdks/go/pkg/models/shared/version.go diff --git a/libs/clients/go/pkg/models/shared/volume.go b/releases/sdks/go/pkg/models/shared/volume.go similarity index 100% rename from libs/clients/go/pkg/models/shared/volume.go rename to releases/sdks/go/pkg/models/shared/volume.go diff --git a/libs/clients/go/pkg/models/shared/wallet.go b/releases/sdks/go/pkg/models/shared/wallet.go similarity index 100% rename from libs/clients/go/pkg/models/shared/wallet.go rename to releases/sdks/go/pkg/models/shared/wallet.go diff --git a/libs/clients/go/pkg/models/shared/walletserrorresponse.go b/releases/sdks/go/pkg/models/shared/walletserrorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/walletserrorresponse.go rename to releases/sdks/go/pkg/models/shared/walletserrorresponse.go diff --git a/libs/clients/go/pkg/models/shared/walletstransaction.go b/releases/sdks/go/pkg/models/shared/walletstransaction.go similarity index 100% rename from libs/clients/go/pkg/models/shared/walletstransaction.go rename to releases/sdks/go/pkg/models/shared/walletstransaction.go diff --git a/libs/clients/go/pkg/models/shared/walletsubject.go b/releases/sdks/go/pkg/models/shared/walletsubject.go similarity index 100% rename from libs/clients/go/pkg/models/shared/walletsubject.go rename to releases/sdks/go/pkg/models/shared/walletsubject.go diff --git a/libs/clients/go/pkg/models/shared/walletsvolume.go b/releases/sdks/go/pkg/models/shared/walletsvolume.go similarity index 100% rename from libs/clients/go/pkg/models/shared/walletsvolume.go rename to releases/sdks/go/pkg/models/shared/walletsvolume.go diff --git a/libs/clients/go/pkg/models/shared/walletwithbalances.go b/releases/sdks/go/pkg/models/shared/walletwithbalances.go similarity index 100% rename from libs/clients/go/pkg/models/shared/walletwithbalances.go rename to releases/sdks/go/pkg/models/shared/walletwithbalances.go diff --git a/libs/clients/go/pkg/models/shared/webhooksconfig.go b/releases/sdks/go/pkg/models/shared/webhooksconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/webhooksconfig.go rename to releases/sdks/go/pkg/models/shared/webhooksconfig.go diff --git a/libs/clients/go/pkg/models/shared/webhookserrorresponse.go b/releases/sdks/go/pkg/models/shared/webhookserrorresponse.go similarity index 100% rename from libs/clients/go/pkg/models/shared/webhookserrorresponse.go rename to releases/sdks/go/pkg/models/shared/webhookserrorresponse.go diff --git a/libs/clients/go/pkg/models/shared/webhookserrorsenum.go b/releases/sdks/go/pkg/models/shared/webhookserrorsenum.go similarity index 100% rename from libs/clients/go/pkg/models/shared/webhookserrorsenum.go rename to releases/sdks/go/pkg/models/shared/webhookserrorsenum.go diff --git a/libs/clients/go/pkg/models/shared/wiseconfig.go b/releases/sdks/go/pkg/models/shared/wiseconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/wiseconfig.go rename to releases/sdks/go/pkg/models/shared/wiseconfig.go diff --git a/libs/clients/go/pkg/models/shared/workflow.go b/releases/sdks/go/pkg/models/shared/workflow.go similarity index 100% rename from libs/clients/go/pkg/models/shared/workflow.go rename to releases/sdks/go/pkg/models/shared/workflow.go diff --git a/libs/clients/go/pkg/models/shared/workflowconfig.go b/releases/sdks/go/pkg/models/shared/workflowconfig.go similarity index 100% rename from libs/clients/go/pkg/models/shared/workflowconfig.go rename to releases/sdks/go/pkg/models/shared/workflowconfig.go diff --git a/libs/clients/go/pkg/models/shared/workflowinstance.go b/releases/sdks/go/pkg/models/shared/workflowinstance.go similarity index 100% rename from libs/clients/go/pkg/models/shared/workflowinstance.go rename to releases/sdks/go/pkg/models/shared/workflowinstance.go diff --git a/libs/clients/go/pkg/models/shared/workflowinstancehistory.go b/releases/sdks/go/pkg/models/shared/workflowinstancehistory.go similarity index 100% rename from libs/clients/go/pkg/models/shared/workflowinstancehistory.go rename to releases/sdks/go/pkg/models/shared/workflowinstancehistory.go diff --git a/libs/clients/go/pkg/models/shared/workflowinstancehistorystage.go b/releases/sdks/go/pkg/models/shared/workflowinstancehistorystage.go similarity index 100% rename from libs/clients/go/pkg/models/shared/workflowinstancehistorystage.go rename to releases/sdks/go/pkg/models/shared/workflowinstancehistorystage.go diff --git a/libs/clients/go/pkg/models/shared/workflowinstancehistorystageinput.go b/releases/sdks/go/pkg/models/shared/workflowinstancehistorystageinput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/workflowinstancehistorystageinput.go rename to releases/sdks/go/pkg/models/shared/workflowinstancehistorystageinput.go diff --git a/libs/clients/go/pkg/models/shared/workflowinstancehistorystageoutput.go b/releases/sdks/go/pkg/models/shared/workflowinstancehistorystageoutput.go similarity index 100% rename from libs/clients/go/pkg/models/shared/workflowinstancehistorystageoutput.go rename to releases/sdks/go/pkg/models/shared/workflowinstancehistorystageoutput.go diff --git a/libs/clients/go/pkg/types/bigint.go b/releases/sdks/go/pkg/types/bigint.go similarity index 100% rename from libs/clients/go/pkg/types/bigint.go rename to releases/sdks/go/pkg/types/bigint.go diff --git a/libs/clients/go/pkg/types/date.go b/releases/sdks/go/pkg/types/date.go similarity index 100% rename from libs/clients/go/pkg/types/date.go rename to releases/sdks/go/pkg/types/date.go diff --git a/libs/clients/go/pkg/types/datetime.go b/releases/sdks/go/pkg/types/datetime.go similarity index 100% rename from libs/clients/go/pkg/types/datetime.go rename to releases/sdks/go/pkg/types/datetime.go diff --git a/libs/clients/go/pkg/types/decimal.go b/releases/sdks/go/pkg/types/decimal.go similarity index 100% rename from libs/clients/go/pkg/types/decimal.go rename to releases/sdks/go/pkg/types/decimal.go diff --git a/libs/clients/go/pkg/types/pointers.go b/releases/sdks/go/pkg/types/pointers.go similarity index 100% rename from libs/clients/go/pkg/types/pointers.go rename to releases/sdks/go/pkg/types/pointers.go diff --git a/libs/clients/go/pkg/utils/contenttype.go b/releases/sdks/go/pkg/utils/contenttype.go similarity index 100% rename from libs/clients/go/pkg/utils/contenttype.go rename to releases/sdks/go/pkg/utils/contenttype.go diff --git a/libs/clients/go/pkg/utils/form.go b/releases/sdks/go/pkg/utils/form.go similarity index 100% rename from libs/clients/go/pkg/utils/form.go rename to releases/sdks/go/pkg/utils/form.go diff --git a/libs/clients/go/pkg/utils/headers.go b/releases/sdks/go/pkg/utils/headers.go similarity index 100% rename from libs/clients/go/pkg/utils/headers.go rename to releases/sdks/go/pkg/utils/headers.go diff --git a/libs/clients/go/pkg/utils/json.go b/releases/sdks/go/pkg/utils/json.go similarity index 100% rename from libs/clients/go/pkg/utils/json.go rename to releases/sdks/go/pkg/utils/json.go diff --git a/libs/clients/go/pkg/utils/pathparams.go b/releases/sdks/go/pkg/utils/pathparams.go similarity index 100% rename from libs/clients/go/pkg/utils/pathparams.go rename to releases/sdks/go/pkg/utils/pathparams.go diff --git a/libs/clients/go/pkg/utils/queryparams.go b/releases/sdks/go/pkg/utils/queryparams.go similarity index 100% rename from libs/clients/go/pkg/utils/queryparams.go rename to releases/sdks/go/pkg/utils/queryparams.go diff --git a/libs/clients/go/pkg/utils/requestbody.go b/releases/sdks/go/pkg/utils/requestbody.go similarity index 100% rename from libs/clients/go/pkg/utils/requestbody.go rename to releases/sdks/go/pkg/utils/requestbody.go diff --git a/libs/clients/go/pkg/utils/retries.go b/releases/sdks/go/pkg/utils/retries.go similarity index 100% rename from libs/clients/go/pkg/utils/retries.go rename to releases/sdks/go/pkg/utils/retries.go diff --git a/libs/clients/go/pkg/utils/security.go b/releases/sdks/go/pkg/utils/security.go similarity index 100% rename from libs/clients/go/pkg/utils/security.go rename to releases/sdks/go/pkg/utils/security.go diff --git a/libs/clients/go/pkg/utils/utils.go b/releases/sdks/go/pkg/utils/utils.go similarity index 100% rename from libs/clients/go/pkg/utils/utils.go rename to releases/sdks/go/pkg/utils/utils.go diff --git a/libs/clients/go/reconciliation.go b/releases/sdks/go/reconciliation.go similarity index 100% rename from libs/clients/go/reconciliation.go rename to releases/sdks/go/reconciliation.go diff --git a/libs/clients/go/search.go b/releases/sdks/go/search.go similarity index 100% rename from libs/clients/go/search.go rename to releases/sdks/go/search.go diff --git a/libs/clients/go/wallets.go b/releases/sdks/go/wallets.go similarity index 100% rename from libs/clients/go/wallets.go rename to releases/sdks/go/wallets.go diff --git a/libs/clients/go/webhooks.go b/releases/sdks/go/webhooks.go similarity index 100% rename from libs/clients/go/webhooks.go rename to releases/sdks/go/webhooks.go diff --git a/releases/versions/v1.0/main.yaml b/releases/versions/v1.0/main.yaml deleted file mode 100644 index d0fa1554e1..0000000000 --- a/releases/versions/v1.0/main.yaml +++ /dev/null @@ -1,12 +0,0 @@ -version: v1.0.3 -components: - orchestration: v0.2.1 - reconciliation: v0.1.0 - search: v0.10.0 - auth: v0.4.4 - wallets: v0.4.6 - webhooks: v0.7.1 - payments: v0.9.7 - stargate: v0.1.10 - gateway: v0.1.7 - ledger: v1.10.14 diff --git a/releases/versions/v1.0/openapi.json b/releases/versions/v1.0/openapi.json deleted file mode 100644 index 651aa7dbe3..0000000000 --- a/releases/versions/v1.0/openapi.json +++ /dev/null @@ -1,6957 +0,0 @@ -{ - "openapi": "3.0.3", - "info": { - "title": "Formance Stack API", - "description": "Open, modular foundation for unique payments flows\n\n# Introduction\nThis API is documented in **OpenAPI format**.\n\n# Authentication\nFormance Stack offers one forms of authentication:\n - OAuth2\nOAuth2 - an open protocol to allow secure authorization in a simple\nand standard method from web, mobile and desktop applications.\n\n", - "contact": { - "name": "Formance", - "url": "https://www.formance.com", - "email": "support@formance.com" - }, - "x-logo": { - "url": "https://avatars.githubusercontent.com/u/84325077?s=200&v=4", - "altText": "Formance" - }, - "version": "v1.0.3" - }, - "servers": [ - { - "url": "http://localhost", - "description": "local server" - } - ], - "paths": { - "/versions": { - "get": { - "summary": "Show stack version information", - "operationId": "getVersions", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetVersionsResponse" - } - } - } - } - } - } - }, - "/api/auth/_info": { - "get": { - "summary": "Get server info", - "operationId": "getServerInfo", - "tags": [ - "Auth" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - } - } - } - }, - "/api/auth/clients": { - "get": { - "summary": "List clients", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "listClients", - "responses": { - "200": { - "description": "List of clients", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListClientsResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "createClient", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateClientRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Client created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateClientResponse" - } - } - } - } - } - } - }, - "/api/auth/clients/{clientId}": { - "get": { - "summary": "Read client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "readClient", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Retrieved client", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReadClientResponse" - } - } - } - } - } - }, - "put": { - "summary": "Update client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "updateClient", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateClientRequest" - } - } - } - }, - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Updated client", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateClientResponse" - } - } - } - } - } - }, - "delete": { - "summary": "Delete client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "deleteClient", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Client deleted" - } - } - } - }, - "/api/auth/clients/{clientId}/secrets": { - "post": { - "summary": "Add a secret to a client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "createSecret", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSecretRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Created secret", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSecretResponse" - } - } - } - } - } - } - }, - "/api/auth/clients/{clientId}/secrets/{secretId}": { - "delete": { - "summary": "Delete a secret from a client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "deleteSecret", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Secret ID", - "in": "path", - "name": "secretId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Secret deleted" - } - } - } - }, - "/api/auth/clients/{clientId}/scopes/{scopeId}": { - "put": { - "summary": "Add scope to client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "addScopeToClient", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Scope ID", - "in": "path", - "name": "scopeId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Scope added to client" - } - } - }, - "delete": { - "summary": "Delete scope from client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "deleteScopeFromClient", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Scope ID", - "in": "path", - "name": "scopeId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Scope deleted from client" - } - } - } - }, - "/api/auth/scopes": { - "get": { - "summary": "List scopes", - "tags": [ - "Auth", - "Scopes" - ], - "description": "List Scopes", - "operationId": "listScopes", - "responses": { - "200": { - "description": "List of scopes", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListScopesResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create scope", - "tags": [ - "Auth", - "Scopes" - ], - "description": "Create scope", - "operationId": "createScope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateScopeRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Created scope", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateScopeResponse" - } - } - } - } - } - } - }, - "/api/auth/scopes/{scopeId}": { - "get": { - "summary": "Read scope", - "tags": [ - "Auth", - "Scopes" - ], - "description": "Read scope", - "operationId": "readScope", - "parameters": [ - { - "description": "Scope ID", - "in": "path", - "name": "scopeId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Retrieved scope", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReadScopeResponse" - } - } - } - } - } - }, - "put": { - "summary": "Update scope", - "tags": [ - "Auth", - "Scopes" - ], - "description": "Update scope", - "operationId": "updateScope", - "parameters": [ - { - "description": "Scope ID", - "in": "path", - "name": "scopeId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateScopeRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Updated scope", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateScopeResponse" - } - } - } - } - } - }, - "delete": { - "summary": "Delete scope", - "tags": [ - "Auth", - "Scopes" - ], - "description": "Delete scope", - "operationId": "deleteScope", - "parameters": [ - { - "description": "Scope ID", - "in": "path", - "name": "scopeId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Scope deleted" - } - } - } - }, - "/api/auth/scopes/{scopeId}/transient/{transientScopeId}": { - "put": { - "summary": "Add a transient scope to a scope", - "tags": [ - "Auth", - "Scopes" - ], - "description": "Add a transient scope to a scope", - "operationId": "addTransientScope", - "parameters": [ - { - "description": "Scope ID", - "in": "path", - "name": "scopeId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Transient scope ID", - "in": "path", - "name": "transientScopeId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Scope added" - } - } - }, - "delete": { - "summary": "Delete a transient scope from a scope", - "tags": [ - "Auth", - "Scopes" - ], - "description": "Delete a transient scope from a scope", - "operationId": "deleteTransientScope", - "parameters": [ - { - "description": "Scope ID", - "in": "path", - "name": "scopeId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Transient scope ID", - "in": "path", - "name": "transientScopeId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Transient scope deleted" - } - } - } - }, - "/api/auth/users": { - "get": { - "summary": "List users", - "tags": [ - "Auth", - "Users" - ], - "description": "List users", - "operationId": "listUsers", - "responses": { - "200": { - "description": "List of users", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListUsersResponse" - } - } - } - } - } - } - }, - "/api/auth/users/{userId}": { - "get": { - "summary": "Read user", - "tags": [ - "Auth", - "Users" - ], - "description": "Read user", - "operationId": "readUser", - "parameters": [ - { - "description": "User ID", - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Retrieved user", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReadUserResponse" - } - } - } - } - } - } - }, - "/api/payments/_info": { - "get": { - "summary": "Get server info", - "operationId": "paymentsgetServerInfo", - "tags": [ - "Payments" - ], - "responses": { - "200": { - "$ref": "#/components/responses/ServerInfo" - } - } - } - }, - "/api/payments/payments": { - "get": { - "summary": "List payments", - "operationId": "listPayments", - "tags": [ - "Payments" - ], - "parameters": [ - { - "$ref": "#/components/parameters/PageSize" - }, - { - "$ref": "#/components/parameters/Cursor" - }, - { - "$ref": "#/components/parameters/Sort" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Payments" - } - } - } - }, - "/api/payments/payments/{paymentId}": { - "get": { - "summary": "Get a payment", - "tags": [ - "Payments" - ], - "operationId": "getPayment", - "parameters": [ - { - "$ref": "#/components/parameters/PaymentId" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Payment" - } - } - } - }, - "/api/payments/payments/{paymentId}/metadata": { - "patch": { - "summary": "Update metadata", - "tags": [ - "Payments" - ], - "operationId": "updateMetadata", - "parameters": [ - { - "$ref": "#/components/parameters/PaymentId" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/UpdateMetadata" - }, - "responses": { - "204": { - "$ref": "#/components/responses/NoContent" - } - } - } - }, - "/api/payments/accounts": { - "get": { - "summary": "List accounts", - "operationId": "listAccounts", - "tags": [ - "Payments" - ], - "parameters": [ - { - "$ref": "#/components/parameters/PageSize" - }, - { - "$ref": "#/components/parameters/Cursor" - }, - { - "$ref": "#/components/parameters/Sort" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Accounts" - } - } - } - }, - "/api/payments/accounts/{accountId}": { - "get": { - "summary": "Get an account", - "tags": [ - "Payments" - ], - "operationId": "getAccount", - "parameters": [ - { - "$ref": "#/components/parameters/AccountId" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Account" - } - } - } - }, - "/api/payments/accounts/{accountId}/balances": { - "get": { - "summary": "Get account balances", - "operationId": "getAccountBalances", - "tags": [ - "Payments" - ], - "parameters": [ - { - "$ref": "#/components/parameters/AccountId" - }, - { - "name": "limit", - "in": "query", - "description": "The maximum number of results to return per page.", - "required": false, - "schema": { - "type": "integer", - "format": "int64" - } - }, - { - "name": "asset", - "in": "query", - "description": "Filter balances by currency.\nIf not specified, all account's balances will be returned.\n", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "from", - "in": "query", - "description": "Filter balances by date.\nIf not specified, all account's balances will be returned.\n", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "to", - "in": "query", - "description": "Filter balances by date.\nIf not specified, default will be set to now.\n", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "$ref": "#/components/parameters/PageSize" - }, - { - "$ref": "#/components/parameters/Cursor" - }, - { - "$ref": "#/components/parameters/Sort" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/AccountBalances" - } - } - } - }, - "/api/payments/connectors": { - "get": { - "summary": "List all installed connectors", - "operationId": "listAllConnectors", - "tags": [ - "Payments" - ], - "description": "List all installed connectors.", - "responses": { - "200": { - "$ref": "#/components/responses/Connectors" - } - } - } - }, - "/api/payments/connectors/configs": { - "get": { - "summary": "List the configs of each available connector", - "operationId": "listConfigsAvailableConnectors", - "tags": [ - "Payments" - ], - "description": "List the configs of each available connector.", - "responses": { - "200": { - "$ref": "#/components/responses/ConnectorsConfigs" - } - } - } - }, - "/api/payments/connectors/{connector}": { - "post": { - "summary": "Install a connector", - "tags": [ - "Payments" - ], - "operationId": "installConnector", - "description": "Install a connector by its name and config.", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/ConnectorConfig" - }, - "responses": { - "204": { - "$ref": "#/components/responses/NoContent" - } - } - }, - "delete": { - "summary": "Uninstall a connector", - "operationId": "uninstallConnector", - "tags": [ - "Payments" - ], - "description": "Uninstall a connector by its name.", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - } - ], - "responses": { - "204": { - "$ref": "#/components/responses/NoContent" - } - } - } - }, - "/api/payments/connectors/{connector}/config": { - "get": { - "summary": "Read the config of a connector", - "operationId": "readConnectorConfig", - "tags": [ - "Payments" - ], - "description": "Read connector config", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/ConnectorConfig" - } - } - } - }, - "/api/payments/connectors/{connector}/reset": { - "post": { - "summary": "Reset a connector", - "operationId": "resetConnector", - "tags": [ - "Payments" - ], - "description": "Reset a connector by its name.\nIt will remove the connector and ALL PAYMENTS generated with it.\n", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - } - ], - "responses": { - "204": { - "$ref": "#/components/responses/NoContent" - } - } - } - }, - "/api/payments/connectors/{connector}/tasks": { - "get": { - "summary": "List tasks from a connector", - "tags": [ - "Payments" - ], - "operationId": "listConnectorTasks", - "description": "List all tasks associated with this connector.", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - }, - { - "$ref": "#/components/parameters/PageSize" - }, - { - "$ref": "#/components/parameters/Cursor" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Tasks" - } - } - } - }, - "/api/payments/connectors/{connector}/tasks/{taskId}": { - "get": { - "summary": "Read a specific task of the connector", - "tags": [ - "Payments" - ], - "operationId": "getConnectorTask", - "description": "Get a specific task associated to the connector.", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - }, - { - "$ref": "#/components/parameters/TaskId" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Task" - } - } - } - }, - "/api/payments/connectors/{connector}/transfers": { - "post": { - "summary": "Transfer funds between Connector accounts", - "tags": [ - "Payments" - ], - "operationId": "connectorsTransfer", - "description": "Execute a transfer between two accounts.", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/Transfer" - }, - "responses": { - "200": { - "$ref": "#/components/responses/Transfer" - } - } - }, - "get": { - "summary": "List transfers and their statuses", - "tags": [ - "Payments" - ], - "operationId": "listConnectorsTransfers", - "description": "List transfers", - "parameters": [ - { - "$ref": "#/components/parameters/Connector" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Transfers" - } - } - } - }, - "/api/payments/connectors/stripe/transfers": { - "post": { - "summary": "Transfer funds between Stripe accounts", - "tags": [ - "Payments" - ], - "operationId": "connectorsStripeTransfer", - "description": "Execute a transfer between two Stripe accounts.", - "requestBody": { - "$ref": "#/components/requestBodies/StripeTransfer" - }, - "responses": { - "200": { - "$ref": "#/components/responses/StripeTransfer" - } - } - } - }, - "/api/search/_info": { - "get": { - "summary": "Get server info", - "operationId": "searchgetServerInfo", - "tags": [ - "Search" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - } - } - } - }, - "/api/search/": { - "post": { - "summary": "Search", - "tags": [ - "Search" - ], - "operationId": "search", - "description": "ElasticSearch query engine", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Query" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "default": { - "description": "Error", - "content": {} - } - } - } - }, - "/api/webhooks/configs": { - "get": { - "summary": "Get many configs", - "description": "Sorted by updated date descending", - "operationId": "getManyConfigs", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "query", - "description": "Optional filter by Config ID", - "required": false, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - }, - { - "name": "endpoint", - "in": "query", - "description": "Optional filter by endpoint URL", - "required": false, - "schema": { - "type": "string", - "example": "https://example.com" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "post": { - "summary": "Insert a new config", - "description": "Insert a new webhooks config.\n\nThe endpoint should be a valid https URL and be unique.\n\nThe secret is the endpoint's verification secret.\nIf not passed or empty, a secret is automatically generated.\nThe format is a random string of bytes of size 24, base64 encoded. (larger size after encoding)\n\nAll eventTypes are converted to lower-case when inserted.\n", - "operationId": "insertConfig", - "tags": [ - "Webhooks" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigUser" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Config created successfully.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}": { - "delete": { - "summary": "Delete one config", - "description": "Delete a webhooks config by ID.", - "operationId": "deleteConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Config successfully deleted." - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/test": { - "get": { - "summary": "Test one config", - "description": "Test a config by sending a webhook to its endpoint.", - "operationId": "testConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AttemptResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/activate": { - "put": { - "summary": "Activate one config", - "description": "Activate a webhooks config by ID, to start receiving webhooks to its endpoint.", - "operationId": "activateConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Config successfully activated.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/deactivate": { - "put": { - "summary": "Deactivate one config", - "description": "Deactivate a webhooks config by ID, to stop receiving webhooks to its endpoint.", - "operationId": "deactivateConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Config successfully deactivated.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/secret/change": { - "put": { - "summary": "Change the signing secret of a config", - "description": "Change the signing secret of the endpoint of a webhooks config.\n\nIf not passed or empty, a secret is automatically generated.\nThe format is a random string of bytes of size 24, base64 encoded. (larger size after encoding)\n", - "operationId": "changeConfigSecret", - "tags": [ - "Webhooks" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigChangeSecret" - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Secret successfully changed.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/_info": { - "get": { - "summary": "Get server info", - "operationId": "walletsgetServerInfo", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/transactions": { - "get": { - "operationId": "getTransactions", - "parameters": [ - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page", - "example": 100, - "schema": { - "type": "integer", - "maximum": 1000, - "minimum": 1, - "default": 15 - } - }, - { - "name": "walletID", - "in": "query", - "description": "A wallet ID to filter on", - "example": "wallet1", - "schema": { - "type": "string" - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when the cursor is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - } - ], - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetTransactionsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets": { - "get": { - "summary": "List all wallets", - "operationId": "listWallets", - "parameters": [ - { - "name": "name", - "in": "query", - "description": "Filter on wallet name", - "example": "wallet1", - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "Filter wallets by metadata key value pairs. Nested objects can be used as seen in the example below.", - "style": "deepObject", - "explode": true, - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": { - "type": "string" - } - }, - "example": { - "admin": "true" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page", - "example": 100, - "schema": { - "type": "integer", - "maximum": 1000, - "minimum": 1, - "default": 15 - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when the pagination token is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - } - ], - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListWalletsResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create a new wallet", - "operationId": "createWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWalletRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Wallet created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWalletResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "get": { - "summary": "Get a wallet", - "operationId": "getWallet", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Wallet", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWalletResponse" - } - } - } - }, - "404": { - "description": "Wallet not found" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - }, - "patch": { - "summary": "Update a wallet", - "operationId": "updateWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "metadata" - ], - "properties": { - "metadata": { - "type": "object", - "description": "Custom metadata to attach to this wallet.", - "additionalProperties": { - "type": "string" - } - } - } - } - } - } - }, - "responses": { - "204": { - "description": "Wallet successfully updated" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/summary": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "get": { - "summary": "Get wallet summary", - "operationId": "getWalletSummary", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Wallet summary", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWalletSummaryResponse" - } - } - } - }, - "404": { - "description": "Wallet not found" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/balances": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "get": { - "summary": "List balances of a wallet", - "operationId": "listBalances", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Balances list", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListBalancesResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create a balance", - "operationId": "createBalance", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateBalanceRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Created balance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateBalanceResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/balances/{balanceName}": { - "get": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "balanceName", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "summary": "Get detailed balance", - "operationId": "getBalance", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Balance summary", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetBalanceResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/debit": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "post": { - "summary": "Debit a wallet", - "operationId": "debitWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DebitWalletRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Wallet successfully debited as a pending hold", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DebitWalletResponse" - } - } - } - }, - "204": { - "description": "Wallet successfully debited" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/credit": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "post": { - "summary": "Credit a wallet", - "operationId": "creditWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditWalletRequest" - } - } - } - }, - "responses": { - "204": { - "description": "Wallet successfully credited" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds": { - "get": { - "summary": "Get all holds for a wallet", - "tags": [ - "Wallets" - ], - "operationId": "getHolds", - "parameters": [ - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page", - "example": 100, - "schema": { - "type": "integer", - "maximum": 1000, - "minimum": 1, - "default": 15 - } - }, - { - "name": "walletID", - "in": "query", - "description": "The wallet to filter on", - "example": "wallet1", - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "Filter holds by metadata key value pairs. Nested objects can be used as seen in the example below.", - "style": "deepObject", - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": { - "type": "string" - } - }, - "example": { - "admin": "true" - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when the pagination token is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - } - ], - "responses": { - "200": { - "description": "Holds", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetHoldsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds/{holdID}": { - "get": { - "summary": "Get a hold", - "tags": [ - "Wallets" - ], - "operationId": "getHold", - "parameters": [ - { - "name": "holdID", - "in": "path", - "schema": { - "type": "string" - }, - "required": true, - "description": "The hold ID" - } - ], - "responses": { - "200": { - "description": "Holds", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetHoldResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds/{hold_id}/confirm": { - "post": { - "parameters": [ - { - "name": "hold_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfirmHoldRequest" - } - } - } - }, - "summary": "Confirm a hold", - "tags": [ - "Wallets" - ], - "operationId": "confirmHold", - "responses": { - "204": { - "description": "Hold successfully confirmed, funds moved back to initial destination" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds/{hold_id}/void": { - "parameters": [ - { - "name": "hold_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "post": { - "summary": "Cancel a hold", - "operationId": "voidHold", - "tags": [ - "Wallets" - ], - "responses": { - "204": { - "description": "Hold successfully cancelled, funds returned to wallet" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/orchestration/_info": { - "get": { - "summary": "Get server info", - "operationId": "orchestrationgetServerInfo", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/triggers": { - "get": { - "summary": "List triggers", - "operationId": "listTriggers", - "description": "List triggers", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of triggers", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListTriggersResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "post": { - "summary": "Create trigger", - "operationId": "createTrigger", - "description": "Create trigger", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggerData" - } - } - } - }, - "responses": { - "201": { - "description": "Created trigger", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateTriggerResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/triggers/{triggerID}": { - "parameters": [ - { - "name": "triggerID", - "description": "The trigger id", - "in": "path", - "schema": { - "type": "string" - }, - "required": true - } - ], - "get": { - "summary": "Read trigger", - "operationId": "readTrigger", - "description": "Read trigger", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "A specific trigger", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReadTriggerResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "delete": { - "summary": "Delete trigger", - "operationId": "deleteTrigger", - "description": "Read trigger", - "tags": [ - "Orchestration" - ], - "responses": { - "204": { - "description": "Trigger deleted" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/triggers/{triggerID}/occurrences": { - "parameters": [ - { - "name": "triggerID", - "description": "The trigger id", - "in": "path", - "schema": { - "type": "string" - }, - "required": true - } - ], - "get": { - "summary": "List triggers occurrences", - "operationId": "listTriggersOccurrences", - "description": "List triggers occurrences", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of triggers occurrences", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListTriggersOccurrencesResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/workflows": { - "get": { - "summary": "List registered workflows", - "operationId": "listWorkflows", - "description": "List registered workflows", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of workflows", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListWorkflowsResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "post": { - "summary": "Create workflow", - "operationId": "createWorkflow", - "description": "Create a workflow", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWorkflowRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Created workflow", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/workflows/{flowId}": { - "parameters": [ - { - "in": "path", - "description": "The flow id", - "name": "flowId", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a flow by id", - "tags": [ - "Orchestration" - ], - "description": "Get a flow by id", - "operationId": "getWorkflow", - "responses": { - "200": { - "description": "The workflow", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "delete": { - "summary": "Delete a flow by id", - "tags": [ - "Orchestration" - ], - "description": "Delete a flow by id", - "operationId": "deleteWorkflow", - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/workflows/{workflowID}/instances": { - "parameters": [ - { - "in": "path", - "description": "The flow id", - "name": "workflowID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "post": { - "description": "Run workflow", - "summary": "Run workflow", - "operationId": "runWorkflow", - "parameters": [ - { - "in": "query", - "name": "wait", - "required": false, - "description": "Wait end of the workflow before return", - "schema": { - "type": "boolean" - } - } - ], - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RunWorkflowRequest" - } - } - } - }, - "responses": { - "201": { - "description": "The workflow instance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RunWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances": { - "get": { - "description": "List instances of a workflow", - "summary": "List instances of a workflow", - "operationId": "listInstances", - "parameters": [ - { - "in": "query", - "description": "A workflow id", - "name": "workflowID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": false - }, - { - "in": "query", - "description": "Filter running instances", - "name": "running", - "schema": { - "type": "boolean" - }, - "example": true, - "required": false - } - ], - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of workflow instances", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListRunsResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a workflow instance by id", - "description": "Get a workflow instance by id", - "operationId": "getInstance", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowInstanceResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/events": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "post": { - "summary": "Send an event to a running workflow", - "description": "Send an event to a running workflow", - "operationId": "sendEvent", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - } - } - } - } - } - }, - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/abort": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "put": { - "summary": "Cancel a running workflow", - "description": "Cancel a running workflow", - "operationId": "cancelEvent", - "tags": [ - "Orchestration" - ], - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/history": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a workflow instance history by id", - "description": "Get a workflow instance history by id", - "operationId": "getInstanceHistory", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance history", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowInstanceHistoryResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/stages/{number}/history": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - }, - { - "in": "path", - "description": "The stage number", - "name": "number", - "schema": { - "type": "integer" - }, - "example": 0, - "required": true - } - ], - "get": { - "summary": "Get a workflow instance stage history", - "description": "Get a workflow instance stage history", - "operationId": "getInstanceStageHistory", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance stage history", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowInstanceHistoryStageResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - } - }, - "components": { - "schemas": { - "Version": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "health": { - "type": "boolean" - } - }, - "required": [ - "name", - "version", - "health" - ] - }, - "GetVersionsResponse": { - "type": "object", - "properties": { - "region": { - "type": "string" - }, - "env": { - "type": "string" - }, - "versions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Version" - } - } - }, - "required": [ - "region", - "env", - "versions" - ] - }, - "Metadata": { - "type": "object", - "additionalProperties": {} - }, - "ClientOptions": { - "type": "object", - "properties": { - "public": { - "type": "boolean" - }, - "redirectUris": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "trusted": { - "type": "boolean" - }, - "postLogoutRedirectUris": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - } - }, - "required": [ - "name" - ] - }, - "ClientSecret": { - "type": "object", - "properties": { - "lastDigits": { - "type": "string" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - } - }, - "required": [ - "id", - "lastDigits", - "name" - ] - }, - "Client": { - "allOf": [ - { - "$ref": "#/components/schemas/ClientOptions" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientSecret" - } - } - }, - "required": [ - "id" - ] - } - ] - }, - "ScopeOptions": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - } - }, - "required": [ - "label" - ] - }, - "Scope": { - "allOf": [ - { - "$ref": "#/components/schemas/ScopeOptions" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "transient": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "id" - ] - } - ] - }, - "SecretOptions": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - } - }, - "required": [ - "name" - ] - }, - "Secret": { - "allOf": [ - { - "$ref": "#/components/schemas/SecretOptions" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "lastDigits": { - "type": "string" - }, - "clear": { - "type": "string" - } - }, - "required": [ - "id", - "lastDigits", - "clear" - ] - } - ] - }, - "User": { - "type": "object", - "properties": { - "id": { - "type": "string", - "example": "3bb03708-312f-48a0-821a-e765837dc2c4" - }, - "subject": { - "type": "string", - "example": "Jane Doe" - }, - "email": { - "type": "string", - "example": "user1@orga1.com" - } - } - }, - "CreateClientRequest": { - "$ref": "#/components/schemas/ClientOptions" - }, - "CreateClientResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Client" - } - } - }, - "ListClientsResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Client" - } - } - } - }, - "UpdateClientRequest": { - "$ref": "#/components/schemas/ClientOptions" - }, - "UpdateClientResponse": { - "$ref": "#/components/schemas/CreateClientResponse" - }, - "ReadClientResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Client" - } - } - }, - "ListScopesResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Scope" - } - } - } - }, - "CreateScopeRequest": { - "$ref": "#/components/schemas/ScopeOptions" - }, - "CreateScopeResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Scope" - } - } - }, - "ReadScopeResponse": { - "$ref": "#/components/schemas/CreateScopeResponse" - }, - "UpdateScopeRequest": { - "$ref": "#/components/schemas/ScopeOptions" - }, - "UpdateScopeResponse": { - "$ref": "#/components/schemas/CreateScopeResponse" - }, - "CreateSecretRequest": { - "$ref": "#/components/schemas/SecretOptions" - }, - "CreateSecretResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Secret" - } - } - }, - "ReadUserResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/User" - } - } - }, - "ListUsersResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/User" - } - } - } - }, - "ServerInfo": { - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "type": "string" - } - } - }, - "CursorBase": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - } - } - }, - "PaymentsCursor": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/CursorBase" - }, - { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Payment" - } - } - } - } - ] - } - } - }, - "AccountsCursor": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/CursorBase" - }, - { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Account" - } - } - } - } - ] - } - } - }, - "BalancesCursor": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/CursorBase" - }, - { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AccountBalance" - } - } - } - } - ] - } - } - }, - "TasksCursor": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/CursorBase" - }, - { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/TaskStripe" - }, - { - "$ref": "#/components/schemas/TaskWise" - }, - { - "$ref": "#/components/schemas/TaskCurrencyCloud" - }, - { - "$ref": "#/components/schemas/TaskDummyPay" - }, - { - "$ref": "#/components/schemas/TaskModulr" - }, - { - "$ref": "#/components/schemas/TaskBankingCircle" - }, - { - "$ref": "#/components/schemas/TaskMangoPay" - }, - { - "$ref": "#/components/schemas/TaskMoneycorp" - } - ] - } - } - } - } - ] - } - } - }, - "ConnectorConfigResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/ConnectorConfig" - } - } - }, - "PaymentResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Payment" - } - } - }, - "AccountResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Account" - } - } - }, - "ConnectorsResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "provider": { - "$ref": "#/components/schemas/Connector" - }, - "enabled": { - "type": "boolean", - "example": true - } - } - } - } - } - }, - "ConnectorsConfigsResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "type": "object", - "required": [ - "connector" - ], - "properties": { - "connector": { - "type": "object", - "required": [ - "key" - ], - "properties": { - "key": { - "type": "object", - "required": [ - "dataType", - "required" - ], - "properties": { - "dataType": { - "type": "string" - }, - "required": { - "type": "boolean" - } - } - } - } - } - } - } - } - }, - "TaskResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "oneOf": [ - { - "$ref": "#/components/schemas/TaskStripe" - }, - { - "$ref": "#/components/schemas/TaskWise" - }, - { - "$ref": "#/components/schemas/TaskCurrencyCloud" - }, - { - "$ref": "#/components/schemas/TaskDummyPay" - }, - { - "$ref": "#/components/schemas/TaskModulr" - }, - { - "$ref": "#/components/schemas/TaskBankingCircle" - }, - { - "$ref": "#/components/schemas/TaskMangoPay" - }, - { - "$ref": "#/components/schemas/TaskMoneycorp" - } - ] - } - } - }, - "TransferResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "TransfersResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0 - }, - "asset": { - "type": "string" - }, - "destination": { - "type": "string" - }, - "source": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "status": { - "type": "string" - }, - "error": { - "type": "string" - } - } - } - } - } - }, - "Connector": { - "type": "string", - "enum": [ - "STRIPE", - "DUMMY-PAY", - "WISE", - "MODULR", - "CURRENCY-CLOUD", - "BANKING-CIRCLE", - "MANGOPAY", - "MONEYCORP" - ] - }, - "ConnectorConfig": { - "anyOf": [ - { - "$ref": "#/components/schemas/StripeConfig" - }, - { - "$ref": "#/components/schemas/DummyPayConfig" - }, - { - "$ref": "#/components/schemas/WiseConfig" - }, - { - "$ref": "#/components/schemas/ModulrConfig" - }, - { - "$ref": "#/components/schemas/CurrencyCloudConfig" - }, - { - "$ref": "#/components/schemas/BankingCircleConfig" - }, - { - "$ref": "#/components/schemas/MangoPayConfig" - }, - { - "$ref": "#/components/schemas/MoneycorpConfig" - } - ] - }, - "StripeConfig": { - "type": "object", - "required": [ - "apiKey" - ], - "properties": { - "pollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will try to fetch new BalanceTransaction objects from Stripe API.\n", - "default": "120s" - }, - "apiKey": { - "type": "string", - "example": "XXX" - }, - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 0, - "description": "Number of BalanceTransaction to fetch at each polling interval.\n", - "default": 10, - "example": 50 - } - } - }, - "DummyPayConfig": { - "type": "object", - "required": [ - "directory" - ], - "properties": { - "filePollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will try to fetch new payment objects from the directory", - "default": "10s" - }, - "fileGenerationPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will create new payment objects in the directory", - "default": "10s" - }, - "directory": { - "type": "string", - "example": "/tmp/dummypay" - } - } - }, - "WiseConfig": { - "type": "object", - "required": [ - "apiKey" - ], - "properties": { - "apiKey": { - "type": "string", - "example": "XXX" - }, - "pollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will try to fetch new BalanceTransaction objects from Stripe API.\n", - "default": "120s" - } - } - }, - "ModulrConfig": { - "type": "object", - "required": [ - "apiKey", - "apiSecret" - ], - "properties": { - "apiKey": { - "type": "string", - "example": "XXX" - }, - "apiSecret": { - "type": "string", - "example": "XXX" - }, - "endpoint": { - "type": "string", - "example": "XXX" - }, - "pollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will try to fetch new BalanceTransaction objects from Stripe API.\n", - "default": "120s" - } - } - }, - "BankingCircleConfig": { - "type": "object", - "required": [ - "username", - "password", - "endpoint", - "authorizationEndpoint", - "userCertificate", - "userCertificateKey" - ], - "properties": { - "username": { - "type": "string", - "example": "XXX" - }, - "password": { - "type": "string", - "example": "XXX" - }, - "endpoint": { - "type": "string", - "example": "XXX" - }, - "authorizationEndpoint": { - "type": "string", - "example": "XXX" - }, - "userCertificate": { - "type": "string", - "example": "XXX" - }, - "userCertificateKey": { - "type": "string", - "example": "XXX" - }, - "pollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will try to fetch new BalanceTransaction objects from Stripe API.\n", - "default": "120s" - } - } - }, - "MangoPayConfig": { - "type": "object", - "required": [ - "clientID", - "apiKey", - "endpoint" - ], - "properties": { - "pollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will try to fetch new BalanceTransaction objects from Stripe API.\n", - "default": "120s" - }, - "clientID": { - "type": "string", - "example": "XXX" - }, - "apiKey": { - "type": "string", - "example": "XXX" - }, - "endpoint": { - "type": "string", - "example": "XXX" - } - } - }, - "MoneycorpConfig": { - "type": "object", - "required": [ - "clientID", - "apiKey", - "endpoint" - ], - "properties": { - "clientID": { - "type": "string", - "example": "XXX" - }, - "apiKey": { - "type": "string", - "example": "XXX" - }, - "endpoint": { - "type": "string", - "example": "XXX" - }, - "pollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will try to fetch new BalanceTransaction objects from Stripe API.\n", - "default": "120s" - } - } - }, - "CurrencyCloudConfig": { - "type": "object", - "required": [ - "apiKey", - "loginID" - ], - "properties": { - "apiKey": { - "type": "string", - "example": "XXX" - }, - "loginID": { - "type": "string", - "example": "XXX", - "description": "Username of the API Key holder" - }, - "pollingPeriod": { - "type": "string", - "example": "60s", - "description": "The frequency at which the connector will fetch transactions", - "default": "120s" - }, - "endpoint": { - "type": "string", - "example": "XXX", - "description": "The endpoint to use for the API. Defaults to https://devapi.currencycloud.com" - } - } - }, - "Payment": { - "type": "object", - "required": [ - "id", - "reference", - "sourceAccountID", - "destinationAccountID", - "type", - "provider", - "status", - "initialAmount", - "scheme", - "asset", - "createdAt", - "raw", - "adjustments", - "metadata" - ], - "properties": { - "id": { - "type": "string", - "example": "XXX" - }, - "reference": { - "type": "string" - }, - "sourceAccountID": { - "type": "string" - }, - "destinationAccountID": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "PAY-IN", - "PAYOUT", - "TRANSFER", - "OTHER" - ] - }, - "provider": { - "$ref": "#/components/schemas/Connector" - }, - "status": { - "$ref": "#/components/schemas/PaymentStatus" - }, - "initialAmount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "scheme": { - "type": "string", - "enum": [ - "visa", - "mastercard", - "amex", - "diners", - "discover", - "jcb", - "unionpay", - "sepa debit", - "sepa credit", - "sepa", - "apple pay", - "google pay", - "a2a", - "ach debit", - "ach", - "rtp", - "unknown", - "other" - ] - }, - "asset": { - "type": "string", - "example": "USD" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "raw": { - "type": "object", - "nullable": true - }, - "adjustments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentAdjustment" - } - }, - "metadata": { - "$ref": "#/components/schemas/PaymentMetadata" - } - } - }, - "PaymentAdjustment": { - "type": "object", - "required": [ - "status", - "amount", - "date", - "raw", - "absolute" - ], - "properties": { - "status": { - "$ref": "#/components/schemas/PaymentStatus" - }, - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "date": { - "type": "string", - "format": "date-time" - }, - "raw": { - "type": "object" - }, - "absolute": { - "type": "boolean" - } - } - }, - "PaymentMetadata": { - "type": "object", - "properties": { - "key": { - "type": "string" - } - }, - "nullable": true - }, - "Account": { - "type": "object", - "required": [ - "id", - "createdAt", - "provider", - "reference", - "defaultCurrency", - "defaultAsset", - "accountName", - "type", - "raw" - ], - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "provider": { - "$ref": "#/components/schemas/Connector" - }, - "reference": { - "type": "string" - }, - "defaultCurrency": { - "type": "string", - "deprecated": true - }, - "defaultAsset": { - "type": "string" - }, - "accountName": { - "type": "string" - }, - "type": { - "type": "string" - }, - "raw": { - "type": "object", - "nullable": true - } - } - }, - "AccountBalance": { - "type": "object", - "required": [ - "accountId", - "createdAt", - "lastUpdatedAt", - "currency", - "asset", - "balance" - ], - "properties": { - "accountId": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "lastUpdatedAt": { - "type": "string", - "format": "date-time" - }, - "currency": { - "type": "string", - "deprecated": true - }, - "asset": { - "type": "string" - }, - "balance": { - "type": "integer", - "format": "bigint" - } - } - }, - "TaskBase": { - "type": "object", - "required": [ - "id", - "connectorId", - "createdAt", - "updatedAt", - "descriptor", - "status", - "state" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "connectorId": { - "type": "string", - "format": "uuid" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "status": { - "$ref": "#/components/schemas/PaymentStatus" - }, - "state": { - "type": "object" - }, - "error": { - "type": "string" - } - } - }, - "TaskStripe": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "required": [ - "name", - "account" - ], - "properties": { - "name": { - "type": "string" - }, - "main": { - "type": "boolean" - }, - "account": { - "type": "string" - } - } - } - } - } - ] - }, - "TaskWise": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "profileID": { - "type": "integer", - "format": "int64", - "minimum": 0 - } - } - } - } - } - ] - }, - "TaskModulr": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "accountID": { - "type": "string" - } - } - } - } - } - ] - }, - "TaskDummyPay": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "fileName": { - "type": "string" - } - } - } - } - } - ] - }, - "TaskCurrencyCloud": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - } - } - } - ] - }, - "TaskBankingCircle": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - } - } - } - } - } - ] - }, - "TaskMangoPay": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "userID": { - "type": "string" - } - } - } - } - } - ] - }, - "TaskMoneycorp": { - "allOf": [ - { - "$ref": "#/components/schemas/TaskBase" - }, - { - "type": "object", - "required": [ - "descriptor" - ], - "properties": { - "descriptor": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "accountID": { - "type": "string" - } - } - } - } - } - ] - }, - "TransferRequest": { - "type": "object", - "required": [ - "asset", - "amount", - "destination" - ], - "properties": { - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "USD" - }, - "destination": { - "type": "string", - "example": "acct_1Gqj58KZcSIg2N2q" - }, - "source": { - "type": "string", - "example": "acct_1Gqj58KZcSIg2N2q" - } - } - }, - "StripeTransferRequest": { - "type": "object", - "properties": { - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "USD" - }, - "destination": { - "type": "string", - "example": "acct_1Gqj58KZcSIg2N2q" - }, - "metadata": { - "type": "object", - "description": "A set of key/value pairs that you can attach to a transfer object.\nIt can be useful for storing additional information about the transfer in a structured format.\n", - "example": { - "order_id": "6735" - } - } - } - }, - "StripeTransferResponse": { - "type": "object" - }, - "PaymentStatus": { - "type": "string", - "enum": [ - "PENDING", - "ACTIVE", - "TERMINATED", - "FAILED", - "SUCCEEDED", - "CANCELLED" - ] - }, - "Query": { - "type": "object", - "properties": { - "ledgers": { - "type": "array", - "items": { - "type": "string", - "example": "quickstart" - } - }, - "after": { - "type": "array", - "items": { - "type": "string", - "example": "users:002" - } - }, - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "terms": { - "type": "array", - "items": { - "type": "string", - "example": "destination=central_bank1" - } - }, - "sort": { - "type": "string", - "example": "id:asc" - }, - "policy": { - "type": "string", - "example": "OR" - }, - "target": { - "type": "string" - }, - "cursor": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "raw": { - "type": "object", - "example": { - "query": { - "match_all": {} - } - } - } - } - }, - "Response": { - "type": "object", - "properties": { - "data": { - "type": "object", - "description": "The payload", - "additionalProperties": true - }, - "cursor": { - "title": "cursor", - "type": "object", - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "hasMore": { - "type": "boolean" - }, - "total": { - "title": "total", - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64", - "minimum": 0, - "example": 1 - }, - "relation": { - "type": "string", - "example": "eq" - } - } - }, - "next": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "data": { - "type": "array", - "items": { - "allOf": [ - { - "type": "object", - "additionalProperties": true - } - ] - } - } - } - } - } - }, - "ConfigUser": { - "type": "object", - "required": [ - "endpoint", - "eventTypes" - ], - "properties": { - "endpoint": { - "type": "string", - "example": "https://example.com" - }, - "secret": { - "type": "string", - "example": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3" - }, - "eventTypes": { - "type": "array", - "items": { - "type": "string", - "example": "TYPE1" - }, - "example": [ - "TYPE1", - "TYPE2" - ] - } - } - }, - "ConfigsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/Cursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Config" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "Cursor": { - "type": "object", - "required": [ - "hasMore", - "data" - ], - "properties": { - "hasMore": { - "type": "boolean", - "example": false - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Config" - } - } - } - }, - "ConfigResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Config" - } - } - }, - "Config": { - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "endpoint": { - "type": "string", - "example": "https://example.com" - }, - "secret": { - "type": "string", - "example": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3" - }, - "eventTypes": { - "type": "array", - "items": { - "type": "string", - "example": "TYPE1" - }, - "example": [ - "TYPE1", - "TYPE2" - ] - }, - "active": { - "type": "boolean", - "example": true - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "endpoint", - "secret", - "eventTypes", - "active", - "createdAt", - "updatedAt" - ] - }, - "ConfigChangeSecret": { - "type": "object", - "properties": { - "secret": { - "type": "string", - "example": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3" - } - }, - "required": [ - "secret" - ] - }, - "AttemptResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Attempt" - } - } - }, - "Attempt": { - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "webhookID": { - "type": "string", - "format": "uuid" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "config": { - "$ref": "#/components/schemas/Config" - }, - "payload": { - "type": "string", - "example": "{\"data\":\"test\"}" - }, - "statusCode": { - "type": "integer", - "example": 200 - }, - "retryAttempt": { - "type": "integer", - "example": 1 - }, - "status": { - "type": "string", - "example": "success" - }, - "nextRetryAfter": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "webhookID", - "createdAt", - "updatedAt", - "config", - "payload", - "statusCode", - "retryAttempt", - "status" - ] - }, - "ErrorResponse": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "$ref": "#/components/schemas/ErrorsEnum" - }, - "errorMessage": { - "type": "string", - "example": "[VALIDATION] invalid 'cursor' query param" - }, - "details": { - "type": "string", - "example": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9" - } - } - }, - "ErrorsEnum": { - "type": "string", - "enum": [ - "INTERNAL", - "INSUFFICIENT_FUND", - "VALIDATION", - "CONFLICT", - "NO_SCRIPT", - "COMPILATION_FAILED", - "METADATA_OVERRIDE", - "NOT_FOUND", - "CONTEXT_CANCELLED", - "STORE" - ], - "example": "VALIDATION" - }, - "Monetary": { - "type": "object", - "required": [ - "asset", - "amount" - ], - "properties": { - "asset": { - "type": "string", - "description": "The asset of the monetary value." - }, - "amount": { - "type": "integer", - "format": "bigint", - "description": "The amount of the monetary value." - } - } - }, - "Wallet": { - "type": "object", - "required": [ - "name", - "id", - "metadata", - "createdAt", - "ledger" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the wallet." - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "name": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "ledger": { - "type": "string" - } - } - }, - "WalletWithBalances": { - "type": "object", - "required": [ - "name", - "id", - "metadata", - "createdAt", - "balances", - "ledger" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the wallet." - }, - "metadata": { - "type": "object", - "description": "Metadata associated with the wallet.", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "balances": { - "type": "object", - "required": [ - "main" - ], - "properties": { - "main": { - "$ref": "#/components/schemas/AssetHolder" - } - } - }, - "ledger": { - "type": "string" - } - } - }, - "Hold": { - "type": "object", - "required": [ - "id", - "walletID", - "metadata", - "description" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the hold." - }, - "walletID": { - "type": "string", - "description": "The ID of the wallet the hold is associated with." - }, - "metadata": { - "type": "object", - "description": "Metadata associated with the hold.", - "additionalProperties": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "destination": { - "$ref": "#/components/schemas/Subject" - } - } - }, - "ExpandedDebitHold": { - "allOf": [ - { - "$ref": "#/components/schemas/Hold" - }, - { - "type": "object", - "required": [ - "remaining", - "originalAmount" - ], - "properties": { - "remaining": { - "type": "integer", - "description": "Remaining amount on hold", - "example": 10, - "format": "bigint" - }, - "originalAmount": { - "type": "integer", - "description": "Original amount on hold", - "example": 100, - "format": "bigint" - } - } - } - ] - }, - "ListWalletsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Wallet" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "CreateWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Wallet" - } - } - }, - "GetWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WalletWithBalances" - } - } - }, - "DebitWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Hold" - } - } - }, - "AggregatedVolumes": { - "type": "object", - "x-go-type": { - "type": "AggregatedVolumes" - }, - "additionalProperties": { - "$ref": "#/components/schemas/Volumes" - } - }, - "Posting": { - "type": "object", - "properties": { - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "COIN" - }, - "destination": { - "type": "string", - "example": "users:002" - }, - "source": { - "type": "string", - "example": "users:001" - } - }, - "required": [ - "amount", - "asset", - "destination", - "source" - ] - }, - "Transaction": { - "type": "object", - "properties": { - "ledger": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "txid": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "preCommitVolumes": { - "$ref": "#/components/schemas/AggregatedVolumes" - }, - "postCommitVolumes": { - "$ref": "#/components/schemas/AggregatedVolumes" - } - }, - "required": [ - "postings", - "timestamp", - "txid", - "metadata" - ] - }, - "walletsCursor": { - "type": "object", - "required": [ - "pageSize" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - } - } - }, - "GetTransactionsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Transaction" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "GetHoldsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Hold" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "GetHoldResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/ExpandedDebitHold" - } - } - }, - "CreateWalletRequest": { - "type": "object", - "required": [ - "name", - "metadata" - ], - "properties": { - "metadata": { - "type": "object", - "description": "Custom metadata to attach to this wallet.", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "type": "string" - } - } - }, - "Volume": { - "type": "object", - "properties": { - "input": { - "type": "integer", - "format": "bigint" - }, - "output": { - "type": "integer", - "format": "bigint" - }, - "balance": { - "type": "integer", - "format": "bigint" - } - }, - "required": [ - "input", - "output", - "balance" - ], - "example": { - "input": 100, - "output": 20, - "balance": 80 - } - }, - "Volumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Volume" - }, - "example": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - }, - "EUR": { - "input": 100, - "output": 10, - "balance": 90 - } - } - }, - "ConfirmHoldRequest": { - "type": "object", - "properties": { - "amount": { - "type": "integer", - "format": "bigint", - "example": 100, - "description": "Define the amount to transfer." - }, - "final": { - "type": "boolean", - "example": true, - "description": "Define a final confirmation. Remaining funds will be returned to the wallet." - } - } - }, - "LedgerAccountSubject": { - "type": "object", - "required": [ - "type", - "identifier" - ], - "properties": { - "type": { - "type": "string" - }, - "identifier": { - "type": "string" - } - } - }, - "WalletSubject": { - "type": "object", - "required": [ - "type", - "identifier" - ], - "properties": { - "type": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "balance": { - "type": "string" - } - } - }, - "Subject": { - "discriminator": { - "propertyName": "type", - "mapping": { - "ACCOUNT": "#/components/schemas/LedgerAccountSubject", - "WALLET": "#/components/schemas/WalletSubject" - } - }, - "oneOf": [ - { - "$ref": "#/components/schemas/LedgerAccountSubject" - }, - { - "$ref": "#/components/schemas/WalletSubject" - } - ] - }, - "CreditWalletRequest": { - "type": "object", - "required": [ - "amount", - "sources", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "reference": { - "type": "string" - }, - "sources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Subject" - } - }, - "balance": { - "type": "string", - "description": "The balance to credit" - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "sources": [] - } - }, - "DebitWalletRequest": { - "type": "object", - "required": [ - "amount", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "pending": { - "type": "boolean", - "description": "Set to true to create a pending hold. If false, the wallet will be debited immediately." - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "description": { - "type": "string" - }, - "destination": { - "$ref": "#/components/schemas/Subject" - }, - "balances": { - "type": "array", - "items": { - "type": "string", - "description": "A targeted balance (use '*' for all)" - } - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "pending": true - } - }, - "AssetHolder": { - "type": "object", - "required": [ - "assets" - ], - "properties": { - "assets": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - } - } - }, - "Balance": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "expiresAt": { - "type": "string", - "format": "date-time" - }, - "priority": { - "type": "integer", - "format": "bigint" - } - } - }, - "BalanceWithAssets": { - "allOf": [ - { - "$ref": "#/components/schemas/Balance" - }, - { - "$ref": "#/components/schemas/AssetHolder" - } - ] - }, - "GetWalletSummaryResponse": { - "type": "object", - "required": [ - "balances", - "availableFunds", - "expiredFunds", - "expirableFunds", - "holdFunds" - ], - "properties": { - "balances": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BalanceWithAssets" - } - }, - "availableFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "expiredFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "expirableFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "holdFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - } - } - }, - "ListBalancesResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Balance" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "GetBalanceResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/BalanceWithAssets" - } - } - }, - "CreateBalanceRequest": { - "$ref": "#/components/schemas/Balance" - }, - "CreateBalanceResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Balance" - } - } - }, - "walletsErrorResponse": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "type": "string", - "enum": [ - "VALIDATION", - "INTERNAL_ERROR", - "INSUFFICIENT_FUND", - "HOLD_CLOSED" - ] - }, - "errorMessage": { - "type": "string" - } - } - }, - "Error": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "type": "string", - "enum": [ - "VALIDATION", - "NOT_FOUND" - ] - }, - "errorMessage": { - "type": "string" - } - } - }, - "WorkflowConfig": { - "type": "object", - "required": [ - "stages" - ], - "properties": { - "name": { - "type": "string" - }, - "stages": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": {} - } - } - } - }, - "Workflow": { - "type": "object", - "required": [ - "config", - "createdAt", - "updatedAt", - "id" - ], - "properties": { - "config": { - "$ref": "#/components/schemas/WorkflowConfig" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - } - }, - "StageStatus": { - "type": "object", - "required": [ - "stage", - "instanceID", - "startedAt" - ], - "properties": { - "stage": { - "type": "number" - }, - "instanceID": { - "type": "string" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "error": { - "type": "string" - } - } - }, - "WorkflowInstance": { - "type": "object", - "required": [ - "workflowID", - "id", - "createdAt", - "updatedAt", - "terminated" - ], - "properties": { - "workflowID": { - "type": "string" - }, - "id": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StageStatus" - } - }, - "terminated": { - "type": "boolean" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "error": { - "type": "string" - } - } - }, - "WorkflowInstanceHistoryStage": { - "type": "object", - "required": [ - "name", - "input", - "startedAt", - "terminated", - "attempt" - ], - "properties": { - "name": { - "type": "string" - }, - "input": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStageInput" - }, - "output": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStageOutput" - }, - "error": { - "type": "string" - }, - "terminated": { - "type": "boolean" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "lastFailure": { - "type": "string" - }, - "attempt": { - "type": "integer" - }, - "nextExecution": { - "type": "string", - "format": "date-time" - } - } - }, - "WorkflowInstanceHistory": { - "type": "object", - "required": [ - "name", - "input", - "terminated", - "startedAt" - ], - "properties": { - "name": { - "type": "string" - }, - "input": { - "$ref": "#/components/schemas/Stage" - }, - "error": { - "type": "string" - }, - "terminated": { - "type": "boolean" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - } - } - }, - "WorkflowInstanceHistoryList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WorkflowInstanceHistory" - } - }, - "WorkflowInstanceHistoryStageList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStage" - } - }, - "ListWorkflowsResponse": { - "type": "object", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Workflow" - }, - "type": "array" - } - }, - "required": [ - "data" - ] - }, - "TriggerData": { - "type": "object", - "required": [ - "event", - "workflowID" - ], - "properties": { - "event": { - "type": "string" - }, - "workflowID": { - "type": "string" - }, - "filter": { - "type": "string" - }, - "vars": { - "type": "object", - "additionalProperties": true - } - } - }, - "Trigger": { - "allOf": [ - { - "$ref": "#/components/schemas/TriggerData" - }, - { - "type": "object", - "required": [ - "id", - "createdAt" - ], - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - } - } - } - ] - }, - "TriggerOccurrence": { - "type": "object", - "required": [ - "triggerID", - "workflowInstanceID", - "date" - ], - "properties": { - "date": { - "type": "string", - "format": "date-time" - }, - "workflowInstanceID": { - "type": "string" - }, - "triggerID": { - "type": "string" - } - } - }, - "ListTriggersOccurrencesResponse": { - "type": "object", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/TriggerOccurrence" - }, - "type": "array" - } - }, - "required": [ - "data" - ] - }, - "ListTriggersResponse": { - "type": "object", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Trigger" - }, - "type": "array" - } - }, - "required": [ - "data" - ] - }, - "ReadWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Workflow" - } - } - }, - "CreateWorkflowRequest": { - "$ref": "#/components/schemas/WorkflowConfig" - }, - "CreateWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Workflow" - } - } - }, - "CreateTriggerResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Trigger" - } - } - }, - "RunWorkflowRequest": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "RunWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstance" - } - } - }, - "ListRunsResponse": { - "required": [ - "data" - ], - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/WorkflowInstance" - }, - "type": "array" - } - } - }, - "GetWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Workflow" - } - } - }, - "GetWorkflowInstanceResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstance" - } - } - }, - "GetWorkflowInstanceHistoryResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryList" - } - } - }, - "GetWorkflowInstanceHistoryStageResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStageList" - } - } - }, - "StageSendSourceWallet": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "balance": { - "type": "string" - } - } - }, - "StageSendDestinationWallet": { - "$ref": "#/components/schemas/StageSendSourceWallet" - }, - "StageSendSourceAccount": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "ledger": { - "type": "string" - } - } - }, - "StageSendDestinationAccount": { - "$ref": "#/components/schemas/StageSendSourceAccount" - }, - "StageSendSourcePayment": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "StageSendDestinationPayment": { - "type": "object", - "required": [ - "psp" - ], - "properties": { - "psp": { - "type": "string" - } - } - }, - "StageSendSource": { - "type": "object", - "properties": { - "wallet": { - "$ref": "#/components/schemas/StageSendSourceWallet" - }, - "account": { - "$ref": "#/components/schemas/StageSendSourceAccount" - }, - "payment": { - "$ref": "#/components/schemas/StageSendSourcePayment" - } - } - }, - "StageSendDestination": { - "type": "object", - "properties": { - "wallet": { - "$ref": "#/components/schemas/StageSendDestinationWallet" - }, - "account": { - "$ref": "#/components/schemas/StageSendDestinationAccount" - }, - "payment": { - "$ref": "#/components/schemas/StageSendDestinationPayment" - } - } - }, - "StageSend": { - "type": "object", - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "destination": { - "$ref": "#/components/schemas/StageSendDestination" - }, - "source": { - "$ref": "#/components/schemas/StageSendSource" - } - } - }, - "StageDelay": { - "type": "object", - "properties": { - "until": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - } - }, - "StageWaitEvent": { - "type": "object", - "required": [ - "event" - ], - "properties": { - "event": { - "type": "string" - } - } - }, - "Stage": { - "anyOf": [ - { - "$ref": "#/components/schemas/StageSend" - }, - { - "$ref": "#/components/schemas/StageDelay" - }, - { - "$ref": "#/components/schemas/StageWaitEvent" - } - ] - }, - "orchestrationStripeTransferRequest": { - "type": "object", - "properties": { - "connectorID": { - "type": "string" - }, - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "USD" - }, - "destination": { - "type": "string", - "example": "acct_1Gqj58KZcSIg2N2q" - }, - "waitingValidation": { - "type": "boolean", - "example": false, - "default": false - }, - "metadata": { - "type": "object", - "description": "A set of key/value pairs that you can attach to a transfer object.\nIt can be useful for storing additional information about the transfer in a structured format.\n", - "example": { - "order_id": "6735" - } - } - } - }, - "ActivityStripeTransfer": { - "$ref": "#/components/schemas/orchestrationStripeTransferRequest" - }, - "ActivityGetAccount": { - "type": "object", - "required": [ - "id", - "ledger" - ], - "properties": { - "id": { - "type": "string" - }, - "ledger": { - "type": "string" - } - } - }, - "ActivityCreateTransaction": { - "type": "object", - "properties": { - "ledger": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/PostTransaction" - } - } - }, - "ActivityRevertTransaction": { - "type": "object", - "required": [ - "id", - "ledger" - ], - "properties": { - "ledger": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, - "ActivityGetPayment": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityConfirmHold": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityCreditWallet": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/orchestrationCreditWalletRequest" - } - } - }, - "orchestrationCreditWalletRequest": { - "type": "object", - "required": [ - "amount", - "sources", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "metadata": { - "type": "object", - "additionalProperties": true, - "description": "Metadata associated with the wallet." - }, - "reference": { - "type": "string" - }, - "sources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Subject" - } - }, - "balance": { - "type": "string", - "description": "The balance to credit" - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "sources": [] - } - }, - "ActivityDebitWallet": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/orchestrationDebitWalletRequest" - } - } - }, - "orchestrationDebitWalletRequest": { - "type": "object", - "required": [ - "amount", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "pending": { - "type": "boolean", - "description": "Set to true to create a pending hold. If false, the wallet will be debited immediately." - }, - "metadata": { - "type": "object", - "additionalProperties": true, - "description": "Metadata associated with the wallet." - }, - "description": { - "type": "string" - }, - "destination": { - "$ref": "#/components/schemas/Subject" - }, - "balances": { - "type": "array", - "items": { - "type": "string", - "description": "A targeted balance (use '*' for all)" - } - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "pending": true - } - }, - "ActivityGetWallet": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityVoidHold": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityGetAccountOutput": { - "$ref": "#/components/schemas/orchestrationAccountResponse" - }, - "ActivityCreateTransactionOutput": { - "$ref": "#/components/schemas/CreateTransactionResponse" - }, - "CreateTransactionResponse": { - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orchestrationTransaction" - } - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "orchestrationTransaction": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/orchestrationMetadata" - }, - "txid": { - "type": "integer", - "minimum": 0 - }, - "preCommitVolumes": { - "$ref": "#/components/schemas/orchestrationAggregatedVolumes" - }, - "postCommitVolumes": { - "$ref": "#/components/schemas/orchestrationAggregatedVolumes" - } - }, - "required": [ - "postings", - "timestamp", - "txid" - ] - }, - "orchestrationAggregatedVolumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/orchestrationVolumes" - }, - "example": { - "orders:1": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - } - }, - "orders:2": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - } - } - } - }, - "ActivityRevertTransactionOutput": { - "$ref": "#/components/schemas/RevertTransactionResponse" - }, - "RevertTransactionResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/orchestrationTransaction" - } - } - }, - "ActivityGetPaymentOutput": { - "$ref": "#/components/schemas/orchestrationPaymentResponse" - }, - "orchestrationPaymentResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/orchestrationPayment" - } - } - }, - "orchestrationPayment": { - "type": "object", - "required": [ - "id", - "reference", - "connectorID", - "sourceAccountID", - "destinationAccountID", - "type", - "status", - "initialAmount", - "scheme", - "asset", - "createdAt", - "raw", - "adjustments", - "metadata" - ], - "properties": { - "id": { - "type": "string", - "example": "XXX" - }, - "reference": { - "type": "string" - }, - "sourceAccountID": { - "type": "string" - }, - "destinationAccountID": { - "type": "string" - }, - "connectorID": { - "type": "string" - }, - "provider": { - "$ref": "#/components/schemas/Connector" - }, - "type": { - "type": "string", - "enum": [ - "PAY-IN", - "PAYOUT", - "TRANSFER", - "OTHER" - ] - }, - "status": { - "$ref": "#/components/schemas/PaymentStatus" - }, - "initialAmount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "scheme": { - "type": "string", - "enum": [ - "visa", - "mastercard", - "amex", - "diners", - "discover", - "jcb", - "unionpay", - "sepa debit", - "sepa credit", - "sepa", - "apple pay", - "google pay", - "a2a", - "ach debit", - "ach", - "rtp", - "unknown", - "other" - ] - }, - "asset": { - "type": "string", - "example": "USD" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "raw": { - "type": "object", - "nullable": true - }, - "adjustments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentAdjustment" - } - }, - "metadata": { - "$ref": "#/components/schemas/PaymentMetadata" - } - } - }, - "ActivityDebitWalletOutput": { - "$ref": "#/components/schemas/DebitWalletResponse" - }, - "ActivityGetWalletOutput": { - "$ref": "#/components/schemas/GetWalletResponse" - }, - "WorkflowInstanceHistoryStageInput": { - "type": "object", - "properties": { - "GetAccount": { - "$ref": "#/components/schemas/ActivityGetAccount" - }, - "CreateTransaction": { - "$ref": "#/components/schemas/ActivityCreateTransaction" - }, - "RevertTransaction": { - "$ref": "#/components/schemas/ActivityRevertTransaction" - }, - "StripeTransfer": { - "$ref": "#/components/schemas/ActivityStripeTransfer" - }, - "GetPayment": { - "$ref": "#/components/schemas/ActivityGetPayment" - }, - "ConfirmHold": { - "$ref": "#/components/schemas/ActivityConfirmHold" - }, - "CreditWallet": { - "$ref": "#/components/schemas/ActivityCreditWallet" - }, - "DebitWallet": { - "$ref": "#/components/schemas/ActivityDebitWallet" - }, - "GetWallet": { - "$ref": "#/components/schemas/ActivityGetWallet" - }, - "VoidHold": { - "$ref": "#/components/schemas/ActivityVoidHold" - } - } - }, - "WorkflowInstanceHistoryStageOutput": { - "type": "object", - "properties": { - "GetAccount": { - "$ref": "#/components/schemas/ActivityGetAccountOutput" - }, - "CreateTransaction": { - "$ref": "#/components/schemas/ActivityCreateTransactionOutput" - }, - "RevertTransaction": { - "$ref": "#/components/schemas/ActivityRevertTransactionOutput" - }, - "GetPayment": { - "$ref": "#/components/schemas/ActivityGetPaymentOutput" - }, - "DebitWallet": { - "$ref": "#/components/schemas/ActivityDebitWalletOutput" - }, - "GetWallet": { - "$ref": "#/components/schemas/ActivityGetWalletOutput" - } - } - }, - "PostTransaction": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "script": { - "type": "object", - "properties": { - "plain": { - "type": "string", - "example": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n" - }, - "vars": { - "type": "object", - "properties": {}, - "additionalProperties": true, - "example": { - "user": "users:042" - } - } - }, - "required": [ - "plain" - ] - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/orchestrationMetadata" - } - } - }, - "orchestrationMetadata": { - "type": "object", - "additionalProperties": true, - "example": { - "admin": "true" - } - }, - "orchestrationAccountResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/orchestrationAccount" - } - } - }, - "ReadTriggerResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Trigger" - } - } - }, - "orchestrationAccount": { - "type": "object", - "required": [ - "address", - "metadata" - ], - "properties": { - "address": { - "type": "string", - "example": "users:001" - }, - "metadata": { - "type": "object", - "properties": {}, - "additionalProperties": true, - "example": { - "admin": "true" - } - }, - "volumes": { - "$ref": "#/components/schemas/orchestrationVolumes" - }, - "effectiveVolumes": { - "$ref": "#/components/schemas/orchestrationVolumes" - } - } - }, - "orchestrationVolume": { - "type": "object", - "properties": { - "input": { - "type": "integer", - "format": "bigint" - }, - "output": { - "type": "integer", - "format": "bigint" - }, - "balance": { - "type": "integer", - "format": "bigint" - } - }, - "required": [ - "input", - "output" - ], - "example": { - "input": 100, - "output": 20, - "balance": 80 - } - }, - "orchestrationVolumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/orchestrationVolume" - }, - "example": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - }, - "EUR": { - "input": 100, - "output": 10, - "balance": 90 - } - } - } - }, - "securitySchemes": { - "Authorization": { - "type": "oauth2", - "flows": { - "clientCredentials": { - "tokenUrl": "https://localhost/api/auth/oauth/token", - "refreshUrl": "https://localhost/api/auth/oauth/token", - "scopes": {} - } - } - } - }, - "responses": { - "NoContent": { - "description": "No content" - }, - "ServerInfo": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - }, - "Payments": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentsCursor" - } - } - } - }, - "Payment": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentResponse" - } - } - } - }, - "Accounts": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccountsCursor" - } - } - } - }, - "Account": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccountResponse" - } - } - } - }, - "AccountBalances": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BalancesCursor" - } - } - } - }, - "Connectors": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorsResponse" - } - } - } - }, - "ConnectorsConfigs": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorsConfigsResponse" - } - } - } - }, - "ConnectorConfig": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorConfigResponse" - } - } - } - }, - "Tasks": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TasksCursor" - } - } - } - }, - "Task": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TaskResponse" - } - } - } - }, - "StripeTransfer": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StripeTransferResponse" - } - } - } - }, - "Transfer": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransferResponse" - } - } - } - }, - "Transfers": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransfersResponse" - } - } - } - }, - "ErrorResponse": { - "description": "General error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "parameters": { - "PageSize": { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "default": 15 - } - }, - "Cursor": { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - "Sort": { - "name": "sort", - "in": "query", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": "Fields used to sort payments (default is date:desc).", - "example": [ - "date:asc", - "status:desc" - ] - }, - "PaymentId": { - "name": "paymentId", - "in": "path", - "schema": { - "type": "string" - }, - "description": "The payment ID.", - "example": "XXX", - "required": true - }, - "AccountId": { - "name": "accountId", - "in": "path", - "schema": { - "type": "string" - }, - "description": "The account ID.", - "example": "XXX", - "required": true - }, - "Connector": { - "name": "connector", - "description": "The name of the connector.", - "in": "path", - "schema": { - "$ref": "#/components/schemas/Connector" - }, - "required": true - }, - "TaskId": { - "name": "taskId", - "description": "The task ID.", - "example": "task1", - "in": "path", - "schema": { - "type": "string" - }, - "required": true - } - }, - "requestBodies": { - "ConnectorConfig": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorConfig" - } - } - } - }, - "StripeTransfer": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StripeTransferRequest" - } - } - } - }, - "UpdateMetadata": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentMetadata" - } - } - } - }, - "Transfer": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransferRequest" - } - } - } - } - } - }, - "x-tagGroups": [ - { - "name": "Auth", - "tags": [ - "Clients", - "Scopes", - "Users", - "Auth" - ] - }, - { - "name": "Ledger", - "tags": [ - "Ledger", - "Server", - "Accounts", - "Mapping", - "Script", - "Stats", - "Transactions", - "Balances", - "server", - "accounts", - "mapping", - "script", - "stats", - "transactions", - "balances" - ] - }, - { - "name": "Payments", - "tags": [ - "Payments" - ] - }, - { - "name": "Search", - "tags": [ - "Search" - ] - }, - { - "name": "Wallets", - "tags": [ - "Wallets" - ] - }, - { - "name": "Webhooks", - "tags": [ - "Webhooks" - ] - }, - { - "name": "Flows", - "tags": [ - "Orchestration" - ] - } - ] -} \ No newline at end of file diff --git a/releases/versions/v1.0/operator.yaml b/releases/versions/v1.0/operator.yaml deleted file mode 100644 index 9853b18d6f..0000000000 --- a/releases/versions/v1.0/operator.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: stack.formance.com/v1beta3 -kind: Versions -metadata: - name: v1.0.3 -spec: - orchestration: v0.2.1 - reconciliation: v0.1.0 - search: v0.10.0 - auth: v0.4.4 - wallets: v0.4.6 - webhooks: v0.7.1 - payments: v0.9.7 - stargate: v0.1.10 - gateway: v0.1.7 - ledger: v1.10.14 diff --git a/releases/versions/v2.0/main.yaml b/releases/versions/v2.0/main.yaml deleted file mode 100644 index e155e0d058..0000000000 --- a/releases/versions/v2.0/main.yaml +++ /dev/null @@ -1,12 +0,0 @@ -version: v2.0.0-beta.1 -components: - ledger: v2.0.0-beta.7 - search: v1.0.0 - stargate: v1.0.0 - auth: v1.0.0 - wallets: v1.0.0 - webhooks: v1.0.0 - gateway: v1.0.0 - payments: v1.0.0-rc.5 - orchestration: v0.3.0 - reconciliation: v0.1.1 diff --git a/releases/versions/v2.0/openapi.json b/releases/versions/v2.0/openapi.json deleted file mode 100644 index deef63b54d..0000000000 --- a/releases/versions/v2.0/openapi.json +++ /dev/null @@ -1,12225 +0,0 @@ -{ - "openapi": "3.0.3", - "info": { - "title": "Formance Stack API", - "description": "Open, modular foundation for unique payments flows\n\n# Introduction\nThis API is documented in **OpenAPI format**.\n\n# Authentication\nFormance Stack offers one forms of authentication:\n - OAuth2\nOAuth2 - an open protocol to allow secure authorization in a simple\nand standard method from web, mobile and desktop applications.\n\n", - "contact": { - "name": "Formance", - "url": "https://www.formance.com", - "email": "support@formance.com" - }, - "x-logo": { - "url": "https://avatars.githubusercontent.com/u/84325077?s=200&v=4", - "altText": "Formance" - }, - "version": "v2.0.0-beta.1" - }, - "servers": [ - { - "url": "http://localhost", - "description": "local server" - } - ], - "paths": { - "/versions": { - "get": { - "summary": "Show stack version information", - "operationId": "getVersions", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetVersionsResponse" - } - } - } - } - } - } - }, - "/api/auth/.well-known/openid-configuration": { - "get": { - "responses": { - "200": { - "description": "OpenID provider configuration.\nSee https://swagger.io/docs/specification/authentication/openid-connect-discovery/ for details\n" - } - } - } - }, - "/api/auth/_info": { - "get": { - "summary": "Get server info", - "operationId": "getServerInfo", - "tags": [ - "Auth" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - } - } - } - }, - "/api/auth/clients": { - "get": { - "summary": "List clients", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "listClients", - "responses": { - "200": { - "description": "List of clients", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListClientsResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "createClient", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateClientRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Client created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateClientResponse" - } - } - } - } - } - } - }, - "/api/auth/clients/{clientId}": { - "get": { - "summary": "Read client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "readClient", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Retrieved client", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReadClientResponse" - } - } - } - } - } - }, - "put": { - "summary": "Update client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "updateClient", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateClientRequest" - } - } - } - }, - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Updated client", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateClientResponse" - } - } - } - } - } - }, - "delete": { - "summary": "Delete client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "deleteClient", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Client deleted" - } - } - } - }, - "/api/auth/clients/{clientId}/secrets": { - "post": { - "summary": "Add a secret to a client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "createSecret", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSecretRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Created secret", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSecretResponse" - } - } - } - } - } - } - }, - "/api/auth/clients/{clientId}/secrets/{secretId}": { - "delete": { - "summary": "Delete a secret from a client", - "tags": [ - "Auth", - "Clients" - ], - "operationId": "deleteSecret", - "parameters": [ - { - "description": "Client ID", - "in": "path", - "name": "clientId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Secret ID", - "in": "path", - "name": "secretId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Secret deleted" - } - } - } - }, - "/api/auth/users": { - "get": { - "summary": "List users", - "tags": [ - "Auth", - "Users" - ], - "description": "List users", - "operationId": "listUsers", - "responses": { - "200": { - "description": "List of users", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListUsersResponse" - } - } - } - } - } - } - }, - "/api/auth/users/{userId}": { - "get": { - "summary": "Read user", - "tags": [ - "Auth", - "Users" - ], - "description": "Read user", - "operationId": "readUser", - "parameters": [ - { - "description": "User ID", - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Retrieved user", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReadUserResponse" - } - } - } - } - } - } - }, - "/api/ledger/_info": { - "get": { - "tags": [ - "Ledger", - "Server" - ], - "summary": "Show server information", - "operationId": "getInfo", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigInfoResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/_info": { - "get": { - "summary": "Get information about a ledger", - "operationId": "getLedgerInfo", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LedgerInfoResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/accounts": { - "head": { - "summary": "Count the accounts from a ledger", - "operationId": "countAccounts", - "tags": [ - "Ledger", - "Accounts" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "query", - "description": "Filter accounts by address pattern (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:.+" - } - }, - { - "name": "metadata", - "in": "query", - "description": "Filter accounts by metadata key value pairs. The filter can be used like this metadata[key]=value1&metadata[a.nested.key]=value2", - "style": "deepObject", - "explode": true, - "schema": { - "type": "object", - "additionalProperties": true - }, - "example": "metadata[key]=value1&metadata[a.nested.key]=value2" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "Count": { - "schema": { - "type": "integer", - "format": "int64", - "minimum": 0 - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "get": { - "summary": "List accounts from a ledger", - "description": "List accounts from a ledger, sorted by address in descending order.", - "operationId": "listAccounts", - "tags": [ - "Ledger", - "Accounts" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "default": 15 - } - }, - { - "name": "page_size", - "x-speakeasy-ignore": true, - "in": "query", - "description": "The maximum number of results to return per page.\nDeprecated, please use `pageSize` instead.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "default": 15 - }, - "deprecated": true - }, - { - "name": "after", - "in": "query", - "description": "Pagination cursor, will return accounts after given address, in descending order.", - "schema": { - "type": "string", - "example": "users:003" - } - }, - { - "name": "address", - "in": "query", - "description": "Filter accounts by address pattern (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:.+" - } - }, - { - "name": "metadata", - "in": "query", - "description": "Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example below.", - "style": "deepObject", - "explode": true, - "schema": { - "type": "object", - "additionalProperties": true - }, - "example": "metadata[key]=value1&metadata[a.nested.key]=value2" - }, - { - "name": "balance", - "in": "query", - "description": "Filter accounts by their balance (default operator is gte)", - "schema": { - "type": "integer", - "format": "int64", - "example": 2400 - } - }, - { - "name": "balanceOperator", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Operator used for the filtering of balances can be greater than/equal, less than/equal, greater than, less than, equal or not.\n", - "schema": { - "type": "string", - "enum": [ - "gte", - "lte", - "gt", - "lt", - "e", - "ne" - ], - "example": "gte" - } - }, - { - "name": "balance_operator", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Operator used for the filtering of balances can be greater than/equal, less than/equal, greater than, less than, equal or not.\nDeprecated, please use `balanceOperator` instead.\n", - "schema": { - "type": "string", - "enum": [ - "gte", - "lte", - "gt", - "lt", - "e", - "ne" - ], - "example": "gte" - }, - "deprecated": true - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - { - "name": "pagination_token", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\nDeprecated, please use `cursor` instead.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - }, - "deprecated": true - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccountsCursorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/accounts/{address}": { - "get": { - "summary": "Get account by its address", - "operationId": "getAccount", - "tags": [ - "Ledger", - "Accounts" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "path", - "description": "Exact address of the account. It must match the following regular expressions pattern:\n```\n^\\w+(:\\w+)*$\n```\n", - "required": true, - "schema": { - "type": "string", - "example": "users:001" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/accounts/{address}/metadata": { - "post": { - "summary": "Add metadata to an account", - "operationId": "addMetadataToAccount", - "tags": [ - "Ledger", - "Accounts" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "path", - "description": "Exact address of the account. It must match the following regular expressions pattern:\n```\n^\\w+(:\\w+)*$\n```\n", - "required": true, - "schema": { - "type": "string", - "example": "users:001" - } - } - ], - "requestBody": { - "description": "metadata", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ledgerMetadata" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content", - "content": {} - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/mapping": { - "get": { - "tags": [ - "Ledger", - "Mapping" - ], - "operationId": "getMapping", - "summary": "Get the mapping of a ledger", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MappingResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "put": { - "tags": [ - "Ledger", - "Mapping" - ], - "operationId": "updateMapping", - "summary": "Update the mapping of a ledger", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Mapping" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MappingResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/script": { - "post": { - "deprecated": true, - "tags": [ - "Ledger", - "Script" - ], - "operationId": "runScript", - "summary": "Execute a Numscript", - "description": "This route is deprecated, and has been merged into `POST /{ledger}/transactions`.\n", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "preview", - "in": "query", - "description": "Set the preview mode. Preview mode doesn't add the logs to the database or publish a message to the message broker.", - "schema": { - "type": "boolean", - "example": true - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Script" - } - } - } - }, - "responses": { - "200": { - "description": "On success, it will return a 200 status code, and the resulting transaction under the `transaction` field.\n\nOn failure, it will also return a 200 status code, and the following fields:\n - `details`: contains a URL. When there is an error parsing Numscript, the result can be difficult to read—the provided URL will render the error in an easy-to-read format.\n - `errorCode` and `error_code` (deprecated): contains the string code of the error\n - `errorMessage` and `error_message` (deprecated): contains a human-readable indication of what went wrong, for example that an account had insufficient funds, or that there was an error in the provided Numscript.\n", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScriptResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/stats": { - "get": { - "tags": [ - "Ledger", - "Stats" - ], - "operationId": "readStats", - "summary": "Get statistics from a ledger", - "description": "Get statistics from a ledger. (aggregate metrics on accounts and transactions)\n", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "name of the ledger", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StatsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/transactions": { - "head": { - "tags": [ - "Ledger", - "Transactions" - ], - "summary": "Count the transactions from a ledger", - "operationId": "countTransactions", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "reference", - "in": "query", - "description": "Filter transactions by reference field.", - "schema": { - "type": "string", - "example": "ref:001" - } - }, - { - "name": "account", - "in": "query", - "description": "Filter transactions with postings involving given account, either as source or destination (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "source", - "in": "query", - "description": "Filter transactions with postings involving given account at source (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "destination", - "in": "query", - "description": "Filter transactions with postings involving given account at destination (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "startTime", - "in": "query", - "description": "Filter transactions that occurred after this timestamp.\nThe format is RFC3339 and is inclusive (for example, \"2023-01-02T15:04:01Z\" includes the first second of 4th minute).\n", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "start_time", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Filter transactions that occurred after this timestamp.\nThe format is RFC3339 and is inclusive (for example, \"2023-01-02T15:04:01Z\" includes the first second of 4th minute).\nDeprecated, please use `startTime` instead.\n", - "schema": { - "type": "string", - "format": "date-time" - }, - "deprecated": true - }, - { - "name": "endTime", - "in": "query", - "description": "Filter transactions that occurred before this timestamp.\nThe format is RFC3339 and is exclusive (for example, \"2023-01-02T15:04:01Z\" excludes the first second of 4th minute).\n", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "end_time", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Filter transactions that occurred before this timestamp.\nThe format is RFC3339 and is exclusive (for example, \"2023-01-02T15:04:01Z\" excludes the first second of 4th minute).\nDeprecated, please use `endTime` instead.\n", - "schema": { - "type": "string", - "format": "date-time" - }, - "deprecated": true - }, - { - "name": "metadata", - "in": "query", - "description": "Filter transactions by metadata key value pairs. Nested objects can be used as seen in the example below.", - "style": "deepObject", - "explode": true, - "schema": { - "type": "object", - "properties": {} - }, - "example": "metadata[key]=value1&metadata[a.nested.key]=value2" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "Count": { - "schema": { - "type": "integer", - "format": "int64", - "minimum": 0 - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "get": { - "tags": [ - "Ledger", - "Transactions" - ], - "summary": "List transactions from a ledger", - "description": "List transactions from a ledger, sorted by txid in descending order.", - "operationId": "listTransactions", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "default": 15 - } - }, - { - "name": "page_size", - "x-speakeasy-ignore": true, - "in": "query", - "description": "The maximum number of results to return per page.\nDeprecated, please use `pageSize` instead.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "default": 15 - }, - "deprecated": true - }, - { - "name": "after", - "in": "query", - "description": "Pagination cursor, will return transactions after given txid (in descending order).", - "schema": { - "type": "string", - "example": 1234 - } - }, - { - "name": "reference", - "in": "query", - "description": "Find transactions by reference field.", - "schema": { - "type": "string", - "example": "ref:001" - } - }, - { - "name": "account", - "in": "query", - "description": "Filter transactions with postings involving given account, either as source or destination (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "source", - "in": "query", - "description": "Filter transactions with postings involving given account at source (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "destination", - "in": "query", - "description": "Filter transactions with postings involving given account at destination (regular expression placed between ^ and $).", - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "startTime", - "in": "query", - "description": "Filter transactions that occurred after this timestamp.\nThe format is RFC3339 and is inclusive (for example, \"2023-01-02T15:04:01Z\" includes the first second of 4th minute).\n", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "start_time", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Filter transactions that occurred after this timestamp.\nThe format is RFC3339 and is inclusive (for example, \"2023-01-02T15:04:01Z\" includes the first second of 4th minute).\nDeprecated, please use `startTime` instead.\n", - "schema": { - "type": "string", - "format": "date-time" - }, - "deprecated": true - }, - { - "name": "endTime", - "in": "query", - "description": "Filter transactions that occurred before this timestamp.\nThe format is RFC3339 and is exclusive (for example, \"2023-01-02T15:04:01Z\" excludes the first second of 4th minute).\n", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "end_time", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Filter transactions that occurred before this timestamp.\nThe format is RFC3339 and is exclusive (for example, \"2023-01-02T15:04:01Z\" excludes the first second of 4th minute).\nDeprecated, please use `endTime` instead.\n", - "schema": { - "type": "string", - "format": "date-time" - }, - "deprecated": true - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - { - "name": "pagination_token", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\nDeprecated, please use `cursor` instead.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - }, - "deprecated": true - }, - { - "name": "metadata", - "in": "query", - "description": "Filter transactions by metadata key value pairs. Nested objects can be used as seen in the example below.", - "style": "deepObject", - "explode": true, - "schema": { - "type": "object", - "additionalProperties": true - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransactionsCursorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "post": { - "tags": [ - "Ledger", - "Transactions" - ], - "summary": "Create a new transaction to a ledger", - "operationId": "createTransaction", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "preview", - "in": "query", - "description": "Set the preview mode. Preview mode doesn't add the logs to the database or publish a message to the message broker.", - "schema": { - "type": "boolean", - "example": true - } - } - ], - "requestBody": { - "required": true, - "description": "The request body must contain at least one of the following objects:\n - `postings`: suitable for simple transactions\n - `script`: enabling more complex transactions with Numscript\n", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PostTransaction" - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransactionsResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/transactions/{txid}": { - "get": { - "tags": [ - "Ledger", - "Transactions" - ], - "summary": "Get transaction from a ledger by its ID", - "operationId": "getTransaction", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "txid", - "in": "path", - "description": "Transaction ID.", - "required": true, - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransactionResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/transactions/{txid}/metadata": { - "post": { - "tags": [ - "Ledger", - "Transactions" - ], - "summary": "Set the metadata of a transaction by its ID", - "operationId": "addMetadataOnTransaction", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "txid", - "in": "path", - "description": "Transaction ID.", - "required": true, - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - } - } - ], - "requestBody": { - "description": "metadata", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ledgerMetadata" - } - } - } - }, - "responses": { - "204": { - "description": "No Content", - "content": {} - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/transactions/{txid}/revert": { - "post": { - "tags": [ - "Ledger", - "Transactions" - ], - "operationId": "revertTransaction", - "summary": "Revert a ledger transaction by its ID", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "txid", - "in": "path", - "description": "Transaction ID.", - "required": true, - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - } - }, - { - "name": "disableChecks", - "in": "query", - "description": "Allow to disable balances checks", - "required": false, - "schema": { - "type": "boolean" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransactionResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/transactions/batch": { - "post": { - "tags": [ - "Ledger", - "Transactions" - ], - "summary": "Create a new batch of transactions to a ledger", - "operationId": "CreateTransactions", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Transactions" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransactionsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/balances": { - "get": { - "tags": [ - "Ledger", - "Balances" - ], - "summary": "Get the balances from a ledger's account", - "operationId": "getBalances", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "query", - "description": "Filter balances involving given account, either as source or destination.", - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "after", - "in": "query", - "description": "Pagination cursor, will return accounts after given address, in descending order.", - "schema": { - "type": "string", - "example": "users:003" - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - { - "name": "pagination_token", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Parameter used in pagination requests.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nDeprecated, please use `cursor` instead.", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - }, - "deprecated": true - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BalancesCursorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/aggregate/balances": { - "get": { - "tags": [ - "Ledger", - "Balances" - ], - "summary": "Get the aggregated balances from selected accounts", - "operationId": "getBalancesAggregated", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "query", - "description": "Filter balances involving given account, either as source or destination.", - "schema": { - "type": "string", - "example": "users:001" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AggregateBalancesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/{ledger}/logs": { - "get": { - "tags": [ - "Ledger", - "Logs" - ], - "summary": "List the logs from a ledger", - "description": "List the logs from a ledger, sorted by ID in descending order.", - "operationId": "listLogs", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "default": 15 - } - }, - { - "name": "page_size", - "x-speakeasy-ignore": true, - "in": "query", - "description": "The maximum number of results to return per page.\nDeprecated, please use `pageSize` instead.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "default": 15 - }, - "deprecated": true - }, - { - "name": "after", - "in": "query", - "description": "Pagination cursor, will return the logs after a given ID. (in descending order).", - "schema": { - "type": "string", - "example": 1234 - } - }, - { - "name": "startTime", - "in": "query", - "description": "Filter transactions that occurred after this timestamp.\nThe format is RFC3339 and is inclusive (for example, \"2023-01-02T15:04:01Z\" includes the first second of 4th minute).\n", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "start_time", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Filter transactions that occurred after this timestamp.\nThe format is RFC3339 and is inclusive (for example, \"2023-01-02T15:04:01Z\" includes the first second of 4th minute).\nDeprecated, please use `startTime` instead.\n", - "schema": { - "type": "string", - "format": "date-time" - }, - "deprecated": true - }, - { - "name": "endTime", - "in": "query", - "description": "Filter transactions that occurred before this timestamp.\nThe format is RFC3339 and is exclusive (for example, \"2023-01-02T15:04:01Z\" excludes the first second of 4th minute).\n", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "end_time", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Filter transactions that occurred before this timestamp.\nThe format is RFC3339 and is exclusive (for example, \"2023-01-02T15:04:01Z\" excludes the first second of 4th minute).\nDeprecated, please use `endTime` instead.\n", - "schema": { - "type": "string", - "format": "date-time" - }, - "deprecated": true - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - { - "name": "pagination_token", - "x-speakeasy-ignore": true, - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\nDeprecated, please use `cursor` instead.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - }, - "deprecated": true - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LogsCursorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/_info": { - "get": { - "tags": [ - "Ledger" - ], - "summary": "Show server information", - "operationId": "v2GetInfo", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ConfigInfoResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2": { - "get": { - "summary": "List ledgers", - "operationId": "v2ListLedgers", - "parameters": [ - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000 - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - } - ], - "tags": [ - "Ledger" - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2LedgerListResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}": { - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "get": { - "summary": "Get a ledger", - "operationId": "v2GetLedger", - "tags": [ - "Ledger" - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2Ledger" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create a ledger", - "operationId": "v2CreateLedger", - "tags": [ - "Ledger" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2CreateLedgerRequest" - } - } - } - }, - "responses": { - "204": { - "description": "OK" - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/_info": { - "get": { - "summary": "Get information about a ledger", - "operationId": "v2GetLedgerInfo", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2LedgerInfoResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/_bulk": { - "post": { - "x-speakeasy-errors": { - "override": true, - "statusCodes": [ - "5XX" - ] - }, - "summary": "Bulk request", - "operationId": "v2CreateBulk", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2Bulk" - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2BulkResponse" - } - } - } - }, - "400": { - "description": "Failure", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2BulkResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/accounts": { - "head": { - "summary": "Count the accounts from a ledger", - "operationId": "v2CountAccounts", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - }, - "responses": { - "204": { - "description": "OK", - "headers": { - "Count": { - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0 - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - }, - "get": { - "summary": "List accounts from a ledger", - "description": "List accounts from a ledger, sorted by address in descending order.", - "operationId": "v2ListAccounts", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000 - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - { - "name": "expand", - "in": "query", - "schema": { - "type": "string", - "items": { - "type": "string" - } - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2AccountsCursorResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/accounts/{address}": { - "get": { - "summary": "Get account by its address", - "operationId": "v2GetAccount", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "path", - "description": "Exact address of the account. It must match the following regular expressions pattern:\n```\n^\\w+(:\\w+)*$\n```\n", - "required": true, - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "expand", - "in": "query", - "schema": { - "type": "string", - "items": { - "type": "string" - } - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2AccountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/accounts/{address}/metadata": { - "post": { - "summary": "Add metadata to an account", - "operationId": "v2AddMetadataToAccount", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "path", - "description": "Exact address of the account. It must match the following regular expressions pattern:\n```\n^\\w+(:\\w+)*$\n```\n", - "required": true, - "schema": { - "type": "string", - "example": "users:001" - } - }, - { - "name": "dryRun", - "in": "query", - "description": "Set the dry run mode. Dry run mode doesn't add the logs to the database or publish a message to the message broker.", - "schema": { - "type": "boolean", - "example": true - } - }, - { - "name": "Idempotency-Key", - "in": "header", - "description": "Use an idempotency key", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "metadata", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2Metadata" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content", - "content": {} - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/accounts/{address}/metadata/{key}": { - "delete": { - "description": "Delete metadata by key", - "operationId": "v2DeleteAccountMetadata", - "tags": [ - "Ledger" - ], - "summary": "Delete metadata by key", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "address", - "in": "path", - "description": "Account address", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "key", - "in": "path", - "description": "The key to remove.", - "required": true, - "schema": { - "type": "string", - "example": "foo" - } - } - ], - "responses": { - "2XX": { - "description": "Key deleted", - "content": {} - } - } - } - }, - "/api/ledger/v2/{ledger}/stats": { - "get": { - "tags": [ - "Ledger" - ], - "operationId": "v2ReadStats", - "summary": "Get statistics from a ledger", - "description": "Get statistics from a ledger. (aggregate metrics on accounts and transactions)\n", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "name of the ledger", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2StatsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/transactions": { - "head": { - "tags": [ - "Ledger" - ], - "summary": "Count the transactions from a ledger", - "operationId": "v2CountTransactions", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - }, - "responses": { - "204": { - "description": "OK", - "headers": { - "Count": { - "schema": { - "type": "integer", - "format": "int64", - "minimum": 0 - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - }, - "get": { - "tags": [ - "Ledger" - ], - "summary": "List transactions from a ledger", - "description": "List transactions from a ledger, sorted by id in descending order.", - "operationId": "v2ListTransactions", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000 - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - { - "name": "expand", - "in": "query", - "schema": { - "type": "string", - "items": { - "type": "string" - } - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2TransactionsCursorResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - }, - "post": { - "tags": [ - "Ledger" - ], - "summary": "Create a new transaction to a ledger", - "operationId": "v2CreateTransaction", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "dryRun", - "in": "query", - "description": "Set the dryRun mode. dry run mode doesn't add the logs to the database or publish a message to the message broker.", - "schema": { - "type": "boolean", - "example": true - } - }, - { - "name": "Idempotency-Key", - "in": "header", - "description": "Use an idempotency key", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "description": "The request body must contain at least one of the following objects:\n - `postings`: suitable for simple transactions\n - `script`: enabling more complex transactions with Numscript\n", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2PostTransaction" - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2CreateTransactionResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/transactions/{id}": { - "get": { - "tags": [ - "Ledger" - ], - "summary": "Get transaction from a ledger by its ID", - "operationId": "v2GetTransaction", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "id", - "in": "path", - "description": "Transaction ID.", - "required": true, - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - } - }, - { - "name": "expand", - "in": "query", - "schema": { - "type": "string", - "items": { - "type": "string" - } - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2GetTransactionResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/transactions/{id}/metadata": { - "post": { - "tags": [ - "Ledger" - ], - "summary": "Set the metadata of a transaction by its ID", - "operationId": "v2AddMetadataOnTransaction", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "id", - "in": "path", - "description": "Transaction ID.", - "required": true, - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - } - }, - { - "name": "dryRun", - "in": "query", - "description": "Set the dryRun mode. Dry run mode doesn't add the logs to the database or publish a message to the message broker.", - "schema": { - "type": "boolean", - "example": true - } - }, - { - "name": "Idempotency-Key", - "in": "header", - "description": "Use an idempotency key", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "metadata", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2Metadata" - } - } - } - }, - "responses": { - "204": { - "description": "No Content", - "content": {} - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/transactions/{id}/metadata/{key}": { - "delete": { - "description": "Delete metadata by key", - "operationId": "v2DeleteTransactionMetadata", - "summary": "Delete metadata by key", - "tags": [ - "Ledger" - ], - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "id", - "in": "path", - "description": "Transaction ID.", - "required": true, - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - } - }, - { - "name": "key", - "in": "path", - "required": true, - "description": "The key to remove.", - "schema": { - "type": "string", - "example": "foo" - } - } - ], - "responses": { - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "2XX": { - "description": "Key deleted", - "content": {} - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/transactions/{id}/revert": { - "post": { - "tags": [ - "Ledger" - ], - "operationId": "v2RevertTransaction", - "summary": "Revert a ledger transaction by its ID", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "id", - "in": "path", - "description": "Transaction ID.", - "required": true, - "schema": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - } - }, - { - "name": "force", - "in": "query", - "description": "Force revert", - "required": false, - "schema": { - "type": "boolean" - } - } - ], - "responses": { - "201": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2RevertTransactionResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/aggregate/balances": { - "get": { - "tags": [ - "Ledger" - ], - "summary": "Get the aggregated balances from selected accounts", - "operationId": "v2GetBalancesAggregated", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2AggregateBalancesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/ledger/v2/{ledger}/logs": { - "get": { - "tags": [ - "Ledger" - ], - "summary": "List the logs from a ledger", - "description": "List the logs from a ledger, sorted by ID in descending order.", - "operationId": "v2ListLogs", - "parameters": [ - { - "name": "ledger", - "in": "path", - "description": "Name of the ledger.", - "required": true, - "schema": { - "type": "string", - "example": "ledger001" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000 - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - { - "name": "pit", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2LogsCursorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ErrorResponse" - } - } - } - } - } - } - }, - "/api/search/_info": { - "get": { - "summary": "Get server info", - "operationId": "searchgetServerInfo", - "tags": [ - "Search" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - } - } - } - }, - "/api/search/": { - "post": { - "summary": "Search", - "tags": [ - "Search" - ], - "operationId": "search", - "description": "ElasticSearch query engine", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Query" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "default": { - "description": "Error", - "content": {} - } - } - } - }, - "/api/webhooks/configs": { - "get": { - "summary": "Get many configs", - "description": "Sorted by updated date descending", - "operationId": "getManyConfigs", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "query", - "description": "Optional filter by Config ID", - "required": false, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - }, - { - "name": "endpoint", - "in": "query", - "description": "Optional filter by endpoint URL", - "required": false, - "schema": { - "type": "string", - "example": "https://example.com" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - } - } - }, - "post": { - "summary": "Insert a new config", - "description": "Insert a new webhooks config.\n\nThe endpoint should be a valid https URL and be unique.\n\nThe secret is the endpoint's verification secret.\nIf not passed or empty, a secret is automatically generated.\nThe format is a random string of bytes of size 24, base64 encoded. (larger size after encoding)\n\nAll eventTypes are converted to lower-case when inserted.\n", - "operationId": "insertConfig", - "tags": [ - "Webhooks" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigUser" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Config created successfully.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}": { - "delete": { - "summary": "Delete one config", - "description": "Delete a webhooks config by ID.", - "operationId": "deleteConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Config successfully deleted." - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/test": { - "get": { - "summary": "Test one config", - "description": "Test a config by sending a webhook to its endpoint.", - "operationId": "testConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AttemptResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/activate": { - "put": { - "summary": "Activate one config", - "description": "Activate a webhooks config by ID, to start receiving webhooks to its endpoint.", - "operationId": "activateConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Config successfully activated.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/deactivate": { - "put": { - "summary": "Deactivate one config", - "description": "Deactivate a webhooks config by ID, to stop receiving webhooks to its endpoint.", - "operationId": "deactivateConfig", - "tags": [ - "Webhooks" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Config successfully deactivated.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "404": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - } - } - } - }, - "/api/webhooks/configs/{id}/secret/change": { - "put": { - "summary": "Change the signing secret of a config", - "description": "Change the signing secret of the endpoint of a webhooks config.\n\nIf not passed or empty, a secret is automatically generated.\nThe format is a random string of bytes of size 24, base64 encoded. (larger size after encoding)\n", - "operationId": "changeConfigSecret", - "tags": [ - "Webhooks" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigChangeSecret" - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Config ID", - "required": true, - "schema": { - "type": "string", - "example": "4997257d-dfb6-445b-929c-cbe2ab182818" - } - } - ], - "responses": { - "200": { - "description": "Secret successfully changed.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigResponse" - } - } - } - }, - "400": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/webhooksErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/_info": { - "get": { - "summary": "Get server info", - "operationId": "walletsgetServerInfo", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/transactions": { - "get": { - "operationId": "getTransactions", - "parameters": [ - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page", - "example": 100, - "schema": { - "type": "integer", - "maximum": 1000, - "minimum": 1, - "default": 15 - } - }, - { - "name": "walletID", - "in": "query", - "description": "A wallet ID to filter on", - "example": "wallet1", - "schema": { - "type": "string" - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when the cursor is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - } - ], - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetTransactionsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets": { - "get": { - "summary": "List all wallets", - "operationId": "listWallets", - "parameters": [ - { - "name": "name", - "in": "query", - "description": "Filter on wallet name", - "example": "wallet1", - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "Filter wallets by metadata key value pairs. Nested objects can be used as seen in the example below.", - "style": "deepObject", - "explode": true, - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": { - "type": "string" - } - }, - "example": { - "admin": "true" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page", - "example": 100, - "schema": { - "type": "integer", - "maximum": 1000, - "minimum": 1, - "default": 15 - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when the pagination token is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - } - ], - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListWalletsResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create a new wallet", - "operationId": "createWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWalletRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Wallet created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWalletResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "get": { - "summary": "Get a wallet", - "operationId": "getWallet", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Wallet", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWalletResponse" - } - } - } - }, - "404": { - "description": "Wallet not found" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - }, - "patch": { - "summary": "Update a wallet", - "operationId": "updateWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "metadata" - ], - "properties": { - "metadata": { - "type": "object", - "description": "Custom metadata to attach to this wallet.", - "additionalProperties": { - "type": "string" - } - } - } - } - } - } - }, - "responses": { - "204": { - "description": "Wallet successfully updated" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/summary": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "get": { - "summary": "Get wallet summary", - "operationId": "getWalletSummary", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Wallet summary", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWalletSummaryResponse" - } - } - } - }, - "404": { - "description": "Wallet not found" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/balances": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "get": { - "summary": "List balances of a wallet", - "operationId": "listBalances", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Balances list", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListBalancesResponse" - } - } - } - } - } - }, - "post": { - "summary": "Create a balance", - "operationId": "createBalance", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateBalanceRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Created balance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateBalanceResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/balances/{balanceName}": { - "get": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "balanceName", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "summary": "Get detailed balance", - "operationId": "getBalance", - "tags": [ - "Wallets" - ], - "responses": { - "200": { - "description": "Balance summary", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetBalanceResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/debit": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "post": { - "summary": "Debit a wallet", - "operationId": "debitWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DebitWalletRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Wallet successfully debited as a pending hold", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DebitWalletResponse" - } - } - } - }, - "204": { - "description": "Wallet successfully debited" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/wallets/{id}/credit": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "post": { - "summary": "Credit a wallet", - "operationId": "creditWallet", - "tags": [ - "Wallets" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditWalletRequest" - } - } - } - }, - "responses": { - "204": { - "description": "Wallet successfully credited" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds": { - "get": { - "summary": "Get all holds for a wallet", - "tags": [ - "Wallets" - ], - "operationId": "getHolds", - "parameters": [ - { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page", - "example": 100, - "schema": { - "type": "integer", - "maximum": 1000, - "minimum": 1, - "default": 15 - } - }, - { - "name": "walletID", - "in": "query", - "description": "The wallet to filter on", - "example": "wallet1", - "schema": { - "type": "string" - } - }, - { - "name": "metadata", - "in": "query", - "description": "Filter holds by metadata key value pairs. Nested objects can be used as seen in the example below.", - "style": "deepObject", - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": { - "type": "string" - } - }, - "example": { - "admin": "true" - } - }, - { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when the pagination token is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - } - ], - "responses": { - "200": { - "description": "Holds", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetHoldsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds/{holdID}": { - "get": { - "summary": "Get a hold", - "tags": [ - "Wallets" - ], - "operationId": "getHold", - "parameters": [ - { - "name": "holdID", - "in": "path", - "schema": { - "type": "string" - }, - "required": true, - "description": "The hold ID" - } - ], - "responses": { - "200": { - "description": "Holds", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetHoldResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds/{hold_id}/confirm": { - "post": { - "parameters": [ - { - "name": "hold_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfirmHoldRequest" - } - } - } - }, - "summary": "Confirm a hold", - "tags": [ - "Wallets" - ], - "operationId": "confirmHold", - "responses": { - "204": { - "description": "Hold successfully confirmed, funds moved back to initial destination" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/wallets/holds/{hold_id}/void": { - "parameters": [ - { - "name": "hold_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "post": { - "summary": "Cancel a hold", - "operationId": "voidHold", - "tags": [ - "Wallets" - ], - "responses": { - "204": { - "description": "Hold successfully cancelled, funds returned to wallet" - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/walletsErrorResponse" - } - } - } - } - } - } - }, - "/api/orchestration/_info": { - "get": { - "summary": "Get server info", - "operationId": "orchestrationgetServerInfo", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/triggers": { - "get": { - "summary": "List triggers", - "operationId": "listTriggers", - "description": "List triggers", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of triggers", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListTriggersResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "post": { - "summary": "Create trigger", - "operationId": "createTrigger", - "description": "Create trigger", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggerData" - } - } - } - }, - "responses": { - "201": { - "description": "Created trigger", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateTriggerResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/triggers/{triggerID}": { - "parameters": [ - { - "name": "triggerID", - "description": "The trigger id", - "in": "path", - "schema": { - "type": "string" - }, - "required": true - } - ], - "get": { - "summary": "Read trigger", - "operationId": "readTrigger", - "description": "Read trigger", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "A specific trigger", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReadTriggerResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "delete": { - "summary": "Delete trigger", - "operationId": "deleteTrigger", - "description": "Read trigger", - "tags": [ - "Orchestration" - ], - "responses": { - "204": { - "description": "Trigger deleted" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/triggers/{triggerID}/occurrences": { - "parameters": [ - { - "name": "triggerID", - "description": "The trigger id", - "in": "path", - "schema": { - "type": "string" - }, - "required": true - } - ], - "get": { - "summary": "List triggers occurrences", - "operationId": "listTriggersOccurrences", - "description": "List triggers occurrences", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of triggers occurrences", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListTriggersOccurrencesResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/workflows": { - "get": { - "summary": "List registered workflows", - "operationId": "listWorkflows", - "description": "List registered workflows", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of workflows", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListWorkflowsResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "post": { - "summary": "Create workflow", - "operationId": "createWorkflow", - "description": "Create a workflow", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWorkflowRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Created workflow", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/workflows/{flowId}": { - "parameters": [ - { - "in": "path", - "description": "The flow id", - "name": "flowId", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a flow by id", - "tags": [ - "Orchestration" - ], - "description": "Get a flow by id", - "operationId": "getWorkflow", - "responses": { - "200": { - "description": "The workflow", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - }, - "delete": { - "summary": "Delete a flow by id", - "tags": [ - "Orchestration" - ], - "description": "Delete a flow by id", - "operationId": "deleteWorkflow", - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/workflows/{workflowID}/instances": { - "parameters": [ - { - "in": "path", - "description": "The flow id", - "name": "workflowID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "post": { - "description": "Run workflow", - "summary": "Run workflow", - "operationId": "runWorkflow", - "parameters": [ - { - "in": "query", - "name": "wait", - "required": false, - "description": "Wait end of the workflow before return", - "schema": { - "type": "boolean" - } - } - ], - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RunWorkflowRequest" - } - } - } - }, - "responses": { - "201": { - "description": "The workflow instance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RunWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances": { - "get": { - "description": "List instances of a workflow", - "summary": "List instances of a workflow", - "operationId": "listInstances", - "parameters": [ - { - "in": "query", - "description": "A workflow id", - "name": "workflowID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": false - }, - { - "in": "query", - "description": "Filter running instances", - "name": "running", - "schema": { - "type": "boolean" - }, - "example": true, - "required": false - } - ], - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of workflow instances", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListRunsResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a workflow instance by id", - "description": "Get a workflow instance by id", - "operationId": "getInstance", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowInstanceResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/events": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "post": { - "summary": "Send an event to a running workflow", - "description": "Send an event to a running workflow", - "operationId": "sendEvent", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - } - } - } - } - } - }, - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/abort": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "put": { - "summary": "Cancel a running workflow", - "description": "Cancel a running workflow", - "operationId": "cancelEvent", - "tags": [ - "Orchestration" - ], - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/history": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a workflow instance history by id", - "description": "Get a workflow instance history by id", - "operationId": "getInstanceHistory", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance history", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowInstanceHistoryResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/instances/{instanceID}/stages/{number}/history": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - }, - { - "in": "path", - "description": "The stage number", - "name": "number", - "schema": { - "type": "integer" - }, - "example": 0, - "required": true - } - ], - "get": { - "summary": "Get a workflow instance stage history", - "description": "Get a workflow instance stage history", - "operationId": "getInstanceStageHistory", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance stage history", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetWorkflowInstanceHistoryStageResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/_info": { - "get": { - "summary": "Get server info", - "operationId": "v2GetServerInfo", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ServerInfo" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/triggers": { - "get": { - "summary": "List triggers", - "operationId": "v2ListTriggers", - "description": "List triggers", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of triggers", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ListTriggersResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - }, - "post": { - "summary": "Create trigger", - "operationId": "v2CreateTrigger", - "description": "Create trigger", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2TriggerData" - } - } - } - }, - "responses": { - "201": { - "description": "Created trigger", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2CreateTriggerResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/triggers/{triggerID}": { - "parameters": [ - { - "name": "triggerID", - "description": "The trigger id", - "in": "path", - "schema": { - "type": "string" - }, - "required": true - } - ], - "get": { - "summary": "Read trigger", - "operationId": "v2ReadTrigger", - "description": "Read trigger", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "A specific trigger", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ReadTriggerResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - }, - "delete": { - "summary": "Delete trigger", - "operationId": "v2DeleteTrigger", - "description": "Read trigger", - "tags": [ - "Orchestration" - ], - "responses": { - "204": { - "description": "Trigger deleted" - }, - "404": { - "$ref": "#/components/responses/V2ErrorResponse" - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/triggers/{triggerID}/occurrences": { - "parameters": [ - { - "name": "triggerID", - "description": "The trigger id", - "in": "path", - "schema": { - "type": "string" - }, - "required": true - } - ], - "get": { - "summary": "List triggers occurrences", - "operationId": "v2ListTriggersOccurrences", - "description": "List triggers occurrences", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of triggers occurrences", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ListTriggersOccurrencesResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/workflows": { - "get": { - "summary": "List registered workflows", - "operationId": "v2ListWorkflows", - "description": "List registered workflows", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of workflows", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ListWorkflowsResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - }, - "post": { - "summary": "Create workflow", - "operationId": "v2CreateWorkflow", - "description": "Create a workflow", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2CreateWorkflowRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Created workflow", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2CreateWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/workflows/{flowId}": { - "parameters": [ - { - "in": "path", - "description": "The flow id", - "name": "flowId", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a flow by id", - "tags": [ - "Orchestration" - ], - "description": "Get a flow by id", - "operationId": "v2GetWorkflow", - "responses": { - "200": { - "description": "The workflow", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2GetWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - }, - "delete": { - "summary": "Delete a flow by id", - "tags": [ - "Orchestration" - ], - "description": "Delete a flow by id", - "operationId": "v2DeleteWorkflow", - "responses": { - "204": { - "description": "No content" - }, - "400": { - "$ref": "#/components/responses/V2ErrorResponse" - }, - "404": { - "$ref": "#/components/responses/V2ErrorResponse" - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/workflows/{workflowID}/instances": { - "parameters": [ - { - "in": "path", - "description": "The flow id", - "name": "workflowID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "post": { - "description": "Run workflow", - "summary": "Run workflow", - "operationId": "v2RunWorkflow", - "parameters": [ - { - "in": "query", - "name": "wait", - "required": false, - "description": "Wait end of the workflow before return", - "schema": { - "type": "boolean" - } - } - ], - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2RunWorkflowRequest" - } - } - } - }, - "responses": { - "201": { - "description": "The workflow instance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2RunWorkflowResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/instances": { - "get": { - "description": "List instances of a workflow", - "summary": "List instances of a workflow", - "operationId": "v2ListInstances", - "parameters": [ - { - "in": "query", - "description": "A workflow id", - "name": "workflowID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": false - }, - { - "in": "query", - "description": "Filter running instances", - "name": "running", - "schema": { - "type": "boolean" - }, - "example": true, - "required": false - } - ], - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "List of workflow instances", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2ListRunsResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/instances/{instanceID}": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a workflow instance by id", - "description": "Get a workflow instance by id", - "operationId": "v2GetInstance", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2GetWorkflowInstanceResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/instances/{instanceID}/events": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "post": { - "summary": "Send an event to a running workflow", - "description": "Send an event to a running workflow", - "operationId": "v2SendEvent", - "tags": [ - "Orchestration" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - } - } - } - } - } - }, - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/instances/{instanceID}/abort": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "put": { - "summary": "Cancel a running workflow", - "description": "Cancel a running workflow", - "operationId": "v2CancelEvent", - "tags": [ - "Orchestration" - ], - "responses": { - "204": { - "description": "No content" - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/instances/{instanceID}/history": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - } - ], - "get": { - "summary": "Get a workflow instance history by id", - "description": "Get a workflow instance history by id", - "operationId": "v2GetInstanceHistory", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance history", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2GetWorkflowInstanceHistoryResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/orchestration/v2/instances/{instanceID}/stages/{number}/history": { - "parameters": [ - { - "in": "path", - "description": "The instance id", - "name": "instanceID", - "schema": { - "type": "string" - }, - "example": "xxx", - "required": true - }, - { - "in": "path", - "description": "The stage number", - "name": "number", - "schema": { - "type": "integer" - }, - "example": 0, - "required": true - } - ], - "get": { - "summary": "Get a workflow instance stage history", - "description": "Get a workflow instance stage history", - "operationId": "v2GetInstanceStageHistory", - "tags": [ - "Orchestration" - ], - "responses": { - "200": { - "description": "The workflow instance stage history", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2GetWorkflowInstanceHistoryStageResponse" - } - } - } - }, - "default": { - "$ref": "#/components/responses/V2ErrorResponse" - } - } - } - }, - "/api/reconciliation/_info": { - "get": { - "summary": "Get server info", - "operationId": "reconciliationgetServerInfo", - "tags": [ - "Reconciliation" - ], - "responses": { - "200": { - "$ref": "#/components/responses/ServerInfo" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - } - }, - "/api/reconciliation/policies": { - "post": { - "summary": "Create a policy", - "tags": [ - "Reconciliation" - ], - "operationId": "createPolicy", - "description": "Create a policy", - "requestBody": { - "$ref": "#/components/requestBodies/Policy" - }, - "responses": { - "201": { - "$ref": "#/components/responses/Policy" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - }, - "get": { - "summary": "List policies", - "operationId": "listPolicies", - "tags": [ - "Reconciliation" - ], - "parameters": [ - { - "$ref": "#/components/parameters/PageSize" - }, - { - "$ref": "#/components/parameters/Cursor" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Policies" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - } - }, - "/api/reconciliation/policies/{policyID}": { - "delete": { - "summary": "Delete a policy", - "operationId": "deletePolicy", - "tags": [ - "Reconciliation" - ], - "description": "Delete a policy by its id.", - "parameters": [ - { - "$ref": "#/components/parameters/PolicyID" - } - ], - "responses": { - "204": { - "$ref": "#/components/responses/NoContent" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - }, - "get": { - "summary": "Get a policy", - "tags": [ - "Reconciliation" - ], - "operationId": "getPolicy", - "parameters": [ - { - "$ref": "#/components/parameters/PolicyID" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Policy" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - } - }, - "/api/reconciliation/policies/{policyID}/reconciliation": { - "post": { - "summary": "Reconcile using a policy", - "tags": [ - "Reconciliation" - ], - "operationId": "reconcile", - "description": "Reconcile using a policy", - "parameters": [ - { - "$ref": "#/components/parameters/PolicyID" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/Reconciliation" - }, - "responses": { - "200": { - "$ref": "#/components/responses/Reconciliation" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - } - }, - "/api/reconciliation/reconciliations": { - "get": { - "summary": "List reconciliations", - "operationId": "listReconciliations", - "tags": [ - "Reconciliation" - ], - "parameters": [ - { - "$ref": "#/components/parameters/PageSize" - }, - { - "$ref": "#/components/parameters/Cursor" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Reconciliations" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - } - }, - "/api/reconciliation/reconciliations/{reconciliationID}": { - "get": { - "summary": "Get a reconciliation", - "tags": [ - "Reconciliation" - ], - "operationId": "getReconciliation", - "parameters": [ - { - "$ref": "#/components/parameters/ReconciliationID" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/Reconciliation" - }, - "default": { - "$ref": "#/components/responses/reconciliationErrorResponse" - } - } - } - } - }, - "components": { - "schemas": { - "Version": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "health": { - "type": "boolean" - } - }, - "required": [ - "name", - "version", - "health" - ] - }, - "GetVersionsResponse": { - "type": "object", - "properties": { - "region": { - "type": "string" - }, - "env": { - "type": "string" - }, - "versions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Version" - } - } - }, - "required": [ - "region", - "env", - "versions" - ] - }, - "Metadata": { - "type": "object", - "additionalProperties": {} - }, - "ClientOptions": { - "type": "object", - "properties": { - "public": { - "type": "boolean" - }, - "redirectUris": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "trusted": { - "type": "boolean" - }, - "postLogoutRedirectUris": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "name" - ] - }, - "ClientSecret": { - "type": "object", - "properties": { - "lastDigits": { - "type": "string" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - } - }, - "required": [ - "id", - "lastDigits", - "name" - ] - }, - "Client": { - "allOf": [ - { - "$ref": "#/components/schemas/ClientOptions" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientSecret" - } - } - }, - "required": [ - "id" - ] - } - ] - }, - "ScopeOptions": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - } - }, - "required": [ - "label" - ] - }, - "Scope": { - "allOf": [ - { - "$ref": "#/components/schemas/ScopeOptions" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "transient": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "id" - ] - } - ] - }, - "SecretOptions": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/Metadata" - } - }, - "required": [ - "name" - ] - }, - "Secret": { - "allOf": [ - { - "$ref": "#/components/schemas/SecretOptions" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "lastDigits": { - "type": "string" - }, - "clear": { - "type": "string" - } - }, - "required": [ - "id", - "lastDigits", - "clear" - ] - } - ] - }, - "User": { - "type": "object", - "properties": { - "id": { - "type": "string", - "example": "3bb03708-312f-48a0-821a-e765837dc2c4" - }, - "subject": { - "type": "string", - "example": "Jane Doe" - }, - "email": { - "type": "string", - "example": "user1@orga1.com" - } - } - }, - "CreateClientRequest": { - "$ref": "#/components/schemas/ClientOptions" - }, - "CreateClientResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Client" - } - } - }, - "ListClientsResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Client" - } - } - } - }, - "UpdateClientRequest": { - "$ref": "#/components/schemas/ClientOptions" - }, - "UpdateClientResponse": { - "$ref": "#/components/schemas/CreateClientResponse" - }, - "ReadClientResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Client" - } - } - }, - "ListScopesResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Scope" - } - } - } - }, - "CreateScopeRequest": { - "$ref": "#/components/schemas/ScopeOptions" - }, - "CreateScopeResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Scope" - } - } - }, - "ReadScopeResponse": { - "$ref": "#/components/schemas/CreateScopeResponse" - }, - "UpdateScopeRequest": { - "$ref": "#/components/schemas/ScopeOptions" - }, - "UpdateScopeResponse": { - "$ref": "#/components/schemas/CreateScopeResponse" - }, - "CreateSecretRequest": { - "$ref": "#/components/schemas/SecretOptions" - }, - "CreateSecretResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/Secret" - } - } - }, - "ReadUserResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/User" - } - } - }, - "ListUsersResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/User" - } - } - } - }, - "ServerInfo": { - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "type": "string" - } - } - }, - "AccountsCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Account" - } - } - } - } - } - }, - "BalancesCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AccountsBalances" - } - } - } - } - } - }, - "TransactionsCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Transaction" - } - } - } - } - } - }, - "LogsCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Log" - } - } - } - } - } - }, - "AccountResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/AccountWithVolumesAndBalances" - } - } - }, - "AggregateBalancesResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/AssetsBalances" - } - } - }, - "Config": { - "type": "object", - "properties": { - "storage": { - "$ref": "#/components/schemas/LedgerStorage" - } - }, - "required": [ - "storage" - ] - }, - "LedgerStorage": { - "type": "object", - "properties": { - "driver": { - "type": "string" - }, - "ledgers": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "driver", - "ledgers" - ] - }, - "ledgerMetadata": { - "type": "object", - "nullable": true, - "additionalProperties": {} - }, - "ConfigInfo": { - "type": "object", - "properties": { - "config": { - "$ref": "#/components/schemas/Config" - }, - "server": { - "type": "string" - }, - "version": { - "type": "string" - } - }, - "required": [ - "config", - "server", - "version" - ] - }, - "ScriptResponse": { - "type": "object", - "properties": { - "errorCode": { - "$ref": "#/components/schemas/ErrorsEnum" - }, - "errorMessage": { - "type": "string", - "example": "account had insufficient funds" - }, - "details": { - "type": "string", - "example": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9" - }, - "transaction": { - "$ref": "#/components/schemas/Transaction" - } - } - }, - "Account": { - "type": "object", - "required": [ - "address" - ], - "properties": { - "address": { - "type": "string", - "example": "users:001" - }, - "type": { - "type": "string", - "example": "virtual" - }, - "metadata": { - "type": "object", - "additionalProperties": true, - "example": { - "admin": true, - "a": { - "nested": { - "key": "value" - } - } - } - } - } - }, - "AccountWithVolumesAndBalances": { - "type": "object", - "required": [ - "address" - ], - "properties": { - "address": { - "type": "string", - "example": "users:001" - }, - "type": { - "type": "string", - "example": "virtual" - }, - "metadata": { - "type": "object", - "additionalProperties": true, - "example": { - "admin": true, - "a": { - "nested": { - "key": "value" - } - } - } - }, - "volumes": { - "$ref": "#/components/schemas/Volumes" - }, - "balances": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - }, - "example": { - "COIN": 100 - } - } - } - }, - "AccountsBalances": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/AssetsBalances" - }, - "example": { - "account1": { - "USD": 100, - "EUR": 23 - }, - "account2": { - "CAD": 20, - "JPY": 21 - } - } - }, - "AssetsBalances": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "int64" - }, - "example": { - "USD": 100, - "EUR": 12 - } - }, - "Contract": { - "type": "object", - "properties": { - "account": { - "type": "string", - "example": "users:001" - }, - "expr": { - "type": "object" - } - }, - "required": [ - "accounts", - "expr" - ] - }, - "Mapping": { - "type": "object", - "nullable": true, - "required": [ - "contracts" - ], - "properties": { - "contracts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Contract" - } - } - } - }, - "Posting": { - "type": "object", - "properties": { - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "COIN" - }, - "destination": { - "type": "string", - "example": "users:002" - }, - "source": { - "type": "string", - "example": "users:001" - } - }, - "required": [ - "amount", - "asset", - "destination", - "source" - ] - }, - "Script": { - "type": "object", - "properties": { - "plain": { - "type": "string", - "example": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n" - }, - "vars": { - "type": "object", - "additionalProperties": true, - "example": { - "user": "users:042" - } - }, - "reference": { - "type": "string", - "example": "order_1234", - "description": "Reference to attach to the generated transaction" - }, - "metadata": { - "$ref": "#/components/schemas/ledgerMetadata" - } - }, - "required": [ - "plain" - ] - }, - "Transaction": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/ledgerMetadata" - }, - "txid": { - "type": "integer", - "format": "bigint", - "minimum": 0 - }, - "preCommitVolumes": { - "$ref": "#/components/schemas/AggregatedVolumes" - }, - "postCommitVolumes": { - "$ref": "#/components/schemas/AggregatedVolumes" - } - }, - "required": [ - "postings", - "timestamp", - "txid" - ] - }, - "TransactionData": { - "type": "object", - "required": [ - "postings" - ], - "properties": { - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/ledgerMetadata" - }, - "timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "Transactions": { - "required": [ - "transactions" - ], - "type": "object", - "properties": { - "transactions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TransactionData" - } - } - } - }, - "PostTransaction": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "script": { - "type": "object", - "properties": { - "plain": { - "type": "string", - "example": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n" - }, - "vars": { - "type": "object", - "additionalProperties": true, - "example": { - "user": "users:042" - } - } - }, - "required": [ - "plain" - ] - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/ledgerMetadata" - } - } - }, - "Stats": { - "type": "object", - "properties": { - "accounts": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "transactions": { - "type": "integer", - "format": "int64", - "minimum": 0 - } - }, - "required": [ - "accounts", - "transactions" - ] - }, - "Log": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "minimum": 0, - "example": 1234 - }, - "type": { - "type": "string", - "enum": [ - "NEW_TRANSACTION", - "SET_METADATA" - ] - }, - "data": { - "type": "object", - "additionalProperties": true - }, - "hash": { - "type": "string", - "example": "9ee060170400f556b7e1575cb13f9db004f150a08355c7431c62bc639166431e" - }, - "date": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "type", - "data", - "hash", - "date" - ] - }, - "TransactionsResponse": { - "type": "object", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Transaction" - }, - "type": "array" - } - }, - "required": [ - "data" - ] - }, - "TransactionResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/Transaction" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "StatsResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/Stats" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "MappingResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/Mapping" - } - }, - "type": "object" - }, - "ConfigInfoResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/ConfigInfo" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "Volume": { - "type": "object", - "properties": { - "input": { - "type": "integer", - "format": "bigint" - }, - "output": { - "type": "integer", - "format": "bigint" - }, - "balance": { - "type": "integer", - "format": "bigint" - } - }, - "required": [ - "input", - "output" - ], - "example": { - "input": 100, - "output": 20, - "balance": 80 - } - }, - "Volumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Volume" - }, - "example": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - }, - "EUR": { - "input": 100, - "output": 10, - "balance": 90 - } - } - }, - "AggregatedVolumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Volumes" - }, - "example": { - "orders:1": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - } - }, - "orders:2": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - } - } - } - }, - "ErrorResponse": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "$ref": "#/components/schemas/ErrorsEnum" - }, - "errorMessage": { - "type": "string", - "example": "[INSUFFICIENT_FUND] account had insufficient funds" - }, - "details": { - "type": "string", - "example": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9" - } - } - }, - "ErrorsEnum": { - "type": "string", - "enum": [ - "INTERNAL", - "INSUFFICIENT_FUND", - "VALIDATION", - "CONFLICT", - "NO_SCRIPT", - "COMPILATION_FAILED", - "METADATA_OVERRIDE" - ], - "example": "INSUFFICIENT_FUND" - }, - "LedgerInfoResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/LedgerInfo" - } - } - }, - "LedgerInfo": { - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "ledger001" - }, - "storage": { - "type": "object", - "properties": { - "migrations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MigrationInfo" - } - } - } - } - } - }, - "MigrationInfo": { - "type": "object", - "properties": { - "version": { - "type": "integer", - "format": "int64", - "minimum": 0, - "example": 11 - }, - "name": { - "type": "string", - "example": "migrations:001" - }, - "date": { - "type": "string", - "format": "date-time" - }, - "state": { - "type": "string", - "enum": [ - "to do", - "done" - ] - } - } - }, - "V2AccountsCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Account" - } - } - } - } - } - }, - "V2BalancesCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2AccountsBalances" - } - } - } - } - } - }, - "V2TransactionsCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2ExpandedTransaction" - } - } - } - } - } - }, - "V2LogsCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Log" - } - } - } - } - } - }, - "V2AccountResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Account" - } - } - }, - "V2AggregateBalancesResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2AssetsBalances" - } - } - }, - "V2Metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "example": { - "admin": "true" - } - }, - "V2ConfigInfo": { - "type": "object", - "properties": { - "server": { - "type": "string" - }, - "version": { - "type": "string" - } - }, - "required": [ - "config", - "server", - "version" - ] - }, - "V2Account": { - "type": "object", - "required": [ - "address", - "metadata" - ], - "properties": { - "address": { - "type": "string", - "example": "users:001" - }, - "metadata": { - "type": "object", - "properties": {}, - "additionalProperties": { - "type": "string" - }, - "example": { - "admin": "true" - } - }, - "volumes": { - "$ref": "#/components/schemas/V2Volumes" - }, - "effectiveVolumes": { - "$ref": "#/components/schemas/V2Volumes" - } - } - }, - "V2AccountsBalances": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/V2AssetsBalances" - }, - "example": { - "account1": { - "USD": 100, - "EUR": 23 - }, - "account2": { - "CAD": 20, - "JPY": 21 - } - } - }, - "V2AssetsBalances": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - }, - "example": { - "USD": 100, - "EUR": 12 - } - }, - "V2Posting": { - "type": "object", - "properties": { - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "COIN" - }, - "destination": { - "type": "string", - "example": "users:002" - }, - "source": { - "type": "string", - "example": "users:001" - } - }, - "required": [ - "amount", - "asset", - "destination", - "source" - ] - }, - "V2Script": { - "type": "object", - "properties": { - "plain": { - "type": "string", - "example": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n" - }, - "vars": { - "type": "object", - "properties": {}, - "additionalProperties": true, - "example": { - "user": "users:042" - } - }, - "reference": { - "type": "string", - "example": "order_1234", - "description": "Reference to attach to the generated transaction" - }, - "metadata": { - "$ref": "#/components/schemas/V2Metadata" - } - }, - "required": [ - "plain" - ] - }, - "V2Transaction": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/V2Metadata" - }, - "id": { - "type": "integer", - "format": "bigint", - "minimum": 0 - }, - "reverted": { - "type": "boolean" - } - }, - "required": [ - "postings", - "timestamp", - "id", - "metadata", - "reverted" - ] - }, - "V2ExpandedTransaction": { - "allOf": [ - { - "$ref": "#/components/schemas/V2Transaction" - }, - { - "type": "object", - "properties": { - "preCommitVolumes": { - "$ref": "#/components/schemas/V2AggregatedVolumes" - }, - "postCommitVolumes": { - "$ref": "#/components/schemas/V2AggregatedVolumes" - } - } - } - ] - }, - "V2PostTransaction": { - "type": "object", - "required": [ - "metadata" - ], - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Posting" - } - }, - "script": { - "type": "object", - "properties": { - "plain": { - "type": "string", - "example": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n" - }, - "vars": { - "type": "object", - "properties": {}, - "additionalProperties": true, - "example": { - "user": "users:042" - } - } - }, - "required": [ - "plain" - ] - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/V2Metadata" - } - } - }, - "V2Stats": { - "type": "object", - "properties": { - "accounts": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "transactions": { - "type": "integer", - "format": "bigint", - "minimum": 0 - } - }, - "required": [ - "accounts", - "transactions" - ] - }, - "V2Log": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 1234 - }, - "type": { - "type": "string", - "enum": [ - "NEW_TRANSACTION", - "SET_METADATA", - "REVERTED_TRANSACTION" - ] - }, - "data": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hash": { - "type": "string", - "example": "9ee060170400f556b7e1575cb13f9db004f150a08355c7431c62bc639166431e" - }, - "date": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "type", - "data", - "hash", - "date" - ] - }, - "V2CreateTransactionResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/V2Transaction" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "V2RevertTransactionResponse": { - "$ref": "#/components/schemas/orchestrationV2CreateTransactionResponse" - }, - "V2GetTransactionResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/V2ExpandedTransaction" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "V2StatsResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/V2Stats" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "V2ConfigInfoResponse": { - "$ref": "#/components/schemas/V2ConfigInfo" - }, - "V2Volume": { - "type": "object", - "properties": { - "input": { - "type": "integer", - "format": "bigint" - }, - "output": { - "type": "integer", - "format": "bigint" - }, - "balance": { - "type": "integer", - "format": "bigint" - } - }, - "required": [ - "input", - "output" - ], - "example": { - "input": 100, - "output": 20, - "balance": 80 - } - }, - "V2Volumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/V2Volume" - }, - "example": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - }, - "EUR": { - "input": 100, - "output": 10, - "balance": 90 - } - } - }, - "V2AggregatedVolumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/V2Volumes" - }, - "example": { - "orders:1": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - } - }, - "orders:2": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - } - } - } - }, - "V2ErrorResponse": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "$ref": "#/components/schemas/V2ErrorsEnum" - }, - "errorMessage": { - "type": "string", - "example": "[VALIDATION] invalid 'cursor' query param" - }, - "details": { - "type": "string", - "example": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9" - } - } - }, - "V2ErrorsEnum": { - "type": "string", - "enum": [ - "INTERNAL", - "INSUFFICIENT_FUND", - "VALIDATION", - "CONFLICT", - "COMPILATION_FAILED", - "METADATA_OVERRIDE", - "NOT_FOUND", - "REVERT_OCCURRING", - "ALREADY_REVERT", - "NO_POSTINGS" - ], - "example": "VALIDATION" - }, - "V2LedgerInfoResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/V2LedgerInfo" - } - } - }, - "V2LedgerInfo": { - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "ledger001" - }, - "storage": { - "type": "object", - "properties": { - "migrations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2MigrationInfo" - } - } - } - } - } - }, - "V2MigrationInfo": { - "type": "object", - "properties": { - "version": { - "type": "integer", - "format": "int64", - "minimum": 0, - "example": 11 - }, - "name": { - "type": "string", - "example": "migrations:001" - }, - "date": { - "type": "string", - "format": "date-time" - }, - "state": { - "type": "string", - "enum": [ - "to do", - "done" - ] - } - } - }, - "V2Bulk": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2BulkElement" - } - }, - "V2BaseBulkElement": { - "type": "object", - "required": [ - "action" - ], - "properties": { - "action": { - "type": "string" - }, - "ik": { - "type": "string" - } - } - }, - "V2BulkElement": { - "type": "object", - "oneOf": [ - { - "$ref": "#/components/schemas/V2BulkElementCreateTransaction" - }, - { - "$ref": "#/components/schemas/V2BulkElementAddMetadata" - }, - { - "$ref": "#/components/schemas/V2BulkElementRevertTransaction" - }, - { - "$ref": "#/components/schemas/V2BulkElementDeleteMetadata" - } - ], - "discriminator": { - "propertyName": "action", - "mapping": { - "CREATE_TRANSACTION": "#/components/schemas/V2BulkElementCreateTransaction", - "ADD_METADATA": "#/components/schemas/V2BulkElementAddMetadata", - "REVERT_TRANSACTION": "#/components/schemas/V2BulkElementRevertTransaction", - "DELETE_METADATA": "#/components/schemas/V2BulkElementDeleteMetadata" - } - } - }, - "V2BulkElementCreateTransaction": { - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElement" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/V2PostTransaction" - } - } - } - ] - }, - "V2TargetId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer", - "format": "bigint" - } - ] - }, - "V2TargetType": { - "type": "string", - "enum": [ - "TRANSACTION", - "ACCOUNT" - ] - }, - "V2BulkElementAddMetadata": { - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElement" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "targetId": { - "$ref": "#/components/schemas/V2TargetId" - }, - "targetType": { - "$ref": "#/components/schemas/V2TargetType" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "required": [ - "targetId", - "targetType", - "metadata" - ] - } - } - } - ] - }, - "V2BulkElementRevertTransaction": { - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElement" - }, - { - "type": "object", - "properties": { - "data": { - "properties": { - "id": { - "type": "integer", - "format": "bigint" - }, - "force": { - "type": "boolean" - } - }, - "required": [ - "id" - ] - } - } - } - ] - }, - "V2BulkElementDeleteMetadata": { - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElement" - }, - { - "type": "object", - "properties": { - "data": { - "properties": { - "targetId": { - "$ref": "#/components/schemas/V2TargetId" - }, - "targetType": { - "$ref": "#/components/schemas/V2TargetType" - }, - "key": { - "type": "string" - } - }, - "required": [ - "targetId", - "targetType", - "key" - ] - } - } - } - ] - }, - "V2BulkResponse": { - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2BulkElementResult" - } - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "V2BulkElementResult": { - "type": "object", - "oneOf": [ - { - "$ref": "#/components/schemas/V2BulkElementResultCreateTransaction" - }, - { - "$ref": "#/components/schemas/V2BulkElementResultAddMetadata" - }, - { - "$ref": "#/components/schemas/V2BulkElementResultRevertTransaction" - }, - { - "$ref": "#/components/schemas/V2BulkElementResultDeleteMetadata" - }, - { - "$ref": "#/components/schemas/V2BulkElementResultError" - } - ], - "discriminator": { - "propertyName": "responseType", - "mapping": { - "CREATE_TRANSACTION": "#/components/schemas/V2BulkElementResultCreateTransaction", - "ADD_METADATA": "#/components/schemas/V2BulkElementResultAddMetadata", - "REVERT_TRANSACTION": "#/components/schemas/V2BulkElementResultRevertTransaction", - "DELETE_METADATA": "#/components/schemas/V2BulkElementResultDeleteMetadata", - "ERROR": "#/components/schemas/V2BulkElementResultError" - } - } - }, - "V2BaseBulkElementResult": { - "type": "object", - "properties": { - "responseType": { - "type": "string" - } - }, - "required": [ - "responseType" - ] - }, - "V2BulkElementResultCreateTransaction": { - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElementResult" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/V2Transaction" - } - }, - "required": [ - "data" - ] - } - ] - }, - "V2BulkElementResultAddMetadata": { - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElementResult" - } - ] - }, - "V2BulkElementResultRevertTransaction": { - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElementResult" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/V2Transaction" - } - }, - "required": [ - "data" - ] - } - ] - }, - "V2BulkElementResultDeleteMetadata": { - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElementResult" - } - ] - }, - "V2BulkElementResultError": { - "allOf": [ - { - "$ref": "#/components/schemas/V2BaseBulkElementResult" - }, - { - "type": "object", - "properties": { - "errorCode": { - "type": "string" - }, - "errorDescription": { - "type": "string" - }, - "errorDetails": { - "type": "string" - } - }, - "required": [ - "errorCode", - "errorDescription" - ] - } - ] - }, - "V2CreateLedgerRequest": { - "type": "object", - "properties": { - "bucket": { - "type": "string" - } - } - }, - "V2Ledger": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "addedAt": { - "type": "string", - "format": "date-time" - }, - "bucket": { - "type": "string" - } - }, - "required": [ - "name", - "addedAt", - "bucket" - ] - }, - "V2LedgerListResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Ledger" - } - } - } - } - } - }, - "Query": { - "type": "object", - "properties": { - "ledgers": { - "type": "array", - "items": { - "type": "string", - "example": "quickstart" - } - }, - "after": { - "type": "array", - "items": { - "type": "string", - "example": "users:002" - } - }, - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "terms": { - "type": "array", - "items": { - "type": "string", - "example": "destination=central_bank1" - } - }, - "sort": { - "type": "string", - "example": "id:asc" - }, - "policy": { - "type": "string", - "example": "OR" - }, - "target": { - "type": "string" - }, - "cursor": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "raw": { - "type": "object", - "example": { - "query": { - "match_all": {} - } - } - } - } - }, - "Response": { - "type": "object", - "properties": { - "data": { - "type": "object", - "description": "The payload", - "additionalProperties": true - }, - "cursor": { - "title": "cursor", - "type": "object", - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "hasMore": { - "type": "boolean" - }, - "total": { - "title": "total", - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64", - "minimum": 0, - "example": 1 - }, - "relation": { - "type": "string", - "example": "eq" - } - } - }, - "next": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "data": { - "type": "array", - "items": { - "allOf": [ - { - "type": "object", - "additionalProperties": true - } - ] - } - } - } - } - } - }, - "ConfigUser": { - "type": "object", - "required": [ - "endpoint", - "eventTypes" - ], - "properties": { - "endpoint": { - "type": "string", - "example": "https://example.com" - }, - "secret": { - "type": "string", - "example": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3" - }, - "eventTypes": { - "type": "array", - "items": { - "type": "string", - "example": "TYPE1" - }, - "example": [ - "TYPE1", - "TYPE2" - ] - } - } - }, - "ConfigsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/Cursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/WebhooksConfig" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "Cursor": { - "type": "object", - "required": [ - "hasMore", - "data" - ], - "properties": { - "hasMore": { - "type": "boolean", - "example": false - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WebhooksConfig" - } - } - } - }, - "ConfigResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WebhooksConfig" - } - } - }, - "WebhooksConfig": { - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "endpoint": { - "type": "string", - "example": "https://example.com" - }, - "secret": { - "type": "string", - "example": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3" - }, - "eventTypes": { - "type": "array", - "items": { - "type": "string", - "example": "TYPE1" - }, - "example": [ - "TYPE1", - "TYPE2" - ] - }, - "active": { - "type": "boolean", - "example": true - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "endpoint", - "secret", - "eventTypes", - "active", - "createdAt", - "updatedAt" - ] - }, - "ConfigChangeSecret": { - "type": "object", - "properties": { - "secret": { - "type": "string", - "example": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3" - } - }, - "required": [ - "secret" - ] - }, - "AttemptResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Attempt" - } - } - }, - "Attempt": { - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "webhookID": { - "type": "string", - "format": "uuid" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "config": { - "$ref": "#/components/schemas/WebhooksConfig" - }, - "payload": { - "type": "string", - "example": "{\"data\":\"test\"}" - }, - "statusCode": { - "type": "integer", - "example": 200 - }, - "retryAttempt": { - "type": "integer", - "example": 1 - }, - "status": { - "type": "string", - "example": "success" - }, - "nextRetryAfter": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "webhookID", - "createdAt", - "updatedAt", - "config", - "payload", - "statusCode", - "retryAttempt", - "status" - ] - }, - "webhooksErrorResponse": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "$ref": "#/components/schemas/webhooksErrorsEnum" - }, - "errorMessage": { - "type": "string", - "example": "[VALIDATION] invalid 'cursor' query param" - }, - "details": { - "type": "string", - "example": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9" - } - } - }, - "webhooksErrorsEnum": { - "type": "string", - "enum": [ - "INTERNAL", - "VALIDATION", - "NOT_FOUND" - ], - "example": "VALIDATION" - }, - "Monetary": { - "type": "object", - "required": [ - "asset", - "amount" - ], - "properties": { - "asset": { - "type": "string", - "description": "The asset of the monetary value." - }, - "amount": { - "type": "integer", - "format": "bigint", - "description": "The amount of the monetary value." - } - } - }, - "Wallet": { - "type": "object", - "required": [ - "name", - "id", - "metadata", - "createdAt", - "ledger" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the wallet." - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "name": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "ledger": { - "type": "string" - } - } - }, - "WalletWithBalances": { - "type": "object", - "required": [ - "name", - "id", - "metadata", - "createdAt", - "balances", - "ledger" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the wallet." - }, - "metadata": { - "type": "object", - "description": "Metadata associated with the wallet.", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "balances": { - "type": "object", - "required": [ - "main" - ], - "properties": { - "main": { - "$ref": "#/components/schemas/AssetHolder" - } - } - }, - "ledger": { - "type": "string" - } - } - }, - "Hold": { - "type": "object", - "required": [ - "id", - "walletID", - "metadata", - "description" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the hold." - }, - "walletID": { - "type": "string", - "description": "The ID of the wallet the hold is associated with." - }, - "metadata": { - "type": "object", - "description": "Metadata associated with the hold.", - "additionalProperties": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "destination": { - "$ref": "#/components/schemas/Subject" - } - } - }, - "ExpandedDebitHold": { - "allOf": [ - { - "$ref": "#/components/schemas/Hold" - }, - { - "type": "object", - "required": [ - "remaining", - "originalAmount" - ], - "properties": { - "remaining": { - "type": "integer", - "description": "Remaining amount on hold", - "example": 10, - "format": "bigint" - }, - "originalAmount": { - "type": "integer", - "description": "Original amount on hold", - "example": 100, - "format": "bigint" - } - } - } - ] - }, - "ListWalletsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Wallet" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "CreateWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Wallet" - } - } - }, - "GetWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WalletWithBalances" - } - } - }, - "DebitWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Hold" - } - } - }, - "walletsAggregatedVolumes": { - "type": "object", - "x-go-type": { - "type": "AggregatedVolumes" - }, - "additionalProperties": { - "$ref": "#/components/schemas/walletsVolumes" - } - }, - "walletsTransaction": { - "type": "object", - "properties": { - "ledger": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "id": { - "type": "integer", - "format": "int64", - "minimum": 0 - }, - "preCommitVolumes": { - "$ref": "#/components/schemas/walletsAggregatedVolumes" - }, - "postCommitVolumes": { - "$ref": "#/components/schemas/walletsAggregatedVolumes" - } - }, - "required": [ - "postings", - "timestamp", - "id", - "metadata" - ] - }, - "walletsCursor": { - "type": "object", - "required": [ - "pageSize" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - } - } - }, - "GetTransactionsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/walletsTransaction" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "GetHoldsResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Hold" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "GetHoldResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/ExpandedDebitHold" - } - } - }, - "CreateWalletRequest": { - "type": "object", - "required": [ - "name", - "metadata" - ], - "properties": { - "metadata": { - "type": "object", - "description": "Custom metadata to attach to this wallet.", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "type": "string" - } - } - }, - "walletsVolume": { - "type": "object", - "properties": { - "input": { - "type": "integer", - "format": "bigint" - }, - "output": { - "type": "integer", - "format": "bigint" - }, - "balance": { - "type": "integer", - "format": "bigint" - } - }, - "required": [ - "input", - "output", - "balance" - ], - "example": { - "input": 100, - "output": 20, - "balance": 80 - } - }, - "walletsVolumes": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/walletsVolume" - }, - "example": { - "USD": { - "input": 100, - "output": 10, - "balance": 90 - }, - "EUR": { - "input": 100, - "output": 10, - "balance": 90 - } - } - }, - "ConfirmHoldRequest": { - "type": "object", - "properties": { - "amount": { - "type": "integer", - "format": "bigint", - "example": 100, - "description": "Define the amount to transfer." - }, - "final": { - "type": "boolean", - "example": true, - "description": "Define a final confirmation. Remaining funds will be returned to the wallet." - } - } - }, - "LedgerAccountSubject": { - "type": "object", - "required": [ - "type", - "identifier" - ], - "properties": { - "type": { - "type": "string" - }, - "identifier": { - "type": "string" - } - } - }, - "WalletSubject": { - "type": "object", - "required": [ - "type", - "identifier" - ], - "properties": { - "type": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "balance": { - "type": "string" - } - } - }, - "Subject": { - "discriminator": { - "propertyName": "type", - "mapping": { - "ACCOUNT": "#/components/schemas/LedgerAccountSubject", - "WALLET": "#/components/schemas/WalletSubject" - } - }, - "oneOf": [ - { - "$ref": "#/components/schemas/LedgerAccountSubject" - }, - { - "$ref": "#/components/schemas/WalletSubject" - } - ] - }, - "CreditWalletRequest": { - "type": "object", - "required": [ - "amount", - "sources", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "reference": { - "type": "string" - }, - "sources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Subject" - } - }, - "balance": { - "type": "string", - "description": "The balance to credit" - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "sources": [] - } - }, - "DebitWalletRequest": { - "type": "object", - "required": [ - "amount", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "pending": { - "type": "boolean", - "description": "Set to true to create a pending hold. If false, the wallet will be debited immediately." - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "description": { - "type": "string" - }, - "destination": { - "$ref": "#/components/schemas/Subject" - }, - "balances": { - "type": "array", - "items": { - "type": "string", - "description": "A targeted balance (use '*' for all)" - } - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "pending": true - } - }, - "AssetHolder": { - "type": "object", - "required": [ - "assets" - ], - "properties": { - "assets": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - } - } - }, - "Balance": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "expiresAt": { - "type": "string", - "format": "date-time" - }, - "priority": { - "type": "integer", - "format": "bigint" - } - } - }, - "BalanceWithAssets": { - "allOf": [ - { - "$ref": "#/components/schemas/Balance" - }, - { - "$ref": "#/components/schemas/AssetHolder" - } - ] - }, - "GetWalletSummaryResponse": { - "type": "object", - "required": [ - "balances", - "availableFunds", - "expiredFunds", - "expirableFunds", - "holdFunds" - ], - "properties": { - "balances": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BalanceWithAssets" - } - }, - "availableFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "expiredFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "expirableFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "holdFunds": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - } - } - }, - "ListBalancesResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "allOf": [ - { - "$ref": "#/components/schemas/walletsCursor" - }, - { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Balance" - }, - "type": "array" - } - }, - "type": "object", - "required": [ - "data" - ] - } - ] - } - } - }, - "GetBalanceResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/BalanceWithAssets" - } - } - }, - "CreateBalanceRequest": { - "$ref": "#/components/schemas/Balance" - }, - "CreateBalanceResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Balance" - } - } - }, - "walletsErrorResponse": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "type": "string", - "enum": [ - "VALIDATION", - "INTERNAL_ERROR", - "INSUFFICIENT_FUND", - "HOLD_CLOSED" - ] - }, - "errorMessage": { - "type": "string" - } - } - }, - "Error": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "type": "string", - "enum": [ - "VALIDATION", - "NOT_FOUND" - ] - }, - "errorMessage": { - "type": "string" - } - } - }, - "WorkflowConfig": { - "type": "object", - "required": [ - "stages" - ], - "properties": { - "name": { - "type": "string" - }, - "stages": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": {} - } - } - } - }, - "Workflow": { - "type": "object", - "required": [ - "config", - "createdAt", - "updatedAt", - "id" - ], - "properties": { - "config": { - "$ref": "#/components/schemas/WorkflowConfig" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - } - }, - "StageStatus": { - "type": "object", - "required": [ - "stage", - "instanceID", - "startedAt" - ], - "properties": { - "stage": { - "type": "number" - }, - "instanceID": { - "type": "string" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "error": { - "type": "string" - } - } - }, - "WorkflowInstance": { - "type": "object", - "required": [ - "workflowID", - "id", - "createdAt", - "updatedAt", - "terminated" - ], - "properties": { - "workflowID": { - "type": "string" - }, - "id": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StageStatus" - } - }, - "terminated": { - "type": "boolean" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "error": { - "type": "string" - } - } - }, - "WorkflowInstanceHistoryStage": { - "type": "object", - "required": [ - "name", - "input", - "startedAt", - "terminated", - "attempt" - ], - "properties": { - "name": { - "type": "string" - }, - "input": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStageInput" - }, - "output": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStageOutput" - }, - "error": { - "type": "string" - }, - "terminated": { - "type": "boolean" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "lastFailure": { - "type": "string" - }, - "attempt": { - "type": "integer" - }, - "nextExecution": { - "type": "string", - "format": "date-time" - } - } - }, - "WorkflowInstanceHistory": { - "type": "object", - "required": [ - "name", - "input", - "terminated", - "startedAt" - ], - "properties": { - "name": { - "type": "string" - }, - "input": { - "$ref": "#/components/schemas/Stage" - }, - "error": { - "type": "string" - }, - "terminated": { - "type": "boolean" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - } - } - }, - "WorkflowInstanceHistoryList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WorkflowInstanceHistory" - } - }, - "WorkflowInstanceHistoryStageList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStage" - } - }, - "ListWorkflowsResponse": { - "type": "object", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Workflow" - }, - "type": "array" - } - }, - "required": [ - "data" - ] - }, - "TriggerData": { - "type": "object", - "required": [ - "event", - "workflowID" - ], - "properties": { - "event": { - "type": "string" - }, - "workflowID": { - "type": "string" - }, - "filter": { - "type": "string" - }, - "vars": { - "type": "object", - "additionalProperties": true - } - } - }, - "Trigger": { - "allOf": [ - { - "$ref": "#/components/schemas/TriggerData" - }, - { - "type": "object", - "required": [ - "id", - "createdAt" - ], - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - } - } - } - ] - }, - "TriggerOccurrence": { - "type": "object", - "required": [ - "triggerID", - "workflowInstanceID", - "date", - "event" - ], - "properties": { - "date": { - "type": "string", - "format": "date-time" - }, - "workflowInstanceID": { - "type": "string" - }, - "triggerID": { - "type": "string" - }, - "event": { - "type": "object", - "additionalProperties": true - } - } - }, - "ListTriggersOccurrencesResponse": { - "type": "object", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/TriggerOccurrence" - }, - "type": "array" - } - }, - "required": [ - "data" - ] - }, - "ListTriggersResponse": { - "type": "object", - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Trigger" - }, - "type": "array" - } - }, - "required": [ - "data" - ] - }, - "ReadWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Workflow" - } - } - }, - "CreateWorkflowRequest": { - "$ref": "#/components/schemas/WorkflowConfig" - }, - "CreateWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Workflow" - } - } - }, - "CreateTriggerResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Trigger" - } - } - }, - "RunWorkflowRequest": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "RunWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstance" - } - } - }, - "ListRunsResponse": { - "required": [ - "data" - ], - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/WorkflowInstance" - }, - "type": "array" - } - } - }, - "GetWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Workflow" - } - } - }, - "GetWorkflowInstanceResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstance" - } - } - }, - "GetWorkflowInstanceHistoryResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryList" - } - } - }, - "GetWorkflowInstanceHistoryStageResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/WorkflowInstanceHistoryStageList" - } - } - }, - "StageSendSourceWallet": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "balance": { - "type": "string" - } - } - }, - "StageSendDestinationWallet": { - "$ref": "#/components/schemas/StageSendSourceWallet" - }, - "StageSendSourceAccount": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "ledger": { - "type": "string" - } - } - }, - "StageSendDestinationAccount": { - "$ref": "#/components/schemas/StageSendSourceAccount" - }, - "StageSendSourcePayment": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "StageSendDestinationPayment": { - "type": "object", - "required": [ - "psp" - ], - "properties": { - "psp": { - "type": "string" - } - } - }, - "StageSendSource": { - "type": "object", - "properties": { - "wallet": { - "$ref": "#/components/schemas/StageSendSourceWallet" - }, - "account": { - "$ref": "#/components/schemas/StageSendSourceAccount" - }, - "payment": { - "$ref": "#/components/schemas/StageSendSourcePayment" - } - } - }, - "StageSendDestination": { - "type": "object", - "properties": { - "wallet": { - "$ref": "#/components/schemas/StageSendDestinationWallet" - }, - "account": { - "$ref": "#/components/schemas/StageSendDestinationAccount" - }, - "payment": { - "$ref": "#/components/schemas/StageSendDestinationPayment" - } - } - }, - "StageSend": { - "type": "object", - "properties": { - "amount": { - "$ref": "#/components/schemas/Monetary" - }, - "destination": { - "$ref": "#/components/schemas/StageSendDestination" - }, - "source": { - "$ref": "#/components/schemas/StageSendSource" - } - } - }, - "StageDelay": { - "type": "object", - "properties": { - "until": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - } - }, - "StageWaitEvent": { - "type": "object", - "required": [ - "event" - ], - "properties": { - "event": { - "type": "string" - } - } - }, - "Stage": { - "anyOf": [ - { - "$ref": "#/components/schemas/StageSend" - }, - { - "$ref": "#/components/schemas/StageDelay" - }, - { - "$ref": "#/components/schemas/StageWaitEvent" - } - ] - }, - "StripeTransferRequest": { - "type": "object", - "properties": { - "connectorID": { - "type": "string" - }, - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "USD" - }, - "destination": { - "type": "string", - "example": "acct_1Gqj58KZcSIg2N2q" - }, - "waitingValidation": { - "type": "boolean", - "example": false, - "default": false - }, - "metadata": { - "type": "object", - "description": "A set of key/value pairs that you can attach to a transfer object.\nIt can be useful for storing additional information about the transfer in a structured format.\n", - "example": { - "order_id": "6735" - } - } - } - }, - "ActivityStripeTransfer": { - "$ref": "#/components/schemas/StripeTransferRequest" - }, - "ActivityGetAccount": { - "type": "object", - "required": [ - "id", - "ledger" - ], - "properties": { - "id": { - "type": "string" - }, - "ledger": { - "type": "string" - } - } - }, - "ActivityCreateTransaction": { - "type": "object", - "properties": { - "ledger": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/orchestrationPostTransaction" - } - } - }, - "ActivityGetPayment": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityConfirmHold": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityCreditWallet": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/CreditWalletRequest" - } - } - }, - "ActivityDebitWallet": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/DebitWalletRequest" - } - } - }, - "ActivityGetWallet": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityVoidHold": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "ActivityGetAccountOutput": { - "$ref": "#/components/schemas/orchestrationAccountResponse" - }, - "ActivityCreateTransactionOutput": { - "$ref": "#/components/schemas/CreateTransactionResponse" - }, - "CreateTransactionResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/orchestrationTransaction" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "orchestrationTransaction": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/orchestrationMetadata" - }, - "id": { - "type": "integer", - "format": "bigint", - "minimum": 0 - } - }, - "required": [ - "postings", - "timestamp", - "id", - "metadata" - ] - }, - "ActivityGetPaymentOutput": { - "$ref": "#/components/schemas/PaymentResponse" - }, - "PaymentResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Payment" - } - } - }, - "Payment": { - "type": "object", - "required": [ - "id", - "reference", - "connectorID", - "sourceAccountID", - "destinationAccountID", - "type", - "status", - "initialAmount", - "scheme", - "asset", - "createdAt", - "raw", - "adjustments", - "metadata" - ], - "properties": { - "id": { - "type": "string", - "example": "XXX" - }, - "reference": { - "type": "string" - }, - "sourceAccountID": { - "type": "string" - }, - "destinationAccountID": { - "type": "string" - }, - "connectorID": { - "type": "string" - }, - "provider": { - "$ref": "#/components/schemas/Connector" - }, - "type": { - "type": "string", - "enum": [ - "PAY-IN", - "PAYOUT", - "TRANSFER", - "OTHER" - ] - }, - "status": { - "$ref": "#/components/schemas/PaymentStatus" - }, - "initialAmount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "scheme": { - "type": "string", - "enum": [ - "visa", - "mastercard", - "amex", - "diners", - "discover", - "jcb", - "unionpay", - "sepa debit", - "sepa credit", - "sepa", - "apple pay", - "google pay", - "a2a", - "ach debit", - "ach", - "rtp", - "unknown", - "other" - ] - }, - "asset": { - "type": "string", - "example": "USD" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "raw": { - "type": "object", - "nullable": true - }, - "adjustments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentAdjustment" - } - }, - "metadata": { - "$ref": "#/components/schemas/PaymentMetadata" - } - } - }, - "Connector": { - "type": "string", - "enum": [ - "STRIPE", - "DUMMY-PAY", - "WISE", - "MODULR", - "CURRENCY-CLOUD", - "BANKING-CIRCLE", - "MANGOPAY", - "MONEYCORP" - ] - }, - "PaymentAdjustment": { - "type": "object", - "required": [ - "status", - "amount", - "date", - "raw", - "absolute" - ], - "properties": { - "status": { - "$ref": "#/components/schemas/PaymentStatus" - }, - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "date": { - "type": "string", - "format": "date-time" - }, - "raw": { - "type": "object" - }, - "absolute": { - "type": "boolean" - } - } - }, - "PaymentStatus": { - "type": "string", - "enum": [ - "PENDING", - "ACTIVE", - "TERMINATED", - "FAILED", - "SUCCEEDED", - "CANCELLED" - ] - }, - "PaymentMetadata": { - "type": "object", - "properties": { - "key": { - "type": "string" - } - }, - "nullable": true - }, - "ActivityDebitWalletOutput": { - "$ref": "#/components/schemas/DebitWalletResponse" - }, - "ActivityGetWalletOutput": { - "$ref": "#/components/schemas/GetWalletResponse" - }, - "WorkflowInstanceHistoryStageInput": { - "type": "object", - "properties": { - "GetAccount": { - "$ref": "#/components/schemas/ActivityGetAccount" - }, - "CreateTransaction": { - "$ref": "#/components/schemas/ActivityCreateTransaction" - }, - "StripeTransfer": { - "$ref": "#/components/schemas/ActivityStripeTransfer" - }, - "GetPayment": { - "$ref": "#/components/schemas/ActivityGetPayment" - }, - "ConfirmHold": { - "$ref": "#/components/schemas/ActivityConfirmHold" - }, - "CreditWallet": { - "$ref": "#/components/schemas/ActivityCreditWallet" - }, - "DebitWallet": { - "$ref": "#/components/schemas/ActivityDebitWallet" - }, - "GetWallet": { - "$ref": "#/components/schemas/ActivityGetWallet" - }, - "VoidHold": { - "$ref": "#/components/schemas/ActivityVoidHold" - } - } - }, - "WorkflowInstanceHistoryStageOutput": { - "type": "object", - "properties": { - "GetAccount": { - "$ref": "#/components/schemas/ActivityGetAccountOutput" - }, - "CreateTransaction": { - "$ref": "#/components/schemas/ActivityCreateTransactionOutput" - }, - "GetPayment": { - "$ref": "#/components/schemas/ActivityGetPaymentOutput" - }, - "DebitWallet": { - "$ref": "#/components/schemas/ActivityDebitWalletOutput" - }, - "GetWallet": { - "$ref": "#/components/schemas/ActivityGetWalletOutput" - } - } - }, - "orchestrationPostTransaction": { - "type": "object", - "required": [ - "metadata" - ], - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Posting" - } - }, - "script": { - "type": "object", - "properties": { - "plain": { - "type": "string", - "example": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n" - }, - "vars": { - "type": "object", - "properties": {}, - "additionalProperties": true, - "example": { - "user": "users:042" - } - } - }, - "required": [ - "plain" - ] - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/orchestrationMetadata" - } - } - }, - "orchestrationMetadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "example": { - "admin": "true" - } - }, - "orchestrationAccountResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/orchestrationAccount" - } - } - }, - "ReadTriggerResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Trigger" - } - } - }, - "orchestrationAccount": { - "type": "object", - "required": [ - "address", - "metadata" - ], - "properties": { - "address": { - "type": "string", - "example": "users:001" - }, - "metadata": { - "type": "object", - "properties": {}, - "additionalProperties": { - "type": "string" - }, - "example": { - "admin": "true" - } - }, - "volumes": { - "$ref": "#/components/schemas/Volumes" - }, - "effectiveVolumes": { - "$ref": "#/components/schemas/Volumes" - } - } - }, - "V2ServerInfo": { - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "type": "string" - } - } - }, - "V2Error": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "type": "string", - "enum": [ - "VALIDATION", - "NOT_FOUND" - ] - }, - "errorMessage": { - "type": "string" - } - } - }, - "V2WorkflowConfig": { - "type": "object", - "required": [ - "stages" - ], - "properties": { - "name": { - "type": "string" - }, - "stages": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": {} - } - } - } - }, - "V2Workflow": { - "type": "object", - "required": [ - "config", - "createdAt", - "updatedAt", - "id" - ], - "properties": { - "config": { - "$ref": "#/components/schemas/V2WorkflowConfig" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - } - }, - "V2StageStatus": { - "type": "object", - "required": [ - "stage", - "instanceID", - "startedAt" - ], - "properties": { - "stage": { - "type": "number" - }, - "instanceID": { - "type": "string" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "error": { - "type": "string" - } - } - }, - "V2WorkflowInstance": { - "type": "object", - "required": [ - "workflowID", - "id", - "createdAt", - "updatedAt", - "terminated" - ], - "properties": { - "workflowID": { - "type": "string" - }, - "id": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2StageStatus" - } - }, - "terminated": { - "type": "boolean" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "error": { - "type": "string" - } - } - }, - "V2WorkflowInstanceHistoryStage": { - "type": "object", - "required": [ - "name", - "input", - "startedAt", - "terminated", - "attempt" - ], - "properties": { - "name": { - "type": "string" - }, - "input": { - "$ref": "#/components/schemas/V2WorkflowInstanceHistoryStageInput" - }, - "output": { - "$ref": "#/components/schemas/V2WorkflowInstanceHistoryStageOutput" - }, - "error": { - "type": "string" - }, - "terminated": { - "type": "boolean" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - }, - "lastFailure": { - "type": "string" - }, - "attempt": { - "type": "integer" - }, - "nextExecution": { - "type": "string", - "format": "date-time" - } - } - }, - "V2WorkflowInstanceHistory": { - "type": "object", - "required": [ - "name", - "input", - "terminated", - "startedAt" - ], - "properties": { - "name": { - "type": "string" - }, - "input": { - "$ref": "#/components/schemas/V2Stage" - }, - "error": { - "type": "string" - }, - "terminated": { - "type": "boolean" - }, - "startedAt": { - "type": "string", - "format": "date-time" - }, - "terminatedAt": { - "type": "string", - "format": "date-time" - } - } - }, - "V2WorkflowInstanceHistoryList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2WorkflowInstanceHistory" - } - }, - "V2WorkflowInstanceHistoryStageList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2WorkflowInstanceHistoryStage" - } - }, - "V2ListWorkflowsResponse": { - "type": "object", - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Workflow" - } - } - } - } - }, - "required": [ - "cursor" - ] - }, - "V2TriggerData": { - "type": "object", - "required": [ - "event", - "workflowID" - ], - "properties": { - "event": { - "type": "string" - }, - "workflowID": { - "type": "string" - }, - "filter": { - "type": "string" - }, - "vars": { - "type": "object", - "additionalProperties": true - } - } - }, - "V2Trigger": { - "allOf": [ - { - "$ref": "#/components/schemas/V2TriggerData" - }, - { - "type": "object", - "required": [ - "id", - "createdAt" - ], - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - } - } - } - ] - }, - "V2TriggerOccurrence": { - "type": "object", - "required": [ - "triggerID", - "workflowInstanceID", - "date", - "event" - ], - "properties": { - "date": { - "type": "string", - "format": "date-time" - }, - "workflowInstanceID": { - "type": "string" - }, - "triggerID": { - "type": "string" - }, - "event": { - "type": "object", - "additionalProperties": true - } - } - }, - "V2ListTriggersOccurrencesResponse": { - "type": "object", - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2TriggerOccurrence" - } - } - } - } - }, - "required": [ - "cursor" - ] - }, - "V2ListTriggersResponse": { - "type": "object", - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Trigger" - } - } - } - } - }, - "required": [ - "cursor" - ] - }, - "V2ReadWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Workflow" - } - } - }, - "V2CreateWorkflowRequest": { - "$ref": "#/components/schemas/V2WorkflowConfig" - }, - "V2CreateWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Workflow" - } - } - }, - "V2CreateTriggerResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Trigger" - } - } - }, - "V2RunWorkflowRequest": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "V2RunWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2WorkflowInstance" - } - } - }, - "V2ListRunsResponse": { - "type": "object", - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2WorkflowInstance" - } - } - } - } - }, - "required": [ - "cursor" - ] - }, - "V2GetWorkflowResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Workflow" - } - } - }, - "V2GetWorkflowInstanceResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2WorkflowInstance" - } - } - }, - "V2GetWorkflowInstanceHistoryResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2WorkflowInstanceHistoryList" - } - } - }, - "V2GetWorkflowInstanceHistoryStageResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2WorkflowInstanceHistoryStageList" - } - } - }, - "V2StageSendSourceWallet": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "balance": { - "type": "string" - } - } - }, - "V2StageSendDestinationWallet": { - "$ref": "#/components/schemas/V2StageSendSourceWallet" - }, - "V2StageSendSourceAccount": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "ledger": { - "type": "string" - } - } - }, - "V2StageSendDestinationAccount": { - "$ref": "#/components/schemas/V2StageSendSourceAccount" - }, - "V2StageSendSourcePayment": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "V2StageSendDestinationPayment": { - "type": "object", - "required": [ - "psp" - ], - "properties": { - "psp": { - "type": "string" - } - } - }, - "V2StageSendSource": { - "type": "object", - "properties": { - "wallet": { - "$ref": "#/components/schemas/V2StageSendSourceWallet" - }, - "account": { - "$ref": "#/components/schemas/V2StageSendSourceAccount" - }, - "payment": { - "$ref": "#/components/schemas/V2StageSendSourcePayment" - } - } - }, - "V2StageSendDestination": { - "type": "object", - "properties": { - "wallet": { - "$ref": "#/components/schemas/V2StageSendDestinationWallet" - }, - "account": { - "$ref": "#/components/schemas/V2StageSendDestinationAccount" - }, - "payment": { - "$ref": "#/components/schemas/V2StageSendDestinationPayment" - } - } - }, - "V2StageSend": { - "type": "object", - "properties": { - "amount": { - "$ref": "#/components/schemas/V2Monetary" - }, - "destination": { - "$ref": "#/components/schemas/V2StageSendDestination" - }, - "source": { - "$ref": "#/components/schemas/V2StageSendSource" - } - } - }, - "V2StageDelay": { - "type": "object", - "properties": { - "until": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - } - }, - "V2StageWaitEvent": { - "type": "object", - "required": [ - "event" - ], - "properties": { - "event": { - "type": "string" - } - } - }, - "V2Stage": { - "anyOf": [ - { - "$ref": "#/components/schemas/V2StageSend" - }, - { - "$ref": "#/components/schemas/V2StageDelay" - }, - { - "$ref": "#/components/schemas/V2StageWaitEvent" - } - ] - }, - "V2StripeTransferRequest": { - "type": "object", - "properties": { - "connectorID": { - "type": "string" - }, - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "asset": { - "type": "string", - "example": "USD" - }, - "destination": { - "type": "string", - "example": "acct_1Gqj58KZcSIg2N2q" - }, - "waitingValidation": { - "type": "boolean", - "example": false, - "default": false - }, - "metadata": { - "type": "object", - "description": "A set of key/value pairs that you can attach to a transfer object.\nIt can be useful for storing additional information about the transfer in a structured format.\n", - "example": { - "order_id": "6735" - } - } - } - }, - "V2ActivityStripeTransfer": { - "$ref": "#/components/schemas/V2StripeTransferRequest" - }, - "V2ActivityGetAccount": { - "type": "object", - "required": [ - "id", - "ledger" - ], - "properties": { - "id": { - "type": "string" - }, - "ledger": { - "type": "string" - } - } - }, - "V2ActivityCreateTransaction": { - "type": "object", - "properties": { - "ledger": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/V2PostTransaction" - } - } - }, - "V2ActivityRevertTransaction": { - "type": "object", - "required": [ - "id", - "ledger" - ], - "properties": { - "ledger": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, - "V2ActivityGetPayment": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "V2ActivityConfirmHold": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "V2ActivityCreditWallet": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/V2CreditWalletRequest" - } - } - }, - "V2CreditWalletRequest": { - "type": "object", - "required": [ - "amount", - "sources", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/V2Monetary" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "reference": { - "type": "string" - }, - "sources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Subject" - } - }, - "balance": { - "type": "string", - "description": "The balance to credit" - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "sources": [] - } - }, - "V2LedgerAccountSubject": { - "type": "object", - "required": [ - "type", - "identifier" - ], - "properties": { - "type": { - "type": "string" - }, - "identifier": { - "type": "string" - } - } - }, - "V2WalletSubject": { - "type": "object", - "required": [ - "type", - "identifier" - ], - "properties": { - "type": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "balance": { - "type": "string" - } - } - }, - "V2Subject": { - "discriminator": { - "propertyName": "type", - "mapping": { - "ACCOUNT": "#/components/schemas/V2LedgerAccountSubject", - "WALLET": "#/components/schemas/V2WalletSubject" - } - }, - "oneOf": [ - { - "$ref": "#/components/schemas/V2LedgerAccountSubject" - }, - { - "$ref": "#/components/schemas/V2WalletSubject" - } - ] - }, - "V2ActivityDebitWallet": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/V2DebitWalletRequest" - } - } - }, - "V2DebitWalletRequest": { - "type": "object", - "required": [ - "amount", - "metadata" - ], - "properties": { - "amount": { - "$ref": "#/components/schemas/V2Monetary" - }, - "pending": { - "type": "boolean", - "description": "Set to true to create a pending hold. If false, the wallet will be debited immediately." - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Metadata associated with the wallet." - }, - "description": { - "type": "string" - }, - "destination": { - "$ref": "#/components/schemas/V2Subject" - }, - "balances": { - "type": "array", - "items": { - "type": "string", - "description": "A targeted balance (use '*' for all)" - } - } - }, - "example": { - "amount": { - "asset": "USD/2", - "amount": 100 - }, - "metadata": { - "key": "" - }, - "pending": true - } - }, - "V2ActivityGetWallet": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "V2ActivityVoidHold": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "V2ActivityGetAccountOutput": { - "$ref": "#/components/schemas/V2AccountResponse" - }, - "V2ActivityCreateTransactionOutput": { - "$ref": "#/components/schemas/orchestrationV2CreateTransactionResponse" - }, - "orchestrationV2CreateTransactionResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/orchestrationV2Transaction" - } - }, - "type": "object", - "required": [ - "data" - ] - }, - "orchestrationV2Transaction": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "postings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2Posting" - } - }, - "reference": { - "type": "string", - "example": "ref:001" - }, - "metadata": { - "$ref": "#/components/schemas/V2Metadata" - }, - "id": { - "type": "integer", - "format": "bigint", - "minimum": 0 - } - }, - "required": [ - "postings", - "timestamp", - "id", - "metadata" - ] - }, - "V2ActivityRevertTransactionOutput": { - "$ref": "#/components/schemas/V2RevertTransactionResponse" - }, - "V2ActivityGetPaymentOutput": { - "$ref": "#/components/schemas/V2PaymentResponse" - }, - "V2PaymentResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Payment" - } - } - }, - "V2Payment": { - "type": "object", - "required": [ - "id", - "reference", - "connectorID", - "sourceAccountID", - "destinationAccountID", - "type", - "status", - "initialAmount", - "scheme", - "asset", - "createdAt", - "raw", - "adjustments", - "metadata" - ], - "properties": { - "id": { - "type": "string", - "example": "XXX" - }, - "reference": { - "type": "string" - }, - "sourceAccountID": { - "type": "string" - }, - "destinationAccountID": { - "type": "string" - }, - "connectorID": { - "type": "string" - }, - "provider": { - "$ref": "#/components/schemas/V2Connector" - }, - "type": { - "type": "string", - "enum": [ - "PAY-IN", - "PAYOUT", - "TRANSFER", - "OTHER" - ] - }, - "status": { - "$ref": "#/components/schemas/V2PaymentStatus" - }, - "initialAmount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "scheme": { - "type": "string", - "enum": [ - "visa", - "mastercard", - "amex", - "diners", - "discover", - "jcb", - "unionpay", - "sepa debit", - "sepa credit", - "sepa", - "apple pay", - "google pay", - "a2a", - "ach debit", - "ach", - "rtp", - "unknown", - "other" - ] - }, - "asset": { - "type": "string", - "example": "USD" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "raw": { - "type": "object", - "nullable": true - }, - "adjustments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/V2PaymentAdjustment" - } - }, - "metadata": { - "$ref": "#/components/schemas/V2PaymentMetadata" - } - } - }, - "V2Connector": { - "type": "string", - "enum": [ - "STRIPE", - "DUMMY-PAY", - "WISE", - "MODULR", - "CURRENCY-CLOUD", - "BANKING-CIRCLE", - "MANGOPAY", - "MONEYCORP" - ] - }, - "V2PaymentAdjustment": { - "type": "object", - "required": [ - "status", - "amount", - "date", - "raw", - "absolute" - ], - "properties": { - "status": { - "$ref": "#/components/schemas/V2PaymentStatus" - }, - "amount": { - "type": "integer", - "format": "bigint", - "minimum": 0, - "example": 100 - }, - "date": { - "type": "string", - "format": "date-time" - }, - "raw": { - "type": "object" - }, - "absolute": { - "type": "boolean" - } - } - }, - "V2PaymentStatus": { - "type": "string", - "enum": [ - "PENDING", - "ACTIVE", - "TERMINATED", - "FAILED", - "SUCCEEDED", - "CANCELLED" - ] - }, - "V2PaymentMetadata": { - "type": "object", - "properties": { - "key": { - "type": "string" - } - }, - "nullable": true - }, - "V2ActivityDebitWalletOutput": { - "$ref": "#/components/schemas/V2DebitWalletResponse" - }, - "V2DebitWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Hold" - } - } - }, - "V2Hold": { - "type": "object", - "required": [ - "id", - "walletID", - "metadata", - "description" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the hold." - }, - "walletID": { - "type": "string", - "description": "The ID of the wallet the hold is associated with." - }, - "metadata": { - "type": "object", - "description": "Metadata associated with the hold.", - "additionalProperties": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "destination": { - "$ref": "#/components/schemas/V2Subject" - } - } - }, - "V2ActivityGetWalletOutput": { - "$ref": "#/components/schemas/V2GetWalletResponse" - }, - "V2GetWalletResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2WalletWithBalances" - } - } - }, - "V2WalletWithBalances": { - "type": "object", - "required": [ - "name", - "id", - "metadata", - "createdAt", - "balances", - "ledger" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique ID of the wallet." - }, - "metadata": { - "type": "object", - "description": "Metadata associated with the wallet.", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "balances": { - "type": "object", - "required": [ - "main" - ], - "properties": { - "main": { - "$ref": "#/components/schemas/V2AssetHolder" - } - } - }, - "ledger": { - "type": "string" - } - } - }, - "V2AssetHolder": { - "type": "object", - "required": [ - "assets" - ], - "properties": { - "assets": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - } - } - }, - "V2WorkflowInstanceHistoryStageInput": { - "type": "object", - "properties": { - "GetAccount": { - "$ref": "#/components/schemas/V2ActivityGetAccount" - }, - "CreateTransaction": { - "$ref": "#/components/schemas/V2ActivityCreateTransaction" - }, - "StripeTransfer": { - "$ref": "#/components/schemas/V2ActivityStripeTransfer" - }, - "GetPayment": { - "$ref": "#/components/schemas/V2ActivityGetPayment" - }, - "ConfirmHold": { - "$ref": "#/components/schemas/V2ActivityConfirmHold" - }, - "CreditWallet": { - "$ref": "#/components/schemas/V2ActivityCreditWallet" - }, - "DebitWallet": { - "$ref": "#/components/schemas/V2ActivityDebitWallet" - }, - "GetWallet": { - "$ref": "#/components/schemas/V2ActivityGetWallet" - }, - "VoidHold": { - "$ref": "#/components/schemas/V2ActivityVoidHold" - } - } - }, - "V2WorkflowInstanceHistoryStageOutput": { - "type": "object", - "properties": { - "GetAccount": { - "$ref": "#/components/schemas/V2ActivityGetAccountOutput" - }, - "CreateTransaction": { - "$ref": "#/components/schemas/V2ActivityCreateTransactionOutput" - }, - "GetPayment": { - "$ref": "#/components/schemas/V2ActivityGetPaymentOutput" - }, - "DebitWallet": { - "$ref": "#/components/schemas/V2ActivityDebitWalletOutput" - }, - "GetWallet": { - "$ref": "#/components/schemas/V2ActivityGetWalletOutput" - } - } - }, - "V2Monetary": { - "type": "object", - "required": [ - "asset", - "amount" - ], - "properties": { - "asset": { - "type": "string", - "description": "The asset of the monetary value." - }, - "amount": { - "type": "integer", - "format": "bigint", - "description": "The amount of the monetary value." - } - } - }, - "V2ReadTriggerResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/V2Trigger" - } - } - }, - "PoliciesCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Policy" - } - } - } - } - } - }, - "ReconciliationsCursorResponse": { - "type": "object", - "required": [ - "cursor" - ], - "properties": { - "cursor": { - "type": "object", - "required": [ - "pageSize", - "hasMore", - "data" - ], - "properties": { - "pageSize": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000, - "example": 15 - }, - "hasMore": { - "type": "boolean", - "example": false - }, - "previous": { - "type": "string", - "example": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=" - }, - "next": { - "type": "string", - "example": "" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Reconciliation" - } - } - } - } - } - }, - "PolicyRequest": { - "type": "object", - "required": [ - "name", - "ledgerName", - "ledgerQuery", - "paymentsPoolID" - ], - "properties": { - "name": { - "type": "string", - "example": "XXX" - }, - "ledgerName": { - "type": "string", - "example": "default" - }, - "ledgerQuery": { - "type": "string", - "example": "{\"$match\": {\"metadata[reconciliation]\": \"pool:main\"}}" - }, - "paymentsPoolID": { - "type": "string", - "example": "XXX" - } - } - }, - "PolicyResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "policy": { - "$ref": "#/components/schemas/Policy" - } - } - }, - "ReconciliationRequest": { - "type": "object", - "required": [ - "reconciledAtLedger", - "reconciledAtPayments" - ], - "properties": { - "reconciledAtLedger": { - "type": "string", - "format": "date-time", - "example": "2021-01-01T00:00:00.000Z" - }, - "reconciledAtPayments": { - "type": "string", - "format": "date-time", - "example": "2021-01-01T00:00:00.000Z" - } - } - }, - "ReconciliationResponse": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "reconciliation": { - "$ref": "#/components/schemas/Reconciliation" - } - } - }, - "Policy": { - "type": "object", - "required": [ - "id", - "name", - "createdAt", - "ledgerName", - "ledgerQuery", - "paymentsPoolID" - ], - "properties": { - "id": { - "type": "string", - "example": "XXX" - }, - "name": { - "type": "string", - "example": "XXX" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "example": "2021-01-01T00:00:00.000Z" - }, - "ledgerName": { - "type": "string", - "example": "default" - }, - "ledgerQuery": { - "type": "string", - "example": "{\"$match\": {\"metadata[reconciliation]\": \"pool:main\"}}" - }, - "paymentsPoolID": { - "type": "string", - "example": "XXX" - } - } - }, - "Reconciliation": { - "type": "object", - "required": [ - "id", - "policyID", - "createdAt", - "reconciledAtLedger", - "reconciledAtPayments", - "status", - "paymentsBalances", - "ledgerBalances", - "driftBalances" - ], - "properties": { - "id": { - "type": "string", - "example": "XXX" - }, - "policyID": { - "type": "string", - "example": "XXX" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "example": "2021-01-01T00:00:00.000Z" - }, - "reconciledAtLedger": { - "type": "string", - "format": "date-time", - "example": "2021-01-01T00:00:00.000Z" - }, - "reconciledAtPayments": { - "type": "string", - "format": "date-time", - "example": "2021-01-01T00:00:00.000Z" - }, - "status": { - "type": "string", - "example": "COMPLETED" - }, - "paymentsBalances": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "ledgerBalances": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "driftBalances": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "bigint" - } - }, - "error": { - "type": "string" - } - } - }, - "reconciliationErrorResponse": { - "type": "object", - "required": [ - "errorCode", - "errorMessage" - ], - "properties": { - "errorCode": { - "type": "string", - "example": "VALIDATION" - }, - "errorMessage": { - "type": "string" - }, - "details": { - "type": "string" - } - } - } - }, - "securitySchemes": { - "Authorization": { - "type": "oauth2", - "flows": { - "clientCredentials": { - "tokenUrl": "https://localhost/api/auth/oauth/token", - "refreshUrl": "https://localhost/api/auth/oauth/token", - "scopes": {} - } - } - } - }, - "responses": { - "ErrorResponse": { - "description": "General error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "V2ErrorResponse": { - "description": "General error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/V2Error" - } - } - } - }, - "NoContent": { - "description": "No content" - }, - "ServerInfo": { - "description": "Server information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfo" - } - } - } - }, - "Policies": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PoliciesCursorResponse" - } - } - } - }, - "Policy": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PolicyResponse" - } - } - } - }, - "Reconciliations": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReconciliationsCursorResponse" - } - } - } - }, - "Reconciliation": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReconciliationResponse" - } - } - } - }, - "reconciliationErrorResponse": { - "description": "Error response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/reconciliationErrorResponse" - } - } - } - } - }, - "parameters": { - "PageSize": { - "name": "pageSize", - "in": "query", - "description": "The maximum number of results to return per page.\n", - "example": 100, - "schema": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 1000 - } - }, - "Cursor": { - "name": "cursor", - "in": "query", - "description": "Parameter used in pagination requests. Maximum page size is set to 15.\nSet to the value of next for the next page of results.\nSet to the value of previous for the previous page of results.\nNo other parameters can be set when this parameter is set.\n", - "schema": { - "type": "string", - "example": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" - } - }, - "PolicyID": { - "name": "policyID", - "in": "path", - "schema": { - "type": "string" - }, - "description": "The policy ID.", - "example": "XXX", - "required": true - }, - "ReconciliationID": { - "name": "reconciliationID", - "in": "path", - "schema": { - "type": "string" - }, - "description": "The reconciliation ID.", - "example": "XXX", - "required": true - } - }, - "requestBodies": { - "Policy": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PolicyRequest" - } - } - } - }, - "Reconciliation": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReconciliationRequest" - } - } - } - } - } - }, - "x-tagGroups": [ - { - "name": "Auth", - "tags": [ - "Clients", - "Scopes", - "Users", - "Auth" - ] - }, - { - "name": "Ledger", - "tags": [ - "Ledger", - "Server", - "Accounts", - "Mapping", - "Script", - "Stats", - "Transactions", - "Balances", - "server", - "accounts", - "mapping", - "script", - "stats", - "transactions", - "balances" - ] - }, - { - "name": "Payments", - "tags": [ - "Payments" - ] - }, - { - "name": "Search", - "tags": [ - "Search" - ] - }, - { - "name": "Wallets", - "tags": [ - "Wallets" - ] - }, - { - "name": "Webhooks", - "tags": [ - "Webhooks" - ] - }, - { - "name": "Flows", - "tags": [ - "Orchestration" - ] - }, - { - "name": "Reconciliation", - "tags": [ - "Reconciliation" - ] - } - ] -} \ No newline at end of file diff --git a/releases/versions/v2.0/operator.yaml b/releases/versions/v2.0/operator.yaml deleted file mode 100644 index b43b67ad5d..0000000000 --- a/releases/versions/v2.0/operator.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: stack.formance.com/v1beta3 -kind: Versions -metadata: - name: v2.0 -spec: - ledger: v2.0.0-beta.7 - search: v1.0.0 - stargate: v1.0.0 - auth: v1.0.0 - wallets: v1.0.0 - webhooks: v1.0.0 - gateway: v1.0.0 - payments: v1.0.0-rc.5 - orchestration: v0.3.0 - reconciliation: v0.1.1 diff --git a/tests/integration/Earthfile b/tests/integration/Earthfile index cf79223f29..59db07a924 100644 --- a/tests/integration/Earthfile +++ b/tests/integration/Earthfile @@ -3,6 +3,7 @@ VERSION --pass-args --arg-scope-and-set 0.7 ARG core=github.com/formancehq/earthly:v0.6.0 IMPORT $core AS core IMPORT ../.. AS stack +IMPORT ../../releases AS releases FROM core+base-image @@ -31,8 +32,8 @@ tests: COPY --pass-args (stack+sources/out --LOCATION=libs) /src/libs COPY --pass-args (stack+sources/out --LOCATION=components) /src/components COPY --pass-args (stack+sources/out --LOCATION=ee) /src/ee - COPY --pass-args (stack+build-final-spec/final.json) /src/libs/clients/build/generate.json - COPY --pass-args (stack+build-sdk/go) /src/libs/clients/go + COPY --pass-args (stack+build-final-spec/latest.json) /src/libs/clients/build/generate.json + COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go COPY . /src/tests/integration WORKDIR /src/tests/integration DO --pass-args core+GO_INSTALL --package=github.com/onsi/ginkgo/v2/ginkgo @@ -66,8 +67,8 @@ sources: COPY --pass-args (stack+sources/out --LOCATION=libs) /src/libs COPY --pass-args (stack+sources/out --LOCATION=components) /src/components COPY --pass-args (stack+sources/out --LOCATION=ee) /src/ee - COPY --pass-args (stack+build-final-spec/final.json) /src/libs/clients/build/generate.json - COPY --pass-args (stack+build-sdk/go) /src/libs/clients/go + COPY --pass-args (stack+build-final-spec/latest.json) /src/libs/clients/build/generate.json + COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go COPY . /src/tests/integration WORKDIR /src/tests/integration SAVE ARTIFACT /src diff --git a/tests/integration/go.mod b/tests/integration/go.mod index 44b8fff7f3..a9beafa9c2 100644 --- a/tests/integration/go.mod +++ b/tests/integration/go.mod @@ -256,7 +256,7 @@ require ( replace ( github.com/formancehq/auth => ../../ee/auth - github.com/formancehq/formance-sdk-go => ../../libs/clients/go + github.com/formancehq/formance-sdk-go => ../../releases/sdks/go github.com/formancehq/ledger => ../../components/ledger github.com/formancehq/orchestration => ../../ee/orchestration github.com/formancehq/payments => ../../components/payments