@renai-labs/sdk 0.1.0 → 0.1.1
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/auth.d.ts +1 -0
- package/dist/auth.js +2 -1
- package/dist/client.js +12 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +915 -1201
- package/dist/generated/@tanstack/react-query.gen.js +1063 -1473
- package/dist/generated/client/client.gen.d.ts +1 -1
- package/dist/generated/client/client.gen.js +44 -46
- package/dist/generated/client/index.d.ts +8 -8
- package/dist/generated/client/index.js +5 -5
- package/dist/generated/client/types.gen.d.ts +18 -18
- package/dist/generated/client/utils.gen.d.ts +3 -3
- package/dist/generated/client/utils.gen.js +33 -35
- package/dist/generated/client.gen.d.ts +2 -2
- package/dist/generated/client.gen.js +1 -1
- package/dist/generated/core/auth.gen.d.ts +3 -3
- package/dist/generated/core/auth.gen.js +3 -3
- package/dist/generated/core/bodySerializer.gen.d.ts +1 -1
- package/dist/generated/core/bodySerializer.gen.js +3 -3
- package/dist/generated/core/params.gen.d.ts +3 -3
- package/dist/generated/core/params.gen.js +11 -9
- package/dist/generated/core/pathSerializer.gen.d.ts +4 -4
- package/dist/generated/core/pathSerializer.gen.js +37 -37
- package/dist/generated/core/queryKeySerializer.gen.js +8 -7
- package/dist/generated/core/serverSentEvents.gen.d.ts +3 -3
- package/dist/generated/core/serverSentEvents.gen.js +19 -19
- package/dist/generated/core/types.gen.d.ts +4 -4
- package/dist/generated/core/utils.gen.d.ts +1 -1
- package/dist/generated/core/utils.gen.js +17 -17
- package/dist/generated/internal/types.gen.d.ts +664 -0
- package/dist/generated/internal/types.gen.js +2 -0
- package/dist/generated/sdk.gen.d.ts +281 -343
- package/dist/generated/sdk.gen.js +930 -723
- package/dist/generated/types.gen.d.ts +2626 -2238
- package/dist/generated/zod.gen.d.ts +5569 -2277
- package/dist/generated/zod.gen.js +1757 -1118
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +11 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import {
|
|
2
|
+
import { formDataBodySerializer } from "./client";
|
|
3
|
+
import { client } from "./client.gen";
|
|
3
4
|
class HeyApiClient {
|
|
4
5
|
client;
|
|
5
6
|
constructor(args) {
|
|
@@ -7,7 +8,7 @@ class HeyApiClient {
|
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
class HeyApiRegistry {
|
|
10
|
-
defaultKey =
|
|
11
|
+
defaultKey = "default";
|
|
11
12
|
instances = new Map();
|
|
12
13
|
get(key) {
|
|
13
14
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
@@ -20,100 +21,46 @@ class HeyApiRegistry {
|
|
|
20
21
|
this.instances.set(key ?? this.defaultKey, value);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
export class Mcp extends HeyApiClient {
|
|
24
|
-
/**
|
|
25
|
-
* List Composio MCPs
|
|
26
|
-
*/
|
|
27
|
-
list(options) {
|
|
28
|
-
return (options?.client ?? this.client).get({ url: '/api/composio/mcps', ...options });
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Get a Composio MCP
|
|
32
|
-
*/
|
|
33
|
-
get(options) {
|
|
34
|
-
return (options.client ?? this.client).get({ url: '/api/composio/mcps/{id}', ...options });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export class Connection extends HeyApiClient {
|
|
38
|
-
/**
|
|
39
|
-
* List Composio connections for the owner
|
|
40
|
-
*/
|
|
41
|
-
list(options) {
|
|
42
|
-
return (options?.client ?? this.client).get({ url: '/api/composio/connections', ...options });
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Initiate a Composio connection (link + pending row, or reuse active)
|
|
46
|
-
*/
|
|
47
|
-
initiate(options) {
|
|
48
|
-
return (options?.client ?? this.client).post({
|
|
49
|
-
url: '/api/composio/connections',
|
|
50
|
-
...options,
|
|
51
|
-
headers: {
|
|
52
|
-
'Content-Type': 'application/json',
|
|
53
|
-
...options?.headers
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get a Composio connection
|
|
59
|
-
*/
|
|
60
|
-
get(options) {
|
|
61
|
-
return (options.client ?? this.client).get({ url: '/api/composio/connections/{id}', ...options });
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Poll Composio and reconcile connection status (pending→active transition)
|
|
65
|
-
*/
|
|
66
|
-
refresh(options) {
|
|
67
|
-
return (options.client ?? this.client).post({ url: '/api/composio/connections/{id}/refresh', ...options });
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Archive a Composio connection (best-effort revoke + local archive)
|
|
71
|
-
*/
|
|
72
|
-
archive(options) {
|
|
73
|
-
return (options.client ?? this.client).post({ url: '/api/composio/connections/{id}/archive', ...options });
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export class Composio extends HeyApiClient {
|
|
77
|
-
_mcp;
|
|
78
|
-
get mcp() {
|
|
79
|
-
return this._mcp ??= new Mcp({ client: this.client });
|
|
80
|
-
}
|
|
81
|
-
_connection;
|
|
82
|
-
get connection() {
|
|
83
|
-
return this._connection ??= new Connection({ client: this.client });
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
24
|
export class Version extends HeyApiClient {
|
|
87
25
|
/**
|
|
88
26
|
* List agent versions
|
|
89
27
|
*/
|
|
90
28
|
list(options) {
|
|
91
|
-
return (options.client ?? this.client).get({
|
|
29
|
+
return (options.client ?? this.client).get({
|
|
30
|
+
url: "/api/agents/{id}/versions",
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
92
33
|
}
|
|
93
34
|
/**
|
|
94
35
|
* Create an agent version
|
|
95
36
|
*/
|
|
96
37
|
create(options) {
|
|
97
38
|
return (options.client ?? this.client).post({
|
|
98
|
-
url:
|
|
39
|
+
url: "/api/agents/{id}/versions",
|
|
99
40
|
...options,
|
|
100
41
|
headers: {
|
|
101
|
-
|
|
102
|
-
...options.headers
|
|
103
|
-
}
|
|
42
|
+
"Content-Type": "application/json",
|
|
43
|
+
...options.headers,
|
|
44
|
+
},
|
|
104
45
|
});
|
|
105
46
|
}
|
|
106
47
|
/**
|
|
107
48
|
* Get an agent version
|
|
108
49
|
*/
|
|
109
50
|
get(options) {
|
|
110
|
-
return (options.client ?? this.client).get({
|
|
51
|
+
return (options.client ?? this.client).get({
|
|
52
|
+
url: "/api/agents/{id}/versions/{version}",
|
|
53
|
+
...options,
|
|
54
|
+
});
|
|
111
55
|
}
|
|
112
56
|
/**
|
|
113
57
|
* Archive an agent version
|
|
114
58
|
*/
|
|
115
59
|
archive(options) {
|
|
116
|
-
return (options.client ?? this.client).post({
|
|
60
|
+
return (options.client ?? this.client).post({
|
|
61
|
+
url: "/api/agents/{id}/versions/{version}/archive",
|
|
62
|
+
...options,
|
|
63
|
+
});
|
|
117
64
|
}
|
|
118
65
|
}
|
|
119
66
|
export class Agent extends HeyApiClient {
|
|
@@ -121,55 +68,128 @@ export class Agent extends HeyApiClient {
|
|
|
121
68
|
* List agents
|
|
122
69
|
*/
|
|
123
70
|
list(options) {
|
|
124
|
-
return (options?.client ?? this.client).get({
|
|
71
|
+
return (options?.client ?? this.client).get({
|
|
72
|
+
url: "/api/agents",
|
|
73
|
+
...options,
|
|
74
|
+
});
|
|
125
75
|
}
|
|
126
76
|
/**
|
|
127
77
|
* Create an agent
|
|
128
78
|
*/
|
|
129
79
|
create(options) {
|
|
130
80
|
return (options?.client ?? this.client).post({
|
|
131
|
-
url:
|
|
81
|
+
url: "/api/agents",
|
|
132
82
|
...options,
|
|
133
83
|
headers: {
|
|
134
|
-
|
|
135
|
-
...options?.headers
|
|
136
|
-
}
|
|
84
|
+
"Content-Type": "application/json",
|
|
85
|
+
...options?.headers,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Search agents across user, org, and registry scopes
|
|
91
|
+
*/
|
|
92
|
+
search(options) {
|
|
93
|
+
return (options?.client ?? this.client).post({
|
|
94
|
+
url: "/api/agents/search",
|
|
95
|
+
...options,
|
|
96
|
+
headers: {
|
|
97
|
+
"Content-Type": "application/json",
|
|
98
|
+
...options?.headers,
|
|
99
|
+
},
|
|
137
100
|
});
|
|
138
101
|
}
|
|
139
102
|
/**
|
|
140
103
|
* Get an agent by slug
|
|
141
104
|
*/
|
|
142
105
|
getBySlug(options) {
|
|
143
|
-
return (options.client ?? this.client).get({
|
|
106
|
+
return (options.client ?? this.client).get({
|
|
107
|
+
url: "/api/agents/slug/{slug}",
|
|
108
|
+
...options,
|
|
109
|
+
});
|
|
144
110
|
}
|
|
145
111
|
/**
|
|
146
112
|
* Get an agent
|
|
147
113
|
*/
|
|
148
114
|
get(options) {
|
|
149
|
-
return (options.client ?? this.client).get({
|
|
115
|
+
return (options.client ?? this.client).get({
|
|
116
|
+
url: "/api/agents/{id}",
|
|
117
|
+
...options,
|
|
118
|
+
});
|
|
150
119
|
}
|
|
151
120
|
/**
|
|
152
121
|
* Update agent metadata
|
|
153
122
|
*/
|
|
154
123
|
update(options) {
|
|
155
124
|
return (options.client ?? this.client).patch({
|
|
156
|
-
url:
|
|
125
|
+
url: "/api/agents/{id}",
|
|
157
126
|
...options,
|
|
158
127
|
headers: {
|
|
159
|
-
|
|
160
|
-
...options.headers
|
|
161
|
-
}
|
|
128
|
+
"Content-Type": "application/json",
|
|
129
|
+
...options.headers,
|
|
130
|
+
},
|
|
162
131
|
});
|
|
163
132
|
}
|
|
164
133
|
/**
|
|
165
134
|
* Archive an agent
|
|
166
135
|
*/
|
|
167
136
|
archive(options) {
|
|
168
|
-
return (options.client ?? this.client).post({
|
|
137
|
+
return (options.client ?? this.client).post({
|
|
138
|
+
url: "/api/agents/{id}/archive",
|
|
139
|
+
...options,
|
|
140
|
+
});
|
|
169
141
|
}
|
|
170
142
|
_version;
|
|
171
143
|
get version() {
|
|
172
|
-
return this._version ??= new Version({ client: this.client });
|
|
144
|
+
return (this._version ??= new Version({ client: this.client }));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export class Billing extends HeyApiClient {
|
|
148
|
+
/**
|
|
149
|
+
* Get organization billing summary
|
|
150
|
+
*/
|
|
151
|
+
get(options) {
|
|
152
|
+
return (options?.client ?? this.client).get({
|
|
153
|
+
url: "/api/billing",
|
|
154
|
+
...options,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* List invoices for the organization
|
|
159
|
+
*/
|
|
160
|
+
invoices(options) {
|
|
161
|
+
return (options?.client ?? this.client).get({
|
|
162
|
+
url: "/api/billing/invoices",
|
|
163
|
+
...options,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Daily credit usage
|
|
168
|
+
*/
|
|
169
|
+
dailyUsage(options) {
|
|
170
|
+
return (options?.client ?? this.client).get({
|
|
171
|
+
url: "/api/billing/daily-usage",
|
|
172
|
+
...options,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Get a payment URL for an invoice
|
|
177
|
+
*/
|
|
178
|
+
invoicePaymentUrl(options) {
|
|
179
|
+
return (options.client ?? this.client).get({ url: "/api/billing/invoice-payment-url", ...options });
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Change subscription plan
|
|
183
|
+
*/
|
|
184
|
+
updatePlan(options) {
|
|
185
|
+
return (options?.client ?? this.client).post({
|
|
186
|
+
url: "/api/billing/plan",
|
|
187
|
+
...options,
|
|
188
|
+
headers: {
|
|
189
|
+
"Content-Type": "application/json",
|
|
190
|
+
...options?.headers,
|
|
191
|
+
},
|
|
192
|
+
});
|
|
173
193
|
}
|
|
174
194
|
}
|
|
175
195
|
export class Dashboard extends HeyApiClient {
|
|
@@ -177,7 +197,10 @@ export class Dashboard extends HeyApiClient {
|
|
|
177
197
|
* Get dashboard analytics
|
|
178
198
|
*/
|
|
179
199
|
get(options) {
|
|
180
|
-
return (options?.client ?? this.client).get({
|
|
200
|
+
return (options?.client ?? this.client).get({
|
|
201
|
+
url: "/api/dashboard",
|
|
202
|
+
...options,
|
|
203
|
+
});
|
|
181
204
|
}
|
|
182
205
|
}
|
|
183
206
|
export class Environment extends HeyApiClient {
|
|
@@ -185,51 +208,63 @@ export class Environment extends HeyApiClient {
|
|
|
185
208
|
* List environments
|
|
186
209
|
*/
|
|
187
210
|
list(options) {
|
|
188
|
-
return (options?.client ?? this.client).get({
|
|
211
|
+
return (options?.client ?? this.client).get({
|
|
212
|
+
url: "/api/environments",
|
|
213
|
+
...options,
|
|
214
|
+
});
|
|
189
215
|
}
|
|
190
216
|
/**
|
|
191
217
|
* Create an environment
|
|
192
218
|
*/
|
|
193
219
|
create(options) {
|
|
194
220
|
return (options?.client ?? this.client).post({
|
|
195
|
-
url:
|
|
221
|
+
url: "/api/environments",
|
|
196
222
|
...options,
|
|
197
223
|
headers: {
|
|
198
|
-
|
|
199
|
-
...options?.headers
|
|
200
|
-
}
|
|
224
|
+
"Content-Type": "application/json",
|
|
225
|
+
...options?.headers,
|
|
226
|
+
},
|
|
201
227
|
});
|
|
202
228
|
}
|
|
203
229
|
/**
|
|
204
230
|
* Delete an environment permanently
|
|
205
231
|
*/
|
|
206
232
|
delete(options) {
|
|
207
|
-
return (options.client ?? this.client).delete({
|
|
233
|
+
return (options.client ?? this.client).delete({
|
|
234
|
+
url: "/api/environments/{id}",
|
|
235
|
+
...options,
|
|
236
|
+
});
|
|
208
237
|
}
|
|
209
238
|
/**
|
|
210
239
|
* Get an environment
|
|
211
240
|
*/
|
|
212
241
|
get(options) {
|
|
213
|
-
return (options.client ?? this.client).get({
|
|
242
|
+
return (options.client ?? this.client).get({
|
|
243
|
+
url: "/api/environments/{id}",
|
|
244
|
+
...options,
|
|
245
|
+
});
|
|
214
246
|
}
|
|
215
247
|
/**
|
|
216
248
|
* Update an environment
|
|
217
249
|
*/
|
|
218
250
|
update(options) {
|
|
219
251
|
return (options.client ?? this.client).patch({
|
|
220
|
-
url:
|
|
252
|
+
url: "/api/environments/{id}",
|
|
221
253
|
...options,
|
|
222
254
|
headers: {
|
|
223
|
-
|
|
224
|
-
...options.headers
|
|
225
|
-
}
|
|
255
|
+
"Content-Type": "application/json",
|
|
256
|
+
...options.headers,
|
|
257
|
+
},
|
|
226
258
|
});
|
|
227
259
|
}
|
|
228
260
|
/**
|
|
229
261
|
* Archive an environment
|
|
230
262
|
*/
|
|
231
263
|
archive(options) {
|
|
232
|
-
return (options.client ?? this.client).post({
|
|
264
|
+
return (options.client ?? this.client).post({
|
|
265
|
+
url: "/api/environments/{id}/archive",
|
|
266
|
+
...options,
|
|
267
|
+
});
|
|
233
268
|
}
|
|
234
269
|
}
|
|
235
270
|
export class Files extends HeyApiClient {
|
|
@@ -237,52 +272,47 @@ export class Files extends HeyApiClient {
|
|
|
237
272
|
* Delete a file
|
|
238
273
|
*/
|
|
239
274
|
delete(options) {
|
|
240
|
-
return (options.client ?? this.client).delete({ url:
|
|
275
|
+
return (options.client ?? this.client).delete({ url: "/api/file-stores/{id}/files", ...options });
|
|
241
276
|
}
|
|
242
277
|
/**
|
|
243
278
|
* List files in a file store
|
|
244
279
|
*/
|
|
245
280
|
list(options) {
|
|
246
|
-
return (options.client ?? this.client).get({
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
*
|
|
251
|
-
* Form fields: `files` (one or many), optional `path` (to override a single file's path), optional `prefix` (to prepend to all file names). For files >100MB, use /files/presign-upload.
|
|
252
|
-
*/
|
|
253
|
-
upload(options) {
|
|
254
|
-
return (options.client ?? this.client).post({ url: '/api/file-stores/{id}/files', ...options });
|
|
281
|
+
return (options.client ?? this.client).get({
|
|
282
|
+
url: "/api/file-stores/{id}/files",
|
|
283
|
+
...options,
|
|
284
|
+
});
|
|
255
285
|
}
|
|
256
286
|
/**
|
|
257
287
|
* Get a presigned GET URL for a file
|
|
258
288
|
*/
|
|
259
289
|
presignDownload(options) {
|
|
260
|
-
return (options.client ?? this.client).get({ url:
|
|
290
|
+
return (options.client ?? this.client).get({ url: "/api/file-stores/{id}/files/presign-download", ...options });
|
|
261
291
|
}
|
|
262
292
|
/**
|
|
263
|
-
*
|
|
293
|
+
* Start a presigned upload
|
|
264
294
|
*/
|
|
265
|
-
|
|
295
|
+
startUpload(options) {
|
|
266
296
|
return (options.client ?? this.client).post({
|
|
267
|
-
url:
|
|
297
|
+
url: "/api/file-stores/{id}/files/uploads",
|
|
268
298
|
...options,
|
|
269
299
|
headers: {
|
|
270
|
-
|
|
271
|
-
...options.headers
|
|
272
|
-
}
|
|
300
|
+
"Content-Type": "application/json",
|
|
301
|
+
...options.headers,
|
|
302
|
+
},
|
|
273
303
|
});
|
|
274
304
|
}
|
|
275
305
|
/**
|
|
276
|
-
*
|
|
306
|
+
* Finalize an upload
|
|
277
307
|
*/
|
|
278
|
-
|
|
308
|
+
finalizeUpload(options) {
|
|
279
309
|
return (options.client ?? this.client).post({
|
|
280
|
-
url:
|
|
310
|
+
url: "/api/file-stores/{id}/files/finalize",
|
|
281
311
|
...options,
|
|
282
312
|
headers: {
|
|
283
|
-
|
|
284
|
-
...options.headers
|
|
285
|
-
}
|
|
313
|
+
"Content-Type": "application/json",
|
|
314
|
+
...options.headers,
|
|
315
|
+
},
|
|
286
316
|
});
|
|
287
317
|
}
|
|
288
318
|
}
|
|
@@ -291,49 +321,105 @@ export class FileStore extends HeyApiClient {
|
|
|
291
321
|
* List file stores
|
|
292
322
|
*/
|
|
293
323
|
list(options) {
|
|
294
|
-
return (options?.client ?? this.client).get({
|
|
324
|
+
return (options?.client ?? this.client).get({
|
|
325
|
+
url: "/api/file-stores",
|
|
326
|
+
...options,
|
|
327
|
+
});
|
|
295
328
|
}
|
|
296
329
|
/**
|
|
297
330
|
* Create a file store
|
|
298
331
|
*/
|
|
299
332
|
create(options) {
|
|
300
333
|
return (options?.client ?? this.client).post({
|
|
301
|
-
url:
|
|
334
|
+
url: "/api/file-stores",
|
|
302
335
|
...options,
|
|
303
336
|
headers: {
|
|
304
|
-
|
|
305
|
-
...options?.headers
|
|
306
|
-
}
|
|
337
|
+
"Content-Type": "application/json",
|
|
338
|
+
...options?.headers,
|
|
339
|
+
},
|
|
307
340
|
});
|
|
308
341
|
}
|
|
309
342
|
/**
|
|
310
343
|
* Get a file store
|
|
311
344
|
*/
|
|
312
345
|
get(options) {
|
|
313
|
-
return (options.client ?? this.client).get({
|
|
346
|
+
return (options.client ?? this.client).get({
|
|
347
|
+
url: "/api/file-stores/{id}",
|
|
348
|
+
...options,
|
|
349
|
+
});
|
|
314
350
|
}
|
|
315
351
|
/**
|
|
316
352
|
* Update a file store
|
|
317
353
|
*/
|
|
318
354
|
update(options) {
|
|
319
355
|
return (options.client ?? this.client).patch({
|
|
320
|
-
url:
|
|
356
|
+
url: "/api/file-stores/{id}",
|
|
321
357
|
...options,
|
|
322
358
|
headers: {
|
|
323
|
-
|
|
324
|
-
...options.headers
|
|
325
|
-
}
|
|
359
|
+
"Content-Type": "application/json",
|
|
360
|
+
...options.headers,
|
|
361
|
+
},
|
|
326
362
|
});
|
|
327
363
|
}
|
|
328
364
|
/**
|
|
329
365
|
* Archive a file store
|
|
330
366
|
*/
|
|
331
367
|
archive(options) {
|
|
332
|
-
return (options.client ?? this.client).post({
|
|
368
|
+
return (options.client ?? this.client).post({
|
|
369
|
+
url: "/api/file-stores/{id}/archive",
|
|
370
|
+
...options,
|
|
371
|
+
});
|
|
333
372
|
}
|
|
334
373
|
_files;
|
|
335
374
|
get files() {
|
|
336
|
-
return this._files ??= new Files({ client: this.client });
|
|
375
|
+
return (this._files ??= new Files({ client: this.client }));
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
export class Repos extends HeyApiClient {
|
|
379
|
+
/**
|
|
380
|
+
* Live-fetch repositories accessible to a GitHub App installation
|
|
381
|
+
*/
|
|
382
|
+
list(options) {
|
|
383
|
+
return (options.client ?? this.client).get({ url: "/api/github/installations/{id}/repos", ...options });
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
export class Installation extends HeyApiClient {
|
|
387
|
+
/**
|
|
388
|
+
* List GitHub App installations for the caller's org
|
|
389
|
+
*/
|
|
390
|
+
list(options) {
|
|
391
|
+
return (options?.client ?? this.client).get({ url: "/api/github/installations", ...options });
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Re-fetch the installation's selected repositories from GitHub
|
|
395
|
+
*/
|
|
396
|
+
refresh(options) {
|
|
397
|
+
return (options.client ?? this.client).post({ url: "/api/github/installations/{id}/refresh", ...options });
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Disconnect a GitHub App installation
|
|
401
|
+
*/
|
|
402
|
+
remove(options) {
|
|
403
|
+
return (options.client ?? this.client).delete({ url: "/api/github/installations/{id}", ...options });
|
|
404
|
+
}
|
|
405
|
+
_repos;
|
|
406
|
+
get repos() {
|
|
407
|
+
return (this._repos ??= new Repos({ client: this.client }));
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
export class Github extends HeyApiClient {
|
|
411
|
+
/**
|
|
412
|
+
* Report whether GitHub install + user OAuth are configured for the caller
|
|
413
|
+
*/
|
|
414
|
+
status(options) {
|
|
415
|
+
return (options?.client ?? this.client).get({
|
|
416
|
+
url: "/api/github/status",
|
|
417
|
+
...options,
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
_installation;
|
|
421
|
+
get installation() {
|
|
422
|
+
return (this._installation ??= new Installation({ client: this.client }));
|
|
337
423
|
}
|
|
338
424
|
}
|
|
339
425
|
export class Oauth extends HeyApiClient {
|
|
@@ -342,62 +428,114 @@ export class Oauth extends HeyApiClient {
|
|
|
342
428
|
*/
|
|
343
429
|
connect(options) {
|
|
344
430
|
return (options.client ?? this.client).post({
|
|
345
|
-
url:
|
|
431
|
+
url: "/api/mcps/{id}/oauth/connect",
|
|
346
432
|
...options,
|
|
347
433
|
headers: {
|
|
348
|
-
|
|
349
|
-
...options.headers
|
|
350
|
-
}
|
|
434
|
+
"Content-Type": "application/json",
|
|
435
|
+
...options.headers,
|
|
436
|
+
},
|
|
351
437
|
});
|
|
352
438
|
}
|
|
353
439
|
/**
|
|
354
440
|
* Poll an MCP OAuth session status
|
|
355
441
|
*/
|
|
356
442
|
session(options) {
|
|
357
|
-
return (options.client ?? this.client).get({
|
|
443
|
+
return (options.client ?? this.client).get({
|
|
444
|
+
url: "/api/mcps/{id}/oauth/sessions/{sessionId}",
|
|
445
|
+
...options,
|
|
446
|
+
});
|
|
358
447
|
}
|
|
359
448
|
}
|
|
360
|
-
export class
|
|
449
|
+
export class Mcp extends HeyApiClient {
|
|
361
450
|
/**
|
|
362
451
|
* List MCPs
|
|
363
452
|
*/
|
|
364
453
|
list(options) {
|
|
365
|
-
return (options?.client ?? this.client).get({
|
|
454
|
+
return (options?.client ?? this.client).get({
|
|
455
|
+
url: "/api/mcps",
|
|
456
|
+
...options,
|
|
457
|
+
});
|
|
366
458
|
}
|
|
367
459
|
/**
|
|
368
460
|
* Create an MCP
|
|
369
461
|
*/
|
|
370
462
|
create(options) {
|
|
371
463
|
return (options?.client ?? this.client).post({
|
|
372
|
-
url:
|
|
464
|
+
url: "/api/mcps",
|
|
465
|
+
...options,
|
|
466
|
+
headers: {
|
|
467
|
+
"Content-Type": "application/json",
|
|
468
|
+
...options?.headers,
|
|
469
|
+
},
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Search MCPs across user, org, and registry scopes
|
|
474
|
+
*/
|
|
475
|
+
search(options) {
|
|
476
|
+
return (options?.client ?? this.client).post({
|
|
477
|
+
url: "/api/mcps/search",
|
|
373
478
|
...options,
|
|
374
479
|
headers: {
|
|
375
|
-
|
|
376
|
-
...options?.headers
|
|
377
|
-
}
|
|
480
|
+
"Content-Type": "application/json",
|
|
481
|
+
...options?.headers,
|
|
482
|
+
},
|
|
378
483
|
});
|
|
379
484
|
}
|
|
380
485
|
/**
|
|
381
486
|
* Get an MCP by slug
|
|
382
487
|
*/
|
|
383
488
|
getBySlug(options) {
|
|
384
|
-
return (options.client ?? this.client).get({
|
|
489
|
+
return (options.client ?? this.client).get({
|
|
490
|
+
url: "/api/mcps/slug/{slug}",
|
|
491
|
+
...options,
|
|
492
|
+
});
|
|
385
493
|
}
|
|
386
494
|
/**
|
|
387
495
|
* Get an MCP
|
|
388
496
|
*/
|
|
389
497
|
get(options) {
|
|
390
|
-
return (options.client ?? this.client).get({
|
|
498
|
+
return (options.client ?? this.client).get({
|
|
499
|
+
url: "/api/mcps/{id}",
|
|
500
|
+
...options,
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Update an MCP
|
|
505
|
+
*/
|
|
506
|
+
update(options) {
|
|
507
|
+
return (options.client ?? this.client).patch({
|
|
508
|
+
url: "/api/mcps/{id}",
|
|
509
|
+
...options,
|
|
510
|
+
headers: {
|
|
511
|
+
"Content-Type": "application/json",
|
|
512
|
+
...options.headers,
|
|
513
|
+
},
|
|
514
|
+
});
|
|
391
515
|
}
|
|
392
516
|
/**
|
|
393
517
|
* Archive an MCP
|
|
394
518
|
*/
|
|
395
519
|
archive(options) {
|
|
396
|
-
return (options.client ?? this.client).post({
|
|
520
|
+
return (options.client ?? this.client).post({
|
|
521
|
+
url: "/api/mcps/{id}/archive",
|
|
522
|
+
...options,
|
|
523
|
+
});
|
|
397
524
|
}
|
|
398
525
|
_oauth;
|
|
399
526
|
get oauth() {
|
|
400
|
-
return this._oauth ??= new Oauth({ client: this.client });
|
|
527
|
+
return (this._oauth ??= new Oauth({ client: this.client }));
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
export class Me extends HeyApiClient {
|
|
531
|
+
/**
|
|
532
|
+
* Get the authenticated principal
|
|
533
|
+
*/
|
|
534
|
+
get(options) {
|
|
535
|
+
return (options?.client ?? this.client).get({
|
|
536
|
+
url: "/api/me",
|
|
537
|
+
...options,
|
|
538
|
+
});
|
|
401
539
|
}
|
|
402
540
|
}
|
|
403
541
|
export class Files2 extends HeyApiClient {
|
|
@@ -405,39 +543,44 @@ export class Files2 extends HeyApiClient {
|
|
|
405
543
|
* Delete a file
|
|
406
544
|
*/
|
|
407
545
|
delete(options) {
|
|
408
|
-
return (options.client ?? this.client).delete({ url:
|
|
546
|
+
return (options.client ?? this.client).delete({ url: "/api/memory-stores/{id}/files", ...options });
|
|
409
547
|
}
|
|
410
548
|
/**
|
|
411
549
|
* List files in a memory store
|
|
412
550
|
*/
|
|
413
551
|
list(options) {
|
|
414
|
-
return (options.client ?? this.client).get({ url:
|
|
552
|
+
return (options.client ?? this.client).get({ url: "/api/memory-stores/{id}/files", ...options });
|
|
415
553
|
}
|
|
416
554
|
/**
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
* Form fields: `files` (one or many), optional `path` (to override a single file's path), optional `prefix` (to prepend to all file names). For files >100MB, use /files/presign-upload.
|
|
555
|
+
* Get a presigned GET URL for a file
|
|
420
556
|
*/
|
|
421
|
-
|
|
422
|
-
return (options.client ?? this.client).
|
|
557
|
+
presignDownload(options) {
|
|
558
|
+
return (options.client ?? this.client).get({ url: "/api/memory-stores/{id}/files/presign-download", ...options });
|
|
423
559
|
}
|
|
424
560
|
/**
|
|
425
|
-
*
|
|
561
|
+
* Start a presigned upload
|
|
426
562
|
*/
|
|
427
|
-
|
|
428
|
-
return (options.client ?? this.client).
|
|
563
|
+
startUpload(options) {
|
|
564
|
+
return (options.client ?? this.client).post({
|
|
565
|
+
url: "/api/memory-stores/{id}/files/uploads",
|
|
566
|
+
...options,
|
|
567
|
+
headers: {
|
|
568
|
+
"Content-Type": "application/json",
|
|
569
|
+
...options.headers,
|
|
570
|
+
},
|
|
571
|
+
});
|
|
429
572
|
}
|
|
430
573
|
/**
|
|
431
|
-
*
|
|
574
|
+
* Finalize an upload
|
|
432
575
|
*/
|
|
433
|
-
|
|
576
|
+
finalizeUpload(options) {
|
|
434
577
|
return (options.client ?? this.client).post({
|
|
435
|
-
url:
|
|
578
|
+
url: "/api/memory-stores/{id}/files/finalize",
|
|
436
579
|
...options,
|
|
437
580
|
headers: {
|
|
438
|
-
|
|
439
|
-
...options.headers
|
|
440
|
-
}
|
|
581
|
+
"Content-Type": "application/json",
|
|
582
|
+
...options.headers,
|
|
583
|
+
},
|
|
441
584
|
});
|
|
442
585
|
}
|
|
443
586
|
}
|
|
@@ -446,49 +589,94 @@ export class MemoryStore extends HeyApiClient {
|
|
|
446
589
|
* List memory stores
|
|
447
590
|
*/
|
|
448
591
|
list(options) {
|
|
449
|
-
return (options?.client ?? this.client).get({
|
|
592
|
+
return (options?.client ?? this.client).get({
|
|
593
|
+
url: "/api/memory-stores",
|
|
594
|
+
...options,
|
|
595
|
+
});
|
|
450
596
|
}
|
|
451
597
|
/**
|
|
452
598
|
* Create a memory store
|
|
453
599
|
*/
|
|
454
600
|
create(options) {
|
|
455
601
|
return (options?.client ?? this.client).post({
|
|
456
|
-
url:
|
|
602
|
+
url: "/api/memory-stores",
|
|
457
603
|
...options,
|
|
458
604
|
headers: {
|
|
459
|
-
|
|
460
|
-
...options?.headers
|
|
461
|
-
}
|
|
605
|
+
"Content-Type": "application/json",
|
|
606
|
+
...options?.headers,
|
|
607
|
+
},
|
|
462
608
|
});
|
|
463
609
|
}
|
|
464
610
|
/**
|
|
465
611
|
* Get a memory store
|
|
466
612
|
*/
|
|
467
613
|
get(options) {
|
|
468
|
-
return (options.client ?? this.client).get({
|
|
614
|
+
return (options.client ?? this.client).get({
|
|
615
|
+
url: "/api/memory-stores/{id}",
|
|
616
|
+
...options,
|
|
617
|
+
});
|
|
469
618
|
}
|
|
470
619
|
/**
|
|
471
620
|
* Update a memory store
|
|
472
621
|
*/
|
|
473
622
|
update(options) {
|
|
474
623
|
return (options.client ?? this.client).patch({
|
|
475
|
-
url:
|
|
624
|
+
url: "/api/memory-stores/{id}",
|
|
476
625
|
...options,
|
|
477
626
|
headers: {
|
|
478
|
-
|
|
479
|
-
...options.headers
|
|
480
|
-
}
|
|
627
|
+
"Content-Type": "application/json",
|
|
628
|
+
...options.headers,
|
|
629
|
+
},
|
|
481
630
|
});
|
|
482
631
|
}
|
|
483
632
|
/**
|
|
484
633
|
* Archive a memory store
|
|
485
634
|
*/
|
|
486
635
|
archive(options) {
|
|
487
|
-
return (options.client ?? this.client).post({
|
|
636
|
+
return (options.client ?? this.client).post({
|
|
637
|
+
url: "/api/memory-stores/{id}/archive",
|
|
638
|
+
...options,
|
|
639
|
+
});
|
|
488
640
|
}
|
|
489
641
|
_files;
|
|
490
642
|
get files() {
|
|
491
|
-
return this._files ??= new Files2({ client: this.client });
|
|
643
|
+
return (this._files ??= new Files2({ client: this.client }));
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
export class Model extends HeyApiClient {
|
|
647
|
+
/**
|
|
648
|
+
* List available LLM models grouped by provider
|
|
649
|
+
*/
|
|
650
|
+
list(options) {
|
|
651
|
+
return (options?.client ?? this.client).get({
|
|
652
|
+
url: "/api/models",
|
|
653
|
+
...options,
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
export class Onboarding extends HeyApiClient {
|
|
658
|
+
/**
|
|
659
|
+
* Start onboarding chat with Ren agent
|
|
660
|
+
*
|
|
661
|
+
* Creates a session on the user's private pod Ren project and sends the initial prompt with selected MCP/skill context.
|
|
662
|
+
*/
|
|
663
|
+
start(options) {
|
|
664
|
+
return (options?.client ?? this.client).post({
|
|
665
|
+
url: "/api/onboarding/start",
|
|
666
|
+
...options,
|
|
667
|
+
headers: {
|
|
668
|
+
"Content-Type": "application/json",
|
|
669
|
+
...options?.headers,
|
|
670
|
+
},
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Set up personal organization
|
|
675
|
+
*
|
|
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.
|
|
677
|
+
*/
|
|
678
|
+
setupPersonalOrg(options) {
|
|
679
|
+
return (options?.client ?? this.client).post({ url: "/api/onboarding/setup-personal-org", ...options });
|
|
492
680
|
}
|
|
493
681
|
}
|
|
494
682
|
export class Pat extends HeyApiClient {
|
|
@@ -496,26 +684,32 @@ export class Pat extends HeyApiClient {
|
|
|
496
684
|
* List personal access tokens
|
|
497
685
|
*/
|
|
498
686
|
list(options) {
|
|
499
|
-
return (options?.client ?? this.client).get({
|
|
687
|
+
return (options?.client ?? this.client).get({
|
|
688
|
+
url: "/api/pats",
|
|
689
|
+
...options,
|
|
690
|
+
});
|
|
500
691
|
}
|
|
501
692
|
/**
|
|
502
693
|
* Create a personal access token
|
|
503
694
|
*/
|
|
504
695
|
create(options) {
|
|
505
696
|
return (options?.client ?? this.client).post({
|
|
506
|
-
url:
|
|
697
|
+
url: "/api/pats",
|
|
507
698
|
...options,
|
|
508
699
|
headers: {
|
|
509
|
-
|
|
510
|
-
...options?.headers
|
|
511
|
-
}
|
|
700
|
+
"Content-Type": "application/json",
|
|
701
|
+
...options?.headers,
|
|
702
|
+
},
|
|
512
703
|
});
|
|
513
704
|
}
|
|
514
705
|
/**
|
|
515
706
|
* Revoke a personal access token
|
|
516
707
|
*/
|
|
517
708
|
revoke(options) {
|
|
518
|
-
return (options.client ?? this.client).post({
|
|
709
|
+
return (options.client ?? this.client).post({
|
|
710
|
+
url: "/api/pats/{id}/revoke",
|
|
711
|
+
...options,
|
|
712
|
+
});
|
|
519
713
|
}
|
|
520
714
|
}
|
|
521
715
|
export class Member extends HeyApiClient {
|
|
@@ -523,26 +717,32 @@ export class Member extends HeyApiClient {
|
|
|
523
717
|
* List pod members
|
|
524
718
|
*/
|
|
525
719
|
list(options) {
|
|
526
|
-
return (options.client ?? this.client).get({
|
|
720
|
+
return (options.client ?? this.client).get({
|
|
721
|
+
url: "/api/pods/{id}/members",
|
|
722
|
+
...options,
|
|
723
|
+
});
|
|
527
724
|
}
|
|
528
725
|
/**
|
|
529
726
|
* Add a member to a pod
|
|
530
727
|
*/
|
|
531
728
|
add(options) {
|
|
532
729
|
return (options.client ?? this.client).post({
|
|
533
|
-
url:
|
|
730
|
+
url: "/api/pods/{id}/members",
|
|
534
731
|
...options,
|
|
535
732
|
headers: {
|
|
536
|
-
|
|
537
|
-
...options.headers
|
|
538
|
-
}
|
|
733
|
+
"Content-Type": "application/json",
|
|
734
|
+
...options.headers,
|
|
735
|
+
},
|
|
539
736
|
});
|
|
540
737
|
}
|
|
541
738
|
/**
|
|
542
739
|
* Remove a member from a pod
|
|
543
740
|
*/
|
|
544
741
|
remove(options) {
|
|
545
|
-
return (options.client ?? this.client).delete({
|
|
742
|
+
return (options.client ?? this.client).delete({
|
|
743
|
+
url: "/api/pods/{id}/members/{userId}",
|
|
744
|
+
...options,
|
|
745
|
+
});
|
|
546
746
|
}
|
|
547
747
|
}
|
|
548
748
|
export class Vault extends HeyApiClient {
|
|
@@ -550,145 +750,210 @@ export class Vault extends HeyApiClient {
|
|
|
550
750
|
* List pod vaults (ordered by priority)
|
|
551
751
|
*/
|
|
552
752
|
list(options) {
|
|
553
|
-
return (options.client ?? this.client).get({
|
|
753
|
+
return (options.client ?? this.client).get({
|
|
754
|
+
url: "/api/pods/{id}/vaults",
|
|
755
|
+
...options,
|
|
756
|
+
});
|
|
554
757
|
}
|
|
555
758
|
/**
|
|
556
759
|
* Add a vault to a pod
|
|
557
760
|
*/
|
|
558
761
|
add(options) {
|
|
559
762
|
return (options.client ?? this.client).post({
|
|
560
|
-
url:
|
|
763
|
+
url: "/api/pods/{id}/vaults",
|
|
561
764
|
...options,
|
|
562
765
|
headers: {
|
|
563
|
-
|
|
564
|
-
...options.headers
|
|
565
|
-
}
|
|
766
|
+
"Content-Type": "application/json",
|
|
767
|
+
...options.headers,
|
|
768
|
+
},
|
|
566
769
|
});
|
|
567
770
|
}
|
|
568
771
|
/**
|
|
569
772
|
* Remove a vault from a pod
|
|
570
773
|
*/
|
|
571
774
|
remove(options) {
|
|
572
|
-
return (options.client ?? this.client).delete({
|
|
775
|
+
return (options.client ?? this.client).delete({
|
|
776
|
+
url: "/api/pods/{id}/vaults/{vaultId}",
|
|
777
|
+
...options,
|
|
778
|
+
});
|
|
573
779
|
}
|
|
574
780
|
}
|
|
575
781
|
export class Sandbox extends HeyApiClient {
|
|
576
782
|
/**
|
|
577
|
-
*
|
|
783
|
+
* Kick off provisioning for the pod's sandbox
|
|
784
|
+
*
|
|
785
|
+
* Starts a durable workflow that resumes the paused sandbox or provisions a fresh one. Idempotent: concurrent calls join the running workflow. Returns immediately; poll GET /status until status is 'ready'.
|
|
578
786
|
*/
|
|
579
|
-
|
|
580
|
-
return (options.client ?? this.client).
|
|
787
|
+
provision(options) {
|
|
788
|
+
return (options.client ?? this.client).post({
|
|
789
|
+
url: "/api/pods/{podId}/sandbox/provision",
|
|
790
|
+
...options,
|
|
791
|
+
});
|
|
581
792
|
}
|
|
582
793
|
/**
|
|
583
|
-
*
|
|
794
|
+
* Read the pod's sandbox provisioning status
|
|
584
795
|
*
|
|
585
|
-
* Returns
|
|
796
|
+
* Returns 'ready' once the sandbox is provisioned/resumed and credentials are available; 'provisioning' while the workflow is in flight; 'absent' if no workflow has been started and no sandbox is linked; 'failed' if the workflow terminated unhealthy.
|
|
586
797
|
*/
|
|
587
|
-
|
|
588
|
-
return (options.client ?? this.client).
|
|
798
|
+
status(options) {
|
|
799
|
+
return (options.client ?? this.client).get({
|
|
800
|
+
url: "/api/pods/{podId}/sandbox/status",
|
|
801
|
+
...options,
|
|
802
|
+
});
|
|
589
803
|
}
|
|
590
804
|
}
|
|
591
|
-
export class
|
|
805
|
+
export class Pod extends HeyApiClient {
|
|
592
806
|
/**
|
|
593
|
-
* List
|
|
807
|
+
* List pods
|
|
594
808
|
*/
|
|
595
809
|
list(options) {
|
|
596
|
-
return (options
|
|
810
|
+
return (options?.client ?? this.client).get({
|
|
811
|
+
url: "/api/pods",
|
|
812
|
+
...options,
|
|
813
|
+
});
|
|
597
814
|
}
|
|
598
815
|
/**
|
|
599
|
-
*
|
|
816
|
+
* Create a pod and provision its sandbox
|
|
600
817
|
*/
|
|
601
|
-
|
|
602
|
-
return (options
|
|
603
|
-
url:
|
|
818
|
+
create(options) {
|
|
819
|
+
return (options?.client ?? this.client).post({
|
|
820
|
+
url: "/api/pods",
|
|
604
821
|
...options,
|
|
605
822
|
headers: {
|
|
606
|
-
|
|
607
|
-
...options
|
|
608
|
-
}
|
|
823
|
+
"Content-Type": "application/json",
|
|
824
|
+
...options?.headers,
|
|
825
|
+
},
|
|
609
826
|
});
|
|
610
827
|
}
|
|
611
828
|
/**
|
|
612
|
-
*
|
|
829
|
+
* Get a pod
|
|
613
830
|
*/
|
|
614
|
-
|
|
615
|
-
return (options.client ?? this.client).
|
|
831
|
+
get(options) {
|
|
832
|
+
return (options.client ?? this.client).get({
|
|
833
|
+
url: "/api/pods/{id}",
|
|
834
|
+
...options,
|
|
835
|
+
});
|
|
616
836
|
}
|
|
617
|
-
}
|
|
618
|
-
export class FileStore2 extends HeyApiClient {
|
|
619
837
|
/**
|
|
620
|
-
*
|
|
838
|
+
* Update a pod
|
|
621
839
|
*/
|
|
622
|
-
|
|
623
|
-
return (options.client ?? this.client).
|
|
840
|
+
update(options) {
|
|
841
|
+
return (options.client ?? this.client).patch({
|
|
842
|
+
url: "/api/pods/{id}",
|
|
843
|
+
...options,
|
|
844
|
+
headers: {
|
|
845
|
+
"Content-Type": "application/json",
|
|
846
|
+
...options.headers,
|
|
847
|
+
},
|
|
848
|
+
});
|
|
624
849
|
}
|
|
625
850
|
/**
|
|
626
|
-
*
|
|
851
|
+
* Archive a pod
|
|
852
|
+
*/
|
|
853
|
+
archive(options) {
|
|
854
|
+
return (options.client ?? this.client).post({
|
|
855
|
+
url: "/api/pods/{id}/archive",
|
|
856
|
+
...options,
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
_member;
|
|
860
|
+
get member() {
|
|
861
|
+
return (this._member ??= new Member({ client: this.client }));
|
|
862
|
+
}
|
|
863
|
+
_vault;
|
|
864
|
+
get vault() {
|
|
865
|
+
return (this._vault ??= new Vault({ client: this.client }));
|
|
866
|
+
}
|
|
867
|
+
_sandbox;
|
|
868
|
+
get sandbox() {
|
|
869
|
+
return (this._sandbox ??= new Sandbox({ client: this.client }));
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
export class Agent2 extends HeyApiClient {
|
|
873
|
+
/**
|
|
874
|
+
* List agents attached to a project
|
|
875
|
+
*/
|
|
876
|
+
list(options) {
|
|
877
|
+
return (options.client ?? this.client).get({
|
|
878
|
+
url: "/api/projects/{id}/agents",
|
|
879
|
+
...options,
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Attach an agent to a project
|
|
627
884
|
*/
|
|
628
885
|
add(options) {
|
|
629
886
|
return (options.client ?? this.client).post({
|
|
630
|
-
url:
|
|
887
|
+
url: "/api/projects/{id}/agents",
|
|
631
888
|
...options,
|
|
632
889
|
headers: {
|
|
633
|
-
|
|
634
|
-
...options.headers
|
|
635
|
-
}
|
|
890
|
+
"Content-Type": "application/json",
|
|
891
|
+
...options.headers,
|
|
892
|
+
},
|
|
636
893
|
});
|
|
637
894
|
}
|
|
638
895
|
/**
|
|
639
|
-
* Detach
|
|
896
|
+
* Detach an agent from a project
|
|
640
897
|
*/
|
|
641
898
|
remove(options) {
|
|
642
|
-
return (options.client ?? this.client).delete({
|
|
899
|
+
return (options.client ?? this.client).delete({
|
|
900
|
+
url: "/api/projects/{id}/agents/{agentId}",
|
|
901
|
+
...options,
|
|
902
|
+
});
|
|
643
903
|
}
|
|
644
904
|
}
|
|
645
|
-
export class
|
|
905
|
+
export class FileStore2 extends HeyApiClient {
|
|
646
906
|
/**
|
|
647
|
-
* List
|
|
907
|
+
* List file stores attached to a project
|
|
648
908
|
*/
|
|
649
909
|
list(options) {
|
|
650
|
-
return (options.client ?? this.client).get({ url:
|
|
910
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{id}/file-stores", ...options });
|
|
651
911
|
}
|
|
652
912
|
/**
|
|
653
|
-
* Attach a
|
|
913
|
+
* Attach a file store to a project
|
|
654
914
|
*/
|
|
655
915
|
add(options) {
|
|
656
916
|
return (options.client ?? this.client).post({
|
|
657
|
-
url:
|
|
917
|
+
url: "/api/projects/{id}/file-stores",
|
|
658
918
|
...options,
|
|
659
919
|
headers: {
|
|
660
|
-
|
|
661
|
-
...options.headers
|
|
662
|
-
}
|
|
920
|
+
"Content-Type": "application/json",
|
|
921
|
+
...options.headers,
|
|
922
|
+
},
|
|
663
923
|
});
|
|
664
924
|
}
|
|
665
925
|
/**
|
|
666
|
-
* Detach a
|
|
926
|
+
* Detach a file store from a project
|
|
667
927
|
*/
|
|
668
928
|
remove(options) {
|
|
669
|
-
return (options.client ?? this.client).delete({ url:
|
|
929
|
+
return (options.client ?? this.client).delete({ url: "/api/projects/{id}/file-stores/{fileStoreId}", ...options });
|
|
670
930
|
}
|
|
671
931
|
}
|
|
672
|
-
export class
|
|
932
|
+
export class MemoryStore2 extends HeyApiClient {
|
|
673
933
|
/**
|
|
674
|
-
* List
|
|
934
|
+
* List memory stores attached to a project
|
|
675
935
|
*/
|
|
676
936
|
list(options) {
|
|
677
|
-
return (options.client ?? this.client).get({ url:
|
|
937
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{id}/memory-stores", ...options });
|
|
678
938
|
}
|
|
679
|
-
}
|
|
680
|
-
export class Runs extends HeyApiClient {
|
|
681
939
|
/**
|
|
682
|
-
*
|
|
940
|
+
* Attach a memory store to a project
|
|
683
941
|
*/
|
|
684
|
-
|
|
685
|
-
return (options.client ?? this.client).
|
|
942
|
+
add(options) {
|
|
943
|
+
return (options.client ?? this.client).post({
|
|
944
|
+
url: "/api/projects/{id}/memory-stores",
|
|
945
|
+
...options,
|
|
946
|
+
headers: {
|
|
947
|
+
"Content-Type": "application/json",
|
|
948
|
+
...options.headers,
|
|
949
|
+
},
|
|
950
|
+
});
|
|
686
951
|
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
return
|
|
952
|
+
/**
|
|
953
|
+
* Detach a memory store from a project
|
|
954
|
+
*/
|
|
955
|
+
remove(options) {
|
|
956
|
+
return (options.client ?? this.client).delete({ url: "/api/projects/{id}/memory-stores/{memoryStoreId}", ...options });
|
|
692
957
|
}
|
|
693
958
|
}
|
|
694
959
|
export class Project extends HeyApiClient {
|
|
@@ -696,646 +961,502 @@ export class Project extends HeyApiClient {
|
|
|
696
961
|
* List projects
|
|
697
962
|
*/
|
|
698
963
|
list(options) {
|
|
699
|
-
return (options
|
|
964
|
+
return (options?.client ?? this.client).get({
|
|
965
|
+
url: "/api/projects",
|
|
966
|
+
...options,
|
|
967
|
+
});
|
|
700
968
|
}
|
|
701
969
|
/**
|
|
702
970
|
* Create a project
|
|
703
971
|
*/
|
|
704
972
|
create(options) {
|
|
705
|
-
return (options
|
|
706
|
-
url:
|
|
973
|
+
return (options?.client ?? this.client).post({
|
|
974
|
+
url: "/api/projects",
|
|
707
975
|
...options,
|
|
708
976
|
headers: {
|
|
709
|
-
|
|
710
|
-
...options
|
|
711
|
-
}
|
|
977
|
+
"Content-Type": "application/json",
|
|
978
|
+
...options?.headers,
|
|
979
|
+
},
|
|
712
980
|
});
|
|
713
981
|
}
|
|
714
982
|
/**
|
|
715
983
|
* Get a project
|
|
716
984
|
*/
|
|
717
985
|
get(options) {
|
|
718
|
-
return (options.client ?? this.client).get({
|
|
986
|
+
return (options.client ?? this.client).get({
|
|
987
|
+
url: "/api/projects/{id}",
|
|
988
|
+
...options,
|
|
989
|
+
});
|
|
719
990
|
}
|
|
720
991
|
/**
|
|
721
992
|
* Update a project
|
|
722
993
|
*/
|
|
723
994
|
update(options) {
|
|
724
995
|
return (options.client ?? this.client).patch({
|
|
725
|
-
url:
|
|
996
|
+
url: "/api/projects/{id}",
|
|
726
997
|
...options,
|
|
727
998
|
headers: {
|
|
728
|
-
|
|
729
|
-
...options.headers
|
|
730
|
-
}
|
|
999
|
+
"Content-Type": "application/json",
|
|
1000
|
+
...options.headers,
|
|
1001
|
+
},
|
|
731
1002
|
});
|
|
732
1003
|
}
|
|
733
1004
|
/**
|
|
734
1005
|
* Archive a project
|
|
735
1006
|
*/
|
|
736
1007
|
archive(options) {
|
|
737
|
-
return (options.client ?? this.client).post({
|
|
1008
|
+
return (options.client ?? this.client).post({
|
|
1009
|
+
url: "/api/projects/{id}/archive",
|
|
1010
|
+
...options,
|
|
1011
|
+
});
|
|
738
1012
|
}
|
|
739
1013
|
_agent;
|
|
740
1014
|
get agent() {
|
|
741
|
-
return this._agent ??= new Agent2({ client: this.client });
|
|
1015
|
+
return (this._agent ??= new Agent2({ client: this.client }));
|
|
742
1016
|
}
|
|
743
1017
|
_fileStore;
|
|
744
1018
|
get fileStore() {
|
|
745
|
-
return this._fileStore ??= new FileStore2({ client: this.client });
|
|
1019
|
+
return (this._fileStore ??= new FileStore2({ client: this.client }));
|
|
746
1020
|
}
|
|
747
1021
|
_memoryStore;
|
|
748
1022
|
get memoryStore() {
|
|
749
|
-
return this._memoryStore ??= new MemoryStore2({ client: this.client });
|
|
750
|
-
}
|
|
751
|
-
_routine;
|
|
752
|
-
get routine() {
|
|
753
|
-
return this._routine ??= new Routine({ client: this.client });
|
|
754
|
-
}
|
|
755
|
-
_routines;
|
|
756
|
-
get routines() {
|
|
757
|
-
return this._routines ??= new Routines({ client: this.client });
|
|
1023
|
+
return (this._memoryStore ??= new MemoryStore2({ client: this.client }));
|
|
758
1024
|
}
|
|
759
1025
|
}
|
|
760
|
-
export class
|
|
761
|
-
/**
|
|
762
|
-
* List session messages
|
|
763
|
-
*/
|
|
764
|
-
list(options) {
|
|
765
|
-
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/sessions/{id}/messages', ...options });
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
export class Session extends HeyApiClient {
|
|
1026
|
+
export class Replay extends HeyApiClient {
|
|
769
1027
|
/**
|
|
770
|
-
* List
|
|
1028
|
+
* List replays
|
|
771
1029
|
*/
|
|
772
1030
|
list(options) {
|
|
773
|
-
return (options
|
|
1031
|
+
return (options?.client ?? this.client).get({
|
|
1032
|
+
url: "/api/replays",
|
|
1033
|
+
...options,
|
|
1034
|
+
});
|
|
774
1035
|
}
|
|
775
1036
|
/**
|
|
776
|
-
* Create a
|
|
1037
|
+
* Create a replay
|
|
777
1038
|
*/
|
|
778
1039
|
create(options) {
|
|
779
|
-
return (options
|
|
780
|
-
url:
|
|
1040
|
+
return (options?.client ?? this.client).post({
|
|
1041
|
+
url: "/api/replays",
|
|
781
1042
|
...options,
|
|
782
1043
|
headers: {
|
|
783
|
-
|
|
784
|
-
...options
|
|
785
|
-
}
|
|
1044
|
+
"Content-Type": "application/json",
|
|
1045
|
+
...options?.headers,
|
|
1046
|
+
},
|
|
786
1047
|
});
|
|
787
1048
|
}
|
|
788
1049
|
/**
|
|
789
|
-
* Get a
|
|
1050
|
+
* Get a replay
|
|
790
1051
|
*/
|
|
791
1052
|
get(options) {
|
|
792
|
-
return (options.client ?? this.client).get({
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Update a session
|
|
796
|
-
*/
|
|
797
|
-
update(options) {
|
|
798
|
-
return (options.client ?? this.client).patch({
|
|
799
|
-
url: '/api/pods/{podId}/sessions/{id}',
|
|
1053
|
+
return (options.client ?? this.client).get({
|
|
1054
|
+
url: "/api/replays/{id}",
|
|
800
1055
|
...options,
|
|
801
|
-
headers: {
|
|
802
|
-
'Content-Type': 'application/json',
|
|
803
|
-
...options.headers
|
|
804
|
-
}
|
|
805
1056
|
});
|
|
806
1057
|
}
|
|
807
1058
|
/**
|
|
808
|
-
* Archive a
|
|
1059
|
+
* Archive a replay
|
|
809
1060
|
*/
|
|
810
1061
|
archive(options) {
|
|
811
|
-
return (options.client ?? this.client).post({
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
return this._message ??= new Message({ client: this.client });
|
|
1062
|
+
return (options.client ?? this.client).post({
|
|
1063
|
+
url: "/api/replays/{id}/archive",
|
|
1064
|
+
...options,
|
|
1065
|
+
});
|
|
816
1066
|
}
|
|
817
|
-
}
|
|
818
|
-
export class CronTrigger extends HeyApiClient {
|
|
819
1067
|
/**
|
|
820
|
-
*
|
|
1068
|
+
* Share a chat session as a public replay
|
|
821
1069
|
*/
|
|
822
|
-
|
|
823
|
-
return (options
|
|
1070
|
+
share(options) {
|
|
1071
|
+
return (options?.client ?? this.client).post({
|
|
1072
|
+
url: "/api/replays/share",
|
|
1073
|
+
...options,
|
|
1074
|
+
headers: {
|
|
1075
|
+
"Content-Type": "application/json",
|
|
1076
|
+
...options?.headers,
|
|
1077
|
+
},
|
|
1078
|
+
});
|
|
824
1079
|
}
|
|
1080
|
+
}
|
|
1081
|
+
export class Files3 extends HeyApiClient {
|
|
825
1082
|
/**
|
|
826
|
-
*
|
|
1083
|
+
* Presign an upload URL for a file destined for the session's pod volume
|
|
827
1084
|
*/
|
|
828
|
-
|
|
1085
|
+
presignUpload(options) {
|
|
829
1086
|
return (options.client ?? this.client).post({
|
|
830
|
-
url:
|
|
1087
|
+
url: "/api/sessions/{id}/files/presign-upload",
|
|
831
1088
|
...options,
|
|
832
1089
|
headers: {
|
|
833
|
-
|
|
834
|
-
...options.headers
|
|
835
|
-
}
|
|
1090
|
+
"Content-Type": "application/json",
|
|
1091
|
+
...options.headers,
|
|
1092
|
+
},
|
|
836
1093
|
});
|
|
837
1094
|
}
|
|
838
1095
|
/**
|
|
839
|
-
*
|
|
1096
|
+
* Presign a download URL for a file in the session's pod volume
|
|
840
1097
|
*/
|
|
841
|
-
|
|
842
|
-
return (options.client ?? this.client).
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* Update a cron trigger
|
|
846
|
-
*/
|
|
847
|
-
update(options) {
|
|
848
|
-
return (options.client ?? this.client).patch({
|
|
849
|
-
url: '/api/pods/{podId}/routines/{id}/cron-triggers/{triggerId}',
|
|
1098
|
+
presignDownload(options) {
|
|
1099
|
+
return (options.client ?? this.client).post({
|
|
1100
|
+
url: "/api/sessions/{id}/files/presign-download",
|
|
850
1101
|
...options,
|
|
851
1102
|
headers: {
|
|
852
|
-
|
|
853
|
-
...options.headers
|
|
854
|
-
}
|
|
1103
|
+
"Content-Type": "application/json",
|
|
1104
|
+
...options.headers,
|
|
1105
|
+
},
|
|
855
1106
|
});
|
|
856
1107
|
}
|
|
857
|
-
/**
|
|
858
|
-
* Archive a cron trigger
|
|
859
|
-
*/
|
|
860
|
-
archive(options) {
|
|
861
|
-
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/cron-triggers/{triggerId}/archive', ...options });
|
|
862
|
-
}
|
|
863
1108
|
}
|
|
864
|
-
export class
|
|
1109
|
+
export class Session extends HeyApiClient {
|
|
865
1110
|
/**
|
|
866
|
-
* List
|
|
1111
|
+
* List sessions
|
|
867
1112
|
*/
|
|
868
1113
|
list(options) {
|
|
869
|
-
return (options
|
|
1114
|
+
return (options?.client ?? this.client).get({
|
|
1115
|
+
url: "/api/sessions",
|
|
1116
|
+
...options,
|
|
1117
|
+
});
|
|
870
1118
|
}
|
|
871
1119
|
/**
|
|
872
|
-
* Create a
|
|
1120
|
+
* Create a session
|
|
873
1121
|
*/
|
|
874
1122
|
create(options) {
|
|
875
|
-
return (options
|
|
876
|
-
url:
|
|
1123
|
+
return (options?.client ?? this.client).post({
|
|
1124
|
+
url: "/api/sessions",
|
|
877
1125
|
...options,
|
|
878
1126
|
headers: {
|
|
879
|
-
|
|
880
|
-
...options
|
|
881
|
-
}
|
|
1127
|
+
"Content-Type": "application/json",
|
|
1128
|
+
...options?.headers,
|
|
1129
|
+
},
|
|
882
1130
|
});
|
|
883
1131
|
}
|
|
884
1132
|
/**
|
|
885
|
-
* Get a
|
|
1133
|
+
* Get a session
|
|
886
1134
|
*/
|
|
887
1135
|
get(options) {
|
|
888
|
-
return (options.client ?? this.client).get({
|
|
1136
|
+
return (options.client ?? this.client).get({
|
|
1137
|
+
url: "/api/sessions/{id}",
|
|
1138
|
+
...options,
|
|
1139
|
+
});
|
|
889
1140
|
}
|
|
890
1141
|
/**
|
|
891
|
-
* Update a
|
|
1142
|
+
* Update a session
|
|
892
1143
|
*/
|
|
893
1144
|
update(options) {
|
|
894
1145
|
return (options.client ?? this.client).patch({
|
|
895
|
-
url:
|
|
1146
|
+
url: "/api/sessions/{id}",
|
|
896
1147
|
...options,
|
|
897
1148
|
headers: {
|
|
898
|
-
|
|
899
|
-
...options.headers
|
|
900
|
-
}
|
|
1149
|
+
"Content-Type": "application/json",
|
|
1150
|
+
...options.headers,
|
|
1151
|
+
},
|
|
901
1152
|
});
|
|
902
1153
|
}
|
|
903
1154
|
/**
|
|
904
|
-
*
|
|
1155
|
+
* Compute MCP and skill credential requirements for a session
|
|
1156
|
+
*/
|
|
1157
|
+
authRequirements(options) {
|
|
1158
|
+
return (options.client ?? this.client).get({ url: "/api/sessions/{id}/auth-requirements", ...options });
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Archive a session
|
|
905
1162
|
*/
|
|
906
1163
|
archive(options) {
|
|
907
|
-
return (options.client ?? this.client).post({
|
|
1164
|
+
return (options.client ?? this.client).post({
|
|
1165
|
+
url: "/api/sessions/{id}/archive",
|
|
1166
|
+
...options,
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
_files;
|
|
1170
|
+
get files() {
|
|
1171
|
+
return (this._files ??= new Files3({ client: this.client }));
|
|
908
1172
|
}
|
|
909
1173
|
}
|
|
910
|
-
export class
|
|
1174
|
+
export class Version2 extends HeyApiClient {
|
|
911
1175
|
/**
|
|
912
|
-
* List
|
|
1176
|
+
* List skill versions
|
|
913
1177
|
*/
|
|
914
1178
|
list(options) {
|
|
915
|
-
return (options.client ?? this.client).get({
|
|
1179
|
+
return (options.client ?? this.client).get({
|
|
1180
|
+
url: "/api/skills/{id}/versions",
|
|
1181
|
+
...options,
|
|
1182
|
+
});
|
|
916
1183
|
}
|
|
917
1184
|
/**
|
|
918
|
-
* Create
|
|
919
|
-
*
|
|
920
|
-
* Server generates a single-use plaintext token. The token is returned ONCE in this response and never again — only its sha256 hash is stored.
|
|
1185
|
+
* Create a skill version
|
|
921
1186
|
*/
|
|
922
1187
|
create(options) {
|
|
923
1188
|
return (options.client ?? this.client).post({
|
|
924
|
-
|
|
1189
|
+
...formDataBodySerializer,
|
|
1190
|
+
url: "/api/skills/{id}/versions",
|
|
925
1191
|
...options,
|
|
926
1192
|
headers: {
|
|
927
|
-
|
|
928
|
-
...options.headers
|
|
929
|
-
}
|
|
1193
|
+
"Content-Type": null,
|
|
1194
|
+
...options.headers,
|
|
1195
|
+
},
|
|
930
1196
|
});
|
|
931
1197
|
}
|
|
932
1198
|
/**
|
|
933
|
-
*
|
|
934
|
-
*
|
|
935
|
-
* Generates a new token, replaces the stored hash, returns the plaintext once.
|
|
936
|
-
*/
|
|
937
|
-
rotate(options) {
|
|
938
|
-
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/api-triggers/{triggerId}/rotate', ...options });
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* Get an API trigger
|
|
1199
|
+
* Get a skill version
|
|
942
1200
|
*/
|
|
943
1201
|
get(options) {
|
|
944
|
-
return (options.client ?? this.client).get({
|
|
1202
|
+
return (options.client ?? this.client).get({
|
|
1203
|
+
url: "/api/skills/{id}/versions/{version}",
|
|
1204
|
+
...options,
|
|
1205
|
+
});
|
|
945
1206
|
}
|
|
946
1207
|
/**
|
|
947
|
-
*
|
|
1208
|
+
* Read skill version data
|
|
948
1209
|
*/
|
|
949
|
-
|
|
950
|
-
return (options.client ?? this.client).
|
|
951
|
-
url:
|
|
1210
|
+
data(options) {
|
|
1211
|
+
return (options.client ?? this.client).get({
|
|
1212
|
+
url: "/api/skills/{id}/versions/{version}/data",
|
|
952
1213
|
...options,
|
|
953
|
-
headers: {
|
|
954
|
-
'Content-Type': 'application/json',
|
|
955
|
-
...options.headers
|
|
956
|
-
}
|
|
957
1214
|
});
|
|
958
1215
|
}
|
|
959
1216
|
/**
|
|
960
|
-
* Archive
|
|
1217
|
+
* Archive a skill version
|
|
961
1218
|
*/
|
|
962
1219
|
archive(options) {
|
|
963
|
-
return (options.client ?? this.client).post({
|
|
1220
|
+
return (options.client ?? this.client).post({
|
|
1221
|
+
url: "/api/skills/{id}/versions/{version}/archive",
|
|
1222
|
+
...options,
|
|
1223
|
+
});
|
|
964
1224
|
}
|
|
965
1225
|
}
|
|
966
|
-
export class
|
|
1226
|
+
export class Skill extends HeyApiClient {
|
|
967
1227
|
/**
|
|
968
|
-
* List
|
|
1228
|
+
* List skills
|
|
969
1229
|
*/
|
|
970
1230
|
list(options) {
|
|
971
|
-
return (options
|
|
1231
|
+
return (options?.client ?? this.client).get({
|
|
1232
|
+
url: "/api/skills",
|
|
1233
|
+
...options,
|
|
1234
|
+
});
|
|
972
1235
|
}
|
|
973
1236
|
/**
|
|
974
|
-
* Create a
|
|
1237
|
+
* Create a skill
|
|
975
1238
|
*/
|
|
976
1239
|
create(options) {
|
|
977
1240
|
return (options.client ?? this.client).post({
|
|
978
|
-
|
|
1241
|
+
...formDataBodySerializer,
|
|
1242
|
+
url: "/api/skills",
|
|
979
1243
|
...options,
|
|
980
1244
|
headers: {
|
|
981
|
-
|
|
982
|
-
...options.headers
|
|
983
|
-
}
|
|
1245
|
+
"Content-Type": null,
|
|
1246
|
+
...options.headers,
|
|
1247
|
+
},
|
|
984
1248
|
});
|
|
985
1249
|
}
|
|
986
1250
|
/**
|
|
987
|
-
*
|
|
988
|
-
*/
|
|
989
|
-
get(options) {
|
|
990
|
-
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/runs/{runId}', ...options });
|
|
991
|
-
}
|
|
992
|
-
/**
|
|
993
|
-
* Mark a routine run as started
|
|
1251
|
+
* Search skills across user, org, and registry scopes
|
|
994
1252
|
*/
|
|
995
|
-
|
|
996
|
-
return (options
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Mark a routine run as completed
|
|
1000
|
-
*/
|
|
1001
|
-
complete(options) {
|
|
1002
|
-
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/runs/{runId}/complete', ...options });
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* Mark a routine run as failed
|
|
1006
|
-
*/
|
|
1007
|
-
fail(options) {
|
|
1008
|
-
return (options.client ?? this.client).post({
|
|
1009
|
-
url: '/api/pods/{podId}/routines/{id}/runs/{runId}/fail',
|
|
1253
|
+
search(options) {
|
|
1254
|
+
return (options?.client ?? this.client).post({
|
|
1255
|
+
url: "/api/skills/search",
|
|
1010
1256
|
...options,
|
|
1011
1257
|
headers: {
|
|
1012
|
-
|
|
1013
|
-
...options
|
|
1014
|
-
}
|
|
1258
|
+
"Content-Type": "application/json",
|
|
1259
|
+
...options?.headers,
|
|
1260
|
+
},
|
|
1015
1261
|
});
|
|
1016
1262
|
}
|
|
1017
1263
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
*/
|
|
1020
|
-
cancel(options) {
|
|
1021
|
-
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/runs/{runId}/cancel', ...options });
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
export class Routine2 extends HeyApiClient {
|
|
1025
|
-
/**
|
|
1026
|
-
* List routines
|
|
1027
|
-
*/
|
|
1028
|
-
list(options) {
|
|
1029
|
-
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines', ...options });
|
|
1030
|
-
}
|
|
1031
|
-
/**
|
|
1032
|
-
* Create a routine
|
|
1264
|
+
* Get a skill by slug
|
|
1033
1265
|
*/
|
|
1034
|
-
|
|
1035
|
-
return (options.client ?? this.client).
|
|
1036
|
-
url:
|
|
1266
|
+
getBySlug(options) {
|
|
1267
|
+
return (options.client ?? this.client).get({
|
|
1268
|
+
url: "/api/skills/slug/{slug}",
|
|
1037
1269
|
...options,
|
|
1038
|
-
headers: {
|
|
1039
|
-
'Content-Type': 'application/json',
|
|
1040
|
-
...options.headers
|
|
1041
|
-
}
|
|
1042
1270
|
});
|
|
1043
1271
|
}
|
|
1044
1272
|
/**
|
|
1045
|
-
* Get a
|
|
1273
|
+
* Get a skill
|
|
1046
1274
|
*/
|
|
1047
1275
|
get(options) {
|
|
1048
|
-
return (options.client ?? this.client).get({
|
|
1276
|
+
return (options.client ?? this.client).get({
|
|
1277
|
+
url: "/api/skills/{id}",
|
|
1278
|
+
...options,
|
|
1279
|
+
});
|
|
1049
1280
|
}
|
|
1050
1281
|
/**
|
|
1051
|
-
* Update
|
|
1282
|
+
* Update skill metadata
|
|
1052
1283
|
*/
|
|
1053
1284
|
update(options) {
|
|
1054
1285
|
return (options.client ?? this.client).patch({
|
|
1055
|
-
url:
|
|
1286
|
+
url: "/api/skills/{id}",
|
|
1056
1287
|
...options,
|
|
1057
1288
|
headers: {
|
|
1058
|
-
|
|
1059
|
-
...options.headers
|
|
1060
|
-
}
|
|
1289
|
+
"Content-Type": "application/json",
|
|
1290
|
+
...options.headers,
|
|
1291
|
+
},
|
|
1061
1292
|
});
|
|
1062
1293
|
}
|
|
1063
1294
|
/**
|
|
1064
|
-
* Archive a
|
|
1295
|
+
* Archive a skill
|
|
1065
1296
|
*/
|
|
1066
1297
|
archive(options) {
|
|
1067
|
-
return (options.client ?? this.client).post({
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
*/
|
|
1072
|
-
pause(options) {
|
|
1073
|
-
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/pause', ...options });
|
|
1074
|
-
}
|
|
1075
|
-
/**
|
|
1076
|
-
* Resume a routine
|
|
1077
|
-
*/
|
|
1078
|
-
resume(options) {
|
|
1079
|
-
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/resume', ...options });
|
|
1080
|
-
}
|
|
1081
|
-
_cronTrigger;
|
|
1082
|
-
get cronTrigger() {
|
|
1083
|
-
return this._cronTrigger ??= new CronTrigger({ client: this.client });
|
|
1084
|
-
}
|
|
1085
|
-
_webhookTrigger;
|
|
1086
|
-
get webhookTrigger() {
|
|
1087
|
-
return this._webhookTrigger ??= new WebhookTrigger({ client: this.client });
|
|
1088
|
-
}
|
|
1089
|
-
_apiTrigger;
|
|
1090
|
-
get apiTrigger() {
|
|
1091
|
-
return this._apiTrigger ??= new ApiTrigger({ client: this.client });
|
|
1092
|
-
}
|
|
1093
|
-
_runs;
|
|
1094
|
-
get runs() {
|
|
1095
|
-
return this._runs ??= new Runs2({ client: this.client });
|
|
1298
|
+
return (options.client ?? this.client).post({
|
|
1299
|
+
url: "/api/skills/{id}/archive",
|
|
1300
|
+
...options,
|
|
1301
|
+
});
|
|
1096
1302
|
}
|
|
1097
|
-
}
|
|
1098
|
-
export class Runs3 extends HeyApiClient {
|
|
1099
1303
|
/**
|
|
1100
|
-
*
|
|
1304
|
+
* Copy a skill
|
|
1101
1305
|
*/
|
|
1102
|
-
|
|
1103
|
-
return (options.client ?? this.client).
|
|
1306
|
+
copy(options) {
|
|
1307
|
+
return (options.client ?? this.client).post({
|
|
1308
|
+
url: "/api/skills/{id}/copy",
|
|
1309
|
+
...options,
|
|
1310
|
+
headers: {
|
|
1311
|
+
"Content-Type": "application/json",
|
|
1312
|
+
...options.headers,
|
|
1313
|
+
},
|
|
1314
|
+
});
|
|
1104
1315
|
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
get runs() {
|
|
1109
|
-
return this._runs ??= new Runs3({ client: this.client });
|
|
1316
|
+
_version;
|
|
1317
|
+
get version() {
|
|
1318
|
+
return (this._version ??= new Version2({ client: this.client }));
|
|
1110
1319
|
}
|
|
1111
1320
|
}
|
|
1112
|
-
export class
|
|
1321
|
+
export class Trigger extends HeyApiClient {
|
|
1113
1322
|
/**
|
|
1114
|
-
* List
|
|
1323
|
+
* List cron triggers in a project
|
|
1115
1324
|
*/
|
|
1116
1325
|
list(options) {
|
|
1117
|
-
return (options
|
|
1326
|
+
return (options.client ?? this.client).get({
|
|
1327
|
+
url: "/api/triggers",
|
|
1328
|
+
...options,
|
|
1329
|
+
});
|
|
1118
1330
|
}
|
|
1119
1331
|
/**
|
|
1120
|
-
* Create a
|
|
1332
|
+
* Create a cron trigger
|
|
1121
1333
|
*/
|
|
1122
1334
|
create(options) {
|
|
1123
1335
|
return (options?.client ?? this.client).post({
|
|
1124
|
-
url:
|
|
1336
|
+
url: "/api/triggers",
|
|
1125
1337
|
...options,
|
|
1126
1338
|
headers: {
|
|
1127
|
-
|
|
1128
|
-
...options?.headers
|
|
1129
|
-
}
|
|
1339
|
+
"Content-Type": "application/json",
|
|
1340
|
+
...options?.headers,
|
|
1341
|
+
},
|
|
1130
1342
|
});
|
|
1131
1343
|
}
|
|
1132
1344
|
/**
|
|
1133
|
-
* Get a
|
|
1345
|
+
* Get a cron trigger
|
|
1134
1346
|
*/
|
|
1135
1347
|
get(options) {
|
|
1136
|
-
return (options.client ?? this.client).get({
|
|
1348
|
+
return (options.client ?? this.client).get({
|
|
1349
|
+
url: "/api/triggers/{triggerId}",
|
|
1350
|
+
...options,
|
|
1351
|
+
});
|
|
1137
1352
|
}
|
|
1138
1353
|
/**
|
|
1139
|
-
* Update a
|
|
1354
|
+
* Update a cron trigger
|
|
1140
1355
|
*/
|
|
1141
1356
|
update(options) {
|
|
1142
1357
|
return (options.client ?? this.client).patch({
|
|
1143
|
-
url:
|
|
1358
|
+
url: "/api/triggers/{triggerId}",
|
|
1144
1359
|
...options,
|
|
1145
1360
|
headers: {
|
|
1146
|
-
|
|
1147
|
-
...options.headers
|
|
1148
|
-
}
|
|
1361
|
+
"Content-Type": "application/json",
|
|
1362
|
+
...options.headers,
|
|
1363
|
+
},
|
|
1149
1364
|
});
|
|
1150
1365
|
}
|
|
1151
1366
|
/**
|
|
1152
|
-
* Archive a
|
|
1367
|
+
* Archive a cron trigger
|
|
1153
1368
|
*/
|
|
1154
1369
|
archive(options) {
|
|
1155
|
-
return (options.client ?? this.client).post({
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
return this._vault ??= new Vault({ client: this.client });
|
|
1164
|
-
}
|
|
1165
|
-
_sandbox;
|
|
1166
|
-
get sandbox() {
|
|
1167
|
-
return this._sandbox ??= new Sandbox({ client: this.client });
|
|
1168
|
-
}
|
|
1169
|
-
_project;
|
|
1170
|
-
get project() {
|
|
1171
|
-
return this._project ??= new Project({ client: this.client });
|
|
1172
|
-
}
|
|
1173
|
-
_session;
|
|
1174
|
-
get session() {
|
|
1175
|
-
return this._session ??= new Session({ client: this.client });
|
|
1176
|
-
}
|
|
1177
|
-
_routine;
|
|
1178
|
-
get routine() {
|
|
1179
|
-
return this._routine ??= new Routine2({ client: this.client });
|
|
1180
|
-
}
|
|
1181
|
-
_routines;
|
|
1182
|
-
get routines() {
|
|
1183
|
-
return this._routines ??= new Routines2({ client: this.client });
|
|
1370
|
+
return (options.client ?? this.client).post({
|
|
1371
|
+
url: "/api/triggers/{triggerId}/archive",
|
|
1372
|
+
...options,
|
|
1373
|
+
headers: {
|
|
1374
|
+
"Content-Type": "application/json",
|
|
1375
|
+
...options.headers,
|
|
1376
|
+
},
|
|
1377
|
+
});
|
|
1184
1378
|
}
|
|
1185
1379
|
}
|
|
1186
|
-
export class
|
|
1380
|
+
export class WebhookTrigger extends HeyApiClient {
|
|
1187
1381
|
/**
|
|
1188
|
-
* List
|
|
1382
|
+
* List webhook triggers in a project
|
|
1189
1383
|
*/
|
|
1190
1384
|
list(options) {
|
|
1191
|
-
return (options
|
|
1385
|
+
return (options.client ?? this.client).get({
|
|
1386
|
+
url: "/api/webhook-triggers",
|
|
1387
|
+
...options,
|
|
1388
|
+
});
|
|
1192
1389
|
}
|
|
1193
1390
|
/**
|
|
1194
|
-
* Create a
|
|
1391
|
+
* Create a webhook trigger
|
|
1195
1392
|
*/
|
|
1196
1393
|
create(options) {
|
|
1197
1394
|
return (options?.client ?? this.client).post({
|
|
1198
|
-
url:
|
|
1395
|
+
url: "/api/webhook-triggers",
|
|
1199
1396
|
...options,
|
|
1200
1397
|
headers: {
|
|
1201
|
-
|
|
1202
|
-
...options?.headers
|
|
1203
|
-
}
|
|
1398
|
+
"Content-Type": "application/json",
|
|
1399
|
+
...options?.headers,
|
|
1400
|
+
},
|
|
1204
1401
|
});
|
|
1205
1402
|
}
|
|
1206
1403
|
/**
|
|
1207
|
-
* Get a
|
|
1208
|
-
*/
|
|
1209
|
-
get(options) {
|
|
1210
|
-
return (options.client ?? this.client).get({ url: '/api/replays/{id}', ...options });
|
|
1211
|
-
}
|
|
1212
|
-
/**
|
|
1213
|
-
* Archive a replay
|
|
1214
|
-
*/
|
|
1215
|
-
archive(options) {
|
|
1216
|
-
return (options.client ?? this.client).post({ url: '/api/replays/{id}/archive', ...options });
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
export class Runs4 extends HeyApiClient {
|
|
1220
|
-
/**
|
|
1221
|
-
* List routine runs across user
|
|
1222
|
-
*/
|
|
1223
|
-
listAll(options) {
|
|
1224
|
-
return (options?.client ?? this.client).get({ url: '/api/routine-runs', ...options });
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
export class Routines3 extends HeyApiClient {
|
|
1228
|
-
_runs;
|
|
1229
|
-
get runs() {
|
|
1230
|
-
return this._runs ??= new Runs4({ client: this.client });
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
export class Session2 extends HeyApiClient {
|
|
1234
|
-
/**
|
|
1235
|
-
* List sessions across pods for the authenticated user
|
|
1236
|
-
*/
|
|
1237
|
-
list(options) {
|
|
1238
|
-
return (options?.client ?? this.client).get({ url: '/api/sessions', ...options });
|
|
1239
|
-
}
|
|
1240
|
-
/**
|
|
1241
|
-
* Get a session by org scope
|
|
1242
|
-
*/
|
|
1243
|
-
get(options) {
|
|
1244
|
-
return (options.client ?? this.client).get({ url: '/api/sessions/{id}', ...options });
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
export class Version2 extends HeyApiClient {
|
|
1248
|
-
/**
|
|
1249
|
-
* List skill versions
|
|
1250
|
-
*/
|
|
1251
|
-
list(options) {
|
|
1252
|
-
return (options.client ?? this.client).get({ url: '/api/skills/{id}/versions', ...options });
|
|
1253
|
-
}
|
|
1254
|
-
/**
|
|
1255
|
-
* Create a skill version
|
|
1256
|
-
*/
|
|
1257
|
-
create(options) {
|
|
1258
|
-
return (options.client ?? this.client).post({ url: '/api/skills/{id}/versions', ...options });
|
|
1259
|
-
}
|
|
1260
|
-
/**
|
|
1261
|
-
* Get a skill version
|
|
1404
|
+
* Get a webhook trigger
|
|
1262
1405
|
*/
|
|
1263
1406
|
get(options) {
|
|
1264
|
-
return (options.client ?? this.client).get({
|
|
1407
|
+
return (options.client ?? this.client).get({
|
|
1408
|
+
url: "/api/webhook-triggers/{triggerId}",
|
|
1409
|
+
...options,
|
|
1410
|
+
});
|
|
1265
1411
|
}
|
|
1266
1412
|
/**
|
|
1267
|
-
*
|
|
1413
|
+
* Update a webhook trigger
|
|
1268
1414
|
*/
|
|
1269
|
-
|
|
1270
|
-
return (options.client ?? this.client).
|
|
1415
|
+
update(options) {
|
|
1416
|
+
return (options.client ?? this.client).patch({
|
|
1417
|
+
url: "/api/webhook-triggers/{triggerId}",
|
|
1418
|
+
...options,
|
|
1419
|
+
headers: {
|
|
1420
|
+
"Content-Type": "application/json",
|
|
1421
|
+
...options.headers,
|
|
1422
|
+
},
|
|
1423
|
+
});
|
|
1271
1424
|
}
|
|
1272
1425
|
/**
|
|
1273
|
-
* Archive a
|
|
1426
|
+
* Archive a webhook trigger
|
|
1274
1427
|
*/
|
|
1275
1428
|
archive(options) {
|
|
1276
|
-
return (options.client ?? this.client).post({
|
|
1277
|
-
|
|
1278
|
-
}
|
|
1279
|
-
export class Skill extends HeyApiClient {
|
|
1280
|
-
/**
|
|
1281
|
-
* List skills
|
|
1282
|
-
*/
|
|
1283
|
-
list(options) {
|
|
1284
|
-
return (options?.client ?? this.client).get({ url: '/api/skills', ...options });
|
|
1285
|
-
}
|
|
1286
|
-
/**
|
|
1287
|
-
* Create a skill
|
|
1288
|
-
*/
|
|
1289
|
-
create(options) {
|
|
1290
|
-
return (options?.client ?? this.client).post({ url: '/api/skills', ...options });
|
|
1291
|
-
}
|
|
1292
|
-
/**
|
|
1293
|
-
* Get a skill by slug
|
|
1294
|
-
*/
|
|
1295
|
-
getBySlug(options) {
|
|
1296
|
-
return (options.client ?? this.client).get({ url: '/api/skills/slug/{slug}', ...options });
|
|
1297
|
-
}
|
|
1298
|
-
/**
|
|
1299
|
-
* Get a skill
|
|
1300
|
-
*/
|
|
1301
|
-
get(options) {
|
|
1302
|
-
return (options.client ?? this.client).get({ url: '/api/skills/{id}', ...options });
|
|
1303
|
-
}
|
|
1304
|
-
/**
|
|
1305
|
-
* Update skill metadata
|
|
1306
|
-
*/
|
|
1307
|
-
update(options) {
|
|
1308
|
-
return (options.client ?? this.client).patch({
|
|
1309
|
-
url: '/api/skills/{id}',
|
|
1429
|
+
return (options.client ?? this.client).post({
|
|
1430
|
+
url: "/api/webhook-triggers/{triggerId}/archive",
|
|
1310
1431
|
...options,
|
|
1311
1432
|
headers: {
|
|
1312
|
-
|
|
1313
|
-
...options.headers
|
|
1314
|
-
}
|
|
1433
|
+
"Content-Type": "application/json",
|
|
1434
|
+
...options.headers,
|
|
1435
|
+
},
|
|
1315
1436
|
});
|
|
1316
1437
|
}
|
|
1438
|
+
}
|
|
1439
|
+
export class Installation2 extends HeyApiClient {
|
|
1317
1440
|
/**
|
|
1318
|
-
*
|
|
1441
|
+
* Disconnect a Slack workspace installation
|
|
1319
1442
|
*/
|
|
1320
|
-
|
|
1321
|
-
return (options.client ?? this.client).
|
|
1443
|
+
remove(options) {
|
|
1444
|
+
return (options.client ?? this.client).delete({ url: "/api/slack/installations/{id}", ...options });
|
|
1322
1445
|
}
|
|
1446
|
+
}
|
|
1447
|
+
export class Slack extends HeyApiClient {
|
|
1323
1448
|
/**
|
|
1324
|
-
*
|
|
1449
|
+
* Report whether Slack is installed for the caller's org
|
|
1325
1450
|
*/
|
|
1326
|
-
|
|
1327
|
-
return (options
|
|
1328
|
-
url:
|
|
1451
|
+
status(options) {
|
|
1452
|
+
return (options?.client ?? this.client).get({
|
|
1453
|
+
url: "/api/slack/status",
|
|
1329
1454
|
...options,
|
|
1330
|
-
headers: {
|
|
1331
|
-
'Content-Type': 'application/json',
|
|
1332
|
-
...options.headers
|
|
1333
|
-
}
|
|
1334
1455
|
});
|
|
1335
1456
|
}
|
|
1336
|
-
|
|
1337
|
-
get
|
|
1338
|
-
return this.
|
|
1457
|
+
_installation;
|
|
1458
|
+
get installation() {
|
|
1459
|
+
return (this._installation ??= new Installation2({ client: this.client }));
|
|
1339
1460
|
}
|
|
1340
1461
|
}
|
|
1341
1462
|
export class Vault2 extends HeyApiClient {
|
|
@@ -1343,51 +1464,63 @@ export class Vault2 extends HeyApiClient {
|
|
|
1343
1464
|
* List vaults
|
|
1344
1465
|
*/
|
|
1345
1466
|
list(options) {
|
|
1346
|
-
return (options?.client ?? this.client).get({
|
|
1467
|
+
return (options?.client ?? this.client).get({
|
|
1468
|
+
url: "/api/vaults",
|
|
1469
|
+
...options,
|
|
1470
|
+
});
|
|
1347
1471
|
}
|
|
1348
1472
|
/**
|
|
1349
1473
|
* Create a vault
|
|
1350
1474
|
*/
|
|
1351
1475
|
create(options) {
|
|
1352
1476
|
return (options?.client ?? this.client).post({
|
|
1353
|
-
url:
|
|
1477
|
+
url: "/api/vaults",
|
|
1354
1478
|
...options,
|
|
1355
1479
|
headers: {
|
|
1356
|
-
|
|
1357
|
-
...options?.headers
|
|
1358
|
-
}
|
|
1480
|
+
"Content-Type": "application/json",
|
|
1481
|
+
...options?.headers,
|
|
1482
|
+
},
|
|
1359
1483
|
});
|
|
1360
1484
|
}
|
|
1361
1485
|
/**
|
|
1362
1486
|
* Delete a vault permanently
|
|
1363
1487
|
*/
|
|
1364
1488
|
delete(options) {
|
|
1365
|
-
return (options.client ?? this.client).delete({
|
|
1489
|
+
return (options.client ?? this.client).delete({
|
|
1490
|
+
url: "/api/vaults/{id}",
|
|
1491
|
+
...options,
|
|
1492
|
+
});
|
|
1366
1493
|
}
|
|
1367
1494
|
/**
|
|
1368
1495
|
* Get a vault
|
|
1369
1496
|
*/
|
|
1370
1497
|
get(options) {
|
|
1371
|
-
return (options.client ?? this.client).get({
|
|
1498
|
+
return (options.client ?? this.client).get({
|
|
1499
|
+
url: "/api/vaults/{id}",
|
|
1500
|
+
...options,
|
|
1501
|
+
});
|
|
1372
1502
|
}
|
|
1373
1503
|
/**
|
|
1374
1504
|
* Update a vault (name, description)
|
|
1375
1505
|
*/
|
|
1376
1506
|
update(options) {
|
|
1377
1507
|
return (options.client ?? this.client).patch({
|
|
1378
|
-
url:
|
|
1508
|
+
url: "/api/vaults/{id}",
|
|
1379
1509
|
...options,
|
|
1380
1510
|
headers: {
|
|
1381
|
-
|
|
1382
|
-
...options.headers
|
|
1383
|
-
}
|
|
1511
|
+
"Content-Type": "application/json",
|
|
1512
|
+
...options.headers,
|
|
1513
|
+
},
|
|
1384
1514
|
});
|
|
1385
1515
|
}
|
|
1386
1516
|
/**
|
|
1387
1517
|
* Archive a vault
|
|
1388
1518
|
*/
|
|
1389
1519
|
archive(options) {
|
|
1390
|
-
return (options.client ?? this.client).post({
|
|
1520
|
+
return (options.client ?? this.client).post({
|
|
1521
|
+
url: "/api/vaults/{id}/archive",
|
|
1522
|
+
...options,
|
|
1523
|
+
});
|
|
1391
1524
|
}
|
|
1392
1525
|
}
|
|
1393
1526
|
export class Oauth2 extends HeyApiClient {
|
|
@@ -1396,19 +1529,19 @@ export class Oauth2 extends HeyApiClient {
|
|
|
1396
1529
|
*/
|
|
1397
1530
|
start(options) {
|
|
1398
1531
|
return (options.client ?? this.client).post({
|
|
1399
|
-
url:
|
|
1532
|
+
url: "/api/vaults/{vaultId}/credentials/oauth/start",
|
|
1400
1533
|
...options,
|
|
1401
1534
|
headers: {
|
|
1402
|
-
|
|
1403
|
-
...options.headers
|
|
1404
|
-
}
|
|
1535
|
+
"Content-Type": "application/json",
|
|
1536
|
+
...options.headers,
|
|
1537
|
+
},
|
|
1405
1538
|
});
|
|
1406
1539
|
}
|
|
1407
1540
|
/**
|
|
1408
1541
|
* Poll an OAuth session's status
|
|
1409
1542
|
*/
|
|
1410
1543
|
session(options) {
|
|
1411
|
-
return (options.client ?? this.client).get({ url:
|
|
1544
|
+
return (options.client ?? this.client).get({ url: "/api/vaults/{vaultId}/oauth/sessions/{sessionId}", ...options });
|
|
1412
1545
|
}
|
|
1413
1546
|
}
|
|
1414
1547
|
export class Credential extends HeyApiClient {
|
|
@@ -1416,55 +1549,67 @@ export class Credential extends HeyApiClient {
|
|
|
1416
1549
|
* List credentials
|
|
1417
1550
|
*/
|
|
1418
1551
|
list(options) {
|
|
1419
|
-
return (options.client ?? this.client).get({
|
|
1552
|
+
return (options.client ?? this.client).get({
|
|
1553
|
+
url: "/api/vaults/{vaultId}/credentials",
|
|
1554
|
+
...options,
|
|
1555
|
+
});
|
|
1420
1556
|
}
|
|
1421
1557
|
/**
|
|
1422
1558
|
* Create a credential
|
|
1423
1559
|
*/
|
|
1424
1560
|
create(options) {
|
|
1425
1561
|
return (options.client ?? this.client).post({
|
|
1426
|
-
url:
|
|
1562
|
+
url: "/api/vaults/{vaultId}/credentials",
|
|
1427
1563
|
...options,
|
|
1428
1564
|
headers: {
|
|
1429
|
-
|
|
1430
|
-
...options.headers
|
|
1431
|
-
}
|
|
1565
|
+
"Content-Type": "application/json",
|
|
1566
|
+
...options.headers,
|
|
1567
|
+
},
|
|
1432
1568
|
});
|
|
1433
1569
|
}
|
|
1434
1570
|
/**
|
|
1435
1571
|
* Delete a credential permanently
|
|
1436
1572
|
*/
|
|
1437
1573
|
delete(options) {
|
|
1438
|
-
return (options.client ?? this.client).delete({
|
|
1574
|
+
return (options.client ?? this.client).delete({
|
|
1575
|
+
url: "/api/vaults/{vaultId}/credentials/{id}",
|
|
1576
|
+
...options,
|
|
1577
|
+
});
|
|
1439
1578
|
}
|
|
1440
1579
|
/**
|
|
1441
1580
|
* Get a credential
|
|
1442
1581
|
*/
|
|
1443
1582
|
get(options) {
|
|
1444
|
-
return (options.client ?? this.client).get({
|
|
1583
|
+
return (options.client ?? this.client).get({
|
|
1584
|
+
url: "/api/vaults/{vaultId}/credentials/{id}",
|
|
1585
|
+
...options,
|
|
1586
|
+
});
|
|
1445
1587
|
}
|
|
1446
1588
|
/**
|
|
1447
1589
|
* Update a credential (rename or rotate value)
|
|
1448
1590
|
*/
|
|
1449
1591
|
update(options) {
|
|
1450
1592
|
return (options.client ?? this.client).patch({
|
|
1451
|
-
url:
|
|
1593
|
+
url: "/api/vaults/{vaultId}/credentials/{id}",
|
|
1452
1594
|
...options,
|
|
1453
1595
|
headers: {
|
|
1454
|
-
|
|
1455
|
-
...options.headers
|
|
1456
|
-
}
|
|
1596
|
+
"Content-Type": "application/json",
|
|
1597
|
+
...options.headers,
|
|
1598
|
+
},
|
|
1457
1599
|
});
|
|
1458
1600
|
}
|
|
1459
1601
|
/**
|
|
1460
1602
|
* Archive a credential
|
|
1461
1603
|
*/
|
|
1462
1604
|
archive(options) {
|
|
1463
|
-
return (options.client ?? this.client).post({
|
|
1605
|
+
return (options.client ?? this.client).post({
|
|
1606
|
+
url: "/api/vaults/{vaultId}/credentials/{id}/archive",
|
|
1607
|
+
...options,
|
|
1608
|
+
});
|
|
1464
1609
|
}
|
|
1465
1610
|
_oauth;
|
|
1466
1611
|
get oauth() {
|
|
1467
|
-
return this._oauth ??= new Oauth2({ client: this.client });
|
|
1612
|
+
return (this._oauth ??= new Oauth2({ client: this.client }));
|
|
1468
1613
|
}
|
|
1469
1614
|
}
|
|
1470
1615
|
export class Agent3 extends HeyApiClient {
|
|
@@ -1472,13 +1617,19 @@ export class Agent3 extends HeyApiClient {
|
|
|
1472
1617
|
* List registry agents
|
|
1473
1618
|
*/
|
|
1474
1619
|
list(options) {
|
|
1475
|
-
return (options?.client ?? this.client).get({
|
|
1620
|
+
return (options?.client ?? this.client).get({
|
|
1621
|
+
url: "/api/registry/agents",
|
|
1622
|
+
...options,
|
|
1623
|
+
});
|
|
1476
1624
|
}
|
|
1477
1625
|
/**
|
|
1478
1626
|
* Get a registry agent
|
|
1479
1627
|
*/
|
|
1480
1628
|
get(options) {
|
|
1481
|
-
return (options.client ?? this.client).get({
|
|
1629
|
+
return (options.client ?? this.client).get({
|
|
1630
|
+
url: "/api/registry/agents/{id}",
|
|
1631
|
+
...options,
|
|
1632
|
+
});
|
|
1482
1633
|
}
|
|
1483
1634
|
}
|
|
1484
1635
|
export class Skill2 extends HeyApiClient {
|
|
@@ -1486,59 +1637,87 @@ export class Skill2 extends HeyApiClient {
|
|
|
1486
1637
|
* List registry skills
|
|
1487
1638
|
*/
|
|
1488
1639
|
list(options) {
|
|
1489
|
-
return (options?.client ?? this.client).get({
|
|
1640
|
+
return (options?.client ?? this.client).get({
|
|
1641
|
+
url: "/api/registry/skills",
|
|
1642
|
+
...options,
|
|
1643
|
+
});
|
|
1490
1644
|
}
|
|
1491
1645
|
/**
|
|
1492
1646
|
* Get a registry skill
|
|
1493
1647
|
*/
|
|
1494
1648
|
get(options) {
|
|
1495
|
-
return (options.client ?? this.client).get({
|
|
1649
|
+
return (options.client ?? this.client).get({
|
|
1650
|
+
url: "/api/registry/skills/{id}",
|
|
1651
|
+
...options,
|
|
1652
|
+
});
|
|
1496
1653
|
}
|
|
1497
1654
|
}
|
|
1498
|
-
export class
|
|
1655
|
+
export class Mcp2 extends HeyApiClient {
|
|
1499
1656
|
/**
|
|
1500
1657
|
* List registry MCPs
|
|
1501
1658
|
*/
|
|
1502
1659
|
list(options) {
|
|
1503
|
-
return (options?.client ?? this.client).get({
|
|
1660
|
+
return (options?.client ?? this.client).get({
|
|
1661
|
+
url: "/api/registry/mcps",
|
|
1662
|
+
...options,
|
|
1663
|
+
});
|
|
1504
1664
|
}
|
|
1505
1665
|
/**
|
|
1506
1666
|
* Get a registry MCP
|
|
1507
1667
|
*/
|
|
1508
1668
|
get(options) {
|
|
1509
|
-
return (options.client ?? this.client).get({
|
|
1669
|
+
return (options.client ?? this.client).get({
|
|
1670
|
+
url: "/api/registry/mcps/{id}",
|
|
1671
|
+
...options,
|
|
1672
|
+
});
|
|
1510
1673
|
}
|
|
1511
1674
|
}
|
|
1512
|
-
export class
|
|
1675
|
+
export class Files4 extends HeyApiClient {
|
|
1513
1676
|
/**
|
|
1514
|
-
*
|
|
1677
|
+
* Presign a download URL for a public replay's pod-volume file
|
|
1515
1678
|
*/
|
|
1516
|
-
|
|
1517
|
-
return (options
|
|
1679
|
+
presignDownload(options) {
|
|
1680
|
+
return (options.client ?? this.client).post({
|
|
1681
|
+
url: "/api/registry/replays/{slug}/files/presign-download",
|
|
1682
|
+
...options,
|
|
1683
|
+
headers: {
|
|
1684
|
+
"Content-Type": "application/json",
|
|
1685
|
+
...options.headers,
|
|
1686
|
+
},
|
|
1687
|
+
});
|
|
1518
1688
|
}
|
|
1689
|
+
}
|
|
1690
|
+
export class Replay2 extends HeyApiClient {
|
|
1519
1691
|
/**
|
|
1520
|
-
* Get a
|
|
1692
|
+
* Get a public replay by slug
|
|
1521
1693
|
*/
|
|
1522
1694
|
get(options) {
|
|
1523
|
-
return (options.client ?? this.client).get({
|
|
1695
|
+
return (options.client ?? this.client).get({
|
|
1696
|
+
url: "/api/registry/replays/{slug}",
|
|
1697
|
+
...options,
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
_files;
|
|
1701
|
+
get files() {
|
|
1702
|
+
return (this._files ??= new Files4({ client: this.client }));
|
|
1524
1703
|
}
|
|
1525
1704
|
}
|
|
1526
1705
|
export class Registry extends HeyApiClient {
|
|
1527
1706
|
_agent;
|
|
1528
1707
|
get agent() {
|
|
1529
|
-
return this._agent ??= new Agent3({ client: this.client });
|
|
1708
|
+
return (this._agent ??= new Agent3({ client: this.client }));
|
|
1530
1709
|
}
|
|
1531
1710
|
_skill;
|
|
1532
1711
|
get skill() {
|
|
1533
|
-
return this._skill ??= new Skill2({ client: this.client });
|
|
1712
|
+
return (this._skill ??= new Skill2({ client: this.client }));
|
|
1534
1713
|
}
|
|
1535
1714
|
_mcp;
|
|
1536
1715
|
get mcp() {
|
|
1537
|
-
return this._mcp ??= new
|
|
1716
|
+
return (this._mcp ??= new Mcp2({ client: this.client }));
|
|
1538
1717
|
}
|
|
1539
|
-
|
|
1540
|
-
get
|
|
1541
|
-
return this.
|
|
1718
|
+
_replay;
|
|
1719
|
+
get replay() {
|
|
1720
|
+
return (this._replay ??= new Replay2({ client: this.client }));
|
|
1542
1721
|
}
|
|
1543
1722
|
}
|
|
1544
1723
|
export class RenClient extends HeyApiClient {
|
|
@@ -1547,68 +1726,96 @@ export class RenClient extends HeyApiClient {
|
|
|
1547
1726
|
super(args);
|
|
1548
1727
|
RenClient.__registry.set(this, args?.key);
|
|
1549
1728
|
}
|
|
1550
|
-
_composio;
|
|
1551
|
-
get composio() {
|
|
1552
|
-
return this._composio ??= new Composio({ client: this.client });
|
|
1553
|
-
}
|
|
1554
1729
|
_agent;
|
|
1555
1730
|
get agent() {
|
|
1556
|
-
return this._agent ??= new Agent({ client: this.client });
|
|
1731
|
+
return (this._agent ??= new Agent({ client: this.client }));
|
|
1732
|
+
}
|
|
1733
|
+
_billing;
|
|
1734
|
+
get billing() {
|
|
1735
|
+
return (this._billing ??= new Billing({ client: this.client }));
|
|
1557
1736
|
}
|
|
1558
1737
|
_dashboard;
|
|
1559
1738
|
get dashboard() {
|
|
1560
|
-
return this._dashboard ??= new Dashboard({ client: this.client });
|
|
1739
|
+
return (this._dashboard ??= new Dashboard({ client: this.client }));
|
|
1561
1740
|
}
|
|
1562
1741
|
_environment;
|
|
1563
1742
|
get environment() {
|
|
1564
|
-
return this._environment ??= new Environment({ client: this.client });
|
|
1743
|
+
return (this._environment ??= new Environment({ client: this.client }));
|
|
1565
1744
|
}
|
|
1566
1745
|
_fileStore;
|
|
1567
1746
|
get fileStore() {
|
|
1568
|
-
return this._fileStore ??= new FileStore({ client: this.client });
|
|
1747
|
+
return (this._fileStore ??= new FileStore({ client: this.client }));
|
|
1748
|
+
}
|
|
1749
|
+
_github;
|
|
1750
|
+
get github() {
|
|
1751
|
+
return (this._github ??= new Github({ client: this.client }));
|
|
1569
1752
|
}
|
|
1570
1753
|
_mcp;
|
|
1571
1754
|
get mcp() {
|
|
1572
|
-
return this._mcp ??= new
|
|
1755
|
+
return (this._mcp ??= new Mcp({ client: this.client }));
|
|
1756
|
+
}
|
|
1757
|
+
_me;
|
|
1758
|
+
get me() {
|
|
1759
|
+
return (this._me ??= new Me({ client: this.client }));
|
|
1573
1760
|
}
|
|
1574
1761
|
_memoryStore;
|
|
1575
1762
|
get memoryStore() {
|
|
1576
|
-
return this._memoryStore ??= new MemoryStore({ client: this.client });
|
|
1763
|
+
return (this._memoryStore ??= new MemoryStore({ client: this.client }));
|
|
1764
|
+
}
|
|
1765
|
+
_model;
|
|
1766
|
+
get model() {
|
|
1767
|
+
return (this._model ??= new Model({ client: this.client }));
|
|
1768
|
+
}
|
|
1769
|
+
_onboarding;
|
|
1770
|
+
get onboarding() {
|
|
1771
|
+
return (this._onboarding ??= new Onboarding({ client: this.client }));
|
|
1577
1772
|
}
|
|
1578
1773
|
_pat;
|
|
1579
1774
|
get pat() {
|
|
1580
|
-
return this._pat ??= new Pat({ client: this.client });
|
|
1775
|
+
return (this._pat ??= new Pat({ client: this.client }));
|
|
1581
1776
|
}
|
|
1582
1777
|
_pod;
|
|
1583
1778
|
get pod() {
|
|
1584
|
-
return this._pod ??= new Pod({ client: this.client });
|
|
1779
|
+
return (this._pod ??= new Pod({ client: this.client }));
|
|
1780
|
+
}
|
|
1781
|
+
_project;
|
|
1782
|
+
get project() {
|
|
1783
|
+
return (this._project ??= new Project({ client: this.client }));
|
|
1585
1784
|
}
|
|
1586
1785
|
_replay;
|
|
1587
1786
|
get replay() {
|
|
1588
|
-
return this._replay ??= new Replay({ client: this.client });
|
|
1589
|
-
}
|
|
1590
|
-
_routines;
|
|
1591
|
-
get routines() {
|
|
1592
|
-
return this._routines ??= new Routines3({ client: this.client });
|
|
1787
|
+
return (this._replay ??= new Replay({ client: this.client }));
|
|
1593
1788
|
}
|
|
1594
1789
|
_session;
|
|
1595
1790
|
get session() {
|
|
1596
|
-
return this._session ??= new
|
|
1791
|
+
return (this._session ??= new Session({ client: this.client }));
|
|
1597
1792
|
}
|
|
1598
1793
|
_skill;
|
|
1599
1794
|
get skill() {
|
|
1600
|
-
return this._skill ??= new Skill({ client: this.client });
|
|
1795
|
+
return (this._skill ??= new Skill({ client: this.client }));
|
|
1796
|
+
}
|
|
1797
|
+
_trigger;
|
|
1798
|
+
get trigger() {
|
|
1799
|
+
return (this._trigger ??= new Trigger({ client: this.client }));
|
|
1800
|
+
}
|
|
1801
|
+
_webhookTrigger;
|
|
1802
|
+
get webhookTrigger() {
|
|
1803
|
+
return (this._webhookTrigger ??= new WebhookTrigger({ client: this.client }));
|
|
1804
|
+
}
|
|
1805
|
+
_slack;
|
|
1806
|
+
get slack() {
|
|
1807
|
+
return (this._slack ??= new Slack({ client: this.client }));
|
|
1601
1808
|
}
|
|
1602
1809
|
_vault;
|
|
1603
1810
|
get vault() {
|
|
1604
|
-
return this._vault ??= new Vault2({ client: this.client });
|
|
1811
|
+
return (this._vault ??= new Vault2({ client: this.client }));
|
|
1605
1812
|
}
|
|
1606
1813
|
_credential;
|
|
1607
1814
|
get credential() {
|
|
1608
|
-
return this._credential ??= new Credential({ client: this.client });
|
|
1815
|
+
return (this._credential ??= new Credential({ client: this.client }));
|
|
1609
1816
|
}
|
|
1610
1817
|
_registry;
|
|
1611
1818
|
get registry() {
|
|
1612
|
-
return this._registry ??= new Registry({ client: this.client });
|
|
1819
|
+
return (this._registry ??= new Registry({ client: this.client }));
|
|
1613
1820
|
}
|
|
1614
1821
|
}
|