@paysponge/sdk 0.1.55 → 0.1.57
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/dist/api/generated/openapi/apis/default-api.d.ts +138 -24
- package/dist/api/generated/openapi/apis/default-api.d.ts.map +1 -1
- package/dist/api/generated/openapi/apis/default-api.js +133 -21
- package/dist/api/generated/openapi/apis/default-api.js.map +1 -1
- package/dist/api/generated/openapi/models/index.d.ts +2 -1
- package/dist/api/generated/openapi/models/index.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/index.js +2 -1
- package/dist/api/generated/openapi/models/index.js.map +1 -1
- package/dist/api/generated/openapi/models/post-api-agents-by-id-payment-methods-request.d.ts +6 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-payment-methods-request.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/post-api-agents-by-id-payment-methods-request.js +2 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-payment-methods-request.js.map +1 -1
- package/dist/api/generated/openapi/models/post-api-cards-request.d.ts +77 -0
- package/dist/api/generated/openapi/models/post-api-cards-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/{post-api-card-sessions-request.js → post-api-cards-request.js} +20 -11
- package/dist/api/generated/openapi/models/post-api-cards-request.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-persona-kyc-inquiry-request.d.ts +39 -0
- package/dist/api/generated/openapi/models/post-api-persona-kyc-inquiry-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-persona-kyc-inquiry-request.js +44 -0
- package/dist/api/generated/openapi/models/post-api-persona-kyc-inquiry-request.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +19 -2
- package/dist/cli.js.map +1 -1
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +46 -40
- package/dist/tools/definitions.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/api/generated/openapi/models/post-api-card-sessions-request.d.ts +0 -63
- package/dist/api/generated/openapi/models/post-api-card-sessions-request.d.ts.map +0 -1
- package/dist/api/generated/openapi/models/post-api-card-sessions-request.js.map +0 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { PostApiAgentKeysRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdRegenerateKeyRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAllowlistRequestToJSON, PostApiBankExternalAccountsRequestToJSON, PostApiBankOnboardRequestToJSON, PostApiBankSendRequestToJSON, PostApiBankVirtualAccountRequestToJSON, PostApiBridgeFiatCustomerKycLinkRequestToJSON, PostApiBridgeFiatCustomerSandboxRequestToJSON, PostApiBridgeFiatExternalAccountsRequestToJSON, PostApiBridgeFiatLiquidationAddressesRequestToJSON, PostApiBridgeFiatTransferTemplatesRequestToJSON, PostApiBridgeFiatTransfersRequestToJSON, PostApiCardAccessRequestsRequestToJSON,
|
|
15
|
+
import { PostApiAgentKeysRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdRegenerateKeyRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAllowlistRequestToJSON, PostApiBankExternalAccountsRequestToJSON, PostApiBankOnboardRequestToJSON, PostApiBankSendRequestToJSON, PostApiBankVirtualAccountRequestToJSON, PostApiBridgeFiatCustomerKycLinkRequestToJSON, PostApiBridgeFiatCustomerSandboxRequestToJSON, PostApiBridgeFiatExternalAccountsRequestToJSON, PostApiBridgeFiatLiquidationAddressesRequestToJSON, PostApiBridgeFiatTransferTemplatesRequestToJSON, PostApiBridgeFiatTransfersRequestToJSON, PostApiCardAccessRequestsRequestToJSON, PostApiCardUsageRequestToJSON, PostApiCardsRequestToJSON, PostApiChatMessagesRequestToJSON, PostApiChatRateLimitReportRequestToJSON, PostApiCheckoutAmazonSearchRequestToJSON, PostApiCheckoutRequestToJSON, PostApiCheckoutStreamRequestToJSON, PostApiCoinbaseOnrampCallbackRequestToJSON, PostApiCoinbaseOnrampUrlRequestToJSON, PostApiCreditCardsRequestToJSON, PostApiEmailCheckAvailabilityRequestToJSON, PostApiExtensionPushSubscribeRequestToJSON, PostApiExtensionPushUnsubscribeRequestToJSON, PostApiFaucetRequestRequestToJSON, PostApiFlowsRequestToJSON, PostApiHyperliquidRequestToJSON, PostApiInvitesRedeemRequestToJSON, PostApiInvitesRegisterDirectRequestToJSON, PostApiInvitesValidateRequestToJSON, PostApiMasterKeysRequestToJSON, PostApiMppFetchRequestToJSON, PostApiMppSessionCloseRequestToJSON, PostApiMppSessionRequestRequestToJSON, PostApiMppSessionStartRequestToJSON, PostApiOauthDeviceApproveRequestToJSON, PostApiOauthDeviceAuthorizationRequestToJSON, PostApiOauthDeviceDenyRequestToJSON, PostApiOauthDeviceTokenRequestToJSON, PostApiOnrampCryptoRequestToJSON, PostApiPaidFetchRequestToJSON, PostApiPaymentLinksRequestToJSON, PostApiPersonaKycInquiryRequestToJSON, PostApiPlansApproveRequestToJSON, PostApiPlansSubmitRequestToJSON, PostApiPolymarketRequestToJSON, PostApiRpcByChainIdRequestToJSON, PostApiSignupBonusClaimRequestToJSON, PostApiSiweGenerateRequestToJSON, PostApiSolanaSignRequestToJSON, PostApiSpendingLimitsRequestToJSON, PostApiSpongeCardCardRequestToJSON, PostApiSpongeCardCardsByCardIdSecretsRequestToJSON, PostApiSpongeCardContractsByContractIdFundRequestToJSON, PostApiSpongeCardContractsByContractIdWithdrawRequestToJSON, PostApiSpongeCardCreateCardRequestToJSON, PostApiSpongeCardCustomerRefreshRequestToJSON, PostApiSpongeCardCustomerRequestToJSON, PostApiSpongeCardFundRequestToJSON, PostApiSpongeCardOnboardRequestToJSON, PostApiSpongeCardTermsRequestToJSON, PostApiSpongeCardWithdrawRequestToJSON, PostApiStripeOnrampSessionRequestToJSON, PostApiTasksRequestToJSON, PostApiTradesProposeRequestToJSON, PostApiTransactionsBridgeRequestToJSON, PostApiTransactionsPrepareRequestToJSON, PostApiTransactionsSwapExecuteRequestToJSON, PostApiTransactionsSwapRequestToJSON, PostApiTransactionsTransferRequestToJSON, PostApiTransfersEvmRequestToJSON, PostApiTransfersSolanaRequestToJSON, PostApiTransfersTempoRequestToJSON, PostApiUsersSyncRequestToJSON, PostApiVirtualCardsRequestToJSON, PostApiWalletsByIdExportKeyRequestToJSON, PostApiWalletsByIdWithdrawRequestToJSON, PostApiWalletsMigrateQuorumRequestToJSON, PostApiWalletsPricesRequestToJSON, PostApiWalletsRequestToJSON, PostApiX402FetchRequestToJSON, PostApiX402PaymentsRequestToJSON, PostOauthAuthorizeCallbackRequestToJSON, PostOauthRegisterRequestToJSON, PostOauthRevokeRequestToJSON, PostOauthTokenRequestToJSON, PutApiAgentRequestsByIdApproveRequestToJSON, PutApiAgentRequestsByIdRespondRequestToJSON, PutApiAgentRequestsPlansByPlanIdRejectRequestToJSON, PutApiAgentsByIdRequestToJSON, PutApiFlowsByIdRequestToJSON, PutApiSpendingLimitsByIdRequestToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -3054,6 +3054,61 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
3054
3054
|
async getApiPaymentLinksPublicByPaymentLinkId(requestParameters, initOverrides) {
|
|
3055
3055
|
await this.getApiPaymentLinksPublicByPaymentLinkIdRaw(requestParameters, initOverrides);
|
|
3056
3056
|
}
|
|
3057
|
+
/**
|
|
3058
|
+
* Creates request options for getApiPersonaKycConfig without sending the request
|
|
3059
|
+
*/
|
|
3060
|
+
async getApiPersonaKycConfigRequestOpts() {
|
|
3061
|
+
const queryParameters = {};
|
|
3062
|
+
const headerParameters = {};
|
|
3063
|
+
let urlPath = `/api/persona-kyc/config`;
|
|
3064
|
+
return {
|
|
3065
|
+
path: urlPath,
|
|
3066
|
+
method: 'GET',
|
|
3067
|
+
headers: headerParameters,
|
|
3068
|
+
query: queryParameters,
|
|
3069
|
+
};
|
|
3070
|
+
}
|
|
3071
|
+
/**
|
|
3072
|
+
*/
|
|
3073
|
+
async getApiPersonaKycConfigRaw(initOverrides) {
|
|
3074
|
+
const requestOptions = await this.getApiPersonaKycConfigRequestOpts();
|
|
3075
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3076
|
+
return new runtime.VoidApiResponse(response);
|
|
3077
|
+
}
|
|
3078
|
+
/**
|
|
3079
|
+
*/
|
|
3080
|
+
async getApiPersonaKycConfig(initOverrides) {
|
|
3081
|
+
await this.getApiPersonaKycConfigRaw(initOverrides);
|
|
3082
|
+
}
|
|
3083
|
+
/**
|
|
3084
|
+
* Creates request options for getApiPersonaKycProfile without sending the request
|
|
3085
|
+
*/
|
|
3086
|
+
async getApiPersonaKycProfileRequestOpts(requestParameters) {
|
|
3087
|
+
const queryParameters = {};
|
|
3088
|
+
if (requestParameters['forceRefresh'] != null) {
|
|
3089
|
+
queryParameters['forceRefresh'] = requestParameters['forceRefresh'];
|
|
3090
|
+
}
|
|
3091
|
+
const headerParameters = {};
|
|
3092
|
+
let urlPath = `/api/persona-kyc/profile`;
|
|
3093
|
+
return {
|
|
3094
|
+
path: urlPath,
|
|
3095
|
+
method: 'GET',
|
|
3096
|
+
headers: headerParameters,
|
|
3097
|
+
query: queryParameters,
|
|
3098
|
+
};
|
|
3099
|
+
}
|
|
3100
|
+
/**
|
|
3101
|
+
*/
|
|
3102
|
+
async getApiPersonaKycProfileRaw(requestParameters, initOverrides) {
|
|
3103
|
+
const requestOptions = await this.getApiPersonaKycProfileRequestOpts(requestParameters);
|
|
3104
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3105
|
+
return new runtime.VoidApiResponse(response);
|
|
3106
|
+
}
|
|
3107
|
+
/**
|
|
3108
|
+
*/
|
|
3109
|
+
async getApiPersonaKycProfile(requestParameters = {}, initOverrides) {
|
|
3110
|
+
await this.getApiPersonaKycProfileRaw(requestParameters, initOverrides);
|
|
3111
|
+
}
|
|
3057
3112
|
/**
|
|
3058
3113
|
* Creates request options for getApiPromoKv2Jm7DZOIDGi6D2Freemoney without sending the request
|
|
3059
3114
|
*/
|
|
@@ -5595,66 +5650,66 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5595
5650
|
await this.postApiCardAccessRequestsRaw(requestParameters, initOverrides);
|
|
5596
5651
|
}
|
|
5597
5652
|
/**
|
|
5598
|
-
* Creates request options for
|
|
5653
|
+
* Creates request options for postApiCardUsage without sending the request
|
|
5599
5654
|
*/
|
|
5600
|
-
async
|
|
5601
|
-
if (requestParameters['
|
|
5602
|
-
throw new runtime.RequiredError('
|
|
5655
|
+
async postApiCardUsageRequestOpts(requestParameters) {
|
|
5656
|
+
if (requestParameters['postApiCardUsageRequest'] == null) {
|
|
5657
|
+
throw new runtime.RequiredError('postApiCardUsageRequest', 'Required parameter "postApiCardUsageRequest" was null or undefined when calling postApiCardUsage().');
|
|
5603
5658
|
}
|
|
5604
5659
|
const queryParameters = {};
|
|
5605
5660
|
const headerParameters = {};
|
|
5606
5661
|
headerParameters['Content-Type'] = 'application/json';
|
|
5607
|
-
let urlPath = `/api/card-
|
|
5662
|
+
let urlPath = `/api/card-usage`;
|
|
5608
5663
|
return {
|
|
5609
5664
|
path: urlPath,
|
|
5610
5665
|
method: 'POST',
|
|
5611
5666
|
headers: headerParameters,
|
|
5612
5667
|
query: queryParameters,
|
|
5613
|
-
body:
|
|
5668
|
+
body: PostApiCardUsageRequestToJSON(requestParameters['postApiCardUsageRequest']),
|
|
5614
5669
|
};
|
|
5615
5670
|
}
|
|
5616
5671
|
/**
|
|
5617
5672
|
*/
|
|
5618
|
-
async
|
|
5619
|
-
const requestOptions = await this.
|
|
5673
|
+
async postApiCardUsageRaw(requestParameters, initOverrides) {
|
|
5674
|
+
const requestOptions = await this.postApiCardUsageRequestOpts(requestParameters);
|
|
5620
5675
|
const response = await this.request(requestOptions, initOverrides);
|
|
5621
5676
|
return new runtime.VoidApiResponse(response);
|
|
5622
5677
|
}
|
|
5623
5678
|
/**
|
|
5624
5679
|
*/
|
|
5625
|
-
async
|
|
5626
|
-
await this.
|
|
5680
|
+
async postApiCardUsage(requestParameters, initOverrides) {
|
|
5681
|
+
await this.postApiCardUsageRaw(requestParameters, initOverrides);
|
|
5627
5682
|
}
|
|
5628
5683
|
/**
|
|
5629
|
-
* Creates request options for
|
|
5684
|
+
* Creates request options for postApiCards without sending the request
|
|
5630
5685
|
*/
|
|
5631
|
-
async
|
|
5632
|
-
if (requestParameters['
|
|
5633
|
-
throw new runtime.RequiredError('
|
|
5686
|
+
async postApiCardsRequestOpts(requestParameters) {
|
|
5687
|
+
if (requestParameters['postApiCardsRequest'] == null) {
|
|
5688
|
+
throw new runtime.RequiredError('postApiCardsRequest', 'Required parameter "postApiCardsRequest" was null or undefined when calling postApiCards().');
|
|
5634
5689
|
}
|
|
5635
5690
|
const queryParameters = {};
|
|
5636
5691
|
const headerParameters = {};
|
|
5637
5692
|
headerParameters['Content-Type'] = 'application/json';
|
|
5638
|
-
let urlPath = `/api/
|
|
5693
|
+
let urlPath = `/api/cards`;
|
|
5639
5694
|
return {
|
|
5640
5695
|
path: urlPath,
|
|
5641
5696
|
method: 'POST',
|
|
5642
5697
|
headers: headerParameters,
|
|
5643
5698
|
query: queryParameters,
|
|
5644
|
-
body:
|
|
5699
|
+
body: PostApiCardsRequestToJSON(requestParameters['postApiCardsRequest']),
|
|
5645
5700
|
};
|
|
5646
5701
|
}
|
|
5647
5702
|
/**
|
|
5648
5703
|
*/
|
|
5649
|
-
async
|
|
5650
|
-
const requestOptions = await this.
|
|
5704
|
+
async postApiCardsRaw(requestParameters, initOverrides) {
|
|
5705
|
+
const requestOptions = await this.postApiCardsRequestOpts(requestParameters);
|
|
5651
5706
|
const response = await this.request(requestOptions, initOverrides);
|
|
5652
5707
|
return new runtime.VoidApiResponse(response);
|
|
5653
5708
|
}
|
|
5654
5709
|
/**
|
|
5655
5710
|
*/
|
|
5656
|
-
async
|
|
5657
|
-
await this.
|
|
5711
|
+
async postApiCards(requestParameters, initOverrides) {
|
|
5712
|
+
await this.postApiCardsRaw(requestParameters, initOverrides);
|
|
5658
5713
|
}
|
|
5659
5714
|
/**
|
|
5660
5715
|
* Creates request options for postApiChatMessages without sending the request
|
|
@@ -6682,6 +6737,37 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6682
6737
|
async postApiPaymentLinks(requestParameters, initOverrides) {
|
|
6683
6738
|
await this.postApiPaymentLinksRaw(requestParameters, initOverrides);
|
|
6684
6739
|
}
|
|
6740
|
+
/**
|
|
6741
|
+
* Creates request options for postApiPersonaKycInquiry without sending the request
|
|
6742
|
+
*/
|
|
6743
|
+
async postApiPersonaKycInquiryRequestOpts(requestParameters) {
|
|
6744
|
+
if (requestParameters['postApiPersonaKycInquiryRequest'] == null) {
|
|
6745
|
+
throw new runtime.RequiredError('postApiPersonaKycInquiryRequest', 'Required parameter "postApiPersonaKycInquiryRequest" was null or undefined when calling postApiPersonaKycInquiry().');
|
|
6746
|
+
}
|
|
6747
|
+
const queryParameters = {};
|
|
6748
|
+
const headerParameters = {};
|
|
6749
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6750
|
+
let urlPath = `/api/persona-kyc/inquiry`;
|
|
6751
|
+
return {
|
|
6752
|
+
path: urlPath,
|
|
6753
|
+
method: 'POST',
|
|
6754
|
+
headers: headerParameters,
|
|
6755
|
+
query: queryParameters,
|
|
6756
|
+
body: PostApiPersonaKycInquiryRequestToJSON(requestParameters['postApiPersonaKycInquiryRequest']),
|
|
6757
|
+
};
|
|
6758
|
+
}
|
|
6759
|
+
/**
|
|
6760
|
+
*/
|
|
6761
|
+
async postApiPersonaKycInquiryRaw(requestParameters, initOverrides) {
|
|
6762
|
+
const requestOptions = await this.postApiPersonaKycInquiryRequestOpts(requestParameters);
|
|
6763
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6764
|
+
return new runtime.VoidApiResponse(response);
|
|
6765
|
+
}
|
|
6766
|
+
/**
|
|
6767
|
+
*/
|
|
6768
|
+
async postApiPersonaKycInquiry(requestParameters, initOverrides) {
|
|
6769
|
+
await this.postApiPersonaKycInquiryRaw(requestParameters, initOverrides);
|
|
6770
|
+
}
|
|
6685
6771
|
/**
|
|
6686
6772
|
* Creates request options for postApiPlansApprove without sending the request
|
|
6687
6773
|
*/
|
|
@@ -8096,6 +8182,32 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8096
8182
|
async postApiWebhooksBridge(initOverrides) {
|
|
8097
8183
|
await this.postApiWebhooksBridgeRaw(initOverrides);
|
|
8098
8184
|
}
|
|
8185
|
+
/**
|
|
8186
|
+
* Creates request options for postApiWebhooksPersona without sending the request
|
|
8187
|
+
*/
|
|
8188
|
+
async postApiWebhooksPersonaRequestOpts() {
|
|
8189
|
+
const queryParameters = {};
|
|
8190
|
+
const headerParameters = {};
|
|
8191
|
+
let urlPath = `/api/webhooks/persona`;
|
|
8192
|
+
return {
|
|
8193
|
+
path: urlPath,
|
|
8194
|
+
method: 'POST',
|
|
8195
|
+
headers: headerParameters,
|
|
8196
|
+
query: queryParameters,
|
|
8197
|
+
};
|
|
8198
|
+
}
|
|
8199
|
+
/**
|
|
8200
|
+
*/
|
|
8201
|
+
async postApiWebhooksPersonaRaw(initOverrides) {
|
|
8202
|
+
const requestOptions = await this.postApiWebhooksPersonaRequestOpts();
|
|
8203
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
8204
|
+
return new runtime.VoidApiResponse(response);
|
|
8205
|
+
}
|
|
8206
|
+
/**
|
|
8207
|
+
*/
|
|
8208
|
+
async postApiWebhooksPersona(initOverrides) {
|
|
8209
|
+
await this.postApiWebhooksPersonaRaw(initOverrides);
|
|
8210
|
+
}
|
|
8099
8211
|
/**
|
|
8100
8212
|
* Creates request options for postApiWebhooksStripeOnramp without sending the request
|
|
8101
8213
|
*/
|