@rudderhq/shared 0.4.2-canary.0 → 0.4.2-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/constants.d.ts +12 -0
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.js +6 -0
  4. package/dist/constants.js.map +1 -1
  5. package/dist/index.d.ts +3 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/organization-skill-reference.d.ts +1 -1
  10. package/dist/organization-skill-reference.d.ts.map +1 -1
  11. package/dist/organization-skill-reference.js +0 -2
  12. package/dist/organization-skill-reference.js.map +1 -1
  13. package/dist/types/custom-integration.d.ts +68 -0
  14. package/dist/types/custom-integration.d.ts.map +1 -0
  15. package/dist/types/custom-integration.js +2 -0
  16. package/dist/types/custom-integration.js.map +1 -0
  17. package/dist/types/index.d.ts +1 -0
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/validators/automation.d.ts +12 -12
  20. package/dist/validators/budget.d.ts +2 -2
  21. package/dist/validators/calendar.d.ts +32 -32
  22. package/dist/validators/chat.d.ts +15 -15
  23. package/dist/validators/custom-integration.d.ts +135 -0
  24. package/dist/validators/custom-integration.d.ts.map +1 -0
  25. package/dist/validators/custom-integration.js +45 -0
  26. package/dist/validators/custom-integration.js.map +1 -0
  27. package/dist/validators/finance.d.ts +4 -4
  28. package/dist/validators/goal.d.ts +9 -9
  29. package/dist/validators/index.d.ts +1 -0
  30. package/dist/validators/index.d.ts.map +1 -1
  31. package/dist/validators/index.js +1 -0
  32. package/dist/validators/index.js.map +1 -1
  33. package/dist/validators/issue.d.ts +3 -3
  34. package/dist/validators/organization-portability.d.ts +91 -91
  35. package/dist/validators/organization-skill.d.ts +72 -72
  36. package/dist/validators/organization.d.ts +6 -6
  37. package/dist/validators/plugin.d.ts +86 -86
  38. package/dist/validators/project.d.ts +3 -3
  39. package/dist/validators/resource.d.ts +4 -4
  40. package/dist/validators/secret.d.ts +18 -18
  41. package/dist/validators/work-product.d.ts +4 -4
  42. package/package.json +1 -1
@@ -40,8 +40,8 @@ export declare const createAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
40
40
  }, {
41
41
  title: string;
42
42
  assigneeAgentId: string;
43
- status?: "active" | "paused" | undefined;
44
43
  description?: string | null | undefined;
44
+ status?: "active" | "paused" | undefined;
45
45
  priority?: "critical" | "high" | "medium" | "low" | undefined;
46
46
  projectId?: string | null | undefined;
47
47
  goalId?: string | null | undefined;
@@ -70,8 +70,8 @@ export declare const createAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
70
70
  }, {
71
71
  title: string;
72
72
  assigneeAgentId: string;
73
- status?: "active" | "paused" | undefined;
74
73
  description?: string | null | undefined;
74
+ status?: "active" | "paused" | undefined;
75
75
  priority?: "critical" | "high" | "medium" | "low" | undefined;
76
76
  projectId?: string | null | undefined;
77
77
  goalId?: string | null | undefined;
@@ -102,8 +102,8 @@ export declare const createAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
102
102
  }, {
103
103
  title: string;
104
104
  assigneeAgentId: string;
105
- status?: "active" | "paused" | undefined;
106
105
  description?: string | null | undefined;
106
+ status?: "active" | "paused" | undefined;
107
107
  priority?: "critical" | "high" | "medium" | "low" | undefined;
108
108
  projectId?: string | null | undefined;
109
109
  goalId?: string | null | undefined;
@@ -134,8 +134,8 @@ export declare const createAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
134
134
  }, {
135
135
  title: string;
136
136
  assigneeAgentId: string;
137
- status?: "active" | "paused" | undefined;
138
137
  description?: string | null | undefined;
138
+ status?: "active" | "paused" | undefined;
139
139
  priority?: "critical" | "high" | "medium" | "low" | undefined;
140
140
  projectId?: string | null | undefined;
141
141
  goalId?: string | null | undefined;
@@ -164,9 +164,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
164
164
  chatConversationId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>>;
165
165
  notifyOnIssueCreated: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
166
166
  }, "strip", z.ZodTypeAny, {
167
+ description?: string | null | undefined;
167
168
  status?: "active" | "paused" | undefined;
168
169
  title?: string | undefined;
169
- description?: string | null | undefined;
170
170
  priority?: "critical" | "high" | "medium" | "low" | undefined;
171
171
  assigneeAgentId?: string | undefined;
172
172
  projectId?: string | null | undefined;
@@ -179,9 +179,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
179
179
  chatConversationId?: string | null | undefined;
180
180
  notifyOnIssueCreated?: boolean | undefined;
181
181
  }, {
182
+ description?: string | null | undefined;
182
183
  status?: "active" | "paused" | undefined;
183
184
  title?: string | undefined;
184
- description?: string | null | undefined;
185
185
  priority?: "critical" | "high" | "medium" | "low" | undefined;
186
186
  assigneeAgentId?: string | undefined;
187
187
  projectId?: string | null | undefined;
@@ -194,9 +194,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
194
194
  chatConversationId?: string | null | undefined;
195
195
  notifyOnIssueCreated?: boolean | undefined;
196
196
  }>, {
197
+ description?: string | null | undefined;
197
198
  status?: "active" | "paused" | undefined;
198
199
  title?: string | undefined;
199
- description?: string | null | undefined;
200
200
  priority?: "critical" | "high" | "medium" | "low" | undefined;
201
201
  assigneeAgentId?: string | undefined;
202
202
  projectId?: string | null | undefined;
@@ -209,9 +209,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
209
209
  chatConversationId?: string | null | undefined;
210
210
  notifyOnIssueCreated?: boolean | undefined;
211
211
  }, {
212
+ description?: string | null | undefined;
212
213
  status?: "active" | "paused" | undefined;
213
214
  title?: string | undefined;
214
- description?: string | null | undefined;
215
215
  priority?: "critical" | "high" | "medium" | "low" | undefined;
216
216
  assigneeAgentId?: string | undefined;
217
217
  projectId?: string | null | undefined;
@@ -224,9 +224,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
224
224
  chatConversationId?: string | null | undefined;
225
225
  notifyOnIssueCreated?: boolean | undefined;
226
226
  }>, Omit<{
227
+ description?: string | null | undefined;
227
228
  status?: "active" | "paused" | undefined;
228
229
  title?: string | undefined;
229
- description?: string | null | undefined;
230
230
  priority?: "critical" | "high" | "medium" | "low" | undefined;
231
231
  assigneeAgentId?: string | undefined;
232
232
  projectId?: string | null | undefined;
@@ -241,9 +241,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
241
241
  }, "instructions"> & {
242
242
  description: string | null | undefined;
243
243
  }, {
244
+ description?: string | null | undefined;
244
245
  status?: "active" | "paused" | undefined;
245
246
  title?: string | undefined;
246
- description?: string | null | undefined;
247
247
  priority?: "critical" | "high" | "medium" | "low" | undefined;
248
248
  assigneeAgentId?: string | undefined;
249
249
  projectId?: string | null | undefined;
@@ -256,9 +256,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
256
256
  chatConversationId?: string | null | undefined;
257
257
  notifyOnIssueCreated?: boolean | undefined;
258
258
  }>, Omit<{
259
+ description?: string | null | undefined;
259
260
  status?: "active" | "paused" | undefined;
260
261
  title?: string | undefined;
261
- description?: string | null | undefined;
262
262
  priority?: "critical" | "high" | "medium" | "low" | undefined;
263
263
  assigneeAgentId?: string | undefined;
264
264
  projectId?: string | null | undefined;
@@ -273,9 +273,9 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
273
273
  }, "instructions"> & {
274
274
  description: string | null | undefined;
275
275
  }, {
276
+ description?: string | null | undefined;
276
277
  status?: "active" | "paused" | undefined;
277
278
  title?: string | undefined;
278
- description?: string | null | undefined;
279
279
  priority?: "critical" | "high" | "medium" | "low" | undefined;
280
280
  assigneeAgentId?: string | undefined;
281
281
  projectId?: string | null | undefined;
@@ -10,7 +10,7 @@ export declare const upsertBudgetPolicySchema: z.ZodObject<{
10
10
  notifyEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
11
  isActive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- scopeType: "agent" | "project" | "organization";
13
+ scopeType: "organization" | "agent" | "project";
14
14
  scopeId: string;
15
15
  metric: "billed_cents";
16
16
  windowKind: "calendar_month_utc" | "lifetime";
@@ -20,7 +20,7 @@ export declare const upsertBudgetPolicySchema: z.ZodObject<{
20
20
  notifyEnabled: boolean;
21
21
  isActive: boolean;
22
22
  }, {
23
- scopeType: "agent" | "project" | "organization";
23
+ scopeType: "organization" | "agent" | "project";
24
24
  scopeId: string;
25
25
  amount: number;
26
26
  metric?: "billed_cents" | undefined;
@@ -15,21 +15,21 @@ 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: "system" | "user" | "agent";
18
+ ownerType: "agent" | "system" | "user";
19
+ ownerAgentId?: string | null | undefined;
19
20
  externalProvider?: string | null | undefined;
20
21
  ownerUserId?: string | null | undefined;
21
- ownerAgentId?: string | null | undefined;
22
22
  externalCalendarId?: string | null | undefined;
23
23
  syncCursorJson?: Record<string, unknown> | null | undefined;
24
24
  }, {
25
25
  name: string;
26
+ ownerAgentId?: string | null | undefined;
26
27
  status?: "active" | "paused" | "error" | "disconnected" | undefined;
27
28
  type?: "rudder_local" | "google_calendar" | "agent_work" | "system" | undefined;
28
29
  visibilityDefault?: "private" | "full" | "busy_only" | undefined;
29
30
  externalProvider?: string | null | undefined;
30
- ownerType?: "system" | "user" | "agent" | undefined;
31
+ ownerType?: "agent" | "system" | "user" | undefined;
31
32
  ownerUserId?: string | null | undefined;
32
- ownerAgentId?: string | null | undefined;
33
33
  externalCalendarId?: string | null | undefined;
34
34
  syncCursorJson?: Record<string, unknown> | null | undefined;
35
35
  }>;
@@ -48,26 +48,26 @@ export declare const updateCalendarSourceSchema: z.ZodObject<{
48
48
  } & {
49
49
  lastSyncedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
+ ownerAgentId?: string | null | undefined;
51
52
  status?: "active" | "paused" | "error" | "disconnected" | undefined;
52
53
  type?: "rudder_local" | "google_calendar" | "agent_work" | "system" | undefined;
53
54
  name?: string | undefined;
54
55
  visibilityDefault?: "private" | "full" | "busy_only" | undefined;
55
56
  externalProvider?: string | null | undefined;
56
- ownerType?: "system" | "user" | "agent" | undefined;
57
+ ownerType?: "agent" | "system" | "user" | undefined;
57
58
  ownerUserId?: string | null | undefined;
58
- ownerAgentId?: string | null | undefined;
59
59
  externalCalendarId?: string | null | undefined;
60
60
  lastSyncedAt?: Date | null | undefined;
61
61
  syncCursorJson?: Record<string, unknown> | null | undefined;
62
62
  }, {
63
+ ownerAgentId?: string | null | undefined;
63
64
  status?: "active" | "paused" | "error" | "disconnected" | undefined;
64
65
  type?: "rudder_local" | "google_calendar" | "agent_work" | "system" | undefined;
65
66
  name?: string | undefined;
66
67
  visibilityDefault?: "private" | "full" | "busy_only" | undefined;
67
68
  externalProvider?: string | null | undefined;
68
- ownerType?: "system" | "user" | "agent" | undefined;
69
+ ownerType?: "agent" | "system" | "user" | undefined;
69
70
  ownerUserId?: string | null | undefined;
70
- ownerAgentId?: string | null | undefined;
71
71
  externalCalendarId?: string | null | undefined;
72
72
  lastSyncedAt?: Date | null | undefined;
73
73
  syncCursorJson?: Record<string, unknown> | 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: "system" | "user" | "agent";
104
+ ownerType: "agent" | "system" | "user";
105
105
  title: string;
106
106
  visibility: "private" | "full" | "busy_only";
107
107
  eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
@@ -111,11 +111,11 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
111
111
  allDay: boolean;
112
112
  sourceMode: "manual" | "derived" | "imported";
113
113
  issueId?: string | null | undefined;
114
+ ownerAgentId?: string | null | undefined;
115
+ description?: string | null | undefined;
114
116
  externalProvider?: string | null | undefined;
115
117
  ownerUserId?: string | null | undefined;
116
- ownerAgentId?: string | null | undefined;
117
118
  externalCalendarId?: string | null | undefined;
118
- description?: string | null | undefined;
119
119
  projectId?: string | null | undefined;
120
120
  goalId?: string | null | undefined;
121
121
  approvalId?: string | null | undefined;
@@ -126,18 +126,18 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
126
126
  externalEtag?: string | null | undefined;
127
127
  externalUpdatedAt?: Date | null | undefined;
128
128
  }, {
129
- ownerType: "system" | "user" | "agent";
129
+ ownerType: "agent" | "system" | "user";
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
134
  issueId?: string | null | undefined;
135
+ ownerAgentId?: string | null | undefined;
136
+ description?: string | null | undefined;
135
137
  timezone?: string | undefined;
136
138
  externalProvider?: string | null | undefined;
137
139
  ownerUserId?: string | null | undefined;
138
- ownerAgentId?: string | null | undefined;
139
140
  externalCalendarId?: string | null | undefined;
140
- description?: string | null | undefined;
141
141
  projectId?: string | null | undefined;
142
142
  goalId?: string | null | undefined;
143
143
  visibility?: "private" | "full" | "busy_only" | 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: "system" | "user" | "agent";
156
+ ownerType: "agent" | "system" | "user";
157
157
  title: string;
158
158
  visibility: "private" | "full" | "busy_only";
159
159
  eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
@@ -163,11 +163,11 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
163
163
  allDay: boolean;
164
164
  sourceMode: "manual" | "derived" | "imported";
165
165
  issueId?: string | null | undefined;
166
+ ownerAgentId?: string | null | undefined;
167
+ description?: string | null | undefined;
166
168
  externalProvider?: string | null | undefined;
167
169
  ownerUserId?: string | null | undefined;
168
- ownerAgentId?: string | null | undefined;
169
170
  externalCalendarId?: string | null | undefined;
170
- description?: string | null | undefined;
171
171
  projectId?: string | null | undefined;
172
172
  goalId?: string | null | undefined;
173
173
  approvalId?: string | null | undefined;
@@ -178,18 +178,18 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
178
178
  externalEtag?: string | null | undefined;
179
179
  externalUpdatedAt?: Date | null | undefined;
180
180
  }, {
181
- ownerType: "system" | "user" | "agent";
181
+ ownerType: "agent" | "system" | "user";
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
186
  issueId?: string | null | undefined;
187
+ ownerAgentId?: string | null | undefined;
188
+ description?: string | null | undefined;
187
189
  timezone?: string | undefined;
188
190
  externalProvider?: string | null | undefined;
189
191
  ownerUserId?: string | null | undefined;
190
- ownerAgentId?: string | null | undefined;
191
192
  externalCalendarId?: string | null | undefined;
192
- description?: string | null | undefined;
193
193
  projectId?: string | null | undefined;
194
194
  goalId?: string | null | undefined;
195
195
  visibility?: "private" | "full" | "busy_only" | undefined;
@@ -233,14 +233,14 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
233
233
  externalUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDate>>>;
234
234
  }, "strip", z.ZodTypeAny, {
235
235
  issueId?: string | null | undefined;
236
+ ownerAgentId?: string | null | undefined;
237
+ description?: string | null | undefined;
236
238
  timezone?: string | undefined;
237
239
  externalProvider?: string | null | undefined;
238
- ownerType?: "system" | "user" | "agent" | undefined;
240
+ ownerType?: "agent" | "system" | "user" | undefined;
239
241
  ownerUserId?: string | null | undefined;
240
- ownerAgentId?: string | null | undefined;
241
242
  externalCalendarId?: string | null | undefined;
242
243
  title?: string | undefined;
243
- description?: string | null | undefined;
244
244
  projectId?: string | null | undefined;
245
245
  goalId?: string | null | undefined;
246
246
  visibility?: "private" | "full" | "busy_only" | undefined;
@@ -259,14 +259,14 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
259
259
  externalUpdatedAt?: Date | null | undefined;
260
260
  }, {
261
261
  issueId?: string | null | undefined;
262
+ ownerAgentId?: string | null | undefined;
263
+ description?: string | null | undefined;
262
264
  timezone?: string | undefined;
263
265
  externalProvider?: string | null | undefined;
264
- ownerType?: "system" | "user" | "agent" | undefined;
266
+ ownerType?: "agent" | "system" | "user" | undefined;
265
267
  ownerUserId?: string | null | undefined;
266
- ownerAgentId?: string | null | undefined;
267
268
  externalCalendarId?: string | null | undefined;
268
269
  title?: string | undefined;
269
- description?: string | null | undefined;
270
270
  projectId?: string | null | undefined;
271
271
  goalId?: string | null | undefined;
272
272
  visibility?: "private" | "full" | "busy_only" | undefined;
@@ -285,14 +285,14 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
285
285
  externalUpdatedAt?: Date | null | undefined;
286
286
  }>, {
287
287
  issueId?: string | null | undefined;
288
+ ownerAgentId?: string | null | undefined;
289
+ description?: string | null | undefined;
288
290
  timezone?: string | undefined;
289
291
  externalProvider?: string | null | undefined;
290
- ownerType?: "system" | "user" | "agent" | undefined;
292
+ ownerType?: "agent" | "system" | "user" | undefined;
291
293
  ownerUserId?: string | null | undefined;
292
- ownerAgentId?: string | null | undefined;
293
294
  externalCalendarId?: string | null | undefined;
294
295
  title?: string | undefined;
295
- description?: string | null | undefined;
296
296
  projectId?: string | null | undefined;
297
297
  goalId?: string | null | undefined;
298
298
  visibility?: "private" | "full" | "busy_only" | undefined;
@@ -311,14 +311,14 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
311
311
  externalUpdatedAt?: Date | null | undefined;
312
312
  }, {
313
313
  issueId?: string | null | undefined;
314
+ ownerAgentId?: string | null | undefined;
315
+ description?: string | null | undefined;
314
316
  timezone?: string | undefined;
315
317
  externalProvider?: string | null | undefined;
316
- ownerType?: "system" | "user" | "agent" | undefined;
318
+ ownerType?: "agent" | "system" | "user" | undefined;
317
319
  ownerUserId?: string | null | undefined;
318
- ownerAgentId?: string | null | undefined;
319
320
  externalCalendarId?: string | null | undefined;
320
321
  title?: string | undefined;
321
- description?: string | null | undefined;
322
322
  projectId?: string | null | undefined;
323
323
  goalId?: string | null | undefined;
324
324
  visibility?: "private" | "full" | "busy_only" | undefined;
@@ -709,8 +709,8 @@ export declare const chatAutomationCreateSchema: z.ZodEffects<z.ZodObject<{
709
709
  enabled?: boolean | undefined;
710
710
  };
711
711
  title: string;
712
- status?: "active" | "paused" | undefined;
713
712
  description?: string | null | undefined;
713
+ status?: "active" | "paused" | undefined;
714
714
  priority?: "critical" | "high" | "medium" | "low" | undefined;
715
715
  projectId?: string | null | undefined;
716
716
  goalId?: string | null | undefined;
@@ -744,8 +744,8 @@ export declare const chatAutomationCreateSchema: z.ZodEffects<z.ZodObject<{
744
744
  enabled?: boolean | undefined;
745
745
  };
746
746
  title: string;
747
- status?: "active" | "paused" | undefined;
748
747
  description?: string | null | undefined;
748
+ status?: "active" | "paused" | undefined;
749
749
  priority?: "critical" | "high" | "medium" | "low" | undefined;
750
750
  projectId?: string | null | undefined;
751
751
  goalId?: string | null | undefined;
@@ -798,9 +798,9 @@ export declare const chatIssueProposalSchema: z.ZodEffects<z.ZodObject<{
798
798
  reviewerUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
799
799
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
800
800
  }, "strip", z.ZodTypeAny, {
801
+ description: string;
801
802
  status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
802
803
  title: string;
803
- description: string;
804
804
  priority: "critical" | "high" | "medium" | "low";
805
805
  assigneeAgentId?: string | null | undefined;
806
806
  assigneeUserId?: string | null | undefined;
@@ -812,8 +812,8 @@ export declare const chatIssueProposalSchema: z.ZodEffects<z.ZodObject<{
812
812
  labelIds?: string[] | undefined;
813
813
  assigneeUnassignedReason?: string | null | undefined;
814
814
  }, {
815
- title: string;
816
815
  description: string;
816
+ title: string;
817
817
  status?: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled" | undefined;
818
818
  priority?: "critical" | "high" | "medium" | "low" | undefined;
819
819
  assigneeAgentId?: string | null | undefined;
@@ -826,9 +826,9 @@ export declare const chatIssueProposalSchema: z.ZodEffects<z.ZodObject<{
826
826
  labelIds?: string[] | undefined;
827
827
  assigneeUnassignedReason?: string | null | undefined;
828
828
  }>, {
829
+ description: string;
829
830
  status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
830
831
  title: string;
831
- description: string;
832
832
  priority: "critical" | "high" | "medium" | "low";
833
833
  assigneeAgentId?: string | null | undefined;
834
834
  assigneeUserId?: string | null | undefined;
@@ -840,8 +840,8 @@ export declare const chatIssueProposalSchema: z.ZodEffects<z.ZodObject<{
840
840
  labelIds?: string[] | undefined;
841
841
  assigneeUnassignedReason?: string | null | undefined;
842
842
  }, {
843
- title: string;
844
843
  description: string;
844
+ title: string;
845
845
  status?: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled" | undefined;
846
846
  priority?: "critical" | "high" | "medium" | "low" | undefined;
847
847
  assigneeAgentId?: string | null | undefined;
@@ -871,9 +871,9 @@ export declare const convertChatToIssueSchema: z.ZodObject<{
871
871
  reviewerUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
872
872
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
873
873
  }, "strip", z.ZodTypeAny, {
874
+ description: string;
874
875
  status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
875
876
  title: string;
876
- description: string;
877
877
  priority: "critical" | "high" | "medium" | "low";
878
878
  assigneeAgentId?: string | null | undefined;
879
879
  assigneeUserId?: string | null | undefined;
@@ -885,8 +885,8 @@ export declare const convertChatToIssueSchema: z.ZodObject<{
885
885
  labelIds?: string[] | undefined;
886
886
  assigneeUnassignedReason?: string | null | undefined;
887
887
  }, {
888
- title: string;
889
888
  description: string;
889
+ title: string;
890
890
  status?: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled" | undefined;
891
891
  priority?: "critical" | "high" | "medium" | "low" | undefined;
892
892
  assigneeAgentId?: string | null | undefined;
@@ -899,9 +899,9 @@ export declare const convertChatToIssueSchema: z.ZodObject<{
899
899
  labelIds?: string[] | undefined;
900
900
  assigneeUnassignedReason?: string | null | undefined;
901
901
  }>, {
902
+ description: string;
902
903
  status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
903
904
  title: string;
904
- description: string;
905
905
  priority: "critical" | "high" | "medium" | "low";
906
906
  assigneeAgentId?: string | null | undefined;
907
907
  assigneeUserId?: string | null | undefined;
@@ -913,8 +913,8 @@ export declare const convertChatToIssueSchema: z.ZodObject<{
913
913
  labelIds?: string[] | undefined;
914
914
  assigneeUnassignedReason?: string | null | undefined;
915
915
  }, {
916
- title: string;
917
916
  description: string;
917
+ title: string;
918
918
  status?: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled" | undefined;
919
919
  priority?: "critical" | "high" | "medium" | "low" | undefined;
920
920
  assigneeAgentId?: string | null | undefined;
@@ -930,9 +930,9 @@ export declare const convertChatToIssueSchema: z.ZodObject<{
930
930
  }, "strip", z.ZodTypeAny, {
931
931
  messageId?: string | null | undefined;
932
932
  proposal?: {
933
+ description: string;
933
934
  status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
934
935
  title: string;
935
- description: string;
936
936
  priority: "critical" | "high" | "medium" | "low";
937
937
  assigneeAgentId?: string | null | undefined;
938
938
  assigneeUserId?: string | null | undefined;
@@ -947,8 +947,8 @@ export declare const convertChatToIssueSchema: z.ZodObject<{
947
947
  }, {
948
948
  messageId?: string | null | undefined;
949
949
  proposal?: {
950
- title: string;
951
950
  description: string;
951
+ title: string;
952
952
  status?: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled" | undefined;
953
953
  priority?: "critical" | "high" | "medium" | "low" | undefined;
954
954
  assigneeAgentId?: string | null | undefined;
@@ -963,9 +963,9 @@ export declare const convertChatToIssueSchema: z.ZodObject<{
963
963
  } | undefined;
964
964
  }>;
965
965
  export declare function chatIssueProposalFromStructuredPayload(payload: unknown): {
966
+ description: string;
966
967
  status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
967
968
  title: string;
968
- description: string;
969
969
  priority: "critical" | "high" | "medium" | "low";
970
970
  assigneeAgentId?: string | null | undefined;
971
971
  assigneeUserId?: string | null | undefined;
@@ -983,12 +983,12 @@ export declare const chatOperationProposalSchema: z.ZodObject<{
983
983
  summary: z.ZodString;
984
984
  patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
985
985
  }, "strip", z.ZodTypeAny, {
986
- targetType: "agent" | "organization";
986
+ targetType: "organization" | "agent";
987
987
  targetId: string;
988
988
  summary: string;
989
989
  patch: Record<string, unknown>;
990
990
  }, {
991
- targetType: "agent" | "organization";
991
+ targetType: "organization" | "agent";
992
992
  targetId: string;
993
993
  summary: string;
994
994
  patch: Record<string, unknown>;
@@ -0,0 +1,135 @@
1
+ import { z } from "zod";
2
+ export declare const customIntegrationKindSchema: z.ZodEnum<["custom_api", "mcp_server"]>;
3
+ export declare const customIntegrationScopeSchema: z.ZodEnum<["organization", "agent"]>;
4
+ export declare const customIntegrationStatusSchema: z.ZodEnum<["active", "disabled", "error", "revoked"]>;
5
+ export declare const customIntegrationToolStatusSchema: z.ZodEnum<["active", "disabled", "error"]>;
6
+ export declare const customIntegrationBindingStatusSchema: z.ZodEnum<["active", "revoked"]>;
7
+ export declare const customIntegrationToolCallStatusSchema: z.ZodEnum<["success", "error", "blocked"]>;
8
+ export declare const customIntegrationToolInputSchema: z.ZodObject<{
9
+ externalToolName: z.ZodString;
10
+ rudderToolName: z.ZodOptional<z.ZodString>;
11
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ externalToolName: string;
16
+ description?: string | null | undefined;
17
+ config?: Record<string, unknown> | undefined;
18
+ rudderToolName?: string | undefined;
19
+ inputSchema?: Record<string, unknown> | undefined;
20
+ }, {
21
+ externalToolName: string;
22
+ description?: string | null | undefined;
23
+ config?: Record<string, unknown> | undefined;
24
+ rudderToolName?: string | undefined;
25
+ inputSchema?: Record<string, unknown> | undefined;
26
+ }>;
27
+ export declare const createCustomIntegrationSchema: z.ZodObject<{
28
+ scope: z.ZodEnum<["organization", "agent"]>;
29
+ kind: z.ZodEnum<["custom_api", "mcp_server"]>;
30
+ slug: z.ZodOptional<z.ZodString>;
31
+ displayName: z.ZodString;
32
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
+ credential: z.ZodOptional<z.ZodObject<{
35
+ name: z.ZodOptional<z.ZodString>;
36
+ value: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ value: string;
39
+ name?: string | undefined;
40
+ }, {
41
+ value: string;
42
+ name?: string | undefined;
43
+ }>>;
44
+ credentialSecretId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
+ tools: z.ZodArray<z.ZodObject<{
46
+ externalToolName: z.ZodString;
47
+ rudderToolName: z.ZodOptional<z.ZodString>;
48
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
50
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ externalToolName: string;
53
+ description?: string | null | undefined;
54
+ config?: Record<string, unknown> | undefined;
55
+ rudderToolName?: string | undefined;
56
+ inputSchema?: Record<string, unknown> | undefined;
57
+ }, {
58
+ externalToolName: string;
59
+ description?: string | null | undefined;
60
+ config?: Record<string, unknown> | undefined;
61
+ rudderToolName?: string | undefined;
62
+ inputSchema?: Record<string, unknown> | undefined;
63
+ }>, "many">;
64
+ enabledToolNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ scope: "organization" | "agent";
67
+ kind: "custom_api" | "mcp_server";
68
+ displayName: string;
69
+ tools: {
70
+ externalToolName: string;
71
+ description?: string | null | undefined;
72
+ config?: Record<string, unknown> | undefined;
73
+ rudderToolName?: string | undefined;
74
+ inputSchema?: Record<string, unknown> | undefined;
75
+ }[];
76
+ credentialSecretId?: string | null | undefined;
77
+ slug?: string | undefined;
78
+ description?: string | null | undefined;
79
+ config?: Record<string, unknown> | undefined;
80
+ credential?: {
81
+ value: string;
82
+ name?: string | undefined;
83
+ } | undefined;
84
+ enabledToolNames?: string[] | undefined;
85
+ }, {
86
+ scope: "organization" | "agent";
87
+ kind: "custom_api" | "mcp_server";
88
+ displayName: string;
89
+ tools: {
90
+ externalToolName: string;
91
+ description?: string | null | undefined;
92
+ config?: Record<string, unknown> | undefined;
93
+ rudderToolName?: string | undefined;
94
+ inputSchema?: Record<string, unknown> | undefined;
95
+ }[];
96
+ credentialSecretId?: string | null | undefined;
97
+ slug?: string | undefined;
98
+ description?: string | null | undefined;
99
+ config?: Record<string, unknown> | undefined;
100
+ credential?: {
101
+ value: string;
102
+ name?: string | undefined;
103
+ } | undefined;
104
+ enabledToolNames?: string[] | undefined;
105
+ }>;
106
+ export type CreateCustomIntegration = z.infer<typeof createCustomIntegrationSchema>;
107
+ export declare const updateCustomIntegrationBindingSchema: z.ZodObject<{
108
+ enabledToolIds: z.ZodArray<z.ZodString, "many">;
109
+ }, "strip", z.ZodTypeAny, {
110
+ enabledToolIds: string[];
111
+ }, {
112
+ enabledToolIds: string[];
113
+ }>;
114
+ export type UpdateCustomIntegrationBinding = z.infer<typeof updateCustomIntegrationBindingSchema>;
115
+ export declare const createCustomIntegrationToolCallSchema: z.ZodObject<{
116
+ toolId: z.ZodString;
117
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
118
+ runId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
119
+ conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
120
+ issueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ toolId: string;
123
+ conversationId?: string | null | undefined;
124
+ issueId?: string | null | undefined;
125
+ input?: Record<string, unknown> | undefined;
126
+ runId?: string | null | undefined;
127
+ }, {
128
+ toolId: string;
129
+ conversationId?: string | null | undefined;
130
+ issueId?: string | null | undefined;
131
+ input?: Record<string, unknown> | undefined;
132
+ runId?: string | null | undefined;
133
+ }>;
134
+ export type CreateCustomIntegrationToolCall = z.infer<typeof createCustomIntegrationToolCallSchema>;
135
+ //# sourceMappingURL=custom-integration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-integration.d.ts","sourceRoot":"","sources":["../../src/validators/custom-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,2BAA2B,yCAAmC,CAAC;AAC5E,eAAO,MAAM,4BAA4B,sCAAoC,CAAC;AAC9E,eAAO,MAAM,6BAA6B,uDAAsC,CAAC;AACjF,eAAO,MAAM,iCAAiC,4CAA2C,CAAC;AAC1F,eAAO,MAAM,oCAAoC,kCAA8C,CAAC;AAChG,eAAO,MAAM,qCAAqC,4CAAgD,CAAC;AAEnG,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;EAM3C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,oCAAoC;;;;;;EAE/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;EAMhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}