@thirdweb-dev/nebula 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 +201 -0
- package/README.md +46 -0
- package/dist/cjs/client/client.gen.js +9 -0
- package/dist/cjs/client/client.gen.js.map +1 -0
- package/dist/cjs/client/index.js +7 -0
- package/dist/cjs/client/index.js.map +1 -0
- package/dist/cjs/client/sdk.gen.js +811 -0
- package/dist/cjs/client/sdk.gen.js.map +1 -0
- package/dist/cjs/client/types.gen.js +4 -0
- package/dist/cjs/client/types.gen.js.map +1 -0
- package/dist/cjs/configure.js +57 -0
- package/dist/cjs/configure.js.map +1 -0
- package/dist/cjs/exports/thirdweb.js +10 -0
- package/dist/cjs/exports/thirdweb.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/client/client.gen.js +6 -0
- package/dist/esm/client/client.gen.js.map +1 -0
- package/dist/esm/client/index.js +4 -0
- package/dist/esm/client/index.js.map +1 -0
- package/dist/esm/client/sdk.gen.js +765 -0
- package/dist/esm/client/sdk.gen.js.map +1 -0
- package/dist/esm/client/types.gen.js +3 -0
- package/dist/esm/client/types.gen.js.map +1 -0
- package/dist/esm/configure.js +52 -0
- package/dist/esm/configure.js.map +1 -0
- package/dist/esm/exports/thirdweb.js +3 -0
- package/dist/esm/exports/thirdweb.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/types/client/client.gen.d.ts +13 -0
- package/dist/types/client/client.gen.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +3 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/client/sdk.gen.d.ts +225 -0
- package/dist/types/client/sdk.gen.d.ts.map +1 -0
- package/dist/types/client/types.gen.d.ts +3803 -0
- package/dist/types/client/types.gen.d.ts.map +1 -0
- package/dist/types/configure.d.ts +13 -0
- package/dist/types/configure.d.ts.map +1 -0
- package/dist/types/exports/thirdweb.d.ts +4 -0
- package/dist/types/exports/thirdweb.d.ts.map +1 -0
- package/package.json +62 -0
- package/src/client/client.gen.ts +28 -0
- package/src/client/index.ts +4 -0
- package/src/client/sdk.gen.ts +1213 -0
- package/src/client/types.gen.ts +4270 -0
- package/src/configure.ts +76 -0
- package/src/exports/thirdweb.ts +8 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client as _heyApiClient } from "./client.gen.js";
|
|
3
|
+
/**
|
|
4
|
+
* Get Session List
|
|
5
|
+
*/
|
|
6
|
+
export const deprecatedGetSessions = (options) => {
|
|
7
|
+
return (options?.client ?? _heyApiClient).get({
|
|
8
|
+
security: [
|
|
9
|
+
{
|
|
10
|
+
name: "x-secret-key",
|
|
11
|
+
type: "apiKey",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
url: "/session/list",
|
|
15
|
+
...options,
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Delete Session
|
|
20
|
+
*/
|
|
21
|
+
export const deprecatedDeleteSession = (options) => {
|
|
22
|
+
return (options.client ?? _heyApiClient).delete({
|
|
23
|
+
security: [
|
|
24
|
+
{
|
|
25
|
+
name: "x-secret-key",
|
|
26
|
+
type: "apiKey",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
url: "/session/{session_id}",
|
|
30
|
+
...options,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Get Session
|
|
35
|
+
*/
|
|
36
|
+
export const deprecatedGetSession = (options) => {
|
|
37
|
+
return (options.client ?? _heyApiClient).get({
|
|
38
|
+
security: [
|
|
39
|
+
{
|
|
40
|
+
name: "x-secret-key",
|
|
41
|
+
type: "apiKey",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
url: "/session/{session_id}",
|
|
45
|
+
...options,
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Update Session
|
|
50
|
+
*/
|
|
51
|
+
export const deprecatedUpdateSession = (options) => {
|
|
52
|
+
return (options.client ?? _heyApiClient).put({
|
|
53
|
+
security: [
|
|
54
|
+
{
|
|
55
|
+
name: "x-secret-key",
|
|
56
|
+
type: "apiKey",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
url: "/session/{session_id}",
|
|
60
|
+
...options,
|
|
61
|
+
headers: {
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
...options.headers,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Create Session
|
|
69
|
+
*/
|
|
70
|
+
export const deprecatedCreateSession = (options) => {
|
|
71
|
+
return (options.client ?? _heyApiClient).post({
|
|
72
|
+
security: [
|
|
73
|
+
{
|
|
74
|
+
name: "x-secret-key",
|
|
75
|
+
type: "apiKey",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
url: "/session",
|
|
79
|
+
...options,
|
|
80
|
+
headers: {
|
|
81
|
+
"Content-Type": "application/json",
|
|
82
|
+
...options.headers,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Clear Session
|
|
88
|
+
*/
|
|
89
|
+
export const deprecatedClearSession = (options) => {
|
|
90
|
+
return (options.client ?? _heyApiClient).post({
|
|
91
|
+
security: [
|
|
92
|
+
{
|
|
93
|
+
name: "x-secret-key",
|
|
94
|
+
type: "apiKey",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
url: "/session/{session_id}/clear",
|
|
98
|
+
...options,
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Chat
|
|
103
|
+
* Process a chat message and return the response
|
|
104
|
+
*/
|
|
105
|
+
export const deprecatedChat = (options) => {
|
|
106
|
+
return (options.client ?? _heyApiClient).post({
|
|
107
|
+
security: [
|
|
108
|
+
{
|
|
109
|
+
name: "x-secret-key",
|
|
110
|
+
type: "apiKey",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
url: "/chat",
|
|
114
|
+
...options,
|
|
115
|
+
headers: {
|
|
116
|
+
"Content-Type": "application/json",
|
|
117
|
+
...options.headers,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Chat Completions
|
|
123
|
+
* Process a chat message and return the response
|
|
124
|
+
*/
|
|
125
|
+
export const deprecatedChatCompletions = (options) => {
|
|
126
|
+
return (options.client ?? _heyApiClient).post({
|
|
127
|
+
security: [
|
|
128
|
+
{
|
|
129
|
+
name: "x-secret-key",
|
|
130
|
+
type: "apiKey",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
url: "/chat/completions",
|
|
134
|
+
...options,
|
|
135
|
+
headers: {
|
|
136
|
+
"Content-Type": "application/json",
|
|
137
|
+
...options.headers,
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Execute
|
|
143
|
+
* Process an execute request and return the response
|
|
144
|
+
*/
|
|
145
|
+
export const deprecatedExecute = (options) => {
|
|
146
|
+
return (options.client ?? _heyApiClient).post({
|
|
147
|
+
security: [
|
|
148
|
+
{
|
|
149
|
+
name: "x-secret-key",
|
|
150
|
+
type: "apiKey",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
url: "/execute",
|
|
154
|
+
...options,
|
|
155
|
+
headers: {
|
|
156
|
+
"Content-Type": "application/json",
|
|
157
|
+
...options.headers,
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Feedback
|
|
163
|
+
* Process a feedback request and return the response
|
|
164
|
+
*/
|
|
165
|
+
export const feedback = (options) => {
|
|
166
|
+
return (options.client ?? _heyApiClient).post({
|
|
167
|
+
security: [
|
|
168
|
+
{
|
|
169
|
+
name: "x-secret-key",
|
|
170
|
+
type: "apiKey",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
url: "/feedback",
|
|
174
|
+
...options,
|
|
175
|
+
headers: {
|
|
176
|
+
"Content-Type": "application/json",
|
|
177
|
+
...options.headers,
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Get Models
|
|
183
|
+
* Get all models
|
|
184
|
+
*/
|
|
185
|
+
export const getModels = (options) => {
|
|
186
|
+
return (options?.client ?? _heyApiClient).get({
|
|
187
|
+
security: [
|
|
188
|
+
{
|
|
189
|
+
name: "x-secret-key",
|
|
190
|
+
type: "apiKey",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
url: "/models",
|
|
194
|
+
...options,
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Get Delegate Payload
|
|
199
|
+
* Get a delegate payload
|
|
200
|
+
*/
|
|
201
|
+
export const getAuthDelegatePayload = (options) => {
|
|
202
|
+
return (options.client ?? _heyApiClient).post({
|
|
203
|
+
security: [
|
|
204
|
+
{
|
|
205
|
+
name: "x-secret-key",
|
|
206
|
+
type: "apiKey",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
url: "/auth/delegate/payload",
|
|
210
|
+
...options,
|
|
211
|
+
headers: {
|
|
212
|
+
"Content-Type": "application/json",
|
|
213
|
+
...options.headers,
|
|
214
|
+
},
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Login Delegate
|
|
219
|
+
* Login with SIWE
|
|
220
|
+
*/
|
|
221
|
+
export const authDelegateLogin = (options) => {
|
|
222
|
+
return (options.client ?? _heyApiClient).post({
|
|
223
|
+
security: [
|
|
224
|
+
{
|
|
225
|
+
name: "x-secret-key",
|
|
226
|
+
type: "apiKey",
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
url: "/auth/delegate/login",
|
|
230
|
+
...options,
|
|
231
|
+
headers: {
|
|
232
|
+
"Content-Type": "application/json",
|
|
233
|
+
...options.headers,
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Verify Auth
|
|
239
|
+
* Verify a delegate payload
|
|
240
|
+
*/
|
|
241
|
+
export const verifyAuth = (options) => {
|
|
242
|
+
return (options?.client ?? _heyApiClient).get({
|
|
243
|
+
security: [
|
|
244
|
+
{
|
|
245
|
+
name: "x-secret-key",
|
|
246
|
+
type: "apiKey",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
url: "/auth/verify",
|
|
250
|
+
...options,
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Get User
|
|
255
|
+
* Get the current user
|
|
256
|
+
*/
|
|
257
|
+
export const getUser = (options) => {
|
|
258
|
+
return (options?.client ?? _heyApiClient).get({
|
|
259
|
+
security: [
|
|
260
|
+
{
|
|
261
|
+
name: "x-secret-key",
|
|
262
|
+
type: "apiKey",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
url: "/user",
|
|
266
|
+
...options,
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Get User Wallets
|
|
271
|
+
* Get all user wallets
|
|
272
|
+
*/
|
|
273
|
+
export const getUserWallets = (options) => {
|
|
274
|
+
return (options?.client ?? _heyApiClient).get({
|
|
275
|
+
security: [
|
|
276
|
+
{
|
|
277
|
+
name: "x-secret-key",
|
|
278
|
+
type: "apiKey",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
url: "/user/wallets",
|
|
282
|
+
...options,
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Delete User Wallet
|
|
287
|
+
* Delete a user wallet
|
|
288
|
+
*/
|
|
289
|
+
export const deleteUserWallet = (options) => {
|
|
290
|
+
return (options.client ?? _heyApiClient).delete({
|
|
291
|
+
security: [
|
|
292
|
+
{
|
|
293
|
+
name: "x-secret-key",
|
|
294
|
+
type: "apiKey",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
url: "/user/wallet/{wallet_id}",
|
|
298
|
+
...options,
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Get User Wallet
|
|
303
|
+
* Get a user wallet
|
|
304
|
+
*/
|
|
305
|
+
export const getUserWallet = (options) => {
|
|
306
|
+
return (options.client ?? _heyApiClient).get({
|
|
307
|
+
security: [
|
|
308
|
+
{
|
|
309
|
+
name: "x-secret-key",
|
|
310
|
+
type: "apiKey",
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
url: "/user/wallet/{wallet_id}",
|
|
314
|
+
...options,
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Put User Wallet
|
|
319
|
+
* Update a user wallet
|
|
320
|
+
*/
|
|
321
|
+
export const updateUserWallet = (options) => {
|
|
322
|
+
return (options.client ?? _heyApiClient).put({
|
|
323
|
+
security: [
|
|
324
|
+
{
|
|
325
|
+
name: "x-secret-key",
|
|
326
|
+
type: "apiKey",
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
url: "/user/wallet/{wallet_id}",
|
|
330
|
+
...options,
|
|
331
|
+
headers: {
|
|
332
|
+
"Content-Type": "application/json",
|
|
333
|
+
...options.headers,
|
|
334
|
+
},
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Post User Wallet
|
|
339
|
+
* Create a user wallet
|
|
340
|
+
*/
|
|
341
|
+
export const createUserWallet = (options) => {
|
|
342
|
+
return (options.client ?? _heyApiClient).post({
|
|
343
|
+
security: [
|
|
344
|
+
{
|
|
345
|
+
name: "x-secret-key",
|
|
346
|
+
type: "apiKey",
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
url: "/user/wallet",
|
|
350
|
+
...options,
|
|
351
|
+
headers: {
|
|
352
|
+
"Content-Type": "application/json",
|
|
353
|
+
...options.headers,
|
|
354
|
+
},
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Get Agents
|
|
359
|
+
* Get all agents
|
|
360
|
+
*/
|
|
361
|
+
export const getAgents = (options) => {
|
|
362
|
+
return (options?.client ?? _heyApiClient).get({
|
|
363
|
+
security: [
|
|
364
|
+
{
|
|
365
|
+
name: "x-secret-key",
|
|
366
|
+
type: "apiKey",
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
url: "/agents",
|
|
370
|
+
...options,
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Delete Agent
|
|
375
|
+
* Delete an agent
|
|
376
|
+
*/
|
|
377
|
+
export const deleteAgent = (options) => {
|
|
378
|
+
return (options.client ?? _heyApiClient).delete({
|
|
379
|
+
security: [
|
|
380
|
+
{
|
|
381
|
+
name: "x-secret-key",
|
|
382
|
+
type: "apiKey",
|
|
383
|
+
},
|
|
384
|
+
],
|
|
385
|
+
url: "/agent/{agent_id}",
|
|
386
|
+
...options,
|
|
387
|
+
});
|
|
388
|
+
};
|
|
389
|
+
/**
|
|
390
|
+
* Get Agent
|
|
391
|
+
* Get an agent
|
|
392
|
+
*/
|
|
393
|
+
export const getAgent = (options) => {
|
|
394
|
+
return (options.client ?? _heyApiClient).get({
|
|
395
|
+
security: [
|
|
396
|
+
{
|
|
397
|
+
name: "x-secret-key",
|
|
398
|
+
type: "apiKey",
|
|
399
|
+
},
|
|
400
|
+
],
|
|
401
|
+
url: "/agent/{agent_id}",
|
|
402
|
+
...options,
|
|
403
|
+
});
|
|
404
|
+
};
|
|
405
|
+
/**
|
|
406
|
+
* Update Agent
|
|
407
|
+
* Update an agent
|
|
408
|
+
*/
|
|
409
|
+
export const updateAgent = (options) => {
|
|
410
|
+
return (options.client ?? _heyApiClient).put({
|
|
411
|
+
security: [
|
|
412
|
+
{
|
|
413
|
+
name: "x-secret-key",
|
|
414
|
+
type: "apiKey",
|
|
415
|
+
},
|
|
416
|
+
],
|
|
417
|
+
url: "/agent/{agent_id}",
|
|
418
|
+
...options,
|
|
419
|
+
headers: {
|
|
420
|
+
"Content-Type": "application/json",
|
|
421
|
+
...options.headers,
|
|
422
|
+
},
|
|
423
|
+
});
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* Create Agent
|
|
427
|
+
* Create an agent
|
|
428
|
+
*/
|
|
429
|
+
export const createAgent = (options) => {
|
|
430
|
+
return (options.client ?? _heyApiClient).post({
|
|
431
|
+
security: [
|
|
432
|
+
{
|
|
433
|
+
name: "x-secret-key",
|
|
434
|
+
type: "apiKey",
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
url: "/agent",
|
|
438
|
+
...options,
|
|
439
|
+
headers: {
|
|
440
|
+
"Content-Type": "application/json",
|
|
441
|
+
...options.headers,
|
|
442
|
+
},
|
|
443
|
+
});
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Delete Agent Trigger
|
|
447
|
+
* Delete an agent trigger
|
|
448
|
+
*/
|
|
449
|
+
export const deleteAgentTrigger = (options) => {
|
|
450
|
+
return (options.client ?? _heyApiClient).delete({
|
|
451
|
+
security: [
|
|
452
|
+
{
|
|
453
|
+
name: "x-secret-key",
|
|
454
|
+
type: "apiKey",
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
url: "/agent/{agent_id}/trigger/{trigger_id}",
|
|
458
|
+
...options,
|
|
459
|
+
});
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Get Agent Trigger
|
|
463
|
+
* Get an agent trigger
|
|
464
|
+
*/
|
|
465
|
+
export const getAgentTrigger = (options) => {
|
|
466
|
+
return (options.client ?? _heyApiClient).get({
|
|
467
|
+
security: [
|
|
468
|
+
{
|
|
469
|
+
name: "x-secret-key",
|
|
470
|
+
type: "apiKey",
|
|
471
|
+
},
|
|
472
|
+
],
|
|
473
|
+
url: "/agent/{agent_id}/trigger/{trigger_id}",
|
|
474
|
+
...options,
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
/**
|
|
478
|
+
* Update Agent Trigger
|
|
479
|
+
* Update an agent trigger
|
|
480
|
+
*/
|
|
481
|
+
export const updateAgentTrigger = (options) => {
|
|
482
|
+
return (options.client ?? _heyApiClient).put({
|
|
483
|
+
security: [
|
|
484
|
+
{
|
|
485
|
+
name: "x-secret-key",
|
|
486
|
+
type: "apiKey",
|
|
487
|
+
},
|
|
488
|
+
],
|
|
489
|
+
url: "/agent/{agent_id}/trigger/{trigger_id}",
|
|
490
|
+
...options,
|
|
491
|
+
headers: {
|
|
492
|
+
"Content-Type": "application/json",
|
|
493
|
+
...options.headers,
|
|
494
|
+
},
|
|
495
|
+
});
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Create Agent Trigger
|
|
499
|
+
* Create an agent trigger
|
|
500
|
+
*/
|
|
501
|
+
export const createAgentTrigger = (options) => {
|
|
502
|
+
return (options.client ?? _heyApiClient).post({
|
|
503
|
+
security: [
|
|
504
|
+
{
|
|
505
|
+
name: "x-secret-key",
|
|
506
|
+
type: "apiKey",
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
url: "/agent/{agent_id}/trigger",
|
|
510
|
+
...options,
|
|
511
|
+
headers: {
|
|
512
|
+
"Content-Type": "application/json",
|
|
513
|
+
...options.headers,
|
|
514
|
+
},
|
|
515
|
+
});
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* Delete Agent Tool
|
|
519
|
+
* Delete an agent tool
|
|
520
|
+
*/
|
|
521
|
+
export const deleteAgentTool = (options) => {
|
|
522
|
+
return (options.client ?? _heyApiClient).delete({
|
|
523
|
+
security: [
|
|
524
|
+
{
|
|
525
|
+
name: "x-secret-key",
|
|
526
|
+
type: "apiKey",
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
url: "/agent/{agent_id}/tool/{tool_id}",
|
|
530
|
+
...options,
|
|
531
|
+
});
|
|
532
|
+
};
|
|
533
|
+
/**
|
|
534
|
+
* Get Agent Tool
|
|
535
|
+
* Get an agent tool
|
|
536
|
+
*/
|
|
537
|
+
export const getAgentTool = (options) => {
|
|
538
|
+
return (options.client ?? _heyApiClient).get({
|
|
539
|
+
security: [
|
|
540
|
+
{
|
|
541
|
+
name: "x-secret-key",
|
|
542
|
+
type: "apiKey",
|
|
543
|
+
},
|
|
544
|
+
],
|
|
545
|
+
url: "/agent/{agent_id}/tool/{tool_id}",
|
|
546
|
+
...options,
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* Update Agent Tool
|
|
551
|
+
* Update an agent tool
|
|
552
|
+
*/
|
|
553
|
+
export const updateAgentTool = (options) => {
|
|
554
|
+
return (options.client ?? _heyApiClient).put({
|
|
555
|
+
security: [
|
|
556
|
+
{
|
|
557
|
+
name: "x-secret-key",
|
|
558
|
+
type: "apiKey",
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
url: "/agent/{agent_id}/tool/{tool_id}",
|
|
562
|
+
...options,
|
|
563
|
+
headers: {
|
|
564
|
+
"Content-Type": "application/json",
|
|
565
|
+
...options.headers,
|
|
566
|
+
},
|
|
567
|
+
});
|
|
568
|
+
};
|
|
569
|
+
/**
|
|
570
|
+
* Create Agent Tool
|
|
571
|
+
* Create an agent tool
|
|
572
|
+
*/
|
|
573
|
+
export const createAgentTool = (options) => {
|
|
574
|
+
return (options.client ?? _heyApiClient).post({
|
|
575
|
+
security: [
|
|
576
|
+
{
|
|
577
|
+
name: "x-secret-key",
|
|
578
|
+
type: "apiKey",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
url: "/agent/{agent_id}/tool",
|
|
582
|
+
...options,
|
|
583
|
+
headers: {
|
|
584
|
+
"Content-Type": "application/json",
|
|
585
|
+
...options.headers,
|
|
586
|
+
},
|
|
587
|
+
});
|
|
588
|
+
};
|
|
589
|
+
/**
|
|
590
|
+
* Get Agent Wallets
|
|
591
|
+
* Get all agent wallets
|
|
592
|
+
*/
|
|
593
|
+
export const getAgentWallets = (options) => {
|
|
594
|
+
return (options.client ?? _heyApiClient).get({
|
|
595
|
+
security: [
|
|
596
|
+
{
|
|
597
|
+
name: "x-secret-key",
|
|
598
|
+
type: "apiKey",
|
|
599
|
+
},
|
|
600
|
+
],
|
|
601
|
+
url: "/agent/{agent_id}/wallets",
|
|
602
|
+
...options,
|
|
603
|
+
});
|
|
604
|
+
};
|
|
605
|
+
/**
|
|
606
|
+
* Get Agent Wallet
|
|
607
|
+
* Get an agent wallet
|
|
608
|
+
*/
|
|
609
|
+
export const getAgentWallet = (options) => {
|
|
610
|
+
return (options.client ?? _heyApiClient).get({
|
|
611
|
+
security: [
|
|
612
|
+
{
|
|
613
|
+
name: "x-secret-key",
|
|
614
|
+
type: "apiKey",
|
|
615
|
+
},
|
|
616
|
+
],
|
|
617
|
+
url: "/agent/{agent_id}/wallet/{wallet_id}",
|
|
618
|
+
...options,
|
|
619
|
+
});
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* Get Conversations
|
|
623
|
+
* Get all conversations
|
|
624
|
+
*/
|
|
625
|
+
export const getConversations = (options) => {
|
|
626
|
+
return (options?.client ?? _heyApiClient).get({
|
|
627
|
+
security: [
|
|
628
|
+
{
|
|
629
|
+
name: "x-secret-key",
|
|
630
|
+
type: "apiKey",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
url: "/conversations",
|
|
634
|
+
...options,
|
|
635
|
+
});
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* Delete Conversation
|
|
639
|
+
* Delete a conversation
|
|
640
|
+
*/
|
|
641
|
+
export const deleteConversation = (options) => {
|
|
642
|
+
return (options.client ?? _heyApiClient).delete({
|
|
643
|
+
security: [
|
|
644
|
+
{
|
|
645
|
+
name: "x-secret-key",
|
|
646
|
+
type: "apiKey",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
url: "/conversation/{conversation_id}",
|
|
650
|
+
...options,
|
|
651
|
+
});
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* Get Conversation
|
|
655
|
+
* Get a conversation
|
|
656
|
+
*/
|
|
657
|
+
export const getConversation = (options) => {
|
|
658
|
+
return (options.client ?? _heyApiClient).get({
|
|
659
|
+
security: [
|
|
660
|
+
{
|
|
661
|
+
name: "x-secret-key",
|
|
662
|
+
type: "apiKey",
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
url: "/conversation/{conversation_id}",
|
|
666
|
+
...options,
|
|
667
|
+
});
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* Update Conversation
|
|
671
|
+
* Update a conversation
|
|
672
|
+
*/
|
|
673
|
+
export const updateConversation = (options) => {
|
|
674
|
+
return (options.client ?? _heyApiClient).put({
|
|
675
|
+
security: [
|
|
676
|
+
{
|
|
677
|
+
name: "x-secret-key",
|
|
678
|
+
type: "apiKey",
|
|
679
|
+
},
|
|
680
|
+
],
|
|
681
|
+
url: "/conversation/{conversation_id}",
|
|
682
|
+
...options,
|
|
683
|
+
headers: {
|
|
684
|
+
"Content-Type": "application/json",
|
|
685
|
+
...options.headers,
|
|
686
|
+
},
|
|
687
|
+
});
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Create Conversation
|
|
691
|
+
* Create a conversation
|
|
692
|
+
*/
|
|
693
|
+
export const createConversation = (options) => {
|
|
694
|
+
return (options.client ?? _heyApiClient).post({
|
|
695
|
+
security: [
|
|
696
|
+
{
|
|
697
|
+
name: "x-secret-key",
|
|
698
|
+
type: "apiKey",
|
|
699
|
+
},
|
|
700
|
+
],
|
|
701
|
+
url: "/conversation",
|
|
702
|
+
...options,
|
|
703
|
+
headers: {
|
|
704
|
+
"Content-Type": "application/json",
|
|
705
|
+
...options.headers,
|
|
706
|
+
},
|
|
707
|
+
});
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* Create Conversation Message
|
|
711
|
+
* Create a message for a conversation
|
|
712
|
+
*/
|
|
713
|
+
export const createConversationMessage = (options) => {
|
|
714
|
+
return (options.client ?? _heyApiClient).post({
|
|
715
|
+
security: [
|
|
716
|
+
{
|
|
717
|
+
name: "x-secret-key",
|
|
718
|
+
type: "apiKey",
|
|
719
|
+
},
|
|
720
|
+
],
|
|
721
|
+
url: "/conversation/{conversation_id}/message",
|
|
722
|
+
...options,
|
|
723
|
+
headers: {
|
|
724
|
+
"Content-Type": "application/json",
|
|
725
|
+
...options.headers,
|
|
726
|
+
},
|
|
727
|
+
});
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
* Update Conversation Message
|
|
731
|
+
* Update a message for a conversation
|
|
732
|
+
*/
|
|
733
|
+
export const updateConversationMessage = (options) => {
|
|
734
|
+
return (options.client ?? _heyApiClient).put({
|
|
735
|
+
security: [
|
|
736
|
+
{
|
|
737
|
+
name: "x-secret-key",
|
|
738
|
+
type: "apiKey",
|
|
739
|
+
},
|
|
740
|
+
],
|
|
741
|
+
url: "/conversation/{conversation_id}/message/{message_id}",
|
|
742
|
+
...options,
|
|
743
|
+
headers: {
|
|
744
|
+
"Content-Type": "application/json",
|
|
745
|
+
...options.headers,
|
|
746
|
+
},
|
|
747
|
+
});
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Get Registry Agents
|
|
751
|
+
* Get all agents from the registry
|
|
752
|
+
*/
|
|
753
|
+
export const getRegistryAgents = (options) => {
|
|
754
|
+
return (options?.client ?? _heyApiClient).get({
|
|
755
|
+
security: [
|
|
756
|
+
{
|
|
757
|
+
name: "x-secret-key",
|
|
758
|
+
type: "apiKey",
|
|
759
|
+
},
|
|
760
|
+
],
|
|
761
|
+
url: "/registry/agents",
|
|
762
|
+
...options,
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
//# sourceMappingURL=sdk.gen.js.map
|