@sentry/junior 0.265.0 → 0.267.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/{actor-tlxzqaRe.js → actor-DZSokpwj.js} +8 -1
- package/dist/{adapter-cUkPH3Om.js → adapter-BybMEezj.js} +2 -2
- package/dist/{admin-Cf0rDmWV.js → admin-DOs1_EiW.js} +1 -1
- package/dist/{agent-runner-C6MwHJEs.js → agent-runner-DgNATN4D.js} +874 -228
- package/dist/api/schema.d.ts +202 -23
- package/dist/api/schema.js +6 -5
- package/dist/api.d.ts +6 -1
- package/dist/api.js +130 -1205
- package/dist/{app-Csbi9dW7.d.ts → app-DAB3fzyp.d.ts} +21 -3
- package/dist/app.d.ts +2 -2
- package/dist/app.js +1611 -353
- package/dist/{assistant-reply-UPA8vKlC.js → assistant-reply-CT7VcXQe.js} +1 -1
- package/dist/{automation-2RbKzpMT.js → automation-CmeFBSEh.js} +42 -14
- package/dist/{briefs-DRjx8kQ9.js → briefs-CWKjka7v.js} +5 -5
- package/dist/{catalog-runtime-D3qbJlYz.js → catalog-runtime-cMlAI5LY.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +0 -1
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DX34VNtH.js → client-BjgbMawj.js} +2 -2
- package/dist/{config-BayQ9hHH.js → config-CdB6yJj5.js} +32 -10
- package/dist/{connections-mpN5Lsnj.js → connections-RE_65jzK.js} +13 -12
- package/dist/{conversation-B0baEwoA.js → conversation-DSo310Ps.js} +14 -3
- package/dist/{conversation-privacy-frjQCJa9.js → conversation-privacy-BzgJC5k0.js} +1 -1
- package/dist/{credential-sync-CZmyDNdR.js → credential-sync-DhEGEpgq.js} +15 -15
- package/dist/{credentialed-C6pKlB1p.js → credentialed-CIGwoLU2.js} +2913 -1026
- package/dist/{db-BnRqQ7G5.d.ts → db-Bg-zC3r5.d.ts} +1 -1
- package/dist/{executor-CAr7xQr2.js → executor-VYrx_K4w.js} +7 -4
- package/dist/{history-AY8rs-FR.js → history-C84mlAwO.js} +2 -1
- package/dist/{images-B2yA3HWE.js → images-CecjXAAz.js} +3 -3
- package/dist/instrumentation.js +6 -2
- package/dist/{job-queue-Cjo6Yg_b.js → job-queue-C0BZSa7r.js} +128 -3
- package/dist/{web-input-Y6aXvmfa.js → list-1XQP-o6K.js} +1374 -71
- package/dist/{logging-D2QBriUo.js → logging-DuZ1A4ab.js} +11 -3
- package/dist/{message-C9ymnpBS.js → message-NKSbbnA6.js} +4 -4
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-BtMf3TPZ.js → oauth-callback-server-qAHLPtml.js} +2 -2
- package/dist/{prompt-CvaDdSX3.js → prompt-BW9jFsqZ.js} +1 -1
- package/dist/{registry-COTeZ2cV.js → registry-FQutO926.js} +2 -2
- package/dist/{resolve-g9PKz9pH.js → resolve-Bk4yeuHy.js} +3 -3
- package/dist/{result-COnC42GR.js → result-B9e9ATOU.js} +9 -9
- package/dist/{runner-BnTNS7x_.js → runner-C3S2ObH-.js} +11 -11
- package/dist/{sandbox-egress-signals-C_IIdLFk.js → sandbox-egress-signals-DqpGzzMB.js} +1 -1
- package/dist/{schema-D5Amlzkp.js → schema-X7Fj4fv1.js} +3 -2
- package/dist/{service-account-CwvToidT.js → service-account-BQasl-qq.js} +3 -3
- package/dist/{service-account-YdYftwV2.js → service-account-Do30HUNv.js} +3 -3
- package/dist/{session-stop-CpCUy1ZJ.js → session-stop-DkOjt46_.js} +45 -128
- package/dist/{skills-Bb2KaJ3m.js → skills-CQHrwfOa.js} +2 -2
- package/dist/{spawn-mbTcrLb3.js → spawn-BHuqN14f.js} +2 -2
- package/dist/{store-CqRnaZSq.js → store-6EetVP-m.js} +3 -3
- package/dist/{store-CG0VJyye.d.ts → store-B8CABbmR.d.ts} +10 -2
- package/dist/store-DvNZIsCr.js +295 -0
- package/dist/{task-queue-8XjDIORF.js → task-queue-B0DLgd2P.js} +10 -5
- package/dist/{task-runner-6mLmG6g_.js → task-runner-B-PD_JOj.js} +26 -14
- package/dist/{tasks-DGbrur6x.js → tasks-0ilmuCux.js} +1440 -46
- package/dist/{thread-state-D45lz-oC.js → thread-state-DRmdJ2QN.js} +5 -5
- package/dist/{turn-failure-response-CaEPLSBn.js → turn-failure-response-G11cs2gE.js} +9 -9
- package/dist/{turn-lifecycle-C35IyRGp.js → turn-lifecycle-OzLIwvi1.js} +2 -2
- package/dist/{turn-session-routing-BKx6rfVd.js → turn-session-routing-Dyut9l7Y.js} +1 -1
- package/dist/user-input-request-BDFBdF8r.js +116 -0
- package/dist/{validation-C0X3CX51.js → validation-CxEmt1id.js} +1 -1
- package/dist/{version-BPHgJwnm.js → version-Bapedn4A.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-B2wXNspU.js → viewer-DrN3oC2X.js} +22 -11
- package/dist/{work-DMbqK0kT.js → work-DUQoNcqP.js} +52 -51
- package/dist/{worker-B-rDJ3XN.js → worker-D1l4Ugk0.js} +30 -19
- package/migrations/0064_any_resource_event_triggers.sql +2 -0
- package/migrations/meta/0064_snapshot.json +3505 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +20 -5
- package/dist/store-DdT74Lvq.js +0 -1424
package/dist/api/schema.d.ts
CHANGED
|
@@ -10,6 +10,91 @@ export declare function webMessageId(args: {
|
|
|
10
10
|
conversationId: string;
|
|
11
11
|
idempotencyKey: string;
|
|
12
12
|
}): Promise<string>;
|
|
13
|
+
declare const userInputFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
label: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
kind: z.ZodLiteral<"choice">;
|
|
18
|
+
options: z.ZodArray<z.ZodObject<{
|
|
19
|
+
label: z.ZodString;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
label: z.ZodString;
|
|
25
|
+
description: z.ZodOptional<z.ZodString>;
|
|
26
|
+
kind: z.ZodLiteral<"multi_choice">;
|
|
27
|
+
options: z.ZodArray<z.ZodObject<{
|
|
28
|
+
label: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
label: z.ZodString;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
kind: z.ZodLiteral<"text">;
|
|
36
|
+
}, z.core.$strip>], "kind">;
|
|
37
|
+
export declare const userInputRequestSchema: z.ZodObject<{
|
|
38
|
+
question: z.ZodString;
|
|
39
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43
|
+
kind: z.ZodLiteral<"choice">;
|
|
44
|
+
options: z.ZodArray<z.ZodObject<{
|
|
45
|
+
label: z.ZodString;
|
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
label: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52
|
+
kind: z.ZodLiteral<"multi_choice">;
|
|
53
|
+
options: z.ZodArray<z.ZodObject<{
|
|
54
|
+
label: z.ZodString;
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
label: z.ZodString;
|
|
60
|
+
description: z.ZodOptional<z.ZodString>;
|
|
61
|
+
kind: z.ZodLiteral<"text">;
|
|
62
|
+
}, z.core.$strip>], "kind">>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
/** One field of a user input request. */
|
|
65
|
+
type UserInputField = z.output<typeof userInputFieldSchema>;
|
|
66
|
+
/** A question with one or more fields for a person to answer. */
|
|
67
|
+
type UserInputRequest = z.output<typeof userInputRequestSchema>;
|
|
68
|
+
/**
|
|
69
|
+
* A person's answer to one user input request. `values` maps field ids to
|
|
70
|
+
* the picked option labels or the typed text. `other` is free text that the
|
|
71
|
+
* person can always add.
|
|
72
|
+
*/
|
|
73
|
+
interface UserInputAnswer {
|
|
74
|
+
other?: string;
|
|
75
|
+
requestId: string;
|
|
76
|
+
values: Record<string, string[]>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Return the single choice field of a request that a surface can show as
|
|
80
|
+
* one row of buttons, where one click is the whole answer.
|
|
81
|
+
*/
|
|
82
|
+
export declare function buttonUserInputField(request: UserInputRequest): Extract<UserInputField, {
|
|
83
|
+
kind: "choice";
|
|
84
|
+
}> | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Keep only answer values that match the request: known field ids, known
|
|
87
|
+
* option labels, one value for a `choice` field, and trimmed text.
|
|
88
|
+
*/
|
|
89
|
+
export declare function normalizeUserInputAnswer(request: UserInputRequest, answer: UserInputAnswer): UserInputAnswer;
|
|
90
|
+
/** Return true when an answer has no value and no free text. */
|
|
91
|
+
export declare function isEmptyUserInputAnswer(answer: UserInputAnswer): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Write an answer as the text of the person's message. Slack and the web
|
|
94
|
+
* dashboard both send this text, so the model reads one format. The first
|
|
95
|
+
* line names the request, and each field starts its own line.
|
|
96
|
+
*/
|
|
97
|
+
export declare function formatUserInputAnswer(request: UserInputRequest, answer: UserInputAnswer): string;
|
|
13
98
|
export declare const dailyConversationActivitySchema: z.ZodObject<{
|
|
14
99
|
active: z.ZodNumber;
|
|
15
100
|
conversations: z.ZodNumber;
|
|
@@ -465,6 +550,15 @@ export declare const cancelConversationPendingMessagesResponseSchema: z.ZodObjec
|
|
|
465
550
|
cancelledInboundMessageIds: z.ZodArray<z.ZodString>;
|
|
466
551
|
conversationId: z.ZodString;
|
|
467
552
|
}, z.core.$strict>;
|
|
553
|
+
/** Queued web messages that the viewer wants Junior to read now. */
|
|
554
|
+
export declare const steerConversationPendingMessagesBodySchema: z.ZodObject<{
|
|
555
|
+
inboundMessageIds: z.ZodArray<z.ZodString>;
|
|
556
|
+
}, z.core.$strict>;
|
|
557
|
+
/** Result of steering queued web messages into the conversation. */
|
|
558
|
+
export declare const steerConversationPendingMessagesResponseSchema: z.ZodObject<{
|
|
559
|
+
conversationId: z.ZodString;
|
|
560
|
+
steeredInboundMessageIds: z.ZodArray<z.ZodString>;
|
|
561
|
+
}, z.core.$strict>;
|
|
468
562
|
export declare const conversationAuxiliaryCostsSchema: z.ZodObject<{
|
|
469
563
|
costUsd: z.ZodNumber;
|
|
470
564
|
operations: z.ZodArray<z.ZodObject<{
|
|
@@ -827,6 +921,7 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
827
921
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
828
922
|
turnId: z.ZodString;
|
|
829
923
|
state: z.ZodEnum<{
|
|
924
|
+
blocked: "blocked";
|
|
830
925
|
no_reply: "no_reply";
|
|
831
926
|
succeeded: "succeeded";
|
|
832
927
|
}>;
|
|
@@ -1081,6 +1176,7 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
1081
1176
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
1082
1177
|
turnId: z.ZodString;
|
|
1083
1178
|
state: z.ZodEnum<{
|
|
1179
|
+
blocked: "blocked";
|
|
1084
1180
|
no_reply: "no_reply";
|
|
1085
1181
|
succeeded: "succeeded";
|
|
1086
1182
|
}>;
|
|
@@ -1727,6 +1823,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1727
1823
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
1728
1824
|
turnId: z.ZodString;
|
|
1729
1825
|
state: z.ZodEnum<{
|
|
1826
|
+
blocked: "blocked";
|
|
1730
1827
|
no_reply: "no_reply";
|
|
1731
1828
|
succeeded: "succeeded";
|
|
1732
1829
|
}>;
|
|
@@ -2042,6 +2139,7 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
2042
2139
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
2043
2140
|
turnId: z.ZodString;
|
|
2044
2141
|
state: z.ZodEnum<{
|
|
2142
|
+
blocked: "blocked";
|
|
2045
2143
|
no_reply: "no_reply";
|
|
2046
2144
|
succeeded: "succeeded";
|
|
2047
2145
|
}>;
|
|
@@ -2487,6 +2585,8 @@ type ConversationPendingMessage = z.infer<typeof conversationPendingMessageSchem
|
|
|
2487
2585
|
type ConversationPendingMessagesReport = z.infer<typeof conversationPendingMessagesReportSchema>;
|
|
2488
2586
|
type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPendingMessagesBodySchema>;
|
|
2489
2587
|
type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
|
|
2588
|
+
type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
|
|
2589
|
+
type SteerConversationPendingMessagesResponse = z.infer<typeof steerConversationPendingMessagesResponseSchema>;
|
|
2490
2590
|
declare const conversationStatsItemSchema: z.ZodObject<{
|
|
2491
2591
|
active: z.ZodNumber;
|
|
2492
2592
|
conversations: z.ZodNumber;
|
|
@@ -3873,6 +3973,12 @@ export declare const automationRunWindowsSchema: z.ZodObject<{
|
|
|
3873
3973
|
90: z.ZodNumber;
|
|
3874
3974
|
}, z.core.$strict>;
|
|
3875
3975
|
export declare const scheduledAutomationSummarySchema: z.ZodObject<{
|
|
3976
|
+
costUsd: z.ZodObject<{
|
|
3977
|
+
1: z.ZodNumber;
|
|
3978
|
+
7: z.ZodNumber;
|
|
3979
|
+
30: z.ZodNumber;
|
|
3980
|
+
90: z.ZodNumber;
|
|
3981
|
+
}, z.core.$strict>;
|
|
3876
3982
|
credentialMode: z.ZodEnum<{
|
|
3877
3983
|
creator: "creator";
|
|
3878
3984
|
system: "system";
|
|
@@ -3936,6 +4042,12 @@ export declare const scheduledAutomationSummarySchema: z.ZodObject<{
|
|
|
3936
4042
|
}>;
|
|
3937
4043
|
}, z.core.$strict>;
|
|
3938
4044
|
export declare const eventAutomationSummarySchema: z.ZodObject<{
|
|
4045
|
+
costUsd: z.ZodObject<{
|
|
4046
|
+
1: z.ZodNumber;
|
|
4047
|
+
7: z.ZodNumber;
|
|
4048
|
+
30: z.ZodNumber;
|
|
4049
|
+
90: z.ZodNumber;
|
|
4050
|
+
}, z.core.$strict>;
|
|
3939
4051
|
credentialMode: z.ZodEnum<{
|
|
3940
4052
|
creator: "creator";
|
|
3941
4053
|
system: "system";
|
|
@@ -4002,6 +4114,12 @@ export declare const eventAutomationSummarySchema: z.ZodObject<{
|
|
|
4002
4114
|
}>;
|
|
4003
4115
|
}, z.core.$strict>;
|
|
4004
4116
|
export declare const automationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4117
|
+
costUsd: z.ZodObject<{
|
|
4118
|
+
1: z.ZodNumber;
|
|
4119
|
+
7: z.ZodNumber;
|
|
4120
|
+
30: z.ZodNumber;
|
|
4121
|
+
90: z.ZodNumber;
|
|
4122
|
+
}, z.core.$strict>;
|
|
4005
4123
|
credentialMode: z.ZodEnum<{
|
|
4006
4124
|
creator: "creator";
|
|
4007
4125
|
system: "system";
|
|
@@ -4064,6 +4182,12 @@ export declare const automationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
4064
4182
|
paused: "paused";
|
|
4065
4183
|
}>;
|
|
4066
4184
|
}, z.core.$strict>, z.ZodObject<{
|
|
4185
|
+
costUsd: z.ZodObject<{
|
|
4186
|
+
1: z.ZodNumber;
|
|
4187
|
+
7: z.ZodNumber;
|
|
4188
|
+
30: z.ZodNumber;
|
|
4189
|
+
90: z.ZodNumber;
|
|
4190
|
+
}, z.core.$strict>;
|
|
4067
4191
|
credentialMode: z.ZodEnum<{
|
|
4068
4192
|
creator: "creator";
|
|
4069
4193
|
system: "system";
|
|
@@ -4187,6 +4311,12 @@ export declare const automationListSchema: z.ZodObject<{
|
|
|
4187
4311
|
scheduled: z.ZodNumber;
|
|
4188
4312
|
}, z.core.$strict>>>;
|
|
4189
4313
|
automations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4314
|
+
costUsd: z.ZodObject<{
|
|
4315
|
+
1: z.ZodNumber;
|
|
4316
|
+
7: z.ZodNumber;
|
|
4317
|
+
30: z.ZodNumber;
|
|
4318
|
+
90: z.ZodNumber;
|
|
4319
|
+
}, z.core.$strict>;
|
|
4190
4320
|
credentialMode: z.ZodEnum<{
|
|
4191
4321
|
creator: "creator";
|
|
4192
4322
|
system: "system";
|
|
@@ -4249,6 +4379,12 @@ export declare const automationListSchema: z.ZodObject<{
|
|
|
4249
4379
|
paused: "paused";
|
|
4250
4380
|
}>;
|
|
4251
4381
|
}, z.core.$strict>, z.ZodObject<{
|
|
4382
|
+
costUsd: z.ZodObject<{
|
|
4383
|
+
1: z.ZodNumber;
|
|
4384
|
+
7: z.ZodNumber;
|
|
4385
|
+
30: z.ZodNumber;
|
|
4386
|
+
90: z.ZodNumber;
|
|
4387
|
+
}, z.core.$strict>;
|
|
4252
4388
|
credentialMode: z.ZodEnum<{
|
|
4253
4389
|
creator: "creator";
|
|
4254
4390
|
system: "system";
|
|
@@ -4411,6 +4547,12 @@ export declare const automationExecutionListSchema: z.ZodObject<{
|
|
|
4411
4547
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
4412
4548
|
}, z.core.$strict>>;
|
|
4413
4549
|
automation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4550
|
+
costUsd: z.ZodObject<{
|
|
4551
|
+
1: z.ZodNumber;
|
|
4552
|
+
7: z.ZodNumber;
|
|
4553
|
+
30: z.ZodNumber;
|
|
4554
|
+
90: z.ZodNumber;
|
|
4555
|
+
}, z.core.$strict>;
|
|
4414
4556
|
credentialMode: z.ZodEnum<{
|
|
4415
4557
|
creator: "creator";
|
|
4416
4558
|
system: "system";
|
|
@@ -4473,6 +4615,12 @@ export declare const automationExecutionListSchema: z.ZodObject<{
|
|
|
4473
4615
|
paused: "paused";
|
|
4474
4616
|
}>;
|
|
4475
4617
|
}, z.core.$strict>, z.ZodObject<{
|
|
4618
|
+
costUsd: z.ZodObject<{
|
|
4619
|
+
1: z.ZodNumber;
|
|
4620
|
+
7: z.ZodNumber;
|
|
4621
|
+
30: z.ZodNumber;
|
|
4622
|
+
90: z.ZodNumber;
|
|
4623
|
+
}, z.core.$strict>;
|
|
4476
4624
|
credentialMode: z.ZodEnum<{
|
|
4477
4625
|
creator: "creator";
|
|
4478
4626
|
system: "system";
|
|
@@ -4687,8 +4835,8 @@ export declare const automationVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
4687
4835
|
label: z.ZodString;
|
|
4688
4836
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
|
|
4689
4837
|
namespace: z.ZodString;
|
|
4690
|
-
identifier: z.ZodString
|
|
4691
|
-
resourceType: z.ZodString
|
|
4838
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
4839
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
4692
4840
|
}, z.core.$strict>;
|
|
4693
4841
|
title: z.ZodNullable<z.ZodString>;
|
|
4694
4842
|
instruction: z.ZodString;
|
|
@@ -4786,8 +4934,8 @@ declare const listedAutomationVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
4786
4934
|
label: z.ZodString;
|
|
4787
4935
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
|
|
4788
4936
|
namespace: z.ZodString;
|
|
4789
|
-
identifier: z.ZodString
|
|
4790
|
-
resourceType: z.ZodString
|
|
4937
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
4938
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
4791
4939
|
}, z.core.$strict>;
|
|
4792
4940
|
title: z.ZodNullable<z.ZodString>;
|
|
4793
4941
|
instruction: z.ZodString;
|
|
@@ -4887,8 +5035,8 @@ export declare const automationVersionListSchema: z.ZodObject<{
|
|
|
4887
5035
|
label: z.ZodString;
|
|
4888
5036
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
|
|
4889
5037
|
namespace: z.ZodString;
|
|
4890
|
-
identifier: z.ZodString
|
|
4891
|
-
resourceType: z.ZodString
|
|
5038
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
5039
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
4892
5040
|
}, z.core.$strict>;
|
|
4893
5041
|
title: z.ZodNullable<z.ZodString>;
|
|
4894
5042
|
instruction: z.ZodString;
|
|
@@ -5020,8 +5168,8 @@ export declare const automationEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
5020
5168
|
label: z.ZodString;
|
|
5021
5169
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
|
|
5022
5170
|
namespace: z.ZodString;
|
|
5023
|
-
identifier: z.ZodString
|
|
5024
|
-
resourceType: z.ZodString
|
|
5171
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
5025
5173
|
}, z.core.$strict>;
|
|
5026
5174
|
status: z.ZodEnum<{
|
|
5027
5175
|
active: "active";
|
|
@@ -5122,8 +5270,8 @@ export declare const automationUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5122
5270
|
events: z.ZodArray<z.ZodString>;
|
|
5123
5271
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
|
|
5124
5272
|
namespace: z.ZodString;
|
|
5125
|
-
resourceType: z.ZodString
|
|
5126
|
-
identifier: z.ZodString
|
|
5273
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
5274
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
5127
5275
|
label: z.ZodString;
|
|
5128
5276
|
}, z.core.$strict>>;
|
|
5129
5277
|
kind: z.ZodLiteral<"event">;
|
|
@@ -5140,16 +5288,21 @@ export declare const automationEditErrorSchema: z.ZodObject<{
|
|
|
5140
5288
|
}, z.core.$strict>;
|
|
5141
5289
|
type AutomationEdit = z.output<typeof automationEditSchema>;
|
|
5142
5290
|
type AutomationUpdate = z.output<typeof automationUpdateSchema>;
|
|
5143
|
-
/**
|
|
5291
|
+
/**
|
|
5292
|
+
* Catalog metadata only, one entry for each namespace. Callbacks, guidance,
|
|
5293
|
+
* and provider connections stay on the server. `events` gives the reach of
|
|
5294
|
+
* each event once, and `anyResourceFields` gives the filters of every
|
|
5295
|
+
* resource type, for a trigger with no identifier.
|
|
5296
|
+
*/
|
|
5144
5297
|
export declare const automationEventCatalogSchema: z.ZodArray<z.ZodObject<{
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5298
|
+
namespace: z.ZodString;
|
|
5299
|
+
displayName: z.ZodString;
|
|
5300
|
+
events: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5301
|
+
reach: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"resource">, z.ZodObject<{
|
|
5302
|
+
anyOf: z.ZodArray<z.ZodString>;
|
|
5303
|
+
}, z.core.$strict>]>;
|
|
5304
|
+
}, z.core.$strip>>;
|
|
5305
|
+
anyResourceFields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5153
5306
|
kind: z.ZodEnum<{
|
|
5154
5307
|
boolean: "boolean";
|
|
5155
5308
|
number: "number";
|
|
@@ -5158,10 +5311,36 @@ export declare const automationEventCatalogSchema: z.ZodArray<z.ZodObject<{
|
|
|
5158
5311
|
description: z.ZodString;
|
|
5159
5312
|
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5160
5313
|
list: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5314
|
+
case: z.ZodOptional<z.ZodEnum<{
|
|
5315
|
+
lower: "lower";
|
|
5316
|
+
upper: "upper";
|
|
5317
|
+
}>>;
|
|
5161
5318
|
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5162
|
-
}, z.core.$strict
|
|
5163
|
-
|
|
5164
|
-
|
|
5319
|
+
}, z.core.$strict>>;
|
|
5320
|
+
resourceTypes: z.ZodArray<z.ZodObject<{
|
|
5321
|
+
type: z.ZodString;
|
|
5322
|
+
identifier: z.ZodOptional<z.ZodObject<{
|
|
5323
|
+
format: z.ZodString;
|
|
5324
|
+
pattern: z.ZodString;
|
|
5325
|
+
}, z.core.$strict>>;
|
|
5326
|
+
supportedEvents: z.ZodArray<z.ZodString>;
|
|
5327
|
+
suggestedEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5328
|
+
matchFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5329
|
+
kind: z.ZodEnum<{
|
|
5330
|
+
boolean: "boolean";
|
|
5331
|
+
number: "number";
|
|
5332
|
+
string: "string";
|
|
5333
|
+
}>;
|
|
5334
|
+
description: z.ZodString;
|
|
5335
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5336
|
+
list: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5337
|
+
case: z.ZodOptional<z.ZodEnum<{
|
|
5338
|
+
lower: "lower";
|
|
5339
|
+
upper: "upper";
|
|
5340
|
+
}>>;
|
|
5341
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5342
|
+
}, z.core.$strict>>>;
|
|
5343
|
+
}, z.core.$strict>>;
|
|
5165
5344
|
}, z.core.$strict>>;
|
|
5166
5345
|
export declare const automationScheduleIntentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
5167
5346
|
kind: z.ZodLiteral<"one_off">;
|
|
@@ -5448,4 +5627,4 @@ type PluginPackageContentItemReport = z.infer<typeof pluginPackageContentItemRep
|
|
|
5448
5627
|
type PluginPackageContentReport = z.infer<typeof pluginPackageContentReportSchema>;
|
|
5449
5628
|
type PluginOperationalReport = z.infer<typeof pluginOperationalReportSchema>;
|
|
5450
5629
|
type PluginOperationalReportFeed = z.infer<typeof pluginOperationalReportFeedSchema>;
|
|
5451
|
-
export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type StopConversationTurnResponse, type WorkspaceListReport, type WorkspaceReport, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, messageCardText, resolveMessageCards };
|
|
5630
|
+
export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, type UserInputAnswer, type UserInputField, type UserInputRequest, type WorkspaceListReport, type WorkspaceReport, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, messageCardText, resolveMessageCards };
|
package/dist/api/schema.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
1
|
+
import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-C84mlAwO.js";
|
|
2
|
+
import { A as createConversationMessageBodySchema, C as conversationReportEventSchema, E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, G as INPUT_IMAGE_TYPES, H as MAX_INPUT_IMAGES, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, R as messageCardText, S as conversationReportEventDataSchema, U as MAX_INPUT_IMAGE_BYTES, V as resolveMessageCards, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as forkConversationBodySchema, k as createConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-DSo310Ps.js";
|
|
3
|
+
import { a as normalizeUserInputAnswer, i as isEmptyUserInputAnswer, n as buttonUserInputField, o as userInputRequestSchema, r as formatUserInputAnswer } from "../user-input-request-BDFBdF8r.js";
|
|
4
|
+
import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-CmeFBSEh.js";
|
|
4
5
|
import { C as skillReportsSchema, S as skillReportSchema, _ as pluginPackageContentItemReportSchema, b as pluginsSchema, g as pluginOperationalReportSchema, h as pluginOperationalReportFeedSchema, m as healthReportSchema, t as webMessageId, v as pluginPackageContentReportSchema, x as runtimeInfoReportSchema, y as pluginSchema } from "../web-message-id-CJSUiksE.js";
|
|
5
|
-
import { B as codeChangeSummarySchema, C as personParamsSchema, D as locationDirectoryReportSchema, E as locationDetailReportSchema, F as connectionSchema, G as codeRepositorySummarySchema, H as codePersonReportSchema, I as disconnectConnectionResponseSchema, J as conversationChildAgentSchema, K as conversationWatchSchema, L as startConnectionResponseSchema, M as dailyConversationActivitySchema, N as connectionListSchema, O as locationParamsSchema, P as connectionParamsSchema, Q as apiErrorSchema, R as codeActivityDaySchema, S as actorProfileReportSchema, T as locationActivityDayReportSchema, U as codeRepositoryParamsSchema, V as codeOverviewReportSchema, W as codeRepositoryReportSchema, X as stopConversationTurnResponseSchema, Y as conversationChildAgentsReportSchema, Z as conversationStatsReportSchema, _ as personalTokenListSchema, a as workspaceBodySchema, b as revokePersonalTokenResponseSchema, c as workspaceRepoSchema, d as serviceAccountListSchema, f as serviceAccountParamsSchema, g as createdPersonalTokenSchema, h as createPersonalTokenBodySchema, i as deleteWorkspaceResponseSchema, l as workspaceSchema, m as startServiceAccountSignInResponseSchema, n as statsReportSchema, o as workspaceListSchema, p as serviceAccountSchema, q as conversationWatchesReportSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as disconnectServiceAccountResponseSchema, v as personalTokenMetadataSchema, w as personalSpendReportSchema, x as actorDirectoryReportSchema, y as personalTokenParamsSchema, z as codeChangeSummaryReportSchema } from "../schema-
|
|
6
|
-
export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, stopConversationTurnResponseSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
|
6
|
+
import { B as codeChangeSummarySchema, C as personParamsSchema, D as locationDirectoryReportSchema, E as locationDetailReportSchema, F as connectionSchema, G as codeRepositorySummarySchema, H as codePersonReportSchema, I as disconnectConnectionResponseSchema, J as conversationChildAgentSchema, K as conversationWatchSchema, L as startConnectionResponseSchema, M as dailyConversationActivitySchema, N as connectionListSchema, O as locationParamsSchema, P as connectionParamsSchema, Q as apiErrorSchema, R as codeActivityDaySchema, S as actorProfileReportSchema, T as locationActivityDayReportSchema, U as codeRepositoryParamsSchema, V as codeOverviewReportSchema, W as codeRepositoryReportSchema, X as stopConversationTurnResponseSchema, Y as conversationChildAgentsReportSchema, Z as conversationStatsReportSchema, _ as personalTokenListSchema, a as workspaceBodySchema, b as revokePersonalTokenResponseSchema, c as workspaceRepoSchema, d as serviceAccountListSchema, f as serviceAccountParamsSchema, g as createdPersonalTokenSchema, h as createPersonalTokenBodySchema, i as deleteWorkspaceResponseSchema, l as workspaceSchema, m as startServiceAccountSignInResponseSchema, n as statsReportSchema, o as workspaceListSchema, p as serviceAccountSchema, q as conversationWatchesReportSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as disconnectServiceAccountResponseSchema, v as personalTokenMetadataSchema, w as personalSpendReportSchema, x as actorDirectoryReportSchema, y as personalTokenParamsSchema, z as codeChangeSummaryReportSchema } from "../schema-X7Fj4fv1.js";
|
|
7
|
+
export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, formatUserInputAnswer, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userInputRequestSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue } from "./queue-C37RbDVc.js";
|
|
2
|
-
import "./db-
|
|
2
|
+
import "./db-Bg-zC3r5.js";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { User } from "@sentry/junior-plugin-api";
|
|
@@ -16,6 +16,11 @@ type JuniorApiEnv = {
|
|
|
16
16
|
};
|
|
17
17
|
/** Resolve an active personal bearer token to its verified owner email. */
|
|
18
18
|
export declare function authenticatePersonalToken(token: string, now?: Date): Promise<string | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Return whether a verified sign-in email is on an allowed domain. Sign-in
|
|
21
|
+
* needs a configured list, so an empty list allows no email.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isAllowedSignInEmail(email: string, allowedDomains: readonly string[]): boolean;
|
|
19
24
|
/** Resolve or create the canonical user for one authenticated viewer. */
|
|
20
25
|
export declare function resolveViewerUser(email: string): Promise<User | undefined>;
|
|
21
26
|
/** Update one canonical user's display name. */
|