@snagsolutions/sdk 0.1.0-alpha.230 → 0.1.0-alpha.232
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/CHANGELOG.md +16 -0
- package/README.md +42 -112
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +83 -0
- package/_shims/index.js +17 -0
- package/_shims/index.mjs +11 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +255 -0
- package/core.d.ts.map +1 -0
- package/core.js +929 -0
- package/core.js.map +1 -0
- package/core.mjs +897 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +46 -1
- package/error.d.ts.map +1 -1
- package/error.js +110 -3
- package/error.js.map +1 -1
- package/error.mjs +96 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +138 -6
- package/index.d.ts +137 -5
- package/index.d.ts.map +1 -1
- package/index.js +136 -12
- package/index.js.map +1 -1
- package/index.mjs +109 -5
- package/index.mjs.map +1 -1
- package/internal/qs/formats.d.ts +0 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +2 -4
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +1 -2
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +19 -16
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +19 -17
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.ts +0 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +21 -22
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/package.json +65 -101
- package/resource.d.ts +5 -1
- package/resource.d.ts.map +1 -1
- package/resource.js +8 -3
- package/resource.js.map +1 -1
- package/resource.mjs +6 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +3 -4
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +1 -1
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +1 -1
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +6 -6
- package/resources/auctions/auctions.d.ts.map +1 -1
- package/resources/auctions/auctions.js +29 -11
- package/resources/auctions/auctions.js.map +1 -1
- package/resources/auctions/auctions.mjs +5 -9
- package/resources/auctions/auctions.mjs.map +1 -1
- package/resources/auctions/index.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.d.ts +4 -5
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.js +1 -1
- package/resources/auctions/website-user-attributes/values.js.map +1 -1
- package/resources/auctions/website-user-attributes/values.mjs +1 -1
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +6 -6
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js +31 -15
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +7 -13
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
- package/resources/auctions/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes.js +15 -2
- package/resources/auctions/website-user-attributes.js.map +1 -1
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -2
- package/resources/auctions.js.map +1 -1
- package/resources/auth.d.ts +52 -5
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +11 -5
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +11 -5
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +3 -4
- package/resources/loyalty/account-streaks.d.ts.map +1 -1
- package/resources/loyalty/account-streaks.js +1 -1
- package/resources/loyalty/account-streaks.js.map +1 -1
- package/resources/loyalty/account-streaks.mjs +1 -1
- package/resources/loyalty/account-streaks.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +5 -5
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +6 -11
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +6 -11
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +12 -9
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +18 -44
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +18 -44
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +4 -5
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +1 -1
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +1 -1
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/loyalty.d.ts +1 -1
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +35 -13
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +1 -1
- package/resources/loyalty/multipliers.d.ts +10 -9
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +14 -26
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +14 -26
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +5 -5
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +5 -11
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +5 -11
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +5 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +2 -3
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +2 -3
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +4 -5
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +2 -3
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +2 -3
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +8 -7
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +10 -24
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +10 -24
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +12 -9
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +18 -48
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +18 -48
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts.map +1 -1
- package/resources/loyalty/transactions/posts.d.ts +5 -5
- package/resources/loyalty/transactions/posts.d.ts.map +1 -1
- package/resources/loyalty/transactions/posts.js +6 -14
- package/resources/loyalty/transactions/posts.js.map +1 -1
- package/resources/loyalty/transactions/posts.mjs +6 -14
- package/resources/loyalty/transactions/posts.mjs.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.d.ts +5 -5
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.js +5 -10
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.mjs +5 -10
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +8 -8
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +30 -14
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +5 -11
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -2
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty.d.ts.map +1 -1
- package/resources/loyalty.js +15 -2
- package/resources/loyalty.js.map +1 -1
- package/resources/minting/allowlist.d.ts +4 -5
- package/resources/minting/allowlist.d.ts.map +1 -1
- package/resources/minting/allowlist.js +1 -1
- package/resources/minting/allowlist.js.map +1 -1
- package/resources/minting/allowlist.mjs +1 -1
- package/resources/minting/allowlist.mjs.map +1 -1
- package/resources/minting/contracts.d.ts +5 -5
- package/resources/minting/contracts.d.ts.map +1 -1
- package/resources/minting/contracts.js +5 -9
- package/resources/minting/contracts.js.map +1 -1
- package/resources/minting/contracts.mjs +5 -9
- package/resources/minting/contracts.mjs.map +1 -1
- package/resources/minting/index.d.ts.map +1 -1
- package/resources/minting/minting.d.ts +4 -5
- package/resources/minting/minting.d.ts.map +1 -1
- package/resources/minting/minting.js +27 -5
- package/resources/minting/minting.js.map +1 -1
- package/resources/minting/minting.mjs +1 -1
- package/resources/minting/minting.mjs.map +1 -1
- package/resources/minting/status.d.ts +4 -5
- package/resources/minting/status.d.ts.map +1 -1
- package/resources/minting/status.js +3 -4
- package/resources/minting/status.js.map +1 -1
- package/resources/minting/status.mjs +3 -4
- package/resources/minting/status.mjs.map +1 -1
- package/resources/minting.d.ts.map +1 -1
- package/resources/minting.js +15 -2
- package/resources/minting.js.map +1 -1
- package/resources/referral/index.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +3 -4
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +25 -3
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +1 -1
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +5 -5
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +5 -9
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +5 -9
- package/resources/referral/users.mjs.map +1 -1
- package/resources/referral.d.ts.map +1 -1
- package/resources/referral.js +15 -2
- package/resources/referral.js.map +1 -1
- package/resources/token-claims.d.ts +10 -9
- package/resources/token-claims.d.ts.map +1 -1
- package/resources/token-claims.js +16 -16
- package/resources/token-claims.js.map +1 -1
- package/resources/token-claims.mjs +16 -16
- package/resources/token-claims.mjs.map +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/metadatas.d.ts +6 -5
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +8 -17
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +8 -17
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +13 -9
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +29 -11
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +5 -9
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +15 -2
- package/resources/users.js.map +1 -1
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/website-collections.d.ts +4 -5
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +2 -3
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +2 -3
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +4 -5
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +1 -1
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +1 -1
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +5 -5
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +30 -13
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +5 -10
- package/resources/websites/websites.mjs.map +1 -1
- package/resources/websites.d.ts.map +1 -1
- package/resources/websites.js +15 -2
- package/resources/websites.js.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.js +15 -2
- package/resources.js.map +1 -1
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +83 -0
- package/src/_shims/index.js +17 -0
- package/src/_shims/index.mjs +11 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1243 -0
- package/src/error.ts +130 -2
- package/src/index.ts +342 -5
- package/src/internal/qs/formats.ts +1 -2
- package/src/internal/qs/stringify.ts +20 -17
- package/src/internal/qs/utils.ts +14 -14
- package/src/resource.ts +11 -2
- package/src/resources/assets.ts +6 -4
- package/src/resources/auctions/auctions.ts +17 -9
- package/src/resources/auctions/website-user-attributes/values.ts +4 -5
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +20 -13
- package/src/resources/auth.ts +107 -8
- package/src/resources/index.ts +7 -1
- package/src/resources/loyalty/account-streaks.ts +4 -5
- package/src/resources/loyalty/accounts.ts +14 -10
- package/src/resources/loyalty/badges.ts +53 -22
- package/src/resources/loyalty/currencies.ts +4 -5
- package/src/resources/loyalty/loyalty.ts +1 -1
- package/src/resources/loyalty/multipliers.ts +35 -19
- package/src/resources/loyalty/questions-responses.ts +16 -8
- package/src/resources/loyalty/questions.ts +7 -9
- package/src/resources/loyalty/rule-edits.ts +6 -8
- package/src/resources/loyalty/rule-groups.ts +34 -15
- package/src/resources/loyalty/rules.ts +56 -22
- package/src/resources/loyalty/transactions/posts.ts +17 -9
- package/src/resources/loyalty/transactions/rule-statuses.ts +15 -7
- package/src/resources/loyalty/transactions/transactions.ts +24 -14
- package/src/resources/minting/allowlist.ts +7 -5
- package/src/resources/minting/contracts.ts +12 -7
- package/src/resources/minting/minting.ts +8 -6
- package/src/resources/minting/status.ts +10 -8
- package/src/resources/referral/referral.ts +4 -5
- package/src/resources/referral/users.ts +12 -7
- package/src/resources/token-claims.ts +39 -26
- package/src/resources/users/metadatas.ts +19 -9
- package/src/resources/users/users.ts +30 -11
- package/src/resources/websites/website-collections.ts +6 -8
- package/src/resources/websites/website-user-roles.ts +8 -6
- package/src/resources/websites/websites.ts +12 -7
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +255 -2
- package/src/version.ts +1 -1
- package/uploads.d.ts +74 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +168 -3
- package/uploads.js.map +1 -1
- package/uploads.mjs +157 -1
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/api-promise.d.mts +0 -2
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -2
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -2
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -202
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -202
- package/client.d.ts.map +0 -1
- package/client.js +0 -478
- package/client.js.map +0 -1
- package/client.mjs +0 -474
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -74
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -70
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -97
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -2
- package/error.d.mts.map +0 -1
- package/index.d.mts.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -36
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -79
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -74
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -40
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -37
- package/internal/parse.mjs.map +0 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/request-options.d.mts +0 -75
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -75
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -10
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -4
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -3
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -20
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -20
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -92
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -85
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -38
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -33
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -18
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -86
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -80
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -19
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -15
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -112
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -94
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -7
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -7
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -11
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -8
- package/internal/utils.mjs.map +0 -1
- package/resource.d.mts +0 -2
- package/resource.d.mts.map +0 -1
- package/resources/assets.d.mts +0 -65
- package/resources/assets.d.mts.map +0 -1
- package/resources/auctions/auctions.d.mts +0 -368
- package/resources/auctions/auctions.d.mts.map +0 -1
- package/resources/auctions/index.d.mts +0 -3
- package/resources/auctions/index.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes/index.d.mts +0 -3
- package/resources/auctions/website-user-attributes/index.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes/values.d.mts +0 -127
- package/resources/auctions/website-user-attributes/values.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.mts +0 -136
- package/resources/auctions/website-user-attributes/website-user-attributes.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes.d.mts +0 -2
- package/resources/auctions/website-user-attributes.d.mts.map +0 -1
- package/resources/auctions.d.mts +0 -2
- package/resources/auctions.d.mts.map +0 -1
- package/resources/auth.d.mts +0 -53
- package/resources/auth.d.mts.map +0 -1
- package/resources/index.d.mts +0 -10
- package/resources/index.d.mts.map +0 -1
- package/resources/loyalty/account-streaks.d.mts +0 -97
- package/resources/loyalty/account-streaks.d.mts.map +0 -1
- package/resources/loyalty/accounts.d.mts +0 -238
- package/resources/loyalty/accounts.d.mts.map +0 -1
- package/resources/loyalty/badges.d.mts +0 -1398
- package/resources/loyalty/badges.d.mts.map +0 -1
- package/resources/loyalty/currencies.d.mts +0 -272
- package/resources/loyalty/currencies.d.mts.map +0 -1
- package/resources/loyalty/index.d.mts +0 -13
- package/resources/loyalty/index.d.mts.map +0 -1
- package/resources/loyalty/loyalty.d.mts +0 -50
- package/resources/loyalty/loyalty.d.mts.map +0 -1
- package/resources/loyalty/multipliers.d.mts +0 -221
- package/resources/loyalty/multipliers.d.mts.map +0 -1
- package/resources/loyalty/questions-responses.d.mts +0 -148
- package/resources/loyalty/questions-responses.d.mts.map +0 -1
- package/resources/loyalty/questions.d.mts +0 -205
- package/resources/loyalty/questions.d.mts.map +0 -1
- package/resources/loyalty/rule-edits.d.mts +0 -3165
- package/resources/loyalty/rule-edits.d.mts.map +0 -1
- package/resources/loyalty/rule-groups.d.mts +0 -826
- package/resources/loyalty/rule-groups.d.mts.map +0 -1
- package/resources/loyalty/rules.d.mts +0 -4543
- package/resources/loyalty/rules.d.mts.map +0 -1
- package/resources/loyalty/transactions/index.d.mts +0 -4
- package/resources/loyalty/transactions/index.d.mts.map +0 -1
- package/resources/loyalty/transactions/posts.d.mts +0 -145
- package/resources/loyalty/transactions/posts.d.mts.map +0 -1
- package/resources/loyalty/transactions/rule-statuses.d.mts +0 -121
- package/resources/loyalty/transactions/rule-statuses.d.mts.map +0 -1
- package/resources/loyalty/transactions/transactions.d.mts +0 -564
- package/resources/loyalty/transactions/transactions.d.mts.map +0 -1
- package/resources/loyalty/transactions.d.mts +0 -2
- package/resources/loyalty/transactions.d.mts.map +0 -1
- package/resources/loyalty.d.mts +0 -2
- package/resources/loyalty.d.mts.map +0 -1
- package/resources/minting/allowlist.d.mts +0 -85
- package/resources/minting/allowlist.d.mts.map +0 -1
- package/resources/minting/contracts.d.mts +0 -165
- package/resources/minting/contracts.d.mts.map +0 -1
- package/resources/minting/index.d.mts +0 -5
- package/resources/minting/index.d.mts.map +0 -1
- package/resources/minting/minting.d.mts +0 -143
- package/resources/minting/minting.d.mts.map +0 -1
- package/resources/minting/status.d.mts +0 -45
- package/resources/minting/status.d.mts.map +0 -1
- package/resources/minting.d.mts +0 -2
- package/resources/minting.d.mts.map +0 -1
- package/resources/referral/index.d.mts +0 -3
- package/resources/referral/index.d.mts.map +0 -1
- package/resources/referral/referral.d.mts +0 -41
- package/resources/referral/referral.d.mts.map +0 -1
- package/resources/referral/users.d.mts +0 -84
- package/resources/referral/users.d.mts.map +0 -1
- package/resources/referral.d.mts +0 -2
- package/resources/referral.d.mts.map +0 -1
- package/resources/token-claims.d.mts +0 -159
- package/resources/token-claims.d.mts.map +0 -1
- package/resources/users/index.d.mts +0 -3
- package/resources/users/index.d.mts.map +0 -1
- package/resources/users/metadatas.d.mts +0 -174
- package/resources/users/metadatas.d.mts.map +0 -1
- package/resources/users/users.d.mts +0 -465
- package/resources/users/users.d.mts.map +0 -1
- package/resources/users.d.mts +0 -2
- package/resources/users.d.mts.map +0 -1
- package/resources/websites/index.d.mts +0 -4
- package/resources/websites/index.d.mts.map +0 -1
- package/resources/websites/website-collections.d.mts +0 -95
- package/resources/websites/website-collections.d.mts.map +0 -1
- package/resources/websites/website-user-roles.d.mts +0 -97
- package/resources/websites/website-user-roles.d.mts.map +0 -1
- package/resources/websites/websites.d.mts +0 -329
- package/resources/websites/websites.d.mts.map +0 -1
- package/resources/websites.d.mts +0 -2
- package/resources/websites.d.mts.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/client.ts +0 -868
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -92
- package/src/core/error.ts +0 -130
- package/src/core/resource.ts +0 -11
- package/src/core/uploads.ts +0 -2
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -93
- package/src/internal/detect-platform.ts +0 -196
- package/src/internal/errors.ts +0 -33
- package/src/internal/headers.ts +0 -97
- package/src/internal/parse.ts +0 -56
- package/src/internal/request-options.ts +0 -91
- package/src/internal/shim-types.ts +0 -26
- package/src/internal/shims.ts +0 -107
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -95
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -40
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -18
- package/src/internal/utils/log.ts +0 -127
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/sleep.ts +0 -3
- package/src/internal/utils/uuid.ts +0 -17
- package/src/internal/utils/values.ts +0 -105
- package/src/internal/utils.ts +0 -8
- package/uploads.d.mts +0 -2
- package/uploads.d.mts.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
6
|
|
|
7
7
|
export class Contracts extends APIResource {
|
|
8
8
|
/**
|
|
@@ -13,10 +13,15 @@ export class Contracts extends APIResource {
|
|
|
13
13
|
* const contracts = await client.minting.contracts.list();
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
+
list(query?: ContractListParams, options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
17
|
+
list(options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
16
18
|
list(
|
|
17
|
-
query: ContractListParams |
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<ContractListResponse> {
|
|
19
|
+
query: ContractListParams | Core.RequestOptions = {},
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): Core.APIPromise<ContractListResponse> {
|
|
22
|
+
if (isRequestOptions(query)) {
|
|
23
|
+
return this.list({}, query);
|
|
24
|
+
}
|
|
20
25
|
return this._client.get('/api/minting/contracts', { query, ...options });
|
|
21
26
|
}
|
|
22
27
|
|
|
@@ -31,7 +36,7 @@ export class Contracts extends APIResource {
|
|
|
31
36
|
* });
|
|
32
37
|
* ```
|
|
33
38
|
*/
|
|
34
|
-
mint(body: ContractMintParams, options?: RequestOptions): APIPromise<ContractMintResponse> {
|
|
39
|
+
mint(body: ContractMintParams, options?: Core.RequestOptions): Core.APIPromise<ContractMintResponse> {
|
|
35
40
|
return this._client.post('/api/minting/contracts/mint', { body, ...options });
|
|
36
41
|
}
|
|
37
42
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
4
5
|
import * as AllowlistAPI from './allowlist';
|
|
5
6
|
import {
|
|
6
7
|
Allowlist,
|
|
@@ -19,8 +20,6 @@ import {
|
|
|
19
20
|
} from './contracts';
|
|
20
21
|
import * as StatusAPI from './status';
|
|
21
22
|
import { Status, StatusRetrieveResponse, StatusUpdateParams, StatusUpdateResponse } from './status';
|
|
22
|
-
import { APIPromise } from '../../core/api-promise';
|
|
23
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
24
23
|
|
|
25
24
|
export class Minting extends APIResource {
|
|
26
25
|
status: StatusAPI.Status = new StatusAPI.Status(this._client);
|
|
@@ -38,7 +37,10 @@ export class Minting extends APIResource {
|
|
|
38
37
|
* });
|
|
39
38
|
* ```
|
|
40
39
|
*/
|
|
41
|
-
getAssets(
|
|
40
|
+
getAssets(
|
|
41
|
+
query: MintingGetAssetsParams,
|
|
42
|
+
options?: Core.RequestOptions,
|
|
43
|
+
): Core.APIPromise<MintingGetAssetsResponse> {
|
|
42
44
|
return this._client.get('/api/minting/assets', { query, ...options });
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -59,8 +61,8 @@ export class Minting extends APIResource {
|
|
|
59
61
|
*/
|
|
60
62
|
getTokenGateStatus(
|
|
61
63
|
query: MintingGetTokenGateStatusParams,
|
|
62
|
-
options?: RequestOptions,
|
|
63
|
-
): APIPromise<MintingGetTokenGateStatusResponse> {
|
|
64
|
+
options?: Core.RequestOptions,
|
|
65
|
+
): Core.APIPromise<MintingGetTokenGateStatusResponse> {
|
|
64
66
|
return this._client.get('/api/minting/token_gate', { query, ...options });
|
|
65
67
|
}
|
|
66
68
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
7
5
|
|
|
8
6
|
export class Status extends APIResource {
|
|
9
7
|
/**
|
|
@@ -14,8 +12,8 @@ export class Status extends APIResource {
|
|
|
14
12
|
* const status = await client.minting.status.retrieve('id');
|
|
15
13
|
* ```
|
|
16
14
|
*/
|
|
17
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<StatusRetrieveResponse> {
|
|
18
|
-
return this._client.get(
|
|
15
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<StatusRetrieveResponse> {
|
|
16
|
+
return this._client.get(`/api/minting/status/${id}`, options);
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
/**
|
|
@@ -28,8 +26,12 @@ export class Status extends APIResource {
|
|
|
28
26
|
* });
|
|
29
27
|
* ```
|
|
30
28
|
*/
|
|
31
|
-
update(
|
|
32
|
-
|
|
29
|
+
update(
|
|
30
|
+
id: string,
|
|
31
|
+
body: StatusUpdateParams,
|
|
32
|
+
options?: Core.RequestOptions,
|
|
33
|
+
): Core.APIPromise<StatusUpdateResponse> {
|
|
34
|
+
return this._client.post(`/api/minting/status/${id}`, { body, ...options });
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
4
5
|
import * as UsersAPI from './users';
|
|
5
6
|
import { UserCreateParams, UserCreateResponse, UserListParams, UserListResponse, Users } from './users';
|
|
6
|
-
import { APIPromise } from '../../core/api-promise';
|
|
7
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
8
7
|
|
|
9
8
|
export class Referral extends APIResource {
|
|
10
9
|
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
@@ -21,8 +20,8 @@ export class Referral extends APIResource {
|
|
|
21
20
|
*/
|
|
22
21
|
createCode(
|
|
23
22
|
body: ReferralCreateCodeParams,
|
|
24
|
-
options?: RequestOptions,
|
|
25
|
-
): APIPromise<ReferralCreateCodeResponse> {
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<ReferralCreateCodeResponse> {
|
|
26
25
|
return this._client.post('/api/referral/codes', { body, ...options });
|
|
27
26
|
}
|
|
28
27
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
6
|
|
|
7
7
|
export class Users extends APIResource {
|
|
8
8
|
/**
|
|
@@ -15,7 +15,7 @@ export class Users extends APIResource {
|
|
|
15
15
|
* });
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
create(body: UserCreateParams, options?: RequestOptions): APIPromise<UserCreateResponse> {
|
|
18
|
+
create(body: UserCreateParams, options?: Core.RequestOptions): Core.APIPromise<UserCreateResponse> {
|
|
19
19
|
return this._client.post('/api/referral/users', { body, ...options });
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -27,10 +27,15 @@ export class Users extends APIResource {
|
|
|
27
27
|
* const users = await client.referral.users.list();
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
+
list(query?: UserListParams, options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
31
|
+
list(options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
30
32
|
list(
|
|
31
|
-
query: UserListParams |
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): APIPromise<UserListResponse> {
|
|
33
|
+
query: UserListParams | Core.RequestOptions = {},
|
|
34
|
+
options?: Core.RequestOptions,
|
|
35
|
+
): Core.APIPromise<UserListResponse> {
|
|
36
|
+
if (isRequestOptions(query)) {
|
|
37
|
+
return this.list({}, query);
|
|
38
|
+
}
|
|
34
39
|
return this._client.get('/api/referral/users', { query, ...options });
|
|
35
40
|
}
|
|
36
41
|
}
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { path } from '../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
7
6
|
|
|
8
7
|
export class TokenClaims extends APIResource {
|
|
9
8
|
/**
|
|
10
9
|
* Get a token claim by id
|
|
11
10
|
*/
|
|
12
11
|
retrieve(
|
|
13
|
-
|
|
12
|
+
pathId: string,
|
|
14
13
|
query: TokenClaimRetrieveParams,
|
|
15
|
-
options?: RequestOptions,
|
|
16
|
-
): APIPromise<TokenClaimRetrieveResponse> {
|
|
17
|
-
return this._client.get(
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<TokenClaimRetrieveResponse> {
|
|
16
|
+
return this._client.get(`/api/token_claims/${pathId}`, { query, ...options });
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
* Get all available token claims for a given website and organization
|
|
22
21
|
*/
|
|
22
|
+
list(query?: TokenClaimListParams, options?: Core.RequestOptions): Core.APIPromise<TokenClaimListResponse>;
|
|
23
|
+
list(options?: Core.RequestOptions): Core.APIPromise<TokenClaimListResponse>;
|
|
23
24
|
list(
|
|
24
|
-
query: TokenClaimListParams |
|
|
25
|
-
options?: RequestOptions,
|
|
26
|
-
): APIPromise<TokenClaimListResponse> {
|
|
25
|
+
query: TokenClaimListParams | Core.RequestOptions = {},
|
|
26
|
+
options?: Core.RequestOptions,
|
|
27
|
+
): Core.APIPromise<TokenClaimListResponse> {
|
|
28
|
+
if (isRequestOptions(query)) {
|
|
29
|
+
return this.list({}, query);
|
|
30
|
+
}
|
|
27
31
|
return this._client.get('/api/token_claims', { query, ...options });
|
|
28
32
|
}
|
|
29
33
|
|
|
@@ -31,22 +35,22 @@ export class TokenClaims extends APIResource {
|
|
|
31
35
|
* Check if a wallet address is eligible for a token claim
|
|
32
36
|
*/
|
|
33
37
|
checkEligibility(
|
|
34
|
-
|
|
38
|
+
pathId: string,
|
|
35
39
|
query: TokenClaimCheckEligibilityParams,
|
|
36
|
-
options?: RequestOptions,
|
|
37
|
-
): APIPromise<TokenClaimCheckEligibilityResponse> {
|
|
38
|
-
return this._client.get(
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.APIPromise<TokenClaimCheckEligibilityResponse> {
|
|
42
|
+
return this._client.get(`/api/token_claims/${pathId}/eligibility`, { query, ...options });
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
/**
|
|
42
46
|
* Get a token claim proof for a given wallet address
|
|
43
47
|
*/
|
|
44
48
|
getProof(
|
|
45
|
-
|
|
49
|
+
pathId: string,
|
|
46
50
|
query: TokenClaimGetProofParams,
|
|
47
|
-
options?: RequestOptions,
|
|
48
|
-
): APIPromise<TokenClaimGetProofResponse> {
|
|
49
|
-
return this._client.get(
|
|
51
|
+
options?: Core.RequestOptions,
|
|
52
|
+
): Core.APIPromise<TokenClaimGetProofResponse> {
|
|
53
|
+
return this._client.get(`/api/token_claims/${pathId}/proof`, { query, ...options });
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/**
|
|
@@ -54,10 +58,19 @@ export class TokenClaims extends APIResource {
|
|
|
54
58
|
*/
|
|
55
59
|
listUsers(
|
|
56
60
|
id: string,
|
|
57
|
-
query
|
|
58
|
-
options?: RequestOptions,
|
|
59
|
-
): APIPromise<TokenClaimListUsersResponse
|
|
60
|
-
|
|
61
|
+
query?: TokenClaimListUsersParams,
|
|
62
|
+
options?: Core.RequestOptions,
|
|
63
|
+
): Core.APIPromise<TokenClaimListUsersResponse>;
|
|
64
|
+
listUsers(id: string, options?: Core.RequestOptions): Core.APIPromise<TokenClaimListUsersResponse>;
|
|
65
|
+
listUsers(
|
|
66
|
+
id: string,
|
|
67
|
+
query: TokenClaimListUsersParams | Core.RequestOptions = {},
|
|
68
|
+
options?: Core.RequestOptions,
|
|
69
|
+
): Core.APIPromise<TokenClaimListUsersResponse> {
|
|
70
|
+
if (isRequestOptions(query)) {
|
|
71
|
+
return this.listUsers(id, {}, query);
|
|
72
|
+
}
|
|
73
|
+
return this._client.get(`/api/token_claims/${id}/users`, { query, ...options });
|
|
61
74
|
}
|
|
62
75
|
|
|
63
76
|
/**
|
|
@@ -66,9 +79,9 @@ export class TokenClaims extends APIResource {
|
|
|
66
79
|
updateClaim(
|
|
67
80
|
id: string,
|
|
68
81
|
body: TokenClaimUpdateClaimParams,
|
|
69
|
-
options?: RequestOptions,
|
|
70
|
-
): APIPromise<TokenClaimUpdateClaimResponse> {
|
|
71
|
-
return this._client.post(
|
|
82
|
+
options?: Core.RequestOptions,
|
|
83
|
+
): Core.APIPromise<TokenClaimUpdateClaimResponse> {
|
|
84
|
+
return this._client.post(`/api/token_claims/${id}/claim`, { body, ...options });
|
|
72
85
|
}
|
|
73
86
|
}
|
|
74
87
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
6
|
|
|
7
7
|
export class Metadatas extends APIResource {
|
|
8
8
|
/**
|
|
@@ -13,10 +13,15 @@ export class Metadatas extends APIResource {
|
|
|
13
13
|
* const metadata = await client.users.metadatas.create();
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
+
create(body?: MetadataCreateParams, options?: Core.RequestOptions): Core.APIPromise<MetadataCreateResponse>;
|
|
17
|
+
create(options?: Core.RequestOptions): Core.APIPromise<MetadataCreateResponse>;
|
|
16
18
|
create(
|
|
17
|
-
body: MetadataCreateParams |
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<MetadataCreateResponse> {
|
|
19
|
+
body: MetadataCreateParams | Core.RequestOptions = {},
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): Core.APIPromise<MetadataCreateResponse> {
|
|
22
|
+
if (isRequestOptions(body)) {
|
|
23
|
+
return this.create({}, body);
|
|
24
|
+
}
|
|
20
25
|
return this._client.post('/api/users/metadatas', { body, ...options });
|
|
21
26
|
}
|
|
22
27
|
|
|
@@ -28,10 +33,15 @@ export class Metadatas extends APIResource {
|
|
|
28
33
|
* const metadatas = await client.users.metadatas.list();
|
|
29
34
|
* ```
|
|
30
35
|
*/
|
|
36
|
+
list(query?: MetadataListParams, options?: Core.RequestOptions): Core.APIPromise<MetadataListResponse>;
|
|
37
|
+
list(options?: Core.RequestOptions): Core.APIPromise<MetadataListResponse>;
|
|
31
38
|
list(
|
|
32
|
-
query: MetadataListParams |
|
|
33
|
-
options?: RequestOptions,
|
|
34
|
-
): APIPromise<MetadataListResponse> {
|
|
39
|
+
query: MetadataListParams | Core.RequestOptions = {},
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.APIPromise<MetadataListResponse> {
|
|
42
|
+
if (isRequestOptions(query)) {
|
|
43
|
+
return this.list({}, query);
|
|
44
|
+
}
|
|
35
45
|
return this._client.get('/api/users/metadatas', { query, ...options });
|
|
36
46
|
}
|
|
37
47
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
4
6
|
import * as MetadatasAPI from './metadatas';
|
|
5
7
|
import {
|
|
6
8
|
MetadataCreateParams,
|
|
@@ -9,8 +11,6 @@ import {
|
|
|
9
11
|
MetadataListResponse,
|
|
10
12
|
Metadatas,
|
|
11
13
|
} from './metadatas';
|
|
12
|
-
import { APIPromise } from '../../core/api-promise';
|
|
13
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
14
14
|
|
|
15
15
|
export class Users extends APIResource {
|
|
16
16
|
metadatas: MetadatasAPI.Metadatas = new MetadatasAPI.Metadatas(this._client);
|
|
@@ -23,10 +23,15 @@ export class Users extends APIResource {
|
|
|
23
23
|
* const users = await client.users.list();
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
+
list(query?: UserListParams, options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
27
|
+
list(options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
26
28
|
list(
|
|
27
|
-
query: UserListParams |
|
|
28
|
-
options?: RequestOptions,
|
|
29
|
-
): APIPromise<UserListResponse> {
|
|
29
|
+
query: UserListParams | Core.RequestOptions = {},
|
|
30
|
+
options?: Core.RequestOptions,
|
|
31
|
+
): Core.APIPromise<UserListResponse> {
|
|
32
|
+
if (isRequestOptions(query)) {
|
|
33
|
+
return this.list({}, query);
|
|
34
|
+
}
|
|
30
35
|
return this._client.get('/api/users', { query, ...options });
|
|
31
36
|
}
|
|
32
37
|
|
|
@@ -44,7 +49,7 @@ export class Users extends APIResource {
|
|
|
44
49
|
* });
|
|
45
50
|
* ```
|
|
46
51
|
*/
|
|
47
|
-
connect(body: UserConnectParams, options?: RequestOptions): APIPromise<UserConnectResponse> {
|
|
52
|
+
connect(body: UserConnectParams, options?: Core.RequestOptions): Core.APIPromise<UserConnectResponse> {
|
|
48
53
|
return this._client.post('/api/users/connect', { body, ...options });
|
|
49
54
|
}
|
|
50
55
|
|
|
@@ -59,7 +64,7 @@ export class Users extends APIResource {
|
|
|
59
64
|
* });
|
|
60
65
|
* ```
|
|
61
66
|
*/
|
|
62
|
-
count(query: UserCountParams, options?: RequestOptions): APIPromise<UserCountResponse> {
|
|
67
|
+
count(query: UserCountParams, options?: Core.RequestOptions): Core.APIPromise<UserCountResponse> {
|
|
63
68
|
return this._client.get('/api/users/count', { query, ...options });
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -73,7 +78,10 @@ export class Users extends APIResource {
|
|
|
73
78
|
* });
|
|
74
79
|
* ```
|
|
75
80
|
*/
|
|
76
|
-
createDevice(
|
|
81
|
+
createDevice(
|
|
82
|
+
body: UserCreateDeviceParams,
|
|
83
|
+
options?: Core.RequestOptions,
|
|
84
|
+
): Core.APIPromise<UserCreateDeviceResponse> {
|
|
77
85
|
return this._client.post('/api/users/devices', { body, ...options });
|
|
78
86
|
}
|
|
79
87
|
|
|
@@ -89,7 +97,10 @@ export class Users extends APIResource {
|
|
|
89
97
|
* });
|
|
90
98
|
* ```
|
|
91
99
|
*/
|
|
92
|
-
disconnect(
|
|
100
|
+
disconnect(
|
|
101
|
+
body: UserDisconnectParams,
|
|
102
|
+
options?: Core.RequestOptions,
|
|
103
|
+
): Core.APIPromise<UserDisconnectResponse> {
|
|
93
104
|
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
94
105
|
}
|
|
95
106
|
|
|
@@ -106,7 +117,7 @@ export class Users extends APIResource {
|
|
|
106
117
|
* });
|
|
107
118
|
* ```
|
|
108
119
|
*/
|
|
109
|
-
verify(body: UserVerifyParams, options?: RequestOptions): APIPromise<UserVerifyResponse> {
|
|
120
|
+
verify(body: UserVerifyParams, options?: Core.RequestOptions): Core.APIPromise<UserVerifyResponse> {
|
|
110
121
|
return this._client.post('/api/users/verify', { body, ...options });
|
|
111
122
|
}
|
|
112
123
|
}
|
|
@@ -220,6 +231,10 @@ export namespace UserListResponse {
|
|
|
220
231
|
|
|
221
232
|
externalLoyaltyScore?: string | null;
|
|
222
233
|
|
|
234
|
+
githubUser?: string | null;
|
|
235
|
+
|
|
236
|
+
githubUserId?: string | null;
|
|
237
|
+
|
|
223
238
|
googleUser?: string | null;
|
|
224
239
|
|
|
225
240
|
googleUserId?: string | null;
|
|
@@ -238,6 +253,10 @@ export namespace UserListResponse {
|
|
|
238
253
|
|
|
239
254
|
portfolioUrl?: string | null;
|
|
240
255
|
|
|
256
|
+
redditUser?: string | null;
|
|
257
|
+
|
|
258
|
+
redditUserId?: string | null;
|
|
259
|
+
|
|
241
260
|
steamUserId?: string | null;
|
|
242
261
|
|
|
243
262
|
steamUsername?: string | null;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
7
5
|
|
|
8
6
|
export class WebsiteCollections extends APIResource {
|
|
9
7
|
/**
|
|
@@ -22,11 +20,11 @@ export class WebsiteCollections extends APIResource {
|
|
|
22
20
|
* });
|
|
23
21
|
* ```
|
|
24
22
|
*/
|
|
25
|
-
create(body: WebsiteCollectionCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
23
|
+
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
26
24
|
return this._client.post('/api/website_collections', {
|
|
27
25
|
body,
|
|
28
26
|
...options,
|
|
29
|
-
headers:
|
|
27
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
30
28
|
});
|
|
31
29
|
}
|
|
32
30
|
|
|
@@ -43,8 +41,8 @@ export class WebsiteCollections extends APIResource {
|
|
|
43
41
|
*/
|
|
44
42
|
list(
|
|
45
43
|
query: WebsiteCollectionListParams,
|
|
46
|
-
options?: RequestOptions,
|
|
47
|
-
): APIPromise<WebsiteCollectionListResponse> {
|
|
44
|
+
options?: Core.RequestOptions,
|
|
45
|
+
): Core.APIPromise<WebsiteCollectionListResponse> {
|
|
48
46
|
return this._client.get('/api/website_collections', { query, ...options });
|
|
49
47
|
}
|
|
50
48
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
6
5
|
|
|
7
6
|
export class WebsiteUserRoles extends APIResource {
|
|
8
7
|
/**
|
|
@@ -17,7 +16,10 @@ export class WebsiteUserRoles extends APIResource {
|
|
|
17
16
|
* });
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
|
-
list(
|
|
19
|
+
list(
|
|
20
|
+
query: WebsiteUserRoleListParams,
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.APIPromise<WebsiteUserRoleListResponse> {
|
|
21
23
|
return this._client.get('/api/website_user_roles', { query, ...options });
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -41,8 +43,8 @@ export class WebsiteUserRoles extends APIResource {
|
|
|
41
43
|
*/
|
|
42
44
|
assign(
|
|
43
45
|
body: WebsiteUserRoleAssignParams,
|
|
44
|
-
options?: RequestOptions,
|
|
45
|
-
): APIPromise<WebsiteUserRoleAssignResponse> {
|
|
46
|
+
options?: Core.RequestOptions,
|
|
47
|
+
): Core.APIPromise<WebsiteUserRoleAssignResponse> {
|
|
46
48
|
return this._client.post('/api/website_user_roles', { body, ...options });
|
|
47
49
|
}
|
|
48
50
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
4
6
|
import * as WebsiteCollectionsAPI from './website-collections';
|
|
5
7
|
import {
|
|
6
8
|
WebsiteCollectionCreateParams,
|
|
@@ -16,8 +18,6 @@ import {
|
|
|
16
18
|
WebsiteUserRoleListResponse,
|
|
17
19
|
WebsiteUserRoles,
|
|
18
20
|
} from './website-user-roles';
|
|
19
|
-
import { APIPromise } from '../../core/api-promise';
|
|
20
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
21
21
|
|
|
22
22
|
export class Websites extends APIResource {
|
|
23
23
|
websiteCollections: WebsiteCollectionsAPI.WebsiteCollections = new WebsiteCollectionsAPI.WebsiteCollections(
|
|
@@ -37,7 +37,7 @@ export class Websites extends APIResource {
|
|
|
37
37
|
* });
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
create(body: WebsiteCreateParams, options?: RequestOptions): APIPromise<WebsiteCreateResponse> {
|
|
40
|
+
create(body: WebsiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCreateResponse> {
|
|
41
41
|
return this._client.post('/api/websites', { body, ...options });
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -50,10 +50,15 @@ export class Websites extends APIResource {
|
|
|
50
50
|
* const websites = await client.websites.list();
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
+
list(query?: WebsiteListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
54
|
+
list(options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
53
55
|
list(
|
|
54
|
-
query: WebsiteListParams |
|
|
55
|
-
options?: RequestOptions,
|
|
56
|
-
): APIPromise<WebsiteListResponse> {
|
|
56
|
+
query: WebsiteListParams | Core.RequestOptions = {},
|
|
57
|
+
options?: Core.RequestOptions,
|
|
58
|
+
): Core.APIPromise<WebsiteListResponse> {
|
|
59
|
+
if (isRequestOptions(query)) {
|
|
60
|
+
return this.list({}, query);
|
|
61
|
+
}
|
|
57
62
|
return this._client.get('/api/websites', { query, ...options });
|
|
58
63
|
}
|
|
59
64
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as types from '../_shims/node-types';
|
|
3
|
+
import { setShims } from '../_shims/registry';
|
|
4
|
+
import { getRuntime } from '../_shims/node-runtime';
|
|
5
|
+
setShims(getRuntime());
|
|
6
|
+
|
|
7
|
+
declare module '../_shims/manual-types' {
|
|
8
|
+
export namespace manual {
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
export type Agent = types.Agent;
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
export import fetch = types.fetch;
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export type Request = types.Request;
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export type RequestInfo = types.RequestInfo;
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
export type RequestInit = types.RequestInit;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
export type Response = types.Response;
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
export type ResponseInit = types.ResponseInit;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
export type ResponseType = types.ResponseType;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
export type BodyInit = types.BodyInit;
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
export type Headers = types.Headers;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
export type HeadersInit = types.HeadersInit;
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
export type BlobPropertyBag = types.BlobPropertyBag;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export type FilePropertyBag = types.FilePropertyBag;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
export type FileFromPathOptions = types.FileFromPathOptions;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
export import FormData = types.FormData;
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
export import File = types.File;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
export import Blob = types.Blob;
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export type Readable = types.Readable;
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export type FsReadStream = types.FsReadStream;
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
export import ReadableStream = types.ReadableStream;
|
|
49
|
+
}
|
|
50
|
+
}
|