blanche-client-sdk 0.2.1 → 0.4.0

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 (89) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +39 -9
  3. package/dist/apis/RecordsApi.d.ts +65 -0
  4. package/dist/apis/RecordsApi.js +272 -0
  5. package/dist/apis/TemplatesApi.d.ts +63 -0
  6. package/dist/apis/TemplatesApi.js +265 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/models/ApiV1RecordsGet200Response.d.ts +51 -0
  10. package/dist/models/ApiV1RecordsGet200Response.js +64 -0
  11. package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.d.ts +56 -0
  12. package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.js +67 -0
  13. package/dist/models/ApiV1RecordsIdDelete200Response.d.ts +32 -0
  14. package/dist/models/ApiV1RecordsIdDelete200Response.js +51 -0
  15. package/dist/models/ApiV1RecordsIdGet200Response.d.ts +62 -0
  16. package/dist/models/ApiV1RecordsIdGet200Response.js +71 -0
  17. package/dist/models/ApiV1RecordsIdPatch200Response.d.ts +50 -0
  18. package/dist/models/ApiV1RecordsIdPatch200Response.js +63 -0
  19. package/dist/models/ApiV1RecordsIdPatch422Response.d.ts +32 -0
  20. package/dist/models/ApiV1RecordsIdPatch422Response.js +51 -0
  21. package/dist/models/ApiV1RecordsIdPatchRequest.d.ts +32 -0
  22. package/dist/models/ApiV1RecordsIdPatchRequest.js +51 -0
  23. package/dist/models/ApiV1TemplatesGet200Response.d.ts +39 -0
  24. package/dist/models/ApiV1TemplatesGet200Response.js +56 -0
  25. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.d.ts +93 -0
  26. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.js +74 -0
  27. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.d.ts +38 -0
  28. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.js +51 -0
  29. package/dist/models/ApiV1TemplatesIdGet200Response.d.ts +69 -0
  30. package/dist/models/ApiV1TemplatesIdGet200Response.js +76 -0
  31. package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.d.ts +62 -0
  32. package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.js +69 -0
  33. package/dist/models/ApiV1TemplatesIdGet404Response.d.ts +32 -0
  34. package/dist/models/ApiV1TemplatesIdGet404Response.js +51 -0
  35. package/dist/models/ApiV1TemplatesIdPatchRequest.d.ts +33 -0
  36. package/dist/models/ApiV1TemplatesIdPatchRequest.js +52 -0
  37. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.d.ts +38 -0
  38. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.js +51 -0
  39. package/dist/models/ApiV1TemplatesPost201Response.d.ts +44 -0
  40. package/dist/models/ApiV1TemplatesPost201Response.js +59 -0
  41. package/dist/models/ApiV1TemplatesPostRequest.d.ts +33 -0
  42. package/dist/models/ApiV1TemplatesPostRequest.js +52 -0
  43. package/dist/models/ApiV1TemplatesPostRequestTemplate.d.ts +38 -0
  44. package/dist/models/ApiV1TemplatesPostRequestTemplate.js +53 -0
  45. package/dist/models/index.d.ts +18 -0
  46. package/dist/models/index.js +18 -0
  47. package/docs/ApiV1RecordsGet200Response.md +40 -0
  48. package/docs/ApiV1RecordsGet200ResponseRecordsInner.md +42 -0
  49. package/docs/ApiV1RecordsIdDelete200Response.md +34 -0
  50. package/docs/ApiV1RecordsIdGet200Response.md +44 -0
  51. package/docs/ApiV1RecordsIdPatch200Response.md +40 -0
  52. package/docs/ApiV1RecordsIdPatch422Response.md +34 -0
  53. package/docs/ApiV1RecordsIdPatchRequest.md +34 -0
  54. package/docs/ApiV1TemplatesGet200Response.md +36 -0
  55. package/docs/ApiV1TemplatesGet200ResponseTemplatesInner.md +54 -0
  56. package/docs/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.md +36 -0
  57. package/docs/ApiV1TemplatesIdGet200Response.md +46 -0
  58. package/docs/ApiV1TemplatesIdGet200ResponseSchemasInner.md +44 -0
  59. package/docs/ApiV1TemplatesIdGet404Response.md +34 -0
  60. package/docs/ApiV1TemplatesIdPatchRequest.md +34 -0
  61. package/docs/ApiV1TemplatesIdPatchRequestTemplate.md +36 -0
  62. package/docs/ApiV1TemplatesPost201Response.md +38 -0
  63. package/docs/ApiV1TemplatesPostRequest.md +34 -0
  64. package/docs/ApiV1TemplatesPostRequestTemplate.md +36 -0
  65. package/docs/RecordsApi.md +282 -0
  66. package/docs/TemplatesApi.md +279 -0
  67. package/package.json +1 -1
  68. package/src/apis/RecordsApi.ts +219 -0
  69. package/src/apis/TemplatesApi.ts +207 -0
  70. package/src/apis/index.ts +2 -0
  71. package/src/models/ApiV1RecordsGet200Response.ts +101 -0
  72. package/src/models/ApiV1RecordsGet200ResponseRecordsInner.ts +102 -0
  73. package/src/models/ApiV1RecordsIdDelete200Response.ts +66 -0
  74. package/src/models/ApiV1RecordsIdGet200Response.ts +111 -0
  75. package/src/models/ApiV1RecordsIdPatch200Response.ts +93 -0
  76. package/src/models/ApiV1RecordsIdPatch422Response.ts +66 -0
  77. package/src/models/ApiV1RecordsIdPatchRequest.ts +66 -0
  78. package/src/models/ApiV1TemplatesGet200Response.ts +83 -0
  79. package/src/models/ApiV1TemplatesGet200ResponseTemplatesInner.ts +155 -0
  80. package/src/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.ts +73 -0
  81. package/src/models/ApiV1TemplatesIdGet200Response.ts +128 -0
  82. package/src/models/ApiV1TemplatesIdGet200ResponseSchemasInner.ts +110 -0
  83. package/src/models/ApiV1TemplatesIdGet404Response.ts +66 -0
  84. package/src/models/ApiV1TemplatesIdPatchRequest.ts +74 -0
  85. package/src/models/ApiV1TemplatesIdPatchRequestTemplate.ts +73 -0
  86. package/src/models/ApiV1TemplatesPost201Response.ts +84 -0
  87. package/src/models/ApiV1TemplatesPostRequest.ts +74 -0
  88. package/src/models/ApiV1TemplatesPostRequestTemplate.ts +74 -0
  89. package/src/models/index.ts +18 -0
@@ -0,0 +1,36 @@
1
+
2
+ # ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `version` | number
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema } from 'blanche-client-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "id": null,
20
+ "version": null,
21
+ } satisfies ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,46 @@
1
+
2
+ # ApiV1TemplatesIdGet200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `visible` | boolean
12
+ `system` | boolean
13
+ `createdAt` | Date
14
+ `updatedAt` | Date
15
+ `schemas` | [Array<ApiV1TemplatesIdGet200ResponseSchemasInner>](ApiV1TemplatesIdGet200ResponseSchemasInner.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ApiV1TemplatesIdGet200Response } from 'blanche-client-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "name": null,
26
+ "visible": null,
27
+ "system": null,
28
+ "createdAt": null,
29
+ "updatedAt": null,
30
+ "schemas": null,
31
+ } satisfies ApiV1TemplatesIdGet200Response
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesIdGet200Response
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,44 @@
1
+
2
+ # ApiV1TemplatesIdGet200ResponseSchemasInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `version` | number
11
+ `jsonSchema` | object
12
+ `systemPrompt` | string
13
+ `active` | boolean
14
+ `createdAt` | Date
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ApiV1TemplatesIdGet200ResponseSchemasInner } from 'blanche-client-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "version": null,
25
+ "jsonSchema": null,
26
+ "systemPrompt": null,
27
+ "active": null,
28
+ "createdAt": null,
29
+ } satisfies ApiV1TemplatesIdGet200ResponseSchemasInner
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesIdGet200ResponseSchemasInner
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # ApiV1TemplatesIdGet404Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `error` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1TemplatesIdGet404Response } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "error": null,
19
+ } satisfies ApiV1TemplatesIdGet404Response
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesIdGet404Response
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,34 @@
1
+
2
+ # ApiV1TemplatesIdPatchRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `template` | [ApiV1TemplatesIdPatchRequestTemplate](ApiV1TemplatesIdPatchRequestTemplate.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1TemplatesIdPatchRequest } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "template": null,
19
+ } satisfies ApiV1TemplatesIdPatchRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesIdPatchRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,36 @@
1
+
2
+ # ApiV1TemplatesIdPatchRequestTemplate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `visible` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ApiV1TemplatesIdPatchRequestTemplate } from 'blanche-client-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": null,
20
+ "visible": null,
21
+ } satisfies ApiV1TemplatesIdPatchRequestTemplate
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesIdPatchRequestTemplate
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,38 @@
1
+
2
+ # ApiV1TemplatesPost201Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `message` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ApiV1TemplatesPost201Response } from 'blanche-client-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "id": null,
21
+ "name": null,
22
+ "message": null,
23
+ } satisfies ApiV1TemplatesPost201Response
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 ApiV1TemplatesPost201Response
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,34 @@
1
+
2
+ # ApiV1TemplatesPostRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `template` | [ApiV1TemplatesPostRequestTemplate](ApiV1TemplatesPostRequestTemplate.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1TemplatesPostRequest } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "template": null,
19
+ } satisfies ApiV1TemplatesPostRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesPostRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,36 @@
1
+
2
+ # ApiV1TemplatesPostRequestTemplate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `visible` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ApiV1TemplatesPostRequestTemplate } from 'blanche-client-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": null,
20
+ "visible": null,
21
+ } satisfies ApiV1TemplatesPostRequestTemplate
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TemplatesPostRequestTemplate
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,282 @@
1
+ # RecordsApi
2
+
3
+ All URIs are relative to *http://localhost:3000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**apiV1RecordsGet**](RecordsApi.md#apiv1recordsget) | **GET** /api/v1/records | List records |
8
+ | [**apiV1RecordsIdDelete**](RecordsApi.md#apiv1recordsiddelete) | **DELETE** /api/v1/records/{id} | Delete record |
9
+ | [**apiV1RecordsIdGet**](RecordsApi.md#apiv1recordsidget) | **GET** /api/v1/records/{id} | Get record |
10
+ | [**apiV1RecordsIdPatch**](RecordsApi.md#apiv1recordsidpatchoperation) | **PATCH** /api/v1/records/{id} | Update record |
11
+
12
+
13
+
14
+ ## apiV1RecordsGet
15
+
16
+ > ApiV1RecordsGet200Response apiV1RecordsGet(template, limit, offset)
17
+
18
+ List records
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ RecordsApi,
26
+ } from 'blanche-client-sdk';
27
+ import type { ApiV1RecordsGetRequest } from 'blanche-client-sdk';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing blanche-client-sdk SDK...");
31
+ const api = new RecordsApi();
32
+
33
+ const body = {
34
+ // string (optional)
35
+ template: template_example,
36
+ // number (optional)
37
+ limit: 56,
38
+ // number (optional)
39
+ offset: 56,
40
+ } satisfies ApiV1RecordsGetRequest;
41
+
42
+ try {
43
+ const data = await api.apiV1RecordsGet(body);
44
+ console.log(data);
45
+ } catch (error) {
46
+ console.error(error);
47
+ }
48
+ }
49
+
50
+ // Run the test
51
+ example().catch(console.error);
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+
57
+ | Name | Type | Description | Notes |
58
+ |------------- | ------------- | ------------- | -------------|
59
+ | **template** | `string` | | [Optional] [Defaults to `undefined`] |
60
+ | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
61
+ | **offset** | `number` | | [Optional] [Defaults to `undefined`] |
62
+
63
+ ### Return type
64
+
65
+ [**ApiV1RecordsGet200Response**](ApiV1RecordsGet200Response.md)
66
+
67
+ ### Authorization
68
+
69
+ No authorization required
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: `application/json`
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **200** | records returned | - |
81
+
82
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
+
84
+
85
+ ## apiV1RecordsIdDelete
86
+
87
+ > ApiV1RecordsIdDelete200Response apiV1RecordsIdDelete(id)
88
+
89
+ Delete record
90
+
91
+ ### Example
92
+
93
+ ```ts
94
+ import {
95
+ Configuration,
96
+ RecordsApi,
97
+ } from 'blanche-client-sdk';
98
+ import type { ApiV1RecordsIdDeleteRequest } from 'blanche-client-sdk';
99
+
100
+ async function example() {
101
+ console.log("🚀 Testing blanche-client-sdk SDK...");
102
+ const api = new RecordsApi();
103
+
104
+ const body = {
105
+ // string
106
+ id: id_example,
107
+ } satisfies ApiV1RecordsIdDeleteRequest;
108
+
109
+ try {
110
+ const data = await api.apiV1RecordsIdDelete(body);
111
+ console.log(data);
112
+ } catch (error) {
113
+ console.error(error);
114
+ }
115
+ }
116
+
117
+ // Run the test
118
+ example().catch(console.error);
119
+ ```
120
+
121
+ ### Parameters
122
+
123
+
124
+ | Name | Type | Description | Notes |
125
+ |------------- | ------------- | ------------- | -------------|
126
+ | **id** | `string` | | [Defaults to `undefined`] |
127
+
128
+ ### Return type
129
+
130
+ [**ApiV1RecordsIdDelete200Response**](ApiV1RecordsIdDelete200Response.md)
131
+
132
+ ### Authorization
133
+
134
+ No authorization required
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: Not defined
139
+ - **Accept**: `application/json`
140
+
141
+
142
+ ### HTTP response details
143
+ | Status code | Description | Response headers |
144
+ |-------------|-------------|------------------|
145
+ | **200** | record deleted | - |
146
+
147
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
148
+
149
+
150
+ ## apiV1RecordsIdGet
151
+
152
+ > ApiV1RecordsIdGet200Response apiV1RecordsIdGet(id)
153
+
154
+ Get record
155
+
156
+ ### Example
157
+
158
+ ```ts
159
+ import {
160
+ Configuration,
161
+ RecordsApi,
162
+ } from 'blanche-client-sdk';
163
+ import type { ApiV1RecordsIdGetRequest } from 'blanche-client-sdk';
164
+
165
+ async function example() {
166
+ console.log("🚀 Testing blanche-client-sdk SDK...");
167
+ const api = new RecordsApi();
168
+
169
+ const body = {
170
+ // string
171
+ id: id_example,
172
+ } satisfies ApiV1RecordsIdGetRequest;
173
+
174
+ try {
175
+ const data = await api.apiV1RecordsIdGet(body);
176
+ console.log(data);
177
+ } catch (error) {
178
+ console.error(error);
179
+ }
180
+ }
181
+
182
+ // Run the test
183
+ example().catch(console.error);
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+
189
+ | Name | Type | Description | Notes |
190
+ |------------- | ------------- | ------------- | -------------|
191
+ | **id** | `string` | | [Defaults to `undefined`] |
192
+
193
+ ### Return type
194
+
195
+ [**ApiV1RecordsIdGet200Response**](ApiV1RecordsIdGet200Response.md)
196
+
197
+ ### Authorization
198
+
199
+ No authorization required
200
+
201
+ ### HTTP request headers
202
+
203
+ - **Content-Type**: Not defined
204
+ - **Accept**: `application/json`
205
+
206
+
207
+ ### HTTP response details
208
+ | Status code | Description | Response headers |
209
+ |-------------|-------------|------------------|
210
+ | **200** | record returned | - |
211
+
212
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
213
+
214
+
215
+ ## apiV1RecordsIdPatch
216
+
217
+ > ApiV1RecordsIdPatch200Response apiV1RecordsIdPatch(id, apiV1RecordsIdPatchRequest)
218
+
219
+ Update record
220
+
221
+ ### Example
222
+
223
+ ```ts
224
+ import {
225
+ Configuration,
226
+ RecordsApi,
227
+ } from 'blanche-client-sdk';
228
+ import type { ApiV1RecordsIdPatchOperationRequest } from 'blanche-client-sdk';
229
+
230
+ async function example() {
231
+ console.log("🚀 Testing blanche-client-sdk SDK...");
232
+ const api = new RecordsApi();
233
+
234
+ const body = {
235
+ // string
236
+ id: id_example,
237
+ // ApiV1RecordsIdPatchRequest (optional)
238
+ apiV1RecordsIdPatchRequest: ...,
239
+ } satisfies ApiV1RecordsIdPatchOperationRequest;
240
+
241
+ try {
242
+ const data = await api.apiV1RecordsIdPatch(body);
243
+ console.log(data);
244
+ } catch (error) {
245
+ console.error(error);
246
+ }
247
+ }
248
+
249
+ // Run the test
250
+ example().catch(console.error);
251
+ ```
252
+
253
+ ### Parameters
254
+
255
+
256
+ | Name | Type | Description | Notes |
257
+ |------------- | ------------- | ------------- | -------------|
258
+ | **id** | `string` | | [Defaults to `undefined`] |
259
+ | **apiV1RecordsIdPatchRequest** | [ApiV1RecordsIdPatchRequest](ApiV1RecordsIdPatchRequest.md) | | [Optional] |
260
+
261
+ ### Return type
262
+
263
+ [**ApiV1RecordsIdPatch200Response**](ApiV1RecordsIdPatch200Response.md)
264
+
265
+ ### Authorization
266
+
267
+ No authorization required
268
+
269
+ ### HTTP request headers
270
+
271
+ - **Content-Type**: `application/json`
272
+ - **Accept**: `application/json`
273
+
274
+
275
+ ### HTTP response details
276
+ | Status code | Description | Response headers |
277
+ |-------------|-------------|------------------|
278
+ | **200** | record updated | - |
279
+ | **422** | invalid request | - |
280
+
281
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
282
+