@crestal/nation-sdk 0.1.20 → 0.1.22
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 +1 -0
- package/README.md +3 -11
- package/api.ts +126 -706
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +64 -322
- package/dist/api.js +170 -877
- 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/AgentApi.md +0 -503
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +63 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/UserApi.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# UserApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getUserAgents**](#getuseragents) | **GET** /user/agents | Get User Agents|
|
|
8
|
+
|
|
9
|
+
# **getUserAgents**
|
|
10
|
+
> AgentListResponse getUserAgents()
|
|
11
|
+
|
|
12
|
+
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
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UserApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@crestal/nation-sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UserApi(configuration);
|
|
24
|
+
|
|
25
|
+
let cursor: string; //Cursor for pagination (optional) (default to undefined)
|
|
26
|
+
let limit: number; //Maximum number of agents to return (optional) (default to 20)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.getUserAgents(
|
|
29
|
+
cursor,
|
|
30
|
+
limit
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
|
|
39
|
+
| **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**AgentListResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Successful Response | - |
|
|
60
|
+
|**422** | Validation Error | - |
|
|
61
|
+
|
|
62
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
63
|
+
|
package/index.ts
CHANGED