@augno/sdk 0.7.0 → 0.7.1
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 +3 -3
- 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 +1 -1
- 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 +11 -3
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +11 -3
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +8 -0
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +8 -0
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +12 -0
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +12 -0
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +12 -0
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +12 -0
- 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 +24 -9
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +24 -9
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +15 -0
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +15 -0
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +15 -0
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +15 -0
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +15 -0
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +15 -0
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +12 -0
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +12 -0
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +12 -0
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +12 -0
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +22 -8
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +22 -8
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +14 -0
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +14 -0
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +10 -0
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +10 -0
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +10 -0
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +10 -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 +18 -7
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +18 -7
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +12 -2
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +12 -2
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +10 -0
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +10 -0
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +10 -0
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +10 -0
- package/resources/catalog/unit-groups/units.mjs.map +1 -1
- package/resources/catalog/units.d.mts +48 -25
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +48 -25
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +14 -2
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +14 -2
- package/resources/catalog/units.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 +17 -5
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +17 -5
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +12 -0
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +12 -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 +1328 -0
- package/resources/messaging/conversations/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations/conversations.d.ts +1328 -0
- package/resources/messaging/conversations/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations/conversations.js +109 -0
- package/resources/messaging/conversations/conversations.js.map +1 -0
- package/resources/messaging/conversations/conversations.mjs +104 -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 +332 -0
- package/resources/messaging/conversations/messages.d.mts.map +1 -0
- package/resources/messaging/conversations/messages.d.ts +332 -0
- package/resources/messaging/conversations/messages.d.ts.map +1 -0
- package/resources/messaging/conversations/messages.js +60 -0
- package/resources/messaging/conversations/messages.js.map +1 -0
- package/resources/messaging/conversations/messages.mjs +56 -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 +327 -0
- package/resources/messaging/email-inboxes.d.mts.map +1 -0
- package/resources/messaging/email-inboxes.d.ts +327 -0
- package/resources/messaging/email-inboxes.d.ts.map +1 -0
- package/resources/messaging/email-inboxes.js +101 -0
- package/resources/messaging/email-inboxes.js.map +1 -0
- package/resources/messaging/email-inboxes.mjs +97 -0
- package/resources/messaging/email-inboxes.mjs.map +1 -0
- package/resources/messaging/groups/groups.d.mts +159 -0
- package/resources/messaging/groups/groups.d.mts.map +1 -0
- package/resources/messaging/groups/groups.d.ts +159 -0
- package/resources/messaging/groups/groups.d.ts.map +1 -0
- package/resources/messaging/groups/groups.js +107 -0
- package/resources/messaging/groups/groups.js.map +1 -0
- package/resources/messaging/groups/groups.mjs +102 -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 +83 -0
- package/resources/messaging/groups/members.d.mts.map +1 -0
- package/resources/messaging/groups/members.d.ts +83 -0
- package/resources/messaging/groups/members.d.ts.map +1 -0
- package/resources/messaging/groups/members.js +51 -0
- package/resources/messaging/groups/members.js.map +1 -0
- package/resources/messaging/groups/members.mjs +47 -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 +61 -0
- package/resources/messaging/messages/messages.d.mts.map +1 -0
- package/resources/messaging/messages/messages.d.ts +61 -0
- package/resources/messaging/messages/messages.d.ts.map +1 -0
- package/resources/messaging/messages/messages.js +40 -0
- package/resources/messaging/messages/messages.js.map +1 -0
- package/resources/messaging/messages/messages.mjs +35 -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 +440 -0
- package/resources/messaging/notifications/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications/notifications.d.ts +440 -0
- package/resources/messaging/notifications/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications/notifications.js +104 -0
- package/resources/messaging/notifications/notifications.js.map +1 -0
- package/resources/messaging/notifications/notifications.mjs +99 -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 +16 -6
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +16 -6
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +12 -0
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +12 -0
- package/resources/operations/carriers/carriers.mjs.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +12 -0
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +12 -0
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +12 -0
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +12 -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 +19 -9
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +19 -9
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +10 -0
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +10 -0
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +15 -5
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +15 -5
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +10 -0
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +10 -0
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +10 -0
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +10 -0
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +10 -0
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +10 -0
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +10 -0
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +10 -0
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +10 -0
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +10 -0
- 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 +20 -5
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +20 -5
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +15 -0
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +15 -0
- 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 +17 -553
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +17 -553
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +10 -0
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +10 -0
- 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 +45 -42
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +45 -42
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +5 -0
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +5 -0
- 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 +8 -0
- package/resources/settings/integrations.d.mts.map +1 -1
- package/resources/settings/integrations.d.ts +8 -0
- package/resources/settings/integrations.d.ts.map +1 -1
- package/resources/settings/integrations.js +8 -0
- package/resources/settings/integrations.js.map +1 -1
- package/resources/settings/integrations.mjs +8 -0
- 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 +11 -3
- package/src/resources/catalog/item-categories/item-categories.ts +12 -0
- 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 +24 -9
- package/src/resources/catalog/parts.ts +15 -0
- package/src/resources/catalog/product-lines.ts +12 -0
- package/src/resources/catalog/products.ts +22 -8
- package/src/resources/catalog/properties/attributes.ts +10 -0
- package/src/resources/catalog/properties/properties.ts +10 -0
- package/src/resources/catalog/unit-groups/unit-groups.ts +18 -7
- package/src/resources/catalog/unit-groups/units.ts +10 -0
- package/src/resources/catalog/units.ts +48 -25
- package/src/resources/core/audit-events.ts +111 -11
- package/src/resources/core/core.ts +600 -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 +17 -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 +2452 -0
- package/src/resources/messaging/conversations/index.ts +80 -0
- package/src/resources/messaging/conversations/links.ts +690 -0
- package/src/resources/messaging/conversations/messages.ts +906 -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 +408 -0
- package/src/resources/messaging/groups/groups.ts +208 -0
- package/src/resources/messaging/groups/index.ts +17 -0
- package/src/resources/messaging/groups/members.ts +112 -0
- package/src/resources/messaging/groups.ts +3 -0
- package/src/resources/messaging/index.ts +115 -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 +107 -0
- package/src/resources/messaging/messages.ts +3 -0
- package/src/resources/messaging/messaging.ts +351 -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 +1051 -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 +16 -6
- package/src/resources/operations/carriers/service-levels.ts +12 -0
- package/src/resources/operations/location-types.ts +6 -2
- package/src/resources/operations/locations.ts +19 -9
- package/src/resources/operations/scanning-stations.ts +15 -5
- package/src/resources/operations/shipping-terms.ts +10 -0
- package/src/resources/sales/account-groups.ts +10 -0
- package/src/resources/sales/account-statuses.ts +1 -1
- package/src/resources/sales/addresses.ts +20 -5
- 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 +20 -666
- 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 +45 -44
- package/src/resources/sales/sales.ts +6 -30
- package/src/resources/settings/integrations.ts +8 -0
- 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,1328 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as CoreAPI from "../../core/core.mjs";
|
|
3
|
+
import * as RequestLogsAPI from "../../core/request-logs.mjs";
|
|
4
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.mjs";
|
|
5
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
6
|
+
import { ActionArchiveParams, ActionAssignParams, ActionHideParams, ActionLeaveParams, ActionMuteParams, ActionReadParams, ActionRedactParams, ActionReportParams, ActionSetLegalHoldParams, ActionSetStatusParams, ActionUnarchiveParams, ActionUnhideParams, ActionUnmuteParams, Actions, AssignConversationRequest, MarkConversationReadRequest, MuteConversationRequest, ReportConversationRequest, SetLegalHoldRequest, SetWorkflowStatusRequest } from "./actions.mjs";
|
|
7
|
+
import * as LinksAPI from "./links.mjs";
|
|
8
|
+
import { AddConversationLinkRequest, ConversationLink, LinkCreateParams, LinkDeleteParams, LinkDeleteResponse, LinkListParams, Links, ListConversationLink } from "./links.mjs";
|
|
9
|
+
import * as MessagesAPI from "./messages.mjs";
|
|
10
|
+
import { ListMessage, MessageAttachmentInput, MessageCreateParams, MessageListParams, Messages, SendMessageRequest } from "./messages.mjs";
|
|
11
|
+
import * as AttachmentsAPI from "./attachments/attachments.mjs";
|
|
12
|
+
import { Attachments } from "./attachments/attachments.mjs";
|
|
13
|
+
import * as ParticipantsAPI from "./participants/participants.mjs";
|
|
14
|
+
import { AddParticipantRequest, ParticipantCreateParams, ParticipantDeleteParams, ParticipantDeleteResponse, Participants } from "./participants/participants.mjs";
|
|
15
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
16
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
17
|
+
/**
|
|
18
|
+
* Create conversations, send and read messages (1:1 direct messages).
|
|
19
|
+
*/
|
|
20
|
+
export declare class Conversations extends APIResource {
|
|
21
|
+
actions: ActionsAPI.Actions;
|
|
22
|
+
links: LinksAPI.Links;
|
|
23
|
+
messages: MessagesAPI.Messages;
|
|
24
|
+
participants: ParticipantsAPI.Participants;
|
|
25
|
+
attachments: AttachmentsAPI.Attachments;
|
|
26
|
+
/**
|
|
27
|
+
* Starts a conversation between participants.
|
|
28
|
+
*
|
|
29
|
+
* This endpoint requires the permission: `messaging:create`.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const conversation =
|
|
34
|
+
* await client.messaging.conversations.create({
|
|
35
|
+
* type: 'direct_message',
|
|
36
|
+
* participant_account_user_ids: [
|
|
37
|
+
* 'acus_01ea9983ddb41dacc44ecf997c',
|
|
38
|
+
* ],
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
create(params: ConversationCreateParams, options?: RequestOptions): APIPromise<Conversation>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the caller's conversations, most-recently-active first.
|
|
45
|
+
*
|
|
46
|
+
* This endpoint requires the permission: `messaging:read`.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const listConversation =
|
|
51
|
+
* await client.messaging.conversations.list();
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ListConversation>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns one conversation (with participants) the caller belongs to.
|
|
57
|
+
*
|
|
58
|
+
* This endpoint requires the permission: `messaging:read`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const conversation =
|
|
63
|
+
* await client.messaging.conversations.retrieve(
|
|
64
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
retrieve(id: string, query?: ConversationRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Conversation>;
|
|
69
|
+
/**
|
|
70
|
+
* Renames a conversation.
|
|
71
|
+
*
|
|
72
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const conversation =
|
|
77
|
+
* await client.messaging.conversations.update(
|
|
78
|
+
* 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
|
|
79
|
+
* { title: 'Fulfillment war room' },
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
update(id: string, params?: ConversationUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Conversation>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* A single tool invocation performed by an agent during a run.
|
|
87
|
+
*
|
|
88
|
+
* Each action records the tool that was called, its input and output, and any
|
|
89
|
+
* human review decision.
|
|
90
|
+
*/
|
|
91
|
+
export interface AgentAction {
|
|
92
|
+
/**
|
|
93
|
+
* Agent action ID.
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* When this action was created.
|
|
98
|
+
*/
|
|
99
|
+
created_at: string;
|
|
100
|
+
/**
|
|
101
|
+
* Longer description of what the action does.
|
|
102
|
+
*/
|
|
103
|
+
description: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
106
|
+
*/
|
|
107
|
+
entity: CoreAPI.Entity | null;
|
|
108
|
+
/**
|
|
109
|
+
* Error message if the action failed.
|
|
110
|
+
*/
|
|
111
|
+
error_message: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* When the action was executed.
|
|
114
|
+
*/
|
|
115
|
+
executed_at: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* Arguments passed to the tool, as JSON.
|
|
118
|
+
*
|
|
119
|
+
* Shape depends on `tool`. Encoded as a JSON value (object, array, string, number,
|
|
120
|
+
* boolean, or null), not a JSON-encoded string.
|
|
121
|
+
*/
|
|
122
|
+
input: unknown | null;
|
|
123
|
+
/**
|
|
124
|
+
* Short human-readable label summarizing the action.
|
|
125
|
+
*/
|
|
126
|
+
label: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* Resource type identifier.
|
|
129
|
+
*/
|
|
130
|
+
object: 'agent_action';
|
|
131
|
+
/**
|
|
132
|
+
* Result returned by the tool, as JSON.
|
|
133
|
+
*
|
|
134
|
+
* Recorded when the tool runs, so it is present even while the action is still
|
|
135
|
+
* `pending_review` or `auto_approved`; the shape depends on `tool`, and it is `{}`
|
|
136
|
+
* when the tool returned no output. Encoded as a JSON value (object, array,
|
|
137
|
+
* string, number, boolean, or null), not a JSON-encoded string.
|
|
138
|
+
*/
|
|
139
|
+
output: unknown | null;
|
|
140
|
+
/**
|
|
141
|
+
* Whether this action must be reviewed by a human before it can execute.
|
|
142
|
+
*/
|
|
143
|
+
review_requirement: 'not_required' | 'required';
|
|
144
|
+
/**
|
|
145
|
+
* When a human review decision was recorded for the action.
|
|
146
|
+
*/
|
|
147
|
+
reviewed_at: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
150
|
+
* with an action.
|
|
151
|
+
*/
|
|
152
|
+
reviewed_by: RequestLogsAPI.Actor | null;
|
|
153
|
+
/**
|
|
154
|
+
* A single execution of an agent, from trigger through completion.
|
|
155
|
+
*/
|
|
156
|
+
run: AgentRun | null;
|
|
157
|
+
/**
|
|
158
|
+
* Current action status.
|
|
159
|
+
*
|
|
160
|
+
* - `pending_review`: awaiting human review before it can execute.
|
|
161
|
+
* - `auto_approved`: automatically approved by policy.
|
|
162
|
+
* - `approved`: manually approved by a user.
|
|
163
|
+
* - `rejected`: rejected by a user; will not execute.
|
|
164
|
+
* - `executed`: successfully executed.
|
|
165
|
+
* - `failed`: errored during execution; see `error_message`.
|
|
166
|
+
*/
|
|
167
|
+
status: 'pending_review' | 'auto_approved' | 'approved' | 'rejected' | 'executed' | 'failed';
|
|
168
|
+
/**
|
|
169
|
+
* The tool the agent invoked for this action.
|
|
170
|
+
*
|
|
171
|
+
* - `create_artifact`: create an artifact such as a report, document, or data
|
|
172
|
+
* export.
|
|
173
|
+
* - `read_doc`: read Augno documentation pages.
|
|
174
|
+
* - `fetch_url`: fetch content from a public URL.
|
|
175
|
+
* - `draft_reply`: propose a reply to the case's external party as a draft held
|
|
176
|
+
* for human approval (not sent).
|
|
177
|
+
* - `send_email`: send an email reply through the conversation's bound inbox.
|
|
178
|
+
*/
|
|
179
|
+
tool: 'create_artifact' | 'read_doc' | 'fetch_url' | 'send_email' | 'draft_reply';
|
|
180
|
+
/**
|
|
181
|
+
* When this action was last updated.
|
|
182
|
+
*/
|
|
183
|
+
updated_at: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* An AI agent available to the account.
|
|
187
|
+
*
|
|
188
|
+
* The definition describes what the agent does, how its runs are triggered, the
|
|
189
|
+
* tools it can use, and whether it is currently enabled for the account.
|
|
190
|
+
*/
|
|
191
|
+
export interface AgentDefinition {
|
|
192
|
+
/**
|
|
193
|
+
* Agent definition ID.
|
|
194
|
+
*/
|
|
195
|
+
id: string;
|
|
196
|
+
/**
|
|
197
|
+
* Category grouping for the agent (e.g. `order_processing`), used to organize
|
|
198
|
+
* agents in the UI.
|
|
199
|
+
*/
|
|
200
|
+
category_code: string;
|
|
201
|
+
/**
|
|
202
|
+
* Agent-level configuration controlling LLM behavior and trigger settings.
|
|
203
|
+
*
|
|
204
|
+
* Distinct from per-tool configuration (`tools[].config`), which configures
|
|
205
|
+
* individual tools attached to the agent.
|
|
206
|
+
*/
|
|
207
|
+
config: AgentDefinitionConfig | null;
|
|
208
|
+
/**
|
|
209
|
+
* Creation timestamp.
|
|
210
|
+
*/
|
|
211
|
+
created_at: string;
|
|
212
|
+
/**
|
|
213
|
+
* Whether the agent is provided by Augno or created in this account.
|
|
214
|
+
*
|
|
215
|
+
* - `system`: provided by Augno; cannot be edited or deleted.
|
|
216
|
+
* - `custom`: created by a user in this account.
|
|
217
|
+
*/
|
|
218
|
+
definition_type: 'system' | 'custom';
|
|
219
|
+
/**
|
|
220
|
+
* Description of what the agent does.
|
|
221
|
+
*/
|
|
222
|
+
description: string | null;
|
|
223
|
+
/**
|
|
224
|
+
* Whether the current user can edit this agent definition.
|
|
225
|
+
*
|
|
226
|
+
* Always `read_only` for `system` definitions.
|
|
227
|
+
*/
|
|
228
|
+
editability: 'editable' | 'read_only';
|
|
229
|
+
/**
|
|
230
|
+
* Human-readable name of the agent.
|
|
231
|
+
*/
|
|
232
|
+
name: string;
|
|
233
|
+
/**
|
|
234
|
+
* Resource type identifier.
|
|
235
|
+
*/
|
|
236
|
+
object: 'agent_definition';
|
|
237
|
+
/**
|
|
238
|
+
* A named set of permissions that can be assigned to users to control what they
|
|
239
|
+
* can access.
|
|
240
|
+
*/
|
|
241
|
+
role: APIKeysAPI.Role | null;
|
|
242
|
+
/**
|
|
243
|
+
* URL-friendly identifier for the agent.
|
|
244
|
+
*/
|
|
245
|
+
slug: string;
|
|
246
|
+
/**
|
|
247
|
+
* Whether this agent is enabled for the current account.
|
|
248
|
+
*
|
|
249
|
+
* Activation is per-account: a `system` agent shared across accounts can be
|
|
250
|
+
* `active` for one account and `inactive` for another. An `inactive` agent does
|
|
251
|
+
* not run.
|
|
252
|
+
*/
|
|
253
|
+
status: 'active' | 'inactive';
|
|
254
|
+
/**
|
|
255
|
+
* List represents a paginated list of resources.
|
|
256
|
+
*/
|
|
257
|
+
tools: ListAgentDefinitionTool | null;
|
|
258
|
+
/**
|
|
259
|
+
* How runs of this agent are initiated.
|
|
260
|
+
*
|
|
261
|
+
* - `scheduled`: runs on a cron schedule (see
|
|
262
|
+
* `config.trigger_config.cron_schedule`).
|
|
263
|
+
* - `event`: runs in response to platform events (see
|
|
264
|
+
* `config.trigger_config.event_filters`).
|
|
265
|
+
* - `manual`: runs only when explicitly invoked.
|
|
266
|
+
* - `chat`: runs in response to a chat message; the run is linked to a
|
|
267
|
+
* conversation and posts its reply back into it.
|
|
268
|
+
*/
|
|
269
|
+
trigger_type: 'scheduled' | 'manual' | 'event' | 'chat';
|
|
270
|
+
/**
|
|
271
|
+
* Last updated timestamp.
|
|
272
|
+
*/
|
|
273
|
+
updated_at: string;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Agent-level configuration controlling LLM behavior and trigger settings.
|
|
277
|
+
*
|
|
278
|
+
* Distinct from per-tool configuration (`tools[].config`), which configures
|
|
279
|
+
* individual tools attached to the agent.
|
|
280
|
+
*/
|
|
281
|
+
export interface AgentDefinitionConfig {
|
|
282
|
+
/**
|
|
283
|
+
* Per-endpoint-tool human-review overrides, keyed by tool slug.
|
|
284
|
+
*
|
|
285
|
+
* When an entry is `true`, the run pauses in `awaiting_approval` each time the
|
|
286
|
+
* agent calls that endpoint-tool until it is approved via the Continue Agent Run
|
|
287
|
+
* endpoint. Slugs absent from the map do not require review.
|
|
288
|
+
*/
|
|
289
|
+
endpoint_tool_review: {
|
|
290
|
+
[key: string]: boolean;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* API-endpoint tools the agent may discover and use, by slug (e.g.
|
|
294
|
+
* `create_account_group`).
|
|
295
|
+
*
|
|
296
|
+
* These correspond to tools listed by the List Tools endpoint with category
|
|
297
|
+
* `api_endpoint`. A single entry `*` grants the entire endpoint-tool catalog.
|
|
298
|
+
*/
|
|
299
|
+
endpoint_tool_slugs: Array<string>;
|
|
300
|
+
/**
|
|
301
|
+
* Resource type identifier.
|
|
302
|
+
*/
|
|
303
|
+
object: 'agent_definition_config';
|
|
304
|
+
/**
|
|
305
|
+
* System prompt / instructions for the agent.
|
|
306
|
+
*/
|
|
307
|
+
system_prompt: string | null;
|
|
308
|
+
/**
|
|
309
|
+
* LLM sampling temperature between 0 and 1.
|
|
310
|
+
*/
|
|
311
|
+
temperature: number | null;
|
|
312
|
+
/**
|
|
313
|
+
* Intelligence and cost tier for the agent's reasoning.
|
|
314
|
+
*
|
|
315
|
+
* Selects how capable and expensive a model the agent uses without pinning a
|
|
316
|
+
* specific model; higher tiers reason better but cost more. Leaving it unset uses
|
|
317
|
+
* the default tier.
|
|
318
|
+
*
|
|
319
|
+
* - `frontier`: the most capable tier, for multi-step planning, ambiguous agent
|
|
320
|
+
* work, and hard coding or architecture tasks.
|
|
321
|
+
* - `high`: the default tier, for normal planning, code edits, synthesis, and
|
|
322
|
+
* customer-facing reasoning.
|
|
323
|
+
* - `balanced`: for research, summarization, classification, structured
|
|
324
|
+
* extraction, and light tool use.
|
|
325
|
+
* - `cheap`: for simple transforms, validation, formatting, and routing.
|
|
326
|
+
*/
|
|
327
|
+
tier: 'frontier' | 'high' | 'balanced' | 'cheap' | 'legacy' | null;
|
|
328
|
+
/**
|
|
329
|
+
* Trigger-type-specific configuration.
|
|
330
|
+
*
|
|
331
|
+
* Which fields are populated depends on the agent's `trigger_type`:
|
|
332
|
+
*
|
|
333
|
+
* - `scheduled`: `cron_schedule` (and optionally `timezone`) is set.
|
|
334
|
+
* - `event`: `event_filters` is set.
|
|
335
|
+
* - `manual`: all fields are empty.
|
|
336
|
+
*/
|
|
337
|
+
trigger_config: TriggerConfig | null;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Tool attached to an agent definition.
|
|
341
|
+
*
|
|
342
|
+
* Pairs an AvailableTool with agent-specific config values.
|
|
343
|
+
*/
|
|
344
|
+
export interface AgentDefinitionTool {
|
|
345
|
+
/**
|
|
346
|
+
* Agent definition tool ID.
|
|
347
|
+
*/
|
|
348
|
+
id: string;
|
|
349
|
+
/**
|
|
350
|
+
* Instance-specific configuration for this tool.
|
|
351
|
+
*
|
|
352
|
+
* Must conform to the tool's `config_schema`. Encoded as a JSON value (object,
|
|
353
|
+
* array, string, number, boolean, or null), not a JSON-encoded string.
|
|
354
|
+
*/
|
|
355
|
+
config: unknown | null;
|
|
356
|
+
/**
|
|
357
|
+
* Resource type identifier.
|
|
358
|
+
*/
|
|
359
|
+
object: 'agent_definition_tool';
|
|
360
|
+
/**
|
|
361
|
+
* Whether calls to this tool must be approved by a user before they execute.
|
|
362
|
+
*
|
|
363
|
+
* When `required`, the run pauses in the `awaiting_approval` status each time the
|
|
364
|
+
* agent invokes this tool; approve or allow the tool via the Continue Agent Run
|
|
365
|
+
* endpoint to proceed.
|
|
366
|
+
*/
|
|
367
|
+
review_requirement: 'not_required' | 'required';
|
|
368
|
+
/**
|
|
369
|
+
* Sort order within the agent.
|
|
370
|
+
*/
|
|
371
|
+
sort_order: number;
|
|
372
|
+
/**
|
|
373
|
+
* Platform tool that can be attached to agents.
|
|
374
|
+
*/
|
|
375
|
+
tool: AvailableTool;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* A single execution of an agent, from trigger through completion.
|
|
379
|
+
*/
|
|
380
|
+
export interface AgentRun {
|
|
381
|
+
/**
|
|
382
|
+
* Agent run ID.
|
|
383
|
+
*/
|
|
384
|
+
id: string;
|
|
385
|
+
/**
|
|
386
|
+
* List represents a paginated list of resources.
|
|
387
|
+
*/
|
|
388
|
+
actions: ListAgentAction | null;
|
|
389
|
+
/**
|
|
390
|
+
* When the run completed.
|
|
391
|
+
*/
|
|
392
|
+
completed_at: string | null;
|
|
393
|
+
/**
|
|
394
|
+
* When this run was created.
|
|
395
|
+
*/
|
|
396
|
+
created_at: string;
|
|
397
|
+
/**
|
|
398
|
+
* An AI agent available to the account.
|
|
399
|
+
*
|
|
400
|
+
* The definition describes what the agent does, how its runs are triggered, the
|
|
401
|
+
* tools it can use, and whether it is currently enabled for the account.
|
|
402
|
+
*/
|
|
403
|
+
definition: AgentDefinition | null;
|
|
404
|
+
/**
|
|
405
|
+
* Duration in milliseconds.
|
|
406
|
+
*/
|
|
407
|
+
duration_ms: number | null;
|
|
408
|
+
/**
|
|
409
|
+
* Error message if the run failed.
|
|
410
|
+
*/
|
|
411
|
+
error_message: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* Input provided to the agent at the start of the run, as JSON. Encoded as a JSON
|
|
414
|
+
* value (object, array, string, number, boolean, or null), not a JSON-encoded
|
|
415
|
+
* string.
|
|
416
|
+
*/
|
|
417
|
+
input: unknown | null;
|
|
418
|
+
/**
|
|
419
|
+
* Resource type identifier.
|
|
420
|
+
*/
|
|
421
|
+
object: 'agent_run';
|
|
422
|
+
/**
|
|
423
|
+
* Final output produced by the agent, as JSON.
|
|
424
|
+
*
|
|
425
|
+
* Populated only once the run has completed successfully. Encoded as a JSON value
|
|
426
|
+
* (object, array, string, number, boolean, or null), not a JSON-encoded string.
|
|
427
|
+
*/
|
|
428
|
+
output: unknown | null;
|
|
429
|
+
/**
|
|
430
|
+
* When the run started executing.
|
|
431
|
+
*/
|
|
432
|
+
started_at: string | null;
|
|
433
|
+
/**
|
|
434
|
+
* Current run status.
|
|
435
|
+
*
|
|
436
|
+
* - `pending`: queued but not yet started.
|
|
437
|
+
* - `running`: currently executing.
|
|
438
|
+
* - `awaiting_input`: paused, waiting for user input before continuing.
|
|
439
|
+
* - `awaiting_approval`: paused, waiting for a pending action to be approved.
|
|
440
|
+
* - `completed`: finished successfully.
|
|
441
|
+
* - `failed`: stopped after an error; see `error_message`.
|
|
442
|
+
* - `cancelled`: stopped before completion by a user.
|
|
443
|
+
*/
|
|
444
|
+
status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'awaiting_input' | 'awaiting_approval';
|
|
445
|
+
/**
|
|
446
|
+
* List represents a paginated list of resources.
|
|
447
|
+
*/
|
|
448
|
+
steps: ListAgentRunStep | null;
|
|
449
|
+
/**
|
|
450
|
+
* How this run was initiated.
|
|
451
|
+
*
|
|
452
|
+
* - `scheduled`: started by the agent's cron schedule.
|
|
453
|
+
* - `event`: started in response to a platform event.
|
|
454
|
+
* - `manual`: started by an explicit request; see `triggered_by`.
|
|
455
|
+
* - `chat`: started by a message in a conversation, with the agent's reply posted
|
|
456
|
+
* back into that conversation.
|
|
457
|
+
*/
|
|
458
|
+
trigger_type: 'scheduled' | 'manual' | 'event' | 'chat';
|
|
459
|
+
/**
|
|
460
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
461
|
+
* with an action.
|
|
462
|
+
*/
|
|
463
|
+
triggered_by: RequestLogsAPI.Actor | null;
|
|
464
|
+
/**
|
|
465
|
+
* When this run was last updated.
|
|
466
|
+
*/
|
|
467
|
+
updated_at: string;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* A single event in an agent run's execution timeline.
|
|
471
|
+
*/
|
|
472
|
+
export interface AgentRunStep {
|
|
473
|
+
/**
|
|
474
|
+
* Agent run step ID.
|
|
475
|
+
*/
|
|
476
|
+
id: string;
|
|
477
|
+
/**
|
|
478
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
479
|
+
* with an action.
|
|
480
|
+
*/
|
|
481
|
+
actor: RequestLogsAPI.Actor | null;
|
|
482
|
+
/**
|
|
483
|
+
* Text payload for the step, such as a message body or a tool result.
|
|
484
|
+
*/
|
|
485
|
+
content: string | null;
|
|
486
|
+
/**
|
|
487
|
+
* When this step was created.
|
|
488
|
+
*/
|
|
489
|
+
created_at: string;
|
|
490
|
+
/**
|
|
491
|
+
* Duration in milliseconds.
|
|
492
|
+
*/
|
|
493
|
+
duration_ms: number | null;
|
|
494
|
+
/**
|
|
495
|
+
* Additional structured data for the step, as JSON. Encoded as a JSON value
|
|
496
|
+
* (object, array, string, number, boolean, or null), not a JSON-encoded string.
|
|
497
|
+
*/
|
|
498
|
+
metadata: unknown | null;
|
|
499
|
+
/**
|
|
500
|
+
* Resource type identifier.
|
|
501
|
+
*/
|
|
502
|
+
object: 'agent_run_step';
|
|
503
|
+
/**
|
|
504
|
+
* Zero-based position of this step within the run's timeline.
|
|
505
|
+
*/
|
|
506
|
+
sequence: number;
|
|
507
|
+
/**
|
|
508
|
+
* The kind of timeline event (e.g. `trigger_received`, `user_message`,
|
|
509
|
+
* `assistant_message`, `tool_call`, `tool_result`, `awaiting_approval`,
|
|
510
|
+
* `completion`, `error`).
|
|
511
|
+
*/
|
|
512
|
+
step_type: string;
|
|
513
|
+
/**
|
|
514
|
+
* Short title for the step.
|
|
515
|
+
*/
|
|
516
|
+
title: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Platform tool that can be attached to agents.
|
|
520
|
+
*/
|
|
521
|
+
export interface AvailableTool {
|
|
522
|
+
/**
|
|
523
|
+
* Category grouping for the tool (e.g. `built_in`).
|
|
524
|
+
*/
|
|
525
|
+
category: string;
|
|
526
|
+
/**
|
|
527
|
+
* JSON schema describing the configuration options this tool accepts.
|
|
528
|
+
*
|
|
529
|
+
* Defines the shape of the `config` field on AgentDefinitionTool.
|
|
530
|
+
*
|
|
531
|
+
* For example:
|
|
532
|
+
*
|
|
533
|
+
* ````json
|
|
534
|
+
* {
|
|
535
|
+
* "type": "object",
|
|
536
|
+
* "properties": {
|
|
537
|
+
* "max_results": {
|
|
538
|
+
* "type": "integer",
|
|
539
|
+
* "default": 10
|
|
540
|
+
* }
|
|
541
|
+
* }
|
|
542
|
+
* }
|
|
543
|
+
* ``` Encoded as a JSON value (object, array, string, number, boolean, or null), not a JSON-encoded string.
|
|
544
|
+
* ````
|
|
545
|
+
*/
|
|
546
|
+
config_schema: unknown | null;
|
|
547
|
+
/**
|
|
548
|
+
* Tool description.
|
|
549
|
+
*/
|
|
550
|
+
description: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* Whether invoking this tool changes server state.
|
|
553
|
+
*
|
|
554
|
+
* True for any `api_endpoint` tool whose underlying operation is not a read
|
|
555
|
+
* (non-GET); always false for `built_in` tools. The agent-configuration UI uses
|
|
556
|
+
* this to default such tools to requiring human review.
|
|
557
|
+
*/
|
|
558
|
+
mutating: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Tool name.
|
|
561
|
+
*/
|
|
562
|
+
name: string;
|
|
563
|
+
/**
|
|
564
|
+
* Resource type identifier.
|
|
565
|
+
*/
|
|
566
|
+
object: 'available_tool';
|
|
567
|
+
/**
|
|
568
|
+
* Permission scopes the agent's role must hold for this tool to be usable (e.g.
|
|
569
|
+
* `products:read`).
|
|
570
|
+
*/
|
|
571
|
+
required_permissions: Array<string>;
|
|
572
|
+
/**
|
|
573
|
+
* Role type the caller must have for this tool, when the operation is gated by
|
|
574
|
+
* role rather than a permission (e.g. `admin`).
|
|
575
|
+
*/
|
|
576
|
+
required_role_type: string | null;
|
|
577
|
+
/**
|
|
578
|
+
* A stable identifier used when attaching the tool to an agent.
|
|
579
|
+
*/
|
|
580
|
+
slug: string;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* A conversation thread the caller participates in.
|
|
584
|
+
*/
|
|
585
|
+
export interface Conversation {
|
|
586
|
+
/**
|
|
587
|
+
* Conversation ID.
|
|
588
|
+
*/
|
|
589
|
+
id: string;
|
|
590
|
+
/**
|
|
591
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
592
|
+
* with an action.
|
|
593
|
+
*/
|
|
594
|
+
assignee: RequestLogsAPI.Actor | null;
|
|
595
|
+
/**
|
|
596
|
+
* Whether this is a team-only conversation (`internal`) or a customer-facing case
|
|
597
|
+
* (`customer`).
|
|
598
|
+
*/
|
|
599
|
+
audience: 'internal' | 'customer';
|
|
600
|
+
/**
|
|
601
|
+
* Creation timestamp.
|
|
602
|
+
*/
|
|
603
|
+
created_at: string;
|
|
604
|
+
/**
|
|
605
|
+
* A reusable roster: a named set of members (users and/or agents) that seeds new
|
|
606
|
+
* conversations.
|
|
607
|
+
*
|
|
608
|
+
* Starting a conversation from a group snapshots its current members into that
|
|
609
|
+
* conversation, so the same group can back many conversations (each with its own
|
|
610
|
+
* title); later edits to the group never change conversations already created from
|
|
611
|
+
* it.
|
|
612
|
+
*/
|
|
613
|
+
group: MessagingGroup | null;
|
|
614
|
+
/**
|
|
615
|
+
* A chat message within a conversation.
|
|
616
|
+
*/
|
|
617
|
+
last_message: Message | null;
|
|
618
|
+
/**
|
|
619
|
+
* When the most recent message was sent.
|
|
620
|
+
*
|
|
621
|
+
* `null` when the conversation has no messages yet.
|
|
622
|
+
*/
|
|
623
|
+
last_message_at: string | null;
|
|
624
|
+
/**
|
|
625
|
+
* Whether the conversation is under legal hold.
|
|
626
|
+
*
|
|
627
|
+
* Exempts the conversation from retention purging and redaction.
|
|
628
|
+
*/
|
|
629
|
+
legal_hold: 'released' | 'held';
|
|
630
|
+
/**
|
|
631
|
+
* Resource type identifier.
|
|
632
|
+
*/
|
|
633
|
+
object: 'conversation';
|
|
634
|
+
/**
|
|
635
|
+
* List represents a paginated list of resources.
|
|
636
|
+
*/
|
|
637
|
+
participants: ListConversationParticipant | null;
|
|
638
|
+
/**
|
|
639
|
+
* The caller's effective status.
|
|
640
|
+
*
|
|
641
|
+
* - `hidden` when the caller has hidden the conversation
|
|
642
|
+
* - otherwise the account-level lifecycle state
|
|
643
|
+
*/
|
|
644
|
+
status: 'active' | 'archived' | 'hidden';
|
|
645
|
+
/**
|
|
646
|
+
* The display title of a group conversation.
|
|
647
|
+
*
|
|
648
|
+
* `null` for direct messages, where the client derives a title from the
|
|
649
|
+
* participants.
|
|
650
|
+
*/
|
|
651
|
+
title: string | null;
|
|
652
|
+
/**
|
|
653
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
654
|
+
*/
|
|
655
|
+
topic: CoreAPI.Entity | null;
|
|
656
|
+
/**
|
|
657
|
+
* What kind of conversation this is.
|
|
658
|
+
*
|
|
659
|
+
* - `direct_message`: a 1:1 thread between two users.
|
|
660
|
+
* - `group`: a named thread with multiple user or agent members (including
|
|
661
|
+
* customer-facing support cases).
|
|
662
|
+
* - `system`: a system channel that delivers automated account alerts.
|
|
663
|
+
*/
|
|
664
|
+
type: 'direct_message' | 'group' | 'system';
|
|
665
|
+
/**
|
|
666
|
+
* Number of messages the caller has not yet read.
|
|
667
|
+
*/
|
|
668
|
+
unread: number;
|
|
669
|
+
/**
|
|
670
|
+
* Last update timestamp.
|
|
671
|
+
*/
|
|
672
|
+
updated_at: string;
|
|
673
|
+
/**
|
|
674
|
+
* The triage lane of a customer-facing case.
|
|
675
|
+
*
|
|
676
|
+
* Only set for customer-audience conversations.
|
|
677
|
+
*
|
|
678
|
+
* - `new`: opened but not yet triaged.
|
|
679
|
+
* - `open`: actively being worked.
|
|
680
|
+
* - `waiting_internal`: blocked on the internal team.
|
|
681
|
+
* - `waiting_external`: blocked on an external reply.
|
|
682
|
+
* - `needs_approval`: a drafted reply is awaiting human approval.
|
|
683
|
+
* - `resolved`: closed out.
|
|
684
|
+
*/
|
|
685
|
+
workflow_status: 'new' | 'open' | 'waiting_internal' | 'waiting_external' | 'needs_approval' | 'resolved' | null;
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* A participant (membership) in a conversation.
|
|
689
|
+
*/
|
|
690
|
+
export interface ConversationParticipant {
|
|
691
|
+
/**
|
|
692
|
+
* Participant ID.
|
|
693
|
+
*/
|
|
694
|
+
id: string;
|
|
695
|
+
/**
|
|
696
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
697
|
+
* with an action.
|
|
698
|
+
*/
|
|
699
|
+
actor: RequestLogsAPI.Actor | null;
|
|
700
|
+
/**
|
|
701
|
+
* For agent participants with a keyword/mention policy, the keywords that trigger
|
|
702
|
+
* it.
|
|
703
|
+
*/
|
|
704
|
+
agent_trigger_keywords: Array<string>;
|
|
705
|
+
/**
|
|
706
|
+
* For agent participants, when the agent is invoked in response to messages.
|
|
707
|
+
*
|
|
708
|
+
* `null` for non-agent participants.
|
|
709
|
+
*
|
|
710
|
+
* - `mention`: only when the agent is @mentioned.
|
|
711
|
+
* - `keyword`: when a message contains one of the agent's trigger keywords.
|
|
712
|
+
* - `always`: on every human message in the conversation.
|
|
713
|
+
*/
|
|
714
|
+
agent_trigger_policy: 'mention' | 'keyword' | 'always' | null;
|
|
715
|
+
/**
|
|
716
|
+
* The participant's membership in the conversation.
|
|
717
|
+
*
|
|
718
|
+
* - `active`: currently a member.
|
|
719
|
+
* - `left`: voluntarily left the conversation.
|
|
720
|
+
* - `removed`: removed by an admin.
|
|
721
|
+
* - `hidden`: still a member but has hidden the conversation from their own list.
|
|
722
|
+
*/
|
|
723
|
+
membership: 'active' | 'left' | 'removed' | 'hidden';
|
|
724
|
+
/**
|
|
725
|
+
* The participant's notification preference for the conversation.
|
|
726
|
+
*
|
|
727
|
+
* - `unmuted`: receives normal notifications.
|
|
728
|
+
* - `muted`: notifications are suppressed (mentions may still pierce the mute).
|
|
729
|
+
*/
|
|
730
|
+
notifications: 'unmuted' | 'muted';
|
|
731
|
+
/**
|
|
732
|
+
* Resource type identifier.
|
|
733
|
+
*/
|
|
734
|
+
object: 'conversation_participant';
|
|
735
|
+
/**
|
|
736
|
+
* The participant's permission level in the conversation.
|
|
737
|
+
*
|
|
738
|
+
* - `owner`: can rename or delete the conversation and manage its members and
|
|
739
|
+
* their roles.
|
|
740
|
+
* - `admin`: can add or remove members and rename the conversation.
|
|
741
|
+
* - `member`: can post, react, mute, and leave.
|
|
742
|
+
* - `viewer`: read-only access.
|
|
743
|
+
*/
|
|
744
|
+
role: 'owner' | 'admin' | 'member' | 'viewer';
|
|
745
|
+
/**
|
|
746
|
+
* The kind of participant.
|
|
747
|
+
*
|
|
748
|
+
* - `user`: an account user (a teammate).
|
|
749
|
+
* - `agent`: an AI agent.
|
|
750
|
+
* - `system`: the system itself, which posts automated messages.
|
|
751
|
+
* - `customer`: an external customer in a support case.
|
|
752
|
+
*/
|
|
753
|
+
type: 'user' | 'agent' | 'system' | 'customer';
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Request to create a conversation.
|
|
757
|
+
*/
|
|
758
|
+
export interface CreateConversationRequest {
|
|
759
|
+
/**
|
|
760
|
+
* The kind of conversation to create.
|
|
761
|
+
*/
|
|
762
|
+
type: 'direct_message' | 'group' | 'system';
|
|
763
|
+
/**
|
|
764
|
+
* Seed a group conversation from a reusable roster.
|
|
765
|
+
*
|
|
766
|
+
* The roster's current members are copied into this conversation (in addition to
|
|
767
|
+
* any `participant_account_user_ids`); the conversation is independent afterward.
|
|
768
|
+
* Ignored for direct messages.
|
|
769
|
+
*/
|
|
770
|
+
group_id?: string;
|
|
771
|
+
/**
|
|
772
|
+
* The other participant(s).
|
|
773
|
+
*
|
|
774
|
+
* For a direct message, exactly one account_user ID. For a group, the members to
|
|
775
|
+
* add — optional when `group_id` seeds the roster.
|
|
776
|
+
*/
|
|
777
|
+
participant_account_user_ids?: Array<string>;
|
|
778
|
+
/**
|
|
779
|
+
* Title for a group conversation.
|
|
780
|
+
*
|
|
781
|
+
* Ignored for direct messages.
|
|
782
|
+
*/
|
|
783
|
+
title?: string;
|
|
784
|
+
/**
|
|
785
|
+
* The id of the business record to anchor this conversation to.
|
|
786
|
+
*/
|
|
787
|
+
topic_resource_id?: string;
|
|
788
|
+
/**
|
|
789
|
+
* The type of business record to anchor this conversation to.
|
|
790
|
+
*/
|
|
791
|
+
topic_resource_type?: 'account' | 'actor' | 'entity' | 'record' | 'freight' | 'sales_order_totals' | 'sales_order_related' | 'order_contact' | 'user' | 'address' | 'api_key' | 'created_api_key' | 'refresh_token' | 'list' | 'sandbox' | 'registration_session' | 'pricing_plan' | 'account_plan' | 'plan_change' | 'enterprise_inquiry' | 'request_log' | 'audit_event' | 'audit_field_change' | 'role' | 'unit' | 'account_affiliation' | 'agent_definition' | 'available_tool' | 'agent_definition_tool' | 'agent_account_status' | 'agent_run' | 'agent_action' | 'agent_run_step' | 'agent_token_usage' | 'agent_memory' | 'notification' | 'notification_unread_count' | 'notification_send_result' | 'notification_unread_summary' | 'announcement' | 'conversation' | 'conversation_participant' | 'chat_message' | 'notification_unread_summary_account' | 'messaging_block' | 'notification_preference' | 'message_attachment' | 'attachment_upload_target' | 'scheduled_message' | 'messaging_contact' | 'message_report' | 'tool_group' | 'model' | 'payment_term' | 'shipping_term' | 'quantity' | 'account_group' | 'support_route' | 'support_availability' | 'account_status' | 'geolocation' | 'account_user' | 'department' | 'account_integration' | 'account_price' | 'product_line' | 'item_category' | 'attribute' | 'rate' | 'account_group_product_line_access' | 'sales_target' | 'adjustment_type' | 'account_branding' | 'account_portal' | 'account_logo_url' | 'public_account' | 'property' | 'carrier' | 'service_level' | 'item' | 'item_inventory' | 'product' | 'batch' | 'batch_flow_node' | 'scanning_consumption' | 'open_batch_summary' | 'scanning_production_step_info' | 'scanning_station' | 'production_step' | 'production_run' | 'machine' | 'child_account' | 'unit_group' | 'unit_group_unit' | 'consumption' | 'customer_product_line_access' | 'customer' | 'frequently_ordered_product' | 'priority' | 'delivery' | 'delivery_line' | 'sales_order' | 'location' | 'location_type' | 'lot' | 'email_log' | 'email_domain' | 'email_inbox' | 'inventory_change_log' | 'invoice' | 'invoice_summary' | 'invoice_line' | 'invoice_allocation' | 'invoice_for_payment' | 'shipment' | 'shipment_summary' | 'shipment_line' | 'shipping_case' | 'shipping_case_label_url' | 'settlement' | 'settlement_summary' | 'role_permission' | 'registration_flow' | 'registration_flow_option' | 'transaction' | 'transaction_summary' | 'transaction_method' | 'transaction_type' | 'transaction_allocation' | 'usage_item' | 'account_usage_response' | 'subscription_info' | 'billing_portal_session_response' | 'switch_plan_response' | 'ensure_billing_customer_response' | 'spending_cap_response' | 'agent_spend_info' | 'webhook_response' | 'address_suggestion' | 'address_components' | 'address_details_result' | 'validated_address' | 'plan_limit' | 'plan_change_proration' | 'plan_change_line_item' | 'setup_billing_response' | 'confirm_payment_response' | 'oauth_response' | 'oauth_status_response' | 'stripe_publishable_key' | 'stripe_status' | 'healthcheck' | 'agent_definition_config' | 'trigger_config' | 'customer_contact_info' | 'customer_freight_preferences' | 'customer_defaults' | 'customer_notification_preferences' | 'order_discount' | 'sales_order_line' | 'sales_order_type' | 'sales_order_status' | 'material' | 'supplier_material' | 'part' | 'permission_group' | 'permission' | 'pick' | 'pick_line' | 'product_type' | 'production' | 'production_flow' | 'map' | 'purchase_order' | 'purchase_order_line' | 'supplier' | 'supplier_summary' | 'receivable_entry' | 'receiving_order' | 'receiving_order_line' | 'email_contact' | 'allocation_entry' | 'open_credit_entry' | 'volume_discount' | 'volume_discount_tier' | 'analyze_deliveries_response' | 'analyze_manufacturing_response' | 'analyze_manufacturing_batch_response' | 'analyze_quarterly_orders_response' | 'analyze_new_customers_response' | 'analyze_oee_response' | 'catalog_product_line' | 'catalog_category' | 'catalog_product' | 'catalog_property' | 'catalog_attribute' | 'dc_location' | 'edi_run' | 'inventory_item' | 'analyze_weeks_of_sales_response' | 'bulk_reconcile_items_response' | 'sys_property' | 'sys_property_type' | 'sys_property_value' | 'territory' | 'tenancy' | 'checkout_session' | 'estimate_rate_result' | 'rate_shop_option' | 'rate_shop_result' | 'owner' | 'created_by' | 'message' | 'account_photo_upload_result' | 'user_photo_upload_result' | 'user_photo_url' | 'batch_lot' | 'check_duplicate_result' | 'item_trend_point' | 'pack_pick_response' | 'pick_shipments_response' | 'tenancy_pending_registration' | 'invoice_allocation_entry' | 'allocation_customer' | 'checkout_sales_order_response' | 'create_production_run_response' | 'sales_order_price_quote' | 'hubspot_sync_job' | 'hubspot_sync_report' | 'hubspot_company_review' | 'hubspot_company_candidate' | 'contact_match' | 'reply_draft' | 'conversation_link' | 'messaging_group' | 'messaging_group_member';
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* List represents a paginated list of resources.
|
|
795
|
+
*/
|
|
796
|
+
export interface ListAgentAction {
|
|
797
|
+
/**
|
|
798
|
+
* Resources in this page.
|
|
799
|
+
*/
|
|
800
|
+
data: Array<AgentAction>;
|
|
801
|
+
/**
|
|
802
|
+
* Resource type identifier.
|
|
803
|
+
*/
|
|
804
|
+
object: 'list';
|
|
805
|
+
/**
|
|
806
|
+
* PageInfo contains URL-based pagination metadata.
|
|
807
|
+
*/
|
|
808
|
+
page_info: APIKeysAPI.PageInfo;
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* List represents a paginated list of resources.
|
|
812
|
+
*/
|
|
813
|
+
export interface ListAgentDefinitionTool {
|
|
814
|
+
/**
|
|
815
|
+
* Resources in this page.
|
|
816
|
+
*/
|
|
817
|
+
data: Array<AgentDefinitionTool>;
|
|
818
|
+
/**
|
|
819
|
+
* Resource type identifier.
|
|
820
|
+
*/
|
|
821
|
+
object: 'list';
|
|
822
|
+
/**
|
|
823
|
+
* PageInfo contains URL-based pagination metadata.
|
|
824
|
+
*/
|
|
825
|
+
page_info: APIKeysAPI.PageInfo;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* List represents a paginated list of resources.
|
|
829
|
+
*/
|
|
830
|
+
export interface ListAgentRunStep {
|
|
831
|
+
/**
|
|
832
|
+
* Resources in this page.
|
|
833
|
+
*/
|
|
834
|
+
data: Array<AgentRunStep>;
|
|
835
|
+
/**
|
|
836
|
+
* Resource type identifier.
|
|
837
|
+
*/
|
|
838
|
+
object: 'list';
|
|
839
|
+
/**
|
|
840
|
+
* PageInfo contains URL-based pagination metadata.
|
|
841
|
+
*/
|
|
842
|
+
page_info: APIKeysAPI.PageInfo;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* List represents a paginated list of resources.
|
|
846
|
+
*/
|
|
847
|
+
export interface ListConversation {
|
|
848
|
+
/**
|
|
849
|
+
* Resources in this page.
|
|
850
|
+
*/
|
|
851
|
+
data: Array<Conversation>;
|
|
852
|
+
/**
|
|
853
|
+
* Resource type identifier.
|
|
854
|
+
*/
|
|
855
|
+
object: 'list';
|
|
856
|
+
/**
|
|
857
|
+
* PageInfo contains URL-based pagination metadata.
|
|
858
|
+
*/
|
|
859
|
+
page_info: APIKeysAPI.PageInfo;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* List represents a paginated list of resources.
|
|
863
|
+
*/
|
|
864
|
+
export interface ListConversationParticipant {
|
|
865
|
+
/**
|
|
866
|
+
* Resources in this page.
|
|
867
|
+
*/
|
|
868
|
+
data: Array<ConversationParticipant>;
|
|
869
|
+
/**
|
|
870
|
+
* Resource type identifier.
|
|
871
|
+
*/
|
|
872
|
+
object: 'list';
|
|
873
|
+
/**
|
|
874
|
+
* PageInfo contains URL-based pagination metadata.
|
|
875
|
+
*/
|
|
876
|
+
page_info: APIKeysAPI.PageInfo;
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* List represents a paginated list of resources.
|
|
880
|
+
*/
|
|
881
|
+
export interface ListMessageAttachment {
|
|
882
|
+
/**
|
|
883
|
+
* Resources in this page.
|
|
884
|
+
*/
|
|
885
|
+
data: Array<MessageAttachment>;
|
|
886
|
+
/**
|
|
887
|
+
* Resource type identifier.
|
|
888
|
+
*/
|
|
889
|
+
object: 'list';
|
|
890
|
+
/**
|
|
891
|
+
* PageInfo contains URL-based pagination metadata.
|
|
892
|
+
*/
|
|
893
|
+
page_info: APIKeysAPI.PageInfo;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* List represents a paginated list of resources.
|
|
897
|
+
*/
|
|
898
|
+
export interface ListMessagingGroupMember {
|
|
899
|
+
/**
|
|
900
|
+
* Resources in this page.
|
|
901
|
+
*/
|
|
902
|
+
data: Array<MessagingGroupMember>;
|
|
903
|
+
/**
|
|
904
|
+
* Resource type identifier.
|
|
905
|
+
*/
|
|
906
|
+
object: 'list';
|
|
907
|
+
/**
|
|
908
|
+
* PageInfo contains URL-based pagination metadata.
|
|
909
|
+
*/
|
|
910
|
+
page_info: APIKeysAPI.PageInfo;
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* A chat message within a conversation.
|
|
914
|
+
*/
|
|
915
|
+
export interface Message {
|
|
916
|
+
/**
|
|
917
|
+
* Message ID.
|
|
918
|
+
*/
|
|
919
|
+
id: string;
|
|
920
|
+
/**
|
|
921
|
+
* A single execution of an agent, from trigger through completion.
|
|
922
|
+
*/
|
|
923
|
+
agent_run: AgentRun | null;
|
|
924
|
+
/**
|
|
925
|
+
* List represents a paginated list of resources.
|
|
926
|
+
*/
|
|
927
|
+
attachments: ListMessageAttachment | null;
|
|
928
|
+
/**
|
|
929
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
930
|
+
* with an action.
|
|
931
|
+
*/
|
|
932
|
+
author: RequestLogsAPI.Actor | null;
|
|
933
|
+
/**
|
|
934
|
+
* Message body.
|
|
935
|
+
*
|
|
936
|
+
* `null` for templated or deleted messages.
|
|
937
|
+
*/
|
|
938
|
+
body: string | null;
|
|
939
|
+
/**
|
|
940
|
+
* How the message was delivered (or, for a draft, how it will be on approve).
|
|
941
|
+
*
|
|
942
|
+
* - `message`: delivered as an in-conversation chat message.
|
|
943
|
+
* - `email`: delivered as email through the conversation's bridged inbox.
|
|
944
|
+
*/
|
|
945
|
+
channel: 'message' | 'email';
|
|
946
|
+
/**
|
|
947
|
+
* The client-supplied dedupe key echoed back for optimistic-UI reconciliation.
|
|
948
|
+
*
|
|
949
|
+
* `null` for server-generated messages.
|
|
950
|
+
*/
|
|
951
|
+
client_message_id: string | null;
|
|
952
|
+
/**
|
|
953
|
+
* A conversation thread the caller participates in.
|
|
954
|
+
*/
|
|
955
|
+
conversation: Conversation | null;
|
|
956
|
+
/**
|
|
957
|
+
* Creation timestamp.
|
|
958
|
+
*/
|
|
959
|
+
created_at: string;
|
|
960
|
+
/**
|
|
961
|
+
* When the message was deleted (tombstone).
|
|
962
|
+
*/
|
|
963
|
+
deleted_at: string | null;
|
|
964
|
+
/**
|
|
965
|
+
* When the message was last edited.
|
|
966
|
+
*/
|
|
967
|
+
edited_at: string | null;
|
|
968
|
+
/**
|
|
969
|
+
* The kind of message.
|
|
970
|
+
*
|
|
971
|
+
* - `chat`: a user-authored chat message.
|
|
972
|
+
* - `system_event`: a system-generated event message.
|
|
973
|
+
* - `agent`: a message authored by an AI agent participant.
|
|
974
|
+
* - `scheduled`: a message materialized from a scheduled send.
|
|
975
|
+
* - `alert`: a system or producer alert rendered as a message.
|
|
976
|
+
* - `email`: an inbound email materialized into the conversation by the email
|
|
977
|
+
* bridge.
|
|
978
|
+
*/
|
|
979
|
+
kind: 'chat' | 'system_event' | 'agent' | 'scheduled' | 'alert' | 'email';
|
|
980
|
+
/**
|
|
981
|
+
* Resource type identifier.
|
|
982
|
+
*/
|
|
983
|
+
object: 'chat_message';
|
|
984
|
+
/**
|
|
985
|
+
* A chat message within a conversation.
|
|
986
|
+
*/
|
|
987
|
+
reply_to: Message | null;
|
|
988
|
+
/**
|
|
989
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
990
|
+
*/
|
|
991
|
+
resource: CoreAPI.Entity | null;
|
|
992
|
+
/**
|
|
993
|
+
* When a `scheduled` message is due to be delivered.
|
|
994
|
+
*/
|
|
995
|
+
scheduled_at: string | null;
|
|
996
|
+
/**
|
|
997
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
998
|
+
* with an action.
|
|
999
|
+
*/
|
|
1000
|
+
sender: RequestLogsAPI.Actor | null;
|
|
1001
|
+
/**
|
|
1002
|
+
* Monotonic per-conversation ordering sequence.
|
|
1003
|
+
*/
|
|
1004
|
+
sequence: number;
|
|
1005
|
+
/**
|
|
1006
|
+
* The lifecycle state of the message.
|
|
1007
|
+
*
|
|
1008
|
+
* - `draft`: an editable customer-reply draft awaiting approval; not in the
|
|
1009
|
+
* timeline.
|
|
1010
|
+
* - `scheduled`: queued for delivery at a future time; not yet in the timeline.
|
|
1011
|
+
* - `sent`: a delivered timeline message; only `sent` messages carry a `sequence`.
|
|
1012
|
+
* - `canceled`: a scheduled message canceled before delivery.
|
|
1013
|
+
* - `rejected`: a draft discarded without sending.
|
|
1014
|
+
* - `failed`: a scheduled message that exhausted delivery attempts.
|
|
1015
|
+
* - `superseded`: a draft replaced by a newer one for the same source thread.
|
|
1016
|
+
*/
|
|
1017
|
+
status: 'draft' | 'scheduled' | 'sent' | 'canceled' | 'rejected' | 'failed' | 'superseded';
|
|
1018
|
+
/**
|
|
1019
|
+
* The streaming state of a reply.
|
|
1020
|
+
*
|
|
1021
|
+
* `streaming` while the body is still being generated (it fills in via realtime
|
|
1022
|
+
* updates); `complete` once finalized.
|
|
1023
|
+
*
|
|
1024
|
+
* `null` for ordinary messages.
|
|
1025
|
+
*/
|
|
1026
|
+
streaming_state: string | null;
|
|
1027
|
+
/**
|
|
1028
|
+
* The email subject of a customer-reply `draft` on an email-bridged case.
|
|
1029
|
+
*/
|
|
1030
|
+
subject: string | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* Last update timestamp.
|
|
1033
|
+
*/
|
|
1034
|
+
updated_at: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Who can see this message.
|
|
1037
|
+
*
|
|
1038
|
+
* - `internal`: a team-only note.
|
|
1039
|
+
* - `external`: sent to or received from an external party (e.g. the customer on a
|
|
1040
|
+
* support case).
|
|
1041
|
+
* - `system`: an event shown to both the team and the customer.
|
|
1042
|
+
*
|
|
1043
|
+
* On a customer-facing conversation, customer payloads only ever carry `external`
|
|
1044
|
+
* and `system` messages.
|
|
1045
|
+
*/
|
|
1046
|
+
visibility: 'internal' | 'external' | 'system';
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* A file, image, link, or resource attached to a message.
|
|
1050
|
+
*/
|
|
1051
|
+
export interface MessageAttachment {
|
|
1052
|
+
/**
|
|
1053
|
+
* Attachment ID.
|
|
1054
|
+
*/
|
|
1055
|
+
id: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* The MIME content type for uploaded attachments.
|
|
1058
|
+
*
|
|
1059
|
+
* `null` for link/resource attachments.
|
|
1060
|
+
*/
|
|
1061
|
+
content_type: string | null;
|
|
1062
|
+
/**
|
|
1063
|
+
* Creation timestamp.
|
|
1064
|
+
*/
|
|
1065
|
+
created_at: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* The original filename for uploaded attachments.
|
|
1068
|
+
*
|
|
1069
|
+
* `null` for link/resource attachments.
|
|
1070
|
+
*/
|
|
1071
|
+
filename: string | null;
|
|
1072
|
+
/**
|
|
1073
|
+
* The kind of attachment, which determines how it is stored and which of the
|
|
1074
|
+
* fields below are populated.
|
|
1075
|
+
*
|
|
1076
|
+
* - `file`: an uploaded non-image file.
|
|
1077
|
+
* - `image`: an uploaded image.
|
|
1078
|
+
* - `link`: an external URL reference, with no stored file.
|
|
1079
|
+
* - `resource`: a reference to an in-app resource, such as an order.
|
|
1080
|
+
*/
|
|
1081
|
+
kind: 'file' | 'image' | 'link' | 'resource';
|
|
1082
|
+
/**
|
|
1083
|
+
* Resource type identifier.
|
|
1084
|
+
*/
|
|
1085
|
+
object: 'message_attachment';
|
|
1086
|
+
/**
|
|
1087
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
1088
|
+
*/
|
|
1089
|
+
resource: CoreAPI.Entity | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* The size in bytes for uploaded attachments.
|
|
1092
|
+
*
|
|
1093
|
+
* `null` when unknown or for link/resource attachments.
|
|
1094
|
+
*/
|
|
1095
|
+
size_bytes: number | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* A time-limited download URL for uploaded (file/image) attachments, or the link
|
|
1098
|
+
* URL.
|
|
1099
|
+
*
|
|
1100
|
+
* `null` for resource attachments.
|
|
1101
|
+
*/
|
|
1102
|
+
url: string | null;
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* A reusable roster: a named set of members (users and/or agents) that seeds new
|
|
1106
|
+
* conversations.
|
|
1107
|
+
*
|
|
1108
|
+
* Starting a conversation from a group snapshots its current members into that
|
|
1109
|
+
* conversation, so the same group can back many conversations (each with its own
|
|
1110
|
+
* title); later edits to the group never change conversations already created from
|
|
1111
|
+
* it.
|
|
1112
|
+
*/
|
|
1113
|
+
export interface MessagingGroup {
|
|
1114
|
+
/**
|
|
1115
|
+
* Messaging group ID.
|
|
1116
|
+
*/
|
|
1117
|
+
id: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* Creation timestamp.
|
|
1120
|
+
*/
|
|
1121
|
+
created_at: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* List represents a paginated list of resources.
|
|
1124
|
+
*/
|
|
1125
|
+
members: ListMessagingGroupMember | null;
|
|
1126
|
+
/**
|
|
1127
|
+
* The roster's display name.
|
|
1128
|
+
*/
|
|
1129
|
+
name: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Resource type identifier.
|
|
1132
|
+
*/
|
|
1133
|
+
object: 'messaging_group';
|
|
1134
|
+
/**
|
|
1135
|
+
* Last updated timestamp.
|
|
1136
|
+
*/
|
|
1137
|
+
updated_at: string;
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* A member of a reusable roster: either a user or an agent, represented by its
|
|
1141
|
+
* actor.
|
|
1142
|
+
*/
|
|
1143
|
+
export interface MessagingGroupMember {
|
|
1144
|
+
/**
|
|
1145
|
+
* Membership ID (used to remove the member from the roster).
|
|
1146
|
+
*/
|
|
1147
|
+
id: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
1150
|
+
* with an action.
|
|
1151
|
+
*/
|
|
1152
|
+
actor: RequestLogsAPI.Actor | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* Resource type identifier.
|
|
1155
|
+
*/
|
|
1156
|
+
object: 'messaging_group_member';
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Trigger-type-specific configuration.
|
|
1160
|
+
*
|
|
1161
|
+
* Which fields are populated depends on the agent's `trigger_type`:
|
|
1162
|
+
*
|
|
1163
|
+
* - `scheduled`: `cron_schedule` (and optionally `timezone`) is set.
|
|
1164
|
+
* - `event`: `event_filters` is set.
|
|
1165
|
+
* - `manual`: all fields are empty.
|
|
1166
|
+
*/
|
|
1167
|
+
export interface TriggerConfig {
|
|
1168
|
+
/**
|
|
1169
|
+
* Cron expression for scheduled triggers (e.g. `0 9 * * *`).
|
|
1170
|
+
*/
|
|
1171
|
+
cron_schedule: string | null;
|
|
1172
|
+
/**
|
|
1173
|
+
* Event types that trigger this agent (e.g.
|
|
1174
|
+
* `["email.received", "order.created"]`).
|
|
1175
|
+
*/
|
|
1176
|
+
event_filters: Array<string>;
|
|
1177
|
+
/**
|
|
1178
|
+
* Resource type identifier.
|
|
1179
|
+
*/
|
|
1180
|
+
object: 'trigger_config';
|
|
1181
|
+
/**
|
|
1182
|
+
* IANA timezone for the cron schedule (e.g. `America/New_York`).
|
|
1183
|
+
*/
|
|
1184
|
+
timezone: string | null;
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Request to rename a conversation (owner/admin; groups only).
|
|
1188
|
+
*/
|
|
1189
|
+
export interface UpdateConversationRequest {
|
|
1190
|
+
/**
|
|
1191
|
+
* New group title.
|
|
1192
|
+
*
|
|
1193
|
+
* Send `null` to clear the title; omit to leave it unchanged.
|
|
1194
|
+
*/
|
|
1195
|
+
title?: string | null;
|
|
1196
|
+
}
|
|
1197
|
+
export interface ConversationCreateParams {
|
|
1198
|
+
/**
|
|
1199
|
+
* Body param: The kind of conversation to create.
|
|
1200
|
+
*/
|
|
1201
|
+
type: 'direct_message' | 'group' | 'system';
|
|
1202
|
+
/**
|
|
1203
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
1204
|
+
* are returned as `null`.
|
|
1205
|
+
*/
|
|
1206
|
+
include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Body param: Seed a group conversation from a reusable roster.
|
|
1209
|
+
*
|
|
1210
|
+
* The roster's current members are copied into this conversation (in addition to
|
|
1211
|
+
* any `participant_account_user_ids`); the conversation is independent afterward.
|
|
1212
|
+
* Ignored for direct messages.
|
|
1213
|
+
*/
|
|
1214
|
+
group_id?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* Body param: The other participant(s).
|
|
1217
|
+
*
|
|
1218
|
+
* For a direct message, exactly one account_user ID. For a group, the members to
|
|
1219
|
+
* add — optional when `group_id` seeds the roster.
|
|
1220
|
+
*/
|
|
1221
|
+
participant_account_user_ids?: Array<string>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Body param: Title for a group conversation.
|
|
1224
|
+
*
|
|
1225
|
+
* Ignored for direct messages.
|
|
1226
|
+
*/
|
|
1227
|
+
title?: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* Body param: The id of the business record to anchor this conversation to.
|
|
1230
|
+
*/
|
|
1231
|
+
topic_resource_id?: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* Body param: The type of business record to anchor this conversation to.
|
|
1234
|
+
*/
|
|
1235
|
+
topic_resource_type?: 'account' | 'actor' | 'entity' | 'record' | 'freight' | 'sales_order_totals' | 'sales_order_related' | 'order_contact' | 'user' | 'address' | 'api_key' | 'created_api_key' | 'refresh_token' | 'list' | 'sandbox' | 'registration_session' | 'pricing_plan' | 'account_plan' | 'plan_change' | 'enterprise_inquiry' | 'request_log' | 'audit_event' | 'audit_field_change' | 'role' | 'unit' | 'account_affiliation' | 'agent_definition' | 'available_tool' | 'agent_definition_tool' | 'agent_account_status' | 'agent_run' | 'agent_action' | 'agent_run_step' | 'agent_token_usage' | 'agent_memory' | 'notification' | 'notification_unread_count' | 'notification_send_result' | 'notification_unread_summary' | 'announcement' | 'conversation' | 'conversation_participant' | 'chat_message' | 'notification_unread_summary_account' | 'messaging_block' | 'notification_preference' | 'message_attachment' | 'attachment_upload_target' | 'scheduled_message' | 'messaging_contact' | 'message_report' | 'tool_group' | 'model' | 'payment_term' | 'shipping_term' | 'quantity' | 'account_group' | 'support_route' | 'support_availability' | 'account_status' | 'geolocation' | 'account_user' | 'department' | 'account_integration' | 'account_price' | 'product_line' | 'item_category' | 'attribute' | 'rate' | 'account_group_product_line_access' | 'sales_target' | 'adjustment_type' | 'account_branding' | 'account_portal' | 'account_logo_url' | 'public_account' | 'property' | 'carrier' | 'service_level' | 'item' | 'item_inventory' | 'product' | 'batch' | 'batch_flow_node' | 'scanning_consumption' | 'open_batch_summary' | 'scanning_production_step_info' | 'scanning_station' | 'production_step' | 'production_run' | 'machine' | 'child_account' | 'unit_group' | 'unit_group_unit' | 'consumption' | 'customer_product_line_access' | 'customer' | 'frequently_ordered_product' | 'priority' | 'delivery' | 'delivery_line' | 'sales_order' | 'location' | 'location_type' | 'lot' | 'email_log' | 'email_domain' | 'email_inbox' | 'inventory_change_log' | 'invoice' | 'invoice_summary' | 'invoice_line' | 'invoice_allocation' | 'invoice_for_payment' | 'shipment' | 'shipment_summary' | 'shipment_line' | 'shipping_case' | 'shipping_case_label_url' | 'settlement' | 'settlement_summary' | 'role_permission' | 'registration_flow' | 'registration_flow_option' | 'transaction' | 'transaction_summary' | 'transaction_method' | 'transaction_type' | 'transaction_allocation' | 'usage_item' | 'account_usage_response' | 'subscription_info' | 'billing_portal_session_response' | 'switch_plan_response' | 'ensure_billing_customer_response' | 'spending_cap_response' | 'agent_spend_info' | 'webhook_response' | 'address_suggestion' | 'address_components' | 'address_details_result' | 'validated_address' | 'plan_limit' | 'plan_change_proration' | 'plan_change_line_item' | 'setup_billing_response' | 'confirm_payment_response' | 'oauth_response' | 'oauth_status_response' | 'stripe_publishable_key' | 'stripe_status' | 'healthcheck' | 'agent_definition_config' | 'trigger_config' | 'customer_contact_info' | 'customer_freight_preferences' | 'customer_defaults' | 'customer_notification_preferences' | 'order_discount' | 'sales_order_line' | 'sales_order_type' | 'sales_order_status' | 'material' | 'supplier_material' | 'part' | 'permission_group' | 'permission' | 'pick' | 'pick_line' | 'product_type' | 'production' | 'production_flow' | 'map' | 'purchase_order' | 'purchase_order_line' | 'supplier' | 'supplier_summary' | 'receivable_entry' | 'receiving_order' | 'receiving_order_line' | 'email_contact' | 'allocation_entry' | 'open_credit_entry' | 'volume_discount' | 'volume_discount_tier' | 'analyze_deliveries_response' | 'analyze_manufacturing_response' | 'analyze_manufacturing_batch_response' | 'analyze_quarterly_orders_response' | 'analyze_new_customers_response' | 'analyze_oee_response' | 'catalog_product_line' | 'catalog_category' | 'catalog_product' | 'catalog_property' | 'catalog_attribute' | 'dc_location' | 'edi_run' | 'inventory_item' | 'analyze_weeks_of_sales_response' | 'bulk_reconcile_items_response' | 'sys_property' | 'sys_property_type' | 'sys_property_value' | 'territory' | 'tenancy' | 'checkout_session' | 'estimate_rate_result' | 'rate_shop_option' | 'rate_shop_result' | 'owner' | 'created_by' | 'message' | 'account_photo_upload_result' | 'user_photo_upload_result' | 'user_photo_url' | 'batch_lot' | 'check_duplicate_result' | 'item_trend_point' | 'pack_pick_response' | 'pick_shipments_response' | 'tenancy_pending_registration' | 'invoice_allocation_entry' | 'allocation_customer' | 'checkout_sales_order_response' | 'create_production_run_response' | 'sales_order_price_quote' | 'hubspot_sync_job' | 'hubspot_sync_report' | 'hubspot_company_review' | 'hubspot_company_candidate' | 'contact_match' | 'reply_draft' | 'conversation_link' | 'messaging_group' | 'messaging_group_member';
|
|
1236
|
+
}
|
|
1237
|
+
export interface ConversationListParams {
|
|
1238
|
+
/**
|
|
1239
|
+
* Support inbox: filter to cases owned by this assignee (a user or a team),
|
|
1240
|
+
* matched by id.
|
|
1241
|
+
*/
|
|
1242
|
+
assignee_resource_id?: string;
|
|
1243
|
+
/**
|
|
1244
|
+
* Filter by conversation audience direction.
|
|
1245
|
+
*/
|
|
1246
|
+
audience?: 'internal' | 'customer';
|
|
1247
|
+
/**
|
|
1248
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
1249
|
+
*
|
|
1250
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
1251
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
1252
|
+
* page.
|
|
1253
|
+
*/
|
|
1254
|
+
cursor?: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
1257
|
+
* `null`.
|
|
1258
|
+
*/
|
|
1259
|
+
include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Support inbox: include archived (resolved-and-closed) cases.
|
|
1262
|
+
*/
|
|
1263
|
+
include_archived?: boolean;
|
|
1264
|
+
/**
|
|
1265
|
+
* Maximum number of results to return in a single page.
|
|
1266
|
+
*/
|
|
1267
|
+
limit?: number;
|
|
1268
|
+
/**
|
|
1269
|
+
* Free-text search term used to filter results.
|
|
1270
|
+
*
|
|
1271
|
+
* Which fields are matched against the term varies by endpoint.
|
|
1272
|
+
*/
|
|
1273
|
+
q?: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Filter by conversation visibility.
|
|
1276
|
+
*/
|
|
1277
|
+
status?: 'active' | 'hidden';
|
|
1278
|
+
/**
|
|
1279
|
+
* The id of the anchoring business record (with `topic_resource_type`).
|
|
1280
|
+
*/
|
|
1281
|
+
topic_resource_id?: string;
|
|
1282
|
+
/**
|
|
1283
|
+
* Restrict to conversations anchored to a business record of this type (with
|
|
1284
|
+
* `topic_resource_id`).
|
|
1285
|
+
*/
|
|
1286
|
+
topic_resource_type?: 'account' | 'actor' | 'entity' | 'record' | 'freight' | 'sales_order_totals' | 'sales_order_related' | 'order_contact' | 'user' | 'address' | 'api_key' | 'created_api_key' | 'refresh_token' | 'list' | 'sandbox' | 'registration_session' | 'pricing_plan' | 'account_plan' | 'plan_change' | 'enterprise_inquiry' | 'request_log' | 'audit_event' | 'audit_field_change' | 'role' | 'unit' | 'account_affiliation' | 'agent_definition' | 'available_tool' | 'agent_definition_tool' | 'agent_account_status' | 'agent_run' | 'agent_action' | 'agent_run_step' | 'agent_token_usage' | 'agent_memory' | 'notification' | 'notification_unread_count' | 'notification_send_result' | 'notification_unread_summary' | 'announcement' | 'conversation' | 'conversation_participant' | 'chat_message' | 'notification_unread_summary_account' | 'messaging_block' | 'notification_preference' | 'message_attachment' | 'attachment_upload_target' | 'scheduled_message' | 'messaging_contact' | 'message_report' | 'tool_group' | 'model' | 'payment_term' | 'shipping_term' | 'quantity' | 'account_group' | 'support_route' | 'support_availability' | 'account_status' | 'geolocation' | 'account_user' | 'department' | 'account_integration' | 'account_price' | 'product_line' | 'item_category' | 'attribute' | 'rate' | 'account_group_product_line_access' | 'sales_target' | 'adjustment_type' | 'account_branding' | 'account_portal' | 'account_logo_url' | 'public_account' | 'property' | 'carrier' | 'service_level' | 'item' | 'item_inventory' | 'product' | 'batch' | 'batch_flow_node' | 'scanning_consumption' | 'open_batch_summary' | 'scanning_production_step_info' | 'scanning_station' | 'production_step' | 'production_run' | 'machine' | 'child_account' | 'unit_group' | 'unit_group_unit' | 'consumption' | 'customer_product_line_access' | 'customer' | 'frequently_ordered_product' | 'priority' | 'delivery' | 'delivery_line' | 'sales_order' | 'location' | 'location_type' | 'lot' | 'email_log' | 'email_domain' | 'email_inbox' | 'inventory_change_log' | 'invoice' | 'invoice_summary' | 'invoice_line' | 'invoice_allocation' | 'invoice_for_payment' | 'shipment' | 'shipment_summary' | 'shipment_line' | 'shipping_case' | 'shipping_case_label_url' | 'settlement' | 'settlement_summary' | 'role_permission' | 'registration_flow' | 'registration_flow_option' | 'transaction' | 'transaction_summary' | 'transaction_method' | 'transaction_type' | 'transaction_allocation' | 'usage_item' | 'account_usage_response' | 'subscription_info' | 'billing_portal_session_response' | 'switch_plan_response' | 'ensure_billing_customer_response' | 'spending_cap_response' | 'agent_spend_info' | 'webhook_response' | 'address_suggestion' | 'address_components' | 'address_details_result' | 'validated_address' | 'plan_limit' | 'plan_change_proration' | 'plan_change_line_item' | 'setup_billing_response' | 'confirm_payment_response' | 'oauth_response' | 'oauth_status_response' | 'stripe_publishable_key' | 'stripe_status' | 'healthcheck' | 'agent_definition_config' | 'trigger_config' | 'customer_contact_info' | 'customer_freight_preferences' | 'customer_defaults' | 'customer_notification_preferences' | 'order_discount' | 'sales_order_line' | 'sales_order_type' | 'sales_order_status' | 'material' | 'supplier_material' | 'part' | 'permission_group' | 'permission' | 'pick' | 'pick_line' | 'product_type' | 'production' | 'production_flow' | 'map' | 'purchase_order' | 'purchase_order_line' | 'supplier' | 'supplier_summary' | 'receivable_entry' | 'receiving_order' | 'receiving_order_line' | 'email_contact' | 'allocation_entry' | 'open_credit_entry' | 'volume_discount' | 'volume_discount_tier' | 'analyze_deliveries_response' | 'analyze_manufacturing_response' | 'analyze_manufacturing_batch_response' | 'analyze_quarterly_orders_response' | 'analyze_new_customers_response' | 'analyze_oee_response' | 'catalog_product_line' | 'catalog_category' | 'catalog_product' | 'catalog_property' | 'catalog_attribute' | 'dc_location' | 'edi_run' | 'inventory_item' | 'analyze_weeks_of_sales_response' | 'bulk_reconcile_items_response' | 'sys_property' | 'sys_property_type' | 'sys_property_value' | 'territory' | 'tenancy' | 'checkout_session' | 'estimate_rate_result' | 'rate_shop_option' | 'rate_shop_result' | 'owner' | 'created_by' | 'message' | 'account_photo_upload_result' | 'user_photo_upload_result' | 'user_photo_url' | 'batch_lot' | 'check_duplicate_result' | 'item_trend_point' | 'pack_pick_response' | 'pick_shipments_response' | 'tenancy_pending_registration' | 'invoice_allocation_entry' | 'allocation_customer' | 'checkout_sales_order_response' | 'create_production_run_response' | 'sales_order_price_quote' | 'hubspot_sync_job' | 'hubspot_sync_report' | 'hubspot_company_review' | 'hubspot_company_candidate' | 'contact_match' | 'reply_draft' | 'conversation_link' | 'messaging_group' | 'messaging_group_member';
|
|
1287
|
+
/**
|
|
1288
|
+
* Filter by conversation type.
|
|
1289
|
+
*/
|
|
1290
|
+
type?: 'direct_message' | 'group' | 'system';
|
|
1291
|
+
/**
|
|
1292
|
+
* Support inbox: restrict to cases with no assignee.
|
|
1293
|
+
*/
|
|
1294
|
+
unassigned?: boolean;
|
|
1295
|
+
/**
|
|
1296
|
+
* Support inbox: filter external cases to a single triage lane.
|
|
1297
|
+
*/
|
|
1298
|
+
workflow_status?: 'new' | 'open' | 'waiting_internal' | 'waiting_external' | 'needs_approval' | 'resolved';
|
|
1299
|
+
}
|
|
1300
|
+
export interface ConversationRetrieveParams {
|
|
1301
|
+
/**
|
|
1302
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
1303
|
+
* `null`.
|
|
1304
|
+
*/
|
|
1305
|
+
include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
|
|
1306
|
+
}
|
|
1307
|
+
export interface ConversationUpdateParams {
|
|
1308
|
+
/**
|
|
1309
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
1310
|
+
* are returned as `null`.
|
|
1311
|
+
*/
|
|
1312
|
+
include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
|
|
1313
|
+
/**
|
|
1314
|
+
* Body param: New group title.
|
|
1315
|
+
*
|
|
1316
|
+
* Send `null` to clear the title; omit to leave it unchanged.
|
|
1317
|
+
*/
|
|
1318
|
+
title?: string | null;
|
|
1319
|
+
}
|
|
1320
|
+
export declare namespace Conversations {
|
|
1321
|
+
export { type AgentAction as AgentAction, type AgentDefinition as AgentDefinition, type AgentDefinitionConfig as AgentDefinitionConfig, type AgentDefinitionTool as AgentDefinitionTool, type AgentRun as AgentRun, type AgentRunStep as AgentRunStep, type AvailableTool as AvailableTool, type Conversation as Conversation, type ConversationParticipant as ConversationParticipant, type CreateConversationRequest as CreateConversationRequest, type ListAgentAction as ListAgentAction, type ListAgentDefinitionTool as ListAgentDefinitionTool, type ListAgentRunStep as ListAgentRunStep, type ListConversation as ListConversation, type ListConversationParticipant as ListConversationParticipant, type ListMessageAttachment as ListMessageAttachment, type ListMessagingGroupMember as ListMessagingGroupMember, type Message as Message, type MessageAttachment as MessageAttachment, type MessagingGroup as MessagingGroup, type MessagingGroupMember as MessagingGroupMember, type TriggerConfig as TriggerConfig, type UpdateConversationRequest as UpdateConversationRequest, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, type ConversationRetrieveParams as ConversationRetrieveParams, type ConversationUpdateParams as ConversationUpdateParams, };
|
|
1322
|
+
export { Actions as Actions, type AssignConversationRequest as AssignConversationRequest, type MarkConversationReadRequest as MarkConversationReadRequest, type MuteConversationRequest as MuteConversationRequest, type ReportConversationRequest as ReportConversationRequest, type SetLegalHoldRequest as SetLegalHoldRequest, type SetWorkflowStatusRequest as SetWorkflowStatusRequest, type ActionSetLegalHoldParams as ActionSetLegalHoldParams, type ActionRedactParams as ActionRedactParams, type ActionReadParams as ActionReadParams, type ActionArchiveParams as ActionArchiveParams, type ActionUnarchiveParams as ActionUnarchiveParams, type ActionLeaveParams as ActionLeaveParams, type ActionHideParams as ActionHideParams, type ActionUnhideParams as ActionUnhideParams, type ActionMuteParams as ActionMuteParams, type ActionUnmuteParams as ActionUnmuteParams, type ActionSetStatusParams as ActionSetStatusParams, type ActionAssignParams as ActionAssignParams, type ActionReportParams as ActionReportParams, };
|
|
1323
|
+
export { Links as Links, type AddConversationLinkRequest as AddConversationLinkRequest, type ConversationLink as ConversationLink, type ListConversationLink as ListConversationLink, type LinkDeleteResponse as LinkDeleteResponse, type LinkCreateParams as LinkCreateParams, type LinkDeleteParams as LinkDeleteParams, type LinkListParams as LinkListParams, };
|
|
1324
|
+
export { Messages as Messages, type ListMessage as ListMessage, type MessageAttachmentInput as MessageAttachmentInput, type SendMessageRequest as SendMessageRequest, type MessageCreateParams as MessageCreateParams, type MessageListParams as MessageListParams, };
|
|
1325
|
+
export { Participants as Participants, type AddParticipantRequest as AddParticipantRequest, type ParticipantDeleteResponse as ParticipantDeleteResponse, type ParticipantCreateParams as ParticipantCreateParams, type ParticipantDeleteParams as ParticipantDeleteParams, };
|
|
1326
|
+
export { Attachments as Attachments };
|
|
1327
|
+
}
|
|
1328
|
+
//# sourceMappingURL=conversations.d.mts.map
|