@crestal/nation-sdk 0.1.21 → 0.1.23
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/.openapi-generator/FILES +2 -0
- package/README.md +5 -2
- package/api.ts +490 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +385 -1
- package/dist/api.js +273 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Agent.md +99 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +116 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,7 @@ api.ts
|
|
|
6
6
|
base.ts
|
|
7
7
|
common.ts
|
|
8
8
|
configuration.ts
|
|
9
|
+
docs/Agent.md
|
|
9
10
|
docs/AgentApi.md
|
|
10
11
|
docs/AgentAutonomous.md
|
|
11
12
|
docs/AgentExample.md
|
|
@@ -45,6 +46,7 @@ docs/OwnerType.md
|
|
|
45
46
|
docs/Skill.md
|
|
46
47
|
docs/TransactionType.md
|
|
47
48
|
docs/UpstreamType.md
|
|
49
|
+
docs/UserApi.md
|
|
48
50
|
docs/ValidationError.md
|
|
49
51
|
docs/ValidationErrorLocInner.md
|
|
50
52
|
git_push.sh
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.1.
|
|
1
|
+
## @crestal/nation-sdk@0.1.23
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @crestal/nation-sdk@0.1.
|
|
39
|
+
npm install @crestal/nation-sdk@0.1.23 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -81,10 +81,13 @@ Class | Method | HTTP request | Description
|
|
|
81
81
|
*MetadataApi* | [**getSkillIcon**](docs/MetadataApi.md#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon
|
|
82
82
|
*MetadataApi* | [**getSkillSchema**](docs/MetadataApi.md#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema
|
|
83
83
|
*MetadataApi* | [**getSkillsMetadataSkillsGet**](docs/MetadataApi.md#getskillsmetadataskillsget) | **GET** /metadata/skills | Get all skills
|
|
84
|
+
*UserApi* | [**getUserAgentById**](docs/UserApi.md#getuseragentbyid) | **GET** /user/agents/{agent_id} | Get User Agent By Id
|
|
85
|
+
*UserApi* | [**getUserAgents**](docs/UserApi.md#getuseragents) | **GET** /user/agents | Get User Agents
|
|
84
86
|
|
|
85
87
|
|
|
86
88
|
### Documentation For Models
|
|
87
89
|
|
|
90
|
+
- [Agent](docs/Agent.md)
|
|
88
91
|
- [AgentAutonomous](docs/AgentAutonomous.md)
|
|
89
92
|
- [AgentExample](docs/AgentExample.md)
|
|
90
93
|
- [AgentListResponse](docs/AgentListResponse.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.23
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,6 +23,301 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Agent model.
|
|
28
|
+
* @export
|
|
29
|
+
* @interface Agent
|
|
30
|
+
*/
|
|
31
|
+
export interface Agent {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Agent
|
|
36
|
+
*/
|
|
37
|
+
'name': string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Agent
|
|
42
|
+
*/
|
|
43
|
+
'slug'?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Agent
|
|
48
|
+
*/
|
|
49
|
+
'description'?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Agent
|
|
54
|
+
*/
|
|
55
|
+
'external_website'?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Agent
|
|
60
|
+
*/
|
|
61
|
+
'picture'?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Agent
|
|
66
|
+
*/
|
|
67
|
+
'ticker'?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Agent
|
|
72
|
+
*/
|
|
73
|
+
'token_address'?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof Agent
|
|
78
|
+
*/
|
|
79
|
+
'token_pool'?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof Agent
|
|
84
|
+
*/
|
|
85
|
+
'mode'?: AgentModeEnum | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof Agent
|
|
90
|
+
*/
|
|
91
|
+
'fee_percentage'?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof Agent
|
|
96
|
+
*/
|
|
97
|
+
'purpose': string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof Agent
|
|
102
|
+
*/
|
|
103
|
+
'personality': string | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof Agent
|
|
108
|
+
*/
|
|
109
|
+
'principles': string | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof Agent
|
|
114
|
+
*/
|
|
115
|
+
'owner'?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof Agent
|
|
120
|
+
*/
|
|
121
|
+
'upstream_id'?: string | null;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {object}
|
|
125
|
+
* @memberof Agent
|
|
126
|
+
*/
|
|
127
|
+
'upstream_extra'?: object | null;
|
|
128
|
+
/**
|
|
129
|
+
* AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent, venice-uncensored
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof Agent
|
|
132
|
+
*/
|
|
133
|
+
'model'?: string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof Agent
|
|
138
|
+
*/
|
|
139
|
+
'prompt'?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof Agent
|
|
144
|
+
*/
|
|
145
|
+
'prompt_append'?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {number}
|
|
149
|
+
* @memberof Agent
|
|
150
|
+
*/
|
|
151
|
+
'temperature'?: number | null;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {number}
|
|
155
|
+
* @memberof Agent
|
|
156
|
+
*/
|
|
157
|
+
'frequency_penalty'?: number | null;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {number}
|
|
161
|
+
* @memberof Agent
|
|
162
|
+
*/
|
|
163
|
+
'presence_penalty'?: number | null;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof Agent
|
|
168
|
+
*/
|
|
169
|
+
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {Array<AgentAutonomous>}
|
|
173
|
+
* @memberof Agent
|
|
174
|
+
*/
|
|
175
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof Agent
|
|
180
|
+
*/
|
|
181
|
+
'example_intro'?: string | null;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {Array<AgentExample>}
|
|
185
|
+
* @memberof Agent
|
|
186
|
+
*/
|
|
187
|
+
'examples'?: Array<AgentExample> | null;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {object}
|
|
191
|
+
* @memberof Agent
|
|
192
|
+
*/
|
|
193
|
+
'skills'?: object | null;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof Agent
|
|
198
|
+
*/
|
|
199
|
+
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof Agent
|
|
204
|
+
*/
|
|
205
|
+
'network_id'?: AgentNetworkIdEnum | null;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof Agent
|
|
210
|
+
*/
|
|
211
|
+
'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {boolean}
|
|
215
|
+
* @memberof Agent
|
|
216
|
+
*/
|
|
217
|
+
'twitter_entrypoint_enabled'?: boolean | null;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof Agent
|
|
222
|
+
*/
|
|
223
|
+
'twitter_entrypoint_prompt'?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {object}
|
|
227
|
+
* @memberof Agent
|
|
228
|
+
*/
|
|
229
|
+
'twitter_config'?: object | null;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @type {boolean}
|
|
233
|
+
* @memberof Agent
|
|
234
|
+
*/
|
|
235
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof Agent
|
|
240
|
+
*/
|
|
241
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {object}
|
|
245
|
+
* @memberof Agent
|
|
246
|
+
*/
|
|
247
|
+
'telegram_config'?: object | null;
|
|
248
|
+
/**
|
|
249
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
250
|
+
* @type {string}
|
|
251
|
+
* @memberof Agent
|
|
252
|
+
*/
|
|
253
|
+
'id'?: string;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @type {number}
|
|
257
|
+
* @memberof Agent
|
|
258
|
+
*/
|
|
259
|
+
'number'?: number | null;
|
|
260
|
+
/**
|
|
261
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
262
|
+
* @type {string}
|
|
263
|
+
* @memberof Agent
|
|
264
|
+
*/
|
|
265
|
+
'created_at'?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
268
|
+
* @type {string}
|
|
269
|
+
* @memberof Agent
|
|
270
|
+
*/
|
|
271
|
+
'updated_at'?: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export const AgentModeEnum = {
|
|
275
|
+
Public: 'public',
|
|
276
|
+
Private: 'private'
|
|
277
|
+
} as const;
|
|
278
|
+
|
|
279
|
+
export type AgentModeEnum = typeof AgentModeEnum[keyof typeof AgentModeEnum];
|
|
280
|
+
export const AgentShortTermMemoryStrategyEnum = {
|
|
281
|
+
Trim: 'trim',
|
|
282
|
+
Summarize: 'summarize'
|
|
283
|
+
} as const;
|
|
284
|
+
|
|
285
|
+
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
286
|
+
export const AgentWalletProviderEnum = {
|
|
287
|
+
Cdp: 'cdp'
|
|
288
|
+
} as const;
|
|
289
|
+
|
|
290
|
+
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
291
|
+
export const AgentNetworkIdEnum = {
|
|
292
|
+
EthereumMainnet: 'ethereum-mainnet',
|
|
293
|
+
EthereumSepolia: 'ethereum-sepolia',
|
|
294
|
+
PolygonMainnet: 'polygon-mainnet',
|
|
295
|
+
PolygonMumbai: 'polygon-mumbai',
|
|
296
|
+
BaseMainnet: 'base-mainnet',
|
|
297
|
+
BaseSepolia: 'base-sepolia',
|
|
298
|
+
ArbitrumMainnet: 'arbitrum-mainnet',
|
|
299
|
+
ArbitrumSepolia: 'arbitrum-sepolia',
|
|
300
|
+
OptimismMainnet: 'optimism-mainnet',
|
|
301
|
+
OptimismSepolia: 'optimism-sepolia',
|
|
302
|
+
Solana: 'solana'
|
|
303
|
+
} as const;
|
|
304
|
+
|
|
305
|
+
export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
|
|
306
|
+
export const AgentCdpNetworkIdEnum = {
|
|
307
|
+
EthereumMainnet: 'ethereum-mainnet',
|
|
308
|
+
EthereumSepolia: 'ethereum-sepolia',
|
|
309
|
+
PolygonMainnet: 'polygon-mainnet',
|
|
310
|
+
PolygonMumbai: 'polygon-mumbai',
|
|
311
|
+
BaseMainnet: 'base-mainnet',
|
|
312
|
+
BaseSepolia: 'base-sepolia',
|
|
313
|
+
ArbitrumMainnet: 'arbitrum-mainnet',
|
|
314
|
+
ArbitrumSepolia: 'arbitrum-sepolia',
|
|
315
|
+
OptimismMainnet: 'optimism-mainnet',
|
|
316
|
+
OptimismSepolia: 'optimism-sepolia'
|
|
317
|
+
} as const;
|
|
318
|
+
|
|
319
|
+
export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
|
|
320
|
+
|
|
26
321
|
/**
|
|
27
322
|
* Autonomous agent configuration.
|
|
28
323
|
* @export
|
|
@@ -4802,3 +5097,197 @@ export class MetadataApi extends BaseAPI {
|
|
|
4802
5097
|
|
|
4803
5098
|
|
|
4804
5099
|
|
|
5100
|
+
/**
|
|
5101
|
+
* UserApi - axios parameter creator
|
|
5102
|
+
* @export
|
|
5103
|
+
*/
|
|
5104
|
+
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5105
|
+
return {
|
|
5106
|
+
/**
|
|
5107
|
+
* Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
|
|
5108
|
+
* @summary Get User Agent By Id
|
|
5109
|
+
* @param {string} agentId Agent ID
|
|
5110
|
+
* @param {*} [options] Override http request option.
|
|
5111
|
+
* @throws {RequiredError}
|
|
5112
|
+
*/
|
|
5113
|
+
getUserAgentById: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5114
|
+
// verify required parameter 'agentId' is not null or undefined
|
|
5115
|
+
assertParamExists('getUserAgentById', 'agentId', agentId)
|
|
5116
|
+
const localVarPath = `/user/agents/{agent_id}`
|
|
5117
|
+
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
5118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5119
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5120
|
+
let baseOptions;
|
|
5121
|
+
if (configuration) {
|
|
5122
|
+
baseOptions = configuration.baseOptions;
|
|
5123
|
+
}
|
|
5124
|
+
|
|
5125
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5126
|
+
const localVarHeaderParameter = {} as any;
|
|
5127
|
+
const localVarQueryParameter = {} as any;
|
|
5128
|
+
|
|
5129
|
+
// authentication HTTPBearer required
|
|
5130
|
+
// http bearer authentication required
|
|
5131
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5132
|
+
|
|
5133
|
+
|
|
5134
|
+
|
|
5135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5137
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5138
|
+
|
|
5139
|
+
return {
|
|
5140
|
+
url: toPathString(localVarUrlObj),
|
|
5141
|
+
options: localVarRequestOptions,
|
|
5142
|
+
};
|
|
5143
|
+
},
|
|
5144
|
+
/**
|
|
5145
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
5146
|
+
* @summary Get User Agents
|
|
5147
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
5148
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
5149
|
+
* @param {*} [options] Override http request option.
|
|
5150
|
+
* @throws {RequiredError}
|
|
5151
|
+
*/
|
|
5152
|
+
getUserAgents: async (cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5153
|
+
const localVarPath = `/user/agents`;
|
|
5154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5156
|
+
let baseOptions;
|
|
5157
|
+
if (configuration) {
|
|
5158
|
+
baseOptions = configuration.baseOptions;
|
|
5159
|
+
}
|
|
5160
|
+
|
|
5161
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5162
|
+
const localVarHeaderParameter = {} as any;
|
|
5163
|
+
const localVarQueryParameter = {} as any;
|
|
5164
|
+
|
|
5165
|
+
// authentication HTTPBearer required
|
|
5166
|
+
// http bearer authentication required
|
|
5167
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5168
|
+
|
|
5169
|
+
if (cursor !== undefined) {
|
|
5170
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
5171
|
+
}
|
|
5172
|
+
|
|
5173
|
+
if (limit !== undefined) {
|
|
5174
|
+
localVarQueryParameter['limit'] = limit;
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
|
|
5178
|
+
|
|
5179
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5181
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5182
|
+
|
|
5183
|
+
return {
|
|
5184
|
+
url: toPathString(localVarUrlObj),
|
|
5185
|
+
options: localVarRequestOptions,
|
|
5186
|
+
};
|
|
5187
|
+
},
|
|
5188
|
+
}
|
|
5189
|
+
};
|
|
5190
|
+
|
|
5191
|
+
/**
|
|
5192
|
+
* UserApi - functional programming interface
|
|
5193
|
+
* @export
|
|
5194
|
+
*/
|
|
5195
|
+
export const UserApiFp = function(configuration?: Configuration) {
|
|
5196
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
5197
|
+
return {
|
|
5198
|
+
/**
|
|
5199
|
+
* Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
|
|
5200
|
+
* @summary Get User Agent By Id
|
|
5201
|
+
* @param {string} agentId Agent ID
|
|
5202
|
+
* @param {*} [options] Override http request option.
|
|
5203
|
+
* @throws {RequiredError}
|
|
5204
|
+
*/
|
|
5205
|
+
async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
|
|
5206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgentById(agentId, options);
|
|
5207
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5208
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgentById']?.[localVarOperationServerIndex]?.url;
|
|
5209
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5210
|
+
},
|
|
5211
|
+
/**
|
|
5212
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
5213
|
+
* @summary Get User Agents
|
|
5214
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
5215
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
5216
|
+
* @param {*} [options] Override http request option.
|
|
5217
|
+
* @throws {RequiredError}
|
|
5218
|
+
*/
|
|
5219
|
+
async getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
|
|
5220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgents(cursor, limit, options);
|
|
5221
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5222
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgents']?.[localVarOperationServerIndex]?.url;
|
|
5223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5224
|
+
},
|
|
5225
|
+
}
|
|
5226
|
+
};
|
|
5227
|
+
|
|
5228
|
+
/**
|
|
5229
|
+
* UserApi - factory interface
|
|
5230
|
+
* @export
|
|
5231
|
+
*/
|
|
5232
|
+
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5233
|
+
const localVarFp = UserApiFp(configuration)
|
|
5234
|
+
return {
|
|
5235
|
+
/**
|
|
5236
|
+
* Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
|
|
5237
|
+
* @summary Get User Agent By Id
|
|
5238
|
+
* @param {string} agentId Agent ID
|
|
5239
|
+
* @param {*} [options] Override http request option.
|
|
5240
|
+
* @throws {RequiredError}
|
|
5241
|
+
*/
|
|
5242
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
|
|
5243
|
+
return localVarFp.getUserAgentById(agentId, options).then((request) => request(axios, basePath));
|
|
5244
|
+
},
|
|
5245
|
+
/**
|
|
5246
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
5247
|
+
* @summary Get User Agents
|
|
5248
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
5249
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
5250
|
+
* @param {*} [options] Override http request option.
|
|
5251
|
+
* @throws {RequiredError}
|
|
5252
|
+
*/
|
|
5253
|
+
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
5254
|
+
return localVarFp.getUserAgents(cursor, limit, options).then((request) => request(axios, basePath));
|
|
5255
|
+
},
|
|
5256
|
+
};
|
|
5257
|
+
};
|
|
5258
|
+
|
|
5259
|
+
/**
|
|
5260
|
+
* UserApi - object-oriented interface
|
|
5261
|
+
* @export
|
|
5262
|
+
* @class UserApi
|
|
5263
|
+
* @extends {BaseAPI}
|
|
5264
|
+
*/
|
|
5265
|
+
export class UserApi extends BaseAPI {
|
|
5266
|
+
/**
|
|
5267
|
+
* Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
|
|
5268
|
+
* @summary Get User Agent By Id
|
|
5269
|
+
* @param {string} agentId Agent ID
|
|
5270
|
+
* @param {*} [options] Override http request option.
|
|
5271
|
+
* @throws {RequiredError}
|
|
5272
|
+
* @memberof UserApi
|
|
5273
|
+
*/
|
|
5274
|
+
public getUserAgentById(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5275
|
+
return UserApiFp(this.configuration).getUserAgentById(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
5276
|
+
}
|
|
5277
|
+
|
|
5278
|
+
/**
|
|
5279
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
5280
|
+
* @summary Get User Agents
|
|
5281
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
5282
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
5283
|
+
* @param {*} [options] Override http request option.
|
|
5284
|
+
* @throws {RequiredError}
|
|
5285
|
+
* @memberof UserApi
|
|
5286
|
+
*/
|
|
5287
|
+
public getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5288
|
+
return UserApiFp(this.configuration).getUserAgents(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
5289
|
+
}
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
|
|
5293
|
+
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED