@renai-labs/sdk 0.1.8 → 0.1.10
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/generated/@tanstack/react-query.gen.d.ts +131 -1
- package/dist/generated/@tanstack/react-query.gen.js +141 -0
- package/dist/generated/internal/types.gen.d.ts +54 -0
- package/dist/generated/sdk.gen.d.ts +47 -1
- package/dist/generated/sdk.gen.js +84 -0
- package/dist/generated/types.gen.d.ts +648 -43
- package/dist/generated/zod.gen.d.ts +790 -119
- package/dist/generated/zod.gen.js +343 -52
- package/package.json +1 -1
|
@@ -1479,6 +1479,8 @@ export class Session extends HeyApiClient {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
/**
|
|
1481
1481
|
* Get the OpenCode URL for a session
|
|
1482
|
+
*
|
|
1483
|
+
* Returns the session's OpenCode endpoint. `url` is the bare (Basic-auth protected) URL; `authedUrl` embeds the credential as an `auth_token` query param for one-call access — treat it as a secret since it is equivalent to the password. `serverPassword`/`username` are provided so callers can build their own Basic auth header instead.
|
|
1482
1484
|
*/
|
|
1483
1485
|
url(options) {
|
|
1484
1486
|
return (options.client ?? this.client).get({
|
|
@@ -1699,6 +1701,29 @@ export class Topology extends HeyApiClient {
|
|
|
1699
1701
|
});
|
|
1700
1702
|
}
|
|
1701
1703
|
}
|
|
1704
|
+
export class TopologyShare extends HeyApiClient {
|
|
1705
|
+
/**
|
|
1706
|
+
* List topology shares
|
|
1707
|
+
*/
|
|
1708
|
+
list(options) {
|
|
1709
|
+
return (options?.client ?? this.client).get({
|
|
1710
|
+
url: "/api/topology-shares",
|
|
1711
|
+
...options,
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Create a topology share
|
|
1716
|
+
*/
|
|
1717
|
+
create(options) {
|
|
1718
|
+
return (options?.client ?? this.client).post({ url: "/api/topology-shares", ...options });
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* Archive a topology share
|
|
1722
|
+
*/
|
|
1723
|
+
archive(options) {
|
|
1724
|
+
return (options.client ?? this.client).post({ url: "/api/topology-shares/{id}/archive", ...options });
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1702
1727
|
export class Trigger extends HeyApiClient {
|
|
1703
1728
|
/**
|
|
1704
1729
|
* List cron triggers in a project
|
|
@@ -1883,6 +1908,39 @@ export class Slack extends HeyApiClient {
|
|
|
1883
1908
|
return (this._channel ??= new Channel({ client: this.client }));
|
|
1884
1909
|
}
|
|
1885
1910
|
}
|
|
1911
|
+
export class Email extends HeyApiClient {
|
|
1912
|
+
/**
|
|
1913
|
+
* List email mailboxes for the caller's org
|
|
1914
|
+
*/
|
|
1915
|
+
list(options) {
|
|
1916
|
+
return (options?.client ?? this.client).get({
|
|
1917
|
+
url: "/api/emails",
|
|
1918
|
+
...options,
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* Disable the email channel for a project
|
|
1923
|
+
*/
|
|
1924
|
+
unset(options) {
|
|
1925
|
+
return (options.client ?? this.client).delete({
|
|
1926
|
+
url: "/api/emails/{projectId}",
|
|
1927
|
+
...options,
|
|
1928
|
+
});
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* Enable the email channel for a project (create or update its mailbox)
|
|
1932
|
+
*/
|
|
1933
|
+
set(options) {
|
|
1934
|
+
return (options.client ?? this.client).post({
|
|
1935
|
+
url: "/api/emails/{projectId}",
|
|
1936
|
+
...options,
|
|
1937
|
+
headers: {
|
|
1938
|
+
"Content-Type": "application/json",
|
|
1939
|
+
...options.headers,
|
|
1940
|
+
},
|
|
1941
|
+
});
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1886
1944
|
export class Vault2 extends HeyApiClient {
|
|
1887
1945
|
/**
|
|
1888
1946
|
* List vaults
|
|
@@ -2165,6 +2223,20 @@ export class Replay2 extends HeyApiClient {
|
|
|
2165
2223
|
return (this._shared ??= new Shared({ client: this.client }));
|
|
2166
2224
|
}
|
|
2167
2225
|
}
|
|
2226
|
+
export class Share extends HeyApiClient {
|
|
2227
|
+
/**
|
|
2228
|
+
* Get a live topology by its share token
|
|
2229
|
+
*/
|
|
2230
|
+
get(options) {
|
|
2231
|
+
return (options.client ?? this.client).get({ url: "/api/registry/topology/share/{token}", ...options });
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
export class Topology2 extends HeyApiClient {
|
|
2235
|
+
_share;
|
|
2236
|
+
get share() {
|
|
2237
|
+
return (this._share ??= new Share({ client: this.client }));
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2168
2240
|
export class Registry extends HeyApiClient {
|
|
2169
2241
|
_agent;
|
|
2170
2242
|
get agent() {
|
|
@@ -2186,6 +2258,10 @@ export class Registry extends HeyApiClient {
|
|
|
2186
2258
|
get replay() {
|
|
2187
2259
|
return (this._replay ??= new Replay2({ client: this.client }));
|
|
2188
2260
|
}
|
|
2261
|
+
_topology;
|
|
2262
|
+
get topology() {
|
|
2263
|
+
return (this._topology ??= new Topology2({ client: this.client }));
|
|
2264
|
+
}
|
|
2189
2265
|
}
|
|
2190
2266
|
export class RenClient extends HeyApiClient {
|
|
2191
2267
|
static __registry = new HeyApiRegistry();
|
|
@@ -2277,6 +2353,10 @@ export class RenClient extends HeyApiClient {
|
|
|
2277
2353
|
get topology() {
|
|
2278
2354
|
return (this._topology ??= new Topology({ client: this.client }));
|
|
2279
2355
|
}
|
|
2356
|
+
_topologyShare;
|
|
2357
|
+
get topologyShare() {
|
|
2358
|
+
return (this._topologyShare ??= new TopologyShare({ client: this.client }));
|
|
2359
|
+
}
|
|
2280
2360
|
_trigger;
|
|
2281
2361
|
get trigger() {
|
|
2282
2362
|
return (this._trigger ??= new Trigger({ client: this.client }));
|
|
@@ -2289,6 +2369,10 @@ export class RenClient extends HeyApiClient {
|
|
|
2289
2369
|
get slack() {
|
|
2290
2370
|
return (this._slack ??= new Slack({ client: this.client }));
|
|
2291
2371
|
}
|
|
2372
|
+
_email;
|
|
2373
|
+
get email() {
|
|
2374
|
+
return (this._email ??= new Email({ client: this.client }));
|
|
2375
|
+
}
|
|
2292
2376
|
_vault;
|
|
2293
2377
|
get vault() {
|
|
2294
2378
|
return (this._vault ??= new Vault2({ client: this.client }));
|