@usehercules/sdk 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +13 -12
- package/client.d.mts +12 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -3
- package/client.d.ts.map +1 -1
- package/client.js +12 -3
- package/client.js.map +1 -1
- package/client.mjs +12 -3
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/{beta/commerce → commerce}/commerce.d.mts +38 -21
- package/resources/commerce/commerce.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/commerce.d.ts +38 -21
- package/resources/commerce/commerce.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/commerce.js +36 -4
- package/resources/commerce/commerce.js.map +1 -0
- package/resources/{beta/commerce → commerce}/commerce.mjs +35 -3
- package/resources/commerce/commerce.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.d.mts +34 -10
- package/resources/commerce/coupons.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.d.ts +34 -10
- package/resources/commerce/coupons.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.js +32 -14
- package/resources/commerce/coupons.js.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.mjs +32 -14
- package/resources/commerce/coupons.mjs.map +1 -0
- package/resources/commerce/customers/balance-transactions.d.mts +4 -0
- package/resources/commerce/customers/balance-transactions.d.mts.map +1 -0
- package/resources/commerce/customers/balance-transactions.d.ts +4 -0
- package/resources/commerce/customers/balance-transactions.d.ts.map +1 -0
- package/resources/commerce/customers/balance-transactions.js +9 -0
- package/resources/commerce/customers/balance-transactions.js.map +1 -0
- package/resources/commerce/customers/balance-transactions.mjs +5 -0
- package/resources/commerce/customers/balance-transactions.mjs.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.d.mts +51 -12
- package/resources/commerce/customers/customers.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.d.ts +51 -12
- package/resources/commerce/customers/customers.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.js +43 -11
- package/resources/commerce/customers/customers.js.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.mjs +42 -11
- package/resources/commerce/customers/customers.mjs.map +1 -0
- package/resources/commerce/customers/index.d.mts +3 -0
- package/resources/commerce/customers/index.d.mts.map +1 -0
- package/resources/commerce/customers/index.d.ts +3 -0
- package/resources/commerce/customers/index.d.ts.map +1 -0
- package/resources/commerce/customers/index.js +9 -0
- package/resources/commerce/customers/index.js.map +1 -0
- package/resources/commerce/customers/index.mjs +4 -0
- package/resources/commerce/customers/index.mjs.map +1 -0
- package/resources/commerce/customers.d.mts +2 -0
- package/resources/commerce/customers.d.mts.map +1 -0
- package/resources/commerce/customers.d.ts +2 -0
- package/resources/commerce/customers.d.ts.map +1 -0
- package/resources/{beta.js → commerce/customers.js} +3 -3
- package/resources/commerce/customers.js.map +1 -0
- package/resources/{beta.mjs → commerce/customers.mjs} +2 -2
- package/resources/commerce/customers.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/features.d.mts +36 -11
- package/resources/commerce/features.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/features.d.ts +36 -11
- package/resources/commerce/features.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/features.js +33 -14
- package/resources/commerce/features.js.map +1 -0
- package/resources/{beta/commerce → commerce}/features.mjs +33 -14
- package/resources/commerce/features.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/index.d.mts +2 -1
- package/resources/commerce/index.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/index.d.ts +2 -1
- package/resources/commerce/index.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/index.js +7 -5
- package/resources/commerce/index.js.map +1 -0
- package/resources/{beta/commerce → commerce}/index.mjs +2 -1
- package/resources/commerce/index.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/products/index.d.mts +2 -2
- package/resources/commerce/products/index.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/index.d.ts +2 -2
- package/resources/commerce/products/index.d.ts.map +1 -0
- package/resources/commerce/products/index.js.map +1 -0
- package/resources/commerce/products/index.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.d.mts +45 -55
- package/resources/commerce/products/products.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.d.ts +45 -55
- package/resources/commerce/products/products.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.js +34 -11
- package/resources/commerce/products/products.js.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.mjs +33 -10
- package/resources/commerce/products/products.mjs.map +1 -0
- package/resources/commerce/products/resources.d.mts +174 -0
- package/resources/commerce/products/resources.d.mts.map +1 -0
- package/resources/commerce/products/resources.d.ts +174 -0
- package/resources/commerce/products/resources.d.ts.map +1 -0
- package/resources/commerce/products/resources.js +65 -0
- package/resources/commerce/products/resources.js.map +1 -0
- package/resources/commerce/products/resources.mjs +61 -0
- package/resources/commerce/products/resources.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.d.mts +43 -53
- package/resources/commerce/products/variants.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.d.ts +43 -53
- package/resources/commerce/products/variants.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.js +39 -11
- package/resources/commerce/products/variants.js.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.mjs +39 -11
- package/resources/commerce/products/variants.mjs.map +1 -0
- package/resources/commerce/products.d.mts.map +1 -0
- package/resources/commerce/products.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/products.js +1 -1
- package/resources/commerce/products.js.map +1 -0
- package/resources/commerce/products.mjs.map +1 -0
- package/resources/commerce/subscription-groups.d.mts +4 -0
- package/resources/commerce/subscription-groups.d.mts.map +1 -0
- package/resources/commerce/subscription-groups.d.ts +4 -0
- package/resources/commerce/subscription-groups.d.ts.map +1 -0
- package/resources/commerce/subscription-groups.js +9 -0
- package/resources/commerce/subscription-groups.js.map +1 -0
- package/resources/commerce/subscription-groups.mjs +5 -0
- package/resources/commerce/subscription-groups.mjs.map +1 -0
- package/resources/commerce.d.mts.map +1 -0
- package/resources/{beta/commerce.d.ts.map → commerce.d.ts.map} +1 -1
- package/resources/{beta/commerce.js → commerce.js} +1 -1
- package/resources/commerce.js.map +1 -0
- package/resources/commerce.mjs.map +1 -0
- package/resources/{beta/content → content}/assets.d.mts +5 -5
- package/resources/content/assets.d.mts.map +1 -0
- package/resources/{beta/content → content}/assets.d.ts +5 -5
- package/resources/content/assets.d.ts.map +1 -0
- package/resources/{beta/content → content}/assets.js +4 -4
- package/resources/content/assets.js.map +1 -0
- package/resources/{beta/content → content}/assets.mjs +4 -4
- package/resources/content/assets.mjs.map +1 -0
- package/resources/{beta/content → content}/content.d.mts +4 -1
- package/resources/content/content.d.mts.map +1 -0
- package/resources/{beta/content → content}/content.d.ts +4 -1
- package/resources/content/content.d.ts.map +1 -0
- package/resources/{beta/content → content}/content.js +5 -2
- package/resources/content/content.js.map +1 -0
- package/resources/{beta/content → content}/content.mjs +4 -1
- package/resources/content/content.mjs.map +1 -0
- package/resources/{beta/content → content}/entries.d.mts +5 -5
- package/resources/content/entries.d.mts.map +1 -0
- package/resources/{beta/content → content}/entries.d.ts +5 -5
- package/resources/content/entries.d.ts.map +1 -0
- package/resources/{beta/content → content}/entries.js +3 -3
- package/resources/content/entries.js.map +1 -0
- package/resources/{beta/content → content}/entries.mjs +3 -3
- package/resources/content/entries.mjs.map +1 -0
- package/resources/content/index.d.mts.map +1 -0
- package/resources/content/index.d.ts.map +1 -0
- package/resources/content/index.js.map +1 -0
- package/resources/content/index.mjs.map +1 -0
- package/resources/{beta/content → content}/locales.d.mts +6 -6
- package/resources/content/locales.d.mts.map +1 -0
- package/resources/{beta/content → content}/locales.d.ts +6 -6
- package/resources/content/locales.d.ts.map +1 -0
- package/resources/{beta/content → content}/locales.js +4 -4
- package/resources/content/locales.js.map +1 -0
- package/resources/{beta/content → content}/locales.mjs +4 -4
- package/resources/content/locales.mjs.map +1 -0
- package/resources/{beta/content → content}/models/fields.d.mts +6 -6
- package/resources/content/models/fields.d.mts.map +1 -0
- package/resources/{beta/content → content}/models/fields.d.ts +6 -6
- package/resources/content/models/fields.d.ts.map +1 -0
- package/resources/{beta/content → content}/models/fields.js +3 -3
- package/resources/content/models/fields.js.map +1 -0
- package/resources/{beta/content → content}/models/fields.mjs +3 -3
- package/resources/content/models/fields.mjs.map +1 -0
- package/resources/content/models/index.d.mts.map +1 -0
- package/resources/content/models/index.d.ts.map +1 -0
- package/resources/content/models/index.js.map +1 -0
- package/resources/content/models/index.mjs.map +1 -0
- package/resources/{beta/content → content}/models/models.d.mts +10 -10
- package/resources/content/models/models.d.mts.map +1 -0
- package/resources/{beta/content → content}/models/models.d.ts +10 -10
- package/resources/content/models/models.d.ts.map +1 -0
- package/resources/{beta/content → content}/models/models.js +4 -4
- package/resources/content/models/models.js.map +1 -0
- package/resources/{beta/content → content}/models/models.mjs +3 -3
- package/resources/content/models/models.mjs.map +1 -0
- package/resources/content/models.d.mts.map +1 -0
- package/resources/content/models.d.ts.map +1 -0
- package/resources/{beta/content → content}/models.js +1 -1
- package/resources/content/models.js.map +1 -0
- package/resources/content/models.mjs.map +1 -0
- package/resources/content/releases/index.d.mts.map +1 -0
- package/resources/content/releases/index.d.ts.map +1 -0
- package/resources/content/releases/index.js.map +1 -0
- package/resources/content/releases/index.mjs.map +1 -0
- package/resources/{beta/content → content}/releases/items.d.mts +3 -3
- package/resources/content/releases/items.d.mts.map +1 -0
- package/resources/{beta/content → content}/releases/items.d.ts +3 -3
- package/resources/content/releases/items.d.ts.map +1 -0
- package/resources/{beta/content → content}/releases/items.js +3 -3
- package/resources/content/releases/items.js.map +1 -0
- package/resources/{beta/content → content}/releases/items.mjs +3 -3
- package/resources/content/releases/items.mjs.map +1 -0
- package/resources/{beta/content → content}/releases/releases.d.mts +6 -6
- package/resources/content/releases/releases.d.mts.map +1 -0
- package/resources/{beta/content → content}/releases/releases.d.ts +6 -6
- package/resources/content/releases/releases.d.ts.map +1 -0
- package/resources/{beta/content → content}/releases/releases.js +5 -5
- package/resources/content/releases/releases.js.map +1 -0
- package/resources/{beta/content → content}/releases/releases.mjs +4 -4
- package/resources/content/releases/releases.mjs.map +1 -0
- package/resources/content/releases.d.mts.map +1 -0
- package/resources/content/releases.d.ts.map +1 -0
- package/resources/{beta/content → content}/releases.js +1 -1
- package/resources/content/releases.js.map +1 -0
- package/resources/content/releases.mjs.map +1 -0
- package/resources/{beta/content.d.mts.map → content.d.mts.map} +1 -1
- package/resources/{beta/content.d.ts.map → content.d.ts.map} +1 -1
- package/resources/{beta/content.js → content.js} +1 -1
- package/resources/content.js.map +1 -0
- package/resources/content.mjs.map +1 -0
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +31 -4
- package/src/resources/{beta/commerce → commerce}/commerce.ts +51 -33
- package/src/resources/{beta/commerce → commerce}/coupons.ts +35 -18
- package/src/resources/commerce/customers/balance-transactions.ts +5 -0
- package/src/resources/{beta/commerce → commerce/customers}/customers.ts +57 -19
- package/src/resources/commerce/customers/index.ts +15 -0
- package/src/resources/{beta.ts → commerce/customers.ts} +1 -1
- package/src/resources/{beta/commerce → commerce}/features.ts +37 -19
- package/src/resources/{beta/commerce → commerce}/index.ts +2 -1
- package/src/resources/{beta/commerce → commerce}/products/index.ts +1 -2
- package/src/resources/{beta/commerce → commerce}/products/products.ts +44 -66
- package/src/resources/commerce/products/resources.ts +226 -0
- package/src/resources/{beta/commerce → commerce}/products/variants.ts +43 -66
- package/src/resources/commerce/subscription-groups.ts +5 -0
- package/src/resources/{beta/content → content}/assets.ts +7 -7
- package/src/resources/{beta/content → content}/content.ts +4 -1
- package/src/resources/{beta/content → content}/entries.ts +6 -6
- package/src/resources/{beta/content → content}/locales.ts +8 -8
- package/src/resources/{beta/content → content}/models/fields.ts +8 -8
- package/src/resources/{beta/content → content}/models/models.ts +11 -11
- package/src/resources/{beta/content → content}/releases/items.ts +5 -5
- package/src/resources/{beta/content → content}/releases/releases.ts +8 -8
- package/src/resources/index.ts +10 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/beta.d.mts +0 -14
- package/resources/beta/beta.d.mts.map +0 -1
- package/resources/beta/beta.d.ts +0 -14
- package/resources/beta/beta.d.ts.map +0 -1
- package/resources/beta/beta.js +0 -21
- package/resources/beta/beta.js.map +0 -1
- package/resources/beta/beta.mjs +0 -16
- package/resources/beta/beta.mjs.map +0 -1
- package/resources/beta/commerce/commerce.d.mts.map +0 -1
- package/resources/beta/commerce/commerce.d.ts.map +0 -1
- package/resources/beta/commerce/commerce.js.map +0 -1
- package/resources/beta/commerce/commerce.mjs.map +0 -1
- package/resources/beta/commerce/coupons.d.mts.map +0 -1
- package/resources/beta/commerce/coupons.d.ts.map +0 -1
- package/resources/beta/commerce/coupons.js.map +0 -1
- package/resources/beta/commerce/coupons.mjs.map +0 -1
- package/resources/beta/commerce/customers.d.mts.map +0 -1
- package/resources/beta/commerce/customers.d.ts.map +0 -1
- package/resources/beta/commerce/customers.js.map +0 -1
- package/resources/beta/commerce/customers.mjs.map +0 -1
- package/resources/beta/commerce/features.d.mts.map +0 -1
- package/resources/beta/commerce/features.d.ts.map +0 -1
- package/resources/beta/commerce/features.js.map +0 -1
- package/resources/beta/commerce/features.mjs.map +0 -1
- package/resources/beta/commerce/index.d.mts.map +0 -1
- package/resources/beta/commerce/index.d.ts.map +0 -1
- package/resources/beta/commerce/index.js.map +0 -1
- package/resources/beta/commerce/index.mjs.map +0 -1
- package/resources/beta/commerce/products/index.d.mts.map +0 -1
- package/resources/beta/commerce/products/index.d.ts.map +0 -1
- package/resources/beta/commerce/products/index.js.map +0 -1
- package/resources/beta/commerce/products/index.mjs.map +0 -1
- package/resources/beta/commerce/products/products.d.mts.map +0 -1
- package/resources/beta/commerce/products/products.d.ts.map +0 -1
- package/resources/beta/commerce/products/products.js.map +0 -1
- package/resources/beta/commerce/products/products.mjs.map +0 -1
- package/resources/beta/commerce/products/resources.d.mts +0 -161
- package/resources/beta/commerce/products/resources.d.mts.map +0 -1
- package/resources/beta/commerce/products/resources.d.ts +0 -161
- package/resources/beta/commerce/products/resources.d.ts.map +0 -1
- package/resources/beta/commerce/products/resources.js +0 -41
- package/resources/beta/commerce/products/resources.js.map +0 -1
- package/resources/beta/commerce/products/resources.mjs +0 -37
- package/resources/beta/commerce/products/resources.mjs.map +0 -1
- package/resources/beta/commerce/products/variants.d.mts.map +0 -1
- package/resources/beta/commerce/products/variants.d.ts.map +0 -1
- package/resources/beta/commerce/products/variants.js.map +0 -1
- package/resources/beta/commerce/products/variants.mjs.map +0 -1
- package/resources/beta/commerce/products.d.mts.map +0 -1
- package/resources/beta/commerce/products.d.ts.map +0 -1
- package/resources/beta/commerce/products.js.map +0 -1
- package/resources/beta/commerce/products.mjs.map +0 -1
- package/resources/beta/commerce.d.mts.map +0 -1
- package/resources/beta/commerce.js.map +0 -1
- package/resources/beta/commerce.mjs.map +0 -1
- package/resources/beta/content/assets.d.mts.map +0 -1
- package/resources/beta/content/assets.d.ts.map +0 -1
- package/resources/beta/content/assets.js.map +0 -1
- package/resources/beta/content/assets.mjs.map +0 -1
- package/resources/beta/content/content.d.mts.map +0 -1
- package/resources/beta/content/content.d.ts.map +0 -1
- package/resources/beta/content/content.js.map +0 -1
- package/resources/beta/content/content.mjs.map +0 -1
- package/resources/beta/content/entries.d.mts.map +0 -1
- package/resources/beta/content/entries.d.ts.map +0 -1
- package/resources/beta/content/entries.js.map +0 -1
- package/resources/beta/content/entries.mjs.map +0 -1
- package/resources/beta/content/index.d.mts.map +0 -1
- package/resources/beta/content/index.d.ts.map +0 -1
- package/resources/beta/content/index.js.map +0 -1
- package/resources/beta/content/index.mjs.map +0 -1
- package/resources/beta/content/locales.d.mts.map +0 -1
- package/resources/beta/content/locales.d.ts.map +0 -1
- package/resources/beta/content/locales.js.map +0 -1
- package/resources/beta/content/locales.mjs.map +0 -1
- package/resources/beta/content/models/fields.d.mts.map +0 -1
- package/resources/beta/content/models/fields.d.ts.map +0 -1
- package/resources/beta/content/models/fields.js.map +0 -1
- package/resources/beta/content/models/fields.mjs.map +0 -1
- package/resources/beta/content/models/index.d.mts.map +0 -1
- package/resources/beta/content/models/index.d.ts.map +0 -1
- package/resources/beta/content/models/index.js.map +0 -1
- package/resources/beta/content/models/index.mjs.map +0 -1
- package/resources/beta/content/models/models.d.mts.map +0 -1
- package/resources/beta/content/models/models.d.ts.map +0 -1
- package/resources/beta/content/models/models.js.map +0 -1
- package/resources/beta/content/models/models.mjs.map +0 -1
- package/resources/beta/content/models.d.mts.map +0 -1
- package/resources/beta/content/models.d.ts.map +0 -1
- package/resources/beta/content/models.js.map +0 -1
- package/resources/beta/content/models.mjs.map +0 -1
- package/resources/beta/content/releases/index.d.mts.map +0 -1
- package/resources/beta/content/releases/index.d.ts.map +0 -1
- package/resources/beta/content/releases/index.js.map +0 -1
- package/resources/beta/content/releases/index.mjs.map +0 -1
- package/resources/beta/content/releases/items.d.mts.map +0 -1
- package/resources/beta/content/releases/items.d.ts.map +0 -1
- package/resources/beta/content/releases/items.js.map +0 -1
- package/resources/beta/content/releases/items.mjs.map +0 -1
- package/resources/beta/content/releases/releases.d.mts.map +0 -1
- package/resources/beta/content/releases/releases.d.ts.map +0 -1
- package/resources/beta/content/releases/releases.js.map +0 -1
- package/resources/beta/content/releases/releases.mjs.map +0 -1
- package/resources/beta/content/releases.d.mts.map +0 -1
- package/resources/beta/content/releases.d.ts.map +0 -1
- package/resources/beta/content/releases.js.map +0 -1
- package/resources/beta/content/releases.mjs.map +0 -1
- package/resources/beta/content.js.map +0 -1
- package/resources/beta/content.mjs.map +0 -1
- package/resources/beta/index.d.mts +0 -4
- package/resources/beta/index.d.mts.map +0 -1
- package/resources/beta/index.d.ts +0 -4
- package/resources/beta/index.d.ts.map +0 -1
- package/resources/beta/index.js +0 -11
- package/resources/beta/index.js.map +0 -1
- package/resources/beta/index.mjs +0 -5
- package/resources/beta/index.mjs.map +0 -1
- package/resources/beta.d.mts +0 -2
- package/resources/beta.d.mts.map +0 -1
- package/resources/beta.d.ts +0 -2
- package/resources/beta.d.ts.map +0 -1
- package/resources/beta.js.map +0 -1
- package/resources/beta.mjs.map +0 -1
- package/src/resources/beta/beta.ts +0 -37
- package/src/resources/beta/commerce/products/resources.ts +0 -214
- package/src/resources/beta/index.ts +0 -13
- /package/resources/{beta/commerce → commerce}/products/index.js +0 -0
- /package/resources/{beta/commerce → commerce}/products/index.mjs +0 -0
- /package/resources/{beta/commerce → commerce}/products.d.mts +0 -0
- /package/resources/{beta/commerce → commerce}/products.d.ts +0 -0
- /package/resources/{beta/commerce → commerce}/products.mjs +0 -0
- /package/resources/{beta/commerce.d.mts → commerce.d.mts} +0 -0
- /package/resources/{beta/commerce.d.ts → commerce.d.ts} +0 -0
- /package/resources/{beta/commerce.mjs → commerce.mjs} +0 -0
- /package/resources/{beta/content → content}/index.d.mts +0 -0
- /package/resources/{beta/content → content}/index.d.ts +0 -0
- /package/resources/{beta/content → content}/index.js +0 -0
- /package/resources/{beta/content → content}/index.mjs +0 -0
- /package/resources/{beta/content → content}/models/index.d.mts +0 -0
- /package/resources/{beta/content → content}/models/index.d.ts +0 -0
- /package/resources/{beta/content → content}/models/index.js +0 -0
- /package/resources/{beta/content → content}/models/index.mjs +0 -0
- /package/resources/{beta/content → content}/models.d.mts +0 -0
- /package/resources/{beta/content → content}/models.d.ts +0 -0
- /package/resources/{beta/content → content}/models.mjs +0 -0
- /package/resources/{beta/content → content}/releases/index.d.mts +0 -0
- /package/resources/{beta/content → content}/releases/index.d.ts +0 -0
- /package/resources/{beta/content → content}/releases/index.js +0 -0
- /package/resources/{beta/content → content}/releases/index.mjs +0 -0
- /package/resources/{beta/content → content}/releases.d.mts +0 -0
- /package/resources/{beta/content → content}/releases.d.ts +0 -0
- /package/resources/{beta/content → content}/releases.mjs +0 -0
- /package/resources/{beta/content.d.mts → content.d.mts} +0 -0
- /package/resources/{beta/content.d.ts → content.d.ts} +0 -0
- /package/resources/{beta/content.mjs → content.mjs} +0 -0
- /package/src/resources/{beta/commerce → commerce}/products.ts +0 -0
- /package/src/resources/{beta/commerce.ts → commerce.ts} +0 -0
- /package/src/resources/{beta/content → content}/index.ts +0 -0
- /package/src/resources/{beta/content → content}/models/index.ts +0 -0
- /package/src/resources/{beta/content → content}/models.ts +0 -0
- /package/src/resources/{beta/content → content}/releases/index.ts +0 -0
- /package/src/resources/{beta/content → content}/releases.ts +0 -0
- /package/src/resources/{beta/content.ts → content.ts} +0 -0
|
@@ -1,32 +1,63 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
export declare class Variants extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new variant with pricing for a product. Use variants to offer multiple
|
|
8
8
|
* pricing tiers or configurations (e.g., Basic at $10/month, Pro at $25/month). A
|
|
9
9
|
* Stripe Price is automatically created.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const variant =
|
|
14
|
+
* await client.commerce.products.variants.create(
|
|
15
|
+
* 'product_id',
|
|
16
|
+
* { name: 'name' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(productID: string, body: VariantCreateParams, options?: RequestOptions): APIPromise<Variant>;
|
|
12
21
|
/**
|
|
13
22
|
* Updates an existing variant. Use this to modify the name, description, or active
|
|
14
23
|
* status. Pricing cannot be changed after creation—create a new variant instead.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const variant =
|
|
28
|
+
* await client.commerce.products.variants.update(
|
|
29
|
+
* 'variant_id',
|
|
30
|
+
* { product_id: 'product_id' },
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
15
33
|
*/
|
|
16
34
|
update(variantID: string, params: VariantUpdateParams, options?: RequestOptions): APIPromise<Variant>;
|
|
17
35
|
/**
|
|
18
36
|
* Retrieves all variants for a product. Variants represent different pricing tiers
|
|
19
37
|
* or configurations (e.g., Basic, Pro, Enterprise) within a single product.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* // Automatically fetches more pages as needed.
|
|
42
|
+
* for await (const variant of client.commerce.products.variants.list(
|
|
43
|
+
* 'product_id',
|
|
44
|
+
* )) {
|
|
45
|
+
* // ...
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
20
48
|
*/
|
|
21
49
|
list(productID: string, query?: VariantListParams | null | undefined, options?: RequestOptions): PagePromise<VariantsCursorIDPage, Variant>;
|
|
22
|
-
/**
|
|
23
|
-
* Archives a variant, preventing new subscriptions. The associated Stripe Price is
|
|
24
|
-
* also archived. Existing subscriptions remain active.
|
|
25
|
-
*/
|
|
26
|
-
archive(variantID: string, params: VariantArchiveParams, options?: RequestOptions): APIPromise<Variant>;
|
|
27
50
|
/**
|
|
28
51
|
* Retrieves a variant by ID. Returns the variant object including pricing details
|
|
29
52
|
* and status.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const variant = await client.commerce.products.variants.get(
|
|
57
|
+
* 'variant_id',
|
|
58
|
+
* { product_id: 'product_id' },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
30
61
|
*/
|
|
31
62
|
get(variantID: string, params: VariantGetParams, options?: RequestOptions): APIPromise<Variant>;
|
|
32
63
|
}
|
|
@@ -38,7 +69,7 @@ export type VariantsCursorIDPage = CursorIDPage<Variant>;
|
|
|
38
69
|
*/
|
|
39
70
|
export interface Variant {
|
|
40
71
|
/**
|
|
41
|
-
* Unique identifier for the
|
|
72
|
+
* Unique identifier for the variant
|
|
42
73
|
*/
|
|
43
74
|
id: string;
|
|
44
75
|
/**
|
|
@@ -57,10 +88,6 @@ export interface Variant {
|
|
|
57
88
|
* Three-letter ISO currency code
|
|
58
89
|
*/
|
|
59
90
|
currency?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Price configuration for a product. Can be one-time or recurring (subscription).
|
|
62
|
-
*/
|
|
63
|
-
default_price?: Variant.DefaultPrice | null;
|
|
64
91
|
/**
|
|
65
92
|
* Detailed description of what this variant includes
|
|
66
93
|
*/
|
|
@@ -85,37 +112,6 @@ export interface Variant {
|
|
|
85
112
|
unit_amount?: number;
|
|
86
113
|
}
|
|
87
114
|
export declare namespace Variant {
|
|
88
|
-
/**
|
|
89
|
-
* Price configuration for a product. Can be one-time or recurring (subscription).
|
|
90
|
-
*/
|
|
91
|
-
interface DefaultPrice {
|
|
92
|
-
/**
|
|
93
|
-
* Unique identifier for the topic subscription
|
|
94
|
-
*/
|
|
95
|
-
id: string;
|
|
96
|
-
/**
|
|
97
|
-
* Three-letter ISO currency code (e.g., usd, eur)
|
|
98
|
-
*/
|
|
99
|
-
currency: string;
|
|
100
|
-
/**
|
|
101
|
-
* Billing frequency for recurring prices: day, week, month, or year. Null for
|
|
102
|
-
* one-time prices.
|
|
103
|
-
*/
|
|
104
|
-
interval: 'day' | 'week' | 'month' | 'year' | null;
|
|
105
|
-
/**
|
|
106
|
-
* Number of intervals between billings for recurring prices. Null for one-time
|
|
107
|
-
* prices.
|
|
108
|
-
*/
|
|
109
|
-
interval_count: number | null;
|
|
110
|
-
/**
|
|
111
|
-
* Price type: one_time for single purchases, recurring for subscriptions
|
|
112
|
-
*/
|
|
113
|
-
type: 'one_time' | 'recurring';
|
|
114
|
-
/**
|
|
115
|
-
* Price amount in the smallest currency unit (e.g., cents)
|
|
116
|
-
*/
|
|
117
|
-
unit_amount: number | null;
|
|
118
|
-
}
|
|
119
115
|
/**
|
|
120
116
|
* Media attachment for products or variants
|
|
121
117
|
*/
|
|
@@ -284,13 +280,7 @@ export interface VariantListParams extends CursorIDPageParams {
|
|
|
284
280
|
/**
|
|
285
281
|
* Filter by active status
|
|
286
282
|
*/
|
|
287
|
-
active?:
|
|
288
|
-
}
|
|
289
|
-
export interface VariantArchiveParams {
|
|
290
|
-
/**
|
|
291
|
-
* The unique identifier of the product
|
|
292
|
-
*/
|
|
293
|
-
product_id: string;
|
|
283
|
+
active?: boolean;
|
|
294
284
|
}
|
|
295
285
|
export interface VariantGetParams {
|
|
296
286
|
/**
|
|
@@ -299,6 +289,6 @@ export interface VariantGetParams {
|
|
|
299
289
|
product_id: string;
|
|
300
290
|
}
|
|
301
291
|
export declare namespace Variants {
|
|
302
|
-
export { type Variant as Variant, type VariantsCursorIDPage as VariantsCursorIDPage, type VariantCreateParams as VariantCreateParams, type VariantUpdateParams as VariantUpdateParams, type VariantListParams as VariantListParams, type
|
|
292
|
+
export { type Variant as Variant, type VariantsCursorIDPage as VariantsCursorIDPage, type VariantCreateParams as VariantCreateParams, type VariantUpdateParams as VariantUpdateParams, type VariantListParams as VariantListParams, type VariantGetParams as VariantGetParams, };
|
|
303
293
|
}
|
|
304
294
|
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../src/resources/commerce/products/variants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAA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W,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -2,14 +2,23 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Variants = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const pagination_1 = require("
|
|
7
|
-
const path_1 = require("
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
class Variants extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Creates a new variant with pricing for a product. Use variants to offer multiple
|
|
11
11
|
* pricing tiers or configurations (e.g., Basic at $10/month, Pro at $25/month). A
|
|
12
12
|
* Stripe Price is automatically created.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const variant =
|
|
17
|
+
* await client.commerce.products.variants.create(
|
|
18
|
+
* 'product_id',
|
|
19
|
+
* { name: 'name' },
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
13
22
|
*/
|
|
14
23
|
create(productID, body, options) {
|
|
15
24
|
return this._client.post((0, path_1.path) `/v1/commerce/products/${productID}/variants`, { body, ...options });
|
|
@@ -17,6 +26,15 @@ class Variants extends resource_1.APIResource {
|
|
|
17
26
|
/**
|
|
18
27
|
* Updates an existing variant. Use this to modify the name, description, or active
|
|
19
28
|
* status. Pricing cannot be changed after creation—create a new variant instead.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const variant =
|
|
33
|
+
* await client.commerce.products.variants.update(
|
|
34
|
+
* 'variant_id',
|
|
35
|
+
* { product_id: 'product_id' },
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
20
38
|
*/
|
|
21
39
|
update(variantID, params, options) {
|
|
22
40
|
const { product_id, ...body } = params;
|
|
@@ -28,6 +46,16 @@ class Variants extends resource_1.APIResource {
|
|
|
28
46
|
/**
|
|
29
47
|
* Retrieves all variants for a product. Variants represent different pricing tiers
|
|
30
48
|
* or configurations (e.g., Basic, Pro, Enterprise) within a single product.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const variant of client.commerce.products.variants.list(
|
|
54
|
+
* 'product_id',
|
|
55
|
+
* )) {
|
|
56
|
+
* // ...
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
31
59
|
*/
|
|
32
60
|
list(productID, query = {}, options) {
|
|
33
61
|
return this._client.getAPIList((0, path_1.path) `/v1/commerce/products/${productID}/variants`, (pagination_1.CursorIDPage), {
|
|
@@ -35,17 +63,17 @@ class Variants extends resource_1.APIResource {
|
|
|
35
63
|
...options,
|
|
36
64
|
});
|
|
37
65
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Archives a variant, preventing new subscriptions. The associated Stripe Price is
|
|
40
|
-
* also archived. Existing subscriptions remain active.
|
|
41
|
-
*/
|
|
42
|
-
archive(variantID, params, options) {
|
|
43
|
-
const { product_id } = params;
|
|
44
|
-
return this._client.delete((0, path_1.path) `/v1/commerce/products/${product_id}/variants/${variantID}`, options);
|
|
45
|
-
}
|
|
46
66
|
/**
|
|
47
67
|
* Retrieves a variant by ID. Returns the variant object including pricing details
|
|
48
68
|
* and status.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const variant = await client.commerce.products.variants.get(
|
|
73
|
+
* 'variant_id',
|
|
74
|
+
* { product_id: 'product_id' },
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
49
77
|
*/
|
|
50
78
|
get(variantID, params, options) {
|
|
51
79
|
const { product_id } = params;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../src/resources/commerce/products/variants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAA8F;AAE9F,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAiB,EAAE,MAA2B,EAAE,OAAwB;QAC7E,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,yBAAyB,UAAU,aAAa,SAAS,EAAE,EAAE;YACzF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,SAAiB,EACjB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,WAAW,EAAE,CAAA,yBAAqB,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,SAAiB,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,UAAU,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AAjFD,4BAiFC"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { CursorIDPage } from "
|
|
4
|
-
import { path } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { CursorIDPage } from "../../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
export class Variants extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new variant with pricing for a product. Use variants to offer multiple
|
|
8
8
|
* pricing tiers or configurations (e.g., Basic at $10/month, Pro at $25/month). A
|
|
9
9
|
* Stripe Price is automatically created.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const variant =
|
|
14
|
+
* await client.commerce.products.variants.create(
|
|
15
|
+
* 'product_id',
|
|
16
|
+
* { name: 'name' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(productID, body, options) {
|
|
12
21
|
return this._client.post(path `/v1/commerce/products/${productID}/variants`, { body, ...options });
|
|
@@ -14,6 +23,15 @@ export class Variants extends APIResource {
|
|
|
14
23
|
/**
|
|
15
24
|
* Updates an existing variant. Use this to modify the name, description, or active
|
|
16
25
|
* status. Pricing cannot be changed after creation—create a new variant instead.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const variant =
|
|
30
|
+
* await client.commerce.products.variants.update(
|
|
31
|
+
* 'variant_id',
|
|
32
|
+
* { product_id: 'product_id' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
17
35
|
*/
|
|
18
36
|
update(variantID, params, options) {
|
|
19
37
|
const { product_id, ...body } = params;
|
|
@@ -25,6 +43,16 @@ export class Variants extends APIResource {
|
|
|
25
43
|
/**
|
|
26
44
|
* Retrieves all variants for a product. Variants represent different pricing tiers
|
|
27
45
|
* or configurations (e.g., Basic, Pro, Enterprise) within a single product.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const variant of client.commerce.products.variants.list(
|
|
51
|
+
* 'product_id',
|
|
52
|
+
* )) {
|
|
53
|
+
* // ...
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
28
56
|
*/
|
|
29
57
|
list(productID, query = {}, options) {
|
|
30
58
|
return this._client.getAPIList(path `/v1/commerce/products/${productID}/variants`, (CursorIDPage), {
|
|
@@ -32,17 +60,17 @@ export class Variants extends APIResource {
|
|
|
32
60
|
...options,
|
|
33
61
|
});
|
|
34
62
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Archives a variant, preventing new subscriptions. The associated Stripe Price is
|
|
37
|
-
* also archived. Existing subscriptions remain active.
|
|
38
|
-
*/
|
|
39
|
-
archive(variantID, params, options) {
|
|
40
|
-
const { product_id } = params;
|
|
41
|
-
return this._client.delete(path `/v1/commerce/products/${product_id}/variants/${variantID}`, options);
|
|
42
|
-
}
|
|
43
63
|
/**
|
|
44
64
|
* Retrieves a variant by ID. Returns the variant object including pricing details
|
|
45
65
|
* and status.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const variant = await client.commerce.products.variants.get(
|
|
70
|
+
* 'variant_id',
|
|
71
|
+
* { product_id: 'product_id' },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
46
74
|
*/
|
|
47
75
|
get(variantID, params, options) {
|
|
48
76
|
const { product_id } = params;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.mjs","source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
|
|
1
|
+
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/commerce/products.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/commerce/products.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./products/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=products.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/commerce/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/commerce/products.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-groups.d.mts","sourceRoot":"","sources":["../../src/resources/commerce/subscription-groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-groups.d.ts","sourceRoot":"","sources":["../../src/resources/commerce/subscription-groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SubscriptionGroups = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class SubscriptionGroups extends resource_1.APIResource {
|
|
7
|
+
}
|
|
8
|
+
exports.SubscriptionGroups = SubscriptionGroups;
|
|
9
|
+
//# sourceMappingURL=subscription-groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-groups.js","sourceRoot":"","sources":["../../src/resources/commerce/subscription-groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,MAAa,kBAAmB,SAAQ,sBAAW;CAAG;AAAtD,gDAAsD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-groups.mjs","sourceRoot":"","sources":["../../src/resources/commerce/subscription-groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commerce.d.mts","sourceRoot":"","sources":["../src/resources/commerce.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commerce.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"commerce.d.ts","sourceRoot":"","sources":["../src/resources/commerce.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./commerce/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=commerce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commerce.js","sourceRoot":"","sources":["../src/resources/commerce.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commerce.mjs","sourceRoot":"","sources":["../src/resources/commerce.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
5
|
export declare class Assets extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new content asset with metadata. For now, this creates asset metadata
|
|
@@ -40,7 +40,7 @@ export type AssetsCursorIDPage = CursorIDPage<Asset>;
|
|
|
40
40
|
*/
|
|
41
41
|
export interface Asset {
|
|
42
42
|
/**
|
|
43
|
-
* Unique identifier for the
|
|
43
|
+
* Unique identifier for the asset
|
|
44
44
|
*/
|
|
45
45
|
id: string;
|
|
46
46
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.mts","sourceRoot":"","sources":["../../src/resources/content/assets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;;OAG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,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC;IAElC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;CAChC;AAED,yBAAiB,eAAe,CAAC;IAC/B;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
5
|
export declare class Assets extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new content asset with metadata. For now, this creates asset metadata
|
|
@@ -40,7 +40,7 @@ export type AssetsCursorIDPage = CursorIDPage<Asset>;
|
|
|
40
40
|
*/
|
|
41
41
|
export interface Asset {
|
|
42
42
|
/**
|
|
43
|
-
* Unique identifier for the
|
|
43
|
+
* Unique identifier for the asset
|
|
44
44
|
*/
|
|
45
45
|
id: string;
|
|
46
46
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/resources/content/assets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,KAAK,CAAC;IAIpB;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,KAAK,CAAC;IAIzC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOnE;;OAEG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAIjE;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CA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AAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Assets = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const pagination_1 = require("
|
|
7
|
-
const headers_1 = require("
|
|
8
|
-
const path_1 = require("
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
9
|
class Assets extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new content asset with metadata. For now, this creates asset metadata
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../../src/resources/content/assets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA2F;AAC3F,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,sBAAsB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,yBAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,sBAAsB,OAAO,EAAE,EAAE;YAC9D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,OAAe,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAe,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,sBAAsB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;CACF;AAzDD,wBAyDC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { CursorIDPage } from "
|
|
4
|
-
import { buildHeaders } from "
|
|
5
|
-
import { path } from "
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorIDPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
6
|
export class Assets extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new content asset with metadata. For now, this creates asset metadata
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.mjs","sourceRoot":"","sources":["../../src/resources/content/assets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAwC;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,sBAAsB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,YAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,sBAAsB,OAAO,EAAE,EAAE;YAC9D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,OAAe,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAe,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as AssetsAPI from "./assets.mjs";
|
|
3
3
|
import { Asset, AssetCreateParams, AssetListParams, AssetUpdateParams, Assets, AssetsCursorIDPage } from "./assets.mjs";
|
|
4
4
|
import * as EntriesAPI from "./entries.mjs";
|
|
@@ -9,6 +9,9 @@ import * as ModelsAPI from "./models/models.mjs";
|
|
|
9
9
|
import { Field, Model, ModelCreateParams, ModelListParams, ModelUpdateParams, Models, ModelsCursorIDPage } from "./models/models.mjs";
|
|
10
10
|
import * as ReleasesAPI from "./releases/releases.mjs";
|
|
11
11
|
import { Release, ReleaseCreateParams, ReleaseItem, ReleaseListParams, ReleaseScheduleParams, ReleaseUpdateParams, Releases, ReleasesCursorIDPage } from "./releases/releases.mjs";
|
|
12
|
+
/**
|
|
13
|
+
* Content APIs are currently in beta.
|
|
14
|
+
*/
|
|
12
15
|
export declare class Content extends APIResource {
|
|
13
16
|
models: ModelsAPI.Models;
|
|
14
17
|
entries: EntriesAPI.Entries;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAA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BAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as AssetsAPI from "./assets.js";
|
|
3
3
|
import { Asset, AssetCreateParams, AssetListParams, AssetUpdateParams, Assets, AssetsCursorIDPage } from "./assets.js";
|
|
4
4
|
import * as EntriesAPI from "./entries.js";
|
|
@@ -9,6 +9,9 @@ import * as ModelsAPI from "./models/models.js";
|
|
|
9
9
|
import { Field, Model, ModelCreateParams, ModelListParams, ModelUpdateParams, Models, ModelsCursorIDPage } from "./models/models.js";
|
|
10
10
|
import * as ReleasesAPI from "./releases/releases.js";
|
|
11
11
|
import { Release, ReleaseCreateParams, ReleaseItem, ReleaseListParams, ReleaseScheduleParams, ReleaseUpdateParams, Releases, ReleasesCursorIDPage } from "./releases/releases.js";
|
|
12
|
+
/**
|
|
13
|
+
* Content APIs are currently in beta.
|
|
14
|
+
*/
|
|
12
15
|
export declare class Content extends APIResource {
|
|
13
16
|
models: ModelsAPI.Models;
|
|
14
17
|
entries: EntriesAPI.Entries;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EACnB;OACM,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB;OACM,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACpB;OACM,KAAK,SAAS;OACd,EACL,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EACnB;OACM,KAAK,WAAW;OAChB,EACL,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;I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EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Content = void 0;
|
|
5
|
-
const tslib_1 = require("
|
|
6
|
-
const resource_1 = require("
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const AssetsAPI = tslib_1.__importStar(require("./assets.js"));
|
|
8
8
|
const assets_1 = require("./assets.js");
|
|
9
9
|
const EntriesAPI = tslib_1.__importStar(require("./entries.js"));
|
|
@@ -14,6 +14,9 @@ const ModelsAPI = tslib_1.__importStar(require("./models/models.js"));
|
|
|
14
14
|
const models_1 = require("./models/models.js");
|
|
15
15
|
const ReleasesAPI = tslib_1.__importStar(require("./releases/releases.js"));
|
|
16
16
|
const releases_1 = require("./releases/releases.js");
|
|
17
|
+
/**
|
|
18
|
+
* Content APIs are currently in beta.
|
|
19
|
+
*/
|
|
17
20
|
class Content extends resource_1.APIResource {
|
|
18
21
|
constructor() {
|
|
19
22
|
super(...arguments);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAOkB;AAClB,iEAAwC;AACxC,0CAQmB;AACnB,iEAAwC;AACxC,0CAOmB;AACnB,sEAA6C;AAC7C,+CAQyB;AACzB,4EAAmD;AACnD,qDAS6B;AAE7B;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAND,0BAMC;AAED,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|