@renai-labs/sdk 0.1.0
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/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/auth.d.ts +8 -0
- package/dist/auth.js +10 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.js +14 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +3308 -0
- package/dist/generated/@tanstack/react-query.gen.js +3431 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/client.gen.js +235 -0
- package/dist/generated/client/index.d.ts +8 -0
- package/dist/generated/client/index.js +6 -0
- package/dist/generated/client/types.gen.d.ts +117 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +33 -0
- package/dist/generated/client/utils.gen.js +228 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/client.gen.js +3 -0
- package/dist/generated/core/auth.gen.d.ts +18 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/pathSerializer.gen.js +106 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/serverSentEvents.gen.js +132 -0
- package/dist/generated/core/types.gen.d.ts +78 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/sdk.gen.d.ts +885 -0
- package/dist/generated/sdk.gen.js +1614 -0
- package/dist/generated/types.gen.d.ts +6898 -0
- package/dist/generated/types.gen.js +2 -0
- package/dist/generated/zod.gen.d.ts +4873 -0
- package/dist/generated/zod.gen.js +2212 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/session.d.ts +92 -0
- package/dist/session.js +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,1614 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen';
|
|
3
|
+
class HeyApiClient {
|
|
4
|
+
client;
|
|
5
|
+
constructor(args) {
|
|
6
|
+
this.client = args?.client ?? client;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
class HeyApiRegistry {
|
|
10
|
+
defaultKey = 'default';
|
|
11
|
+
instances = new Map();
|
|
12
|
+
get(key) {
|
|
13
|
+
const instance = this.instances.get(key ?? this.defaultKey);
|
|
14
|
+
if (!instance) {
|
|
15
|
+
throw new Error(`No SDK client found. Create one with "new RenClient()" to fix this error.`);
|
|
16
|
+
}
|
|
17
|
+
return instance;
|
|
18
|
+
}
|
|
19
|
+
set(value, key) {
|
|
20
|
+
this.instances.set(key ?? this.defaultKey, value);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
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
|
+
export class Version extends HeyApiClient {
|
|
87
|
+
/**
|
|
88
|
+
* List agent versions
|
|
89
|
+
*/
|
|
90
|
+
list(options) {
|
|
91
|
+
return (options.client ?? this.client).get({ url: '/api/agents/{id}/versions', ...options });
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Create an agent version
|
|
95
|
+
*/
|
|
96
|
+
create(options) {
|
|
97
|
+
return (options.client ?? this.client).post({
|
|
98
|
+
url: '/api/agents/{id}/versions',
|
|
99
|
+
...options,
|
|
100
|
+
headers: {
|
|
101
|
+
'Content-Type': 'application/json',
|
|
102
|
+
...options.headers
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Get an agent version
|
|
108
|
+
*/
|
|
109
|
+
get(options) {
|
|
110
|
+
return (options.client ?? this.client).get({ url: '/api/agents/{id}/versions/{version}', ...options });
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Archive an agent version
|
|
114
|
+
*/
|
|
115
|
+
archive(options) {
|
|
116
|
+
return (options.client ?? this.client).post({ url: '/api/agents/{id}/versions/{version}/archive', ...options });
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
export class Agent extends HeyApiClient {
|
|
120
|
+
/**
|
|
121
|
+
* List agents
|
|
122
|
+
*/
|
|
123
|
+
list(options) {
|
|
124
|
+
return (options?.client ?? this.client).get({ url: '/api/agents', ...options });
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Create an agent
|
|
128
|
+
*/
|
|
129
|
+
create(options) {
|
|
130
|
+
return (options?.client ?? this.client).post({
|
|
131
|
+
url: '/api/agents',
|
|
132
|
+
...options,
|
|
133
|
+
headers: {
|
|
134
|
+
'Content-Type': 'application/json',
|
|
135
|
+
...options?.headers
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Get an agent by slug
|
|
141
|
+
*/
|
|
142
|
+
getBySlug(options) {
|
|
143
|
+
return (options.client ?? this.client).get({ url: '/api/agents/slug/{slug}', ...options });
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Get an agent
|
|
147
|
+
*/
|
|
148
|
+
get(options) {
|
|
149
|
+
return (options.client ?? this.client).get({ url: '/api/agents/{id}', ...options });
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Update agent metadata
|
|
153
|
+
*/
|
|
154
|
+
update(options) {
|
|
155
|
+
return (options.client ?? this.client).patch({
|
|
156
|
+
url: '/api/agents/{id}',
|
|
157
|
+
...options,
|
|
158
|
+
headers: {
|
|
159
|
+
'Content-Type': 'application/json',
|
|
160
|
+
...options.headers
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Archive an agent
|
|
166
|
+
*/
|
|
167
|
+
archive(options) {
|
|
168
|
+
return (options.client ?? this.client).post({ url: '/api/agents/{id}/archive', ...options });
|
|
169
|
+
}
|
|
170
|
+
_version;
|
|
171
|
+
get version() {
|
|
172
|
+
return this._version ??= new Version({ client: this.client });
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
export class Dashboard extends HeyApiClient {
|
|
176
|
+
/**
|
|
177
|
+
* Get dashboard analytics
|
|
178
|
+
*/
|
|
179
|
+
get(options) {
|
|
180
|
+
return (options?.client ?? this.client).get({ url: '/api/dashboard', ...options });
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
export class Environment extends HeyApiClient {
|
|
184
|
+
/**
|
|
185
|
+
* List environments
|
|
186
|
+
*/
|
|
187
|
+
list(options) {
|
|
188
|
+
return (options?.client ?? this.client).get({ url: '/api/environments', ...options });
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Create an environment
|
|
192
|
+
*/
|
|
193
|
+
create(options) {
|
|
194
|
+
return (options?.client ?? this.client).post({
|
|
195
|
+
url: '/api/environments',
|
|
196
|
+
...options,
|
|
197
|
+
headers: {
|
|
198
|
+
'Content-Type': 'application/json',
|
|
199
|
+
...options?.headers
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Delete an environment permanently
|
|
205
|
+
*/
|
|
206
|
+
delete(options) {
|
|
207
|
+
return (options.client ?? this.client).delete({ url: '/api/environments/{id}', ...options });
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Get an environment
|
|
211
|
+
*/
|
|
212
|
+
get(options) {
|
|
213
|
+
return (options.client ?? this.client).get({ url: '/api/environments/{id}', ...options });
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Update an environment
|
|
217
|
+
*/
|
|
218
|
+
update(options) {
|
|
219
|
+
return (options.client ?? this.client).patch({
|
|
220
|
+
url: '/api/environments/{id}',
|
|
221
|
+
...options,
|
|
222
|
+
headers: {
|
|
223
|
+
'Content-Type': 'application/json',
|
|
224
|
+
...options.headers
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Archive an environment
|
|
230
|
+
*/
|
|
231
|
+
archive(options) {
|
|
232
|
+
return (options.client ?? this.client).post({ url: '/api/environments/{id}/archive', ...options });
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export class Files extends HeyApiClient {
|
|
236
|
+
/**
|
|
237
|
+
* Delete a file
|
|
238
|
+
*/
|
|
239
|
+
delete(options) {
|
|
240
|
+
return (options.client ?? this.client).delete({ url: '/api/file-stores/{id}/files', ...options });
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* List files in a file store
|
|
244
|
+
*/
|
|
245
|
+
list(options) {
|
|
246
|
+
return (options.client ?? this.client).get({ url: '/api/file-stores/{id}/files', ...options });
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Upload file(s) via multipart/form-data
|
|
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 });
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Get a presigned GET URL for a file
|
|
258
|
+
*/
|
|
259
|
+
presignDownload(options) {
|
|
260
|
+
return (options.client ?? this.client).get({ url: '/api/file-stores/{id}/files/presign-download', ...options });
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Rename or move a file
|
|
264
|
+
*/
|
|
265
|
+
rename(options) {
|
|
266
|
+
return (options.client ?? this.client).post({
|
|
267
|
+
url: '/api/file-stores/{id}/files/rename',
|
|
268
|
+
...options,
|
|
269
|
+
headers: {
|
|
270
|
+
'Content-Type': 'application/json',
|
|
271
|
+
...options.headers
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Get a presigned PUT URL for a file
|
|
277
|
+
*/
|
|
278
|
+
presignUpload(options) {
|
|
279
|
+
return (options.client ?? this.client).post({
|
|
280
|
+
url: '/api/file-stores/{id}/files/presign-upload',
|
|
281
|
+
...options,
|
|
282
|
+
headers: {
|
|
283
|
+
'Content-Type': 'application/json',
|
|
284
|
+
...options.headers
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
export class FileStore extends HeyApiClient {
|
|
290
|
+
/**
|
|
291
|
+
* List file stores
|
|
292
|
+
*/
|
|
293
|
+
list(options) {
|
|
294
|
+
return (options?.client ?? this.client).get({ url: '/api/file-stores', ...options });
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Create a file store
|
|
298
|
+
*/
|
|
299
|
+
create(options) {
|
|
300
|
+
return (options?.client ?? this.client).post({
|
|
301
|
+
url: '/api/file-stores',
|
|
302
|
+
...options,
|
|
303
|
+
headers: {
|
|
304
|
+
'Content-Type': 'application/json',
|
|
305
|
+
...options?.headers
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Get a file store
|
|
311
|
+
*/
|
|
312
|
+
get(options) {
|
|
313
|
+
return (options.client ?? this.client).get({ url: '/api/file-stores/{id}', ...options });
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Update a file store
|
|
317
|
+
*/
|
|
318
|
+
update(options) {
|
|
319
|
+
return (options.client ?? this.client).patch({
|
|
320
|
+
url: '/api/file-stores/{id}',
|
|
321
|
+
...options,
|
|
322
|
+
headers: {
|
|
323
|
+
'Content-Type': 'application/json',
|
|
324
|
+
...options.headers
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Archive a file store
|
|
330
|
+
*/
|
|
331
|
+
archive(options) {
|
|
332
|
+
return (options.client ?? this.client).post({ url: '/api/file-stores/{id}/archive', ...options });
|
|
333
|
+
}
|
|
334
|
+
_files;
|
|
335
|
+
get files() {
|
|
336
|
+
return this._files ??= new Files({ client: this.client });
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
export class Oauth extends HeyApiClient {
|
|
340
|
+
/**
|
|
341
|
+
* Start OAuth for an MCP (or confirm it is already connected)
|
|
342
|
+
*/
|
|
343
|
+
connect(options) {
|
|
344
|
+
return (options.client ?? this.client).post({
|
|
345
|
+
url: '/api/mcps/{id}/oauth/connect',
|
|
346
|
+
...options,
|
|
347
|
+
headers: {
|
|
348
|
+
'Content-Type': 'application/json',
|
|
349
|
+
...options.headers
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Poll an MCP OAuth session status
|
|
355
|
+
*/
|
|
356
|
+
session(options) {
|
|
357
|
+
return (options.client ?? this.client).get({ url: '/api/mcps/{id}/oauth/sessions/{sessionId}', ...options });
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
export class Mcp2 extends HeyApiClient {
|
|
361
|
+
/**
|
|
362
|
+
* List MCPs
|
|
363
|
+
*/
|
|
364
|
+
list(options) {
|
|
365
|
+
return (options?.client ?? this.client).get({ url: '/api/mcps', ...options });
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Create an MCP
|
|
369
|
+
*/
|
|
370
|
+
create(options) {
|
|
371
|
+
return (options?.client ?? this.client).post({
|
|
372
|
+
url: '/api/mcps',
|
|
373
|
+
...options,
|
|
374
|
+
headers: {
|
|
375
|
+
'Content-Type': 'application/json',
|
|
376
|
+
...options?.headers
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Get an MCP by slug
|
|
382
|
+
*/
|
|
383
|
+
getBySlug(options) {
|
|
384
|
+
return (options.client ?? this.client).get({ url: '/api/mcps/slug/{slug}', ...options });
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Get an MCP
|
|
388
|
+
*/
|
|
389
|
+
get(options) {
|
|
390
|
+
return (options.client ?? this.client).get({ url: '/api/mcps/{id}', ...options });
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Archive an MCP
|
|
394
|
+
*/
|
|
395
|
+
archive(options) {
|
|
396
|
+
return (options.client ?? this.client).post({ url: '/api/mcps/{id}/archive', ...options });
|
|
397
|
+
}
|
|
398
|
+
_oauth;
|
|
399
|
+
get oauth() {
|
|
400
|
+
return this._oauth ??= new Oauth({ client: this.client });
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
export class Files2 extends HeyApiClient {
|
|
404
|
+
/**
|
|
405
|
+
* Delete a file
|
|
406
|
+
*/
|
|
407
|
+
delete(options) {
|
|
408
|
+
return (options.client ?? this.client).delete({ url: '/api/memory-stores/{id}/files', ...options });
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* List files in a memory store
|
|
412
|
+
*/
|
|
413
|
+
list(options) {
|
|
414
|
+
return (options.client ?? this.client).get({ url: '/api/memory-stores/{id}/files', ...options });
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Upload file(s) via multipart/form-data
|
|
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.
|
|
420
|
+
*/
|
|
421
|
+
upload(options) {
|
|
422
|
+
return (options.client ?? this.client).post({ url: '/api/memory-stores/{id}/files', ...options });
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Download a file (bytes proxied through API)
|
|
426
|
+
*/
|
|
427
|
+
download(options) {
|
|
428
|
+
return (options.client ?? this.client).get({ url: '/api/memory-stores/{id}/files/download', ...options });
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Rename or move a file
|
|
432
|
+
*/
|
|
433
|
+
rename(options) {
|
|
434
|
+
return (options.client ?? this.client).post({
|
|
435
|
+
url: '/api/memory-stores/{id}/files/rename',
|
|
436
|
+
...options,
|
|
437
|
+
headers: {
|
|
438
|
+
'Content-Type': 'application/json',
|
|
439
|
+
...options.headers
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
export class MemoryStore extends HeyApiClient {
|
|
445
|
+
/**
|
|
446
|
+
* List memory stores
|
|
447
|
+
*/
|
|
448
|
+
list(options) {
|
|
449
|
+
return (options?.client ?? this.client).get({ url: '/api/memory-stores', ...options });
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Create a memory store
|
|
453
|
+
*/
|
|
454
|
+
create(options) {
|
|
455
|
+
return (options?.client ?? this.client).post({
|
|
456
|
+
url: '/api/memory-stores',
|
|
457
|
+
...options,
|
|
458
|
+
headers: {
|
|
459
|
+
'Content-Type': 'application/json',
|
|
460
|
+
...options?.headers
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Get a memory store
|
|
466
|
+
*/
|
|
467
|
+
get(options) {
|
|
468
|
+
return (options.client ?? this.client).get({ url: '/api/memory-stores/{id}', ...options });
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Update a memory store
|
|
472
|
+
*/
|
|
473
|
+
update(options) {
|
|
474
|
+
return (options.client ?? this.client).patch({
|
|
475
|
+
url: '/api/memory-stores/{id}',
|
|
476
|
+
...options,
|
|
477
|
+
headers: {
|
|
478
|
+
'Content-Type': 'application/json',
|
|
479
|
+
...options.headers
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Archive a memory store
|
|
485
|
+
*/
|
|
486
|
+
archive(options) {
|
|
487
|
+
return (options.client ?? this.client).post({ url: '/api/memory-stores/{id}/archive', ...options });
|
|
488
|
+
}
|
|
489
|
+
_files;
|
|
490
|
+
get files() {
|
|
491
|
+
return this._files ??= new Files2({ client: this.client });
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
export class Pat extends HeyApiClient {
|
|
495
|
+
/**
|
|
496
|
+
* List personal access tokens
|
|
497
|
+
*/
|
|
498
|
+
list(options) {
|
|
499
|
+
return (options?.client ?? this.client).get({ url: '/api/pats', ...options });
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Create a personal access token
|
|
503
|
+
*/
|
|
504
|
+
create(options) {
|
|
505
|
+
return (options?.client ?? this.client).post({
|
|
506
|
+
url: '/api/pats',
|
|
507
|
+
...options,
|
|
508
|
+
headers: {
|
|
509
|
+
'Content-Type': 'application/json',
|
|
510
|
+
...options?.headers
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Revoke a personal access token
|
|
516
|
+
*/
|
|
517
|
+
revoke(options) {
|
|
518
|
+
return (options.client ?? this.client).post({ url: '/api/pats/{id}/revoke', ...options });
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
export class Member extends HeyApiClient {
|
|
522
|
+
/**
|
|
523
|
+
* List pod members
|
|
524
|
+
*/
|
|
525
|
+
list(options) {
|
|
526
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{id}/members', ...options });
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Add a member to a pod
|
|
530
|
+
*/
|
|
531
|
+
add(options) {
|
|
532
|
+
return (options.client ?? this.client).post({
|
|
533
|
+
url: '/api/pods/{id}/members',
|
|
534
|
+
...options,
|
|
535
|
+
headers: {
|
|
536
|
+
'Content-Type': 'application/json',
|
|
537
|
+
...options.headers
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Remove a member from a pod
|
|
543
|
+
*/
|
|
544
|
+
remove(options) {
|
|
545
|
+
return (options.client ?? this.client).delete({ url: '/api/pods/{id}/members/{userId}', ...options });
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
export class Vault extends HeyApiClient {
|
|
549
|
+
/**
|
|
550
|
+
* List pod vaults (ordered by priority)
|
|
551
|
+
*/
|
|
552
|
+
list(options) {
|
|
553
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{id}/vaults', ...options });
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Add a vault to a pod
|
|
557
|
+
*/
|
|
558
|
+
add(options) {
|
|
559
|
+
return (options.client ?? this.client).post({
|
|
560
|
+
url: '/api/pods/{id}/vaults',
|
|
561
|
+
...options,
|
|
562
|
+
headers: {
|
|
563
|
+
'Content-Type': 'application/json',
|
|
564
|
+
...options.headers
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Remove a vault from a pod
|
|
570
|
+
*/
|
|
571
|
+
remove(options) {
|
|
572
|
+
return (options.client ?? this.client).delete({ url: '/api/pods/{id}/vaults/{vaultId}', ...options });
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
export class Sandbox extends HeyApiClient {
|
|
576
|
+
/**
|
|
577
|
+
* Get the current sandbox for this pod
|
|
578
|
+
*/
|
|
579
|
+
current(options) {
|
|
580
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/sandbox', ...options });
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Provision a sandbox for this pod (idempotent)
|
|
584
|
+
*
|
|
585
|
+
* Returns the existing active sandbox if one is linked; otherwise creates one.
|
|
586
|
+
*/
|
|
587
|
+
provision(options) {
|
|
588
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/sandbox', ...options });
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
export class Agent2 extends HeyApiClient {
|
|
592
|
+
/**
|
|
593
|
+
* List project agents
|
|
594
|
+
*/
|
|
595
|
+
list(options) {
|
|
596
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/projects/{id}/agents', ...options });
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* Add an agent to a project
|
|
600
|
+
*/
|
|
601
|
+
add(options) {
|
|
602
|
+
return (options.client ?? this.client).post({
|
|
603
|
+
url: '/api/pods/{podId}/projects/{id}/agents',
|
|
604
|
+
...options,
|
|
605
|
+
headers: {
|
|
606
|
+
'Content-Type': 'application/json',
|
|
607
|
+
...options.headers
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Remove an agent from a project
|
|
613
|
+
*/
|
|
614
|
+
remove(options) {
|
|
615
|
+
return (options.client ?? this.client).delete({ url: '/api/pods/{podId}/projects/{id}/agents/{agentId}', ...options });
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
export class FileStore2 extends HeyApiClient {
|
|
619
|
+
/**
|
|
620
|
+
* List project file stores
|
|
621
|
+
*/
|
|
622
|
+
list(options) {
|
|
623
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/projects/{id}/file-stores', ...options });
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Attach a file store to a project
|
|
627
|
+
*/
|
|
628
|
+
add(options) {
|
|
629
|
+
return (options.client ?? this.client).post({
|
|
630
|
+
url: '/api/pods/{podId}/projects/{id}/file-stores',
|
|
631
|
+
...options,
|
|
632
|
+
headers: {
|
|
633
|
+
'Content-Type': 'application/json',
|
|
634
|
+
...options.headers
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Detach a file store from a project
|
|
640
|
+
*/
|
|
641
|
+
remove(options) {
|
|
642
|
+
return (options.client ?? this.client).delete({ url: '/api/pods/{podId}/projects/{id}/file-stores/{fileStoreId}', ...options });
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
export class MemoryStore2 extends HeyApiClient {
|
|
646
|
+
/**
|
|
647
|
+
* List project memory stores
|
|
648
|
+
*/
|
|
649
|
+
list(options) {
|
|
650
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/projects/{id}/memory-stores', ...options });
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Attach a memory store to a project
|
|
654
|
+
*/
|
|
655
|
+
add(options) {
|
|
656
|
+
return (options.client ?? this.client).post({
|
|
657
|
+
url: '/api/pods/{podId}/projects/{id}/memory-stores',
|
|
658
|
+
...options,
|
|
659
|
+
headers: {
|
|
660
|
+
'Content-Type': 'application/json',
|
|
661
|
+
...options.headers
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Detach a memory store from a project
|
|
667
|
+
*/
|
|
668
|
+
remove(options) {
|
|
669
|
+
return (options.client ?? this.client).delete({ url: '/api/pods/{podId}/projects/{id}/memory-stores/{memoryStoreId}', ...options });
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
export class Routine extends HeyApiClient {
|
|
673
|
+
/**
|
|
674
|
+
* List routines for a project
|
|
675
|
+
*/
|
|
676
|
+
list(options) {
|
|
677
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/projects/{id}/routines', ...options });
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
export class Runs extends HeyApiClient {
|
|
681
|
+
/**
|
|
682
|
+
* List routine runs across a project
|
|
683
|
+
*/
|
|
684
|
+
listAll(options) {
|
|
685
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/projects/{id}/routine-runs', ...options });
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
export class Routines extends HeyApiClient {
|
|
689
|
+
_runs;
|
|
690
|
+
get runs() {
|
|
691
|
+
return this._runs ??= new Runs({ client: this.client });
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
export class Project extends HeyApiClient {
|
|
695
|
+
/**
|
|
696
|
+
* List projects
|
|
697
|
+
*/
|
|
698
|
+
list(options) {
|
|
699
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/projects', ...options });
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Create a project
|
|
703
|
+
*/
|
|
704
|
+
create(options) {
|
|
705
|
+
return (options.client ?? this.client).post({
|
|
706
|
+
url: '/api/pods/{podId}/projects',
|
|
707
|
+
...options,
|
|
708
|
+
headers: {
|
|
709
|
+
'Content-Type': 'application/json',
|
|
710
|
+
...options.headers
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* Get a project
|
|
716
|
+
*/
|
|
717
|
+
get(options) {
|
|
718
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/projects/{id}', ...options });
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Update a project
|
|
722
|
+
*/
|
|
723
|
+
update(options) {
|
|
724
|
+
return (options.client ?? this.client).patch({
|
|
725
|
+
url: '/api/pods/{podId}/projects/{id}',
|
|
726
|
+
...options,
|
|
727
|
+
headers: {
|
|
728
|
+
'Content-Type': 'application/json',
|
|
729
|
+
...options.headers
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Archive a project
|
|
735
|
+
*/
|
|
736
|
+
archive(options) {
|
|
737
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/projects/{id}/archive', ...options });
|
|
738
|
+
}
|
|
739
|
+
_agent;
|
|
740
|
+
get agent() {
|
|
741
|
+
return this._agent ??= new Agent2({ client: this.client });
|
|
742
|
+
}
|
|
743
|
+
_fileStore;
|
|
744
|
+
get fileStore() {
|
|
745
|
+
return this._fileStore ??= new FileStore2({ client: this.client });
|
|
746
|
+
}
|
|
747
|
+
_memoryStore;
|
|
748
|
+
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 });
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
export class Message extends HeyApiClient {
|
|
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 {
|
|
769
|
+
/**
|
|
770
|
+
* List sessions
|
|
771
|
+
*/
|
|
772
|
+
list(options) {
|
|
773
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/sessions', ...options });
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* Create a session
|
|
777
|
+
*/
|
|
778
|
+
create(options) {
|
|
779
|
+
return (options.client ?? this.client).post({
|
|
780
|
+
url: '/api/pods/{podId}/sessions',
|
|
781
|
+
...options,
|
|
782
|
+
headers: {
|
|
783
|
+
'Content-Type': 'application/json',
|
|
784
|
+
...options.headers
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Get a session
|
|
790
|
+
*/
|
|
791
|
+
get(options) {
|
|
792
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/sessions/{id}', ...options });
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Update a session
|
|
796
|
+
*/
|
|
797
|
+
update(options) {
|
|
798
|
+
return (options.client ?? this.client).patch({
|
|
799
|
+
url: '/api/pods/{podId}/sessions/{id}',
|
|
800
|
+
...options,
|
|
801
|
+
headers: {
|
|
802
|
+
'Content-Type': 'application/json',
|
|
803
|
+
...options.headers
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Archive a session
|
|
809
|
+
*/
|
|
810
|
+
archive(options) {
|
|
811
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/sessions/{id}/archive', ...options });
|
|
812
|
+
}
|
|
813
|
+
_message;
|
|
814
|
+
get message() {
|
|
815
|
+
return this._message ??= new Message({ client: this.client });
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
export class CronTrigger extends HeyApiClient {
|
|
819
|
+
/**
|
|
820
|
+
* List cron triggers
|
|
821
|
+
*/
|
|
822
|
+
list(options) {
|
|
823
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/cron-triggers', ...options });
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Create a cron trigger
|
|
827
|
+
*/
|
|
828
|
+
create(options) {
|
|
829
|
+
return (options.client ?? this.client).post({
|
|
830
|
+
url: '/api/pods/{podId}/routines/{id}/cron-triggers',
|
|
831
|
+
...options,
|
|
832
|
+
headers: {
|
|
833
|
+
'Content-Type': 'application/json',
|
|
834
|
+
...options.headers
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Get a cron trigger
|
|
840
|
+
*/
|
|
841
|
+
get(options) {
|
|
842
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/cron-triggers/{triggerId}', ...options });
|
|
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}',
|
|
850
|
+
...options,
|
|
851
|
+
headers: {
|
|
852
|
+
'Content-Type': 'application/json',
|
|
853
|
+
...options.headers
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
}
|
|
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
|
+
}
|
|
864
|
+
export class WebhookTrigger extends HeyApiClient {
|
|
865
|
+
/**
|
|
866
|
+
* List webhook triggers
|
|
867
|
+
*/
|
|
868
|
+
list(options) {
|
|
869
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/webhook-triggers', ...options });
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* Create a webhook trigger
|
|
873
|
+
*/
|
|
874
|
+
create(options) {
|
|
875
|
+
return (options.client ?? this.client).post({
|
|
876
|
+
url: '/api/pods/{podId}/routines/{id}/webhook-triggers',
|
|
877
|
+
...options,
|
|
878
|
+
headers: {
|
|
879
|
+
'Content-Type': 'application/json',
|
|
880
|
+
...options.headers
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Get a webhook trigger
|
|
886
|
+
*/
|
|
887
|
+
get(options) {
|
|
888
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/webhook-triggers/{triggerId}', ...options });
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Update a webhook trigger
|
|
892
|
+
*/
|
|
893
|
+
update(options) {
|
|
894
|
+
return (options.client ?? this.client).patch({
|
|
895
|
+
url: '/api/pods/{podId}/routines/{id}/webhook-triggers/{triggerId}',
|
|
896
|
+
...options,
|
|
897
|
+
headers: {
|
|
898
|
+
'Content-Type': 'application/json',
|
|
899
|
+
...options.headers
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Archive a webhook trigger
|
|
905
|
+
*/
|
|
906
|
+
archive(options) {
|
|
907
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/webhook-triggers/{triggerId}/archive', ...options });
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
export class ApiTrigger extends HeyApiClient {
|
|
911
|
+
/**
|
|
912
|
+
* List API triggers
|
|
913
|
+
*/
|
|
914
|
+
list(options) {
|
|
915
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/api-triggers', ...options });
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Create an API trigger
|
|
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.
|
|
921
|
+
*/
|
|
922
|
+
create(options) {
|
|
923
|
+
return (options.client ?? this.client).post({
|
|
924
|
+
url: '/api/pods/{podId}/routines/{id}/api-triggers',
|
|
925
|
+
...options,
|
|
926
|
+
headers: {
|
|
927
|
+
'Content-Type': 'application/json',
|
|
928
|
+
...options.headers
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Rotate an API trigger token
|
|
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
|
|
942
|
+
*/
|
|
943
|
+
get(options) {
|
|
944
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/api-triggers/{triggerId}', ...options });
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Update an API trigger
|
|
948
|
+
*/
|
|
949
|
+
update(options) {
|
|
950
|
+
return (options.client ?? this.client).patch({
|
|
951
|
+
url: '/api/pods/{podId}/routines/{id}/api-triggers/{triggerId}',
|
|
952
|
+
...options,
|
|
953
|
+
headers: {
|
|
954
|
+
'Content-Type': 'application/json',
|
|
955
|
+
...options.headers
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Archive an API trigger
|
|
961
|
+
*/
|
|
962
|
+
archive(options) {
|
|
963
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/api-triggers/{triggerId}/archive', ...options });
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
export class Runs2 extends HeyApiClient {
|
|
967
|
+
/**
|
|
968
|
+
* List routine runs
|
|
969
|
+
*/
|
|
970
|
+
list(options) {
|
|
971
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}/runs', ...options });
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* Create a routine run
|
|
975
|
+
*/
|
|
976
|
+
create(options) {
|
|
977
|
+
return (options.client ?? this.client).post({
|
|
978
|
+
url: '/api/pods/{podId}/routines/{id}/runs',
|
|
979
|
+
...options,
|
|
980
|
+
headers: {
|
|
981
|
+
'Content-Type': 'application/json',
|
|
982
|
+
...options.headers
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Get a routine run
|
|
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
|
|
994
|
+
*/
|
|
995
|
+
start(options) {
|
|
996
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/runs/{runId}/start', ...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',
|
|
1010
|
+
...options,
|
|
1011
|
+
headers: {
|
|
1012
|
+
'Content-Type': 'application/json',
|
|
1013
|
+
...options.headers
|
|
1014
|
+
}
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Cancel a routine run
|
|
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
|
|
1033
|
+
*/
|
|
1034
|
+
create(options) {
|
|
1035
|
+
return (options.client ?? this.client).post({
|
|
1036
|
+
url: '/api/pods/{podId}/routines',
|
|
1037
|
+
...options,
|
|
1038
|
+
headers: {
|
|
1039
|
+
'Content-Type': 'application/json',
|
|
1040
|
+
...options.headers
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Get a routine
|
|
1046
|
+
*/
|
|
1047
|
+
get(options) {
|
|
1048
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routines/{id}', ...options });
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Update a routine
|
|
1052
|
+
*/
|
|
1053
|
+
update(options) {
|
|
1054
|
+
return (options.client ?? this.client).patch({
|
|
1055
|
+
url: '/api/pods/{podId}/routines/{id}',
|
|
1056
|
+
...options,
|
|
1057
|
+
headers: {
|
|
1058
|
+
'Content-Type': 'application/json',
|
|
1059
|
+
...options.headers
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* Archive a routine
|
|
1065
|
+
*/
|
|
1066
|
+
archive(options) {
|
|
1067
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{podId}/routines/{id}/archive', ...options });
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Pause a routine
|
|
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 });
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
export class Runs3 extends HeyApiClient {
|
|
1099
|
+
/**
|
|
1100
|
+
* List routine runs across pod
|
|
1101
|
+
*/
|
|
1102
|
+
listAll(options) {
|
|
1103
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{podId}/routine-runs', ...options });
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
export class Routines2 extends HeyApiClient {
|
|
1107
|
+
_runs;
|
|
1108
|
+
get runs() {
|
|
1109
|
+
return this._runs ??= new Runs3({ client: this.client });
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
export class Pod extends HeyApiClient {
|
|
1113
|
+
/**
|
|
1114
|
+
* List pods
|
|
1115
|
+
*/
|
|
1116
|
+
list(options) {
|
|
1117
|
+
return (options?.client ?? this.client).get({ url: '/api/pods', ...options });
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Create a pod
|
|
1121
|
+
*/
|
|
1122
|
+
create(options) {
|
|
1123
|
+
return (options?.client ?? this.client).post({
|
|
1124
|
+
url: '/api/pods',
|
|
1125
|
+
...options,
|
|
1126
|
+
headers: {
|
|
1127
|
+
'Content-Type': 'application/json',
|
|
1128
|
+
...options?.headers
|
|
1129
|
+
}
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Get a pod
|
|
1134
|
+
*/
|
|
1135
|
+
get(options) {
|
|
1136
|
+
return (options.client ?? this.client).get({ url: '/api/pods/{id}', ...options });
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Update a pod
|
|
1140
|
+
*/
|
|
1141
|
+
update(options) {
|
|
1142
|
+
return (options.client ?? this.client).patch({
|
|
1143
|
+
url: '/api/pods/{id}',
|
|
1144
|
+
...options,
|
|
1145
|
+
headers: {
|
|
1146
|
+
'Content-Type': 'application/json',
|
|
1147
|
+
...options.headers
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
/**
|
|
1152
|
+
* Archive a pod
|
|
1153
|
+
*/
|
|
1154
|
+
archive(options) {
|
|
1155
|
+
return (options.client ?? this.client).post({ url: '/api/pods/{id}/archive', ...options });
|
|
1156
|
+
}
|
|
1157
|
+
_member;
|
|
1158
|
+
get member() {
|
|
1159
|
+
return this._member ??= new Member({ client: this.client });
|
|
1160
|
+
}
|
|
1161
|
+
_vault;
|
|
1162
|
+
get vault() {
|
|
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 });
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
export class Replay extends HeyApiClient {
|
|
1187
|
+
/**
|
|
1188
|
+
* List replays
|
|
1189
|
+
*/
|
|
1190
|
+
list(options) {
|
|
1191
|
+
return (options?.client ?? this.client).get({ url: '/api/replays', ...options });
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* Create a replay
|
|
1195
|
+
*/
|
|
1196
|
+
create(options) {
|
|
1197
|
+
return (options?.client ?? this.client).post({
|
|
1198
|
+
url: '/api/replays',
|
|
1199
|
+
...options,
|
|
1200
|
+
headers: {
|
|
1201
|
+
'Content-Type': 'application/json',
|
|
1202
|
+
...options?.headers
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* Get a replay
|
|
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
|
|
1262
|
+
*/
|
|
1263
|
+
get(options) {
|
|
1264
|
+
return (options.client ?? this.client).get({ url: '/api/skills/{id}/versions/{version}', ...options });
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Read skill version data
|
|
1268
|
+
*/
|
|
1269
|
+
data(options) {
|
|
1270
|
+
return (options.client ?? this.client).get({ url: '/api/skills/{id}/versions/{version}/data', ...options });
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Archive a skill version
|
|
1274
|
+
*/
|
|
1275
|
+
archive(options) {
|
|
1276
|
+
return (options.client ?? this.client).post({ url: '/api/skills/{id}/versions/{version}/archive', ...options });
|
|
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}',
|
|
1310
|
+
...options,
|
|
1311
|
+
headers: {
|
|
1312
|
+
'Content-Type': 'application/json',
|
|
1313
|
+
...options.headers
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Archive a skill
|
|
1319
|
+
*/
|
|
1320
|
+
archive(options) {
|
|
1321
|
+
return (options.client ?? this.client).post({ url: '/api/skills/{id}/archive', ...options });
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Copy a skill
|
|
1325
|
+
*/
|
|
1326
|
+
copy(options) {
|
|
1327
|
+
return (options.client ?? this.client).post({
|
|
1328
|
+
url: '/api/skills/{id}/copy',
|
|
1329
|
+
...options,
|
|
1330
|
+
headers: {
|
|
1331
|
+
'Content-Type': 'application/json',
|
|
1332
|
+
...options.headers
|
|
1333
|
+
}
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
_version;
|
|
1337
|
+
get version() {
|
|
1338
|
+
return this._version ??= new Version2({ client: this.client });
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
export class Vault2 extends HeyApiClient {
|
|
1342
|
+
/**
|
|
1343
|
+
* List vaults
|
|
1344
|
+
*/
|
|
1345
|
+
list(options) {
|
|
1346
|
+
return (options?.client ?? this.client).get({ url: '/api/vaults', ...options });
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Create a vault
|
|
1350
|
+
*/
|
|
1351
|
+
create(options) {
|
|
1352
|
+
return (options?.client ?? this.client).post({
|
|
1353
|
+
url: '/api/vaults',
|
|
1354
|
+
...options,
|
|
1355
|
+
headers: {
|
|
1356
|
+
'Content-Type': 'application/json',
|
|
1357
|
+
...options?.headers
|
|
1358
|
+
}
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* Delete a vault permanently
|
|
1363
|
+
*/
|
|
1364
|
+
delete(options) {
|
|
1365
|
+
return (options.client ?? this.client).delete({ url: '/api/vaults/{id}', ...options });
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Get a vault
|
|
1369
|
+
*/
|
|
1370
|
+
get(options) {
|
|
1371
|
+
return (options.client ?? this.client).get({ url: '/api/vaults/{id}', ...options });
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Update a vault (name, description)
|
|
1375
|
+
*/
|
|
1376
|
+
update(options) {
|
|
1377
|
+
return (options.client ?? this.client).patch({
|
|
1378
|
+
url: '/api/vaults/{id}',
|
|
1379
|
+
...options,
|
|
1380
|
+
headers: {
|
|
1381
|
+
'Content-Type': 'application/json',
|
|
1382
|
+
...options.headers
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Archive a vault
|
|
1388
|
+
*/
|
|
1389
|
+
archive(options) {
|
|
1390
|
+
return (options.client ?? this.client).post({ url: '/api/vaults/{id}/archive', ...options });
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
export class Oauth2 extends HeyApiClient {
|
|
1394
|
+
/**
|
|
1395
|
+
* Begin SDK-delegated OAuth flow against an MCP
|
|
1396
|
+
*/
|
|
1397
|
+
start(options) {
|
|
1398
|
+
return (options.client ?? this.client).post({
|
|
1399
|
+
url: '/api/vaults/{vaultId}/credentials/oauth/start',
|
|
1400
|
+
...options,
|
|
1401
|
+
headers: {
|
|
1402
|
+
'Content-Type': 'application/json',
|
|
1403
|
+
...options.headers
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Poll an OAuth session's status
|
|
1409
|
+
*/
|
|
1410
|
+
session(options) {
|
|
1411
|
+
return (options.client ?? this.client).get({ url: '/api/vaults/{vaultId}/oauth/sessions/{sessionId}', ...options });
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
export class Credential extends HeyApiClient {
|
|
1415
|
+
/**
|
|
1416
|
+
* List credentials
|
|
1417
|
+
*/
|
|
1418
|
+
list(options) {
|
|
1419
|
+
return (options.client ?? this.client).get({ url: '/api/vaults/{vaultId}/credentials', ...options });
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Create a credential
|
|
1423
|
+
*/
|
|
1424
|
+
create(options) {
|
|
1425
|
+
return (options.client ?? this.client).post({
|
|
1426
|
+
url: '/api/vaults/{vaultId}/credentials',
|
|
1427
|
+
...options,
|
|
1428
|
+
headers: {
|
|
1429
|
+
'Content-Type': 'application/json',
|
|
1430
|
+
...options.headers
|
|
1431
|
+
}
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Delete a credential permanently
|
|
1436
|
+
*/
|
|
1437
|
+
delete(options) {
|
|
1438
|
+
return (options.client ?? this.client).delete({ url: '/api/vaults/{vaultId}/credentials/{id}', ...options });
|
|
1439
|
+
}
|
|
1440
|
+
/**
|
|
1441
|
+
* Get a credential
|
|
1442
|
+
*/
|
|
1443
|
+
get(options) {
|
|
1444
|
+
return (options.client ?? this.client).get({ url: '/api/vaults/{vaultId}/credentials/{id}', ...options });
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Update a credential (rename or rotate value)
|
|
1448
|
+
*/
|
|
1449
|
+
update(options) {
|
|
1450
|
+
return (options.client ?? this.client).patch({
|
|
1451
|
+
url: '/api/vaults/{vaultId}/credentials/{id}',
|
|
1452
|
+
...options,
|
|
1453
|
+
headers: {
|
|
1454
|
+
'Content-Type': 'application/json',
|
|
1455
|
+
...options.headers
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Archive a credential
|
|
1461
|
+
*/
|
|
1462
|
+
archive(options) {
|
|
1463
|
+
return (options.client ?? this.client).post({ url: '/api/vaults/{vaultId}/credentials/{id}/archive', ...options });
|
|
1464
|
+
}
|
|
1465
|
+
_oauth;
|
|
1466
|
+
get oauth() {
|
|
1467
|
+
return this._oauth ??= new Oauth2({ client: this.client });
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
export class Agent3 extends HeyApiClient {
|
|
1471
|
+
/**
|
|
1472
|
+
* List registry agents
|
|
1473
|
+
*/
|
|
1474
|
+
list(options) {
|
|
1475
|
+
return (options?.client ?? this.client).get({ url: '/api/registry/agents', ...options });
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* Get a registry agent
|
|
1479
|
+
*/
|
|
1480
|
+
get(options) {
|
|
1481
|
+
return (options.client ?? this.client).get({ url: '/api/registry/agents/{id}', ...options });
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
export class Skill2 extends HeyApiClient {
|
|
1485
|
+
/**
|
|
1486
|
+
* List registry skills
|
|
1487
|
+
*/
|
|
1488
|
+
list(options) {
|
|
1489
|
+
return (options?.client ?? this.client).get({ url: '/api/registry/skills', ...options });
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Get a registry skill
|
|
1493
|
+
*/
|
|
1494
|
+
get(options) {
|
|
1495
|
+
return (options.client ?? this.client).get({ url: '/api/registry/skills/{id}', ...options });
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
export class Mcp3 extends HeyApiClient {
|
|
1499
|
+
/**
|
|
1500
|
+
* List registry MCPs
|
|
1501
|
+
*/
|
|
1502
|
+
list(options) {
|
|
1503
|
+
return (options?.client ?? this.client).get({ url: '/api/registry/mcps', ...options });
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Get a registry MCP
|
|
1507
|
+
*/
|
|
1508
|
+
get(options) {
|
|
1509
|
+
return (options.client ?? this.client).get({ url: '/api/registry/mcps/{id}', ...options });
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
export class ComposioMcp extends HeyApiClient {
|
|
1513
|
+
/**
|
|
1514
|
+
* List Composio MCPs
|
|
1515
|
+
*/
|
|
1516
|
+
list(options) {
|
|
1517
|
+
return (options?.client ?? this.client).get({ url: '/api/registry/cmp-mcps', ...options });
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
* Get a Composio MCP
|
|
1521
|
+
*/
|
|
1522
|
+
get(options) {
|
|
1523
|
+
return (options.client ?? this.client).get({ url: '/api/registry/cmp-mcps/{id}', ...options });
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
export class Registry extends HeyApiClient {
|
|
1527
|
+
_agent;
|
|
1528
|
+
get agent() {
|
|
1529
|
+
return this._agent ??= new Agent3({ client: this.client });
|
|
1530
|
+
}
|
|
1531
|
+
_skill;
|
|
1532
|
+
get skill() {
|
|
1533
|
+
return this._skill ??= new Skill2({ client: this.client });
|
|
1534
|
+
}
|
|
1535
|
+
_mcp;
|
|
1536
|
+
get mcp() {
|
|
1537
|
+
return this._mcp ??= new Mcp3({ client: this.client });
|
|
1538
|
+
}
|
|
1539
|
+
_composioMcp;
|
|
1540
|
+
get composioMcp() {
|
|
1541
|
+
return this._composioMcp ??= new ComposioMcp({ client: this.client });
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
export class RenClient extends HeyApiClient {
|
|
1545
|
+
static __registry = new HeyApiRegistry();
|
|
1546
|
+
constructor(args) {
|
|
1547
|
+
super(args);
|
|
1548
|
+
RenClient.__registry.set(this, args?.key);
|
|
1549
|
+
}
|
|
1550
|
+
_composio;
|
|
1551
|
+
get composio() {
|
|
1552
|
+
return this._composio ??= new Composio({ client: this.client });
|
|
1553
|
+
}
|
|
1554
|
+
_agent;
|
|
1555
|
+
get agent() {
|
|
1556
|
+
return this._agent ??= new Agent({ client: this.client });
|
|
1557
|
+
}
|
|
1558
|
+
_dashboard;
|
|
1559
|
+
get dashboard() {
|
|
1560
|
+
return this._dashboard ??= new Dashboard({ client: this.client });
|
|
1561
|
+
}
|
|
1562
|
+
_environment;
|
|
1563
|
+
get environment() {
|
|
1564
|
+
return this._environment ??= new Environment({ client: this.client });
|
|
1565
|
+
}
|
|
1566
|
+
_fileStore;
|
|
1567
|
+
get fileStore() {
|
|
1568
|
+
return this._fileStore ??= new FileStore({ client: this.client });
|
|
1569
|
+
}
|
|
1570
|
+
_mcp;
|
|
1571
|
+
get mcp() {
|
|
1572
|
+
return this._mcp ??= new Mcp2({ client: this.client });
|
|
1573
|
+
}
|
|
1574
|
+
_memoryStore;
|
|
1575
|
+
get memoryStore() {
|
|
1576
|
+
return this._memoryStore ??= new MemoryStore({ client: this.client });
|
|
1577
|
+
}
|
|
1578
|
+
_pat;
|
|
1579
|
+
get pat() {
|
|
1580
|
+
return this._pat ??= new Pat({ client: this.client });
|
|
1581
|
+
}
|
|
1582
|
+
_pod;
|
|
1583
|
+
get pod() {
|
|
1584
|
+
return this._pod ??= new Pod({ client: this.client });
|
|
1585
|
+
}
|
|
1586
|
+
_replay;
|
|
1587
|
+
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 });
|
|
1593
|
+
}
|
|
1594
|
+
_session;
|
|
1595
|
+
get session() {
|
|
1596
|
+
return this._session ??= new Session2({ client: this.client });
|
|
1597
|
+
}
|
|
1598
|
+
_skill;
|
|
1599
|
+
get skill() {
|
|
1600
|
+
return this._skill ??= new Skill({ client: this.client });
|
|
1601
|
+
}
|
|
1602
|
+
_vault;
|
|
1603
|
+
get vault() {
|
|
1604
|
+
return this._vault ??= new Vault2({ client: this.client });
|
|
1605
|
+
}
|
|
1606
|
+
_credential;
|
|
1607
|
+
get credential() {
|
|
1608
|
+
return this._credential ??= new Credential({ client: this.client });
|
|
1609
|
+
}
|
|
1610
|
+
_registry;
|
|
1611
|
+
get registry() {
|
|
1612
|
+
return this._registry ??= new Registry({ client: this.client });
|
|
1613
|
+
}
|
|
1614
|
+
}
|