@rudderhq/shared 0.3.6-canary.2 → 0.3.6-canary.21
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-run.d.ts +4 -0
- package/dist/agent-run.d.ts.map +1 -0
- package/dist/agent-run.js +90 -0
- package/dist/agent-run.js.map +1 -0
- package/dist/agent-run.test.d.ts +2 -0
- package/dist/agent-run.test.d.ts.map +1 -0
- package/dist/agent-run.test.js +111 -0
- package/dist/agent-run.test.js.map +1 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -0
- package/dist/api.js.map +1 -1
- package/dist/config-schema.d.ts +37 -37
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +16 -0
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/project-mentions.d.ts +8 -0
- package/dist/project-mentions.d.ts.map +1 -1
- package/dist/project-mentions.js +41 -0
- package/dist/project-mentions.js.map +1 -1
- package/dist/project-mentions.test.js +12 -1
- package/dist/project-mentions.test.js.map +1 -1
- package/dist/short-refs.d.ts +10 -0
- package/dist/short-refs.d.ts.map +1 -0
- package/dist/short-refs.js +34 -0
- package/dist/short-refs.js.map +1 -0
- package/dist/short-refs.test.d.ts +2 -0
- package/dist/short-refs.test.d.ts.map +1 -0
- package/dist/short-refs.test.js +23 -0
- package/dist/short-refs.test.js.map +1 -0
- package/dist/types/agent-integration.d.ts +9 -0
- package/dist/types/agent-integration.d.ts.map +1 -1
- package/dist/types/agent.d.ts +3 -0
- package/dist/types/agent.d.ts.map +1 -1
- package/dist/types/chat.d.ts +53 -1
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/heartbeat.d.ts +24 -1
- package/dist/types/heartbeat.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/issue.d.ts +1 -0
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/messenger.d.ts +1 -0
- package/dist/types/messenger.d.ts.map +1 -1
- package/dist/validators/adapter-skills.d.ts +2 -2
- package/dist/validators/agent-integration.d.ts +60 -3
- package/dist/validators/agent-integration.d.ts.map +1 -1
- package/dist/validators/agent-integration.js +7 -0
- package/dist/validators/agent-integration.js.map +1 -1
- package/dist/validators/agent.d.ts +4 -4
- package/dist/validators/automation.d.ts +9 -9
- package/dist/validators/calendar.d.ts +20 -20
- package/dist/validators/chat.d.ts +227 -46
- package/dist/validators/chat.d.ts.map +1 -1
- package/dist/validators/chat.js +30 -0
- package/dist/validators/chat.js.map +1 -1
- package/dist/validators/cost.d.ts +8 -8
- package/dist/validators/finance.d.ts +12 -12
- package/dist/validators/index.d.ts +2 -2
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +2 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +2 -2
- package/dist/validators/organization-portability.d.ts +76 -76
- package/dist/validators/organization-skill.d.ts +74 -74
- package/dist/validators/plugin.d.ts +60 -60
- package/dist/validators/secret.d.ts +14 -14
- package/dist/validators/work-product.d.ts +4 -4
- package/package.json +1 -1
|
@@ -18,19 +18,19 @@ export declare const createAgentIntegrationSchema: z.ZodObject<{
|
|
|
18
18
|
installerUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
manageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
|
|
21
|
+
appCredentialSecretId: string;
|
|
22
22
|
agentId: string;
|
|
23
|
+
provider: "feishu";
|
|
23
24
|
transport: "long_connection" | "webhook";
|
|
24
25
|
providerRegion: "feishu_cn" | "lark_global";
|
|
25
|
-
appCredentialSecretId: string;
|
|
26
26
|
externalAppId: string;
|
|
27
27
|
externalBotOpenId?: string | null | undefined;
|
|
28
28
|
externalTenantKey?: string | null | undefined;
|
|
29
29
|
installerUserId?: string | null | undefined;
|
|
30
30
|
manageUrl?: string | null | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
agentId: string;
|
|
33
32
|
appCredentialSecretId: string;
|
|
33
|
+
agentId: string;
|
|
34
34
|
externalAppId: string;
|
|
35
35
|
provider?: "feishu" | undefined;
|
|
36
36
|
transport?: "long_connection" | "webhook" | undefined;
|
|
@@ -41,7 +41,45 @@ export declare const createAgentIntegrationSchema: z.ZodObject<{
|
|
|
41
41
|
manageUrl?: string | null | undefined;
|
|
42
42
|
}>;
|
|
43
43
|
export type CreateAgentIntegration = z.infer<typeof createAgentIntegrationSchema>;
|
|
44
|
+
export declare const connectAgentIntegrationSchema: z.ZodObject<Omit<{
|
|
45
|
+
agentId: z.ZodString;
|
|
46
|
+
provider: z.ZodDefault<z.ZodEnum<["feishu"]>>;
|
|
47
|
+
transport: z.ZodDefault<z.ZodEnum<["long_connection", "webhook"]>>;
|
|
48
|
+
providerRegion: z.ZodDefault<z.ZodEnum<["feishu_cn", "lark_global"]>>;
|
|
49
|
+
appCredentialSecretId: z.ZodString;
|
|
50
|
+
externalAppId: z.ZodString;
|
|
51
|
+
externalBotOpenId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
externalTenantKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
installerUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
manageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
}, "agentId">, "strip", z.ZodTypeAny, {
|
|
56
|
+
appCredentialSecretId: string;
|
|
57
|
+
provider: "feishu";
|
|
58
|
+
transport: "long_connection" | "webhook";
|
|
59
|
+
providerRegion: "feishu_cn" | "lark_global";
|
|
60
|
+
externalAppId: string;
|
|
61
|
+
externalBotOpenId?: string | null | undefined;
|
|
62
|
+
externalTenantKey?: string | null | undefined;
|
|
63
|
+
installerUserId?: string | null | undefined;
|
|
64
|
+
manageUrl?: string | null | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
appCredentialSecretId: string;
|
|
67
|
+
externalAppId: string;
|
|
68
|
+
provider?: "feishu" | undefined;
|
|
69
|
+
transport?: "long_connection" | "webhook" | undefined;
|
|
70
|
+
providerRegion?: "feishu_cn" | "lark_global" | undefined;
|
|
71
|
+
externalBotOpenId?: string | null | undefined;
|
|
72
|
+
externalTenantKey?: string | null | undefined;
|
|
73
|
+
installerUserId?: string | null | undefined;
|
|
74
|
+
manageUrl?: string | null | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
export type ConnectAgentIntegration = z.infer<typeof connectAgentIntegrationSchema>;
|
|
44
77
|
export declare const mockFeishuInboundEventSchema: z.ZodObject<{
|
|
78
|
+
type: z.ZodOptional<z.ZodString>;
|
|
79
|
+
token: z.ZodOptional<z.ZodString>;
|
|
80
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
81
|
+
mockVerificationToken: z.ZodOptional<z.ZodString>;
|
|
82
|
+
mockEncryptKey: z.ZodOptional<z.ZodString>;
|
|
45
83
|
eventId: z.ZodOptional<z.ZodString>;
|
|
46
84
|
appId: z.ZodOptional<z.ZodString>;
|
|
47
85
|
botOpenId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -59,14 +97,17 @@ export declare const mockFeishuInboundEventSchema: z.ZodObject<{
|
|
|
59
97
|
header: z.ZodOptional<z.ZodObject<{
|
|
60
98
|
event_id: z.ZodOptional<z.ZodString>;
|
|
61
99
|
app_id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
token: z.ZodOptional<z.ZodString>;
|
|
62
101
|
create_time: z.ZodOptional<z.ZodString>;
|
|
63
102
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
64
103
|
event_id: z.ZodOptional<z.ZodString>;
|
|
65
104
|
app_id: z.ZodOptional<z.ZodString>;
|
|
105
|
+
token: z.ZodOptional<z.ZodString>;
|
|
66
106
|
create_time: z.ZodOptional<z.ZodString>;
|
|
67
107
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
68
108
|
event_id: z.ZodOptional<z.ZodString>;
|
|
69
109
|
app_id: z.ZodOptional<z.ZodString>;
|
|
110
|
+
token: z.ZodOptional<z.ZodString>;
|
|
70
111
|
create_time: z.ZodOptional<z.ZodString>;
|
|
71
112
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
72
113
|
event: z.ZodOptional<z.ZodObject<{
|
|
@@ -575,6 +616,11 @@ export declare const mockFeishuInboundEventSchema: z.ZodObject<{
|
|
|
575
616
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
576
617
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
577
618
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
619
|
+
type: z.ZodOptional<z.ZodString>;
|
|
620
|
+
token: z.ZodOptional<z.ZodString>;
|
|
621
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
622
|
+
mockVerificationToken: z.ZodOptional<z.ZodString>;
|
|
623
|
+
mockEncryptKey: z.ZodOptional<z.ZodString>;
|
|
578
624
|
eventId: z.ZodOptional<z.ZodString>;
|
|
579
625
|
appId: z.ZodOptional<z.ZodString>;
|
|
580
626
|
botOpenId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -592,14 +638,17 @@ export declare const mockFeishuInboundEventSchema: z.ZodObject<{
|
|
|
592
638
|
header: z.ZodOptional<z.ZodObject<{
|
|
593
639
|
event_id: z.ZodOptional<z.ZodString>;
|
|
594
640
|
app_id: z.ZodOptional<z.ZodString>;
|
|
641
|
+
token: z.ZodOptional<z.ZodString>;
|
|
595
642
|
create_time: z.ZodOptional<z.ZodString>;
|
|
596
643
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
597
644
|
event_id: z.ZodOptional<z.ZodString>;
|
|
598
645
|
app_id: z.ZodOptional<z.ZodString>;
|
|
646
|
+
token: z.ZodOptional<z.ZodString>;
|
|
599
647
|
create_time: z.ZodOptional<z.ZodString>;
|
|
600
648
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
601
649
|
event_id: z.ZodOptional<z.ZodString>;
|
|
602
650
|
app_id: z.ZodOptional<z.ZodString>;
|
|
651
|
+
token: z.ZodOptional<z.ZodString>;
|
|
603
652
|
create_time: z.ZodOptional<z.ZodString>;
|
|
604
653
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
605
654
|
event: z.ZodOptional<z.ZodObject<{
|
|
@@ -1108,6 +1157,11 @@ export declare const mockFeishuInboundEventSchema: z.ZodObject<{
|
|
|
1108
1157
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1109
1158
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1110
1159
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1160
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1162
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
1163
|
+
mockVerificationToken: z.ZodOptional<z.ZodString>;
|
|
1164
|
+
mockEncryptKey: z.ZodOptional<z.ZodString>;
|
|
1111
1165
|
eventId: z.ZodOptional<z.ZodString>;
|
|
1112
1166
|
appId: z.ZodOptional<z.ZodString>;
|
|
1113
1167
|
botOpenId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1125,14 +1179,17 @@ export declare const mockFeishuInboundEventSchema: z.ZodObject<{
|
|
|
1125
1179
|
header: z.ZodOptional<z.ZodObject<{
|
|
1126
1180
|
event_id: z.ZodOptional<z.ZodString>;
|
|
1127
1181
|
app_id: z.ZodOptional<z.ZodString>;
|
|
1182
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1128
1183
|
create_time: z.ZodOptional<z.ZodString>;
|
|
1129
1184
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1130
1185
|
event_id: z.ZodOptional<z.ZodString>;
|
|
1131
1186
|
app_id: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1132
1188
|
create_time: z.ZodOptional<z.ZodString>;
|
|
1133
1189
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1134
1190
|
event_id: z.ZodOptional<z.ZodString>;
|
|
1135
1191
|
app_id: z.ZodOptional<z.ZodString>;
|
|
1192
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1136
1193
|
create_time: z.ZodOptional<z.ZodString>;
|
|
1137
1194
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1138
1195
|
event: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-integration.d.ts","sourceRoot":"","sources":["../../src/validators/agent-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,8BAA8B,uBAAsC,CAAC;AAClF,eAAO,MAAM,4BAA4B,2CAAqC,CAAC;AAC/E,eAAO,MAAM,+BAA+B,2CAAuC,CAAC;AACpF,eAAO,MAAM,oCAAoC,yCAA6C,CAAC;AAC/F,eAAO,MAAM,8BAA8B,6BAAuC,CAAC;AACnF,eAAO,MAAM,gCAAgC,gLAAyC,CAAC;AACvF,eAAO,MAAM,oCAAoC,uDAA8C,CAAC;AAEhG,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-integration.d.ts","sourceRoot":"","sources":["../../src/validators/agent-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,8BAA8B,uBAAsC,CAAC;AAClF,eAAO,MAAM,4BAA4B,2CAAqC,CAAC;AAC/E,eAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBzB,CAAC;AAEjB,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -19,9 +19,11 @@ export const createAgentIntegrationSchema = z.object({
|
|
|
19
19
|
installerUserId: z.string().min(1).optional().nullable(),
|
|
20
20
|
manageUrl: z.string().url().optional().nullable(),
|
|
21
21
|
});
|
|
22
|
+
export const connectAgentIntegrationSchema = createAgentIntegrationSchema.omit({ agentId: true });
|
|
22
23
|
const feishuEventHeaderSchema = z.object({
|
|
23
24
|
event_id: z.string().min(1).optional(),
|
|
24
25
|
app_id: z.string().min(1).optional(),
|
|
26
|
+
token: z.string().min(1).optional(),
|
|
25
27
|
create_time: z.string().min(1).optional(),
|
|
26
28
|
}).passthrough();
|
|
27
29
|
const feishuSenderIdSchema = z.object({
|
|
@@ -48,6 +50,11 @@ const feishuEventSchema = z.object({
|
|
|
48
50
|
message: feishuMessageSchema.optional(),
|
|
49
51
|
}).passthrough();
|
|
50
52
|
export const mockFeishuInboundEventSchema = z.object({
|
|
53
|
+
type: z.string().min(1).optional(),
|
|
54
|
+
token: z.string().min(1).optional(),
|
|
55
|
+
challenge: z.string().min(1).optional(),
|
|
56
|
+
mockVerificationToken: z.string().min(1).optional(),
|
|
57
|
+
mockEncryptKey: z.string().min(1).optional(),
|
|
51
58
|
eventId: z.string().min(1).optional(),
|
|
52
59
|
appId: z.string().min(1).optional(),
|
|
53
60
|
botOpenId: z.string().min(1).optional().nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-integration.js","sourceRoot":"","sources":["../../src/validators/agent-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,mCAAmC,EACnC,kCAAkC,EAClC,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4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AAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,uBAAuB,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,WAAW,EAAE,CAAC"}
|
|
@@ -250,17 +250,17 @@ export declare const wakeAgentSchema: z.ZodObject<{
|
|
|
250
250
|
idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
251
251
|
forceFreshSession: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, boolean, unknown>;
|
|
252
252
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
source: "
|
|
253
|
+
source: "automation" | "review" | "timer" | "assignment" | "on_demand";
|
|
254
254
|
forceFreshSession: boolean;
|
|
255
|
+
payload?: Record<string, unknown> | null | undefined;
|
|
255
256
|
reason?: string | null | undefined;
|
|
256
257
|
triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
|
|
257
|
-
payload?: Record<string, unknown> | null | undefined;
|
|
258
258
|
idempotencyKey?: string | null | undefined;
|
|
259
259
|
}, {
|
|
260
|
-
|
|
260
|
+
payload?: Record<string, unknown> | null | undefined;
|
|
261
|
+
source?: "automation" | "review" | "timer" | "assignment" | "on_demand" | undefined;
|
|
261
262
|
reason?: string | null | undefined;
|
|
262
263
|
triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
|
|
263
|
-
payload?: Record<string, unknown> | null | undefined;
|
|
264
264
|
idempotencyKey?: string | null | undefined;
|
|
265
265
|
forceFreshSession?: unknown;
|
|
266
266
|
}>;
|
|
@@ -289,16 +289,16 @@ export declare const createAutomationTriggerSchema: z.ZodDiscriminatedUnion<"kin
|
|
|
289
289
|
cronExpression: z.ZodString;
|
|
290
290
|
timezone: z.ZodDefault<z.ZodString>;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
enabled: boolean;
|
|
293
292
|
kind: "schedule";
|
|
293
|
+
enabled: boolean;
|
|
294
294
|
cronExpression: string;
|
|
295
295
|
timezone: string;
|
|
296
296
|
label?: string | null | undefined;
|
|
297
297
|
}, {
|
|
298
298
|
kind: "schedule";
|
|
299
299
|
cronExpression: string;
|
|
300
|
-
enabled?: boolean | undefined;
|
|
301
300
|
label?: string | null | undefined;
|
|
301
|
+
enabled?: boolean | undefined;
|
|
302
302
|
timezone?: string | undefined;
|
|
303
303
|
}>, z.ZodObject<{
|
|
304
304
|
label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -308,15 +308,15 @@ export declare const createAutomationTriggerSchema: z.ZodDiscriminatedUnion<"kin
|
|
|
308
308
|
signingMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256"]>>>;
|
|
309
309
|
replayWindowSec: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
enabled: boolean;
|
|
312
311
|
kind: "webhook";
|
|
312
|
+
enabled: boolean;
|
|
313
313
|
signingMode: "bearer" | "hmac_sha256";
|
|
314
314
|
replayWindowSec: number;
|
|
315
315
|
label?: string | null | undefined;
|
|
316
316
|
}, {
|
|
317
317
|
kind: "webhook";
|
|
318
|
-
enabled?: boolean | undefined;
|
|
319
318
|
label?: string | null | undefined;
|
|
319
|
+
enabled?: boolean | undefined;
|
|
320
320
|
signingMode?: "bearer" | "hmac_sha256" | undefined;
|
|
321
321
|
replayWindowSec?: number | undefined;
|
|
322
322
|
}>, z.ZodObject<{
|
|
@@ -325,13 +325,13 @@ export declare const createAutomationTriggerSchema: z.ZodDiscriminatedUnion<"kin
|
|
|
325
325
|
} & {
|
|
326
326
|
kind: z.ZodLiteral<"api">;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
enabled: boolean;
|
|
329
328
|
kind: "api";
|
|
329
|
+
enabled: boolean;
|
|
330
330
|
label?: string | null | undefined;
|
|
331
331
|
}, {
|
|
332
332
|
kind: "api";
|
|
333
|
-
enabled?: boolean | undefined;
|
|
334
333
|
label?: string | null | undefined;
|
|
334
|
+
enabled?: boolean | undefined;
|
|
335
335
|
}>]>;
|
|
336
336
|
export type CreateAutomationTrigger = z.infer<typeof createAutomationTriggerSchema>;
|
|
337
337
|
export declare const updateAutomationTriggerSchema: z.ZodObject<{
|
|
@@ -342,15 +342,15 @@ export declare const updateAutomationTriggerSchema: z.ZodObject<{
|
|
|
342
342
|
signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256"]>>>;
|
|
343
343
|
replayWindowSec: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
344
344
|
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
enabled?: boolean | undefined;
|
|
346
345
|
label?: string | null | undefined;
|
|
346
|
+
enabled?: boolean | undefined;
|
|
347
347
|
cronExpression?: string | null | undefined;
|
|
348
348
|
timezone?: string | null | undefined;
|
|
349
349
|
signingMode?: "bearer" | "hmac_sha256" | null | undefined;
|
|
350
350
|
replayWindowSec?: number | null | undefined;
|
|
351
351
|
}, {
|
|
352
|
-
enabled?: boolean | undefined;
|
|
353
352
|
label?: string | null | undefined;
|
|
353
|
+
enabled?: boolean | undefined;
|
|
354
354
|
cronExpression?: string | null | undefined;
|
|
355
355
|
timezone?: string | null | undefined;
|
|
356
356
|
signingMode?: "bearer" | "hmac_sha256" | null | undefined;
|
|
@@ -368,8 +368,8 @@ export declare const runAutomationSchema: z.ZodObject<{
|
|
|
368
368
|
idempotencyKey?: string | null | undefined;
|
|
369
369
|
triggerId?: string | null | undefined;
|
|
370
370
|
}, {
|
|
371
|
-
source?: "manual" | "api" | undefined;
|
|
372
371
|
payload?: Record<string, unknown> | null | undefined;
|
|
372
|
+
source?: "manual" | "api" | undefined;
|
|
373
373
|
idempotencyKey?: string | null | undefined;
|
|
374
374
|
triggerId?: string | null | undefined;
|
|
375
375
|
}>;
|
|
@@ -15,7 +15,7 @@ export declare const createCalendarSourceSchema: z.ZodObject<{
|
|
|
15
15
|
type: "rudder_local" | "google_calendar" | "agent_work" | "system";
|
|
16
16
|
name: string;
|
|
17
17
|
visibilityDefault: "private" | "full" | "busy_only";
|
|
18
|
-
ownerType: "
|
|
18
|
+
ownerType: "system" | "user" | "agent";
|
|
19
19
|
externalProvider?: string | null | undefined;
|
|
20
20
|
ownerUserId?: string | null | undefined;
|
|
21
21
|
ownerAgentId?: string | null | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const createCalendarSourceSchema: z.ZodObject<{
|
|
|
27
27
|
type?: "rudder_local" | "google_calendar" | "agent_work" | "system" | undefined;
|
|
28
28
|
visibilityDefault?: "private" | "full" | "busy_only" | undefined;
|
|
29
29
|
externalProvider?: string | null | undefined;
|
|
30
|
-
ownerType?: "
|
|
30
|
+
ownerType?: "system" | "user" | "agent" | undefined;
|
|
31
31
|
ownerUserId?: string | null | undefined;
|
|
32
32
|
ownerAgentId?: string | null | undefined;
|
|
33
33
|
externalCalendarId?: string | null | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const updateCalendarSourceSchema: z.ZodObject<{
|
|
|
53
53
|
name?: string | undefined;
|
|
54
54
|
visibilityDefault?: "private" | "full" | "busy_only" | undefined;
|
|
55
55
|
externalProvider?: string | null | undefined;
|
|
56
|
-
ownerType?: "
|
|
56
|
+
ownerType?: "system" | "user" | "agent" | undefined;
|
|
57
57
|
ownerUserId?: string | null | undefined;
|
|
58
58
|
ownerAgentId?: string | null | undefined;
|
|
59
59
|
externalCalendarId?: string | null | undefined;
|
|
@@ -65,7 +65,7 @@ export declare const updateCalendarSourceSchema: z.ZodObject<{
|
|
|
65
65
|
name?: string | undefined;
|
|
66
66
|
visibilityDefault?: "private" | "full" | "busy_only" | undefined;
|
|
67
67
|
externalProvider?: string | null | undefined;
|
|
68
|
-
ownerType?: "
|
|
68
|
+
ownerType?: "system" | "user" | "agent" | undefined;
|
|
69
69
|
ownerUserId?: string | null | undefined;
|
|
70
70
|
ownerAgentId?: string | null | undefined;
|
|
71
71
|
externalCalendarId?: string | null | undefined;
|
|
@@ -101,7 +101,7 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
101
101
|
externalUpdatedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
timezone: string;
|
|
104
|
-
ownerType: "
|
|
104
|
+
ownerType: "system" | "user" | "agent";
|
|
105
105
|
title: string;
|
|
106
106
|
visibility: "private" | "full" | "busy_only";
|
|
107
107
|
eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
|
|
@@ -110,6 +110,7 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
110
110
|
endAt: Date;
|
|
111
111
|
allDay: boolean;
|
|
112
112
|
sourceMode: "manual" | "derived" | "imported";
|
|
113
|
+
issueId?: string | null | undefined;
|
|
113
114
|
externalProvider?: string | null | undefined;
|
|
114
115
|
ownerUserId?: string | null | undefined;
|
|
115
116
|
ownerAgentId?: string | null | undefined;
|
|
@@ -117,7 +118,6 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
117
118
|
description?: string | null | undefined;
|
|
118
119
|
projectId?: string | null | undefined;
|
|
119
120
|
goalId?: string | null | undefined;
|
|
120
|
-
issueId?: string | null | undefined;
|
|
121
121
|
approvalId?: string | null | undefined;
|
|
122
122
|
sourceId?: string | null | undefined;
|
|
123
123
|
heartbeatRunId?: string | null | undefined;
|
|
@@ -126,11 +126,12 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
126
126
|
externalEtag?: string | null | undefined;
|
|
127
127
|
externalUpdatedAt?: Date | null | undefined;
|
|
128
128
|
}, {
|
|
129
|
-
ownerType: "
|
|
129
|
+
ownerType: "system" | "user" | "agent";
|
|
130
130
|
title: string;
|
|
131
131
|
eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
|
|
132
132
|
startAt: Date;
|
|
133
133
|
endAt: Date;
|
|
134
|
+
issueId?: string | null | undefined;
|
|
134
135
|
timezone?: string | undefined;
|
|
135
136
|
externalProvider?: string | null | undefined;
|
|
136
137
|
ownerUserId?: string | null | undefined;
|
|
@@ -139,7 +140,6 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
139
140
|
description?: string | null | undefined;
|
|
140
141
|
projectId?: string | null | undefined;
|
|
141
142
|
goalId?: string | null | undefined;
|
|
142
|
-
issueId?: string | null | undefined;
|
|
143
143
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
144
144
|
approvalId?: string | null | undefined;
|
|
145
145
|
sourceId?: string | null | undefined;
|
|
@@ -153,7 +153,7 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
153
153
|
externalUpdatedAt?: Date | null | undefined;
|
|
154
154
|
}>, {
|
|
155
155
|
timezone: string;
|
|
156
|
-
ownerType: "
|
|
156
|
+
ownerType: "system" | "user" | "agent";
|
|
157
157
|
title: string;
|
|
158
158
|
visibility: "private" | "full" | "busy_only";
|
|
159
159
|
eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
|
|
@@ -162,6 +162,7 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
162
162
|
endAt: Date;
|
|
163
163
|
allDay: boolean;
|
|
164
164
|
sourceMode: "manual" | "derived" | "imported";
|
|
165
|
+
issueId?: string | null | undefined;
|
|
165
166
|
externalProvider?: string | null | undefined;
|
|
166
167
|
ownerUserId?: string | null | undefined;
|
|
167
168
|
ownerAgentId?: string | null | undefined;
|
|
@@ -169,7 +170,6 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
169
170
|
description?: string | null | undefined;
|
|
170
171
|
projectId?: string | null | undefined;
|
|
171
172
|
goalId?: string | null | undefined;
|
|
172
|
-
issueId?: string | null | undefined;
|
|
173
173
|
approvalId?: string | null | undefined;
|
|
174
174
|
sourceId?: string | null | undefined;
|
|
175
175
|
heartbeatRunId?: string | null | undefined;
|
|
@@ -178,11 +178,12 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
178
178
|
externalEtag?: string | null | undefined;
|
|
179
179
|
externalUpdatedAt?: Date | null | undefined;
|
|
180
180
|
}, {
|
|
181
|
-
ownerType: "
|
|
181
|
+
ownerType: "system" | "user" | "agent";
|
|
182
182
|
title: string;
|
|
183
183
|
eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
|
|
184
184
|
startAt: Date;
|
|
185
185
|
endAt: Date;
|
|
186
|
+
issueId?: string | null | undefined;
|
|
186
187
|
timezone?: string | undefined;
|
|
187
188
|
externalProvider?: string | null | undefined;
|
|
188
189
|
ownerUserId?: string | null | undefined;
|
|
@@ -191,7 +192,6 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
191
192
|
description?: string | null | undefined;
|
|
192
193
|
projectId?: string | null | undefined;
|
|
193
194
|
goalId?: string | null | undefined;
|
|
194
|
-
issueId?: string | null | undefined;
|
|
195
195
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
196
196
|
approvalId?: string | null | undefined;
|
|
197
197
|
sourceId?: string | null | undefined;
|
|
@@ -232,9 +232,10 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
232
232
|
externalEtag: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
233
233
|
externalUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDate>>>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
issueId?: string | null | undefined;
|
|
235
236
|
timezone?: string | undefined;
|
|
236
237
|
externalProvider?: string | null | undefined;
|
|
237
|
-
ownerType?: "
|
|
238
|
+
ownerType?: "system" | "user" | "agent" | undefined;
|
|
238
239
|
ownerUserId?: string | null | undefined;
|
|
239
240
|
ownerAgentId?: string | null | undefined;
|
|
240
241
|
externalCalendarId?: string | null | undefined;
|
|
@@ -242,7 +243,6 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
242
243
|
description?: string | null | undefined;
|
|
243
244
|
projectId?: string | null | undefined;
|
|
244
245
|
goalId?: string | null | undefined;
|
|
245
|
-
issueId?: string | null | undefined;
|
|
246
246
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
247
247
|
approvalId?: string | null | undefined;
|
|
248
248
|
sourceId?: string | null | undefined;
|
|
@@ -258,9 +258,10 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
258
258
|
externalEtag?: string | null | undefined;
|
|
259
259
|
externalUpdatedAt?: Date | null | undefined;
|
|
260
260
|
}, {
|
|
261
|
+
issueId?: string | null | undefined;
|
|
261
262
|
timezone?: string | undefined;
|
|
262
263
|
externalProvider?: string | null | undefined;
|
|
263
|
-
ownerType?: "
|
|
264
|
+
ownerType?: "system" | "user" | "agent" | undefined;
|
|
264
265
|
ownerUserId?: string | null | undefined;
|
|
265
266
|
ownerAgentId?: string | null | undefined;
|
|
266
267
|
externalCalendarId?: string | null | undefined;
|
|
@@ -268,7 +269,6 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
268
269
|
description?: string | null | undefined;
|
|
269
270
|
projectId?: string | null | undefined;
|
|
270
271
|
goalId?: string | null | undefined;
|
|
271
|
-
issueId?: string | null | undefined;
|
|
272
272
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
273
273
|
approvalId?: string | null | undefined;
|
|
274
274
|
sourceId?: string | null | undefined;
|
|
@@ -284,9 +284,10 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
284
284
|
externalEtag?: string | null | undefined;
|
|
285
285
|
externalUpdatedAt?: Date | null | undefined;
|
|
286
286
|
}>, {
|
|
287
|
+
issueId?: string | null | undefined;
|
|
287
288
|
timezone?: string | undefined;
|
|
288
289
|
externalProvider?: string | null | undefined;
|
|
289
|
-
ownerType?: "
|
|
290
|
+
ownerType?: "system" | "user" | "agent" | undefined;
|
|
290
291
|
ownerUserId?: string | null | undefined;
|
|
291
292
|
ownerAgentId?: string | null | undefined;
|
|
292
293
|
externalCalendarId?: string | null | undefined;
|
|
@@ -294,7 +295,6 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
294
295
|
description?: string | null | undefined;
|
|
295
296
|
projectId?: string | null | undefined;
|
|
296
297
|
goalId?: string | null | undefined;
|
|
297
|
-
issueId?: string | null | undefined;
|
|
298
298
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
299
299
|
approvalId?: string | null | undefined;
|
|
300
300
|
sourceId?: string | null | undefined;
|
|
@@ -310,9 +310,10 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
310
310
|
externalEtag?: string | null | undefined;
|
|
311
311
|
externalUpdatedAt?: Date | null | undefined;
|
|
312
312
|
}, {
|
|
313
|
+
issueId?: string | null | undefined;
|
|
313
314
|
timezone?: string | undefined;
|
|
314
315
|
externalProvider?: string | null | undefined;
|
|
315
|
-
ownerType?: "
|
|
316
|
+
ownerType?: "system" | "user" | "agent" | undefined;
|
|
316
317
|
ownerUserId?: string | null | undefined;
|
|
317
318
|
ownerAgentId?: string | null | undefined;
|
|
318
319
|
externalCalendarId?: string | null | undefined;
|
|
@@ -320,7 +321,6 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
320
321
|
description?: string | null | undefined;
|
|
321
322
|
projectId?: string | null | undefined;
|
|
322
323
|
goalId?: string | null | undefined;
|
|
323
|
-
issueId?: string | null | undefined;
|
|
324
324
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
325
325
|
approvalId?: string | null | undefined;
|
|
326
326
|
sourceId?: string | null | undefined;
|