@paxosglobal/sdk 0.0.0-stage → 0.1.0

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.
Files changed (212) hide show
  1. package/AGENTS.md +268 -0
  2. package/CHANGELOG.md +35 -0
  3. package/LICENSE +191 -0
  4. package/README.md +445 -2
  5. package/dist/auth.d.ts +60 -0
  6. package/dist/auth.js +248 -0
  7. package/dist/auth.js.map +1 -0
  8. package/dist/client.d.ts +353 -0
  9. package/dist/client.js +967 -0
  10. package/dist/client.js.map +1 -0
  11. package/dist/constants.d.ts +16 -0
  12. package/dist/constants.js +17 -0
  13. package/dist/constants.js.map +1 -0
  14. package/dist/decimal-fields.d.ts +16 -0
  15. package/dist/decimal-fields.js +570 -0
  16. package/dist/decimal-fields.js.map +1 -0
  17. package/dist/decimal.d.ts +25 -0
  18. package/dist/decimal.js +93 -0
  19. package/dist/decimal.js.map +1 -0
  20. package/dist/decode.d.ts +34 -0
  21. package/dist/decode.js +118 -0
  22. package/dist/decode.js.map +1 -0
  23. package/dist/enums.d.ts +1080 -0
  24. package/dist/enums.js +1031 -0
  25. package/dist/enums.js.map +1 -0
  26. package/dist/errors.d.ts +142 -0
  27. package/dist/errors.js +261 -0
  28. package/dist/errors.js.map +1 -0
  29. package/dist/generated-types.d.ts +13629 -0
  30. package/dist/generated-types.js +3 -0
  31. package/dist/generated-types.js.map +1 -0
  32. package/dist/index.d.ts +32 -0
  33. package/dist/index.js +31 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/models.d.ts +299 -0
  36. package/dist/models.js +3 -0
  37. package/dist/models.js.map +1 -0
  38. package/dist/paxos-client.d.ts +107 -0
  39. package/dist/paxos-client.js +157 -0
  40. package/dist/paxos-client.js.map +1 -0
  41. package/dist/query-keys.d.ts +1 -0
  42. package/dist/query-keys.js +31 -0
  43. package/dist/query-keys.js.map +1 -0
  44. package/dist/response-defaults.d.ts +2 -0
  45. package/dist/response-defaults.js +109 -0
  46. package/dist/response-defaults.js.map +1 -0
  47. package/dist/services/account-members.d.ts +32 -0
  48. package/dist/services/account-members.js +46 -0
  49. package/dist/services/account-members.js.map +1 -0
  50. package/dist/services/accounts.d.ts +74 -0
  51. package/dist/services/accounts.js +71 -0
  52. package/dist/services/accounts.js.map +1 -0
  53. package/dist/services/address-verification.d.ts +72 -0
  54. package/dist/services/address-verification.js +64 -0
  55. package/dist/services/address-verification.js.map +1 -0
  56. package/dist/services/api-credentials.d.ts +44 -0
  57. package/dist/services/api-credentials.js +42 -0
  58. package/dist/services/api-credentials.js.map +1 -0
  59. package/dist/services/claims.d.ts +68 -0
  60. package/dist/services/claims.js +67 -0
  61. package/dist/services/claims.js.map +1 -0
  62. package/dist/services/cross-chain-transfer.d.ts +71 -0
  63. package/dist/services/cross-chain-transfer.js +68 -0
  64. package/dist/services/cross-chain-transfer.js.map +1 -0
  65. package/dist/services/crypto-deposits.d.ts +30 -0
  66. package/dist/services/crypto-deposits.js +39 -0
  67. package/dist/services/crypto-deposits.js.map +1 -0
  68. package/dist/services/crypto-withdrawals.d.ts +60 -0
  69. package/dist/services/crypto-withdrawals.js +42 -0
  70. package/dist/services/crypto-withdrawals.js.map +1 -0
  71. package/dist/services/deposit-addresses.d.ts +54 -0
  72. package/dist/services/deposit-addresses.js +36 -0
  73. package/dist/services/deposit-addresses.js.map +1 -0
  74. package/dist/services/events.d.ts +53 -0
  75. package/dist/services/events.js +39 -0
  76. package/dist/services/events.js.map +1 -0
  77. package/dist/services/exchange.d.ts +52 -0
  78. package/dist/services/exchange.js +30 -0
  79. package/dist/services/exchange.js.map +1 -0
  80. package/dist/services/fees.d.ts +15 -0
  81. package/dist/services/fees.js +24 -0
  82. package/dist/services/fees.js.map +1 -0
  83. package/dist/services/fiat-transfers.d.ts +133 -0
  84. package/dist/services/fiat-transfers.js +127 -0
  85. package/dist/services/fiat-transfers.js.map +1 -0
  86. package/dist/services/identity-controls.d.ts +43 -0
  87. package/dist/services/identity-controls.js +42 -0
  88. package/dist/services/identity-controls.js.map +1 -0
  89. package/dist/services/identity-documents.d.ts +45 -0
  90. package/dist/services/identity-documents.js +50 -0
  91. package/dist/services/identity-documents.js.map +1 -0
  92. package/dist/services/identity.d.ts +122 -0
  93. package/dist/services/identity.js +66 -0
  94. package/dist/services/identity.js.map +1 -0
  95. package/dist/services/index.d.ts +89 -0
  96. package/dist/services/index.js +55 -0
  97. package/dist/services/index.js.map +1 -0
  98. package/dist/services/institution-members.d.ts +30 -0
  99. package/dist/services/institution-members.js +44 -0
  100. package/dist/services/institution-members.js.map +1 -0
  101. package/dist/services/internal-transfers.d.ts +15 -0
  102. package/dist/services/internal-transfers.js +26 -0
  103. package/dist/services/internal-transfers.js.map +1 -0
  104. package/dist/services/issuer-quotes.d.ts +72 -0
  105. package/dist/services/issuer-quotes.js +66 -0
  106. package/dist/services/issuer-quotes.js.map +1 -0
  107. package/dist/services/limits.d.ts +20 -0
  108. package/dist/services/limits.js +23 -0
  109. package/dist/services/limits.js.map +1 -0
  110. package/dist/services/market-data.d.ts +15 -0
  111. package/dist/services/market-data.js +23 -0
  112. package/dist/services/market-data.js.map +1 -0
  113. package/dist/services/monitoring-addresses.d.ts +64 -0
  114. package/dist/services/monitoring-addresses.js +68 -0
  115. package/dist/services/monitoring-addresses.js.map +1 -0
  116. package/dist/services/orchestration-rules.d.ts +53 -0
  117. package/dist/services/orchestration-rules.js +47 -0
  118. package/dist/services/orchestration-rules.js.map +1 -0
  119. package/dist/services/orchestrations.d.ts +70 -0
  120. package/dist/services/orchestrations.js +45 -0
  121. package/dist/services/orchestrations.js.map +1 -0
  122. package/dist/services/orders.d.ts +86 -0
  123. package/dist/services/orders.js +67 -0
  124. package/dist/services/orders.js.map +1 -0
  125. package/dist/services/paxos-transfers.d.ts +24 -0
  126. package/dist/services/paxos-transfers.js +35 -0
  127. package/dist/services/paxos-transfers.js.map +1 -0
  128. package/dist/services/payments.d.ts +46 -0
  129. package/dist/services/payments.js +35 -0
  130. package/dist/services/payments.js.map +1 -0
  131. package/dist/services/payout-groups.d.ts +59 -0
  132. package/dist/services/payout-groups.js +59 -0
  133. package/dist/services/payout-groups.js.map +1 -0
  134. package/dist/services/pricing.d.ts +67 -0
  135. package/dist/services/pricing.js +42 -0
  136. package/dist/services/pricing.js.map +1 -0
  137. package/dist/services/profiles.d.ts +106 -0
  138. package/dist/services/profiles.js +84 -0
  139. package/dist/services/profiles.js.map +1 -0
  140. package/dist/services/quote-executions.d.ts +51 -0
  141. package/dist/services/quote-executions.js +41 -0
  142. package/dist/services/quote-executions.js.map +1 -0
  143. package/dist/services/quotes.d.ts +44 -0
  144. package/dist/services/quotes.js +48 -0
  145. package/dist/services/quotes.js.map +1 -0
  146. package/dist/services/reward-addresses.d.ts +80 -0
  147. package/dist/services/reward-addresses.js +79 -0
  148. package/dist/services/reward-addresses.js.map +1 -0
  149. package/dist/services/rewards-statements.d.ts +35 -0
  150. package/dist/services/rewards-statements.js +32 -0
  151. package/dist/services/rewards-statements.js.map +1 -0
  152. package/dist/services/rewards.d.ts +34 -0
  153. package/dist/services/rewards.js +37 -0
  154. package/dist/services/rewards.js.map +1 -0
  155. package/dist/services/sandbox-deposits.d.ts +15 -0
  156. package/dist/services/sandbox-deposits.js +22 -0
  157. package/dist/services/sandbox-deposits.js.map +1 -0
  158. package/dist/services/sandbox-fiat-transfers.d.ts +15 -0
  159. package/dist/services/sandbox-fiat-transfers.js +24 -0
  160. package/dist/services/sandbox-fiat-transfers.js.map +1 -0
  161. package/dist/services/sandbox-identity.d.ts +39 -0
  162. package/dist/services/sandbox-identity.js +60 -0
  163. package/dist/services/sandbox-identity.js.map +1 -0
  164. package/dist/services/settlement.d.ts +76 -0
  165. package/dist/services/settlement.js +79 -0
  166. package/dist/services/settlement.js.map +1 -0
  167. package/dist/services/stablecoin-conversion.d.ts +70 -0
  168. package/dist/services/stablecoin-conversion.js +65 -0
  169. package/dist/services/stablecoin-conversion.js.map +1 -0
  170. package/dist/services/statements.d.ts +44 -0
  171. package/dist/services/statements.js +35 -0
  172. package/dist/services/statements.js.map +1 -0
  173. package/dist/services/tax-documentation.d.ts +21 -0
  174. package/dist/services/tax-documentation.js +33 -0
  175. package/dist/services/tax-documentation.js.map +1 -0
  176. package/dist/services/tax-forms.d.ts +45 -0
  177. package/dist/services/tax-forms.js +38 -0
  178. package/dist/services/tax-forms.js.map +1 -0
  179. package/dist/services/transfers.d.ts +96 -0
  180. package/dist/services/transfers.js +37 -0
  181. package/dist/services/transfers.js.map +1 -0
  182. package/dist/services/travel-rule.d.ts +32 -0
  183. package/dist/services/travel-rule.js +30 -0
  184. package/dist/services/travel-rule.js.map +1 -0
  185. package/dist/services/user-audit-logs.d.ts +45 -0
  186. package/dist/services/user-audit-logs.js +27 -0
  187. package/dist/services/user-audit-logs.js.map +1 -0
  188. package/dist/services/webhooks.d.ts +58 -0
  189. package/dist/services/webhooks.js +42 -0
  190. package/dist/services/webhooks.js.map +1 -0
  191. package/dist/signing.d.ts +33 -0
  192. package/dist/signing.js +186 -0
  193. package/dist/signing.js.map +1 -0
  194. package/dist/testing/fixtures.d.ts +40 -0
  195. package/dist/testing/fixtures.js +131 -0
  196. package/dist/testing/fixtures.js.map +1 -0
  197. package/dist/testing/index.d.ts +28 -0
  198. package/dist/testing/index.js +28 -0
  199. package/dist/testing/index.js.map +1 -0
  200. package/dist/testing/mock-server.d.ts +121 -0
  201. package/dist/testing/mock-server.js +276 -0
  202. package/dist/testing/mock-server.js.map +1 -0
  203. package/dist/timeouts.d.ts +13 -0
  204. package/dist/timeouts.js +71 -0
  205. package/dist/timeouts.js.map +1 -0
  206. package/dist/types.d.ts +6 -0
  207. package/dist/types.js +7 -0
  208. package/dist/types.js.map +1 -0
  209. package/dist/version.d.ts +1 -0
  210. package/dist/version.js +2 -0
  211. package/dist/version.js.map +1 -0
  212. package/package.json +67 -4
@@ -0,0 +1,48 @@
1
+ // Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
2
+ /**
3
+ * QuotesService — Quotes are "held rates" offered by Paxos to buy or sell
4
+ * assets at a specific price within a period of time - for example, the option
5
+ * to buy BTC within the next 30 seconds for $8,000.
6
+ *
7
+ * The typical Quotes workflow is as follows:
8
+ *
9
+ * 1. Call {@link QuotesService.listQuotes | List Quotes} to get the latest
10
+ * available quoted prices for the assets you want to buy or sell.
11
+ * 2. Present the offered price to one or more end-users, with a timer
12
+ * indicating the time to expiration.
13
+ * 3. If a user accepts the price, call
14
+ * {@link QuoteExecutionsService.createQuoteExecution | Create Quote Execution}
15
+ * with the amount to buy or sell.
16
+ * 4. Call
17
+ * {@link QuoteExecutionsService.getQuoteExecution | Get Quote Execution} to
18
+ * monitor for completion and know when the funds from the execution are
19
+ * available.
20
+ *
21
+ * It's important to show end-users the latest available price. If you cache
22
+ * prices to show them to multiple users, you should refresh the cache once per
23
+ * second.
24
+ *
25
+ * You can call
26
+ * {@link QuoteExecutionsService.listQuoteExecutions | List Quote Executions}
27
+ * to review or construct reports on quote execution activity.
28
+ *
29
+ * Access via `client.quotes`.
30
+ */
31
+ export class QuotesService {
32
+ client;
33
+ /** @internal */
34
+ constructor(client) {
35
+ this.client = client;
36
+ }
37
+ /**
38
+ * List Quotes
39
+ *
40
+ * Requires scope: exchange:read_quote
41
+ */
42
+ async listQuotes(params, opts) {
43
+ return this.client.get("/quotes", params, opts, {
44
+ responseSchema: "ListQuotesResponse",
45
+ });
46
+ }
47
+ }
48
+ //# sourceMappingURL=quotes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/services/quotes.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAUpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,OAAO,aAAa;IAEK;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,KAAK,CAAC,UAAU,CAAC,MAAyB,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE;YAC3E,cAAc,EAAE,oBAAoB;SACrC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport type { HttpClient, RequestOptions, WithRaw } from \"../client.js\";\nimport type { KnownMarket } from \"../enums.js\";\nimport type { ListQuotesResponse } from \"../models.js\";\n\nexport interface ListQuotesParams {\n markets: (KnownMarket | (string & {}))[];\n}\n\n/**\n * QuotesService — Quotes are \"held rates\" offered by Paxos to buy or sell\n * assets at a specific price within a period of time - for example, the option\n * to buy BTC within the next 30 seconds for $8,000.\n *\n * The typical Quotes workflow is as follows:\n *\n * 1. Call {@link QuotesService.listQuotes | List Quotes} to get the latest\n * available quoted prices for the assets you want to buy or sell.\n * 2. Present the offered price to one or more end-users, with a timer\n * indicating the time to expiration.\n * 3. If a user accepts the price, call\n * {@link QuoteExecutionsService.createQuoteExecution | Create Quote Execution}\n * with the amount to buy or sell.\n * 4. Call\n * {@link QuoteExecutionsService.getQuoteExecution | Get Quote Execution} to\n * monitor for completion and know when the funds from the execution are\n * available.\n *\n * It's important to show end-users the latest available price. If you cache\n * prices to show them to multiple users, you should refresh the cache once per\n * second.\n *\n * You can call\n * {@link QuoteExecutionsService.listQuoteExecutions | List Quote Executions}\n * to review or construct reports on quote execution activity.\n *\n * Access via `client.quotes`.\n */\nexport class QuotesService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * List Quotes\n *\n * Requires scope: exchange:read_quote\n */\n async listQuotes(params?: ListQuotesParams, opts?: RequestOptions): Promise<WithRaw<ListQuotesResponse>> {\n return this.client.get<WithRaw<ListQuotesResponse>>(\"/quotes\", params, opts, {\n responseSchema: \"ListQuotesResponse\",\n });\n }\n}\n"]}
@@ -0,0 +1,80 @@
1
+ import type { RequestOptions, PageIterator, WithRaw } from "../client.js";
2
+ import type { KnownAttributionLedgerType, KnownOnchainStatusType, KnownSortOrder } from "../enums.js";
3
+ import type { AttributionAddress, BatchCreateAttributionAddressesRequest, BatchCreateAttributionAddressesResponse, CreateAttributionAddressRequest, CreateAttributionAddressResponse, DeleteAttributionAddressResponse, UpdateAttributionAddressResponse } from "../models.js";
4
+ export interface ListAttributionAddressesParams {
5
+ limit?: number;
6
+ /** Optional for public API - extracted from auth context if not provided. */
7
+ customer_id?: string;
8
+ ledger?: KnownAttributionLedgerType | (string & {});
9
+ address?: string;
10
+ /** Optional, sort order for results based on created_at. The default sort order is DESC. */
11
+ order?: KnownSortOrder | (string & {});
12
+ /** Optional, address id. */
13
+ id?: string;
14
+ /** Optional, filter by payout group. Pass the zero UUID (00000000-0000-0000-0000-000000000000) to return only addresses with no payout group assigned. */
15
+ payout_group_id?: string;
16
+ /** When true, fetch and include balance for each address */
17
+ include_balance?: boolean;
18
+ /** Point-in-time for balance query (optional, defaults to now) */
19
+ balance_timestamp?: string;
20
+ /** When set, only addresses belonging to payout groups with this asset type are returned. */
21
+ asset_type?: string;
22
+ /** Optional, filter by one or more onchain registration statuses. */
23
+ onchain_statuses?: (KnownOnchainStatusType | (string & {}))[];
24
+ /** Optional, filter by one or more address-ownership proof statuses ("APPROVED", "PENDING", "EXPIRED"). */
25
+ verification_statuses?: string[];
26
+ /** Resume from a cursor previously returned as a page's `nextCursor`. */
27
+ page_cursor?: string;
28
+ }
29
+ /**
30
+ * RewardAddressesService — Reward addresses are blockchain addresses
31
+ * registered for reward attribution.
32
+ *
33
+ * Custody Rewards: For EVM chains, Paxos registers these addresses on-chain
34
+ * for reward calculation and accrual in the token contract. For Solana,
35
+ * provide the owner account (not a token account) — Paxos will derive and
36
+ * register the associated token account on-chain for the given asset.
37
+ * Providing a token account will result in a derived address with no meaning.
38
+ * For other non-EVM chains, Paxos tracks on-chain activity for custody reward
39
+ * calculation.
40
+ *
41
+ * Non-Custody Rewards: Paxos tracks on-chain activity for these addresses to
42
+ * calculate and distribute non-custody rewards to your organization.
43
+ *
44
+ * *These endpoints are only relevant for whitelisted Rewards partners.*
45
+ *
46
+ * Access via `client.rewardAddresses`.
47
+ */
48
+ export declare class RewardAddressesService {
49
+ private readonly client;
50
+ /**
51
+ * List reward addresses
52
+ *
53
+ * Requires scope: rewards:read_monitoring_address
54
+ */
55
+ listAttributionAddresses(params?: ListAttributionAddressesParams, opts?: RequestOptions): PageIterator<WithRaw<AttributionAddress>>;
56
+ /**
57
+ * Create a reward address
58
+ *
59
+ * Requires scope: rewards:write_monitoring_address
60
+ */
61
+ createAttributionAddress(request: CreateAttributionAddressRequest, opts?: RequestOptions): Promise<WithRaw<CreateAttributionAddressResponse>>;
62
+ /**
63
+ * Batch create reward addresses
64
+ *
65
+ * Requires scope: rewards:write_monitoring_address
66
+ */
67
+ batchCreateAttributionAddresses(request: BatchCreateAttributionAddressesRequest, opts?: RequestOptions): Promise<WithRaw<BatchCreateAttributionAddressesResponse>>;
68
+ /**
69
+ * Delete a reward address
70
+ *
71
+ * Requires scope: rewards:write_monitoring_address
72
+ */
73
+ deleteAttributionAddress(id: string, opts?: RequestOptions): Promise<WithRaw<DeleteAttributionAddressResponse>>;
74
+ /**
75
+ * Update a reward address
76
+ *
77
+ * Requires scope: rewards:write_monitoring_address
78
+ */
79
+ updateAttributionAddress(id: string, request: AttributionAddress, opts?: RequestOptions): Promise<WithRaw<UpdateAttributionAddressResponse>>;
80
+ }
@@ -0,0 +1,79 @@
1
+ // Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
2
+ import { buildPath } from "../client.js";
3
+ /**
4
+ * RewardAddressesService — Reward addresses are blockchain addresses
5
+ * registered for reward attribution.
6
+ *
7
+ * Custody Rewards: For EVM chains, Paxos registers these addresses on-chain
8
+ * for reward calculation and accrual in the token contract. For Solana,
9
+ * provide the owner account (not a token account) — Paxos will derive and
10
+ * register the associated token account on-chain for the given asset.
11
+ * Providing a token account will result in a derived address with no meaning.
12
+ * For other non-EVM chains, Paxos tracks on-chain activity for custody reward
13
+ * calculation.
14
+ *
15
+ * Non-Custody Rewards: Paxos tracks on-chain activity for these addresses to
16
+ * calculate and distribute non-custody rewards to your organization.
17
+ *
18
+ * *These endpoints are only relevant for whitelisted Rewards partners.*
19
+ *
20
+ * Access via `client.rewardAddresses`.
21
+ */
22
+ export class RewardAddressesService {
23
+ client;
24
+ /** @internal */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * List reward addresses
30
+ *
31
+ * Requires scope: rewards:read_monitoring_address
32
+ */
33
+ listAttributionAddresses(params, opts) {
34
+ return this.client.paginate("/rewards/addresses", "items", params, opts, {
35
+ responseSchema: "ListAttributionAddressesResponse",
36
+ });
37
+ }
38
+ /**
39
+ * Create a reward address
40
+ *
41
+ * Requires scope: rewards:write_monitoring_address
42
+ */
43
+ async createAttributionAddress(request, opts) {
44
+ return this.client.post("/rewards/addresses", request, opts, {
45
+ responseSchema: "CreateAttributionAddressResponse",
46
+ requestSchema: "CreateAttributionAddressRequest",
47
+ });
48
+ }
49
+ /**
50
+ * Batch create reward addresses
51
+ *
52
+ * Requires scope: rewards:write_monitoring_address
53
+ */
54
+ async batchCreateAttributionAddresses(request, opts) {
55
+ return this.client.post("/rewards/addresses/batch", request, opts, {
56
+ responseSchema: "BatchCreateAttributionAddressesResponse",
57
+ requestSchema: "BatchCreateAttributionAddressesRequest",
58
+ });
59
+ }
60
+ /**
61
+ * Delete a reward address
62
+ *
63
+ * Requires scope: rewards:write_monitoring_address
64
+ */
65
+ async deleteAttributionAddress(id, opts) {
66
+ return this.client.delete(buildPath("/rewards/addresses/{id}", { id: id }), undefined, opts, {
67
+ responseSchema: "DeleteAttributionAddressResponse",
68
+ });
69
+ }
70
+ /**
71
+ * Update a reward address
72
+ *
73
+ * Requires scope: rewards:write_monitoring_address
74
+ */
75
+ async updateAttributionAddress(id, request, opts) {
76
+ return this.client.put(buildPath("/rewards/addresses/{id}", { id: id }), request, opts, { responseSchema: "UpdateAttributionAddressResponse", requestSchema: "AttributionAddress" });
77
+ }
78
+ }
79
+ //# sourceMappingURL=reward-addresses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward-addresses.js","sourceRoot":"","sources":["../../src/services/reward-addresses.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAuCzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,sBAAsB;IAEJ;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,wBAAwB,CACtB,MAAuC,EACvC,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAA8B,oBAAoB,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;YACpG,cAAc,EAAE,kCAAkC;SACnD,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAwC,EACxC,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA4C,oBAAoB,EAAE,OAAO,EAAE,IAAI,EAAE;YACtG,cAAc,EAAE,kCAAkC;YAClD,aAAa,EAAE,iCAAiC;SACjD,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,+BAA+B,CACnC,OAA+C,EAC/C,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,0BAA0B,EAC1B,OAAO,EACP,IAAI,EACJ;YACE,cAAc,EAAE,yCAAyC;YACzD,aAAa,EAAE,wCAAwC;SACxD,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,wBAAwB,CAC5B,EAAU,EACV,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,yBAAyB,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3F,cAAc,EAAE,kCAAkC;SACnD,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,wBAAwB,CAC5B,EAAU,EACV,OAA2B,EAC3B,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACpB,SAAS,CAAC,yBAAyB,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAChD,OAAO,EACP,IAAI,EACJ,EAAE,cAAc,EAAE,kCAAkC,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAC5F,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport { buildPath } from \"../client.js\";\nimport type { HttpClient, RequestOptions, PageIterator, WithRaw } from \"../client.js\";\nimport type { KnownAttributionLedgerType, KnownOnchainStatusType, KnownSortOrder } from \"../enums.js\";\nimport type {\n AttributionAddress,\n BatchCreateAttributionAddressesRequest,\n BatchCreateAttributionAddressesResponse,\n CreateAttributionAddressRequest,\n CreateAttributionAddressResponse,\n DeleteAttributionAddressResponse,\n UpdateAttributionAddressResponse,\n} from \"../models.js\";\n\nexport interface ListAttributionAddressesParams {\n limit?: number;\n /** Optional for public API - extracted from auth context if not provided. */\n customer_id?: string;\n ledger?: KnownAttributionLedgerType | (string & {});\n address?: string;\n /** Optional, sort order for results based on created_at. The default sort order is DESC. */\n order?: KnownSortOrder | (string & {});\n /** Optional, address id. */\n id?: string;\n /** Optional, filter by payout group. Pass the zero UUID (00000000-0000-0000-0000-000000000000) to return only addresses with no payout group assigned. */\n payout_group_id?: string;\n /** When true, fetch and include balance for each address */\n include_balance?: boolean;\n /** Point-in-time for balance query (optional, defaults to now) */\n balance_timestamp?: string;\n /** When set, only addresses belonging to payout groups with this asset type are returned. */\n asset_type?: string;\n /** Optional, filter by one or more onchain registration statuses. */\n onchain_statuses?: (KnownOnchainStatusType | (string & {}))[];\n /** Optional, filter by one or more address-ownership proof statuses (\"APPROVED\", \"PENDING\", \"EXPIRED\"). */\n verification_statuses?: string[];\n /** Resume from a cursor previously returned as a page's `nextCursor`. */\n page_cursor?: string;\n}\n\n/**\n * RewardAddressesService — Reward addresses are blockchain addresses\n * registered for reward attribution.\n *\n * Custody Rewards: For EVM chains, Paxos registers these addresses on-chain\n * for reward calculation and accrual in the token contract. For Solana,\n * provide the owner account (not a token account) — Paxos will derive and\n * register the associated token account on-chain for the given asset.\n * Providing a token account will result in a derived address with no meaning.\n * For other non-EVM chains, Paxos tracks on-chain activity for custody reward\n * calculation.\n *\n * Non-Custody Rewards: Paxos tracks on-chain activity for these addresses to\n * calculate and distribute non-custody rewards to your organization.\n *\n * *These endpoints are only relevant for whitelisted Rewards partners.*\n *\n * Access via `client.rewardAddresses`.\n */\nexport class RewardAddressesService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * List reward addresses\n *\n * Requires scope: rewards:read_monitoring_address\n */\n listAttributionAddresses(\n params?: ListAttributionAddressesParams,\n opts?: RequestOptions,\n ): PageIterator<WithRaw<AttributionAddress>> {\n return this.client.paginate<WithRaw<AttributionAddress>>(\"/rewards/addresses\", \"items\", params, opts, {\n responseSchema: \"ListAttributionAddressesResponse\",\n });\n }\n\n /**\n * Create a reward address\n *\n * Requires scope: rewards:write_monitoring_address\n */\n async createAttributionAddress(\n request: CreateAttributionAddressRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<CreateAttributionAddressResponse>> {\n return this.client.post<WithRaw<CreateAttributionAddressResponse>>(\"/rewards/addresses\", request, opts, {\n responseSchema: \"CreateAttributionAddressResponse\",\n requestSchema: \"CreateAttributionAddressRequest\",\n });\n }\n\n /**\n * Batch create reward addresses\n *\n * Requires scope: rewards:write_monitoring_address\n */\n async batchCreateAttributionAddresses(\n request: BatchCreateAttributionAddressesRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<BatchCreateAttributionAddressesResponse>> {\n return this.client.post<WithRaw<BatchCreateAttributionAddressesResponse>>(\n \"/rewards/addresses/batch\",\n request,\n opts,\n {\n responseSchema: \"BatchCreateAttributionAddressesResponse\",\n requestSchema: \"BatchCreateAttributionAddressesRequest\",\n },\n );\n }\n\n /**\n * Delete a reward address\n *\n * Requires scope: rewards:write_monitoring_address\n */\n async deleteAttributionAddress(\n id: string,\n opts?: RequestOptions,\n ): Promise<WithRaw<DeleteAttributionAddressResponse>> {\n return this.client.delete(buildPath(\"/rewards/addresses/{id}\", { id: id }), undefined, opts, {\n responseSchema: \"DeleteAttributionAddressResponse\",\n });\n }\n\n /**\n * Update a reward address\n *\n * Requires scope: rewards:write_monitoring_address\n */\n async updateAttributionAddress(\n id: string,\n request: AttributionAddress,\n opts?: RequestOptions,\n ): Promise<WithRaw<UpdateAttributionAddressResponse>> {\n return this.client.put<WithRaw<UpdateAttributionAddressResponse>>(\n buildPath(\"/rewards/addresses/{id}\", { id: id }),\n request,\n opts,\n { responseSchema: \"UpdateAttributionAddressResponse\", requestSchema: \"AttributionAddress\" },\n );\n }\n}\n"]}
@@ -0,0 +1,35 @@
1
+ import type { RequestOptions, PageIterator, WithRaw } from "../client.js";
2
+ import type { KnownRewardsStatementType } from "../enums.js";
3
+ import type { GetRewardsStatementResponse, RewardsStatement } from "../models.js";
4
+ export interface ListRewardsStatementsParams {
5
+ /** Maximum number of statements to return. Defaults to 12 if not set. */
6
+ limit?: number;
7
+ /** When set, only statements for this asset type are returned. */
8
+ asset_type?: string;
9
+ /** When set, only statements of this content type are returned.
10
+
11
+ - STATEMENT_TYPE_MONTHLY_REWARDS: Monthly statement: PDF rewards summary with daily balance totals, rates, and
12
+ per-payout-group breakdown, plus a CSV per-wallet daily balance export. */
13
+ type?: KnownRewardsStatementType | (string & {});
14
+ /** Resume from a cursor previously returned as a page's `nextCursor`. */
15
+ page_cursor?: string;
16
+ }
17
+ /**
18
+ * RewardsStatementsService provides access to RewardsStatements API operations.
19
+ * Access via `client.rewardsStatements`.
20
+ */
21
+ export declare class RewardsStatementsService {
22
+ private readonly client;
23
+ /**
24
+ * List Rewards Statements
25
+ *
26
+ * Requires scope: rewards:read_statements
27
+ */
28
+ listRewardsStatements(params?: ListRewardsStatementsParams, opts?: RequestOptions): PageIterator<WithRaw<RewardsStatement>>;
29
+ /**
30
+ * Get Rewards Statement
31
+ *
32
+ * Requires scope: rewards:read_statements
33
+ */
34
+ getRewardsStatement(id: string, opts?: RequestOptions): Promise<WithRaw<GetRewardsStatementResponse>>;
35
+ }
@@ -0,0 +1,32 @@
1
+ // Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
2
+ import { buildPath } from "../client.js";
3
+ /**
4
+ * RewardsStatementsService provides access to RewardsStatements API operations.
5
+ * Access via `client.rewardsStatements`.
6
+ */
7
+ export class RewardsStatementsService {
8
+ client;
9
+ /** @internal */
10
+ constructor(client) {
11
+ this.client = client;
12
+ }
13
+ /**
14
+ * List Rewards Statements
15
+ *
16
+ * Requires scope: rewards:read_statements
17
+ */
18
+ listRewardsStatements(params, opts) {
19
+ return this.client.paginate("/rewards/statements", "items", params, opts, {
20
+ responseSchema: "ListRewardsStatementsResponse",
21
+ });
22
+ }
23
+ /**
24
+ * Get Rewards Statement
25
+ *
26
+ * Requires scope: rewards:read_statements
27
+ */
28
+ async getRewardsStatement(id, opts) {
29
+ return this.client.get(buildPath("/rewards/statements/{id}", { id: id }), undefined, opts, { responseSchema: "GetRewardsStatementResponse" });
30
+ }
31
+ }
32
+ //# sourceMappingURL=rewards-statements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rewards-statements.js","sourceRoot":"","sources":["../../src/services/rewards-statements.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAmBzC;;;GAGG;AACH,MAAM,OAAO,wBAAwB;IAEN;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,qBAAqB,CACnB,MAAoC,EACpC,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAA4B,qBAAqB,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;YACnG,cAAc,EAAE,+BAA+B;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,mBAAmB,CAAC,EAAU,EAAE,IAAqB;QACzD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACpB,SAAS,CAAC,0BAA0B,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EACjD,SAAS,EACT,IAAI,EACJ,EAAE,cAAc,EAAE,6BAA6B,EAAE,CAClD,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport { buildPath } from \"../client.js\";\nimport type { HttpClient, RequestOptions, PageIterator, WithRaw } from \"../client.js\";\nimport type { KnownRewardsStatementType } from \"../enums.js\";\nimport type { GetRewardsStatementResponse, RewardsStatement } from \"../models.js\";\n\nexport interface ListRewardsStatementsParams {\n /** Maximum number of statements to return. Defaults to 12 if not set. */\n limit?: number;\n /** When set, only statements for this asset type are returned. */\n asset_type?: string;\n /** When set, only statements of this content type are returned.\n\n - STATEMENT_TYPE_MONTHLY_REWARDS: Monthly statement: PDF rewards summary with daily balance totals, rates, and\nper-payout-group breakdown, plus a CSV per-wallet daily balance export. */\n type?: KnownRewardsStatementType | (string & {});\n /** Resume from a cursor previously returned as a page's `nextCursor`. */\n page_cursor?: string;\n}\n\n/**\n * RewardsStatementsService provides access to RewardsStatements API operations.\n * Access via `client.rewardsStatements`.\n */\nexport class RewardsStatementsService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * List Rewards Statements\n *\n * Requires scope: rewards:read_statements\n */\n listRewardsStatements(\n params?: ListRewardsStatementsParams,\n opts?: RequestOptions,\n ): PageIterator<WithRaw<RewardsStatement>> {\n return this.client.paginate<WithRaw<RewardsStatement>>(\"/rewards/statements\", \"items\", params, opts, {\n responseSchema: \"ListRewardsStatementsResponse\",\n });\n }\n\n /**\n * Get Rewards Statement\n *\n * Requires scope: rewards:read_statements\n */\n async getRewardsStatement(id: string, opts?: RequestOptions): Promise<WithRaw<GetRewardsStatementResponse>> {\n return this.client.get<WithRaw<GetRewardsStatementResponse>>(\n buildPath(\"/rewards/statements/{id}\", { id: id }),\n undefined,\n opts,\n { responseSchema: \"GetRewardsStatementResponse\" },\n );\n }\n}\n"]}
@@ -0,0 +1,34 @@
1
+ import type { RequestOptions, WithRaw } from "../client.js";
2
+ import type { GetRewardDetailsResponse, GetRewardsRatesResponse } from "../models.js";
3
+ export interface GetRewardDetailsParams {
4
+ /** When set, only data for this asset type (e.g. "USDG", "PYUSD") is returned. */
5
+ asset_type?: string;
6
+ }
7
+ export interface GetRewardsRatesParams {
8
+ /** The asset type to fetch rates for (e.g. "USDG", "PYUSD").
9
+ When not set, an empty rates array is returned. */
10
+ asset_type?: string;
11
+ }
12
+ /**
13
+ * RewardsService — Rewards details including current reward rates, next
14
+ * accrual time, lifetime earned amounts, and estimated next accrual.
15
+ *
16
+ * *These endpoints are only relevant for whitelisted Rewards partners.*
17
+ *
18
+ * Access via `client.rewards`.
19
+ */
20
+ export declare class RewardsService {
21
+ private readonly client;
22
+ /**
23
+ * Get reward details
24
+ *
25
+ * Requires scope: rewards:read_rewards_details
26
+ */
27
+ getRewardDetails(params?: GetRewardDetailsParams, opts?: RequestOptions): Promise<WithRaw<GetRewardDetailsResponse>>;
28
+ /**
29
+ * Get reward rates
30
+ *
31
+ * Requires scope: rewards:read_rewards_details
32
+ */
33
+ getRewardsRates(params?: GetRewardsRatesParams, opts?: RequestOptions): Promise<WithRaw<GetRewardsRatesResponse>>;
34
+ }
@@ -0,0 +1,37 @@
1
+ // Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
2
+ /**
3
+ * RewardsService — Rewards details including current reward rates, next
4
+ * accrual time, lifetime earned amounts, and estimated next accrual.
5
+ *
6
+ * *These endpoints are only relevant for whitelisted Rewards partners.*
7
+ *
8
+ * Access via `client.rewards`.
9
+ */
10
+ export class RewardsService {
11
+ client;
12
+ /** @internal */
13
+ constructor(client) {
14
+ this.client = client;
15
+ }
16
+ /**
17
+ * Get reward details
18
+ *
19
+ * Requires scope: rewards:read_rewards_details
20
+ */
21
+ async getRewardDetails(params, opts) {
22
+ return this.client.get("/rewards/details", params, opts, {
23
+ responseSchema: "GetRewardDetailsResponse",
24
+ });
25
+ }
26
+ /**
27
+ * Get reward rates
28
+ *
29
+ * Requires scope: rewards:read_rewards_details
30
+ */
31
+ async getRewardsRates(params, opts) {
32
+ return this.client.get("/rewards/rates", params, opts, {
33
+ responseSchema: "GetRewardsRatesResponse",
34
+ });
35
+ }
36
+ }
37
+ //# sourceMappingURL=rewards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rewards.js","sourceRoot":"","sources":["../../src/services/rewards.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAgBpE;;;;;;;GAOG;AACH,MAAM,OAAO,cAAc;IAEI;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,KAAK,CAAC,gBAAgB,CACpB,MAA+B,EAC/B,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAoC,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAE;YAC1F,cAAc,EAAE,0BAA0B;SAC3C,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,eAAe,CACnB,MAA8B,EAC9B,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE;YACvF,cAAc,EAAE,yBAAyB;SAC1C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport type { HttpClient, RequestOptions, WithRaw } from \"../client.js\";\nimport type { GetRewardDetailsResponse, GetRewardsRatesResponse } from \"../models.js\";\n\nexport interface GetRewardDetailsParams {\n /** When set, only data for this asset type (e.g. \"USDG\", \"PYUSD\") is returned. */\n asset_type?: string;\n}\n\nexport interface GetRewardsRatesParams {\n /** The asset type to fetch rates for (e.g. \"USDG\", \"PYUSD\").\nWhen not set, an empty rates array is returned. */\n asset_type?: string;\n}\n\n/**\n * RewardsService — Rewards details including current reward rates, next\n * accrual time, lifetime earned amounts, and estimated next accrual.\n *\n * *These endpoints are only relevant for whitelisted Rewards partners.*\n *\n * Access via `client.rewards`.\n */\nexport class RewardsService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * Get reward details\n *\n * Requires scope: rewards:read_rewards_details\n */\n async getRewardDetails(\n params?: GetRewardDetailsParams,\n opts?: RequestOptions,\n ): Promise<WithRaw<GetRewardDetailsResponse>> {\n return this.client.get<WithRaw<GetRewardDetailsResponse>>(\"/rewards/details\", params, opts, {\n responseSchema: \"GetRewardDetailsResponse\",\n });\n }\n\n /**\n * Get reward rates\n *\n * Requires scope: rewards:read_rewards_details\n */\n async getRewardsRates(\n params?: GetRewardsRatesParams,\n opts?: RequestOptions,\n ): Promise<WithRaw<GetRewardsRatesResponse>> {\n return this.client.get<WithRaw<GetRewardsRatesResponse>>(\"/rewards/rates\", params, opts, {\n responseSchema: \"GetRewardsRatesResponse\",\n });\n }\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import type { RequestOptions, WithRaw } from "../client.js";
2
+ import type { CreateSandboxDepositRequest, CreateSandboxDepositResponse } from "../models.js";
3
+ /**
4
+ * SandboxDepositsService provides access to SandboxDeposits API operations.
5
+ * Access via `client.sandboxDeposits`.
6
+ */
7
+ export declare class SandboxDepositsService {
8
+ private readonly client;
9
+ /**
10
+ * Create Sandbox Deposit
11
+ *
12
+ * Requires scope: funding:read_profile
13
+ */
14
+ createSandboxDeposit(profileId: string, request: CreateSandboxDepositRequest, opts?: RequestOptions): Promise<WithRaw<CreateSandboxDepositResponse>>;
15
+ }
@@ -0,0 +1,22 @@
1
+ // Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
2
+ import { buildPath } from "../client.js";
3
+ /**
4
+ * SandboxDepositsService provides access to SandboxDeposits API operations.
5
+ * Access via `client.sandboxDeposits`.
6
+ */
7
+ export class SandboxDepositsService {
8
+ client;
9
+ /** @internal */
10
+ constructor(client) {
11
+ this.client = client;
12
+ }
13
+ /**
14
+ * Create Sandbox Deposit
15
+ *
16
+ * Requires scope: funding:read_profile
17
+ */
18
+ async createSandboxDeposit(profileId, request, opts) {
19
+ return this.client.post(buildPath("/sandbox/profiles/{profile_id}/deposit", { profile_id: profileId }), request, opts, { responseSchema: "CreateSandboxDepositResponse", requestSchema: "CreateSandboxDepositRequest" });
20
+ }
21
+ }
22
+ //# sourceMappingURL=sandbox-deposits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-deposits.js","sourceRoot":"","sources":["../../src/services/sandbox-deposits.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC;;;GAGG;AACH,MAAM,OAAO,sBAAsB;IAEJ;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,KAAK,CAAC,oBAAoB,CACxB,SAAiB,EACjB,OAAoC,EACpC,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,SAAS,CAAC,wCAAwC,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,EAC9E,OAAO,EACP,IAAI,EACJ,EAAE,cAAc,EAAE,8BAA8B,EAAE,aAAa,EAAE,6BAA6B,EAAE,CACjG,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport { buildPath } from \"../client.js\";\nimport type { HttpClient, RequestOptions, WithRaw } from \"../client.js\";\nimport type { CreateSandboxDepositRequest, CreateSandboxDepositResponse } from \"../models.js\";\n\n/**\n * SandboxDepositsService provides access to SandboxDeposits API operations.\n * Access via `client.sandboxDeposits`.\n */\nexport class SandboxDepositsService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * Create Sandbox Deposit\n *\n * Requires scope: funding:read_profile\n */\n async createSandboxDeposit(\n profileId: string,\n request: CreateSandboxDepositRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<CreateSandboxDepositResponse>> {\n return this.client.post<WithRaw<CreateSandboxDepositResponse>>(\n buildPath(\"/sandbox/profiles/{profile_id}/deposit\", { profile_id: profileId }),\n request,\n opts,\n { responseSchema: \"CreateSandboxDepositResponse\", requestSchema: \"CreateSandboxDepositRequest\" },\n );\n }\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import type { RequestOptions, WithRaw } from "../client.js";
2
+ import type { InitiateSandboxFiatDepositRequest, InitiateSandboxFiatDepositResponse } from "../models.js";
3
+ /**
4
+ * SandboxFiatTransfersService provides access to SandboxFiatTransfers API operations.
5
+ * Access via `client.sandboxFiatTransfers`.
6
+ */
7
+ export declare class SandboxFiatTransfersService {
8
+ private readonly client;
9
+ /**
10
+ * Initiate Sandbox Fiat Deposit
11
+ *
12
+ * Requires scope: transfer:write_sandbox_fiat_deposit
13
+ */
14
+ initiateSandboxFiatDeposit(request: InitiateSandboxFiatDepositRequest, opts?: RequestOptions): Promise<WithRaw<InitiateSandboxFiatDepositResponse>>;
15
+ }
@@ -0,0 +1,24 @@
1
+ // Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
2
+ /**
3
+ * SandboxFiatTransfersService provides access to SandboxFiatTransfers API operations.
4
+ * Access via `client.sandboxFiatTransfers`.
5
+ */
6
+ export class SandboxFiatTransfersService {
7
+ client;
8
+ /** @internal */
9
+ constructor(client) {
10
+ this.client = client;
11
+ }
12
+ /**
13
+ * Initiate Sandbox Fiat Deposit
14
+ *
15
+ * Requires scope: transfer:write_sandbox_fiat_deposit
16
+ */
17
+ async initiateSandboxFiatDeposit(request, opts) {
18
+ return this.client.post("/sandbox/fiat-deposits", request, opts, {
19
+ responseSchema: "InitiateSandboxFiatDepositResponse",
20
+ requestSchema: "InitiateSandboxFiatDepositRequest",
21
+ });
22
+ }
23
+ }
24
+ //# sourceMappingURL=sandbox-fiat-transfers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-fiat-transfers.js","sourceRoot":"","sources":["../../src/services/sandbox-fiat-transfers.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAKpE;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IAET;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAA0C,EAC1C,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA8C,wBAAwB,EAAE,OAAO,EAAE,IAAI,EAAE;YAC5G,cAAc,EAAE,oCAAoC;YACpD,aAAa,EAAE,mCAAmC;SACnD,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport type { HttpClient, RequestOptions, WithRaw } from \"../client.js\";\nimport type { InitiateSandboxFiatDepositRequest, InitiateSandboxFiatDepositResponse } from \"../models.js\";\n\n/**\n * SandboxFiatTransfersService provides access to SandboxFiatTransfers API operations.\n * Access via `client.sandboxFiatTransfers`.\n */\nexport class SandboxFiatTransfersService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * Initiate Sandbox Fiat Deposit\n *\n * Requires scope: transfer:write_sandbox_fiat_deposit\n */\n async initiateSandboxFiatDeposit(\n request: InitiateSandboxFiatDepositRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<InitiateSandboxFiatDepositResponse>> {\n return this.client.post<WithRaw<InitiateSandboxFiatDepositResponse>>(\"/sandbox/fiat-deposits\", request, opts, {\n responseSchema: \"InitiateSandboxFiatDepositResponse\",\n requestSchema: \"InitiateSandboxFiatDepositRequest\",\n });\n }\n}\n"]}
@@ -0,0 +1,39 @@
1
+ import type { RequestOptions, WithRaw } from "../client.js";
2
+ import type { SandboxBackdateIdentityClosureRequest, SandboxBackdateIdentityClosureResponse, SandboxForceStartKycRefreshRequest, SandboxForceStartKycRefreshResponse, SandboxResetKycRefreshRequest, SandboxResetKycRefreshResponse, SandboxSetIdentityResponse, SandboxSetIdentityStatusRequest, SandboxStartKycRefreshResponse } from "../models.js";
3
+ /**
4
+ * SandboxIdentityService provides access to SandboxIdentity API operations.
5
+ * Access via `client.sandboxIdentity`.
6
+ */
7
+ export declare class SandboxIdentityService {
8
+ private readonly client;
9
+ /**
10
+ * Sandbox Backdate Identity Closure
11
+ *
12
+ * Requires scope: identity:write_identity
13
+ */
14
+ sandboxBackdateIdentityClosure(identityId: string, request: SandboxBackdateIdentityClosureRequest, opts?: RequestOptions): Promise<WithRaw<SandboxBackdateIdentityClosureResponse>>;
15
+ /**
16
+ * Sandbox Start KYC Refresh
17
+ *
18
+ * Requires scope: identity:write_identity
19
+ */
20
+ sandboxStartKycRefresh(identityId: string, opts?: RequestOptions): Promise<WithRaw<SandboxStartKycRefreshResponse>>;
21
+ /**
22
+ * Sandbox Set Identity Status
23
+ *
24
+ * Requires scope: identity:write_identity
25
+ */
26
+ sandboxSetIdentityStatus(id: string, request: SandboxSetIdentityStatusRequest, opts?: RequestOptions): Promise<WithRaw<SandboxSetIdentityResponse>>;
27
+ /**
28
+ * Sandbox Force Start KYC Refresh
29
+ *
30
+ * Requires scope: identity:write_identity
31
+ */
32
+ sandboxForceStartKycRefresh(request: SandboxForceStartKycRefreshRequest, opts?: RequestOptions): Promise<WithRaw<SandboxForceStartKycRefreshResponse>>;
33
+ /**
34
+ * Sandbox Reset KYC Refresh
35
+ *
36
+ * Requires scope: identity:write_identity
37
+ */
38
+ sandboxResetKycRefresh(request: SandboxResetKycRefreshRequest, opts?: RequestOptions): Promise<WithRaw<SandboxResetKycRefreshResponse>>;
39
+ }
@@ -0,0 +1,60 @@
1
+ // Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
2
+ import { buildPath } from "../client.js";
3
+ /**
4
+ * SandboxIdentityService provides access to SandboxIdentity API operations.
5
+ * Access via `client.sandboxIdentity`.
6
+ */
7
+ export class SandboxIdentityService {
8
+ client;
9
+ /** @internal */
10
+ constructor(client) {
11
+ this.client = client;
12
+ }
13
+ /**
14
+ * Sandbox Backdate Identity Closure
15
+ *
16
+ * Requires scope: identity:write_identity
17
+ */
18
+ async sandboxBackdateIdentityClosure(identityId, request, opts) {
19
+ return this.client.post(buildPath("/identity/identities/{identity_id}/backdate-closure", { identity_id: identityId }), request, opts, {
20
+ responseSchema: "SandboxBackdateIdentityClosureResponse",
21
+ requestSchema: "SandboxBackdateIdentityClosureRequest",
22
+ });
23
+ }
24
+ /**
25
+ * Sandbox Start KYC Refresh
26
+ *
27
+ * Requires scope: identity:write_identity
28
+ */
29
+ async sandboxStartKycRefresh(identityId, opts) {
30
+ return this.client.post(buildPath("/identity/identities/{identity_id}/kyc-refresh", { identity_id: identityId }), undefined, opts, { responseSchema: "SandboxStartKycRefreshResponse" });
31
+ }
32
+ /**
33
+ * Sandbox Set Identity Status
34
+ *
35
+ * Requires scope: identity:write_identity
36
+ */
37
+ async sandboxSetIdentityStatus(id, request, opts) {
38
+ return this.client.put(buildPath("/identity/identities/{id}/sandbox-status", { id: id }), request, opts, { responseSchema: "SandboxSetIdentityResponse", requestSchema: "SandboxSetIdentityStatusRequest" });
39
+ }
40
+ /**
41
+ * Sandbox Force Start KYC Refresh
42
+ *
43
+ * Requires scope: identity:write_identity
44
+ */
45
+ async sandboxForceStartKycRefresh(request, opts) {
46
+ return this.client.post("/identity/kycrefresh/force-start", request, opts, { responseSchema: "SandboxForceStartKycRefreshResponse", requestSchema: "SandboxForceStartKycRefreshRequest" });
47
+ }
48
+ /**
49
+ * Sandbox Reset KYC Refresh
50
+ *
51
+ * Requires scope: identity:write_identity
52
+ */
53
+ async sandboxResetKycRefresh(request, opts) {
54
+ return this.client.post("/identity/kycrefresh/reset", request, opts, {
55
+ responseSchema: "SandboxResetKycRefreshResponse",
56
+ requestSchema: "SandboxResetKycRefreshRequest",
57
+ });
58
+ }
59
+ }
60
+ //# sourceMappingURL=sandbox-identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-identity.js","sourceRoot":"","sources":["../../src/services/sandbox-identity.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAczC;;;GAGG;AACH,MAAM,OAAO,sBAAsB;IAEJ;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,KAAK,CAAC,8BAA8B,CAClC,UAAkB,EAClB,OAA8C,EAC9C,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,SAAS,CAAC,qDAAqD,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,EAC7F,OAAO,EACP,IAAI,EACJ;YACE,cAAc,EAAE,wCAAwC;YACxD,aAAa,EAAE,uCAAuC;SACvD,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,sBAAsB,CAC1B,UAAkB,EAClB,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,SAAS,CAAC,gDAAgD,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,EACxF,SAAS,EACT,IAAI,EACJ,EAAE,cAAc,EAAE,gCAAgC,EAAE,CACrD,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,wBAAwB,CAC5B,EAAU,EACV,OAAwC,EACxC,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACpB,SAAS,CAAC,0CAA0C,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EACjE,OAAO,EACP,IAAI,EACJ,EAAE,cAAc,EAAE,4BAA4B,EAAE,aAAa,EAAE,iCAAiC,EAAE,CACnG,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAA2C,EAC3C,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,kCAAkC,EAClC,OAAO,EACP,IAAI,EACJ,EAAE,cAAc,EAAE,qCAAqC,EAAE,aAAa,EAAE,oCAAoC,EAAE,CAC/G,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAsC,EACtC,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA0C,4BAA4B,EAAE,OAAO,EAAE,IAAI,EAAE;YAC5G,cAAc,EAAE,gCAAgC;YAChD,aAAa,EAAE,+BAA+B;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport { buildPath } from \"../client.js\";\nimport type { HttpClient, RequestOptions, WithRaw } from \"../client.js\";\nimport type {\n SandboxBackdateIdentityClosureRequest,\n SandboxBackdateIdentityClosureResponse,\n SandboxForceStartKycRefreshRequest,\n SandboxForceStartKycRefreshResponse,\n SandboxResetKycRefreshRequest,\n SandboxResetKycRefreshResponse,\n SandboxSetIdentityResponse,\n SandboxSetIdentityStatusRequest,\n SandboxStartKycRefreshResponse,\n} from \"../models.js\";\n\n/**\n * SandboxIdentityService provides access to SandboxIdentity API operations.\n * Access via `client.sandboxIdentity`.\n */\nexport class SandboxIdentityService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * Sandbox Backdate Identity Closure\n *\n * Requires scope: identity:write_identity\n */\n async sandboxBackdateIdentityClosure(\n identityId: string,\n request: SandboxBackdateIdentityClosureRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<SandboxBackdateIdentityClosureResponse>> {\n return this.client.post<WithRaw<SandboxBackdateIdentityClosureResponse>>(\n buildPath(\"/identity/identities/{identity_id}/backdate-closure\", { identity_id: identityId }),\n request,\n opts,\n {\n responseSchema: \"SandboxBackdateIdentityClosureResponse\",\n requestSchema: \"SandboxBackdateIdentityClosureRequest\",\n },\n );\n }\n\n /**\n * Sandbox Start KYC Refresh\n *\n * Requires scope: identity:write_identity\n */\n async sandboxStartKycRefresh(\n identityId: string,\n opts?: RequestOptions,\n ): Promise<WithRaw<SandboxStartKycRefreshResponse>> {\n return this.client.post<WithRaw<SandboxStartKycRefreshResponse>>(\n buildPath(\"/identity/identities/{identity_id}/kyc-refresh\", { identity_id: identityId }),\n undefined,\n opts,\n { responseSchema: \"SandboxStartKycRefreshResponse\" },\n );\n }\n\n /**\n * Sandbox Set Identity Status\n *\n * Requires scope: identity:write_identity\n */\n async sandboxSetIdentityStatus(\n id: string,\n request: SandboxSetIdentityStatusRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<SandboxSetIdentityResponse>> {\n return this.client.put<WithRaw<SandboxSetIdentityResponse>>(\n buildPath(\"/identity/identities/{id}/sandbox-status\", { id: id }),\n request,\n opts,\n { responseSchema: \"SandboxSetIdentityResponse\", requestSchema: \"SandboxSetIdentityStatusRequest\" },\n );\n }\n\n /**\n * Sandbox Force Start KYC Refresh\n *\n * Requires scope: identity:write_identity\n */\n async sandboxForceStartKycRefresh(\n request: SandboxForceStartKycRefreshRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<SandboxForceStartKycRefreshResponse>> {\n return this.client.post<WithRaw<SandboxForceStartKycRefreshResponse>>(\n \"/identity/kycrefresh/force-start\",\n request,\n opts,\n { responseSchema: \"SandboxForceStartKycRefreshResponse\", requestSchema: \"SandboxForceStartKycRefreshRequest\" },\n );\n }\n\n /**\n * Sandbox Reset KYC Refresh\n *\n * Requires scope: identity:write_identity\n */\n async sandboxResetKycRefresh(\n request: SandboxResetKycRefreshRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<SandboxResetKycRefreshResponse>> {\n return this.client.post<WithRaw<SandboxResetKycRefreshResponse>>(\"/identity/kycrefresh/reset\", request, opts, {\n responseSchema: \"SandboxResetKycRefreshResponse\",\n requestSchema: \"SandboxResetKycRefreshRequest\",\n });\n }\n}\n"]}