@renai-labs/sdk 0.1.17 → 0.1.19
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/generated/@tanstack/react-query.gen.d.ts +153 -13
- package/dist/generated/@tanstack/react-query.gen.js +209 -1
- package/dist/generated/internal/types.gen.d.ts +59 -1
- package/dist/generated/sdk.gen.d.ts +70 -2
- package/dist/generated/sdk.gen.js +159 -1
- package/dist/generated/types.gen.d.ts +659 -12
- package/dist/generated/zod.gen.d.ts +726 -0
- package/dist/generated/zod.gen.js +254 -11
- package/package.json +1 -1
|
@@ -105,6 +105,11 @@ export const zBlueprintProjectEntry = z.object({
|
|
|
105
105
|
timezone: z.string().nullable(),
|
|
106
106
|
cronTriggerId: z.string(),
|
|
107
107
|
agentId: z.string().nullable(),
|
|
108
|
+
until: z.iso
|
|
109
|
+
.datetime()
|
|
110
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
111
|
+
.nullish()
|
|
112
|
+
.default(null),
|
|
108
113
|
})),
|
|
109
114
|
});
|
|
110
115
|
export const zBlueprintTemplate = z.object({
|
|
@@ -220,6 +225,12 @@ export const zCredentialAuth = z.union([
|
|
|
220
225
|
username: z.string(),
|
|
221
226
|
password: z.string(),
|
|
222
227
|
}),
|
|
228
|
+
z.object({
|
|
229
|
+
type: z.literal("mcp_provider"),
|
|
230
|
+
provider: z.enum(["composio"]),
|
|
231
|
+
userId: z.string(),
|
|
232
|
+
url: z.url(),
|
|
233
|
+
}),
|
|
223
234
|
]);
|
|
224
235
|
export const zCredentialAuthPublic = z.union([
|
|
225
236
|
z.object({
|
|
@@ -245,6 +256,11 @@ export const zCredentialAuthPublic = z.union([
|
|
|
245
256
|
type: z.literal("basic"),
|
|
246
257
|
username: z.string(),
|
|
247
258
|
}),
|
|
259
|
+
z.object({
|
|
260
|
+
type: z.literal("mcp_provider"),
|
|
261
|
+
provider: z.enum(["composio"]),
|
|
262
|
+
userId: z.string(),
|
|
263
|
+
}),
|
|
248
264
|
]);
|
|
249
265
|
export const zCredential = z.object({
|
|
250
266
|
id: z.string(),
|
|
@@ -284,6 +300,49 @@ export const zVault = z.object({
|
|
|
284
300
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
285
301
|
.nullable(),
|
|
286
302
|
});
|
|
303
|
+
export const zLinearMapping = z.object({
|
|
304
|
+
id: z.string(),
|
|
305
|
+
renProjectId: z.string(),
|
|
306
|
+
renProjectName: z.string().nullable(),
|
|
307
|
+
linearProjectId: z.string().nullable(),
|
|
308
|
+
senderUserId: z.string(),
|
|
309
|
+
projectAgentId: z.string().nullable(),
|
|
310
|
+
isEnabled: z.boolean(),
|
|
311
|
+
});
|
|
312
|
+
export const zLinearProject = z.object({
|
|
313
|
+
id: z.string(),
|
|
314
|
+
name: z.string(),
|
|
315
|
+
});
|
|
316
|
+
export const zLinearInstallation = z.object({
|
|
317
|
+
id: z.string(),
|
|
318
|
+
orgId: z.string(),
|
|
319
|
+
installedById: z.string(),
|
|
320
|
+
workspaceId: z.string(),
|
|
321
|
+
workspaceName: z.string().nullable(),
|
|
322
|
+
appUserId: z.string(),
|
|
323
|
+
accessTokenExpiresAt: z.iso
|
|
324
|
+
.datetime()
|
|
325
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
326
|
+
.nullable(),
|
|
327
|
+
scope: z.string(),
|
|
328
|
+
createdAt: z.iso
|
|
329
|
+
.datetime()
|
|
330
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
331
|
+
updatedAt: z.iso
|
|
332
|
+
.datetime()
|
|
333
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
334
|
+
archivedAt: z.iso
|
|
335
|
+
.datetime()
|
|
336
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
337
|
+
.nullable(),
|
|
338
|
+
});
|
|
339
|
+
export const zLinearStatus = z.object({
|
|
340
|
+
hasInstallation: z.boolean(),
|
|
341
|
+
installations: z.array(zLinearInstallation),
|
|
342
|
+
});
|
|
343
|
+
export const zLinearOAuthStartResult = z.object({
|
|
344
|
+
url: z.url(),
|
|
345
|
+
});
|
|
287
346
|
export const zTelegramChatMapping = z.object({
|
|
288
347
|
id: z.string(),
|
|
289
348
|
chatId: z.string(),
|
|
@@ -392,11 +451,12 @@ export const zWebhookTrigger = z.object({
|
|
|
392
451
|
projectId: z.string(),
|
|
393
452
|
projectAgentId: z.string().nullable(),
|
|
394
453
|
senderUserId: z.string(),
|
|
395
|
-
provider: z.enum(["generic"]),
|
|
454
|
+
provider: z.enum(["generic", "linear"]),
|
|
396
455
|
providerInstallId: z.string().nullable(),
|
|
397
456
|
scopeFilter: z
|
|
398
457
|
.object({
|
|
399
458
|
channelId: z.string().optional(),
|
|
459
|
+
linearProjectId: z.string().optional(),
|
|
400
460
|
})
|
|
401
461
|
.nullable(),
|
|
402
462
|
secretHash: z.string().nullable(),
|
|
@@ -424,6 +484,10 @@ export const zCronTrigger = z.object({
|
|
|
424
484
|
inputMessage: z.string(),
|
|
425
485
|
schedule: z.string(),
|
|
426
486
|
timezone: z.string().nullable(),
|
|
487
|
+
until: z.iso
|
|
488
|
+
.datetime()
|
|
489
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
490
|
+
.nullable(),
|
|
427
491
|
isEnabled: z.boolean(),
|
|
428
492
|
syncedAt: z.iso
|
|
429
493
|
.datetime()
|
|
@@ -487,7 +551,7 @@ export const zTopology = z.object({
|
|
|
487
551
|
name: z.string(),
|
|
488
552
|
registrySlug: z.string().optional(),
|
|
489
553
|
remoteUrl: z.url().optional(),
|
|
490
|
-
auth: z.enum(["oauth", "basic", "api_key", "none"]).optional(),
|
|
554
|
+
auth: z.enum(["oauth", "basic", "api_key", "none", "mcp_provider"]).optional(),
|
|
491
555
|
credential: z
|
|
492
556
|
.string()
|
|
493
557
|
.regex(/^[a-z0-9][a-z0-9-]*$/)
|
|
@@ -510,7 +574,7 @@ export const zTopology = z.object({
|
|
|
510
574
|
id: z.string().regex(/^[a-z]+_[A-Za-z0-9]+$/),
|
|
511
575
|
slug: z.string().regex(/^[a-z0-9][a-z0-9-]*$/),
|
|
512
576
|
provider: z.string(),
|
|
513
|
-
authType: z.enum(["oauth", "basic", "api_key", "env"]).optional(),
|
|
577
|
+
authType: z.enum(["oauth", "basic", "api_key", "env", "mcp_provider"]).optional(),
|
|
514
578
|
vault: z.string().regex(/^[a-z0-9][a-z0-9-]*$/),
|
|
515
579
|
notes: z.string().optional(),
|
|
516
580
|
}))
|
|
@@ -656,6 +720,10 @@ export const zTopology = z.object({
|
|
|
656
720
|
project: z.string().regex(/^[a-z0-9][a-z0-9-]*$/),
|
|
657
721
|
schedule: z.string(),
|
|
658
722
|
timezone: z.string().optional(),
|
|
723
|
+
until: z.iso
|
|
724
|
+
.datetime()
|
|
725
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
726
|
+
.optional(),
|
|
659
727
|
inputMessage: z.string(),
|
|
660
728
|
enabled: z.boolean().optional(),
|
|
661
729
|
notes: z.string().optional(),
|
|
@@ -791,13 +859,19 @@ export const zMcpAuthConfig = z.union([
|
|
|
791
859
|
z.object({
|
|
792
860
|
type: z.literal("none"),
|
|
793
861
|
}),
|
|
862
|
+
z.object({
|
|
863
|
+
type: z.literal("mcp_provider"),
|
|
864
|
+
provider: z.enum(["composio"]),
|
|
865
|
+
toolkit: z.string(),
|
|
866
|
+
authConfigId: z.string(),
|
|
867
|
+
}),
|
|
794
868
|
]);
|
|
795
869
|
export const zAuthRequirementMcp = z.object({
|
|
796
870
|
mcpId: z.string(),
|
|
797
871
|
slug: z.string(),
|
|
798
872
|
name: z.string(),
|
|
799
873
|
icon: z.string().nullable(),
|
|
800
|
-
authType: z.enum(["none", "oauth", "api_key", "basic"]),
|
|
874
|
+
authType: z.enum(["none", "oauth", "api_key", "basic", "mcp_provider"]),
|
|
801
875
|
authConfig: zMcpAuthConfig.nullable(),
|
|
802
876
|
satisfied: z.boolean(),
|
|
803
877
|
neededByAgentIds: z.array(z.string()),
|
|
@@ -1229,7 +1303,7 @@ export const zMcp = z.object({
|
|
|
1229
1303
|
repository: zRepository.nullable(),
|
|
1230
1304
|
tools: z.array(z.string()),
|
|
1231
1305
|
prompts: z.array(z.string()),
|
|
1232
|
-
auth: z.enum(["none", "oauth", "api_key", "basic"]),
|
|
1306
|
+
auth: z.enum(["none", "oauth", "api_key", "basic", "mcp_provider"]),
|
|
1233
1307
|
authConfig: zMcpAuthConfig.nullable(),
|
|
1234
1308
|
env: z.record(z.string(), z.string()),
|
|
1235
1309
|
requiredCredentials: z.array(zRequiredCredential),
|
|
@@ -1267,6 +1341,23 @@ export const zGoogleWorkspaceStatus = z.object({
|
|
|
1267
1341
|
scopes: z.array(z.string()),
|
|
1268
1342
|
redirectUri: z.url(),
|
|
1269
1343
|
});
|
|
1344
|
+
export const zGithubRepoMapping = z.object({
|
|
1345
|
+
installationId: z.string(),
|
|
1346
|
+
accountLogin: z.string(),
|
|
1347
|
+
repoId: z.string(),
|
|
1348
|
+
repoFullName: z.string(),
|
|
1349
|
+
projectId: z.string(),
|
|
1350
|
+
projectName: z.string().nullable(),
|
|
1351
|
+
fallbackSenderUserId: z.string().nullable(),
|
|
1352
|
+
prListenerEnabled: z.boolean(),
|
|
1353
|
+
prListenerPrompt: z.string().nullable(),
|
|
1354
|
+
});
|
|
1355
|
+
export const zGithubRepo = z.object({
|
|
1356
|
+
installationId: z.string(),
|
|
1357
|
+
accountLogin: z.string(),
|
|
1358
|
+
repoId: z.string(),
|
|
1359
|
+
fullName: z.string(),
|
|
1360
|
+
});
|
|
1270
1361
|
export const zGithubInstallationResponse = z.object({
|
|
1271
1362
|
id: z.string(),
|
|
1272
1363
|
orgId: z.string(),
|
|
@@ -1281,6 +1372,13 @@ export const zGithubInstallationResponse = z.object({
|
|
|
1281
1372
|
}))
|
|
1282
1373
|
.nullable(),
|
|
1283
1374
|
appPermissions: z.record(z.string(), z.string()).nullable(),
|
|
1375
|
+
repoMappings: z.record(z.string(), z.object({
|
|
1376
|
+
repoFullName: z.string(),
|
|
1377
|
+
projectId: z.string(),
|
|
1378
|
+
fallbackSenderUserId: z.string().nullable(),
|
|
1379
|
+
prListenerEnabled: z.boolean(),
|
|
1380
|
+
prListenerPrompt: z.string().nullable(),
|
|
1381
|
+
})),
|
|
1284
1382
|
createdAt: z.iso
|
|
1285
1383
|
.datetime()
|
|
1286
1384
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
@@ -1682,6 +1780,20 @@ export const zAgentPublishQuery = z.object({
|
|
|
1682
1780
|
* Published agent
|
|
1683
1781
|
*/
|
|
1684
1782
|
export const zAgentPublishResponse = zAgent;
|
|
1783
|
+
export const zAgentCopyToOrgBody = z.object({
|
|
1784
|
+
name: z.string().min(1).max(256).optional(),
|
|
1785
|
+
version: z.string().optional(),
|
|
1786
|
+
});
|
|
1787
|
+
export const zAgentCopyToOrgPath = z.object({
|
|
1788
|
+
id: z.string().regex(/^agt_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1789
|
+
});
|
|
1790
|
+
export const zAgentCopyToOrgQuery = z.object({
|
|
1791
|
+
scope: z.enum(["user"]).optional(),
|
|
1792
|
+
});
|
|
1793
|
+
/**
|
|
1794
|
+
* Copied agent
|
|
1795
|
+
*/
|
|
1796
|
+
export const zAgentCopyToOrgResponse = zAgent;
|
|
1685
1797
|
export const zAgentDeprecateBody = z.object({
|
|
1686
1798
|
message: z.string().nullish(),
|
|
1687
1799
|
});
|
|
@@ -2184,9 +2296,43 @@ export const zGithubReposQuery = z.object({
|
|
|
2184
2296
|
/**
|
|
2185
2297
|
* Repositories
|
|
2186
2298
|
*/
|
|
2187
|
-
export const zGithubReposResponse = z.array(
|
|
2188
|
-
|
|
2189
|
-
|
|
2299
|
+
export const zGithubReposResponse = z.array(zGithubRepo);
|
|
2300
|
+
export const zGithubMappingsListQuery = z.object({
|
|
2301
|
+
scope: z.enum(["user"]).optional(),
|
|
2302
|
+
});
|
|
2303
|
+
/**
|
|
2304
|
+
* Repo mappings
|
|
2305
|
+
*/
|
|
2306
|
+
export const zGithubMappingsListResponse = z.array(zGithubRepoMapping);
|
|
2307
|
+
export const zGithubMappingUnsetPath = z.object({
|
|
2308
|
+
repoId: z.string().min(1),
|
|
2309
|
+
});
|
|
2310
|
+
export const zGithubMappingUnsetQuery = z.object({
|
|
2311
|
+
scope: z.enum(["user"]).optional(),
|
|
2312
|
+
installationId: z.string().min(1),
|
|
2313
|
+
});
|
|
2314
|
+
/**
|
|
2315
|
+
* Removed
|
|
2316
|
+
*/
|
|
2317
|
+
export const zGithubMappingUnsetResponse = z.void();
|
|
2318
|
+
export const zGithubMappingSetBody = z.object({
|
|
2319
|
+
installationId: z.string().min(1),
|
|
2320
|
+
repoFullName: z.string().min(1),
|
|
2321
|
+
projectId: z.string().min(1),
|
|
2322
|
+
fallbackSenderUserId: z.string().nullish().default(null),
|
|
2323
|
+
prListenerEnabled: z.boolean().optional().default(false),
|
|
2324
|
+
prListenerPrompt: z.string().nullish().default(null),
|
|
2325
|
+
});
|
|
2326
|
+
export const zGithubMappingSetPath = z.object({
|
|
2327
|
+
repoId: z.string().min(1),
|
|
2328
|
+
});
|
|
2329
|
+
export const zGithubMappingSetQuery = z.object({
|
|
2330
|
+
scope: z.enum(["user"]).optional(),
|
|
2331
|
+
});
|
|
2332
|
+
/**
|
|
2333
|
+
* Mapped
|
|
2334
|
+
*/
|
|
2335
|
+
export const zGithubMappingSetResponse = z.void();
|
|
2190
2336
|
export const zGoogleStatusQuery = z.object({
|
|
2191
2337
|
scope: z.enum(["user"]).optional(),
|
|
2192
2338
|
});
|
|
@@ -2262,7 +2408,7 @@ export const zMcpCreateBody = z.object({
|
|
|
2262
2408
|
repository: zRepository.nullish().default(null),
|
|
2263
2409
|
tools: z.array(z.string()).optional().default([]),
|
|
2264
2410
|
prompts: z.array(z.string()).optional().default([]),
|
|
2265
|
-
auth: z.enum(["none", "oauth", "api_key", "basic"]).optional().default("none"),
|
|
2411
|
+
auth: z.enum(["none", "oauth", "api_key", "basic", "mcp_provider"]).optional().default("none"),
|
|
2266
2412
|
authConfig: zMcpAuthConfig.nullish().default(null),
|
|
2267
2413
|
tags: z.array(z.string()).optional(),
|
|
2268
2414
|
});
|
|
@@ -2329,7 +2475,7 @@ export const zMcpUpdateBody = z.object({
|
|
|
2329
2475
|
repository: zRepository.nullish(),
|
|
2330
2476
|
tools: z.array(z.string()).optional(),
|
|
2331
2477
|
prompts: z.array(z.string()).optional(),
|
|
2332
|
-
auth: z.enum(["none", "oauth", "api_key", "basic"]).optional(),
|
|
2478
|
+
auth: z.enum(["none", "oauth", "api_key", "basic", "mcp_provider"]).optional(),
|
|
2333
2479
|
authConfig: zMcpAuthConfig.nullish(),
|
|
2334
2480
|
websiteMetadata: zWebsiteMetadata.nullish(),
|
|
2335
2481
|
tags: z.array(z.string()).optional(),
|
|
@@ -2364,6 +2510,19 @@ export const zMcpPublishQuery = z.object({
|
|
|
2364
2510
|
* Published MCP
|
|
2365
2511
|
*/
|
|
2366
2512
|
export const zMcpPublishResponse = zMcp;
|
|
2513
|
+
export const zMcpCopyToOrgBody = z.object({
|
|
2514
|
+
name: z.string().min(1).max(256).optional(),
|
|
2515
|
+
});
|
|
2516
|
+
export const zMcpCopyToOrgPath = z.object({
|
|
2517
|
+
id: z.string().regex(/^mcp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2518
|
+
});
|
|
2519
|
+
export const zMcpCopyToOrgQuery = z.object({
|
|
2520
|
+
scope: z.enum(["user"]).optional(),
|
|
2521
|
+
});
|
|
2522
|
+
/**
|
|
2523
|
+
* Copied MCP
|
|
2524
|
+
*/
|
|
2525
|
+
export const zMcpCopyToOrgResponse = zMcp;
|
|
2367
2526
|
export const zMcpDeprecateBody = z.object({
|
|
2368
2527
|
message: z.string().nullish(),
|
|
2369
2528
|
});
|
|
@@ -3379,6 +3538,20 @@ export const zSkillCopyQuery = z.object({
|
|
|
3379
3538
|
* Copied skill
|
|
3380
3539
|
*/
|
|
3381
3540
|
export const zSkillCopyResponse = zSkill;
|
|
3541
|
+
export const zSkillCopyToOrgBody = z.object({
|
|
3542
|
+
name: z.string().min(1).max(256).optional(),
|
|
3543
|
+
version: z.string().optional(),
|
|
3544
|
+
});
|
|
3545
|
+
export const zSkillCopyToOrgPath = z.object({
|
|
3546
|
+
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3547
|
+
});
|
|
3548
|
+
export const zSkillCopyToOrgQuery = z.object({
|
|
3549
|
+
scope: z.enum(["user"]).optional(),
|
|
3550
|
+
});
|
|
3551
|
+
/**
|
|
3552
|
+
* Copied skill
|
|
3553
|
+
*/
|
|
3554
|
+
export const zSkillCopyToOrgResponse = zSkill;
|
|
3382
3555
|
export const zSkillVersionListPath = z.object({
|
|
3383
3556
|
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3384
3557
|
});
|
|
@@ -3508,6 +3681,11 @@ export const zTriggerCreateBody = z.object({
|
|
|
3508
3681
|
inputMessage: z.string(),
|
|
3509
3682
|
schedule: z.string(),
|
|
3510
3683
|
timezone: z.string().nullish().default(null),
|
|
3684
|
+
until: z.iso
|
|
3685
|
+
.datetime()
|
|
3686
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
3687
|
+
.nullish()
|
|
3688
|
+
.default(null),
|
|
3511
3689
|
isEnabled: z.boolean().optional().default(true),
|
|
3512
3690
|
});
|
|
3513
3691
|
export const zTriggerCreateQuery = z.object({
|
|
@@ -3534,6 +3712,10 @@ export const zTriggerUpdateBody = z.object({
|
|
|
3534
3712
|
inputMessage: z.string().optional(),
|
|
3535
3713
|
schedule: z.string().optional(),
|
|
3536
3714
|
timezone: z.string().nullish(),
|
|
3715
|
+
until: z.iso
|
|
3716
|
+
.datetime()
|
|
3717
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
3718
|
+
.nullish(),
|
|
3537
3719
|
isEnabled: z.boolean().optional(),
|
|
3538
3720
|
projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3539
3721
|
});
|
|
@@ -3575,11 +3757,12 @@ export const zWebhookTriggerCreateBody = z.object({
|
|
|
3575
3757
|
projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3576
3758
|
projectAgentId: z.string().nullish().default(null),
|
|
3577
3759
|
senderUserId: z.string(),
|
|
3578
|
-
provider: z.enum(["generic"]),
|
|
3760
|
+
provider: z.enum(["generic", "linear"]),
|
|
3579
3761
|
providerInstallId: z.string().nullable(),
|
|
3580
3762
|
scopeFilter: z
|
|
3581
3763
|
.object({
|
|
3582
3764
|
channelId: z.string().optional(),
|
|
3765
|
+
linearProjectId: z.string().optional(),
|
|
3583
3766
|
})
|
|
3584
3767
|
.nullable(),
|
|
3585
3768
|
isEnabled: z.boolean().optional().default(true),
|
|
@@ -3608,6 +3791,7 @@ export const zWebhookTriggerUpdateBody = z.object({
|
|
|
3608
3791
|
scopeFilter: z
|
|
3609
3792
|
.object({
|
|
3610
3793
|
channelId: z.string().optional(),
|
|
3794
|
+
linearProjectId: z.string().optional(),
|
|
3611
3795
|
})
|
|
3612
3796
|
.nullish(),
|
|
3613
3797
|
isEnabled: z.boolean().optional(),
|
|
@@ -3786,6 +3970,65 @@ export const zTelegramChatSetQuery = z.object({
|
|
|
3786
3970
|
* Updated mapping
|
|
3787
3971
|
*/
|
|
3788
3972
|
export const zTelegramChatSetResponse = zTelegramChatMapping;
|
|
3973
|
+
export const zLinearUninstallQuery = z.object({
|
|
3974
|
+
scope: z.enum(["user"]).optional(),
|
|
3975
|
+
});
|
|
3976
|
+
/**
|
|
3977
|
+
* Removed
|
|
3978
|
+
*/
|
|
3979
|
+
export const zLinearUninstallResponse = z.void();
|
|
3980
|
+
export const zLinearInstallQuery = z.object({
|
|
3981
|
+
scope: z.enum(["user"]).optional(),
|
|
3982
|
+
returnTo: z.string().optional(),
|
|
3983
|
+
});
|
|
3984
|
+
/**
|
|
3985
|
+
* Authorization URL for the user to visit
|
|
3986
|
+
*/
|
|
3987
|
+
export const zLinearInstallResponse = zLinearOAuthStartResult;
|
|
3988
|
+
export const zLinearStatusQuery = z.object({
|
|
3989
|
+
scope: z.enum(["user"]).optional(),
|
|
3990
|
+
});
|
|
3991
|
+
/**
|
|
3992
|
+
* Linear installation status
|
|
3993
|
+
*/
|
|
3994
|
+
export const zLinearStatusResponse = zLinearStatus;
|
|
3995
|
+
export const zLinearProjectsQuery = z.object({
|
|
3996
|
+
scope: z.enum(["user"]).optional(),
|
|
3997
|
+
});
|
|
3998
|
+
/**
|
|
3999
|
+
* Linear projects (with a __global__ entry for issues without a project)
|
|
4000
|
+
*/
|
|
4001
|
+
export const zLinearProjectsResponse = z.array(zLinearProject);
|
|
4002
|
+
export const zLinearMappingsListQuery = z.object({
|
|
4003
|
+
scope: z.enum(["user"]).optional(),
|
|
4004
|
+
});
|
|
4005
|
+
/**
|
|
4006
|
+
* Linear project mappings
|
|
4007
|
+
*/
|
|
4008
|
+
export const zLinearMappingsListResponse = z.array(zLinearMapping);
|
|
4009
|
+
export const zLinearMappingsCreateBody = z.object({
|
|
4010
|
+
renProjectId: z.string().min(1),
|
|
4011
|
+
linearProjectId: z.string().min(1),
|
|
4012
|
+
senderUserId: z.string().min(1),
|
|
4013
|
+
projectAgentId: z.string().nullish(),
|
|
4014
|
+
});
|
|
4015
|
+
export const zLinearMappingsCreateQuery = z.object({
|
|
4016
|
+
scope: z.enum(["user"]).optional(),
|
|
4017
|
+
});
|
|
4018
|
+
/**
|
|
4019
|
+
* Created mapping
|
|
4020
|
+
*/
|
|
4021
|
+
export const zLinearMappingsCreateResponse = zLinearMapping;
|
|
4022
|
+
export const zLinearMappingsRemovePath = z.object({
|
|
4023
|
+
triggerId: z.string().min(1),
|
|
4024
|
+
});
|
|
4025
|
+
export const zLinearMappingsRemoveQuery = z.object({
|
|
4026
|
+
scope: z.enum(["user"]).optional(),
|
|
4027
|
+
});
|
|
4028
|
+
/**
|
|
4029
|
+
* Removed
|
|
4030
|
+
*/
|
|
4031
|
+
export const zLinearMappingsRemoveResponse = z.void();
|
|
3789
4032
|
export const zVaultListQuery = z.object({
|
|
3790
4033
|
scope: z.enum(["user"]).optional(),
|
|
3791
4034
|
limit: z.number().gte(1).lte(1000).optional(),
|