@augno/sdk 0.7.0 → 0.9.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 +2 -2
- package/client.d.mts +11 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -2
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +15 -9
- package/resources/auth/api-keys/actions.d.mts +2 -0
- package/resources/auth/api-keys/actions.d.mts.map +1 -1
- package/resources/auth/api-keys/actions.d.ts +2 -0
- package/resources/auth/api-keys/actions.d.ts.map +1 -1
- package/resources/auth/api-keys/actions.js +2 -0
- package/resources/auth/api-keys/actions.js.map +1 -1
- package/resources/auth/api-keys/actions.mjs +2 -0
- package/resources/auth/api-keys/actions.mjs.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +12 -3
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +12 -3
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +9 -0
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +9 -0
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +17 -1
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +17 -1
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +17 -1
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +17 -1
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/item-categories/properties.d.mts +4 -0
- package/resources/catalog/item-categories/properties.d.mts.map +1 -1
- package/resources/catalog/item-categories/properties.d.ts +4 -0
- package/resources/catalog/item-categories/properties.d.ts.map +1 -1
- package/resources/catalog/item-categories/properties.js +4 -0
- package/resources/catalog/item-categories/properties.js.map +1 -1
- package/resources/catalog/item-categories/properties.mjs +4 -0
- package/resources/catalog/item-categories/properties.mjs.map +1 -1
- package/resources/catalog/items/attributes.d.mts +4 -0
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +4 -0
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +4 -0
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +4 -0
- package/resources/catalog/items/attributes.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +8 -0
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +8 -0
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +8 -0
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +8 -0
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/materials.d.mts +66 -10
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +66 -10
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +57 -1
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +57 -1
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +30 -0
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +30 -0
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +30 -0
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +30 -0
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +18 -1
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +18 -1
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +18 -1
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +18 -1
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +52 -9
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +52 -9
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +44 -1
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +44 -1
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +12 -0
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +12 -0
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +12 -0
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +12 -0
- package/resources/catalog/properties/attributes.mjs.map +1 -1
- package/resources/catalog/properties/properties.d.mts +10 -0
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +10 -0
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +10 -0
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +10 -0
- package/resources/catalog/properties/properties.mjs.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.mts +29 -7
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +29 -7
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +23 -2
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +23 -2
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +12 -0
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +12 -0
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +12 -0
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +12 -0
- package/resources/catalog/unit-groups/units.mjs.map +1 -1
- package/resources/catalog/units.d.mts +56 -26
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +56 -26
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +22 -3
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +22 -3
- package/resources/catalog/units.mjs.map +1 -1
- package/resources/core/addresses/actions.d.mts +1 -0
- package/resources/core/addresses/actions.d.mts.map +1 -1
- package/resources/core/addresses/actions.d.ts +1 -0
- package/resources/core/addresses/actions.d.ts.map +1 -1
- package/resources/core/addresses/actions.js +1 -0
- package/resources/core/addresses/actions.js.map +1 -1
- package/resources/core/addresses/actions.mjs +1 -0
- package/resources/core/addresses/actions.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +22 -7
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +22 -7
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/audit-events.js +6 -0
- package/resources/core/audit-events.js.map +1 -1
- package/resources/core/audit-events.mjs +6 -0
- package/resources/core/audit-events.mjs.map +1 -1
- package/resources/core/core.d.mts +103 -0
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +103 -0
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +19 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +19 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/email-logs.d.mts +6 -1
- package/resources/core/email-logs.d.mts.map +1 -1
- package/resources/core/email-logs.d.ts +6 -1
- package/resources/core/email-logs.d.ts.map +1 -1
- package/resources/core/email-logs.js +4 -0
- package/resources/core/email-logs.js.map +1 -1
- package/resources/core/email-logs.mjs +4 -0
- package/resources/core/email-logs.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -1
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -1
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/request-logs.d.mts +21 -7
- package/resources/core/request-logs.d.mts.map +1 -1
- package/resources/core/request-logs.d.ts +21 -7
- package/resources/core/request-logs.d.ts.map +1 -1
- package/resources/core/request-logs.js +4 -0
- package/resources/core/request-logs.js.map +1 -1
- package/resources/core/request-logs.mjs +4 -0
- package/resources/core/request-logs.mjs.map +1 -1
- package/resources/core/sandboxes.d.mts +11 -3
- package/resources/core/sandboxes.d.mts.map +1 -1
- package/resources/core/sandboxes.d.ts +11 -3
- package/resources/core/sandboxes.d.ts.map +1 -1
- package/resources/core/sandboxes.js +8 -0
- package/resources/core/sandboxes.js.map +1 -1
- package/resources/core/sandboxes.mjs +8 -0
- package/resources/core/sandboxes.mjs.map +1 -1
- package/resources/finance/payment-terms.d.mts +10 -0
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +10 -0
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js +10 -0
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs +10 -0
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/identity/account-users/account-users.d.mts +26 -5
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +26 -5
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +21 -0
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +21 -0
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/identity/account-users/actions.d.mts +9 -0
- package/resources/identity/account-users/actions.d.mts.map +1 -1
- package/resources/identity/account-users/actions.d.ts +9 -0
- package/resources/identity/account-users/actions.d.ts.map +1 -1
- package/resources/identity/account-users/actions.js +9 -0
- package/resources/identity/account-users/actions.js.map +1 -1
- package/resources/identity/account-users/actions.mjs +9 -0
- package/resources/identity/account-users/actions.mjs.map +1 -1
- package/resources/identity/roles.d.mts +33 -17
- package/resources/identity/roles.d.mts.map +1 -1
- package/resources/identity/roles.d.ts +33 -17
- package/resources/identity/roles.d.ts.map +1 -1
- package/resources/identity/roles.js +20 -6
- package/resources/identity/roles.js.map +1 -1
- package/resources/identity/roles.mjs +20 -6
- package/resources/identity/roles.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/messaging/announcements/actions.d.mts +76 -0
- package/resources/messaging/announcements/actions.d.mts.map +1 -0
- package/resources/messaging/announcements/actions.d.ts +76 -0
- package/resources/messaging/announcements/actions.d.ts.map +1 -0
- package/resources/messaging/announcements/actions.js +73 -0
- package/resources/messaging/announcements/actions.js.map +1 -0
- package/resources/messaging/announcements/actions.mjs +69 -0
- package/resources/messaging/announcements/actions.mjs.map +1 -0
- package/resources/messaging/announcements/announcements.d.mts +173 -0
- package/resources/messaging/announcements/announcements.d.mts.map +1 -0
- package/resources/messaging/announcements/announcements.d.ts +173 -0
- package/resources/messaging/announcements/announcements.d.ts.map +1 -0
- package/resources/messaging/announcements/announcements.js +52 -0
- package/resources/messaging/announcements/announcements.js.map +1 -0
- package/resources/messaging/announcements/announcements.mjs +47 -0
- package/resources/messaging/announcements/announcements.mjs.map +1 -0
- package/resources/messaging/announcements/index.d.mts +3 -0
- package/resources/messaging/announcements/index.d.mts.map +1 -0
- package/resources/messaging/announcements/index.d.ts +3 -0
- package/resources/messaging/announcements/index.d.ts.map +1 -0
- package/resources/messaging/announcements/index.js +9 -0
- package/resources/messaging/announcements/index.js.map +1 -0
- package/resources/messaging/announcements/index.mjs +4 -0
- package/resources/messaging/announcements/index.mjs.map +1 -0
- package/resources/messaging/announcements.d.mts +2 -0
- package/resources/messaging/announcements.d.mts.map +1 -0
- package/resources/messaging/announcements.d.ts +2 -0
- package/resources/messaging/announcements.d.ts.map +1 -0
- package/resources/messaging/announcements.js +6 -0
- package/resources/messaging/announcements.js.map +1 -0
- package/resources/messaging/announcements.mjs +3 -0
- package/resources/messaging/announcements.mjs.map +1 -0
- package/resources/messaging/blocks.d.mts +674 -0
- package/resources/messaging/blocks.d.mts.map +1 -0
- package/resources/messaging/blocks.d.ts +674 -0
- package/resources/messaging/blocks.d.ts.map +1 -0
- package/resources/messaging/blocks.js +61 -0
- package/resources/messaging/blocks.js.map +1 -0
- package/resources/messaging/blocks.mjs +57 -0
- package/resources/messaging/blocks.mjs.map +1 -0
- package/resources/messaging/conversations/actions.d.mts +422 -0
- package/resources/messaging/conversations/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/actions.d.ts +422 -0
- package/resources/messaging/conversations/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/actions.js +299 -0
- package/resources/messaging/conversations/actions.js.map +1 -0
- package/resources/messaging/conversations/actions.mjs +295 -0
- package/resources/messaging/conversations/actions.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/actions.d.mts +87 -0
- package/resources/messaging/conversations/attachments/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/actions.d.ts +87 -0
- package/resources/messaging/conversations/attachments/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/actions.js +36 -0
- package/resources/messaging/conversations/attachments/actions.js.map +1 -0
- package/resources/messaging/conversations/attachments/actions.mjs +32 -0
- package/resources/messaging/conversations/attachments/actions.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.d.mts +10 -0
- package/resources/messaging/conversations/attachments/attachments.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.d.ts +10 -0
- package/resources/messaging/conversations/attachments/attachments.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.js +17 -0
- package/resources/messaging/conversations/attachments/attachments.js.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.mjs +12 -0
- package/resources/messaging/conversations/attachments/attachments.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/index.d.mts +3 -0
- package/resources/messaging/conversations/attachments/index.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/index.d.ts +3 -0
- package/resources/messaging/conversations/attachments/index.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/index.js +9 -0
- package/resources/messaging/conversations/attachments/index.js.map +1 -0
- package/resources/messaging/conversations/attachments/index.mjs +4 -0
- package/resources/messaging/conversations/attachments/index.mjs.map +1 -0
- package/resources/messaging/conversations/attachments.d.mts +2 -0
- package/resources/messaging/conversations/attachments.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments.d.ts +2 -0
- package/resources/messaging/conversations/attachments.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments.js +6 -0
- package/resources/messaging/conversations/attachments.js.map +1 -0
- package/resources/messaging/conversations/attachments.mjs +3 -0
- package/resources/messaging/conversations/attachments.mjs.map +1 -0
- package/resources/messaging/conversations/conversations.d.mts +1367 -0
- package/resources/messaging/conversations/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations/conversations.d.ts +1367 -0
- package/resources/messaging/conversations/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations/conversations.js +113 -0
- package/resources/messaging/conversations/conversations.js.map +1 -0
- package/resources/messaging/conversations/conversations.mjs +108 -0
- package/resources/messaging/conversations/conversations.mjs.map +1 -0
- package/resources/messaging/conversations/index.d.mts +7 -0
- package/resources/messaging/conversations/index.d.mts.map +1 -0
- package/resources/messaging/conversations/index.d.ts +7 -0
- package/resources/messaging/conversations/index.d.ts.map +1 -0
- package/resources/messaging/conversations/index.js +17 -0
- package/resources/messaging/conversations/index.js.map +1 -0
- package/resources/messaging/conversations/index.mjs +8 -0
- package/resources/messaging/conversations/index.mjs.map +1 -0
- package/resources/messaging/conversations/links.d.mts +149 -0
- package/resources/messaging/conversations/links.d.mts.map +1 -0
- package/resources/messaging/conversations/links.d.ts +149 -0
- package/resources/messaging/conversations/links.d.ts.map +1 -0
- package/resources/messaging/conversations/links.js +72 -0
- package/resources/messaging/conversations/links.js.map +1 -0
- package/resources/messaging/conversations/links.mjs +68 -0
- package/resources/messaging/conversations/links.mjs.map +1 -0
- package/resources/messaging/conversations/messages.d.mts +353 -0
- package/resources/messaging/conversations/messages.d.mts.map +1 -0
- package/resources/messaging/conversations/messages.d.ts +353 -0
- package/resources/messaging/conversations/messages.d.ts.map +1 -0
- package/resources/messaging/conversations/messages.js +81 -0
- package/resources/messaging/conversations/messages.js.map +1 -0
- package/resources/messaging/conversations/messages.mjs +77 -0
- package/resources/messaging/conversations/messages.mjs.map +1 -0
- package/resources/messaging/conversations/participants/actions.d.mts +62 -0
- package/resources/messaging/conversations/participants/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/actions.d.ts +62 -0
- package/resources/messaging/conversations/participants/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/actions.js +35 -0
- package/resources/messaging/conversations/participants/actions.js.map +1 -0
- package/resources/messaging/conversations/participants/actions.mjs +31 -0
- package/resources/messaging/conversations/participants/actions.mjs.map +1 -0
- package/resources/messaging/conversations/participants/index.d.mts +3 -0
- package/resources/messaging/conversations/participants/index.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/index.d.ts +3 -0
- package/resources/messaging/conversations/participants/index.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/index.js +9 -0
- package/resources/messaging/conversations/participants/index.js.map +1 -0
- package/resources/messaging/conversations/participants/index.mjs +4 -0
- package/resources/messaging/conversations/participants/index.mjs.map +1 -0
- package/resources/messaging/conversations/participants/participants.d.mts +100 -0
- package/resources/messaging/conversations/participants/participants.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/participants.d.ts +100 -0
- package/resources/messaging/conversations/participants/participants.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/participants.js +64 -0
- package/resources/messaging/conversations/participants/participants.js.map +1 -0
- package/resources/messaging/conversations/participants/participants.mjs +59 -0
- package/resources/messaging/conversations/participants/participants.mjs.map +1 -0
- package/resources/messaging/conversations/participants.d.mts +2 -0
- package/resources/messaging/conversations/participants.d.mts.map +1 -0
- package/resources/messaging/conversations/participants.d.ts +2 -0
- package/resources/messaging/conversations/participants.d.ts.map +1 -0
- package/resources/messaging/conversations/participants.js +6 -0
- package/resources/messaging/conversations/participants.js.map +1 -0
- package/resources/messaging/conversations/participants.mjs +3 -0
- package/resources/messaging/conversations/participants.mjs.map +1 -0
- package/resources/messaging/conversations.d.mts +2 -0
- package/resources/messaging/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations.d.ts +2 -0
- package/resources/messaging/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations.js +6 -0
- package/resources/messaging/conversations.js.map +1 -0
- package/resources/messaging/conversations.mjs +3 -0
- package/resources/messaging/conversations.mjs.map +1 -0
- package/resources/messaging/email-domains/actions.d.mts +27 -0
- package/resources/messaging/email-domains/actions.d.mts.map +1 -0
- package/resources/messaging/email-domains/actions.d.ts +27 -0
- package/resources/messaging/email-domains/actions.d.ts.map +1 -0
- package/resources/messaging/email-domains/actions.js +32 -0
- package/resources/messaging/email-domains/actions.js.map +1 -0
- package/resources/messaging/email-domains/actions.mjs +28 -0
- package/resources/messaging/email-domains/actions.mjs.map +1 -0
- package/resources/messaging/email-domains/email-domains.d.mts +136 -0
- package/resources/messaging/email-domains/email-domains.d.mts.map +1 -0
- package/resources/messaging/email-domains/email-domains.d.ts +136 -0
- package/resources/messaging/email-domains/email-domains.d.ts.map +1 -0
- package/resources/messaging/email-domains/email-domains.js +70 -0
- package/resources/messaging/email-domains/email-domains.js.map +1 -0
- package/resources/messaging/email-domains/email-domains.mjs +65 -0
- package/resources/messaging/email-domains/email-domains.mjs.map +1 -0
- package/resources/messaging/email-domains/index.d.mts +3 -0
- package/resources/messaging/email-domains/index.d.mts.map +1 -0
- package/resources/messaging/email-domains/index.d.ts +3 -0
- package/resources/messaging/email-domains/index.d.ts.map +1 -0
- package/resources/messaging/email-domains/index.js +9 -0
- package/resources/messaging/email-domains/index.js.map +1 -0
- package/resources/messaging/email-domains/index.mjs +4 -0
- package/resources/messaging/email-domains/index.mjs.map +1 -0
- package/resources/messaging/email-domains.d.mts +2 -0
- package/resources/messaging/email-domains.d.mts.map +1 -0
- package/resources/messaging/email-domains.d.ts +2 -0
- package/resources/messaging/email-domains.d.ts.map +1 -0
- package/resources/messaging/email-domains.js +6 -0
- package/resources/messaging/email-domains.js.map +1 -0
- package/resources/messaging/email-domains.mjs +3 -0
- package/resources/messaging/email-domains.mjs.map +1 -0
- package/resources/messaging/email-inboxes.d.mts +375 -0
- package/resources/messaging/email-inboxes.d.mts.map +1 -0
- package/resources/messaging/email-inboxes.d.ts +375 -0
- package/resources/messaging/email-inboxes.d.ts.map +1 -0
- package/resources/messaging/email-inboxes.js +111 -0
- package/resources/messaging/email-inboxes.js.map +1 -0
- package/resources/messaging/email-inboxes.mjs +107 -0
- package/resources/messaging/email-inboxes.mjs.map +1 -0
- package/resources/messaging/groups/groups.d.mts +162 -0
- package/resources/messaging/groups/groups.d.mts.map +1 -0
- package/resources/messaging/groups/groups.d.ts +162 -0
- package/resources/messaging/groups/groups.d.ts.map +1 -0
- package/resources/messaging/groups/groups.js +110 -0
- package/resources/messaging/groups/groups.js.map +1 -0
- package/resources/messaging/groups/groups.mjs +105 -0
- package/resources/messaging/groups/groups.mjs.map +1 -0
- package/resources/messaging/groups/index.d.mts +3 -0
- package/resources/messaging/groups/index.d.mts.map +1 -0
- package/resources/messaging/groups/index.d.ts +3 -0
- package/resources/messaging/groups/index.d.ts.map +1 -0
- package/resources/messaging/groups/index.js +9 -0
- package/resources/messaging/groups/index.js.map +1 -0
- package/resources/messaging/groups/index.mjs +4 -0
- package/resources/messaging/groups/index.mjs.map +1 -0
- package/resources/messaging/groups/members.d.mts +84 -0
- package/resources/messaging/groups/members.d.mts.map +1 -0
- package/resources/messaging/groups/members.d.ts +84 -0
- package/resources/messaging/groups/members.d.ts.map +1 -0
- package/resources/messaging/groups/members.js +52 -0
- package/resources/messaging/groups/members.js.map +1 -0
- package/resources/messaging/groups/members.mjs +48 -0
- package/resources/messaging/groups/members.mjs.map +1 -0
- package/resources/messaging/groups.d.mts +2 -0
- package/resources/messaging/groups.d.mts.map +1 -0
- package/resources/messaging/groups.d.ts +2 -0
- package/resources/messaging/groups.d.ts.map +1 -0
- package/resources/messaging/groups.js +6 -0
- package/resources/messaging/groups.js.map +1 -0
- package/resources/messaging/groups.mjs +3 -0
- package/resources/messaging/groups.mjs.map +1 -0
- package/resources/messaging/index.d.mts +11 -0
- package/resources/messaging/index.d.mts.map +1 -0
- package/resources/messaging/index.d.ts +11 -0
- package/resources/messaging/index.d.ts.map +1 -0
- package/resources/messaging/index.js +25 -0
- package/resources/messaging/index.js.map +1 -0
- package/resources/messaging/index.mjs +12 -0
- package/resources/messaging/index.mjs.map +1 -0
- package/resources/messaging/messages/actions.d.mts +95 -0
- package/resources/messaging/messages/actions.d.mts.map +1 -0
- package/resources/messaging/messages/actions.d.ts +95 -0
- package/resources/messaging/messages/actions.d.ts.map +1 -0
- package/resources/messaging/messages/actions.js +79 -0
- package/resources/messaging/messages/actions.js.map +1 -0
- package/resources/messaging/messages/actions.mjs +75 -0
- package/resources/messaging/messages/actions.mjs.map +1 -0
- package/resources/messaging/messages/index.d.mts +3 -0
- package/resources/messaging/messages/index.d.mts.map +1 -0
- package/resources/messaging/messages/index.d.ts +3 -0
- package/resources/messaging/messages/index.d.ts.map +1 -0
- package/resources/messaging/messages/index.js +9 -0
- package/resources/messaging/messages/index.js.map +1 -0
- package/resources/messaging/messages/index.mjs +4 -0
- package/resources/messaging/messages/index.mjs.map +1 -0
- package/resources/messaging/messages/messages.d.mts +62 -0
- package/resources/messaging/messages/messages.d.mts.map +1 -0
- package/resources/messaging/messages/messages.d.ts +62 -0
- package/resources/messaging/messages/messages.d.ts.map +1 -0
- package/resources/messaging/messages/messages.js +41 -0
- package/resources/messaging/messages/messages.js.map +1 -0
- package/resources/messaging/messages/messages.mjs +36 -0
- package/resources/messaging/messages/messages.mjs.map +1 -0
- package/resources/messaging/messages.d.mts +2 -0
- package/resources/messaging/messages.d.mts.map +1 -0
- package/resources/messaging/messages.d.ts +2 -0
- package/resources/messaging/messages.d.ts.map +1 -0
- package/resources/messaging/messages.js +6 -0
- package/resources/messaging/messages.js.map +1 -0
- package/resources/messaging/messages.mjs +3 -0
- package/resources/messaging/messages.mjs.map +1 -0
- package/resources/messaging/messaging.d.mts +103 -0
- package/resources/messaging/messaging.d.mts.map +1 -0
- package/resources/messaging/messaging.d.ts +103 -0
- package/resources/messaging/messaging.d.ts.map +1 -0
- package/resources/messaging/messaging.js +65 -0
- package/resources/messaging/messaging.js.map +1 -0
- package/resources/messaging/messaging.mjs +60 -0
- package/resources/messaging/messaging.mjs.map +1 -0
- package/resources/messaging/notifications/actions.d.mts +92 -0
- package/resources/messaging/notifications/actions.d.mts.map +1 -0
- package/resources/messaging/notifications/actions.d.ts +92 -0
- package/resources/messaging/notifications/actions.d.ts.map +1 -0
- package/resources/messaging/notifications/actions.js +89 -0
- package/resources/messaging/notifications/actions.js.map +1 -0
- package/resources/messaging/notifications/actions.mjs +85 -0
- package/resources/messaging/notifications/actions.mjs.map +1 -0
- package/resources/messaging/notifications/index.d.mts +3 -0
- package/resources/messaging/notifications/index.d.mts.map +1 -0
- package/resources/messaging/notifications/index.d.ts +3 -0
- package/resources/messaging/notifications/index.d.ts.map +1 -0
- package/resources/messaging/notifications/index.js +9 -0
- package/resources/messaging/notifications/index.js.map +1 -0
- package/resources/messaging/notifications/index.mjs +4 -0
- package/resources/messaging/notifications/index.mjs.map +1 -0
- package/resources/messaging/notifications/notifications.d.mts +444 -0
- package/resources/messaging/notifications/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications/notifications.d.ts +444 -0
- package/resources/messaging/notifications/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications/notifications.js +108 -0
- package/resources/messaging/notifications/notifications.js.map +1 -0
- package/resources/messaging/notifications/notifications.mjs +103 -0
- package/resources/messaging/notifications/notifications.mjs.map +1 -0
- package/resources/messaging/notifications.d.mts +2 -0
- package/resources/messaging/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications.d.ts +2 -0
- package/resources/messaging/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications.js +6 -0
- package/resources/messaging/notifications.js.map +1 -0
- package/resources/messaging/notifications.mjs +3 -0
- package/resources/messaging/notifications.mjs.map +1 -0
- package/resources/messaging/preferences.d.mts +180 -0
- package/resources/messaging/preferences.d.mts.map +1 -0
- package/resources/messaging/preferences.d.ts +180 -0
- package/resources/messaging/preferences.d.ts.map +1 -0
- package/resources/messaging/preferences.js +47 -0
- package/resources/messaging/preferences.js.map +1 -0
- package/resources/messaging/preferences.mjs +43 -0
- package/resources/messaging/preferences.mjs.map +1 -0
- package/resources/messaging.d.mts +2 -0
- package/resources/messaging.d.mts.map +1 -0
- package/resources/messaging.d.ts +2 -0
- package/resources/messaging.d.ts.map +1 -0
- package/resources/messaging.js +6 -0
- package/resources/messaging.js.map +1 -0
- package/resources/messaging.mjs +3 -0
- package/resources/messaging.mjs.map +1 -0
- package/resources/operations/carriers/carriers.d.mts +20 -7
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +20 -7
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +16 -1
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +16 -1
- package/resources/operations/carriers/carriers.mjs.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +15 -0
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +15 -0
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +15 -0
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +15 -0
- package/resources/operations/carriers/service-levels.mjs.map +1 -1
- package/resources/operations/location-types.d.mts +6 -2
- package/resources/operations/location-types.d.mts.map +1 -1
- package/resources/operations/location-types.d.ts +6 -2
- package/resources/operations/location-types.d.ts.map +1 -1
- package/resources/operations/location-types.js +4 -0
- package/resources/operations/location-types.js.map +1 -1
- package/resources/operations/location-types.mjs +4 -0
- package/resources/operations/location-types.mjs.map +1 -1
- package/resources/operations/locations.d.mts +27 -10
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +27 -10
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +18 -1
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +18 -1
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +23 -6
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +23 -6
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +18 -1
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +18 -1
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +37 -2
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +37 -2
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +37 -2
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +37 -2
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +21 -1
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +21 -1
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +21 -1
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +21 -1
- package/resources/sales/account-groups.mjs.map +1 -1
- package/resources/sales/account-statuses.d.mts +1 -1
- package/resources/sales/account-statuses.d.ts +1 -1
- package/resources/sales/addresses.d.mts +36 -6
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +36 -6
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +31 -1
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +31 -1
- package/resources/sales/addresses.mjs.map +1 -1
- package/resources/sales/contacts/actions.d.mts +120 -0
- package/resources/sales/contacts/actions.d.mts.map +1 -0
- package/resources/sales/contacts/actions.d.ts +120 -0
- package/resources/sales/contacts/actions.d.ts.map +1 -0
- package/resources/sales/contacts/actions.js +38 -0
- package/resources/sales/contacts/actions.js.map +1 -0
- package/resources/sales/contacts/actions.mjs +34 -0
- package/resources/sales/contacts/actions.mjs.map +1 -0
- package/resources/sales/contacts/contacts.d.mts +10 -0
- package/resources/sales/contacts/contacts.d.mts.map +1 -0
- package/resources/sales/contacts/contacts.d.ts +10 -0
- package/resources/sales/contacts/contacts.d.ts.map +1 -0
- package/resources/sales/contacts/contacts.js +17 -0
- package/resources/sales/contacts/contacts.js.map +1 -0
- package/resources/sales/contacts/contacts.mjs +12 -0
- package/resources/sales/contacts/contacts.mjs.map +1 -0
- package/resources/sales/contacts/index.d.mts +3 -0
- package/resources/sales/contacts/index.d.mts.map +1 -0
- package/resources/sales/contacts/index.d.ts +3 -0
- package/resources/sales/contacts/index.d.ts.map +1 -0
- package/resources/sales/contacts/index.js +9 -0
- package/resources/sales/contacts/index.js.map +1 -0
- package/resources/sales/contacts/index.mjs +4 -0
- package/resources/sales/contacts/index.mjs.map +1 -0
- package/resources/sales/contacts.d.mts +2 -0
- package/resources/sales/contacts.d.mts.map +1 -0
- package/resources/sales/contacts.d.ts +2 -0
- package/resources/sales/contacts.d.ts.map +1 -0
- package/resources/sales/contacts.js +6 -0
- package/resources/sales/contacts.js.map +1 -0
- package/resources/sales/contacts.mjs +3 -0
- package/resources/sales/contacts.mjs.map +1 -0
- package/resources/sales/customers/actions.d.mts +3 -1
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +3 -1
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js +2 -0
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs +2 -0
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +59 -566
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +59 -566
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +52 -13
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +52 -13
- 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/index.d.mts +2 -1
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +2 -1
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js +5 -3
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs +1 -0
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/priorities.d.mts +5 -1
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +5 -1
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js +4 -0
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs +4 -0
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders.d.mts +58 -46
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +58 -46
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +18 -4
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +18 -4
- package/resources/sales/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +6 -2
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +6 -2
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js +4 -0
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs +4 -0
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/settings/integrations.d.mts +12 -1
- package/resources/settings/integrations.d.mts.map +1 -1
- package/resources/settings/integrations.d.ts +12 -1
- package/resources/settings/integrations.d.ts.map +1 -1
- package/resources/settings/integrations.js +12 -1
- package/resources/settings/integrations.js.map +1 -1
- package/resources/settings/integrations.mjs +12 -1
- package/resources/settings/integrations.mjs.map +1 -1
- package/src/client.ts +22 -2
- package/src/resources/auth/api-keys/actions.ts +2 -0
- package/src/resources/auth/api-keys/api-keys.ts +12 -3
- package/src/resources/catalog/item-categories/item-categories.ts +17 -1
- package/src/resources/catalog/item-categories/properties.ts +4 -0
- package/src/resources/catalog/items/attributes.ts +4 -0
- package/src/resources/catalog/items/items.ts +8 -0
- package/src/resources/catalog/materials.ts +66 -10
- package/src/resources/catalog/parts.ts +30 -0
- package/src/resources/catalog/product-lines.ts +18 -1
- package/src/resources/catalog/products.ts +52 -9
- package/src/resources/catalog/properties/attributes.ts +12 -0
- package/src/resources/catalog/properties/properties.ts +10 -0
- package/src/resources/catalog/unit-groups/unit-groups.ts +29 -7
- package/src/resources/catalog/unit-groups/units.ts +12 -0
- package/src/resources/catalog/units.ts +56 -26
- package/src/resources/core/addresses/actions.ts +1 -0
- package/src/resources/core/audit-events.ts +114 -11
- package/src/resources/core/core.ts +602 -0
- package/src/resources/core/email-logs.ts +6 -1
- package/src/resources/core/index.ts +1 -1
- package/src/resources/core/request-logs.ts +22 -7
- package/src/resources/core/sandboxes.ts +11 -3
- package/src/resources/finance/payment-terms.ts +10 -0
- package/src/resources/identity/account-users/account-users.ts +26 -5
- package/src/resources/identity/account-users/actions.ts +9 -0
- package/src/resources/identity/roles.ts +34 -18
- package/src/resources/index.ts +2 -1
- package/src/resources/messaging/announcements/actions.ts +119 -0
- package/src/resources/messaging/announcements/announcements.ts +234 -0
- package/src/resources/messaging/announcements/index.ts +10 -0
- package/src/resources/messaging/announcements.ts +3 -0
- package/src/resources/messaging/blocks.ts +826 -0
- package/src/resources/messaging/conversations/actions.ts +766 -0
- package/src/resources/messaging/conversations/attachments/actions.ts +116 -0
- package/src/resources/messaging/conversations/attachments/attachments.ts +25 -0
- package/src/resources/messaging/conversations/attachments/index.ts +9 -0
- package/src/resources/messaging/conversations/attachments.ts +3 -0
- package/src/resources/messaging/conversations/conversations.ts +2500 -0
- package/src/resources/messaging/conversations/index.ts +81 -0
- package/src/resources/messaging/conversations/links.ts +692 -0
- package/src/resources/messaging/conversations/messages.ts +929 -0
- package/src/resources/messaging/conversations/participants/actions.ts +92 -0
- package/src/resources/messaging/conversations/participants/index.ts +10 -0
- package/src/resources/messaging/conversations/participants/participants.ts +150 -0
- package/src/resources/messaging/conversations/participants.ts +3 -0
- package/src/resources/messaging/conversations.ts +3 -0
- package/src/resources/messaging/email-domains/actions.ts +32 -0
- package/src/resources/messaging/email-domains/email-domains.ts +170 -0
- package/src/resources/messaging/email-domains/index.ts +10 -0
- package/src/resources/messaging/email-domains.ts +3 -0
- package/src/resources/messaging/email-inboxes.ts +462 -0
- package/src/resources/messaging/groups/groups.ts +211 -0
- package/src/resources/messaging/groups/index.ts +17 -0
- package/src/resources/messaging/groups/members.ts +113 -0
- package/src/resources/messaging/groups.ts +3 -0
- package/src/resources/messaging/index.ts +116 -0
- package/src/resources/messaging/messages/actions.ts +184 -0
- package/src/resources/messaging/messages/index.ts +10 -0
- package/src/resources/messaging/messages/messages.ts +108 -0
- package/src/resources/messaging/messages.ts +3 -0
- package/src/resources/messaging/messaging.ts +353 -0
- package/src/resources/messaging/notifications/actions.ts +139 -0
- package/src/resources/messaging/notifications/index.ts +24 -0
- package/src/resources/messaging/notifications/notifications.ts +1057 -0
- package/src/resources/messaging/notifications.ts +3 -0
- package/src/resources/messaging/preferences.ts +215 -0
- package/src/resources/messaging.ts +3 -0
- package/src/resources/operations/carriers/carriers.ts +20 -7
- package/src/resources/operations/carriers/service-levels.ts +15 -0
- package/src/resources/operations/location-types.ts +6 -2
- package/src/resources/operations/locations.ts +27 -10
- package/src/resources/operations/scanning-stations.ts +23 -6
- package/src/resources/operations/shipping-terms.ts +37 -2
- package/src/resources/sales/account-groups.ts +21 -1
- package/src/resources/sales/account-statuses.ts +1 -1
- package/src/resources/sales/addresses.ts +36 -6
- package/src/resources/sales/contacts/actions.ts +150 -0
- package/src/resources/sales/contacts/contacts.ts +27 -0
- package/src/resources/sales/contacts/index.ts +10 -0
- package/src/resources/sales/contacts.ts +3 -0
- package/src/resources/sales/customers/actions.ts +4 -0
- package/src/resources/sales/customers/customers.ts +62 -679
- package/src/resources/sales/customers/index.ts +0 -15
- package/src/resources/sales/index.ts +1 -15
- package/src/resources/sales/priorities.ts +5 -1
- package/src/resources/sales/sales-orders.ts +58 -48
- package/src/resources/sales/sales.ts +6 -30
- package/src/resources/settings/integrations.ts +12 -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
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as ConversationsAPI from './conversations';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Create conversations, send and read messages (1:1 direct messages).
|
|
11
|
+
*/
|
|
12
|
+
export class Actions extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Places a conversation under legal hold or releases it.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const conversation =
|
|
21
|
+
* await client.messaging.conversations.actions.setLegalHold(
|
|
22
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
23
|
+
* { legal_hold: 'held' },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
setLegalHold(
|
|
28
|
+
id: string,
|
|
29
|
+
params: ActionSetLegalHoldParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
32
|
+
const { include, ...body } = params;
|
|
33
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/set-legal-hold`, {
|
|
34
|
+
query: { include },
|
|
35
|
+
body,
|
|
36
|
+
...options,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Permanently redacts the content of every message in a conversation (GDPR
|
|
42
|
+
* right-to-erasure).
|
|
43
|
+
*
|
|
44
|
+
* This endpoint requires the permission: `messaging:delete`.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const conversation =
|
|
49
|
+
* await client.messaging.conversations.actions.redact(
|
|
50
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
redact(
|
|
55
|
+
id: string,
|
|
56
|
+
params: ActionRedactParams | null | undefined = {},
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
59
|
+
const { include } = params ?? {};
|
|
60
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/redact`, {
|
|
61
|
+
query: { include },
|
|
62
|
+
...options,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Advances the caller's read cursor and returns the refreshed conversation (with
|
|
68
|
+
* new unread count).
|
|
69
|
+
*
|
|
70
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const conversation =
|
|
75
|
+
* await client.messaging.conversations.actions.read(
|
|
76
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
77
|
+
* { up_to_sequence: 42 },
|
|
78
|
+
* );
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
read(
|
|
82
|
+
id: string,
|
|
83
|
+
params: ActionReadParams,
|
|
84
|
+
options?: RequestOptions,
|
|
85
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
86
|
+
const { include, ...body } = params;
|
|
87
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/read`, {
|
|
88
|
+
query: { include },
|
|
89
|
+
body,
|
|
90
|
+
...options,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Archives a conversation at the account level so it drops out of active lists for
|
|
96
|
+
* everyone until it is unarchived.
|
|
97
|
+
*
|
|
98
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* const conversation =
|
|
103
|
+
* await client.messaging.conversations.actions.archive(
|
|
104
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
105
|
+
* );
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
archive(
|
|
109
|
+
id: string,
|
|
110
|
+
params: ActionArchiveParams | null | undefined = {},
|
|
111
|
+
options?: RequestOptions,
|
|
112
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
113
|
+
const { include } = params ?? {};
|
|
114
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/archive`, {
|
|
115
|
+
query: { include },
|
|
116
|
+
...options,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Returns an archived conversation to the active state so it appears in active
|
|
122
|
+
* lists again.
|
|
123
|
+
*
|
|
124
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const conversation =
|
|
129
|
+
* await client.messaging.conversations.actions.unarchive(
|
|
130
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
131
|
+
* );
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
unarchive(
|
|
135
|
+
id: string,
|
|
136
|
+
params: ActionUnarchiveParams | null | undefined = {},
|
|
137
|
+
options?: RequestOptions,
|
|
138
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
139
|
+
const { include } = params ?? {};
|
|
140
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/unarchive`, {
|
|
141
|
+
query: { include },
|
|
142
|
+
...options,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Removes the caller from a conversation, marking their membership as left.
|
|
148
|
+
*
|
|
149
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* const conversation =
|
|
154
|
+
* await client.messaging.conversations.actions.leave(
|
|
155
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
156
|
+
* );
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
leave(
|
|
160
|
+
id: string,
|
|
161
|
+
params: ActionLeaveParams | null | undefined = {},
|
|
162
|
+
options?: RequestOptions,
|
|
163
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
164
|
+
const { include } = params ?? {};
|
|
165
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/leave`, {
|
|
166
|
+
query: { include },
|
|
167
|
+
...options,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Hides a conversation from the caller's own list without affecting other
|
|
173
|
+
* participants.
|
|
174
|
+
*
|
|
175
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* ```ts
|
|
179
|
+
* const conversation =
|
|
180
|
+
* await client.messaging.conversations.actions.hide(
|
|
181
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
182
|
+
* );
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
hide(
|
|
186
|
+
id: string,
|
|
187
|
+
params: ActionHideParams | null | undefined = {},
|
|
188
|
+
options?: RequestOptions,
|
|
189
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
190
|
+
const { include } = params ?? {};
|
|
191
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/hide`, {
|
|
192
|
+
query: { include },
|
|
193
|
+
...options,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Restores a conversation the caller had hidden back to their own list.
|
|
199
|
+
*
|
|
200
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```ts
|
|
204
|
+
* const conversation =
|
|
205
|
+
* await client.messaging.conversations.actions.unhide(
|
|
206
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
207
|
+
* );
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
unhide(
|
|
211
|
+
id: string,
|
|
212
|
+
params: ActionUnhideParams | null | undefined = {},
|
|
213
|
+
options?: RequestOptions,
|
|
214
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
215
|
+
const { include } = params ?? {};
|
|
216
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/unhide`, {
|
|
217
|
+
query: { include },
|
|
218
|
+
...options,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Mutes a conversation for the calling actor.
|
|
224
|
+
*
|
|
225
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* ```ts
|
|
229
|
+
* const conversation =
|
|
230
|
+
* await client.messaging.conversations.actions.mute(
|
|
231
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
232
|
+
* { muted_until: '2026-01-02T15:04:05Z' },
|
|
233
|
+
* );
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
mute(
|
|
237
|
+
id: string,
|
|
238
|
+
params: ActionMuteParams | null | undefined = {},
|
|
239
|
+
options?: RequestOptions,
|
|
240
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
241
|
+
const { include, ...body } = params ?? {};
|
|
242
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/mute`, {
|
|
243
|
+
query: { include },
|
|
244
|
+
body,
|
|
245
|
+
...options,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Restores notifications for a conversation the caller had muted.
|
|
251
|
+
*
|
|
252
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```ts
|
|
256
|
+
* const conversation =
|
|
257
|
+
* await client.messaging.conversations.actions.unmute(
|
|
258
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
259
|
+
* );
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
unmute(
|
|
263
|
+
id: string,
|
|
264
|
+
params: ActionUnmuteParams | null | undefined = {},
|
|
265
|
+
options?: RequestOptions,
|
|
266
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
267
|
+
const { include } = params ?? {};
|
|
268
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/unmute`, {
|
|
269
|
+
query: { include },
|
|
270
|
+
...options,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Sets the triage lane of an external customer-service case.
|
|
276
|
+
*
|
|
277
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* ```ts
|
|
281
|
+
* const conversation =
|
|
282
|
+
* await client.messaging.conversations.actions.setStatus(
|
|
283
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
284
|
+
* { workflow_status: 'open' },
|
|
285
|
+
* );
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
setStatus(
|
|
289
|
+
id: string,
|
|
290
|
+
params: ActionSetStatusParams,
|
|
291
|
+
options?: RequestOptions,
|
|
292
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
293
|
+
const { include, ...body } = params;
|
|
294
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/set-status`, {
|
|
295
|
+
query: { include },
|
|
296
|
+
body,
|
|
297
|
+
...options,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Assigns an external customer-service case to an owner — a user or a team — or
|
|
303
|
+
* clears the assignment.
|
|
304
|
+
*
|
|
305
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```ts
|
|
309
|
+
* const conversation =
|
|
310
|
+
* await client.messaging.conversations.actions.assign(
|
|
311
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
312
|
+
* {
|
|
313
|
+
* assignee_resource_id:
|
|
314
|
+
* 'acus_01ea9983ddb41dacc44ecf997c',
|
|
315
|
+
* assignee_resource_type: 'account_user',
|
|
316
|
+
* },
|
|
317
|
+
* );
|
|
318
|
+
* ```
|
|
319
|
+
*/
|
|
320
|
+
assign(
|
|
321
|
+
id: string,
|
|
322
|
+
params: ActionAssignParams | null | undefined = {},
|
|
323
|
+
options?: RequestOptions,
|
|
324
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
325
|
+
const { include, ...body } = params ?? {};
|
|
326
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/assign`, {
|
|
327
|
+
query: { include },
|
|
328
|
+
body,
|
|
329
|
+
...options,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Files an abuse report against a conversation (optionally a specific message) and
|
|
335
|
+
* returns the conversation.
|
|
336
|
+
*
|
|
337
|
+
* This endpoint requires the permission: `messaging:create`.
|
|
338
|
+
*
|
|
339
|
+
* @example
|
|
340
|
+
* ```ts
|
|
341
|
+
* const conversation =
|
|
342
|
+
* await client.messaging.conversations.actions.report(
|
|
343
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
344
|
+
* {
|
|
345
|
+
* reason: 'spam',
|
|
346
|
+
* message_id: 'mg_01h9z8q1w2e3r4t5y6u7i8mg',
|
|
347
|
+
* },
|
|
348
|
+
* );
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
report(
|
|
352
|
+
id: string,
|
|
353
|
+
params: ActionReportParams,
|
|
354
|
+
options?: RequestOptions,
|
|
355
|
+
): APIPromise<ConversationsAPI.Conversation> {
|
|
356
|
+
const { include, ...body } = params;
|
|
357
|
+
return this._client.post(path`/v1/messaging/conversations/${id}/actions/report`, {
|
|
358
|
+
query: { include },
|
|
359
|
+
body,
|
|
360
|
+
...options,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Request to assign a customer-service case to a single owner — a user or a team.
|
|
367
|
+
*
|
|
368
|
+
* The owner is a polymorphic (`assignee_resource_type`, `assignee_resource_id`)
|
|
369
|
+
* reference; omit both fields to clear the assignment.
|
|
370
|
+
*/
|
|
371
|
+
export interface AssignConversationRequest {
|
|
372
|
+
/**
|
|
373
|
+
* The owner's id, an `account_user` or `account_group` matching
|
|
374
|
+
* `assignee_resource_type`.
|
|
375
|
+
*
|
|
376
|
+
* Omit this and `assignee_resource_type` to clear the assignment.
|
|
377
|
+
*/
|
|
378
|
+
assignee_resource_id?: string;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* The owner's resource type: `account_user` (a teammate) or `account_group` (a
|
|
382
|
+
* team).
|
|
383
|
+
*/
|
|
384
|
+
assignee_resource_type?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Request to advance the caller's read cursor in a conversation.
|
|
389
|
+
*/
|
|
390
|
+
export interface MarkConversationReadRequest {
|
|
391
|
+
/**
|
|
392
|
+
* Mark all messages up to and including this sequence as read.
|
|
393
|
+
*/
|
|
394
|
+
up_to_sequence: number;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Request to mute a conversation for the caller.
|
|
399
|
+
*/
|
|
400
|
+
export interface MuteConversationRequest {
|
|
401
|
+
/**
|
|
402
|
+
* When the mute expires.
|
|
403
|
+
*
|
|
404
|
+
* Omit to mute indefinitely.
|
|
405
|
+
*/
|
|
406
|
+
muted_until?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Request to report a conversation (optionally a specific message) for abuse.
|
|
411
|
+
*/
|
|
412
|
+
export interface ReportConversationRequest {
|
|
413
|
+
/**
|
|
414
|
+
* The reason the conversation/message is being reported.
|
|
415
|
+
*/
|
|
416
|
+
reason: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* The specific message being reported.
|
|
420
|
+
*
|
|
421
|
+
* Omit to report the conversation as a whole.
|
|
422
|
+
*/
|
|
423
|
+
message_id?: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Request to place a conversation under legal hold or release it.
|
|
428
|
+
*
|
|
429
|
+
* While held, the conversation is exempt from automatic retention purging and from
|
|
430
|
+
* GDPR redaction.
|
|
431
|
+
*/
|
|
432
|
+
export interface SetLegalHoldRequest {
|
|
433
|
+
/**
|
|
434
|
+
* The legal-hold status to set.
|
|
435
|
+
*/
|
|
436
|
+
legal_hold: 'released' | 'held';
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Request to set the triage lane of a customer-service case.
|
|
441
|
+
*/
|
|
442
|
+
export interface SetWorkflowStatusRequest {
|
|
443
|
+
/**
|
|
444
|
+
* The triage lane to move the case to.
|
|
445
|
+
*/
|
|
446
|
+
workflow_status: 'new' | 'open' | 'waiting_internal' | 'waiting_external' | 'needs_approval' | 'resolved';
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface ActionSetLegalHoldParams {
|
|
450
|
+
/**
|
|
451
|
+
* Body param: The legal-hold status to set.
|
|
452
|
+
*/
|
|
453
|
+
legal_hold: 'released' | 'held';
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
457
|
+
* are returned as `null`.
|
|
458
|
+
*/
|
|
459
|
+
include?: Array<
|
|
460
|
+
| 'assignee'
|
|
461
|
+
| 'group'
|
|
462
|
+
| 'participants'
|
|
463
|
+
| 'topic'
|
|
464
|
+
| 'last_message'
|
|
465
|
+
| 'last_message.sender'
|
|
466
|
+
| 'last_message.author'
|
|
467
|
+
| 'last_message.resource'
|
|
468
|
+
| 'last_message.attachments'
|
|
469
|
+
| 'last_message.attachments.resource'
|
|
470
|
+
>;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export interface ActionRedactParams {
|
|
474
|
+
/**
|
|
475
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
476
|
+
* `null`.
|
|
477
|
+
*/
|
|
478
|
+
include?: Array<
|
|
479
|
+
| 'assignee'
|
|
480
|
+
| 'group'
|
|
481
|
+
| 'participants'
|
|
482
|
+
| 'topic'
|
|
483
|
+
| 'last_message'
|
|
484
|
+
| 'last_message.sender'
|
|
485
|
+
| 'last_message.author'
|
|
486
|
+
| 'last_message.resource'
|
|
487
|
+
| 'last_message.attachments'
|
|
488
|
+
| 'last_message.attachments.resource'
|
|
489
|
+
>;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface ActionReadParams {
|
|
493
|
+
/**
|
|
494
|
+
* Body param: Mark all messages up to and including this sequence as read.
|
|
495
|
+
*/
|
|
496
|
+
up_to_sequence: number;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
500
|
+
* are returned as `null`.
|
|
501
|
+
*/
|
|
502
|
+
include?: Array<
|
|
503
|
+
| 'assignee'
|
|
504
|
+
| 'group'
|
|
505
|
+
| 'participants'
|
|
506
|
+
| 'topic'
|
|
507
|
+
| 'last_message'
|
|
508
|
+
| 'last_message.sender'
|
|
509
|
+
| 'last_message.author'
|
|
510
|
+
| 'last_message.resource'
|
|
511
|
+
| 'last_message.attachments'
|
|
512
|
+
| 'last_message.attachments.resource'
|
|
513
|
+
>;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export interface ActionArchiveParams {
|
|
517
|
+
/**
|
|
518
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
519
|
+
* `null`.
|
|
520
|
+
*/
|
|
521
|
+
include?: Array<
|
|
522
|
+
| 'assignee'
|
|
523
|
+
| 'group'
|
|
524
|
+
| 'participants'
|
|
525
|
+
| 'topic'
|
|
526
|
+
| 'last_message'
|
|
527
|
+
| 'last_message.sender'
|
|
528
|
+
| 'last_message.author'
|
|
529
|
+
| 'last_message.resource'
|
|
530
|
+
| 'last_message.attachments'
|
|
531
|
+
| 'last_message.attachments.resource'
|
|
532
|
+
>;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export interface ActionUnarchiveParams {
|
|
536
|
+
/**
|
|
537
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
538
|
+
* `null`.
|
|
539
|
+
*/
|
|
540
|
+
include?: Array<
|
|
541
|
+
| 'assignee'
|
|
542
|
+
| 'group'
|
|
543
|
+
| 'participants'
|
|
544
|
+
| 'topic'
|
|
545
|
+
| 'last_message'
|
|
546
|
+
| 'last_message.sender'
|
|
547
|
+
| 'last_message.author'
|
|
548
|
+
| 'last_message.resource'
|
|
549
|
+
| 'last_message.attachments'
|
|
550
|
+
| 'last_message.attachments.resource'
|
|
551
|
+
>;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export interface ActionLeaveParams {
|
|
555
|
+
/**
|
|
556
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
557
|
+
* `null`.
|
|
558
|
+
*/
|
|
559
|
+
include?: Array<
|
|
560
|
+
| 'assignee'
|
|
561
|
+
| 'group'
|
|
562
|
+
| 'participants'
|
|
563
|
+
| 'topic'
|
|
564
|
+
| 'last_message'
|
|
565
|
+
| 'last_message.sender'
|
|
566
|
+
| 'last_message.author'
|
|
567
|
+
| 'last_message.resource'
|
|
568
|
+
| 'last_message.attachments'
|
|
569
|
+
| 'last_message.attachments.resource'
|
|
570
|
+
>;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export interface ActionHideParams {
|
|
574
|
+
/**
|
|
575
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
576
|
+
* `null`.
|
|
577
|
+
*/
|
|
578
|
+
include?: Array<
|
|
579
|
+
| 'assignee'
|
|
580
|
+
| 'group'
|
|
581
|
+
| 'participants'
|
|
582
|
+
| 'topic'
|
|
583
|
+
| 'last_message'
|
|
584
|
+
| 'last_message.sender'
|
|
585
|
+
| 'last_message.author'
|
|
586
|
+
| 'last_message.resource'
|
|
587
|
+
| 'last_message.attachments'
|
|
588
|
+
| 'last_message.attachments.resource'
|
|
589
|
+
>;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export interface ActionUnhideParams {
|
|
593
|
+
/**
|
|
594
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
595
|
+
* `null`.
|
|
596
|
+
*/
|
|
597
|
+
include?: Array<
|
|
598
|
+
| 'assignee'
|
|
599
|
+
| 'group'
|
|
600
|
+
| 'participants'
|
|
601
|
+
| 'topic'
|
|
602
|
+
| 'last_message'
|
|
603
|
+
| 'last_message.sender'
|
|
604
|
+
| 'last_message.author'
|
|
605
|
+
| 'last_message.resource'
|
|
606
|
+
| 'last_message.attachments'
|
|
607
|
+
| 'last_message.attachments.resource'
|
|
608
|
+
>;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export interface ActionMuteParams {
|
|
612
|
+
/**
|
|
613
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
614
|
+
* are returned as `null`.
|
|
615
|
+
*/
|
|
616
|
+
include?: Array<
|
|
617
|
+
| 'assignee'
|
|
618
|
+
| 'group'
|
|
619
|
+
| 'participants'
|
|
620
|
+
| 'topic'
|
|
621
|
+
| 'last_message'
|
|
622
|
+
| 'last_message.sender'
|
|
623
|
+
| 'last_message.author'
|
|
624
|
+
| 'last_message.resource'
|
|
625
|
+
| 'last_message.attachments'
|
|
626
|
+
| 'last_message.attachments.resource'
|
|
627
|
+
>;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Body param: When the mute expires.
|
|
631
|
+
*
|
|
632
|
+
* Omit to mute indefinitely.
|
|
633
|
+
*/
|
|
634
|
+
muted_until?: string;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export interface ActionUnmuteParams {
|
|
638
|
+
/**
|
|
639
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
640
|
+
* `null`.
|
|
641
|
+
*/
|
|
642
|
+
include?: Array<
|
|
643
|
+
| 'assignee'
|
|
644
|
+
| 'group'
|
|
645
|
+
| 'participants'
|
|
646
|
+
| 'topic'
|
|
647
|
+
| 'last_message'
|
|
648
|
+
| 'last_message.sender'
|
|
649
|
+
| 'last_message.author'
|
|
650
|
+
| 'last_message.resource'
|
|
651
|
+
| 'last_message.attachments'
|
|
652
|
+
| 'last_message.attachments.resource'
|
|
653
|
+
>;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export interface ActionSetStatusParams {
|
|
657
|
+
/**
|
|
658
|
+
* Body param: The triage lane to move the case to.
|
|
659
|
+
*/
|
|
660
|
+
workflow_status: 'new' | 'open' | 'waiting_internal' | 'waiting_external' | 'needs_approval' | 'resolved';
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
664
|
+
* are returned as `null`.
|
|
665
|
+
*/
|
|
666
|
+
include?: Array<
|
|
667
|
+
| 'assignee'
|
|
668
|
+
| 'group'
|
|
669
|
+
| 'participants'
|
|
670
|
+
| 'topic'
|
|
671
|
+
| 'last_message'
|
|
672
|
+
| 'last_message.sender'
|
|
673
|
+
| 'last_message.author'
|
|
674
|
+
| 'last_message.resource'
|
|
675
|
+
| 'last_message.attachments'
|
|
676
|
+
| 'last_message.attachments.resource'
|
|
677
|
+
>;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export interface ActionAssignParams {
|
|
681
|
+
/**
|
|
682
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
683
|
+
* are returned as `null`.
|
|
684
|
+
*/
|
|
685
|
+
include?: Array<
|
|
686
|
+
| 'assignee'
|
|
687
|
+
| 'group'
|
|
688
|
+
| 'participants'
|
|
689
|
+
| 'topic'
|
|
690
|
+
| 'last_message'
|
|
691
|
+
| 'last_message.sender'
|
|
692
|
+
| 'last_message.author'
|
|
693
|
+
| 'last_message.resource'
|
|
694
|
+
| 'last_message.attachments'
|
|
695
|
+
| 'last_message.attachments.resource'
|
|
696
|
+
>;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Body param: The owner's id, an `account_user` or `account_group` matching
|
|
700
|
+
* `assignee_resource_type`.
|
|
701
|
+
*
|
|
702
|
+
* Omit this and `assignee_resource_type` to clear the assignment.
|
|
703
|
+
*/
|
|
704
|
+
assignee_resource_id?: string;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Body param: The owner's resource type: `account_user` (a teammate) or
|
|
708
|
+
* `account_group` (a team).
|
|
709
|
+
*/
|
|
710
|
+
assignee_resource_type?: string;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export interface ActionReportParams {
|
|
714
|
+
/**
|
|
715
|
+
* Body param: The reason the conversation/message is being reported.
|
|
716
|
+
*/
|
|
717
|
+
reason: string;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
721
|
+
* are returned as `null`.
|
|
722
|
+
*/
|
|
723
|
+
include?: Array<
|
|
724
|
+
| 'assignee'
|
|
725
|
+
| 'group'
|
|
726
|
+
| 'participants'
|
|
727
|
+
| 'topic'
|
|
728
|
+
| 'last_message'
|
|
729
|
+
| 'last_message.sender'
|
|
730
|
+
| 'last_message.author'
|
|
731
|
+
| 'last_message.resource'
|
|
732
|
+
| 'last_message.attachments'
|
|
733
|
+
| 'last_message.attachments.resource'
|
|
734
|
+
>;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Body param: The specific message being reported.
|
|
738
|
+
*
|
|
739
|
+
* Omit to report the conversation as a whole.
|
|
740
|
+
*/
|
|
741
|
+
message_id?: string;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export declare namespace Actions {
|
|
745
|
+
export {
|
|
746
|
+
type AssignConversationRequest as AssignConversationRequest,
|
|
747
|
+
type MarkConversationReadRequest as MarkConversationReadRequest,
|
|
748
|
+
type MuteConversationRequest as MuteConversationRequest,
|
|
749
|
+
type ReportConversationRequest as ReportConversationRequest,
|
|
750
|
+
type SetLegalHoldRequest as SetLegalHoldRequest,
|
|
751
|
+
type SetWorkflowStatusRequest as SetWorkflowStatusRequest,
|
|
752
|
+
type ActionSetLegalHoldParams as ActionSetLegalHoldParams,
|
|
753
|
+
type ActionRedactParams as ActionRedactParams,
|
|
754
|
+
type ActionReadParams as ActionReadParams,
|
|
755
|
+
type ActionArchiveParams as ActionArchiveParams,
|
|
756
|
+
type ActionUnarchiveParams as ActionUnarchiveParams,
|
|
757
|
+
type ActionLeaveParams as ActionLeaveParams,
|
|
758
|
+
type ActionHideParams as ActionHideParams,
|
|
759
|
+
type ActionUnhideParams as ActionUnhideParams,
|
|
760
|
+
type ActionMuteParams as ActionMuteParams,
|
|
761
|
+
type ActionUnmuteParams as ActionUnmuteParams,
|
|
762
|
+
type ActionSetStatusParams as ActionSetStatusParams,
|
|
763
|
+
type ActionAssignParams as ActionAssignParams,
|
|
764
|
+
type ActionReportParams as ActionReportParams,
|
|
765
|
+
};
|
|
766
|
+
}
|