@renai-labs/sdk 0.1.22 → 0.1.23

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.
@@ -1163,155 +1163,6 @@ export const zSessionFilesPresignUploadResponse = z.object({
1163
1163
  .datetime()
1164
1164
  .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))$/),
1165
1165
  });
1166
- export const zAuthRequirementEnvSource = z.object({
1167
- kind: z.enum(["skill", "mcp"]),
1168
- id: z.string(),
1169
- name: z.string(),
1170
- });
1171
- export const zAuthRequirementEnv = z.union([
1172
- z.object({
1173
- kind: z.literal("env").optional().default("env"),
1174
- name: z
1175
- .string()
1176
- .min(1)
1177
- .max(128)
1178
- .regex(/^[A-Z_][A-Z0-9_]*$/),
1179
- description: z.string().max(512).optional(),
1180
- satisfied: z.boolean(),
1181
- neededBy: z.array(zAuthRequirementEnvSource),
1182
- }),
1183
- z.object({
1184
- kind: z.literal("secret"),
1185
- name: z
1186
- .string()
1187
- .min(1)
1188
- .max(64)
1189
- .regex(/^[a-z][A-Za-z0-9_]*$/),
1190
- description: z.string().max(512).optional(),
1191
- satisfied: z.boolean(),
1192
- neededBy: z.array(zAuthRequirementEnvSource),
1193
- }),
1194
- z.object({
1195
- kind: z.literal("oauth_app"),
1196
- name: z.string().min(1).max(128),
1197
- description: z.string().max(512).optional(),
1198
- satisfied: z.boolean(),
1199
- neededBy: z.array(zAuthRequirementEnvSource),
1200
- }),
1201
- z.object({
1202
- kind: z.literal("text"),
1203
- name: z
1204
- .string()
1205
- .min(1)
1206
- .max(64)
1207
- .regex(/^[a-z][A-Za-z0-9_]*$/),
1208
- description: z.string().max(512).optional(),
1209
- message: z.string().min(1).max(512),
1210
- placeholder: z.string().max(256).optional(),
1211
- when: zRequirementWhen.optional(),
1212
- satisfied: z.boolean(),
1213
- neededBy: z.array(zAuthRequirementEnvSource),
1214
- }),
1215
- z.object({
1216
- kind: z.literal("select"),
1217
- name: z
1218
- .string()
1219
- .min(1)
1220
- .max(64)
1221
- .regex(/^[a-z][A-Za-z0-9_]*$/),
1222
- description: z.string().max(512).optional(),
1223
- message: z.string().min(1).max(512),
1224
- options: z
1225
- .array(z.object({
1226
- label: z.string().min(1).max(256),
1227
- value: z.string().max(512),
1228
- hint: z.string().max(256).optional(),
1229
- }))
1230
- .min(1)
1231
- .max(64),
1232
- when: zRequirementWhen.optional(),
1233
- satisfied: z.boolean(),
1234
- neededBy: z.array(zAuthRequirementEnvSource),
1235
- }),
1236
- ]);
1237
- export const zMcpAuthConfig = z.union([
1238
- z.object({
1239
- type: z.literal("oauth"),
1240
- scopes: z.array(z.string().min(1).max(256)).optional(),
1241
- tokenEndpoint: z.string().optional(),
1242
- authorizationEndpoint: z.string().optional(),
1243
- tokenEndpointAuth: z.enum(["none", "client_secret_basic", "client_secret_post"]).optional(),
1244
- oauthAppName: z.string().min(1).max(128).optional(),
1245
- }),
1246
- z.object({
1247
- type: z.literal("header"),
1248
- headers: z
1249
- .array(z.object({
1250
- name: z
1251
- .string()
1252
- .min(1)
1253
- .max(128)
1254
- .regex(/^[A-Za-z0-9!#$%&'*+\-.^_`|~]+$/),
1255
- template: z.string().min(1).max(512),
1256
- }))
1257
- .max(8)
1258
- .optional()
1259
- .default([]),
1260
- queryParams: z
1261
- .array(z.object({
1262
- name: z
1263
- .string()
1264
- .min(1)
1265
- .max(128)
1266
- .regex(/^[A-Za-z0-9._~-]+$/),
1267
- template: z.string().min(1).max(512),
1268
- }))
1269
- .max(8)
1270
- .optional()
1271
- .default([]),
1272
- }),
1273
- z.object({
1274
- type: z.literal("api_key"),
1275
- headerName: z
1276
- .string()
1277
- .min(1)
1278
- .max(128)
1279
- .regex(/^[A-Za-z0-9!#$%&'*+\-.^_`|~]+$/)
1280
- .optional(),
1281
- queryParam: z
1282
- .string()
1283
- .min(1)
1284
- .max(128)
1285
- .regex(/^[A-Za-z0-9._~-]+$/)
1286
- .optional(),
1287
- }),
1288
- z.object({
1289
- type: z.literal("basic"),
1290
- }),
1291
- z.object({
1292
- type: z.literal("none"),
1293
- }),
1294
- z.object({
1295
- type: z.literal("mcp_provider"),
1296
- provider: z.enum(["composio"]),
1297
- toolkit: z.string(),
1298
- authConfigId: z.string(),
1299
- }),
1300
- ]);
1301
- export const zAuthRequirementMcp = z.object({
1302
- mcpId: z.string(),
1303
- slug: z.string(),
1304
- name: z.string(),
1305
- icon: z.string().nullable(),
1306
- authType: z.enum(["none", "oauth", "api_key", "basic", "mcp_provider"]),
1307
- authConfig: zMcpAuthConfig.nullable(),
1308
- satisfied: z.boolean(),
1309
- neededByAgentIds: z.array(z.string()),
1310
- });
1311
- export const zAuthRequirements = z.object({
1312
- mcps: z.array(zAuthRequirementMcp),
1313
- envs: z.array(zAuthRequirementEnv),
1314
- });
1315
1166
  export const zSessionTracesResponse = z.object({
1316
1167
  configured: z.boolean(),
1317
1168
  traces: z.array(z.record(z.string(), z.unknown())),
@@ -1386,6 +1237,8 @@ export const zOpencodeSession = z.object({
1386
1237
  });
1387
1238
  export const zSessionCreateStatus = z.union([
1388
1239
  z.object({
1240
+ podId: z.string(),
1241
+ projectId: z.string().nullable(),
1389
1242
  status: z.literal("pending"),
1390
1243
  phase: z.enum([
1391
1244
  "waiting-sandbox",
@@ -1398,10 +1251,14 @@ export const zSessionCreateStatus = z.union([
1398
1251
  ]),
1399
1252
  }),
1400
1253
  z.object({
1254
+ podId: z.string(),
1255
+ projectId: z.string().nullable(),
1401
1256
  status: z.literal("ready"),
1402
1257
  sessionId: z.string(),
1403
1258
  }),
1404
1259
  z.object({
1260
+ podId: z.string(),
1261
+ projectId: z.string().nullable(),
1405
1262
  status: z.literal("failed"),
1406
1263
  reason: z.string(),
1407
1264
  }),
@@ -1548,6 +1405,7 @@ export const zProject = z.object({
1548
1405
  userId: z.string().nullable(),
1549
1406
  podId: z.string(),
1550
1407
  name: z.string(),
1408
+ icon: z.string().nullable(),
1551
1409
  description: z.string().nullable(),
1552
1410
  slug: z.string(),
1553
1411
  defaultModel: z.string().nullable(),
@@ -1656,6 +1514,155 @@ export const zPodSandboxProvisionResponse = z.object({
1656
1514
  workflowId: z.string(),
1657
1515
  status: z.literal("provisioning"),
1658
1516
  });
1517
+ export const zAuthRequirementEnvSource = z.object({
1518
+ kind: z.enum(["skill", "mcp"]),
1519
+ id: z.string(),
1520
+ name: z.string(),
1521
+ });
1522
+ export const zAuthRequirementEnv = z.union([
1523
+ z.object({
1524
+ kind: z.literal("env").optional().default("env"),
1525
+ name: z
1526
+ .string()
1527
+ .min(1)
1528
+ .max(128)
1529
+ .regex(/^[A-Z_][A-Z0-9_]*$/),
1530
+ description: z.string().max(512).optional(),
1531
+ satisfied: z.boolean(),
1532
+ neededBy: z.array(zAuthRequirementEnvSource),
1533
+ }),
1534
+ z.object({
1535
+ kind: z.literal("secret"),
1536
+ name: z
1537
+ .string()
1538
+ .min(1)
1539
+ .max(64)
1540
+ .regex(/^[a-z][A-Za-z0-9_]*$/),
1541
+ description: z.string().max(512).optional(),
1542
+ satisfied: z.boolean(),
1543
+ neededBy: z.array(zAuthRequirementEnvSource),
1544
+ }),
1545
+ z.object({
1546
+ kind: z.literal("oauth_app"),
1547
+ name: z.string().min(1).max(128),
1548
+ description: z.string().max(512).optional(),
1549
+ satisfied: z.boolean(),
1550
+ neededBy: z.array(zAuthRequirementEnvSource),
1551
+ }),
1552
+ z.object({
1553
+ kind: z.literal("text"),
1554
+ name: z
1555
+ .string()
1556
+ .min(1)
1557
+ .max(64)
1558
+ .regex(/^[a-z][A-Za-z0-9_]*$/),
1559
+ description: z.string().max(512).optional(),
1560
+ message: z.string().min(1).max(512),
1561
+ placeholder: z.string().max(256).optional(),
1562
+ when: zRequirementWhen.optional(),
1563
+ satisfied: z.boolean(),
1564
+ neededBy: z.array(zAuthRequirementEnvSource),
1565
+ }),
1566
+ z.object({
1567
+ kind: z.literal("select"),
1568
+ name: z
1569
+ .string()
1570
+ .min(1)
1571
+ .max(64)
1572
+ .regex(/^[a-z][A-Za-z0-9_]*$/),
1573
+ description: z.string().max(512).optional(),
1574
+ message: z.string().min(1).max(512),
1575
+ options: z
1576
+ .array(z.object({
1577
+ label: z.string().min(1).max(256),
1578
+ value: z.string().max(512),
1579
+ hint: z.string().max(256).optional(),
1580
+ }))
1581
+ .min(1)
1582
+ .max(64),
1583
+ when: zRequirementWhen.optional(),
1584
+ satisfied: z.boolean(),
1585
+ neededBy: z.array(zAuthRequirementEnvSource),
1586
+ }),
1587
+ ]);
1588
+ export const zMcpAuthConfig = z.union([
1589
+ z.object({
1590
+ type: z.literal("oauth"),
1591
+ scopes: z.array(z.string().min(1).max(256)).optional(),
1592
+ tokenEndpoint: z.string().optional(),
1593
+ authorizationEndpoint: z.string().optional(),
1594
+ tokenEndpointAuth: z.enum(["none", "client_secret_basic", "client_secret_post"]).optional(),
1595
+ oauthAppName: z.string().min(1).max(128).optional(),
1596
+ }),
1597
+ z.object({
1598
+ type: z.literal("header"),
1599
+ headers: z
1600
+ .array(z.object({
1601
+ name: z
1602
+ .string()
1603
+ .min(1)
1604
+ .max(128)
1605
+ .regex(/^[A-Za-z0-9!#$%&'*+\-.^_`|~]+$/),
1606
+ template: z.string().min(1).max(512),
1607
+ }))
1608
+ .max(8)
1609
+ .optional()
1610
+ .default([]),
1611
+ queryParams: z
1612
+ .array(z.object({
1613
+ name: z
1614
+ .string()
1615
+ .min(1)
1616
+ .max(128)
1617
+ .regex(/^[A-Za-z0-9._~-]+$/),
1618
+ template: z.string().min(1).max(512),
1619
+ }))
1620
+ .max(8)
1621
+ .optional()
1622
+ .default([]),
1623
+ }),
1624
+ z.object({
1625
+ type: z.literal("api_key"),
1626
+ headerName: z
1627
+ .string()
1628
+ .min(1)
1629
+ .max(128)
1630
+ .regex(/^[A-Za-z0-9!#$%&'*+\-.^_`|~]+$/)
1631
+ .optional(),
1632
+ queryParam: z
1633
+ .string()
1634
+ .min(1)
1635
+ .max(128)
1636
+ .regex(/^[A-Za-z0-9._~-]+$/)
1637
+ .optional(),
1638
+ }),
1639
+ z.object({
1640
+ type: z.literal("basic"),
1641
+ }),
1642
+ z.object({
1643
+ type: z.literal("none"),
1644
+ }),
1645
+ z.object({
1646
+ type: z.literal("mcp_provider"),
1647
+ provider: z.enum(["composio"]),
1648
+ toolkit: z.string(),
1649
+ authConfigId: z.string(),
1650
+ }),
1651
+ ]);
1652
+ export const zAuthRequirementMcp = z.object({
1653
+ mcpId: z.string(),
1654
+ slug: z.string(),
1655
+ name: z.string(),
1656
+ icon: z.string().nullable(),
1657
+ authType: z.enum(["none", "oauth", "api_key", "basic", "mcp_provider"]),
1658
+ authConfig: zMcpAuthConfig.nullable(),
1659
+ satisfied: z.boolean(),
1660
+ neededByAgentIds: z.array(z.string()),
1661
+ });
1662
+ export const zAuthRequirements = z.object({
1663
+ mcps: z.array(zAuthRequirementMcp),
1664
+ envs: z.array(zAuthRequirementEnv),
1665
+ });
1659
1666
  export const zPodResolvedCredential = z.object({
1660
1667
  credentialId: z.string(),
1661
1668
  name: z.string(),
@@ -1687,6 +1694,7 @@ export const zPresetTemplate = z.enum(["xs", "small", "medium", "large", "xl"]);
1687
1694
  export const zPod = z.object({
1688
1695
  id: z.string(),
1689
1696
  name: z.string(),
1697
+ icon: z.string().nullable(),
1690
1698
  slug: z.string(),
1691
1699
  description: z.string().nullable(),
1692
1700
  isPrivate: z.boolean(),
@@ -3695,6 +3703,7 @@ export const zPodListQuery = z.object({
3695
3703
  export const zPodListResponse = z.array(zPod);
3696
3704
  export const zPodCreateBody = z.object({
3697
3705
  name: z.string().min(1).max(256),
3706
+ icon: z.string().nullish().default(null),
3698
3707
  environmentId: z.string().nullish().default(null),
3699
3708
  description: z.string().optional().default(""),
3700
3709
  instructions: z.string().optional().default(""),
@@ -3717,6 +3726,7 @@ export const zPodGetPath = z.object({
3717
3726
  export const zPodGetResponse = zPod;
3718
3727
  export const zPodUpdateBody = z.object({
3719
3728
  name: z.string().min(1).max(256).optional(),
3729
+ icon: z.string().nullish(),
3720
3730
  description: z.string().optional(),
3721
3731
  isPrivate: z.boolean().optional(),
3722
3732
  environmentId: z.string().nullish(),
@@ -3789,6 +3799,13 @@ export const zPodCredentialListPath = z.object({
3789
3799
  * Resolved credentials
3790
3800
  */
3791
3801
  export const zPodCredentialListResponse = zPodCredentials;
3802
+ export const zPodAuthRequirementsPath = z.object({
3803
+ id: z.string().regex(/^pod_[0-9A-HJKMNP-TV-Z]{26}$/),
3804
+ });
3805
+ /**
3806
+ * Required credentials and whether each is satisfied
3807
+ */
3808
+ export const zPodAuthRequirementsResponse = zAuthRequirements;
3792
3809
  export const zPodSandboxProvisionPath = z.object({
3793
3810
  podId: z.string().regex(/^pod_[0-9A-HJKMNP-TV-Z]{26}$/),
3794
3811
  });
@@ -3941,6 +3958,7 @@ export const zProjectListResponse = z.array(zProject);
3941
3958
  export const zProjectCreateBody = z.object({
3942
3959
  podId: z.string().regex(/^pod_[0-9A-HJKMNP-TV-Z]{26}$/),
3943
3960
  name: z.string().min(1).max(256),
3961
+ icon: z.string().nullish().default(null),
3944
3962
  description: z.string().optional().default(""),
3945
3963
  instructions: z.string().optional().default(""),
3946
3964
  permission: zPermissionConfig.optional(),
@@ -3961,6 +3979,7 @@ export const zProjectGetPath = z.object({
3961
3979
  export const zProjectGetResponse = zProject;
3962
3980
  export const zProjectUpdateBody = z.object({
3963
3981
  name: z.string().min(1).max(256).optional(),
3982
+ icon: z.string().nullish(),
3964
3983
  description: z.string().optional(),
3965
3984
  permission: zPermissionConfig.optional(),
3966
3985
  gitRepos: z.array(zProjectGitRepo).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renai-labs/sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "TypeScript SDK for the Ren API, generated from OpenAPI.",
5
5
  "license": "MIT",
6
6
  "author": "Ren Labs, Inc.",