@renai-labs/sdk 0.1.4 → 0.1.6

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.
@@ -813,6 +813,14 @@ export declare const zVault: z.ZodObject<{
813
813
  updatedAt: z.ZodISODateTime;
814
814
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
815
815
  }, z.core.$strip>;
816
+ export declare const zSlackChannel: z.ZodObject<{
817
+ id: z.ZodString;
818
+ name: z.ZodString;
819
+ projectId: z.ZodNullable<z.ZodString>;
820
+ defaultProjectAgentId: z.ZodNullable<z.ZodString>;
821
+ fallbackSenderUserId: z.ZodNullable<z.ZodString>;
822
+ projectName: z.ZodNullable<z.ZodString>;
823
+ }, z.core.$strip>;
816
824
  export declare const zSlackInstallationResponse: z.ZodObject<{
817
825
  id: z.ZodString;
818
826
  orgId: z.ZodString;
@@ -840,13 +848,15 @@ export declare const zSlackStatus: z.ZodObject<{
840
848
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
841
849
  }, z.core.$strip>>;
842
850
  }, z.core.$strip>;
851
+ export declare const zSlackOAuthStartResult: z.ZodObject<{
852
+ url: z.ZodURL;
853
+ }, z.core.$strip>;
843
854
  export declare const zWebhookTrigger: z.ZodObject<{
844
855
  id: z.ZodString;
845
856
  projectId: z.ZodString;
846
857
  projectAgentId: z.ZodString;
847
858
  senderUserId: z.ZodString;
848
859
  provider: z.ZodEnum<{
849
- slack: "slack";
850
860
  generic: "generic";
851
861
  }>;
852
862
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -866,7 +876,6 @@ export declare const zWebhookTriggerCreateResult: z.ZodObject<{
866
876
  projectAgentId: z.ZodString;
867
877
  senderUserId: z.ZodString;
868
878
  provider: z.ZodEnum<{
869
- slack: "slack";
870
879
  generic: "generic";
871
880
  }>;
872
881
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -972,7 +981,7 @@ export declare const zSessionFilesPresignUploadResponse: z.ZodObject<{
972
981
  uploadUrl: z.ZodString;
973
982
  sandboxPath: z.ZodString;
974
983
  podVolume: z.ZodObject<{
975
- projectId: z.ZodString;
984
+ projectSlug: z.ZodString;
976
985
  sessionId: z.ZodString;
977
986
  kind: z.ZodEnum<{
978
987
  outputs: "outputs";
@@ -1738,6 +1747,9 @@ export declare const zGithubStatus: z.ZodObject<{
1738
1747
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
1739
1748
  }, z.core.$strip>>;
1740
1749
  }, z.core.$strip>;
1750
+ export declare const zGithubOAuthStartResult: z.ZodObject<{
1751
+ url: z.ZodURL;
1752
+ }, z.core.$strip>;
1741
1753
  export declare const zStoreStartUploadResponse: z.ZodObject<{
1742
1754
  url: z.ZodString;
1743
1755
  expiresAt: z.ZodISODateTime;
@@ -6098,6 +6110,39 @@ export declare const zFileStoreFilesFinalizeUploadResponse: z.ZodObject<{
6098
6110
  lastModified: z.ZodOptional<z.ZodISODateTime>;
6099
6111
  contentSha256: z.ZodOptional<z.ZodString>;
6100
6112
  }, z.core.$strip>;
6113
+ export declare const zGithubUninstallQuery: z.ZodObject<{
6114
+ scope: z.ZodOptional<z.ZodEnum<{
6115
+ user: "user";
6116
+ }>>;
6117
+ }, z.core.$strip>;
6118
+ /**
6119
+ * Removed
6120
+ */
6121
+ export declare const zGithubUninstallResponse: z.ZodVoid;
6122
+ export declare const zGithubInstallQuery: z.ZodObject<{
6123
+ scope: z.ZodOptional<z.ZodEnum<{
6124
+ user: "user";
6125
+ }>>;
6126
+ returnTo: z.ZodOptional<z.ZodString>;
6127
+ }, z.core.$strip>;
6128
+ /**
6129
+ * Authorization URL for the user to visit
6130
+ */
6131
+ export declare const zGithubInstallResponse: z.ZodObject<{
6132
+ url: z.ZodURL;
6133
+ }, z.core.$strip>;
6134
+ export declare const zGithubConnectQuery: z.ZodObject<{
6135
+ scope: z.ZodOptional<z.ZodEnum<{
6136
+ user: "user";
6137
+ }>>;
6138
+ returnTo: z.ZodOptional<z.ZodString>;
6139
+ }, z.core.$strip>;
6140
+ /**
6141
+ * Authorization URL for the user to visit
6142
+ */
6143
+ export declare const zGithubConnectResponse: z.ZodObject<{
6144
+ url: z.ZodURL;
6145
+ }, z.core.$strip>;
6101
6146
  export declare const zGithubStatusQuery: z.ZodObject<{
6102
6147
  scope: z.ZodOptional<z.ZodEnum<{
6103
6148
  user: "user";
@@ -6132,40 +6177,7 @@ export declare const zGithubStatusResponse: z.ZodObject<{
6132
6177
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
6133
6178
  }, z.core.$strip>>;
6134
6179
  }, z.core.$strip>;
6135
- export declare const zGithubInstallationListQuery: z.ZodObject<{
6136
- scope: z.ZodOptional<z.ZodEnum<{
6137
- user: "user";
6138
- }>>;
6139
- }, z.core.$strip>;
6140
- /**
6141
- * Installations
6142
- */
6143
- export declare const zGithubInstallationListResponse: z.ZodArray<z.ZodObject<{
6144
- id: z.ZodString;
6145
- orgId: z.ZodString;
6146
- installedById: z.ZodNullable<z.ZodString>;
6147
- installationId: z.ZodString;
6148
- accountLogin: z.ZodString;
6149
- accountType: z.ZodEnum<{
6150
- User: "User";
6151
- Organization: "Organization";
6152
- }>;
6153
- repositorySelection: z.ZodEnum<{
6154
- all: "all";
6155
- selected: "selected";
6156
- }>;
6157
- selectedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
6158
- fullName: z.ZodString;
6159
- }, z.core.$strip>>>;
6160
- appPermissions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
6161
- createdAt: z.ZodISODateTime;
6162
- updatedAt: z.ZodISODateTime;
6163
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
6164
- }, z.core.$strip>>;
6165
- export declare const zGithubInstallationReposListPath: z.ZodObject<{
6166
- id: z.ZodString;
6167
- }, z.core.$strip>;
6168
- export declare const zGithubInstallationReposListQuery: z.ZodObject<{
6180
+ export declare const zGithubReposQuery: z.ZodObject<{
6169
6181
  scope: z.ZodOptional<z.ZodEnum<{
6170
6182
  user: "user";
6171
6183
  }>>;
@@ -6173,54 +6185,9 @@ export declare const zGithubInstallationReposListQuery: z.ZodObject<{
6173
6185
  /**
6174
6186
  * Repositories
6175
6187
  */
6176
- export declare const zGithubInstallationReposListResponse: z.ZodArray<z.ZodObject<{
6188
+ export declare const zGithubReposResponse: z.ZodArray<z.ZodObject<{
6177
6189
  fullName: z.ZodString;
6178
6190
  }, z.core.$strip>>;
6179
- export declare const zGithubInstallationRefreshPath: z.ZodObject<{
6180
- id: z.ZodString;
6181
- }, z.core.$strip>;
6182
- export declare const zGithubInstallationRefreshQuery: z.ZodObject<{
6183
- scope: z.ZodOptional<z.ZodEnum<{
6184
- user: "user";
6185
- }>>;
6186
- }, z.core.$strip>;
6187
- /**
6188
- * Updated installation snapshot
6189
- */
6190
- export declare const zGithubInstallationRefreshResponse: z.ZodObject<{
6191
- id: z.ZodString;
6192
- orgId: z.ZodString;
6193
- installedById: z.ZodNullable<z.ZodString>;
6194
- installationId: z.ZodString;
6195
- accountLogin: z.ZodString;
6196
- accountType: z.ZodEnum<{
6197
- User: "User";
6198
- Organization: "Organization";
6199
- }>;
6200
- repositorySelection: z.ZodEnum<{
6201
- all: "all";
6202
- selected: "selected";
6203
- }>;
6204
- selectedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
6205
- fullName: z.ZodString;
6206
- }, z.core.$strip>>>;
6207
- appPermissions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
6208
- createdAt: z.ZodISODateTime;
6209
- updatedAt: z.ZodISODateTime;
6210
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
6211
- }, z.core.$strip>;
6212
- export declare const zGithubInstallationRemovePath: z.ZodObject<{
6213
- id: z.ZodString;
6214
- }, z.core.$strip>;
6215
- export declare const zGithubInstallationRemoveQuery: z.ZodObject<{
6216
- scope: z.ZodOptional<z.ZodEnum<{
6217
- user: "user";
6218
- }>>;
6219
- }, z.core.$strip>;
6220
- /**
6221
- * Removed
6222
- */
6223
- export declare const zGithubInstallationRemoveResponse: z.ZodVoid;
6224
6191
  export declare const zMcpListQuery: z.ZodObject<{
6225
6192
  scope: z.ZodOptional<z.ZodEnum<{
6226
6193
  user: "user";
@@ -9756,7 +9723,7 @@ export declare const zSessionUpdateBody: z.ZodObject<{
9756
9723
  message: z.ZodString;
9757
9724
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9758
9725
  }, z.core.$strip>>>;
9759
- currentProjectAgentId: z.ZodOptional<z.ZodString>;
9726
+ currentAgentSlug: z.ZodOptional<z.ZodString>;
9760
9727
  }, z.core.$strip>;
9761
9728
  export declare const zSessionUpdatePath: z.ZodObject<{
9762
9729
  id: z.ZodString;
@@ -9979,7 +9946,7 @@ export declare const zSessionFilesPresignUploadResponse2: z.ZodObject<{
9979
9946
  uploadUrl: z.ZodString;
9980
9947
  sandboxPath: z.ZodString;
9981
9948
  podVolume: z.ZodObject<{
9982
- projectId: z.ZodString;
9949
+ projectSlug: z.ZodString;
9983
9950
  sessionId: z.ZodString;
9984
9951
  kind: z.ZodEnum<{
9985
9952
  outputs: "outputs";
@@ -10882,7 +10849,6 @@ export declare const zWebhookTriggerListResponse: z.ZodArray<z.ZodObject<{
10882
10849
  projectAgentId: z.ZodString;
10883
10850
  senderUserId: z.ZodString;
10884
10851
  provider: z.ZodEnum<{
10885
- slack: "slack";
10886
10852
  generic: "generic";
10887
10853
  }>;
10888
10854
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -10900,7 +10866,6 @@ export declare const zWebhookTriggerCreateBody: z.ZodObject<{
10900
10866
  projectAgentId: z.ZodString;
10901
10867
  senderUserId: z.ZodString;
10902
10868
  provider: z.ZodEnum<{
10903
- slack: "slack";
10904
10869
  generic: "generic";
10905
10870
  }>;
10906
10871
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -10924,7 +10889,6 @@ export declare const zWebhookTriggerCreateResponse: z.ZodObject<{
10924
10889
  projectAgentId: z.ZodString;
10925
10890
  senderUserId: z.ZodString;
10926
10891
  provider: z.ZodEnum<{
10927
- slack: "slack";
10928
10892
  generic: "generic";
10929
10893
  }>;
10930
10894
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -10957,7 +10921,6 @@ export declare const zWebhookTriggerGetResponse: z.ZodObject<{
10957
10921
  projectAgentId: z.ZodString;
10958
10922
  senderUserId: z.ZodString;
10959
10923
  provider: z.ZodEnum<{
10960
- slack: "slack";
10961
10924
  generic: "generic";
10962
10925
  }>;
10963
10926
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -10996,7 +10959,6 @@ export declare const zWebhookTriggerUpdateResponse: z.ZodObject<{
10996
10959
  projectAgentId: z.ZodString;
10997
10960
  senderUserId: z.ZodString;
10998
10961
  provider: z.ZodEnum<{
10999
- slack: "slack";
11000
10962
  generic: "generic";
11001
10963
  }>;
11002
10964
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -11029,7 +10991,6 @@ export declare const zWebhookTriggerArchiveResponse: z.ZodObject<{
11029
10991
  projectAgentId: z.ZodString;
11030
10992
  senderUserId: z.ZodString;
11031
10993
  provider: z.ZodEnum<{
11032
- slack: "slack";
11033
10994
  generic: "generic";
11034
10995
  }>;
11035
10996
  providerInstallId: z.ZodNullable<z.ZodString>;
@@ -11042,6 +11003,27 @@ export declare const zWebhookTriggerArchiveResponse: z.ZodObject<{
11042
11003
  updatedAt: z.ZodISODateTime;
11043
11004
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
11044
11005
  }, z.core.$strip>;
11006
+ export declare const zSlackUninstallQuery: z.ZodObject<{
11007
+ scope: z.ZodOptional<z.ZodEnum<{
11008
+ user: "user";
11009
+ }>>;
11010
+ }, z.core.$strip>;
11011
+ /**
11012
+ * Removed
11013
+ */
11014
+ export declare const zSlackUninstallResponse: z.ZodVoid;
11015
+ export declare const zSlackInstallQuery: z.ZodObject<{
11016
+ scope: z.ZodOptional<z.ZodEnum<{
11017
+ user: "user";
11018
+ }>>;
11019
+ returnTo: z.ZodOptional<z.ZodString>;
11020
+ }, z.core.$strip>;
11021
+ /**
11022
+ * Authorization URL for the user to visit
11023
+ */
11024
+ export declare const zSlackInstallResponse: z.ZodObject<{
11025
+ url: z.ZodURL;
11026
+ }, z.core.$strip>;
11045
11027
  export declare const zSlackStatusQuery: z.ZodObject<{
11046
11028
  scope: z.ZodOptional<z.ZodEnum<{
11047
11029
  user: "user";
@@ -11065,18 +11047,73 @@ export declare const zSlackStatusResponse: z.ZodObject<{
11065
11047
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
11066
11048
  }, z.core.$strip>>;
11067
11049
  }, z.core.$strip>;
11068
- export declare const zSlackInstallationRemovePath: z.ZodObject<{
11050
+ export declare const zSlackChannelListQuery: z.ZodObject<{
11051
+ scope: z.ZodOptional<z.ZodEnum<{
11052
+ user: "user";
11053
+ }>>;
11054
+ }, z.core.$strip>;
11055
+ /**
11056
+ * Channels visible to the Ren bot
11057
+ */
11058
+ export declare const zSlackChannelListResponse: z.ZodArray<z.ZodObject<{
11069
11059
  id: z.ZodString;
11060
+ name: z.ZodString;
11061
+ projectId: z.ZodNullable<z.ZodString>;
11062
+ defaultProjectAgentId: z.ZodNullable<z.ZodString>;
11063
+ fallbackSenderUserId: z.ZodNullable<z.ZodString>;
11064
+ projectName: z.ZodNullable<z.ZodString>;
11065
+ }, z.core.$strip>>;
11066
+ export declare const zSlackChannelUnsetPath: z.ZodObject<{
11067
+ channelId: z.ZodString;
11070
11068
  }, z.core.$strip>;
11071
- export declare const zSlackInstallationRemoveQuery: z.ZodObject<{
11069
+ export declare const zSlackChannelUnsetQuery: z.ZodObject<{
11072
11070
  scope: z.ZodOptional<z.ZodEnum<{
11073
11071
  user: "user";
11074
11072
  }>>;
11075
11073
  }, z.core.$strip>;
11076
11074
  /**
11077
- * Removed
11075
+ * Updated installation
11078
11076
  */
11079
- export declare const zSlackInstallationRemoveResponse: z.ZodVoid;
11077
+ export declare const zSlackChannelUnsetResponse: z.ZodObject<{
11078
+ id: z.ZodString;
11079
+ orgId: z.ZodString;
11080
+ installedById: z.ZodString;
11081
+ teamId: z.ZodString;
11082
+ teamName: z.ZodNullable<z.ZodString>;
11083
+ botUserId: z.ZodString;
11084
+ scope: z.ZodString;
11085
+ createdAt: z.ZodISODateTime;
11086
+ updatedAt: z.ZodISODateTime;
11087
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
11088
+ }, z.core.$strip>;
11089
+ export declare const zSlackChannelSetBody: z.ZodObject<{
11090
+ projectId: z.ZodString;
11091
+ defaultProjectAgentId: z.ZodNullable<z.ZodString>;
11092
+ fallbackSenderUserId: z.ZodNullable<z.ZodString>;
11093
+ }, z.core.$strip>;
11094
+ export declare const zSlackChannelSetPath: z.ZodObject<{
11095
+ channelId: z.ZodString;
11096
+ }, z.core.$strip>;
11097
+ export declare const zSlackChannelSetQuery: z.ZodObject<{
11098
+ scope: z.ZodOptional<z.ZodEnum<{
11099
+ user: "user";
11100
+ }>>;
11101
+ }, z.core.$strip>;
11102
+ /**
11103
+ * Updated installation
11104
+ */
11105
+ export declare const zSlackChannelSetResponse: z.ZodObject<{
11106
+ id: z.ZodString;
11107
+ orgId: z.ZodString;
11108
+ installedById: z.ZodString;
11109
+ teamId: z.ZodString;
11110
+ teamName: z.ZodNullable<z.ZodString>;
11111
+ botUserId: z.ZodString;
11112
+ scope: z.ZodString;
11113
+ createdAt: z.ZodISODateTime;
11114
+ updatedAt: z.ZodISODateTime;
11115
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
11116
+ }, z.core.$strip>;
11080
11117
  export declare const zVaultListQuery: z.ZodObject<{
11081
11118
  scope: z.ZodOptional<z.ZodEnum<{
11082
11119
  user: "user";
@@ -261,6 +261,14 @@ export const zVault = z.object({
261
261
  .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))$/)
262
262
  .nullable(),
263
263
  });
264
+ export const zSlackChannel = z.object({
265
+ id: z.string(),
266
+ name: z.string(),
267
+ projectId: z.string().nullable(),
268
+ defaultProjectAgentId: z.string().nullable(),
269
+ fallbackSenderUserId: z.string().nullable(),
270
+ projectName: z.string().nullable(),
271
+ });
264
272
  export const zSlackInstallationResponse = z.object({
265
273
  id: z.string(),
266
274
  orgId: z.string(),
@@ -284,12 +292,15 @@ export const zSlackStatus = z.object({
284
292
  hasInstallation: z.boolean(),
285
293
  installations: z.array(zSlackInstallationResponse),
286
294
  });
295
+ export const zSlackOAuthStartResult = z.object({
296
+ url: z.url(),
297
+ });
287
298
  export const zWebhookTrigger = z.object({
288
299
  id: z.string(),
289
300
  projectId: z.string(),
290
301
  projectAgentId: z.string(),
291
302
  senderUserId: z.string(),
292
- provider: z.enum(["slack", "generic"]),
303
+ provider: z.enum(["generic"]),
293
304
  providerInstallId: z.string().nullable(),
294
305
  scopeFilter: z
295
306
  .object({
@@ -421,7 +432,7 @@ export const zSessionFilesPresignUploadResponse = z.object({
421
432
  uploadUrl: z.string(),
422
433
  sandboxPath: z.string(),
423
434
  podVolume: z.object({
424
- projectId: z.string(),
435
+ projectSlug: z.string(),
425
436
  sessionId: z.string(),
426
437
  kind: z.enum(["outputs", "uploads"]),
427
438
  filename: z.string(),
@@ -939,6 +950,9 @@ export const zGithubStatus = z.object({
939
950
  hasUserCredential: z.boolean(),
940
951
  installations: z.array(zGithubInstallationResponse),
941
952
  });
953
+ export const zGithubOAuthStartResult = z.object({
954
+ url: z.url(),
955
+ });
942
956
  export const zStoreStartUploadResponse = z.object({
943
957
  url: z.string(),
944
958
  expiresAt: z.iso
@@ -1757,52 +1771,45 @@ export const zFileStoreFilesFinalizeUploadQuery = z.object({
1757
1771
  * Finalized file info
1758
1772
  */
1759
1773
  export const zFileStoreFilesFinalizeUploadResponse = zFileStoreFile;
1760
- export const zGithubStatusQuery = z.object({
1774
+ export const zGithubUninstallQuery = z.object({
1761
1775
  scope: z.enum(["user"]).optional(),
1762
1776
  });
1763
1777
  /**
1764
- * GitHub configuration status
1778
+ * Removed
1765
1779
  */
1766
- export const zGithubStatusResponse = zGithubStatus;
1767
- export const zGithubInstallationListQuery = z.object({
1780
+ export const zGithubUninstallResponse = z.void();
1781
+ export const zGithubInstallQuery = z.object({
1768
1782
  scope: z.enum(["user"]).optional(),
1783
+ returnTo: z.string().optional(),
1769
1784
  });
1770
1785
  /**
1771
- * Installations
1786
+ * Authorization URL for the user to visit
1772
1787
  */
1773
- export const zGithubInstallationListResponse = z.array(zGithubInstallationResponse);
1774
- export const zGithubInstallationReposListPath = z.object({
1775
- id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
1776
- });
1777
- export const zGithubInstallationReposListQuery = z.object({
1788
+ export const zGithubInstallResponse = zGithubOAuthStartResult;
1789
+ export const zGithubConnectQuery = z.object({
1778
1790
  scope: z.enum(["user"]).optional(),
1791
+ returnTo: z.string().optional(),
1779
1792
  });
1780
1793
  /**
1781
- * Repositories
1794
+ * Authorization URL for the user to visit
1782
1795
  */
1783
- export const zGithubInstallationReposListResponse = z.array(z.object({
1784
- fullName: z.string(),
1785
- }));
1786
- export const zGithubInstallationRefreshPath = z.object({
1787
- id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
1788
- });
1789
- export const zGithubInstallationRefreshQuery = z.object({
1796
+ export const zGithubConnectResponse = zGithubOAuthStartResult;
1797
+ export const zGithubStatusQuery = z.object({
1790
1798
  scope: z.enum(["user"]).optional(),
1791
1799
  });
1792
1800
  /**
1793
- * Updated installation snapshot
1801
+ * GitHub configuration status
1794
1802
  */
1795
- export const zGithubInstallationRefreshResponse = zGithubInstallationResponse;
1796
- export const zGithubInstallationRemovePath = z.object({
1797
- id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
1798
- });
1799
- export const zGithubInstallationRemoveQuery = z.object({
1803
+ export const zGithubStatusResponse = zGithubStatus;
1804
+ export const zGithubReposQuery = z.object({
1800
1805
  scope: z.enum(["user"]).optional(),
1801
1806
  });
1802
1807
  /**
1803
- * Removed
1808
+ * Repositories
1804
1809
  */
1805
- export const zGithubInstallationRemoveResponse = z.void();
1810
+ export const zGithubReposResponse = z.array(z.object({
1811
+ fullName: z.string(),
1812
+ }));
1806
1813
  export const zMcpListQuery = z.object({
1807
1814
  scope: z.enum(["user"]).optional(),
1808
1815
  limit: z.number().gte(1).lte(1000).optional(),
@@ -2674,7 +2681,7 @@ export const zSessionUpdateBody = z.object({
2674
2681
  details: z.record(z.string(), z.unknown()).optional(),
2675
2682
  })
2676
2683
  .nullish(),
2677
- currentProjectAgentId: z.string().optional(),
2684
+ currentAgentSlug: z.string().optional(),
2678
2685
  });
2679
2686
  export const zSessionUpdatePath = z.object({
2680
2687
  id: z.string().min(1),
@@ -3059,7 +3066,7 @@ export const zWebhookTriggerCreateBody = z.object({
3059
3066
  projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
3060
3067
  projectAgentId: z.string(),
3061
3068
  senderUserId: z.string(),
3062
- provider: z.enum(["slack", "generic"]),
3069
+ provider: z.enum(["generic"]),
3063
3070
  providerInstallId: z.string().nullable(),
3064
3071
  scopeFilter: z
3065
3072
  .object({
@@ -3120,6 +3127,21 @@ export const zWebhookTriggerArchiveQuery = z.object({
3120
3127
  * Archived webhook trigger
3121
3128
  */
3122
3129
  export const zWebhookTriggerArchiveResponse = zWebhookTrigger;
3130
+ export const zSlackUninstallQuery = z.object({
3131
+ scope: z.enum(["user"]).optional(),
3132
+ });
3133
+ /**
3134
+ * Removed
3135
+ */
3136
+ export const zSlackUninstallResponse = z.void();
3137
+ export const zSlackInstallQuery = z.object({
3138
+ scope: z.enum(["user"]).optional(),
3139
+ returnTo: z.string().optional(),
3140
+ });
3141
+ /**
3142
+ * Authorization URL for the user to visit
3143
+ */
3144
+ export const zSlackInstallResponse = zSlackOAuthStartResult;
3123
3145
  export const zSlackStatusQuery = z.object({
3124
3146
  scope: z.enum(["user"]).optional(),
3125
3147
  });
@@ -3127,16 +3149,38 @@ export const zSlackStatusQuery = z.object({
3127
3149
  * Slack installation status
3128
3150
  */
3129
3151
  export const zSlackStatusResponse = zSlackStatus;
3130
- export const zSlackInstallationRemovePath = z.object({
3131
- id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
3152
+ export const zSlackChannelListQuery = z.object({
3153
+ scope: z.enum(["user"]).optional(),
3132
3154
  });
3133
- export const zSlackInstallationRemoveQuery = z.object({
3155
+ /**
3156
+ * Channels visible to the Ren bot
3157
+ */
3158
+ export const zSlackChannelListResponse = z.array(zSlackChannel);
3159
+ export const zSlackChannelUnsetPath = z.object({
3160
+ channelId: z.string().min(1),
3161
+ });
3162
+ export const zSlackChannelUnsetQuery = z.object({
3134
3163
  scope: z.enum(["user"]).optional(),
3135
3164
  });
3136
3165
  /**
3137
- * Removed
3166
+ * Updated installation
3167
+ */
3168
+ export const zSlackChannelUnsetResponse = zSlackInstallationResponse;
3169
+ export const zSlackChannelSetBody = z.object({
3170
+ projectId: z.string(),
3171
+ defaultProjectAgentId: z.string().nullable(),
3172
+ fallbackSenderUserId: z.string().nullable(),
3173
+ });
3174
+ export const zSlackChannelSetPath = z.object({
3175
+ channelId: z.string().min(1),
3176
+ });
3177
+ export const zSlackChannelSetQuery = z.object({
3178
+ scope: z.enum(["user"]).optional(),
3179
+ });
3180
+ /**
3181
+ * Updated installation
3138
3182
  */
3139
- export const zSlackInstallationRemoveResponse = z.void();
3183
+ export const zSlackChannelSetResponse = zSlackInstallationResponse;
3140
3184
  export const zVaultListQuery = z.object({
3141
3185
  scope: z.enum(["user"]).optional(),
3142
3186
  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.4",
3
+ "version": "0.1.6",
4
4
  "description": "TypeScript SDK for the Ren API, generated from OpenAPI.",
5
5
  "license": "MIT",
6
6
  "author": "Ren Labs, Inc.",