@tickernelz/paperclip-pro-shared 2026.1006.0 → 2026.1006.2
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/.paperclip-build-complete +1 -1
- package/dist/aggregator-app-catalog.d.ts +26 -0
- package/dist/aggregator-app-catalog.d.ts.map +1 -0
- package/dist/aggregator-app-catalog.js +72 -0
- package/dist/aggregator-app-catalog.js.map +1 -0
- package/dist/aggregator-app-catalog.test.d.ts +2 -0
- package/dist/aggregator-app-catalog.test.d.ts.map +1 -0
- package/dist/aggregator-app-catalog.test.js +45 -0
- package/dist/aggregator-app-catalog.test.js.map +1 -0
- package/dist/aggregator-apps.d.ts +41 -0
- package/dist/aggregator-apps.d.ts.map +1 -0
- package/dist/aggregator-apps.js +34 -0
- package/dist/aggregator-apps.js.map +1 -0
- package/dist/ai-connection-router.d.ts +352 -0
- package/dist/ai-connection-router.d.ts.map +1 -0
- package/dist/ai-connection-router.js +55 -0
- package/dist/ai-connection-router.js.map +1 -0
- package/dist/ai-connection-usage.d.ts +48 -0
- package/dist/ai-connection-usage.d.ts.map +1 -0
- package/dist/ai-connection-usage.js +6 -0
- package/dist/ai-connection-usage.js.map +1 -0
- package/dist/ai-connections.d.ts +7 -0
- package/dist/ai-connections.d.ts.map +1 -1
- package/dist/ai-connections.js +7 -5
- package/dist/ai-connections.js.map +1 -1
- package/dist/app-definitions/agentmail.json +1 -1
- package/dist/app-definitions/airtable.json +10 -1
- package/dist/app-definitions/api-key-generic.json +2 -1
- package/dist/app-definitions/asana.json +37 -6
- package/dist/app-definitions/beehiiv.json +5 -1
- package/dist/app-definitions/bitly.json +2 -1
- package/dist/app-definitions/brex.json +23 -1
- package/dist/app-definitions/browser-use-cloud.json +53 -0
- package/dist/app-definitions/candid.json +6 -1
- package/dist/app-definitions/clickhouse.json +8 -1
- package/dist/app-definitions/cloudflare.json +7 -2
- package/dist/app-definitions/cloudinary.json +10 -1
- package/dist/app-definitions/coda.json +6 -2
- package/dist/app-definitions/cognee.json +76 -0
- package/dist/app-definitions/embat.json +7 -1
- package/dist/app-definitions/fireflies.json +2 -1
- package/dist/app-definitions/github-code-review-bot.json +57 -0
- package/dist/app-definitions/github.json +4 -43
- package/dist/app-definitions/google-calendar.json +0 -2
- package/dist/app-definitions/google-docs.json +0 -6
- package/dist/app-definitions/google-sheets.json +0 -6
- package/dist/app-definitions/google-slides.json +0 -6
- package/dist/app-definitions/honcho.json +73 -0
- package/dist/app-definitions/hugging-face.json +4 -1
- package/dist/app-definitions/kernel.json +6 -2
- package/dist/app-definitions/linear.json +2 -1
- package/dist/app-definitions/local-falcon.json +5 -1
- package/dist/app-definitions/manufact.json +7 -1
- package/dist/app-definitions/mem0.json +12 -6
- package/dist/app-definitions/miro.json +7 -1
- package/dist/app-definitions/mixpanel.json +27 -1
- package/dist/app-definitions/neon.json +155 -0
- package/dist/app-definitions/netlify.json +6 -1
- package/dist/app-definitions/notion.json +4 -1
- package/dist/app-definitions/oreilly.json +7 -2
- package/dist/app-definitions/pagerduty.json +4 -2
- package/dist/app-definitions/planetscale.json +12 -2
- package/dist/app-definitions/posthog.json +2 -1
- package/dist/app-definitions/postman.json +6 -3
- package/dist/app-definitions/razorpay.json +2 -1
- package/dist/app-definitions/resend.json +4 -1
- package/dist/app-definitions/sanity.json +6 -2
- package/dist/app-definitions/sentry.json +8 -1
- package/dist/app-definitions/similarweb.json +2 -1
- package/dist/app-definitions/slack.json +28 -1
- package/dist/app-definitions/stripe.json +6 -2
- package/dist/app-definitions/supabase.json +22 -4
- package/dist/app-definitions/supermemory.json +55 -0
- package/dist/app-definitions/ticktick.json +5 -1
- package/dist/app-definitions/todoist.json +4 -1
- package/dist/app-definitions/vercel.json +4 -1
- package/dist/app-definitions/wix.json +4 -1
- package/dist/app-definitions/youcom.json +7 -2
- package/dist/app-definitions/zep.json +54 -0
- package/dist/app-definitions-url.test.js +4 -2
- package/dist/app-definitions-url.test.js.map +1 -1
- package/dist/app-definitions.d.ts +5 -1
- package/dist/app-definitions.d.ts.map +1 -1
- package/dist/app-definitions.generated.d.ts.map +1 -1
- package/dist/app-definitions.generated.js +78 -71
- package/dist/app-definitions.generated.js.map +1 -1
- package/dist/app-definitions.js +18 -7
- package/dist/app-definitions.js.map +1 -1
- package/dist/app-definitions.test.js +173 -46
- package/dist/app-definitions.test.js.map +1 -1
- package/dist/arcade-app-catalog.json +1602 -0
- package/dist/asana-connectors.d.ts +7 -0
- package/dist/asana-connectors.d.ts.map +1 -0
- package/dist/asana-connectors.js +8 -0
- package/dist/asana-connectors.js.map +1 -0
- package/dist/browser-use.d.ts +107 -0
- package/dist/browser-use.d.ts.map +1 -0
- package/dist/browser-use.js +98 -0
- package/dist/browser-use.js.map +1 -0
- package/dist/composio-app-setup.d.ts +65 -0
- package/dist/composio-app-setup.d.ts.map +1 -0
- package/dist/composio-app-setup.js +17 -0
- package/dist/composio-app-setup.js.map +1 -0
- package/dist/composio-search-catalog.json +1589 -0
- package/dist/connection-instructions.d.ts +34 -0
- package/dist/connection-instructions.d.ts.map +1 -0
- package/dist/connection-instructions.js +48 -0
- package/dist/connection-instructions.js.map +1 -0
- package/dist/connection-instructions.test.d.ts +2 -0
- package/dist/connection-instructions.test.d.ts.map +1 -0
- package/dist/connection-instructions.test.js +84 -0
- package/dist/connection-instructions.test.js.map +1 -0
- package/dist/connection-intent-guidance.d.ts +2 -2
- package/dist/connection-intent-guidance.d.ts.map +1 -1
- package/dist/connection-intent-guidance.js +7 -20
- package/dist/connection-intent-guidance.js.map +1 -1
- package/dist/connection-intent-guidance.test.js +15 -54
- package/dist/connection-intent-guidance.test.js.map +1 -1
- package/dist/connection-routing.d.ts +33 -0
- package/dist/connection-routing.d.ts.map +1 -0
- package/dist/connection-routing.js +309 -0
- package/dist/connection-routing.js.map +1 -0
- package/dist/connection-routing.test.d.ts +2 -0
- package/dist/connection-routing.test.d.ts.map +1 -0
- package/dist/connection-routing.test.js +73 -0
- package/dist/connection-routing.test.js.map +1 -0
- package/dist/connection-search.d.ts +15 -0
- package/dist/connection-search.d.ts.map +1 -0
- package/dist/connection-search.js +75 -0
- package/dist/connection-search.js.map +1 -0
- package/dist/connection-search.test.d.ts +2 -0
- package/dist/connection-search.test.d.ts.map +1 -0
- package/dist/connection-search.test.js +37 -0
- package/dist/connection-search.test.js.map +1 -0
- package/dist/connection-setup-state.d.ts +32 -0
- package/dist/connection-setup-state.d.ts.map +1 -0
- package/dist/connection-setup-state.js +74 -0
- package/dist/connection-setup-state.js.map +1 -0
- package/dist/connection-setup-state.test.d.ts +2 -0
- package/dist/connection-setup-state.test.d.ts.map +1 -0
- package/dist/connection-setup-state.test.js +92 -0
- package/dist/connection-setup-state.test.js.map +1 -0
- package/dist/constants.d.ts +2 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/feature-catalog.d.ts.map +1 -1
- package/dist/feature-catalog.js +24 -5
- package/dist/feature-catalog.js.map +1 -1
- package/dist/github-skill-repository.d.ts +7 -0
- package/dist/github-skill-repository.d.ts.map +1 -0
- package/dist/github-skill-repository.js +29 -0
- package/dist/github-skill-repository.js.map +1 -0
- package/dist/google-workspace-connectors.js +7 -7
- package/dist/google-workspace-connectors.js.map +1 -1
- package/dist/heartbeat-inbox.d.ts +5 -0
- package/dist/heartbeat-inbox.d.ts.map +1 -0
- package/dist/heartbeat-inbox.js +10 -0
- package/dist/heartbeat-inbox.js.map +1 -0
- package/dist/index.d.ts +26 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/issue-thread-interactions.test.js +53 -0
- package/dist/issue-thread-interactions.test.js.map +1 -1
- package/dist/memory-connectors.d.ts +5 -0
- package/dist/memory-connectors.d.ts.map +1 -0
- package/dist/memory-connectors.js +6 -0
- package/dist/memory-connectors.js.map +1 -0
- package/dist/memory-connectors.test.d.ts +2 -0
- package/dist/memory-connectors.test.d.ts.map +1 -0
- package/dist/memory-connectors.test.js +33 -0
- package/dist/memory-connectors.test.js.map +1 -0
- package/dist/question-set.d.ts +4 -0
- package/dist/question-set.d.ts.map +1 -0
- package/dist/question-set.js +48 -0
- package/dist/question-set.js.map +1 -0
- package/dist/remote-mcp-connectors.test.js +4 -4
- package/dist/remote-mcp-connectors.test.js.map +1 -1
- package/dist/self-serve-mcp-research.json +7 -2
- package/dist/settings-visibility-catalog-growth.test.d.ts +2 -0
- package/dist/settings-visibility-catalog-growth.test.d.ts.map +1 -0
- package/dist/settings-visibility-catalog-growth.test.js +15 -0
- package/dist/settings-visibility-catalog-growth.test.js.map +1 -0
- package/dist/settings-visibility.d.ts +13 -5
- package/dist/settings-visibility.d.ts.map +1 -1
- package/dist/settings-visibility.js +27 -5
- package/dist/settings-visibility.js.map +1 -1
- package/dist/settings-visibility.test.js +37 -0
- package/dist/settings-visibility.test.js.map +1 -1
- package/dist/slack-tools.d.ts +57 -3
- package/dist/slack-tools.d.ts.map +1 -1
- package/dist/slack-tools.js +25 -4
- package/dist/slack-tools.js.map +1 -1
- package/dist/telemetry/generated/paperclip-telemetry.d.ts +3 -0
- package/dist/telemetry/generated/paperclip-telemetry.d.ts.map +1 -1
- package/dist/telemetry/generated/paperclip-telemetry.js.map +1 -1
- package/dist/types/agent.d.ts +67 -1
- package/dist/types/agent.d.ts.map +1 -1
- package/dist/types/agent.js.map +1 -1
- package/dist/types/app-definition.d.ts +5 -0
- package/dist/types/app-definition.d.ts.map +1 -1
- package/dist/types/asset.d.ts +1 -0
- package/dist/types/asset.d.ts.map +1 -1
- package/dist/types/company-skill.d.ts +6 -0
- package/dist/types/company-skill.d.ts.map +1 -1
- package/dist/types/connection-intent.d.ts +27 -1
- package/dist/types/connection-intent.d.ts.map +1 -1
- package/dist/types/email.d.ts +13 -0
- package/dist/types/email.d.ts.map +1 -1
- package/dist/types/execution-continuation.d.ts +5 -0
- package/dist/types/execution-continuation.d.ts.map +1 -1
- package/dist/types/execution-projection.d.ts +9 -0
- package/dist/types/execution-projection.d.ts.map +1 -1
- package/dist/types/execution-projection.js.map +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/instance.d.ts +6 -2
- package/dist/types/instance.d.ts.map +1 -1
- package/dist/types/instance.js.map +1 -1
- package/dist/types/issue.d.ts +39 -2
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/plugin.d.ts +12 -0
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/project.d.ts +16 -0
- package/dist/types/project.d.ts.map +1 -1
- package/dist/types/skill-source.d.ts +135 -0
- package/dist/types/skill-source.d.ts.map +1 -0
- package/dist/types/skill-source.js +2 -0
- package/dist/types/skill-source.js.map +1 -0
- package/dist/types/tool-access.d.ts +3 -0
- package/dist/types/tool-access.d.ts.map +1 -1
- package/dist/types/tool-access.js.map +1 -1
- package/dist/validators/agent.d.ts +38 -11
- package/dist/validators/agent.d.ts.map +1 -1
- package/dist/validators/agent.js +15 -4
- package/dist/validators/agent.js.map +1 -1
- package/dist/validators/app-definition.d.ts +19 -0
- package/dist/validators/app-definition.d.ts.map +1 -1
- package/dist/validators/app-definition.js +13 -2
- package/dist/validators/app-definition.js.map +1 -1
- package/dist/validators/artifact.d.ts +1 -0
- package/dist/validators/artifact.d.ts.map +1 -1
- package/dist/validators/artifact.js +2 -0
- package/dist/validators/artifact.js.map +1 -1
- package/dist/validators/company-portability.d.ts +24 -0
- package/dist/validators/company-portability.d.ts.map +1 -1
- package/dist/validators/company-skill.d.ts +27 -0
- package/dist/validators/company-skill.d.ts.map +1 -1
- package/dist/validators/company-skill.js +8 -0
- package/dist/validators/company-skill.js.map +1 -1
- package/dist/validators/connection-intent.d.ts +5 -0
- package/dist/validators/connection-intent.d.ts.map +1 -1
- package/dist/validators/connection-intent.js +6 -1
- package/dist/validators/connection-intent.js.map +1 -1
- package/dist/validators/connection-intent.test.js +22 -0
- package/dist/validators/connection-intent.test.js.map +1 -1
- package/dist/validators/email.d.ts +5 -0
- package/dist/validators/email.d.ts.map +1 -1
- package/dist/validators/email.js +4 -0
- package/dist/validators/email.js.map +1 -1
- package/dist/validators/index.d.ts +4 -2
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +4 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +9 -2
- package/dist/validators/instance.d.ts.map +1 -1
- package/dist/validators/instance.js +5 -2
- package/dist/validators/instance.js.map +1 -1
- package/dist/validators/issue.d.ts +274 -7
- package/dist/validators/issue.d.ts.map +1 -1
- package/dist/validators/issue.js +81 -10
- package/dist/validators/issue.js.map +1 -1
- package/dist/validators/issue.test.js +10 -1
- package/dist/validators/issue.test.js.map +1 -1
- package/dist/validators/plugin.d.ts +11 -0
- package/dist/validators/plugin.d.ts.map +1 -1
- package/dist/validators/plugin.js +5 -0
- package/dist/validators/plugin.js.map +1 -1
- package/dist/validators/plugin.test.js +14 -0
- package/dist/validators/plugin.test.js.map +1 -1
- package/dist/validators/project.d.ts +4 -0
- package/dist/validators/project.d.ts.map +1 -1
- package/dist/validators/project.js +4 -0
- package/dist/validators/project.js.map +1 -1
- package/dist/validators/skill-source.d.ts +29 -0
- package/dist/validators/skill-source.d.ts.map +1 -0
- package/dist/validators/skill-source.js +26 -0
- package/dist/validators/skill-source.js.map +1 -0
- package/dist/validators/tool-access.d.ts +35 -0
- package/dist/validators/tool-access.d.ts.map +1 -1
- package/dist/validators/tool-access.js +4 -0
- package/dist/validators/tool-access.js.map +1 -1
- package/dist/workspace-restore.d.ts +8 -0
- package/dist/workspace-restore.d.ts.map +1 -0
- package/dist/workspace-restore.js +28 -0
- package/dist/workspace-restore.js.map +1 -0
- package/dist/worktree-port-registry.test.js +162 -31
- package/dist/worktree-port-registry.test.js.map +1 -1
- package/package.json +1 -1
|
@@ -562,6 +562,11 @@ export declare const issueRecoveryActionReadModelSchema: z.ZodObject<{
|
|
|
562
562
|
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodString]>;
|
|
563
563
|
}, z.core.$strip>;
|
|
564
564
|
export type IssueRecoveryActionReadModel = z.infer<typeof issueRecoveryActionReadModelSchema>;
|
|
565
|
+
export declare const retryWorkspaceExportSchema: z.ZodObject<{
|
|
566
|
+
actionId: z.ZodString;
|
|
567
|
+
runId: z.ZodString;
|
|
568
|
+
repairNote: z.ZodString;
|
|
569
|
+
}, z.core.$strict>;
|
|
565
570
|
export declare const resolveIssueRecoveryActionSchema: z.ZodObject<{
|
|
566
571
|
executionReconciliation: z.ZodOptional<z.ZodObject<{
|
|
567
572
|
runId: z.ZodString;
|
|
@@ -572,6 +577,7 @@ export declare const resolveIssueRecoveryActionSchema: z.ZodObject<{
|
|
|
572
577
|
not_performed: "not_performed";
|
|
573
578
|
}>;
|
|
574
579
|
outcomeEvidence: z.ZodString;
|
|
580
|
+
workspaceRepairEvidence: z.ZodOptional<z.ZodString>;
|
|
575
581
|
}, z.core.$strict>>;
|
|
576
582
|
actionId: z.ZodOptional<z.ZodString>;
|
|
577
583
|
outcome: z.ZodEnum<{
|
|
@@ -614,7 +620,6 @@ export declare const createIssueInputSchema: z.ZodObject<{
|
|
|
614
620
|
action: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
615
621
|
}, z.core.$strict>>>;
|
|
616
622
|
inheritExecutionWorkspaceFromIssueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
617
|
-
title: z.ZodString;
|
|
618
623
|
description: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
619
624
|
workMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
620
625
|
ask: "ask";
|
|
@@ -813,6 +818,7 @@ export declare const createIssueInputSchema: z.ZodObject<{
|
|
|
813
818
|
idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
814
819
|
allowDuplicate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
815
820
|
onboardingFirstTask: z.ZodOptional<z.ZodBoolean>;
|
|
821
|
+
title: z.ZodOptional<z.ZodString>;
|
|
816
822
|
status: z.ZodOptional<z.ZodEnum<{
|
|
817
823
|
backlog: "backlog";
|
|
818
824
|
blocked: "blocked";
|
|
@@ -838,7 +844,6 @@ export declare const createIssueSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
838
844
|
action: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
839
845
|
}, z.core.$strict>>>;
|
|
840
846
|
inheritExecutionWorkspaceFromIssueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
841
|
-
title: z.ZodString;
|
|
842
847
|
description: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
843
848
|
status: z.ZodEnum<{
|
|
844
849
|
backlog: "backlog";
|
|
@@ -1046,7 +1051,14 @@ export declare const createIssueSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
1046
1051
|
idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1047
1052
|
allowDuplicate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1048
1053
|
onboardingFirstTask: z.ZodOptional<z.ZodBoolean>;
|
|
1054
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1049
1055
|
}, z.core.$strip>>;
|
|
1056
|
+
export declare const setIssueTitleSchema: z.ZodObject<{
|
|
1057
|
+
title: z.ZodString;
|
|
1058
|
+
onlyIfProvisional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1059
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
}, z.core.$strict>;
|
|
1061
|
+
export type SetIssueTitle = z.input<typeof setIssueTitleSchema>;
|
|
1050
1062
|
export type CreateIssue = z.infer<typeof createIssueSchema>;
|
|
1051
1063
|
export declare const upsertIssueWatchdogSchema: z.ZodObject<{
|
|
1052
1064
|
agentId: z.ZodString;
|
|
@@ -1066,7 +1078,6 @@ export declare const createChildIssueSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
1066
1078
|
}, z.core.$strict>, z.ZodLiteral<"board">]>;
|
|
1067
1079
|
action: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
1068
1080
|
}, z.core.$strict>>>;
|
|
1069
|
-
title: z.ZodString;
|
|
1070
1081
|
description: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
1071
1082
|
status: z.ZodEnum<{
|
|
1072
1083
|
backlog: "backlog";
|
|
@@ -1263,6 +1274,7 @@ export declare const createChildIssueSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
1263
1274
|
agentId: z.ZodString;
|
|
1264
1275
|
instructions: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
1265
1276
|
}, z.core.$strict>>>;
|
|
1277
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1266
1278
|
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1267
1279
|
blockParentUntilDone: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1268
1280
|
}, z.core.$strip>>;
|
|
@@ -1282,7 +1294,6 @@ export declare const createAcceptedPlanDecompositionSchema: z.ZodObject<{
|
|
|
1282
1294
|
}, z.core.$strict>, z.ZodLiteral<"board">]>;
|
|
1283
1295
|
action: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
1284
1296
|
}, z.core.$strict>>>;
|
|
1285
|
-
title: z.ZodString;
|
|
1286
1297
|
description: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
1287
1298
|
status: z.ZodEnum<{
|
|
1288
1299
|
backlog: "backlog";
|
|
@@ -1479,6 +1490,7 @@ export declare const createAcceptedPlanDecompositionSchema: z.ZodObject<{
|
|
|
1479
1490
|
agentId: z.ZodString;
|
|
1480
1491
|
instructions: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
1481
1492
|
}, z.core.$strict>>>;
|
|
1493
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1482
1494
|
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1483
1495
|
blockParentUntilDone: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1484
1496
|
}, z.core.$strip>>>;
|
|
@@ -1888,6 +1900,14 @@ export declare const issueCommentMetadataSchema: z.ZodObject<{
|
|
|
1888
1900
|
sourceChannel: z.ZodOptional<z.ZodLiteral<"imessage-photon">>;
|
|
1889
1901
|
sourceRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1890
1902
|
authorizationReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1903
|
+
recovery: z.ZodOptional<z.ZodObject<{
|
|
1904
|
+
kind: z.ZodLiteral<"disposition_repair_escalated">;
|
|
1905
|
+
actionId: z.ZodString;
|
|
1906
|
+
attemptCount: z.ZodNumber;
|
|
1907
|
+
maxAttempts: z.ZodNumber;
|
|
1908
|
+
reason: z.ZodString;
|
|
1909
|
+
assigneeAgentId: z.ZodNullable<z.ZodString>;
|
|
1910
|
+
}, z.core.$strict>>;
|
|
1891
1911
|
sections: z.ZodArray<z.ZodObject<{
|
|
1892
1912
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1893
1913
|
rows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1957,6 +1977,14 @@ export declare const addIssueCommentSchema: z.ZodObject<{
|
|
|
1957
1977
|
sourceChannel: z.ZodOptional<z.ZodLiteral<"imessage-photon">>;
|
|
1958
1978
|
sourceRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1959
1979
|
authorizationReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1980
|
+
recovery: z.ZodOptional<z.ZodObject<{
|
|
1981
|
+
kind: z.ZodLiteral<"disposition_repair_escalated">;
|
|
1982
|
+
actionId: z.ZodString;
|
|
1983
|
+
attemptCount: z.ZodNumber;
|
|
1984
|
+
maxAttempts: z.ZodNumber;
|
|
1985
|
+
reason: z.ZodString;
|
|
1986
|
+
assigneeAgentId: z.ZodNullable<z.ZodString>;
|
|
1987
|
+
}, z.core.$strict>>;
|
|
1960
1988
|
sections: z.ZodArray<z.ZodObject<{
|
|
1961
1989
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1962
1990
|
rows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2052,7 +2080,28 @@ export declare const connectionIntentPhaseSchema: z.ZodEnum<{
|
|
|
2052
2080
|
requested: "requested";
|
|
2053
2081
|
}>;
|
|
2054
2082
|
export declare const connectionIntentPayloadSchema: z.ZodObject<{
|
|
2055
|
-
|
|
2083
|
+
accessRequest: z.ZodOptional<z.ZodObject<{
|
|
2084
|
+
connectionId: z.ZodString;
|
|
2085
|
+
connectionName: z.ZodString;
|
|
2086
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
2087
|
+
catalogEntryId: z.ZodString;
|
|
2088
|
+
toolName: z.ZodString;
|
|
2089
|
+
versionHash: z.ZodString;
|
|
2090
|
+
permission: z.ZodEnum<{
|
|
2091
|
+
allowed: "allowed";
|
|
2092
|
+
ask_first: "ask_first";
|
|
2093
|
+
}>;
|
|
2094
|
+
}, z.core.$strict>>;
|
|
2095
|
+
}, z.core.$strict>>;
|
|
2096
|
+
upstreamService: z.ZodOptional<z.ZodObject<{
|
|
2097
|
+
slug: z.ZodString;
|
|
2098
|
+
name: z.ZodString;
|
|
2099
|
+
selectionInteractionId: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
}, z.core.$strict>>;
|
|
2101
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
2102
|
+
ai: "ai";
|
|
2103
|
+
channel: "channel";
|
|
2104
|
+
}>>;
|
|
2056
2105
|
version: z.ZodLiteral<1>;
|
|
2057
2106
|
serviceSlug: z.ZodString;
|
|
2058
2107
|
serviceName: z.ZodString;
|
|
@@ -2068,6 +2117,7 @@ export declare const connectionIntentPayloadSchema: z.ZodObject<{
|
|
|
2068
2117
|
}, z.core.$strict>;
|
|
2069
2118
|
export declare const connectionIntentResultSchema: z.ZodObject<{
|
|
2070
2119
|
version: z.ZodLiteral<1>;
|
|
2120
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
2071
2121
|
outcome: z.ZodEnum<{
|
|
2072
2122
|
connected: "connected";
|
|
2073
2123
|
declined: "declined";
|
|
@@ -2869,7 +2919,7 @@ export declare const createIssueThreadInteractionSchema: z.ZodDiscriminatedUnion
|
|
|
2869
2919
|
wake_assignee: "wake_assignee";
|
|
2870
2920
|
wake_assignee_on_accept: "wake_assignee_on_accept";
|
|
2871
2921
|
}>>>;
|
|
2872
|
-
payload: z.ZodObject<{
|
|
2922
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
2873
2923
|
version: z.ZodLiteral<1>;
|
|
2874
2924
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2875
2925
|
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2933,7 +2983,212 @@ export declare const createIssueThreadInteractionSchema: z.ZodDiscriminatedUnion
|
|
|
2933
2983
|
}, z.core.$strip>>;
|
|
2934
2984
|
}, z.core.$strip>>;
|
|
2935
2985
|
runtimeRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2936
|
-
}, z.core.$strip
|
|
2986
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
2987
|
+
version: z.ZodLiteral<1>;
|
|
2988
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2989
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2990
|
+
supersedeOnUserComment: z.ZodOptional<z.ZodBoolean>;
|
|
2991
|
+
runtimeRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2992
|
+
questions: z.ZodOptional<z.ZodNever>;
|
|
2993
|
+
questionSet: z.ZodObject<{
|
|
2994
|
+
schema: z.ZodLiteral<"paperclip.question_set.v1">;
|
|
2995
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2996
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2997
|
+
submitLabel: z.ZodOptional<z.ZodString>;
|
|
2998
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
2999
|
+
id: z.ZodString;
|
|
3000
|
+
header: z.ZodOptional<z.ZodString>;
|
|
3001
|
+
prompt: z.ZodString;
|
|
3002
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
3003
|
+
required: z.ZodBoolean;
|
|
3004
|
+
answerMode: z.ZodEnum<{
|
|
3005
|
+
multi_select: "multi_select";
|
|
3006
|
+
single_select: "single_select";
|
|
3007
|
+
text: "text";
|
|
3008
|
+
}>;
|
|
3009
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3010
|
+
id: z.ZodString;
|
|
3011
|
+
label: z.ZodString;
|
|
3012
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3013
|
+
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
3014
|
+
}, z.core.$strip>>>;
|
|
3015
|
+
customAnswer: z.ZodOptional<z.ZodObject<{
|
|
3016
|
+
enabled: z.ZodLiteral<true>;
|
|
3017
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3018
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3019
|
+
}, z.core.$strip>>;
|
|
3020
|
+
textValidation: z.ZodOptional<z.ZodObject<{
|
|
3021
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
3022
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3023
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
3024
|
+
inputType: z.ZodOptional<z.ZodEnum<{
|
|
3025
|
+
integer: "integer";
|
|
3026
|
+
number: "number";
|
|
3027
|
+
text: "text";
|
|
3028
|
+
}>>;
|
|
3029
|
+
minimum: z.ZodOptional<z.ZodNumber>;
|
|
3030
|
+
maximum: z.ZodOptional<z.ZodNumber>;
|
|
3031
|
+
}, z.core.$strip>>;
|
|
3032
|
+
}, z.core.$strip>>;
|
|
3033
|
+
}, z.core.$strip>;
|
|
3034
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3035
|
+
version: 1;
|
|
3036
|
+
title?: string | null | undefined;
|
|
3037
|
+
submitLabel?: string | null | undefined;
|
|
3038
|
+
supersedeOnUserComment?: boolean | undefined;
|
|
3039
|
+
questions: {
|
|
3040
|
+
id: string;
|
|
3041
|
+
prompt: string;
|
|
3042
|
+
helpText?: string | null | undefined;
|
|
3043
|
+
selectionMode: "multi" | "single";
|
|
3044
|
+
required?: boolean | undefined;
|
|
3045
|
+
allowOther?: boolean | undefined;
|
|
3046
|
+
options: {
|
|
3047
|
+
id: string;
|
|
3048
|
+
label: string;
|
|
3049
|
+
description?: string | null | undefined;
|
|
3050
|
+
freeText?: boolean | undefined;
|
|
3051
|
+
}[];
|
|
3052
|
+
}[];
|
|
3053
|
+
questionSet?: {
|
|
3054
|
+
schema: "paperclip.question_set.v1";
|
|
3055
|
+
title?: string | undefined;
|
|
3056
|
+
description?: string | undefined;
|
|
3057
|
+
submitLabel?: string | undefined;
|
|
3058
|
+
questions: {
|
|
3059
|
+
id: string;
|
|
3060
|
+
header?: string | undefined;
|
|
3061
|
+
prompt: string;
|
|
3062
|
+
helpText?: string | undefined;
|
|
3063
|
+
required: boolean;
|
|
3064
|
+
answerMode: "multi_select" | "single_select" | "text";
|
|
3065
|
+
options?: {
|
|
3066
|
+
id: string;
|
|
3067
|
+
label: string;
|
|
3068
|
+
description?: string | undefined;
|
|
3069
|
+
recommended?: boolean | undefined;
|
|
3070
|
+
}[] | undefined;
|
|
3071
|
+
customAnswer?: {
|
|
3072
|
+
enabled: true;
|
|
3073
|
+
label?: string | undefined;
|
|
3074
|
+
placeholder?: string | undefined;
|
|
3075
|
+
} | undefined;
|
|
3076
|
+
textValidation?: {
|
|
3077
|
+
minLength?: number | undefined;
|
|
3078
|
+
maxLength?: number | undefined;
|
|
3079
|
+
pattern?: string | undefined;
|
|
3080
|
+
inputType?: "integer" | "number" | "text" | undefined;
|
|
3081
|
+
minimum?: number | undefined;
|
|
3082
|
+
maximum?: number | undefined;
|
|
3083
|
+
} | undefined;
|
|
3084
|
+
}[];
|
|
3085
|
+
} | undefined;
|
|
3086
|
+
runtimeRequestId?: string | null | undefined;
|
|
3087
|
+
}, {
|
|
3088
|
+
version: 1;
|
|
3089
|
+
title?: string | null | undefined;
|
|
3090
|
+
submitLabel?: string | null | undefined;
|
|
3091
|
+
supersedeOnUserComment?: boolean | undefined;
|
|
3092
|
+
runtimeRequestId?: string | null | undefined;
|
|
3093
|
+
questions?: undefined;
|
|
3094
|
+
questionSet: {
|
|
3095
|
+
schema: "paperclip.question_set.v1";
|
|
3096
|
+
title?: string | undefined;
|
|
3097
|
+
description?: string | undefined;
|
|
3098
|
+
submitLabel?: string | undefined;
|
|
3099
|
+
questions: {
|
|
3100
|
+
id: string;
|
|
3101
|
+
header?: string | undefined;
|
|
3102
|
+
prompt: string;
|
|
3103
|
+
helpText?: string | undefined;
|
|
3104
|
+
required: boolean;
|
|
3105
|
+
answerMode: "multi_select" | "single_select" | "text";
|
|
3106
|
+
options?: {
|
|
3107
|
+
id: string;
|
|
3108
|
+
label: string;
|
|
3109
|
+
description?: string | undefined;
|
|
3110
|
+
recommended?: boolean | undefined;
|
|
3111
|
+
}[] | undefined;
|
|
3112
|
+
customAnswer?: {
|
|
3113
|
+
enabled: true;
|
|
3114
|
+
label?: string | undefined;
|
|
3115
|
+
placeholder?: string | undefined;
|
|
3116
|
+
} | undefined;
|
|
3117
|
+
textValidation?: {
|
|
3118
|
+
minLength?: number | undefined;
|
|
3119
|
+
maxLength?: number | undefined;
|
|
3120
|
+
pattern?: string | undefined;
|
|
3121
|
+
inputType?: "integer" | "number" | "text" | undefined;
|
|
3122
|
+
minimum?: number | undefined;
|
|
3123
|
+
maximum?: number | undefined;
|
|
3124
|
+
} | undefined;
|
|
3125
|
+
}[];
|
|
3126
|
+
};
|
|
3127
|
+
}>>, z.ZodObject<{
|
|
3128
|
+
version: z.ZodLiteral<1>;
|
|
3129
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3130
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3131
|
+
supersedeOnUserComment: z.ZodOptional<z.ZodBoolean>;
|
|
3132
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
3133
|
+
id: z.ZodString;
|
|
3134
|
+
prompt: z.ZodString;
|
|
3135
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3136
|
+
selectionMode: z.ZodEnum<{
|
|
3137
|
+
multi: "multi";
|
|
3138
|
+
single: "single";
|
|
3139
|
+
}>;
|
|
3140
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3141
|
+
allowOther: z.ZodOptional<z.ZodBoolean>;
|
|
3142
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3143
|
+
id: z.ZodString;
|
|
3144
|
+
label: z.ZodString;
|
|
3145
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3146
|
+
freeText: z.ZodOptional<z.ZodBoolean>;
|
|
3147
|
+
}, z.core.$strip>>;
|
|
3148
|
+
}, z.core.$strip>>;
|
|
3149
|
+
questionSet: z.ZodOptional<z.ZodObject<{
|
|
3150
|
+
schema: z.ZodLiteral<"paperclip.question_set.v1">;
|
|
3151
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3152
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3153
|
+
submitLabel: z.ZodOptional<z.ZodString>;
|
|
3154
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
3155
|
+
id: z.ZodString;
|
|
3156
|
+
header: z.ZodOptional<z.ZodString>;
|
|
3157
|
+
prompt: z.ZodString;
|
|
3158
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
3159
|
+
required: z.ZodBoolean;
|
|
3160
|
+
answerMode: z.ZodEnum<{
|
|
3161
|
+
multi_select: "multi_select";
|
|
3162
|
+
single_select: "single_select";
|
|
3163
|
+
text: "text";
|
|
3164
|
+
}>;
|
|
3165
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3166
|
+
id: z.ZodString;
|
|
3167
|
+
label: z.ZodString;
|
|
3168
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3169
|
+
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
3170
|
+
}, z.core.$strip>>>;
|
|
3171
|
+
customAnswer: z.ZodOptional<z.ZodObject<{
|
|
3172
|
+
enabled: z.ZodLiteral<true>;
|
|
3173
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3174
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3175
|
+
}, z.core.$strip>>;
|
|
3176
|
+
textValidation: z.ZodOptional<z.ZodObject<{
|
|
3177
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
3178
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3179
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
3180
|
+
inputType: z.ZodOptional<z.ZodEnum<{
|
|
3181
|
+
integer: "integer";
|
|
3182
|
+
number: "number";
|
|
3183
|
+
text: "text";
|
|
3184
|
+
}>>;
|
|
3185
|
+
minimum: z.ZodOptional<z.ZodNumber>;
|
|
3186
|
+
maximum: z.ZodOptional<z.ZodNumber>;
|
|
3187
|
+
}, z.core.$strip>>;
|
|
3188
|
+
}, z.core.$strip>>;
|
|
3189
|
+
}, z.core.$strip>>;
|
|
3190
|
+
runtimeRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3191
|
+
}, z.core.$strip>>]>;
|
|
2937
3192
|
}, z.core.$strip>, z.ZodObject<{
|
|
2938
3193
|
resolverPolicy: z.ZodOptional<z.ZodEnum<{
|
|
2939
3194
|
anyone: "anyone";
|
|
@@ -3139,12 +3394,24 @@ export declare const createIssueThreadInteractionSchema: z.ZodDiscriminatedUnion
|
|
|
3139
3394
|
}, z.core.$strip>;
|
|
3140
3395
|
}, z.core.$strip>], "kind">;
|
|
3141
3396
|
export type CreateIssueThreadInteraction = z.infer<typeof createIssueThreadInteractionSchema>;
|
|
3397
|
+
export type CreateIssueThreadInteractionInput = z.input<typeof createIssueThreadInteractionSchema>;
|
|
3142
3398
|
export declare const acceptIssueThreadInteractionSchema: z.ZodObject<{
|
|
3143
3399
|
rememberAction: z.ZodOptional<z.ZodBoolean>;
|
|
3144
3400
|
selectedClientKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3145
3401
|
selectedOptionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3146
3402
|
}, z.core.$strip>;
|
|
3147
3403
|
export type AcceptIssueThreadInteraction = z.infer<typeof acceptIssueThreadInteractionSchema>;
|
|
3404
|
+
/** Records an agent's interpretation of a real user reply without widening resolver permissions. */
|
|
3405
|
+
export declare const resolveConfirmationFromCommentSchema: z.ZodObject<{
|
|
3406
|
+
commentId: z.ZodString;
|
|
3407
|
+
decision: z.ZodEnum<{
|
|
3408
|
+
accept: "accept";
|
|
3409
|
+
reject: "reject";
|
|
3410
|
+
}>;
|
|
3411
|
+
selectedOptionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3412
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3413
|
+
}, z.core.$strict>;
|
|
3414
|
+
export type ResolveConfirmationFromComment = z.infer<typeof resolveConfirmationFromCommentSchema>;
|
|
3148
3415
|
export declare const rejectIssueThreadInteractionSchema: z.ZodObject<{
|
|
3149
3416
|
reason: z.ZodOptional<z.ZodString>;
|
|
3150
3417
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue.d.ts","sourceRoot":"","sources":["../../src/validators/issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAyBL,cAAc,EAWf,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"issue.d.ts","sourceRoot":"","sources":["../../src/validators/issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAyBL,cAAc,EAWf,MAAM,iBAAiB,CAAC;AASzB,eAAO,MAAM,4BAA4B;;;;;;EAMvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;EAK1C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;EAaxC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;kBAUjC,CAAC;AAEZ,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkClC,CAAC;AAEZ,eAAO,MAAM,qCAAqC,YAChD,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,CACP,CAAC;AAKX,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAgBhE;AAoFD,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2D9C,CAAC;AAEL,eAAO,MAAM,uCAAuC;;;EAGlD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;;kBAO7C,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;;;;;;;kBAMrC,CAAC;AAQZ,eAAO,MAAM,iCAAi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AAe,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC"}
|
package/dist/validators/issue.js
CHANGED
|
@@ -3,6 +3,7 @@ import { ISSUE_EXECUTION_DECISION_OUTCOMES, ISSUE_EXECUTION_MONITOR_CLEAR_REASON
|
|
|
3
3
|
import { multilineTextSchema } from "./text.js";
|
|
4
4
|
import { lowTrustReviewPresetPolicySchema, trustAuthorizationPolicySchema, } from "./trust-policy.js";
|
|
5
5
|
import { objectWithoutDefaults } from "./partial.js";
|
|
6
|
+
import { questionSetToAskUserQuestionsPayload } from "../question-set.js";
|
|
6
7
|
export const issueBlockedInboxStateSchema = z.enum([
|
|
7
8
|
"needs_attention",
|
|
8
9
|
"awaiting_decision",
|
|
@@ -496,6 +497,11 @@ const RESOLVE_ISSUE_RECOVERY_ACTION_OUTCOMES = [
|
|
|
496
497
|
"blocked",
|
|
497
498
|
"cancelled",
|
|
498
499
|
];
|
|
500
|
+
export const retryWorkspaceExportSchema = z.object({
|
|
501
|
+
actionId: z.string().guid(),
|
|
502
|
+
runId: z.string().guid(),
|
|
503
|
+
repairNote: z.string().trim().min(20).max(12000),
|
|
504
|
+
}).strict();
|
|
499
505
|
export const resolveIssueRecoveryActionSchema = z
|
|
500
506
|
.object({
|
|
501
507
|
executionReconciliation: z
|
|
@@ -504,6 +510,7 @@ export const resolveIssueRecoveryActionSchema = z
|
|
|
504
510
|
providerStopped: z.literal(true),
|
|
505
511
|
actionOutcome: z.enum(["completed", "not_performed", "mixed"]),
|
|
506
512
|
outcomeEvidence: z.string().trim().min(20).max(12000),
|
|
513
|
+
workspaceRepairEvidence: z.string().trim().min(20).max(12000).optional(),
|
|
507
514
|
})
|
|
508
515
|
.strict()
|
|
509
516
|
.optional(),
|
|
@@ -676,14 +683,26 @@ const onboardingFirstTaskMarkerSchema = {
|
|
|
676
683
|
onboardingFirstTask: z.boolean().optional(),
|
|
677
684
|
};
|
|
678
685
|
export const createIssueInputSchema = createIssueBaseSchema.extend({
|
|
686
|
+
title: z.string().optional(),
|
|
679
687
|
status: createIssueBaseSchema.shape.status.optional(),
|
|
680
688
|
...createIssueDuplicateGuardSchema,
|
|
681
689
|
...onboardingFirstTaskMarkerSchema,
|
|
682
690
|
});
|
|
691
|
+
function requireTitleOrDescription(value, ctx) {
|
|
692
|
+
if (!value.title?.trim() && !value.description?.trim()) {
|
|
693
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, path: ["title"], message: "Provide a title or task description" });
|
|
694
|
+
}
|
|
695
|
+
}
|
|
683
696
|
export const createIssueSchema = withCreateIssueStatusDefault(createIssueBaseSchema.extend({
|
|
697
|
+
title: z.string().optional(),
|
|
684
698
|
...createIssueDuplicateGuardSchema,
|
|
685
699
|
...onboardingFirstTaskMarkerSchema,
|
|
686
|
-
})).superRefine(requireBlockedStatusForUnblockDescriptor);
|
|
700
|
+
})).superRefine(requireBlockedStatusForUnblockDescriptor).superRefine(requireTitleOrDescription);
|
|
701
|
+
export const setIssueTitleSchema = z.object({
|
|
702
|
+
title: z.string().trim().min(1).max(240),
|
|
703
|
+
onlyIfProvisional: z.boolean().optional().default(false),
|
|
704
|
+
idempotencyKey: z.string().trim().min(1).max(240).optional(),
|
|
705
|
+
}).strict();
|
|
687
706
|
export const upsertIssueWatchdogSchema = z
|
|
688
707
|
.object({
|
|
689
708
|
agentId: z.string().guid(),
|
|
@@ -697,12 +716,13 @@ export const createChildIssueSchema = withCreateIssueStatusDefault(createIssueBa
|
|
|
697
716
|
watchdogDiscovery: true,
|
|
698
717
|
})
|
|
699
718
|
.extend({
|
|
719
|
+
title: z.string().optional(),
|
|
700
720
|
acceptanceCriteria: z
|
|
701
721
|
.array(z.string().trim().min(1).max(500))
|
|
702
722
|
.max(20)
|
|
703
723
|
.optional(),
|
|
704
724
|
blockParentUntilDone: z.boolean().optional().default(false),
|
|
705
|
-
})).superRefine(requireBlockedStatusForUnblockDescriptor);
|
|
725
|
+
})).superRefine(requireBlockedStatusForUnblockDescriptor).superRefine(requireTitleOrDescription);
|
|
706
726
|
export const createAcceptedPlanDecompositionSchema = z.object({
|
|
707
727
|
acceptedPlanRevisionId: z.string().guid(),
|
|
708
728
|
children: z.array(createChildIssueSchema).min(1).max(25),
|
|
@@ -887,6 +907,14 @@ export const issueCommentMetadataSchema = z
|
|
|
887
907
|
.max(160)
|
|
888
908
|
.nullable()
|
|
889
909
|
.optional(),
|
|
910
|
+
recovery: z.object({
|
|
911
|
+
kind: z.literal("disposition_repair_escalated"),
|
|
912
|
+
actionId: z.string().guid(),
|
|
913
|
+
attemptCount: z.number().int().nonnegative(),
|
|
914
|
+
maxAttempts: z.number().int().positive(),
|
|
915
|
+
reason: z.string().trim().min(1).max(160),
|
|
916
|
+
assigneeAgentId: z.string().guid().nullable(),
|
|
917
|
+
}).strict().optional(),
|
|
890
918
|
sections: z.array(issueCommentMetadataSectionSchema).min(1).max(20),
|
|
891
919
|
})
|
|
892
920
|
.strict();
|
|
@@ -934,7 +962,18 @@ const connectionIntentBrandAssetSchema = z
|
|
|
934
962
|
}, "Connection intent brand assets must be HTTPS URLs or local app brand paths");
|
|
935
963
|
export const connectionIntentPayloadSchema = z
|
|
936
964
|
.object({
|
|
937
|
-
|
|
965
|
+
accessRequest: z.object({
|
|
966
|
+
connectionId: z.string().guid(),
|
|
967
|
+
connectionName: z.string().trim().min(1).max(160),
|
|
968
|
+
tools: z.array(z.object({
|
|
969
|
+
catalogEntryId: z.string().guid(),
|
|
970
|
+
toolName: z.string().trim().min(1).max(160),
|
|
971
|
+
versionHash: z.string().min(1).max(256),
|
|
972
|
+
permission: z.enum(["allowed", "ask_first"]),
|
|
973
|
+
}).strict()).min(1).max(20).refine(tools => new Set(tools.map(tool => tool.catalogEntryId)).size === tools.length, "Requested tools must be unique"),
|
|
974
|
+
}).strict().optional(),
|
|
975
|
+
upstreamService: z.object({ slug: z.string().min(1).max(120), name: z.string().min(1).max(160), selectionInteractionId: z.string().guid().optional() }).strict().optional(),
|
|
976
|
+
purpose: z.enum(["ai", "channel"]).optional(),
|
|
938
977
|
version: z.literal(1),
|
|
939
978
|
serviceSlug: z.string().trim().min(1).max(120),
|
|
940
979
|
serviceName: z.string().trim().min(1).max(160),
|
|
@@ -948,6 +987,7 @@ export const connectionIntentPayloadSchema = z
|
|
|
948
987
|
export const connectionIntentResultSchema = z
|
|
949
988
|
.object({
|
|
950
989
|
version: z.literal(1),
|
|
990
|
+
instruction: z.string().max(4000).optional(),
|
|
951
991
|
outcome: z.enum(["connected", "declined", "superseded", "expired"]),
|
|
952
992
|
connectionId: z.string().guid().nullable().optional(),
|
|
953
993
|
reason: z.string().trim().max(4000).nullable().optional(),
|
|
@@ -1165,7 +1205,7 @@ export const paperclipQuestionSetPayloadSchema = z
|
|
|
1165
1205
|
.object({
|
|
1166
1206
|
schema: z.literal("paperclip.question_set.v1"),
|
|
1167
1207
|
title: z.string().max(1000).optional(),
|
|
1168
|
-
description: z.string().max(
|
|
1208
|
+
description: z.string().max(100_000).optional(),
|
|
1169
1209
|
submitLabel: z.string().max(200).optional(),
|
|
1170
1210
|
questions: z.array(paperclipQuestionSchema).min(1).max(64),
|
|
1171
1211
|
})
|
|
@@ -1179,8 +1219,7 @@ export const paperclipQuestionSetPayloadSchema = z
|
|
|
1179
1219
|
});
|
|
1180
1220
|
}
|
|
1181
1221
|
});
|
|
1182
|
-
|
|
1183
|
-
.object({
|
|
1222
|
+
const askUserQuestionsPayloadFields = {
|
|
1184
1223
|
version: z.literal(1),
|
|
1185
1224
|
title: z.string().trim().max(240).nullable().optional(),
|
|
1186
1225
|
submitLabel: z.string().trim().max(120).nullable().optional(),
|
|
@@ -1190,7 +1229,9 @@ export const askUserQuestionsPayloadSchema = z
|
|
|
1190
1229
|
questionSet: paperclipQuestionSetPayloadSchema.optional(),
|
|
1191
1230
|
/** Stable correlation for draft handoff from a live runtime request. */
|
|
1192
1231
|
runtimeRequestId: z.string().trim().min(1).max(255).nullable().optional(),
|
|
1193
|
-
}
|
|
1232
|
+
};
|
|
1233
|
+
export const askUserQuestionsPayloadSchema = z
|
|
1234
|
+
.object(askUserQuestionsPayloadFields)
|
|
1194
1235
|
.superRefine((value, ctx) => {
|
|
1195
1236
|
const seenQuestionIds = new Set();
|
|
1196
1237
|
for (const [questionIndex, question] of value.questions.entries()) {
|
|
@@ -1673,7 +1714,7 @@ const createIssueThreadInteractionCommon = {
|
|
|
1673
1714
|
};
|
|
1674
1715
|
// Validate dual representations on creation, not when reading historical rows.
|
|
1675
1716
|
// Otherwise a partial canonical form can hide required storage questions.
|
|
1676
|
-
const
|
|
1717
|
+
const createLegacyAskUserQuestionsPayloadSchema = askUserQuestionsPayloadSchema.superRefine((value, ctx) => {
|
|
1677
1718
|
if (!value.questionSet)
|
|
1678
1719
|
return;
|
|
1679
1720
|
const shown = new Set(value.questionSet.questions.map((question) => question.id));
|
|
@@ -1695,7 +1736,7 @@ const createAskUserQuestionsPayloadSchema = askUserQuestionsPayloadSchema.superR
|
|
|
1695
1736
|
path: ["questionSet", "questions", index, field],
|
|
1696
1737
|
message: `questionSet ${field} must match the corresponding questions entry.`,
|
|
1697
1738
|
});
|
|
1698
|
-
if (question.prompt !== storage.prompt)
|
|
1739
|
+
if (question.prompt.trim() !== storage.prompt)
|
|
1699
1740
|
mismatch("prompt");
|
|
1700
1741
|
// An omitted storage flag adds no constraint; an explicit flag must agree.
|
|
1701
1742
|
if (storage.required !== undefined && question.required !== storage.required)
|
|
@@ -1710,12 +1751,27 @@ const createAskUserQuestionsPayloadSchema = askUserQuestionsPayloadSchema.superR
|
|
|
1710
1751
|
else {
|
|
1711
1752
|
// Text/custom-answer sentinels are storage compatibility, not visible choices.
|
|
1712
1753
|
const choices = storage.options.filter((option) => !option.freeText);
|
|
1713
|
-
const canonical = new Map((question.options ?? []).map((option) => [option.id, option.label]));
|
|
1754
|
+
const canonical = new Map((question.options ?? []).map((option) => [option.id, option.label.trim()]));
|
|
1714
1755
|
if (choices.length !== canonical.size || choices.some((option) => canonical.get(option.id) !== option.label))
|
|
1715
1756
|
mismatch("options");
|
|
1757
|
+
const allowsCustomAnswer = storage.allowOther === true || storage.options.some((option) => option.freeText);
|
|
1758
|
+
if (Boolean(question.customAnswer?.enabled) !== allowsCustomAnswer)
|
|
1759
|
+
mismatch("customAnswer");
|
|
1716
1760
|
}
|
|
1717
1761
|
}
|
|
1718
1762
|
});
|
|
1763
|
+
const createAskUserQuestionsPayloadSchema = z.union([
|
|
1764
|
+
createLegacyAskUserQuestionsPayloadSchema,
|
|
1765
|
+
z.object({
|
|
1766
|
+
...askUserQuestionsPayloadFields,
|
|
1767
|
+
// Do not discard an explicitly supplied conflicting compatibility form.
|
|
1768
|
+
questions: z.never().optional(),
|
|
1769
|
+
questionSet: paperclipQuestionSetPayloadSchema,
|
|
1770
|
+
}).transform(({ questions: _questions, ...value }) => ({
|
|
1771
|
+
...questionSetToAskUserQuestionsPayload(value.questionSet),
|
|
1772
|
+
...value,
|
|
1773
|
+
})).pipe(createLegacyAskUserQuestionsPayloadSchema),
|
|
1774
|
+
]);
|
|
1719
1775
|
export const createIssueThreadInteractionSchema = z.discriminatedUnion("kind", [
|
|
1720
1776
|
z.object({
|
|
1721
1777
|
...createIssueThreadInteractionCommon,
|
|
@@ -1822,6 +1878,21 @@ export const acceptIssueThreadInteractionSchema = z
|
|
|
1822
1878
|
seenOptionIds.add(optionId);
|
|
1823
1879
|
}
|
|
1824
1880
|
});
|
|
1881
|
+
/** Records an agent's interpretation of a real user reply without widening resolver permissions. */
|
|
1882
|
+
export const resolveConfirmationFromCommentSchema = z.object({
|
|
1883
|
+
commentId: z.string().guid(),
|
|
1884
|
+
decision: z.enum(["accept", "reject"]),
|
|
1885
|
+
selectedOptionIds: z.array(z.string().trim().min(1).max(120))
|
|
1886
|
+
.max(REQUEST_CHECKBOX_CONFIRMATION_OPTION_LIMIT).optional(),
|
|
1887
|
+
reason: z.string().trim().max(4000).optional(),
|
|
1888
|
+
}).strict().superRefine((value, ctx) => {
|
|
1889
|
+
if (value.decision === "reject" && value.selectedOptionIds !== undefined) {
|
|
1890
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, path: ["selectedOptionIds"], message: "Selections apply only to acceptance" });
|
|
1891
|
+
}
|
|
1892
|
+
if (value.selectedOptionIds && new Set(value.selectedOptionIds).size !== value.selectedOptionIds.length) {
|
|
1893
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, path: ["selectedOptionIds"], message: "Selections must be unique" });
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1825
1896
|
export const rejectIssueThreadInteractionSchema = z.object({
|
|
1826
1897
|
reason: z.string().trim().max(4000).optional(),
|
|
1827
1898
|
});
|