@renai-labs/sdk 0.1.5 → 0.1.7

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.
@@ -138,6 +138,8 @@ export const zAgentLatestVersion = z.object({
138
138
  agentId: z.string(),
139
139
  version: z.string().regex(/^\d+\.\d+\.\d+$/),
140
140
  description: z.string().nullable(),
141
+ prompt: z.string().nullable(),
142
+ model: z.string().nullable(),
141
143
  skills: z.array(z.object({
142
144
  skillId: z.string(),
143
145
  skillVersionId: z.string().nullish().default(null),
@@ -264,6 +266,10 @@ export const zVault = z.object({
264
266
  export const zSlackChannel = z.object({
265
267
  id: z.string(),
266
268
  name: z.string(),
269
+ projectId: z.string().nullable(),
270
+ defaultProjectAgentId: z.string().nullable(),
271
+ fallbackSenderUserId: z.string().nullable(),
272
+ projectName: z.string().nullable(),
267
273
  });
268
274
  export const zSlackInstallationResponse = z.object({
269
275
  id: z.string(),
@@ -273,12 +279,6 @@ export const zSlackInstallationResponse = z.object({
273
279
  teamName: z.string().nullable(),
274
280
  botUserId: z.string(),
275
281
  scope: z.string(),
276
- channelMappings: z.record(z.string(), z.object({
277
- channelName: z.string().nullable(),
278
- projectId: z.string(),
279
- defaultProjectAgentId: z.string().nullable(),
280
- fallbackSenderUserId: z.string().nullable(),
281
- })),
282
282
  createdAt: z.iso
283
283
  .datetime()
284
284
  .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))$/),
@@ -294,6 +294,9 @@ export const zSlackStatus = z.object({
294
294
  hasInstallation: z.boolean(),
295
295
  installations: z.array(zSlackInstallationResponse),
296
296
  });
297
+ export const zSlackOAuthStartResult = z.object({
298
+ url: z.url(),
299
+ });
297
300
  export const zWebhookTrigger = z.object({
298
301
  id: z.string(),
299
302
  projectId: z.string(),
@@ -949,6 +952,9 @@ export const zGithubStatus = z.object({
949
952
  hasUserCredential: z.boolean(),
950
953
  installations: z.array(zGithubInstallationResponse),
951
954
  });
955
+ export const zGithubOAuthStartResult = z.object({
956
+ url: z.url(),
957
+ });
952
958
  export const zStoreStartUploadResponse = z.object({
953
959
  url: z.string(),
954
960
  expiresAt: z.iso
@@ -1767,52 +1773,45 @@ export const zFileStoreFilesFinalizeUploadQuery = z.object({
1767
1773
  * Finalized file info
1768
1774
  */
1769
1775
  export const zFileStoreFilesFinalizeUploadResponse = zFileStoreFile;
1770
- export const zGithubStatusQuery = z.object({
1776
+ export const zGithubUninstallQuery = z.object({
1771
1777
  scope: z.enum(["user"]).optional(),
1772
1778
  });
1773
1779
  /**
1774
- * GitHub configuration status
1780
+ * Removed
1775
1781
  */
1776
- export const zGithubStatusResponse = zGithubStatus;
1777
- export const zGithubInstallationListQuery = z.object({
1782
+ export const zGithubUninstallResponse = z.void();
1783
+ export const zGithubInstallQuery = z.object({
1778
1784
  scope: z.enum(["user"]).optional(),
1785
+ returnTo: z.string().optional(),
1779
1786
  });
1780
1787
  /**
1781
- * Installations
1788
+ * Authorization URL for the user to visit
1782
1789
  */
1783
- export const zGithubInstallationListResponse = z.array(zGithubInstallationResponse);
1784
- export const zGithubInstallationReposListPath = z.object({
1785
- id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
1786
- });
1787
- export const zGithubInstallationReposListQuery = z.object({
1790
+ export const zGithubInstallResponse = zGithubOAuthStartResult;
1791
+ export const zGithubConnectQuery = z.object({
1788
1792
  scope: z.enum(["user"]).optional(),
1793
+ returnTo: z.string().optional(),
1789
1794
  });
1790
1795
  /**
1791
- * Repositories
1796
+ * Authorization URL for the user to visit
1792
1797
  */
1793
- export const zGithubInstallationReposListResponse = z.array(z.object({
1794
- fullName: z.string(),
1795
- }));
1796
- export const zGithubInstallationRefreshPath = z.object({
1797
- id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
1798
- });
1799
- export const zGithubInstallationRefreshQuery = z.object({
1798
+ export const zGithubConnectResponse = zGithubOAuthStartResult;
1799
+ export const zGithubStatusQuery = z.object({
1800
1800
  scope: z.enum(["user"]).optional(),
1801
1801
  });
1802
1802
  /**
1803
- * Updated installation snapshot
1803
+ * GitHub configuration status
1804
1804
  */
1805
- export const zGithubInstallationRefreshResponse = zGithubInstallationResponse;
1806
- export const zGithubInstallationRemovePath = z.object({
1807
- id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
1808
- });
1809
- export const zGithubInstallationRemoveQuery = z.object({
1805
+ export const zGithubStatusResponse = zGithubStatus;
1806
+ export const zGithubReposQuery = z.object({
1810
1807
  scope: z.enum(["user"]).optional(),
1811
1808
  });
1812
1809
  /**
1813
- * Removed
1810
+ * Repositories
1814
1811
  */
1815
- export const zGithubInstallationRemoveResponse = z.void();
1812
+ export const zGithubReposResponse = z.array(z.object({
1813
+ fullName: z.string(),
1814
+ }));
1816
1815
  export const zMcpListQuery = z.object({
1817
1816
  scope: z.enum(["user"]).optional(),
1818
1817
  limit: z.number().gte(1).lte(1000).optional(),
@@ -2404,6 +2403,21 @@ export const zProjectAgentRemoveQuery = z.object({
2404
2403
  * Detached agent
2405
2404
  */
2406
2405
  export const zProjectAgentRemoveResponse = zProjectAgent;
2406
+ export const zProjectAgentUpdateBody = z.object({
2407
+ agentVersionId: z.string().nullish(),
2408
+ type: z.enum(["primary", "subagent", "all"]).optional(),
2409
+ });
2410
+ export const zProjectAgentUpdatePath = z.object({
2411
+ id: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
2412
+ agentId: z.string().regex(/^agt_[0-9A-HJKMNP-TV-Z]{26}$/),
2413
+ });
2414
+ export const zProjectAgentUpdateQuery = z.object({
2415
+ scope: z.enum(["user"]).optional(),
2416
+ });
2417
+ /**
2418
+ * Updated agent membership
2419
+ */
2420
+ export const zProjectAgentUpdateResponse = zProjectAgent;
2407
2421
  export const zProjectFileStoreListPath = z.object({
2408
2422
  id: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
2409
2423
  });
@@ -3130,61 +3144,60 @@ export const zWebhookTriggerArchiveQuery = z.object({
3130
3144
  * Archived webhook trigger
3131
3145
  */
3132
3146
  export const zWebhookTriggerArchiveResponse = zWebhookTrigger;
3133
- export const zSlackStatusQuery = z.object({
3147
+ export const zSlackUninstallQuery = z.object({
3134
3148
  scope: z.enum(["user"]).optional(),
3135
3149
  });
3136
3150
  /**
3137
- * Slack installation status
3151
+ * Removed
3138
3152
  */
3139
- export const zSlackStatusResponse = zSlackStatus;
3140
- export const zSlackInstallationRemovePath = z.object({
3141
- id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
3142
- });
3143
- export const zSlackInstallationRemoveQuery = z.object({
3153
+ export const zSlackUninstallResponse = z.void();
3154
+ export const zSlackInstallQuery = z.object({
3144
3155
  scope: z.enum(["user"]).optional(),
3156
+ returnTo: z.string().optional(),
3145
3157
  });
3146
3158
  /**
3147
- * Removed
3159
+ * Authorization URL for the user to visit
3148
3160
  */
3149
- export const zSlackInstallationRemoveResponse = z.void();
3150
- export const zSlackInstallationChannelListPath = z.object({
3151
- id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
3161
+ export const zSlackInstallResponse = zSlackOAuthStartResult;
3162
+ export const zSlackStatusQuery = z.object({
3163
+ scope: z.enum(["user"]).optional(),
3152
3164
  });
3153
- export const zSlackInstallationChannelListQuery = z.object({
3165
+ /**
3166
+ * Slack installation status
3167
+ */
3168
+ export const zSlackStatusResponse = zSlackStatus;
3169
+ export const zSlackChannelListQuery = z.object({
3154
3170
  scope: z.enum(["user"]).optional(),
3155
3171
  });
3156
3172
  /**
3157
3173
  * Channels visible to the Ren bot
3158
3174
  */
3159
- export const zSlackInstallationChannelListResponse = z.array(zSlackChannel);
3160
- export const zSlackInstallationChannelRemovePath = z.object({
3161
- id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
3175
+ export const zSlackChannelListResponse = z.array(zSlackChannel);
3176
+ export const zSlackChannelUnsetPath = z.object({
3162
3177
  channelId: z.string().min(1),
3163
3178
  });
3164
- export const zSlackInstallationChannelRemoveQuery = z.object({
3179
+ export const zSlackChannelUnsetQuery = z.object({
3165
3180
  scope: z.enum(["user"]).optional(),
3166
3181
  });
3167
3182
  /**
3168
3183
  * Updated installation
3169
3184
  */
3170
- export const zSlackInstallationChannelRemoveResponse = zSlackInstallationResponse;
3171
- export const zSlackInstallationChannelSetBody = z.object({
3172
- channelName: z.string().nullable(),
3185
+ export const zSlackChannelUnsetResponse = zSlackInstallationResponse;
3186
+ export const zSlackChannelSetBody = z.object({
3173
3187
  projectId: z.string(),
3174
3188
  defaultProjectAgentId: z.string().nullable(),
3175
3189
  fallbackSenderUserId: z.string().nullable(),
3176
3190
  });
3177
- export const zSlackInstallationChannelSetPath = z.object({
3178
- id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
3191
+ export const zSlackChannelSetPath = z.object({
3179
3192
  channelId: z.string().min(1),
3180
3193
  });
3181
- export const zSlackInstallationChannelSetQuery = z.object({
3194
+ export const zSlackChannelSetQuery = z.object({
3182
3195
  scope: z.enum(["user"]).optional(),
3183
3196
  });
3184
3197
  /**
3185
3198
  * Updated installation
3186
3199
  */
3187
- export const zSlackInstallationChannelSetResponse = zSlackInstallationResponse;
3200
+ export const zSlackChannelSetResponse = zSlackInstallationResponse;
3188
3201
  export const zVaultListQuery = z.object({
3189
3202
  scope: z.enum(["user"]).optional(),
3190
3203
  limit: z.number().gte(1).lte(1000).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renai-labs/sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "TypeScript SDK for the Ren API, generated from OpenAPI.",
5
5
  "license": "MIT",
6
6
  "author": "Ren Labs, Inc.",