@renai-labs/sdk 0.1.21 → 0.1.22

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.
@@ -1,6 +1,19 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
+ export type SandboxArtifactTarget = {
5
+ podId: string;
6
+ bucket: string;
7
+ region: string;
8
+ endpoint: string | null;
9
+ prefix: string;
10
+ };
11
+ export type SandboxVolumeCreds = {
12
+ accessKeyId: string;
13
+ secretAccessKey: string;
14
+ sessionToken: string;
15
+ expiresAt: string;
16
+ };
4
17
  export type OpencodeSessionSyncSeq = {
5
18
  sessionId: string;
6
19
  latestSeq: number;
@@ -19,30 +32,40 @@ export type SandboxManifest = {
19
32
  environment: {
20
33
  [key: string]: string;
21
34
  };
22
- runtimeSetup: SandboxManifestRuntimeSetup;
23
35
  members: Array<SandboxManifestMember>;
24
- podVolume: SandboxMountedVolume;
36
+ podVolume: SandboxVolumeConfig;
37
+ databaseReplication: SandboxManifestDatabaseReplication | null;
38
+ artifacts: SandboxManifestArtifacts | null;
25
39
  updatedAt: string;
26
40
  };
41
+ export type SandboxManifestArtifact = {
42
+ slug: string;
43
+ path: string;
44
+ };
45
+ export type SandboxManifestArtifacts = {
46
+ bucket: string;
47
+ region: string;
48
+ endpoint: string | null;
49
+ prefix: string;
50
+ artifacts: Array<SandboxManifestArtifact>;
51
+ };
52
+ export type SandboxManifestDatabase = {
53
+ slug: string;
54
+ path: string;
55
+ };
56
+ export type SandboxManifestDatabaseReplication = {
57
+ bucket: string;
58
+ region: string;
59
+ endpoint: string | null;
60
+ prefix: string;
61
+ databases: Array<SandboxManifestDatabase>;
62
+ };
27
63
  export type SandboxManifestMember = {
28
64
  userId: string;
29
65
  memberId: string;
30
66
  role: "owner" | "member";
31
67
  };
32
- export type SandboxManifestRuntimeSetupStep = {
33
- manager: "apt" | "npm" | "pip" | "cargo" | "gem" | "go";
34
- argv: Array<string>;
35
- };
36
- export type SandboxManifestRuntimeSetup = {
37
- steps: Array<SandboxManifestRuntimeSetupStep>;
38
- };
39
- export type SandboxVolumeCreds = {
40
- accessKeyId: string;
41
- secretAccessKey: string;
42
- sessionToken: string;
43
- expiresAt: string;
44
- };
45
- export type SandboxMountedVolume = {
68
+ export type SandboxVolumeConfig = {
46
69
  storeId: string;
47
70
  kind: "file-store" | "memory-store" | "pod";
48
71
  mountPath: string;
@@ -51,7 +74,6 @@ export type SandboxMountedVolume = {
51
74
  prefix: string;
52
75
  region: string;
53
76
  endpoint: string | null;
54
- creds: SandboxVolumeCreds;
55
77
  };
56
78
  export type PermissionConfig = {
57
79
  __originalKeys?: Array<string>;
@@ -129,7 +151,17 @@ export type SandboxManifestProject = {
129
151
  * Menu base path (`projects/<projectId>`) under the skill-serve token root.
130
152
  */
131
153
  skillMenuPath?: string;
132
- volumes: Array<SandboxMountedVolume>;
154
+ volumes: Array<SandboxVolumeConfig>;
155
+ };
156
+ export type SandboxModelKeyResponse = {
157
+ /**
158
+ * The current AI-model (LiteLLM) key for this workspace.
159
+ */
160
+ apiKey: string;
161
+ /**
162
+ * The LiteLLM base URL the key authenticates against.
163
+ */
164
+ url: string;
133
165
  };
134
166
  export type SandboxTokenResponse = {
135
167
  token: string;
@@ -156,6 +188,10 @@ export type ReplayPublicListItem = {
156
188
  websiteMetadata: WebsiteMetadata | null;
157
189
  updatedAt: string;
158
190
  };
191
+ export type PublisherLink = {
192
+ label: string;
193
+ href: string;
194
+ };
159
195
  export type PublisherPublicView = {
160
196
  id: string;
161
197
  slug: string;
@@ -167,19 +203,6 @@ export type PublisherPublicView = {
167
203
  isVerified: boolean;
168
204
  links: Array<PublisherLink>;
169
205
  };
170
- export type PublisherLink = {
171
- label: string;
172
- href: string;
173
- };
174
- export type BlueprintPublicListItem = {
175
- id: string;
176
- slug: string;
177
- name: string;
178
- description: string | null;
179
- websiteMetadata: WebsiteMetadata | null;
180
- publisherId: string | null;
181
- updatedAt: string;
182
- };
183
206
  export type McpPublicView = {
184
207
  id: string;
185
208
  slug: string;
@@ -189,9 +212,10 @@ export type McpPublicView = {
189
212
  mcpServerUrl: string | null;
190
213
  docUrl: string | null;
191
214
  type: "remote" | "local";
192
- transport: "streamable-http" | "sse" | "stdio";
193
215
  command: string | null;
194
216
  args: Array<string>;
217
+ cwd: string | null;
218
+ timeout: McpTimeout | null;
195
219
  version: string | null;
196
220
  repository: Repository | null;
197
221
  tools: Array<string>;
@@ -212,15 +236,53 @@ export type McpPublicView = {
212
236
  deprecatedAt: string | null;
213
237
  deprecationMessage: string | null;
214
238
  tags?: Array<string>;
239
+ publisher?: PublisherPublicView | null;
240
+ };
241
+ export type RequirementWhen = {
242
+ name: string;
243
+ op: "eq" | "neq";
244
+ value: string;
215
245
  };
216
246
  export type RequiredCredential = {
247
+ kind?: "env";
248
+ name: string;
249
+ description?: string;
250
+ } | {
251
+ kind: "secret";
252
+ name: string;
253
+ description?: string;
254
+ } | {
255
+ kind: "oauth_app";
256
+ name: string;
257
+ description?: string;
258
+ } | {
259
+ kind: "text";
260
+ name: string;
261
+ description?: string;
262
+ message: string;
263
+ placeholder?: string;
264
+ when?: RequirementWhen;
265
+ } | {
266
+ kind: "select";
217
267
  name: string;
218
268
  description?: string;
269
+ message: string;
270
+ options: Array<{
271
+ label: string;
272
+ value: string;
273
+ hint?: string;
274
+ }>;
275
+ when?: RequirementWhen;
219
276
  };
220
277
  export type Repository = {
221
278
  url?: string;
222
279
  source?: string;
223
280
  };
281
+ export type McpTimeout = {
282
+ startup?: number;
283
+ catalog?: number;
284
+ execution?: number;
285
+ };
224
286
  export type SkillPublicView = {
225
287
  id: string;
226
288
  slug: string;
@@ -241,6 +303,7 @@ export type SkillPublicView = {
241
303
  deprecatedAt: string | null;
242
304
  deprecationMessage: string | null;
243
305
  tags?: Array<string>;
306
+ publisher?: PublisherPublicView | null;
244
307
  };
245
308
  export type AgentPublicView = {
246
309
  id: string;
@@ -255,6 +318,7 @@ export type AgentPublicView = {
255
318
  deprecatedAt: string | null;
256
319
  deprecationMessage: string | null;
257
320
  tags?: Array<string>;
321
+ publisher?: PublisherPublicView | null;
258
322
  latestVersion?: AgentLatestVersion | null;
259
323
  };
260
324
  export type AgentLatestVersion = {
@@ -266,6 +330,9 @@ export type AgentLatestVersion = {
266
330
  model: string | null;
267
331
  skills: Array<{
268
332
  skillId: string;
333
+ /**
334
+ * Pin a specific skill version, or null to track the skill's latest version.
335
+ */
269
336
  skillVersionId?: string | null;
270
337
  skill: {
271
338
  id: string;
@@ -284,51 +351,6 @@ export type AgentLatestVersion = {
284
351
  };
285
352
  }>;
286
353
  };
287
- export type Skill = {
288
- id: string;
289
- slug: string;
290
- name: string;
291
- description: string | null;
292
- icon: string | null;
293
- docUrl: string | null;
294
- repository: Repository | null;
295
- orgId: string;
296
- userId: string | null;
297
- publisherId: string | null;
298
- parentId: string | null;
299
- websiteMetadata: WebsiteMetadata | null;
300
- sortOrder: number | null;
301
- popularityScore: number | null;
302
- trendingScore: number | null;
303
- rank: number | null;
304
- latestVersionId: string | null;
305
- createdAt: string;
306
- updatedAt: string;
307
- archivedAt: string | null;
308
- deprecatedAt: string | null;
309
- deprecationMessage: string | null;
310
- tags?: Array<string>;
311
- };
312
- export type McpAuthConfig = {
313
- type: "oauth";
314
- scopes?: Array<string>;
315
- tokenEndpoint?: string;
316
- authorizationEndpoint?: string;
317
- tokenEndpointAuth?: "none" | "client_secret_basic" | "client_secret_post";
318
- } | {
319
- type: "api_key";
320
- headerName?: string;
321
- queryParam?: string;
322
- } | {
323
- type: "basic";
324
- } | {
325
- type: "none";
326
- } | {
327
- type: "mcp_provider";
328
- provider: "composio";
329
- toolkit: string;
330
- authConfigId: string;
331
- };
332
354
  export type OpencodeSession = {
333
355
  id: string;
334
356
  createdById: string;
@@ -372,62 +394,6 @@ export type OpencodeSession = {
372
394
  archivedAt: string | null;
373
395
  compactingAt: string | null;
374
396
  };
375
- export type Mcp = {
376
- id: string;
377
- slug: string;
378
- name: string;
379
- description: string | null;
380
- icon: string | null;
381
- mcpServerUrl: string | null;
382
- docUrl: string | null;
383
- type: "remote" | "local";
384
- transport: "streamable-http" | "sse" | "stdio";
385
- command: string | null;
386
- args: Array<string>;
387
- version: string | null;
388
- repository: Repository | null;
389
- tools: Array<string>;
390
- prompts: Array<string>;
391
- auth: "none" | "oauth" | "api_key" | "basic" | "mcp_provider";
392
- authConfig: McpAuthConfig | null;
393
- env: {
394
- [key: string]: string;
395
- };
396
- requiredCredentials: Array<RequiredCredential>;
397
- orgId: string;
398
- userId: string | null;
399
- publisherId: string | null;
400
- websiteMetadata: WebsiteMetadata | null;
401
- sortOrder: number | null;
402
- popularityScore: number | null;
403
- trendingScore: number | null;
404
- rank: number | null;
405
- createdAt: string;
406
- updatedAt: string;
407
- archivedAt: string | null;
408
- deprecatedAt: string | null;
409
- deprecationMessage: string | null;
410
- tags?: Array<string>;
411
- };
412
- export type Agent = {
413
- id: string;
414
- slug: string;
415
- name: string;
416
- icon: string | null;
417
- orgId: string;
418
- userId: string | null;
419
- publisherId: string | null;
420
- parentId: string | null;
421
- websiteMetadata: WebsiteMetadata | null;
422
- latestVersionId: string | null;
423
- createdAt: string;
424
- updatedAt: string;
425
- archivedAt: string | null;
426
- deprecatedAt: string | null;
427
- deprecationMessage: string | null;
428
- tags?: Array<string>;
429
- latestVersion?: AgentLatestVersion | null;
430
- };
431
397
  export type OAuthCallbackInput = string;
432
398
  export type HealthCheckData = {
433
399
  body?: never;
@@ -527,6 +493,30 @@ export type OrganizationLogoGetResponses = {
527
493
  200: Blob | File;
528
494
  };
529
495
  export type OrganizationLogoGetResponse = OrganizationLogoGetResponses[keyof OrganizationLogoGetResponses];
496
+ export type ResourceIconGetData = {
497
+ body?: never;
498
+ path: {
499
+ asset: string;
500
+ };
501
+ query?: never;
502
+ url: "/api/resource-icons/{asset}";
503
+ };
504
+ export type ResourceIconGetErrors = {
505
+ /**
506
+ * Not found
507
+ */
508
+ 404: {
509
+ error: string;
510
+ };
511
+ };
512
+ export type ResourceIconGetError = ResourceIconGetErrors[keyof ResourceIconGetErrors];
513
+ export type ResourceIconGetResponses = {
514
+ /**
515
+ * Processed resource icon
516
+ */
517
+ 200: Blob | File;
518
+ };
519
+ export type ResourceIconGetResponse = ResourceIconGetResponses[keyof ResourceIconGetResponses];
530
520
  export type RegistryAgentGetBySlugData = {
531
521
  body?: never;
532
522
  path: {
@@ -608,32 +598,6 @@ export type RegistryMcpGetBySlugResponses = {
608
598
  200: McpPublicView;
609
599
  };
610
600
  export type RegistryMcpGetBySlugResponse = RegistryMcpGetBySlugResponses[keyof RegistryMcpGetBySlugResponses];
611
- export type RegistryBlueprintListData = {
612
- body?: never;
613
- path?: never;
614
- query?: {
615
- limit?: number;
616
- offset?: number;
617
- includeDeprecated?: boolean;
618
- };
619
- url: "/api/registry/blueprints";
620
- };
621
- export type RegistryBlueprintListErrors = {
622
- /**
623
- * Bad request
624
- */
625
- 400: {
626
- error: string;
627
- };
628
- };
629
- export type RegistryBlueprintListError = RegistryBlueprintListErrors[keyof RegistryBlueprintListErrors];
630
- export type RegistryBlueprintListResponses = {
631
- /**
632
- * Published blueprint list
633
- */
634
- 200: Array<BlueprintPublicListItem>;
635
- };
636
- export type RegistryBlueprintListResponse = RegistryBlueprintListResponses[keyof RegistryBlueprintListResponses];
637
601
  export type RegistryPublisherListData = {
638
602
  body?: never;
639
603
  path?: never;
@@ -660,130 +624,6 @@ export type RegistryPublisherListResponses = {
660
624
  200: Array<PublisherPublicView>;
661
625
  };
662
626
  export type RegistryPublisherListResponse = RegistryPublisherListResponses[keyof RegistryPublisherListResponses];
663
- export type RegistryPublisherBlueprintsData = {
664
- body?: never;
665
- path: {
666
- /**
667
- * URL-friendly identifier
668
- */
669
- slug: string;
670
- };
671
- query?: {
672
- limit?: number;
673
- offset?: number;
674
- includeDeprecated?: boolean;
675
- };
676
- url: "/api/registry/publishers/{slug}/blueprints";
677
- };
678
- export type RegistryPublisherBlueprintsErrors = {
679
- /**
680
- * Not found
681
- */
682
- 404: {
683
- error: string;
684
- };
685
- };
686
- export type RegistryPublisherBlueprintsError = RegistryPublisherBlueprintsErrors[keyof RegistryPublisherBlueprintsErrors];
687
- export type RegistryPublisherBlueprintsResponses = {
688
- /**
689
- * Published blueprint list for the publisher
690
- */
691
- 200: Array<BlueprintPublicListItem>;
692
- };
693
- export type RegistryPublisherBlueprintsResponse = RegistryPublisherBlueprintsResponses[keyof RegistryPublisherBlueprintsResponses];
694
- export type RegistryPublisherSkillsData = {
695
- body?: never;
696
- path: {
697
- /**
698
- * URL-friendly identifier
699
- */
700
- slug: string;
701
- };
702
- query?: {
703
- limit?: number;
704
- offset?: number;
705
- includeDeprecated?: boolean;
706
- };
707
- url: "/api/registry/publishers/{slug}/skills";
708
- };
709
- export type RegistryPublisherSkillsErrors = {
710
- /**
711
- * Not found
712
- */
713
- 404: {
714
- error: string;
715
- };
716
- };
717
- export type RegistryPublisherSkillsError = RegistryPublisherSkillsErrors[keyof RegistryPublisherSkillsErrors];
718
- export type RegistryPublisherSkillsResponses = {
719
- /**
720
- * Published skill list for the publisher
721
- */
722
- 200: Array<Skill>;
723
- };
724
- export type RegistryPublisherSkillsResponse = RegistryPublisherSkillsResponses[keyof RegistryPublisherSkillsResponses];
725
- export type RegistryPublisherAgentsData = {
726
- body?: never;
727
- path: {
728
- /**
729
- * URL-friendly identifier
730
- */
731
- slug: string;
732
- };
733
- query?: {
734
- limit?: number;
735
- offset?: number;
736
- includeDeprecated?: boolean;
737
- };
738
- url: "/api/registry/publishers/{slug}/agents";
739
- };
740
- export type RegistryPublisherAgentsErrors = {
741
- /**
742
- * Not found
743
- */
744
- 404: {
745
- error: string;
746
- };
747
- };
748
- export type RegistryPublisherAgentsError = RegistryPublisherAgentsErrors[keyof RegistryPublisherAgentsErrors];
749
- export type RegistryPublisherAgentsResponses = {
750
- /**
751
- * Published agent list for the publisher
752
- */
753
- 200: Array<Agent>;
754
- };
755
- export type RegistryPublisherAgentsResponse = RegistryPublisherAgentsResponses[keyof RegistryPublisherAgentsResponses];
756
- export type RegistryPublisherMcpsData = {
757
- body?: never;
758
- path: {
759
- /**
760
- * URL-friendly identifier
761
- */
762
- slug: string;
763
- };
764
- query?: {
765
- limit?: number;
766
- offset?: number;
767
- includeDeprecated?: boolean;
768
- };
769
- url: "/api/registry/publishers/{slug}/mcps";
770
- };
771
- export type RegistryPublisherMcpsErrors = {
772
- /**
773
- * Not found
774
- */
775
- 404: {
776
- error: string;
777
- };
778
- };
779
- export type RegistryPublisherMcpsError = RegistryPublisherMcpsErrors[keyof RegistryPublisherMcpsErrors];
780
- export type RegistryPublisherMcpsResponses = {
781
- /**
782
- * Published MCP list for the publisher
783
- */
784
- 200: Array<Mcp>;
785
- };
786
- export type RegistryPublisherMcpsResponse = RegistryPublisherMcpsResponses[keyof RegistryPublisherMcpsResponses];
787
627
  export type RegistryReplayListData = {
788
628
  body?: never;
789
629
  path?: never;
@@ -969,6 +809,40 @@ export type SandboxOtelTracesResponses = {
969
809
  */
970
810
  202: unknown;
971
811
  };
812
+ export type SandboxModelKeyGetData = {
813
+ body?: never;
814
+ path?: never;
815
+ query?: never;
816
+ url: "/api/sandbox/model-key";
817
+ };
818
+ export type SandboxModelKeyGetErrors = {
819
+ /**
820
+ * Unauthorized
821
+ */
822
+ 401: {
823
+ error: string;
824
+ };
825
+ /**
826
+ * Forbidden
827
+ */
828
+ 403: {
829
+ error: string;
830
+ };
831
+ /**
832
+ * Not found
833
+ */
834
+ 404: {
835
+ error: string;
836
+ };
837
+ };
838
+ export type SandboxModelKeyGetError = SandboxModelKeyGetErrors[keyof SandboxModelKeyGetErrors];
839
+ export type SandboxModelKeyGetResponses = {
840
+ /**
841
+ * The current model key + base URL
842
+ */
843
+ 200: SandboxModelKeyResponse;
844
+ };
845
+ export type SandboxModelKeyGetResponse = SandboxModelKeyGetResponses[keyof SandboxModelKeyGetResponses];
972
846
  export type SandboxManifestGetData = {
973
847
  body?: never;
974
848
  path?: never;
@@ -1136,6 +1010,108 @@ export type SandboxVolumesMintCredsResponses = {
1136
1010
  200: SandboxVolumeCreds;
1137
1011
  };
1138
1012
  export type SandboxVolumesMintCredsResponse = SandboxVolumesMintCredsResponses[keyof SandboxVolumesMintCredsResponses];
1013
+ export type SandboxDatabasesMintCredsData = {
1014
+ body?: never;
1015
+ path?: never;
1016
+ query?: never;
1017
+ url: "/api/sandbox/databases/creds";
1018
+ };
1019
+ export type SandboxDatabasesMintCredsErrors = {
1020
+ /**
1021
+ * Unauthorized
1022
+ */
1023
+ 401: {
1024
+ error: string;
1025
+ };
1026
+ /**
1027
+ * Forbidden
1028
+ */
1029
+ 403: {
1030
+ error: string;
1031
+ };
1032
+ /**
1033
+ * Not found
1034
+ */
1035
+ 404: {
1036
+ error: string;
1037
+ };
1038
+ };
1039
+ export type SandboxDatabasesMintCredsError = SandboxDatabasesMintCredsErrors[keyof SandboxDatabasesMintCredsErrors];
1040
+ export type SandboxDatabasesMintCredsResponses = {
1041
+ /**
1042
+ * Database replication credentials
1043
+ */
1044
+ 200: SandboxVolumeCreds;
1045
+ };
1046
+ export type SandboxDatabasesMintCredsResponse = SandboxDatabasesMintCredsResponses[keyof SandboxDatabasesMintCredsResponses];
1047
+ export type SandboxArtifactsMintCredsData = {
1048
+ body?: never;
1049
+ path?: never;
1050
+ query?: never;
1051
+ url: "/api/sandbox/artifacts/creds";
1052
+ };
1053
+ export type SandboxArtifactsMintCredsErrors = {
1054
+ /**
1055
+ * Unauthorized
1056
+ */
1057
+ 401: {
1058
+ error: string;
1059
+ };
1060
+ /**
1061
+ * Forbidden
1062
+ */
1063
+ 403: {
1064
+ error: string;
1065
+ };
1066
+ /**
1067
+ * Not found
1068
+ */
1069
+ 404: {
1070
+ error: string;
1071
+ };
1072
+ };
1073
+ export type SandboxArtifactsMintCredsError = SandboxArtifactsMintCredsErrors[keyof SandboxArtifactsMintCredsErrors];
1074
+ export type SandboxArtifactsMintCredsResponses = {
1075
+ /**
1076
+ * Artifact sync credentials
1077
+ */
1078
+ 200: SandboxVolumeCreds;
1079
+ };
1080
+ export type SandboxArtifactsMintCredsResponse = SandboxArtifactsMintCredsResponses[keyof SandboxArtifactsMintCredsResponses];
1081
+ export type SandboxArtifactsTargetData = {
1082
+ body?: never;
1083
+ path?: never;
1084
+ query?: never;
1085
+ url: "/api/sandbox/artifacts";
1086
+ };
1087
+ export type SandboxArtifactsTargetErrors = {
1088
+ /**
1089
+ * Unauthorized
1090
+ */
1091
+ 401: {
1092
+ error: string;
1093
+ };
1094
+ /**
1095
+ * Forbidden
1096
+ */
1097
+ 403: {
1098
+ error: string;
1099
+ };
1100
+ /**
1101
+ * Not found
1102
+ */
1103
+ 404: {
1104
+ error: string;
1105
+ };
1106
+ };
1107
+ export type SandboxArtifactsTargetError = SandboxArtifactsTargetErrors[keyof SandboxArtifactsTargetErrors];
1108
+ export type SandboxArtifactsTargetResponses = {
1109
+ /**
1110
+ * Artifact sync target
1111
+ */
1112
+ 200: SandboxArtifactTarget;
1113
+ };
1114
+ export type SandboxArtifactsTargetResponse = SandboxArtifactsTargetResponses[keyof SandboxArtifactsTargetResponses];
1139
1115
  export type SandboxSessionUpdateData = {
1140
1116
  body?: {
1141
1117
  title?: string;
@@ -1384,6 +1360,7 @@ export type SandboxSlackReactData = {
1384
1360
  channelId: string;
1385
1361
  messageTs: string;
1386
1362
  emoji: string;
1363
+ remove?: boolean;
1387
1364
  };
1388
1365
  path?: never;
1389
1366
  query?: never;