@cobo/agentic-wallet 0.1.5 → 0.1.7
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 +183 -114
- package/dist/api/audit-api.d.ts +1 -1
- package/dist/api/audit-api.js +1 -1
- package/dist/api/balance-api.d.ts +1 -1
- package/dist/api/balance-api.js +1 -1
- package/dist/api/coin-price-api.d.ts +1 -1
- package/dist/api/coin-price-api.js +1 -1
- package/dist/api/faucet-api.d.ts +1 -1
- package/dist/api/faucet-api.js +1 -1
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/identity-api.d.ts +1 -1
- package/dist/api/identity-api.js +1 -1
- package/dist/api/meta-api.d.ts +1 -1
- package/dist/api/meta-api.js +1 -1
- package/dist/api/metadata-api.d.ts +1 -1
- package/dist/api/metadata-api.js +1 -1
- package/dist/api/pacts-api.d.ts +1 -1
- package/dist/api/pacts-api.js +1 -1
- package/dist/api/pending-operations-api.d.ts +1 -1
- package/dist/api/pending-operations-api.js +1 -1
- package/dist/api/recipes-api.d.ts +1 -119
- package/dist/api/recipes-api.d.ts.map +1 -1
- package/dist/api/recipes-api.js +1 -478
- package/dist/api/recipes-api.js.map +1 -1
- package/dist/api/suggestions-api.d.ts +1 -1
- package/dist/api/suggestions-api.js +1 -1
- package/dist/api/telemetry-api.d.ts +1 -1
- package/dist/api/telemetry-api.js +1 -1
- package/dist/api/transaction-records-api.d.ts +1 -1
- package/dist/api/transaction-records-api.js +1 -1
- package/dist/api/transactions-api.d.ts +6 -4
- package/dist/api/transactions-api.d.ts.map +1 -1
- package/dist/api/transactions-api.js +12 -4
- package/dist/api/transactions-api.js.map +1 -1
- package/dist/api/wallets-api.d.ts +9 -8
- package/dist/api/wallets-api.d.ts.map +1 -1
- package/dist/api/wallets-api.js +12 -8
- package/dist/api/wallets-api.js.map +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/agent-status-response.d.ts +2 -2
- package/dist/models/agent-status-response.js +1 -1
- package/dist/models/api-key-create-result-public.d.ts +1 -1
- package/dist/models/api-key-create-result-public.js +1 -1
- package/dist/models/api-key-create.d.ts +1 -1
- package/dist/models/api-key-create.js +1 -1
- package/dist/models/api-key-public-read.d.ts +7 -7
- package/dist/models/api-key-public-read.d.ts.map +1 -1
- package/dist/models/api-key-public-read.js +1 -1
- package/dist/models/audit-action.d.ts +1 -1
- package/dist/models/audit-action.js +1 -1
- package/dist/models/audit-log-page.d.ts +1 -1
- package/dist/models/audit-log-page.js +1 -1
- package/dist/models/audit-log-read.d.ts +11 -11
- package/dist/models/audit-log-read.d.ts.map +1 -1
- package/dist/models/audit-log-read.js +1 -1
- package/dist/models/audit-result.d.ts +1 -1
- package/dist/models/audit-result.js +1 -1
- package/dist/models/balance-read.d.ts +1 -1
- package/dist/models/balance-read.js +1 -1
- package/dist/models/chain-info.d.ts +1 -1
- package/dist/models/chain-info.js +1 -1
- package/dist/models/chain-metadata.d.ts +1 -1
- package/dist/models/chain-metadata.js +1 -1
- package/dist/models/completion-condition-type.d.ts +1 -1
- package/dist/models/completion-condition-type.js +1 -1
- package/dist/models/completion-condition.d.ts +1 -1
- package/dist/models/completion-condition.js +1 -1
- package/dist/models/contract-call-create.d.ts +1 -1
- package/dist/models/contract-call-create.js +1 -1
- package/dist/models/contract-call-submit-result.d.ts +1 -1
- package/dist/models/contract-call-submit-result.js +1 -1
- package/dist/models/delegation-spend-summary.d.ts +1 -1
- package/dist/models/delegation-spend-summary.js +1 -1
- package/dist/models/delegation-usage-limit-summary.d.ts +1 -1
- package/dist/models/delegation-usage-limit-summary.js +1 -1
- package/dist/models/drop-transaction-request.d.ts +1 -1
- package/dist/models/drop-transaction-request.js +1 -1
- package/dist/models/eip1559-fee-request.d.ts +3 -3
- package/dist/models/eip1559-fee-request.d.ts.map +1 -1
- package/dist/models/eip1559-fee-request.js +1 -1
- package/dist/models/estimate-contract-call-fee-request.d.ts +1 -1
- package/dist/models/estimate-contract-call-fee-request.js +1 -1
- package/dist/models/estimate-transfer-fee-read.d.ts +1 -1
- package/dist/models/estimate-transfer-fee-read.js +1 -1
- package/dist/models/estimate-transfer-fee-request.d.ts +1 -1
- package/dist/models/estimate-transfer-fee-request.js +1 -1
- package/dist/models/eth-call-request.d.ts +1 -1
- package/dist/models/eth-call-request.js +1 -1
- package/dist/models/eth-call-result.d.ts +1 -1
- package/dist/models/eth-call-result.js +1 -1
- package/dist/models/evmlegacy-fee-request.d.ts +1 -1
- package/dist/models/evmlegacy-fee-request.js +1 -1
- package/dist/models/external-transaction-operation-type.d.ts +1 -1
- package/dist/models/external-transaction-operation-type.js +1 -1
- package/dist/models/external-transaction-read.d.ts +1 -1
- package/dist/models/external-transaction-read.js +1 -1
- package/dist/models/external-transaction-stage.d.ts +1 -1
- package/dist/models/external-transaction-stage.js +1 -1
- package/dist/models/faucet-deposit-request.d.ts +1 -1
- package/dist/models/faucet-deposit-request.js +1 -1
- package/dist/models/faucet-deposit-result.d.ts +1 -1
- package/dist/models/faucet-deposit-result.js +1 -1
- package/dist/models/faucet-token-info.d.ts +1 -1
- package/dist/models/faucet-token-info.js +1 -1
- package/dist/models/faucet-token-item.d.ts +1 -1
- package/dist/models/faucet-token-item.js +1 -1
- package/dist/models/fee-estimate-read.d.ts +1 -1
- package/dist/models/fee-estimate-read.js +1 -1
- package/dist/models/fee-request.d.ts +1 -1
- package/dist/models/fee-request.js +1 -1
- package/dist/models/index.d.ts +3 -30
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +3 -30
- package/dist/models/index.js.map +1 -1
- package/dist/models/inline-policy-create.d.ts +1 -1
- package/dist/models/inline-policy-create.js +1 -1
- package/dist/models/key-share-holder-group-status.d.ts +1 -1
- package/dist/models/key-share-holder-group-status.js +1 -1
- package/dist/models/key-share-holder-group-type.d.ts +1 -1
- package/dist/models/key-share-holder-group-type.js +1 -1
- package/dist/models/key-share-holder-type.d.ts +1 -1
- package/dist/models/key-share-holder-type.js +1 -1
- package/dist/models/knowledge-search-type.d.ts +1 -1
- package/dist/models/knowledge-search-type.js +1 -1
- package/dist/models/langfuse-record.d.ts +1 -1
- package/dist/models/langfuse-record.js +1 -1
- package/dist/models/message-sign-create.d.ts +1 -1
- package/dist/models/message-sign-create.js +1 -1
- package/dist/models/message-sign-dest-type.d.ts +1 -1
- package/dist/models/message-sign-dest-type.js +1 -1
- package/dist/models/message-sign-result.d.ts +1 -1
- package/dist/models/message-sign-result.js +1 -1
- package/dist/models/model-error.d.ts +1 -1
- package/dist/models/model-error.js +1 -1
- package/dist/models/mpp-challenge.d.ts +1 -1
- package/dist/models/mpp-challenge.js +1 -1
- package/dist/models/mpp-session-action.d.ts +1 -1
- package/dist/models/mpp-session-action.js +1 -1
- package/dist/models/mpp-session-info.d.ts +1 -1
- package/dist/models/mpp-session-info.js +1 -1
- package/dist/models/mpp-session-params.d.ts +1 -1
- package/dist/models/mpp-session-params.js +1 -1
- package/dist/models/node-status-read.d.ts +1 -1
- package/dist/models/node-status-read.js +1 -1
- package/dist/models/pact-event-list-response.d.ts +1 -1
- package/dist/models/pact-event-list-response.js +1 -1
- package/dist/models/pact-event-read.d.ts +1 -1
- package/dist/models/pact-event-read.js +1 -1
- package/dist/models/pact-event-type.d.ts +1 -1
- package/dist/models/pact-event-type.js +1 -1
- package/dist/models/pact-list-response.d.ts +1 -1
- package/dist/models/pact-list-response.js +1 -1
- package/dist/models/pact-public-read.d.ts +14 -1
- package/dist/models/pact-public-read.d.ts.map +1 -1
- package/dist/models/pact-public-read.js +1 -1
- package/dist/models/pact-remaining.d.ts +35 -0
- package/dist/models/pact-remaining.d.ts.map +1 -0
- package/dist/models/{policy-create.js → pact-remaining.js} +2 -2
- package/dist/models/pact-remaining.js.map +1 -0
- package/dist/models/pact-spec-input.d.ts +1 -1
- package/dist/models/pact-spec-input.js +1 -1
- package/dist/models/pact-spec-output.d.ts +1 -1
- package/dist/models/pact-spec-output.js +1 -1
- package/dist/models/pact-stats-language.d.ts +1 -1
- package/dist/models/pact-stats-language.js +1 -1
- package/dist/models/pact-status.d.ts +1 -1
- package/dist/models/pact-status.js +1 -1
- package/dist/models/pact-submit-request.d.ts +7 -1
- package/dist/models/pact-submit-request.d.ts.map +1 -1
- package/dist/models/pact-submit-request.js +1 -1
- package/dist/models/pact-submit-response.d.ts +1 -1
- package/dist/models/pact-submit-response.js +1 -1
- package/dist/models/pact-summary.d.ts +16 -3
- package/dist/models/pact-summary.d.ts.map +1 -1
- package/dist/models/pact-summary.js +1 -1
- package/dist/models/pact-update-completion-conditions-request.d.ts +1 -1
- package/dist/models/pact-update-completion-conditions-request.js +1 -1
- package/dist/models/pact-update-policies-request.d.ts +1 -1
- package/dist/models/pact-update-policies-request.js +1 -1
- package/dist/models/pagination-meta.d.ts +1 -1
- package/dist/models/pagination-meta.js +1 -1
- package/dist/models/pair-token-status.d.ts +2 -1
- package/dist/models/pair-token-status.d.ts.map +1 -1
- package/dist/models/pair-token-status.js +2 -1
- package/dist/models/pair-token-status.js.map +1 -1
- package/dist/models/payment-create.d.ts +1 -1
- package/dist/models/payment-create.js +1 -1
- package/dist/models/payment-protocol.d.ts +1 -1
- package/dist/models/payment-protocol.js +1 -1
- package/dist/models/payment-result.d.ts +1 -1
- package/dist/models/payment-result.js +1 -1
- package/dist/models/pending-operation-action-result.d.ts +1 -1
- package/dist/models/pending-operation-action-result.js +1 -1
- package/dist/models/pending-operation-list-response.d.ts +1 -1
- package/dist/models/pending-operation-list-response.js +1 -1
- package/dist/models/pending-operation-read.d.ts +19 -19
- package/dist/models/pending-operation-read.d.ts.map +1 -1
- package/dist/models/pending-operation-read.js +1 -1
- package/dist/models/pending-operation-status.d.ts +1 -1
- package/dist/models/pending-operation-status.js +1 -1
- package/dist/models/pending-operation-type.d.ts +1 -1
- package/dist/models/pending-operation-type.js +1 -1
- package/dist/models/policy-type.d.ts +1 -1
- package/dist/models/policy-type.js +1 -1
- package/dist/models/principal-create-result.d.ts +2 -2
- package/dist/models/principal-create-result.js +1 -1
- package/dist/models/principal-create.d.ts +1 -1
- package/dist/models/principal-create.js +1 -1
- package/dist/models/principal-read.d.ts +2 -2
- package/dist/models/principal-read.js +1 -1
- package/dist/models/principal-type.d.ts +1 -1
- package/dist/models/principal-type.js +1 -1
- package/dist/models/principal-update.d.ts +1 -1
- package/dist/models/principal-update.js +1 -1
- package/dist/models/provision-request.d.ts +1 -1
- package/dist/models/provision-request.js +1 -1
- package/dist/models/provision-response.d.ts +2 -2
- package/dist/models/provision-response.js +1 -1
- package/dist/models/recent-address-read.d.ts +1 -1
- package/dist/models/recent-address-read.js +1 -1
- package/dist/models/recent-tx-summary.d.ts +47 -0
- package/dist/models/recent-tx-summary.d.ts.map +1 -0
- package/dist/models/{policy-read.js → recent-tx-summary.js} +2 -2
- package/dist/models/recent-tx-summary.js.map +1 -0
- package/dist/models/recipe-search-response.d.ts +1 -1
- package/dist/models/recipe-search-response.js +1 -1
- package/dist/models/recipe-search-source.d.ts +1 -1
- package/dist/models/recipe-search-source.js +1 -1
- package/dist/models/reject-pending-operation-request.d.ts +1 -1
- package/dist/models/reject-pending-operation-request.js +1 -1
- package/dist/models/search-recipes-request.d.ts +9 -3
- package/dist/models/search-recipes-request.d.ts.map +1 -1
- package/dist/models/search-recipes-request.js +1 -1
- package/dist/models/session-record.d.ts +1 -1
- package/dist/models/session-record.js +1 -1
- package/dist/models/session-span.d.ts +1 -1
- package/dist/models/session-span.js +1 -1
- package/dist/models/sol-address-lookup-table-account.d.ts +1 -1
- package/dist/models/sol-address-lookup-table-account.js +1 -1
- package/dist/models/sol-instruction-account.d.ts +1 -1
- package/dist/models/sol-instruction-account.js +1 -1
- package/dist/models/sol-instruction.d.ts +1 -1
- package/dist/models/sol-instruction.js +1 -1
- package/dist/models/solfee-request.d.ts +1 -1
- package/dist/models/solfee-request.js +1 -1
- package/dist/models/speedup-transaction-request.d.ts +1 -1
- package/dist/models/speedup-transaction-request.js +1 -1
- package/dist/models/standard-response-agent-status-response.d.ts +1 -1
- package/dist/models/standard-response-agent-status-response.js +1 -1
- package/dist/models/standard-response-api-key-create-result-public.d.ts +1 -1
- package/dist/models/standard-response-api-key-create-result-public.js +1 -1
- package/dist/models/standard-response-audit-log-page.d.ts +1 -1
- package/dist/models/standard-response-audit-log-page.js +1 -1
- package/dist/models/standard-response-chain-info.d.ts +1 -1
- package/dist/models/standard-response-chain-info.js +1 -1
- package/dist/models/standard-response-contract-call-submit-result.d.ts +1 -1
- package/dist/models/standard-response-contract-call-submit-result.js +1 -1
- package/dist/models/standard-response-dict-str-bool.d.ts +1 -1
- package/dist/models/standard-response-dict-str-bool.js +1 -1
- package/dist/models/standard-response-dict-str-str.d.ts +1 -1
- package/dist/models/standard-response-dict-str-str.js +1 -1
- package/dist/models/standard-response-estimate-transfer-fee-read.d.ts +1 -1
- package/dist/models/standard-response-estimate-transfer-fee-read.js +1 -1
- package/dist/models/standard-response-eth-call-result.d.ts +1 -1
- package/dist/models/standard-response-eth-call-result.js +1 -1
- package/dist/models/standard-response-faucet-deposit-result.d.ts +1 -1
- package/dist/models/standard-response-faucet-deposit-result.js +1 -1
- package/dist/models/standard-response-list-api-key-public-read.d.ts +1 -1
- package/dist/models/standard-response-list-api-key-public-read.js +1 -1
- package/dist/models/standard-response-list-balance-read.d.ts +1 -1
- package/dist/models/standard-response-list-balance-read.js +1 -1
- package/dist/models/standard-response-list-faucet-token-item.d.ts +1 -1
- package/dist/models/standard-response-list-faucet-token-item.js +1 -1
- package/dist/models/standard-response-list-principal-read.d.ts +1 -1
- package/dist/models/standard-response-list-principal-read.js +1 -1
- package/dist/models/standard-response-list-recent-address-read.d.ts +1 -1
- package/dist/models/standard-response-list-recent-address-read.js +1 -1
- package/dist/models/standard-response-list-token-candidate.d.ts +1 -1
- package/dist/models/standard-response-list-token-candidate.js +1 -1
- package/dist/models/standard-response-list-user-transaction-read.d.ts +1 -1
- package/dist/models/standard-response-list-user-transaction-read.js +1 -1
- package/dist/models/standard-response-list-wallet-address-read.d.ts +1 -1
- package/dist/models/standard-response-list-wallet-address-read.js +1 -1
- package/dist/models/standard-response-list-wallet-read.d.ts +1 -1
- package/dist/models/standard-response-list-wallet-read.js +1 -1
- package/dist/models/standard-response-message-sign-result.d.ts +1 -1
- package/dist/models/standard-response-message-sign-result.js +1 -1
- package/dist/models/standard-response-node-status-read.d.ts +1 -1
- package/dist/models/standard-response-node-status-read.js +1 -1
- package/dist/models/standard-response-pact-event-list-response.d.ts +1 -1
- package/dist/models/standard-response-pact-event-list-response.js +1 -1
- package/dist/models/standard-response-pact-list-response.d.ts +1 -1
- package/dist/models/standard-response-pact-list-response.js +1 -1
- package/dist/models/standard-response-pact-public-read.d.ts +1 -1
- package/dist/models/standard-response-pact-public-read.js +1 -1
- package/dist/models/standard-response-pact-submit-response.d.ts +1 -1
- package/dist/models/standard-response-pact-submit-response.js +1 -1
- package/dist/models/standard-response-payment-result.d.ts +1 -1
- package/dist/models/standard-response-payment-result.js +1 -1
- package/dist/models/standard-response-pending-operation-action-result.d.ts +1 -1
- package/dist/models/standard-response-pending-operation-action-result.js +1 -1
- package/dist/models/standard-response-pending-operation-list-response.d.ts +1 -1
- package/dist/models/standard-response-pending-operation-list-response.js +1 -1
- package/dist/models/standard-response-pending-operation-read.d.ts +1 -1
- package/dist/models/standard-response-pending-operation-read.js +1 -1
- package/dist/models/standard-response-principal-create-result.d.ts +1 -1
- package/dist/models/standard-response-principal-create-result.js +1 -1
- package/dist/models/standard-response-principal-read.d.ts +1 -1
- package/dist/models/standard-response-principal-read.js +1 -1
- package/dist/models/standard-response-provision-response.d.ts +1 -1
- package/dist/models/standard-response-provision-response.js +1 -1
- package/dist/models/standard-response-recipe-search-response.d.ts +1 -1
- package/dist/models/standard-response-recipe-search-response.js +1 -1
- package/dist/models/standard-response-suggestion-response.d.ts +1 -1
- package/dist/models/standard-response-suggestion-response.js +1 -1
- package/dist/models/standard-response-telemetry-config-response.d.ts +1 -1
- package/dist/models/standard-response-telemetry-config-response.js +1 -1
- package/dist/models/standard-response-transaction-rbf-result.d.ts +1 -1
- package/dist/models/standard-response-transaction-rbf-result.js +1 -1
- package/dist/models/standard-response-transfer-submit-result.d.ts +1 -1
- package/dist/models/standard-response-transfer-submit-result.js +1 -1
- package/dist/models/standard-response-user-transaction-read.d.ts +1 -1
- package/dist/models/standard-response-user-transaction-read.js +1 -1
- package/dist/models/standard-response-waas-paginated-response-chain-metadata.d.ts +1 -1
- package/dist/models/standard-response-waas-paginated-response-chain-metadata.js +1 -1
- package/dist/models/standard-response-waas-paginated-response-token-metadata.d.ts +1 -1
- package/dist/models/standard-response-waas-paginated-response-token-metadata.js +1 -1
- package/dist/models/standard-response-wallet-address-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-address-read.js +1 -1
- package/dist/models/standard-response-wallet-detail-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-detail-read.js +1 -1
- package/dist/models/standard-response-wallet-pact-history-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-pact-history-read.js +1 -1
- package/dist/models/standard-response-wallet-pact-stats-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-pact-stats-read.js +1 -1
- package/dist/models/standard-response-wallet-pair-info-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-pair-info-read.js +1 -1
- package/dist/models/standard-response-wallet-pair-initiate-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-pair-initiate-read.js +1 -1
- package/dist/models/standard-response-wallet-pair-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-pair-read.js +1 -1
- package/dist/models/standard-response-wallet-read.d.ts +1 -1
- package/dist/models/standard-response-wallet-read.js +1 -1
- package/dist/models/standard-response-wallet-reshare-response.d.ts +1 -1
- package/dist/models/standard-response-wallet-reshare-response.js +1 -1
- package/dist/models/standard-response-wallet-tss-callback-response.d.ts +1 -1
- package/dist/models/standard-response-wallet-tss-callback-response.js +1 -1
- package/dist/models/standard-response-webhook-process-result.d.ts +1 -1
- package/dist/models/standard-response-webhook-process-result.js +1 -1
- package/dist/models/suggestion-key.d.ts +23 -9
- package/dist/models/suggestion-key.d.ts.map +1 -1
- package/dist/models/suggestion-key.js +23 -9
- package/dist/models/suggestion-key.js.map +1 -1
- package/dist/models/suggestion-response.d.ts +1 -1
- package/dist/models/suggestion-response.js +1 -1
- package/dist/models/telemetry-config-response.d.ts +1 -1
- package/dist/models/telemetry-config-response.js +1 -1
- package/dist/models/token-candidate.d.ts +1 -1
- package/dist/models/token-candidate.js +1 -1
- package/dist/models/token-metadata.d.ts +1 -1
- package/dist/models/token-metadata.js +1 -1
- package/dist/models/transaction-provider.d.ts +2 -1
- package/dist/models/transaction-provider.d.ts.map +1 -1
- package/dist/models/transaction-provider.js +2 -1
- package/dist/models/transaction-provider.js.map +1 -1
- package/dist/models/transaction-rbf-result.d.ts +1 -1
- package/dist/models/transaction-rbf-result.js +1 -1
- package/dist/models/transfer-create.d.ts +1 -1
- package/dist/models/transfer-create.js +1 -1
- package/dist/models/transfer-submit-result.d.ts +1 -1
- package/dist/models/transfer-submit-result.js +1 -1
- package/dist/models/ucw-share-public-data-callback.d.ts +1 -1
- package/dist/models/ucw-share-public-data-callback.js +1 -1
- package/dist/models/ucw-tss-key-share-group-callback.d.ts +1 -1
- package/dist/models/ucw-tss-key-share-group-callback.js +1 -1
- package/dist/models/user-transaction-data.d.ts +7 -1
- package/dist/models/user-transaction-data.d.ts.map +1 -1
- package/dist/models/user-transaction-data.js +1 -1
- package/dist/models/user-transaction-operation-type.d.ts +1 -1
- package/dist/models/user-transaction-operation-type.js +1 -1
- package/dist/models/user-transaction-read.d.ts +17 -3
- package/dist/models/user-transaction-read.d.ts.map +1 -1
- package/dist/models/user-transaction-read.js +1 -1
- package/dist/models/user-transaction-request-type.d.ts +1 -1
- package/dist/models/user-transaction-request-type.js +1 -1
- package/dist/models/validation-error-loc-inner.d.ts +1 -1
- package/dist/models/validation-error-loc-inner.js +1 -1
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/vault-group-type.d.ts +1 -1
- package/dist/models/vault-group-type.js +1 -1
- package/dist/models/waas-paginated-response-chain-metadata.d.ts +1 -1
- package/dist/models/waas-paginated-response-chain-metadata.js +1 -1
- package/dist/models/waas-paginated-response-token-metadata.d.ts +1 -1
- package/dist/models/waas-paginated-response-token-metadata.js +1 -1
- package/dist/models/waas-pagination.d.ts +1 -1
- package/dist/models/waas-pagination.js +1 -1
- package/dist/models/wallet-address-create.d.ts +1 -1
- package/dist/models/wallet-address-create.js +1 -1
- package/dist/models/wallet-address-read.d.ts +1 -1
- package/dist/models/wallet-address-read.js +1 -1
- package/dist/models/wallet-create.d.ts +1 -1
- package/dist/models/wallet-create.js +1 -1
- package/dist/models/wallet-detail-read.d.ts +3 -3
- package/dist/models/wallet-detail-read.d.ts.map +1 -1
- package/dist/models/wallet-detail-read.js +1 -1
- package/dist/models/wallet-group-node-read.d.ts +1 -1
- package/dist/models/wallet-group-node-read.js +1 -1
- package/dist/models/wallet-group-read.d.ts +1 -1
- package/dist/models/wallet-group-read.js +1 -1
- package/dist/models/wallet-pact-currency.d.ts +1 -1
- package/dist/models/wallet-pact-currency.js +1 -1
- package/dist/models/wallet-pact-history-bucket-pact-read.d.ts +1 -1
- package/dist/models/wallet-pact-history-bucket-pact-read.js +1 -1
- package/dist/models/wallet-pact-history-bucket-read.d.ts +1 -1
- package/dist/models/wallet-pact-history-bucket-read.js +1 -1
- package/dist/models/wallet-pact-history-metric.d.ts +1 -1
- package/dist/models/wallet-pact-history-metric.js +1 -1
- package/dist/models/wallet-pact-history-range.d.ts +1 -1
- package/dist/models/wallet-pact-history-range.js +1 -1
- package/dist/models/wallet-pact-history-read.d.ts +1 -1
- package/dist/models/wallet-pact-history-read.js +1 -1
- package/dist/models/wallet-pact-history-summary-read.d.ts +1 -1
- package/dist/models/wallet-pact-history-summary-read.js +1 -1
- package/dist/models/wallet-pact-stats-read.d.ts +1 -1
- package/dist/models/wallet-pact-stats-read.js +1 -1
- package/dist/models/wallet-pair-agent-info.d.ts +1 -1
- package/dist/models/wallet-pair-agent-info.js +1 -1
- package/dist/models/wallet-pair-confirm.d.ts +7 -1
- package/dist/models/wallet-pair-confirm.d.ts.map +1 -1
- package/dist/models/wallet-pair-confirm.js +1 -1
- package/dist/models/wallet-pair-info-read.d.ts +9 -2
- package/dist/models/wallet-pair-info-read.d.ts.map +1 -1
- package/dist/models/wallet-pair-info-read.js +1 -1
- package/dist/models/wallet-pair-initiate-read.d.ts +25 -4
- package/dist/models/wallet-pair-initiate-read.d.ts.map +1 -1
- package/dist/models/wallet-pair-initiate-read.js +1 -1
- package/dist/models/wallet-pair-initiate.d.ts +2 -2
- package/dist/models/wallet-pair-initiate.js +1 -1
- package/dist/models/wallet-pair-read.d.ts +25 -4
- package/dist/models/wallet-pair-read.d.ts.map +1 -1
- package/dist/models/wallet-pair-read.js +1 -1
- package/dist/models/wallet-pair-status.d.ts +2 -1
- package/dist/models/wallet-pair-status.d.ts.map +1 -1
- package/dist/models/wallet-pair-status.js +2 -1
- package/dist/models/wallet-pair-status.js.map +1 -1
- package/dist/models/wallet-pair-token-purpose.d.ts +20 -0
- package/dist/models/wallet-pair-token-purpose.d.ts.map +1 -0
- package/dist/models/{policy-scope.js → wallet-pair-token-purpose.js} +7 -8
- package/dist/models/wallet-pair-token-purpose.js.map +1 -0
- package/dist/models/wallet-pair-wallet-info.d.ts +1 -1
- package/dist/models/wallet-pair-wallet-info.js +1 -1
- package/dist/models/wallet-read.d.ts +3 -3
- package/dist/models/wallet-read.d.ts.map +1 -1
- package/dist/models/wallet-read.js +1 -1
- package/dist/models/wallet-reshare-request.d.ts +7 -1
- package/dist/models/wallet-reshare-request.d.ts.map +1 -1
- package/dist/models/wallet-reshare-request.js +1 -1
- package/dist/models/wallet-reshare-response.d.ts +1 -1
- package/dist/models/wallet-reshare-response.js +1 -1
- package/dist/models/wallet-status.d.ts +1 -1
- package/dist/models/wallet-status.js +1 -1
- package/dist/models/wallet-tss-callback-request.d.ts +1 -1
- package/dist/models/wallet-tss-callback-request.js +1 -1
- package/dist/models/wallet-tss-callback-response.d.ts +1 -1
- package/dist/models/wallet-tss-callback-response.js +1 -1
- package/dist/models/wallet-type.d.ts +1 -1
- package/dist/models/wallet-type.js +1 -1
- package/dist/models/wallet-update.d.ts +1 -1
- package/dist/models/wallet-update.js +1 -1
- package/dist/models/webhook-process-result.d.ts +1 -1
- package/dist/models/webhook-process-result.js +1 -1
- package/dist/models/wrapped-validation-error.d.ts +1 -1
- package/dist/models/wrapped-validation-error.js +1 -1
- package/package.json +1 -1
- package/dist/models/applicable-limit-read.d.ts +0 -65
- package/dist/models/applicable-limit-read.d.ts.map +0 -1
- package/dist/models/applicable-limit-read.js +0 -12
- package/dist/models/applicable-limit-read.js.map +0 -1
- package/dist/models/policy-create.d.ts +0 -67
- package/dist/models/policy-create.d.ts.map +0 -1
- package/dist/models/policy-create.js.map +0 -1
- package/dist/models/policy-dry-run-request.d.ts +0 -84
- package/dist/models/policy-dry-run-request.d.ts.map +0 -1
- package/dist/models/policy-dry-run-request.js +0 -12
- package/dist/models/policy-dry-run-request.js.map +0 -1
- package/dist/models/policy-dry-run-result.d.ts +0 -63
- package/dist/models/policy-dry-run-result.d.ts.map +0 -1
- package/dist/models/policy-dry-run-result.js +0 -12
- package/dist/models/policy-dry-run-result.js.map +0 -1
- package/dist/models/policy-read.d.ts +0 -99
- package/dist/models/policy-read.d.ts.map +0 -1
- package/dist/models/policy-read.js.map +0 -1
- package/dist/models/policy-scope.d.ts +0 -21
- package/dist/models/policy-scope.d.ts.map +0 -1
- package/dist/models/policy-scope.js.map +0 -1
- package/dist/models/policy-update.d.ts +0 -41
- package/dist/models/policy-update.d.ts.map +0 -1
- package/dist/models/policy-update.js +0 -12
- package/dist/models/policy-update.js.map +0 -1
- package/dist/models/recipe-category-read.d.ts +0 -29
- package/dist/models/recipe-category-read.d.ts.map +0 -1
- package/dist/models/recipe-category-read.js +0 -12
- package/dist/models/recipe-category-read.js.map +0 -1
- package/dist/models/recipe-counter-result.d.ts +0 -29
- package/dist/models/recipe-counter-result.d.ts.map +0 -1
- package/dist/models/recipe-counter-result.js +0 -12
- package/dist/models/recipe-counter-result.js.map +0 -1
- package/dist/models/recipe-create-result.d.ts +0 -42
- package/dist/models/recipe-create-result.d.ts.map +0 -1
- package/dist/models/recipe-create-result.js +0 -12
- package/dist/models/recipe-create-result.js.map +0 -1
- package/dist/models/recipe-create.d.ts +0 -117
- package/dist/models/recipe-create.d.ts.map +0 -1
- package/dist/models/recipe-create.js +0 -12
- package/dist/models/recipe-create.js.map +0 -1
- package/dist/models/recipe-detail-read.d.ts +0 -166
- package/dist/models/recipe-detail-read.d.ts.map +0 -1
- package/dist/models/recipe-detail-read.js +0 -12
- package/dist/models/recipe-detail-read.js.map +0 -1
- package/dist/models/recipe-document.d.ts +0 -50
- package/dist/models/recipe-document.d.ts.map +0 -1
- package/dist/models/recipe-document.js +0 -12
- package/dist/models/recipe-document.js.map +0 -1
- package/dist/models/recipe-library-sort-by.d.ts +0 -21
- package/dist/models/recipe-library-sort-by.d.ts.map +0 -1
- package/dist/models/recipe-library-sort-by.js +0 -23
- package/dist/models/recipe-library-sort-by.js.map +0 -1
- package/dist/models/recipe-read.d.ts +0 -138
- package/dist/models/recipe-read.d.ts.map +0 -1
- package/dist/models/recipe-read.js +0 -12
- package/dist/models/recipe-read.js.map +0 -1
- package/dist/models/recipe-review-action.d.ts +0 -20
- package/dist/models/recipe-review-action.d.ts.map +0 -1
- package/dist/models/recipe-review-action.js +0 -22
- package/dist/models/recipe-review-action.js.map +0 -1
- package/dist/models/recipe-review-request.d.ts +0 -24
- package/dist/models/recipe-review-request.d.ts.map +0 -1
- package/dist/models/recipe-review-request.js +0 -12
- package/dist/models/recipe-review-request.js.map +0 -1
- package/dist/models/recipe-status.d.ts +0 -23
- package/dist/models/recipe-status.d.ts.map +0 -1
- package/dist/models/recipe-status.js +0 -25
- package/dist/models/recipe-status.js.map +0 -1
- package/dist/models/recipe-submission-create.d.ts +0 -99
- package/dist/models/recipe-submission-create.d.ts.map +0 -1
- package/dist/models/recipe-submission-create.js +0 -12
- package/dist/models/recipe-submission-create.js.map +0 -1
- package/dist/models/recipe-update.d.ts +0 -112
- package/dist/models/recipe-update.d.ts.map +0 -1
- package/dist/models/recipe-update.js +0 -12
- package/dist/models/recipe-update.js.map +0 -1
- package/dist/models/standard-response-list-policy-read.d.ts +0 -49
- package/dist/models/standard-response-list-policy-read.d.ts.map +0 -1
- package/dist/models/standard-response-list-policy-read.js +0 -12
- package/dist/models/standard-response-list-policy-read.js.map +0 -1
- package/dist/models/standard-response-list-recipe-category-read.d.ts +0 -49
- package/dist/models/standard-response-list-recipe-category-read.d.ts.map +0 -1
- package/dist/models/standard-response-list-recipe-category-read.js +0 -12
- package/dist/models/standard-response-list-recipe-category-read.js.map +0 -1
- package/dist/models/standard-response-list-recipe-read.d.ts +0 -49
- package/dist/models/standard-response-list-recipe-read.d.ts.map +0 -1
- package/dist/models/standard-response-list-recipe-read.js +0 -12
- package/dist/models/standard-response-list-recipe-read.js.map +0 -1
- package/dist/models/standard-response-policy-dry-run-result.d.ts +0 -49
- package/dist/models/standard-response-policy-dry-run-result.d.ts.map +0 -1
- package/dist/models/standard-response-policy-dry-run-result.js +0 -12
- package/dist/models/standard-response-policy-dry-run-result.js.map +0 -1
- package/dist/models/standard-response-policy-read.d.ts +0 -49
- package/dist/models/standard-response-policy-read.d.ts.map +0 -1
- package/dist/models/standard-response-policy-read.js +0 -12
- package/dist/models/standard-response-policy-read.js.map +0 -1
- package/dist/models/standard-response-recipe-counter-result.d.ts +0 -49
- package/dist/models/standard-response-recipe-counter-result.d.ts.map +0 -1
- package/dist/models/standard-response-recipe-counter-result.js +0 -12
- package/dist/models/standard-response-recipe-counter-result.js.map +0 -1
- package/dist/models/standard-response-recipe-create-result.d.ts +0 -49
- package/dist/models/standard-response-recipe-create-result.d.ts.map +0 -1
- package/dist/models/standard-response-recipe-create-result.js +0 -12
- package/dist/models/standard-response-recipe-create-result.js.map +0 -1
- package/dist/models/standard-response-recipe-detail-read.d.ts +0 -49
- package/dist/models/standard-response-recipe-detail-read.d.ts.map +0 -1
- package/dist/models/standard-response-recipe-detail-read.js +0 -12
- package/dist/models/standard-response-recipe-detail-read.js.map +0 -1
- package/dist/models/standard-response-recipe-document.d.ts +0 -49
- package/dist/models/standard-response-recipe-document.d.ts.map +0 -1
- package/dist/models/standard-response-recipe-document.js +0 -12
- package/dist/models/standard-response-recipe-document.js.map +0 -1
- package/dist/models/tier-evaluation-read.d.ts +0 -47
- package/dist/models/tier-evaluation-read.d.ts.map +0 -1
- package/dist/models/tier-evaluation-read.js +0 -12
- package/dist/models/tier-evaluation-read.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Cobo Agentic Wallet Service
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
7
|
* https://openapi-generator.tech
|
|
@@ -9,18 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
11
11
|
import { Configuration } from '../configuration';
|
|
12
|
-
import type { RecipeCreate } from '../models';
|
|
13
|
-
import type { RecipeLibrarySortBy } from '../models';
|
|
14
|
-
import type { RecipeReviewRequest } from '../models';
|
|
15
|
-
import type { RecipeSubmissionCreate } from '../models';
|
|
16
|
-
import type { RecipeUpdate } from '../models';
|
|
17
12
|
import type { SearchRecipesRequest } from '../models';
|
|
18
|
-
import type { StandardResponseListRecipeCategoryRead } from '../models';
|
|
19
|
-
import type { StandardResponseListRecipeRead } from '../models';
|
|
20
|
-
import type { StandardResponseRecipeCounterResult } from '../models';
|
|
21
|
-
import type { StandardResponseRecipeCreateResult } from '../models';
|
|
22
|
-
import type { StandardResponseRecipeDetailRead } from '../models';
|
|
23
|
-
import type { StandardResponseRecipeDocument } from '../models';
|
|
24
13
|
import type { StandardResponseRecipeSearchResponse } from '../models';
|
|
25
14
|
export declare class RecipesApi {
|
|
26
15
|
private basePath;
|
|
@@ -31,81 +20,6 @@ export declare class RecipesApi {
|
|
|
31
20
|
* Get default request headers including auth
|
|
32
21
|
*/
|
|
33
22
|
private getHeaders;
|
|
34
|
-
/**
|
|
35
|
-
* Archive recipe
|
|
36
|
-
* Archive a recipe, removing it from public visibility. Requires service credential authentication. Archived recipes are not deleted and can be restored.
|
|
37
|
-
* @param recipe_id
|
|
38
|
-
* @param X_Assistant_Service_Key
|
|
39
|
-
* @param options Override http request option.
|
|
40
|
-
*/
|
|
41
|
-
archiveRecipe(recipe_id: string, X_Assistant_Service_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeDetailRead>>;
|
|
42
|
-
/**
|
|
43
|
-
* Create recipe
|
|
44
|
-
* Create and publish a new recipe in the library. Requires service credential authentication. The recipe is synced to the knowledge hub after creation.
|
|
45
|
-
* @param RecipeCreate
|
|
46
|
-
* @param X_Assistant_Service_Key
|
|
47
|
-
* @param options Override http request option.
|
|
48
|
-
*/
|
|
49
|
-
createRecipe(RecipeCreate: RecipeCreate, X_Assistant_Service_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeCreateResult>>;
|
|
50
|
-
/**
|
|
51
|
-
* Get recipe detail by slug
|
|
52
|
-
* Retrieve the full details of a public recipe by its URL slug.
|
|
53
|
-
* @param slug
|
|
54
|
-
* @param track_view When `true` (default), increment the recipe\'s view counter.
|
|
55
|
-
* @param options Override http request option.
|
|
56
|
-
*/
|
|
57
|
-
getRecipeBySlug(slug: string, track_view?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeDetailRead>>;
|
|
58
|
-
/**
|
|
59
|
-
* Get full recipe document by ID
|
|
60
|
-
* Retrieve the full content of a recipe document by its knowledge hub document ID. The `document_id` is returned in search results.
|
|
61
|
-
* @param document_id
|
|
62
|
-
* @param X_API_Key
|
|
63
|
-
* @param options Override http request option.
|
|
64
|
-
*/
|
|
65
|
-
getRecipeDocument(document_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeDocument>>;
|
|
66
|
-
/**
|
|
67
|
-
* Get recipe search count
|
|
68
|
-
* Retrieve the total number of times a recipe has appeared in search results.
|
|
69
|
-
* @param recipe_id
|
|
70
|
-
* @param options Override http request option.
|
|
71
|
-
*/
|
|
72
|
-
getRecipeSearchCount(recipe_id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeCounterResult>>;
|
|
73
|
-
/**
|
|
74
|
-
* List featured recipes
|
|
75
|
-
* Retrieve the list of editorially featured recipes from the public library.
|
|
76
|
-
* @param limit The maximum number of featured recipes to return. Range: [1, 50].
|
|
77
|
-
* @param options Override http request option.
|
|
78
|
-
*/
|
|
79
|
-
listFeaturedRecipes(limit?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseListRecipeRead>>;
|
|
80
|
-
/**
|
|
81
|
-
* List recipe categories
|
|
82
|
-
* Retrieve all available recipe categories from the public library.
|
|
83
|
-
* @param options Override http request option.
|
|
84
|
-
*/
|
|
85
|
-
listRecipeCategories(options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseListRecipeCategoryRead>>;
|
|
86
|
-
/**
|
|
87
|
-
* List recipes in the public library
|
|
88
|
-
* Retrieve published recipes from the public recipe library. Filter by category, tag, chain, or keyword. Use `offset` and `limit` for pagination.
|
|
89
|
-
* @param offset Number of items to skip before returning results.
|
|
90
|
-
* @param limit The maximum number of items to return. Range: [1, 100].
|
|
91
|
-
* @param category Filter recipes by category slug.
|
|
92
|
-
* @param tag Filter recipes by tag.
|
|
93
|
-
* @param chain Filter recipes by blockchain (e.g. `ETH`, `SOL`).
|
|
94
|
-
* @param featured When `true`, return only featured recipes. When `false`, exclude featured recipes. Omit to return all.
|
|
95
|
-
* @param query Keyword search string to filter recipes by title or description.
|
|
96
|
-
* @param sort_by Sort order for results. Possible values: `popular`, `newest`, `most_used`.
|
|
97
|
-
* @param options Override http request option.
|
|
98
|
-
*/
|
|
99
|
-
listRecipeLibrary(offset?: number, limit?: number, category?: string, tag?: string, chain?: string, featured?: boolean, query?: string, sort_by?: RecipeLibrarySortBy, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseListRecipeRead>>;
|
|
100
|
-
/**
|
|
101
|
-
* Review submitted recipe
|
|
102
|
-
* Approve or reject a community-submitted recipe. Requires service credential authentication. Approved recipes are published to the library and synced to the knowledge hub.
|
|
103
|
-
* @param recipe_id
|
|
104
|
-
* @param RecipeReviewRequest
|
|
105
|
-
* @param X_Assistant_Service_Key
|
|
106
|
-
* @param options Override http request option.
|
|
107
|
-
*/
|
|
108
|
-
reviewRecipeSubmission(recipe_id: string, RecipeReviewRequest: RecipeReviewRequest, X_Assistant_Service_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeDetailRead>>;
|
|
109
23
|
/**
|
|
110
24
|
* Search recipes
|
|
111
25
|
* Search the recipe library using natural language via the knowledge hub. Optionally filter results by `chain` or `token`.
|
|
@@ -114,37 +28,5 @@ export declare class RecipesApi {
|
|
|
114
28
|
* @param options Override http request option.
|
|
115
29
|
*/
|
|
116
30
|
searchRecipes(SearchRecipesRequest: SearchRecipesRequest, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeSearchResponse>>;
|
|
117
|
-
/**
|
|
118
|
-
* Submit community recipe
|
|
119
|
-
* Submit a community-contributed recipe for review. The recipe enters a pending state until reviewed and approved by an admin.
|
|
120
|
-
* @param RecipeSubmissionCreate
|
|
121
|
-
* @param X_API_Key
|
|
122
|
-
* @param options Override http request option.
|
|
123
|
-
*/
|
|
124
|
-
submitRecipe(RecipeSubmissionCreate: RecipeSubmissionCreate, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeCreateResult>>;
|
|
125
|
-
/**
|
|
126
|
-
* Increment recipe share count
|
|
127
|
-
* Increment the share counter for a recipe. Call this endpoint when a user shares the recipe externally.
|
|
128
|
-
* @param recipe_id
|
|
129
|
-
* @param options Override http request option.
|
|
130
|
-
*/
|
|
131
|
-
trackRecipeShare(recipe_id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeCounterResult>>;
|
|
132
|
-
/**
|
|
133
|
-
* Increment recipe use count
|
|
134
|
-
* Increment the use counter for a recipe. Call this endpoint when an authenticated user activates or runs a recipe.
|
|
135
|
-
* @param recipe_id
|
|
136
|
-
* @param X_API_Key
|
|
137
|
-
* @param options Override http request option.
|
|
138
|
-
*/
|
|
139
|
-
trackRecipeUse(recipe_id: string, X_API_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeCounterResult>>;
|
|
140
|
-
/**
|
|
141
|
-
* Update recipe
|
|
142
|
-
* Update an existing recipe in the library. Requires service credential authentication. Only provided fields are updated. The recipe is re-synced to the knowledge hub after the update.
|
|
143
|
-
* @param recipe_id
|
|
144
|
-
* @param RecipeUpdate
|
|
145
|
-
* @param X_Assistant_Service_Key
|
|
146
|
-
* @param options Override http request option.
|
|
147
|
-
*/
|
|
148
|
-
updateRecipe(recipe_id: string, RecipeUpdate: RecipeUpdate, X_Assistant_Service_Key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StandardResponseRecipeDetailRead>>;
|
|
149
31
|
}
|
|
150
32
|
//# sourceMappingURL=recipes-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes-api.d.ts","sourceRoot":"","sources":["../../api/recipes-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAG/D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"recipes-api.d.ts","sourceRoot":"","sources":["../../api/recipes-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAG/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AAItE,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,aAAa,CAAC,CAAgB;gBAE1B,aAAa,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa;IAMnF;;OAEG;IACH,OAAO,CAAC,UAAU;IAQlB;;;;;;OAMG;IACU,aAAa,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,oCAAoC,CAAC,CAAC;CAqCzL"}
|
package/dist/api/recipes-api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Cobo Agentic Wallet Service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
8
|
* https://openapi-generator.tech
|
|
@@ -32,341 +32,6 @@ class RecipesApi {
|
|
|
32
32
|
}
|
|
33
33
|
return headers;
|
|
34
34
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Archive recipe
|
|
37
|
-
* Archive a recipe, removing it from public visibility. Requires service credential authentication. Archived recipes are not deleted and can be restored.
|
|
38
|
-
* @param recipe_id
|
|
39
|
-
* @param X_Assistant_Service_Key
|
|
40
|
-
* @param options Override http request option.
|
|
41
|
-
*/
|
|
42
|
-
async archiveRecipe(recipe_id, X_Assistant_Service_Key, options) {
|
|
43
|
-
let localVarPath = '/api/v1/recipes/library/{recipe_id}'
|
|
44
|
-
.replace(`{${"recipe_id"}}`, encodeURIComponent(String(recipe_id)));
|
|
45
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
46
|
-
const localVarRequestOptions = { method: 'DELETE', ...options };
|
|
47
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
48
|
-
const localVarQueryParameter = {};
|
|
49
|
-
if (X_Assistant_Service_Key !== undefined && X_Assistant_Service_Key !== null) {
|
|
50
|
-
localVarHeaderParameter['X-Assistant-Service-Key'] = String(X_Assistant_Service_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
|
-
* Create recipe
|
|
72
|
-
* Create and publish a new recipe in the library. Requires service credential authentication. The recipe is synced to the knowledge hub after creation.
|
|
73
|
-
* @param RecipeCreate
|
|
74
|
-
* @param X_Assistant_Service_Key
|
|
75
|
-
* @param options Override http request option.
|
|
76
|
-
*/
|
|
77
|
-
async createRecipe(RecipeCreate, X_Assistant_Service_Key, options) {
|
|
78
|
-
let localVarPath = '/api/v1/recipes/library';
|
|
79
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
80
|
-
const localVarRequestOptions = { method: 'POST', ...options };
|
|
81
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
82
|
-
const localVarQueryParameter = {};
|
|
83
|
-
// verify required parameter 'RecipeCreate' is not null or undefined
|
|
84
|
-
(0, common_1.assertParamExists)('createRecipe', 'RecipeCreate', RecipeCreate);
|
|
85
|
-
if (X_Assistant_Service_Key !== undefined && X_Assistant_Service_Key !== null) {
|
|
86
|
-
localVarHeaderParameter['X-Assistant-Service-Key'] = String(X_Assistant_Service_Key);
|
|
87
|
-
}
|
|
88
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
89
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
90
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
91
|
-
if (Array.isArray(value)) {
|
|
92
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
acc.push([key, String(value)]);
|
|
96
|
-
}
|
|
97
|
-
return acc;
|
|
98
|
-
}, [])).toString();
|
|
99
|
-
if (queryString) {
|
|
100
|
-
localVarUrlObj.search = queryString;
|
|
101
|
-
}
|
|
102
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
103
|
-
localVarRequestOptions.data = RecipeCreate;
|
|
104
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
105
|
-
return this.axios.request(localVarRequestOptions);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Get recipe detail by slug
|
|
109
|
-
* Retrieve the full details of a public recipe by its URL slug.
|
|
110
|
-
* @param slug
|
|
111
|
-
* @param track_view When `true` (default), increment the recipe\'s view counter.
|
|
112
|
-
* @param options Override http request option.
|
|
113
|
-
*/
|
|
114
|
-
async getRecipeBySlug(slug, track_view, options) {
|
|
115
|
-
let localVarPath = '/api/v1/recipes/library/by-slug/{slug}'
|
|
116
|
-
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
117
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
118
|
-
const localVarRequestOptions = { method: 'GET', ...options };
|
|
119
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
120
|
-
const localVarQueryParameter = {};
|
|
121
|
-
if (track_view !== undefined) {
|
|
122
|
-
localVarQueryParameter['track_view'] = track_view;
|
|
123
|
-
}
|
|
124
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
125
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
126
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
127
|
-
if (Array.isArray(value)) {
|
|
128
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
acc.push([key, String(value)]);
|
|
132
|
-
}
|
|
133
|
-
return acc;
|
|
134
|
-
}, [])).toString();
|
|
135
|
-
if (queryString) {
|
|
136
|
-
localVarUrlObj.search = queryString;
|
|
137
|
-
}
|
|
138
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
139
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
140
|
-
return this.axios.request(localVarRequestOptions);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Get full recipe document by ID
|
|
144
|
-
* Retrieve the full content of a recipe document by its knowledge hub document ID. The `document_id` is returned in search results.
|
|
145
|
-
* @param document_id
|
|
146
|
-
* @param X_API_Key
|
|
147
|
-
* @param options Override http request option.
|
|
148
|
-
*/
|
|
149
|
-
async getRecipeDocument(document_id, X_API_Key, options) {
|
|
150
|
-
let localVarPath = '/api/v1/recipes/{document_id}'
|
|
151
|
-
.replace(`{${"document_id"}}`, encodeURIComponent(String(document_id)));
|
|
152
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
153
|
-
const localVarRequestOptions = { method: 'GET', ...options };
|
|
154
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
155
|
-
const localVarQueryParameter = {};
|
|
156
|
-
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
157
|
-
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
158
|
-
}
|
|
159
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
160
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
161
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
162
|
-
if (Array.isArray(value)) {
|
|
163
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
acc.push([key, String(value)]);
|
|
167
|
-
}
|
|
168
|
-
return acc;
|
|
169
|
-
}, [])).toString();
|
|
170
|
-
if (queryString) {
|
|
171
|
-
localVarUrlObj.search = queryString;
|
|
172
|
-
}
|
|
173
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
174
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
175
|
-
return this.axios.request(localVarRequestOptions);
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Get recipe search count
|
|
179
|
-
* Retrieve the total number of times a recipe has appeared in search results.
|
|
180
|
-
* @param recipe_id
|
|
181
|
-
* @param options Override http request option.
|
|
182
|
-
*/
|
|
183
|
-
async getRecipeSearchCount(recipe_id, options) {
|
|
184
|
-
let localVarPath = '/api/v1/recipes/library/{recipe_id}/search-count'
|
|
185
|
-
.replace(`{${"recipe_id"}}`, encodeURIComponent(String(recipe_id)));
|
|
186
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
187
|
-
const localVarRequestOptions = { method: 'GET', ...options };
|
|
188
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
189
|
-
const localVarQueryParameter = {};
|
|
190
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
191
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
192
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
193
|
-
if (Array.isArray(value)) {
|
|
194
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
acc.push([key, String(value)]);
|
|
198
|
-
}
|
|
199
|
-
return acc;
|
|
200
|
-
}, [])).toString();
|
|
201
|
-
if (queryString) {
|
|
202
|
-
localVarUrlObj.search = queryString;
|
|
203
|
-
}
|
|
204
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
205
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
206
|
-
return this.axios.request(localVarRequestOptions);
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* List featured recipes
|
|
210
|
-
* Retrieve the list of editorially featured recipes from the public library.
|
|
211
|
-
* @param limit The maximum number of featured recipes to return. Range: [1, 50].
|
|
212
|
-
* @param options Override http request option.
|
|
213
|
-
*/
|
|
214
|
-
async listFeaturedRecipes(limit, options) {
|
|
215
|
-
let localVarPath = '/api/v1/recipes/library/featured';
|
|
216
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
217
|
-
const localVarRequestOptions = { method: 'GET', ...options };
|
|
218
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
219
|
-
const localVarQueryParameter = {};
|
|
220
|
-
if (limit !== undefined) {
|
|
221
|
-
localVarQueryParameter['limit'] = limit;
|
|
222
|
-
}
|
|
223
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
224
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
225
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
226
|
-
if (Array.isArray(value)) {
|
|
227
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
acc.push([key, String(value)]);
|
|
231
|
-
}
|
|
232
|
-
return acc;
|
|
233
|
-
}, [])).toString();
|
|
234
|
-
if (queryString) {
|
|
235
|
-
localVarUrlObj.search = queryString;
|
|
236
|
-
}
|
|
237
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
238
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
239
|
-
return this.axios.request(localVarRequestOptions);
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* List recipe categories
|
|
243
|
-
* Retrieve all available recipe categories from the public library.
|
|
244
|
-
* @param options Override http request option.
|
|
245
|
-
*/
|
|
246
|
-
async listRecipeCategories(options) {
|
|
247
|
-
let localVarPath = '/api/v1/recipes/library/categories';
|
|
248
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
249
|
-
const localVarRequestOptions = { method: 'GET', ...options };
|
|
250
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
251
|
-
const localVarQueryParameter = {};
|
|
252
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
253
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
254
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
255
|
-
if (Array.isArray(value)) {
|
|
256
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
acc.push([key, String(value)]);
|
|
260
|
-
}
|
|
261
|
-
return acc;
|
|
262
|
-
}, [])).toString();
|
|
263
|
-
if (queryString) {
|
|
264
|
-
localVarUrlObj.search = queryString;
|
|
265
|
-
}
|
|
266
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
267
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
268
|
-
return this.axios.request(localVarRequestOptions);
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* List recipes in the public library
|
|
272
|
-
* Retrieve published recipes from the public recipe library. Filter by category, tag, chain, or keyword. Use `offset` and `limit` for pagination.
|
|
273
|
-
* @param offset Number of items to skip before returning results.
|
|
274
|
-
* @param limit The maximum number of items to return. Range: [1, 100].
|
|
275
|
-
* @param category Filter recipes by category slug.
|
|
276
|
-
* @param tag Filter recipes by tag.
|
|
277
|
-
* @param chain Filter recipes by blockchain (e.g. `ETH`, `SOL`).
|
|
278
|
-
* @param featured When `true`, return only featured recipes. When `false`, exclude featured recipes. Omit to return all.
|
|
279
|
-
* @param query Keyword search string to filter recipes by title or description.
|
|
280
|
-
* @param sort_by Sort order for results. Possible values: `popular`, `newest`, `most_used`.
|
|
281
|
-
* @param options Override http request option.
|
|
282
|
-
*/
|
|
283
|
-
async listRecipeLibrary(offset, limit, category, tag, chain, featured, query, sort_by, options) {
|
|
284
|
-
let localVarPath = '/api/v1/recipes/library';
|
|
285
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
286
|
-
const localVarRequestOptions = { method: 'GET', ...options };
|
|
287
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
288
|
-
const localVarQueryParameter = {};
|
|
289
|
-
if (offset !== undefined) {
|
|
290
|
-
localVarQueryParameter['offset'] = offset;
|
|
291
|
-
}
|
|
292
|
-
if (limit !== undefined) {
|
|
293
|
-
localVarQueryParameter['limit'] = limit;
|
|
294
|
-
}
|
|
295
|
-
if (category !== undefined) {
|
|
296
|
-
localVarQueryParameter['category'] = category;
|
|
297
|
-
}
|
|
298
|
-
if (tag !== undefined) {
|
|
299
|
-
localVarQueryParameter['tag'] = tag;
|
|
300
|
-
}
|
|
301
|
-
if (chain !== undefined) {
|
|
302
|
-
localVarQueryParameter['chain'] = chain;
|
|
303
|
-
}
|
|
304
|
-
if (featured !== undefined) {
|
|
305
|
-
localVarQueryParameter['featured'] = featured;
|
|
306
|
-
}
|
|
307
|
-
if (query !== undefined) {
|
|
308
|
-
localVarQueryParameter['query'] = query;
|
|
309
|
-
}
|
|
310
|
-
if (sort_by !== undefined) {
|
|
311
|
-
localVarQueryParameter['sort_by'] = sort_by;
|
|
312
|
-
}
|
|
313
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
314
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
315
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
316
|
-
if (Array.isArray(value)) {
|
|
317
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
acc.push([key, String(value)]);
|
|
321
|
-
}
|
|
322
|
-
return acc;
|
|
323
|
-
}, [])).toString();
|
|
324
|
-
if (queryString) {
|
|
325
|
-
localVarUrlObj.search = queryString;
|
|
326
|
-
}
|
|
327
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
328
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
329
|
-
return this.axios.request(localVarRequestOptions);
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Review submitted recipe
|
|
333
|
-
* Approve or reject a community-submitted recipe. Requires service credential authentication. Approved recipes are published to the library and synced to the knowledge hub.
|
|
334
|
-
* @param recipe_id
|
|
335
|
-
* @param RecipeReviewRequest
|
|
336
|
-
* @param X_Assistant_Service_Key
|
|
337
|
-
* @param options Override http request option.
|
|
338
|
-
*/
|
|
339
|
-
async reviewRecipeSubmission(recipe_id, RecipeReviewRequest, X_Assistant_Service_Key, options) {
|
|
340
|
-
let localVarPath = '/api/v1/recipes/library/submissions/{recipe_id}/review'
|
|
341
|
-
.replace(`{${"recipe_id"}}`, encodeURIComponent(String(recipe_id)));
|
|
342
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
343
|
-
const localVarRequestOptions = { method: 'PATCH', ...options };
|
|
344
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
345
|
-
const localVarQueryParameter = {};
|
|
346
|
-
// verify required parameter 'RecipeReviewRequest' is not null or undefined
|
|
347
|
-
(0, common_1.assertParamExists)('reviewRecipeSubmission', 'RecipeReviewRequest', RecipeReviewRequest);
|
|
348
|
-
if (X_Assistant_Service_Key !== undefined && X_Assistant_Service_Key !== null) {
|
|
349
|
-
localVarHeaderParameter['X-Assistant-Service-Key'] = String(X_Assistant_Service_Key);
|
|
350
|
-
}
|
|
351
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
352
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
353
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
354
|
-
if (Array.isArray(value)) {
|
|
355
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
acc.push([key, String(value)]);
|
|
359
|
-
}
|
|
360
|
-
return acc;
|
|
361
|
-
}, [])).toString();
|
|
362
|
-
if (queryString) {
|
|
363
|
-
localVarUrlObj.search = queryString;
|
|
364
|
-
}
|
|
365
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
366
|
-
localVarRequestOptions.data = RecipeReviewRequest;
|
|
367
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
368
|
-
return this.axios.request(localVarRequestOptions);
|
|
369
|
-
}
|
|
370
35
|
/**
|
|
371
36
|
* Search recipes
|
|
372
37
|
* Search the recipe library using natural language via the knowledge hub. Optionally filter results by `chain` or `token`.
|
|
@@ -404,148 +69,6 @@ class RecipesApi {
|
|
|
404
69
|
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
405
70
|
return this.axios.request(localVarRequestOptions);
|
|
406
71
|
}
|
|
407
|
-
/**
|
|
408
|
-
* Submit community recipe
|
|
409
|
-
* Submit a community-contributed recipe for review. The recipe enters a pending state until reviewed and approved by an admin.
|
|
410
|
-
* @param RecipeSubmissionCreate
|
|
411
|
-
* @param X_API_Key
|
|
412
|
-
* @param options Override http request option.
|
|
413
|
-
*/
|
|
414
|
-
async submitRecipe(RecipeSubmissionCreate, X_API_Key, options) {
|
|
415
|
-
let localVarPath = '/api/v1/recipes/library/submit';
|
|
416
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
417
|
-
const localVarRequestOptions = { method: 'POST', ...options };
|
|
418
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
419
|
-
const localVarQueryParameter = {};
|
|
420
|
-
// verify required parameter 'RecipeSubmissionCreate' is not null or undefined
|
|
421
|
-
(0, common_1.assertParamExists)('submitRecipe', 'RecipeSubmissionCreate', RecipeSubmissionCreate);
|
|
422
|
-
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
423
|
-
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
424
|
-
}
|
|
425
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
426
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
427
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
428
|
-
if (Array.isArray(value)) {
|
|
429
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
430
|
-
}
|
|
431
|
-
else {
|
|
432
|
-
acc.push([key, String(value)]);
|
|
433
|
-
}
|
|
434
|
-
return acc;
|
|
435
|
-
}, [])).toString();
|
|
436
|
-
if (queryString) {
|
|
437
|
-
localVarUrlObj.search = queryString;
|
|
438
|
-
}
|
|
439
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
440
|
-
localVarRequestOptions.data = RecipeSubmissionCreate;
|
|
441
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
442
|
-
return this.axios.request(localVarRequestOptions);
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Increment recipe share count
|
|
446
|
-
* Increment the share counter for a recipe. Call this endpoint when a user shares the recipe externally.
|
|
447
|
-
* @param recipe_id
|
|
448
|
-
* @param options Override http request option.
|
|
449
|
-
*/
|
|
450
|
-
async trackRecipeShare(recipe_id, options) {
|
|
451
|
-
let localVarPath = '/api/v1/recipes/library/{recipe_id}/share'
|
|
452
|
-
.replace(`{${"recipe_id"}}`, encodeURIComponent(String(recipe_id)));
|
|
453
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
454
|
-
const localVarRequestOptions = { method: 'POST', ...options };
|
|
455
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
456
|
-
const localVarQueryParameter = {};
|
|
457
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
458
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
459
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
460
|
-
if (Array.isArray(value)) {
|
|
461
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
acc.push([key, String(value)]);
|
|
465
|
-
}
|
|
466
|
-
return acc;
|
|
467
|
-
}, [])).toString();
|
|
468
|
-
if (queryString) {
|
|
469
|
-
localVarUrlObj.search = queryString;
|
|
470
|
-
}
|
|
471
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
472
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
473
|
-
return this.axios.request(localVarRequestOptions);
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* Increment recipe use count
|
|
477
|
-
* Increment the use counter for a recipe. Call this endpoint when an authenticated user activates or runs a recipe.
|
|
478
|
-
* @param recipe_id
|
|
479
|
-
* @param X_API_Key
|
|
480
|
-
* @param options Override http request option.
|
|
481
|
-
*/
|
|
482
|
-
async trackRecipeUse(recipe_id, X_API_Key, options) {
|
|
483
|
-
let localVarPath = '/api/v1/recipes/library/{recipe_id}/use'
|
|
484
|
-
.replace(`{${"recipe_id"}}`, encodeURIComponent(String(recipe_id)));
|
|
485
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
486
|
-
const localVarRequestOptions = { method: 'POST', ...options };
|
|
487
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
488
|
-
const localVarQueryParameter = {};
|
|
489
|
-
if (X_API_Key !== undefined && X_API_Key !== null) {
|
|
490
|
-
localVarHeaderParameter['X-API-Key'] = String(X_API_Key);
|
|
491
|
-
}
|
|
492
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
493
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
494
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
495
|
-
if (Array.isArray(value)) {
|
|
496
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
497
|
-
}
|
|
498
|
-
else {
|
|
499
|
-
acc.push([key, String(value)]);
|
|
500
|
-
}
|
|
501
|
-
return acc;
|
|
502
|
-
}, [])).toString();
|
|
503
|
-
if (queryString) {
|
|
504
|
-
localVarUrlObj.search = queryString;
|
|
505
|
-
}
|
|
506
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
507
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
508
|
-
return this.axios.request(localVarRequestOptions);
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* Update recipe
|
|
512
|
-
* Update an existing recipe in the library. Requires service credential authentication. Only provided fields are updated. The recipe is re-synced to the knowledge hub after the update.
|
|
513
|
-
* @param recipe_id
|
|
514
|
-
* @param RecipeUpdate
|
|
515
|
-
* @param X_Assistant_Service_Key
|
|
516
|
-
* @param options Override http request option.
|
|
517
|
-
*/
|
|
518
|
-
async updateRecipe(recipe_id, RecipeUpdate, X_Assistant_Service_Key, options) {
|
|
519
|
-
let localVarPath = '/api/v1/recipes/library/{recipe_id}'
|
|
520
|
-
.replace(`{${"recipe_id"}}`, encodeURIComponent(String(recipe_id)));
|
|
521
|
-
const localVarUrlObj = new URL(localVarPath, this.basePath);
|
|
522
|
-
const localVarRequestOptions = { method: 'PATCH', ...options };
|
|
523
|
-
const localVarHeaderParameter = { ...this.getHeaders() };
|
|
524
|
-
const localVarQueryParameter = {};
|
|
525
|
-
// verify required parameter 'RecipeUpdate' is not null or undefined
|
|
526
|
-
(0, common_1.assertParamExists)('updateRecipe', 'RecipeUpdate', RecipeUpdate);
|
|
527
|
-
if (X_Assistant_Service_Key !== undefined && X_Assistant_Service_Key !== null) {
|
|
528
|
-
localVarHeaderParameter['X-Assistant-Service-Key'] = String(X_Assistant_Service_Key);
|
|
529
|
-
}
|
|
530
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
531
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
532
|
-
const queryString = new URLSearchParams(Object.entries(localVarQueryParameter).reduce((acc, [key, value]) => {
|
|
533
|
-
if (Array.isArray(value)) {
|
|
534
|
-
value.forEach(v => acc.push([key, String(v)]));
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
acc.push([key, String(value)]);
|
|
538
|
-
}
|
|
539
|
-
return acc;
|
|
540
|
-
}, [])).toString();
|
|
541
|
-
if (queryString) {
|
|
542
|
-
localVarUrlObj.search = queryString;
|
|
543
|
-
}
|
|
544
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options?.headers };
|
|
545
|
-
localVarRequestOptions.data = RecipeUpdate;
|
|
546
|
-
localVarRequestOptions.url = localVarUrlObj.toString();
|
|
547
|
-
return this.axios.request(localVarRequestOptions);
|
|
548
|
-
}
|
|
549
72
|
}
|
|
550
73
|
exports.RecipesApi = RecipesApi;
|
|
551
74
|
//# sourceMappingURL=recipes-api.js.map
|