@wayai/cli 0.3.257 → 0.3.259
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.js +139 -114
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5700,10 +5700,10 @@ var init_chunk_ACKF2MVU = __esm({
|
|
|
5700
5700
|
}
|
|
5701
5701
|
});
|
|
5702
5702
|
|
|
5703
|
-
// ../../packages/core/dist/chunk-
|
|
5703
|
+
// ../../packages/core/dist/chunk-GPYAZPH7.js
|
|
5704
5704
|
var accessExplainQuery;
|
|
5705
|
-
var
|
|
5706
|
-
"../../packages/core/dist/chunk-
|
|
5705
|
+
var init_chunk_GPYAZPH7 = __esm({
|
|
5706
|
+
"../../packages/core/dist/chunk-GPYAZPH7.js"() {
|
|
5707
5707
|
"use strict";
|
|
5708
5708
|
init_chunk_HZ6CADSY();
|
|
5709
5709
|
init_zod();
|
|
@@ -6636,7 +6636,7 @@ var init_chunk_Y7CFCYX4 = __esm({
|
|
|
6636
6636
|
}
|
|
6637
6637
|
});
|
|
6638
6638
|
|
|
6639
|
-
// ../../packages/core/dist/chunk-
|
|
6639
|
+
// ../../packages/core/dist/chunk-LOCEO2KI.js
|
|
6640
6640
|
function normalizeContactPhone(raw) {
|
|
6641
6641
|
const compact = raw.trim().replace(/[\s\-.()]/g, "");
|
|
6642
6642
|
const withPlus = compact.startsWith("00") ? `+${compact.slice(2)}` : compact;
|
|
@@ -6649,8 +6649,8 @@ function importRowLabels(row, batchLabels) {
|
|
|
6649
6649
|
return [.../* @__PURE__ */ new Set([...row.labels ?? [], ...batchLabels ?? []])];
|
|
6650
6650
|
}
|
|
6651
6651
|
var CONTACT_ENVIRONMENTS, CONTACT_NAME_MAX, CONTACT_EMAIL_MAX, CONTACT_PHONE_INPUT_MAX, CONTACT_INSTAGRAM_SID_MAX, CONTACT_METADATA_MAX_BYTES, CONTACT_LABEL_MAX, CONTACT_LABELS_MAX, CONTACT_SCOPE_TAGS_MAX, CONTACT_PAGE_MAX, CONTACT_IMPORT_BATCH_MAX, CONTACT_SEARCH_MAX, CONTACT_LIST_NAME_MAX, CONTACT_LIST_NAME_REGEX, CONTACT_LIST_DESCRIPTION_MAX, CONTACT_LIST_FILTER_MAX, CONTACT_LIST_PINS_PER_REQUEST_MAX, SUPPRESSION_SCOPES, SUPPRESSION_ID_REGEX, contactName, contactPhone, contactEmail, contactInstagramSid, contactLabel, contactLabels, contactMetadata, scopeTagIds, contactVisibilitySchema, hasIdentity, IDENTITY_REQUIRED, contactBookOrgQuery, contactBookContactParam, contactBookListParam, contactBookHubParam, contactBookPageQuery, listContactBookContactsQuery, listHubContactBookContactsQuery, contactBookLinkCandidatesQuery, listContactBookListMembersQuery, contactRowFields, createContactBookContactBody, updateContactBookContactBody, contactImportRowSchema, importContactBookContactsBody, linkContactBookContactBody, CONTACT_CUSTOMER_BASE_ID_PATTERN, baseId, recordId, linkContactCustomerBody, unlinkContactCustomerQuery, listName, contactListFilterSchema, createContactBookListBody, updateContactBookListBody, updateContactBookListPinsBody, suppressionIdentitySchema, createContactBookSuppressionBody, contactBookSuppressionParam, listContactBookSuppressionsQuery, contactBookEmailUnsubscribeTokenSchema, contactBookEmailUnsubscribeQuery, orgListReferenceSchema;
|
|
6652
|
-
var
|
|
6653
|
-
"../../packages/core/dist/chunk-
|
|
6652
|
+
var init_chunk_LOCEO2KI = __esm({
|
|
6653
|
+
"../../packages/core/dist/chunk-LOCEO2KI.js"() {
|
|
6654
6654
|
"use strict";
|
|
6655
6655
|
init_zod();
|
|
6656
6656
|
CONTACT_ENVIRONMENTS = ["production", "preview", "all"];
|
|
@@ -6821,12 +6821,12 @@ var init_chunk_LIDKVVXZ = __esm({
|
|
|
6821
6821
|
}
|
|
6822
6822
|
});
|
|
6823
6823
|
|
|
6824
|
-
// ../../packages/core/dist/chunk-
|
|
6824
|
+
// ../../packages/core/dist/chunk-OZC45RYU.js
|
|
6825
6825
|
var PERSON_ID_PATTERN, CONTACT_PERSON_ID_PATTERN, PERSON_DENY_PAGE_MAX, PERSON_ID_FORM_MESSAGE, userPersonIdSchema, personIdSchema, personParam, personLinkParam, deniedPersonParam, listDeniedPersonsQuery;
|
|
6826
|
-
var
|
|
6827
|
-
"../../packages/core/dist/chunk-
|
|
6826
|
+
var init_chunk_OZC45RYU = __esm({
|
|
6827
|
+
"../../packages/core/dist/chunk-OZC45RYU.js"() {
|
|
6828
6828
|
"use strict";
|
|
6829
|
-
|
|
6829
|
+
init_chunk_LOCEO2KI();
|
|
6830
6830
|
init_zod();
|
|
6831
6831
|
PERSON_ID_PATTERN = /^prs_[a-z2-7]{52}$/;
|
|
6832
6832
|
CONTACT_PERSON_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
@@ -6998,10 +6998,10 @@ var init_chunk_FPSDNS2E = __esm({
|
|
|
6998
6998
|
}
|
|
6999
6999
|
});
|
|
7000
7000
|
|
|
7001
|
-
// ../../packages/core/dist/chunk-
|
|
7001
|
+
// ../../packages/core/dist/chunk-M4FCOW6Q.js
|
|
7002
7002
|
var REKOR_ACTOR_TYPE_HEADER, REKOR_ACTOR_ID_HEADER, REKOR_ACTOR_LABEL_HEADER, REKOR_ACTOR_ORG_HEADER, REKOR_ACTOR_ADMIN_HEADER, REKOR_CLIENT_HEADER, REKOR_TOOL_ID_HEADER, REKOR_CLIENTS, rekorClientSchema, MAX_REKOR_TOOL_ID_LENGTH, rekorToolIdSchema, REKOR_V1_PREFIX, DATA_PROXY_ORG_QUERY_PARAM, MAX_PROVISIONING_BODY_BYTES, dataProxyQuery, rekorAttestation, REQUIRED_REKOR_ATTESTATION_HEADERS, REKOR_BOUND_BASE_HEADER, REKOR_BOUND_TOOLSET_HEADER, REKOR_BOUND_TOKEN_HEADER, REKOR_BOUND_CUSTOMER_HEADER, REKOR_BOUND_ACCESS_HEADER, REKOR_BOUND_ACCESS_SCOPE_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_BOUND_PERSON_HEADER, REKOR_PERSON_AUDIENCE_STAFF, REKOR_PERSON_AUDIENCE_CUSTOMER, REKOR_PERSON_ALL, REKOR_ACCESS_SCOPE_CUSTOMER, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH, REKOR_MAX_ACCESS_DIMENSIONS, REKOR_MAX_ACCESS_VALUES, REKOR_MAX_ACCESS_ID_LENGTH, REKOR_MAX_ACCESS_HEADER_LENGTH, REKOR_MAX_PERSON_PARTIES, REKOR_MAX_PERSON_IDS, REKOR_MAX_PERSON_ID_LENGTH, REKOR_MAX_PERSON_HEADER_LENGTH;
|
|
7003
|
-
var
|
|
7004
|
-
"../../packages/core/dist/chunk-
|
|
7003
|
+
var init_chunk_M4FCOW6Q = __esm({
|
|
7004
|
+
"../../packages/core/dist/chunk-M4FCOW6Q.js"() {
|
|
7005
7005
|
"use strict";
|
|
7006
7006
|
init_zod();
|
|
7007
7007
|
REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
|
|
@@ -7057,7 +7057,7 @@ var init_chunk_BNHJNSAJ = __esm({
|
|
|
7057
7057
|
}
|
|
7058
7058
|
});
|
|
7059
7059
|
|
|
7060
|
-
// ../../packages/core/dist/chunk-
|
|
7060
|
+
// ../../packages/core/dist/chunk-P3S2WL7F.js
|
|
7061
7061
|
function isPersonAccessAll(lists) {
|
|
7062
7062
|
return lists !== void 0 && lists.read.length === 1 && lists.read[0] === ACCESS_UNRESTRICTED && lists.write.length === 1 && lists.write[0] === ACCESS_UNRESTRICTED;
|
|
7063
7063
|
}
|
|
@@ -7095,10 +7095,10 @@ function assignmentHasUnrestricted(assignment) {
|
|
|
7095
7095
|
return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
|
|
7096
7096
|
}
|
|
7097
7097
|
var ACCESS_UNRESTRICTED, ACCESS_ID_REGEX, ACCESS_ID_MAX_LENGTH, MAX_ACCESS_DIMENSIONS_PER_ORG, MAX_ACCESS_VALUES_PER_DIMENSION, ACCESS_LABEL_MAX_LENGTH, accessIdSchema, accessLabelSchema, accessValueListSchema, accessListsSchema, accessAssignmentSchema, PERSON_ACCESS_KEY, heldAccessKeySchema, heldAccessAssignmentSchema, AGENT_PERSON_ACCESS_REFUSAL, accessSetSchema, accessDimensionParam, accessValueParam, orgMemberParam, orgHubParam, createAccessDimensionBody, updateAccessDimensionBody, createAccessValueBody, updateAccessValueBody, setMemberAccessValuesBody, HUB_PERSON_KINDS, ACCESS_PERSON_KINDS, setHubUserAccessValuesBody, setHubAccessValuesBody, setAgentAccessValuesBody;
|
|
7098
|
-
var
|
|
7099
|
-
"../../packages/core/dist/chunk-
|
|
7098
|
+
var init_chunk_P3S2WL7F = __esm({
|
|
7099
|
+
"../../packages/core/dist/chunk-P3S2WL7F.js"() {
|
|
7100
7100
|
"use strict";
|
|
7101
|
-
|
|
7101
|
+
init_chunk_M4FCOW6Q();
|
|
7102
7102
|
init_chunk_HZ6CADSY();
|
|
7103
7103
|
init_chunk_YROEDMVZ();
|
|
7104
7104
|
init_zod();
|
|
@@ -7189,7 +7189,7 @@ var init_chunk_RCMBGK4O = __esm({
|
|
|
7189
7189
|
}
|
|
7190
7190
|
});
|
|
7191
7191
|
|
|
7192
|
-
// ../../packages/core/dist/chunk-
|
|
7192
|
+
// ../../packages/core/dist/chunk-36EGVRCM.js
|
|
7193
7193
|
function isEncodedBoundPerson(raw) {
|
|
7194
7194
|
let parsed;
|
|
7195
7195
|
try {
|
|
@@ -7200,11 +7200,11 @@ function isEncodedBoundPerson(raw) {
|
|
|
7200
7200
|
return rekorBoundPersonSchema.safeParse(parsed).success;
|
|
7201
7201
|
}
|
|
7202
7202
|
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorPersonIdSchema, rekorPersonAudienceSchema, rekorBoundPersonSchema, rekorBoundAttestation, rekorResolvedToolsetSchema, REKOR_TOOL_KINDS_PARAM, REKOR_TOOL_KINDS_RESOLVE_SEARCH, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL;
|
|
7203
|
-
var
|
|
7204
|
-
"../../packages/core/dist/chunk-
|
|
7203
|
+
var init_chunk_36EGVRCM = __esm({
|
|
7204
|
+
"../../packages/core/dist/chunk-36EGVRCM.js"() {
|
|
7205
7205
|
"use strict";
|
|
7206
|
-
|
|
7207
|
-
|
|
7206
|
+
init_chunk_P3S2WL7F();
|
|
7207
|
+
init_chunk_M4FCOW6Q();
|
|
7208
7208
|
init_zod();
|
|
7209
7209
|
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
7210
7210
|
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
@@ -7230,15 +7230,17 @@ var init_chunk_LKD6ISTP = __esm({
|
|
|
7230
7230
|
batch: external_exports.boolean(),
|
|
7231
7231
|
/**
|
|
7232
7232
|
* The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves,
|
|
7233
|
-
* and reaches only that customer's records and shared ones.
|
|
7234
|
-
*
|
|
7235
|
-
*
|
|
7233
|
+
* and reaches only that customer's records and shared ones. Only a customer page and an eval run name
|
|
7234
|
+
* one; an agent's other calls name none (#5473 2b1), so they are refused it. Absent on a surface recorded
|
|
7235
|
+
* before it was, which reads as not scoped until the connection's next tool sync or token save records
|
|
7236
|
+
* it: its calls name no customer, and the customer-facing rule admits none of its record tools to a
|
|
7237
|
+
* customer page.
|
|
7236
7238
|
*/
|
|
7237
7239
|
customer_scoped: external_exports.boolean().optional(),
|
|
7238
7240
|
/**
|
|
7239
7241
|
* A key of the resolve this side neither describes nor classifies exposes something: a kind of tool
|
|
7240
|
-
* the data product added later, counted in `records`. The customer-facing rule never admits it,
|
|
7241
|
-
*
|
|
7242
|
+
* the data product added later, counted in `records`. The customer-facing rule never admits it, to
|
|
7243
|
+
* any holder, until it is classified here. Absent on a surface recorded before it was,
|
|
7242
7244
|
* which reads as present.
|
|
7243
7245
|
*/
|
|
7244
7246
|
unclassified_tools: external_exports.boolean().optional(),
|
|
@@ -7455,7 +7457,7 @@ var init_chunk_LKD6ISTP = __esm({
|
|
|
7455
7457
|
});
|
|
7456
7458
|
rekorToolsetFilePutSchema = external_exports.object({ data: rekorToolsetFileSchema });
|
|
7457
7459
|
TOOLSET_CUSTOMER_FACING_REFUSAL_MARK = "A customer-facing agent (a pilot, pilot specialist or pilot advisor) can use a toolset only when it exposes files alone: no record, composite or relationship tools, and neither sql_query nor batch";
|
|
7458
|
-
TOOLSET_CUSTOMER_FACING_REFUSAL = `${TOOLSET_CUSTOMER_FACING_REFUSAL_MARK}, nor a file put, delete or put_url, nor a write of a reviewed record type
|
|
7460
|
+
TOOLSET_CUSTOMER_FACING_REFUSAL = `${TOOLSET_CUSTOMER_FACING_REFUSAL_MARK}, nor a file put, delete or put_url, nor a write of a reviewed record type, nor a kind of tool WayAI does not classify. Its record, composite, relationship and SQL Action tools are admitted to a customer-facing agent, since the data product holds each of its calls to the record types that declare person rules or shared access; to a customer page only when the toolset is customer-scoped, or they only read approved records of reviewed shared record types`;
|
|
7459
7461
|
}
|
|
7460
7462
|
});
|
|
7461
7463
|
|
|
@@ -7843,12 +7845,12 @@ var init_chunk_VFDRJV2E = __esm({
|
|
|
7843
7845
|
}
|
|
7844
7846
|
});
|
|
7845
7847
|
|
|
7846
|
-
// ../../packages/core/dist/chunk-
|
|
7848
|
+
// ../../packages/core/dist/chunk-AAGIHNDX.js
|
|
7847
7849
|
var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
|
|
7848
|
-
var
|
|
7849
|
-
"../../packages/core/dist/chunk-
|
|
7850
|
+
var init_chunk_AAGIHNDX = __esm({
|
|
7851
|
+
"../../packages/core/dist/chunk-AAGIHNDX.js"() {
|
|
7850
7852
|
"use strict";
|
|
7851
|
-
|
|
7853
|
+
init_chunk_36EGVRCM();
|
|
7852
7854
|
init_chunk_VFDRJV2E();
|
|
7853
7855
|
init_chunk_HZ6CADSY();
|
|
7854
7856
|
init_zod();
|
|
@@ -9380,7 +9382,7 @@ var init_chunk_EVXGKOJV = __esm({
|
|
|
9380
9382
|
}
|
|
9381
9383
|
});
|
|
9382
9384
|
|
|
9383
|
-
// ../../packages/core/dist/chunk-
|
|
9385
|
+
// ../../packages/core/dist/chunk-ECRNR7ET.js
|
|
9384
9386
|
function spokenLineField(label2, description2) {
|
|
9385
9387
|
return { type: "text", label: label2, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
|
|
9386
9388
|
}
|
|
@@ -9390,8 +9392,8 @@ function byLowercaseName(a, b) {
|
|
|
9390
9392
|
return x < y ? -1 : x > y ? 1 : 0;
|
|
9391
9393
|
}
|
|
9392
9394
|
var CALLER_LANGUAGE, GIT_CHECKOUT_MAX_LENGTH, TTS_VOICE_REPLY_ENABLED_FIELD, decisionsImageInputField, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, typesafe, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
|
|
9393
|
-
var
|
|
9394
|
-
"../../packages/core/dist/chunk-
|
|
9395
|
+
var init_chunk_ECRNR7ET = __esm({
|
|
9396
|
+
"../../packages/core/dist/chunk-ECRNR7ET.js"() {
|
|
9395
9397
|
"use strict";
|
|
9396
9398
|
CALLER_LANGUAGE = "caller";
|
|
9397
9399
|
GIT_CHECKOUT_MAX_LENGTH = 255;
|
|
@@ -9408,7 +9410,7 @@ var init_chunk_DULDQXQX = __esm({
|
|
|
9408
9410
|
type: "toggle",
|
|
9409
9411
|
label: "Send Images",
|
|
9410
9412
|
default: false,
|
|
9411
|
-
description: "Send the newest
|
|
9413
|
+
description: "Send attached images: the newest 4 from customers and team members to idle monitors and evaluators, the newest from the customer's latest messages to user_message monitors. Billed as input tokens.",
|
|
9412
9414
|
...dependsOn ? { dependsOn } : {}
|
|
9413
9415
|
}
|
|
9414
9416
|
});
|
|
@@ -10407,13 +10409,13 @@ var init_chunk_DULDQXQX = __esm({
|
|
|
10407
10409
|
}
|
|
10408
10410
|
});
|
|
10409
10411
|
|
|
10410
|
-
// ../../packages/core/dist/chunk-
|
|
10412
|
+
// ../../packages/core/dist/chunk-CBSOYDZQ.js
|
|
10411
10413
|
var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
|
|
10412
|
-
var
|
|
10413
|
-
"../../packages/core/dist/chunk-
|
|
10414
|
+
var init_chunk_CBSOYDZQ = __esm({
|
|
10415
|
+
"../../packages/core/dist/chunk-CBSOYDZQ.js"() {
|
|
10414
10416
|
"use strict";
|
|
10415
10417
|
init_chunk_EVXGKOJV();
|
|
10416
|
-
|
|
10418
|
+
init_chunk_ECRNR7ET();
|
|
10417
10419
|
init_chunk_MIWZOSPI();
|
|
10418
10420
|
COUNTER_KEYS = Object.keys({
|
|
10419
10421
|
input_tokens: true,
|
|
@@ -10536,7 +10538,7 @@ var init_chunk_L5F7ZOUJ = __esm({
|
|
|
10536
10538
|
}
|
|
10537
10539
|
});
|
|
10538
10540
|
|
|
10539
|
-
// ../../packages/core/dist/chunk-
|
|
10541
|
+
// ../../packages/core/dist/chunk-Q3WAAJBA.js
|
|
10540
10542
|
function normalizeDecisionsModelId(modelId) {
|
|
10541
10543
|
return modelId.trim().toLowerCase();
|
|
10542
10544
|
}
|
|
@@ -10607,10 +10609,10 @@ function readAgentSettingsModel(agentSettings) {
|
|
|
10607
10609
|
return typeof model === "string" ? model : null;
|
|
10608
10610
|
}
|
|
10609
10611
|
var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
|
|
10610
|
-
var
|
|
10611
|
-
"../../packages/core/dist/chunk-
|
|
10612
|
+
var init_chunk_Q3WAAJBA = __esm({
|
|
10613
|
+
"../../packages/core/dist/chunk-Q3WAAJBA.js"() {
|
|
10612
10614
|
"use strict";
|
|
10613
|
-
|
|
10615
|
+
init_chunk_CBSOYDZQ();
|
|
10614
10616
|
init_chunk_L5F7ZOUJ();
|
|
10615
10617
|
DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
|
|
10616
10618
|
DECISION_CAPABLE_AGENT_ROLES = [
|
|
@@ -10621,7 +10623,7 @@ var init_chunk_PI55UGBV = __esm({
|
|
|
10621
10623
|
}
|
|
10622
10624
|
});
|
|
10623
10625
|
|
|
10624
|
-
// ../../packages/core/dist/chunk-
|
|
10626
|
+
// ../../packages/core/dist/chunk-5FTGVRDF.js
|
|
10625
10627
|
function resolveMonitorTrigger(monitorConfig) {
|
|
10626
10628
|
if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
|
|
10627
10629
|
const raw = monitorConfig.trigger;
|
|
@@ -10927,14 +10929,14 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
|
|
|
10927
10929
|
if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
|
|
10928
10930
|
}
|
|
10929
10931
|
var NATIVE_TOOL_NAMES, previousConversationsCountField, summarizationThresholdField, flagConditionSchema, MONITOR_TRIGGERS, monitorTriggerSchema, AUTOMATION_GATE_TRIGGERS, NON_FIRING_TRIGGERS, MONITOR_FIRING_TRIGGERS, MONITOR_DELAY_SECONDS_MIN, MONITOR_IDLE_DELAY_REQUIRED_MESSAGE, MONITOR_HISTORY_MESSAGES_MAX, monitorHistoryMessagesSchema, monitorIncludeToolResultsSchema, MONITOR_INPUT_SHAPING_KEYS, MONITOR_INPUT_SHAPING_SCHEMAS, MONITOR_INPUT_SHAPING_IDLE_MESSAGE, monitorArgumentSourceSchema, MONITOR_NOTE_TEMPLATE_MAX, MONITOR_STEER_NOTE_MAX, MONITOR_GATE_AGENT_NAME_MAX, monitorActionSchema, monitorRuleSchema, MONITOR_RULE_KEYS, MONITOR_RULE_SCHEMAS, MONITOR_RULE_TRIGGERS, MONITOR_RULE_TRIGGER_MESSAGE, CALL_UTTERANCE_SPEAKERS, callUtteranceSpeakerSchema, MONITOR_CALL_KEYS, MONITOR_CALL_SCHEMAS, MONITOR_CALL_KEY_MESSAGE, CALL_STEERING_MIN_CONFIDENCE, CALL_UTTERANCE_RULE_NOT_CONFIDENT_MESSAGE, CALL_UTTERANCE_FALLBACK_MESSAGE, CALL_UTTERANCE_FLAG_CONDITIONS_MESSAGE, CALL_STEER_NOTE_BLANK_MESSAGE, MONITOR_USER_MESSAGE_ACTION_KINDS, MONITOR_ASSISTANT_REPLY_ACTION_KINDS, MONITOR_CALL_UTTERANCE_ACTION_KINDS, MONITOR_AUTOMATION_FIRE_ACTION_KINDS, MONITOR_AUTOMATION_ITEM_ACTION_KINDS, INSERT_NOTE_TOOL_NAME, RUN_MONITOR_TOOL_NAME, MONITOR_RULE_ALLOWED_NATIVE_TOOLS, MONITOR_RULE_REENTRY_TOOLS, MONITOR_RULE_REENTRY_TRACKS, AUTOMATION_FIRE_FLAG_CONDITIONS_MESSAGE, AUTOMATION_FIRE_INPUT_SHAPING_MESSAGE, AUTOMATION_ITEM_FLAG_CONDITIONS_MESSAGE, AUTOMATION_ITEM_INPUT_SHAPING_MESSAGE, AUTOMATION_GATE_KEY_MESSAGES, monitorConfigField, flagConditionsField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody;
|
|
10930
|
-
var
|
|
10931
|
-
"../../packages/core/dist/chunk-
|
|
10932
|
+
var init_chunk_5FTGVRDF = __esm({
|
|
10933
|
+
"../../packages/core/dist/chunk-5FTGVRDF.js"() {
|
|
10932
10934
|
"use strict";
|
|
10933
10935
|
init_chunk_IBL7FANV();
|
|
10934
10936
|
init_chunk_KB5RK3RP();
|
|
10935
10937
|
init_chunk_C2UEA2KW();
|
|
10936
10938
|
init_chunk_HZ6CADSY();
|
|
10937
|
-
|
|
10939
|
+
init_chunk_Q3WAAJBA();
|
|
10938
10940
|
init_chunk_EVXGKOJV();
|
|
10939
10941
|
init_chunk_YROEDMVZ();
|
|
10940
10942
|
init_chunk_L5F7ZOUJ();
|
|
@@ -11153,12 +11155,12 @@ var init_chunk_DZNBZNK6 = __esm({
|
|
|
11153
11155
|
}
|
|
11154
11156
|
});
|
|
11155
11157
|
|
|
11156
|
-
// ../../packages/core/dist/chunk-
|
|
11158
|
+
// ../../packages/core/dist/chunk-OJB6LIVM.js
|
|
11157
11159
|
var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
|
|
11158
|
-
var
|
|
11159
|
-
"../../packages/core/dist/chunk-
|
|
11160
|
+
var init_chunk_OJB6LIVM = __esm({
|
|
11161
|
+
"../../packages/core/dist/chunk-OJB6LIVM.js"() {
|
|
11160
11162
|
"use strict";
|
|
11161
|
-
|
|
11163
|
+
init_chunk_5FTGVRDF();
|
|
11162
11164
|
init_chunk_HZ6CADSY();
|
|
11163
11165
|
init_chunk_YROEDMVZ();
|
|
11164
11166
|
init_zod();
|
|
@@ -11687,14 +11689,14 @@ var init_chunk_E4DIIOOE = __esm({
|
|
|
11687
11689
|
}
|
|
11688
11690
|
});
|
|
11689
11691
|
|
|
11690
|
-
// ../../packages/core/dist/chunk-
|
|
11692
|
+
// ../../packages/core/dist/chunk-UI6YFSZL.js
|
|
11691
11693
|
var evalCallInstant, EVAL_CALL_MIN_SECONDS, EVAL_CALL_MAX_SECONDS, EVAL_CALL_SPOKEN_LINE_MAX_CHARS, hubScoped2, createEvalCallBody, createEvalCallResponse, evalCallConversationQuery, evalCallRecordQuery, evalCallSpeaker, evalCallUtterance, evalCallTurn, evalCallRecording, evalCallRecordResponse, evalCallFinishResponse;
|
|
11692
|
-
var
|
|
11693
|
-
"../../packages/core/dist/chunk-
|
|
11694
|
+
var init_chunk_UI6YFSZL = __esm({
|
|
11695
|
+
"../../packages/core/dist/chunk-UI6YFSZL.js"() {
|
|
11694
11696
|
"use strict";
|
|
11695
11697
|
init_chunk_E4DIIOOE();
|
|
11696
11698
|
init_chunk_HZ6CADSY();
|
|
11697
|
-
|
|
11699
|
+
init_chunk_ECRNR7ET();
|
|
11698
11700
|
init_chunk_MIWZOSPI();
|
|
11699
11701
|
init_zod();
|
|
11700
11702
|
evalCallInstant = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp");
|
|
@@ -12025,12 +12027,12 @@ var init_chunk_6J742GLA = __esm({
|
|
|
12025
12027
|
}
|
|
12026
12028
|
});
|
|
12027
12029
|
|
|
12028
|
-
// ../../packages/core/dist/chunk-
|
|
12030
|
+
// ../../packages/core/dist/chunk-NZU2FWVV.js
|
|
12029
12031
|
var COMMUNITIES_PER_ORG_MAX, COMMUNITY_NAME_MAX_LENGTH, COMMUNITY_REGISTRY_CLOSED_REASON, COMMUNITY_MEMBERS_MAX, COMMUNITY_ADMISSIONS, COMMUNITY_ACCESS_MAX, COMMUNITY_ACCESS_ADD_MAX, COMMUNITY_ACCESS_FULL_REASON, COMMUNITY_JOIN_SOURCE_MAX_LENGTH, COMMUNITY_JOIN_FLOW_TOKEN_MAX_LENGTH, COMMUNITY_ROOMS_MAX, COMMUNITY_ROOM_NAME_MAX_LENGTH, COMMUNITY_MESSAGE_MAX_LENGTH, COMMUNITY_MESSAGES_PAGE_SIZE, COMMUNITY_ATTACHMENT_URLS_MAX, COMMUNITY_POST_TITLE_MAX_LENGTH, COMMUNITY_POST_SEARCH_MAX_LENGTH, COMMUNITY_MEMBER_STATUSES, COMMUNITY_RULES_MAX_LENGTH, COMMUNITY_SLOW_MODE_MAX_SECONDS, COMMUNITY_COURSES_LABEL_MAX_LENGTH, COMMUNITY_LIVE_TICKET_PREFIX, COMMUNITY_STATS_DAYS, communityNameSchema, adminCreateCommunityBody, communityIdParam, communityJoinTokenSchema, communityJoinSourceSchema, communityJoinPreviewQuery, communityJoinBody, communityRoomKindSchema, communityRoomNameSchema, communityRoomIdParam, communityMessageIdParam, communityRoomCreateBody, communityRoomUpdateBody, communityMessagesQuery, communityMessageBodySchema, communityPostTitleSchema, communityAttachmentUploadSchema, communitySendBody, communityEditBody, communityPostIdParam, communityPostsQuery, communityAnswerBody, communityReadBody, communityAttachmentUrlsBody, communityPersonParam, communityOrgParam, communityPeopleQuery, communityCoursesLabelSchema, communityAdmissionSchema, communitySettingsBody, communityAccessEmailSchema, communityAccessAddBody, communityAccessQuery, communityAccessIdParam, communityBanBody, communityLockBody, communityPinBody, communityModLogQuery, communityReportsQuery, communityReportIdParam, communityLiveTicketSchema, communityLiveQuery, communityMuteBody, communityEmailUnsubscribeTokenSchema, communityEmailUnsubscribeQuery;
|
|
12030
|
-
var
|
|
12031
|
-
"../../packages/core/dist/chunk-
|
|
12032
|
+
var init_chunk_NZU2FWVV = __esm({
|
|
12033
|
+
"../../packages/core/dist/chunk-NZU2FWVV.js"() {
|
|
12032
12034
|
"use strict";
|
|
12033
|
-
|
|
12035
|
+
init_chunk_LOCEO2KI();
|
|
12034
12036
|
init_chunk_6J742GLA();
|
|
12035
12037
|
init_chunk_ZVXO3XL6();
|
|
12036
12038
|
init_chunk_HZ6CADSY();
|
|
@@ -12134,7 +12136,7 @@ var init_chunk_PIOPQ5UH = __esm({
|
|
|
12134
12136
|
}
|
|
12135
12137
|
});
|
|
12136
12138
|
|
|
12137
|
-
// ../../packages/core/dist/chunk-
|
|
12139
|
+
// ../../packages/core/dist/chunk-HUE3HZK5.js
|
|
12138
12140
|
function parseCommunityLessonVideoUrl(url) {
|
|
12139
12141
|
const parts = /^https?:\/\/([^/?#]+)([^?#]*)(?:\?([^#]*))?(?:#.*)?$/i.exec(url.trim());
|
|
12140
12142
|
if (!parts) return null;
|
|
@@ -12160,10 +12162,10 @@ function communityLessonVideoWatchUrl(video) {
|
|
|
12160
12162
|
}
|
|
12161
12163
|
}
|
|
12162
12164
|
var COMMUNITY_COURSES_MAX, COMMUNITY_COURSE_MODULES_MAX, COMMUNITY_COURSE_LESSONS_MAX, COMMUNITY_LESSONS_MAX, COMMUNITY_COURSE_TITLE_MAX_LENGTH, COMMUNITY_COURSE_DESCRIPTION_MAX_LENGTH, COMMUNITY_LESSON_BODY_MAX_LENGTH, COMMUNITY_LESSON_LINKS_MAX, COMMUNITY_LESSON_URL_MAX_LENGTH, YOUTUBE_ID, YOUTUBE_HOSTS, YOUTU_BE, YOUTUBE_ID_PATH, communityCourseIdParam, communityCourseModuleIdParam, communityLessonIdParam, communityCourseTitleSchema, communityCourseDescriptionSchema, communityCoursePositionSchema, communityLessonVideoUrlSchema, communityLessonLinkSchema, communityLessonLinksSchema, communityLessonBodySchema, communityCourseCreateBody, communityCourseUpdateBody, communityModuleCreateBody, communityModuleUpdateBody, communityLessonCreateBody, communityLessonUpdateBody;
|
|
12163
|
-
var
|
|
12164
|
-
"../../packages/core/dist/chunk-
|
|
12165
|
+
var init_chunk_HUE3HZK5 = __esm({
|
|
12166
|
+
"../../packages/core/dist/chunk-HUE3HZK5.js"() {
|
|
12165
12167
|
"use strict";
|
|
12166
|
-
|
|
12168
|
+
init_chunk_NZU2FWVV();
|
|
12167
12169
|
init_chunk_HZ6CADSY();
|
|
12168
12170
|
init_zod();
|
|
12169
12171
|
COMMUNITY_COURSES_MAX = 20;
|
|
@@ -12748,7 +12750,7 @@ var init_chunk_2ISUBJG7 = __esm({
|
|
|
12748
12750
|
}
|
|
12749
12751
|
});
|
|
12750
12752
|
|
|
12751
|
-
// ../../packages/core/dist/chunk-
|
|
12753
|
+
// ../../packages/core/dist/chunk-HSQZYXKA.js
|
|
12752
12754
|
function describeRole(role) {
|
|
12753
12755
|
if (typeof role === "string") {
|
|
12754
12756
|
return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
|
|
@@ -12922,8 +12924,8 @@ function terminalRunCount(counts) {
|
|
|
12922
12924
|
return counts.successful_runs + counts.failed_runs;
|
|
12923
12925
|
}
|
|
12924
12926
|
var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, evalCustomerContactIdSchema, evalBody, EVAL_LIST_MAX_LIMIT, evalListLimit, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, EVAL_MAX_SELECTED_SCENARIOS, evalScenarioSelectionEntrySchema, evalScenarioSelectionSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, evalSessionListConfigSchema, evalSessionListItemSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT;
|
|
12925
|
-
var
|
|
12926
|
-
"../../packages/core/dist/chunk-
|
|
12927
|
+
var init_chunk_HSQZYXKA = __esm({
|
|
12928
|
+
"../../packages/core/dist/chunk-HSQZYXKA.js"() {
|
|
12927
12929
|
"use strict";
|
|
12928
12930
|
init_chunk_4LXDRTO4();
|
|
12929
12931
|
init_chunk_WTOA3ANF();
|
|
@@ -13991,7 +13993,7 @@ var init_chunk_TU4Y4MEX = __esm({
|
|
|
13991
13993
|
}
|
|
13992
13994
|
});
|
|
13993
13995
|
|
|
13994
|
-
// ../../packages/core/dist/chunk-
|
|
13996
|
+
// ../../packages/core/dist/chunk-MK2PZAPE.js
|
|
13995
13997
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
13996
13998
|
const agents = config.agents;
|
|
13997
13999
|
if (!Array.isArray(agents)) return;
|
|
@@ -14601,23 +14603,23 @@ function skillSectionsAsResources(scope) {
|
|
|
14601
14603
|
};
|
|
14602
14604
|
}
|
|
14603
14605
|
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema;
|
|
14604
|
-
var
|
|
14605
|
-
"../../packages/core/dist/chunk-
|
|
14606
|
+
var init_chunk_MK2PZAPE = __esm({
|
|
14607
|
+
"../../packages/core/dist/chunk-MK2PZAPE.js"() {
|
|
14606
14608
|
"use strict";
|
|
14607
14609
|
init_chunk_SARVKRZB();
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
+
init_chunk_P3S2WL7F();
|
|
14611
|
+
init_chunk_HSQZYXKA();
|
|
14610
14612
|
init_chunk_LBDH7LCG();
|
|
14611
14613
|
init_chunk_4LXDRTO4();
|
|
14612
14614
|
init_chunk_TU4Y4MEX();
|
|
14613
14615
|
init_chunk_2KNVPV7S();
|
|
14614
14616
|
init_chunk_K5UAZWFF();
|
|
14615
|
-
|
|
14617
|
+
init_chunk_5FTGVRDF();
|
|
14616
14618
|
init_chunk_S4VDZ7PZ();
|
|
14617
14619
|
init_chunk_C2UEA2KW();
|
|
14618
14620
|
init_chunk_VFDRJV2E();
|
|
14619
14621
|
init_chunk_WEXVYJ5H();
|
|
14620
|
-
|
|
14622
|
+
init_chunk_Q3WAAJBA();
|
|
14621
14623
|
init_chunk_YROEDMVZ();
|
|
14622
14624
|
init_zod();
|
|
14623
14625
|
MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
|
|
@@ -15662,15 +15664,15 @@ var init_chunk_JO53JB35 = __esm({
|
|
|
15662
15664
|
}
|
|
15663
15665
|
});
|
|
15664
15666
|
|
|
15665
|
-
// ../../packages/core/dist/chunk-
|
|
15667
|
+
// ../../packages/core/dist/chunk-4RUAEE3H.js
|
|
15666
15668
|
function filterNamesAnything(filter) {
|
|
15667
15669
|
return filter.labels.length + filter.scope_tag_ids.length > 0;
|
|
15668
15670
|
}
|
|
15669
15671
|
var hubListNameSchema, HUB_LIST_FILTER_REQUIRED, hubContactListFilterSchema, hubContactListIdParam, hubContactListHubQuery, description, createHubContactListBody, updateHubContactListBody;
|
|
15670
|
-
var
|
|
15671
|
-
"../../packages/core/dist/chunk-
|
|
15672
|
+
var init_chunk_4RUAEE3H = __esm({
|
|
15673
|
+
"../../packages/core/dist/chunk-4RUAEE3H.js"() {
|
|
15672
15674
|
"use strict";
|
|
15673
|
-
|
|
15675
|
+
init_chunk_LOCEO2KI();
|
|
15674
15676
|
init_zod();
|
|
15675
15677
|
hubListNameSchema = orgListReferenceSchema;
|
|
15676
15678
|
HUB_LIST_FILTER_REQUIRED = "A hub list names at least one label or scope tag";
|
|
@@ -15696,16 +15698,16 @@ var init_chunk_WJ7THIFJ = __esm({
|
|
|
15696
15698
|
}
|
|
15697
15699
|
});
|
|
15698
15700
|
|
|
15699
|
-
// ../../packages/core/dist/chunk-
|
|
15701
|
+
// ../../packages/core/dist/chunk-BLX7KXE6.js
|
|
15700
15702
|
var AUTOMATION_TRIGGER_TYPES, AUTOMATION_EVENT_TYPES, AUTOMATION_TARGET_TYPES, AUTOMATION_ACTION_TYPES, AUTOMATION_CHANNEL_TYPES, AUTOMATION_PURPOSES, AUTOMATION_NAME_MAX, AUTOMATION_DESCRIPTION_MAX, AUTOMATION_INSTRUCTIONS_MAX, AUTOMATION_TEXT_MAX, AUTOMATION_CRON_MAX, AUTOMATION_WEBHOOK_AUTHS, AUTOMATION_WEBHOOK_HEADERS, AUTOMATION_WEBHOOK_BODY_MAX_BYTES, AUTOMATION_WEBHOOK_HEADER_NAME_MAX, WEBHOOK_RESERVED_HEADERS, automationTriggerSchema, automationTargetSchema, automationActionSchema, automationGateSchema, automationName, automationDescription, automationIdParam, automationHubQuery, automationWebhookParams, AUTOMATION_RUNS_PAGE_MAX, listAutomationRunsQuery, createAutomationBody, updateAutomationBody, AUTOMATION_ALERT_CATEGORIES, AUTOMATION_BLOCKED_ALERT_CATEGORY, automationEventSubscriberParam;
|
|
15701
|
-
var
|
|
15702
|
-
"../../packages/core/dist/chunk-
|
|
15703
|
+
var init_chunk_BLX7KXE6 = __esm({
|
|
15704
|
+
"../../packages/core/dist/chunk-BLX7KXE6.js"() {
|
|
15703
15705
|
"use strict";
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15706
|
+
init_chunk_4RUAEE3H();
|
|
15707
|
+
init_chunk_LOCEO2KI();
|
|
15708
|
+
init_chunk_5FTGVRDF();
|
|
15707
15709
|
init_chunk_5XEJSR22();
|
|
15708
|
-
|
|
15710
|
+
init_chunk_Q3WAAJBA();
|
|
15709
15711
|
init_chunk_YROEDMVZ();
|
|
15710
15712
|
init_zod();
|
|
15711
15713
|
AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
|
|
@@ -16152,32 +16154,32 @@ var init_contracts = __esm({
|
|
|
16152
16154
|
init_chunk_MF2VVXBR();
|
|
16153
16155
|
init_chunk_ZC6YGHNX();
|
|
16154
16156
|
init_chunk_ACKF2MVU();
|
|
16155
|
-
|
|
16157
|
+
init_chunk_GPYAZPH7();
|
|
16156
16158
|
init_chunk_EKMLVJJ7();
|
|
16157
16159
|
init_chunk_IPDOHAZ5();
|
|
16158
16160
|
init_chunk_GPM7PE44();
|
|
16159
16161
|
init_chunk_VEERWOZ6();
|
|
16160
16162
|
init_chunk_ZXK6N2HN();
|
|
16161
16163
|
init_chunk_Y7CFCYX4();
|
|
16162
|
-
|
|
16164
|
+
init_chunk_OZC45RYU();
|
|
16163
16165
|
init_chunk_5DGHIY7L();
|
|
16164
16166
|
init_chunk_YUZFHVB2();
|
|
16165
16167
|
init_chunk_I3O2RACG();
|
|
16166
16168
|
init_chunk_34LE6P7E();
|
|
16167
16169
|
init_chunk_FPSDNS2E();
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
+
init_chunk_AAGIHNDX();
|
|
16171
|
+
init_chunk_36EGVRCM();
|
|
16170
16172
|
init_chunk_OPETF4GS();
|
|
16171
16173
|
init_chunk_SY6PLCPK();
|
|
16172
16174
|
init_chunk_KMAC3O3L();
|
|
16173
|
-
|
|
16175
|
+
init_chunk_OJB6LIVM();
|
|
16174
16176
|
init_chunk_KSTYTQ7I();
|
|
16175
16177
|
init_chunk_LKBSHANA();
|
|
16176
|
-
|
|
16178
|
+
init_chunk_UI6YFSZL();
|
|
16177
16179
|
init_chunk_C4HEZ7ZI();
|
|
16178
16180
|
init_chunk_IR2NOSI3();
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
+
init_chunk_HUE3HZK5();
|
|
16182
|
+
init_chunk_NZU2FWVV();
|
|
16181
16183
|
init_chunk_YULHXJ5M();
|
|
16182
16184
|
init_chunk_V4FRPRH5();
|
|
16183
16185
|
init_chunk_LWMLR2WI();
|
|
@@ -16188,11 +16190,11 @@ var init_contracts = __esm({
|
|
|
16188
16190
|
init_chunk_E4DIIOOE();
|
|
16189
16191
|
init_chunk_7CYHPF35();
|
|
16190
16192
|
init_chunk_BPCNB5RT();
|
|
16191
|
-
|
|
16193
|
+
init_chunk_MK2PZAPE();
|
|
16192
16194
|
init_chunk_SARVKRZB();
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16195
|
+
init_chunk_P3S2WL7F();
|
|
16196
|
+
init_chunk_M4FCOW6Q();
|
|
16197
|
+
init_chunk_HSQZYXKA();
|
|
16196
16198
|
init_chunk_LBDH7LCG();
|
|
16197
16199
|
init_chunk_4LXDRTO4();
|
|
16198
16200
|
init_chunk_JDJ4EUOL();
|
|
@@ -16208,10 +16210,10 @@ var init_contracts = __esm({
|
|
|
16208
16210
|
init_chunk_2PZIF56U();
|
|
16209
16211
|
init_chunk_UEJOG2Q7();
|
|
16210
16212
|
init_chunk_JO53JB35();
|
|
16211
|
-
|
|
16212
|
-
|
|
16213
|
-
|
|
16214
|
-
|
|
16213
|
+
init_chunk_BLX7KXE6();
|
|
16214
|
+
init_chunk_4RUAEE3H();
|
|
16215
|
+
init_chunk_LOCEO2KI();
|
|
16216
|
+
init_chunk_5FTGVRDF();
|
|
16215
16217
|
init_chunk_IG6QBZMA();
|
|
16216
16218
|
init_chunk_OMPT4ZHR();
|
|
16217
16219
|
init_chunk_J3UZCMO6();
|
|
@@ -16234,10 +16236,10 @@ var init_contracts = __esm({
|
|
|
16234
16236
|
init_chunk_WEXVYJ5H();
|
|
16235
16237
|
init_chunk_6TSQ5HXC();
|
|
16236
16238
|
init_chunk_HZ6CADSY();
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
+
init_chunk_Q3WAAJBA();
|
|
16240
|
+
init_chunk_CBSOYDZQ();
|
|
16239
16241
|
init_chunk_EVXGKOJV();
|
|
16240
|
-
|
|
16242
|
+
init_chunk_ECRNR7ET();
|
|
16241
16243
|
init_chunk_MIWZOSPI();
|
|
16242
16244
|
init_chunk_YROEDMVZ();
|
|
16243
16245
|
init_chunk_L5F7ZOUJ();
|
|
@@ -16394,10 +16396,10 @@ var init_dist = __esm({
|
|
|
16394
16396
|
init_chunk_6TSQ5HXC();
|
|
16395
16397
|
init_chunk_HZ6CADSY();
|
|
16396
16398
|
init_chunk_BF4WRSOQ();
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
+
init_chunk_Q3WAAJBA();
|
|
16400
|
+
init_chunk_CBSOYDZQ();
|
|
16399
16401
|
init_chunk_EVXGKOJV();
|
|
16400
|
-
|
|
16402
|
+
init_chunk_ECRNR7ET();
|
|
16401
16403
|
init_chunk_MIWZOSPI();
|
|
16402
16404
|
init_chunk_YROEDMVZ();
|
|
16403
16405
|
init_chunk_L5F7ZOUJ();
|
|
@@ -35751,9 +35753,9 @@ Usage:
|
|
|
35751
35753
|
wayai contacts deny-person <person_id|contact_id> [--org <org_id>] [--json]
|
|
35752
35754
|
wayai contacts undeny-person <person_id|contact_id> [--org <org_id>] [--json]
|
|
35753
35755
|
|
|
35754
|
-
link-customer Make the record the contact's customer record:
|
|
35755
|
-
|
|
35756
|
-
|
|
35756
|
+
link-customer Make the record the contact's customer record: the contact's customer pages
|
|
35757
|
+
then serve that customer through a customer-scoped toolset (an agent's calls
|
|
35758
|
+
name no customer). The record is one of the base's
|
|
35757
35759
|
customer record type (x-customer-scope role root), holding no external key
|
|
35758
35760
|
or the contact id under another source. A record keyed under another
|
|
35759
35761
|
external_id is refused: re-keying it would orphan its owned records.
|
|
@@ -36021,7 +36023,7 @@ function formatExplanation(data) {
|
|
|
36021
36023
|
if (data.values_hub_id === null) lines.push("This preview hub was never published: it has no hub values, so it reaches nothing.");
|
|
36022
36024
|
else if (data.values_hub_id !== data.hub_id) lines.push(`Hub values are those of its production hub ${text3(data.values_hub_id)}.`);
|
|
36023
36025
|
if (data.customer_only) {
|
|
36024
|
-
lines.push("Customer-only: held only on record types customer
|
|
36026
|
+
lines.push("Customer-only: on an agent's call, held only on record types open to customer-facing calls (person rules or shared access); on a call naming its customer, only on record types customer scope narrows to that customer. Every other type that enforces a dimension reaches nothing.");
|
|
36025
36027
|
}
|
|
36026
36028
|
if (data.conversations_reach_nothing) {
|
|
36027
36029
|
lines.push("This person's own set reaches nothing, whatever the agent: every turn in their conversations, a team member's send or consult there included, reaches nothing either.");
|
|
@@ -36105,8 +36107,9 @@ removed it. Every layer only narrows:
|
|
|
36105
36107
|
app, WhatsApp, Instagram, Telegram); on any other they are everyone else.
|
|
36106
36108
|
- with a scoped API token and no --user: the hub's \u2229 the agent's, what a hub
|
|
36107
36109
|
automation's turn of the agent gets.
|
|
36108
|
-
Everyone else takes the hub's public values, customer-only: held only on
|
|
36109
|
-
|
|
36110
|
+
Everyone else takes the hub's public values, customer-only: on an agent's call, held only on
|
|
36111
|
+
record types open to customer-facing calls (person entries in enforce, or shared access); on a
|
|
36112
|
+
call naming its customer, only on record types customer scope narrows to that customer. A turn in another
|
|
36110
36113
|
person's conversation is also cut to that person's set, a delegated task's to its
|
|
36111
36114
|
delegation's, and a background agent's side-call's to its host turn's agent's values: those
|
|
36112
36115
|
are not shown here. Explaining someone else matches no unredeemed team invite by their
|
|
@@ -40623,6 +40626,11 @@ function applyTokenLifecycleOpts(body, opts) {
|
|
|
40623
40626
|
if (expiresAt) body.expires_at = expiresAt;
|
|
40624
40627
|
if (opts.description) body.description = opts.description;
|
|
40625
40628
|
}
|
|
40629
|
+
function answeredPersons(data) {
|
|
40630
|
+
if (typeof data !== "object" || data === null) return void 0;
|
|
40631
|
+
const binding2 = data.toolset_binding;
|
|
40632
|
+
return typeof binding2 === "object" && binding2 !== null ? binding2.person : void 0;
|
|
40633
|
+
}
|
|
40626
40634
|
function listAllTokens(client) {
|
|
40627
40635
|
return client.collectPages(
|
|
40628
40636
|
(cursor) => `/v1/tokens?limit=${TOKEN_LIST_PAGE_LIMIT}${cursor ? `&cursor=${encodeURIComponent(cursor)}` : ""}`
|
|
@@ -40659,6 +40667,9 @@ function buildBasesTokensCommand() {
|
|
|
40659
40667
|
withBaseOption(tokens2.command("create-for-toolset <slug>")).description(
|
|
40660
40668
|
"Create a toolset-bound (consumer) token whose authorization IS the toolset tool surface \u2014 it can call exactly the tools that toolset exposes (those record types + operations, relationships, batch, and sql only if enabled) and nothing else. Binds to the configured --base."
|
|
40661
40669
|
).option("--name <name>", 'Token name (default: "<slug> consumer")').option(
|
|
40670
|
+
"--person <ids>",
|
|
40671
|
+
"Bind the token to the people one session serves: comma-separated person ids (at most 16), matched literally against the base's person fields. Every call is then customer-facing, and the token expires within 24 hours."
|
|
40672
|
+
).option(
|
|
40662
40673
|
"--token-only",
|
|
40663
40674
|
"Print only the raw rec_ token for secure command substitution (shown once)"
|
|
40664
40675
|
)
|
|
@@ -40666,11 +40677,25 @@ function buildBasesTokensCommand() {
|
|
|
40666
40677
|
const base = requireBase(this);
|
|
40667
40678
|
const body = {
|
|
40668
40679
|
name: opts.name ?? `${slug} consumer`,
|
|
40669
|
-
toolset_binding: {
|
|
40680
|
+
toolset_binding: {
|
|
40681
|
+
base_id: base,
|
|
40682
|
+
toolset_id: slug,
|
|
40683
|
+
// The server holds each id to its form and the list to its cap; the CLI only splits it.
|
|
40684
|
+
...opts.person !== void 0 ? { person: splitList(opts.person) } : {}
|
|
40685
|
+
}
|
|
40670
40686
|
};
|
|
40671
40687
|
applyTokenLifecycleOpts(body, opts);
|
|
40672
40688
|
const client = await createDataClient();
|
|
40673
40689
|
const data = await client.request("POST", "/v1/tokens", body);
|
|
40690
|
+
if (opts.person !== void 0 && !Array.isArray(answeredPersons(data))) {
|
|
40691
|
+
const tokenId = data.token_id;
|
|
40692
|
+
if (typeof tokenId === "string" && tokenId.length > 0) {
|
|
40693
|
+
await client.request("DELETE", `/v1/tokens/${pathSegment(tokenId, "token id")}?force=true`);
|
|
40694
|
+
}
|
|
40695
|
+
throw expected(
|
|
40696
|
+
"The backend minted the token without its persons, so it was revoked. Retry once the backend supports --person."
|
|
40697
|
+
);
|
|
40698
|
+
}
|
|
40674
40699
|
const output = tokenCreationOutput(this, opts);
|
|
40675
40700
|
printCreatedToken(data, output);
|
|
40676
40701
|
if (output === "table") {
|