@wayai/cli 0.3.61 → 0.3.63
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 +222 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -381,6 +381,13 @@ var init_api_client = __esm({
|
|
|
381
381
|
const body = opts.mode === "current" ? { hub_id: hubId, user_id: opts.userId, mode: "current", conversation_id: opts.conversationId } : { hub_id: hubId, user_id: opts.userId, mode: "all" };
|
|
382
382
|
return this.request("POST", "/api/conversations/delete-user-history", body);
|
|
383
383
|
}
|
|
384
|
+
async annotateConversation(hubId, conversationId, annotation) {
|
|
385
|
+
return this.request(
|
|
386
|
+
"POST",
|
|
387
|
+
`/api/conversations/${conversationId}/annotations`,
|
|
388
|
+
{ hub_id: hubId, ...annotation }
|
|
389
|
+
);
|
|
390
|
+
}
|
|
384
391
|
async getConversations(hubId, opts) {
|
|
385
392
|
const params = new URLSearchParams({ hub_id: hubId });
|
|
386
393
|
if (opts?.status) params.set("status", opts.status);
|
|
@@ -5248,7 +5255,7 @@ function findStepBoundaries(transcript) {
|
|
|
5248
5255
|
}
|
|
5249
5256
|
return out;
|
|
5250
5257
|
}
|
|
5251
|
-
var APP_ERROR_BRAND, AppError, LLM_RATE_LIMIT_BRAND, LlmRateLimitError, LLM_PROVIDER_HTTP_BRAND, LlmProviderHttpError, LLM_PROVIDER_TIMEOUT_BRAND, LlmProviderTimeoutError, ExternalServiceError, CHANNEL_PROVIDER_HTTP_BRAND, ChannelProviderHttpError, MEDIA_PROVIDER_HTTP_BRAND, MediaProviderHttpError, AUTH_TYPE, ORG_CREDENTIAL_AUTH_TYPES, AUTH_TYPE_DISPLAY, LEGACY_AUTH_TYPE_MAP, VALID_AUTH_TYPES, AGENT_ROLES, SAFE_USER_ID_REGEX, SUPPORTED_LOCALES, uuidSchema, paginationSchema, timestampSchema, idParamSchema, primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody, SUMMARIZATION_THRESHOLD_MIN, SUMMARIZATION_THRESHOLD_MAX, summarizationThresholdField, monitorConfigField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody, SLUG_REGEX, slugSchema, INVISIBLE_NAME_CHARS, MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema, hubIdParam, hubAdminIdParam, hubUserIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, createHubBody, updateHubBody, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, claimCodeChannelParam, claimCodeDeleteParam, connectionIdParam, connectorIdParam, listConnectionsQuery, deleteConnectionQuery, addConnectionBody, editConnectionBody, registerWhatsappQuery, registerWhatsappBody, retryProvisioningQuery, resendDomainStatusQuery, PLACEHOLDER_TOKENS, ALLOWED_TYPES, SUBSCHEMA_OBJECT_KEYWORDS, SUBSCHEMA_LIST_KEYWORDS, SUBSCHEMA_MAP_KEYWORDS, MAX_SCHEMA_DEPTH, toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, addNativeToolBody, addMcpToolBody, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody, initialValueCreateSchema, initialValueUpdateSchema, stateIdParam, listStatesQuery, stateNameSchema, createStateBody, updateStateBody, reorderStatesBody, orgTagIdParam, listOrgTagsQuery, createOrgTagBody, updateOrgTagBody, orgCredentialIdParam, listOrgCredentialsQuery, createOrgCredentialBody, updateOrgCredentialBody, orgResourceIdParam, orgResourceFileIdParam, orgResourceFolderIdParam, hubOrgResourceParam, listOrgResourcesQuery, orgIdQuery, createOrgResourceBody, updateOrgResourceBody, createOrgResourceFolderBody, updateOrgResourceFolderBody, uploadOrgResourceFileBody, updateOrgResourceFileBody, uploadOrgSkillZipBody, linkOrgResourceBody, resourceIdParam, listResourcesQuery, createResourceBody, updateResourceBody, syncSkillsBody, resourceFileIdParam, listResourceFilesQuery, createResourceFileBody, updateResourceFileBody, uploadResourceFileBody, uploadSkillZipBody, resourceFolderIdParam, listResourceFoldersQuery, createResourceFolderBody, updateResourceFolderBody, agentResourceQuery, hubResourceQuery, linkAgentResourceBody, updateAgentResourceBody, unlinkAgentResourceQuery, navItemSchema, hubCountResetBody, navItemCountResetBody, typingBody, analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlSchemaQuery, PACING_INTERVAL_MIN_MS, PACING_INTERVAL_MAX_MS, EVAL_RUN_DEADLINE_MIN_MS, EVAL_RUN_DEADLINE_MAX_MS, paginationSchema2, evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, createEvalBody, updateEvalBody, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, createJourneyBody, updateJourneyBody, getConversationsQuery, getMessagesQuery, updateUserBody, updateProfileBody, pathnameRegex, updatePreferencesBody, registerPushTokenBody, deletePushTokenQuery, activityQuery, deletionModeSchema, deletionRequestBody, archiveHubIdParam, archiveConversationParams, archiveListQuery, archiveMessageObservabilityParams, conversationIdParam, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, sendMessageBody, listConversationsQuery, getConversationDetailParams, getConversationDetailQuery, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody, billingOrgIdParam, subscriptionItemParams, spendCapBody, growthPacksBody, portalSessionBody, checkoutSessionBody, updateBillingCurrencyBody, invoicesQuery, downloadBody, uploadQuery, signUrlBody, completionsBody, outboundSchemaQuery, templateIdParam, listTemplatesQuery, deleteTemplateQuery, templateStatusQuery, createTemplateBody, updateTemplateBody, submitTemplateBody, testTemplateBody, contactIdParam, listContactsQuery, createContactBody, updateContactBody, listIdParam, listListsQuery, listListContactsQuery, createListBody, updateListBody, addListContactsBody, removeListContactsBody, scheduleIdParam, listSchedulesQuery, listExecutionsQuery, createScheduleBody, updateScheduleBody, uuidPattern, ciUuidSchema, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, updatePlatformConfigBody, updateFreeOrgLimitBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysQuery, dataExplorerKvKeyParam, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteQuery, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, debugHubConvParam, debugMessageIdQuery, whatsappCallbackBody, authMeResponse, wsTicketResponse, sessionCheckResponse, logoutResponse, magicCodeSendBody, magicCodeSendResponse, magicCodeVerifyBody, magicCodeVerifyResponse, browserParams, browserFoldersQuery, browserFilesQuery, stateOperationBody, conversationListResourcesQuery, conversationReadResourceQuery, listPendingSchedulesQuery, listHubAggregateSchedulesQuery, reportSourceSchema, intakeReportSourceSchema, reportClassificationSchema, reportStatusSchema, reportLocaleSchema, reportMessageAuthorRoleSchema, sentryRefStatusSchema, createReportBody, editReportBody, contestReportBody, reporterListQuery, listReportsQuery, GITHUB_ISSUE_URL_REGEX, githubIssueUrlSchema, transitionReportBody, groupReportsBody, holdReportBody, clickhouseReadyResponse, bootstrapQuery, requestSnapshotChunkMessage, MAX_NAME_LENGTH, MAX_VALUE_LENGTH, MAX_TAGS, MAX_TAG_LENGTH, MAX_SCOPE_HUBS, MAX_SCOPE_TAGS, vaultSecretScopeSchema, vaultCreateBody, vaultUpdateBody, PERMISSIONS, MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam, tokenGrantScopeSchema, tokenGrantSchema, tokenMetadataSchema, listTokensResponse, createTokenResponse, orgTokenSummarySchema, listOrgTokensResponse, invitePreviewQuery, invitePreviewResponse, discordTier, discordBillingCycle, discordMetadata, discordOAuthStartResponse, discordOAuthFinalizeBody, discordOAuthFinalizeResponse, discordDisconnectResponse, jsonSchemaSchema, hubUserIdentity, stateValueEntry, getHubUserContextResponse, updateHubUserBody, updateHubUserResponse, unlockHubUserNameResponse, stateResetParams, stateResetResponse, hubAlertsParam, hubAlertSeverity, hubAlert, hubAlertsListResponse, noticeSeveritySchema, noticeStatusSchema, NOTICE_SCOPE_REGEX, noticeScopeSchema, noticeLinkSchema, createNoticeBody, updateNoticeBody, listNoticesQuery, noticeIdParamSchema, templateLocaleSchema, TEMPLATE_SLUG_REGEX, templateSlugSchema, templateStatusSchema, templateFileMapSchema, templateTextSchema, templateHttpUrl, templateRekorPointerSchema, templateYamlLocaleEntry, templateYamlWayaiBlock, templateYamlRekorBlock, templateYamlSchema, templateHeroSchema, templatePushLocaleSchema, templatePushBody, templateListQuery, templateSlugParam, templateDetailQuery, ADMIN_SKILL_NAME_REGEX, adminSkillNameParam, WAYAI_WORKSPACE_LAYOUT, MAX_RESOURCE_FILE_SIZE;
|
|
5258
|
+
var APP_ERROR_BRAND, AppError, LLM_RATE_LIMIT_BRAND, LlmRateLimitError, LLM_PROVIDER_HTTP_BRAND, LlmProviderHttpError, LLM_PROVIDER_TIMEOUT_BRAND, LlmProviderTimeoutError, ExternalServiceError, CHANNEL_PROVIDER_HTTP_BRAND, ChannelProviderHttpError, MEDIA_PROVIDER_HTTP_BRAND, MediaProviderHttpError, AUTH_TYPE, ORG_CREDENTIAL_AUTH_TYPES, AUTH_TYPE_DISPLAY, LEGACY_AUTH_TYPE_MAP, VALID_AUTH_TYPES, AGENT_ROLES, SAFE_USER_ID_REGEX, SUPPORTED_LOCALES, uuidSchema, paginationSchema, timestampSchema, idParamSchema, primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody, SUMMARIZATION_THRESHOLD_MIN, SUMMARIZATION_THRESHOLD_MAX, summarizationThresholdField, monitorConfigField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody, SLUG_REGEX, slugSchema, INVISIBLE_NAME_CHARS, MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema, hubIdParam, hubAdminIdParam, hubUserIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, createHubBody, updateHubBody, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, claimCodeChannelParam, claimCodeDeleteParam, connectionIdParam, connectorIdParam, listConnectionsQuery, deleteConnectionQuery, addConnectionBody, editConnectionBody, registerWhatsappQuery, registerWhatsappBody, retryProvisioningQuery, resendDomainStatusQuery, PLACEHOLDER_TOKENS, ALLOWED_TYPES, SUBSCHEMA_OBJECT_KEYWORDS, SUBSCHEMA_LIST_KEYWORDS, SUBSCHEMA_MAP_KEYWORDS, MAX_SCHEMA_DEPTH, toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, addNativeToolBody, addMcpToolBody, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody, initialValueCreateSchema, initialValueUpdateSchema, stateIdParam, listStatesQuery, stateNameSchema, createStateBody, updateStateBody, reorderStatesBody, variantAiModeSchema, experimentStatusSchema, overlayUpdateSchema, experimentIdParam, variantIdParam, listExperimentsQuery, listVariantsQuery, listOverridesQuery, deleteOverrideQuery, createExperimentBody, updateExperimentBody, setExperimentStatusBody, createVariantBody, updateVariantBody, upsertOverrideBody, orgTagIdParam, listOrgTagsQuery, createOrgTagBody, updateOrgTagBody, orgCredentialIdParam, listOrgCredentialsQuery, createOrgCredentialBody, updateOrgCredentialBody, orgResourceIdParam, orgResourceFileIdParam, orgResourceFolderIdParam, hubOrgResourceParam, listOrgResourcesQuery, orgIdQuery, createOrgResourceBody, updateOrgResourceBody, createOrgResourceFolderBody, updateOrgResourceFolderBody, uploadOrgResourceFileBody, updateOrgResourceFileBody, uploadOrgSkillZipBody, linkOrgResourceBody, resourceIdParam, listResourcesQuery, createResourceBody, updateResourceBody, syncSkillsBody, resourceFileIdParam, listResourceFilesQuery, createResourceFileBody, updateResourceFileBody, uploadResourceFileBody, uploadSkillZipBody, resourceFolderIdParam, listResourceFoldersQuery, createResourceFolderBody, updateResourceFolderBody, agentResourceQuery, hubResourceQuery, linkAgentResourceBody, updateAgentResourceBody, unlinkAgentResourceQuery, navItemSchema, hubCountResetBody, navItemCountResetBody, typingBody, analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlSchemaQuery, PACING_INTERVAL_MIN_MS, PACING_INTERVAL_MAX_MS, EVAL_RUN_DEADLINE_MIN_MS, EVAL_RUN_DEADLINE_MAX_MS, paginationSchema2, evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, createEvalBody, updateEvalBody, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, createJourneyBody, updateJourneyBody, getConversationsQuery, getMessagesQuery, updateUserBody, updateProfileBody, pathnameRegex, updatePreferencesBody, registerPushTokenBody, deletePushTokenQuery, activityQuery, deletionModeSchema, deletionRequestBody, archiveHubIdParam, archiveConversationParams, archiveListQuery, archiveMessageObservabilityParams, conversationIdParam, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, sendMessageBody, listConversationsQuery, getConversationDetailParams, getConversationDetailQuery, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody, billingOrgIdParam, subscriptionItemParams, spendCapBody, growthPacksBody, portalSessionBody, checkoutSessionBody, updateBillingCurrencyBody, invoicesQuery, downloadBody, uploadQuery, signUrlBody, completionsBody, outboundSchemaQuery, templateIdParam, listTemplatesQuery, deleteTemplateQuery, templateStatusQuery, createTemplateBody, updateTemplateBody, submitTemplateBody, testTemplateBody, contactIdParam, listContactsQuery, createContactBody, updateContactBody, listIdParam, listListsQuery, listListContactsQuery, createListBody, updateListBody, addListContactsBody, removeListContactsBody, scheduleIdParam, listSchedulesQuery, listExecutionsQuery, createScheduleBody, updateScheduleBody, uuidPattern, ciUuidSchema, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, updatePlatformConfigBody, updateFreeOrgLimitBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysQuery, dataExplorerKvKeyParam, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteQuery, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, debugHubConvParam, debugMessageIdQuery, whatsappCallbackBody, authMeResponse, wsTicketResponse, sessionCheckResponse, logoutResponse, magicCodeSendBody, magicCodeSendResponse, magicCodeVerifyBody, magicCodeVerifyResponse, browserParams, browserFoldersQuery, browserFilesQuery, stateOperationBody, conversationListResourcesQuery, conversationReadResourceQuery, listPendingSchedulesQuery, listHubAggregateSchedulesQuery, reportSourceSchema, intakeReportSourceSchema, reportClassificationSchema, reportStatusSchema, reportLocaleSchema, reportMessageAuthorRoleSchema, sentryRefStatusSchema, createReportBody, editReportBody, contestReportBody, reporterListQuery, listReportsQuery, GITHUB_ISSUE_URL_REGEX, githubIssueUrlSchema, transitionReportBody, groupReportsBody, holdReportBody, clickhouseReadyResponse, bootstrapQuery, requestSnapshotChunkMessage, MAX_NAME_LENGTH, MAX_VALUE_LENGTH, MAX_TAGS, MAX_TAG_LENGTH, MAX_SCOPE_HUBS, MAX_SCOPE_TAGS, vaultSecretScopeSchema, vaultCreateBody, vaultUpdateBody, PERMISSIONS, MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam, tokenGrantScopeSchema, tokenGrantSchema, tokenMetadataSchema, listTokensResponse, createTokenResponse, orgTokenSummarySchema, listOrgTokensResponse, invitePreviewQuery, invitePreviewResponse, discordTier, discordBillingCycle, discordMetadata, discordOAuthStartResponse, discordOAuthFinalizeBody, discordOAuthFinalizeResponse, discordDisconnectResponse, jsonSchemaSchema, hubUserIdentity, stateValueEntry, getHubUserContextResponse, updateHubUserBody, updateHubUserResponse, unlockHubUserNameResponse, stateResetParams, stateResetResponse, hubAlertsParam, hubAlertSeverity, hubAlert, hubAlertsListResponse, noticeSeveritySchema, noticeStatusSchema, NOTICE_SCOPE_REGEX, noticeScopeSchema, noticeLinkSchema, createNoticeBody, updateNoticeBody, listNoticesQuery, noticeIdParamSchema, templateLocaleSchema, TEMPLATE_SLUG_REGEX, templateSlugSchema, templateStatusSchema, templateFileMapSchema, templateTextSchema, templateHttpUrl, templateRekorPointerSchema, templateYamlLocaleEntry, templateYamlWayaiBlock, templateYamlRekorBlock, templateTagsSchema, templateYamlSchema, templateHeroSchema, templatePushLocaleSchema, templatePushBody, templateListQuery, templateSlugParam, templateDetailQuery, ADMIN_SKILL_NAME_REGEX, adminSkillNameParam, WAYAI_WORKSPACE_LAYOUT, MAX_RESOURCE_FILE_SIZE;
|
|
5252
5259
|
var init_dist = __esm({
|
|
5253
5260
|
"../../packages/core/dist/index.js"() {
|
|
5254
5261
|
"use strict";
|
|
@@ -5298,6 +5305,7 @@ var init_dist = __esm({
|
|
|
5298
5305
|
init_zod();
|
|
5299
5306
|
init_zod();
|
|
5300
5307
|
init_zod();
|
|
5308
|
+
init_zod();
|
|
5301
5309
|
APP_ERROR_BRAND = /* @__PURE__ */ Symbol.for("wayai.AppError");
|
|
5302
5310
|
AppError = class extends Error {
|
|
5303
5311
|
constructor(message, code, statusCode = 500, details) {
|
|
@@ -5746,6 +5754,9 @@ var init_dist = __esm({
|
|
|
5746
5754
|
// summarization_threshold_tokens relocated to the summarizer AGENT (PR4) — validated/
|
|
5747
5755
|
// persisted via the agent path (.passthrough() agent body → HubDO column), not here.
|
|
5748
5756
|
auto_close_inactive_days: external_exports.number().int().min(1).max(180).optional(),
|
|
5757
|
+
// Per-hub ConversationDO retention window (days) — keeps an ended conversation's DO
|
|
5758
|
+
// alive for post-hoc annotation. Default 7, max 30 (= ENDED_INDEX_RETENTION_DAYS).
|
|
5759
|
+
conversation_retention_days: external_exports.number().int().min(1).max(30).optional(),
|
|
5749
5760
|
// Channel contact access control. Enum-validated explicitly (not via passthrough)
|
|
5750
5761
|
// so `language`/`access_approval_role` can't reach the DB with an invalid value.
|
|
5751
5762
|
language: external_exports.enum(["en", "pt", "es"]).optional(),
|
|
@@ -5929,6 +5940,70 @@ var init_dist = __esm({
|
|
|
5929
5940
|
display_order: external_exports.number().int().nonnegative()
|
|
5930
5941
|
})).min(1)
|
|
5931
5942
|
});
|
|
5943
|
+
variantAiModeSchema = external_exports.enum(["pilot+copilot", "pilot", "copilot", "turned_off"]);
|
|
5944
|
+
experimentStatusSchema = external_exports.enum(["draft", "running", "stopped"]);
|
|
5945
|
+
overlayUpdateSchema = external_exports.record(external_exports.unknown()).nullish().transform((v) => v === void 0 ? void 0 : v && Object.keys(v).length > 0 ? v : null);
|
|
5946
|
+
experimentIdParam = external_exports.object({
|
|
5947
|
+
id: external_exports.string().uuid()
|
|
5948
|
+
});
|
|
5949
|
+
variantIdParam = external_exports.object({
|
|
5950
|
+
id: external_exports.string().uuid()
|
|
5951
|
+
});
|
|
5952
|
+
listExperimentsQuery = external_exports.object({
|
|
5953
|
+
hub_id: external_exports.string().uuid()
|
|
5954
|
+
});
|
|
5955
|
+
listVariantsQuery = external_exports.object({
|
|
5956
|
+
hub_id: external_exports.string().uuid(),
|
|
5957
|
+
experiment_id: external_exports.string().uuid().optional()
|
|
5958
|
+
});
|
|
5959
|
+
listOverridesQuery = external_exports.object({
|
|
5960
|
+
hub_id: external_exports.string().uuid(),
|
|
5961
|
+
variant_id: external_exports.string().uuid()
|
|
5962
|
+
});
|
|
5963
|
+
deleteOverrideQuery = external_exports.object({
|
|
5964
|
+
hub_id: external_exports.string().uuid(),
|
|
5965
|
+
variant_id: external_exports.string().uuid(),
|
|
5966
|
+
agent_id: external_exports.string().uuid()
|
|
5967
|
+
});
|
|
5968
|
+
createExperimentBody = external_exports.object({
|
|
5969
|
+
hub_id: external_exports.string().uuid(),
|
|
5970
|
+
experiment_slug: slugSchema.optional(),
|
|
5971
|
+
experiment_name: external_exports.string().min(1, "experiment_name is required").max(100, "experiment_name must be 100 characters or fewer"),
|
|
5972
|
+
primary_metric: external_exports.string().max(200).nullish(),
|
|
5973
|
+
status: experimentStatusSchema.default("draft")
|
|
5974
|
+
});
|
|
5975
|
+
updateExperimentBody = external_exports.object({
|
|
5976
|
+
// experiment_slug is immutable after first persist — not accepted here.
|
|
5977
|
+
experiment_name: external_exports.string().min(1).max(100).optional(),
|
|
5978
|
+
primary_metric: external_exports.string().max(200).nullish(),
|
|
5979
|
+
control_variant_id: external_exports.string().uuid().nullish()
|
|
5980
|
+
});
|
|
5981
|
+
setExperimentStatusBody = external_exports.object({
|
|
5982
|
+
status: experimentStatusSchema
|
|
5983
|
+
});
|
|
5984
|
+
createVariantBody = external_exports.object({
|
|
5985
|
+
hub_id: external_exports.string().uuid(),
|
|
5986
|
+
experiment_id: external_exports.string().uuid(),
|
|
5987
|
+
label: external_exports.string().min(1, "label is required").max(100, "label must be 100 characters or fewer"),
|
|
5988
|
+
weight: external_exports.number().positive().default(1),
|
|
5989
|
+
ai_mode: variantAiModeSchema.nullish(),
|
|
5990
|
+
is_control: external_exports.boolean().default(false)
|
|
5991
|
+
});
|
|
5992
|
+
updateVariantBody = external_exports.object({
|
|
5993
|
+
label: external_exports.string().min(1).max(100).optional(),
|
|
5994
|
+
weight: external_exports.number().positive().optional(),
|
|
5995
|
+
ai_mode: variantAiModeSchema.nullish(),
|
|
5996
|
+
is_control: external_exports.boolean().optional()
|
|
5997
|
+
});
|
|
5998
|
+
upsertOverrideBody = external_exports.object({
|
|
5999
|
+
hub_id: external_exports.string().uuid(),
|
|
6000
|
+
variant_id: external_exports.string().uuid(),
|
|
6001
|
+
agent_id: external_exports.string().uuid(),
|
|
6002
|
+
instructions: external_exports.string().nullish(),
|
|
6003
|
+
additional_context_template: external_exports.string().nullish(),
|
|
6004
|
+
connection_id: external_exports.string().uuid().nullish(),
|
|
6005
|
+
agent_settings_overlay: overlayUpdateSchema
|
|
6006
|
+
});
|
|
5932
6007
|
orgTagIdParam = external_exports.object({
|
|
5933
6008
|
id: external_exports.string().uuid()
|
|
5934
6009
|
});
|
|
@@ -6297,7 +6372,7 @@ var init_dist = __esm({
|
|
|
6297
6372
|
selected_variables: external_exports.array(external_exports.string()),
|
|
6298
6373
|
include_summary: external_exports.boolean().optional(),
|
|
6299
6374
|
include_variables: external_exports.boolean().optional(),
|
|
6300
|
-
variable_origin: external_exports.enum(["agent", "system"]).optional(),
|
|
6375
|
+
variable_origin: external_exports.enum(["agent", "system", "annotation"]).optional(),
|
|
6301
6376
|
variable_category: external_exports.string().optional(),
|
|
6302
6377
|
variables_only: external_exports.boolean().optional()
|
|
6303
6378
|
});
|
|
@@ -6684,6 +6759,15 @@ var init_dist = __esm({
|
|
|
6684
6759
|
additional_context: additionalContextPayloadSchema.optional(),
|
|
6685
6760
|
event_description: external_exports.string().optional()
|
|
6686
6761
|
});
|
|
6762
|
+
annotateConversationBody = external_exports.object({
|
|
6763
|
+
hub_id: external_exports.string().uuid(),
|
|
6764
|
+
key: external_exports.string().regex(
|
|
6765
|
+
AGENT_PARAMETER_NAME_REGEX,
|
|
6766
|
+
"key must be a valid identifier (letter/underscore start; letters, digits, underscore; max 64 chars)"
|
|
6767
|
+
),
|
|
6768
|
+
value: external_exports.union([external_exports.string().max(1024), external_exports.number(), external_exports.boolean()]),
|
|
6769
|
+
type: external_exports.enum(["numeric", "categorical", "text"]).default("categorical")
|
|
6770
|
+
});
|
|
6687
6771
|
observabilityParams = external_exports.object({
|
|
6688
6772
|
conversationId: external_exports.string().uuid(),
|
|
6689
6773
|
messageId: external_exports.string().uuid()
|
|
@@ -7623,9 +7707,11 @@ var init_dist = __esm({
|
|
|
7623
7707
|
templateYamlRekorBlock = templateRekorPointerSchema.extend({
|
|
7624
7708
|
locales: external_exports.record(templateLocaleSchema, templateYamlLocaleEntry)
|
|
7625
7709
|
});
|
|
7710
|
+
templateTagsSchema = external_exports.array(external_exports.string().min(1).max(30)).max(12).default([]).transform((tags) => [...new Set(tags.map((t) => t.trim().toLowerCase()).filter(Boolean))]);
|
|
7626
7711
|
templateYamlSchema = external_exports.object({
|
|
7627
7712
|
slug: templateSlugSchema,
|
|
7628
7713
|
category: external_exports.string().min(1).max(60),
|
|
7714
|
+
tags: templateTagsSchema,
|
|
7629
7715
|
status: templateStatusSchema.default("draft"),
|
|
7630
7716
|
order: external_exports.number().int().min(0).max(1e5).optional(),
|
|
7631
7717
|
defaultLocale: templateLocaleSchema,
|
|
@@ -7662,6 +7748,7 @@ var init_dist = __esm({
|
|
|
7662
7748
|
defaultLocale: templateLocaleSchema,
|
|
7663
7749
|
common: external_exports.object({
|
|
7664
7750
|
category: external_exports.string().min(1).max(60),
|
|
7751
|
+
tags: templateTagsSchema,
|
|
7665
7752
|
status: templateStatusSchema,
|
|
7666
7753
|
order: external_exports.number().int().min(0).max(1e5).default(0),
|
|
7667
7754
|
// The WayAI install command — present iff the template has a wayai side; a
|
|
@@ -11437,6 +11524,11 @@ Usage:
|
|
|
11437
11524
|
wayai conversations <conversation_id> Show detail + messages
|
|
11438
11525
|
wayai conversations <conversation_id> observability List the LLM turns (per-message id, latency, tool_calls)
|
|
11439
11526
|
wayai conversations <conversation_id> observability --message-id <id>
|
|
11527
|
+
wayai conversations <conversation_id> annotate --set key=value [--type numeric|categorical|text]
|
|
11528
|
+
Set a post-hoc business outcome (e.g. customer_purchased=true)
|
|
11529
|
+
on an ended conversation, as an analytics dimension. Repeat
|
|
11530
|
+
--set for multiple keys. Needs the hub kept within its
|
|
11531
|
+
conversation retention window.
|
|
11440
11532
|
Full record for one turn:
|
|
11441
11533
|
resolved system prompt, the exact
|
|
11442
11534
|
messages the model saw (rendered
|
|
@@ -11473,6 +11565,8 @@ async function conversationsCommand(args2) {
|
|
|
11473
11565
|
let from;
|
|
11474
11566
|
let to;
|
|
11475
11567
|
let jsonOutput = false;
|
|
11568
|
+
const annotations = [];
|
|
11569
|
+
let annotationType;
|
|
11476
11570
|
for (let i = 0; i < args2.length; i++) {
|
|
11477
11571
|
const arg = args2[i];
|
|
11478
11572
|
if (arg === "--status") {
|
|
@@ -11511,6 +11605,26 @@ async function conversationsCommand(args2) {
|
|
|
11511
11605
|
process.exit(1);
|
|
11512
11606
|
}
|
|
11513
11607
|
to = args2[++i];
|
|
11608
|
+
} else if (arg === "--set") {
|
|
11609
|
+
if (i + 1 >= args2.length) {
|
|
11610
|
+
console.error("--set requires key=value");
|
|
11611
|
+
process.exit(1);
|
|
11612
|
+
}
|
|
11613
|
+
const pair = args2[++i];
|
|
11614
|
+
const eq = pair.indexOf("=");
|
|
11615
|
+
if (eq <= 0) {
|
|
11616
|
+
console.error(`--set must be key=value (got: ${pair})`);
|
|
11617
|
+
process.exit(1);
|
|
11618
|
+
}
|
|
11619
|
+
annotations.push({ key: pair.slice(0, eq), value: pair.slice(eq + 1) });
|
|
11620
|
+
} else if (arg === "--type") {
|
|
11621
|
+
const val = args2[++i];
|
|
11622
|
+
if (val === "numeric" || val === "categorical" || val === "text") {
|
|
11623
|
+
annotationType = val;
|
|
11624
|
+
} else {
|
|
11625
|
+
console.error(`Invalid --type: ${val}. Must be 'numeric', 'categorical', or 'text'.`);
|
|
11626
|
+
process.exit(1);
|
|
11627
|
+
}
|
|
11514
11628
|
} else if (arg === "--json") {
|
|
11515
11629
|
jsonOutput = true;
|
|
11516
11630
|
} else if (!arg.startsWith("-")) {
|
|
@@ -11548,6 +11662,29 @@ async function conversationsCommand(args2) {
|
|
|
11548
11662
|
}
|
|
11549
11663
|
return;
|
|
11550
11664
|
}
|
|
11665
|
+
if (subcommand === "annotate") {
|
|
11666
|
+
if (!conversationId) {
|
|
11667
|
+
console.error("Usage: wayai conversations <conversation_id> annotate --set key=value [--type numeric|categorical|text]");
|
|
11668
|
+
process.exit(1);
|
|
11669
|
+
}
|
|
11670
|
+
if (annotations.length === 0) {
|
|
11671
|
+
console.error("annotate requires at least one --set key=value");
|
|
11672
|
+
process.exit(1);
|
|
11673
|
+
}
|
|
11674
|
+
const results = [];
|
|
11675
|
+
for (const { key, value } of annotations) {
|
|
11676
|
+
const inferred = value.trim() !== "" && Number.isFinite(Number(value)) ? "numeric" : "categorical";
|
|
11677
|
+
const type = annotationType ?? inferred;
|
|
11678
|
+
await client.annotateConversation(hubId, conversationId, { key, value, type });
|
|
11679
|
+
results.push({ key, type });
|
|
11680
|
+
}
|
|
11681
|
+
if (jsonOutput) {
|
|
11682
|
+
console.log(JSON.stringify({ conversation_id: conversationId, annotations: results }, null, 2));
|
|
11683
|
+
} else {
|
|
11684
|
+
for (const r of results) console.log(`\u2713 Set annotation ${r.key} (${r.type})`);
|
|
11685
|
+
}
|
|
11686
|
+
return;
|
|
11687
|
+
}
|
|
11551
11688
|
if (subcommand) {
|
|
11552
11689
|
console.error(`Unknown conversations subcommand: ${subcommand}`);
|
|
11553
11690
|
process.exit(1);
|
|
@@ -13154,7 +13291,7 @@ function isSafeTemplatePath2(path22) {
|
|
|
13154
13291
|
function resolveTemplateMcpEndpoint(manifest) {
|
|
13155
13292
|
return manifest.mcpEndpoint ?? manifest.rekor?.mcpEndpoint;
|
|
13156
13293
|
}
|
|
13157
|
-
var uuidSchema2, paginationSchema3, timestampSchema2, idParamSchema2, primaryRegionSchema2, placementSourceSchema2, orgIdParam2, orgAdminIdParam2, createOrganizationBody2, updateOrganizationBody2, addOrgAdminBody2, AUTH_TYPE2, ORG_CREDENTIAL_AUTH_TYPES2, AUTH_TYPE_DISPLAY2, LEGACY_AUTH_TYPE_MAP2, VALID_AUTH_TYPES2, AGENT_ROLES2, SAFE_USER_ID_REGEX2, SUPPORTED_LOCALES2, SUMMARIZATION_THRESHOLD_MIN2, SUMMARIZATION_THRESHOLD_MAX2, summarizationThresholdField2, monitorConfigField2, agentIdParam2, listAgentsQuery2, agentConnectionsQuery2, createAgentBody2, updateAgentBody2, AGENT_PARAMETER_TYPES2, AGENT_PARAMETER_NAME_REGEX2, agentParameterCreateSchema2, MAX_AGENT_PARAMETERS_PER_REQUEST2, createAgentParametersBody2, SLUG_REGEX2, slugSchema2, INVISIBLE_NAME_CHARS2, MAX_KANBAN_STATUSES2, MAX_FOLLOWUPS_PER_STATUS2, MAX_LANES2, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES2, RESERVED_TEMPLATE_DUMP_NAME2, kanbanStatusSlugSchema2, followupSchema2, EXCLUSIVE_FLAG_PAIRS2, kanbanStatusSchema2, kanbanStatusesArraySchema2, laneSchema2, lanesArraySchema2, hubIdParam2, hubAdminIdParam2, hubUserIdParam2, hubIdentityIdParam2, hubTeamIdParam2, hubTeamUserDeleteParam2, hubSchemaQuery2, createHubBody2, updateHubBody2, addHubAdminBody2, addHubIdentityAuthorizationBody2, contactDecisionBody2, approveContactBody2, listContactAccessQuery2, createHubTeamBody2, updateHubTeamBody2, addHubTeamUserBody2, reassignHubUserBody2, replicatePreviewBody2, claimCodeChannelParam2, claimCodeDeleteParam2, connectionIdParam2, connectorIdParam2, listConnectionsQuery2, deleteConnectionQuery2, addConnectionBody2, editConnectionBody2, registerWhatsappQuery2, registerWhatsappBody2, retryProvisioningQuery2, resendDomainStatusQuery2, PLACEHOLDER_TOKENS2, ALLOWED_TYPES2, SUBSCHEMA_OBJECT_KEYWORDS2, SUBSCHEMA_LIST_KEYWORDS2, SUBSCHEMA_MAP_KEYWORDS2, MAX_SCHEMA_DEPTH2, toolIdParam2, listToolsQuery2, toolAgentQuery2, deleteToolQuery2, toolConnectionsQuery2, nativeToolIdSchema2, addNativeToolBody2, addMcpToolBody2, createCustomToolBody2, updateCustomToolBody2, updateToolExecutionConfigBody2, initialValueCreateSchema2, initialValueUpdateSchema2, stateIdParam2, listStatesQuery2, stateNameSchema2, createStateBody2, updateStateBody2, reorderStatesBody2, orgTagIdParam2, listOrgTagsQuery2, createOrgTagBody2, updateOrgTagBody2, orgCredentialIdParam2, listOrgCredentialsQuery2, createOrgCredentialBody2, updateOrgCredentialBody2, orgResourceIdParam2, orgResourceFileIdParam2, orgResourceFolderIdParam2, hubOrgResourceParam2, listOrgResourcesQuery2, orgIdQuery2, createOrgResourceBody2, updateOrgResourceBody2, createOrgResourceFolderBody2, updateOrgResourceFolderBody2, uploadOrgResourceFileBody2, updateOrgResourceFileBody2, uploadOrgSkillZipBody2, linkOrgResourceBody2, resourceIdParam2, listResourcesQuery2, createResourceBody2, updateResourceBody2, syncSkillsBody2, resourceFileIdParam2, listResourceFilesQuery2, createResourceFileBody2, updateResourceFileBody2, uploadResourceFileBody2, uploadSkillZipBody2, resourceFolderIdParam2, listResourceFoldersQuery2, createResourceFolderBody2, updateResourceFolderBody2, agentResourceQuery2, hubResourceQuery2, linkAgentResourceBody2, updateAgentResourceBody2, unlinkAgentResourceQuery2, navItemSchema2, hubCountResetBody2, navItemCountResetBody2, typingBody2, analyticsHubIdParam2, analyticsVariableIdParam2, updateVariablePinBody2, updateAnalyticsViewBody2, NUMERIC_FILTER_OPS2, TEXT_FILTER_OPS2, CATEGORICAL_FILTER_OPS2, VARIABLE_FILTER_OPS2, STRUCTURED_QUERY_OPS2, STRUCTURED_QUERY_AGGREGATIONS2, filterValueSchema2, conversationsBody2, analyticsConversationIdParam2, messagesQuery2, conversationDetailDataQuery2, analyticsDataBody2, structuredQueryBody2, analyticsSqlBody2, analyticsSqlSchemaQuery2, PACING_INTERVAL_MIN_MS2, PACING_INTERVAL_MAX_MS2, EVAL_RUN_DEADLINE_MIN_MS2, EVAL_RUN_DEADLINE_MAX_MS2, paginationSchema22, evalIdParam2, sessionIdParam2, scenarioSetIdParam2, hubIdQuery2, createEvalBody2, updateEvalBody2, getEvalsQuery2, toggleEvalBody2, bulkToggleEvalsBody2, pacingConfigSchema2, sessionConfigSchema2, createSessionBody2, getSessionsQuery2, getSessionResultsQuery2, getSessionRunsQuery2, evalAnalyticsQuery2, getSessionCostQuery2, compareSessionsQuery2, evalsSqlBody2, evalsSqlSchemaQuery2, exportResultsQuery2, validateEvalBody2, hubAgentsQuery2, createScenarioSetBody2, updateScenarioSetBody2, scenarioSetsHubQuery2, createScenarioFromConversationBody2, createJourneyFromConversationBody2, journeyIdParam2, journeyToolCallSchema2, journeyTurnSchema2, journeyStepOverrideSchema2, createJourneyBody2, updateJourneyBody2, getConversationsQuery2, getMessagesQuery2, updateUserBody2, updateProfileBody2, pathnameRegex2, updatePreferencesBody2, registerPushTokenBody2, deletePushTokenQuery2, activityQuery2, deletionModeSchema2, deletionRequestBody2, archiveHubIdParam2, archiveConversationParams2, archiveListQuery2, archiveMessageObservabilityParams2, conversationIdParam2, claimBody2, releaseBody2, transferBody2, closeBody2, additionalContextPayloadSchema2, kanbanUpdateBody2, observabilityParams2, observabilityListParams2, deleteUserConversationsBody2, sendMessageBody2, listConversationsQuery2, getConversationDetailParams2, getConversationDetailQuery2, listWhatsAppTemplatesQuery2, sendWhatsAppTemplateBody2, billingOrgIdParam2, subscriptionItemParams2, spendCapBody2, growthPacksBody2, portalSessionBody2, checkoutSessionBody2, updateBillingCurrencyBody2, invoicesQuery2, downloadBody2, uploadQuery2, signUrlBody2, completionsBody2, outboundSchemaQuery2, templateIdParam2, listTemplatesQuery2, deleteTemplateQuery2, templateStatusQuery2, createTemplateBody2, updateTemplateBody2, submitTemplateBody2, testTemplateBody2, contactIdParam2, listContactsQuery2, createContactBody2, updateContactBody2, listIdParam2, listListsQuery2, listListContactsQuery2, createListBody2, updateListBody2, addListContactsBody2, removeListContactsBody2, scheduleIdParam2, listSchedulesQuery2, listExecutionsQuery2, createScheduleBody2, updateScheduleBody2, uuidPattern2, ciUuidSchema2, hubAsCodeConfigSchema2, ciPullHubIdParam2, ciBranchParam2, ciPullQuery2, ciHubsQuery2, ciLookupQuery2, ciBranchesQuery2, ciSyncBody2, ciPushBody2, ciDiffBody2, ciPublishBody2, ciPublishPreviewBody2, ciSyncMcpBody2, ciOrgResourcesParam2, orgResourcesConfigSchema2, ciOrgResourcesPushBody2, ciOrgResourcesDiffBody2, adminOrgIdParam2, adminOrgAdminIdParam2, adminUserIdParam2, adminPlanIdParam2, adminOrganizationsQuery2, adminUserSearchQuery2, kanbanSlugMigrationQuery2, adjustQuotaBody2, updatePlanBody2, addAdminUserBody2, updatePlatformConfigBody2, updateFreeOrgLimitBody2, updatePricingPlanBody2, dataExplorerSearchQuery2, dataExplorerOrgIdParam2, dataExplorerHubIdParam2, dataExplorerConvIdParam2, dataExplorerDoInstancesQuery2, dataExplorerNsIdParam2, dataExplorerKvKeysQuery2, dataExplorerKvKeyParam2, uuidOrHexId2, dataExplorerDeleteOrgParam2, dataExplorerDeleteHubParam2, dataExplorerDeleteConvParam2, dataExplorerDeleteUserParam2, dataExplorerDeleteQuery2, dataExplorerKvDeleteQuery2, pitrDoNamespace2, pitrBookmarkParam2, pitrRestoreBody2, healthSamplingTriggerBody2, dataExplorerDebugDoType2, DEBUG_READ_MAX_LIMIT2, DEBUG_READ_DEFAULT_LIMIT2, DEBUG_DO_HEX_PREFIX2, debugDoEntityId2, debugTableName2, dataExplorerDebugTablesParam2, dataExplorerDebugRowsParam2, dataExplorerDebugRowsQuery2, dataExplorerDebugAnalyticsTable2, debugUuid2, dataExplorerDebugAnalyticsRowsParam2, dataExplorerDebugAnalyticsRowsQuery2, debugHubConvParam2, debugMessageIdQuery2, whatsappCallbackBody2, authMeResponse2, wsTicketResponse2, sessionCheckResponse2, logoutResponse2, magicCodeSendBody2, magicCodeSendResponse2, magicCodeVerifyBody2, magicCodeVerifyResponse2, browserParams2, browserFoldersQuery2, browserFilesQuery2, stateOperationBody2, conversationListResourcesQuery2, conversationReadResourceQuery2, listPendingSchedulesQuery2, listHubAggregateSchedulesQuery2, reportSourceSchema2, intakeReportSourceSchema2, reportClassificationSchema2, reportStatusSchema2, reportLocaleSchema2, reportMessageAuthorRoleSchema2, sentryRefStatusSchema2, createReportBody2, editReportBody2, contestReportBody2, reporterListQuery2, listReportsQuery2, GITHUB_ISSUE_URL_REGEX2, githubIssueUrlSchema2, transitionReportBody2, groupReportsBody2, holdReportBody2, clickhouseReadyResponse2, bootstrapQuery2, requestSnapshotChunkMessage2, MAX_NAME_LENGTH3, MAX_VALUE_LENGTH2, MAX_TAGS2, MAX_TAG_LENGTH2, MAX_SCOPE_HUBS2, MAX_SCOPE_TAGS2, vaultSecretScopeSchema2, vaultCreateBody2, vaultUpdateBody2, PERMISSIONS2, MAX_NAME_LENGTH22, MAX_HUBS_PER_GRANT2, MAX_HUB_TAGS_PER_GRANT2, MAX_GRANTS2, permissionEnum2, grantScopeSchema2, grantSchema2, createTokenBody2, tokenOrgIdParam2, tokenGrantScopeSchema2, tokenGrantSchema2, tokenMetadataSchema2, listTokensResponse2, createTokenResponse2, orgTokenSummarySchema2, listOrgTokensResponse2, invitePreviewQuery2, invitePreviewResponse2, discordTier2, discordBillingCycle2, discordMetadata2, discordOAuthStartResponse2, discordOAuthFinalizeBody2, discordOAuthFinalizeResponse2, discordDisconnectResponse2, jsonSchemaSchema2, hubUserIdentity2, stateValueEntry2, getHubUserContextResponse2, updateHubUserBody2, updateHubUserResponse2, unlockHubUserNameResponse2, stateResetParams2, stateResetResponse2, hubAlertsParam2, hubAlertSeverity2, hubAlert2, hubAlertsListResponse2, noticeSeveritySchema2, noticeStatusSchema2, NOTICE_SCOPE_REGEX2, noticeScopeSchema2, noticeLinkSchema2, createNoticeBody2, updateNoticeBody2, listNoticesQuery2, noticeIdParamSchema2, templateLocaleSchema2, TEMPLATE_SLUG_REGEX2, templateSlugSchema2, templateStatusSchema2, templateFileMapSchema2, templateTextSchema2, templateHttpUrl2, templateRekorPointerSchema2, templateYamlLocaleEntry2, templateYamlWayaiBlock2, templateYamlRekorBlock2, templateYamlSchema2, templateHeroSchema2, templatePushLocaleSchema2, templatePushBody2, templateListQuery2, templateSlugParam2, templateDetailQuery2, ADMIN_SKILL_NAME_REGEX2, adminSkillNameParam2;
|
|
13294
|
+
var uuidSchema2, paginationSchema3, timestampSchema2, idParamSchema2, primaryRegionSchema2, placementSourceSchema2, orgIdParam2, orgAdminIdParam2, createOrganizationBody2, updateOrganizationBody2, addOrgAdminBody2, AUTH_TYPE2, ORG_CREDENTIAL_AUTH_TYPES2, AUTH_TYPE_DISPLAY2, LEGACY_AUTH_TYPE_MAP2, VALID_AUTH_TYPES2, AGENT_ROLES2, SAFE_USER_ID_REGEX2, SUPPORTED_LOCALES2, SUMMARIZATION_THRESHOLD_MIN2, SUMMARIZATION_THRESHOLD_MAX2, summarizationThresholdField2, monitorConfigField2, agentIdParam2, listAgentsQuery2, agentConnectionsQuery2, createAgentBody2, updateAgentBody2, AGENT_PARAMETER_TYPES2, AGENT_PARAMETER_NAME_REGEX2, agentParameterCreateSchema2, MAX_AGENT_PARAMETERS_PER_REQUEST2, createAgentParametersBody2, SLUG_REGEX2, slugSchema2, INVISIBLE_NAME_CHARS2, MAX_KANBAN_STATUSES2, MAX_FOLLOWUPS_PER_STATUS2, MAX_LANES2, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES2, RESERVED_TEMPLATE_DUMP_NAME2, kanbanStatusSlugSchema2, followupSchema2, EXCLUSIVE_FLAG_PAIRS2, kanbanStatusSchema2, kanbanStatusesArraySchema2, laneSchema2, lanesArraySchema2, hubIdParam2, hubAdminIdParam2, hubUserIdParam2, hubIdentityIdParam2, hubTeamIdParam2, hubTeamUserDeleteParam2, hubSchemaQuery2, createHubBody2, updateHubBody2, addHubAdminBody2, addHubIdentityAuthorizationBody2, contactDecisionBody2, approveContactBody2, listContactAccessQuery2, createHubTeamBody2, updateHubTeamBody2, addHubTeamUserBody2, reassignHubUserBody2, replicatePreviewBody2, claimCodeChannelParam2, claimCodeDeleteParam2, connectionIdParam2, connectorIdParam2, listConnectionsQuery2, deleteConnectionQuery2, addConnectionBody2, editConnectionBody2, registerWhatsappQuery2, registerWhatsappBody2, retryProvisioningQuery2, resendDomainStatusQuery2, PLACEHOLDER_TOKENS2, ALLOWED_TYPES2, SUBSCHEMA_OBJECT_KEYWORDS2, SUBSCHEMA_LIST_KEYWORDS2, SUBSCHEMA_MAP_KEYWORDS2, MAX_SCHEMA_DEPTH2, toolIdParam2, listToolsQuery2, toolAgentQuery2, deleteToolQuery2, toolConnectionsQuery2, nativeToolIdSchema2, addNativeToolBody2, addMcpToolBody2, createCustomToolBody2, updateCustomToolBody2, updateToolExecutionConfigBody2, initialValueCreateSchema2, initialValueUpdateSchema2, stateIdParam2, listStatesQuery2, stateNameSchema2, createStateBody2, updateStateBody2, reorderStatesBody2, variantAiModeSchema2, experimentStatusSchema2, overlayUpdateSchema2, experimentIdParam2, variantIdParam2, listExperimentsQuery2, listVariantsQuery2, listOverridesQuery2, deleteOverrideQuery2, createExperimentBody2, updateExperimentBody2, setExperimentStatusBody2, createVariantBody2, updateVariantBody2, upsertOverrideBody2, orgTagIdParam2, listOrgTagsQuery2, createOrgTagBody2, updateOrgTagBody2, orgCredentialIdParam2, listOrgCredentialsQuery2, createOrgCredentialBody2, updateOrgCredentialBody2, orgResourceIdParam2, orgResourceFileIdParam2, orgResourceFolderIdParam2, hubOrgResourceParam2, listOrgResourcesQuery2, orgIdQuery2, createOrgResourceBody2, updateOrgResourceBody2, createOrgResourceFolderBody2, updateOrgResourceFolderBody2, uploadOrgResourceFileBody2, updateOrgResourceFileBody2, uploadOrgSkillZipBody2, linkOrgResourceBody2, resourceIdParam2, listResourcesQuery2, createResourceBody2, updateResourceBody2, syncSkillsBody2, resourceFileIdParam2, listResourceFilesQuery2, createResourceFileBody2, updateResourceFileBody2, uploadResourceFileBody2, uploadSkillZipBody2, resourceFolderIdParam2, listResourceFoldersQuery2, createResourceFolderBody2, updateResourceFolderBody2, agentResourceQuery2, hubResourceQuery2, linkAgentResourceBody2, updateAgentResourceBody2, unlinkAgentResourceQuery2, navItemSchema2, hubCountResetBody2, navItemCountResetBody2, typingBody2, analyticsHubIdParam2, analyticsVariableIdParam2, updateVariablePinBody2, updateAnalyticsViewBody2, NUMERIC_FILTER_OPS2, TEXT_FILTER_OPS2, CATEGORICAL_FILTER_OPS2, VARIABLE_FILTER_OPS2, STRUCTURED_QUERY_OPS2, STRUCTURED_QUERY_AGGREGATIONS2, filterValueSchema2, conversationsBody2, analyticsConversationIdParam2, messagesQuery2, conversationDetailDataQuery2, analyticsDataBody2, structuredQueryBody2, analyticsSqlBody2, analyticsSqlSchemaQuery2, PACING_INTERVAL_MIN_MS2, PACING_INTERVAL_MAX_MS2, EVAL_RUN_DEADLINE_MIN_MS2, EVAL_RUN_DEADLINE_MAX_MS2, paginationSchema22, evalIdParam2, sessionIdParam2, scenarioSetIdParam2, hubIdQuery2, createEvalBody2, updateEvalBody2, getEvalsQuery2, toggleEvalBody2, bulkToggleEvalsBody2, pacingConfigSchema2, sessionConfigSchema2, createSessionBody2, getSessionsQuery2, getSessionResultsQuery2, getSessionRunsQuery2, evalAnalyticsQuery2, getSessionCostQuery2, compareSessionsQuery2, evalsSqlBody2, evalsSqlSchemaQuery2, exportResultsQuery2, validateEvalBody2, hubAgentsQuery2, createScenarioSetBody2, updateScenarioSetBody2, scenarioSetsHubQuery2, createScenarioFromConversationBody2, createJourneyFromConversationBody2, journeyIdParam2, journeyToolCallSchema2, journeyTurnSchema2, journeyStepOverrideSchema2, createJourneyBody2, updateJourneyBody2, getConversationsQuery2, getMessagesQuery2, updateUserBody2, updateProfileBody2, pathnameRegex2, updatePreferencesBody2, registerPushTokenBody2, deletePushTokenQuery2, activityQuery2, deletionModeSchema2, deletionRequestBody2, archiveHubIdParam2, archiveConversationParams2, archiveListQuery2, archiveMessageObservabilityParams2, conversationIdParam2, claimBody2, releaseBody2, transferBody2, closeBody2, additionalContextPayloadSchema2, kanbanUpdateBody2, annotateConversationBody2, observabilityParams2, observabilityListParams2, deleteUserConversationsBody2, sendMessageBody2, listConversationsQuery2, getConversationDetailParams2, getConversationDetailQuery2, listWhatsAppTemplatesQuery2, sendWhatsAppTemplateBody2, billingOrgIdParam2, subscriptionItemParams2, spendCapBody2, growthPacksBody2, portalSessionBody2, checkoutSessionBody2, updateBillingCurrencyBody2, invoicesQuery2, downloadBody2, uploadQuery2, signUrlBody2, completionsBody2, outboundSchemaQuery2, templateIdParam2, listTemplatesQuery2, deleteTemplateQuery2, templateStatusQuery2, createTemplateBody2, updateTemplateBody2, submitTemplateBody2, testTemplateBody2, contactIdParam2, listContactsQuery2, createContactBody2, updateContactBody2, listIdParam2, listListsQuery2, listListContactsQuery2, createListBody2, updateListBody2, addListContactsBody2, removeListContactsBody2, scheduleIdParam2, listSchedulesQuery2, listExecutionsQuery2, createScheduleBody2, updateScheduleBody2, uuidPattern2, ciUuidSchema2, hubAsCodeConfigSchema2, ciPullHubIdParam2, ciBranchParam2, ciPullQuery2, ciHubsQuery2, ciLookupQuery2, ciBranchesQuery2, ciSyncBody2, ciPushBody2, ciDiffBody2, ciPublishBody2, ciPublishPreviewBody2, ciSyncMcpBody2, ciOrgResourcesParam2, orgResourcesConfigSchema2, ciOrgResourcesPushBody2, ciOrgResourcesDiffBody2, adminOrgIdParam2, adminOrgAdminIdParam2, adminUserIdParam2, adminPlanIdParam2, adminOrganizationsQuery2, adminUserSearchQuery2, kanbanSlugMigrationQuery2, adjustQuotaBody2, updatePlanBody2, addAdminUserBody2, updatePlatformConfigBody2, updateFreeOrgLimitBody2, updatePricingPlanBody2, dataExplorerSearchQuery2, dataExplorerOrgIdParam2, dataExplorerHubIdParam2, dataExplorerConvIdParam2, dataExplorerDoInstancesQuery2, dataExplorerNsIdParam2, dataExplorerKvKeysQuery2, dataExplorerKvKeyParam2, uuidOrHexId2, dataExplorerDeleteOrgParam2, dataExplorerDeleteHubParam2, dataExplorerDeleteConvParam2, dataExplorerDeleteUserParam2, dataExplorerDeleteQuery2, dataExplorerKvDeleteQuery2, pitrDoNamespace2, pitrBookmarkParam2, pitrRestoreBody2, healthSamplingTriggerBody2, dataExplorerDebugDoType2, DEBUG_READ_MAX_LIMIT2, DEBUG_READ_DEFAULT_LIMIT2, DEBUG_DO_HEX_PREFIX2, debugDoEntityId2, debugTableName2, dataExplorerDebugTablesParam2, dataExplorerDebugRowsParam2, dataExplorerDebugRowsQuery2, dataExplorerDebugAnalyticsTable2, debugUuid2, dataExplorerDebugAnalyticsRowsParam2, dataExplorerDebugAnalyticsRowsQuery2, debugHubConvParam2, debugMessageIdQuery2, whatsappCallbackBody2, authMeResponse2, wsTicketResponse2, sessionCheckResponse2, logoutResponse2, magicCodeSendBody2, magicCodeSendResponse2, magicCodeVerifyBody2, magicCodeVerifyResponse2, browserParams2, browserFoldersQuery2, browserFilesQuery2, stateOperationBody2, conversationListResourcesQuery2, conversationReadResourceQuery2, listPendingSchedulesQuery2, listHubAggregateSchedulesQuery2, reportSourceSchema2, intakeReportSourceSchema2, reportClassificationSchema2, reportStatusSchema2, reportLocaleSchema2, reportMessageAuthorRoleSchema2, sentryRefStatusSchema2, createReportBody2, editReportBody2, contestReportBody2, reporterListQuery2, listReportsQuery2, GITHUB_ISSUE_URL_REGEX2, githubIssueUrlSchema2, transitionReportBody2, groupReportsBody2, holdReportBody2, clickhouseReadyResponse2, bootstrapQuery2, requestSnapshotChunkMessage2, MAX_NAME_LENGTH3, MAX_VALUE_LENGTH2, MAX_TAGS2, MAX_TAG_LENGTH2, MAX_SCOPE_HUBS2, MAX_SCOPE_TAGS2, vaultSecretScopeSchema2, vaultCreateBody2, vaultUpdateBody2, PERMISSIONS2, MAX_NAME_LENGTH22, MAX_HUBS_PER_GRANT2, MAX_HUB_TAGS_PER_GRANT2, MAX_GRANTS2, permissionEnum2, grantScopeSchema2, grantSchema2, createTokenBody2, tokenOrgIdParam2, tokenGrantScopeSchema2, tokenGrantSchema2, tokenMetadataSchema2, listTokensResponse2, createTokenResponse2, orgTokenSummarySchema2, listOrgTokensResponse2, invitePreviewQuery2, invitePreviewResponse2, discordTier2, discordBillingCycle2, discordMetadata2, discordOAuthStartResponse2, discordOAuthFinalizeBody2, discordOAuthFinalizeResponse2, discordDisconnectResponse2, jsonSchemaSchema2, hubUserIdentity2, stateValueEntry2, getHubUserContextResponse2, updateHubUserBody2, updateHubUserResponse2, unlockHubUserNameResponse2, stateResetParams2, stateResetResponse2, hubAlertsParam2, hubAlertSeverity2, hubAlert2, hubAlertsListResponse2, noticeSeveritySchema2, noticeStatusSchema2, NOTICE_SCOPE_REGEX2, noticeScopeSchema2, noticeLinkSchema2, createNoticeBody2, updateNoticeBody2, listNoticesQuery2, noticeIdParamSchema2, templateLocaleSchema2, TEMPLATE_SLUG_REGEX2, templateSlugSchema2, templateStatusSchema2, templateFileMapSchema2, templateTextSchema2, templateHttpUrl2, templateRekorPointerSchema2, templateYamlLocaleEntry2, templateYamlWayaiBlock2, templateYamlRekorBlock2, templateTagsSchema2, templateYamlSchema2, templateHeroSchema2, templatePushLocaleSchema2, templatePushBody2, templateListQuery2, templateSlugParam2, templateDetailQuery2, ADMIN_SKILL_NAME_REGEX2, adminSkillNameParam2;
|
|
13158
13295
|
var init_contracts = __esm({
|
|
13159
13296
|
"../../packages/core/dist/contracts/index.js"() {
|
|
13160
13297
|
"use strict";
|
|
@@ -13204,6 +13341,7 @@ var init_contracts = __esm({
|
|
|
13204
13341
|
init_zod();
|
|
13205
13342
|
init_zod();
|
|
13206
13343
|
init_zod();
|
|
13344
|
+
init_zod();
|
|
13207
13345
|
uuidSchema2 = external_exports.string().uuid();
|
|
13208
13346
|
paginationSchema3 = external_exports.object({
|
|
13209
13347
|
limit: external_exports.coerce.number().int().min(1).max(100).default(50),
|
|
@@ -13568,6 +13706,9 @@ var init_contracts = __esm({
|
|
|
13568
13706
|
// summarization_threshold_tokens relocated to the summarizer AGENT (PR4) — validated/
|
|
13569
13707
|
// persisted via the agent path (.passthrough() agent body → HubDO column), not here.
|
|
13570
13708
|
auto_close_inactive_days: external_exports.number().int().min(1).max(180).optional(),
|
|
13709
|
+
// Per-hub ConversationDO retention window (days) — keeps an ended conversation's DO
|
|
13710
|
+
// alive for post-hoc annotation. Default 7, max 30 (= ENDED_INDEX_RETENTION_DAYS).
|
|
13711
|
+
conversation_retention_days: external_exports.number().int().min(1).max(30).optional(),
|
|
13571
13712
|
// Channel contact access control. Enum-validated explicitly (not via passthrough)
|
|
13572
13713
|
// so `language`/`access_approval_role` can't reach the DB with an invalid value.
|
|
13573
13714
|
language: external_exports.enum(["en", "pt", "es"]).optional(),
|
|
@@ -13751,6 +13892,70 @@ var init_contracts = __esm({
|
|
|
13751
13892
|
display_order: external_exports.number().int().nonnegative()
|
|
13752
13893
|
})).min(1)
|
|
13753
13894
|
});
|
|
13895
|
+
variantAiModeSchema2 = external_exports.enum(["pilot+copilot", "pilot", "copilot", "turned_off"]);
|
|
13896
|
+
experimentStatusSchema2 = external_exports.enum(["draft", "running", "stopped"]);
|
|
13897
|
+
overlayUpdateSchema2 = external_exports.record(external_exports.unknown()).nullish().transform((v) => v === void 0 ? void 0 : v && Object.keys(v).length > 0 ? v : null);
|
|
13898
|
+
experimentIdParam2 = external_exports.object({
|
|
13899
|
+
id: external_exports.string().uuid()
|
|
13900
|
+
});
|
|
13901
|
+
variantIdParam2 = external_exports.object({
|
|
13902
|
+
id: external_exports.string().uuid()
|
|
13903
|
+
});
|
|
13904
|
+
listExperimentsQuery2 = external_exports.object({
|
|
13905
|
+
hub_id: external_exports.string().uuid()
|
|
13906
|
+
});
|
|
13907
|
+
listVariantsQuery2 = external_exports.object({
|
|
13908
|
+
hub_id: external_exports.string().uuid(),
|
|
13909
|
+
experiment_id: external_exports.string().uuid().optional()
|
|
13910
|
+
});
|
|
13911
|
+
listOverridesQuery2 = external_exports.object({
|
|
13912
|
+
hub_id: external_exports.string().uuid(),
|
|
13913
|
+
variant_id: external_exports.string().uuid()
|
|
13914
|
+
});
|
|
13915
|
+
deleteOverrideQuery2 = external_exports.object({
|
|
13916
|
+
hub_id: external_exports.string().uuid(),
|
|
13917
|
+
variant_id: external_exports.string().uuid(),
|
|
13918
|
+
agent_id: external_exports.string().uuid()
|
|
13919
|
+
});
|
|
13920
|
+
createExperimentBody2 = external_exports.object({
|
|
13921
|
+
hub_id: external_exports.string().uuid(),
|
|
13922
|
+
experiment_slug: slugSchema2.optional(),
|
|
13923
|
+
experiment_name: external_exports.string().min(1, "experiment_name is required").max(100, "experiment_name must be 100 characters or fewer"),
|
|
13924
|
+
primary_metric: external_exports.string().max(200).nullish(),
|
|
13925
|
+
status: experimentStatusSchema2.default("draft")
|
|
13926
|
+
});
|
|
13927
|
+
updateExperimentBody2 = external_exports.object({
|
|
13928
|
+
// experiment_slug is immutable after first persist — not accepted here.
|
|
13929
|
+
experiment_name: external_exports.string().min(1).max(100).optional(),
|
|
13930
|
+
primary_metric: external_exports.string().max(200).nullish(),
|
|
13931
|
+
control_variant_id: external_exports.string().uuid().nullish()
|
|
13932
|
+
});
|
|
13933
|
+
setExperimentStatusBody2 = external_exports.object({
|
|
13934
|
+
status: experimentStatusSchema2
|
|
13935
|
+
});
|
|
13936
|
+
createVariantBody2 = external_exports.object({
|
|
13937
|
+
hub_id: external_exports.string().uuid(),
|
|
13938
|
+
experiment_id: external_exports.string().uuid(),
|
|
13939
|
+
label: external_exports.string().min(1, "label is required").max(100, "label must be 100 characters or fewer"),
|
|
13940
|
+
weight: external_exports.number().positive().default(1),
|
|
13941
|
+
ai_mode: variantAiModeSchema2.nullish(),
|
|
13942
|
+
is_control: external_exports.boolean().default(false)
|
|
13943
|
+
});
|
|
13944
|
+
updateVariantBody2 = external_exports.object({
|
|
13945
|
+
label: external_exports.string().min(1).max(100).optional(),
|
|
13946
|
+
weight: external_exports.number().positive().optional(),
|
|
13947
|
+
ai_mode: variantAiModeSchema2.nullish(),
|
|
13948
|
+
is_control: external_exports.boolean().optional()
|
|
13949
|
+
});
|
|
13950
|
+
upsertOverrideBody2 = external_exports.object({
|
|
13951
|
+
hub_id: external_exports.string().uuid(),
|
|
13952
|
+
variant_id: external_exports.string().uuid(),
|
|
13953
|
+
agent_id: external_exports.string().uuid(),
|
|
13954
|
+
instructions: external_exports.string().nullish(),
|
|
13955
|
+
additional_context_template: external_exports.string().nullish(),
|
|
13956
|
+
connection_id: external_exports.string().uuid().nullish(),
|
|
13957
|
+
agent_settings_overlay: overlayUpdateSchema2
|
|
13958
|
+
});
|
|
13754
13959
|
orgTagIdParam2 = external_exports.object({
|
|
13755
13960
|
id: external_exports.string().uuid()
|
|
13756
13961
|
});
|
|
@@ -14119,7 +14324,7 @@ var init_contracts = __esm({
|
|
|
14119
14324
|
selected_variables: external_exports.array(external_exports.string()),
|
|
14120
14325
|
include_summary: external_exports.boolean().optional(),
|
|
14121
14326
|
include_variables: external_exports.boolean().optional(),
|
|
14122
|
-
variable_origin: external_exports.enum(["agent", "system"]).optional(),
|
|
14327
|
+
variable_origin: external_exports.enum(["agent", "system", "annotation"]).optional(),
|
|
14123
14328
|
variable_category: external_exports.string().optional(),
|
|
14124
14329
|
variables_only: external_exports.boolean().optional()
|
|
14125
14330
|
});
|
|
@@ -14506,6 +14711,15 @@ var init_contracts = __esm({
|
|
|
14506
14711
|
additional_context: additionalContextPayloadSchema2.optional(),
|
|
14507
14712
|
event_description: external_exports.string().optional()
|
|
14508
14713
|
});
|
|
14714
|
+
annotateConversationBody2 = external_exports.object({
|
|
14715
|
+
hub_id: external_exports.string().uuid(),
|
|
14716
|
+
key: external_exports.string().regex(
|
|
14717
|
+
AGENT_PARAMETER_NAME_REGEX2,
|
|
14718
|
+
"key must be a valid identifier (letter/underscore start; letters, digits, underscore; max 64 chars)"
|
|
14719
|
+
),
|
|
14720
|
+
value: external_exports.union([external_exports.string().max(1024), external_exports.number(), external_exports.boolean()]),
|
|
14721
|
+
type: external_exports.enum(["numeric", "categorical", "text"]).default("categorical")
|
|
14722
|
+
});
|
|
14509
14723
|
observabilityParams2 = external_exports.object({
|
|
14510
14724
|
conversationId: external_exports.string().uuid(),
|
|
14511
14725
|
messageId: external_exports.string().uuid()
|
|
@@ -15445,9 +15659,11 @@ var init_contracts = __esm({
|
|
|
15445
15659
|
templateYamlRekorBlock2 = templateRekorPointerSchema2.extend({
|
|
15446
15660
|
locales: external_exports.record(templateLocaleSchema2, templateYamlLocaleEntry2)
|
|
15447
15661
|
});
|
|
15662
|
+
templateTagsSchema2 = external_exports.array(external_exports.string().min(1).max(30)).max(12).default([]).transform((tags) => [...new Set(tags.map((t) => t.trim().toLowerCase()).filter(Boolean))]);
|
|
15448
15663
|
templateYamlSchema2 = external_exports.object({
|
|
15449
15664
|
slug: templateSlugSchema2,
|
|
15450
15665
|
category: external_exports.string().min(1).max(60),
|
|
15666
|
+
tags: templateTagsSchema2,
|
|
15451
15667
|
status: templateStatusSchema2.default("draft"),
|
|
15452
15668
|
order: external_exports.number().int().min(0).max(1e5).optional(),
|
|
15453
15669
|
defaultLocale: templateLocaleSchema2,
|
|
@@ -15484,6 +15700,7 @@ var init_contracts = __esm({
|
|
|
15484
15700
|
defaultLocale: templateLocaleSchema2,
|
|
15485
15701
|
common: external_exports.object({
|
|
15486
15702
|
category: external_exports.string().min(1).max(60),
|
|
15703
|
+
tags: templateTagsSchema2,
|
|
15487
15704
|
status: templateStatusSchema2,
|
|
15488
15705
|
order: external_exports.number().int().min(0).max(1e5).default(0),
|
|
15489
15706
|
// The WayAI install command — present iff the template has a wayai side; a
|
|
@@ -16985,6 +17202,7 @@ function buildTemplatePushCommon(manifest, hero) {
|
|
|
16985
17202
|
const mcpEndpoint = resolveTemplateMcpEndpoint(manifest);
|
|
16986
17203
|
return {
|
|
16987
17204
|
category: manifest.category,
|
|
17205
|
+
tags: manifest.tags,
|
|
16988
17206
|
status: manifest.status,
|
|
16989
17207
|
order: manifest.order ?? 0,
|
|
16990
17208
|
// The install command is the wayai one (locale-agnostic). OMIT it for a Rekor-only
|