@renai-labs/sdk 0.1.1 → 0.1.3

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.
@@ -139,11 +139,138 @@ export class Agent extends HeyApiClient {
139
139
  ...options,
140
140
  });
141
141
  }
142
+ /**
143
+ * Publish an agent
144
+ */
145
+ publish(options) {
146
+ return (options.client ?? this.client).post({
147
+ url: "/api/agents/{id}/publish",
148
+ ...options,
149
+ });
150
+ }
151
+ /**
152
+ * Deprecate an agent
153
+ */
154
+ deprecate(options) {
155
+ return (options.client ?? this.client).post({
156
+ url: "/api/agents/{id}/deprecate",
157
+ ...options,
158
+ headers: {
159
+ "Content-Type": "application/json",
160
+ ...options.headers,
161
+ },
162
+ });
163
+ }
164
+ /**
165
+ * Undeprecate an agent
166
+ */
167
+ undeprecate(options) {
168
+ return (options.client ?? this.client).post({
169
+ url: "/api/agents/{id}/undeprecate",
170
+ ...options,
171
+ });
172
+ }
142
173
  _version;
143
174
  get version() {
144
175
  return (this._version ??= new Version({ client: this.client }));
145
176
  }
146
177
  }
178
+ export class Blueprint extends HeyApiClient {
179
+ /**
180
+ * List blueprints
181
+ */
182
+ list(options) {
183
+ return (options?.client ?? this.client).get({
184
+ url: "/api/blueprints",
185
+ ...options,
186
+ });
187
+ }
188
+ /**
189
+ * Create a blueprint
190
+ */
191
+ create(options) {
192
+ return (options?.client ?? this.client).post({
193
+ url: "/api/blueprints",
194
+ ...options,
195
+ headers: {
196
+ "Content-Type": "application/json",
197
+ ...options?.headers,
198
+ },
199
+ });
200
+ }
201
+ /**
202
+ * Install a blueprint into a pod
203
+ */
204
+ install(options) {
205
+ return (options?.client ?? this.client).post({
206
+ url: "/api/blueprints/install",
207
+ ...options,
208
+ headers: {
209
+ "Content-Type": "application/json",
210
+ ...options?.headers,
211
+ },
212
+ });
213
+ }
214
+ /**
215
+ * Get a blueprint
216
+ */
217
+ get(options) {
218
+ return (options.client ?? this.client).get({
219
+ url: "/api/blueprints/{id}",
220
+ ...options,
221
+ });
222
+ }
223
+ /**
224
+ * Update a blueprint
225
+ */
226
+ update(options) {
227
+ return (options.client ?? this.client).patch({
228
+ url: "/api/blueprints/{id}",
229
+ ...options,
230
+ headers: {
231
+ "Content-Type": "application/json",
232
+ ...options.headers,
233
+ },
234
+ });
235
+ }
236
+ /**
237
+ * Publish a blueprint
238
+ */
239
+ publish(options) {
240
+ return (options.client ?? this.client).post({
241
+ url: "/api/blueprints/{id}/publish",
242
+ ...options,
243
+ });
244
+ }
245
+ /**
246
+ * Deprecate a blueprint
247
+ */
248
+ deprecate(options) {
249
+ return (options.client ?? this.client).post({
250
+ url: "/api/blueprints/{id}/deprecate",
251
+ ...options,
252
+ headers: {
253
+ "Content-Type": "application/json",
254
+ ...options.headers,
255
+ },
256
+ });
257
+ }
258
+ /**
259
+ * Undeprecate a blueprint
260
+ */
261
+ undeprecate(options) {
262
+ return (options.client ?? this.client).post({ url: "/api/blueprints/{id}/undeprecate", ...options });
263
+ }
264
+ /**
265
+ * Archive a blueprint
266
+ */
267
+ archive(options) {
268
+ return (options.client ?? this.client).post({
269
+ url: "/api/blueprints/{id}/archive",
270
+ ...options,
271
+ });
272
+ }
273
+ }
147
274
  export class Billing extends HeyApiClient {
148
275
  /**
149
276
  * Get organization billing summary
@@ -522,6 +649,37 @@ export class Mcp extends HeyApiClient {
522
649
  ...options,
523
650
  });
524
651
  }
652
+ /**
653
+ * Publish an MCP
654
+ */
655
+ publish(options) {
656
+ return (options.client ?? this.client).post({
657
+ url: "/api/mcps/{id}/publish",
658
+ ...options,
659
+ });
660
+ }
661
+ /**
662
+ * Deprecate an MCP
663
+ */
664
+ deprecate(options) {
665
+ return (options.client ?? this.client).post({
666
+ url: "/api/mcps/{id}/deprecate",
667
+ ...options,
668
+ headers: {
669
+ "Content-Type": "application/json",
670
+ ...options.headers,
671
+ },
672
+ });
673
+ }
674
+ /**
675
+ * Undeprecate an MCP
676
+ */
677
+ undeprecate(options) {
678
+ return (options.client ?? this.client).post({
679
+ url: "/api/mcps/{id}/undeprecate",
680
+ ...options,
681
+ });
682
+ }
525
683
  _oauth;
526
684
  get oauth() {
527
685
  return (this._oauth ??= new Oauth({ client: this.client }));
@@ -673,7 +831,7 @@ export class Onboarding extends HeyApiClient {
673
831
  /**
674
832
  * Set up personal organization
675
833
  *
676
- * Creates a personal organization for the authenticated user. Use when a new user has no membership yet — e.g. after skipping a pending invitation. Idempotent: returns the existing organization if the user already belongs to one.
834
+ * Creates a personal organization for the authenticated user. Use when a new user has no membership yet — e.g. after skipping a pending invitation. Idempotent: returns the existing organization if the user already belongs to one. Name, slug, and logo are derived from the user's profile and email domain.
677
835
  */
678
836
  setupPersonalOrg(options) {
679
837
  return (options?.client ?? this.client).post({ url: "/api/onboarding/setup-personal-org", ...options });
@@ -1023,6 +1181,52 @@ export class Project extends HeyApiClient {
1023
1181
  return (this._memoryStore ??= new MemoryStore2({ client: this.client }));
1024
1182
  }
1025
1183
  }
1184
+ export class Publisher extends HeyApiClient {
1185
+ /**
1186
+ * Get the caller's accessible publishers
1187
+ */
1188
+ me(options) {
1189
+ return (options?.client ?? this.client).get({
1190
+ url: "/api/publishers/me",
1191
+ ...options,
1192
+ });
1193
+ }
1194
+ /**
1195
+ * Claim the caller's org publisher handle
1196
+ */
1197
+ claimOrg(options) {
1198
+ return (options?.client ?? this.client).post({
1199
+ url: "/api/publishers/org",
1200
+ ...options,
1201
+ headers: {
1202
+ "Content-Type": "application/json",
1203
+ ...options?.headers,
1204
+ },
1205
+ });
1206
+ }
1207
+ /**
1208
+ * Get a publisher
1209
+ */
1210
+ get(options) {
1211
+ return (options.client ?? this.client).get({
1212
+ url: "/api/publishers/{id}",
1213
+ ...options,
1214
+ });
1215
+ }
1216
+ /**
1217
+ * Update publisher metadata
1218
+ */
1219
+ update(options) {
1220
+ return (options.client ?? this.client).patch({
1221
+ url: "/api/publishers/{id}",
1222
+ ...options,
1223
+ headers: {
1224
+ "Content-Type": "application/json",
1225
+ ...options.headers,
1226
+ },
1227
+ });
1228
+ }
1229
+ }
1026
1230
  export class Replay extends HeyApiClient {
1027
1231
  /**
1028
1232
  * List replays
@@ -1055,6 +1259,19 @@ export class Replay extends HeyApiClient {
1055
1259
  ...options,
1056
1260
  });
1057
1261
  }
1262
+ /**
1263
+ * Update a replay
1264
+ */
1265
+ update(options) {
1266
+ return (options.client ?? this.client).patch({
1267
+ url: "/api/replays/{id}",
1268
+ ...options,
1269
+ headers: {
1270
+ "Content-Type": "application/json",
1271
+ ...options.headers,
1272
+ },
1273
+ });
1274
+ }
1058
1275
  /**
1059
1276
  * Archive a replay
1060
1277
  */
@@ -1064,6 +1281,37 @@ export class Replay extends HeyApiClient {
1064
1281
  ...options,
1065
1282
  });
1066
1283
  }
1284
+ /**
1285
+ * Publish a replay
1286
+ */
1287
+ publish(options) {
1288
+ return (options.client ?? this.client).post({
1289
+ url: "/api/replays/{id}/publish",
1290
+ ...options,
1291
+ });
1292
+ }
1293
+ /**
1294
+ * Deprecate a replay
1295
+ */
1296
+ deprecate(options) {
1297
+ return (options.client ?? this.client).post({
1298
+ url: "/api/replays/{id}/deprecate",
1299
+ ...options,
1300
+ headers: {
1301
+ "Content-Type": "application/json",
1302
+ ...options.headers,
1303
+ },
1304
+ });
1305
+ }
1306
+ /**
1307
+ * Undeprecate a replay
1308
+ */
1309
+ undeprecate(options) {
1310
+ return (options.client ?? this.client).post({
1311
+ url: "/api/replays/{id}/undeprecate",
1312
+ ...options,
1313
+ });
1314
+ }
1067
1315
  /**
1068
1316
  * Share a chat session as a public replay
1069
1317
  */
@@ -1078,6 +1326,17 @@ export class Replay extends HeyApiClient {
1078
1326
  });
1079
1327
  }
1080
1328
  }
1329
+ export class Messages extends HeyApiClient {
1330
+ /**
1331
+ * List a session's messages
1332
+ */
1333
+ list(options) {
1334
+ return (options.client ?? this.client).get({
1335
+ url: "/api/sessions/{id}/messages",
1336
+ ...options,
1337
+ });
1338
+ }
1339
+ }
1081
1340
  export class Files3 extends HeyApiClient {
1082
1341
  /**
1083
1342
  * Presign an upload URL for a file destined for the session's pod volume
@@ -1166,6 +1425,10 @@ export class Session extends HeyApiClient {
1166
1425
  ...options,
1167
1426
  });
1168
1427
  }
1428
+ _messages;
1429
+ get messages() {
1430
+ return (this._messages ??= new Messages({ client: this.client }));
1431
+ }
1169
1432
  _files;
1170
1433
  get files() {
1171
1434
  return (this._files ??= new Files3({ client: this.client }));
@@ -1300,6 +1563,37 @@ export class Skill extends HeyApiClient {
1300
1563
  ...options,
1301
1564
  });
1302
1565
  }
1566
+ /**
1567
+ * Publish a skill
1568
+ */
1569
+ publish(options) {
1570
+ return (options.client ?? this.client).post({
1571
+ url: "/api/skills/{id}/publish",
1572
+ ...options,
1573
+ });
1574
+ }
1575
+ /**
1576
+ * Deprecate a skill
1577
+ */
1578
+ deprecate(options) {
1579
+ return (options.client ?? this.client).post({
1580
+ url: "/api/skills/{id}/deprecate",
1581
+ ...options,
1582
+ headers: {
1583
+ "Content-Type": "application/json",
1584
+ ...options.headers,
1585
+ },
1586
+ });
1587
+ }
1588
+ /**
1589
+ * Undeprecate a skill
1590
+ */
1591
+ undeprecate(options) {
1592
+ return (options.client ?? this.client).post({
1593
+ url: "/api/skills/{id}/undeprecate",
1594
+ ...options,
1595
+ });
1596
+ }
1303
1597
  /**
1304
1598
  * Copy a skill
1305
1599
  */
@@ -1687,6 +1981,33 @@ export class Files4 extends HeyApiClient {
1687
1981
  });
1688
1982
  }
1689
1983
  }
1984
+ export class Files5 extends HeyApiClient {
1985
+ /**
1986
+ * Presign a download URL for a shared replay's pod-volume file
1987
+ */
1988
+ presignDownload(options) {
1989
+ return (options.client ?? this.client).post({
1990
+ url: "/api/registry/replays/share/{token}/files/presign-download",
1991
+ ...options,
1992
+ headers: {
1993
+ "Content-Type": "application/json",
1994
+ ...options.headers,
1995
+ },
1996
+ });
1997
+ }
1998
+ }
1999
+ export class Shared extends HeyApiClient {
2000
+ /**
2001
+ * Get a shared replay by its share token
2002
+ */
2003
+ get(options) {
2004
+ return (options.client ?? this.client).get({ url: "/api/registry/replays/share/{token}", ...options });
2005
+ }
2006
+ _files;
2007
+ get files() {
2008
+ return (this._files ??= new Files5({ client: this.client }));
2009
+ }
2010
+ }
1690
2011
  export class Replay2 extends HeyApiClient {
1691
2012
  /**
1692
2013
  * Get a public replay by slug
@@ -1701,6 +2022,18 @@ export class Replay2 extends HeyApiClient {
1701
2022
  get files() {
1702
2023
  return (this._files ??= new Files4({ client: this.client }));
1703
2024
  }
2025
+ _shared;
2026
+ get shared() {
2027
+ return (this._shared ??= new Shared({ client: this.client }));
2028
+ }
2029
+ }
2030
+ export class Blueprint2 extends HeyApiClient {
2031
+ /**
2032
+ * Get a public blueprint by slug
2033
+ */
2034
+ get(options) {
2035
+ return (options.client ?? this.client).get({ url: "/api/registry/blueprints/{slug}", ...options });
2036
+ }
1704
2037
  }
1705
2038
  export class Registry extends HeyApiClient {
1706
2039
  _agent;
@@ -1719,6 +2052,10 @@ export class Registry extends HeyApiClient {
1719
2052
  get replay() {
1720
2053
  return (this._replay ??= new Replay2({ client: this.client }));
1721
2054
  }
2055
+ _blueprint;
2056
+ get blueprint() {
2057
+ return (this._blueprint ??= new Blueprint2({ client: this.client }));
2058
+ }
1722
2059
  }
1723
2060
  export class RenClient extends HeyApiClient {
1724
2061
  static __registry = new HeyApiRegistry();
@@ -1730,6 +2067,10 @@ export class RenClient extends HeyApiClient {
1730
2067
  get agent() {
1731
2068
  return (this._agent ??= new Agent({ client: this.client }));
1732
2069
  }
2070
+ _blueprint;
2071
+ get blueprint() {
2072
+ return (this._blueprint ??= new Blueprint({ client: this.client }));
2073
+ }
1733
2074
  _billing;
1734
2075
  get billing() {
1735
2076
  return (this._billing ??= new Billing({ client: this.client }));
@@ -1782,6 +2123,10 @@ export class RenClient extends HeyApiClient {
1782
2123
  get project() {
1783
2124
  return (this._project ??= new Project({ client: this.client }));
1784
2125
  }
2126
+ _publisher;
2127
+ get publisher() {
2128
+ return (this._publisher ??= new Publisher({ client: this.client }));
2129
+ }
1785
2130
  _replay;
1786
2131
  get replay() {
1787
2132
  return (this._replay ??= new Replay({ client: this.client }));