@crestal/nation-sdk 0.6.29 → 0.6.31
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 +5 -3
- package/README.md +11 -6
- package/api.ts +1455 -835
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1061 -626
- package/dist/api.js +568 -139
- 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/{AgentOutput.md → Agent.md} +38 -32
- package/docs/AgentApi.md +4 -61
- package/docs/{AgentInput.md → AgentCreate.md} +19 -45
- package/docs/AgentDraft.md +75 -0
- package/docs/AgentGenerateRequest.md +1 -1
- package/docs/AgentResponse.md +72 -40
- package/docs/AgentUpdate.md +13 -37
- package/docs/AgentUserInput.md +61 -0
- package/docs/DraftApi.md +280 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/FeePercentage.md +0 -19
package/.openapi-generator/FILES
CHANGED
|
@@ -6,20 +6,22 @@ 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/AgentApiKeyResponse.md
|
|
11
12
|
docs/AgentAssetsResponse.md
|
|
12
13
|
docs/AgentAutonomous.md
|
|
14
|
+
docs/AgentCreate.md
|
|
15
|
+
docs/AgentDraft.md
|
|
13
16
|
docs/AgentExample.md
|
|
14
17
|
docs/AgentGenerateRequest.md
|
|
15
18
|
docs/AgentGenerateResponse.md
|
|
16
|
-
docs/AgentInput.md
|
|
17
19
|
docs/AgentListResponse.md
|
|
18
|
-
docs/AgentOutput.md
|
|
19
20
|
docs/AgentResponse.md
|
|
20
21
|
docs/AgentSortOption.md
|
|
21
22
|
docs/AgentStatisticsResponse.md
|
|
22
23
|
docs/AgentUpdate.md
|
|
24
|
+
docs/AgentUserInput.md
|
|
23
25
|
docs/Asset.md
|
|
24
26
|
docs/AuthorType.md
|
|
25
27
|
docs/Chat.md
|
|
@@ -41,8 +43,8 @@ docs/CreditTransactionResp.md
|
|
|
41
43
|
docs/CreditTransactionsResponse.md
|
|
42
44
|
docs/CreditType.md
|
|
43
45
|
docs/Direction.md
|
|
46
|
+
docs/DraftApi.md
|
|
44
47
|
docs/EventType.md
|
|
45
|
-
docs/FeePercentage.md
|
|
46
48
|
docs/GenerationDetailResponse.md
|
|
47
49
|
docs/GenerationsListResponse.md
|
|
48
50
|
docs/GeneratorApi.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.6.
|
|
1
|
+
## @crestal/nation-sdk@0.6.31
|
|
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.6.
|
|
39
|
+
npm install @crestal/nation-sdk@0.6.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -62,7 +62,6 @@ Class | Method | HTTP request | Description
|
|
|
62
62
|
*AgentApi* | [**importAgent**](docs/AgentApi.md#importagent) | **PUT** /agents/{agent_id}/import | Import Agent
|
|
63
63
|
*AgentApi* | [**overrideAgent**](docs/AgentApi.md#overrideagent) | **PUT** /agents/{agent_id} | Override Agent
|
|
64
64
|
*AgentApi* | [**resetAgentApiKey**](docs/AgentApi.md#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key
|
|
65
|
-
*AgentApi* | [**updateAgent**](docs/AgentApi.md#updateagent) | **PATCH** /agents/{agent_id} | Update Agent
|
|
66
65
|
*AgentApi* | [**validateAgentCreate**](docs/AgentApi.md#validateagentcreate) | **POST** /agent/validate | Validate Agent Create
|
|
67
66
|
*AgentApi* | [**validateAgentUpdate**](docs/AgentApi.md#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update
|
|
68
67
|
*ChatApi* | [**createChatThread**](docs/ChatApi.md#createchatthread) | **POST** /agents/{aid}/chats | Create a new chat thread
|
|
@@ -80,6 +79,11 @@ Class | Method | HTTP request | Description
|
|
|
80
79
|
*CreditApi* | [**listAgentIncomeEvents**](docs/CreditApi.md#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income
|
|
81
80
|
*CreditApi* | [**listUserEvents**](docs/CreditApi.md#listuserevents) | **GET** /credit/user/events | List User Events
|
|
82
81
|
*CreditApi* | [**listUserTransactions**](docs/CreditApi.md#listusertransactions) | **GET** /credit/user/transactions | List User Transactions
|
|
82
|
+
*DraftApi* | [**createAgentDraft**](docs/DraftApi.md#createagentdraft) | **POST** /agent/draft | Create Agent Draft
|
|
83
|
+
*DraftApi* | [**getAgentDraftById**](docs/DraftApi.md#getagentdraftbyid) | **GET** /agents/{agent_id}/drafts/{draft_id} | Get Agent Draft By Id
|
|
84
|
+
*DraftApi* | [**getAgentDrafts**](docs/DraftApi.md#getagentdrafts) | **GET** /agents/{agent_id}/drafts | Get Agent Drafts
|
|
85
|
+
*DraftApi* | [**getAgentLatestDraft**](docs/DraftApi.md#getagentlatestdraft) | **GET** /agents/{agent_id}/draft/latest | Get Agent Latest Draft
|
|
86
|
+
*DraftApi* | [**updateAgentDraft**](docs/DraftApi.md#updateagentdraft) | **PUT** /agents/{agent_id}/draft | Update Agent Draft
|
|
83
87
|
*GeneratorApi* | [**generateAgent**](docs/GeneratorApi.md#generateagent) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
|
|
84
88
|
*GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
|
|
85
89
|
*GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
|
|
@@ -98,19 +102,21 @@ Class | Method | HTTP request | Description
|
|
|
98
102
|
|
|
99
103
|
### Documentation For Models
|
|
100
104
|
|
|
105
|
+
- [Agent](docs/Agent.md)
|
|
101
106
|
- [AgentApiKeyResponse](docs/AgentApiKeyResponse.md)
|
|
102
107
|
- [AgentAssetsResponse](docs/AgentAssetsResponse.md)
|
|
103
108
|
- [AgentAutonomous](docs/AgentAutonomous.md)
|
|
109
|
+
- [AgentCreate](docs/AgentCreate.md)
|
|
110
|
+
- [AgentDraft](docs/AgentDraft.md)
|
|
104
111
|
- [AgentExample](docs/AgentExample.md)
|
|
105
112
|
- [AgentGenerateRequest](docs/AgentGenerateRequest.md)
|
|
106
113
|
- [AgentGenerateResponse](docs/AgentGenerateResponse.md)
|
|
107
|
-
- [AgentInput](docs/AgentInput.md)
|
|
108
114
|
- [AgentListResponse](docs/AgentListResponse.md)
|
|
109
|
-
- [AgentOutput](docs/AgentOutput.md)
|
|
110
115
|
- [AgentResponse](docs/AgentResponse.md)
|
|
111
116
|
- [AgentSortOption](docs/AgentSortOption.md)
|
|
112
117
|
- [AgentStatisticsResponse](docs/AgentStatisticsResponse.md)
|
|
113
118
|
- [AgentUpdate](docs/AgentUpdate.md)
|
|
119
|
+
- [AgentUserInput](docs/AgentUserInput.md)
|
|
114
120
|
- [Asset](docs/Asset.md)
|
|
115
121
|
- [AuthorType](docs/AuthorType.md)
|
|
116
122
|
- [Chat](docs/Chat.md)
|
|
@@ -131,7 +137,6 @@ Class | Method | HTTP request | Description
|
|
|
131
137
|
- [CreditType](docs/CreditType.md)
|
|
132
138
|
- [Direction](docs/Direction.md)
|
|
133
139
|
- [EventType](docs/EventType.md)
|
|
134
|
-
- [FeePercentage](docs/FeePercentage.md)
|
|
135
140
|
- [GenerationDetailResponse](docs/GenerationDetailResponse.md)
|
|
136
141
|
- [GenerationsListResponse](docs/GenerationsListResponse.md)
|
|
137
142
|
- [HTTPValidationError](docs/HTTPValidationError.md)
|