@sentry/junior 0.234.0 → 0.236.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/{agent-hooks-BcH6E48y.js → agent-hooks-Da_H0jHv.js} +17 -10
- package/dist/{agent-runner-DUkGlK89.js → agent-runner-uP7QRc4c.js} +484 -162
- package/dist/api/schema.d.ts +288 -2
- package/dist/api/schema.js +5 -4
- package/dist/api.d.ts +8 -2
- package/dist/api.js +524 -83
- package/dist/{app-xk2-Id1T.d.ts → app-MEd7wbF0.d.ts} +83 -49
- package/dist/app.d.ts +3 -3
- package/dist/app.js +164 -119
- package/dist/{types-Du-HbEun.js → automation-B9Kc1gcf.js} +304 -33
- package/dist/{briefs-lyAQbDxJ.js → briefs-DrjBPQFy.js} +4 -4
- package/dist/{catalog-runtime-BSgsPVnr.js → catalog-runtime-C7339Cfm.js} +1 -1
- package/dist/{checkpoint-BNfXlq_1.js → checkpoint-DaD7_Gsb.js} +16 -9
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +4 -4
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.d.ts +1 -1
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +5 -5
- package/dist/{client-BX5lJRqW.js → client-Ch9Hg9NU.js} +2 -2
- package/dist/{config-DuCzUoCo.js → config-JR9wke1W.js} +57 -17
- package/dist/{conversation-CPjHYOV5.js → conversation-9Fxa1Zbq.js} +14 -1
- package/dist/{conversation-privacy-CSxvdSoV.js → conversation-privacy-au02dyZK.js} +1 -1
- package/dist/{credential-sync-BO4DfH9a.js → credential-sync-BWTA3LnL.js} +14 -14
- package/dist/{executor--jWf-Nnm.js → executor-BW9XWgUQ.js} +70 -6
- package/dist/{images-BaL19wFC.js → images-BdG7zcNf.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-cwHVOwVZ.js → job-queue-BqXd0ZPV.js} +1 -1
- package/dist/{logging-Cox1Mgcv.js → logging-B4sKwmCG.js} +1 -1
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +5 -5
- package/dist/{oauth-authorization-CC8a1JKP.js → oauth-authorization-BjRN99dc.js} +1 -1
- package/dist/{oauth-callback-server-Z7QSt416.js → oauth-callback-server-B_1p98Mb.js} +2 -2
- package/dist/{pending-auth-DQhC3eSR.js → pending-auth-WqF4Gh8Z.js} +1 -1
- package/dist/{plugins-BT2l4We3.d.ts → plugins-CjfUP5gJ.d.ts} +1 -0
- package/dist/{profile-BdApelHS.js → profile-BamYnmhO.js} +4 -4
- package/dist/{prompt-3D0sSbTC.js → prompt-Ctwy6hSI.js} +1 -1
- package/dist/queue-B5SnqRln.d.ts +25 -0
- package/dist/{registry-DiY6B8CN.js → registry-CXNv9fDX.js} +38 -2
- package/dist/{resolve-VpJoiDpc.js → resolve-C9ETkt4T.js} +2 -2
- package/dist/{runner-BIMegnPE.js → runner-DnBGVRnW.js} +9 -9
- package/dist/{sandbox-egress-signals-Cbtxe492.js → sandbox-egress-signals-DwJ7Boi_.js} +1 -1
- package/dist/{schema-CxwnlTDN.js → schema-CJiqDc5r.js} +26 -3
- package/dist/{skills-WttpPJUy.js → skills-Dd8O9Aav.js} +3 -3
- package/dist/{spawn-DhfMKt4y.js → spawn-DFdRspSD.js} +2 -2
- package/dist/{task-queue-CZqUNJD0.js → task-queue-DGQEOk1A.js} +16 -10
- package/dist/{task-runner-BZaqoUCT.js → task-runner-C5XCIDSF.js} +9 -9
- package/dist/{thread-state-8tXZhu0y.js → thread-state-D3E29wZk.js} +5 -5
- package/dist/{turn-failure-response-DFJ9L9NQ.js → turn-failure-response-TDoj0aZz.js} +8 -8
- package/dist/{turn-lifecycle-WbpTUQ_r.js → turn-lifecycle-DOnU45p7.js} +1 -1
- package/dist/{turn-session-routing--EhI76rH.js → turn-session-routing-DbpZZoin.js} +1 -1
- package/dist/{validation-0F9IgG3b.js → validation-B9lMbisx.js} +1 -1
- package/dist/{version-A7-RRBOE.js → version-CWkIGcLU.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-BJggXofy.js → web-authorization-PPaoj2ns.js} +6 -6
- package/dist/{web-input-B-siN5Dr.js → web-input-CfNxXtHm.js} +86 -34
- package/dist/web-message-id-xPI_EFSC.js +239 -0
- package/dist/{work-CNc0ejGG.js → work-DNaoFrEe.js} +7 -7
- package/dist/{worker-BHbqpUAu.js → worker-xeJLxYwm.js} +5 -5
- package/migrations/0045_conversation_forks.sql +3 -0
- package/migrations/0046_automation_versions.sql +71 -0
- package/migrations/meta/0045_snapshot.json +3503 -0
- package/migrations/meta/0046_snapshot.json +3707 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +5 -5
- package/dist/web-message-id-CVVCTWUb.js +0 -464
- package/dist/{package-discovery-7a9YqLhE.js → package-discovery-BVvSnQBB.js} +1 -1
- package/dist/{plugin-module-BKGOXca2.js → plugin-module-CVvEUSMH.js} +1 -1
package/dist/api/schema.d.ts
CHANGED
|
@@ -131,6 +131,69 @@ export declare const codeOverviewReportSchema: z.ZodObject<{
|
|
|
131
131
|
windowEnd: z.ZodString;
|
|
132
132
|
windowStart: z.ZodString;
|
|
133
133
|
}, z.core.$strict>;
|
|
134
|
+
export declare const codeRepositoryParamsSchema: z.ZodObject<{
|
|
135
|
+
repositoryId: z.ZodString;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
/** Code activity, recent changes, and Workspaces for one repository. */
|
|
138
|
+
export declare const codeRepositoryReportSchema: z.ZodObject<{
|
|
139
|
+
activityDays: z.ZodArray<z.ZodObject<{
|
|
140
|
+
closed: z.ZodNumber;
|
|
141
|
+
created: z.ZodNumber;
|
|
142
|
+
date: z.ZodString;
|
|
143
|
+
merged: z.ZodNumber;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
+
closed: z.ZodNumber;
|
|
147
|
+
created: z.ZodNumber;
|
|
148
|
+
date: z.ZodString;
|
|
149
|
+
merged: z.ZodNumber;
|
|
150
|
+
}, z.core.$strict>>>;
|
|
151
|
+
activitySixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
+
closed: z.ZodNumber;
|
|
153
|
+
created: z.ZodNumber;
|
|
154
|
+
date: z.ZodString;
|
|
155
|
+
merged: z.ZodNumber;
|
|
156
|
+
}, z.core.$strict>>>;
|
|
157
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
158
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
mergedAt: z.ZodOptional<z.ZodString>;
|
|
161
|
+
number: z.ZodNumber;
|
|
162
|
+
openedAt: z.ZodString;
|
|
163
|
+
provider: z.ZodString;
|
|
164
|
+
repository: z.ZodString;
|
|
165
|
+
state: z.ZodEnum<{
|
|
166
|
+
closed: "closed";
|
|
167
|
+
merged: "merged";
|
|
168
|
+
open: "open";
|
|
169
|
+
}>;
|
|
170
|
+
title: z.ZodOptional<z.ZodString>;
|
|
171
|
+
url: z.ZodOptional<z.ZodString>;
|
|
172
|
+
}, z.core.$strict>>;
|
|
173
|
+
generatedAt: z.ZodString;
|
|
174
|
+
repository: z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
name: z.ZodString;
|
|
177
|
+
provider: z.ZodString;
|
|
178
|
+
url: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
summary: z.ZodObject<{
|
|
181
|
+
closed: z.ZodNumber;
|
|
182
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
created: z.ZodNumber;
|
|
184
|
+
medianCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
merged: z.ZodNumber;
|
|
187
|
+
mergeRate: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
open: z.ZodNumber;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
windowEnd: z.ZodString;
|
|
191
|
+
windowStart: z.ZodString;
|
|
192
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
name: z.ZodString;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
}, z.core.$strict>;
|
|
134
197
|
/** Person-scoped code activity for one People profile. */
|
|
135
198
|
export declare const codePersonReportSchema: z.ZodObject<{
|
|
136
199
|
activityDays: z.ZodArray<z.ZodObject<{
|
|
@@ -169,6 +232,7 @@ type CodeActivityDay = z.infer<typeof codeActivityDaySchema>;
|
|
|
169
232
|
type CodeChangeSummaryReport = z.infer<typeof codeChangeSummaryReportSchema>;
|
|
170
233
|
type CodeOverviewReport = z.infer<typeof codeOverviewReportSchema>;
|
|
171
234
|
type CodePersonReport = z.infer<typeof codePersonReportSchema>;
|
|
235
|
+
type CodeRepositoryReport = z.infer<typeof codeRepositoryReportSchema>;
|
|
172
236
|
type CodeRepositorySummary = z.infer<typeof codeRepositorySummarySchema>;
|
|
173
237
|
//#endregion
|
|
174
238
|
//#region src/api/schema/conversation.d.ts
|
|
@@ -217,6 +281,7 @@ export declare const conversationEventsQuerySchema: z.ZodObject<{
|
|
|
217
281
|
}, z.core.$strict>;
|
|
218
282
|
export declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
219
283
|
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
284
|
+
codeRepositoryId: z.ZodOptional<z.ZodString>;
|
|
220
285
|
q: z.ZodOptional<z.ZodString>;
|
|
221
286
|
status: z.ZodDefault<z.ZodEnum<{
|
|
222
287
|
active: "active";
|
|
@@ -1094,6 +1159,13 @@ declare const conversationModelUsageSchema: z.ZodObject<{
|
|
|
1094
1159
|
}, z.core.$strict>>;
|
|
1095
1160
|
}, z.core.$strict>;
|
|
1096
1161
|
}, z.core.$strict>;
|
|
1162
|
+
export declare const forkConversationBodySchema: z.ZodObject<{
|
|
1163
|
+
messageId: z.ZodString;
|
|
1164
|
+
idempotencyKey: z.ZodString;
|
|
1165
|
+
}, z.core.$strict>;
|
|
1166
|
+
export declare const forkConversationResponseSchema: z.ZodObject<{
|
|
1167
|
+
conversationId: z.ZodString;
|
|
1168
|
+
}, z.core.$strict>;
|
|
1097
1169
|
export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
1098
1170
|
displayTitle: z.ZodString;
|
|
1099
1171
|
activityPreview: z.ZodOptional<z.ZodObject<{
|
|
@@ -1272,6 +1344,10 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1272
1344
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
1273
1345
|
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
1274
1346
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1347
|
+
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
1348
|
+
forkedFromConversationId: z.ZodOptional<z.ZodString>;
|
|
1349
|
+
forkedFromTitle: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
forks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1275
1351
|
brief: z.ZodOptional<z.ZodObject<{
|
|
1276
1352
|
content: z.ZodObject<{
|
|
1277
1353
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -3829,6 +3905,210 @@ export declare const automationRunListSchema: z.ZodObject<{
|
|
|
3829
3905
|
}, z.core.$strict>>;
|
|
3830
3906
|
truncated: z.ZodBoolean;
|
|
3831
3907
|
}, z.core.$strict>;
|
|
3908
|
+
/** One saved Automation definition. Newer versions have larger numbers. */
|
|
3909
|
+
export declare const automationVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3910
|
+
kind: z.ZodLiteral<"scheduled">;
|
|
3911
|
+
definition: z.ZodObject<{
|
|
3912
|
+
destination: z.ZodObject<{
|
|
3913
|
+
teamId: z.ZodString;
|
|
3914
|
+
channelId: z.ZodString;
|
|
3915
|
+
platform: z.ZodLiteral<"slack">;
|
|
3916
|
+
}, z.core.$strict>;
|
|
3917
|
+
credentialMode: z.ZodEnum<{
|
|
3918
|
+
system: "system";
|
|
3919
|
+
creator: "creator";
|
|
3920
|
+
}>;
|
|
3921
|
+
outcomes: z.ZodArray<z.ZodObject<{
|
|
3922
|
+
action: z.ZodLiteral<"send_message">;
|
|
3923
|
+
destination: z.ZodObject<{
|
|
3924
|
+
teamId: z.ZodString;
|
|
3925
|
+
channelId: z.ZodString;
|
|
3926
|
+
platform: z.ZodLiteral<"slack">;
|
|
3927
|
+
}, z.core.$strict>;
|
|
3928
|
+
}, z.core.$strict>>;
|
|
3929
|
+
schedule: z.ZodObject<{
|
|
3930
|
+
description: z.ZodString;
|
|
3931
|
+
kind: z.ZodEnum<{
|
|
3932
|
+
one_off: "one_off";
|
|
3933
|
+
recurring: "recurring";
|
|
3934
|
+
}>;
|
|
3935
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
3936
|
+
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
3937
|
+
frequency: z.ZodEnum<{
|
|
3938
|
+
daily: "daily";
|
|
3939
|
+
weekly: "weekly";
|
|
3940
|
+
monthly: "monthly";
|
|
3941
|
+
yearly: "yearly";
|
|
3942
|
+
}>;
|
|
3943
|
+
interval: z.ZodNumber;
|
|
3944
|
+
month: z.ZodOptional<z.ZodNumber>;
|
|
3945
|
+
startDate: z.ZodString;
|
|
3946
|
+
time: z.ZodObject<{
|
|
3947
|
+
hour: z.ZodNumber;
|
|
3948
|
+
minute: z.ZodNumber;
|
|
3949
|
+
}, z.core.$strict>;
|
|
3950
|
+
weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3951
|
+
}, z.core.$strict>>;
|
|
3952
|
+
timezone: z.ZodString;
|
|
3953
|
+
}, z.core.$strict>;
|
|
3954
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3955
|
+
instruction: z.ZodString;
|
|
3956
|
+
}, z.core.$strict>;
|
|
3957
|
+
version: z.ZodNumber;
|
|
3958
|
+
createdAt: z.ZodString;
|
|
3959
|
+
editedBy: z.ZodNullable<z.ZodObject<{
|
|
3960
|
+
slackUserId: z.ZodString;
|
|
3961
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3962
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
3963
|
+
}, z.core.$strict>>;
|
|
3964
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3965
|
+
kind: z.ZodLiteral<"event">;
|
|
3966
|
+
definition: z.ZodObject<{
|
|
3967
|
+
destination: z.ZodObject<{
|
|
3968
|
+
teamId: z.ZodString;
|
|
3969
|
+
channelId: z.ZodString;
|
|
3970
|
+
platform: z.ZodLiteral<"slack">;
|
|
3971
|
+
}, z.core.$strict>;
|
|
3972
|
+
trigger: z.ZodObject<{
|
|
3973
|
+
events: z.ZodArray<z.ZodString>;
|
|
3974
|
+
label: z.ZodString;
|
|
3975
|
+
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]>>]>>>;
|
|
3976
|
+
namespace: z.ZodString;
|
|
3977
|
+
identifier: z.ZodString;
|
|
3978
|
+
resourceType: z.ZodString;
|
|
3979
|
+
}, z.core.$strict>;
|
|
3980
|
+
credentialMode: z.ZodEnum<{
|
|
3981
|
+
system: "system";
|
|
3982
|
+
creator: "creator";
|
|
3983
|
+
}>;
|
|
3984
|
+
outcomes: z.ZodArray<z.ZodObject<{
|
|
3985
|
+
action: z.ZodLiteral<"send_message">;
|
|
3986
|
+
destination: z.ZodObject<{
|
|
3987
|
+
teamId: z.ZodString;
|
|
3988
|
+
channelId: z.ZodString;
|
|
3989
|
+
platform: z.ZodLiteral<"slack">;
|
|
3990
|
+
}, z.core.$strict>;
|
|
3991
|
+
}, z.core.$strict>>;
|
|
3992
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3993
|
+
instruction: z.ZodString;
|
|
3994
|
+
}, z.core.$strict>;
|
|
3995
|
+
version: z.ZodNumber;
|
|
3996
|
+
createdAt: z.ZodString;
|
|
3997
|
+
editedBy: z.ZodNullable<z.ZodObject<{
|
|
3998
|
+
slackUserId: z.ZodString;
|
|
3999
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
4000
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
4001
|
+
}, z.core.$strict>>;
|
|
4002
|
+
}, z.core.$strict>], "kind">;
|
|
4003
|
+
/** Newest versions first. */
|
|
4004
|
+
export declare const automationVersionListSchema: z.ZodObject<{
|
|
4005
|
+
versions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4006
|
+
kind: z.ZodLiteral<"scheduled">;
|
|
4007
|
+
definition: z.ZodObject<{
|
|
4008
|
+
destination: z.ZodObject<{
|
|
4009
|
+
teamId: z.ZodString;
|
|
4010
|
+
channelId: z.ZodString;
|
|
4011
|
+
platform: z.ZodLiteral<"slack">;
|
|
4012
|
+
}, z.core.$strict>;
|
|
4013
|
+
credentialMode: z.ZodEnum<{
|
|
4014
|
+
system: "system";
|
|
4015
|
+
creator: "creator";
|
|
4016
|
+
}>;
|
|
4017
|
+
outcomes: z.ZodArray<z.ZodObject<{
|
|
4018
|
+
action: z.ZodLiteral<"send_message">;
|
|
4019
|
+
destination: z.ZodObject<{
|
|
4020
|
+
teamId: z.ZodString;
|
|
4021
|
+
channelId: z.ZodString;
|
|
4022
|
+
platform: z.ZodLiteral<"slack">;
|
|
4023
|
+
}, z.core.$strict>;
|
|
4024
|
+
}, z.core.$strict>>;
|
|
4025
|
+
schedule: z.ZodObject<{
|
|
4026
|
+
description: z.ZodString;
|
|
4027
|
+
kind: z.ZodEnum<{
|
|
4028
|
+
one_off: "one_off";
|
|
4029
|
+
recurring: "recurring";
|
|
4030
|
+
}>;
|
|
4031
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
4032
|
+
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
4033
|
+
frequency: z.ZodEnum<{
|
|
4034
|
+
daily: "daily";
|
|
4035
|
+
weekly: "weekly";
|
|
4036
|
+
monthly: "monthly";
|
|
4037
|
+
yearly: "yearly";
|
|
4038
|
+
}>;
|
|
4039
|
+
interval: z.ZodNumber;
|
|
4040
|
+
month: z.ZodOptional<z.ZodNumber>;
|
|
4041
|
+
startDate: z.ZodString;
|
|
4042
|
+
time: z.ZodObject<{
|
|
4043
|
+
hour: z.ZodNumber;
|
|
4044
|
+
minute: z.ZodNumber;
|
|
4045
|
+
}, z.core.$strict>;
|
|
4046
|
+
weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4047
|
+
}, z.core.$strict>>;
|
|
4048
|
+
timezone: z.ZodString;
|
|
4049
|
+
}, z.core.$strict>;
|
|
4050
|
+
title: z.ZodNullable<z.ZodString>;
|
|
4051
|
+
instruction: z.ZodString;
|
|
4052
|
+
}, z.core.$strict>;
|
|
4053
|
+
version: z.ZodNumber;
|
|
4054
|
+
createdAt: z.ZodString;
|
|
4055
|
+
editedBy: z.ZodNullable<z.ZodObject<{
|
|
4056
|
+
slackUserId: z.ZodString;
|
|
4057
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
4058
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
4059
|
+
}, z.core.$strict>>;
|
|
4060
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4061
|
+
kind: z.ZodLiteral<"event">;
|
|
4062
|
+
definition: z.ZodObject<{
|
|
4063
|
+
destination: z.ZodObject<{
|
|
4064
|
+
teamId: z.ZodString;
|
|
4065
|
+
channelId: z.ZodString;
|
|
4066
|
+
platform: z.ZodLiteral<"slack">;
|
|
4067
|
+
}, z.core.$strict>;
|
|
4068
|
+
trigger: z.ZodObject<{
|
|
4069
|
+
events: z.ZodArray<z.ZodString>;
|
|
4070
|
+
label: z.ZodString;
|
|
4071
|
+
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]>>]>>>;
|
|
4072
|
+
namespace: z.ZodString;
|
|
4073
|
+
identifier: z.ZodString;
|
|
4074
|
+
resourceType: z.ZodString;
|
|
4075
|
+
}, z.core.$strict>;
|
|
4076
|
+
credentialMode: z.ZodEnum<{
|
|
4077
|
+
system: "system";
|
|
4078
|
+
creator: "creator";
|
|
4079
|
+
}>;
|
|
4080
|
+
outcomes: z.ZodArray<z.ZodObject<{
|
|
4081
|
+
action: z.ZodLiteral<"send_message">;
|
|
4082
|
+
destination: z.ZodObject<{
|
|
4083
|
+
teamId: z.ZodString;
|
|
4084
|
+
channelId: z.ZodString;
|
|
4085
|
+
platform: z.ZodLiteral<"slack">;
|
|
4086
|
+
}, z.core.$strict>;
|
|
4087
|
+
}, z.core.$strict>>;
|
|
4088
|
+
title: z.ZodNullable<z.ZodString>;
|
|
4089
|
+
instruction: z.ZodString;
|
|
4090
|
+
}, z.core.$strict>;
|
|
4091
|
+
version: z.ZodNumber;
|
|
4092
|
+
createdAt: z.ZodString;
|
|
4093
|
+
editedBy: z.ZodNullable<z.ZodObject<{
|
|
4094
|
+
slackUserId: z.ZodString;
|
|
4095
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
4096
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
4097
|
+
}, z.core.$strict>>;
|
|
4098
|
+
}, z.core.$strict>], "kind">>;
|
|
4099
|
+
activeVersion: z.ZodNullable<z.ZodNumber>;
|
|
4100
|
+
truncated: z.ZodBoolean;
|
|
4101
|
+
}, z.core.$strict>;
|
|
4102
|
+
export declare const automationVersionParamsSchema: z.ZodObject<{
|
|
4103
|
+
id: z.ZodString;
|
|
4104
|
+
kind: z.ZodEnum<{
|
|
4105
|
+
event: "event";
|
|
4106
|
+
scheduled: "scheduled";
|
|
4107
|
+
}>;
|
|
4108
|
+
version: z.ZodCoercedNumber<unknown>;
|
|
4109
|
+
}, z.core.$strict>;
|
|
4110
|
+
type AutomationVersion = z.output<typeof automationVersionSchema>;
|
|
4111
|
+
type AutomationVersionList = z.output<typeof automationVersionListSchema>;
|
|
3832
4112
|
type AutomationExecutionDay = z.output<typeof automationExecutionDaySchema>;
|
|
3833
4113
|
type AutomationExecutionStatusDay = z.output<typeof automationExecutionStatusDaySchema>;
|
|
3834
4114
|
type AutomationExecution = z.output<typeof automationExecutionSchema>;
|
|
@@ -3839,7 +4119,11 @@ type AutomationRunWindows = z.output<typeof automationRunWindowsSchema>;
|
|
|
3839
4119
|
type AutomationSummary = z.output<typeof automationSummarySchema>;
|
|
3840
4120
|
type AutomationList = z.output<typeof automationListSchema>;
|
|
3841
4121
|
type AutomationListQuery = z.output<typeof automationListQuerySchema>;
|
|
3842
|
-
/**
|
|
4122
|
+
/** Make a saved version active. The revision is the edit read revision. */
|
|
4123
|
+
export declare const automationVersionActivateSchema: z.ZodObject<{
|
|
4124
|
+
revision: z.ZodString;
|
|
4125
|
+
}, z.core.$strict>;
|
|
4126
|
+
/** Edit values for owners and public readers. Read schemas also retain legacy values. */
|
|
3843
4127
|
export declare const automationEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3844
4128
|
destination: z.ZodObject<{
|
|
3845
4129
|
teamId: z.ZodString;
|
|
@@ -3868,6 +4152,7 @@ export declare const automationEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
3868
4152
|
threadTs: z.ZodOptional<z.ZodString>;
|
|
3869
4153
|
}, z.core.$strict>;
|
|
3870
4154
|
}, z.core.$strict>>;
|
|
4155
|
+
ownedByViewer: z.ZodBoolean;
|
|
3871
4156
|
schedule: z.ZodObject<{
|
|
3872
4157
|
description: z.ZodString;
|
|
3873
4158
|
kind: z.ZodEnum<{
|
|
@@ -3929,6 +4214,7 @@ export declare const automationEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
3929
4214
|
threadTs: z.ZodOptional<z.ZodString>;
|
|
3930
4215
|
}, z.core.$strict>;
|
|
3931
4216
|
}, z.core.$strict>>;
|
|
4217
|
+
ownedByViewer: z.ZodBoolean;
|
|
3932
4218
|
kind: z.ZodLiteral<"event">;
|
|
3933
4219
|
trigger: z.ZodObject<{
|
|
3934
4220
|
events: z.ZodArray<z.ZodString>;
|
|
@@ -4362,4 +4648,4 @@ type PluginPackageContentReport = z.infer<typeof pluginPackageContentReportSchem
|
|
|
4362
4648
|
type PluginOperationalReport = z.infer<typeof pluginOperationalReportSchema>;
|
|
4363
4649
|
type PluginOperationalReportFeed = z.infer<typeof pluginOperationalReportFeedSchema>;
|
|
4364
4650
|
//#endregion
|
|
4365
|
-
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 BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAuxiliaryCosts, 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 ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, type InputImage, 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 WorkspaceReport, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, messageCardText, resolveMessageCards };
|
|
4651
|
+
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 AutomationVersion, type AutomationVersionList, type BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAuxiliaryCosts, 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 ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, type InputImage, 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 WorkspaceReport, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, messageCardText, resolveMessageCards };
|
package/dist/api/schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { A as forkConversationResponseSchema, C as conversationReportEventSchema, D as createConversationBodySchema, E as conversationSummaryReportSchema, K as resolveMessageCards, M as MAX_INPUT_IMAGE_BYTES, O as createConversationMessageBodySchema, P as INPUT_IMAGE_TYPES, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, U as messageCardText, X as conversationTurnFailureCodeSchema, Z as conversationTurnFailureReasonSchema, _ 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 MAX_INPUT_IMAGES, k as forkConversationBodySchema, 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-9Fxa1Zbq.js";
|
|
2
|
+
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-B9Kc1gcf.js";
|
|
3
|
+
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-xPI_EFSC.js";
|
|
4
|
+
import { A as codeChangeSummarySchema, C as locationParamsSchema, D as dailyConversationActivitySchema, F as codeRepositorySummarySchema, I as apiErrorSchema, M as codePersonReportSchema, N as codeRepositoryParamsSchema, O as codeActivityDaySchema, P as codeRepositoryReportSchema, S as locationDirectoryReportSchema, _ as actorProfileReportSchema, a as workspaceBodySchema, b as locationActivityDayReportSchema, c as workspaceRepoSchema, d as createdPersonalTokenSchema, f as personalTokenListSchema, g as actorDirectoryReportSchema, h as revokePersonalTokenResponseSchema, i as deleteWorkspaceResponseSchema, j as codeOverviewReportSchema, k as codeChangeSummaryReportSchema, l as workspaceSchema, m as personalTokenParamsSchema, n as statsReportSchema, o as workspaceListSchema, p as personalTokenMetadataSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as createPersonalTokenBodySchema, v as personParamsSchema, x as locationDetailReportSchema, y as personalSpendReportSchema } from "../schema-CJiqDc5r.js";
|
|
5
|
+
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, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, skillReportSchema, skillReportsSchema, statSchema, statsReportSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as ConversationWorkQueue } from "./queue-B5SnqRln.js";
|
|
1
2
|
import "./db-Ca9Nt5ci.js";
|
|
2
3
|
import { Hono } from "hono";
|
|
3
4
|
import { z } from "zod";
|
|
@@ -28,7 +29,12 @@ export declare function resolveViewerUser(email: string): Promise<User | undefin
|
|
|
28
29
|
export declare function updateViewerDisplayName(userId: string, displayName: string): Promise<User | undefined>;
|
|
29
30
|
//#endregion
|
|
30
31
|
//#region src/api.d.ts
|
|
32
|
+
/** Options that `createApp()` passes through the dashboard. */
|
|
33
|
+
export interface JuniorApiOptions {
|
|
34
|
+
/** Queue for accepted web input. Defaults to Vercel Queues. */
|
|
35
|
+
conversationWorkQueue?: ConversationWorkQueue;
|
|
36
|
+
}
|
|
31
37
|
/** Create Junior's production REST API for authenticated dashboard consumers. */
|
|
32
|
-
export declare function createJuniorApi(): Hono<JuniorApiEnv>;
|
|
38
|
+
export declare function createJuniorApi(options?: JuniorApiOptions): Hono<JuniorApiEnv>;
|
|
33
39
|
//#endregion
|
|
34
|
-
export type { JuniorApiVariables };
|
|
40
|
+
export type { ConversationWorkQueue, JuniorApiVariables };
|