@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,31 @@
1
+ # EventType
2
+
3
+ Type of credit event.
4
+
5
+ ## Enum
6
+
7
+ * `Memory` (value: `'memory'`)
8
+
9
+ * `Message` (value: `'message'`)
10
+
11
+ * `SkillCall` (value: `'skill_call'`)
12
+
13
+ * `Voice` (value: `'voice'`)
14
+
15
+ * `KnowledgeBase` (value: `'knowledge_base'`)
16
+
17
+ * `Recharge` (value: `'recharge'`)
18
+
19
+ * `Refund` (value: `'refund'`)
20
+
21
+ * `Adjustment` (value: `'adjustment'`)
22
+
23
+ * `Refill` (value: `'refill'`)
24
+
25
+ * `Reward` (value: `'reward'`)
26
+
27
+ * `EventReward` (value: `'event_reward'`)
28
+
29
+ * `RechargeBonus` (value: `'recharge_bonus'`)
30
+
31
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,19 @@
1
+ # FeePercentage
2
+
3
+ Fee percentage of the agent
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { FeePercentage } from '@crestal/nation-sdk';
14
+
15
+ const instance: FeePercentage = {
16
+ };
17
+ ```
18
+
19
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # HTTPValidationError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **detail** | [**Array<ValidationError>**](ValidationError.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HTTPValidationError } from '@crestal/nation-sdk';
14
+
15
+ const instance: HTTPValidationError = {
16
+ detail,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,52 @@
1
+ # HealthApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**healthCheckHealthGet**](#healthcheckhealthget) | **GET** /health | Health check endpoint|
8
+
9
+ # **healthCheckHealthGet**
10
+ > any healthCheckHealthGet()
11
+
12
+ Returns the health status of the API server
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ HealthApi,
19
+ Configuration
20
+ } from '@crestal/nation-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new HealthApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.healthCheckHealthGet();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **any**
35
+
36
+ ### Authorization
37
+
38
+ No authorization required
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Successful Response | - |
50
+
51
+ [[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)
52
+
@@ -0,0 +1,67 @@
1
+ # LLMModelInfoWithProviderName
2
+
3
+ LLM model information with provider display name.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | | [default to undefined]
10
+ **name** | **string** | | [default to undefined]
11
+ **provider** | [**LLMProvider**](LLMProvider.md) | | [default to undefined]
12
+ **enabled** | **boolean** | | [optional] [default to true]
13
+ **input_price** | **string** | | [default to undefined]
14
+ **output_price** | **string** | | [default to undefined]
15
+ **price_level** | **number** | | [optional] [default to undefined]
16
+ **context_length** | **number** | | [default to undefined]
17
+ **output_length** | **number** | | [default to undefined]
18
+ **intelligence** | **number** | | [default to undefined]
19
+ **speed** | **number** | | [default to undefined]
20
+ **supports_image_input** | **boolean** | | [optional] [default to false]
21
+ **supports_skill_calls** | **boolean** | | [optional] [default to false]
22
+ **supports_structured_output** | **boolean** | | [optional] [default to false]
23
+ **has_reasoning** | **boolean** | | [optional] [default to false]
24
+ **supports_search** | **boolean** | | [optional] [default to false]
25
+ **supports_temperature** | **boolean** | | [optional] [default to true]
26
+ **supports_frequency_penalty** | **boolean** | | [optional] [default to true]
27
+ **supports_presence_penalty** | **boolean** | | [optional] [default to true]
28
+ **api_base** | **string** | | [optional] [default to undefined]
29
+ **timeout** | **number** | | [optional] [default to 180]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-15T02:38:33.048+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-15T02:38:33.048+00:00]
32
+ **provider_name** | **string** | | [default to undefined]
33
+
34
+ ## Example
35
+
36
+ ```typescript
37
+ import { LLMModelInfoWithProviderName } from '@crestal/nation-sdk';
38
+
39
+ const instance: LLMModelInfoWithProviderName = {
40
+ id,
41
+ name,
42
+ provider,
43
+ enabled,
44
+ input_price,
45
+ output_price,
46
+ price_level,
47
+ context_length,
48
+ output_length,
49
+ intelligence,
50
+ speed,
51
+ supports_image_input,
52
+ supports_skill_calls,
53
+ supports_structured_output,
54
+ has_reasoning,
55
+ supports_search,
56
+ supports_temperature,
57
+ supports_frequency_penalty,
58
+ supports_presence_penalty,
59
+ api_base,
60
+ timeout,
61
+ created_at,
62
+ updated_at,
63
+ provider_name,
64
+ };
65
+ ```
66
+
67
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,18 @@
1
+ # LLMProvider
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Openai` (value: `'openai'`)
7
+
8
+ * `Deepseek` (value: `'deepseek'`)
9
+
10
+ * `Xai` (value: `'xai'`)
11
+
12
+ * `Eternal` (value: `'eternal'`)
13
+
14
+ * `Reigent` (value: `'reigent'`)
15
+
16
+ * `Venice` (value: `'venice'`)
17
+
18
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,258 @@
1
+ # MetadataApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getAgentSchema**](#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema|
8
+ |[**getLlmsMetadataLlmsGet**](#getllmsmetadatallmsget) | **GET** /metadata/llms | Get all LLM models|
9
+ |[**getSkillIcon**](#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon|
10
+ |[**getSkillSchema**](#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema|
11
+ |[**getSkillsMetadataSkillsGet**](#getskillsmetadataskillsget) | **GET** /metadata/skills | Get all skills|
12
+
13
+ # **getAgentSchema**
14
+ > any getAgentSchema()
15
+
16
+ Get the JSON schema for Agent model with all $ref references resolved
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ MetadataApi,
23
+ Configuration
24
+ } from '@crestal/nation-sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new MetadataApi(configuration);
28
+
29
+ const { status, data } = await apiInstance.getAgentSchema();
30
+ ```
31
+
32
+ ### Parameters
33
+ This endpoint does not have any parameters.
34
+
35
+
36
+ ### Return type
37
+
38
+ **any**
39
+
40
+ ### Authorization
41
+
42
+ No authorization required
43
+
44
+ ### HTTP request headers
45
+
46
+ - **Content-Type**: Not defined
47
+ - **Accept**: application/json
48
+
49
+
50
+ ### HTTP response details
51
+ | Status code | Description | Response headers |
52
+ |-------------|-------------|------------------|
53
+ |**200** | Successful Response | - |
54
+
55
+ [[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)
56
+
57
+ # **getLlmsMetadataLlmsGet**
58
+ > Array<LLMModelInfoWithProviderName> getLlmsMetadataLlmsGet()
59
+
60
+ Returns a list of all available LLM models in the system
61
+
62
+ ### Example
63
+
64
+ ```typescript
65
+ import {
66
+ MetadataApi,
67
+ Configuration
68
+ } from '@crestal/nation-sdk';
69
+
70
+ const configuration = new Configuration();
71
+ const apiInstance = new MetadataApi(configuration);
72
+
73
+ const { status, data } = await apiInstance.getLlmsMetadataLlmsGet();
74
+ ```
75
+
76
+ ### Parameters
77
+ This endpoint does not have any parameters.
78
+
79
+
80
+ ### Return type
81
+
82
+ **Array<LLMModelInfoWithProviderName>**
83
+
84
+ ### Authorization
85
+
86
+ No authorization required
87
+
88
+ ### HTTP request headers
89
+
90
+ - **Content-Type**: Not defined
91
+ - **Accept**: application/json
92
+
93
+
94
+ ### HTTP response details
95
+ | Status code | Description | Response headers |
96
+ |-------------|-------------|------------------|
97
+ |**200** | Successful Response | - |
98
+
99
+ [[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)
100
+
101
+ # **getSkillIcon**
102
+ > any getSkillIcon()
103
+
104
+ Get the icon for a specific skill
105
+
106
+ ### Example
107
+
108
+ ```typescript
109
+ import {
110
+ MetadataApi,
111
+ Configuration
112
+ } from '@crestal/nation-sdk';
113
+
114
+ const configuration = new Configuration();
115
+ const apiInstance = new MetadataApi(configuration);
116
+
117
+ let skill: string; //Skill name (default to undefined)
118
+ let iconName: string; //Icon name (default to undefined)
119
+ let ext: string; //Icon file extension (default to undefined)
120
+
121
+ const { status, data } = await apiInstance.getSkillIcon(
122
+ skill,
123
+ iconName,
124
+ ext
125
+ );
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ |Name | Type | Description | Notes|
131
+ |------------- | ------------- | ------------- | -------------|
132
+ | **skill** | [**string**] | Skill name | defaults to undefined|
133
+ | **iconName** | [**string**] | Icon name | defaults to undefined|
134
+ | **ext** | [**string**] | Icon file extension | defaults to undefined|
135
+
136
+
137
+ ### Return type
138
+
139
+ **any**
140
+
141
+ ### Authorization
142
+
143
+ No authorization required
144
+
145
+ ### HTTP request headers
146
+
147
+ - **Content-Type**: Not defined
148
+ - **Accept**: application/json
149
+
150
+
151
+ ### HTTP response details
152
+ | Status code | Description | Response headers |
153
+ |-------------|-------------|------------------|
154
+ |**200** | Success | - |
155
+ |**404** | Skill icon not found | - |
156
+ |**400** | Invalid skill name or extension | - |
157
+ |**422** | Validation Error | - |
158
+
159
+ [[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)
160
+
161
+ # **getSkillSchema**
162
+ > any getSkillSchema()
163
+
164
+ Get the JSON schema for a specific skill
165
+
166
+ ### Example
167
+
168
+ ```typescript
169
+ import {
170
+ MetadataApi,
171
+ Configuration
172
+ } from '@crestal/nation-sdk';
173
+
174
+ const configuration = new Configuration();
175
+ const apiInstance = new MetadataApi(configuration);
176
+
177
+ let skill: string; //Skill name (default to undefined)
178
+
179
+ const { status, data } = await apiInstance.getSkillSchema(
180
+ skill
181
+ );
182
+ ```
183
+
184
+ ### Parameters
185
+
186
+ |Name | Type | Description | Notes|
187
+ |------------- | ------------- | ------------- | -------------|
188
+ | **skill** | [**string**] | Skill name | defaults to undefined|
189
+
190
+
191
+ ### Return type
192
+
193
+ **any**
194
+
195
+ ### Authorization
196
+
197
+ No authorization required
198
+
199
+ ### HTTP request headers
200
+
201
+ - **Content-Type**: Not defined
202
+ - **Accept**: application/json
203
+
204
+
205
+ ### HTTP response details
206
+ | Status code | Description | Response headers |
207
+ |-------------|-------------|------------------|
208
+ |**200** | Success | - |
209
+ |**404** | Skill not found | - |
210
+ |**400** | Invalid skill name | - |
211
+ |**422** | Validation Error | - |
212
+
213
+ [[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)
214
+
215
+ # **getSkillsMetadataSkillsGet**
216
+ > Array<Skill> getSkillsMetadataSkillsGet()
217
+
218
+ Returns a list of all available skills in the system
219
+
220
+ ### Example
221
+
222
+ ```typescript
223
+ import {
224
+ MetadataApi,
225
+ Configuration
226
+ } from '@crestal/nation-sdk';
227
+
228
+ const configuration = new Configuration();
229
+ const apiInstance = new MetadataApi(configuration);
230
+
231
+ const { status, data } = await apiInstance.getSkillsMetadataSkillsGet();
232
+ ```
233
+
234
+ ### Parameters
235
+ This endpoint does not have any parameters.
236
+
237
+
238
+ ### Return type
239
+
240
+ **Array<Skill>**
241
+
242
+ ### Authorization
243
+
244
+ No authorization required
245
+
246
+ ### HTTP request headers
247
+
248
+ - **Content-Type**: Not defined
249
+ - **Accept**: application/json
250
+
251
+
252
+ ### HTTP response details
253
+ | Status code | Description | Response headers |
254
+ |-------------|-------------|------------------|
255
+ |**200** | Successful Response | - |
256
+
257
+ [[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)
258
+
@@ -0,0 +1,13 @@
1
+ # OwnerType
2
+
3
+ Type of credit account owner.
4
+
5
+ ## Enum
6
+
7
+ * `User` (value: `'user'`)
8
+
9
+ * `Agent` (value: `'agent'`)
10
+
11
+ * `Platform` (value: `'platform'`)
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Skill.md ADDED
@@ -0,0 +1,43 @@
1
+ # Skill
2
+
3
+ Pydantic model for Skill.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | Name of the skill | [default to undefined]
10
+ **enabled** | **boolean** | Is this skill enabled? | [default to undefined]
11
+ **category** | **string** | Category of the skill | [default to undefined]
12
+ **config_name** | **string** | | [default to undefined]
13
+ **price_level** | **number** | | [default to undefined]
14
+ **price** | **string** | Price for this skill | [optional] [default to '1']
15
+ **price_self_key** | **string** | Price for this skill with self key | [optional] [default to '1']
16
+ **rate_limit_count** | **number** | | [default to undefined]
17
+ **rate_limit_minutes** | **number** | | [default to undefined]
18
+ **author** | **string** | | [default to undefined]
19
+ **created_at** | **string** | Timestamp when this record was created | [default to undefined]
20
+ **updated_at** | **string** | Timestamp when this record was last updated | [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { Skill } from '@crestal/nation-sdk';
26
+
27
+ const instance: Skill = {
28
+ name,
29
+ enabled,
30
+ category,
31
+ config_name,
32
+ price_level,
33
+ price,
34
+ price_self_key,
35
+ rate_limit_count,
36
+ rate_limit_minutes,
37
+ author,
38
+ created_at,
39
+ updated_at,
40
+ };
41
+ ```
42
+
43
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,39 @@
1
+ # TransactionType
2
+
3
+ Type of credit transaction.
4
+
5
+ ## Enum
6
+
7
+ * `Pay` (value: `'pay'`)
8
+
9
+ * `ReceiveBaseLlm` (value: `'receive_base_llm'`)
10
+
11
+ * `ReceiveBaseSkill` (value: `'receive_base_skill'`)
12
+
13
+ * `ReceiveBaseMemory` (value: `'receive_base_memory'`)
14
+
15
+ * `ReceiveBaseVoice` (value: `'receive_base_voice'`)
16
+
17
+ * `ReceiveBaseKnowledge` (value: `'receive_base_knowledge'`)
18
+
19
+ * `ReceiveFeeDev` (value: `'receive_fee_dev'`)
20
+
21
+ * `ReceiveFeeAgent` (value: `'receive_fee_agent'`)
22
+
23
+ * `ReceiveFeePlatform` (value: `'receive_fee_platform'`)
24
+
25
+ * `Recharge` (value: `'recharge'`)
26
+
27
+ * `Refund` (value: `'refund'`)
28
+
29
+ * `Adjustment` (value: `'adjustment'`)
30
+
31
+ * `Refill` (value: `'refill'`)
32
+
33
+ * `Reward` (value: `'reward'`)
34
+
35
+ * `EventReward` (value: `'event_reward'`)
36
+
37
+ * `RechargeBonus` (value: `'recharge_bonus'`)
38
+
39
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,15 @@
1
+ # UpstreamType
2
+
3
+ Type of upstream transaction.
4
+
5
+ ## Enum
6
+
7
+ * `Api` (value: `'api'`)
8
+
9
+ * `Scheduler` (value: `'scheduler'`)
10
+
11
+ * `Executor` (value: `'executor'`)
12
+
13
+ * `Initializer` (value: `'initializer'`)
14
+
15
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # ValidationError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **loc** | [**Array&lt;ValidationErrorLocInner&gt;**](ValidationErrorLocInner.md) | | [default to undefined]
9
+ **msg** | **string** | | [default to undefined]
10
+ **type** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ValidationError } from '@crestal/nation-sdk';
16
+
17
+ const instance: ValidationError = {
18
+ loc,
19
+ msg,
20
+ type,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,18 @@
1
+ # ValidationErrorLocInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+
9
+ ## Example
10
+
11
+ ```typescript
12
+ import { ValidationErrorLocInner } from '@crestal/nation-sdk';
13
+
14
+ const instance: ValidationErrorLocInner = {
15
+ };
16
+ ```
17
+
18
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="crestalnetwork"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="nation-intentkit"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'