@getlatedev/node 0.2.1767 → 0.2.1769

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/dist/index.d.mts CHANGED
@@ -32634,6 +32634,7 @@ type WorkflowEdge = {
32634
32634
  * - **hubspot_upsert_contact**: `'success'` | `'error'` (not connected / HubSpot refused)
32635
32635
  * - **salesforce_upsert_contact**: `'success'` | `'error'` (not connected / Salesforce refused)
32636
32636
  * - **gohighlevel_upsert_contact**: `'success'` | `'error'` (not connected / HighLevel refused)
32637
+ * - **crm_upsert_deal**, **crm_add_note**, **crm_create_task**: `'success'` | `'error'` (not connected / the CRM refused)
32637
32638
  * - **ai**: `'success'` (text/JSON response) | `'tool:<toolName>'` (model invoked that tool) | `'error'` (upstream failure / non-JSON in JSON mode)
32638
32639
  * - **start_call**: `'success'` | `'permission_required'` | `'failed'`
32639
32640
  * - **a_b_split**: `'a'` | `'b'`
@@ -32697,14 +32698,14 @@ type WorkflowNode = {
32697
32698
  */
32698
32699
  id: string;
32699
32700
  /**
32700
- * Node kind. The 19 supported types break into four groups:
32701
+ * Node kind. The 22 supported types break into four groups:
32701
32702
  * messaging (send_message),
32702
32703
  * control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
32703
32704
  * data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
32704
- * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, ai, handoff, start_call).
32705
+ * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, crm_upsert_deal, crm_add_note, crm_create_task, ai, handoff, start_call).
32705
32706
  *
32706
32707
  */
32707
- type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32708
+ type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'crm_upsert_deal' | 'crm_add_note' | 'crm_create_task' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32708
32709
  /**
32709
32710
  * Type-specific settings. Every string field supports `{{variable}}` interpolation against the run's variable bag, resolved at execution time.
32710
32711
  *
@@ -32811,6 +32812,33 @@ type WorkflowNode = {
32811
32812
  * - Saves `{ id, created }`, or `{ error }`, to `vars[saveAs]` (default `gohighlevelContact`).
32812
32813
  * - Edges: `'success'` | `'error'` (HighLevel not connected, or HighLevel refused the write).
32813
32814
  *
32815
+ * **CRM record steps** (`crm_upsert_deal`, `crm_add_note`, `crm_create_task`) take `crm` (`hubspot` | `salesforce` | `gohighlevel`) and write to the profile's connected CRM.
32816
+ *
32817
+ * - `contactId` is the CRM record id (such as `{{hubspotContact.id}}`). Empty means the run contact's record, found the way that CRM's contact step finds it (linked, email, phone) and created when missing.
32818
+ * - A value that resolves to an empty string is left out.
32819
+ * - Edges: `'success'` | `'error'` (CRM not connected, a value it refused, its rate limit, or a reconnect it needs). The error is saved as `{ error }` to `vars[saveAs]`.
32820
+ *
32821
+ * **crm_upsert_deal**: `{ crm, contactId, dealId, name, stage, pipeline, amount, closeDate, ownerId, properties, saveAs }`. HubSpot and Salesforce only.
32822
+ *
32823
+ * - Without `dealId` it creates a HubSpot deal (in `pipeline`, default `default`) or a Salesforce Opportunity, associated with the contact. `name` and `stage` are required, and Salesforce also needs `closeDate`.
32824
+ * - A Salesforce Opportunity goes on the Contact's Account with the Contact as its primary contact role. A Lead cannot hold one.
32825
+ * - With `dealId` it updates that deal with the fields set.
32826
+ * - `amount` is a number and `closeDate` is `YYYY-MM-DD`, both after interpolation. `stage` and `pipeline` are the CRM's ids, and `ownerId` is a CRM user id. `properties` maps native field names to values (at most 50).
32827
+ * - Saves `{ id, created, stage, url }` to `vars[saveAs]` (default `crmDeal`).
32828
+ *
32829
+ * **crm_add_note**: `{ crm, contactId, dealId, subject, body, includeTranscript, transcriptMessages, saveAs }`. Logs a note on the contact, or on `dealId` (HubSpot and Salesforce).
32830
+ *
32831
+ * - HubSpot logs a note. Salesforce logs a completed Task, and HighLevel a contact note.
32832
+ * - `includeTranscript` appends the last `transcriptMessages` (1 to 50, default 20) messages of the run's conversation.
32833
+ * - A profile that keeps no message content gets the note without them, and a note that would be empty is not written (`vars[saveAs]` is `{ skipped }`).
32834
+ * - Needs `body` or `includeTranscript`. Saves `{ id, contactId }` or `{ id, dealId }` to `vars[saveAs]` (default `crmNote`).
32835
+ *
32836
+ * **crm_create_task**: `{ crm, contactId, subject, body, dueInDays, ownerId, priority, saveAs }`. Creates an open task on the contact.
32837
+ *
32838
+ * - The task is due `dueInDays` (0 to 365, default 0) after the step runs and is assigned to `ownerId` (a CRM user id) when set.
32839
+ * - `priority` is `low` | `medium` | `high`.
32840
+ * - Saves `{ id, contactId, dueAt }` to `vars[saveAs]` (default `crmTask`).
32841
+ *
32814
32842
  * **ai**: `{ provider: anthropic|openai|google|mistral|groq|openrouter, model, preset: smart|tools|cheap, systemPrompt, userPromptTemplate, saveAs, temperature, maxTokens, outputType: text|json, tools:[{ name, description, parameters }] }`. Set `provider` + `model` for BYOK (uses your stored API key); omit `provider` for the legacy Telnyx path. Edges: `'success'`, `'tool:<name>'` (model picked a tool), `'error'`.
32815
32843
  *
32816
32844
  * **handoff**: `{ note, assignTo }`. Terminates the run as `exited` and flags the conversation for a human operator.
@@ -32844,14 +32872,14 @@ type WorkflowNode = {
32844
32872
  label?: string;
32845
32873
  };
32846
32874
  /**
32847
- * Node kind. The 19 supported types break into four groups:
32875
+ * Node kind. The 22 supported types break into four groups:
32848
32876
  * messaging (send_message),
32849
32877
  * control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
32850
32878
  * data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
32851
- * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, ai, handoff, start_call).
32879
+ * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, crm_upsert_deal, crm_add_note, crm_create_task, ai, handoff, start_call).
32852
32880
  *
32853
32881
  */
32854
- type type42 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32882
+ type type42 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'crm_upsert_deal' | 'crm_add_note' | 'crm_create_task' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32855
32883
  type Workspace = {
32856
32884
  id?: string;
32857
32885
  name?: string;
@@ -40006,11 +40034,15 @@ type GetAccountHealthResponse = ({
40006
40034
  */
40007
40035
  canSendMessage?: (string) | null;
40008
40036
  /**
40009
- * The health_status entities that are not `AVAILABLE`, one item per Meta error, with calling-only signals (138024, 138025) removed. `null` when the read failed.
40037
+ * The reasons on health_status entities that are not `AVAILABLE`. `null` when the read failed.
40038
+ *
40039
+ * - One item per Meta error, with calling-only signals (138024, 138025) removed.
40040
+ * - A `LIMITED` entity also gets one item per line of its `additional_info`, where Meta writes most reasons for a limit (for example a quality warning). These have `code` null.
40041
+ *
40010
40042
  */
40011
40043
  messagingBlockers?: Array<{
40012
40044
  /**
40013
- * Meta entity the error is on (for example WABA, BUSINESS)
40045
+ * Meta entity the reason is on (for example PHONE_NUMBER, WABA, BUSINESS)
40014
40046
  */
40015
40047
  entityType?: (string) | null;
40016
40048
  /**
@@ -40018,11 +40050,11 @@ type GetAccountHealthResponse = ({
40018
40050
  */
40019
40051
  canSendMessage?: string;
40020
40052
  /**
40021
- * Meta error code
40053
+ * Meta error code. `null` for an `additional_info` line.
40022
40054
  */
40023
40055
  code?: (number) | null;
40024
40056
  /**
40025
- * Meta's error description
40057
+ * Meta's error description, or the `additional_info` line as Meta wrote it
40026
40058
  */
40027
40059
  description?: string;
40028
40060
  /**
package/dist/index.d.ts CHANGED
@@ -32634,6 +32634,7 @@ type WorkflowEdge = {
32634
32634
  * - **hubspot_upsert_contact**: `'success'` | `'error'` (not connected / HubSpot refused)
32635
32635
  * - **salesforce_upsert_contact**: `'success'` | `'error'` (not connected / Salesforce refused)
32636
32636
  * - **gohighlevel_upsert_contact**: `'success'` | `'error'` (not connected / HighLevel refused)
32637
+ * - **crm_upsert_deal**, **crm_add_note**, **crm_create_task**: `'success'` | `'error'` (not connected / the CRM refused)
32637
32638
  * - **ai**: `'success'` (text/JSON response) | `'tool:<toolName>'` (model invoked that tool) | `'error'` (upstream failure / non-JSON in JSON mode)
32638
32639
  * - **start_call**: `'success'` | `'permission_required'` | `'failed'`
32639
32640
  * - **a_b_split**: `'a'` | `'b'`
@@ -32697,14 +32698,14 @@ type WorkflowNode = {
32697
32698
  */
32698
32699
  id: string;
32699
32700
  /**
32700
- * Node kind. The 19 supported types break into four groups:
32701
+ * Node kind. The 22 supported types break into four groups:
32701
32702
  * messaging (send_message),
32702
32703
  * control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
32703
32704
  * data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
32704
- * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, ai, handoff, start_call).
32705
+ * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, crm_upsert_deal, crm_add_note, crm_create_task, ai, handoff, start_call).
32705
32706
  *
32706
32707
  */
32707
- type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32708
+ type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'crm_upsert_deal' | 'crm_add_note' | 'crm_create_task' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32708
32709
  /**
32709
32710
  * Type-specific settings. Every string field supports `{{variable}}` interpolation against the run's variable bag, resolved at execution time.
32710
32711
  *
@@ -32811,6 +32812,33 @@ type WorkflowNode = {
32811
32812
  * - Saves `{ id, created }`, or `{ error }`, to `vars[saveAs]` (default `gohighlevelContact`).
32812
32813
  * - Edges: `'success'` | `'error'` (HighLevel not connected, or HighLevel refused the write).
32813
32814
  *
32815
+ * **CRM record steps** (`crm_upsert_deal`, `crm_add_note`, `crm_create_task`) take `crm` (`hubspot` | `salesforce` | `gohighlevel`) and write to the profile's connected CRM.
32816
+ *
32817
+ * - `contactId` is the CRM record id (such as `{{hubspotContact.id}}`). Empty means the run contact's record, found the way that CRM's contact step finds it (linked, email, phone) and created when missing.
32818
+ * - A value that resolves to an empty string is left out.
32819
+ * - Edges: `'success'` | `'error'` (CRM not connected, a value it refused, its rate limit, or a reconnect it needs). The error is saved as `{ error }` to `vars[saveAs]`.
32820
+ *
32821
+ * **crm_upsert_deal**: `{ crm, contactId, dealId, name, stage, pipeline, amount, closeDate, ownerId, properties, saveAs }`. HubSpot and Salesforce only.
32822
+ *
32823
+ * - Without `dealId` it creates a HubSpot deal (in `pipeline`, default `default`) or a Salesforce Opportunity, associated with the contact. `name` and `stage` are required, and Salesforce also needs `closeDate`.
32824
+ * - A Salesforce Opportunity goes on the Contact's Account with the Contact as its primary contact role. A Lead cannot hold one.
32825
+ * - With `dealId` it updates that deal with the fields set.
32826
+ * - `amount` is a number and `closeDate` is `YYYY-MM-DD`, both after interpolation. `stage` and `pipeline` are the CRM's ids, and `ownerId` is a CRM user id. `properties` maps native field names to values (at most 50).
32827
+ * - Saves `{ id, created, stage, url }` to `vars[saveAs]` (default `crmDeal`).
32828
+ *
32829
+ * **crm_add_note**: `{ crm, contactId, dealId, subject, body, includeTranscript, transcriptMessages, saveAs }`. Logs a note on the contact, or on `dealId` (HubSpot and Salesforce).
32830
+ *
32831
+ * - HubSpot logs a note. Salesforce logs a completed Task, and HighLevel a contact note.
32832
+ * - `includeTranscript` appends the last `transcriptMessages` (1 to 50, default 20) messages of the run's conversation.
32833
+ * - A profile that keeps no message content gets the note without them, and a note that would be empty is not written (`vars[saveAs]` is `{ skipped }`).
32834
+ * - Needs `body` or `includeTranscript`. Saves `{ id, contactId }` or `{ id, dealId }` to `vars[saveAs]` (default `crmNote`).
32835
+ *
32836
+ * **crm_create_task**: `{ crm, contactId, subject, body, dueInDays, ownerId, priority, saveAs }`. Creates an open task on the contact.
32837
+ *
32838
+ * - The task is due `dueInDays` (0 to 365, default 0) after the step runs and is assigned to `ownerId` (a CRM user id) when set.
32839
+ * - `priority` is `low` | `medium` | `high`.
32840
+ * - Saves `{ id, contactId, dueAt }` to `vars[saveAs]` (default `crmTask`).
32841
+ *
32814
32842
  * **ai**: `{ provider: anthropic|openai|google|mistral|groq|openrouter, model, preset: smart|tools|cheap, systemPrompt, userPromptTemplate, saveAs, temperature, maxTokens, outputType: text|json, tools:[{ name, description, parameters }] }`. Set `provider` + `model` for BYOK (uses your stored API key); omit `provider` for the legacy Telnyx path. Edges: `'success'`, `'tool:<name>'` (model picked a tool), `'error'`.
32815
32843
  *
32816
32844
  * **handoff**: `{ note, assignTo }`. Terminates the run as `exited` and flags the conversation for a human operator.
@@ -32844,14 +32872,14 @@ type WorkflowNode = {
32844
32872
  label?: string;
32845
32873
  };
32846
32874
  /**
32847
- * Node kind. The 19 supported types break into four groups:
32875
+ * Node kind. The 22 supported types break into four groups:
32848
32876
  * messaging (send_message),
32849
32877
  * control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
32850
32878
  * data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
32851
- * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, ai, handoff, start_call).
32879
+ * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, crm_upsert_deal, crm_add_note, crm_create_task, ai, handoff, start_call).
32852
32880
  *
32853
32881
  */
32854
- type type42 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32882
+ type type42 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'crm_upsert_deal' | 'crm_add_note' | 'crm_create_task' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
32855
32883
  type Workspace = {
32856
32884
  id?: string;
32857
32885
  name?: string;
@@ -40006,11 +40034,15 @@ type GetAccountHealthResponse = ({
40006
40034
  */
40007
40035
  canSendMessage?: (string) | null;
40008
40036
  /**
40009
- * The health_status entities that are not `AVAILABLE`, one item per Meta error, with calling-only signals (138024, 138025) removed. `null` when the read failed.
40037
+ * The reasons on health_status entities that are not `AVAILABLE`. `null` when the read failed.
40038
+ *
40039
+ * - One item per Meta error, with calling-only signals (138024, 138025) removed.
40040
+ * - A `LIMITED` entity also gets one item per line of its `additional_info`, where Meta writes most reasons for a limit (for example a quality warning). These have `code` null.
40041
+ *
40010
40042
  */
40011
40043
  messagingBlockers?: Array<{
40012
40044
  /**
40013
- * Meta entity the error is on (for example WABA, BUSINESS)
40045
+ * Meta entity the reason is on (for example PHONE_NUMBER, WABA, BUSINESS)
40014
40046
  */
40015
40047
  entityType?: (string) | null;
40016
40048
  /**
@@ -40018,11 +40050,11 @@ type GetAccountHealthResponse = ({
40018
40050
  */
40019
40051
  canSendMessage?: string;
40020
40052
  /**
40021
- * Meta error code
40053
+ * Meta error code. `null` for an `additional_info` line.
40022
40054
  */
40023
40055
  code?: (number) | null;
40024
40056
  /**
40025
- * Meta's error description
40057
+ * Meta's error description, or the `additional_info` line as Meta wrote it
40026
40058
  */
40027
40059
  description?: string;
40028
40060
  /**
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1767",
39
+ version: "0.2.1769",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1767",
8
+ version: "0.2.1769",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1767",
3
+ "version": "0.2.1769",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31354,6 +31354,7 @@ export type WorkflowEdge = {
31354
31354
  * - **hubspot_upsert_contact**: `'success'` | `'error'` (not connected / HubSpot refused)
31355
31355
  * - **salesforce_upsert_contact**: `'success'` | `'error'` (not connected / Salesforce refused)
31356
31356
  * - **gohighlevel_upsert_contact**: `'success'` | `'error'` (not connected / HighLevel refused)
31357
+ * - **crm_upsert_deal**, **crm_add_note**, **crm_create_task**: `'success'` | `'error'` (not connected / the CRM refused)
31357
31358
  * - **ai**: `'success'` (text/JSON response) | `'tool:<toolName>'` (model invoked that tool) | `'error'` (upstream failure / non-JSON in JSON mode)
31358
31359
  * - **start_call**: `'success'` | `'permission_required'` | `'failed'`
31359
31360
  * - **a_b_split**: `'a'` | `'b'`
@@ -31421,14 +31422,14 @@ export type WorkflowNode = {
31421
31422
  */
31422
31423
  id: string;
31423
31424
  /**
31424
- * Node kind. The 19 supported types break into four groups:
31425
+ * Node kind. The 22 supported types break into four groups:
31425
31426
  * messaging (send_message),
31426
31427
  * control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
31427
31428
  * data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
31428
- * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, ai, handoff, start_call).
31429
+ * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, crm_upsert_deal, crm_add_note, crm_create_task, ai, handoff, start_call).
31429
31430
  *
31430
31431
  */
31431
- type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
31432
+ type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'crm_upsert_deal' | 'crm_add_note' | 'crm_create_task' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
31432
31433
  /**
31433
31434
  * Type-specific settings. Every string field supports `{{variable}}` interpolation against the run's variable bag, resolved at execution time.
31434
31435
  *
@@ -31535,6 +31536,33 @@ export type WorkflowNode = {
31535
31536
  * - Saves `{ id, created }`, or `{ error }`, to `vars[saveAs]` (default `gohighlevelContact`).
31536
31537
  * - Edges: `'success'` | `'error'` (HighLevel not connected, or HighLevel refused the write).
31537
31538
  *
31539
+ * **CRM record steps** (`crm_upsert_deal`, `crm_add_note`, `crm_create_task`) take `crm` (`hubspot` | `salesforce` | `gohighlevel`) and write to the profile's connected CRM.
31540
+ *
31541
+ * - `contactId` is the CRM record id (such as `{{hubspotContact.id}}`). Empty means the run contact's record, found the way that CRM's contact step finds it (linked, email, phone) and created when missing.
31542
+ * - A value that resolves to an empty string is left out.
31543
+ * - Edges: `'success'` | `'error'` (CRM not connected, a value it refused, its rate limit, or a reconnect it needs). The error is saved as `{ error }` to `vars[saveAs]`.
31544
+ *
31545
+ * **crm_upsert_deal**: `{ crm, contactId, dealId, name, stage, pipeline, amount, closeDate, ownerId, properties, saveAs }`. HubSpot and Salesforce only.
31546
+ *
31547
+ * - Without `dealId` it creates a HubSpot deal (in `pipeline`, default `default`) or a Salesforce Opportunity, associated with the contact. `name` and `stage` are required, and Salesforce also needs `closeDate`.
31548
+ * - A Salesforce Opportunity goes on the Contact's Account with the Contact as its primary contact role. A Lead cannot hold one.
31549
+ * - With `dealId` it updates that deal with the fields set.
31550
+ * - `amount` is a number and `closeDate` is `YYYY-MM-DD`, both after interpolation. `stage` and `pipeline` are the CRM's ids, and `ownerId` is a CRM user id. `properties` maps native field names to values (at most 50).
31551
+ * - Saves `{ id, created, stage, url }` to `vars[saveAs]` (default `crmDeal`).
31552
+ *
31553
+ * **crm_add_note**: `{ crm, contactId, dealId, subject, body, includeTranscript, transcriptMessages, saveAs }`. Logs a note on the contact, or on `dealId` (HubSpot and Salesforce).
31554
+ *
31555
+ * - HubSpot logs a note. Salesforce logs a completed Task, and HighLevel a contact note.
31556
+ * - `includeTranscript` appends the last `transcriptMessages` (1 to 50, default 20) messages of the run's conversation.
31557
+ * - A profile that keeps no message content gets the note without them, and a note that would be empty is not written (`vars[saveAs]` is `{ skipped }`).
31558
+ * - Needs `body` or `includeTranscript`. Saves `{ id, contactId }` or `{ id, dealId }` to `vars[saveAs]` (default `crmNote`).
31559
+ *
31560
+ * **crm_create_task**: `{ crm, contactId, subject, body, dueInDays, ownerId, priority, saveAs }`. Creates an open task on the contact.
31561
+ *
31562
+ * - The task is due `dueInDays` (0 to 365, default 0) after the step runs and is assigned to `ownerId` (a CRM user id) when set.
31563
+ * - `priority` is `low` | `medium` | `high`.
31564
+ * - Saves `{ id, contactId, dueAt }` to `vars[saveAs]` (default `crmTask`).
31565
+ *
31538
31566
  * **ai**: `{ provider: anthropic|openai|google|mistral|groq|openrouter, model, preset: smart|tools|cheap, systemPrompt, userPromptTemplate, saveAs, temperature, maxTokens, outputType: text|json, tools:[{ name, description, parameters }] }`. Set `provider` + `model` for BYOK (uses your stored API key); omit `provider` for the legacy Telnyx path. Edges: `'success'`, `'tool:<name>'` (model picked a tool), `'error'`.
31539
31567
  *
31540
31568
  * **handoff**: `{ note, assignTo }`. Terminates the run as `exited` and flags the conversation for a human operator.
@@ -31569,14 +31597,14 @@ export type WorkflowNode = {
31569
31597
  };
31570
31598
 
31571
31599
  /**
31572
- * Node kind. The 19 supported types break into four groups:
31600
+ * Node kind. The 22 supported types break into four groups:
31573
31601
  * messaging (send_message),
31574
31602
  * control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
31575
31603
  * data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
31576
- * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, ai, handoff, start_call).
31604
+ * integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, crm_upsert_deal, crm_add_note, crm_create_task, ai, handoff, start_call).
31577
31605
  *
31578
31606
  */
31579
- export type type42 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
31607
+ export type type42 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'salesforce_upsert_contact' | 'gohighlevel_upsert_contact' | 'crm_upsert_deal' | 'crm_add_note' | 'crm_create_task' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
31580
31608
 
31581
31609
  export type Workspace = {
31582
31610
  id?: string;
@@ -39183,11 +39211,15 @@ export type GetAccountHealthResponse = ({
39183
39211
  */
39184
39212
  canSendMessage?: (string) | null;
39185
39213
  /**
39186
- * The health_status entities that are not `AVAILABLE`, one item per Meta error, with calling-only signals (138024, 138025) removed. `null` when the read failed.
39214
+ * The reasons on health_status entities that are not `AVAILABLE`. `null` when the read failed.
39215
+ *
39216
+ * - One item per Meta error, with calling-only signals (138024, 138025) removed.
39217
+ * - A `LIMITED` entity also gets one item per line of its `additional_info`, where Meta writes most reasons for a limit (for example a quality warning). These have `code` null.
39218
+ *
39187
39219
  */
39188
39220
  messagingBlockers?: Array<{
39189
39221
  /**
39190
- * Meta entity the error is on (for example WABA, BUSINESS)
39222
+ * Meta entity the reason is on (for example PHONE_NUMBER, WABA, BUSINESS)
39191
39223
  */
39192
39224
  entityType?: (string) | null;
39193
39225
  /**
@@ -39195,11 +39227,11 @@ export type GetAccountHealthResponse = ({
39195
39227
  */
39196
39228
  canSendMessage?: string;
39197
39229
  /**
39198
- * Meta error code
39230
+ * Meta error code. `null` for an `additional_info` line.
39199
39231
  */
39200
39232
  code?: (number) | null;
39201
39233
  /**
39202
- * Meta's error description
39234
+ * Meta's error description, or the `additional_info` line as Meta wrote it
39203
39235
  */
39204
39236
  description?: string;
39205
39237
  /**