@komputer-ai/sdk 0.11.1

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 (76) hide show
  1. package/.openapi-generator-ignore +31 -0
  2. package/README.md +147 -0
  3. package/docs/AgentListResponse.md +34 -0
  4. package/docs/AgentResponse.md +68 -0
  5. package/docs/AgentsApi.md +584 -0
  6. package/docs/ConnectorResponse.md +58 -0
  7. package/docs/ConnectorsApi.md +366 -0
  8. package/docs/CreateAgentRequest.md +58 -0
  9. package/docs/CreateConnectorRequest.md +54 -0
  10. package/docs/CreateMemoryRequest.md +40 -0
  11. package/docs/CreateScheduleAgentSpec.md +42 -0
  12. package/docs/CreateScheduleRequest.md +50 -0
  13. package/docs/CreateSecretRequest.md +38 -0
  14. package/docs/CreateSkillRequest.md +40 -0
  15. package/docs/MemoriesApi.md +368 -0
  16. package/docs/MemoryResponse.md +46 -0
  17. package/docs/OfficeListResponse.md +34 -0
  18. package/docs/OfficeMemberResponse.md +40 -0
  19. package/docs/OfficeResponse.md +54 -0
  20. package/docs/OfficesApi.md +300 -0
  21. package/docs/PatchAgentRequest.md +50 -0
  22. package/docs/PatchMemoryRequest.md +36 -0
  23. package/docs/PatchScheduleRequest.md +34 -0
  24. package/docs/PatchSkillRequest.md +36 -0
  25. package/docs/ScheduleListResponse.md +34 -0
  26. package/docs/ScheduleResponse.md +70 -0
  27. package/docs/SchedulesApi.md +369 -0
  28. package/docs/SecretListResponse.md +34 -0
  29. package/docs/SecretResponse.md +48 -0
  30. package/docs/SecretsApi.md +298 -0
  31. package/docs/SkillResponse.md +48 -0
  32. package/docs/SkillsApi.md +368 -0
  33. package/docs/TemplatesApi.md +138 -0
  34. package/docs/UpdateSecretRequest.md +36 -0
  35. package/package.json +27 -0
  36. package/src/apis/AgentsApi.ts +485 -0
  37. package/src/apis/ConnectorsApi.ts +301 -0
  38. package/src/apis/MemoriesApi.ts +315 -0
  39. package/src/apis/OfficesApi.ts +253 -0
  40. package/src/apis/SchedulesApi.ts +318 -0
  41. package/src/apis/SecretsApi.ts +267 -0
  42. package/src/apis/SkillsApi.ts +315 -0
  43. package/src/apis/TemplatesApi.ts +109 -0
  44. package/src/apis/index.ts +10 -0
  45. package/src/client.test.ts +88 -0
  46. package/src/client.ts +212 -0
  47. package/src/index.ts +7 -0
  48. package/src/models/AgentListResponse.ts +73 -0
  49. package/src/models/AgentResponse.ts +201 -0
  50. package/src/models/ConnectorResponse.ts +161 -0
  51. package/src/models/CreateAgentRequest.ts +163 -0
  52. package/src/models/CreateConnectorRequest.ts +148 -0
  53. package/src/models/CreateMemoryRequest.ts +91 -0
  54. package/src/models/CreateScheduleAgentSpec.ts +97 -0
  55. package/src/models/CreateScheduleRequest.ts +140 -0
  56. package/src/models/CreateSecretRequest.ts +83 -0
  57. package/src/models/CreateSkillRequest.ts +92 -0
  58. package/src/models/MemoryResponse.ts +113 -0
  59. package/src/models/OfficeListResponse.ts +73 -0
  60. package/src/models/OfficeMemberResponse.ts +89 -0
  61. package/src/models/OfficeResponse.ts +153 -0
  62. package/src/models/PatchAgentRequest.ts +129 -0
  63. package/src/models/PatchMemoryRequest.ts +73 -0
  64. package/src/models/PatchScheduleRequest.ts +65 -0
  65. package/src/models/PatchSkillRequest.ts +73 -0
  66. package/src/models/ScheduleListResponse.ts +73 -0
  67. package/src/models/ScheduleResponse.ts +209 -0
  68. package/src/models/SecretListResponse.ts +73 -0
  69. package/src/models/SecretResponse.ts +121 -0
  70. package/src/models/SkillResponse.ts +121 -0
  71. package/src/models/UpdateSecretRequest.ts +74 -0
  72. package/src/models/index.ts +26 -0
  73. package/src/runtime.ts +450 -0
  74. package/src/watch.ts +89 -0
  75. package/tsconfig.esm.json +7 -0
  76. package/tsconfig.json +18 -0
@@ -0,0 +1,366 @@
1
+ # ConnectorsApi
2
+
3
+ All URIs are relative to *http://localhost:8080/api/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createConnector**](ConnectorsApi.md#createconnectoroperation) | **POST** /connectors | Create connector |
8
+ | [**deleteConnector**](ConnectorsApi.md#deleteconnector) | **DELETE** /connectors/{name} | Delete connector |
9
+ | [**getConnector**](ConnectorsApi.md#getconnector) | **GET** /connectors/{name} | Get connector details |
10
+ | [**listConnectorTools**](ConnectorsApi.md#listconnectortools) | **GET** /connectors/{name}/tools | List connector tools |
11
+ | [**listConnectors**](ConnectorsApi.md#listconnectors) | **GET** /connectors | List connectors |
12
+
13
+
14
+
15
+ ## createConnector
16
+
17
+ > ConnectorResponse createConnector(request)
18
+
19
+ Create connector
20
+
21
+ Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ ConnectorsApi,
29
+ } from 'komputer-ai';
30
+ import type { CreateConnectorOperationRequest } from 'komputer-ai';
31
+
32
+ async function example() {
33
+ console.log("🚀 Testing komputer-ai SDK...");
34
+ const api = new ConnectorsApi();
35
+
36
+ const body = {
37
+ // CreateConnectorRequest | Connector creation request
38
+ request: ...,
39
+ } satisfies CreateConnectorOperationRequest;
40
+
41
+ try {
42
+ const data = await api.createConnector(body);
43
+ console.log(data);
44
+ } catch (error) {
45
+ console.error(error);
46
+ }
47
+ }
48
+
49
+ // Run the test
50
+ example().catch(console.error);
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ | Name | Type | Description | Notes |
57
+ |------------- | ------------- | ------------- | -------------|
58
+ | **request** | [CreateConnectorRequest](CreateConnectorRequest.md) | Connector creation request | |
59
+
60
+ ### Return type
61
+
62
+ [**ConnectorResponse**](ConnectorResponse.md)
63
+
64
+ ### Authorization
65
+
66
+ No authorization required
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: `application/json`
71
+ - **Accept**: `application/json`
72
+
73
+
74
+ ### HTTP response details
75
+ | Status code | Description | Response headers |
76
+ |-------------|-------------|------------------|
77
+ | **201** | Connector created | - |
78
+ | **400** | Bad request | - |
79
+ | **500** | Internal error | - |
80
+
81
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
82
+
83
+
84
+ ## deleteConnector
85
+
86
+ > { [key: string]: string; } deleteConnector(name, namespace)
87
+
88
+ Delete connector
89
+
90
+ Deletes the connector CR.
91
+
92
+ ### Example
93
+
94
+ ```ts
95
+ import {
96
+ Configuration,
97
+ ConnectorsApi,
98
+ } from 'komputer-ai';
99
+ import type { DeleteConnectorRequest } from 'komputer-ai';
100
+
101
+ async function example() {
102
+ console.log("🚀 Testing komputer-ai SDK...");
103
+ const api = new ConnectorsApi();
104
+
105
+ const body = {
106
+ // string | Connector name
107
+ name: name_example,
108
+ // string | Kubernetes namespace (optional)
109
+ namespace: namespace_example,
110
+ } satisfies DeleteConnectorRequest;
111
+
112
+ try {
113
+ const data = await api.deleteConnector(body);
114
+ console.log(data);
115
+ } catch (error) {
116
+ console.error(error);
117
+ }
118
+ }
119
+
120
+ // Run the test
121
+ example().catch(console.error);
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+
127
+ | Name | Type | Description | Notes |
128
+ |------------- | ------------- | ------------- | -------------|
129
+ | **name** | `string` | Connector name | [Defaults to `undefined`] |
130
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
131
+
132
+ ### Return type
133
+
134
+ **{ [key: string]: string; }**
135
+
136
+ ### Authorization
137
+
138
+ No authorization required
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: Not defined
143
+ - **Accept**: `application/json`
144
+
145
+
146
+ ### HTTP response details
147
+ | Status code | Description | Response headers |
148
+ |-------------|-------------|------------------|
149
+ | **200** | Connector deleted | - |
150
+ | **500** | Internal error | - |
151
+
152
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
153
+
154
+
155
+ ## getConnector
156
+
157
+ > ConnectorResponse getConnector(name, namespace)
158
+
159
+ Get connector details
160
+
161
+ Returns the URL, service, type, and auth config for a single connector.
162
+
163
+ ### Example
164
+
165
+ ```ts
166
+ import {
167
+ Configuration,
168
+ ConnectorsApi,
169
+ } from 'komputer-ai';
170
+ import type { GetConnectorRequest } from 'komputer-ai';
171
+
172
+ async function example() {
173
+ console.log("🚀 Testing komputer-ai SDK...");
174
+ const api = new ConnectorsApi();
175
+
176
+ const body = {
177
+ // string | Connector name
178
+ name: name_example,
179
+ // string | Kubernetes namespace (optional)
180
+ namespace: namespace_example,
181
+ } satisfies GetConnectorRequest;
182
+
183
+ try {
184
+ const data = await api.getConnector(body);
185
+ console.log(data);
186
+ } catch (error) {
187
+ console.error(error);
188
+ }
189
+ }
190
+
191
+ // Run the test
192
+ example().catch(console.error);
193
+ ```
194
+
195
+ ### Parameters
196
+
197
+
198
+ | Name | Type | Description | Notes |
199
+ |------------- | ------------- | ------------- | -------------|
200
+ | **name** | `string` | Connector name | [Defaults to `undefined`] |
201
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
202
+
203
+ ### Return type
204
+
205
+ [**ConnectorResponse**](ConnectorResponse.md)
206
+
207
+ ### Authorization
208
+
209
+ No authorization required
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: Not defined
214
+ - **Accept**: `application/json`
215
+
216
+
217
+ ### HTTP response details
218
+ | Status code | Description | Response headers |
219
+ |-------------|-------------|------------------|
220
+ | **200** | Connector details | - |
221
+ | **404** | Connector not found | - |
222
+ | **500** | Internal error | - |
223
+
224
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
225
+
226
+
227
+ ## listConnectorTools
228
+
229
+ > { [key: string]: any; } listConnectorTools(name, namespace)
230
+
231
+ List connector tools
232
+
233
+ Calls the MCP server\'s tools/list endpoint and returns the available tools.
234
+
235
+ ### Example
236
+
237
+ ```ts
238
+ import {
239
+ Configuration,
240
+ ConnectorsApi,
241
+ } from 'komputer-ai';
242
+ import type { ListConnectorToolsRequest } from 'komputer-ai';
243
+
244
+ async function example() {
245
+ console.log("🚀 Testing komputer-ai SDK...");
246
+ const api = new ConnectorsApi();
247
+
248
+ const body = {
249
+ // string | Connector name
250
+ name: name_example,
251
+ // string | Kubernetes namespace (optional)
252
+ namespace: namespace_example,
253
+ } satisfies ListConnectorToolsRequest;
254
+
255
+ try {
256
+ const data = await api.listConnectorTools(body);
257
+ console.log(data);
258
+ } catch (error) {
259
+ console.error(error);
260
+ }
261
+ }
262
+
263
+ // Run the test
264
+ example().catch(console.error);
265
+ ```
266
+
267
+ ### Parameters
268
+
269
+
270
+ | Name | Type | Description | Notes |
271
+ |------------- | ------------- | ------------- | -------------|
272
+ | **name** | `string` | Connector name | [Defaults to `undefined`] |
273
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
274
+
275
+ ### Return type
276
+
277
+ **{ [key: string]: any; }**
278
+
279
+ ### Authorization
280
+
281
+ No authorization required
282
+
283
+ ### HTTP request headers
284
+
285
+ - **Content-Type**: Not defined
286
+ - **Accept**: `application/json`
287
+
288
+
289
+ ### HTTP response details
290
+ | Status code | Description | Response headers |
291
+ |-------------|-------------|------------------|
292
+ | **200** | List of MCP tools | - |
293
+ | **404** | Connector not found | - |
294
+ | **500** | Internal error | - |
295
+ | **502** | Failed to reach MCP server | - |
296
+
297
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
298
+
299
+
300
+ ## listConnectors
301
+
302
+ > { [key: string]: any; } listConnectors(namespace)
303
+
304
+ List connectors
305
+
306
+ Returns all connectors with attached agent counts in the specified namespace.
307
+
308
+ ### Example
309
+
310
+ ```ts
311
+ import {
312
+ Configuration,
313
+ ConnectorsApi,
314
+ } from 'komputer-ai';
315
+ import type { ListConnectorsRequest } from 'komputer-ai';
316
+
317
+ async function example() {
318
+ console.log("🚀 Testing komputer-ai SDK...");
319
+ const api = new ConnectorsApi();
320
+
321
+ const body = {
322
+ // string | Kubernetes namespace (optional)
323
+ namespace: namespace_example,
324
+ } satisfies ListConnectorsRequest;
325
+
326
+ try {
327
+ const data = await api.listConnectors(body);
328
+ console.log(data);
329
+ } catch (error) {
330
+ console.error(error);
331
+ }
332
+ }
333
+
334
+ // Run the test
335
+ example().catch(console.error);
336
+ ```
337
+
338
+ ### Parameters
339
+
340
+
341
+ | Name | Type | Description | Notes |
342
+ |------------- | ------------- | ------------- | -------------|
343
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
344
+
345
+ ### Return type
346
+
347
+ **{ [key: string]: any; }**
348
+
349
+ ### Authorization
350
+
351
+ No authorization required
352
+
353
+ ### HTTP request headers
354
+
355
+ - **Content-Type**: Not defined
356
+ - **Accept**: `application/json`
357
+
358
+
359
+ ### HTTP response details
360
+ | Status code | Description | Response headers |
361
+ |-------------|-------------|------------------|
362
+ | **200** | List of connectors | - |
363
+ | **500** | Internal error | - |
364
+
365
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
366
+
@@ -0,0 +1,58 @@
1
+
2
+ # CreateAgentRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `connectors` | Array<string>
10
+ `instructions` | string
11
+ `lifecycle` | string
12
+ `memories` | Array<string>
13
+ `model` | string
14
+ `name` | string
15
+ `namespace` | string
16
+ `officeManager` | string
17
+ `role` | string
18
+ `secretRefs` | Array<string>
19
+ `skills` | Array<string>
20
+ `systemPrompt` | string
21
+ `templateRef` | string
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import type { CreateAgentRequest } from 'komputer-ai'
27
+
28
+ // TODO: Update the object below with actual values
29
+ const example = {
30
+ "connectors": null,
31
+ "instructions": null,
32
+ "lifecycle": null,
33
+ "memories": null,
34
+ "model": null,
35
+ "name": null,
36
+ "namespace": null,
37
+ "officeManager": null,
38
+ "role": null,
39
+ "secretRefs": null,
40
+ "skills": null,
41
+ "systemPrompt": null,
42
+ "templateRef": null,
43
+ } satisfies CreateAgentRequest
44
+
45
+ console.log(example)
46
+
47
+ // Convert the instance to a JSON string
48
+ const exampleJSON: string = JSON.stringify(example)
49
+ console.log(exampleJSON)
50
+
51
+ // Parse the JSON string back to an object
52
+ const exampleParsed = JSON.parse(exampleJSON) as CreateAgentRequest
53
+ console.log(exampleParsed)
54
+ ```
55
+
56
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
57
+
58
+
@@ -0,0 +1,54 @@
1
+
2
+ # CreateConnectorRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `authSecretKey` | string
10
+ `authSecretName` | string
11
+ `authType` | string
12
+ `displayName` | string
13
+ `name` | string
14
+ `namespace` | string
15
+ `oauthClientId` | string
16
+ `oauthClientSecret` | string
17
+ `service` | string
18
+ `type` | string
19
+ `url` | string
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { CreateConnectorRequest } from 'komputer-ai'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "authSecretKey": null,
29
+ "authSecretName": null,
30
+ "authType": null,
31
+ "displayName": null,
32
+ "name": null,
33
+ "namespace": null,
34
+ "oauthClientId": null,
35
+ "oauthClientSecret": null,
36
+ "service": null,
37
+ "type": null,
38
+ "url": null,
39
+ } satisfies CreateConnectorRequest
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as CreateConnectorRequest
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
@@ -0,0 +1,40 @@
1
+
2
+ # CreateMemoryRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `content` | string
10
+ `description` | string
11
+ `name` | string
12
+ `namespace` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { CreateMemoryRequest } from 'komputer-ai'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "content": null,
22
+ "description": null,
23
+ "name": null,
24
+ "namespace": null,
25
+ } satisfies CreateMemoryRequest
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as CreateMemoryRequest
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,42 @@
1
+
2
+ # CreateScheduleAgentSpec
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `lifecycle` | string
10
+ `model` | string
11
+ `role` | string
12
+ `secretRefs` | Array<string>
13
+ `templateRef` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { CreateScheduleAgentSpec } from 'komputer-ai'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "lifecycle": null,
23
+ "model": null,
24
+ "role": null,
25
+ "secretRefs": null,
26
+ "templateRef": null,
27
+ } satisfies CreateScheduleAgentSpec
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as CreateScheduleAgentSpec
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,50 @@
1
+
2
+ # CreateScheduleRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `agent` | [CreateScheduleAgentSpec](CreateScheduleAgentSpec.md)
10
+ `agentName` | string
11
+ `autoDelete` | boolean
12
+ `instructions` | string
13
+ `keepAgents` | boolean
14
+ `name` | string
15
+ `namespace` | string
16
+ `schedule` | string
17
+ `timezone` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { CreateScheduleRequest } from 'komputer-ai'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "agent": null,
27
+ "agentName": null,
28
+ "autoDelete": null,
29
+ "instructions": null,
30
+ "keepAgents": null,
31
+ "name": null,
32
+ "namespace": null,
33
+ "schedule": null,
34
+ "timezone": null,
35
+ } satisfies CreateScheduleRequest
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as CreateScheduleRequest
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,38 @@
1
+
2
+ # CreateSecretRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | { [key: string]: string; }
10
+ `name` | string
11
+ `namespace` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { CreateSecretRequest } from 'komputer-ai'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "data": null,
21
+ "name": null,
22
+ "namespace": null,
23
+ } satisfies CreateSecretRequest
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as CreateSecretRequest
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,40 @@
1
+
2
+ # CreateSkillRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `content` | string
10
+ `description` | string
11
+ `name` | string
12
+ `namespace` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { CreateSkillRequest } from 'komputer-ai'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "content": null,
22
+ "description": null,
23
+ "name": null,
24
+ "namespace": null,
25
+ } satisfies CreateSkillRequest
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as CreateSkillRequest
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+