@renai-labs/sdk 0.1.19 → 0.1.21
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.
- package/dist/error.js +11 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +635 -107
- package/dist/generated/@tanstack/react-query.gen.js +510 -60
- package/dist/generated/internal/types.gen.d.ts +328 -21
- package/dist/generated/sdk.gen.d.ts +175 -33
- package/dist/generated/sdk.gen.js +349 -68
- package/dist/generated/types.gen.d.ts +2153 -1621
- package/dist/generated/zod.gen.d.ts +7375 -3891
- package/dist/generated/zod.gen.js +1004 -868
- package/package.json +2 -2
|
@@ -87,7 +87,7 @@ export class Agent extends HeyApiClient {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Search agents across
|
|
90
|
+
* Search agents across private, org, and published tiers
|
|
91
91
|
*/
|
|
92
92
|
search(options) {
|
|
93
93
|
return (options?.client ?? this.client).post({
|
|
@@ -149,16 +149,12 @@ export class Agent extends HeyApiClient {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Promote a private agent to org scope in place, cascading to its private dependencies
|
|
153
153
|
*/
|
|
154
|
-
|
|
154
|
+
promote(options) {
|
|
155
155
|
return (options.client ?? this.client).post({
|
|
156
|
-
url: "/api/agents/{id}/
|
|
156
|
+
url: "/api/agents/{id}/promote",
|
|
157
157
|
...options,
|
|
158
|
-
headers: {
|
|
159
|
-
"Content-Type": "application/json",
|
|
160
|
-
...options.headers,
|
|
161
|
-
},
|
|
162
158
|
});
|
|
163
159
|
}
|
|
164
160
|
/**
|
|
@@ -211,6 +207,19 @@ export class Blueprint extends HeyApiClient {
|
|
|
211
207
|
},
|
|
212
208
|
});
|
|
213
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Create or update a blueprint from a raw Spec
|
|
212
|
+
*/
|
|
213
|
+
push(options) {
|
|
214
|
+
return (options?.client ?? this.client).post({
|
|
215
|
+
url: "/api/blueprints/push",
|
|
216
|
+
...options,
|
|
217
|
+
headers: {
|
|
218
|
+
"Content-Type": "application/json",
|
|
219
|
+
...options?.headers,
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
}
|
|
214
223
|
/**
|
|
215
224
|
* Install a blueprint into a pod
|
|
216
225
|
*/
|
|
@@ -294,6 +303,17 @@ export class Billing extends HeyApiClient {
|
|
|
294
303
|
...options,
|
|
295
304
|
});
|
|
296
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Get organization-wide credit usage
|
|
308
|
+
*
|
|
309
|
+
* Total Ren credits consumed across the organization over a bounded time range, broken down by a chosen dimension (user, member, agent, model, session, project, pod, or source) with a per-day trend. Requires an explicit `start`/`end` range (max 92 days). Served from the local hourly usage rollup; values may lag live spend by up to roughly one hour plus a meter cycle.
|
|
310
|
+
*/
|
|
311
|
+
usage(options) {
|
|
312
|
+
return (options.client ?? this.client).get({
|
|
313
|
+
url: "/api/billing/usage",
|
|
314
|
+
...options,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
297
317
|
/**
|
|
298
318
|
* List invoices for the organization
|
|
299
319
|
*/
|
|
@@ -304,26 +324,48 @@ export class Billing extends HeyApiClient {
|
|
|
304
324
|
});
|
|
305
325
|
}
|
|
306
326
|
/**
|
|
307
|
-
*
|
|
327
|
+
* Get a payment URL for an invoice
|
|
328
|
+
*/
|
|
329
|
+
invoicePaymentUrl(options) {
|
|
330
|
+
return (options.client ?? this.client).get({ url: "/api/billing/invoice-payment-url", ...options });
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* List available subscription plans
|
|
308
334
|
*/
|
|
309
|
-
|
|
335
|
+
plans(options) {
|
|
310
336
|
return (options?.client ?? this.client).get({
|
|
311
|
-
url: "/api/billing/
|
|
337
|
+
url: "/api/billing/plans",
|
|
312
338
|
...options,
|
|
313
339
|
});
|
|
314
340
|
}
|
|
315
341
|
/**
|
|
316
|
-
*
|
|
342
|
+
* Start a subscription-plan checkout
|
|
317
343
|
*/
|
|
318
|
-
|
|
319
|
-
return (options
|
|
344
|
+
subscribe(options) {
|
|
345
|
+
return (options?.client ?? this.client).post({
|
|
346
|
+
url: "/api/billing/subscribe",
|
|
347
|
+
...options,
|
|
348
|
+
headers: {
|
|
349
|
+
"Content-Type": "application/json",
|
|
350
|
+
...options?.headers,
|
|
351
|
+
},
|
|
352
|
+
});
|
|
320
353
|
}
|
|
321
354
|
/**
|
|
322
|
-
*
|
|
355
|
+
* Get a customer-portal URL to manage the plan
|
|
323
356
|
*/
|
|
324
|
-
|
|
357
|
+
portal(options) {
|
|
358
|
+
return (options?.client ?? this.client).get({
|
|
359
|
+
url: "/api/billing/portal",
|
|
360
|
+
...options,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Upgrade or downgrade the current subscription plan
|
|
365
|
+
*/
|
|
366
|
+
changePlan(options) {
|
|
325
367
|
return (options?.client ?? this.client).post({
|
|
326
|
-
url: "/api/billing/plan",
|
|
368
|
+
url: "/api/billing/change-plan",
|
|
327
369
|
...options,
|
|
328
370
|
headers: {
|
|
329
371
|
"Content-Type": "application/json",
|
|
@@ -331,6 +373,15 @@ export class Billing extends HeyApiClient {
|
|
|
331
373
|
},
|
|
332
374
|
});
|
|
333
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* Cancel the subscription at the next renewal
|
|
378
|
+
*/
|
|
379
|
+
cancel(options) {
|
|
380
|
+
return (options?.client ?? this.client).post({
|
|
381
|
+
url: "/api/billing/cancel",
|
|
382
|
+
...options,
|
|
383
|
+
});
|
|
384
|
+
}
|
|
334
385
|
}
|
|
335
386
|
export class Dashboard extends HeyApiClient {
|
|
336
387
|
/**
|
|
@@ -515,6 +566,17 @@ export class FileStore extends HeyApiClient {
|
|
|
515
566
|
return (this._files ??= new Files({ client: this.client }));
|
|
516
567
|
}
|
|
517
568
|
}
|
|
569
|
+
export class Invitation extends HeyApiClient {
|
|
570
|
+
/**
|
|
571
|
+
* Preview an organization invitation
|
|
572
|
+
*/
|
|
573
|
+
preview(options) {
|
|
574
|
+
return (options.client ?? this.client).get({
|
|
575
|
+
url: "/api/invitations/{id}/preview",
|
|
576
|
+
...options,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
}
|
|
518
580
|
export class Mappings extends HeyApiClient {
|
|
519
581
|
/**
|
|
520
582
|
* List GitHub repo→project channel mappings for the org
|
|
@@ -707,7 +769,7 @@ export class Mcp extends HeyApiClient {
|
|
|
707
769
|
});
|
|
708
770
|
}
|
|
709
771
|
/**
|
|
710
|
-
* Search MCPs across
|
|
772
|
+
* Search MCPs across private, org, and published tiers
|
|
711
773
|
*/
|
|
712
774
|
search(options) {
|
|
713
775
|
return (options?.client ?? this.client).post({
|
|
@@ -769,16 +831,12 @@ export class Mcp extends HeyApiClient {
|
|
|
769
831
|
});
|
|
770
832
|
}
|
|
771
833
|
/**
|
|
772
|
-
*
|
|
834
|
+
* Promote a private MCP to org scope in place
|
|
773
835
|
*/
|
|
774
|
-
|
|
836
|
+
promote(options) {
|
|
775
837
|
return (options.client ?? this.client).post({
|
|
776
|
-
url: "/api/mcps/{id}/
|
|
838
|
+
url: "/api/mcps/{id}/promote",
|
|
777
839
|
...options,
|
|
778
|
-
headers: {
|
|
779
|
-
"Content-Type": "application/json",
|
|
780
|
-
...options.headers,
|
|
781
|
-
},
|
|
782
840
|
});
|
|
783
841
|
}
|
|
784
842
|
/**
|
|
@@ -818,6 +876,36 @@ export class Me extends HeyApiClient {
|
|
|
818
876
|
...options,
|
|
819
877
|
});
|
|
820
878
|
}
|
|
879
|
+
/**
|
|
880
|
+
* Update the active member persona
|
|
881
|
+
*
|
|
882
|
+
* Sets the authenticated user's persona for their active organization membership.
|
|
883
|
+
*/
|
|
884
|
+
updatePersona(options) {
|
|
885
|
+
return (options?.client ?? this.client).patch({
|
|
886
|
+
url: "/api/me/persona",
|
|
887
|
+
...options,
|
|
888
|
+
headers: {
|
|
889
|
+
"Content-Type": "application/json",
|
|
890
|
+
...options?.headers,
|
|
891
|
+
},
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Mark member onboarding complete
|
|
896
|
+
*
|
|
897
|
+
* Stamps the authenticated member as onboarded for their active organization.
|
|
898
|
+
*/
|
|
899
|
+
completeOnboarding(options) {
|
|
900
|
+
return (options?.client ?? this.client).post({
|
|
901
|
+
url: "/api/me/onboarding",
|
|
902
|
+
...options,
|
|
903
|
+
headers: {
|
|
904
|
+
"Content-Type": "application/json",
|
|
905
|
+
...options?.headers,
|
|
906
|
+
},
|
|
907
|
+
});
|
|
908
|
+
}
|
|
821
909
|
}
|
|
822
910
|
export class Files2 extends HeyApiClient {
|
|
823
911
|
/**
|
|
@@ -960,6 +1048,46 @@ export class Onboarding extends HeyApiClient {
|
|
|
960
1048
|
return (options?.client ?? this.client).post({ url: "/api/onboarding/setup-personal-org", ...options });
|
|
961
1049
|
}
|
|
962
1050
|
}
|
|
1051
|
+
export class Org extends HeyApiClient {
|
|
1052
|
+
/**
|
|
1053
|
+
* Get organization settings
|
|
1054
|
+
*/
|
|
1055
|
+
get(options) {
|
|
1056
|
+
return (options?.client ?? this.client).get({
|
|
1057
|
+
url: "/api/org",
|
|
1058
|
+
...options,
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Update organization settings
|
|
1063
|
+
*/
|
|
1064
|
+
update(options) {
|
|
1065
|
+
return (options?.client ?? this.client).patch({
|
|
1066
|
+
url: "/api/org",
|
|
1067
|
+
...options,
|
|
1068
|
+
headers: {
|
|
1069
|
+
"Content-Type": "application/json",
|
|
1070
|
+
...options?.headers,
|
|
1071
|
+
},
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
export class OrganizationLogo extends HeyApiClient {
|
|
1076
|
+
/**
|
|
1077
|
+
* Upload an organization logo
|
|
1078
|
+
*/
|
|
1079
|
+
upload(options) {
|
|
1080
|
+
return (options.client ?? this.client).post({
|
|
1081
|
+
...formDataBodySerializer,
|
|
1082
|
+
url: "/api/organization-logos",
|
|
1083
|
+
...options,
|
|
1084
|
+
headers: {
|
|
1085
|
+
"Content-Type": null,
|
|
1086
|
+
...options.headers,
|
|
1087
|
+
},
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
963
1091
|
export class Pat extends HeyApiClient {
|
|
964
1092
|
/**
|
|
965
1093
|
* List personal access tokens
|
|
@@ -1139,6 +1267,17 @@ export class Pod extends HeyApiClient {
|
|
|
1139
1267
|
},
|
|
1140
1268
|
});
|
|
1141
1269
|
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Get total credit usage for a pod
|
|
1272
|
+
*
|
|
1273
|
+
* Total Ren credits consumed across the whole pod, served from the local hourly usage rollup.
|
|
1274
|
+
*/
|
|
1275
|
+
usage(options) {
|
|
1276
|
+
return (options.client ?? this.client).get({
|
|
1277
|
+
url: "/api/pods/{id}/usage",
|
|
1278
|
+
...options,
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1142
1281
|
/**
|
|
1143
1282
|
* Archive a pod
|
|
1144
1283
|
*/
|
|
@@ -1261,6 +1400,80 @@ export class MemoryStore2 extends HeyApiClient {
|
|
|
1261
1400
|
return (options.client ?? this.client).delete({ url: "/api/projects/{id}/memory-stores/{memoryStoreId}", ...options });
|
|
1262
1401
|
}
|
|
1263
1402
|
}
|
|
1403
|
+
export class Skill extends HeyApiClient {
|
|
1404
|
+
/**
|
|
1405
|
+
* List skills attached to a project
|
|
1406
|
+
*/
|
|
1407
|
+
list(options) {
|
|
1408
|
+
return (options.client ?? this.client).get({
|
|
1409
|
+
url: "/api/projects/{id}/skills",
|
|
1410
|
+
...options,
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Attach a skill to a project
|
|
1415
|
+
*/
|
|
1416
|
+
add(options) {
|
|
1417
|
+
return (options.client ?? this.client).post({
|
|
1418
|
+
url: "/api/projects/{id}/skills",
|
|
1419
|
+
...options,
|
|
1420
|
+
headers: {
|
|
1421
|
+
"Content-Type": "application/json",
|
|
1422
|
+
...options.headers,
|
|
1423
|
+
},
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
* Resolve the one version served per skill in this project, with pin-conflict warnings
|
|
1428
|
+
*
|
|
1429
|
+
* The server resolves one version per skill per project — highest live version wins (decision 5). When a bound pin loses, it is reported here as a warning (never an error at bind time): a pin can lose later when someone publishes a newer version, so there is no request to reject at that moment.
|
|
1430
|
+
*/
|
|
1431
|
+
resolution(options) {
|
|
1432
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{id}/skills/resolution", ...options });
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Detach a skill from a project
|
|
1436
|
+
*/
|
|
1437
|
+
remove(options) {
|
|
1438
|
+
return (options.client ?? this.client).delete({
|
|
1439
|
+
url: "/api/projects/{id}/skills/{skillId}",
|
|
1440
|
+
...options,
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
export class Mcp2 extends HeyApiClient {
|
|
1445
|
+
/**
|
|
1446
|
+
* List MCPs attached to a project
|
|
1447
|
+
*/
|
|
1448
|
+
list(options) {
|
|
1449
|
+
return (options.client ?? this.client).get({
|
|
1450
|
+
url: "/api/projects/{id}/mcps",
|
|
1451
|
+
...options,
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Attach an MCP to a project
|
|
1456
|
+
*/
|
|
1457
|
+
add(options) {
|
|
1458
|
+
return (options.client ?? this.client).post({
|
|
1459
|
+
url: "/api/projects/{id}/mcps",
|
|
1460
|
+
...options,
|
|
1461
|
+
headers: {
|
|
1462
|
+
"Content-Type": "application/json",
|
|
1463
|
+
...options.headers,
|
|
1464
|
+
},
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Detach an MCP from a project
|
|
1469
|
+
*/
|
|
1470
|
+
remove(options) {
|
|
1471
|
+
return (options.client ?? this.client).delete({
|
|
1472
|
+
url: "/api/projects/{id}/mcps/{mcpId}",
|
|
1473
|
+
...options,
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1264
1477
|
export class Project extends HeyApiClient {
|
|
1265
1478
|
/**
|
|
1266
1479
|
* List projects
|
|
@@ -1306,6 +1519,17 @@ export class Project extends HeyApiClient {
|
|
|
1306
1519
|
},
|
|
1307
1520
|
});
|
|
1308
1521
|
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Get a project's credit usage
|
|
1524
|
+
*
|
|
1525
|
+
* Ren credits consumed within the project, with a per-day trend, a breakdown by usage source and operation, and an optional grouped breakdown (e.g. `groupBy=session` for per-session costs). `start`/`end` bound the range (max 92 days); omit both for all-time. Served from the local hourly usage rollup.
|
|
1526
|
+
*/
|
|
1527
|
+
usage(options) {
|
|
1528
|
+
return (options.client ?? this.client).get({
|
|
1529
|
+
url: "/api/projects/{id}/usage",
|
|
1530
|
+
...options,
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1309
1533
|
/**
|
|
1310
1534
|
* Archive a project
|
|
1311
1535
|
*/
|
|
@@ -1327,6 +1551,14 @@ export class Project extends HeyApiClient {
|
|
|
1327
1551
|
get memoryStore() {
|
|
1328
1552
|
return (this._memoryStore ??= new MemoryStore2({ client: this.client }));
|
|
1329
1553
|
}
|
|
1554
|
+
_skill;
|
|
1555
|
+
get skill() {
|
|
1556
|
+
return (this._skill ??= new Skill({ client: this.client }));
|
|
1557
|
+
}
|
|
1558
|
+
_mcp;
|
|
1559
|
+
get mcp() {
|
|
1560
|
+
return (this._mcp ??= new Mcp2({ client: this.client }));
|
|
1561
|
+
}
|
|
1330
1562
|
}
|
|
1331
1563
|
export class Publisher extends HeyApiClient {
|
|
1332
1564
|
/**
|
|
@@ -1537,6 +1769,8 @@ export class Session extends HeyApiClient {
|
|
|
1537
1769
|
}
|
|
1538
1770
|
/**
|
|
1539
1771
|
* Create a session
|
|
1772
|
+
*
|
|
1773
|
+
* Starts an async, sandbox-warming session creation job and returns a jobId to poll via session.createStatus.
|
|
1540
1774
|
*/
|
|
1541
1775
|
create(options) {
|
|
1542
1776
|
return (options?.client ?? this.client).post({
|
|
@@ -1548,6 +1782,15 @@ export class Session extends HeyApiClient {
|
|
|
1548
1782
|
},
|
|
1549
1783
|
});
|
|
1550
1784
|
}
|
|
1785
|
+
/**
|
|
1786
|
+
* Poll a session creation job
|
|
1787
|
+
*/
|
|
1788
|
+
createStatus(options) {
|
|
1789
|
+
return (options.client ?? this.client).get({
|
|
1790
|
+
url: "/api/sessions/jobs/{jobId}",
|
|
1791
|
+
...options,
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1551
1794
|
/**
|
|
1552
1795
|
* Get a session
|
|
1553
1796
|
*/
|
|
@@ -1581,6 +1824,17 @@ export class Session extends HeyApiClient {
|
|
|
1581
1824
|
...options,
|
|
1582
1825
|
});
|
|
1583
1826
|
}
|
|
1827
|
+
/**
|
|
1828
|
+
* Get a session's credit usage
|
|
1829
|
+
*
|
|
1830
|
+
* Total Ren credits consumed by this session and all of its child/subagent sessions, with a breakdown by usage source and operation. Served from the local hourly usage rollup; the value may lag live spend by up to roughly one hour plus a meter cycle.
|
|
1831
|
+
*/
|
|
1832
|
+
usage(options) {
|
|
1833
|
+
return (options.client ?? this.client).get({
|
|
1834
|
+
url: "/api/sessions/{id}/usage",
|
|
1835
|
+
...options,
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1584
1838
|
/**
|
|
1585
1839
|
* Compute MCP and skill credential requirements for a session
|
|
1586
1840
|
*/
|
|
@@ -1612,6 +1866,8 @@ export class Session extends HeyApiClient {
|
|
|
1612
1866
|
export class Version2 extends HeyApiClient {
|
|
1613
1867
|
/**
|
|
1614
1868
|
* List skill versions
|
|
1869
|
+
*
|
|
1870
|
+
* Git-backed skills are versionless (GitHub owns their history) but expose one pointer row holding the git source; its version string is a placeholder, not a commit SHA.
|
|
1615
1871
|
*/
|
|
1616
1872
|
list(options) {
|
|
1617
1873
|
return (options.client ?? this.client).get({
|
|
@@ -1624,11 +1880,10 @@ export class Version2 extends HeyApiClient {
|
|
|
1624
1880
|
*/
|
|
1625
1881
|
create(options) {
|
|
1626
1882
|
return (options.client ?? this.client).post({
|
|
1627
|
-
...formDataBodySerializer,
|
|
1628
1883
|
url: "/api/skills/{id}/versions",
|
|
1629
1884
|
...options,
|
|
1630
1885
|
headers: {
|
|
1631
|
-
"Content-Type":
|
|
1886
|
+
"Content-Type": "application/json",
|
|
1632
1887
|
...options.headers,
|
|
1633
1888
|
},
|
|
1634
1889
|
});
|
|
@@ -1661,9 +1916,9 @@ export class Version2 extends HeyApiClient {
|
|
|
1661
1916
|
});
|
|
1662
1917
|
}
|
|
1663
1918
|
}
|
|
1664
|
-
export class
|
|
1919
|
+
export class Skill2 extends HeyApiClient {
|
|
1665
1920
|
/**
|
|
1666
|
-
* List skills
|
|
1921
|
+
* List and search skills
|
|
1667
1922
|
*/
|
|
1668
1923
|
list(options) {
|
|
1669
1924
|
return (options?.client ?? this.client).get({
|
|
@@ -1675,22 +1930,8 @@ export class Skill extends HeyApiClient {
|
|
|
1675
1930
|
* Create a skill
|
|
1676
1931
|
*/
|
|
1677
1932
|
create(options) {
|
|
1678
|
-
return (options.client ?? this.client).post({
|
|
1679
|
-
...formDataBodySerializer,
|
|
1680
|
-
url: "/api/skills",
|
|
1681
|
-
...options,
|
|
1682
|
-
headers: {
|
|
1683
|
-
"Content-Type": null,
|
|
1684
|
-
...options.headers,
|
|
1685
|
-
},
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
/**
|
|
1689
|
-
* Search skills across user, org, and registry scopes
|
|
1690
|
-
*/
|
|
1691
|
-
search(options) {
|
|
1692
1933
|
return (options?.client ?? this.client).post({
|
|
1693
|
-
url: "/api/skills
|
|
1934
|
+
url: "/api/skills",
|
|
1694
1935
|
...options,
|
|
1695
1936
|
headers: {
|
|
1696
1937
|
"Content-Type": "application/json",
|
|
@@ -1699,20 +1940,11 @@ export class Skill extends HeyApiClient {
|
|
|
1699
1940
|
});
|
|
1700
1941
|
}
|
|
1701
1942
|
/**
|
|
1702
|
-
* Get a skill by slug
|
|
1703
|
-
*/
|
|
1704
|
-
getBySlug(options) {
|
|
1705
|
-
return (options.client ?? this.client).get({
|
|
1706
|
-
url: "/api/skills/slug/{slug}",
|
|
1707
|
-
...options,
|
|
1708
|
-
});
|
|
1709
|
-
}
|
|
1710
|
-
/**
|
|
1711
|
-
* Get a skill
|
|
1943
|
+
* Get a skill by ID or slug
|
|
1712
1944
|
*/
|
|
1713
1945
|
get(options) {
|
|
1714
1946
|
return (options.client ?? this.client).get({
|
|
1715
|
-
url: "/api/skills/{
|
|
1947
|
+
url: "/api/skills/{idOrSlug}",
|
|
1716
1948
|
...options,
|
|
1717
1949
|
});
|
|
1718
1950
|
}
|
|
@@ -1740,6 +1972,8 @@ export class Skill extends HeyApiClient {
|
|
|
1740
1972
|
}
|
|
1741
1973
|
/**
|
|
1742
1974
|
* Publish a skill
|
|
1975
|
+
*
|
|
1976
|
+
* Publishing changes copyability (the skill enters the registry), not materialisation: it does NOT fan out to sandboxes. A git-backed skill's repository must be publicly cloneable (decision 11).
|
|
1743
1977
|
*/
|
|
1744
1978
|
publish(options) {
|
|
1745
1979
|
return (options.client ?? this.client).post({
|
|
@@ -1749,6 +1983,8 @@ export class Skill extends HeyApiClient {
|
|
|
1749
1983
|
}
|
|
1750
1984
|
/**
|
|
1751
1985
|
* Deprecate a skill
|
|
1986
|
+
*
|
|
1987
|
+
* Deprecation is an adoption signal only — it does NOT affect materialisation: sandboxes already tracking the skill keep receiving it. Use archive to remove a skill from sandboxes.
|
|
1752
1988
|
*/
|
|
1753
1989
|
deprecate(options) {
|
|
1754
1990
|
return (options.client ?? this.client).post({
|
|
@@ -1783,16 +2019,12 @@ export class Skill extends HeyApiClient {
|
|
|
1783
2019
|
});
|
|
1784
2020
|
}
|
|
1785
2021
|
/**
|
|
1786
|
-
*
|
|
2022
|
+
* Promote a private skill to org scope in place
|
|
1787
2023
|
*/
|
|
1788
|
-
|
|
2024
|
+
promote(options) {
|
|
1789
2025
|
return (options.client ?? this.client).post({
|
|
1790
|
-
url: "/api/skills/{id}/
|
|
2026
|
+
url: "/api/skills/{id}/promote",
|
|
1791
2027
|
...options,
|
|
1792
|
-
headers: {
|
|
1793
|
-
"Content-Type": "application/json",
|
|
1794
|
-
...options.headers,
|
|
1795
|
-
},
|
|
1796
2028
|
});
|
|
1797
2029
|
}
|
|
1798
2030
|
_version;
|
|
@@ -1952,6 +2184,14 @@ export class WebhookTrigger extends HeyApiClient {
|
|
|
1952
2184
|
});
|
|
1953
2185
|
}
|
|
1954
2186
|
}
|
|
2187
|
+
export class Onboarding2 extends HeyApiClient {
|
|
2188
|
+
/**
|
|
2189
|
+
* Resolve the next onboarding step after Sign in with Slack
|
|
2190
|
+
*/
|
|
2191
|
+
resolve(options) {
|
|
2192
|
+
return (options?.client ?? this.client).get({ url: "/api/slack/onboarding/resolve", ...options });
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
1955
2195
|
export class Channel extends HeyApiClient {
|
|
1956
2196
|
/**
|
|
1957
2197
|
* List Slack channels with their current project mapping
|
|
@@ -2013,6 +2253,10 @@ export class Slack extends HeyApiClient {
|
|
|
2013
2253
|
...options,
|
|
2014
2254
|
});
|
|
2015
2255
|
}
|
|
2256
|
+
_onboarding;
|
|
2257
|
+
get onboarding() {
|
|
2258
|
+
return (this._onboarding ??= new Onboarding2({ client: this.client }));
|
|
2259
|
+
}
|
|
2016
2260
|
_channel;
|
|
2017
2261
|
get channel() {
|
|
2018
2262
|
return (this._channel ??= new Channel({ client: this.client }));
|
|
@@ -2141,7 +2385,7 @@ export class Mappings2 extends HeyApiClient {
|
|
|
2141
2385
|
});
|
|
2142
2386
|
}
|
|
2143
2387
|
/**
|
|
2144
|
-
* Map a Linear project to a Ren project
|
|
2388
|
+
* Map a Linear project to a Ren project (idempotent upsert)
|
|
2145
2389
|
*/
|
|
2146
2390
|
create(options) {
|
|
2147
2391
|
return (options?.client ?? this.client).post({
|
|
@@ -2350,6 +2594,19 @@ export class Credential extends HeyApiClient {
|
|
|
2350
2594
|
...options,
|
|
2351
2595
|
});
|
|
2352
2596
|
}
|
|
2597
|
+
/**
|
|
2598
|
+
* Copy or move a credential to another vault
|
|
2599
|
+
*/
|
|
2600
|
+
transfer(options) {
|
|
2601
|
+
return (options.client ?? this.client).post({
|
|
2602
|
+
url: "/api/vaults/{vaultId}/credentials/{id}/transfer",
|
|
2603
|
+
...options,
|
|
2604
|
+
headers: {
|
|
2605
|
+
"Content-Type": "application/json",
|
|
2606
|
+
...options.headers,
|
|
2607
|
+
},
|
|
2608
|
+
});
|
|
2609
|
+
}
|
|
2353
2610
|
_oauth;
|
|
2354
2611
|
get oauth() {
|
|
2355
2612
|
return (this._oauth ??= new Oauth2({ client: this.client }));
|
|
@@ -2375,7 +2632,7 @@ export class Agent3 extends HeyApiClient {
|
|
|
2375
2632
|
});
|
|
2376
2633
|
}
|
|
2377
2634
|
}
|
|
2378
|
-
export class
|
|
2635
|
+
export class Skill3 extends HeyApiClient {
|
|
2379
2636
|
/**
|
|
2380
2637
|
* List registry skills
|
|
2381
2638
|
*/
|
|
@@ -2395,7 +2652,7 @@ export class Skill2 extends HeyApiClient {
|
|
|
2395
2652
|
});
|
|
2396
2653
|
}
|
|
2397
2654
|
}
|
|
2398
|
-
export class
|
|
2655
|
+
export class Mcp3 extends HeyApiClient {
|
|
2399
2656
|
/**
|
|
2400
2657
|
* List registry MCPs
|
|
2401
2658
|
*/
|
|
@@ -2423,6 +2680,14 @@ export class Blueprint2 extends HeyApiClient {
|
|
|
2423
2680
|
return (options.client ?? this.client).get({ url: "/api/registry/blueprints/{slug}", ...options });
|
|
2424
2681
|
}
|
|
2425
2682
|
}
|
|
2683
|
+
export class Publisher2 extends HeyApiClient {
|
|
2684
|
+
/**
|
|
2685
|
+
* Get a registry publisher by slug
|
|
2686
|
+
*/
|
|
2687
|
+
get(options) {
|
|
2688
|
+
return (options.client ?? this.client).get({ url: "/api/registry/publishers/{slug}", ...options });
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2426
2691
|
export class Files4 extends HeyApiClient {
|
|
2427
2692
|
/**
|
|
2428
2693
|
* Presign a download URL for a public replay's pod-volume file
|
|
@@ -2505,16 +2770,20 @@ export class Registry extends HeyApiClient {
|
|
|
2505
2770
|
}
|
|
2506
2771
|
_skill;
|
|
2507
2772
|
get skill() {
|
|
2508
|
-
return (this._skill ??= new
|
|
2773
|
+
return (this._skill ??= new Skill3({ client: this.client }));
|
|
2509
2774
|
}
|
|
2510
2775
|
_mcp;
|
|
2511
2776
|
get mcp() {
|
|
2512
|
-
return (this._mcp ??= new
|
|
2777
|
+
return (this._mcp ??= new Mcp3({ client: this.client }));
|
|
2513
2778
|
}
|
|
2514
2779
|
_blueprint;
|
|
2515
2780
|
get blueprint() {
|
|
2516
2781
|
return (this._blueprint ??= new Blueprint2({ client: this.client }));
|
|
2517
2782
|
}
|
|
2783
|
+
_publisher;
|
|
2784
|
+
get publisher() {
|
|
2785
|
+
return (this._publisher ??= new Publisher2({ client: this.client }));
|
|
2786
|
+
}
|
|
2518
2787
|
_replay;
|
|
2519
2788
|
get replay() {
|
|
2520
2789
|
return (this._replay ??= new Replay2({ client: this.client }));
|
|
@@ -2554,6 +2823,10 @@ export class RenClient extends HeyApiClient {
|
|
|
2554
2823
|
get fileStore() {
|
|
2555
2824
|
return (this._fileStore ??= new FileStore({ client: this.client }));
|
|
2556
2825
|
}
|
|
2826
|
+
_invitation;
|
|
2827
|
+
get invitation() {
|
|
2828
|
+
return (this._invitation ??= new Invitation({ client: this.client }));
|
|
2829
|
+
}
|
|
2557
2830
|
_github;
|
|
2558
2831
|
get github() {
|
|
2559
2832
|
return (this._github ??= new Github({ client: this.client }));
|
|
@@ -2582,6 +2855,14 @@ export class RenClient extends HeyApiClient {
|
|
|
2582
2855
|
get onboarding() {
|
|
2583
2856
|
return (this._onboarding ??= new Onboarding({ client: this.client }));
|
|
2584
2857
|
}
|
|
2858
|
+
_org;
|
|
2859
|
+
get org() {
|
|
2860
|
+
return (this._org ??= new Org({ client: this.client }));
|
|
2861
|
+
}
|
|
2862
|
+
_organizationLogo;
|
|
2863
|
+
get organizationLogo() {
|
|
2864
|
+
return (this._organizationLogo ??= new OrganizationLogo({ client: this.client }));
|
|
2865
|
+
}
|
|
2585
2866
|
_pat;
|
|
2586
2867
|
get pat() {
|
|
2587
2868
|
return (this._pat ??= new Pat({ client: this.client }));
|
|
@@ -2608,7 +2889,7 @@ export class RenClient extends HeyApiClient {
|
|
|
2608
2889
|
}
|
|
2609
2890
|
_skill;
|
|
2610
2891
|
get skill() {
|
|
2611
|
-
return (this._skill ??= new
|
|
2892
|
+
return (this._skill ??= new Skill2({ client: this.client }));
|
|
2612
2893
|
}
|
|
2613
2894
|
_topology;
|
|
2614
2895
|
get topology() {
|