@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
package/src/resource.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import type { SnagSolutions } from './index';
|
|
4
|
+
|
|
5
|
+
export abstract class APIResource {
|
|
6
|
+
protected _client: SnagSolutions;
|
|
7
|
+
|
|
8
|
+
constructor(client: SnagSolutions) {
|
|
9
|
+
this._client = client;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/resources/assets.ts
CHANGED
|
@@ -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 Assets extends APIResource {
|
|
8
7
|
/**
|
|
@@ -18,7 +17,10 @@ export class Assets extends APIResource {
|
|
|
18
17
|
* });
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
|
-
createAsset(
|
|
20
|
+
createAsset(
|
|
21
|
+
body: AssetCreateAssetParams,
|
|
22
|
+
options?: Core.RequestOptions,
|
|
23
|
+
): Core.APIPromise<AssetCreateAssetResponse> {
|
|
22
24
|
return this._client.post('/api/assets', { body, ...options });
|
|
23
25
|
}
|
|
24
26
|
}
|
|
@@ -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 WebsiteUserAttributesAPI from './website-user-attributes/website-user-attributes';
|
|
5
7
|
import {
|
|
6
8
|
WebsiteUserAttributeCreateParams,
|
|
@@ -11,8 +13,6 @@ import {
|
|
|
11
13
|
WebsiteUserAttributeListResponse,
|
|
12
14
|
WebsiteUserAttributes,
|
|
13
15
|
} from './website-user-attributes/website-user-attributes';
|
|
14
|
-
import { APIPromise } from '../../core/api-promise';
|
|
15
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
16
16
|
|
|
17
17
|
export class Auctions extends APIResource {
|
|
18
18
|
websiteUserAttributes: WebsiteUserAttributesAPI.WebsiteUserAttributes =
|
|
@@ -32,8 +32,8 @@ export class Auctions extends APIResource {
|
|
|
32
32
|
*/
|
|
33
33
|
getPageSections(
|
|
34
34
|
query: AuctionGetPageSectionsParams,
|
|
35
|
-
options?: RequestOptions,
|
|
36
|
-
): APIPromise<AuctionGetPageSectionsResponse> {
|
|
35
|
+
options?: Core.RequestOptions,
|
|
36
|
+
): Core.APIPromise<AuctionGetPageSectionsResponse> {
|
|
37
37
|
return this._client.get('/api/page_sections', { query, ...options });
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -46,9 +46,17 @@ export class Auctions extends APIResource {
|
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
48
|
listAuctionBids(
|
|
49
|
-
query
|
|
50
|
-
options?: RequestOptions,
|
|
51
|
-
): APIPromise<AuctionListAuctionBidsResponse
|
|
49
|
+
query?: AuctionListAuctionBidsParams,
|
|
50
|
+
options?: Core.RequestOptions,
|
|
51
|
+
): Core.APIPromise<AuctionListAuctionBidsResponse>;
|
|
52
|
+
listAuctionBids(options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionBidsResponse>;
|
|
53
|
+
listAuctionBids(
|
|
54
|
+
query: AuctionListAuctionBidsParams | Core.RequestOptions = {},
|
|
55
|
+
options?: Core.RequestOptions,
|
|
56
|
+
): Core.APIPromise<AuctionListAuctionBidsResponse> {
|
|
57
|
+
if (isRequestOptions(query)) {
|
|
58
|
+
return this.listAuctionBids({}, query);
|
|
59
|
+
}
|
|
52
60
|
return this._client.get('/api/auction_bids', { query, ...options });
|
|
53
61
|
}
|
|
54
62
|
|
|
@@ -60,7 +68,7 @@ export class Auctions extends APIResource {
|
|
|
60
68
|
* const response = await client.auctions.listAuctions();
|
|
61
69
|
* ```
|
|
62
70
|
*/
|
|
63
|
-
listAuctions(options?: RequestOptions): APIPromise<AuctionListAuctionsResponse> {
|
|
71
|
+
listAuctions(options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionsResponse> {
|
|
64
72
|
return this._client.get('/api/auctions', options);
|
|
65
73
|
}
|
|
66
74
|
}
|
|
@@ -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 Values extends APIResource {
|
|
8
7
|
/**
|
|
@@ -28,7 +27,7 @@ export class Values extends APIResource {
|
|
|
28
27
|
* );
|
|
29
28
|
* ```
|
|
30
29
|
*/
|
|
31
|
-
create(body: ValueCreateParams, options?: RequestOptions): APIPromise<ValueCreateResponse> {
|
|
30
|
+
create(body: ValueCreateParams, options?: Core.RequestOptions): Core.APIPromise<ValueCreateResponse> {
|
|
32
31
|
return this._client.post('/api/website_user_attributes/values', { body, ...options });
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -43,7 +42,7 @@ export class Values extends APIResource {
|
|
|
43
42
|
* });
|
|
44
43
|
* ```
|
|
45
44
|
*/
|
|
46
|
-
list(query: ValueListParams, options?: RequestOptions): APIPromise<ValueListResponse> {
|
|
45
|
+
list(query: ValueListParams, options?: Core.RequestOptions): Core.APIPromise<ValueListResponse> {
|
|
47
46
|
return this._client.get('/api/website_user_attributes/values', { query, ...options });
|
|
48
47
|
}
|
|
49
48
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 ValuesAPI from './values';
|
|
5
7
|
import { ValueCreateParams, ValueCreateResponse, ValueListParams, ValueListResponse, Values } from './values';
|
|
6
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
-
import { path } from '../../../internal/utils/path';
|
|
9
8
|
|
|
10
9
|
export class WebsiteUserAttributes extends APIResource {
|
|
11
10
|
values: ValuesAPI.Values = new ValuesAPI.Values(this._client);
|
|
@@ -23,8 +22,8 @@ export class WebsiteUserAttributes extends APIResource {
|
|
|
23
22
|
*/
|
|
24
23
|
create(
|
|
25
24
|
body: WebsiteUserAttributeCreateParams,
|
|
26
|
-
options?: RequestOptions,
|
|
27
|
-
): APIPromise<WebsiteUserAttributeCreateResponse> {
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.APIPromise<WebsiteUserAttributeCreateResponse> {
|
|
28
27
|
return this._client.post('/api/website_user_attributes', { body, ...options });
|
|
29
28
|
}
|
|
30
29
|
|
|
@@ -38,9 +37,17 @@ export class WebsiteUserAttributes extends APIResource {
|
|
|
38
37
|
* ```
|
|
39
38
|
*/
|
|
40
39
|
list(
|
|
41
|
-
query
|
|
42
|
-
options?: RequestOptions,
|
|
43
|
-
): APIPromise<WebsiteUserAttributeListResponse
|
|
40
|
+
query?: WebsiteUserAttributeListParams,
|
|
41
|
+
options?: Core.RequestOptions,
|
|
42
|
+
): Core.APIPromise<WebsiteUserAttributeListResponse>;
|
|
43
|
+
list(options?: Core.RequestOptions): Core.APIPromise<WebsiteUserAttributeListResponse>;
|
|
44
|
+
list(
|
|
45
|
+
query: WebsiteUserAttributeListParams | Core.RequestOptions = {},
|
|
46
|
+
options?: Core.RequestOptions,
|
|
47
|
+
): Core.APIPromise<WebsiteUserAttributeListResponse> {
|
|
48
|
+
if (isRequestOptions(query)) {
|
|
49
|
+
return this.list({}, query);
|
|
50
|
+
}
|
|
44
51
|
return this._client.get('/api/website_user_attributes', { query, ...options });
|
|
45
52
|
}
|
|
46
53
|
|
|
@@ -58,11 +65,11 @@ export class WebsiteUserAttributes extends APIResource {
|
|
|
58
65
|
* ```
|
|
59
66
|
*/
|
|
60
67
|
delete(
|
|
61
|
-
|
|
68
|
+
pathId: string,
|
|
62
69
|
body: WebsiteUserAttributeDeleteParams,
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): APIPromise<WebsiteUserAttributeDeleteResponse> {
|
|
65
|
-
return this._client.delete(
|
|
70
|
+
options?: Core.RequestOptions,
|
|
71
|
+
): Core.APIPromise<WebsiteUserAttributeDeleteResponse> {
|
|
72
|
+
return this._client.delete(`/api/website_user_attributes/${pathId}`, { body, ...options });
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
75
|
|
package/src/resources/auth.ts
CHANGED
|
@@ -1,9 +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
|
|
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 Auth extends APIResource {
|
|
9
8
|
/**
|
|
@@ -22,10 +21,55 @@ export class Auth extends APIResource {
|
|
|
22
21
|
| 'email'
|
|
23
22
|
| 'reddit'
|
|
24
23
|
| 'instagram',
|
|
25
|
-
query
|
|
26
|
-
options?: RequestOptions,
|
|
27
|
-
): APIPromise<AuthConnectAuthResponse
|
|
28
|
-
|
|
24
|
+
query?: AuthConnectAuthParams,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.APIPromise<AuthConnectAuthResponse>;
|
|
27
|
+
connectAuth(
|
|
28
|
+
authType:
|
|
29
|
+
| 'twitter'
|
|
30
|
+
| 'discord'
|
|
31
|
+
| 'telegram'
|
|
32
|
+
| 'epic'
|
|
33
|
+
| 'steam'
|
|
34
|
+
| 'ultra'
|
|
35
|
+
| 'google'
|
|
36
|
+
| 'tiktok'
|
|
37
|
+
| 'email'
|
|
38
|
+
| 'reddit'
|
|
39
|
+
| 'instagram',
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.APIPromise<AuthConnectAuthResponse>;
|
|
42
|
+
connectAuth(
|
|
43
|
+
authType:
|
|
44
|
+
| 'twitter'
|
|
45
|
+
| 'discord'
|
|
46
|
+
| 'telegram'
|
|
47
|
+
| 'epic'
|
|
48
|
+
| 'steam'
|
|
49
|
+
| 'ultra'
|
|
50
|
+
| 'google'
|
|
51
|
+
| 'tiktok'
|
|
52
|
+
| 'email'
|
|
53
|
+
| 'reddit'
|
|
54
|
+
| 'instagram',
|
|
55
|
+
query: AuthConnectAuthParams | Core.RequestOptions = {},
|
|
56
|
+
options?: Core.RequestOptions,
|
|
57
|
+
): Core.APIPromise<AuthConnectAuthResponse> {
|
|
58
|
+
if (isRequestOptions(query)) {
|
|
59
|
+
return this.connectAuth(authType, {}, query);
|
|
60
|
+
}
|
|
61
|
+
return this._client.get(`/api/${authType}/auth`, { query, ...options });
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* endpoint to verify and complete connecting an auth account to a Snag account
|
|
66
|
+
*/
|
|
67
|
+
connectAuthVerify(
|
|
68
|
+
authType: 'tiktok' | 'reddit' | 'instagram',
|
|
69
|
+
query: AuthConnectAuthVerifyParams,
|
|
70
|
+
options?: Core.RequestOptions,
|
|
71
|
+
): Core.APIPromise<AuthConnectAuthVerifyResponse> {
|
|
72
|
+
return this._client.get(`/api/${authType}/auth/connect`, { query, ...options });
|
|
29
73
|
}
|
|
30
74
|
}
|
|
31
75
|
|
|
@@ -39,6 +83,32 @@ export interface AuthConnectAuthResponse {
|
|
|
39
83
|
url: string;
|
|
40
84
|
}
|
|
41
85
|
|
|
86
|
+
/**
|
|
87
|
+
* 200 response for GET /api/{authType}/auth/connect. Success, conflict (account
|
|
88
|
+
* already linked), or verification error.
|
|
89
|
+
*/
|
|
90
|
+
export interface AuthConnectAuthVerifyResponse {
|
|
91
|
+
/**
|
|
92
|
+
* Whether the account was linked successfully
|
|
93
|
+
*/
|
|
94
|
+
success: boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The error message if the account was not linked successfully
|
|
98
|
+
*/
|
|
99
|
+
error?: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The JWT state
|
|
103
|
+
*/
|
|
104
|
+
jwtState?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The message of the response
|
|
108
|
+
*/
|
|
109
|
+
message?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
42
112
|
export interface AuthConnectAuthParams {
|
|
43
113
|
/**
|
|
44
114
|
* The email address of the user, this is only required for email auth
|
|
@@ -77,9 +147,38 @@ export interface AuthConnectAuthParams {
|
|
|
77
147
|
websiteId?: string;
|
|
78
148
|
}
|
|
79
149
|
|
|
150
|
+
export interface AuthConnectAuthVerifyParams {
|
|
151
|
+
state: string;
|
|
152
|
+
|
|
153
|
+
code?: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The username or URL of the Instagram profile
|
|
157
|
+
*/
|
|
158
|
+
instagramUsernameOrUrl?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The URL of the Reddit profile
|
|
162
|
+
*/
|
|
163
|
+
redditProfileUrl?: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The type of response to return, this is not valid for email auth, email auth
|
|
167
|
+
* only supports the redirect flow via verification link.
|
|
168
|
+
*/
|
|
169
|
+
responseType?: 'redirect' | 'json';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The URL of the TikTok profile
|
|
173
|
+
*/
|
|
174
|
+
tiktokProfileUrl?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
80
177
|
export declare namespace Auth {
|
|
81
178
|
export {
|
|
82
179
|
type AuthConnectAuthResponse as AuthConnectAuthResponse,
|
|
180
|
+
type AuthConnectAuthVerifyResponse as AuthConnectAuthVerifyResponse,
|
|
83
181
|
type AuthConnectAuthParams as AuthConnectAuthParams,
|
|
182
|
+
type AuthConnectAuthVerifyParams as AuthConnectAuthVerifyParams,
|
|
84
183
|
};
|
|
85
184
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -9,7 +9,13 @@ export {
|
|
|
9
9
|
type AuctionGetPageSectionsParams,
|
|
10
10
|
type AuctionListAuctionBidsParams,
|
|
11
11
|
} from './auctions/auctions';
|
|
12
|
-
export {
|
|
12
|
+
export {
|
|
13
|
+
Auth,
|
|
14
|
+
type AuthConnectAuthResponse,
|
|
15
|
+
type AuthConnectAuthVerifyResponse,
|
|
16
|
+
type AuthConnectAuthParams,
|
|
17
|
+
type AuthConnectAuthVerifyParams,
|
|
18
|
+
} from './auth';
|
|
13
19
|
export { Loyalty } from './loyalty/loyalty';
|
|
14
20
|
export {
|
|
15
21
|
Minting,
|
|
@@ -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 AccountStreaks extends APIResource {
|
|
8
7
|
/**
|
|
@@ -19,8 +18,8 @@ export class AccountStreaks extends APIResource {
|
|
|
19
18
|
*/
|
|
20
19
|
getStreaks(
|
|
21
20
|
query: AccountStreakGetStreaksParams,
|
|
22
|
-
options?: RequestOptions,
|
|
23
|
-
): APIPromise<AccountStreakGetStreaksResponse> {
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.APIPromise<AccountStreakGetStreaksResponse> {
|
|
24
23
|
return this._client.get('/api/loyalty/account_streaks', { query, ...options });
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -1,9 +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
|
|
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 Accounts extends APIResource {
|
|
9
8
|
/**
|
|
@@ -14,10 +13,15 @@ export class Accounts extends APIResource {
|
|
|
14
13
|
* const accounts = await client.loyalty.accounts.list();
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
16
|
+
list(query?: AccountListParams, options?: Core.RequestOptions): Core.APIPromise<AccountListResponse>;
|
|
17
|
+
list(options?: Core.RequestOptions): Core.APIPromise<AccountListResponse>;
|
|
17
18
|
list(
|
|
18
|
-
query: AccountListParams |
|
|
19
|
-
options?: RequestOptions,
|
|
20
|
-
): APIPromise<AccountListResponse> {
|
|
19
|
+
query: AccountListParams | Core.RequestOptions = {},
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): Core.APIPromise<AccountListResponse> {
|
|
22
|
+
if (isRequestOptions(query)) {
|
|
23
|
+
return this.list({}, query);
|
|
24
|
+
}
|
|
21
25
|
return this._client.get('/api/loyalty/accounts', { query, ...options });
|
|
22
26
|
}
|
|
23
27
|
|
|
@@ -43,9 +47,9 @@ export class Accounts extends APIResource {
|
|
|
43
47
|
retrieveRank(
|
|
44
48
|
id: string,
|
|
45
49
|
query: AccountRetrieveRankParams,
|
|
46
|
-
options?: RequestOptions,
|
|
47
|
-
): APIPromise<AccountRetrieveRankResponse> {
|
|
48
|
-
return this._client.get(
|
|
50
|
+
options?: Core.RequestOptions,
|
|
51
|
+
): Core.APIPromise<AccountRetrieveRankResponse> {
|
|
52
|
+
return this._client.get(`/api/loyalty/accounts/${id}/rank`, { query, ...options });
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
|
|
@@ -1,9 +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
|
|
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 Badges extends APIResource {
|
|
9
8
|
/**
|
|
@@ -20,7 +19,7 @@ export class Badges extends APIResource {
|
|
|
20
19
|
* });
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
|
-
create(body: BadgeCreateParams, options?: RequestOptions): APIPromise<BadgeCreateResponse> {
|
|
22
|
+
create(body: BadgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeCreateResponse> {
|
|
24
23
|
return this._client.post('/api/loyalty/badges', { body, ...options });
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -36,10 +35,19 @@ export class Badges extends APIResource {
|
|
|
36
35
|
*/
|
|
37
36
|
update(
|
|
38
37
|
id: string,
|
|
39
|
-
body
|
|
40
|
-
options?: RequestOptions,
|
|
41
|
-
): APIPromise<BadgeUpdateResponse
|
|
42
|
-
|
|
38
|
+
body?: BadgeUpdateParams,
|
|
39
|
+
options?: Core.RequestOptions,
|
|
40
|
+
): Core.APIPromise<BadgeUpdateResponse>;
|
|
41
|
+
update(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
|
|
42
|
+
update(
|
|
43
|
+
id: string,
|
|
44
|
+
body: BadgeUpdateParams | Core.RequestOptions = {},
|
|
45
|
+
options?: Core.RequestOptions,
|
|
46
|
+
): Core.APIPromise<BadgeUpdateResponse> {
|
|
47
|
+
if (isRequestOptions(body)) {
|
|
48
|
+
return this.update(id, {}, body);
|
|
49
|
+
}
|
|
50
|
+
return this._client.post(`/api/loyalty/badges/${id}`, { body, ...options });
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
/**
|
|
@@ -50,10 +58,15 @@ export class Badges extends APIResource {
|
|
|
50
58
|
* const badges = await client.loyalty.badges.list();
|
|
51
59
|
* ```
|
|
52
60
|
*/
|
|
61
|
+
list(query?: BadgeListParams, options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
62
|
+
list(options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
53
63
|
list(
|
|
54
|
-
query: BadgeListParams |
|
|
55
|
-
options?: RequestOptions,
|
|
56
|
-
): APIPromise<BadgeListResponse> {
|
|
64
|
+
query: BadgeListParams | Core.RequestOptions = {},
|
|
65
|
+
options?: Core.RequestOptions,
|
|
66
|
+
): Core.APIPromise<BadgeListResponse> {
|
|
67
|
+
if (isRequestOptions(query)) {
|
|
68
|
+
return this.list({}, query);
|
|
69
|
+
}
|
|
57
70
|
return this._client.get('/api/loyalty/badges', { query, ...options });
|
|
58
71
|
}
|
|
59
72
|
|
|
@@ -67,8 +80,8 @@ export class Badges extends APIResource {
|
|
|
67
80
|
* );
|
|
68
81
|
* ```
|
|
69
82
|
*/
|
|
70
|
-
delete(id: string, options?: RequestOptions): APIPromise<BadgeDeleteResponse> {
|
|
71
|
-
return this._client.delete(
|
|
83
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeDeleteResponse> {
|
|
84
|
+
return this._client.delete(`/api/loyalty/badges/${id}`, options);
|
|
72
85
|
}
|
|
73
86
|
|
|
74
87
|
/**
|
|
@@ -83,10 +96,19 @@ export class Badges extends APIResource {
|
|
|
83
96
|
*/
|
|
84
97
|
revoke(
|
|
85
98
|
id: string,
|
|
86
|
-
body
|
|
87
|
-
options?: RequestOptions,
|
|
88
|
-
): APIPromise<BadgeRevokeResponse
|
|
89
|
-
|
|
99
|
+
body?: BadgeRevokeParams,
|
|
100
|
+
options?: Core.RequestOptions,
|
|
101
|
+
): Core.APIPromise<BadgeRevokeResponse>;
|
|
102
|
+
revoke(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
|
|
103
|
+
revoke(
|
|
104
|
+
id: string,
|
|
105
|
+
body: BadgeRevokeParams | Core.RequestOptions = {},
|
|
106
|
+
options?: Core.RequestOptions,
|
|
107
|
+
): Core.APIPromise<BadgeRevokeResponse> {
|
|
108
|
+
if (isRequestOptions(body)) {
|
|
109
|
+
return this.revoke(id, {}, body);
|
|
110
|
+
}
|
|
111
|
+
return this._client.post(`/api/loyalty/badges/${id}/revoke`, { body, ...options });
|
|
90
112
|
}
|
|
91
113
|
|
|
92
114
|
/**
|
|
@@ -101,10 +123,19 @@ export class Badges extends APIResource {
|
|
|
101
123
|
*/
|
|
102
124
|
reward(
|
|
103
125
|
id: string,
|
|
104
|
-
body
|
|
105
|
-
options?: RequestOptions,
|
|
106
|
-
): APIPromise<BadgeRewardResponse
|
|
107
|
-
|
|
126
|
+
body?: BadgeRewardParams,
|
|
127
|
+
options?: Core.RequestOptions,
|
|
128
|
+
): Core.APIPromise<BadgeRewardResponse>;
|
|
129
|
+
reward(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
|
|
130
|
+
reward(
|
|
131
|
+
id: string,
|
|
132
|
+
body: BadgeRewardParams | Core.RequestOptions = {},
|
|
133
|
+
options?: Core.RequestOptions,
|
|
134
|
+
): Core.APIPromise<BadgeRewardResponse> {
|
|
135
|
+
if (isRequestOptions(body)) {
|
|
136
|
+
return this.reward(id, {}, body);
|
|
137
|
+
}
|
|
138
|
+
return this._client.post(`/api/loyalty/badges/${id}/reward`, { body, ...options });
|
|
108
139
|
}
|
|
109
140
|
}
|
|
110
141
|
|
|
@@ -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 Currencies extends APIResource {
|
|
8
7
|
/**
|
|
@@ -19,7 +18,7 @@ export class Currencies extends APIResource {
|
|
|
19
18
|
* });
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
|
-
create(body: CurrencyCreateParams, options?: RequestOptions): APIPromise<CurrencyCreateResponse> {
|
|
21
|
+
create(body: CurrencyCreateParams, options?: Core.RequestOptions): Core.APIPromise<CurrencyCreateResponse> {
|
|
23
22
|
return this._client.post('/api/loyalty/currencies', { body, ...options });
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -34,7 +33,7 @@ export class Currencies extends APIResource {
|
|
|
34
33
|
* });
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
|
-
list(query: CurrencyListParams, options?: RequestOptions): APIPromise<CurrencyListResponse> {
|
|
36
|
+
list(query: CurrencyListParams, options?: Core.RequestOptions): Core.APIPromise<CurrencyListResponse> {
|
|
38
37
|
return this._client.get('/api/loyalty/currencies', { query, ...options });
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
4
|
import * as AccountStreaksAPI from './account-streaks';
|
|
5
5
|
import {
|
|
6
6
|
AccountStreakGetStreaksParams,
|