@getlatedev/node 0.2.1246 → 0.2.1247
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 +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +9 -6
package/dist/index.d.mts
CHANGED
|
@@ -18106,6 +18106,7 @@ type WorkflowEdge = {
|
|
|
18106
18106
|
* - **condition**: a rule's `id`, or `'default'` (no rule matched)
|
|
18107
18107
|
* - **wait_for_reply**: `'reply'` (contact replied) | `'timeout'` (no reply in window)
|
|
18108
18108
|
* - **webhook**: `'success'` (2xx) | `'error'` (non-2xx / fetch failed)
|
|
18109
|
+
* - **hubspot_upsert_contact**: `'success'` | `'error'` (not connected / HubSpot refused)
|
|
18109
18110
|
* - **ai**: `'success'` (text/JSON response) | `'tool:<toolName>'` (model invoked
|
|
18110
18111
|
* that tool) | `'error'` (upstream failure / non-JSON in JSON mode)
|
|
18111
18112
|
* - **start_call**: `'success'` | `'permission_required'` | `'failed'`
|
|
@@ -18170,14 +18171,14 @@ type WorkflowNode = {
|
|
|
18170
18171
|
*/
|
|
18171
18172
|
id: string;
|
|
18172
18173
|
/**
|
|
18173
|
-
* Node kind. The
|
|
18174
|
+
* Node kind. The 17 supported types break into four groups:
|
|
18174
18175
|
* messaging (send_message),
|
|
18175
18176
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
18176
18177
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
18177
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
18178
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
18178
18179
|
*
|
|
18179
18180
|
*/
|
|
18180
|
-
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18181
|
+
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18181
18182
|
/**
|
|
18182
18183
|
* Type-specific settings. All string fields support `{{variable}}` interpolation against the run's variable bag (resolved at execution time).
|
|
18183
18184
|
*
|
|
@@ -18198,6 +18199,8 @@ type WorkflowNode = {
|
|
|
18198
18199
|
*
|
|
18199
18200
|
* **webhook**: `{ url, method: GET|POST|PUT|PATCH|DELETE, headers, bodyTemplate, saveAs }`. SSRF-guarded (private/loopback/metadata IPs rejected). Response saved as `{ status, ok, body }` to `vars[saveAs]`. Edge: `'success'` on 2xx, `'error'` otherwise.
|
|
18200
18201
|
*
|
|
18202
|
+
* **hubspot_upsert_contact**: `{ email, phone, firstName, lastName, properties, saveAs }`. Creates or updates the run contact in the profile's connected HubSpot portal: the contact already linked by inbox sync, else one matching by email, then phone, is updated; otherwise one is created. An existing contact gets only the fields the node sets (a value that resolves to an empty string is skipped); a new one also takes the Zernio contact's name, email and phone for anything left out. `properties` maps HubSpot internal property names to values (at most 50). Saves `{ id, created }` (or `{ error }`) to `vars[saveAs]` (default `hubspotContact`). Edges: `'success'` | `'error'` (HubSpot not connected, or HubSpot refused the write).
|
|
18203
|
+
*
|
|
18201
18204
|
* **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'`.
|
|
18202
18205
|
*
|
|
18203
18206
|
* **handoff**: `{ note, assignTo }`. Terminates the run as `exited`, flags the conversation for a human operator.
|
|
@@ -18231,14 +18234,14 @@ type WorkflowNode = {
|
|
|
18231
18234
|
label?: string;
|
|
18232
18235
|
};
|
|
18233
18236
|
/**
|
|
18234
|
-
* Node kind. The
|
|
18237
|
+
* Node kind. The 17 supported types break into four groups:
|
|
18235
18238
|
* messaging (send_message),
|
|
18236
18239
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
18237
18240
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
18238
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
18241
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
18239
18242
|
*
|
|
18240
18243
|
*/
|
|
18241
|
-
type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18244
|
+
type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18242
18245
|
/**
|
|
18243
18246
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|
|
18244
18247
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -18106,6 +18106,7 @@ type WorkflowEdge = {
|
|
|
18106
18106
|
* - **condition**: a rule's `id`, or `'default'` (no rule matched)
|
|
18107
18107
|
* - **wait_for_reply**: `'reply'` (contact replied) | `'timeout'` (no reply in window)
|
|
18108
18108
|
* - **webhook**: `'success'` (2xx) | `'error'` (non-2xx / fetch failed)
|
|
18109
|
+
* - **hubspot_upsert_contact**: `'success'` | `'error'` (not connected / HubSpot refused)
|
|
18109
18110
|
* - **ai**: `'success'` (text/JSON response) | `'tool:<toolName>'` (model invoked
|
|
18110
18111
|
* that tool) | `'error'` (upstream failure / non-JSON in JSON mode)
|
|
18111
18112
|
* - **start_call**: `'success'` | `'permission_required'` | `'failed'`
|
|
@@ -18170,14 +18171,14 @@ type WorkflowNode = {
|
|
|
18170
18171
|
*/
|
|
18171
18172
|
id: string;
|
|
18172
18173
|
/**
|
|
18173
|
-
* Node kind. The
|
|
18174
|
+
* Node kind. The 17 supported types break into four groups:
|
|
18174
18175
|
* messaging (send_message),
|
|
18175
18176
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
18176
18177
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
18177
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
18178
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
18178
18179
|
*
|
|
18179
18180
|
*/
|
|
18180
|
-
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18181
|
+
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18181
18182
|
/**
|
|
18182
18183
|
* Type-specific settings. All string fields support `{{variable}}` interpolation against the run's variable bag (resolved at execution time).
|
|
18183
18184
|
*
|
|
@@ -18198,6 +18199,8 @@ type WorkflowNode = {
|
|
|
18198
18199
|
*
|
|
18199
18200
|
* **webhook**: `{ url, method: GET|POST|PUT|PATCH|DELETE, headers, bodyTemplate, saveAs }`. SSRF-guarded (private/loopback/metadata IPs rejected). Response saved as `{ status, ok, body }` to `vars[saveAs]`. Edge: `'success'` on 2xx, `'error'` otherwise.
|
|
18200
18201
|
*
|
|
18202
|
+
* **hubspot_upsert_contact**: `{ email, phone, firstName, lastName, properties, saveAs }`. Creates or updates the run contact in the profile's connected HubSpot portal: the contact already linked by inbox sync, else one matching by email, then phone, is updated; otherwise one is created. An existing contact gets only the fields the node sets (a value that resolves to an empty string is skipped); a new one also takes the Zernio contact's name, email and phone for anything left out. `properties` maps HubSpot internal property names to values (at most 50). Saves `{ id, created }` (or `{ error }`) to `vars[saveAs]` (default `hubspotContact`). Edges: `'success'` | `'error'` (HubSpot not connected, or HubSpot refused the write).
|
|
18203
|
+
*
|
|
18201
18204
|
* **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'`.
|
|
18202
18205
|
*
|
|
18203
18206
|
* **handoff**: `{ note, assignTo }`. Terminates the run as `exited`, flags the conversation for a human operator.
|
|
@@ -18231,14 +18234,14 @@ type WorkflowNode = {
|
|
|
18231
18234
|
label?: string;
|
|
18232
18235
|
};
|
|
18233
18236
|
/**
|
|
18234
|
-
* Node kind. The
|
|
18237
|
+
* Node kind. The 17 supported types break into four groups:
|
|
18235
18238
|
* messaging (send_message),
|
|
18236
18239
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
18237
18240
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
18238
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
18241
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
18239
18242
|
*
|
|
18240
18243
|
*/
|
|
18241
|
-
type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18244
|
+
type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
18242
18245
|
/**
|
|
18243
18246
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|
|
18244
18247
|
*/
|
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.
|
|
39
|
+
version: "0.2.1247",
|
|
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.
|
|
8
|
+
version: "0.2.1247",
|
|
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
|
@@ -16779,6 +16779,7 @@ export type WorkflowEdge = {
|
|
|
16779
16779
|
* - **condition**: a rule's `id`, or `'default'` (no rule matched)
|
|
16780
16780
|
* - **wait_for_reply**: `'reply'` (contact replied) | `'timeout'` (no reply in window)
|
|
16781
16781
|
* - **webhook**: `'success'` (2xx) | `'error'` (non-2xx / fetch failed)
|
|
16782
|
+
* - **hubspot_upsert_contact**: `'success'` | `'error'` (not connected / HubSpot refused)
|
|
16782
16783
|
* - **ai**: `'success'` (text/JSON response) | `'tool:<toolName>'` (model invoked
|
|
16783
16784
|
* that tool) | `'error'` (upstream failure / non-JSON in JSON mode)
|
|
16784
16785
|
* - **start_call**: `'success'` | `'permission_required'` | `'failed'`
|
|
@@ -16847,14 +16848,14 @@ export type WorkflowNode = {
|
|
|
16847
16848
|
*/
|
|
16848
16849
|
id: string;
|
|
16849
16850
|
/**
|
|
16850
|
-
* Node kind. The
|
|
16851
|
+
* Node kind. The 17 supported types break into four groups:
|
|
16851
16852
|
* messaging (send_message),
|
|
16852
16853
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
16853
16854
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
16854
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
16855
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
16855
16856
|
*
|
|
16856
16857
|
*/
|
|
16857
|
-
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16858
|
+
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16858
16859
|
/**
|
|
16859
16860
|
* Type-specific settings. All string fields support `{{variable}}` interpolation against the run's variable bag (resolved at execution time).
|
|
16860
16861
|
*
|
|
@@ -16875,6 +16876,8 @@ export type WorkflowNode = {
|
|
|
16875
16876
|
*
|
|
16876
16877
|
* **webhook**: `{ url, method: GET|POST|PUT|PATCH|DELETE, headers, bodyTemplate, saveAs }`. SSRF-guarded (private/loopback/metadata IPs rejected). Response saved as `{ status, ok, body }` to `vars[saveAs]`. Edge: `'success'` on 2xx, `'error'` otherwise.
|
|
16877
16878
|
*
|
|
16879
|
+
* **hubspot_upsert_contact**: `{ email, phone, firstName, lastName, properties, saveAs }`. Creates or updates the run contact in the profile's connected HubSpot portal: the contact already linked by inbox sync, else one matching by email, then phone, is updated; otherwise one is created. An existing contact gets only the fields the node sets (a value that resolves to an empty string is skipped); a new one also takes the Zernio contact's name, email and phone for anything left out. `properties` maps HubSpot internal property names to values (at most 50). Saves `{ id, created }` (or `{ error }`) to `vars[saveAs]` (default `hubspotContact`). Edges: `'success'` | `'error'` (HubSpot not connected, or HubSpot refused the write).
|
|
16880
|
+
*
|
|
16878
16881
|
* **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'`.
|
|
16879
16882
|
*
|
|
16880
16883
|
* **handoff**: `{ note, assignTo }`. Terminates the run as `exited`, flags the conversation for a human operator.
|
|
@@ -16909,14 +16912,14 @@ export type WorkflowNode = {
|
|
|
16909
16912
|
};
|
|
16910
16913
|
|
|
16911
16914
|
/**
|
|
16912
|
-
* Node kind. The
|
|
16915
|
+
* Node kind. The 17 supported types break into four groups:
|
|
16913
16916
|
* messaging (send_message),
|
|
16914
16917
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
16915
16918
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
16916
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
16919
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
16917
16920
|
*
|
|
16918
16921
|
*/
|
|
16919
|
-
export type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16922
|
+
export type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16920
16923
|
|
|
16921
16924
|
/**
|
|
16922
16925
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|