@renai-labs/sdk 0.1.3 → 0.1.5

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.
@@ -68,6 +68,40 @@ export type PermissionConfig = {
68
68
  [key: string]: "allow" | "deny" | "ask";
69
69
  } | undefined;
70
70
  } | "allow" | "deny" | "ask";
71
+ export type ReplayPresignDownloadResponse = {
72
+ url: string;
73
+ expiresAt: string;
74
+ };
75
+ export type ReplayPublicView = {
76
+ id: string;
77
+ slug: string;
78
+ createdAt: string;
79
+ websiteMetadata: WebsiteMetadata | null;
80
+ session: ReplayPublicSession;
81
+ messages: Array<ReplayMessage>;
82
+ };
83
+ export type ReplayMessage = {
84
+ info: {
85
+ [key: string]: unknown;
86
+ };
87
+ parts: Array<{
88
+ [key: string]: unknown;
89
+ }>;
90
+ };
91
+ export type ReplayPublicSession = {
92
+ id: string;
93
+ title: string;
94
+ createdAt: string;
95
+ };
96
+ export type WebsiteMetadata = {
97
+ title?: string;
98
+ description?: string;
99
+ longDescription?: string;
100
+ image?: string;
101
+ favicon?: string;
102
+ supportUrl?: string;
103
+ privacyPolicyUrl?: string;
104
+ };
71
105
  export type BlueprintPublicView = {
72
106
  id: string;
73
107
  slug: string;
@@ -116,38 +150,34 @@ export type BlueprintTemplate = {
116
150
  mcps: Array<BlueprintMcpRef>;
117
151
  replays: Array<BlueprintReplayRef>;
118
152
  };
119
- export type WebsiteMetadata = {
120
- title?: string;
121
- description?: string;
122
- longDescription?: string;
123
- image?: string;
124
- favicon?: string;
125
- supportUrl?: string;
126
- privacyPolicyUrl?: string;
127
- };
128
- export type ReplayPresignDownloadResponse = {
129
- url: string;
130
- expiresAt: string;
153
+ export type Repository = {
154
+ url?: string;
155
+ source?: string;
131
156
  };
132
- export type ReplayPublicView = {
157
+ export type AgentLatestVersion = {
133
158
  id: string;
134
- slug: string;
135
- createdAt: string;
136
- session: ReplayPublicSession;
137
- messages: Array<ReplayMessage>;
138
- };
139
- export type ReplayMessage = {
140
- info: {
141
- [key: string]: unknown;
142
- };
143
- parts: Array<{
144
- [key: string]: unknown;
159
+ agentId: string;
160
+ version: string;
161
+ description: string | null;
162
+ skills: Array<{
163
+ skillId: string;
164
+ skillVersionId?: string | null;
165
+ skill: {
166
+ id: string;
167
+ slug: string;
168
+ name: string;
169
+ icon: string | null;
170
+ };
171
+ }>;
172
+ mcps: Array<{
173
+ mcpId: string;
174
+ mcp: {
175
+ id: string;
176
+ slug: string;
177
+ name: string;
178
+ icon: string | null;
179
+ };
145
180
  }>;
146
- };
147
- export type ReplayPublicSession = {
148
- id: string;
149
- title: string;
150
- createdAt: string;
151
181
  };
152
182
  export type OAuthStartInput = {
153
183
  mcpId: string;
@@ -224,6 +254,10 @@ export type Vault = {
224
254
  updatedAt: string;
225
255
  archivedAt: string | null;
226
256
  };
257
+ export type SlackChannel = {
258
+ id: string;
259
+ name: string;
260
+ };
227
261
  export type SlackStatus = {
228
262
  hasInstallation: boolean;
229
263
  installations: Array<SlackInstallationResponse>;
@@ -236,6 +270,14 @@ export type SlackInstallationResponse = {
236
270
  teamName: string | null;
237
271
  botUserId: string;
238
272
  scope: string;
273
+ channelMappings: {
274
+ [key: string]: {
275
+ channelName: string | null;
276
+ projectId: string;
277
+ defaultProjectAgentId: string | null;
278
+ fallbackSenderUserId: string | null;
279
+ };
280
+ };
239
281
  createdAt: string;
240
282
  updatedAt: string;
241
283
  archivedAt: string | null;
@@ -249,7 +291,7 @@ export type WebhookTrigger = {
249
291
  projectId: string;
250
292
  projectAgentId: string;
251
293
  senderUserId: string;
252
- provider: "slack" | "generic";
294
+ provider: "generic";
253
295
  providerInstallId: string | null;
254
296
  scopeFilter: {
255
297
  channelId?: string;
@@ -322,10 +364,6 @@ export type Skill = {
322
364
  deprecationMessage: string | null;
323
365
  tags?: Array<string>;
324
366
  };
325
- export type Repository = {
326
- url?: string;
327
- source?: string;
328
- };
329
367
  export type SessionVolumeRef = {
330
368
  kind: "outputs" | "uploads";
331
369
  filename: string;
@@ -338,7 +376,7 @@ export type SessionFilesPresignUploadResponse = {
338
376
  uploadUrl: string;
339
377
  sandboxPath: string;
340
378
  podVolume: {
341
- projectId: string;
379
+ projectSlug: string;
342
380
  sessionId: string;
343
381
  kind: "outputs" | "uploads";
344
382
  filename: string;
@@ -389,6 +427,9 @@ export type SessionMessagesPage = {
389
427
  pageSize: number;
390
428
  total: number;
391
429
  };
430
+ export type SessionUrlResponse = {
431
+ url: string;
432
+ };
392
433
  export type OpencodeSession = {
393
434
  id: string;
394
435
  createdById: string;
@@ -895,32 +936,9 @@ export type Agent = {
895
936
  archivedAt: string | null;
896
937
  deprecatedAt: string | null;
897
938
  deprecationMessage: string | null;
939
+ tags?: Array<string>;
898
940
  latestVersion?: AgentLatestVersion | null;
899
941
  };
900
- export type AgentLatestVersion = {
901
- id: string;
902
- agentId: string;
903
- version: string;
904
- skills: Array<{
905
- skillId: string;
906
- skillVersionId?: string | null;
907
- skill: {
908
- id: string;
909
- slug: string;
910
- name: string;
911
- icon: string | null;
912
- };
913
- }>;
914
- mcps: Array<{
915
- mcpId: string;
916
- mcp: {
917
- id: string;
918
- slug: string;
919
- name: string;
920
- icon: string | null;
921
- };
922
- }>;
923
- };
924
942
  /**
925
943
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
926
944
  */
@@ -6229,7 +6247,7 @@ export type SessionUpdateData = {
6229
6247
  [key: string]: unknown;
6230
6248
  };
6231
6249
  } | null;
6232
- currentProjectAgentId?: string;
6250
+ currentAgentSlug?: string;
6233
6251
  };
6234
6252
  path: {
6235
6253
  id: string;
@@ -6276,6 +6294,47 @@ export type SessionUpdateResponses = {
6276
6294
  200: OpencodeSession;
6277
6295
  };
6278
6296
  export type SessionUpdateResponse = SessionUpdateResponses[keyof SessionUpdateResponses];
6297
+ export type SessionUrlData = {
6298
+ body?: never;
6299
+ path: {
6300
+ id: string;
6301
+ };
6302
+ query?: {
6303
+ /**
6304
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
6305
+ */
6306
+ scope?: "user";
6307
+ };
6308
+ url: "/api/sessions/{id}/url";
6309
+ };
6310
+ export type SessionUrlErrors = {
6311
+ /**
6312
+ * Unauthorized
6313
+ */
6314
+ 401: {
6315
+ error: string;
6316
+ };
6317
+ /**
6318
+ * Forbidden
6319
+ */
6320
+ 403: {
6321
+ error: string;
6322
+ };
6323
+ /**
6324
+ * Not found
6325
+ */
6326
+ 404: {
6327
+ error: string;
6328
+ };
6329
+ };
6330
+ export type SessionUrlError = SessionUrlErrors[keyof SessionUrlErrors];
6331
+ export type SessionUrlResponses = {
6332
+ /**
6333
+ * OpenCode URL
6334
+ */
6335
+ 200: SessionUrlResponse;
6336
+ };
6337
+ export type SessionUrlResponse2 = SessionUrlResponses[keyof SessionUrlResponses];
6279
6338
  export type SessionMessagesListData = {
6280
6339
  body?: never;
6281
6340
  path: {
@@ -7523,7 +7582,7 @@ export type WebhookTriggerCreateData = {
7523
7582
  projectId: string;
7524
7583
  projectAgentId: string;
7525
7584
  senderUserId: string;
7526
- provider: "slack" | "generic";
7585
+ provider: "generic";
7527
7586
  providerInstallId: string | null;
7528
7587
  scopeFilter: {
7529
7588
  channelId?: string;
@@ -7787,6 +7846,142 @@ export type SlackInstallationRemoveResponses = {
7787
7846
  204: void;
7788
7847
  };
7789
7848
  export type SlackInstallationRemoveResponse = SlackInstallationRemoveResponses[keyof SlackInstallationRemoveResponses];
7849
+ export type SlackInstallationChannelListData = {
7850
+ body?: never;
7851
+ path: {
7852
+ id: string;
7853
+ };
7854
+ query?: {
7855
+ /**
7856
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7857
+ */
7858
+ scope?: "user";
7859
+ };
7860
+ url: "/api/slack/installations/{id}/channels";
7861
+ };
7862
+ export type SlackInstallationChannelListErrors = {
7863
+ /**
7864
+ * Unauthorized
7865
+ */
7866
+ 401: {
7867
+ error: string;
7868
+ };
7869
+ /**
7870
+ * Forbidden
7871
+ */
7872
+ 403: {
7873
+ error: string;
7874
+ };
7875
+ /**
7876
+ * Not found
7877
+ */
7878
+ 404: {
7879
+ error: string;
7880
+ };
7881
+ };
7882
+ export type SlackInstallationChannelListError = SlackInstallationChannelListErrors[keyof SlackInstallationChannelListErrors];
7883
+ export type SlackInstallationChannelListResponses = {
7884
+ /**
7885
+ * Channels visible to the Ren bot
7886
+ */
7887
+ 200: Array<SlackChannel>;
7888
+ };
7889
+ export type SlackInstallationChannelListResponse = SlackInstallationChannelListResponses[keyof SlackInstallationChannelListResponses];
7890
+ export type SlackInstallationChannelRemoveData = {
7891
+ body?: never;
7892
+ path: {
7893
+ id: string;
7894
+ channelId: string;
7895
+ };
7896
+ query?: {
7897
+ /**
7898
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7899
+ */
7900
+ scope?: "user";
7901
+ };
7902
+ url: "/api/slack/installations/{id}/channels/{channelId}";
7903
+ };
7904
+ export type SlackInstallationChannelRemoveErrors = {
7905
+ /**
7906
+ * Unauthorized
7907
+ */
7908
+ 401: {
7909
+ error: string;
7910
+ };
7911
+ /**
7912
+ * Forbidden
7913
+ */
7914
+ 403: {
7915
+ error: string;
7916
+ };
7917
+ /**
7918
+ * Not found
7919
+ */
7920
+ 404: {
7921
+ error: string;
7922
+ };
7923
+ };
7924
+ export type SlackInstallationChannelRemoveError = SlackInstallationChannelRemoveErrors[keyof SlackInstallationChannelRemoveErrors];
7925
+ export type SlackInstallationChannelRemoveResponses = {
7926
+ /**
7927
+ * Updated installation
7928
+ */
7929
+ 200: SlackInstallationResponse;
7930
+ };
7931
+ export type SlackInstallationChannelRemoveResponse = SlackInstallationChannelRemoveResponses[keyof SlackInstallationChannelRemoveResponses];
7932
+ export type SlackInstallationChannelSetData = {
7933
+ body?: {
7934
+ channelName: string | null;
7935
+ projectId: string;
7936
+ defaultProjectAgentId: string | null;
7937
+ fallbackSenderUserId: string | null;
7938
+ };
7939
+ path: {
7940
+ id: string;
7941
+ channelId: string;
7942
+ };
7943
+ query?: {
7944
+ /**
7945
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7946
+ */
7947
+ scope?: "user";
7948
+ };
7949
+ url: "/api/slack/installations/{id}/channels/{channelId}";
7950
+ };
7951
+ export type SlackInstallationChannelSetErrors = {
7952
+ /**
7953
+ * Bad request
7954
+ */
7955
+ 400: {
7956
+ error: string;
7957
+ };
7958
+ /**
7959
+ * Unauthorized
7960
+ */
7961
+ 401: {
7962
+ error: string;
7963
+ };
7964
+ /**
7965
+ * Forbidden
7966
+ */
7967
+ 403: {
7968
+ error: string;
7969
+ };
7970
+ /**
7971
+ * Not found
7972
+ */
7973
+ 404: {
7974
+ error: string;
7975
+ };
7976
+ };
7977
+ export type SlackInstallationChannelSetError = SlackInstallationChannelSetErrors[keyof SlackInstallationChannelSetErrors];
7978
+ export type SlackInstallationChannelSetResponses = {
7979
+ /**
7980
+ * Updated installation
7981
+ */
7982
+ 200: SlackInstallationResponse;
7983
+ };
7984
+ export type SlackInstallationChannelSetResponse = SlackInstallationChannelSetResponses[keyof SlackInstallationChannelSetResponses];
7790
7985
  export type VaultListData = {
7791
7986
  body?: never;
7792
7987
  path?: never;
@@ -8551,6 +8746,33 @@ export type RegistryMcpGetResponses = {
8551
8746
  200: Mcp;
8552
8747
  };
8553
8748
  export type RegistryMcpGetResponse = RegistryMcpGetResponses[keyof RegistryMcpGetResponses];
8749
+ export type RegistryBlueprintGetData = {
8750
+ body?: never;
8751
+ path: {
8752
+ /**
8753
+ * URL-friendly identifier
8754
+ */
8755
+ slug: string;
8756
+ };
8757
+ query?: never;
8758
+ url: "/api/registry/blueprints/{slug}";
8759
+ };
8760
+ export type RegistryBlueprintGetErrors = {
8761
+ /**
8762
+ * Not found
8763
+ */
8764
+ 404: {
8765
+ error: string;
8766
+ };
8767
+ };
8768
+ export type RegistryBlueprintGetError = RegistryBlueprintGetErrors[keyof RegistryBlueprintGetErrors];
8769
+ export type RegistryBlueprintGetResponses = {
8770
+ /**
8771
+ * Public blueprint view
8772
+ */
8773
+ 200: BlueprintPublicView;
8774
+ };
8775
+ export type RegistryBlueprintGetResponse = RegistryBlueprintGetResponses[keyof RegistryBlueprintGetResponses];
8554
8776
  export type RegistryReplayGetData = {
8555
8777
  body?: never;
8556
8778
  path: {
@@ -8671,30 +8893,3 @@ export type RegistryReplaySharedFilesPresignDownloadResponses = {
8671
8893
  200: ReplayPresignDownloadResponse;
8672
8894
  };
8673
8895
  export type RegistryReplaySharedFilesPresignDownloadResponse = RegistryReplaySharedFilesPresignDownloadResponses[keyof RegistryReplaySharedFilesPresignDownloadResponses];
8674
- export type RegistryBlueprintGetData = {
8675
- body?: never;
8676
- path: {
8677
- /**
8678
- * URL-friendly identifier
8679
- */
8680
- slug: string;
8681
- };
8682
- query?: never;
8683
- url: "/api/registry/blueprints/{slug}";
8684
- };
8685
- export type RegistryBlueprintGetErrors = {
8686
- /**
8687
- * Not found
8688
- */
8689
- 404: {
8690
- error: string;
8691
- };
8692
- };
8693
- export type RegistryBlueprintGetError = RegistryBlueprintGetErrors[keyof RegistryBlueprintGetErrors];
8694
- export type RegistryBlueprintGetResponses = {
8695
- /**
8696
- * Public blueprint view
8697
- */
8698
- 200: BlueprintPublicView;
8699
- };
8700
- export type RegistryBlueprintGetResponse = RegistryBlueprintGetResponses[keyof RegistryBlueprintGetResponses];