@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.
- package/AGENTS.md +268 -0
- package/CHANGELOG.md +35 -0
- package/LICENSE +191 -0
- package/README.md +445 -2
- package/dist/auth.d.ts +60 -0
- package/dist/auth.js +248 -0
- package/dist/auth.js.map +1 -0
- package/dist/client.d.ts +353 -0
- package/dist/client.js +967 -0
- package/dist/client.js.map +1 -0
- package/dist/constants.d.ts +16 -0
- package/dist/constants.js +17 -0
- package/dist/constants.js.map +1 -0
- package/dist/decimal-fields.d.ts +16 -0
- package/dist/decimal-fields.js +570 -0
- package/dist/decimal-fields.js.map +1 -0
- package/dist/decimal.d.ts +25 -0
- package/dist/decimal.js +93 -0
- package/dist/decimal.js.map +1 -0
- package/dist/decode.d.ts +34 -0
- package/dist/decode.js +118 -0
- package/dist/decode.js.map +1 -0
- package/dist/enums.d.ts +1080 -0
- package/dist/enums.js +1031 -0
- package/dist/enums.js.map +1 -0
- package/dist/errors.d.ts +142 -0
- package/dist/errors.js +261 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated-types.d.ts +13629 -0
- package/dist/generated-types.js +3 -0
- package/dist/generated-types.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/models.d.ts +299 -0
- package/dist/models.js +3 -0
- package/dist/models.js.map +1 -0
- package/dist/paxos-client.d.ts +107 -0
- package/dist/paxos-client.js +157 -0
- package/dist/paxos-client.js.map +1 -0
- package/dist/query-keys.d.ts +1 -0
- package/dist/query-keys.js +31 -0
- package/dist/query-keys.js.map +1 -0
- package/dist/response-defaults.d.ts +2 -0
- package/dist/response-defaults.js +109 -0
- package/dist/response-defaults.js.map +1 -0
- package/dist/services/account-members.d.ts +32 -0
- package/dist/services/account-members.js +46 -0
- package/dist/services/account-members.js.map +1 -0
- package/dist/services/accounts.d.ts +74 -0
- package/dist/services/accounts.js +71 -0
- package/dist/services/accounts.js.map +1 -0
- package/dist/services/address-verification.d.ts +72 -0
- package/dist/services/address-verification.js +64 -0
- package/dist/services/address-verification.js.map +1 -0
- package/dist/services/api-credentials.d.ts +44 -0
- package/dist/services/api-credentials.js +42 -0
- package/dist/services/api-credentials.js.map +1 -0
- package/dist/services/claims.d.ts +68 -0
- package/dist/services/claims.js +67 -0
- package/dist/services/claims.js.map +1 -0
- package/dist/services/cross-chain-transfer.d.ts +71 -0
- package/dist/services/cross-chain-transfer.js +68 -0
- package/dist/services/cross-chain-transfer.js.map +1 -0
- package/dist/services/crypto-deposits.d.ts +30 -0
- package/dist/services/crypto-deposits.js +39 -0
- package/dist/services/crypto-deposits.js.map +1 -0
- package/dist/services/crypto-withdrawals.d.ts +60 -0
- package/dist/services/crypto-withdrawals.js +42 -0
- package/dist/services/crypto-withdrawals.js.map +1 -0
- package/dist/services/deposit-addresses.d.ts +54 -0
- package/dist/services/deposit-addresses.js +36 -0
- package/dist/services/deposit-addresses.js.map +1 -0
- package/dist/services/events.d.ts +53 -0
- package/dist/services/events.js +39 -0
- package/dist/services/events.js.map +1 -0
- package/dist/services/exchange.d.ts +52 -0
- package/dist/services/exchange.js +30 -0
- package/dist/services/exchange.js.map +1 -0
- package/dist/services/fees.d.ts +15 -0
- package/dist/services/fees.js +24 -0
- package/dist/services/fees.js.map +1 -0
- package/dist/services/fiat-transfers.d.ts +133 -0
- package/dist/services/fiat-transfers.js +127 -0
- package/dist/services/fiat-transfers.js.map +1 -0
- package/dist/services/identity-controls.d.ts +43 -0
- package/dist/services/identity-controls.js +42 -0
- package/dist/services/identity-controls.js.map +1 -0
- package/dist/services/identity-documents.d.ts +45 -0
- package/dist/services/identity-documents.js +50 -0
- package/dist/services/identity-documents.js.map +1 -0
- package/dist/services/identity.d.ts +122 -0
- package/dist/services/identity.js +66 -0
- package/dist/services/identity.js.map +1 -0
- package/dist/services/index.d.ts +89 -0
- package/dist/services/index.js +55 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/institution-members.d.ts +30 -0
- package/dist/services/institution-members.js +44 -0
- package/dist/services/institution-members.js.map +1 -0
- package/dist/services/internal-transfers.d.ts +15 -0
- package/dist/services/internal-transfers.js +26 -0
- package/dist/services/internal-transfers.js.map +1 -0
- package/dist/services/issuer-quotes.d.ts +72 -0
- package/dist/services/issuer-quotes.js +66 -0
- package/dist/services/issuer-quotes.js.map +1 -0
- package/dist/services/limits.d.ts +20 -0
- package/dist/services/limits.js +23 -0
- package/dist/services/limits.js.map +1 -0
- package/dist/services/market-data.d.ts +15 -0
- package/dist/services/market-data.js +23 -0
- package/dist/services/market-data.js.map +1 -0
- package/dist/services/monitoring-addresses.d.ts +64 -0
- package/dist/services/monitoring-addresses.js +68 -0
- package/dist/services/monitoring-addresses.js.map +1 -0
- package/dist/services/orchestration-rules.d.ts +53 -0
- package/dist/services/orchestration-rules.js +47 -0
- package/dist/services/orchestration-rules.js.map +1 -0
- package/dist/services/orchestrations.d.ts +70 -0
- package/dist/services/orchestrations.js +45 -0
- package/dist/services/orchestrations.js.map +1 -0
- package/dist/services/orders.d.ts +86 -0
- package/dist/services/orders.js +67 -0
- package/dist/services/orders.js.map +1 -0
- package/dist/services/paxos-transfers.d.ts +24 -0
- package/dist/services/paxos-transfers.js +35 -0
- package/dist/services/paxos-transfers.js.map +1 -0
- package/dist/services/payments.d.ts +46 -0
- package/dist/services/payments.js +35 -0
- package/dist/services/payments.js.map +1 -0
- package/dist/services/payout-groups.d.ts +59 -0
- package/dist/services/payout-groups.js +59 -0
- package/dist/services/payout-groups.js.map +1 -0
- package/dist/services/pricing.d.ts +67 -0
- package/dist/services/pricing.js +42 -0
- package/dist/services/pricing.js.map +1 -0
- package/dist/services/profiles.d.ts +106 -0
- package/dist/services/profiles.js +84 -0
- package/dist/services/profiles.js.map +1 -0
- package/dist/services/quote-executions.d.ts +51 -0
- package/dist/services/quote-executions.js +41 -0
- package/dist/services/quote-executions.js.map +1 -0
- package/dist/services/quotes.d.ts +44 -0
- package/dist/services/quotes.js +48 -0
- package/dist/services/quotes.js.map +1 -0
- package/dist/services/reward-addresses.d.ts +80 -0
- package/dist/services/reward-addresses.js +79 -0
- package/dist/services/reward-addresses.js.map +1 -0
- package/dist/services/rewards-statements.d.ts +35 -0
- package/dist/services/rewards-statements.js +32 -0
- package/dist/services/rewards-statements.js.map +1 -0
- package/dist/services/rewards.d.ts +34 -0
- package/dist/services/rewards.js +37 -0
- package/dist/services/rewards.js.map +1 -0
- package/dist/services/sandbox-deposits.d.ts +15 -0
- package/dist/services/sandbox-deposits.js +22 -0
- package/dist/services/sandbox-deposits.js.map +1 -0
- package/dist/services/sandbox-fiat-transfers.d.ts +15 -0
- package/dist/services/sandbox-fiat-transfers.js +24 -0
- package/dist/services/sandbox-fiat-transfers.js.map +1 -0
- package/dist/services/sandbox-identity.d.ts +39 -0
- package/dist/services/sandbox-identity.js +60 -0
- package/dist/services/sandbox-identity.js.map +1 -0
- package/dist/services/settlement.d.ts +76 -0
- package/dist/services/settlement.js +79 -0
- package/dist/services/settlement.js.map +1 -0
- package/dist/services/stablecoin-conversion.d.ts +70 -0
- package/dist/services/stablecoin-conversion.js +65 -0
- package/dist/services/stablecoin-conversion.js.map +1 -0
- package/dist/services/statements.d.ts +44 -0
- package/dist/services/statements.js +35 -0
- package/dist/services/statements.js.map +1 -0
- package/dist/services/tax-documentation.d.ts +21 -0
- package/dist/services/tax-documentation.js +33 -0
- package/dist/services/tax-documentation.js.map +1 -0
- package/dist/services/tax-forms.d.ts +45 -0
- package/dist/services/tax-forms.js +38 -0
- package/dist/services/tax-forms.js.map +1 -0
- package/dist/services/transfers.d.ts +96 -0
- package/dist/services/transfers.js +37 -0
- package/dist/services/transfers.js.map +1 -0
- package/dist/services/travel-rule.d.ts +32 -0
- package/dist/services/travel-rule.js +30 -0
- package/dist/services/travel-rule.js.map +1 -0
- package/dist/services/user-audit-logs.d.ts +45 -0
- package/dist/services/user-audit-logs.js +27 -0
- package/dist/services/user-audit-logs.js.map +1 -0
- package/dist/services/webhooks.d.ts +58 -0
- package/dist/services/webhooks.js +42 -0
- package/dist/services/webhooks.js.map +1 -0
- package/dist/signing.d.ts +33 -0
- package/dist/signing.js +186 -0
- package/dist/signing.js.map +1 -0
- package/dist/testing/fixtures.d.ts +40 -0
- package/dist/testing/fixtures.js +131 -0
- package/dist/testing/fixtures.js.map +1 -0
- package/dist/testing/index.d.ts +28 -0
- package/dist/testing/index.js +28 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/mock-server.d.ts +121 -0
- package/dist/testing/mock-server.js +276 -0
- package/dist/testing/mock-server.js.map +1 -0
- package/dist/timeouts.d.ts +13 -0
- package/dist/timeouts.js +71 -0
- package/dist/timeouts.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +67 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,UAAU,EAAE,YAAY;CAChB,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;CACF,CAAC;AAGX,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,OAAO,EA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+B;IAC/B,gBAAgB,EAAE,kBAAkB;IACpC,kCAAkC;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,kDAAkD;IAClD,wCAAwC,EAAE,0CAA0C;IACpF,uCAAuC;IACvC,6BAA6B,EAAE,+BAA+B;IAC9D,oCAAoC;IACpC,0BAA0B,EAAE,4BAA4B;IACxD,gDAAgD;IAChD,uCAAuC,EAAE,yCAAyC;IAClF,gCAAgC;IAChC,sBAAsB,EAAE,wBAAwB;IAChD,qDAAqD;IACrD,4BAA4B,EAAE,8BAA8B;IAC5D,4CAA4C;IAC5C,8BAA8B,EAAE,gCAAgC;IAChE,2CAA2C;IAC3C,8BAA8B,EAAE,gCAAgC;IAChE,oDAAoD;IACpD,yCAAyC,EAAE,2CAA2C;IACtF,wDAAwD;IACxD,gCAAgC,EAAE,kCAAkC;IACpE,wDAAwD;IACxD,8BAA8B,EAAE,gCAAgC;IAChE,8CAA8C;IAC9C,2BAA2B,EAAE,6BAA6B;IAC1D,yDAAyD;IACzD,wCAAwC,EAAE,0CAA0C;IACpF,6CAA6C;IAC7C,8BAA8B,EAAE,gCAAgC;IAChE,2CAA2C;IAC3C,gCAAgC,EAAE,kCAAkC;IACpE,8BAA8B;IAC9B,6BAA6B,EAAE,+BAA+B;IAC9D,8DAA8D;IAC9D,mCAAmC,EAAE,qCAAqC;IAC1E,+BAA+B;IAC/B,8BAA8B,EAAE,gCAAgC;IAChE,oDAAoD;IACpD,qBAAqB,EAAE,uBAAuB;CACtC,CAAC","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nexport const ListProfilesRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const ProfileType = {\n NORMAL: \"NORMAL\",\n DEFAULT: \"DEFAULT\",\n} as const;\n\nexport const SortOrder = {\n DESC: \"DESC\",\n ASC: \"ASC\",\n} as const;\nexport type KnownSortOrder = (typeof SortOrder)[keyof typeof SortOrder];\n\nexport const CryptoNetwork = {\n BITCOIN: \"BITCOIN\",\n ETHEREUM: \"ETHEREUM\",\n BITCOIN_CASH: \"BITCOIN_CASH\",\n LITECOIN: \"LITECOIN\",\n SOLANA: \"SOLANA\",\n POLYGON_POS: \"POLYGON_POS\",\n BASE: \"BASE\",\n ARBITRUM_ONE: \"ARBITRUM_ONE\",\n STELLAR: \"STELLAR\",\n INK: \"INK\",\n XLAYER: \"XLAYER\",\n AVALANCHE: \"AVALANCHE\",\n DOGECOIN: \"DOGECOIN\",\n SUI: \"SUI\",\n ROBINHOOD: \"ROBINHOOD\",\n BNB: \"BNB\",\n OP: \"OP\",\n COSMOS: \"COSMOS\",\n TRON: \"TRON\",\n APTOS: \"APTOS\",\n HYPEREVM: \"HYPEREVM\",\n MANTLE: \"MANTLE\",\n RIPPLE: \"RIPPLE\",\n STABLE: \"STABLE\",\n} as const;\nexport type KnownCryptoNetwork = (typeof CryptoNetwork)[keyof typeof CryptoNetwork];\n\nexport const CreateIdentityControlRequestClientIdentityControlType = {\n SELL_ONLY: \"SELL_ONLY\",\n DORMANT: \"DORMANT\",\n CLOSED: \"CLOSED\",\n} as const;\nexport type KnownCreateIdentityControlRequestClientIdentityControlType =\n (typeof CreateIdentityControlRequestClientIdentityControlType)[keyof typeof CreateIdentityControlRequestClientIdentityControlType];\n\nexport const CustomerDueDiligenceNetWorthRange = {\n NET_WORTH_0_TO_100K: \"NET_WORTH_0_TO_100K\",\n NET_WORTH_100K_TO_500K: \"NET_WORTH_100K_TO_500K\",\n NET_WORTH_500K_TO_1M: \"NET_WORTH_500K_TO_1M\",\n NET_WORTH_1M_TO_2_5M: \"NET_WORTH_1M_TO_2_5M\",\n NET_WORTH_2_5M_TO_5M: \"NET_WORTH_2_5M_TO_5M\",\n NET_WORTH_5M_TO_7_5M: \"NET_WORTH_5M_TO_7_5M\",\n NET_WORTH_7_5M_TO_10M: \"NET_WORTH_7_5M_TO_10M\",\n NET_WORTH_10M_TO_25M: \"NET_WORTH_10M_TO_25M\",\n NET_WORTH_25M_TO_50M: \"NET_WORTH_25M_TO_50M\",\n NET_WORTH_OVER_50M: \"NET_WORTH_OVER_50M\",\n} as const;\n\nexport const CustomerDueDiligenceTransferValueRange = {\n TRANSFER_VALUE_0_TO_25K: \"TRANSFER_VALUE_0_TO_25K\",\n TRANSFER_VALUE_25K_TO_50K: \"TRANSFER_VALUE_25K_TO_50K\",\n TRANSFER_VALUE_50K_TO_100K: \"TRANSFER_VALUE_50K_TO_100K\",\n TRANSFER_VALUE_100K_TO_250K: \"TRANSFER_VALUE_100K_TO_250K\",\n TRANSFER_VALUE_250K_TO_500K: \"TRANSFER_VALUE_250K_TO_500K\",\n TRANSFER_VALUE_500K_TO_750K: \"TRANSFER_VALUE_500K_TO_750K\",\n TRANSFER_VALUE_750K_TO_1M: \"TRANSFER_VALUE_750K_TO_1M\",\n TRANSFER_VALUE_1M_TO_2_5M: \"TRANSFER_VALUE_1M_TO_2_5M\",\n TRANSFER_VALUE_2_5M_TO_5M: \"TRANSFER_VALUE_2_5M_TO_5M\",\n TRANSFER_VALUE_ABOVE_5M: \"TRANSFER_VALUE_ABOVE_5M\",\n} as const;\n\nexport const CustomerDueDiligenceYearlyIncomeRange = {\n INCOME_0_TO_50K: \"INCOME_0_TO_50K\",\n INCOME_50K_TO_100K: \"INCOME_50K_TO_100K\",\n INCOME_100K_TO_250K: \"INCOME_100K_TO_250K\",\n INCOME_250K_TO_500K: \"INCOME_250K_TO_500K\",\n INCOME_500K_TO_750K: \"INCOME_500K_TO_750K\",\n INCOME_750K_TO_1M: \"INCOME_750K_TO_1M\",\n INCOME_ABOVE_1M: \"INCOME_ABOVE_1M\",\n} as const;\n\nexport const IdentityRequirementAwaitingActionFrom = {\n CLIENT: \"CLIENT\",\n PAXOS: \"PAXOS\",\n} as const;\nexport type KnownIdentityRequirementAwaitingActionFrom =\n (typeof IdentityRequirementAwaitingActionFrom)[keyof typeof IdentityRequirementAwaitingActionFrom];\n\nexport const IdentityRequirementErrorCode = {\n IDENTITY_VERIFICATION_FAILED: \"IDENTITY_VERIFICATION_FAILED\",\n DOCUMENT_VERIFICATION_FAILED: \"DOCUMENT_VERIFICATION_FAILED\",\n SCREENING_IN_PROGRESS: \"SCREENING_IN_PROGRESS\",\n SCREENING_FAILED: \"SCREENING_FAILED\",\n KYC_REFRESH_OVERDUE: \"KYC_REFRESH_OVERDUE\",\n MEMBER_VERIFICATION_FAILED: \"MEMBER_VERIFICATION_FAILED\",\n MEMBER_VERIFICATION_PENDING: \"MEMBER_VERIFICATION_PENDING\",\n EDD_DOCUMENTATION_REQUIRED: \"EDD_DOCUMENTATION_REQUIRED\",\n COMPLIANCE_REVIEW_REQUIRED: \"COMPLIANCE_REVIEW_REQUIRED\",\n COMPLIANCE_REVIEW_FAILED: \"COMPLIANCE_REVIEW_FAILED\",\n TIN_NOT_FOUND: \"TIN_NOT_FOUND\",\n IDENTITY_VERIFICATION_REQUIRED: \"IDENTITY_VERIFICATION_REQUIRED\",\n DOCUMENT_UPLOAD_REQUIRED: \"DOCUMENT_UPLOAD_REQUIRED\",\n KYC_REFRESH_REQUIRED: \"KYC_REFRESH_REQUIRED\",\n TAX_DOCUMENTATION_REQUIRED: \"TAX_DOCUMENTATION_REQUIRED\",\n TAX_DOCUMENTATION_VALIDATION_PENDING: \"TAX_DOCUMENTATION_VALIDATION_PENDING\",\n TAX_DOCUMENTATION_RESUBMISSION_REQUIRED: \"TAX_DOCUMENTATION_RESUBMISSION_REQUIRED\",\n TAX_DOCUMENTATION_EXPIRED: \"TAX_DOCUMENTATION_EXPIRED\",\n TAX_DOCUMENTATION_UNKNOWN_ISSUE: \"TAX_DOCUMENTATION_UNKNOWN_ISSUE\",\n TIN_MISMATCH: \"TIN_MISMATCH\",\n TIN_NOT_ISSUED: \"TIN_NOT_ISSUED\",\n INVALID_TAX_DOCUMENTATION_DATA: \"INVALID_TAX_DOCUMENTATION_DATA\",\n INVALID_PERMANENT_ADDRESS_CARE_OF: \"INVALID_PERMANENT_ADDRESS_CARE_OF\",\n INVALID_PERMANENT_ADDRESS_PO_BOX: \"INVALID_PERMANENT_ADDRESS_PO_BOX\",\n INVALID_PERMANENT_ADDRESS_US: \"INVALID_PERMANENT_ADDRESS_US\",\n TREATY_COUNTRY_MISMATCH: \"TREATY_COUNTRY_MISMATCH\",\n US_INDICIA: \"US_INDICIA\",\n INCOMPLETE_WITHHOLDING_DOCUMENTATION: \"INCOMPLETE_WITHHOLDING_DOCUMENTATION\",\n CHANGE_IN_CIRCUMSTANCES: \"CHANGE_IN_CIRCUMSTANCES\",\n INCOMPLETE_DATA: \"INCOMPLETE_DATA\",\n INCONSISTENT_DATA: \"INCONSISTENT_DATA\",\n INCOMPLETE_ADDRESS: \"INCOMPLETE_ADDRESS\",\n INCOMPLETE_TAX_CLASSIFICATION: \"INCOMPLETE_TAX_CLASSIFICATION\",\n INCOMPLETE_US_TIN: \"INCOMPLETE_US_TIN\",\n INCOMPLETE_TREATY_CLAIM: \"INCOMPLETE_TREATY_CLAIM\",\n EDD_OVERDUE: \"EDD_OVERDUE\",\n} as const;\n\nexport const IdentityRequirementRequirementStatus = {\n PENDING: \"PENDING\",\n FAILED: \"FAILED\",\n} as const;\nexport type KnownIdentityRequirementRequirementStatus =\n (typeof IdentityRequirementRequirementStatus)[keyof typeof IdentityRequirementRequirementStatus];\n\nexport const IdentityRequirementRequirementType = {\n ID_VERIFICATION: \"ID_VERIFICATION\",\n DOCUMENT_VERIFICATION: \"DOCUMENT_VERIFICATION\",\n SCREENING_CHECK: \"SCREENING_CHECK\",\n COMPLIANCE_CHECK: \"COMPLIANCE_CHECK\",\n ENHANCED_DUE_DILIGENCE: \"ENHANCED_DUE_DILIGENCE\",\n MEMBERS: \"MEMBERS\",\n KYC_REFRESH: \"KYC_REFRESH\",\n TAX_DETAILS_VERIFICATION: \"TAX_DETAILS_VERIFICATION\",\n TAX_DOCUMENTATION: \"TAX_DOCUMENTATION\",\n} as const;\nexport type KnownIdentityRequirementRequirementType =\n (typeof IdentityRequirementRequirementType)[keyof typeof IdentityRequirementRequirementType];\n\nexport const ListIdentitiesRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const MerchantFundingSourceFundingSource = {\n BUSINESS_LOANS_FINANCING: \"BUSINESS_LOANS_FINANCING\",\n SALARY_SAVINGS: \"SALARY_SAVINGS\",\n INVESTMENT_GAINS: \"INVESTMENT_GAINS\",\n INHERITANCE: \"INHERITANCE\",\n REAL_ESTATE_INCOME: \"REAL_ESTATE_INCOME\",\n NON_PROFIT_SOURCES: \"NON_PROFIT_SOURCES\",\n OTHER_BUSINESS_INCOME: \"OTHER_BUSINESS_INCOME\",\n} as const;\n\nexport const PassthroughVerificationField = {\n FULL_LEGAL_NAME: \"FULL_LEGAL_NAME\",\n ADDRESS: \"ADDRESS\",\n DATE_OF_BIRTH: \"DATE_OF_BIRTH\",\n CIP_ID: \"CIP_ID\",\n} as const;\n\nexport const PersonDetailsCIPIDType = {\n SSN: \"SSN\",\n ID_CARD: \"ID_CARD\",\n ITIN: \"ITIN\",\n PASSPORT: \"PASSPORT\",\n DRIVING_LICENSE: \"DRIVING_LICENSE\",\n VISA: \"VISA\",\n} as const;\n\nexport const VerifierType = {\n PAXOS: \"PAXOS\",\n PASSTHROUGH: \"PASSTHROUGH\",\n MANUAL: \"MANUAL\",\n} as const;\n\nexport const AccountPurpose = {\n INVESTMENT_TRADING: \"INVESTMENT_TRADING\",\n SAVINGS: \"SAVINGS\",\n STABLECOIN_PURCHASE_REDEMPTION: \"STABLECOIN_PURCHASE_REDEMPTION\",\n} as const;\n\nexport const CustomerRegion = {\n US_CANADA: \"US_CANADA\",\n MEXICO_CENTRAL_AMERICA: \"MEXICO_CENTRAL_AMERICA\",\n SOUTH_AMERICA: \"SOUTH_AMERICA\",\n EUROPE: \"EUROPE\",\n ASIA: \"ASIA\",\n AFRICA: \"AFRICA\",\n OCEANIA: \"OCEANIA\",\n} as const;\n\nexport const DocumentType = {\n OTHER_DOCUMENTS: \"OTHER_DOCUMENTS\",\n APPLICATION: \"APPLICATION\",\n ORGANIZATIONAL_DOCUMENTS: \"ORGANIZATIONAL_DOCUMENTS\",\n CERTIFICATE_OF_GOOD_STANDING: \"CERTIFICATE_OF_GOOD_STANDING\",\n TAX_IDENTIFICATION: \"TAX_IDENTIFICATION\",\n IDENTITY_VERIFICATION: \"IDENTITY_VERIFICATION\",\n PROOF_OF_RESIDENCY: \"PROOF_OF_RESIDENCY\",\n PROOF_OF_FUNDS: \"PROOF_OF_FUNDS\",\n SAMPLE_INVOICE: \"SAMPLE_INVOICE\",\n OPERATING_AGREEMENT: \"OPERATING_AGREEMENT\",\n TRUST_DOCUMENTS: \"TRUST_DOCUMENTS\",\n MONEY_SERVICE_DOCUMENTS: \"MONEY_SERVICE_DOCUMENTS\",\n INVESTMENT_DOCUMENTS: \"INVESTMENT_DOCUMENTS\",\n CURP: \"CURP\",\n AML_DOCUMENTS: \"AML_DOCUMENTS\",\n FUND_STRUCTURE_CHART: \"FUND_STRUCTURE_CHART\",\n FUND_MANAGER_REGISTRATION: \"FUND_MANAGER_REGISTRATION\",\n MEMORANDUM_OF_ASSOCIATION: \"MEMORANDUM_OF_ASSOCIATION\",\n ORGANIZATIONAL_CHART: \"ORGANIZATIONAL_CHART\",\n FOUNDATION_BY_LAWS: \"FOUNDATION_BY_LAWS\",\n APPOINTMENT_OF_GUARDIAN_EVIDENCE: \"APPOINTMENT_OF_GUARDIAN_EVIDENCE\",\n LEGAL_DOMICILE_OF_BENEFICIAL_OWNERS: \"LEGAL_DOMICILE_OF_BENEFICIAL_OWNERS\",\n GOVERNING_BODY_MEMBER_NAMES: \"GOVERNING_BODY_MEMBER_NAMES\",\n INDEPENDENT_AUDIT: \"INDEPENDENT_AUDIT\",\n PARTNER_PROFILE_SCREENSHOT: \"PARTNER_PROFILE_SCREENSHOT\",\n SOURCE_OF_WEALTH_SUMMARY: \"SOURCE_OF_WEALTH_SUMMARY\",\n} as const;\nexport type KnownDocumentType = (typeof DocumentType)[keyof typeof DocumentType];\n\nexport const EmploymentStatus = {\n CONTRACTUAL: \"CONTRACTUAL\",\n FULL_TIME: \"FULL_TIME\",\n PART_TIME: \"PART_TIME\",\n RETIRED: \"RETIRED\",\n SELF_EMPLOYED: \"SELF_EMPLOYED\",\n STUDENT: \"STUDENT\",\n UNEMPLOYED: \"UNEMPLOYED\",\n} as const;\n\nexport const FundsSource = {\n SALARY_DISBURSEMENT: \"SALARY_DISBURSEMENT\",\n INHERITANCE_DISTRIBUTION: \"INHERITANCE_DISTRIBUTION\",\n INVESTMENT_RETURNS: \"INVESTMENT_RETURNS\",\n BUSINESS_DIVIDENDS_PROFITS: \"BUSINESS_DIVIDENDS_PROFITS\",\n PROPERTY_SALE: \"PROPERTY_SALE\",\n LOAN_DISBURSEMENT: \"LOAN_DISBURSEMENT\",\n SAVINGS_ACCOUNT_WITHDRAWAL: \"SAVINGS_ACCOUNT_WITHDRAWAL\",\n GOVERNMENT_BENEFITS: \"GOVERNMENT_BENEFITS\",\n} as const;\n\nexport const IdentityControlReasonCode = {\n OTHER: \"OTHER\",\n END_USER_REQUEST: \"END_USER_REQUEST\",\n INACTIVITY: \"INACTIVITY\",\n COMPLIANCE_KYC: \"COMPLIANCE_KYC\",\n COMPLIANCE_EDD: \"COMPLIANCE_EDD\",\n COMPLIANCE_SCREENING: \"COMPLIANCE_SCREENING\",\n COMPLIANCE_INVESTIGATION: \"COMPLIANCE_INVESTIGATION\",\n COMPLIANCE_INCOMPLETE: \"COMPLIANCE_INCOMPLETE\",\n RISK_FRAUD: \"RISK_FRAUD\",\n LEGAL_ORDER: \"LEGAL_ORDER\",\n ADMINISTRATIVE: \"ADMINISTRATIVE\",\n TAX_DOCUMENTATION: \"TAX_DOCUMENTATION\",\n} as const;\nexport type KnownIdentityControlReasonCode = (typeof IdentityControlReasonCode)[keyof typeof IdentityControlReasonCode];\n\nexport const IdentityControlSetBy = {\n PAXOS: \"SET_BY_PAXOS\",\n CLIENT: \"SET_BY_CLIENT\",\n} as const;\n\nexport const IdentityControlType = {\n SELL_ONLY: \"SELL_ONLY\",\n CLOSED: \"CLOSED\",\n FROZEN: \"FROZEN\",\n DORMANT: \"DORMANT\",\n} as const;\nexport type KnownIdentityControlType = (typeof IdentityControlType)[keyof typeof IdentityControlType];\n\nexport const IdentityDocumentUploadStatus = {\n NOT_STARTED: \"NOT_STARTED\",\n PENDING_UPLOAD: \"PENDING_UPLOAD\",\n REJECTED_UPLOAD: \"REJECTED_UPLOAD\",\n COMPLETED_UPLOAD: \"COMPLETED_UPLOAD\",\n} as const;\n\nexport const IdentityStatus = {\n PENDING: \"PENDING\",\n ERROR: \"ERROR\",\n APPROVED: \"APPROVED\",\n DENIED: \"DENIED\",\n DISABLED: \"DISABLED\",\n} as const;\nexport type KnownIdentityStatus = (typeof IdentityStatus)[keyof typeof IdentityStatus];\n\nexport const IdentityType = {\n PERSON: \"PERSON\",\n INSTITUTION: \"INSTITUTION\",\n} as const;\nexport type KnownIdentityType = (typeof IdentityType)[keyof typeof IdentityType];\n\nexport const InstitutionCIPIDType = {\n EIN: \"EIN\",\n SSN: \"SSN\",\n ITIN: \"ITIN\",\n REGISTRATION_NUMBER: \"REGISTRATION_NUMBER\",\n} as const;\n\nexport const InstitutionRoleType = {\n BENEFICIAL_OWNER: \"BENEFICIAL_OWNER\",\n ACCOUNT_OPENER: \"ACCOUNT_OPENER\",\n TRUSTEE: \"TRUSTEE\",\n AUTHORIZED_USER: \"AUTHORIZED_USER\",\n GRANTOR: \"GRANTOR\",\n MANAGEMENT_CONTROL_PERSON: \"MANAGEMENT_CONTROL_PERSON\",\n BENEFICIARY: \"BENEFICIARY\",\n SOLE_PROPRIETOR: \"SOLE_PROPRIETOR\",\n} as const;\n\nexport const InstitutionSubType = {\n INVESTMENT: \"INVESTMENT\",\n HEDGE_FUND: \"HEDGE_FUND\",\n MONEY_SERVICE_BUSINESS: \"MONEY_SERVICE_BUSINESS\",\n STO_ISSUER: \"STO_ISSUER\",\n PRECIOUS_METALS: \"PRECIOUS_METALS\",\n NON_PROFIT: \"NON_PROFIT\",\n REGISTERED_INVESTMENT_ADVISOR: \"REGISTERED_INVESTMENT_ADVISOR\",\n AGRICULTURE_FORESTRY_FISHING_HUNTING: \"AGRICULTURE_FORESTRY_FISHING_HUNTING\",\n MINING: \"MINING\",\n UTILITIES: \"UTILITIES\",\n CONSTRUCTION: \"CONSTRUCTION\",\n MANUFACTURING: \"MANUFACTURING\",\n WHOLESALE_TRADE: \"WHOLESALE_TRADE\",\n RETAIL_TRADE: \"RETAIL_TRADE\",\n TRANSPORTATION_WAREHOUSING: \"TRANSPORTATION_WAREHOUSING\",\n INFORMATION: \"INFORMATION\",\n FINANCE_INSURANCE: \"FINANCE_INSURANCE\",\n REAL_ESTATE_RENTAL_LEASING: \"REAL_ESTATE_RENTAL_LEASING\",\n PROFESSIONAL_SCIENTIFIC_TECHNICAL_SERVICES: \"PROFESSIONAL_SCIENTIFIC_TECHNICAL_SERVICES\",\n MANAGEMENT_OF_COMPANIES_ENTERPRISES: \"MANAGEMENT_OF_COMPANIES_ENTERPRISES\",\n ADMINISTRATIVE_SUPPORT_WASTE_MANAGEMENT_REMEDIATION_SERVICES:\n \"ADMINISTRATIVE_SUPPORT_WASTE_MANAGEMENT_REMEDIATION_SERVICES\",\n EDUCATIONAL_SERVICES: \"EDUCATIONAL_SERVICES\",\n HEALTH_CARE_SOCIAL_ASSISTANCE: \"HEALTH_CARE_SOCIAL_ASSISTANCE\",\n ARTS_ENTERTAINMENT_RECREATION: \"ARTS_ENTERTAINMENT_RECREATION\",\n ACCOMMODATION_FOOD_SERVICES: \"ACCOMMODATION_FOOD_SERVICES\",\n OTHER_SERVICES: \"OTHER_SERVICES\",\n PUBLIC_ADMINISTRATION: \"PUBLIC_ADMINISTRATION\",\n NOT_CLASSIFIED: \"NOT_CLASSIFIED\",\n ADULT_ENTERTAINMENT: \"ADULT_ENTERTAINMENT\",\n AUCTIONS: \"AUCTIONS\",\n AUTOMOBILES: \"AUTOMOBILES\",\n BLOCKCHAIN: \"BLOCKCHAIN\",\n CRYPTO: \"CRYPTO\",\n DRUGS: \"DRUGS\",\n EXPORT_IMPORT: \"EXPORT_IMPORT\",\n E_COMMERCE: \"E_COMMERCE\",\n FINANCIAL_INSTITUTION: \"FINANCIAL_INSTITUTION\",\n GAMBLING: \"GAMBLING\",\n INSURANCE: \"INSURANCE\",\n MARKET_MAKER: \"MARKET_MAKER\",\n SHELL_BANK: \"SHELL_BANK\",\n TRAVEL_TRANSPORT: \"TRAVEL_TRANSPORT\",\n WEAPONS: \"WEAPONS\",\n} as const;\n\nexport const InstitutionType = {\n TRUST: \"TRUST\",\n CORPORATION: \"CORPORATION\",\n LLC: \"LLC\",\n PARTNERSHIP: \"PARTNERSHIP\",\n SOLE_PROPRIETORSHIP: \"SOLE_PROPRIETORSHIP\",\n} as const;\n\nexport const PassthroughVerifierType = {\n JUMIO: \"JUMIO\",\n ALLOY: \"ALLOY\",\n LEXISNEXIS: \"LEXISNEXIS\",\n MITEK: \"MITEK\",\n SUMSUB: \"SUMSUB\",\n MICROBILT: \"MICROBILT\",\n ONFIDO: \"ONFIDO\",\n CUSTOMER: \"CUSTOMER\",\n EQUIFAX: \"EQUIFAX\",\n ID3_AUTHENTICATE: \"ID3_AUTHENTICATE\",\n FIS: \"FIS\",\n PROVE: \"PROVE\",\n PERSONA: \"PERSONA\",\n PLAID: \"PLAID\",\n DOTFILE: \"DOTFILE\",\n AIPRISE: \"AIPRISE\",\n} as const;\n\nexport const RegulationStatus = {\n US_REGULATED: \"US_REGULATED\",\n INTL_REGULATED: \"INTL_REGULATED\",\n NON_REGULATED: \"NON_REGULATED\",\n} as const;\n\nexport const TINVerificationStatus = {\n TIN_VERIFICATION_PENDING: \"TIN_VERIFICATION_PENDING\",\n TIN_VERIFICATION_ERROR: \"TIN_VERIFICATION_ERROR\",\n TIN_VERIFICATION_VALID: \"TIN_VERIFICATION_VALID\",\n} as const;\n\nexport const TradingType = {\n PRIVATE: \"PRIVATE\",\n PUBLIC: \"PUBLIC\",\n PUBLICLY_TRADED_SUBSIDIARY: \"PUBLICLY_TRADED_SUBSIDIARY\",\n} as const;\n\nexport const WealthSource = {\n INHERITANCE: \"INHERITANCE\",\n INVESTMENT_GAINS: \"INVESTMENT_GAINS\",\n BUSINESS_OWNERSHIP_DIVIDENDS: \"BUSINESS_OWNERSHIP_DIVIDENDS\",\n EMPLOYMENT_INCOME: \"EMPLOYMENT_INCOME\",\n REAL_ESTATE: \"REAL_ESTATE\",\n OTHER_SOURCE_OF_WEALTH: \"OTHER_SOURCE_OF_WEALTH\",\n} as const;\n\nexport const W8BenETaxDocumentationLimitationOnBenefits = {\n GOVERNMENT: \"GOVERNMENT\",\n TAX_EXEMPT_PENSION: \"TAX_EXEMPT_PENSION\",\n OTHER_TAX_EXEMPT_ORGANIZATION: \"OTHER_TAX_EXEMPT_ORGANIZATION\",\n PUBLICLY_TRADED_CORPORATION: \"PUBLICLY_TRADED_CORPORATION\",\n SUBSIDIARY: \"SUBSIDIARY\",\n COMPANY_MEETS_EROSION_TEST: \"COMPANY_MEETS_EROSION_TEST\",\n COMPANY_MEETS_DERIVATIVE_TEST: \"COMPANY_MEETS_DERIVATIVE_TEST\",\n COMPANY_MEETS_BUSINESS_TEST: \"COMPANY_MEETS_BUSINESS_TEST\",\n FAVORABLE_DETERMINATION: \"FAVORABLE_DETERMINATION\",\n NO_LOB_ARTICLE: \"NO_LOB_ARTICLE\",\n OTHER_ARTICLE_PARAGRAPH: \"OTHER_ARTICLE_PARAGRAPH\",\n} as const;\n\nexport const W9TaxDocumentationTinType = {\n SSN: \"SSN\",\n EIN: \"EIN\",\n ITIN: \"ITIN\",\n ATIN: \"ATIN\",\n} as const;\n\nexport const TaxDocumentationCompletedFor = {\n ACCOUNT_HOLDER: \"ACCOUNT_HOLDER\",\n REGARDED_OWNER: \"REGARDED_OWNER\",\n} as const;\n\nexport const TaxDocumentationFormType = {\n W_9: \"W_9\",\n W_8BEN: \"W_8BEN\",\n W_8BEN_E: \"W_8BEN_E\",\n} as const;\nexport type KnownTaxDocumentationFormType = (typeof TaxDocumentationFormType)[keyof typeof TaxDocumentationFormType];\n\nexport const TaxDocumentationIncomeType = {\n BUSINESS_PROFITS: \"BUSINESS_PROFITS\",\n DIVIDENDS: \"DIVIDENDS\",\n INTEREST: \"INTEREST\",\n OTHER_INCOME: \"OTHER_INCOME\",\n ROYALTIES_MOTION_PICTURE_AND_TV: \"ROYALTIES_MOTION_PICTURE_AND_TV\",\n ROYALTIES_OTHER: \"ROYALTIES_OTHER\",\n} as const;\n\nexport const W8BenETaxDocumentationTaxClassification = {\n CORPORATION: \"CORPORATION\",\n PARTNERSHIP: \"PARTNERSHIP\",\n SIMPLE_TRUST: \"SIMPLE_TRUST\",\n COMPLEX_TRUST: \"COMPLEX_TRUST\",\n GRANTOR_TRUST: \"GRANTOR_TRUST\",\n ESTATE: \"ESTATE\",\n CENTRAL_BANK_OF_ISSUE: \"CENTRAL_BANK_OF_ISSUE\",\n FOREIGN_GOVERNMENT_CONTROLLED_ENTITY: \"FOREIGN_GOVERNMENT_CONTROLLED_ENTITY\",\n FOREIGN_GOVERNMENT_INTEGRAL_PART: \"FOREIGN_GOVERNMENT_INTEGRAL_PART\",\n TAX_EXEMPT_ORGANIZATION: \"TAX_EXEMPT_ORGANIZATION\",\n PRIVATE_FOUNDATION: \"PRIVATE_FOUNDATION\",\n INTERNATIONAL_ORGANIZATION: \"INTERNATIONAL_ORGANIZATION\",\n} as const;\n\nexport const W9TaxDocumentationTaxClassification = {\n INDIVIDUAL: \"INDIVIDUAL\",\n C_CORPORATION: \"C_CORPORATION\",\n S_CORPORATION: \"S_CORPORATION\",\n PARTNERSHIP: \"PARTNERSHIP\",\n TRUST_ESTATE: \"TRUST_ESTATE\",\n LLC_C: \"LLC_C\",\n LLC_P: \"LLC_P\",\n LLC_S: \"LLC_S\",\n SOLE_PROPRIETOR: \"SOLE_PROPRIETOR\",\n OTHER: \"OTHER\",\n} as const;\n\nexport const AccountAccountType = {\n BROKERAGE: \"BROKERAGE\",\n TRADITIONAL_IRA: \"TRADITIONAL_IRA\",\n ROTH_IRA: \"ROTH_IRA\",\n SEP_IRA: \"SEP_IRA\",\n FINANCIAL_ADVISOR: \"FINANCIAL_ADVISOR\",\n} as const;\n\nexport const AccountMemberAccountRoleType = {\n BENEFICIAL_OWNER: \"BENEFICIAL_OWNER\",\n AUTHORIZED_USER: \"AUTHORIZED_USER\",\n FINANCIAL_ADVISOR: \"FINANCIAL_ADVISOR\",\n} as const;\n\nexport const ListAccountsRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const PricePriceMarket = {\n ETHUSD: \"ETHUSD\",\n BTCUSD: \"BTCUSD\",\n PAXGUSD: \"PAXGUSD\",\n BCHUSD: \"BCHUSD\",\n LTCUSD: \"LTCUSD\",\n USDPUSD: \"USDPUSD\",\n LINKUSD: \"LINKUSD\",\n SOLUSD: \"SOLUSD\",\n AAVEUSD: \"AAVEUSD\",\n UNIUSD: \"UNIUSD\",\n PEPEUSD: \"PEPEUSD\",\n TRUMPUSD: \"TRUMPUSD\",\n SHIBUSD: \"SHIBUSD\",\n ARBUSD: \"ARBUSD\",\n BONKUSD: \"BONKUSD\",\n ENAUSD: \"ENAUSD\",\n MNTUSD: \"MNTUSD\",\n ONDOUSD: \"ONDOUSD\",\n PENGUUSD: \"PENGUUSD\",\n QNTUSD: \"QNTUSD\",\n RENDERUSD: \"RENDERUSD\",\n SKYUSD: \"SKYUSD\",\n WIFUSD: \"WIFUSD\",\n WLDUSD: \"WLDUSD\",\n DOGEUSD: \"DOGEUSD\",\n AVAXUSD: \"AVAXUSD\",\n SUIUSD: \"SUIUSD\",\n POLUSD: \"POLUSD\",\n XLMUSD: \"XLMUSD\",\n BNBUSD: \"BNBUSD\",\n APTUSD: \"APTUSD\",\n ATOMUSD: \"ATOMUSD\",\n OPUSD: \"OPUSD\",\n TRXUSD: \"TRXUSD\",\n HYPEUSD: \"HYPEUSD\",\n XRPUSD: \"XRPUSD\",\n} as const;\nexport type KnownPricePriceMarket = (typeof PricePriceMarket)[keyof typeof PricePriceMarket];\n\nexport const Increment = {\n ONE_MINUTE: \"ONE_MINUTE\",\n FIVE_MINUTES: \"FIVE_MINUTES\",\n FIFTEEN_MINUTES: \"FIFTEEN_MINUTES\",\n THIRTY_MINUTES: \"THIRTY_MINUTES\",\n ONE_HOUR: \"ONE_HOUR\",\n TWO_HOURS: \"TWO_HOURS\",\n TWELVE_HOURS: \"TWELVE_HOURS\",\n ONE_DAY: \"ONE_DAY\",\n ONE_WEEK: \"ONE_WEEK\",\n TWO_WEEKS: \"TWO_WEEKS\",\n FOUR_WEEKS: \"FOUR_WEEKS\",\n} as const;\nexport type KnownIncrement = (typeof Increment)[keyof typeof Increment];\n\nexport const IssuerQuoteExecutionStatus = {\n PENDING: \"PENDING\",\n COMPLETE: \"COMPLETE\",\n FAILED: \"FAILED\",\n} as const;\nexport type KnownIssuerQuoteExecutionStatus =\n (typeof IssuerQuoteExecutionStatus)[keyof typeof IssuerQuoteExecutionStatus];\n\nexport const ListIssuerQuoteExecutionsRequestStatus = {\n PENDING: \"PENDING\",\n COMPLETE: \"COMPLETE\",\n FAILED: \"FAILED\",\n} as const;\n\nexport const MaintenanceRecurrence = {\n UNSPECIFIED: \"MAINTENANCE_RECURRENCE_UNSPECIFIED\",\n NONE: \"NONE\",\n DAILY: \"DAILY\",\n WEEKLY: \"WEEKLY\",\n} as const;\n\nexport const Market = {\n ETHEUR: \"ETHEUR\",\n ETHSGD: \"ETHSGD\",\n ETHUSD: \"ETHUSD\",\n BTCEUR: \"BTCEUR\",\n BTCSGD: \"BTCSGD\",\n BTCUSD: \"BTCUSD\",\n PAXGUSD: \"PAXGUSD\",\n BCHUSD: \"BCHUSD\",\n LTCUSD: \"LTCUSD\",\n USDPUSD: \"USDPUSD\",\n LINKUSD: \"LINKUSD\",\n SOLUSD: \"SOLUSD\",\n AAVEUSD: \"AAVEUSD\",\n UNIUSD: \"UNIUSD\",\n PEPEUSD: \"PEPEUSD\",\n TRUMPUSD: \"TRUMPUSD\",\n SHIBUSD: \"SHIBUSD\",\n ARBUSD: \"ARBUSD\",\n BONKUSD: \"BONKUSD\",\n ENAUSD: \"ENAUSD\",\n MNTUSD: \"MNTUSD\",\n ONDOUSD: \"ONDOUSD\",\n PENGUUSD: \"PENGUUSD\",\n QNTUSD: \"QNTUSD\",\n RENDERUSD: \"RENDERUSD\",\n SKYUSD: \"SKYUSD\",\n WIFUSD: \"WIFUSD\",\n WLDUSD: \"WLDUSD\",\n DOGEUSD: \"DOGEUSD\",\n AVAXUSD: \"AVAXUSD\",\n SUIUSD: \"SUIUSD\",\n POLUSD: \"POLUSD\",\n XLMUSD: \"XLMUSD\",\n BNBUSD: \"BNBUSD\",\n APTUSD: \"APTUSD\",\n ATOMUSD: \"ATOMUSD\",\n OPUSD: \"OPUSD\",\n TRXUSD: \"TRXUSD\",\n HYPEUSD: \"HYPEUSD\",\n XRPUSD: \"XRPUSD\",\n} as const;\nexport type KnownMarket = (typeof Market)[keyof typeof Market];\n\nexport const MarketStatusReason = {\n UNSPECIFIED: \"MARKET_STATUS_REASON_UNSPECIFIED\",\n SCHEDULED_MAINTENANCE: \"SCHEDULED_MAINTENANCE\",\n TRADING_SUSPENDED: \"TRADING_SUSPENDED\",\n UNSCHEDULED_MAINTENANCE: \"UNSCHEDULED_MAINTENANCE\",\n} as const;\n\nexport const MarketTradingStatus = {\n UNSPECIFIED: \"MARKET_TRADING_STATUS_UNSPECIFIED\",\n AVAILABLE: \"AVAILABLE\",\n UNAVAILABLE: \"UNAVAILABLE\",\n} as const;\n\nexport const OrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\nexport type KnownOrderBy = (typeof OrderBy)[keyof typeof OrderBy];\n\nexport const OrderSide = {\n BUY: \"BUY\",\n SELL: \"SELL\",\n} as const;\nexport type KnownOrderSide = (typeof OrderSide)[keyof typeof OrderSide];\n\nexport const OrderStatus = {\n PENDING_SUBMISSION: \"PENDING_SUBMISSION\",\n SUBMITTED: \"SUBMITTED\",\n OPEN: \"OPEN\",\n FILLED: \"FILLED\",\n CANCELLED: \"CANCELLED\",\n REJECTED: \"REJECTED\",\n EXPIRED: \"EXPIRED\",\n} as const;\nexport type KnownOrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];\n\nexport const OrderType = {\n LIMIT: \"LIMIT\",\n MARKET: \"MARKET\",\n POST_ONLY_LIMIT: \"POST_ONLY_LIMIT\",\n STOP_MARKET: \"STOP_MARKET\",\n STOP_LIMIT: \"STOP_LIMIT\",\n} as const;\nexport type KnownOrderType = (typeof OrderType)[keyof typeof OrderType];\n\nexport const QuoteExecutionStatus = {\n CREATED: \"CREATED\",\n SETTLED: \"SETTLED\",\n} as const;\nexport type KnownQuoteExecutionStatus = (typeof QuoteExecutionStatus)[keyof typeof QuoteExecutionStatus];\n\nexport const TimeInForce = {\n GTC: \"GTC\",\n FOK: \"FOK\",\n IOC: \"IOC\",\n GTT: \"GTT\",\n} as const;\nexport type KnownTimeInForce = (typeof TimeInForce)[keyof typeof TimeInForce];\n\nexport const DepositAddressConversionTargetAsset = {\n NO_CONVERSION: \"NO_CONVERSION\",\n USD: \"USD\",\n} as const;\nexport type KnownDepositAddressConversionTargetAsset =\n (typeof DepositAddressConversionTargetAsset)[keyof typeof DepositAddressConversionTargetAsset];\n\nexport const TransferDirection = {\n CREDIT: \"CREDIT\",\n DEBIT: \"DEBIT\",\n} as const;\n\nexport const AwaitingActionFrom = {\n UNSPECIFIED: \"AWAITING_ACTION_FROM_UNSPECIFIED\",\n CLIENT: \"AWAITING_ACTION_FROM_CLIENT\",\n PAXOS: \"AWAITING_ACTION_FROM_PAXOS\",\n} as const;\n\nexport const CryptoDestinationAddressStatus = {\n PENDING: \"PENDING\",\n APPROVED: \"APPROVED\",\n REJECTED: \"REJECTED\",\n} as const;\n\nexport const CustodianType = {\n VASP: \"VASP\",\n PRIVATE: \"PRIVATE\",\n} as const;\nexport type KnownCustodianType = (typeof CustodianType)[keyof typeof CustodianType];\n\nexport const FiatAccountStatus = {\n PENDING: \"PENDING\",\n APPROVED: \"APPROVED\",\n REJECTED: \"REJECTED\",\n} as const;\n\nexport const FiatDepositInstructionsStatus = {\n VALID: \"VALID\",\n DEPRECATED: \"DEPRECATED\",\n} as const;\n\nexport const FiatNetwork = {\n WIRE: \"WIRE\",\n DBS_ACT: \"DBS_ACT\",\n CUBIX: \"CUBIX\",\n SCB: \"SCB\",\n RTP: \"RTP\",\n BNY: \"BNY\",\n} as const;\nexport type KnownFiatNetwork = (typeof FiatNetwork)[keyof typeof FiatNetwork];\n\nexport const FiatWireAccountType = {\n ABA: \"ABA\",\n SWIFT: \"SWIFT\",\n} as const;\nexport type KnownFiatWireAccountType = (typeof FiatWireAccountType)[keyof typeof FiatWireAccountType];\n\nexport const ListCryptoDestinationAddressesRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const ListDepositAddressesRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const ListFiatAccountsRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const ListTransfersRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n UPDATED_AT: \"UPDATED_AT\",\n} as const;\nexport type KnownListTransfersRequestOrderBy =\n (typeof ListTransfersRequestOrderBy)[keyof typeof ListTransfersRequestOrderBy];\n\nexport const SecondaryStatusName = {\n TRAVEL_RULE_INFO_REQUESTED: \"TRAVEL_RULE_INFO_REQUESTED\",\n TRAVEL_RULE_REJECTED: \"TRAVEL_RULE_REJECTED\",\n CUSTOMER_REJECTED: \"CUSTOMER_REJECTED\",\n PENDING_CUSTOMER_APPROVAL: \"PENDING_CUSTOMER_APPROVAL\",\n VASP_RESTRICTED: \"VASP_RESTRICTED\",\n} as const;\nexport type KnownSecondaryStatusName = (typeof SecondaryStatusName)[keyof typeof SecondaryStatusName];\n\nexport const TransferStatus = {\n PENDING: \"PENDING\",\n COMPLETED: \"COMPLETED\",\n FAILED: \"FAILED\",\n} as const;\nexport type KnownTransferStatus = (typeof TransferStatus)[keyof typeof TransferStatus];\n\nexport const TransferType = {\n INTERNAL_TRANSFER_DEBIT: \"INTERNAL_TRANSFER_DEBIT\",\n INTERNAL_TRANSFER_CREDIT: \"INTERNAL_TRANSFER_CREDIT\",\n CRYPTO_DEPOSIT: \"CRYPTO_DEPOSIT\",\n CRYPTO_WITHDRAWAL: \"CRYPTO_WITHDRAWAL\",\n WIRE_DEPOSIT: \"WIRE_DEPOSIT\",\n WIRE_WITHDRAWAL: \"WIRE_WITHDRAWAL\",\n SEN_DEPOSIT: \"SEN_DEPOSIT\",\n SEN_WITHDRAWAL: \"SEN_WITHDRAWAL\",\n BANK_DEPOSIT: \"BANK_DEPOSIT\",\n BANK_WITHDRAWAL: \"BANK_WITHDRAWAL\",\n PAXOS_TRANSFER_DEBIT: \"PAXOS_TRANSFER_DEBIT\",\n PAXOS_TRANSFER_CREDIT: \"PAXOS_TRANSFER_CREDIT\",\n SIGNET_DEPOSIT: \"SIGNET_DEPOSIT\",\n SIGNET_WITHDRAWAL: \"SIGNET_WITHDRAWAL\",\n CBIT_WITHDRAWAL: \"CBIT_WITHDRAWAL\",\n CBIT_DEPOSIT: \"CBIT_DEPOSIT\",\n CUBIX_DEPOSIT: \"CUBIX_DEPOSIT\",\n CUBIX_WITHDRAWAL: \"CUBIX_WITHDRAWAL\",\n RTP_DEPOSIT: \"RTP_DEPOSIT\",\n} as const;\nexport type KnownTransferType = (typeof TransferType)[keyof typeof TransferType];\n\nexport const ListVaspsRequestOrderBy = {\n NAME: \"NAME\",\n} as const;\nexport type KnownListVaspsRequestOrderBy = (typeof ListVaspsRequestOrderBy)[keyof typeof ListVaspsRequestOrderBy];\n\nexport const TaxFormType = {\n FORM_1099_B: \"FORM_1099_B\",\n FORM_1099_MISC: \"FORM_1099_MISC\",\n FORM_1099_DA: \"FORM_1099_DA\",\n} as const;\nexport type KnownTaxFormType = (typeof TaxFormType)[keyof typeof TaxFormType];\n\nexport const ObligationDirection = {\n DELIVER: \"DELIVER\",\n RECEIVE: \"RECEIVE\",\n} as const;\nexport type KnownObligationDirection = (typeof ObligationDirection)[keyof typeof ObligationDirection];\n\nexport const TransactionStatus = {\n PENDING: \"PENDING\",\n SETTLED: \"SETTLED\",\n EXPIRED: \"EXPIRED\",\n CANCELLED: \"CANCELLED\",\n AFFIRMED: \"AFFIRMED\",\n} as const;\nexport type KnownTransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus];\n\nexport const PaymentStatus = {\n PENDING: \"PAYMENT_STATUS_PENDING\",\n COMPLETED: \"PAYMENT_STATUS_COMPLETED\",\n FAILED: \"PAYMENT_STATUS_FAILED\",\n} as const;\nexport type KnownPaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];\n\nexport const PaymentType = {\n CRYPTO_WITHDRAWAL: \"PAYMENT_TYPE_CRYPTO_WITHDRAWAL\",\n} as const;\n\nexport const Product = {\n USDG_REWARDS: \"USDG_REWARDS\",\n} as const;\nexport type KnownProduct = (typeof Product)[keyof typeof Product];\n\nexport const StatementStatus = {\n UNSPECIFIED: \"STATEMENT_STATUS_UNSPECIFIED\",\n INITIATED: \"STATEMENT_STATUS_INITIATED\",\n GENERATED: \"STATEMENT_STATUS_GENERATED\",\n PAID: \"STATEMENT_STATUS_PAID\",\n} as const;\nexport type KnownStatementStatus = (typeof StatementStatus)[keyof typeof StatementStatus];\n\nexport const StatementType = {\n UNSPECIFIED: \"STATEMENT_TYPE_UNSPECIFIED\",\n USDG_REWARD: \"STATEMENT_TYPE_USDG_REWARD\",\n} as const;\n\nexport const AuthType = {\n OAUTH2: \"AUTH_TYPE_OAUTH2\",\n API_KEY: \"AUTH_TYPE_API_KEY\",\n} as const;\n\nexport const DeliveryStatus = {\n SUCCESS: \"DELIVERY_STATUS_SUCCESS\",\n FAILURE_RETRIABLE: \"DELIVERY_STATUS_FAILURE_RETRIABLE\",\n FAILURE_PERMANENT: \"DELIVERY_STATUS_FAILURE_PERMANENT\",\n} as const;\nexport type KnownDeliveryStatus = (typeof DeliveryStatus)[keyof typeof DeliveryStatus];\n\nexport const WebhookStatus = {\n PENDING: \"WEBHOOK_STATUS_PENDING\",\n ACTIVE: \"WEBHOOK_STATUS_ACTIVE\",\n ERROR: \"WEBHOOK_STATUS_ERROR\",\n DISABLED: \"WEBHOOK_STATUS_DISABLED\",\n REJECTED: \"WEBHOOK_STATUS_REJECTED\",\n} as const;\nexport type KnownWebhookStatus = (typeof WebhookStatus)[keyof typeof WebhookStatus];\n\nexport const ListApiCredentialsRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const FirstPartyClientStatus = {\n APPROVED: \"APPROVED\",\n DISABLED: \"DISABLED\",\n} as const;\nexport type KnownFirstPartyClientStatus = (typeof FirstPartyClientStatus)[keyof typeof FirstPartyClientStatus];\n\nexport const TransferDetailsTransferStatus = {\n PENDING: \"PENDING\",\n PROCESSING: \"PROCESSING\",\n COMPLETED: \"COMPLETED\",\n FAILED: \"FAILED\",\n} as const;\n\nexport const OrchestrationRuleStatus = {\n ACTIVE: \"ACTIVE\",\n DELETED: \"DELETED\",\n PENDING: \"PENDING\",\n REJECTED: \"REJECTED\",\n} as const;\nexport type KnownOrchestrationRuleStatus = (typeof OrchestrationRuleStatus)[keyof typeof OrchestrationRuleStatus];\n\nexport const OrchestrationStatus = {\n PROCESSING: \"PROCESSING\",\n COMPLETED: \"COMPLETED\",\n FAILED: \"FAILED\",\n PENDING: \"PENDING\",\n REJECTED: \"REJECTED\",\n} as const;\n\nexport const ClaimOnchainStatus = {\n PENDING: \"PENDING\",\n SUBMITTED: \"SUBMITTED\",\n CONFIRMED: \"CONFIRMED\",\n FAILED: \"FAILED\",\n} as const;\nexport type KnownClaimOnchainStatus = (typeof ClaimOnchainStatus)[keyof typeof ClaimOnchainStatus];\n\nexport const ClaimType = {\n CLAIM_ALL: \"CLAIM_ALL\",\n CLAIM_FOR_ADDRESSES: \"CLAIM_FOR_ADDRESSES\",\n CLAIM_UNREGISTER: \"CLAIM_UNREGISTER\",\n} as const;\n\nexport const Jurisdiction = {\n UNSPECIFIED: \"JURISDICTION_UNSPECIFIED\",\n EU: \"EU\",\n US: \"US\",\n} as const;\n\nexport const ScheduleType = {\n DAILY: \"DAILY\",\n MONTHLY: \"MONTHLY\",\n WEEKLY: \"WEEKLY\",\n} as const;\nexport type KnownScheduleType = (typeof ScheduleType)[keyof typeof ScheduleType];\n\nexport const Tier = {\n UNSPECIFIED: \"TIER_UNSPECIFIED\",\n FOUNDER: \"FOUNDER\",\n PARTNER_CUSTODY_REMOVAL_PROGRAM: \"PARTNER_CUSTODY_REMOVAL_PROGRAM\",\n PARTNER_STANDARD_CUSTODY_TIER_1: \"PARTNER_STANDARD_CUSTODY_TIER_1\",\n PARTNER_STANDARD_CUSTODY_TIER_2: \"PARTNER_STANDARD_CUSTODY_TIER_2\",\n PARTNER_STANDARD_CUSTODY_TIER_3: \"PARTNER_STANDARD_CUSTODY_TIER_3\",\n FOUNDER_TIER_2: \"FOUNDER_TIER_2\",\n} as const;\n\nexport const AttributionLedgerType = {\n PAXOS: \"PAXOS\",\n ETHEREUM: \"ETHEREUM\",\n SOLANA: \"SOLANA\",\n INK: \"INK\",\n XLAYER: \"XLAYER\",\n ARBITRUM_ONE: \"ARBITRUM_ONE\",\n ROBINHOOD: \"ROBINHOOD\",\n MANTLE: \"MANTLE\",\n STABLE: \"STABLE\",\n} as const;\nexport type KnownAttributionLedgerType = (typeof AttributionLedgerType)[keyof typeof AttributionLedgerType];\n\nexport const OnchainStatusType = {\n UNSPECIFIED: \"ONCHAIN_STATUS_TYPE_UNSPECIFIED\",\n UNREGISTERED: \"UNREGISTERED\",\n PENDING_REGISTRATION: \"PENDING_REGISTRATION\",\n NEEDS_REREGISTRATION: \"NEEDS_REREGISTRATION\",\n ACTIVE: \"ACTIVE\",\n FAILED_REGISTRATION: \"FAILED_REGISTRATION\",\n PENDING_DELETION: \"PENDING_DELETION\",\n FAILED_DELETION: \"FAILED_DELETION\",\n PENDING_MULTIPLIER_UPDATE: \"PENDING_MULTIPLIER_UPDATE\",\n MULTIPLIER_UPDATE_FAILED: \"MULTIPLIER_UPDATE_FAILED\",\n UNREGISTERED_INSUFFICIENT_BALANCE: \"UNREGISTERED_INSUFFICIENT_BALANCE\",\n} as const;\nexport type KnownOnchainStatusType = (typeof OnchainStatusType)[keyof typeof OnchainStatusType];\n\nexport const PayoutGroupOnchainStatus = {\n UNREGISTERED: \"UNREGISTERED\",\n PENDING_REGISTRATION: \"PENDING_REGISTRATION\",\n NEEDS_REREGISTRATION: \"NEEDS_REREGISTRATION\",\n ACTIVE: \"ACTIVE\",\n FAILED_REGISTRATION: \"FAILED_REGISTRATION\",\n PENDING_DELETION: \"PENDING_DELETION\",\n FAILED_DELETION: \"FAILED_DELETION\",\n PENDING_MULTIPLIER_UPDATE: \"PENDING_MULTIPLIER_UPDATE\",\n MULTIPLIER_UPDATE_FAILED: \"MULTIPLIER_UPDATE_FAILED\",\n UNREGISTERED_INSUFFICIENT_BALANCE: \"UNREGISTERED_INSUFFICIENT_BALANCE\",\n} as const;\nexport type KnownPayoutGroupOnchainStatus = (typeof PayoutGroupOnchainStatus)[keyof typeof PayoutGroupOnchainStatus];\n\nexport const RewardsStatementFormat = {\n PDF: \"STATEMENT_FORMAT_PDF\",\n CSV: \"STATEMENT_FORMAT_CSV\",\n} as const;\n\nexport const RewardsStatementStatus = {\n GENERATING: \"STATEMENT_STATUS_GENERATING\",\n COMPLETED: \"STATEMENT_STATUS_COMPLETED\",\n FAILED: \"STATEMENT_STATUS_FAILED\",\n} as const;\n\nexport const RewardsStatementType = {\n MONTHLY_REWARDS: \"STATEMENT_TYPE_MONTHLY_REWARDS\",\n} as const;\nexport type KnownRewardsStatementType = (typeof RewardsStatementType)[keyof typeof RewardsStatementType];\n\nexport const ListVerificationsRequestOrderBy = {\n CREATED_AT: \"CREATED_AT\",\n} as const;\n\nexport const VerificationMethod = {\n SIGNATURE: \"SIGNATURE\",\n SMALL_DEPOSIT: \"SMALL_DEPOSIT\",\n MANUAL: \"MANUAL\",\n} as const;\nexport type KnownVerificationMethod = (typeof VerificationMethod)[keyof typeof VerificationMethod];\n\nexport const VerificationStatus = {\n PENDING: \"PENDING\",\n APPROVED: \"APPROVED\",\n EXPIRED: \"EXPIRED\",\n CANCELLED: \"CANCELLED\",\n} as const;\nexport type KnownVerificationStatus = (typeof VerificationStatus)[keyof typeof VerificationStatus];\n\nexport const HttpMethod = {\n UNSPECIFIED: \"HTTP_METHOD_UNSPECIFIED\",\n GET: \"GET\",\n POST: \"POST\",\n PUT: \"PUT\",\n PATCH: \"PATCH\",\n DELETE: \"DELETE\",\n} as const;\nexport type KnownHttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];\n\nexport const CrossChainAttestationStatus = {\n UNSPECIFIED: \"CROSS_CHAIN_ATTESTATION_STATUS_UNSPECIFIED\",\n PENDING: \"PENDING\",\n SIGNED: \"SIGNED\",\n COMPLETED: \"COMPLETED\",\n EXPIRED: \"EXPIRED\",\n FAILED: \"FAILED\",\n} as const;\n\nexport const CrossChainAttestationStatusCode = {\n UNSPECIFIED: \"CROSS_CHAIN_ATTESTATION_STATUS_CODE_UNSPECIFIED\",\n UNABLE_TO_PROCESS: \"UNABLE_TO_PROCESS\",\n SOURCE_BURN_NOT_VERIFIED: \"SOURCE_BURN_NOT_VERIFIED\",\n UNSUPPORTED_TRANSFER: \"UNSUPPORTED_TRANSFER\",\n ATTESTATION_TOO_OLD: \"ATTESTATION_TOO_OLD\",\n AUTHORIZATION_EXPIRED: \"AUTHORIZATION_EXPIRED\",\n} as const;\n\nexport const Scope = {\n /** Retrieve address ownership verification details */\n ADDRESS_READ_OWNERSHIP_PROOFS: \"address:read_ownership_proofs\",\n /** Create, sign or cancel an address ownership verification */\n ADDRESS_WRITE_OWNERSHIP_PROOFS: \"address:write_ownership_proofs\",\n /** Delete API credentials */\n API_CREDS_DELETE_CREDENTIALS: \"api_creds:delete_credentials\",\n /** Retrieve API credentials details */\n API_CREDS_READ_CREDENTIALS: \"api_creds:read_credentials\",\n /** Retrieve stablecoin conversion details */\n CONVERSION_READ_CONVERSION_STABLECOIN: \"conversion:read_conversion_stablecoin\",\n /** Create or cancel a stablecoin conversion */\n CONVERSION_WRITE_CONVERSION_STABLECOIN: \"conversion:write_conversion_stablecoin\",\n /** Retrieve events */\n EVENTS_READ_EVENT: \"events:read_event\",\n /** Retrieve market average prices at a certain time increment */\n EXCHANGE_HISTORICAL_PRICES: \"exchange:historical_prices\",\n /** Retrieve issuer quote execution details */\n EXCHANGE_READ_ISSUER_QUOTE_EXECUTION: \"exchange:read_issuer_quote_execution\",\n /** Retrieve order or order execution details */\n EXCHANGE_READ_ORDER: \"exchange:read_order\",\n /** Retrieve quote details for buying or selling an asset */\n EXCHANGE_READ_QUOTE: \"exchange:read_quote\",\n /** Retrieve quote execution details */\n EXCHANGE_READ_QUOTE_EXECUTION: \"exchange:read_quote_execution\",\n /** Create an issuer quote or retrieve issuer quote settlement availability */\n EXCHANGE_WRITE_ISSUER_QUOTE: \"exchange:write_issuer_quote\",\n /** Create an issuer quote execution */\n EXCHANGE_WRITE_ISSUER_QUOTE_EXECUTION: \"exchange:write_issuer_quote_execution\",\n /** Create or cancel an order for buying or selling an asset */\n EXCHANGE_WRITE_ORDER: \"exchange:write_order\",\n /** Create a quote execution for buying or selling an asset */\n EXCHANGE_WRITE_QUOTE_EXECUTION: \"exchange:write_quote_execution\",\n /** Create a guaranteed fee for crypto withdrawal */\n FEE_WRITE_CRYPTO_WITHDRAWAL_FEE: \"fee:write_crypto_withdrawal_fee\",\n /** Retrieve Paxos dedicated bank account balance */\n FUNDING_READ_BANK_BALANCE: \"funding:read_bank_balance\",\n /** Retrieve Profile details and deposit funds in Sandbox */\n FUNDING_READ_PROFILE: \"funding:read_profile\",\n /** Create a Profile */\n FUNDING_WRITE_PROFILE: \"funding:write_profile\",\n /** Retrieve Account details */\n IDENTITY_READ_ACCOUNT: \"identity:read_account\",\n /** Retrieve Identity details or documents */\n IDENTITY_READ_IDENTITY: \"identity:read_identity\",\n /** Retrieve Identity Control details */\n IDENTITY_READ_IDENTITY_CONTROL: \"identity:read_identity_control\",\n /** Create or update Account and Account Members */\n IDENTITY_WRITE_ACCOUNT: \"identity:write_account\",\n /** Create or update Identity details and set Sandbox Identify Status */\n IDENTITY_WRITE_IDENTITY: \"identity:write_identity\",\n /** Create or delete an Identity Control */\n IDENTITY_WRITE_IDENTITY_CONTROL: \"identity:write_identity_control\",\n /** Retrieve Orchestration details */\n ORCHESTRATION_READ_ORCHESTRATION: \"orchestration:read_orchestration\",\n /** Retrieve Orchestration Rule details */\n ORCHESTRATION_READ_ORCHESTRATION_RULE: \"orchestration:read_orchestration_rule\",\n /** Create an Orchestration */\n ORCHESTRATION_WRITE_ORCHESTRATION: \"orchestration:write_orchestration\",\n /** Create or delete an Orchestration Rule */\n ORCHESTRATION_WRITE_ORCHESTRATION_RULE: \"orchestration:write_orchestration_rule\",\n /** Create a rewards Payout Group */\n REWARDS_CREATE_PAYOUT_GROUPS: \"rewards:create_payout_groups\",\n /** Delete a rewards Payout Group */\n REWARDS_DELETE_PAYOUT_GROUPS: \"rewards:delete_payout_groups\",\n /** Retrieve rewards claims */\n REWARDS_READ_CLAIMS: \"rewards:read_claims\",\n /** Retrieve rewards claim schedules */\n REWARDS_READ_CLAIMS_SCHEDULE: \"rewards:read_claims_schedule\",\n /** Retrieve monitoring address and reward address details */\n REWARDS_READ_MONITORING_ADDRESS: \"rewards:read_monitoring_address\",\n /** Retrieve rewards Payout Group details */\n REWARDS_READ_PAYOUT_GROUPS: \"rewards:read_payout_groups\",\n /** Retrieve rewards details and rates */\n REWARDS_READ_REWARDS_DETAILS: \"rewards:read_rewards_details\",\n /** Retrieve rewards statements */\n REWARDS_READ_STATEMENTS: \"rewards:read_statements\",\n /** Update a rewards Payout Group */\n REWARDS_UPDATE_PAYOUT_GROUPS: \"rewards:update_payout_groups\",\n /** Create, update or delete a rewards claim schedule */\n REWARDS_WRITE_CLAIMS_SCHEDULE: \"rewards:write_claims_schedule\",\n /** Create, update or delete a monitoring address or reward address */\n REWARDS_WRITE_MONITORING_ADDRESS: \"rewards:write_monitoring_address\",\n /** Create, update or delete a rewards Payout Group */\n REWARDS_WRITE_PAYOUT_GROUPS: \"rewards:write_payout_groups\",\n /** Retrieve settlement transaction details */\n SETTLEMENT_READ_TRANSACTION: \"settlement:read_transaction\",\n /** Create, affirm or cancel a settlement transaction */\n SETTLEMENT_WRITE_TRANSACTION: \"settlement:write_transaction\",\n /** Retrieve payment details */\n STATEMENTS_READ_PAYMENT: \"statements:read_payment\",\n /** Retrieve statement details */\n STATEMENTS_READ_STATEMENT: \"statements:read_statement\",\n /** Retrieve tax details */\n TAX_READ_TAX_FORM: \"tax:read_tax_form\",\n /** Retrieve tax lot details */\n TAX_READ_TAX_LOT: \"tax:read_tax_lot\",\n /** Update the given tax-lot ID */\n TAX_WRITE_TAX_LOT: \"tax:write_tax_lot\",\n /** Retrieve crypto destination address details */\n TRANSFER_READ_CRYPTO_DESTINATION_ADDRESS: \"transfer:read_crypto_destination_address\",\n /** Retrieve deposit address details */\n TRANSFER_READ_DEPOSIT_ADDRESS: \"transfer:read_deposit_address\",\n /** Retrieve Fiat Account details */\n TRANSFER_READ_FIAT_ACCOUNT: \"transfer:read_fiat_account\",\n /** Retrieve fiat deposit instruction details */\n TRANSFER_READ_FIAT_DEPOSIT_INSTRUCTIONS: \"transfer:read_fiat_deposit_instructions\",\n /** Retrieve transfer details */\n TRANSFER_READ_TRANSFER: \"transfer:read_transfer\",\n /** Retrieve limits for the given transaction type */\n TRANSFER_READ_TRANSFER_LIMIT: \"transfer:read_transfer_limit\",\n /** Reject a crypto deposit (travel rule) */\n TRANSFER_REJECT_CRYPTO_DEPOSIT: \"transfer:reject_crypto_deposit\",\n /** Provide required travel-rule details */\n TRANSFER_UPDATE_CRYPTO_DEPOSIT: \"transfer:update_crypto_deposit\",\n /** Create or update crypto destination addresses */\n TRANSFER_WRITE_CRYPTO_DESTINATION_ADDRESS: \"transfer:write_crypto_destination_address\",\n /** Withdraw asset to a specified destination address */\n TRANSFER_WRITE_CRYPTO_WITHDRAWAL: \"transfer:write_crypto_withdrawal\",\n /** Create an deposit address on a blockchain network */\n TRANSFER_WRITE_DEPOSIT_ADDRESS: \"transfer:write_deposit_address\",\n /** Create, update or delete a Fiat Account */\n TRANSFER_WRITE_FIAT_ACCOUNT: \"transfer:write_fiat_account\",\n /** Create, update or delete fiat deposit instructions */\n TRANSFER_WRITE_FIAT_DEPOSIT_INSTRUCTIONS: \"transfer:write_fiat_deposit_instructions\",\n /** Withdraw fiat to the given destination */\n TRANSFER_WRITE_FIAT_WITHDRAWAL: \"transfer:write_fiat_withdrawal\",\n /** Transfer assets between two Profiles */\n TRANSFER_WRITE_INTERNAL_TRANSFER: \"transfer:write_internal_transfer\",\n /** Create a Paxos transfer */\n TRANSFER_WRITE_PAXOS_TRANSFER: \"transfer:write_paxos_transfer\",\n /** Initiate a test fiat deposit in the Sandbox environment */\n TRANSFER_WRITE_SANDBOX_FIAT_DEPOSIT: \"transfer:write_sandbox_fiat_deposit\",\n /** Retrieve user audit logs */\n USER_AUDIT_LOGS_READ_AUDIT_LOG: \"user_audit_logs:read_audit_log\",\n /** Retrieve webhook details and delivery history */\n WEBHOOKS_READ_WEBHOOK: \"webhooks:read_webhook\",\n} as const;\nexport type KnownScope = (typeof Scope)[keyof typeof Scope];\n"]}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RFC 7807 Problem Details error types for the Paxos API.
|
|
3
|
+
*
|
|
4
|
+
* API errors carry a requestId for debugging. Include this ID
|
|
5
|
+
* when contacting Paxos support.
|
|
6
|
+
*/
|
|
7
|
+
/** Fields present in every Paxos API error response (RFC 7807). */
|
|
8
|
+
export interface PaxosApiErrorOptions {
|
|
9
|
+
status: number;
|
|
10
|
+
title?: string;
|
|
11
|
+
detail?: string;
|
|
12
|
+
requestId?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
instance?: string;
|
|
15
|
+
meta?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Base class for every error the SDK throws. Narrow with {@link isApiError},
|
|
19
|
+
* {@link isNetworkError} or {@link isTimeoutError}; only {@link PaxosApiError}
|
|
20
|
+
* carries an HTTP status. Absent fields are `undefined`.
|
|
21
|
+
*/
|
|
22
|
+
export declare class PaxosError extends Error {
|
|
23
|
+
readonly status: number | undefined;
|
|
24
|
+
readonly title: string | undefined;
|
|
25
|
+
readonly detail: string | undefined;
|
|
26
|
+
readonly requestId: string | undefined;
|
|
27
|
+
constructor(message: string, errorOptions?: ErrorOptions);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* An error response from the Paxos API (or the OAuth token endpoint).
|
|
31
|
+
*
|
|
32
|
+
* Carries the RFC 7807 Problem Details fields plus a requestId. Include
|
|
33
|
+
* requestId when contacting Paxos support.
|
|
34
|
+
*/
|
|
35
|
+
export declare class PaxosApiError extends PaxosError {
|
|
36
|
+
readonly status: number;
|
|
37
|
+
readonly title: string | undefined;
|
|
38
|
+
readonly detail: string | undefined;
|
|
39
|
+
readonly requestId: string | undefined;
|
|
40
|
+
readonly type: string | undefined;
|
|
41
|
+
readonly instance: string | undefined;
|
|
42
|
+
readonly meta: Record<string, unknown>;
|
|
43
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
44
|
+
}
|
|
45
|
+
/** 400 Bad Request — request validation failed. */
|
|
46
|
+
export declare class PaxosValidationError extends PaxosApiError {
|
|
47
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
48
|
+
}
|
|
49
|
+
/** 401 Unauthorized — invalid or expired credentials. */
|
|
50
|
+
export declare class PaxosUnauthorizedError extends PaxosApiError {
|
|
51
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
52
|
+
}
|
|
53
|
+
/** OAuth token acquisition failed; distinct from an API endpoint returning 401. */
|
|
54
|
+
export declare class PaxosAuthenticationError extends PaxosApiError {
|
|
55
|
+
readonly code: string | undefined;
|
|
56
|
+
constructor(status: number, requestId?: string, code?: string);
|
|
57
|
+
}
|
|
58
|
+
/** Type guard for OAuth HTTP failures and malformed token responses. */
|
|
59
|
+
export declare function isAuthenticationError(err: unknown): err is PaxosAuthenticationError;
|
|
60
|
+
/** 403 Forbidden — insufficient permissions for this resource. */
|
|
61
|
+
export declare class PaxosForbiddenError extends PaxosApiError {
|
|
62
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
63
|
+
}
|
|
64
|
+
/** 404 Not Found — the requested resource does not exist. */
|
|
65
|
+
export declare class PaxosNotFoundError extends PaxosApiError {
|
|
66
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
67
|
+
}
|
|
68
|
+
/** 409 Conflict — resource already exists or state conflict. */
|
|
69
|
+
export declare class PaxosConflictError extends PaxosApiError {
|
|
70
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
71
|
+
}
|
|
72
|
+
/** 422 Unprocessable Entity — request is syntactically valid but semantically invalid. */
|
|
73
|
+
export declare class PaxosUnprocessableError extends PaxosApiError {
|
|
74
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
75
|
+
}
|
|
76
|
+
/** 429 Too Many Requests — rate limited by the Paxos API. */
|
|
77
|
+
export declare class PaxosRateLimitError extends PaxosApiError {
|
|
78
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
79
|
+
}
|
|
80
|
+
/** 5xx Server Error — internal Paxos API error. */
|
|
81
|
+
export declare class PaxosServerError extends PaxosApiError {
|
|
82
|
+
constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A request, or a full auto-paginating iteration, did not complete within its
|
|
86
|
+
* allotted time (`callTimeout`, an exchange's `callAttemptTimeout`, or an
|
|
87
|
+
* iterator's `maxDuration`). Carries no HTTP status. `requestId` is the
|
|
88
|
+
* Paxos-Request-Id of the most recent attempt built, which may have reached Paxos
|
|
89
|
+
* (quote it to support); undefined if no attempt was built.
|
|
90
|
+
*/
|
|
91
|
+
export declare class PaxosTimeoutError extends PaxosError {
|
|
92
|
+
readonly title: string | undefined;
|
|
93
|
+
readonly detail: string | undefined;
|
|
94
|
+
readonly requestId: string | undefined;
|
|
95
|
+
constructor(options?: {
|
|
96
|
+
title?: string;
|
|
97
|
+
detail?: string;
|
|
98
|
+
requestId?: string;
|
|
99
|
+
}, errorOptions?: ErrorOptions);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* A transport failure (DNS, connection refused, TLS, reset) where no HTTP
|
|
103
|
+
* response was received. Carries no HTTP status; the underlying error is `cause`.
|
|
104
|
+
* `requestId` is the Paxos-Request-Id of the most recent attempt built, which may have
|
|
105
|
+
* reached Paxos (quote it to support); undefined if no attempt was built.
|
|
106
|
+
*/
|
|
107
|
+
export declare class PaxosNetworkError extends PaxosError {
|
|
108
|
+
readonly detail: string | undefined;
|
|
109
|
+
readonly requestId: string | undefined;
|
|
110
|
+
constructor(detail?: string, errorOptions?: ErrorOptions, requestId?: string);
|
|
111
|
+
}
|
|
112
|
+
export declare function describeNetworkError(err: unknown, url: string | URL): string;
|
|
113
|
+
/** Type guard: returns true for any error thrown by the SDK, including network and timeout errors. */
|
|
114
|
+
export declare function isPaxosError(err: unknown): err is PaxosError;
|
|
115
|
+
/** Type guard: returns true if the error is an HTTP error response, which carries `status` and `requestId`. */
|
|
116
|
+
export declare function isApiError(err: unknown): err is PaxosApiError;
|
|
117
|
+
/** Type guard: returns true if the error is a 404 Not Found. */
|
|
118
|
+
export declare function isNotFoundError(err: unknown): err is PaxosNotFoundError;
|
|
119
|
+
/** Type guard: returns true if the error is a 429 Rate Limit. */
|
|
120
|
+
export declare function isRateLimitError(err: unknown): err is PaxosRateLimitError;
|
|
121
|
+
/** Type guard: returns true if the error is a 401 Unauthorized. */
|
|
122
|
+
export declare function isUnauthorizedError(err: unknown): err is PaxosUnauthorizedError;
|
|
123
|
+
/** Type guard: returns true if the error is a 403 Forbidden. */
|
|
124
|
+
export declare function isForbiddenError(err: unknown): err is PaxosForbiddenError;
|
|
125
|
+
/** Type guard: returns true if the error is a 400 Validation error. */
|
|
126
|
+
export declare function isValidationError(err: unknown): err is PaxosValidationError;
|
|
127
|
+
/** Type guard: returns true if the error is a 409 Conflict. */
|
|
128
|
+
export declare function isConflictError(err: unknown): err is PaxosConflictError;
|
|
129
|
+
/** Type guard: returns true if the error is a 422 Unprocessable. */
|
|
130
|
+
export declare function isUnprocessableError(err: unknown): err is PaxosUnprocessableError;
|
|
131
|
+
/** Type guard: returns true if the error is a 5xx Server error. */
|
|
132
|
+
export declare function isServerError(err: unknown): err is PaxosServerError;
|
|
133
|
+
/** Type guard: returns true if the error is a transport failure with no HTTP response. */
|
|
134
|
+
export declare function isNetworkError(err: unknown): err is PaxosNetworkError;
|
|
135
|
+
/** Type guard: returns true if the error is a request or pagination timeout. */
|
|
136
|
+
export declare function isTimeoutError(err: unknown): err is PaxosTimeoutError;
|
|
137
|
+
/**
|
|
138
|
+
* Parse an API error response body and HTTP status into a typed PaxosApiError subclass.
|
|
139
|
+
*
|
|
140
|
+
* The body is expected to follow RFC 7807 Problem Details format.
|
|
141
|
+
*/
|
|
142
|
+
export declare function parseError(status: number, body: unknown, requestId: string | undefined): PaxosApiError;
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RFC 7807 Problem Details error types for the Paxos API.
|
|
3
|
+
*
|
|
4
|
+
* API errors carry a requestId for debugging. Include this ID
|
|
5
|
+
* when contacting Paxos support.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Base class for every error the SDK throws. Narrow with {@link isApiError},
|
|
9
|
+
* {@link isNetworkError} or {@link isTimeoutError}; only {@link PaxosApiError}
|
|
10
|
+
* carries an HTTP status. Absent fields are `undefined`.
|
|
11
|
+
*/
|
|
12
|
+
export class PaxosError extends Error {
|
|
13
|
+
constructor(message, errorOptions) {
|
|
14
|
+
super(message, errorOptions);
|
|
15
|
+
this.name = "PaxosError";
|
|
16
|
+
// Maintains proper prototype chain in environments that transpile to ES5.
|
|
17
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* An error response from the Paxos API (or the OAuth token endpoint).
|
|
22
|
+
*
|
|
23
|
+
* Carries the RFC 7807 Problem Details fields plus a requestId. Include
|
|
24
|
+
* requestId when contacting Paxos support.
|
|
25
|
+
*/
|
|
26
|
+
export class PaxosApiError extends PaxosError {
|
|
27
|
+
status;
|
|
28
|
+
title;
|
|
29
|
+
detail;
|
|
30
|
+
requestId;
|
|
31
|
+
type;
|
|
32
|
+
instance;
|
|
33
|
+
meta;
|
|
34
|
+
constructor(options, errorOptions) {
|
|
35
|
+
const title = options.title || undefined;
|
|
36
|
+
const detail = options.detail || undefined;
|
|
37
|
+
const requestId = options.requestId || undefined;
|
|
38
|
+
const requestIdPart = requestId ? `, request_id: ${requestId}` : "";
|
|
39
|
+
super(`${title ?? "API Error"} (status ${options.status}${requestIdPart})${detail ? ": " + detail : ""}`, errorOptions);
|
|
40
|
+
this.name = "PaxosApiError";
|
|
41
|
+
this.status = options.status;
|
|
42
|
+
this.title = title;
|
|
43
|
+
this.detail = detail;
|
|
44
|
+
this.requestId = requestId;
|
|
45
|
+
this.type = options.type || undefined;
|
|
46
|
+
this.instance = options.instance || undefined;
|
|
47
|
+
this.meta = options.meta ?? {};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/** 400 Bad Request — request validation failed. */
|
|
51
|
+
export class PaxosValidationError extends PaxosApiError {
|
|
52
|
+
constructor(options, errorOptions) {
|
|
53
|
+
super(options, errorOptions);
|
|
54
|
+
this.name = "PaxosValidationError";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/** 401 Unauthorized — invalid or expired credentials. */
|
|
58
|
+
export class PaxosUnauthorizedError extends PaxosApiError {
|
|
59
|
+
constructor(options, errorOptions) {
|
|
60
|
+
super(options, errorOptions);
|
|
61
|
+
this.name = "PaxosUnauthorizedError";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/** OAuth token acquisition failed; distinct from an API endpoint returning 401. */
|
|
65
|
+
export class PaxosAuthenticationError extends PaxosApiError {
|
|
66
|
+
code;
|
|
67
|
+
constructor(status, requestId, code) {
|
|
68
|
+
super({ status, requestId, title: "OAuth authentication failed", detail: code || undefined });
|
|
69
|
+
this.name = "PaxosAuthenticationError";
|
|
70
|
+
this.code = code || undefined;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/** Type guard for OAuth HTTP failures and malformed token responses. */
|
|
74
|
+
export function isAuthenticationError(err) {
|
|
75
|
+
return err instanceof PaxosAuthenticationError;
|
|
76
|
+
}
|
|
77
|
+
/** 403 Forbidden — insufficient permissions for this resource. */
|
|
78
|
+
export class PaxosForbiddenError extends PaxosApiError {
|
|
79
|
+
constructor(options, errorOptions) {
|
|
80
|
+
super(options, errorOptions);
|
|
81
|
+
this.name = "PaxosForbiddenError";
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/** 404 Not Found — the requested resource does not exist. */
|
|
85
|
+
export class PaxosNotFoundError extends PaxosApiError {
|
|
86
|
+
constructor(options, errorOptions) {
|
|
87
|
+
super(options, errorOptions);
|
|
88
|
+
this.name = "PaxosNotFoundError";
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/** 409 Conflict — resource already exists or state conflict. */
|
|
92
|
+
export class PaxosConflictError extends PaxosApiError {
|
|
93
|
+
constructor(options, errorOptions) {
|
|
94
|
+
super(options, errorOptions);
|
|
95
|
+
this.name = "PaxosConflictError";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** 422 Unprocessable Entity — request is syntactically valid but semantically invalid. */
|
|
99
|
+
export class PaxosUnprocessableError extends PaxosApiError {
|
|
100
|
+
constructor(options, errorOptions) {
|
|
101
|
+
super(options, errorOptions);
|
|
102
|
+
this.name = "PaxosUnprocessableError";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/** 429 Too Many Requests — rate limited by the Paxos API. */
|
|
106
|
+
export class PaxosRateLimitError extends PaxosApiError {
|
|
107
|
+
constructor(options, errorOptions) {
|
|
108
|
+
super(options, errorOptions);
|
|
109
|
+
this.name = "PaxosRateLimitError";
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/** 5xx Server Error — internal Paxos API error. */
|
|
113
|
+
export class PaxosServerError extends PaxosApiError {
|
|
114
|
+
constructor(options, errorOptions) {
|
|
115
|
+
super(options, errorOptions);
|
|
116
|
+
this.name = "PaxosServerError";
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* A request, or a full auto-paginating iteration, did not complete within its
|
|
121
|
+
* allotted time (`callTimeout`, an exchange's `callAttemptTimeout`, or an
|
|
122
|
+
* iterator's `maxDuration`). Carries no HTTP status. `requestId` is the
|
|
123
|
+
* Paxos-Request-Id of the most recent attempt built, which may have reached Paxos
|
|
124
|
+
* (quote it to support); undefined if no attempt was built.
|
|
125
|
+
*/
|
|
126
|
+
export class PaxosTimeoutError extends PaxosError {
|
|
127
|
+
title;
|
|
128
|
+
detail;
|
|
129
|
+
requestId;
|
|
130
|
+
constructor(options = {}, errorOptions) {
|
|
131
|
+
const title = options.title || undefined;
|
|
132
|
+
const detail = options.detail || undefined;
|
|
133
|
+
super(`${title ?? ""}${title && detail ? ": " : ""}${detail ?? ""}`, errorOptions);
|
|
134
|
+
this.name = "PaxosTimeoutError";
|
|
135
|
+
this.title = title;
|
|
136
|
+
this.detail = detail;
|
|
137
|
+
this.requestId = options.requestId || undefined;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* A transport failure (DNS, connection refused, TLS, reset) where no HTTP
|
|
142
|
+
* response was received. Carries no HTTP status; the underlying error is `cause`.
|
|
143
|
+
* `requestId` is the Paxos-Request-Id of the most recent attempt built, which may have
|
|
144
|
+
* reached Paxos (quote it to support); undefined if no attempt was built.
|
|
145
|
+
*/
|
|
146
|
+
export class PaxosNetworkError extends PaxosError {
|
|
147
|
+
detail;
|
|
148
|
+
requestId;
|
|
149
|
+
constructor(detail, errorOptions, requestId) {
|
|
150
|
+
super(detail ? `Network error: ${detail}` : "Network error", errorOptions);
|
|
151
|
+
this.name = "PaxosNetworkError";
|
|
152
|
+
this.detail = detail || undefined;
|
|
153
|
+
this.requestId = requestId || undefined;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export function describeNetworkError(err, url) {
|
|
157
|
+
let root = err;
|
|
158
|
+
const seen = new Set();
|
|
159
|
+
while (root instanceof Error && root.cause instanceof Error && !seen.has(root)) {
|
|
160
|
+
seen.add(root);
|
|
161
|
+
root = root.cause;
|
|
162
|
+
}
|
|
163
|
+
if (root instanceof AggregateError && !root.message && root.errors[0] instanceof Error)
|
|
164
|
+
root = root.errors[0];
|
|
165
|
+
const text = !(root instanceof Error)
|
|
166
|
+
? String(root)
|
|
167
|
+
: root.message || root.code || String(root);
|
|
168
|
+
const parsed = new URL(url);
|
|
169
|
+
if (!parsed.hostname || text.includes(parsed.hostname.replace(/^\[|\]$/g, "")))
|
|
170
|
+
return text;
|
|
171
|
+
return `${text}: ${parsed.hostname}:${parsed.port || (parsed.protocol === "https:" ? "443" : "80")}`;
|
|
172
|
+
}
|
|
173
|
+
/** Type guard: returns true for any error thrown by the SDK, including network and timeout errors. */
|
|
174
|
+
export function isPaxosError(err) {
|
|
175
|
+
return err instanceof PaxosError;
|
|
176
|
+
}
|
|
177
|
+
/** Type guard: returns true if the error is an HTTP error response, which carries `status` and `requestId`. */
|
|
178
|
+
export function isApiError(err) {
|
|
179
|
+
return err instanceof PaxosApiError;
|
|
180
|
+
}
|
|
181
|
+
/** Type guard: returns true if the error is a 404 Not Found. */
|
|
182
|
+
export function isNotFoundError(err) {
|
|
183
|
+
return err instanceof PaxosNotFoundError;
|
|
184
|
+
}
|
|
185
|
+
/** Type guard: returns true if the error is a 429 Rate Limit. */
|
|
186
|
+
export function isRateLimitError(err) {
|
|
187
|
+
return err instanceof PaxosRateLimitError;
|
|
188
|
+
}
|
|
189
|
+
/** Type guard: returns true if the error is a 401 Unauthorized. */
|
|
190
|
+
export function isUnauthorizedError(err) {
|
|
191
|
+
return err instanceof PaxosUnauthorizedError;
|
|
192
|
+
}
|
|
193
|
+
/** Type guard: returns true if the error is a 403 Forbidden. */
|
|
194
|
+
export function isForbiddenError(err) {
|
|
195
|
+
return err instanceof PaxosForbiddenError;
|
|
196
|
+
}
|
|
197
|
+
/** Type guard: returns true if the error is a 400 Validation error. */
|
|
198
|
+
export function isValidationError(err) {
|
|
199
|
+
return err instanceof PaxosValidationError;
|
|
200
|
+
}
|
|
201
|
+
/** Type guard: returns true if the error is a 409 Conflict. */
|
|
202
|
+
export function isConflictError(err) {
|
|
203
|
+
return err instanceof PaxosConflictError;
|
|
204
|
+
}
|
|
205
|
+
/** Type guard: returns true if the error is a 422 Unprocessable. */
|
|
206
|
+
export function isUnprocessableError(err) {
|
|
207
|
+
return err instanceof PaxosUnprocessableError;
|
|
208
|
+
}
|
|
209
|
+
/** Type guard: returns true if the error is a 5xx Server error. */
|
|
210
|
+
export function isServerError(err) {
|
|
211
|
+
return err instanceof PaxosServerError;
|
|
212
|
+
}
|
|
213
|
+
/** Type guard: returns true if the error is a transport failure with no HTTP response. */
|
|
214
|
+
export function isNetworkError(err) {
|
|
215
|
+
return err instanceof PaxosNetworkError;
|
|
216
|
+
}
|
|
217
|
+
/** Type guard: returns true if the error is a request or pagination timeout. */
|
|
218
|
+
export function isTimeoutError(err) {
|
|
219
|
+
return err instanceof PaxosTimeoutError;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Parse an API error response body and HTTP status into a typed PaxosApiError subclass.
|
|
223
|
+
*
|
|
224
|
+
* The body is expected to follow RFC 7807 Problem Details format.
|
|
225
|
+
*/
|
|
226
|
+
export function parseError(status, body, requestId) {
|
|
227
|
+
const fields = body !== null && typeof body === "object" && !Array.isArray(body) ? body : {};
|
|
228
|
+
const string = (key) => typeof fields[key] === "string" && fields[key] ? fields[key] : undefined;
|
|
229
|
+
const meta = fields["meta"];
|
|
230
|
+
const options = {
|
|
231
|
+
status,
|
|
232
|
+
title: string("title"),
|
|
233
|
+
detail: string("detail"),
|
|
234
|
+
requestId: string("request_id") || requestId || undefined,
|
|
235
|
+
type: string("type"),
|
|
236
|
+
instance: string("instance"),
|
|
237
|
+
meta: meta !== null && typeof meta === "object" && !Array.isArray(meta) ? meta : undefined,
|
|
238
|
+
};
|
|
239
|
+
switch (status) {
|
|
240
|
+
case 400:
|
|
241
|
+
return new PaxosValidationError(options);
|
|
242
|
+
case 401:
|
|
243
|
+
return new PaxosUnauthorizedError(options);
|
|
244
|
+
case 403:
|
|
245
|
+
return new PaxosForbiddenError(options);
|
|
246
|
+
case 404:
|
|
247
|
+
return new PaxosNotFoundError(options);
|
|
248
|
+
case 409:
|
|
249
|
+
return new PaxosConflictError(options);
|
|
250
|
+
case 422:
|
|
251
|
+
return new PaxosUnprocessableError(options);
|
|
252
|
+
case 429:
|
|
253
|
+
return new PaxosRateLimitError(options);
|
|
254
|
+
default:
|
|
255
|
+
if (status >= 500) {
|
|
256
|
+
return new PaxosServerError(options);
|
|
257
|
+
}
|
|
258
|
+
return new PaxosApiError(options);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH;;;;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C,MAAM,CAAC,CAAC;IAC5B,MAAM,OAAO,GAAyB;QACpC,MAAM;QACN,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC;QACtB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,IAAI,SAAS,IAAI,SAAS;QACzD,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC;QAC5B,IAAI,EACF,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,IAAgC,CAAC,CAAC,CAAC,SAAS;KACpH,CAAC;IAEF,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,GAAG;YACN,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAC3C,KAAK,GAAG;YACN,OAAO,IAAI,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,GAAG;YACN,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAC1C,KAAK,GAAG;YACN,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACzC,KAAK,GAAG;YACN,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACzC,KAAK,GAAG;YACN,OAAO,IAAI,uBAAuB,CAAC,OAAO,CAAC,CAAC;QAC9C,KAAK,GAAG;YACN,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAC1C;YACE,IAAI,MAAM,IAAI,GAAG,EAAE,CAAC;gBAClB,OAAO,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACvC,CAAC;YACD,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;AACH,CAAC","sourcesContent":["/**\n * RFC 7807 Problem Details error types for the Paxos API.\n *\n * API errors carry a requestId for debugging. Include this ID\n * when contacting Paxos support.\n */\n\n/** Fields present in every Paxos API error response (RFC 7807). */\nexport interface PaxosApiErrorOptions {\n status: number;\n title?: string;\n detail?: string;\n requestId?: string;\n type?: string;\n instance?: string;\n meta?: Record<string, unknown>;\n}\n\n/**\n * Base class for every error the SDK throws. Narrow with {@link isApiError},\n * {@link isNetworkError} or {@link isTimeoutError}; only {@link PaxosApiError}\n * carries an HTTP status. Absent fields are `undefined`.\n */\nexport class PaxosError extends Error {\n declare readonly status: number | undefined;\n declare readonly title: string | undefined;\n declare readonly detail: string | undefined;\n declare readonly requestId: string | undefined;\n\n constructor(message: string, errorOptions?: ErrorOptions) {\n super(message, errorOptions);\n this.name = \"PaxosError\";\n\n // Maintains proper prototype chain in environments that transpile to ES5.\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n\n/**\n * An error response from the Paxos API (or the OAuth token endpoint).\n *\n * Carries the RFC 7807 Problem Details fields plus a requestId. Include\n * requestId when contacting Paxos support.\n */\nexport class PaxosApiError extends PaxosError {\n readonly status: number;\n readonly title: string | undefined;\n readonly detail: string | undefined;\n readonly requestId: string | undefined;\n readonly type: string | undefined;\n readonly instance: string | undefined;\n readonly meta: Record<string, unknown>;\n\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n const title = options.title || undefined;\n const detail = options.detail || undefined;\n const requestId = options.requestId || undefined;\n const requestIdPart = requestId ? `, request_id: ${requestId}` : \"\";\n super(\n `${title ?? \"API Error\"} (status ${options.status}${requestIdPart})${detail ? \": \" + detail : \"\"}`,\n errorOptions,\n );\n this.name = \"PaxosApiError\";\n this.status = options.status;\n this.title = title;\n this.detail = detail;\n this.requestId = requestId;\n this.type = options.type || undefined;\n this.instance = options.instance || undefined;\n this.meta = options.meta ?? {};\n }\n}\n\n/** 400 Bad Request — request validation failed. */\nexport class PaxosValidationError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosValidationError\";\n }\n}\n\n/** 401 Unauthorized — invalid or expired credentials. */\nexport class PaxosUnauthorizedError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosUnauthorizedError\";\n }\n}\n\n/** OAuth token acquisition failed; distinct from an API endpoint returning 401. */\nexport class PaxosAuthenticationError extends PaxosApiError {\n readonly code: string | undefined;\n\n constructor(status: number, requestId?: string, code?: string) {\n super({ status, requestId, title: \"OAuth authentication failed\", detail: code || undefined });\n this.name = \"PaxosAuthenticationError\";\n this.code = code || undefined;\n }\n}\n\n/** Type guard for OAuth HTTP failures and malformed token responses. */\nexport function isAuthenticationError(err: unknown): err is PaxosAuthenticationError {\n return err instanceof PaxosAuthenticationError;\n}\n\n/** 403 Forbidden — insufficient permissions for this resource. */\nexport class PaxosForbiddenError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosForbiddenError\";\n }\n}\n\n/** 404 Not Found — the requested resource does not exist. */\nexport class PaxosNotFoundError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosNotFoundError\";\n }\n}\n\n/** 409 Conflict — resource already exists or state conflict. */\nexport class PaxosConflictError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosConflictError\";\n }\n}\n\n/** 422 Unprocessable Entity — request is syntactically valid but semantically invalid. */\nexport class PaxosUnprocessableError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosUnprocessableError\";\n }\n}\n\n/** 429 Too Many Requests — rate limited by the Paxos API. */\nexport class PaxosRateLimitError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosRateLimitError\";\n }\n}\n\n/** 5xx Server Error — internal Paxos API error. */\nexport class PaxosServerError extends PaxosApiError {\n constructor(options: PaxosApiErrorOptions, errorOptions?: ErrorOptions) {\n super(options, errorOptions);\n this.name = \"PaxosServerError\";\n }\n}\n\n/**\n * A request, or a full auto-paginating iteration, did not complete within its\n * allotted time (`callTimeout`, an exchange's `callAttemptTimeout`, or an\n * iterator's `maxDuration`). Carries no HTTP status. `requestId` is the\n * Paxos-Request-Id of the most recent attempt built, which may have reached Paxos\n * (quote it to support); undefined if no attempt was built.\n */\nexport class PaxosTimeoutError extends PaxosError {\n readonly title: string | undefined;\n readonly detail: string | undefined;\n readonly requestId: string | undefined;\n\n constructor(options: { title?: string; detail?: string; requestId?: string } = {}, errorOptions?: ErrorOptions) {\n const title = options.title || undefined;\n const detail = options.detail || undefined;\n super(`${title ?? \"\"}${title && detail ? \": \" : \"\"}${detail ?? \"\"}`, errorOptions);\n this.name = \"PaxosTimeoutError\";\n this.title = title;\n this.detail = detail;\n this.requestId = options.requestId || undefined;\n }\n}\n\n/**\n * A transport failure (DNS, connection refused, TLS, reset) where no HTTP\n * response was received. Carries no HTTP status; the underlying error is `cause`.\n * `requestId` is the Paxos-Request-Id of the most recent attempt built, which may have\n * reached Paxos (quote it to support); undefined if no attempt was built.\n */\nexport class PaxosNetworkError extends PaxosError {\n readonly detail: string | undefined;\n readonly requestId: string | undefined;\n\n constructor(detail?: string, errorOptions?: ErrorOptions, requestId?: string) {\n super(detail ? `Network error: ${detail}` : \"Network error\", errorOptions);\n this.name = \"PaxosNetworkError\";\n this.detail = detail || undefined;\n this.requestId = requestId || undefined;\n }\n}\n\nexport function describeNetworkError(err: unknown, url: string | URL): string {\n let root: unknown = err;\n const seen = new Set<unknown>();\n while (root instanceof Error && root.cause instanceof Error && !seen.has(root)) {\n seen.add(root);\n root = root.cause;\n }\n if (root instanceof AggregateError && !root.message && root.errors[0] instanceof Error) root = root.errors[0];\n const text = !(root instanceof Error)\n ? String(root)\n : root.message || (root as { code?: string }).code || String(root);\n const parsed = new URL(url);\n if (!parsed.hostname || text.includes(parsed.hostname.replace(/^\\[|\\]$/g, \"\"))) return text;\n return `${text}: ${parsed.hostname}:${parsed.port || (parsed.protocol === \"https:\" ? \"443\" : \"80\")}`;\n}\n\n/** Type guard: returns true for any error thrown by the SDK, including network and timeout errors. */\nexport function isPaxosError(err: unknown): err is PaxosError {\n return err instanceof PaxosError;\n}\n\n/** Type guard: returns true if the error is an HTTP error response, which carries `status` and `requestId`. */\nexport function isApiError(err: unknown): err is PaxosApiError {\n return err instanceof PaxosApiError;\n}\n\n/** Type guard: returns true if the error is a 404 Not Found. */\nexport function isNotFoundError(err: unknown): err is PaxosNotFoundError {\n return err instanceof PaxosNotFoundError;\n}\n\n/** Type guard: returns true if the error is a 429 Rate Limit. */\nexport function isRateLimitError(err: unknown): err is PaxosRateLimitError {\n return err instanceof PaxosRateLimitError;\n}\n\n/** Type guard: returns true if the error is a 401 Unauthorized. */\nexport function isUnauthorizedError(err: unknown): err is PaxosUnauthorizedError {\n return err instanceof PaxosUnauthorizedError;\n}\n\n/** Type guard: returns true if the error is a 403 Forbidden. */\nexport function isForbiddenError(err: unknown): err is PaxosForbiddenError {\n return err instanceof PaxosForbiddenError;\n}\n\n/** Type guard: returns true if the error is a 400 Validation error. */\nexport function isValidationError(err: unknown): err is PaxosValidationError {\n return err instanceof PaxosValidationError;\n}\n\n/** Type guard: returns true if the error is a 409 Conflict. */\nexport function isConflictError(err: unknown): err is PaxosConflictError {\n return err instanceof PaxosConflictError;\n}\n\n/** Type guard: returns true if the error is a 422 Unprocessable. */\nexport function isUnprocessableError(err: unknown): err is PaxosUnprocessableError {\n return err instanceof PaxosUnprocessableError;\n}\n\n/** Type guard: returns true if the error is a 5xx Server error. */\nexport function isServerError(err: unknown): err is PaxosServerError {\n return err instanceof PaxosServerError;\n}\n\n/** Type guard: returns true if the error is a transport failure with no HTTP response. */\nexport function isNetworkError(err: unknown): err is PaxosNetworkError {\n return err instanceof PaxosNetworkError;\n}\n\n/** Type guard: returns true if the error is a request or pagination timeout. */\nexport function isTimeoutError(err: unknown): err is PaxosTimeoutError {\n return err instanceof PaxosTimeoutError;\n}\n\n/**\n * Parse an API error response body and HTTP status into a typed PaxosApiError subclass.\n *\n * The body is expected to follow RFC 7807 Problem Details format.\n */\nexport function parseError(status: number, body: unknown, requestId: string | undefined): PaxosApiError {\n const fields =\n body !== null && typeof body === \"object\" && !Array.isArray(body) ? (body as Record<string, unknown>) : {};\n const string = (key: string): string | undefined =>\n typeof fields[key] === \"string\" && fields[key] ? fields[key] : undefined;\n const meta = fields[\"meta\"];\n const options: PaxosApiErrorOptions = {\n status,\n title: string(\"title\"),\n detail: string(\"detail\"),\n requestId: string(\"request_id\") || requestId || undefined,\n type: string(\"type\"),\n instance: string(\"instance\"),\n meta:\n meta !== null && typeof meta === \"object\" && !Array.isArray(meta) ? (meta as Record<string, unknown>) : undefined,\n };\n\n switch (status) {\n case 400:\n return new PaxosValidationError(options);\n case 401:\n return new PaxosUnauthorizedError(options);\n case 403:\n return new PaxosForbiddenError(options);\n case 404:\n return new PaxosNotFoundError(options);\n case 409:\n return new PaxosConflictError(options);\n case 422:\n return new PaxosUnprocessableError(options);\n case 429:\n return new PaxosRateLimitError(options);\n default:\n if (status >= 500) {\n return new PaxosServerError(options);\n }\n return new PaxosApiError(options);\n }\n}\n"]}
|