@tickernelz/paperclip-pro 2026.1009.2 → 2026.1010.0
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 +15 -6
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14275,10 +14275,11 @@ function openwaDefaultTriggerRules(numberMode) {
|
|
|
14275
14275
|
selfChat: !agentNumber,
|
|
14276
14276
|
ownerMentionedAbsent: true,
|
|
14277
14277
|
keywords: [],
|
|
14278
|
-
allMessages: false
|
|
14278
|
+
allMessages: false,
|
|
14279
|
+
burstWindowSeconds: OPENWA_DEFAULT_BURST_WINDOW_SECONDS
|
|
14279
14280
|
};
|
|
14280
14281
|
}
|
|
14281
|
-
var chatProviderSchema, chatEndpointStatusSchema, chatConcurrencyPolicySchema, chatEventKindSchema, chatDeliveryStateSchema, chatPublicationStateSchema, chatPrincipalKindSchema, chatIdentityLinkStatusSchema, chatResourceAvailabilitySchema, microsoftTeamsCredentialIdSchema, chatEndpointCredentialsSchema, createChatEndpointSchema, slackAppConfigurationSchema, updateChatEndpointSchema, photonProjectIdSchema, photonLineIdSchema, photonChannelConfigurationSchema, inspectPhotonProjectSchema, openwaBaseUrlSchema, openwaSessionIdSchema, openwaApiKeyInputSchema, inspectOpenwaGatewaySchema, openwaChannelConfigurationSchema, configureChatEndpointSchema, replaceChatEndpointResourcesSchema, publishChatCommentSchema, publishChatBoardMessageSchema, publishChatPublicationSchema, resolveChatPublicationSchema, resolveChatActionSchema, createChatIdentityLinkIntentSchema, confirmChatIdentityLinkSchema, replayChatDeliverySchema, chatInflightModeSchema, openwaNumberModeSchema, openwaSenderPolicyModeSchema, openwaReplyPolicySchema, openwaChatActivationSchema, openwaGatewayAdminToolLevelSchema, OPENWA_DEFAULT_COMMAND_PREFIX, OPENWA_DEFAULT_OWNER_NUMBER_PREFIX, OPENWA_CUSTOM_INSTRUCTIONS_MAX_LENGTH, OPENWA_CHAT_NOTE_MAX_LENGTH, openwaCommandPrefixSchema, openwaKeywordsSchema, openwaAbsenceSecondsSchema, openwaTriggerRulesInputSchema, openwaEndpointPolicySchema, openwaTriggerOverridesSchema, openwaChatSettingsSchema, openwaE164Schema, addOpenwaOwnerSchema, createOpenwaSenderRuleSchema, updateOpenwaChatSettingsSchema, openwaLinkedChatSchema, linkOpenwaSessionSchema, updateOpenwaLinkedChatsSchema, updateOpenwaEndpointPolicySchema, resolveOpenwaApprovalSchema, listOpenwaApprovalsQuerySchema, chatPublicEndpointIdSchema;
|
|
14282
|
+
var chatProviderSchema, chatEndpointStatusSchema, chatConcurrencyPolicySchema, chatEventKindSchema, chatDeliveryStateSchema, chatPublicationStateSchema, chatPrincipalKindSchema, chatIdentityLinkStatusSchema, chatResourceAvailabilitySchema, microsoftTeamsCredentialIdSchema, chatEndpointCredentialsSchema, createChatEndpointSchema, slackAppConfigurationSchema, updateChatEndpointSchema, photonProjectIdSchema, photonLineIdSchema, photonChannelConfigurationSchema, inspectPhotonProjectSchema, openwaBaseUrlSchema, openwaSessionIdSchema, openwaApiKeyInputSchema, inspectOpenwaGatewaySchema, openwaChannelConfigurationSchema, configureChatEndpointSchema, replaceChatEndpointResourcesSchema, publishChatCommentSchema, publishChatBoardMessageSchema, publishChatPublicationSchema, resolveChatPublicationSchema, resolveChatActionSchema, createChatIdentityLinkIntentSchema, confirmChatIdentityLinkSchema, replayChatDeliverySchema, chatInflightModeSchema, openwaNumberModeSchema, openwaSenderPolicyModeSchema, openwaReplyPolicySchema, openwaChatActivationSchema, openwaGatewayAdminToolLevelSchema, OPENWA_DEFAULT_COMMAND_PREFIX, OPENWA_DEFAULT_OWNER_NUMBER_PREFIX, OPENWA_CUSTOM_INSTRUCTIONS_MAX_LENGTH, OPENWA_CHAT_NOTE_MAX_LENGTH, openwaCommandPrefixSchema, openwaKeywordsSchema, openwaAbsenceSecondsSchema, OPENWA_DEFAULT_BURST_WINDOW_SECONDS, OPENWA_BURST_MAX_WAIT_SECONDS, openwaBurstWindowSecondsSchema, openwaTriggerRulesInputSchema, openwaEndpointPolicySchema, openwaTriggerOverridesSchema, openwaChatSettingsSchema, openwaE164Schema, addOpenwaOwnerSchema, createOpenwaSenderRuleSchema, updateOpenwaChatSettingsSchema, openwaLinkedChatSchema, linkOpenwaSessionSchema, updateOpenwaLinkedChatsSchema, updateOpenwaEndpointPolicySchema, resolveOpenwaApprovalSchema, listOpenwaApprovalsQuerySchema, chatPublicEndpointIdSchema;
|
|
14282
14283
|
var init_chat_channels2 = __esm({
|
|
14283
14284
|
"../packages/shared/src/validators/chat-channels.ts"() {
|
|
14284
14285
|
"use strict";
|
|
@@ -14450,6 +14451,9 @@ var init_chat_channels2 = __esm({
|
|
|
14450
14451
|
openwaCommandPrefixSchema = z27.string().trim().min(1).max(32).regex(/^\S+$/);
|
|
14451
14452
|
openwaKeywordsSchema = z27.array(z27.string().trim().min(1).max(100)).max(50);
|
|
14452
14453
|
openwaAbsenceSecondsSchema = z27.number().int().min(10).max(86400);
|
|
14454
|
+
OPENWA_DEFAULT_BURST_WINDOW_SECONDS = 3;
|
|
14455
|
+
OPENWA_BURST_MAX_WAIT_SECONDS = 10;
|
|
14456
|
+
openwaBurstWindowSecondsSchema = z27.number().int().min(0).max(OPENWA_BURST_MAX_WAIT_SECONDS);
|
|
14453
14457
|
openwaTriggerRulesInputSchema = z27.object({
|
|
14454
14458
|
directMessage: z27.boolean().optional(),
|
|
14455
14459
|
agentMentioned: z27.boolean().optional(),
|
|
@@ -14461,7 +14465,8 @@ var init_chat_channels2 = __esm({
|
|
|
14461
14465
|
selfChat: z27.boolean().optional(),
|
|
14462
14466
|
ownerMentionedAbsent: z27.boolean().optional(),
|
|
14463
14467
|
keywords: openwaKeywordsSchema.optional(),
|
|
14464
|
-
allMessages: z27.boolean().optional()
|
|
14468
|
+
allMessages: z27.boolean().optional(),
|
|
14469
|
+
burstWindowSeconds: openwaBurstWindowSecondsSchema.optional()
|
|
14465
14470
|
}).strict();
|
|
14466
14471
|
openwaEndpointPolicySchema = z27.object({
|
|
14467
14472
|
numberMode: openwaNumberModeSchema.default("agent_number"),
|
|
@@ -14511,11 +14516,12 @@ var init_chat_channels2 = __esm({
|
|
|
14511
14516
|
selfChat: triggers.selfChat ?? defaults3.selfChat,
|
|
14512
14517
|
ownerMentionedAbsent: triggers.ownerMentionedAbsent ?? defaults3.ownerMentionedAbsent,
|
|
14513
14518
|
keywords: triggers.keywords ?? defaults3.keywords,
|
|
14514
|
-
allMessages: triggers.allMessages ?? defaults3.allMessages
|
|
14519
|
+
allMessages: triggers.allMessages ?? defaults3.allMessages,
|
|
14520
|
+
burstWindowSeconds: triggers.burstWindowSeconds ?? defaults3.burstWindowSeconds
|
|
14515
14521
|
}
|
|
14516
14522
|
};
|
|
14517
14523
|
});
|
|
14518
|
-
openwaTriggerOverridesSchema = openwaTriggerRulesInputSchema;
|
|
14524
|
+
openwaTriggerOverridesSchema = openwaTriggerRulesInputSchema.omit({ burstWindowSeconds: true });
|
|
14519
14525
|
openwaChatSettingsSchema = z27.object({
|
|
14520
14526
|
activation: openwaChatActivationSchema.default("auto"),
|
|
14521
14527
|
triggers: openwaTriggerOverridesSchema.optional(),
|
|
@@ -19842,7 +19848,7 @@ var init_openwa_tools = __esm({
|
|
|
19842
19848
|
tool2(
|
|
19843
19849
|
"endpoint_config",
|
|
19844
19850
|
"write",
|
|
19845
|
-
"Owner-triggered runs only: change sender allow/deny lists, one chat's settings (default origin chat; null clears
|
|
19851
|
+
"Owner-triggered runs only: change sender allow/deny lists, one chat's settings (default origin chat; null clears), approval toggles, reminders, pending TTL, burst window or custom instructions. Empty call reads them. Credentials, number mode, owners and gateway admin level stay in Paperclip.",
|
|
19846
19852
|
{
|
|
19847
19853
|
senders: z76.object({
|
|
19848
19854
|
add: z76.array(senderRule.extend({ label: z76.string().trim().min(1).max(120).optional() })).max(50).optional(),
|
|
@@ -19866,6 +19872,7 @@ var init_openwa_tools = __esm({
|
|
|
19866
19872
|
maxReminders: z76.number().int().min(0).max(10).optional(),
|
|
19867
19873
|
pendingTtlHours: z76.number().int().min(1).max(168).optional()
|
|
19868
19874
|
}).strict().optional(),
|
|
19875
|
+
burstWindowSeconds: openwaBurstWindowSecondsSchema.optional(),
|
|
19869
19876
|
customInstructions: z76.string().max(OPENWA_CUSTOM_INSTRUCTIONS_MAX_LENGTH).optional()
|
|
19870
19877
|
}
|
|
19871
19878
|
),
|
|
@@ -35541,6 +35548,7 @@ var init_chat_completion_deliveries = __esm({
|
|
|
35541
35548
|
conversationId: uuid142("conversation_id").notNull().references(() => issues.id, { onDelete: "cascade" }),
|
|
35542
35549
|
agentId: uuid142("agent_id").notNull().references(() => agents.id, { onDelete: "cascade" }),
|
|
35543
35550
|
sessionGeneration: integer58("session_generation").notNull(),
|
|
35551
|
+
channel: text142("channel").$type().notNull().default("board"),
|
|
35544
35552
|
createdAt: timestamp144("created_at", { withTimezone: true }).notNull().defaultNow()
|
|
35545
35553
|
}, (t) => ({ sourceIdx: index126("chat_task_handoffs_source_idx").on(t.companyId, t.conversationId) }));
|
|
35546
35554
|
chatCompletionDeliveries = pgTable143("chat_completion_deliveries", {
|
|
@@ -35553,6 +35561,7 @@ var init_chat_completion_deliveries = __esm({
|
|
|
35553
35561
|
nextAttemptAt: timestamp144("next_attempt_at", { withTimezone: true }).notNull().defaultNow(),
|
|
35554
35562
|
targetRunId: uuid142("target_run_id").references(() => heartbeatRuns.id, { onDelete: "set null" }),
|
|
35555
35563
|
responseCommentId: uuid142("response_comment_id").references(() => issueComments.id, { onDelete: "set null" }),
|
|
35564
|
+
responseActionId: uuid142("response_action_id"),
|
|
35556
35565
|
error: text142("error"),
|
|
35557
35566
|
createdAt: timestamp144("created_at", { withTimezone: true }).notNull().defaultNow()
|
|
35558
35567
|
}, (t) => ({
|