@augno/sdk 0.1.9 → 0.7.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 +4 -9
- package/README.md +27 -0
- package/api-promise.d.mts +0 -1
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +0 -1
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +0 -1
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +0 -1
- package/error.d.mts.map +1 -1
- package/error.d.ts +0 -1
- package/error.d.ts.map +1 -1
- package/error.mjs +0 -1
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +0 -6
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +0 -6
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +3 -3
- package/resource.d.mts +0 -1
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +0 -1
- package/resource.d.ts.map +1 -1
- package/resource.mjs +0 -1
- package/resource.mjs.map +1 -1
- package/resources/auth/api-keys/actions.d.mts +26 -5
- package/resources/auth/api-keys/actions.d.mts.map +1 -1
- package/resources/auth/api-keys/actions.d.ts +26 -5
- package/resources/auth/api-keys/actions.d.ts.map +1 -1
- package/resources/auth/api-keys/actions.js +4 -1
- package/resources/auth/api-keys/actions.js.map +1 -1
- package/resources/auth/api-keys/actions.mjs +4 -1
- package/resources/auth/api-keys/actions.mjs.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +134 -70
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +134 -70
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +24 -22
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +24 -22
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/auth/api-keys/index.d.mts +1 -1
- package/resources/auth/api-keys/index.d.mts.map +1 -1
- package/resources/auth/api-keys/index.d.ts +1 -1
- package/resources/auth/api-keys/index.d.ts.map +1 -1
- package/resources/auth/api-keys/index.mjs.map +1 -1
- package/resources/auth/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys.mjs.map +1 -1
- package/resources/auth/auth.d.mts +1 -1
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +1 -1
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/index.d.mts +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/catalog/catalog.d.mts +9 -9
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +9 -9
- package/resources/catalog/catalog.d.ts.map +1 -1
- package/resources/catalog/catalog.mjs.map +1 -1
- package/resources/catalog/index.d.mts +9 -9
- package/resources/catalog/index.d.mts.map +1 -1
- package/resources/catalog/index.d.ts +9 -9
- package/resources/catalog/index.d.ts.map +1 -1
- package/resources/catalog/index.mjs.map +1 -1
- package/resources/catalog/item-categories/index.d.mts +1 -1
- package/resources/catalog/item-categories/index.d.mts.map +1 -1
- package/resources/catalog/item-categories/index.d.ts +1 -1
- package/resources/catalog/item-categories/index.d.ts.map +1 -1
- package/resources/catalog/item-categories/index.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +95 -65
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +95 -65
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +38 -30
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +38 -30
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/item-categories/properties.d.mts +9 -4
- package/resources/catalog/item-categories/properties.d.mts.map +1 -1
- package/resources/catalog/item-categories/properties.d.ts +9 -4
- package/resources/catalog/item-categories/properties.d.ts.map +1 -1
- package/resources/catalog/item-categories/properties.js +9 -4
- package/resources/catalog/item-categories/properties.js.map +1 -1
- package/resources/catalog/item-categories/properties.mjs +9 -4
- package/resources/catalog/item-categories/properties.mjs.map +1 -1
- package/resources/catalog/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories.mjs.map +1 -1
- package/resources/catalog/items/attributes.d.mts +3 -2
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +3 -2
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +3 -2
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +3 -2
- package/resources/catalog/items/attributes.mjs.map +1 -1
- package/resources/catalog/items/index.d.mts +1 -1
- package/resources/catalog/items/index.d.mts.map +1 -1
- package/resources/catalog/items/index.d.ts +1 -1
- package/resources/catalog/items/index.d.ts.map +1 -1
- package/resources/catalog/items/index.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +88 -52
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +88 -52
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +24 -21
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +24 -21
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/items.d.mts.map +1 -1
- package/resources/catalog/items.d.ts.map +1 -1
- package/resources/catalog/items.mjs.map +1 -1
- package/resources/catalog/materials.d.mts +134 -87
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +134 -87
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +29 -19
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +29 -19
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +127 -74
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +127 -74
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +34 -20
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +34 -20
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +145 -70
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +145 -70
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +31 -26
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +31 -26
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +187 -90
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +187 -90
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +25 -20
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +25 -20
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +96 -44
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +96 -44
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +31 -21
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +31 -21
- package/resources/catalog/properties/attributes.mjs.map +1 -1
- package/resources/catalog/properties/index.d.mts +2 -2
- package/resources/catalog/properties/index.d.mts.map +1 -1
- package/resources/catalog/properties/index.d.ts +2 -2
- package/resources/catalog/properties/index.d.ts.map +1 -1
- package/resources/catalog/properties/index.mjs.map +1 -1
- package/resources/catalog/properties/properties.d.mts +70 -47
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +70 -47
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +19 -18
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +19 -18
- package/resources/catalog/properties/properties.mjs.map +1 -1
- package/resources/catalog/properties.d.mts.map +1 -1
- package/resources/catalog/properties.d.ts.map +1 -1
- package/resources/catalog/properties.mjs.map +1 -1
- package/resources/catalog/unit-groups/index.d.mts +2 -2
- package/resources/catalog/unit-groups/index.d.mts.map +1 -1
- package/resources/catalog/unit-groups/index.d.ts +2 -2
- package/resources/catalog/unit-groups/index.d.ts.map +1 -1
- package/resources/catalog/unit-groups/index.mjs.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.mts +130 -83
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +130 -83
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +33 -24
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +33 -24
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +78 -54
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +78 -54
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +34 -25
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +34 -25
- package/resources/catalog/unit-groups/units.mjs.map +1 -1
- package/resources/catalog/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups.mjs.map +1 -1
- package/resources/catalog/units.d.mts +100 -63
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +100 -63
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +26 -25
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +26 -25
- package/resources/catalog/units.mjs.map +1 -1
- package/resources/catalog.d.mts.map +1 -1
- package/resources/catalog.d.ts.map +1 -1
- package/resources/catalog.mjs.map +1 -1
- package/resources/core/addresses/actions.d.mts +12 -5
- package/resources/core/addresses/actions.d.mts.map +1 -1
- package/resources/core/addresses/actions.d.ts +12 -5
- package/resources/core/addresses/actions.d.ts.map +1 -1
- package/resources/core/addresses/actions.mjs.map +1 -1
- package/resources/core/addresses/addresses.d.mts +5 -2
- package/resources/core/addresses/addresses.d.mts.map +1 -1
- package/resources/core/addresses/addresses.d.ts +5 -2
- package/resources/core/addresses/addresses.d.ts.map +1 -1
- package/resources/core/addresses/addresses.js.map +1 -1
- package/resources/core/addresses/addresses.mjs.map +1 -1
- package/resources/core/addresses/index.d.mts.map +1 -1
- package/resources/core/addresses/index.d.ts.map +1 -1
- package/resources/core/addresses/index.mjs.map +1 -1
- package/resources/core/addresses.d.mts.map +1 -1
- package/resources/core/addresses.d.ts.map +1 -1
- package/resources/core/addresses.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +78 -34
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +78 -34
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/audit-events.js +13 -10
- package/resources/core/audit-events.js.map +1 -1
- package/resources/core/audit-events.mjs +13 -10
- package/resources/core/audit-events.mjs.map +1 -1
- package/resources/core/core.d.mts +4 -4
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +4 -4
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/email-logs.d.mts +31 -21
- package/resources/core/email-logs.d.mts.map +1 -1
- package/resources/core/email-logs.d.ts +31 -21
- package/resources/core/email-logs.d.ts.map +1 -1
- package/resources/core/email-logs.js +10 -10
- package/resources/core/email-logs.js.map +1 -1
- package/resources/core/email-logs.mjs +10 -10
- package/resources/core/email-logs.mjs.map +1 -1
- package/resources/core/index.d.mts +4 -4
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +4 -4
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/request-logs.d.mts +87 -48
- package/resources/core/request-logs.d.mts.map +1 -1
- package/resources/core/request-logs.d.ts +87 -48
- package/resources/core/request-logs.d.ts.map +1 -1
- package/resources/core/request-logs.js +10 -10
- package/resources/core/request-logs.js.map +1 -1
- package/resources/core/request-logs.mjs +10 -10
- package/resources/core/request-logs.mjs.map +1 -1
- package/resources/core/sandboxes.d.mts +52 -31
- package/resources/core/sandboxes.d.mts.map +1 -1
- package/resources/core/sandboxes.d.ts +52 -31
- package/resources/core/sandboxes.d.ts.map +1 -1
- package/resources/core/sandboxes.js +20 -13
- package/resources/core/sandboxes.js.map +1 -1
- package/resources/core/sandboxes.mjs +20 -13
- package/resources/core/sandboxes.mjs.map +1 -1
- package/resources/core.d.mts.map +1 -1
- package/resources/core.d.ts.map +1 -1
- package/resources/core.mjs.map +1 -1
- package/resources/finance/finance.d.mts +69 -35
- package/resources/finance/finance.d.mts.map +1 -1
- package/resources/finance/finance.d.ts +69 -35
- package/resources/finance/finance.d.ts.map +1 -1
- package/resources/finance/finance.js +10 -10
- package/resources/finance/finance.js.map +1 -1
- package/resources/finance/finance.mjs +10 -10
- package/resources/finance/finance.mjs.map +1 -1
- package/resources/finance/index.d.mts +2 -2
- package/resources/finance/index.d.mts.map +1 -1
- package/resources/finance/index.d.ts +2 -2
- package/resources/finance/index.d.ts.map +1 -1
- package/resources/finance/index.mjs.map +1 -1
- package/resources/finance/payment-terms.d.mts +72 -43
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +72 -43
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js +33 -22
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs +33 -22
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/finance.d.mts.map +1 -1
- package/resources/finance.d.ts.map +1 -1
- package/resources/finance.mjs.map +1 -1
- package/resources/identity/account-users/account-users.d.mts +166 -79
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +166 -79
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +43 -25
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +43 -25
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/identity/account-users/actions.d.mts +13 -3
- package/resources/identity/account-users/actions.d.mts.map +1 -1
- package/resources/identity/account-users/actions.d.ts +13 -3
- package/resources/identity/account-users/actions.d.ts.map +1 -1
- package/resources/identity/account-users/actions.js +13 -3
- package/resources/identity/account-users/actions.js.map +1 -1
- package/resources/identity/account-users/actions.mjs +13 -3
- package/resources/identity/account-users/actions.mjs.map +1 -1
- package/resources/identity/account-users/index.d.mts +1 -1
- package/resources/identity/account-users/index.d.mts.map +1 -1
- package/resources/identity/account-users/index.d.ts +1 -1
- package/resources/identity/account-users/index.d.ts.map +1 -1
- package/resources/identity/account-users/index.mjs.map +1 -1
- package/resources/identity/account-users.d.mts.map +1 -1
- package/resources/identity/account-users.d.ts.map +1 -1
- package/resources/identity/account-users.mjs.map +1 -1
- package/resources/identity/identity.d.mts +2 -2
- package/resources/identity/identity.d.mts.map +1 -1
- package/resources/identity/identity.d.ts +2 -2
- package/resources/identity/identity.d.ts.map +1 -1
- package/resources/identity/identity.mjs.map +1 -1
- package/resources/identity/index.d.mts +2 -2
- package/resources/identity/index.d.mts.map +1 -1
- package/resources/identity/index.d.ts +2 -2
- package/resources/identity/index.d.ts.map +1 -1
- package/resources/identity/index.mjs.map +1 -1
- package/resources/identity/roles.d.mts +88 -61
- package/resources/identity/roles.d.mts.map +1 -1
- package/resources/identity/roles.d.ts +88 -61
- package/resources/identity/roles.d.ts.map +1 -1
- package/resources/identity/roles.js +33 -27
- package/resources/identity/roles.js.map +1 -1
- package/resources/identity/roles.mjs +33 -27
- package/resources/identity/roles.mjs.map +1 -1
- package/resources/identity.d.mts.map +1 -1
- package/resources/identity.d.ts.map +1 -1
- package/resources/identity.mjs.map +1 -1
- 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 +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/operations/carriers/carriers.d.mts +88 -59
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +88 -59
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +29 -21
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +29 -21
- package/resources/operations/carriers/carriers.mjs.map +1 -1
- package/resources/operations/carriers/index.d.mts +2 -2
- package/resources/operations/carriers/index.d.mts.map +1 -1
- package/resources/operations/carriers/index.d.ts +2 -2
- package/resources/operations/carriers/index.d.ts.map +1 -1
- package/resources/operations/carriers/index.mjs.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +115 -68
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +115 -68
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +37 -30
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +37 -30
- package/resources/operations/carriers/service-levels.mjs.map +1 -1
- package/resources/operations/carriers.d.mts.map +1 -1
- package/resources/operations/carriers.d.ts.map +1 -1
- package/resources/operations/carriers.mjs.map +1 -1
- package/resources/operations/index.d.mts +4 -4
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +4 -4
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/location-types.d.mts +33 -18
- package/resources/operations/location-types.d.mts.map +1 -1
- package/resources/operations/location-types.d.ts +33 -18
- package/resources/operations/location-types.d.ts.map +1 -1
- package/resources/operations/location-types.js +12 -12
- package/resources/operations/location-types.js.map +1 -1
- package/resources/operations/location-types.mjs +12 -12
- package/resources/operations/location-types.mjs.map +1 -1
- package/resources/operations/locations.d.mts +131 -65
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +131 -65
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +24 -20
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +24 -20
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/operations.d.mts +4 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +143 -69
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +143 -69
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +32 -23
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +32 -23
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +117 -81
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +117 -81
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +28 -26
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +28 -26
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/operations.d.mts.map +1 -1
- package/resources/operations.d.ts.map +1 -1
- package/resources/operations.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +111 -80
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +111 -80
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +30 -21
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +30 -21
- package/resources/sales/account-groups.mjs.map +1 -1
- package/resources/sales/account-statuses.d.mts +41 -23
- package/resources/sales/account-statuses.d.mts.map +1 -1
- package/resources/sales/account-statuses.d.ts +41 -23
- package/resources/sales/account-statuses.d.ts.map +1 -1
- package/resources/sales/account-statuses.js +16 -13
- package/resources/sales/account-statuses.js.map +1 -1
- package/resources/sales/account-statuses.mjs +16 -13
- package/resources/sales/account-statuses.mjs.map +1 -1
- package/resources/sales/addresses.d.mts +83 -36
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +83 -36
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +29 -19
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +29 -19
- package/resources/sales/addresses.mjs.map +1 -1
- package/resources/sales/customers/actions.d.mts +15 -5
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +15 -5
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js +6 -2
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs +6 -2
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +588 -291
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +588 -291
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +58 -30
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +58 -30
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/customers.d.mts.map +1 -1
- package/resources/sales/customers.d.ts.map +1 -1
- package/resources/sales/customers.mjs.map +1 -1
- package/resources/sales/index.d.mts +6 -6
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +6 -6
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/priorities.d.mts +31 -21
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +31 -21
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js +10 -10
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs +10 -10
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders.d.mts +877 -7
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +877 -7
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +45 -3
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +45 -3
- package/resources/sales/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +8 -8
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +8 -8
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/sales.d.mts.map +1 -1
- package/resources/sales.d.ts.map +1 -1
- package/resources/sales.mjs.map +1 -1
- package/resources/settings/index.d.mts +3 -0
- package/resources/settings/index.d.mts.map +1 -0
- package/resources/settings/index.d.ts +3 -0
- package/resources/settings/index.d.ts.map +1 -0
- package/resources/settings/index.js +9 -0
- package/resources/settings/index.js.map +1 -0
- package/resources/settings/index.mjs +4 -0
- package/resources/settings/index.mjs.map +1 -0
- package/resources/settings/integrations.d.mts +238 -0
- package/resources/settings/integrations.d.mts.map +1 -0
- package/resources/settings/integrations.d.ts +238 -0
- package/resources/settings/integrations.d.ts.map +1 -0
- package/resources/settings/integrations.js +80 -0
- package/resources/settings/integrations.js.map +1 -0
- package/resources/settings/integrations.mjs +76 -0
- package/resources/settings/integrations.mjs.map +1 -0
- package/resources/settings/settings.d.mts +10 -0
- package/resources/settings/settings.d.mts.map +1 -0
- package/resources/settings/settings.d.ts +10 -0
- package/resources/settings/settings.d.ts.map +1 -0
- package/resources/settings/settings.js +17 -0
- package/resources/settings/settings.js.map +1 -0
- package/resources/settings/settings.mjs +12 -0
- package/resources/settings/settings.mjs.map +1 -0
- package/resources/settings.d.mts +2 -0
- package/resources/settings.d.mts.map +1 -0
- package/resources/settings.d.ts +2 -0
- package/resources/settings.d.ts.map +1 -0
- package/resources/settings.js +6 -0
- package/resources/settings.js.map +1 -0
- package/resources/settings.mjs +3 -0
- package/resources/settings.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +13 -3
- package/src/resources/auth/api-keys/actions.ts +28 -5
- package/src/resources/auth/api-keys/api-keys.ts +142 -78
- package/src/resources/auth/api-keys/index.ts +1 -1
- package/src/resources/auth/auth.ts +1 -1
- package/src/resources/auth/index.ts +1 -1
- package/src/resources/catalog/catalog.ts +18 -18
- package/src/resources/catalog/index.ts +18 -18
- package/src/resources/catalog/item-categories/index.ts +2 -2
- package/src/resources/catalog/item-categories/item-categories.ts +116 -86
- package/src/resources/catalog/item-categories/properties.ts +9 -4
- package/src/resources/catalog/items/attributes.ts +3 -2
- package/src/resources/catalog/items/index.ts +2 -2
- package/src/resources/catalog/items/items.ts +111 -75
- package/src/resources/catalog/materials.ts +159 -112
- package/src/resources/catalog/parts.ts +145 -92
- package/src/resources/catalog/product-lines.ts +160 -85
- package/src/resources/catalog/products.ts +205 -108
- package/src/resources/catalog/properties/attributes.ts +110 -58
- package/src/resources/catalog/properties/index.ts +4 -4
- package/src/resources/catalog/properties/properties.ts +84 -61
- package/src/resources/catalog/unit-groups/index.ts +4 -4
- package/src/resources/catalog/unit-groups/unit-groups.ts +144 -97
- package/src/resources/catalog/unit-groups/units.ts +97 -73
- package/src/resources/catalog/units.ts +114 -77
- package/src/resources/core/addresses/actions.ts +12 -5
- package/src/resources/core/addresses/addresses.ts +5 -2
- package/src/resources/core/audit-events.ts +142 -47
- package/src/resources/core/core.ts +5 -5
- package/src/resources/core/email-logs.ts +39 -29
- package/src/resources/core/index.ts +5 -5
- package/src/resources/core/request-logs.ts +104 -64
- package/src/resources/core/sandboxes.ts +57 -36
- package/src/resources/finance/finance.ts +78 -44
- package/src/resources/finance/index.ts +4 -4
- package/src/resources/finance/payment-terms.ts +85 -56
- package/src/resources/identity/account-users/account-users.ts +180 -93
- package/src/resources/identity/account-users/actions.ts +13 -3
- package/src/resources/identity/account-users/index.ts +2 -2
- package/src/resources/identity/identity.ts +4 -4
- package/src/resources/identity/index.ts +4 -4
- package/src/resources/identity/roles.ts +96 -69
- package/src/resources/index.ts +3 -2
- package/src/resources/operations/carriers/carriers.ts +97 -68
- package/src/resources/operations/carriers/index.ts +4 -4
- package/src/resources/operations/carriers/service-levels.ts +136 -89
- package/src/resources/operations/index.ts +8 -8
- package/src/resources/operations/location-types.ts +38 -23
- package/src/resources/operations/locations.ts +140 -74
- package/src/resources/operations/operations.ts +8 -8
- package/src/resources/operations/scanning-stations.ts +160 -86
- package/src/resources/operations/shipping-terms.ts +134 -98
- package/src/resources/sales/account-groups.ts +122 -91
- package/src/resources/sales/account-statuses.ts +48 -30
- package/src/resources/sales/addresses.ts +91 -44
- package/src/resources/sales/customers/actions.ts +15 -4
- package/src/resources/sales/customers/customers.ts +660 -351
- package/src/resources/sales/customers/index.ts +4 -2
- package/src/resources/sales/index.ts +25 -6
- package/src/resources/sales/priorities.ts +39 -29
- package/src/resources/sales/sales-orders.ts +1113 -21
- package/src/resources/sales/sales.ts +44 -6
- package/src/resources/settings/index.ts +13 -0
- package/src/resources/settings/integrations.ts +291 -0
- package/src/resources/settings/settings.ts +33 -0
- package/src/resources/settings.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +0 -1
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +0 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +0 -1
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as APIKeysAPI from "../auth/api-keys/api-keys.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* List and manage third-party account integrations.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Integrations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of account integrations for the target account.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const listAccountIntegration =
|
|
15
|
+
* await client.settings.integrations.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(query?: IntegrationListParams | null | undefined, options?: RequestOptions): APIPromise<ListAccountIntegration>;
|
|
19
|
+
/**
|
|
20
|
+
* Creates an account integration, or updates the name and credentials of an
|
|
21
|
+
* existing one with the same integration code.
|
|
22
|
+
*
|
|
23
|
+
* Credentials are validated for the provider, encrypted at rest, and never
|
|
24
|
+
* returned in API responses. An account can have at most one integration per
|
|
25
|
+
* integration code.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const accountIntegration =
|
|
30
|
+
* await client.settings.integrations.create({
|
|
31
|
+
* credentials:
|
|
32
|
+
* '{"private_key":"sk_test_...","publishable_key":"pk_test_...","webhook_secret":"whsec_..."}',
|
|
33
|
+
* name: 'My Stripe Integration',
|
|
34
|
+
* provider: 'stripe',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
create(body: IntegrationCreateParams, options?: RequestOptions): APIPromise<AccountIntegration>;
|
|
39
|
+
/**
|
|
40
|
+
* Updates an account integration's name and active status.
|
|
41
|
+
*
|
|
42
|
+
* Omitted fields are left unchanged. Credentials cannot be changed with this
|
|
43
|
+
* endpoint; to rotate credentials, call Create Account Integration again with the
|
|
44
|
+
* same integration code.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const accountIntegration =
|
|
49
|
+
* await client.settings.integrations.update(
|
|
50
|
+
* 'acig_0177772eae113431f64d473124',
|
|
51
|
+
* { name: 'Updated Stripe Integration' },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
update(id: string, body?: IntegrationUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AccountIntegration>;
|
|
56
|
+
/**
|
|
57
|
+
* Deletes an account integration and returns the deleted resource.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const accountIntegration =
|
|
62
|
+
* await client.settings.integrations.delete(
|
|
63
|
+
* 'acig_0177772eae113431f64d473124',
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
delete(id: string, options?: RequestOptions): APIPromise<AccountIntegration>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Third-party integration connected to an account.
|
|
71
|
+
*/
|
|
72
|
+
export interface AccountIntegration {
|
|
73
|
+
/**
|
|
74
|
+
* Account integration ID.
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* Creation timestamp.
|
|
79
|
+
*/
|
|
80
|
+
created_at: string;
|
|
81
|
+
/**
|
|
82
|
+
* Display name of the integration.
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* Resource type identifier.
|
|
87
|
+
*/
|
|
88
|
+
object: 'account_integration';
|
|
89
|
+
/**
|
|
90
|
+
* Integration provider code.
|
|
91
|
+
*
|
|
92
|
+
* - `stripe`: Stripe payment processing.
|
|
93
|
+
* - `shippo`: Shippo shipping and label generation.
|
|
94
|
+
* - `hubspot`: HubSpot CRM.
|
|
95
|
+
*/
|
|
96
|
+
provider: 'stripe' | 'shippo' | 'hubspot';
|
|
97
|
+
/**
|
|
98
|
+
* Lifecycle status of the integration.
|
|
99
|
+
*
|
|
100
|
+
* Integrations are created `active`. Setting an integration to `inactive` keeps
|
|
101
|
+
* its stored credentials but stops it from being used (for example, the Stripe
|
|
102
|
+
* publishable key cannot be retrieved while the Stripe integration is inactive).
|
|
103
|
+
*/
|
|
104
|
+
status: 'active' | 'inactive';
|
|
105
|
+
/**
|
|
106
|
+
* Last updated timestamp.
|
|
107
|
+
*/
|
|
108
|
+
updated_at: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Request to create or upsert an account integration.
|
|
112
|
+
*/
|
|
113
|
+
export interface CreateAccountIntegrationRequest {
|
|
114
|
+
/**
|
|
115
|
+
* JSON string containing the provider's credentials.
|
|
116
|
+
*
|
|
117
|
+
* Required keys depend on the provider:
|
|
118
|
+
*
|
|
119
|
+
* - `stripe`: `private_key` (`sk_...`), `publishable_key` (`pk_...`), and
|
|
120
|
+
* `webhook_secret` (`whsec_...`).
|
|
121
|
+
* - `shippo`: `api_key` (`shippo_live_...` or `shippo_test_...`).
|
|
122
|
+
* - `hubspot`: `access_token` (`pat-...`).
|
|
123
|
+
*
|
|
124
|
+
* Sandbox accounts must use test keys and production accounts must use live keys;
|
|
125
|
+
* credentials that do not match are rejected.
|
|
126
|
+
*/
|
|
127
|
+
credentials: string;
|
|
128
|
+
/**
|
|
129
|
+
* Display name of the integration.
|
|
130
|
+
*/
|
|
131
|
+
name: string;
|
|
132
|
+
/**
|
|
133
|
+
* Integration provider code.
|
|
134
|
+
*
|
|
135
|
+
* - `stripe`: Stripe payment processing.
|
|
136
|
+
* - `shippo`: Shippo shipping and label generation.
|
|
137
|
+
* - `hubspot`: HubSpot CRM.
|
|
138
|
+
*/
|
|
139
|
+
provider: 'stripe' | 'shippo' | 'hubspot';
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* List represents a paginated list of resources.
|
|
143
|
+
*/
|
|
144
|
+
export interface ListAccountIntegration {
|
|
145
|
+
/**
|
|
146
|
+
* Resources in this page.
|
|
147
|
+
*/
|
|
148
|
+
data: Array<AccountIntegration>;
|
|
149
|
+
/**
|
|
150
|
+
* Resource type identifier.
|
|
151
|
+
*/
|
|
152
|
+
object: 'list';
|
|
153
|
+
/**
|
|
154
|
+
* PageInfo contains URL-based pagination metadata.
|
|
155
|
+
*/
|
|
156
|
+
page_info: APIKeysAPI.PageInfo;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Request to update an account integration.
|
|
160
|
+
*/
|
|
161
|
+
export interface UpdateAccountIntegrationRequest {
|
|
162
|
+
/**
|
|
163
|
+
* Display name of the integration.
|
|
164
|
+
*/
|
|
165
|
+
name?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Lifecycle status of the integration.
|
|
168
|
+
*
|
|
169
|
+
* Set to `inactive` to deactivate the integration without deleting its stored
|
|
170
|
+
* credentials.
|
|
171
|
+
*/
|
|
172
|
+
status?: 'active' | 'inactive';
|
|
173
|
+
}
|
|
174
|
+
export interface IntegrationListParams {
|
|
175
|
+
/**
|
|
176
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
177
|
+
*
|
|
178
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
179
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
180
|
+
* page.
|
|
181
|
+
*/
|
|
182
|
+
cursor?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Maximum number of results to return in a single page.
|
|
185
|
+
*/
|
|
186
|
+
limit?: number;
|
|
187
|
+
/**
|
|
188
|
+
* Free-text search term used to filter results.
|
|
189
|
+
*
|
|
190
|
+
* Which fields are matched against the term varies by endpoint.
|
|
191
|
+
*/
|
|
192
|
+
q?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface IntegrationCreateParams {
|
|
195
|
+
/**
|
|
196
|
+
* JSON string containing the provider's credentials.
|
|
197
|
+
*
|
|
198
|
+
* Required keys depend on the provider:
|
|
199
|
+
*
|
|
200
|
+
* - `stripe`: `private_key` (`sk_...`), `publishable_key` (`pk_...`), and
|
|
201
|
+
* `webhook_secret` (`whsec_...`).
|
|
202
|
+
* - `shippo`: `api_key` (`shippo_live_...` or `shippo_test_...`).
|
|
203
|
+
* - `hubspot`: `access_token` (`pat-...`).
|
|
204
|
+
*
|
|
205
|
+
* Sandbox accounts must use test keys and production accounts must use live keys;
|
|
206
|
+
* credentials that do not match are rejected.
|
|
207
|
+
*/
|
|
208
|
+
credentials: string;
|
|
209
|
+
/**
|
|
210
|
+
* Display name of the integration.
|
|
211
|
+
*/
|
|
212
|
+
name: string;
|
|
213
|
+
/**
|
|
214
|
+
* Integration provider code.
|
|
215
|
+
*
|
|
216
|
+
* - `stripe`: Stripe payment processing.
|
|
217
|
+
* - `shippo`: Shippo shipping and label generation.
|
|
218
|
+
* - `hubspot`: HubSpot CRM.
|
|
219
|
+
*/
|
|
220
|
+
provider: 'stripe' | 'shippo' | 'hubspot';
|
|
221
|
+
}
|
|
222
|
+
export interface IntegrationUpdateParams {
|
|
223
|
+
/**
|
|
224
|
+
* Display name of the integration.
|
|
225
|
+
*/
|
|
226
|
+
name?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Lifecycle status of the integration.
|
|
229
|
+
*
|
|
230
|
+
* Set to `inactive` to deactivate the integration without deleting its stored
|
|
231
|
+
* credentials.
|
|
232
|
+
*/
|
|
233
|
+
status?: 'active' | 'inactive';
|
|
234
|
+
}
|
|
235
|
+
export declare namespace Integrations {
|
|
236
|
+
export { type AccountIntegration as AccountIntegration, type CreateAccountIntegrationRequest as CreateAccountIntegrationRequest, type ListAccountIntegration as ListAccountIntegration, type UpdateAccountIntegrationRequest as UpdateAccountIntegrationRequest, type IntegrationListParams as IntegrationListParams, type IntegrationCreateParams as IntegrationCreateParams, type IntegrationUpdateParams as IntegrationUpdateParams, };
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/resources/settings/integrations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI/F;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG7E;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAE9B;;;;;;OAMG;IACH,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAE1C;;;;;;OAMG;IACH,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;;;;;;;;;OAYG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;;;OAYG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC3C;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.Integrations = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* List and manage third-party account integrations.
|
|
9
|
+
*/
|
|
10
|
+
class Integrations extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns a paginated list of account integrations for the target account.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const listAccountIntegration =
|
|
17
|
+
* await client.settings.integrations.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
return this._client.get('/v1/settings/integrations', { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Creates an account integration, or updates the name and credentials of an
|
|
25
|
+
* existing one with the same integration code.
|
|
26
|
+
*
|
|
27
|
+
* Credentials are validated for the provider, encrypted at rest, and never
|
|
28
|
+
* returned in API responses. An account can have at most one integration per
|
|
29
|
+
* integration code.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const accountIntegration =
|
|
34
|
+
* await client.settings.integrations.create({
|
|
35
|
+
* credentials:
|
|
36
|
+
* '{"private_key":"sk_test_...","publishable_key":"pk_test_...","webhook_secret":"whsec_..."}',
|
|
37
|
+
* name: 'My Stripe Integration',
|
|
38
|
+
* provider: 'stripe',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
create(body, options) {
|
|
43
|
+
return this._client.post('/v1/settings/integrations', { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Updates an account integration's name and active status.
|
|
47
|
+
*
|
|
48
|
+
* Omitted fields are left unchanged. Credentials cannot be changed with this
|
|
49
|
+
* endpoint; to rotate credentials, call Create Account Integration again with the
|
|
50
|
+
* same integration code.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const accountIntegration =
|
|
55
|
+
* await client.settings.integrations.update(
|
|
56
|
+
* 'acig_0177772eae113431f64d473124',
|
|
57
|
+
* { name: 'Updated Stripe Integration' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
update(id, body = {}, options) {
|
|
62
|
+
return this._client.put((0, path_1.path) `/v1/settings/integrations/${id}`, { body, ...options });
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Deletes an account integration and returns the deleted resource.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const accountIntegration =
|
|
70
|
+
* await client.settings.integrations.delete(
|
|
71
|
+
* 'acig_0177772eae113431f64d473124',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
delete(id, options) {
|
|
76
|
+
return this._client.delete((0, path_1.path) `/v1/settings/integrations/${id}`, options);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.Integrations = Integrations;
|
|
80
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/resources/settings/integrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;OAQG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAU,EACV,OAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AA9ED,oCA8EC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* List and manage third-party account integrations.
|
|
6
|
+
*/
|
|
7
|
+
export class Integrations extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns a paginated list of account integrations for the target account.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const listAccountIntegration =
|
|
14
|
+
* await client.settings.integrations.list();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.get('/v1/settings/integrations', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Creates an account integration, or updates the name and credentials of an
|
|
22
|
+
* existing one with the same integration code.
|
|
23
|
+
*
|
|
24
|
+
* Credentials are validated for the provider, encrypted at rest, and never
|
|
25
|
+
* returned in API responses. An account can have at most one integration per
|
|
26
|
+
* integration code.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const accountIntegration =
|
|
31
|
+
* await client.settings.integrations.create({
|
|
32
|
+
* credentials:
|
|
33
|
+
* '{"private_key":"sk_test_...","publishable_key":"pk_test_...","webhook_secret":"whsec_..."}',
|
|
34
|
+
* name: 'My Stripe Integration',
|
|
35
|
+
* provider: 'stripe',
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
create(body, options) {
|
|
40
|
+
return this._client.post('/v1/settings/integrations', { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Updates an account integration's name and active status.
|
|
44
|
+
*
|
|
45
|
+
* Omitted fields are left unchanged. Credentials cannot be changed with this
|
|
46
|
+
* endpoint; to rotate credentials, call Create Account Integration again with the
|
|
47
|
+
* same integration code.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const accountIntegration =
|
|
52
|
+
* await client.settings.integrations.update(
|
|
53
|
+
* 'acig_0177772eae113431f64d473124',
|
|
54
|
+
* { name: 'Updated Stripe Integration' },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
update(id, body = {}, options) {
|
|
59
|
+
return this._client.put(path `/v1/settings/integrations/${id}`, { body, ...options });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Deletes an account integration and returns the deleted resource.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const accountIntegration =
|
|
67
|
+
* await client.settings.integrations.delete(
|
|
68
|
+
* 'acig_0177772eae113431f64d473124',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
delete(id, options) {
|
|
73
|
+
return this._client.delete(path `/v1/settings/integrations/${id}`, options);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=integrations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.mjs","sourceRoot":"","sources":["../../src/resources/settings/integrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAU,EACV,OAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as IntegrationsAPI from "./integrations.mjs";
|
|
3
|
+
import { AccountIntegration, CreateAccountIntegrationRequest, IntegrationCreateParams, IntegrationListParams, IntegrationUpdateParams, Integrations, ListAccountIntegration, UpdateAccountIntegrationRequest } from "./integrations.mjs";
|
|
4
|
+
export declare class Settings extends APIResource {
|
|
5
|
+
integrations: IntegrationsAPI.Integrations;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Settings {
|
|
8
|
+
export { Integrations as Integrations, type AccountIntegration as AccountIntegration, type CreateAccountIntegrationRequest as CreateAccountIntegrationRequest, type ListAccountIntegration as ListAccountIntegration, type UpdateAccountIntegrationRequest as UpdateAccountIntegrationRequest, type IntegrationListParams as IntegrationListParams, type IntegrationCreateParams as IntegrationCreateParams, type IntegrationUpdateParams as IntegrationUpdateParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=settings.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.mts","sourceRoot":"","sources":["../../src/resources/settings/settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,sBAAsB,EACtB,+BAA+B,EAChC;AAED,qBAAa,QAAS,SAAQ,WAAW;IACvC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as IntegrationsAPI from "./integrations.js";
|
|
3
|
+
import { AccountIntegration, CreateAccountIntegrationRequest, IntegrationCreateParams, IntegrationListParams, IntegrationUpdateParams, Integrations, ListAccountIntegration, UpdateAccountIntegrationRequest } from "./integrations.js";
|
|
4
|
+
export declare class Settings extends APIResource {
|
|
5
|
+
integrations: IntegrationsAPI.Integrations;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Settings {
|
|
8
|
+
export { Integrations as Integrations, type AccountIntegration as AccountIntegration, type CreateAccountIntegrationRequest as CreateAccountIntegrationRequest, type ListAccountIntegration as ListAccountIntegration, type UpdateAccountIntegrationRequest as UpdateAccountIntegrationRequest, type IntegrationListParams as IntegrationListParams, type IntegrationCreateParams as IntegrationCreateParams, type IntegrationUpdateParams as IntegrationUpdateParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/resources/settings/settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,sBAAsB,EACtB,+BAA+B,EAChC;AAED,qBAAa,QAAS,SAAQ,WAAW;IACvC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Settings = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const IntegrationsAPI = tslib_1.__importStar(require("./integrations.js"));
|
|
8
|
+
const integrations_1 = require("./integrations.js");
|
|
9
|
+
class Settings extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.integrations = new IntegrationsAPI.Integrations(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Settings = Settings;
|
|
16
|
+
Settings.Integrations = integrations_1.Integrations;
|
|
17
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/resources/settings/settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2EAAkD;AAClD,oDASwB;AAExB,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAFD,4BAEC;AAED,QAAQ,CAAC,YAAY,GAAG,2BAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as IntegrationsAPI from "./integrations.mjs";
|
|
4
|
+
import { Integrations, } from "./integrations.mjs";
|
|
5
|
+
export class Settings extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.integrations = new IntegrationsAPI.Integrations(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Settings.Integrations = Integrations;
|
|
12
|
+
//# sourceMappingURL=settings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.mjs","sourceRoot":"","sources":["../../src/resources/settings/settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAML,YAAY,GAGb;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAED,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.mts","sourceRoot":"","sources":["../src/resources/settings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/resources/settings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./settings/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/resources/settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.mjs","sourceRoot":"","sources":["../src/resources/settings.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/resources.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/src/client.ts
CHANGED
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
import { Identity } from './resources/identity/identity';
|
|
35
35
|
import { Operations } from './resources/operations/operations';
|
|
36
36
|
import { Sales } from './resources/sales/sales';
|
|
37
|
+
import { Settings } from './resources/settings/settings';
|
|
37
38
|
import { type Fetch } from './internal/builtin-types';
|
|
38
39
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
39
40
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -687,7 +688,12 @@ export class Augno {
|
|
|
687
688
|
|
|
688
689
|
const headers = buildHeaders([
|
|
689
690
|
idempotencyHeaders,
|
|
690
|
-
{
|
|
691
|
+
{
|
|
692
|
+
Accept: 'application/json',
|
|
693
|
+
'User-Agent': this.getUserAgent(),
|
|
694
|
+
'Augno-Version': '1.0.forge-preview.2',
|
|
695
|
+
'Augno-Account': this.augnoAccountID,
|
|
696
|
+
},
|
|
691
697
|
await this.authHeaders(options),
|
|
692
698
|
this._options.defaultHeaders,
|
|
693
699
|
bodyHeaders,
|
|
@@ -779,6 +785,7 @@ export class Augno {
|
|
|
779
785
|
finance: API.Finance = new API.Finance(this);
|
|
780
786
|
operations: API.Operations = new API.Operations(this);
|
|
781
787
|
identity: API.Identity = new API.Identity(this);
|
|
788
|
+
settings: API.Settings = new API.Settings(this);
|
|
782
789
|
}
|
|
783
790
|
|
|
784
791
|
Augno.Auth = Auth;
|
|
@@ -788,6 +795,7 @@ Augno.Sales = Sales;
|
|
|
788
795
|
Augno.Finance = Finance;
|
|
789
796
|
Augno.Operations = Operations;
|
|
790
797
|
Augno.Identity = Identity;
|
|
798
|
+
Augno.Settings = Settings;
|
|
791
799
|
|
|
792
800
|
export declare namespace Augno {
|
|
793
801
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -808,12 +816,14 @@ export declare namespace Augno {
|
|
|
808
816
|
type ListTransactionType as ListTransactionType,
|
|
809
817
|
type TransactionMethod as TransactionMethod,
|
|
810
818
|
type TransactionType as TransactionType,
|
|
811
|
-
type FinanceRetrieveAdjustmentTypesParams as FinanceRetrieveAdjustmentTypesParams,
|
|
812
|
-
type FinanceRetrieveTransactionMethodsParams as FinanceRetrieveTransactionMethodsParams,
|
|
813
819
|
type FinanceRetrieveTransactionTypesParams as FinanceRetrieveTransactionTypesParams,
|
|
820
|
+
type FinanceRetrieveTransactionMethodsParams as FinanceRetrieveTransactionMethodsParams,
|
|
821
|
+
type FinanceRetrieveAdjustmentTypesParams as FinanceRetrieveAdjustmentTypesParams,
|
|
814
822
|
};
|
|
815
823
|
|
|
816
824
|
export { Operations as Operations };
|
|
817
825
|
|
|
818
826
|
export { Identity as Identity };
|
|
827
|
+
|
|
828
|
+
export { Settings as Settings };
|
|
819
829
|
}
|
|
@@ -25,7 +25,10 @@ export class Actions extends APIResource {
|
|
|
25
25
|
* const createdAPIKey =
|
|
26
26
|
* await client.auth.apiKeys.actions.rotate(
|
|
27
27
|
* 'apke_01fba3a7db3996e3b3b1a07e00',
|
|
28
|
-
* {
|
|
28
|
+
* {
|
|
29
|
+
* expires_at: '2026-12-31T23:59:59Z',
|
|
30
|
+
* revoke_at: '2026-06-16T00:00:00Z',
|
|
31
|
+
* },
|
|
29
32
|
* );
|
|
30
33
|
* ```
|
|
31
34
|
*/
|
|
@@ -48,10 +51,20 @@ export class Actions extends APIResource {
|
|
|
48
51
|
*/
|
|
49
52
|
export interface RotateAPIKeyRequest {
|
|
50
53
|
/**
|
|
51
|
-
* Expiration timestamp override
|
|
52
|
-
*
|
|
54
|
+
* Expiration timestamp override for the new key.
|
|
55
|
+
*
|
|
56
|
+
* If omitted, the previous key's expiration is used.
|
|
53
57
|
*/
|
|
54
58
|
expires_at?: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* When to revoke the old key.
|
|
62
|
+
*
|
|
63
|
+
* If omitted, the old key is revoked immediately. A future timestamp schedules
|
|
64
|
+
* revocation (keeping the old key valid until then) up to a maximum of 30 days
|
|
65
|
+
* out.
|
|
66
|
+
*/
|
|
67
|
+
revoke_at?: string;
|
|
55
68
|
}
|
|
56
69
|
|
|
57
70
|
export interface ActionRotateParams {
|
|
@@ -62,10 +75,20 @@ export interface ActionRotateParams {
|
|
|
62
75
|
include?: Array<'role' | 'role.permissions'>;
|
|
63
76
|
|
|
64
77
|
/**
|
|
65
|
-
* Body param: Expiration timestamp override
|
|
66
|
-
*
|
|
78
|
+
* Body param: Expiration timestamp override for the new key.
|
|
79
|
+
*
|
|
80
|
+
* If omitted, the previous key's expiration is used.
|
|
67
81
|
*/
|
|
68
82
|
expires_at?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Body param: When to revoke the old key.
|
|
86
|
+
*
|
|
87
|
+
* If omitted, the old key is revoked immediately. A future timestamp schedules
|
|
88
|
+
* revocation (keeping the old key valid until then) up to a maximum of 30 days
|
|
89
|
+
* out.
|
|
90
|
+
*/
|
|
91
|
+
revoke_at?: string;
|
|
69
92
|
}
|
|
70
93
|
|
|
71
94
|
export declare namespace Actions {
|