@cobo/agentic-wallet 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +307 -0
- package/dist/api/ap2-api.d.ts +28 -0
- package/dist/api/ap2-api.d.ts.map +1 -0
- package/dist/api/ap2-api.js +64 -0
- package/dist/api/ap2-api.js.map +1 -0
- package/dist/api/approvals-api.d.ts +62 -0
- package/dist/api/approvals-api.d.ts.map +1 -0
- package/dist/api/approvals-api.js +185 -0
- package/dist/api/approvals-api.js.map +1 -0
- package/dist/api/audit-api.d.ts +39 -0
- package/dist/api/audit-api.d.ts.map +1 -0
- package/dist/api/audit-api.js +105 -0
- package/dist/api/audit-api.js.map +1 -0
- package/dist/api/balance-api.d.ts +37 -0
- package/dist/api/balance-api.d.ts.map +1 -0
- package/dist/api/balance-api.js +97 -0
- package/dist/api/balance-api.js.map +1 -0
- package/dist/api/coin-price-api.d.ts +32 -0
- package/dist/api/coin-price-api.d.ts.map +1 -0
- package/dist/api/coin-price-api.js +80 -0
- package/dist/api/coin-price-api.js.map +1 -0
- package/dist/api/delegations-api.d.ts +104 -0
- package/dist/api/delegations-api.d.ts.map +1 -0
- package/dist/api/delegations-api.js +363 -0
- package/dist/api/delegations-api.js.map +1 -0
- package/dist/api/faucet-api.d.ts +40 -0
- package/dist/api/faucet-api.d.ts.map +1 -0
- package/dist/api/faucet-api.js +107 -0
- package/dist/api/faucet-api.js.map +1 -0
- package/dist/api/health-api.d.ts +29 -0
- package/dist/api/health-api.d.ts.map +1 -0
- package/dist/api/health-api.js +64 -0
- package/dist/api/health-api.js.map +1 -0
- package/dist/api/identity-api.d.ts +114 -0
- package/dist/api/identity-api.d.ts.map +1 -0
- package/dist/api/identity-api.js +392 -0
- package/dist/api/identity-api.js.map +1 -0
- package/dist/api/meta-api.d.ts +28 -0
- package/dist/api/meta-api.d.ts.map +1 -0
- package/dist/api/meta-api.js +64 -0
- package/dist/api/meta-api.js.map +1 -0
- package/dist/api/metadata-api.d.ts +59 -0
- package/dist/api/metadata-api.d.ts.map +1 -0
- package/dist/api/metadata-api.js +186 -0
- package/dist/api/metadata-api.js.map +1 -0
- package/dist/api/pacts-api.d.ts +71 -0
- package/dist/api/pacts-api.d.ts.map +1 -0
- package/dist/api/pacts-api.js +228 -0
- package/dist/api/pacts-api.js.map +1 -0
- package/dist/api/policies-api.d.ts +126 -0
- package/dist/api/policies-api.d.ts.map +1 -0
- package/dist/api/policies-api.js +435 -0
- package/dist/api/policies-api.js.map +1 -0
- package/dist/api/telemetry-api.d.ts +38 -0
- package/dist/api/telemetry-api.d.ts.map +1 -0
- package/dist/api/telemetry-api.js +107 -0
- package/dist/api/telemetry-api.js.map +1 -0
- package/dist/api/transaction-records-api.d.ts +48 -0
- package/dist/api/transaction-records-api.d.ts.map +1 -0
- package/dist/api/transaction-records-api.js +138 -0
- package/dist/api/transaction-records-api.js.map +1 -0
- package/dist/api/transactions-api.d.ts +130 -0
- package/dist/api/transactions-api.d.ts.map +1 -0
- package/dist/api/transactions-api.js +433 -0
- package/dist/api/transactions-api.js.map +1 -0
- package/dist/api/wallets-api.d.ts +137 -0
- package/dist/api/wallets-api.d.ts.map +1 -0
- package/dist/api/wallets-api.js +481 -0
- package/dist/api/wallets-api.js.map +1 -0
- package/dist/api/webhooks-api.d.ts +50 -0
- package/dist/api/webhooks-api.d.ts.map +1 -0
- package/dist/api/webhooks-api.js +146 -0
- package/dist/api/webhooks-api.js.map +1 -0
- package/dist/api.d.ts +28 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +44 -0
- package/dist/api.js.map +1 -0
- package/dist/base.d.ts +67 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +68 -0
- package/dist/base.js.map +1 -0
- package/dist/common.d.ts +61 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +97 -0
- package/dist/common.js.map +1 -0
- package/dist/configuration.d.ts +72 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/configuration.js +53 -0
- package/dist/configuration.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/models/activate-request.d.ts +35 -0
- package/dist/models/activate-request.d.ts.map +1 -0
- package/dist/models/activate-request.js +12 -0
- package/dist/models/activate-request.js.map +1 -0
- package/dist/models/activate-response.d.ts +41 -0
- package/dist/models/activate-response.d.ts.map +1 -0
- package/dist/models/activate-response.js +12 -0
- package/dist/models/activate-response.js.map +1 -0
- package/dist/models/agent-status-response.d.ts +46 -0
- package/dist/models/agent-status-response.d.ts.map +1 -0
- package/dist/models/agent-status-response.js +17 -0
- package/dist/models/agent-status-response.js.map +1 -0
- package/dist/models/api-key-create-result.d.ts +30 -0
- package/dist/models/api-key-create-result.d.ts.map +1 -0
- package/dist/models/api-key-create-result.js +12 -0
- package/dist/models/api-key-create-result.js.map +1 -0
- package/dist/models/api-key-create.d.ts +41 -0
- package/dist/models/api-key-create.d.ts.map +1 -0
- package/dist/models/api-key-create.js +12 -0
- package/dist/models/api-key-create.js.map +1 -0
- package/dist/models/api-key-read.d.ts +95 -0
- package/dist/models/api-key-read.d.ts.map +1 -0
- package/dist/models/api-key-read.js +12 -0
- package/dist/models/api-key-read.js.map +1 -0
- package/dist/models/applicable-limit-read.d.ts +65 -0
- package/dist/models/applicable-limit-read.d.ts.map +1 -0
- package/dist/models/applicable-limit-read.js +12 -0
- package/dist/models/applicable-limit-read.js.map +1 -0
- package/dist/models/approval-list-response.d.ts +24 -0
- package/dist/models/approval-list-response.d.ts.map +1 -0
- package/dist/models/approval-list-response.js +12 -0
- package/dist/models/approval-list-response.js.map +1 -0
- package/dist/models/approval-read.d.ts +90 -0
- package/dist/models/approval-read.d.ts.map +1 -0
- package/dist/models/approval-read.js +12 -0
- package/dist/models/approval-read.js.map +1 -0
- package/dist/models/approval-status.d.ts +22 -0
- package/dist/models/approval-status.d.ts.map +1 -0
- package/dist/models/approval-status.js +24 -0
- package/dist/models/approval-status.js.map +1 -0
- package/dist/models/approval-summary-dto.d.ts +54 -0
- package/dist/models/approval-summary-dto.d.ts.map +1 -0
- package/dist/models/approval-summary-dto.js +12 -0
- package/dist/models/approval-summary-dto.js.map +1 -0
- package/dist/models/audit-action.d.ts +70 -0
- package/dist/models/audit-action.d.ts.map +1 -0
- package/dist/models/audit-action.js +72 -0
- package/dist/models/audit-action.js.map +1 -0
- package/dist/models/audit-log-page.d.ts +30 -0
- package/dist/models/audit-log-page.d.ts.map +1 -0
- package/dist/models/audit-log-page.js +12 -0
- package/dist/models/audit-log-page.js.map +1 -0
- package/dist/models/audit-log-read.d.ts +95 -0
- package/dist/models/audit-log-read.d.ts.map +1 -0
- package/dist/models/audit-log-read.js +12 -0
- package/dist/models/audit-log-read.js.map +1 -0
- package/dist/models/audit-result.d.ts +22 -0
- package/dist/models/audit-result.d.ts.map +1 -0
- package/dist/models/audit-result.js +24 -0
- package/dist/models/audit-result.js.map +1 -0
- package/dist/models/balance-read.d.ts +101 -0
- package/dist/models/balance-read.d.ts.map +1 -0
- package/dist/models/balance-read.js +12 -0
- package/dist/models/balance-read.js.map +1 -0
- package/dist/models/chain-info.d.ts +137 -0
- package/dist/models/chain-info.d.ts.map +1 -0
- package/dist/models/chain-info.js +12 -0
- package/dist/models/chain-info.js.map +1 -0
- package/dist/models/chain-metadata.d.ts +71 -0
- package/dist/models/chain-metadata.d.ts.map +1 -0
- package/dist/models/chain-metadata.js +12 -0
- package/dist/models/chain-metadata.js.map +1 -0
- package/dist/models/claim-token-status.d.ts +22 -0
- package/dist/models/claim-token-status.d.ts.map +1 -0
- package/dist/models/claim-token-status.js +24 -0
- package/dist/models/claim-token-status.js.map +1 -0
- package/dist/models/completion-condition-type.d.ts +22 -0
- package/dist/models/completion-condition-type.d.ts.map +1 -0
- package/dist/models/completion-condition-type.js +24 -0
- package/dist/models/completion-condition-type.js.map +1 -0
- package/dist/models/completion-condition.d.ts +30 -0
- package/dist/models/completion-condition.d.ts.map +1 -0
- package/dist/models/completion-condition.js +12 -0
- package/dist/models/completion-condition.js.map +1 -0
- package/dist/models/contract-call-create.d.ts +80 -0
- package/dist/models/contract-call-create.d.ts.map +1 -0
- package/dist/models/contract-call-create.js +12 -0
- package/dist/models/contract-call-create.js.map +1 -0
- package/dist/models/contract-call-submit-result.d.ts +59 -0
- package/dist/models/contract-call-submit-result.d.ts.map +1 -0
- package/dist/models/contract-call-submit-result.js +12 -0
- package/dist/models/contract-call-submit-result.js.map +1 -0
- package/dist/models/create-approval-request.d.ts +35 -0
- package/dist/models/create-approval-request.d.ts.map +1 -0
- package/dist/models/create-approval-request.js +12 -0
- package/dist/models/create-approval-request.js.map +1 -0
- package/dist/models/create-approval-response.d.ts +23 -0
- package/dist/models/create-approval-response.d.ts.map +1 -0
- package/dist/models/create-approval-response.js +12 -0
- package/dist/models/create-approval-response.js.map +1 -0
- package/dist/models/delegation-create.d.ts +49 -0
- package/dist/models/delegation-create.d.ts.map +1 -0
- package/dist/models/delegation-create.js +12 -0
- package/dist/models/delegation-create.js.map +1 -0
- package/dist/models/delegation-freeze-request.d.ts +48 -0
- package/dist/models/delegation-freeze-request.d.ts.map +1 -0
- package/dist/models/delegation-freeze-request.js +12 -0
- package/dist/models/delegation-freeze-request.js.map +1 -0
- package/dist/models/delegation-freeze-result.d.ts +48 -0
- package/dist/models/delegation-freeze-result.d.ts.map +1 -0
- package/dist/models/delegation-freeze-result.js +12 -0
- package/dist/models/delegation-freeze-result.js.map +1 -0
- package/dist/models/delegation-permission.d.ts +26 -0
- package/dist/models/delegation-permission.d.ts.map +1 -0
- package/dist/models/delegation-permission.js +28 -0
- package/dist/models/delegation-permission.js.map +1 -0
- package/dist/models/delegation-read.d.ts +104 -0
- package/dist/models/delegation-read.d.ts.map +1 -0
- package/dist/models/delegation-read.js +12 -0
- package/dist/models/delegation-read.js.map +1 -0
- package/dist/models/delegation-spend-summary.d.ts +59 -0
- package/dist/models/delegation-spend-summary.d.ts.map +1 -0
- package/dist/models/delegation-spend-summary.js +12 -0
- package/dist/models/delegation-spend-summary.js.map +1 -0
- package/dist/models/delegation-status.d.ts +21 -0
- package/dist/models/delegation-status.d.ts.map +1 -0
- package/dist/models/delegation-status.js +23 -0
- package/dist/models/delegation-status.js.map +1 -0
- package/dist/models/delegation-unfreeze-result.d.ts +42 -0
- package/dist/models/delegation-unfreeze-result.d.ts.map +1 -0
- package/dist/models/delegation-unfreeze-result.js +12 -0
- package/dist/models/delegation-unfreeze-result.js.map +1 -0
- package/dist/models/delegation-update.d.ts +30 -0
- package/dist/models/delegation-update.d.ts.map +1 -0
- package/dist/models/delegation-update.js +12 -0
- package/dist/models/delegation-update.js.map +1 -0
- package/dist/models/drop-transaction-request.d.ts +36 -0
- package/dist/models/drop-transaction-request.d.ts.map +1 -0
- package/dist/models/drop-transaction-request.js +12 -0
- package/dist/models/drop-transaction-request.js.map +1 -0
- package/dist/models/eip1559-fee-request.d.ts +47 -0
- package/dist/models/eip1559-fee-request.d.ts.map +1 -0
- package/dist/models/eip1559-fee-request.js +12 -0
- package/dist/models/eip1559-fee-request.js.map +1 -0
- package/dist/models/estimate-contract-call-fee-request.d.ts +61 -0
- package/dist/models/estimate-contract-call-fee-request.d.ts.map +1 -0
- package/dist/models/estimate-contract-call-fee-request.js +12 -0
- package/dist/models/estimate-contract-call-fee-request.js.map +1 -0
- package/dist/models/estimate-transfer-fee-read.d.ts +48 -0
- package/dist/models/estimate-transfer-fee-read.d.ts.map +1 -0
- package/dist/models/estimate-transfer-fee-read.js +12 -0
- package/dist/models/estimate-transfer-fee-read.js.map +1 -0
- package/dist/models/estimate-transfer-fee-request.d.ts +47 -0
- package/dist/models/estimate-transfer-fee-request.d.ts.map +1 -0
- package/dist/models/estimate-transfer-fee-request.js +12 -0
- package/dist/models/estimate-transfer-fee-request.js.map +1 -0
- package/dist/models/faucet-deposit-request.d.ts +29 -0
- package/dist/models/faucet-deposit-request.d.ts.map +1 -0
- package/dist/models/faucet-deposit-request.js +12 -0
- package/dist/models/faucet-deposit-request.js.map +1 -0
- package/dist/models/faucet-deposit-result.d.ts +43 -0
- package/dist/models/faucet-deposit-result.d.ts.map +1 -0
- package/dist/models/faucet-deposit-result.js +12 -0
- package/dist/models/faucet-deposit-result.js.map +1 -0
- package/dist/models/faucet-token-info.d.ts +29 -0
- package/dist/models/faucet-token-info.d.ts.map +1 -0
- package/dist/models/faucet-token-info.js +12 -0
- package/dist/models/faucet-token-info.js.map +1 -0
- package/dist/models/faucet-token-item.d.ts +32 -0
- package/dist/models/faucet-token-item.d.ts.map +1 -0
- package/dist/models/faucet-token-item.js +12 -0
- package/dist/models/faucet-token-item.js.map +1 -0
- package/dist/models/fee-estimate-read.d.ts +53 -0
- package/dist/models/fee-estimate-read.d.ts.map +1 -0
- package/dist/models/fee-estimate-read.js +12 -0
- package/dist/models/fee-estimate-read.js.map +1 -0
- package/dist/models/fee.d.ts +18 -0
- package/dist/models/fee.d.ts.map +1 -0
- package/dist/models/fee.js +12 -0
- package/dist/models/fee.js.map +1 -0
- package/dist/models/freeze-scope.d.ts +21 -0
- package/dist/models/freeze-scope.d.ts.map +1 -0
- package/dist/models/freeze-scope.js +23 -0
- package/dist/models/freeze-scope.js.map +1 -0
- package/dist/models/index.d.ts +191 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +207 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/inline-policy-create.d.ts +50 -0
- package/dist/models/inline-policy-create.d.ts.map +1 -0
- package/dist/models/inline-policy-create.js +12 -0
- package/dist/models/inline-policy-create.js.map +1 -0
- package/dist/models/merchant-info.d.ts +47 -0
- package/dist/models/merchant-info.d.ts.map +1 -0
- package/dist/models/merchant-info.js +12 -0
- package/dist/models/merchant-info.js.map +1 -0
- package/dist/models/message-sign-create.d.ts +62 -0
- package/dist/models/message-sign-create.d.ts.map +1 -0
- package/dist/models/message-sign-create.js +12 -0
- package/dist/models/message-sign-create.js.map +1 -0
- package/dist/models/message-sign-dest-type.d.ts +19 -0
- package/dist/models/message-sign-dest-type.d.ts.map +1 -0
- package/dist/models/message-sign-dest-type.js +21 -0
- package/dist/models/message-sign-dest-type.js.map +1 -0
- package/dist/models/message-sign-result.d.ts +54 -0
- package/dist/models/message-sign-result.d.ts.map +1 -0
- package/dist/models/message-sign-result.js +12 -0
- package/dist/models/message-sign-result.js.map +1 -0
- package/dist/models/model-error.d.ts +24 -0
- package/dist/models/model-error.d.ts.map +1 -0
- package/dist/models/model-error.js +12 -0
- package/dist/models/model-error.js.map +1 -0
- package/dist/models/node-status-read.d.ts +59 -0
- package/dist/models/node-status-read.d.ts.map +1 -0
- package/dist/models/node-status-read.js +12 -0
- package/dist/models/node-status-read.js.map +1 -0
- package/dist/models/pact-event-list-response.d.ts +24 -0
- package/dist/models/pact-event-list-response.d.ts.map +1 -0
- package/dist/models/pact-event-list-response.js +12 -0
- package/dist/models/pact-event-list-response.js.map +1 -0
- package/dist/models/pact-event-read.d.ts +50 -0
- package/dist/models/pact-event-read.d.ts.map +1 -0
- package/dist/models/pact-event-read.js +12 -0
- package/dist/models/pact-event-read.js.map +1 -0
- package/dist/models/pact-event-type.d.ts +24 -0
- package/dist/models/pact-event-type.d.ts.map +1 -0
- package/dist/models/pact-event-type.js +26 -0
- package/dist/models/pact-event-type.js.map +1 -0
- package/dist/models/pact-list-response.d.ts +24 -0
- package/dist/models/pact-list-response.d.ts.map +1 -0
- package/dist/models/pact-list-response.js +12 -0
- package/dist/models/pact-list-response.js.map +1 -0
- package/dist/models/pact-read.d.ts +116 -0
- package/dist/models/pact-read.d.ts.map +1 -0
- package/dist/models/pact-read.js +12 -0
- package/dist/models/pact-read.js.map +1 -0
- package/dist/models/pact-spec.d.ts +58 -0
- package/dist/models/pact-spec.d.ts.map +1 -0
- package/dist/models/pact-spec.js +12 -0
- package/dist/models/pact-spec.js.map +1 -0
- package/dist/models/pact-status.d.ts +24 -0
- package/dist/models/pact-status.d.ts.map +1 -0
- package/dist/models/pact-status.js +26 -0
- package/dist/models/pact-status.js.map +1 -0
- package/dist/models/pact-submit-request.d.ts +42 -0
- package/dist/models/pact-submit-request.d.ts.map +1 -0
- package/dist/models/pact-submit-request.js +12 -0
- package/dist/models/pact-submit-request.js.map +1 -0
- package/dist/models/pact-submit-response.d.ts +42 -0
- package/dist/models/pact-submit-response.d.ts.map +1 -0
- package/dist/models/pact-submit-response.js +12 -0
- package/dist/models/pact-submit-response.js.map +1 -0
- package/dist/models/pact-summary.d.ts +60 -0
- package/dist/models/pact-summary.d.ts.map +1 -0
- package/dist/models/pact-summary.js +12 -0
- package/dist/models/pact-summary.js.map +1 -0
- package/dist/models/pagination-meta.d.ts +35 -0
- package/dist/models/pagination-meta.d.ts.map +1 -0
- package/dist/models/pagination-meta.js +12 -0
- package/dist/models/pagination-meta.js.map +1 -0
- package/dist/models/pending-operation-action-result.d.ts +48 -0
- package/dist/models/pending-operation-action-result.d.ts.map +1 -0
- package/dist/models/pending-operation-action-result.js +12 -0
- package/dist/models/pending-operation-action-result.js.map +1 -0
- package/dist/models/pending-operation-list-response.d.ts +30 -0
- package/dist/models/pending-operation-list-response.d.ts.map +1 -0
- package/dist/models/pending-operation-list-response.js +12 -0
- package/dist/models/pending-operation-list-response.js.map +1 -0
- package/dist/models/pending-operation-read.d.ts +145 -0
- package/dist/models/pending-operation-read.d.ts.map +1 -0
- package/dist/models/pending-operation-read.js +12 -0
- package/dist/models/pending-operation-read.js.map +1 -0
- package/dist/models/pending-operation-status.d.ts +23 -0
- package/dist/models/pending-operation-status.d.ts.map +1 -0
- package/dist/models/pending-operation-status.js +25 -0
- package/dist/models/pending-operation-status.js.map +1 -0
- package/dist/models/pending-operation-type.d.ts +20 -0
- package/dist/models/pending-operation-type.d.ts.map +1 -0
- package/dist/models/pending-operation-type.js +22 -0
- package/dist/models/pending-operation-type.js.map +1 -0
- package/dist/models/policy-create.d.ts +69 -0
- package/dist/models/policy-create.d.ts.map +1 -0
- package/dist/models/policy-create.js +12 -0
- package/dist/models/policy-create.js.map +1 -0
- package/dist/models/policy-dry-run-request.d.ts +86 -0
- package/dist/models/policy-dry-run-request.d.ts.map +1 -0
- package/dist/models/policy-dry-run-request.js +12 -0
- package/dist/models/policy-dry-run-request.js.map +1 -0
- package/dist/models/policy-dry-run-result.d.ts +63 -0
- package/dist/models/policy-dry-run-result.d.ts.map +1 -0
- package/dist/models/policy-dry-run-result.js +12 -0
- package/dist/models/policy-dry-run-result.js.map +1 -0
- package/dist/models/policy-read.d.ts +99 -0
- package/dist/models/policy-read.d.ts.map +1 -0
- package/dist/models/policy-read.js +12 -0
- package/dist/models/policy-read.js.map +1 -0
- package/dist/models/policy-scope.d.ts +21 -0
- package/dist/models/policy-scope.d.ts.map +1 -0
- package/dist/models/policy-scope.js +23 -0
- package/dist/models/policy-scope.js.map +1 -0
- package/dist/models/policy-type.d.ts +20 -0
- package/dist/models/policy-type.d.ts.map +1 -0
- package/dist/models/policy-type.js +22 -0
- package/dist/models/policy-type.js.map +1 -0
- package/dist/models/policy-update.d.ts +43 -0
- package/dist/models/policy-update.d.ts.map +1 -0
- package/dist/models/policy-update.js +12 -0
- package/dist/models/policy-update.js.map +1 -0
- package/dist/models/principal-create-result.d.ts +86 -0
- package/dist/models/principal-create-result.d.ts.map +1 -0
- package/dist/models/principal-create-result.js +12 -0
- package/dist/models/principal-create-result.js.map +1 -0
- package/dist/models/principal-create.d.ts +44 -0
- package/dist/models/principal-create.d.ts.map +1 -0
- package/dist/models/principal-create.js +12 -0
- package/dist/models/principal-create.js.map +1 -0
- package/dist/models/principal-read.d.ts +80 -0
- package/dist/models/principal-read.d.ts.map +1 -0
- package/dist/models/principal-read.js +12 -0
- package/dist/models/principal-read.js.map +1 -0
- package/dist/models/principal-type.d.ts +20 -0
- package/dist/models/principal-type.d.ts.map +1 -0
- package/dist/models/principal-type.js +22 -0
- package/dist/models/principal-type.js.map +1 -0
- package/dist/models/provision-request.d.ts +29 -0
- package/dist/models/provision-request.d.ts.map +1 -0
- package/dist/models/provision-request.js +12 -0
- package/dist/models/provision-request.js.map +1 -0
- package/dist/models/provision-response.d.ts +58 -0
- package/dist/models/provision-response.d.ts.map +1 -0
- package/dist/models/provision-response.js +17 -0
- package/dist/models/provision-response.js.map +1 -0
- package/dist/models/recent-address-read.d.ts +35 -0
- package/dist/models/recent-address-read.d.ts.map +1 -0
- package/dist/models/recent-address-read.js +12 -0
- package/dist/models/recent-address-read.js.map +1 -0
- package/dist/models/reject-pending-operation-request.d.ts +23 -0
- package/dist/models/reject-pending-operation-request.d.ts.map +1 -0
- package/dist/models/reject-pending-operation-request.js +12 -0
- package/dist/models/reject-pending-operation-request.js.map +1 -0
- package/dist/models/resolve-approval-request.d.ts +40 -0
- package/dist/models/resolve-approval-request.d.ts.map +1 -0
- package/dist/models/resolve-approval-request.js +17 -0
- package/dist/models/resolve-approval-request.js.map +1 -0
- package/dist/models/resolve-approval-response.d.ts +24 -0
- package/dist/models/resolve-approval-response.d.ts.map +1 -0
- package/dist/models/resolve-approval-response.js +12 -0
- package/dist/models/resolve-approval-response.js.map +1 -0
- package/dist/models/sol-address-lookup-table-account.d.ts +29 -0
- package/dist/models/sol-address-lookup-table-account.d.ts.map +1 -0
- package/dist/models/sol-address-lookup-table-account.js +12 -0
- package/dist/models/sol-address-lookup-table-account.js.map +1 -0
- package/dist/models/sol-instruction-account.d.ts +35 -0
- package/dist/models/sol-instruction-account.d.ts.map +1 -0
- package/dist/models/sol-instruction-account.js +12 -0
- package/dist/models/sol-instruction-account.js.map +1 -0
- package/dist/models/sol-instruction.d.ts +36 -0
- package/dist/models/sol-instruction.d.ts.map +1 -0
- package/dist/models/sol-instruction.js +12 -0
- package/dist/models/sol-instruction.js.map +1 -0
- package/dist/models/solfee-request.d.ts +41 -0
- package/dist/models/solfee-request.d.ts.map +1 -0
- package/dist/models/solfee-request.js +12 -0
- package/dist/models/solfee-request.js.map +1 -0
- package/dist/models/speedup-transaction-request.d.ts +36 -0
- package/dist/models/speedup-transaction-request.d.ts.map +1 -0
- package/dist/models/speedup-transaction-request.js +12 -0
- package/dist/models/speedup-transaction-request.js.map +1 -0
- package/dist/models/standard-response-activate-response.d.ts +37 -0
- package/dist/models/standard-response-activate-response.d.ts.map +1 -0
- package/dist/models/standard-response-activate-response.js +12 -0
- package/dist/models/standard-response-activate-response.js.map +1 -0
- package/dist/models/standard-response-agent-status-response.d.ts +37 -0
- package/dist/models/standard-response-agent-status-response.d.ts.map +1 -0
- package/dist/models/standard-response-agent-status-response.js +12 -0
- package/dist/models/standard-response-agent-status-response.js.map +1 -0
- package/dist/models/standard-response-api-key-create-result.d.ts +37 -0
- package/dist/models/standard-response-api-key-create-result.d.ts.map +1 -0
- package/dist/models/standard-response-api-key-create-result.js +12 -0
- package/dist/models/standard-response-api-key-create-result.js.map +1 -0
- package/dist/models/standard-response-approval-list-response.d.ts +37 -0
- package/dist/models/standard-response-approval-list-response.d.ts.map +1 -0
- package/dist/models/standard-response-approval-list-response.js +12 -0
- package/dist/models/standard-response-approval-list-response.js.map +1 -0
- package/dist/models/standard-response-approval-read.d.ts +37 -0
- package/dist/models/standard-response-approval-read.d.ts.map +1 -0
- package/dist/models/standard-response-approval-read.js +12 -0
- package/dist/models/standard-response-approval-read.js.map +1 -0
- package/dist/models/standard-response-audit-log-page.d.ts +37 -0
- package/dist/models/standard-response-audit-log-page.d.ts.map +1 -0
- package/dist/models/standard-response-audit-log-page.js +12 -0
- package/dist/models/standard-response-audit-log-page.js.map +1 -0
- package/dist/models/standard-response-chain-info.d.ts +37 -0
- package/dist/models/standard-response-chain-info.d.ts.map +1 -0
- package/dist/models/standard-response-chain-info.js +12 -0
- package/dist/models/standard-response-chain-info.js.map +1 -0
- package/dist/models/standard-response-contract-call-submit-result.d.ts +37 -0
- package/dist/models/standard-response-contract-call-submit-result.d.ts.map +1 -0
- package/dist/models/standard-response-contract-call-submit-result.js +12 -0
- package/dist/models/standard-response-contract-call-submit-result.js.map +1 -0
- package/dist/models/standard-response-create-approval-response.d.ts +37 -0
- package/dist/models/standard-response-create-approval-response.d.ts.map +1 -0
- package/dist/models/standard-response-create-approval-response.js +12 -0
- package/dist/models/standard-response-create-approval-response.js.map +1 -0
- package/dist/models/standard-response-delegation-freeze-result.d.ts +37 -0
- package/dist/models/standard-response-delegation-freeze-result.d.ts.map +1 -0
- package/dist/models/standard-response-delegation-freeze-result.js +12 -0
- package/dist/models/standard-response-delegation-freeze-result.js.map +1 -0
- package/dist/models/standard-response-delegation-read.d.ts +37 -0
- package/dist/models/standard-response-delegation-read.d.ts.map +1 -0
- package/dist/models/standard-response-delegation-read.js +12 -0
- package/dist/models/standard-response-delegation-read.js.map +1 -0
- package/dist/models/standard-response-delegation-unfreeze-result.d.ts +37 -0
- package/dist/models/standard-response-delegation-unfreeze-result.d.ts.map +1 -0
- package/dist/models/standard-response-delegation-unfreeze-result.js +12 -0
- package/dist/models/standard-response-delegation-unfreeze-result.js.map +1 -0
- package/dist/models/standard-response-dict-str-bool.d.ts +38 -0
- package/dist/models/standard-response-dict-str-bool.d.ts.map +1 -0
- package/dist/models/standard-response-dict-str-bool.js +12 -0
- package/dist/models/standard-response-dict-str-bool.js.map +1 -0
- package/dist/models/standard-response-dict-str-str.d.ts +38 -0
- package/dist/models/standard-response-dict-str-str.d.ts.map +1 -0
- package/dist/models/standard-response-dict-str-str.js +12 -0
- package/dist/models/standard-response-dict-str-str.js.map +1 -0
- package/dist/models/standard-response-estimate-transfer-fee-read.d.ts +37 -0
- package/dist/models/standard-response-estimate-transfer-fee-read.d.ts.map +1 -0
- package/dist/models/standard-response-estimate-transfer-fee-read.js +12 -0
- package/dist/models/standard-response-estimate-transfer-fee-read.js.map +1 -0
- package/dist/models/standard-response-faucet-deposit-result.d.ts +37 -0
- package/dist/models/standard-response-faucet-deposit-result.d.ts.map +1 -0
- package/dist/models/standard-response-faucet-deposit-result.js +12 -0
- package/dist/models/standard-response-faucet-deposit-result.js.map +1 -0
- package/dist/models/standard-response-list-api-key-read.d.ts +37 -0
- package/dist/models/standard-response-list-api-key-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-api-key-read.js +12 -0
- package/dist/models/standard-response-list-api-key-read.js.map +1 -0
- package/dist/models/standard-response-list-balance-read.d.ts +37 -0
- package/dist/models/standard-response-list-balance-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-balance-read.js +12 -0
- package/dist/models/standard-response-list-balance-read.js.map +1 -0
- package/dist/models/standard-response-list-delegation-read.d.ts +37 -0
- package/dist/models/standard-response-list-delegation-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-delegation-read.js +12 -0
- package/dist/models/standard-response-list-delegation-read.js.map +1 -0
- package/dist/models/standard-response-list-faucet-token-item.d.ts +37 -0
- package/dist/models/standard-response-list-faucet-token-item.d.ts.map +1 -0
- package/dist/models/standard-response-list-faucet-token-item.js +12 -0
- package/dist/models/standard-response-list-faucet-token-item.js.map +1 -0
- package/dist/models/standard-response-list-merchant-info.d.ts +37 -0
- package/dist/models/standard-response-list-merchant-info.d.ts.map +1 -0
- package/dist/models/standard-response-list-merchant-info.js +12 -0
- package/dist/models/standard-response-list-merchant-info.js.map +1 -0
- package/dist/models/standard-response-list-policy-read.d.ts +37 -0
- package/dist/models/standard-response-list-policy-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-policy-read.js +12 -0
- package/dist/models/standard-response-list-policy-read.js.map +1 -0
- package/dist/models/standard-response-list-principal-read.d.ts +37 -0
- package/dist/models/standard-response-list-principal-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-principal-read.js +12 -0
- package/dist/models/standard-response-list-principal-read.js.map +1 -0
- package/dist/models/standard-response-list-recent-address-read.d.ts +37 -0
- package/dist/models/standard-response-list-recent-address-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-recent-address-read.js +12 -0
- package/dist/models/standard-response-list-recent-address-read.js.map +1 -0
- package/dist/models/standard-response-list-transaction-record-read.d.ts +37 -0
- package/dist/models/standard-response-list-transaction-record-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-transaction-record-read.js +12 -0
- package/dist/models/standard-response-list-transaction-record-read.js.map +1 -0
- package/dist/models/standard-response-list-wallet-address-read.d.ts +37 -0
- package/dist/models/standard-response-list-wallet-address-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-wallet-address-read.js +12 -0
- package/dist/models/standard-response-list-wallet-address-read.js.map +1 -0
- package/dist/models/standard-response-list-wallet-read.d.ts +37 -0
- package/dist/models/standard-response-list-wallet-read.d.ts.map +1 -0
- package/dist/models/standard-response-list-wallet-read.js +12 -0
- package/dist/models/standard-response-list-wallet-read.js.map +1 -0
- package/dist/models/standard-response-list-webhook-dlqread.d.ts +37 -0
- package/dist/models/standard-response-list-webhook-dlqread.d.ts.map +1 -0
- package/dist/models/standard-response-list-webhook-dlqread.js +12 -0
- package/dist/models/standard-response-list-webhook-dlqread.js.map +1 -0
- package/dist/models/standard-response-message-sign-result.d.ts +37 -0
- package/dist/models/standard-response-message-sign-result.d.ts.map +1 -0
- package/dist/models/standard-response-message-sign-result.js +12 -0
- package/dist/models/standard-response-message-sign-result.js.map +1 -0
- package/dist/models/standard-response-node-status-read.d.ts +37 -0
- package/dist/models/standard-response-node-status-read.d.ts.map +1 -0
- package/dist/models/standard-response-node-status-read.js +12 -0
- package/dist/models/standard-response-node-status-read.js.map +1 -0
- package/dist/models/standard-response-pact-event-list-response.d.ts +37 -0
- package/dist/models/standard-response-pact-event-list-response.d.ts.map +1 -0
- package/dist/models/standard-response-pact-event-list-response.js +12 -0
- package/dist/models/standard-response-pact-event-list-response.js.map +1 -0
- package/dist/models/standard-response-pact-list-response.d.ts +37 -0
- package/dist/models/standard-response-pact-list-response.d.ts.map +1 -0
- package/dist/models/standard-response-pact-list-response.js +12 -0
- package/dist/models/standard-response-pact-list-response.js.map +1 -0
- package/dist/models/standard-response-pact-read.d.ts +37 -0
- package/dist/models/standard-response-pact-read.d.ts.map +1 -0
- package/dist/models/standard-response-pact-read.js +12 -0
- package/dist/models/standard-response-pact-read.js.map +1 -0
- package/dist/models/standard-response-pact-submit-response.d.ts +37 -0
- package/dist/models/standard-response-pact-submit-response.d.ts.map +1 -0
- package/dist/models/standard-response-pact-submit-response.js +12 -0
- package/dist/models/standard-response-pact-submit-response.js.map +1 -0
- package/dist/models/standard-response-pending-operation-action-result.d.ts +37 -0
- package/dist/models/standard-response-pending-operation-action-result.d.ts.map +1 -0
- package/dist/models/standard-response-pending-operation-action-result.js +12 -0
- package/dist/models/standard-response-pending-operation-action-result.js.map +1 -0
- package/dist/models/standard-response-pending-operation-list-response.d.ts +37 -0
- package/dist/models/standard-response-pending-operation-list-response.d.ts.map +1 -0
- package/dist/models/standard-response-pending-operation-list-response.js +12 -0
- package/dist/models/standard-response-pending-operation-list-response.js.map +1 -0
- package/dist/models/standard-response-pending-operation-read.d.ts +37 -0
- package/dist/models/standard-response-pending-operation-read.d.ts.map +1 -0
- package/dist/models/standard-response-pending-operation-read.js +12 -0
- package/dist/models/standard-response-pending-operation-read.js.map +1 -0
- package/dist/models/standard-response-policy-dry-run-result.d.ts +37 -0
- package/dist/models/standard-response-policy-dry-run-result.d.ts.map +1 -0
- package/dist/models/standard-response-policy-dry-run-result.js +12 -0
- package/dist/models/standard-response-policy-dry-run-result.js.map +1 -0
- package/dist/models/standard-response-policy-read.d.ts +37 -0
- package/dist/models/standard-response-policy-read.d.ts.map +1 -0
- package/dist/models/standard-response-policy-read.js +12 -0
- package/dist/models/standard-response-policy-read.js.map +1 -0
- package/dist/models/standard-response-principal-create-result.d.ts +37 -0
- package/dist/models/standard-response-principal-create-result.d.ts.map +1 -0
- package/dist/models/standard-response-principal-create-result.js +12 -0
- package/dist/models/standard-response-principal-create-result.js.map +1 -0
- package/dist/models/standard-response-provision-response.d.ts +37 -0
- package/dist/models/standard-response-provision-response.d.ts.map +1 -0
- package/dist/models/standard-response-provision-response.js +12 -0
- package/dist/models/standard-response-provision-response.js.map +1 -0
- package/dist/models/standard-response-resolve-approval-response.d.ts +37 -0
- package/dist/models/standard-response-resolve-approval-response.d.ts.map +1 -0
- package/dist/models/standard-response-resolve-approval-response.js +12 -0
- package/dist/models/standard-response-resolve-approval-response.js.map +1 -0
- package/dist/models/standard-response-telemetry-config-response.d.ts +37 -0
- package/dist/models/standard-response-telemetry-config-response.d.ts.map +1 -0
- package/dist/models/standard-response-telemetry-config-response.js +12 -0
- package/dist/models/standard-response-telemetry-config-response.js.map +1 -0
- package/dist/models/standard-response-transaction-rbf-result.d.ts +37 -0
- package/dist/models/standard-response-transaction-rbf-result.d.ts.map +1 -0
- package/dist/models/standard-response-transaction-rbf-result.js +12 -0
- package/dist/models/standard-response-transaction-rbf-result.js.map +1 -0
- package/dist/models/standard-response-transaction-record-read.d.ts +37 -0
- package/dist/models/standard-response-transaction-record-read.d.ts.map +1 -0
- package/dist/models/standard-response-transaction-record-read.js +12 -0
- package/dist/models/standard-response-transaction-record-read.js.map +1 -0
- package/dist/models/standard-response-transfer-submit-result.d.ts +37 -0
- package/dist/models/standard-response-transfer-submit-result.d.ts.map +1 -0
- package/dist/models/standard-response-transfer-submit-result.js +12 -0
- package/dist/models/standard-response-transfer-submit-result.js.map +1 -0
- package/dist/models/standard-response-waas-paginated-response-chain-metadata.d.ts +37 -0
- package/dist/models/standard-response-waas-paginated-response-chain-metadata.d.ts.map +1 -0
- package/dist/models/standard-response-waas-paginated-response-chain-metadata.js +12 -0
- package/dist/models/standard-response-waas-paginated-response-chain-metadata.js.map +1 -0
- package/dist/models/standard-response-waas-paginated-response-token-metadata.d.ts +37 -0
- package/dist/models/standard-response-waas-paginated-response-token-metadata.d.ts.map +1 -0
- package/dist/models/standard-response-waas-paginated-response-token-metadata.js +12 -0
- package/dist/models/standard-response-waas-paginated-response-token-metadata.js.map +1 -0
- package/dist/models/standard-response-wallet-address-read.d.ts +37 -0
- package/dist/models/standard-response-wallet-address-read.d.ts.map +1 -0
- package/dist/models/standard-response-wallet-address-read.js +12 -0
- package/dist/models/standard-response-wallet-address-read.js.map +1 -0
- package/dist/models/standard-response-wallet-claim-info-read.d.ts +37 -0
- package/dist/models/standard-response-wallet-claim-info-read.d.ts.map +1 -0
- package/dist/models/standard-response-wallet-claim-info-read.js +12 -0
- package/dist/models/standard-response-wallet-claim-info-read.js.map +1 -0
- package/dist/models/standard-response-wallet-claim-initiate-read.d.ts +37 -0
- package/dist/models/standard-response-wallet-claim-initiate-read.d.ts.map +1 -0
- package/dist/models/standard-response-wallet-claim-initiate-read.js +12 -0
- package/dist/models/standard-response-wallet-claim-initiate-read.js.map +1 -0
- package/dist/models/standard-response-wallet-claim-read.d.ts +37 -0
- package/dist/models/standard-response-wallet-claim-read.d.ts.map +1 -0
- package/dist/models/standard-response-wallet-claim-read.js +12 -0
- package/dist/models/standard-response-wallet-claim-read.js.map +1 -0
- package/dist/models/standard-response-wallet-detail-read.d.ts +37 -0
- package/dist/models/standard-response-wallet-detail-read.d.ts.map +1 -0
- package/dist/models/standard-response-wallet-detail-read.js +12 -0
- package/dist/models/standard-response-wallet-detail-read.js.map +1 -0
- package/dist/models/standard-response-wallet-read.d.ts +37 -0
- package/dist/models/standard-response-wallet-read.d.ts.map +1 -0
- package/dist/models/standard-response-wallet-read.js +12 -0
- package/dist/models/standard-response-wallet-read.js.map +1 -0
- package/dist/models/standard-response-webhook-delete-result.d.ts +37 -0
- package/dist/models/standard-response-webhook-delete-result.d.ts.map +1 -0
- package/dist/models/standard-response-webhook-delete-result.js +12 -0
- package/dist/models/standard-response-webhook-delete-result.js.map +1 -0
- package/dist/models/standard-response-webhook-process-result.d.ts +37 -0
- package/dist/models/standard-response-webhook-process-result.d.ts.map +1 -0
- package/dist/models/standard-response-webhook-process-result.js +12 -0
- package/dist/models/standard-response-webhook-process-result.js.map +1 -0
- package/dist/models/standard-response-webhook-registration-read.d.ts +37 -0
- package/dist/models/standard-response-webhook-registration-read.d.ts.map +1 -0
- package/dist/models/standard-response-webhook-registration-read.js +12 -0
- package/dist/models/standard-response-webhook-registration-read.js.map +1 -0
- package/dist/models/standard-response-x402-payment-result.d.ts +37 -0
- package/dist/models/standard-response-x402-payment-result.d.ts.map +1 -0
- package/dist/models/standard-response-x402-payment-result.js +12 -0
- package/dist/models/standard-response-x402-payment-result.js.map +1 -0
- package/dist/models/telemetry-config-response.d.ts +35 -0
- package/dist/models/telemetry-config-response.d.ts.map +1 -0
- package/dist/models/telemetry-config-response.js +12 -0
- package/dist/models/telemetry-config-response.js.map +1 -0
- package/dist/models/tier-evaluation-read.d.ts +47 -0
- package/dist/models/tier-evaluation-read.d.ts.map +1 -0
- package/dist/models/tier-evaluation-read.js +12 -0
- package/dist/models/tier-evaluation-read.js.map +1 -0
- package/dist/models/token-metadata.d.ts +101 -0
- package/dist/models/token-metadata.d.ts.map +1 -0
- package/dist/models/token-metadata.js +12 -0
- package/dist/models/token-metadata.js.map +1 -0
- package/dist/models/transaction-rbf-result.d.ts +29 -0
- package/dist/models/transaction-rbf-result.d.ts.map +1 -0
- package/dist/models/transaction-rbf-result.js +12 -0
- package/dist/models/transaction-rbf-result.js.map +1 -0
- package/dist/models/transaction-record-extra.d.ts +87 -0
- package/dist/models/transaction-record-extra.d.ts.map +1 -0
- package/dist/models/transaction-record-extra.js +12 -0
- package/dist/models/transaction-record-extra.js.map +1 -0
- package/dist/models/transaction-record-read.d.ts +109 -0
- package/dist/models/transaction-record-read.d.ts.map +1 -0
- package/dist/models/transaction-record-read.js +12 -0
- package/dist/models/transaction-record-read.js.map +1 -0
- package/dist/models/transaction-record-type.d.ts +22 -0
- package/dist/models/transaction-record-type.d.ts.map +1 -0
- package/dist/models/transaction-record-type.js +24 -0
- package/dist/models/transaction-record-type.js.map +1 -0
- package/dist/models/transfer-create.d.ts +66 -0
- package/dist/models/transfer-create.d.ts.map +1 -0
- package/dist/models/transfer-create.js +12 -0
- package/dist/models/transfer-create.js.map +1 -0
- package/dist/models/transfer-submit-result.d.ts +53 -0
- package/dist/models/transfer-submit-result.d.ts.map +1 -0
- package/dist/models/transfer-submit-result.js +12 -0
- package/dist/models/transfer-submit-result.js.map +1 -0
- package/dist/models/validation-error-loc-inner.d.ts +16 -0
- package/dist/models/validation-error-loc-inner.d.ts.map +1 -0
- package/dist/models/validation-error-loc-inner.js +12 -0
- package/dist/models/validation-error-loc-inner.js.map +1 -0
- package/dist/models/validation-error.d.ts +48 -0
- package/dist/models/validation-error.d.ts.map +1 -0
- package/dist/models/validation-error.js +12 -0
- package/dist/models/validation-error.js.map +1 -0
- package/dist/models/vault-group-type.d.ts +20 -0
- package/dist/models/vault-group-type.d.ts.map +1 -0
- package/dist/models/vault-group-type.js +22 -0
- package/dist/models/vault-group-type.js.map +1 -0
- package/dist/models/waas-paginated-response-chain-metadata.d.ts +31 -0
- package/dist/models/waas-paginated-response-chain-metadata.d.ts.map +1 -0
- package/dist/models/waas-paginated-response-chain-metadata.js +12 -0
- package/dist/models/waas-paginated-response-chain-metadata.js.map +1 -0
- package/dist/models/waas-paginated-response-token-metadata.d.ts +31 -0
- package/dist/models/waas-paginated-response-token-metadata.d.ts.map +1 -0
- package/dist/models/waas-paginated-response-token-metadata.js +12 -0
- package/dist/models/waas-paginated-response-token-metadata.js.map +1 -0
- package/dist/models/waas-pagination.d.ts +35 -0
- package/dist/models/waas-pagination.d.ts.map +1 -0
- package/dist/models/waas-pagination.js +12 -0
- package/dist/models/waas-pagination.js.map +1 -0
- package/dist/models/wallet-address-create.d.ts +23 -0
- package/dist/models/wallet-address-create.d.ts.map +1 -0
- package/dist/models/wallet-address-create.js +12 -0
- package/dist/models/wallet-address-create.js.map +1 -0
- package/dist/models/wallet-address-read.d.ts +47 -0
- package/dist/models/wallet-address-read.d.ts.map +1 -0
- package/dist/models/wallet-address-read.js +12 -0
- package/dist/models/wallet-address-read.js.map +1 -0
- package/dist/models/wallet-claim-agent-info.d.ts +35 -0
- package/dist/models/wallet-claim-agent-info.d.ts.map +1 -0
- package/dist/models/wallet-claim-agent-info.js +12 -0
- package/dist/models/wallet-claim-agent-info.js.map +1 -0
- package/dist/models/wallet-claim-confirm.d.ts +23 -0
- package/dist/models/wallet-claim-confirm.d.ts.map +1 -0
- package/dist/models/wallet-claim-confirm.js +12 -0
- package/dist/models/wallet-claim-confirm.js.map +1 -0
- package/dist/models/wallet-claim-info-read.d.ts +38 -0
- package/dist/models/wallet-claim-info-read.d.ts.map +1 -0
- package/dist/models/wallet-claim-info-read.js +12 -0
- package/dist/models/wallet-claim-info-read.js.map +1 -0
- package/dist/models/wallet-claim-initiate-read.d.ts +78 -0
- package/dist/models/wallet-claim-initiate-read.d.ts.map +1 -0
- package/dist/models/wallet-claim-initiate-read.js +12 -0
- package/dist/models/wallet-claim-initiate-read.js.map +1 -0
- package/dist/models/wallet-claim-initiate.d.ts +23 -0
- package/dist/models/wallet-claim-initiate.d.ts.map +1 -0
- package/dist/models/wallet-claim-initiate.js +12 -0
- package/dist/models/wallet-claim-initiate.js.map +1 -0
- package/dist/models/wallet-claim-read.d.ts +72 -0
- package/dist/models/wallet-claim-read.d.ts.map +1 -0
- package/dist/models/wallet-claim-read.js +12 -0
- package/dist/models/wallet-claim-read.js.map +1 -0
- package/dist/models/wallet-claim-status.d.ts +20 -0
- package/dist/models/wallet-claim-status.d.ts.map +1 -0
- package/dist/models/wallet-claim-status.js +22 -0
- package/dist/models/wallet-claim-status.js.map +1 -0
- package/dist/models/wallet-claim-wallet-info.d.ts +43 -0
- package/dist/models/wallet-claim-wallet-info.d.ts.map +1 -0
- package/dist/models/wallet-claim-wallet-info.js +12 -0
- package/dist/models/wallet-claim-wallet-info.js.map +1 -0
- package/dist/models/wallet-create.d.ts +63 -0
- package/dist/models/wallet-create.d.ts.map +1 -0
- package/dist/models/wallet-create.js +12 -0
- package/dist/models/wallet-create.js.map +1 -0
- package/dist/models/wallet-detail-read.d.ts +88 -0
- package/dist/models/wallet-detail-read.d.ts.map +1 -0
- package/dist/models/wallet-detail-read.js +12 -0
- package/dist/models/wallet-detail-read.js.map +1 -0
- package/dist/models/wallet-read.d.ts +81 -0
- package/dist/models/wallet-read.d.ts.map +1 -0
- package/dist/models/wallet-read.js +12 -0
- package/dist/models/wallet-read.js.map +1 -0
- package/dist/models/wallet-status.d.ts +21 -0
- package/dist/models/wallet-status.d.ts.map +1 -0
- package/dist/models/wallet-status.js +23 -0
- package/dist/models/wallet-status.js.map +1 -0
- package/dist/models/wallet-type.d.ts +20 -0
- package/dist/models/wallet-type.d.ts.map +1 -0
- package/dist/models/wallet-type.js +22 -0
- package/dist/models/wallet-type.js.map +1 -0
- package/dist/models/wallet-update.d.ts +31 -0
- package/dist/models/wallet-update.d.ts.map +1 -0
- package/dist/models/wallet-update.js +12 -0
- package/dist/models/wallet-update.js.map +1 -0
- package/dist/models/webhook-delete-result.d.ts +23 -0
- package/dist/models/webhook-delete-result.d.ts.map +1 -0
- package/dist/models/webhook-delete-result.js +12 -0
- package/dist/models/webhook-delete-result.js.map +1 -0
- package/dist/models/webhook-dlqread.d.ts +67 -0
- package/dist/models/webhook-dlqread.d.ts.map +1 -0
- package/dist/models/webhook-dlqread.js +12 -0
- package/dist/models/webhook-dlqread.js.map +1 -0
- package/dist/models/webhook-process-result.d.ts +23 -0
- package/dist/models/webhook-process-result.d.ts.map +1 -0
- package/dist/models/webhook-process-result.js +12 -0
- package/dist/models/webhook-process-result.js.map +1 -0
- package/dist/models/webhook-registration-create.d.ts +35 -0
- package/dist/models/webhook-registration-create.d.ts.map +1 -0
- package/dist/models/webhook-registration-create.js +12 -0
- package/dist/models/webhook-registration-create.js.map +1 -0
- package/dist/models/webhook-registration-read.d.ts +53 -0
- package/dist/models/webhook-registration-read.d.ts.map +1 -0
- package/dist/models/webhook-registration-read.js +12 -0
- package/dist/models/webhook-registration-read.js.map +1 -0
- package/dist/models/wrapped-validation-error.d.ts +29 -0
- package/dist/models/wrapped-validation-error.d.ts.map +1 -0
- package/dist/models/wrapped-validation-error.js +12 -0
- package/dist/models/wrapped-validation-error.js.map +1 -0
- package/dist/models/x402-error-detail.d.ts +43 -0
- package/dist/models/x402-error-detail.d.ts.map +1 -0
- package/dist/models/x402-error-detail.js +12 -0
- package/dist/models/x402-error-detail.js.map +1 -0
- package/dist/models/x402-error-response.d.ts +30 -0
- package/dist/models/x402-error-response.d.ts.map +1 -0
- package/dist/models/x402-error-response.js +12 -0
- package/dist/models/x402-error-response.js.map +1 -0
- package/dist/models/x402-payment-create.d.ts +35 -0
- package/dist/models/x402-payment-create.d.ts.map +1 -0
- package/dist/models/x402-payment-create.js +12 -0
- package/dist/models/x402-payment-create.js.map +1 -0
- package/dist/models/x402-payment-result.d.ts +47 -0
- package/dist/models/x402-payment-result.d.ts.map +1 -0
- package/dist/models/x402-payment-result.js +12 -0
- package/dist/models/x402-payment-result.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Cobo Agentic Wallet Service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MetadataApi = void 0;
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
17
|
+
const configuration_1 = require("../configuration");
|
|
18
|
+
const common_1 = require("../common");
|
|
19
|
+
class MetadataApi {
|
|
20
|
+
constructor(configuration, basePath, axios) {
|
|
21
|
+
this.configuration = configuration;
|
|
22
|
+
this.basePath = basePath ?? configuration?.basePath ?? (0, configuration_1.getServerUrl)(configuration?.serverIndex ?? 0, configuration?.serverVariables);
|
|
23
|
+
this.axios = axios ?? axios_1.default;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get default request headers including auth
|
|
27
|
+
*/
|
|
28
|
+
getHeaders() {
|
|
29
|
+
const headers = {};
|
|
30
|
+
if (this.configuration?.apiKey) {
|
|
31
|
+
headers['X-API-Key'] = this.configuration.apiKey;
|
|
32
|
+
}
|
|
33
|
+
return headers;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get chain info
|
|
37
|
+
* This operation retrieves configuration details for a specific chain by its Cobo chain ID (for example, `ETH`, `BASE`, `BSC_BNB`). Returns the chain identifier, RPC URL, and other chain-level metadata stored locally.
|
|
38
|
+
* @param chain_id
|
|
39
|
+
* @param X_API_Key
|
|
40
|
+
* @param options Override http request option.
|
|
41
|
+
*/
|
|
42
|
+
async getChainInfoByChainId(chain_id, X_API_Key, options) {
|
|
43
|
+
let localVarPath = '/api/v1/metadata/chains/{chain_id}/info'
|
|
44
|
+
.replace(`{${"chain_id"}}`, encodeURIComponent(String(chain_id)));
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
46
|
+
const localVarRequestOptions = { method: 'GET', ...options };
|
|
47
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
48
|
+
const localVarQueryParameter = {};
|
|
49
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
50
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
51
|
+
}
|
|
52
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
53
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
54
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
55
|
+
if (Array.isArray(value)) {
|
|
56
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
acc.push([key, String(value)]);
|
|
60
|
+
}
|
|
61
|
+
return acc;
|
|
62
|
+
}, [])).toString();
|
|
63
|
+
if (queryString) {
|
|
64
|
+
localVarUrlObj.search = queryString;
|
|
65
|
+
}
|
|
66
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
67
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
68
|
+
return this.axios.request(localVarRequestOptions);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List supported assets
|
|
72
|
+
* This operation retrieves the list of tokens supported by the Cobo WaaS platform for a given wallet type. Results support cursor-based pagination using `before` and `after`.
|
|
73
|
+
* @param wallet_type The wallet type to retrieve tokens for. Use `MPC-UCW`.
|
|
74
|
+
* @param chain_ids A comma-separated list of Cobo chain IDs to filter by (for example, `SETH,BASE_ETH`). If omitted, tokens for all chains are returned.
|
|
75
|
+
* @param token_ids A comma-separated list of token IDs to filter by (for example, `SETH,SETH_USDC`). If omitted, all tokens are returned.
|
|
76
|
+
* @param limit The maximum number of items to return. Range: [1, 500].
|
|
77
|
+
* @param before A cursor for backward pagination. Pass the `before` value from a previous response to retrieve the preceding page.
|
|
78
|
+
* @param after A cursor for forward pagination. Pass the `after` value from a previous response to retrieve the next page.
|
|
79
|
+
* @param X_API_Key
|
|
80
|
+
* @param options Override http request option.
|
|
81
|
+
*/
|
|
82
|
+
async listAssets(wallet_type, chain_ids, token_ids, limit, before, after, X_API_Key, options) {
|
|
83
|
+
let localVarPath = '/api/v1/metadata/assets';
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
85
|
+
const localVarRequestOptions = { method: 'GET', ...options };
|
|
86
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
87
|
+
const localVarQueryParameter = {};
|
|
88
|
+
// verify required parameter 'wallet_type' is not null or undefined
|
|
89
|
+
(0, common_1.assertParamExists)('listAssets', 'wallet_type', wallet_type);
|
|
90
|
+
if (wallet_type !== undefined) {
|
|
91
|
+
localVarQueryParameter['wallet_type'] = wallet_type;
|
|
92
|
+
}
|
|
93
|
+
if (chain_ids !== undefined) {
|
|
94
|
+
localVarQueryParameter['chain_ids'] = chain_ids;
|
|
95
|
+
}
|
|
96
|
+
if (token_ids !== undefined) {
|
|
97
|
+
localVarQueryParameter['token_ids'] = token_ids;
|
|
98
|
+
}
|
|
99
|
+
if (limit !== undefined) {
|
|
100
|
+
localVarQueryParameter['limit'] = limit;
|
|
101
|
+
}
|
|
102
|
+
if (before !== undefined) {
|
|
103
|
+
localVarQueryParameter['before'] = before;
|
|
104
|
+
}
|
|
105
|
+
if (after !== undefined) {
|
|
106
|
+
localVarQueryParameter['after'] = after;
|
|
107
|
+
}
|
|
108
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
109
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
110
|
+
}
|
|
111
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
112
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
113
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
114
|
+
if (Array.isArray(value)) {
|
|
115
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
acc.push([key, String(value)]);
|
|
119
|
+
}
|
|
120
|
+
return acc;
|
|
121
|
+
}, [])).toString();
|
|
122
|
+
if (queryString) {
|
|
123
|
+
localVarUrlObj.search = queryString;
|
|
124
|
+
}
|
|
125
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
126
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
127
|
+
return this.axios.request(localVarRequestOptions);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* List supported chains
|
|
131
|
+
* This operation retrieves the list of chains supported by the Cobo WaaS platform for a given wallet type. Results support cursor-based pagination using `before` and `after`.
|
|
132
|
+
* @param wallet_type The wallet type to retrieve chains for. Use `MPC-UCW`.
|
|
133
|
+
* @param chain_ids A comma-separated list of Cobo chain IDs to filter by (for example, `SETH,BASE_ETH`). If omitted, all chains are returned.
|
|
134
|
+
* @param limit The maximum number of items to return. Range: [1, 500].
|
|
135
|
+
* @param before A cursor for backward pagination. Pass the `before` value from a previous response to retrieve the preceding page.
|
|
136
|
+
* @param after A cursor for forward pagination. Pass the `after` value from a previous response to retrieve the next page.
|
|
137
|
+
* @param X_API_Key
|
|
138
|
+
* @param options Override http request option.
|
|
139
|
+
*/
|
|
140
|
+
async listChains(wallet_type, chain_ids, limit, before, after, X_API_Key, options) {
|
|
141
|
+
let localVarPath = '/api/v1/metadata/chains';
|
|
142
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
143
|
+
const localVarRequestOptions = { method: 'GET', ...options };
|
|
144
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
145
|
+
const localVarQueryParameter = {};
|
|
146
|
+
// verify required parameter 'wallet_type' is not null or undefined
|
|
147
|
+
(0, common_1.assertParamExists)('listChains', 'wallet_type', wallet_type);
|
|
148
|
+
if (wallet_type !== undefined) {
|
|
149
|
+
localVarQueryParameter['wallet_type'] = wallet_type;
|
|
150
|
+
}
|
|
151
|
+
if (chain_ids !== undefined) {
|
|
152
|
+
localVarQueryParameter['chain_ids'] = chain_ids;
|
|
153
|
+
}
|
|
154
|
+
if (limit !== undefined) {
|
|
155
|
+
localVarQueryParameter['limit'] = limit;
|
|
156
|
+
}
|
|
157
|
+
if (before !== undefined) {
|
|
158
|
+
localVarQueryParameter['before'] = before;
|
|
159
|
+
}
|
|
160
|
+
if (after !== undefined) {
|
|
161
|
+
localVarQueryParameter['after'] = after;
|
|
162
|
+
}
|
|
163
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
164
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
165
|
+
}
|
|
166
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
167
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
168
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
169
|
+
if (Array.isArray(value)) {
|
|
170
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
acc.push([key, String(value)]);
|
|
174
|
+
}
|
|
175
|
+
return acc;
|
|
176
|
+
}, [])).toString();
|
|
177
|
+
if (queryString) {
|
|
178
|
+
localVarUrlObj.search = queryString;
|
|
179
|
+
}
|
|
180
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
181
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
182
|
+
return this.axios.request(localVarRequestOptions);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.MetadataApi = MetadataApi;
|
|
186
|
+
//# sourceMappingURL=metadata-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata-api.js","sourceRoot":"","sources":["../../api/metadata-api.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;AAIH,kDAAgC;AAChC,oDAA+D;AAC/D,sCAA8C;AAY9C,MAAa,WAAW;IAKpB,YAAY,aAA6B,EAAE,QAAiB,EAAE,KAAqB;QAC/E,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,aAAa,EAAE,QAAQ,IAAI,IAAA,4BAAY,EAAC,aAAa,EAAE,WAAW,IAAI,CAAC,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;QACrI,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,eAAW,CAAC;IACtC,CAAC;IAED;;OAEG;IACK,UAAU;QACd,MAAM,OAAO,GAA2B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;YAC7B,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACrD,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,qBAAqB,CAAC,QAAgB,EAAE,SAAkB,EAAE,OAA4B;QACjG,IAAI,YAAY,G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1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cobo Agentic Wallet Service
|
|
3
|
+
*
|
|
4
|
+
* The version of the OpenAPI document: 0.1.0
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
11
|
+
import { Configuration } from '../configuration';
|
|
12
|
+
import type { PactStatus } from '../models';
|
|
13
|
+
import type { PactSubmitRequest } from '../models';
|
|
14
|
+
import type { StandardResponsePactEventListResponse } from '../models';
|
|
15
|
+
import type { StandardResponsePactListResponse } from '../models';
|
|
16
|
+
import type { StandardResponsePactRead } from '../models';
|
|
17
|
+
import type { StandardResponsePactSubmitResponse } from '../models';
|
|
18
|
+
export declare class PactsApi {
|
|
19
|
+
private basePath;
|
|
20
|
+
private axios;
|
|
21
|
+
private configuration?;
|
|
22
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
23
|
+
/**
|
|
24
|
+
* Get default request headers including auth
|
|
25
|
+
*/
|
|
26
|
+
private getHeaders;
|
|
27
|
+
/**
|
|
28
|
+
* Get pact detail
|
|
29
|
+
* Retrieve pact details. Triggers lazy activation if the linked approval has been resolved. The api_key field is only visible to the operator that submitted the pact.
|
|
30
|
+
* @param pact_id
|
|
31
|
+
* @param X_API_Key
|
|
32
|
+
* @param options Override http request option.
|
|
33
|
+
*/
|
|
34
|
+
getPact(pact_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePactRead>>;
|
|
35
|
+
/**
|
|
36
|
+
* Get pact event history
|
|
37
|
+
* Retrieve the lifecycle event history for a pact.
|
|
38
|
+
* @param pact_id
|
|
39
|
+
* @param X_API_Key
|
|
40
|
+
* @param options Override http request option.
|
|
41
|
+
*/
|
|
42
|
+
listPactEvents(pact_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePactEventListResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* List pacts
|
|
45
|
+
* List pacts visible to the authenticated principal. Agents see pacts they submitted; humans see pacts on wallets they own. Use query parameters to filter by status or wallet.
|
|
46
|
+
* @param status Filter by pact status.
|
|
47
|
+
* @param wallet_id Filter by wallet ID.
|
|
48
|
+
* @param offset Pagination offset.
|
|
49
|
+
* @param limit Max results per page.
|
|
50
|
+
* @param X_API_Key
|
|
51
|
+
* @param options Override http request option.
|
|
52
|
+
*/
|
|
53
|
+
listPacts(status?: PactStatus, wallet_id?: string, offset?: number, limit?: number, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePactListResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Revoke an active pact
|
|
56
|
+
* Revoke an active pact. Only the wallet owner can revoke. This revokes the delegation and invalidates the pact-scoped API key.
|
|
57
|
+
* @param pact_id
|
|
58
|
+
* @param X_API_Key
|
|
59
|
+
* @param options Override http request option.
|
|
60
|
+
*/
|
|
61
|
+
revokePact(pact_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePactRead>>;
|
|
62
|
+
/**
|
|
63
|
+
* Submit pact for approval
|
|
64
|
+
* Submit a pact specification for human approval. The operator\'s identity is resolved from the authenticated API key. The pact enters PENDING_APPROVAL status and a notification is sent to the CAW App.
|
|
65
|
+
* @param PactSubmitRequest
|
|
66
|
+
* @param X_API_Key
|
|
67
|
+
* @param options Override http request option.
|
|
68
|
+
*/
|
|
69
|
+
submitPact(PactSubmitRequest: PactSubmitRequest, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePactSubmitResponse>>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=pacts-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pacts-api.d.ts","sourceRo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CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAkD5M;;;;;;OAMG;IACU,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAmC5I;;;;;;OAMG;IACU,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,kCAAkC,CAAC,CAAC;CAqC9K"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Cobo Agentic Wallet Service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PactsApi = void 0;
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
17
|
+
const configuration_1 = require("../configuration");
|
|
18
|
+
const common_1 = require("../common");
|
|
19
|
+
class PactsApi {
|
|
20
|
+
constructor(configuration, basePath, axios) {
|
|
21
|
+
this.configuration = configuration;
|
|
22
|
+
this.basePath = basePath ?? configuration?.basePath ?? (0, configuration_1.getServerUrl)(configuration?.serverIndex ?? 0, configuration?.serverVariables);
|
|
23
|
+
this.axios = axios ?? axios_1.default;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get default request headers including auth
|
|
27
|
+
*/
|
|
28
|
+
getHeaders() {
|
|
29
|
+
const headers = {};
|
|
30
|
+
if (this.configuration?.apiKey) {
|
|
31
|
+
headers['X-API-Key'] = this.configuration.apiKey;
|
|
32
|
+
}
|
|
33
|
+
return headers;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get pact detail
|
|
37
|
+
* Retrieve pact details. Triggers lazy activation if the linked approval has been resolved. The api_key field is only visible to the operator that submitted the pact.
|
|
38
|
+
* @param pact_id
|
|
39
|
+
* @param X_API_Key
|
|
40
|
+
* @param options Override http request option.
|
|
41
|
+
*/
|
|
42
|
+
async getPact(pact_id, X_API_Key, options) {
|
|
43
|
+
let localVarPath = '/api/v1/pacts/{pact_id}'
|
|
44
|
+
.replace(`{${"pact_id"}}`, encodeURIComponent(String(pact_id)));
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
46
|
+
const localVarRequestOptions = { method: 'GET', ...options };
|
|
47
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
48
|
+
const localVarQueryParameter = {};
|
|
49
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
50
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
51
|
+
}
|
|
52
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
53
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
54
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
55
|
+
if (Array.isArray(value)) {
|
|
56
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
acc.push([key, String(value)]);
|
|
60
|
+
}
|
|
61
|
+
return acc;
|
|
62
|
+
}, [])).toString();
|
|
63
|
+
if (queryString) {
|
|
64
|
+
localVarUrlObj.search = queryString;
|
|
65
|
+
}
|
|
66
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
67
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
68
|
+
return this.axios.request(localVarRequestOptions);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get pact event history
|
|
72
|
+
* Retrieve the lifecycle event history for a pact.
|
|
73
|
+
* @param pact_id
|
|
74
|
+
* @param X_API_Key
|
|
75
|
+
* @param options Override http request option.
|
|
76
|
+
*/
|
|
77
|
+
async listPactEvents(pact_id, X_API_Key, options) {
|
|
78
|
+
let localVarPath = '/api/v1/pacts/{pact_id}/events'
|
|
79
|
+
.replace(`{${"pact_id"}}`, encodeURIComponent(String(pact_id)));
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
81
|
+
const localVarRequestOptions = { method: 'GET', ...options };
|
|
82
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
83
|
+
const localVarQueryParameter = {};
|
|
84
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
85
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
86
|
+
}
|
|
87
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
88
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
89
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
90
|
+
if (Array.isArray(value)) {
|
|
91
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
acc.push([key, String(value)]);
|
|
95
|
+
}
|
|
96
|
+
return acc;
|
|
97
|
+
}, [])).toString();
|
|
98
|
+
if (queryString) {
|
|
99
|
+
localVarUrlObj.search = queryString;
|
|
100
|
+
}
|
|
101
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
102
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
103
|
+
return this.axios.request(localVarRequestOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* List pacts
|
|
107
|
+
* List pacts visible to the authenticated principal. Agents see pacts they submitted; humans see pacts on wallets they own. Use query parameters to filter by status or wallet.
|
|
108
|
+
* @param status Filter by pact status.
|
|
109
|
+
* @param wallet_id Filter by wallet ID.
|
|
110
|
+
* @param offset Pagination offset.
|
|
111
|
+
* @param limit Max results per page.
|
|
112
|
+
* @param X_API_Key
|
|
113
|
+
* @param options Override http request option.
|
|
114
|
+
*/
|
|
115
|
+
async listPacts(status, wallet_id, offset, limit, X_API_Key, options) {
|
|
116
|
+
let localVarPath = '/api/v1/pacts';
|
|
117
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
118
|
+
const localVarRequestOptions = { method: 'GET', ...options };
|
|
119
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
120
|
+
const localVarQueryParameter = {};
|
|
121
|
+
if (status !== undefined) {
|
|
122
|
+
localVarQueryParameter['status'] = status;
|
|
123
|
+
}
|
|
124
|
+
if (wallet_id !== undefined) {
|
|
125
|
+
localVarQueryParameter['wallet_id'] = wallet_id;
|
|
126
|
+
}
|
|
127
|
+
if (offset !== undefined) {
|
|
128
|
+
localVarQueryParameter['offset'] = offset;
|
|
129
|
+
}
|
|
130
|
+
if (limit !== undefined) {
|
|
131
|
+
localVarQueryParameter['limit'] = limit;
|
|
132
|
+
}
|
|
133
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
134
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
135
|
+
}
|
|
136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
137
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
138
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
139
|
+
if (Array.isArray(value)) {
|
|
140
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
acc.push([key, String(value)]);
|
|
144
|
+
}
|
|
145
|
+
return acc;
|
|
146
|
+
}, [])).toString();
|
|
147
|
+
if (queryString) {
|
|
148
|
+
localVarUrlObj.search = queryString;
|
|
149
|
+
}
|
|
150
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
151
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
152
|
+
return this.axios.request(localVarRequestOptions);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Revoke an active pact
|
|
156
|
+
* Revoke an active pact. Only the wallet owner can revoke. This revokes the delegation and invalidates the pact-scoped API key.
|
|
157
|
+
* @param pact_id
|
|
158
|
+
* @param X_API_Key
|
|
159
|
+
* @param options Override http request option.
|
|
160
|
+
*/
|
|
161
|
+
async revokePact(pact_id, X_API_Key, options) {
|
|
162
|
+
let localVarPath = '/api/v1/pacts/{pact_id}/revoke'
|
|
163
|
+
.replace(`{${"pact_id"}}`, encodeURIComponent(String(pact_id)));
|
|
164
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
165
|
+
const localVarRequestOptions = { method: 'POST', ...options };
|
|
166
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
167
|
+
const localVarQueryParameter = {};
|
|
168
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
169
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
170
|
+
}
|
|
171
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
172
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
173
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
174
|
+
if (Array.isArray(value)) {
|
|
175
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
acc.push([key, String(value)]);
|
|
179
|
+
}
|
|
180
|
+
return acc;
|
|
181
|
+
}, [])).toString();
|
|
182
|
+
if (queryString) {
|
|
183
|
+
localVarUrlObj.search = queryString;
|
|
184
|
+
}
|
|
185
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
186
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
187
|
+
return this.axios.request(localVarRequestOptions);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Submit pact for approval
|
|
191
|
+
* Submit a pact specification for human approval. The operator\'s identity is resolved from the authenticated API key. The pact enters PENDING_APPROVAL status and a notification is sent to the CAW App.
|
|
192
|
+
* @param PactSubmitRequest
|
|
193
|
+
* @param X_API_Key
|
|
194
|
+
* @param options Override http request option.
|
|
195
|
+
*/
|
|
196
|
+
async submitPact(PactSubmitRequest, X_API_Key, options) {
|
|
197
|
+
let localVarPath = '/api/v1/pacts/submit';
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
199
|
+
const localVarRequestOptions = { method: 'POST', ...options };
|
|
200
|
+
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
201
|
+
const localVarQueryParameter = {};
|
|
202
|
+
// verify required parameter 'PactSubmitRequest' is not null or undefined
|
|
203
|
+
(0, common_1.assertParamExists)('submitPact', 'PactSubmitRequest', PactSubmitRequest);
|
|
204
|
+
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
205
|
+
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
206
|
+
}
|
|
207
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
208
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
209
|
+
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
210
|
+
if (Array.isArray(value)) {
|
|
211
|
+
value.forEach(v => acc.push([key, String(v)]));
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
acc.push([key, String(value)]);
|
|
215
|
+
}
|
|
216
|
+
return acc;
|
|
217
|
+
}, [])).toString();
|
|
218
|
+
if (queryString) {
|
|
219
|
+
localVarUrlObj.search = queryString;
|
|
220
|
+
}
|
|
221
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
222
|
+
localVarRequestOptions.data = PactSubmitRequest;
|
|
223
|
+
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
224
|
+
return this.axios.request(localVarRequestOptions);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.PactsApi = PactsApi;
|
|
228
|
+
//# sourceMappingURL=pacts-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pacts-api.js","sourceRoot":"","sources":["../../api/pacts-api.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;AAIH,kDAAgC;AAChC,oDAA+D;AAC/D,sCAA8C;AAgB9C,MAAa,QAAQ;IAKjB,YAAY,aAA6B,EAAE,QAAiB,EAAE,KAAqB;QAC/E,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,aAAa,EAAE,QAAQ,IAAI,IAAA,4BAAY,EAAC,aAAa,EAAE,WAAW,IAAI,CAAC,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;QACrI,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,eAAW,CAAC;IACtC,CAAC;IAED;;OAEG;IACK,UAAU;QACd,MAAM,OAAO,GAA2B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;YAC7B,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACrD,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,SAAkB,EAAE,OAA4B;QAClF,IAAI,YAAY,GAAG,yBAAyB;aACvC,OAAO,CAAC,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obo Agentic Wallet Service
|
|
3
|
+
*
|
|
4
|
+
* The version of the OpenAPI document: 0.1.0
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
11
|
+
import { Configuration } from '../configuration';
|
|
12
|
+
import type { PendingOperationStatus } from '../models';
|
|
13
|
+
import type { PolicyCreate } from '../models';
|
|
14
|
+
import type { PolicyDryRunRequest } from '../models';
|
|
15
|
+
import type { PolicyScope } from '../models';
|
|
16
|
+
import type { PolicyType } from '../models';
|
|
17
|
+
import type { PolicyUpdate } from '../models';
|
|
18
|
+
import type { RejectPendingOperationRequest } from '../models';
|
|
19
|
+
import type { StandardResponseDictStrBool } from '../models';
|
|
20
|
+
import type { StandardResponseListPolicyRead } from '../models';
|
|
21
|
+
import type { StandardResponsePendingOperationActionResult } from '../models';
|
|
22
|
+
import type { StandardResponsePendingOperationListResponse } from '../models';
|
|
23
|
+
import type { StandardResponsePendingOperationRead } from '../models';
|
|
24
|
+
import type { StandardResponsePolicyDryRunResult } from '../models';
|
|
25
|
+
import type { StandardResponsePolicyRead } from '../models';
|
|
26
|
+
export declare class PoliciesApi {
|
|
27
|
+
private basePath;
|
|
28
|
+
private axios;
|
|
29
|
+
private configuration?;
|
|
30
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
31
|
+
/**
|
|
32
|
+
* Get default request headers including auth
|
|
33
|
+
*/
|
|
34
|
+
private getHeaders;
|
|
35
|
+
/**
|
|
36
|
+
* Approve pending operation
|
|
37
|
+
* This operation approves a pending transaction and triggers its execution. The pending operation ID can be retrieved by calling the List pending operations operation. Only the wallet owner can approve pending operations.
|
|
38
|
+
* @param pending_operation_id
|
|
39
|
+
* @param X_API_Key
|
|
40
|
+
* @param options Override http request option.
|
|
41
|
+
*/
|
|
42
|
+
approvePendingOperation(pending_operation_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePendingOperationActionResult>>;
|
|
43
|
+
/**
|
|
44
|
+
* Create policy
|
|
45
|
+
* This operation creates a new policy for the authenticated principal. Set `scope` to control where the policy applies: - `global`: applies to all wallets owned by the principal. No `wallet_id` or `delegation_id` required. - `wallet`: applies to a specific wallet. `wallet_id` is required. - `delegation`: applies to a specific delegation. `delegation_id` is required. Set `policy_type` to control what the policy evaluates: - `transfer`: governs token transfer operations. - `contract_call`: governs smart contract call operations. The `rules` field contains the policy rule configuration as a JSON object. Its structure depends on `policy_type`. Higher `priority` values take precedence when multiple policies match. Defaults to `0`. Set `is_active=false` to create the policy in a disabled state without affecting policy evaluation. Defaults to `true`.
|
|
46
|
+
* @param PolicyCreate
|
|
47
|
+
* @param X_API_Key
|
|
48
|
+
* @param options Override http request option.
|
|
49
|
+
*/
|
|
50
|
+
createPolicy(PolicyCreate: PolicyCreate, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePolicyRead>>;
|
|
51
|
+
/**
|
|
52
|
+
* Deactivate policy
|
|
53
|
+
* This operation deactivates a specific policy, excluding it from policy evaluation without deleting it. The policy ID can be retrieved by calling the List all policies operation. You can reactivate the policy by calling the Update policy operation with `is_active=true`.
|
|
54
|
+
* @param policy_id
|
|
55
|
+
* @param X_API_Key
|
|
56
|
+
* @param options Override http request option.
|
|
57
|
+
*/
|
|
58
|
+
deactivatePolicy(policy_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseDictStrBool>>;
|
|
59
|
+
/**
|
|
60
|
+
* Dry-run policy
|
|
61
|
+
* This operation evaluates policies against a hypothetical operation without submitting a transaction. Use it to preview the policy decision before performing a transfer or contract call. You need to provide `wallet_id` and `operation_type` (`transfer` or `contract_call`). For transfers, also provide `dst_addr`, `token_id`, `chain_id`, and `amount`. For contract calls: - EVM: provide `contract_addr`, `chain_id`, and optionally `calldata`. - Solana: provide `chain_id` and `instructions`. Optionally supply `delegation_id` to evaluate policies within a specific delegation context, or `principal_id` to override the principal used for evaluation.
|
|
62
|
+
* @param PolicyDryRunRequest
|
|
63
|
+
* @param X_API_Key
|
|
64
|
+
* @param options Override http request option.
|
|
65
|
+
*/
|
|
66
|
+
dryRunPolicy(PolicyDryRunRequest: PolicyDryRunRequest, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePolicyDryRunResult>>;
|
|
67
|
+
/**
|
|
68
|
+
* Get pending operation
|
|
69
|
+
* This operation retrieves a specific pending approval operation by its ID. The pending operation ID is returned in the `pending_operation_id` field when a transfer or contract call returns `status=pending_approval`. Both human owners and the agent that initiated the operation can read it.
|
|
70
|
+
* @param pending_operation_id
|
|
71
|
+
* @param X_API_Key
|
|
72
|
+
* @param options Override http request option.
|
|
73
|
+
*/
|
|
74
|
+
getPendingOperation(pending_operation_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePendingOperationRead>>;
|
|
75
|
+
/**
|
|
76
|
+
* Get policy
|
|
77
|
+
* This operation retrieves a specific policy by its ID. The policy ID can be retrieved by calling the List all policies operation.
|
|
78
|
+
* @param policy_id
|
|
79
|
+
* @param X_API_Key
|
|
80
|
+
* @param options Override http request option.
|
|
81
|
+
*/
|
|
82
|
+
getPolicy(policy_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePolicyRead>>;
|
|
83
|
+
/**
|
|
84
|
+
* List pending operations
|
|
85
|
+
* This operation retrieves pending approval operations for the authenticated principal. Human owners see all operations on their wallets. Agents see operations they initiated.
|
|
86
|
+
* @param status Status to list. If not specified, includes all operations.
|
|
87
|
+
* @param offset The number of items to skip before returning results. Range: [0, 100000].
|
|
88
|
+
* @param limit The maximum number of items to return. Range: [1, 200].
|
|
89
|
+
* @param X_API_Key
|
|
90
|
+
* @param options Override http request option.
|
|
91
|
+
*/
|
|
92
|
+
listPendingOperations(status?: PendingOperationStatus, offset?: number, limit?: number, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePendingOperationListResponse>>;
|
|
93
|
+
/**
|
|
94
|
+
* List all policies
|
|
95
|
+
* This operation retrieves all policies for the authenticated principal filtered by scope. `wallet_id` is required when `scope` is `wallet` or `delegation`. When `scope` is omitted, policies from all accessible scopes are returned; `wallet_id` is optional in that case and will include wallet/delegation policies if provided. You can further filter by policy type and use `offset` and `limit` to paginate.
|
|
96
|
+
* @param scope The scope of policies to retrieve. Possible values: `global`, `wallet`, `delegation`. If omitted, all accessible scopes are returned.
|
|
97
|
+
* @param wallet_id The wallet ID to filter policies by. Required when `scope` is `wallet` or `delegation`. The wallet ID can be retrieved by calling the List all wallets operation.
|
|
98
|
+
* @param delegation_id The delegation ID to filter policies by. Only applicable when `scope` is `delegation`. The delegation ID can be retrieved by calling the List delegations operation.
|
|
99
|
+
* @param policy_type Filter policies by type. Possible values: `transfer`, `contract_call`. If omitted, all types are returned.
|
|
100
|
+
* @param include_inactive Whether to include inactive policies in the results. `true`: include inactive policies. `false`: exclude inactive policies.
|
|
101
|
+
* @param offset The number of items to skip before returning results. Range: [0, 100000].
|
|
102
|
+
* @param limit The maximum number of items to return. Range: [1, 200].
|
|
103
|
+
* @param X_API_Key
|
|
104
|
+
* @param options Override http request option.
|
|
105
|
+
*/
|
|
106
|
+
listPolicies(scope?: PolicyScope, wallet_id?: string, delegation_id?: string, policy_type?: PolicyType, include_inactive?: boolean, offset?: number, limit?: number, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseListPolicyRead>>;
|
|
107
|
+
/**
|
|
108
|
+
* Reject pending operation
|
|
109
|
+
* This operation rejects a pending transaction, preventing it from being executed. The pending operation ID can be retrieved by calling the List pending operations operation. Only the wallet owner can reject pending operations. Optionally supply `reason` (max 500 characters) to record why the operation was rejected.
|
|
110
|
+
* @param pending_operation_id
|
|
111
|
+
* @param RejectPendingOperationRequest
|
|
112
|
+
* @param X_API_Key
|
|
113
|
+
* @param options Override http request option.
|
|
114
|
+
*/
|
|
115
|
+
rejectPendingOperation(pending_operation_id: string, RejectPendingOperationRequest: RejectPendingOperationRequest, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePendingOperationActionResult>>;
|
|
116
|
+
/**
|
|
117
|
+
* Update policy
|
|
118
|
+
* This operation updates a specific policy. The policy ID can be retrieved by calling the List all policies operation. All fields are optional; only provided fields are updated. You can update `name`, `rules`, `priority`, and `is_active`.
|
|
119
|
+
* @param policy_id
|
|
120
|
+
* @param PolicyUpdate
|
|
121
|
+
* @param X_API_Key
|
|
122
|
+
* @param options Override http request option.
|
|
123
|
+
*/
|
|
124
|
+
updatePolicy(policy_id: string, PolicyUpdate: PolicyUpdate, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponsePolicyRead>>;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=policies-api.d.ts.map
|