@crestal/nation-sdk 0.1.19

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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +51 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +126 -0
  5. package/api.ts +4195 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/configuration.ts +115 -0
  9. package/dist/api.d.ts +3103 -0
  10. package/dist/api.js +2629 -0
  11. package/dist/base.d.ts +66 -0
  12. package/dist/base.js +86 -0
  13. package/dist/common.d.ts +65 -0
  14. package/dist/common.js +253 -0
  15. package/dist/configuration.d.ts +91 -0
  16. package/dist/configuration.js +57 -0
  17. package/dist/index.d.ts +13 -0
  18. package/dist/index.js +31 -0
  19. package/docs/AgentApi.md +167 -0
  20. package/docs/AgentAutonomous.md +33 -0
  21. package/docs/AgentExample.md +25 -0
  22. package/docs/AgentResponse.md +91 -0
  23. package/docs/AgentStatisticsResponse.md +49 -0
  24. package/docs/AgentUpdate.md +91 -0
  25. package/docs/AuthorType.md +23 -0
  26. package/docs/Chat.md +33 -0
  27. package/docs/ChatApi.md +516 -0
  28. package/docs/ChatMessage.md +63 -0
  29. package/docs/ChatMessageAttachment.md +23 -0
  30. package/docs/ChatMessageAttachmentType.md +13 -0
  31. package/docs/ChatMessageRequest.md +31 -0
  32. package/docs/ChatMessageSkillCall.md +35 -0
  33. package/docs/ChatMessagesResponse.md +25 -0
  34. package/docs/ChatUpdateRequest.md +21 -0
  35. package/docs/CreditAccount.md +45 -0
  36. package/docs/CreditApi.md +290 -0
  37. package/docs/CreditDebit.md +11 -0
  38. package/docs/CreditEvent.md +101 -0
  39. package/docs/CreditEventWithAgent.md +103 -0
  40. package/docs/CreditEventsResponse.md +25 -0
  41. package/docs/CreditTransactionResp.md +37 -0
  42. package/docs/CreditTransactionsResponse.md +25 -0
  43. package/docs/CreditType.md +13 -0
  44. package/docs/Direction.md +11 -0
  45. package/docs/EventType.md +31 -0
  46. package/docs/FeePercentage.md +19 -0
  47. package/docs/HTTPValidationError.md +20 -0
  48. package/docs/HealthApi.md +52 -0
  49. package/docs/LLMModelInfoWithProviderName.md +67 -0
  50. package/docs/LLMProvider.md +18 -0
  51. package/docs/MetadataApi.md +258 -0
  52. package/docs/OwnerType.md +13 -0
  53. package/docs/Skill.md +43 -0
  54. package/docs/TransactionType.md +39 -0
  55. package/docs/UpstreamType.md +15 -0
  56. package/docs/ValidationError.md +24 -0
  57. package/docs/ValidationErrorLocInner.md +18 -0
  58. package/git_push.sh +57 -0
  59. package/index.ts +18 -0
  60. package/package.json +31 -0
  61. package/tsconfig.json +21 -0
@@ -0,0 +1,51 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ api.ts
6
+ base.ts
7
+ common.ts
8
+ configuration.ts
9
+ docs/AgentApi.md
10
+ docs/AgentAutonomous.md
11
+ docs/AgentExample.md
12
+ docs/AgentResponse.md
13
+ docs/AgentStatisticsResponse.md
14
+ docs/AgentUpdate.md
15
+ docs/AuthorType.md
16
+ docs/Chat.md
17
+ docs/ChatApi.md
18
+ docs/ChatMessage.md
19
+ docs/ChatMessageAttachment.md
20
+ docs/ChatMessageAttachmentType.md
21
+ docs/ChatMessageRequest.md
22
+ docs/ChatMessageSkillCall.md
23
+ docs/ChatMessagesResponse.md
24
+ docs/ChatUpdateRequest.md
25
+ docs/CreditAccount.md
26
+ docs/CreditApi.md
27
+ docs/CreditDebit.md
28
+ docs/CreditEvent.md
29
+ docs/CreditEventWithAgent.md
30
+ docs/CreditEventsResponse.md
31
+ docs/CreditTransactionResp.md
32
+ docs/CreditTransactionsResponse.md
33
+ docs/CreditType.md
34
+ docs/Direction.md
35
+ docs/EventType.md
36
+ docs/FeePercentage.md
37
+ docs/HTTPValidationError.md
38
+ docs/HealthApi.md
39
+ docs/LLMModelInfoWithProviderName.md
40
+ docs/LLMProvider.md
41
+ docs/MetadataApi.md
42
+ docs/OwnerType.md
43
+ docs/Skill.md
44
+ docs/TransactionType.md
45
+ docs/UpstreamType.md
46
+ docs/ValidationError.md
47
+ docs/ValidationErrorLocInner.md
48
+ git_push.sh
49
+ index.ts
50
+ package.json
51
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.14.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,126 @@
1
+ ## @crestal/nation-sdk@0.1.19
2
+
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
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @crestal/nation-sdk@0.1.19 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
47
+
48
+ ### Documentation for API Endpoints
49
+
50
+ All URIs are relative to *http://localhost*
51
+
52
+ Class | Method | HTTP request | Description
53
+ ------------ | ------------- | ------------- | -------------
54
+ *AgentApi* | [**createAgent**](docs/AgentApi.md#createagent) | **POST** /agents | Create a new agent
55
+ *AgentApi* | [**getAgentById**](docs/AgentApi.md#getagentbyid) | **GET** /agents/{aid} | Get agent by ID
56
+ *AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
57
+ *ChatApi* | [**createChatThread**](docs/ChatApi.md#createchatthread) | **POST** /agents/{aid}/chats | Create a new chat thread
58
+ *ChatApi* | [**deleteChatThread**](docs/ChatApi.md#deletechatthread) | **DELETE** /agents/{aid}/chats/{chat_id} | Delete a chat thread
59
+ *ChatApi* | [**getChatThreadById**](docs/ChatApi.md#getchatthreadbyid) | **GET** /agents/{aid}/chats/{chat_id} | Get chat thread by ID
60
+ *ChatApi* | [**getMessageById**](docs/ChatApi.md#getmessagebyid) | **GET** /messages/{message_id} | Get message by ID
61
+ *ChatApi* | [**listChatsForAgent**](docs/ChatApi.md#listchatsforagent) | **GET** /agents/{aid}/chats | List chat threads for an agent
62
+ *ChatApi* | [**listMessagesInChat**](docs/ChatApi.md#listmessagesinchat) | **GET** /agents/{aid}/chats/{chat_id}/messages | List messages in a chat thread
63
+ *ChatApi* | [**retryMessageInChat**](docs/ChatApi.md#retrymessageinchat) | **POST** /agents/{aid}/chats/{chat_id}/messages/retry | Retry a message in a chat thread
64
+ *ChatApi* | [**sendMessageToChat**](docs/ChatApi.md#sendmessagetochat) | **POST** /agents/{aid}/chats/{chat_id}/messages | Send a message to a chat thread
65
+ *ChatApi* | [**updateChatThread**](docs/ChatApi.md#updatechatthread) | **PATCH** /agents/{aid}/chats/{chat_id} | Update a chat thread
66
+ *CreditApi* | [**fetchCreditEvent**](docs/CreditApi.md#fetchcreditevent) | **GET** /credit/events/{event_id} | Credit Event
67
+ *CreditApi* | [**getUserAccount**](docs/CreditApi.md#getuseraccount) | **GET** /credit/user/account | Get User Account
68
+ *CreditApi* | [**listAgentIncomeEvents**](docs/CreditApi.md#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income
69
+ *CreditApi* | [**listUserEvents**](docs/CreditApi.md#listuserevents) | **GET** /credit/user/events | List User Events
70
+ *CreditApi* | [**listUserTransactions**](docs/CreditApi.md#listusertransactions) | **GET** /credit/user/transactions | List User Transactions
71
+ *HealthApi* | [**healthCheckHealthGet**](docs/HealthApi.md#healthcheckhealthget) | **GET** /health | Health check endpoint
72
+ *MetadataApi* | [**getAgentSchema**](docs/MetadataApi.md#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema
73
+ *MetadataApi* | [**getLlmsMetadataLlmsGet**](docs/MetadataApi.md#getllmsmetadatallmsget) | **GET** /metadata/llms | Get all LLM models
74
+ *MetadataApi* | [**getSkillIcon**](docs/MetadataApi.md#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon
75
+ *MetadataApi* | [**getSkillSchema**](docs/MetadataApi.md#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema
76
+ *MetadataApi* | [**getSkillsMetadataSkillsGet**](docs/MetadataApi.md#getskillsmetadataskillsget) | **GET** /metadata/skills | Get all skills
77
+
78
+
79
+ ### Documentation For Models
80
+
81
+ - [AgentAutonomous](docs/AgentAutonomous.md)
82
+ - [AgentExample](docs/AgentExample.md)
83
+ - [AgentResponse](docs/AgentResponse.md)
84
+ - [AgentStatisticsResponse](docs/AgentStatisticsResponse.md)
85
+ - [AgentUpdate](docs/AgentUpdate.md)
86
+ - [AuthorType](docs/AuthorType.md)
87
+ - [Chat](docs/Chat.md)
88
+ - [ChatMessage](docs/ChatMessage.md)
89
+ - [ChatMessageAttachment](docs/ChatMessageAttachment.md)
90
+ - [ChatMessageAttachmentType](docs/ChatMessageAttachmentType.md)
91
+ - [ChatMessageRequest](docs/ChatMessageRequest.md)
92
+ - [ChatMessageSkillCall](docs/ChatMessageSkillCall.md)
93
+ - [ChatMessagesResponse](docs/ChatMessagesResponse.md)
94
+ - [ChatUpdateRequest](docs/ChatUpdateRequest.md)
95
+ - [CreditAccount](docs/CreditAccount.md)
96
+ - [CreditDebit](docs/CreditDebit.md)
97
+ - [CreditEvent](docs/CreditEvent.md)
98
+ - [CreditEventWithAgent](docs/CreditEventWithAgent.md)
99
+ - [CreditEventsResponse](docs/CreditEventsResponse.md)
100
+ - [CreditTransactionResp](docs/CreditTransactionResp.md)
101
+ - [CreditTransactionsResponse](docs/CreditTransactionsResponse.md)
102
+ - [CreditType](docs/CreditType.md)
103
+ - [Direction](docs/Direction.md)
104
+ - [EventType](docs/EventType.md)
105
+ - [FeePercentage](docs/FeePercentage.md)
106
+ - [HTTPValidationError](docs/HTTPValidationError.md)
107
+ - [LLMModelInfoWithProviderName](docs/LLMModelInfoWithProviderName.md)
108
+ - [LLMProvider](docs/LLMProvider.md)
109
+ - [OwnerType](docs/OwnerType.md)
110
+ - [Skill](docs/Skill.md)
111
+ - [TransactionType](docs/TransactionType.md)
112
+ - [UpstreamType](docs/UpstreamType.md)
113
+ - [ValidationError](docs/ValidationError.md)
114
+ - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
115
+
116
+
117
+ <a id="documentation-for-authorization"></a>
118
+ ## Documentation For Authorization
119
+
120
+
121
+ Authentication schemes defined for the API:
122
+ <a id="HTTPBearer"></a>
123
+ ### HTTPBearer
124
+
125
+ - **Type**: Bearer authentication
126
+