@sentry/junior 0.266.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-eRFA_naf.js → adapter-BybMEezj.js} +2 -2
- package/dist/{admin-tILpP51p.js → admin-DOs1_EiW.js} +1 -1
- package/dist/{agent-runner-BtYK7bht.js → agent-runner-DgNATN4D.js} +872 -226
- package/dist/api/schema.d.ts +198 -23
- package/dist/api/schema.js +5 -4
- 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 +1610 -353
- package/dist/{assistant-reply-UyzAfZQo.js → assistant-reply-CT7VcXQe.js} +1 -1
- package/dist/{automation-BKpY9LPa.js → automation-CmeFBSEh.js} +42 -14
- package/dist/{briefs-DgfWMU7e.js → briefs-CWKjka7v.js} +4 -4
- package/dist/{catalog-runtime-DAJjAbSx.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-B0YZfxNy.js → client-BjgbMawj.js} +2 -2
- package/dist/{config-C0UwYqDK.js → config-CdB6yJj5.js} +32 -10
- package/dist/{connections-Bwu3VORi.js → connections-RE_65jzK.js} +13 -12
- package/dist/{conversation-DF4rUcjb.js → conversation-DSo310Ps.js} +8 -1
- package/dist/{conversation-privacy-CY7JVjxn.js → conversation-privacy-BzgJC5k0.js} +1 -1
- package/dist/{credential-sync-VGAMUTGp.js → credential-sync-DhEGEpgq.js} +15 -15
- package/dist/{credentialed-enF5Bf3y.js → credentialed-CIGwoLU2.js} +2905 -1024
- package/dist/{db-BnRqQ7G5.d.ts → db-Bg-zC3r5.d.ts} +1 -1
- package/dist/{executor-TnWbvL09.js → executor-VYrx_K4w.js} +7 -4
- package/dist/{images-BKQqSi5W.js → images-CecjXAAz.js} +3 -3
- package/dist/instrumentation.js +6 -2
- package/dist/{job-queue-DBpHmKnd.js → job-queue-C0BZSa7r.js} +128 -3
- package/dist/{web-input-B-bMjD1V.js → list-1XQP-o6K.js} +1374 -71
- package/dist/{logging-Ce0mXZ8J.js → logging-DuZ1A4ab.js} +11 -3
- package/dist/{message-VZ3DFpGb.js → message-NKSbbnA6.js} +4 -4
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-CpqWLjVY.js → oauth-callback-server-qAHLPtml.js} +2 -2
- package/dist/{prompt-BcCGlmg2.js → prompt-BW9jFsqZ.js} +1 -1
- package/dist/{registry-1BEIPdbT.js → registry-FQutO926.js} +2 -2
- package/dist/{resolve-BSHHkEGE.js → resolve-Bk4yeuHy.js} +3 -3
- package/dist/{result-CwOpzqdh.js → result-B9e9ATOU.js} +9 -9
- package/dist/{runner-CEaX04kz.js → runner-C3S2ObH-.js} +11 -11
- package/dist/{sandbox-egress-signals-BwtGHwqa.js → sandbox-egress-signals-DqpGzzMB.js} +1 -1
- package/dist/{schema-RsaBHxRH.js → schema-X7Fj4fv1.js} +3 -2
- package/dist/{service-account-Dg4lIbHm.js → service-account-BQasl-qq.js} +3 -3
- package/dist/{service-account-6wC76eBZ.js → service-account-Do30HUNv.js} +3 -3
- package/dist/{session-stop-tZOw9AJD.js → session-stop-DkOjt46_.js} +45 -128
- package/dist/{skills-DzyGN7wd.js → skills-CQHrwfOa.js} +2 -2
- package/dist/{spawn-6rokq7l_.js → spawn-BHuqN14f.js} +2 -2
- package/dist/{store-DcKkzrdt.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-Bg4RS2Gy.js → task-queue-B0DLgd2P.js} +10 -5
- package/dist/{task-runner-8N5LIkSg.js → task-runner-B-PD_JOj.js} +25 -13
- package/dist/{tasks-DDT-J3Rf.js → tasks-0ilmuCux.js} +1438 -44
- package/dist/{thread-state-cprEaxgl.js → thread-state-DRmdJ2QN.js} +5 -5
- package/dist/{turn-failure-response-C8sMdsdX.js → turn-failure-response-G11cs2gE.js} +9 -9
- package/dist/{turn-lifecycle-DaBVoz7h.js → turn-lifecycle-OzLIwvi1.js} +1 -1
- package/dist/{turn-session-routing-a9CHX-w6.js → turn-session-routing-Dyut9l7Y.js} +1 -1
- package/dist/user-input-request-BDFBdF8r.js +116 -0
- package/dist/{validation-C2lllinq.js → validation-CxEmt1id.js} +1 -1
- package/dist/{version-oaLfxxnf.js → version-Bapedn4A.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BpE6Z3qf.js → viewer-DrN3oC2X.js} +21 -10
- package/dist/{work-VX1SHWha.js → work-DUQoNcqP.js} +10 -10
- package/dist/{worker-hook-y_Y.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-FALy-JQb.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<{
|
|
@@ -2491,6 +2585,8 @@ type ConversationPendingMessage = z.infer<typeof conversationPendingMessageSchem
|
|
|
2491
2585
|
type ConversationPendingMessagesReport = z.infer<typeof conversationPendingMessagesReportSchema>;
|
|
2492
2586
|
type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPendingMessagesBodySchema>;
|
|
2493
2587
|
type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
|
|
2588
|
+
type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
|
|
2589
|
+
type SteerConversationPendingMessagesResponse = z.infer<typeof steerConversationPendingMessagesResponseSchema>;
|
|
2494
2590
|
declare const conversationStatsItemSchema: z.ZodObject<{
|
|
2495
2591
|
active: z.ZodNumber;
|
|
2496
2592
|
conversations: z.ZodNumber;
|
|
@@ -3877,6 +3973,12 @@ export declare const automationRunWindowsSchema: z.ZodObject<{
|
|
|
3877
3973
|
90: z.ZodNumber;
|
|
3878
3974
|
}, z.core.$strict>;
|
|
3879
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>;
|
|
3880
3982
|
credentialMode: z.ZodEnum<{
|
|
3881
3983
|
creator: "creator";
|
|
3882
3984
|
system: "system";
|
|
@@ -3940,6 +4042,12 @@ export declare const scheduledAutomationSummarySchema: z.ZodObject<{
|
|
|
3940
4042
|
}>;
|
|
3941
4043
|
}, z.core.$strict>;
|
|
3942
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>;
|
|
3943
4051
|
credentialMode: z.ZodEnum<{
|
|
3944
4052
|
creator: "creator";
|
|
3945
4053
|
system: "system";
|
|
@@ -4006,6 +4114,12 @@ export declare const eventAutomationSummarySchema: z.ZodObject<{
|
|
|
4006
4114
|
}>;
|
|
4007
4115
|
}, z.core.$strict>;
|
|
4008
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>;
|
|
4009
4123
|
credentialMode: z.ZodEnum<{
|
|
4010
4124
|
creator: "creator";
|
|
4011
4125
|
system: "system";
|
|
@@ -4068,6 +4182,12 @@ export declare const automationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
4068
4182
|
paused: "paused";
|
|
4069
4183
|
}>;
|
|
4070
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>;
|
|
4071
4191
|
credentialMode: z.ZodEnum<{
|
|
4072
4192
|
creator: "creator";
|
|
4073
4193
|
system: "system";
|
|
@@ -4191,6 +4311,12 @@ export declare const automationListSchema: z.ZodObject<{
|
|
|
4191
4311
|
scheduled: z.ZodNumber;
|
|
4192
4312
|
}, z.core.$strict>>>;
|
|
4193
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>;
|
|
4194
4320
|
credentialMode: z.ZodEnum<{
|
|
4195
4321
|
creator: "creator";
|
|
4196
4322
|
system: "system";
|
|
@@ -4253,6 +4379,12 @@ export declare const automationListSchema: z.ZodObject<{
|
|
|
4253
4379
|
paused: "paused";
|
|
4254
4380
|
}>;
|
|
4255
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>;
|
|
4256
4388
|
credentialMode: z.ZodEnum<{
|
|
4257
4389
|
creator: "creator";
|
|
4258
4390
|
system: "system";
|
|
@@ -4415,6 +4547,12 @@ export declare const automationExecutionListSchema: z.ZodObject<{
|
|
|
4415
4547
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
4416
4548
|
}, z.core.$strict>>;
|
|
4417
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>;
|
|
4418
4556
|
credentialMode: z.ZodEnum<{
|
|
4419
4557
|
creator: "creator";
|
|
4420
4558
|
system: "system";
|
|
@@ -4477,6 +4615,12 @@ export declare const automationExecutionListSchema: z.ZodObject<{
|
|
|
4477
4615
|
paused: "paused";
|
|
4478
4616
|
}>;
|
|
4479
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>;
|
|
4480
4624
|
credentialMode: z.ZodEnum<{
|
|
4481
4625
|
creator: "creator";
|
|
4482
4626
|
system: "system";
|
|
@@ -4691,8 +4835,8 @@ export declare const automationVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
4691
4835
|
label: z.ZodString;
|
|
4692
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]>>]>>>;
|
|
4693
4837
|
namespace: z.ZodString;
|
|
4694
|
-
identifier: z.ZodString
|
|
4695
|
-
resourceType: z.ZodString
|
|
4838
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
4839
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
4696
4840
|
}, z.core.$strict>;
|
|
4697
4841
|
title: z.ZodNullable<z.ZodString>;
|
|
4698
4842
|
instruction: z.ZodString;
|
|
@@ -4790,8 +4934,8 @@ declare const listedAutomationVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
4790
4934
|
label: z.ZodString;
|
|
4791
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]>>]>>>;
|
|
4792
4936
|
namespace: z.ZodString;
|
|
4793
|
-
identifier: z.ZodString
|
|
4794
|
-
resourceType: z.ZodString
|
|
4937
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
4938
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
4795
4939
|
}, z.core.$strict>;
|
|
4796
4940
|
title: z.ZodNullable<z.ZodString>;
|
|
4797
4941
|
instruction: z.ZodString;
|
|
@@ -4891,8 +5035,8 @@ export declare const automationVersionListSchema: z.ZodObject<{
|
|
|
4891
5035
|
label: z.ZodString;
|
|
4892
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]>>]>>>;
|
|
4893
5037
|
namespace: z.ZodString;
|
|
4894
|
-
identifier: z.ZodString
|
|
4895
|
-
resourceType: z.ZodString
|
|
5038
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
5039
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
4896
5040
|
}, z.core.$strict>;
|
|
4897
5041
|
title: z.ZodNullable<z.ZodString>;
|
|
4898
5042
|
instruction: z.ZodString;
|
|
@@ -5024,8 +5168,8 @@ export declare const automationEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
5024
5168
|
label: z.ZodString;
|
|
5025
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]>>]>>>;
|
|
5026
5170
|
namespace: z.ZodString;
|
|
5027
|
-
identifier: z.ZodString
|
|
5028
|
-
resourceType: z.ZodString
|
|
5171
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
5029
5173
|
}, z.core.$strict>;
|
|
5030
5174
|
status: z.ZodEnum<{
|
|
5031
5175
|
active: "active";
|
|
@@ -5126,8 +5270,8 @@ export declare const automationUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5126
5270
|
events: z.ZodArray<z.ZodString>;
|
|
5127
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]>>]>>>;
|
|
5128
5272
|
namespace: z.ZodString;
|
|
5129
|
-
resourceType: z.ZodString
|
|
5130
|
-
identifier: z.ZodString
|
|
5273
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
5274
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
5131
5275
|
label: z.ZodString;
|
|
5132
5276
|
}, z.core.$strict>>;
|
|
5133
5277
|
kind: z.ZodLiteral<"event">;
|
|
@@ -5144,16 +5288,21 @@ export declare const automationEditErrorSchema: z.ZodObject<{
|
|
|
5144
5288
|
}, z.core.$strict>;
|
|
5145
5289
|
type AutomationEdit = z.output<typeof automationEditSchema>;
|
|
5146
5290
|
type AutomationUpdate = z.output<typeof automationUpdateSchema>;
|
|
5147
|
-
/**
|
|
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
|
+
*/
|
|
5148
5297
|
export declare const automationEventCatalogSchema: z.ZodArray<z.ZodObject<{
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
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<{
|
|
5157
5306
|
kind: z.ZodEnum<{
|
|
5158
5307
|
boolean: "boolean";
|
|
5159
5308
|
number: "number";
|
|
@@ -5162,10 +5311,36 @@ export declare const automationEventCatalogSchema: z.ZodArray<z.ZodObject<{
|
|
|
5162
5311
|
description: z.ZodString;
|
|
5163
5312
|
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5164
5313
|
list: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5314
|
+
case: z.ZodOptional<z.ZodEnum<{
|
|
5315
|
+
lower: "lower";
|
|
5316
|
+
upper: "upper";
|
|
5317
|
+
}>>;
|
|
5165
5318
|
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5166
|
-
}, z.core.$strict
|
|
5167
|
-
|
|
5168
|
-
|
|
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>>;
|
|
5169
5344
|
}, z.core.$strict>>;
|
|
5170
5345
|
export declare const automationScheduleIntentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
5171
5346
|
kind: z.ZodLiteral<"one_off">;
|
|
@@ -5452,4 +5627,4 @@ type PluginPackageContentItemReport = z.infer<typeof pluginPackageContentItemRep
|
|
|
5452
5627
|
type PluginPackageContentReport = z.infer<typeof pluginPackageContentReportSchema>;
|
|
5453
5628
|
type PluginOperationalReport = z.infer<typeof pluginOperationalReportSchema>;
|
|
5454
5629
|
type PluginOperationalReportFeed = z.infer<typeof pluginOperationalReportFeedSchema>;
|
|
5455
|
-
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
1
|
import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-C84mlAwO.js";
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
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. */
|