@paperclipai/shared 2026.824.1 → 2026.825.0-beta.1
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/adapter-auth-check-code.d.ts +13 -0
- package/dist/adapter-auth-check-code.d.ts.map +1 -0
- package/dist/adapter-auth-check-code.js +13 -0
- package/dist/adapter-auth-check-code.js.map +1 -0
- package/dist/adapter-auth-check-code.test.d.ts +2 -0
- package/dist/adapter-auth-check-code.test.d.ts.map +1 -0
- package/dist/adapter-auth-check-code.test.js +8 -0
- package/dist/adapter-auth-check-code.test.js.map +1 -0
- package/dist/company-import-transfer.d.ts +3 -37
- package/dist/company-import-transfer.d.ts.map +1 -1
- package/dist/config-schema.d.ts +130 -1570
- package/dist/config-schema.d.ts.map +1 -1
- package/dist/config-schema.js +3 -7
- package/dist/config-schema.js.map +1 -1
- package/dist/constants.d.ts +3 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -0
- package/dist/constants.js.map +1 -1
- package/dist/environment-support.d.ts +1 -1
- package/dist/environment-support.d.ts.map +1 -1
- package/dist/environment-support.js +3 -2
- package/dist/environment-support.js.map +1 -1
- package/dist/environment-support.test.js +19 -0
- package/dist/environment-support.test.js.map +1 -1
- package/dist/feature-catalog.d.ts +7 -17
- package/dist/feature-catalog.d.ts.map +1 -1
- package/dist/feature-catalog.js +9 -2
- package/dist/feature-catalog.js.map +1 -1
- package/dist/frontmatter.d.ts +3 -13
- package/dist/frontmatter.d.ts.map +1 -1
- package/dist/frontmatter.js +2 -2
- package/dist/frontmatter.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/markdown-work-products.d.ts +26 -0
- package/dist/markdown-work-products.d.ts.map +1 -0
- package/dist/markdown-work-products.js +70 -0
- package/dist/markdown-work-products.js.map +1 -0
- package/dist/markdown-work-products.test.d.ts +2 -0
- package/dist/markdown-work-products.test.d.ts.map +1 -0
- package/dist/markdown-work-products.test.js +122 -0
- package/dist/markdown-work-products.test.js.map +1 -0
- package/dist/node-version.d.ts +6 -0
- package/dist/node-version.d.ts.map +1 -0
- package/dist/node-version.js +46 -0
- package/dist/node-version.js.map +1 -0
- package/dist/runtime-exposure/loopback-bind.d.ts +2 -2
- package/dist/runtime-exposure/loopback-bind.d.ts.map +1 -1
- package/dist/runtime-exposure/loopback-bind.js +3 -3
- package/dist/runtime-exposure/loopback-bind.js.map +1 -1
- package/dist/runtime-exposure/loopback-bind.test.js +11 -10
- package/dist/runtime-exposure/loopback-bind.test.js.map +1 -1
- package/dist/settings-visibility.d.ts +62 -0
- package/dist/settings-visibility.d.ts.map +1 -0
- package/dist/settings-visibility.js +102 -0
- package/dist/settings-visibility.js.map +1 -0
- package/dist/settings-visibility.test.d.ts +2 -0
- package/dist/settings-visibility.test.d.ts.map +1 -0
- package/dist/settings-visibility.test.js +51 -0
- package/dist/settings-visibility.test.js.map +1 -0
- package/dist/telemetry/generated/paperclip-telemetry.d.ts +4 -2
- package/dist/telemetry/generated/paperclip-telemetry.d.ts.map +1 -1
- package/dist/telemetry/generated/paperclip-telemetry.js +2 -0
- package/dist/telemetry/generated/paperclip-telemetry.js.map +1 -1
- package/dist/types/environment.d.ts +20 -0
- package/dist/types/environment.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -3
- 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 +7 -0
- package/dist/types/instance.d.ts.map +1 -1
- package/dist/types/instance.js.map +1 -1
- package/dist/types/issue.d.ts +19 -0
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/plugin.d.ts +36 -4
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/workspace-operation.d.ts +1 -1
- package/dist/types/workspace-operation.d.ts.map +1 -1
- package/dist/types/workspace-readiness.d.ts +62 -0
- package/dist/types/workspace-readiness.d.ts.map +1 -0
- package/dist/types/workspace-readiness.js +28 -0
- package/dist/types/workspace-readiness.js.map +1 -0
- package/dist/types/workspace-runtime.d.ts +6 -8
- package/dist/types/workspace-runtime.d.ts.map +1 -1
- package/dist/validators/access.d.ts +143 -277
- package/dist/validators/access.d.ts.map +1 -1
- package/dist/validators/access.js +5 -5
- package/dist/validators/adapter-auth-session.d.ts +50 -97
- package/dist/validators/adapter-auth-session.d.ts.map +1 -1
- package/dist/validators/adapter-auth-session.js +3 -3
- package/dist/validators/adapter-registry.d.ts +8 -40
- package/dist/validators/adapter-registry.d.ts.map +1 -1
- package/dist/validators/adapter-registry.js +1 -1
- package/dist/validators/adapter-registry.js.map +1 -1
- package/dist/validators/adapter-skills.d.ts +71 -170
- package/dist/validators/adapter-skills.d.ts.map +1 -1
- package/dist/validators/adapter-skills.js +3 -3
- package/dist/validators/agent.d.ts +412 -4798
- package/dist/validators/agent.d.ts.map +1 -1
- package/dist/validators/agent.js +13 -13
- package/dist/validators/agent.js.map +1 -1
- package/dist/validators/app-definition.d.ts +270 -2315
- package/dist/validators/app-definition.d.ts.map +1 -1
- package/dist/validators/approval.d.ts +15 -36
- package/dist/validators/approval.d.ts.map +1 -1
- package/dist/validators/approval.js +2 -2
- package/dist/validators/artifact.d.ts +162 -893
- package/dist/validators/artifact.d.ts.map +1 -1
- package/dist/validators/artifact.js +6 -6
- package/dist/validators/asset.d.ts +1 -5
- package/dist/validators/asset.d.ts.map +1 -1
- package/dist/validators/budget.d.ts +19 -43
- package/dist/validators/budget.d.ts.map +1 -1
- package/dist/validators/budget.js +1 -1
- package/dist/validators/claude-setup-token-session.d.ts +61 -181
- package/dist/validators/claude-setup-token-session.d.ts.map +1 -1
- package/dist/validators/claude-setup-token-session.js +4 -4
- package/dist/validators/company-portability.d.ts +318 -3616
- package/dist/validators/company-portability.d.ts.map +1 -1
- package/dist/validators/company-portability.js +2 -2
- package/dist/validators/company-skill.d.ts +722 -2934
- package/dist/validators/company-skill.d.ts.map +1 -1
- package/dist/validators/company-skill.js +63 -63
- package/dist/validators/company.d.ts +162 -289
- package/dist/validators/company.d.ts.map +1 -1
- package/dist/validators/company.js +4 -3
- package/dist/validators/company.js.map +1 -1
- package/dist/validators/cost.d.ts +29 -57
- package/dist/validators/cost.d.ts.map +1 -1
- package/dist/validators/cost.js +5 -5
- package/dist/validators/decision-queue.d.ts +60 -108
- package/dist/validators/decision-queue.d.ts.map +1 -1
- package/dist/validators/decision.d.ts +230 -1884
- package/dist/validators/decision.d.ts.map +1 -1
- package/dist/validators/decision.js +9 -9
- package/dist/validators/document-annotation.d.ts +37 -203
- package/dist/validators/document-annotation.d.ts.map +1 -1
- package/dist/validators/document-annotation.js +3 -3
- package/dist/validators/environment-custom-images.d.ts +79 -173
- package/dist/validators/environment-custom-images.d.ts.map +1 -1
- package/dist/validators/environment-custom-images.js +14 -11
- package/dist/validators/environment-custom-images.js.map +1 -1
- package/dist/validators/environment.d.ts +82 -259
- package/dist/validators/environment.d.ts.map +1 -1
- package/dist/validators/execution-workspace.d.ts +173 -513
- package/dist/validators/execution-workspace.d.ts.map +1 -1
- package/dist/validators/execution-workspace.js +13 -13
- package/dist/validators/execution-workspace.js.map +1 -1
- package/dist/validators/external-object.d.ts +55 -27
- package/dist/validators/external-object.d.ts.map +1 -1
- package/dist/validators/external-object.js +1 -1
- package/dist/validators/external-object.js.map +1 -1
- package/dist/validators/feedback.d.ts +28 -19
- package/dist/validators/feedback.d.ts.map +1 -1
- package/dist/validators/feedback.js +1 -1
- package/dist/validators/finance.d.ts +69 -74
- package/dist/validators/finance.d.ts.map +1 -1
- package/dist/validators/finance.js +6 -6
- package/dist/validators/folder.d.ts +44 -205
- package/dist/validators/folder.d.ts.map +1 -1
- package/dist/validators/folder.js +7 -7
- package/dist/validators/goal.d.ts +26 -34
- package/dist/validators/goal.d.ts.map +1 -1
- package/dist/validators/goal.js +4 -3
- package/dist/validators/goal.js.map +1 -1
- package/dist/validators/inbox-agent-policy.d.ts +12 -16
- package/dist/validators/inbox-agent-policy.d.ts.map +1 -1
- package/dist/validators/inbox-agent-policy.js +1 -1
- package/dist/validators/index.d.ts +2 -2
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +2 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +50 -563
- package/dist/validators/instance.d.ts.map +1 -1
- package/dist/validators/instance.js +16 -6
- package/dist/validators/instance.js.map +1 -1
- package/dist/validators/instance.test.js +13 -0
- package/dist/validators/instance.test.js.map +1 -1
- package/dist/validators/issue-tree-control.d.ts +41 -80
- package/dist/validators/issue-tree-control.d.ts.map +1 -1
- package/dist/validators/issue.d.ts +1772 -12251
- package/dist/validators/issue.d.ts.map +1 -1
- package/dist/validators/issue.js +150 -84
- package/dist/validators/issue.js.map +1 -1
- package/dist/validators/onboarding-seed.d.ts +3 -37
- package/dist/validators/onboarding-seed.d.ts.map +1 -1
- package/dist/validators/partial.d.ts +4 -0
- package/dist/validators/partial.d.ts.map +1 -0
- package/dist/validators/partial.js +35 -0
- package/dist/validators/partial.js.map +1 -0
- package/dist/validators/pipeline.d.ts +218 -3882
- package/dist/validators/pipeline.d.ts.map +1 -1
- package/dist/validators/pipeline.js +11 -11
- package/dist/validators/plugin.d.ts +725 -2597
- package/dist/validators/plugin.d.ts.map +1 -1
- package/dist/validators/plugin.js +38 -6
- package/dist/validators/plugin.js.map +1 -1
- package/dist/validators/plugin.test.js +54 -10
- package/dist/validators/plugin.test.js.map +1 -1
- package/dist/validators/project.d.ts +345 -2406
- package/dist/validators/project.d.ts.map +1 -1
- package/dist/validators/project.js +8 -7
- package/dist/validators/project.js.map +1 -1
- package/dist/validators/resource-memberships.d.ts +11 -27
- package/dist/validators/resource-memberships.d.ts.map +1 -1
- package/dist/validators/routine.d.ts +362 -1297
- package/dist/validators/routine.d.ts.map +1 -1
- package/dist/validators/routine.js +21 -20
- package/dist/validators/routine.js.map +1 -1
- package/dist/validators/runtime-exposure.d.ts +31 -80
- package/dist/validators/runtime-exposure.d.ts.map +1 -1
- package/dist/validators/search.d.ts +25 -93
- package/dist/validators/search.d.ts.map +1 -1
- package/dist/validators/secret.d.ts +174 -655
- package/dist/validators/secret.d.ts.map +1 -1
- package/dist/validators/secret.js +14 -14
- package/dist/validators/secret.js.map +1 -1
- package/dist/validators/sidebar-preferences.d.ts +5 -15
- package/dist/validators/sidebar-preferences.d.ts.map +1 -1
- package/dist/validators/sidebar-preferences.js +1 -1
- package/dist/validators/skill-policy.d.ts +184 -561
- package/dist/validators/skill-policy.d.ts.map +1 -1
- package/dist/validators/skill-policy.js +4 -4
- package/dist/validators/smoke-lab.d.ts +53 -37
- package/dist/validators/smoke-lab.d.ts.map +1 -1
- package/dist/validators/status-card.d.ts +139 -994
- package/dist/validators/status-card.d.ts.map +1 -1
- package/dist/validators/status-card.js +21 -21
- package/dist/validators/status-card.js.map +1 -1
- package/dist/validators/summary-slot.d.ts +28 -50
- package/dist/validators/summary-slot.d.ts.map +1 -1
- package/dist/validators/summary-slot.js +3 -3
- package/dist/validators/teams-catalog.d.ts +209 -472
- package/dist/validators/teams-catalog.d.ts.map +1 -1
- package/dist/validators/text.d.ts +1 -1
- package/dist/validators/text.d.ts.map +1 -1
- package/dist/validators/tool-access.d.ts +1088 -4670
- package/dist/validators/tool-access.d.ts.map +1 -1
- package/dist/validators/tool-access.js +96 -95
- package/dist/validators/tool-access.js.map +1 -1
- package/dist/validators/trust-policy.d.ts +62 -358
- package/dist/validators/trust-policy.d.ts.map +1 -1
- package/dist/validators/trust-policy.js +12 -12
- package/dist/validators/work-product.d.ts +110 -536
- package/dist/validators/work-product.d.ts.map +1 -1
- package/dist/validators/work-product.js +7 -6
- package/dist/validators/work-product.js.map +1 -1
- package/dist/validators/workspace-file-resource.d.ts +163 -618
- package/dist/validators/workspace-file-resource.d.ts.map +1 -1
- package/dist/validators/workspace-file-resource.js +11 -11
- package/dist/workspace-commands.d.ts +4 -2
- package/dist/workspace-commands.d.ts.map +1 -1
- package/dist/workspace-commands.js +9 -1
- package/dist/workspace-commands.js.map +1 -1
- package/dist/workspace-commands.test.js +45 -0
- package/dist/workspace-commands.test.js.map +1 -1
- package/dist/worktree-port-registry.d.ts +5 -0
- package/dist/worktree-port-registry.d.ts.map +1 -0
- package/dist/worktree-port-registry.js +382 -0
- package/dist/worktree-port-registry.js.map +1 -0
- package/dist/worktree-port-registry.test.d.ts +2 -0
- package/dist/worktree-port-registry.test.d.ts.map +1 -0
- package/dist/worktree-port-registry.test.js +118 -0
- package/dist/worktree-port-registry.test.js.map +1 -0
- package/dist/worktree-seed-source.d.ts +43 -0
- package/dist/worktree-seed-source.d.ts.map +1 -0
- package/dist/worktree-seed-source.js +180 -0
- package/dist/worktree-seed-source.js.map +1 -0
- package/dist/worktree-seed-source.test.d.ts +2 -0
- package/dist/worktree-seed-source.test.d.ts.map +1 -0
- package/dist/worktree-seed-source.test.js +166 -0
- package/dist/worktree-seed-source.test.js.map +1 -0
- package/package.json +6 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const createCostEventSchema: z.
|
|
2
|
+
export declare const createCostEventSchema: z.ZodPipe<z.ZodObject<{
|
|
3
3
|
agentId: z.ZodString;
|
|
4
4
|
issueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -8,90 +8,62 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8
8
|
billingCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
9
|
provider: z.ZodString;
|
|
10
10
|
biller: z.ZodOptional<z.ZodString>;
|
|
11
|
-
billingType: z.ZodDefault<z.ZodOptional<z.ZodEnum<
|
|
12
|
-
|
|
11
|
+
billingType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
unknown: "unknown";
|
|
13
|
+
metered_api: "metered_api";
|
|
14
|
+
subscription_included: "subscription_included";
|
|
15
|
+
subscription_overage: "subscription_overage";
|
|
16
|
+
credits: "credits";
|
|
17
|
+
fixed: "fixed";
|
|
18
|
+
}>>>;
|
|
19
|
+
costStatus: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
reported: "reported";
|
|
21
|
+
unpriced: "unpriced";
|
|
22
|
+
}>>>;
|
|
13
23
|
model: z.ZodString;
|
|
14
24
|
inputTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
15
25
|
cachedInputTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
16
26
|
outputTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
17
27
|
costCents: z.ZodNumber;
|
|
18
28
|
occurredAt: z.ZodString;
|
|
19
|
-
},
|
|
20
|
-
|
|
29
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
30
|
+
biller: string;
|
|
21
31
|
agentId: string;
|
|
32
|
+
provider: string;
|
|
33
|
+
billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
|
|
34
|
+
costStatus: "reported" | "unpriced";
|
|
35
|
+
model: string;
|
|
22
36
|
inputTokens: number;
|
|
37
|
+
cachedInputTokens: number;
|
|
23
38
|
outputTokens: number;
|
|
24
39
|
costCents: number;
|
|
25
|
-
model: string;
|
|
26
|
-
cachedInputTokens: number;
|
|
27
|
-
billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
|
|
28
|
-
costStatus: "reported" | "unpriced";
|
|
29
40
|
occurredAt: string;
|
|
30
|
-
projectId?: string | null | undefined;
|
|
31
41
|
issueId?: string | null | undefined;
|
|
42
|
+
projectId?: string | null | undefined;
|
|
32
43
|
goalId?: string | null | undefined;
|
|
33
|
-
billingCode?: string | null | undefined;
|
|
34
44
|
heartbeatRunId?: string | null | undefined;
|
|
35
|
-
|
|
45
|
+
billingCode?: string | null | undefined;
|
|
36
46
|
}, {
|
|
37
|
-
provider: string;
|
|
38
47
|
agentId: string;
|
|
39
|
-
costCents: number;
|
|
40
|
-
model: string;
|
|
41
|
-
occurredAt: string;
|
|
42
|
-
projectId?: string | null | undefined;
|
|
43
|
-
issueId?: string | null | undefined;
|
|
44
|
-
goalId?: string | null | undefined;
|
|
45
|
-
billingCode?: string | null | undefined;
|
|
46
|
-
inputTokens?: number | undefined;
|
|
47
|
-
outputTokens?: number | undefined;
|
|
48
|
-
heartbeatRunId?: string | null | undefined;
|
|
49
|
-
cachedInputTokens?: number | undefined;
|
|
50
|
-
biller?: string | undefined;
|
|
51
|
-
billingType?: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed" | undefined;
|
|
52
|
-
costStatus?: "reported" | "unpriced" | undefined;
|
|
53
|
-
}>, {
|
|
54
|
-
biller: string;
|
|
55
48
|
provider: string;
|
|
56
|
-
|
|
49
|
+
billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
|
|
50
|
+
costStatus: "reported" | "unpriced";
|
|
51
|
+
model: string;
|
|
57
52
|
inputTokens: number;
|
|
53
|
+
cachedInputTokens: number;
|
|
58
54
|
outputTokens: number;
|
|
59
55
|
costCents: number;
|
|
60
|
-
model: string;
|
|
61
|
-
cachedInputTokens: number;
|
|
62
|
-
billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
|
|
63
|
-
costStatus: "reported" | "unpriced";
|
|
64
56
|
occurredAt: string;
|
|
65
|
-
projectId?: string | null | undefined;
|
|
66
57
|
issueId?: string | null | undefined;
|
|
67
|
-
goalId?: string | null | undefined;
|
|
68
|
-
billingCode?: string | null | undefined;
|
|
69
|
-
heartbeatRunId?: string | null | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
provider: string;
|
|
72
|
-
agentId: string;
|
|
73
|
-
costCents: number;
|
|
74
|
-
model: string;
|
|
75
|
-
occurredAt: string;
|
|
76
58
|
projectId?: string | null | undefined;
|
|
77
|
-
issueId?: string | null | undefined;
|
|
78
59
|
goalId?: string | null | undefined;
|
|
79
|
-
billingCode?: string | null | undefined;
|
|
80
|
-
inputTokens?: number | undefined;
|
|
81
|
-
outputTokens?: number | undefined;
|
|
82
60
|
heartbeatRunId?: string | null | undefined;
|
|
83
|
-
|
|
61
|
+
billingCode?: string | null | undefined;
|
|
84
62
|
biller?: string | undefined;
|
|
85
|
-
|
|
86
|
-
costStatus?: "reported" | "unpriced" | undefined;
|
|
87
|
-
}>;
|
|
63
|
+
}>>;
|
|
88
64
|
export type CreateCostEvent = z.infer<typeof createCostEventSchema>;
|
|
89
65
|
export declare const updateBudgetSchema: z.ZodObject<{
|
|
90
66
|
budgetMonthlyCents: z.ZodNumber;
|
|
91
|
-
},
|
|
92
|
-
budgetMonthlyCents: number;
|
|
93
|
-
}, {
|
|
94
|
-
budgetMonthlyCents: number;
|
|
95
|
-
}>;
|
|
67
|
+
}, z.core.$strip>;
|
|
96
68
|
export type UpdateBudget = z.infer<typeof updateBudgetSchema>;
|
|
97
69
|
//# sourceMappingURL=cost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../src/validators/cost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../src/validators/cost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoB/B,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/validators/cost.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { BILLING_TYPES, COST_STATUSES } from "../constants.js";
|
|
3
3
|
export const createCostEventSchema = z.object({
|
|
4
|
-
agentId: z.string().
|
|
5
|
-
issueId: z.string().
|
|
6
|
-
projectId: z.string().
|
|
7
|
-
goalId: z.string().
|
|
8
|
-
heartbeatRunId: z.string().
|
|
4
|
+
agentId: z.string().guid(),
|
|
5
|
+
issueId: z.string().guid().optional().nullable(),
|
|
6
|
+
projectId: z.string().guid().optional().nullable(),
|
|
7
|
+
goalId: z.string().guid().optional().nullable(),
|
|
8
|
+
heartbeatRunId: z.string().guid().optional().nullable(),
|
|
9
9
|
billingCode: z.string().optional().nullable(),
|
|
10
10
|
provider: z.string().min(1),
|
|
11
11
|
biller: z.string().min(1).optional(),
|
|
@@ -1,133 +1,85 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const decisionAttentionSourceKindSchema: z.ZodEnum<
|
|
2
|
+
export declare const decisionAttentionSourceKindSchema: z.ZodEnum<{
|
|
3
|
+
review: "review";
|
|
4
|
+
approval: "approval";
|
|
5
|
+
decision: "decision";
|
|
6
|
+
issue_thread_interaction: "issue_thread_interaction";
|
|
7
|
+
join_request: "join_request";
|
|
8
|
+
recovery_action: "recovery_action";
|
|
9
|
+
productivity_review: "productivity_review";
|
|
10
|
+
blocker_attention: "blocker_attention";
|
|
11
|
+
failed_run: "failed_run";
|
|
12
|
+
budget_alert: "budget_alert";
|
|
13
|
+
agent_error_alert: "agent_error_alert";
|
|
14
|
+
}>;
|
|
3
15
|
export declare const decisionQueueKeySchema: z.ZodString;
|
|
4
16
|
export declare const createDecisionQueueSchema: z.ZodObject<{
|
|
5
17
|
key: z.ZodString;
|
|
6
18
|
title: z.ZodString;
|
|
7
19
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
20
|
retentionDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
key: string;
|
|
12
|
-
description?: string | null | undefined;
|
|
13
|
-
retentionDays?: number | null | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
title: string;
|
|
16
|
-
key: string;
|
|
17
|
-
description?: string | null | undefined;
|
|
18
|
-
retentionDays?: number | null | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
export declare const updateDecisionQueueSchema: z.ZodEffects<z.ZodObject<{
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const updateDecisionQueueSchema: z.ZodObject<{
|
|
21
23
|
title: z.ZodOptional<z.ZodString>;
|
|
22
24
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
retentionDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
seedRulesEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
},
|
|
26
|
-
title?: string | undefined;
|
|
27
|
-
description?: string | null | undefined;
|
|
28
|
-
retentionDays?: number | null | undefined;
|
|
29
|
-
seedRulesEnabled?: boolean | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
title?: string | undefined;
|
|
32
|
-
description?: string | null | undefined;
|
|
33
|
-
retentionDays?: number | null | undefined;
|
|
34
|
-
seedRulesEnabled?: boolean | undefined;
|
|
35
|
-
}>, {
|
|
36
|
-
title?: string | undefined;
|
|
37
|
-
description?: string | null | undefined;
|
|
38
|
-
retentionDays?: number | null | undefined;
|
|
39
|
-
seedRulesEnabled?: boolean | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
title?: string | undefined;
|
|
42
|
-
description?: string | null | undefined;
|
|
43
|
-
retentionDays?: number | null | undefined;
|
|
44
|
-
seedRulesEnabled?: boolean | undefined;
|
|
45
|
-
}>;
|
|
27
|
+
}, z.core.$strict>;
|
|
46
28
|
export declare const addDecisionQueueItemSchema: z.ZodObject<{
|
|
47
|
-
sourceKind: z.ZodEnum<
|
|
29
|
+
sourceKind: z.ZodEnum<{
|
|
30
|
+
review: "review";
|
|
31
|
+
approval: "approval";
|
|
32
|
+
decision: "decision";
|
|
33
|
+
issue_thread_interaction: "issue_thread_interaction";
|
|
34
|
+
join_request: "join_request";
|
|
35
|
+
recovery_action: "recovery_action";
|
|
36
|
+
productivity_review: "productivity_review";
|
|
37
|
+
blocker_attention: "blocker_attention";
|
|
38
|
+
failed_run: "failed_run";
|
|
39
|
+
budget_alert: "budget_alert";
|
|
40
|
+
agent_error_alert: "agent_error_alert";
|
|
41
|
+
}>;
|
|
48
42
|
sourceId: z.ZodString;
|
|
49
|
-
},
|
|
50
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
51
|
-
sourceId: string;
|
|
52
|
-
}, {
|
|
53
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
54
|
-
sourceId: string;
|
|
55
|
-
}>;
|
|
43
|
+
}, z.core.$strict>;
|
|
56
44
|
export declare const removeDecisionQueueItemSchema: z.ZodDefault<z.ZodObject<{
|
|
57
45
|
reason: z.ZodOptional<z.ZodString>;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export declare const updateDecisionTriageSchema: z.
|
|
65
|
-
decideBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<
|
|
46
|
+
}, z.core.$strict>>;
|
|
47
|
+
export declare const decisionTriageDecideBySchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
48
|
+
today: "today";
|
|
49
|
+
this_week: "this_week";
|
|
50
|
+
whenever: "whenever";
|
|
51
|
+
}>, z.ZodString]>;
|
|
52
|
+
export declare const updateDecisionTriageSchema: z.ZodObject<{
|
|
53
|
+
decideBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
54
|
+
today: "today";
|
|
55
|
+
this_week: "this_week";
|
|
56
|
+
whenever: "whenever";
|
|
57
|
+
}>, z.ZodString]>>>;
|
|
66
58
|
snoozedUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
-
},
|
|
68
|
-
decideBy?: string | null | undefined;
|
|
69
|
-
snoozedUntil?: string | null | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
decideBy?: string | null | undefined;
|
|
72
|
-
snoozedUntil?: string | null | undefined;
|
|
73
|
-
}>, {
|
|
74
|
-
decideBy?: string | null | undefined;
|
|
75
|
-
snoozedUntil?: string | null | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
decideBy?: string | null | undefined;
|
|
78
|
-
snoozedUntil?: string | null | undefined;
|
|
79
|
-
}>;
|
|
59
|
+
}, z.core.$strict>;
|
|
80
60
|
export declare const updateDecisionRetentionSchema: z.ZodObject<{
|
|
81
61
|
keep: z.ZodBoolean;
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
}, {
|
|
85
|
-
keep: boolean;
|
|
86
|
-
}>;
|
|
87
|
-
export declare const createDecisionArchiveProposalSchema: z.ZodEffects<z.ZodObject<{
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export declare const createDecisionArchiveProposalSchema: z.ZodObject<{
|
|
88
64
|
items: z.ZodArray<z.ZodObject<{
|
|
89
|
-
sourceKind: z.ZodEnum<
|
|
65
|
+
sourceKind: z.ZodEnum<{
|
|
66
|
+
review: "review";
|
|
67
|
+
approval: "approval";
|
|
68
|
+
decision: "decision";
|
|
69
|
+
issue_thread_interaction: "issue_thread_interaction";
|
|
70
|
+
join_request: "join_request";
|
|
71
|
+
recovery_action: "recovery_action";
|
|
72
|
+
productivity_review: "productivity_review";
|
|
73
|
+
blocker_attention: "blocker_attention";
|
|
74
|
+
failed_run: "failed_run";
|
|
75
|
+
budget_alert: "budget_alert";
|
|
76
|
+
agent_error_alert: "agent_error_alert";
|
|
77
|
+
}>;
|
|
90
78
|
sourceId: z.ZodString;
|
|
91
79
|
reason: z.ZodString;
|
|
92
|
-
},
|
|
93
|
-
reason: string;
|
|
94
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
95
|
-
sourceId: string;
|
|
96
|
-
}, {
|
|
97
|
-
reason: string;
|
|
98
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
99
|
-
sourceId: string;
|
|
100
|
-
}>, "many">;
|
|
80
|
+
}, z.core.$strict>>;
|
|
101
81
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
102
|
-
},
|
|
103
|
-
items: {
|
|
104
|
-
reason: string;
|
|
105
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
106
|
-
sourceId: string;
|
|
107
|
-
}[];
|
|
108
|
-
idempotencyKey?: string | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
items: {
|
|
111
|
-
reason: string;
|
|
112
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
113
|
-
sourceId: string;
|
|
114
|
-
}[];
|
|
115
|
-
idempotencyKey?: string | undefined;
|
|
116
|
-
}>, {
|
|
117
|
-
items: {
|
|
118
|
-
reason: string;
|
|
119
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
120
|
-
sourceId: string;
|
|
121
|
-
}[];
|
|
122
|
-
idempotencyKey?: string | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
items: {
|
|
125
|
-
reason: string;
|
|
126
|
-
sourceKind: "review" | "approval" | "decision" | "issue_thread_interaction" | "join_request" | "recovery_action" | "productivity_review" | "blocker_attention" | "failed_run" | "budget_alert" | "agent_error_alert";
|
|
127
|
-
sourceId: string;
|
|
128
|
-
}[];
|
|
129
|
-
idempotencyKey?: string | undefined;
|
|
130
|
-
}>;
|
|
82
|
+
}, z.core.$strict>;
|
|
131
83
|
export type CreateDecisionQueueInput = z.infer<typeof createDecisionQueueSchema>;
|
|
132
84
|
export type UpdateDecisionQueueInput = z.infer<typeof updateDecisionQueueSchema>;
|
|
133
85
|
export type AddDecisionQueueItemInput = z.infer<typeof addDecisionQueueItemSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision-queue.d.ts","sourceRoot":"","sources":["../../src/validators/decision-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iCAAiC,
|
|
1
|
+
{"version":3,"file":"decision-queue.d.ts","sourceRoot":"","sources":["../../src/validators/decision-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAAiC,CAAC;AAEhF,eAAO,MAAM,sBAAsB,aAIsD,CAAC;AAE1F,eAAO,MAAM,yBAAyB;;;;;kBAK3B,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;kBAK8D,CAAC;AAErG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;kBAG5B,CAAC;AAEZ,eAAO,MAAM,6BAA6B;;mBAEnB,CAAC;AAOxB,eAAO,MAAM,4BAA4B;;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;kBAG8D,CAAC;AAEtG,eAAO,MAAM,6BAA6B;;kBAE/B,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;kBAgB9C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACnF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACzF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACnF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACzF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|