blanche-client-sdk 0.6.0 → 0.6.2

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 (50) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +12 -2
  3. package/dist/apis/ChatsApi.d.ts +44 -1
  4. package/dist/apis/ChatsApi.js +177 -0
  5. package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.d.ts +7 -0
  6. package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.js +5 -0
  7. package/dist/models/ApiV1ChatsIdArtifactsGet200Response.d.ts +33 -0
  8. package/dist/models/ApiV1ChatsIdArtifactsGet200Response.js +52 -0
  9. package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.d.ts +80 -0
  10. package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.js +81 -0
  11. package/dist/models/ApiV1ChatsIdReportsPost200Response.d.ts +12 -0
  12. package/dist/models/ApiV1ChatsIdReportsPost200Response.js +8 -0
  13. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.d.ts +33 -0
  14. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.js +52 -0
  15. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.d.ts +56 -0
  16. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.js +67 -0
  17. package/dist/models/ApiV1ChatsRealtimeContractGet200Response.d.ts +57 -0
  18. package/dist/models/ApiV1ChatsRealtimeContractGet200Response.js +68 -0
  19. package/dist/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.d.ts +38 -0
  20. package/dist/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.js +55 -0
  21. package/dist/models/ApiV1ChatsSyncGet200Response.d.ts +7 -0
  22. package/dist/models/ApiV1ChatsSyncGet200Response.js +5 -0
  23. package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.d.ts +38 -0
  24. package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.js +55 -0
  25. package/dist/models/index.d.ts +7 -0
  26. package/dist/models/index.js +7 -0
  27. package/docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md +2 -0
  28. package/docs/ApiV1ChatsIdArtifactsGet200Response.md +34 -0
  29. package/docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md +50 -0
  30. package/docs/ApiV1ChatsIdReportsPost200Response.md +4 -0
  31. package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md +34 -0
  32. package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md +42 -0
  33. package/docs/ApiV1ChatsRealtimeContractGet200Response.md +42 -0
  34. package/docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md +36 -0
  35. package/docs/ApiV1ChatsSyncGet200Response.md +2 -0
  36. package/docs/ApiV1ChatsSyncGet200ResponseCursorContract.md +36 -0
  37. package/docs/ChatsApi.md +193 -0
  38. package/package.json +1 -1
  39. package/src/apis/ChatsApi.ts +153 -0
  40. package/src/models/ApiV1ChatsChatIdMessagesSyncGet200Response.ts +17 -0
  41. package/src/models/ApiV1ChatsIdArtifactsGet200Response.ts +74 -0
  42. package/src/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.ts +137 -0
  43. package/src/models/ApiV1ChatsIdReportsPost200Response.ts +18 -0
  44. package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts +74 -0
  45. package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts +102 -0
  46. package/src/models/ApiV1ChatsRealtimeContractGet200Response.ts +110 -0
  47. package/src/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.ts +75 -0
  48. package/src/models/ApiV1ChatsSyncGet200Response.ts +17 -0
  49. package/src/models/ApiV1ChatsSyncGet200ResponseCursorContract.ts +75 -0
  50. package/src/models/index.ts +7 -0
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Blanche API
6
+ * AI-powered life tracking system API
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfApiV1ChatsSyncGet200ResponseCursorContract = instanceOfApiV1ChatsSyncGet200ResponseCursorContract;
17
+ exports.ApiV1ChatsSyncGet200ResponseCursorContractFromJSON = ApiV1ChatsSyncGet200ResponseCursorContractFromJSON;
18
+ exports.ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped = ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped;
19
+ exports.ApiV1ChatsSyncGet200ResponseCursorContractToJSON = ApiV1ChatsSyncGet200ResponseCursorContractToJSON;
20
+ exports.ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped = ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApiV1ChatsSyncGet200ResponseCursorContract interface.
23
+ */
24
+ function instanceOfApiV1ChatsSyncGet200ResponseCursorContract(value) {
25
+ if (!('order' in value) || value['order'] === undefined)
26
+ return false;
27
+ if (!('encoding' in value) || value['encoding'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ApiV1ChatsSyncGet200ResponseCursorContractFromJSON(json) {
32
+ return ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped(json, false);
33
+ }
34
+ function ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'order': json['order'],
40
+ 'encoding': json['encoding'],
41
+ };
42
+ }
43
+ function ApiV1ChatsSyncGet200ResponseCursorContractToJSON(json) {
44
+ return ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped(json, false);
45
+ }
46
+ function ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'order': value['order'],
53
+ 'encoding': value['encoding'],
54
+ };
55
+ }
@@ -5,6 +5,8 @@ export * from './ApiV1ChatsChatIdMessagesPostRequest';
5
5
  export * from './ApiV1ChatsChatIdMessagesSyncGet200Response';
6
6
  export * from './ApiV1ChatsGet200Response';
7
7
  export * from './ApiV1ChatsGet200ResponseChatsInner';
8
+ export * from './ApiV1ChatsIdArtifactsGet200Response';
9
+ export * from './ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner';
8
10
  export * from './ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response';
9
11
  export * from './ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner';
10
12
  export * from './ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response';
@@ -19,6 +21,8 @@ export * from './ApiV1ChatsIdReportsPostRequest';
19
21
  export * from './ApiV1ChatsIdReportsPostRequestPlanner';
20
22
  export * from './ApiV1ChatsIdReportsPostRequestPlannerParams';
21
23
  export * from './ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner';
24
+ export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200Response';
25
+ export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner';
22
26
  export * from './ApiV1ChatsIdRunsRunIdCitationsGet200Response';
23
27
  export * from './ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner';
24
28
  export * from './ApiV1ChatsIdRunsRunIdGet200Response';
@@ -31,7 +35,10 @@ export * from './ApiV1ChatsPlannerPost200Response';
31
35
  export * from './ApiV1ChatsPlannerPostRequest';
32
36
  export * from './ApiV1ChatsPost201Response';
33
37
  export * from './ApiV1ChatsPostRequest';
38
+ export * from './ApiV1ChatsRealtimeContractGet200Response';
39
+ export * from './ApiV1ChatsRealtimeContractGet200ResponseEventsInner';
34
40
  export * from './ApiV1ChatsSyncGet200Response';
41
+ export * from './ApiV1ChatsSyncGet200ResponseCursorContract';
35
42
  export * from './ApiV1ProfileGet200Response';
36
43
  export * from './ApiV1ProfileGet401Response';
37
44
  export * from './ApiV1RecordsGet200Response';
@@ -23,6 +23,8 @@ __exportStar(require("./ApiV1ChatsChatIdMessagesPostRequest"), exports);
23
23
  __exportStar(require("./ApiV1ChatsChatIdMessagesSyncGet200Response"), exports);
24
24
  __exportStar(require("./ApiV1ChatsGet200Response"), exports);
25
25
  __exportStar(require("./ApiV1ChatsGet200ResponseChatsInner"), exports);
26
+ __exportStar(require("./ApiV1ChatsIdArtifactsGet200Response"), exports);
27
+ __exportStar(require("./ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner"), exports);
26
28
  __exportStar(require("./ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response"), exports);
27
29
  __exportStar(require("./ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner"), exports);
28
30
  __exportStar(require("./ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response"), exports);
@@ -37,6 +39,8 @@ __exportStar(require("./ApiV1ChatsIdReportsPostRequest"), exports);
37
39
  __exportStar(require("./ApiV1ChatsIdReportsPostRequestPlanner"), exports);
38
40
  __exportStar(require("./ApiV1ChatsIdReportsPostRequestPlannerParams"), exports);
39
41
  __exportStar(require("./ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner"), exports);
42
+ __exportStar(require("./ApiV1ChatsIdRunsRunIdArtifactsGet200Response"), exports);
43
+ __exportStar(require("./ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner"), exports);
40
44
  __exportStar(require("./ApiV1ChatsIdRunsRunIdCitationsGet200Response"), exports);
41
45
  __exportStar(require("./ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner"), exports);
42
46
  __exportStar(require("./ApiV1ChatsIdRunsRunIdGet200Response"), exports);
@@ -49,7 +53,10 @@ __exportStar(require("./ApiV1ChatsPlannerPost200Response"), exports);
49
53
  __exportStar(require("./ApiV1ChatsPlannerPostRequest"), exports);
50
54
  __exportStar(require("./ApiV1ChatsPost201Response"), exports);
51
55
  __exportStar(require("./ApiV1ChatsPostRequest"), exports);
56
+ __exportStar(require("./ApiV1ChatsRealtimeContractGet200Response"), exports);
57
+ __exportStar(require("./ApiV1ChatsRealtimeContractGet200ResponseEventsInner"), exports);
52
58
  __exportStar(require("./ApiV1ChatsSyncGet200Response"), exports);
59
+ __exportStar(require("./ApiV1ChatsSyncGet200ResponseCursorContract"), exports);
53
60
  __exportStar(require("./ApiV1ProfileGet200Response"), exports);
54
61
  __exportStar(require("./ApiV1ProfileGet401Response"), exports);
55
62
  __exportStar(require("./ApiV1RecordsGet200Response"), exports);
@@ -9,6 +9,7 @@ Name | Type
9
9
  `messages` | Array<object>
10
10
  `cursor` | string
11
11
  `hasMore` | boolean
12
+ `cursorContract` | [ApiV1ChatsSyncGet200ResponseCursorContract](ApiV1ChatsSyncGet200ResponseCursorContract.md)
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "messages": null,
21
22
  "cursor": null,
22
23
  "hasMore": null,
24
+ "cursorContract": null,
23
25
  } satisfies ApiV1ChatsChatIdMessagesSyncGet200Response
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # ApiV1ChatsIdArtifactsGet200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `artifacts` | [Array<ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner>](ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1ChatsIdArtifactsGet200Response } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "artifacts": null,
19
+ } satisfies ApiV1ChatsIdArtifactsGet200Response
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 ApiV1ChatsIdArtifactsGet200Response
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,50 @@
1
+
2
+ # ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `sessionId` | string
11
+ `runId` | string
12
+ `kind` | string
13
+ `title` | string
14
+ `payload` | object
15
+ `metadata` | object
16
+ `position` | number
17
+ `createdAt` | Date
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner } from 'blanche-client-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "sessionId": null,
28
+ "runId": null,
29
+ "kind": null,
30
+ "title": null,
31
+ "payload": null,
32
+ "metadata": null,
33
+ "position": null,
34
+ "createdAt": null,
35
+ } satisfies ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
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 ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
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
+
@@ -7,6 +7,8 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `tool` | string
10
+ `planner` | object
11
+ `retrievalStrategy` | string
10
12
  `rows` | [Array<ApiV1ChatsIdReportsPost200ResponseRowsInner>](ApiV1ChatsIdReportsPost200ResponseRowsInner.md)
11
13
  `sourceMetadata` | [ApiV1ChatsIdReportsPost200ResponseSourceMetadata](ApiV1ChatsIdReportsPost200ResponseSourceMetadata.md)
12
14
 
@@ -18,6 +20,8 @@ import type { ApiV1ChatsIdReportsPost200Response } from 'blanche-client-sdk'
18
20
  // TODO: Update the object below with actual values
19
21
  const example = {
20
22
  "tool": null,
23
+ "planner": null,
24
+ "retrievalStrategy": null,
21
25
  "rows": null,
22
26
  "sourceMetadata": null,
23
27
  } satisfies ApiV1ChatsIdReportsPost200Response
@@ -0,0 +1,34 @@
1
+
2
+ # ApiV1ChatsIdRunsRunIdArtifactsGet200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `artifacts` | [Array<ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner>](ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1ChatsIdRunsRunIdArtifactsGet200Response } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "artifacts": null,
19
+ } satisfies ApiV1ChatsIdRunsRunIdArtifactsGet200Response
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 ApiV1ChatsIdRunsRunIdArtifactsGet200Response
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,42 @@
1
+
2
+ # ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `runId` | string
11
+ `kind` | string
12
+ `payload` | object
13
+ `position` | number
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner } from 'blanche-client-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": null,
23
+ "runId": null,
24
+ "kind": null,
25
+ "payload": null,
26
+ "position": null,
27
+ } satisfies ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
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 ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
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,42 @@
1
+
2
+ # ApiV1ChatsRealtimeContractGet200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `version` | string
10
+ `channel` | string
11
+ `streamName` | string
12
+ `envelope` | object
13
+ `events` | [Array<ApiV1ChatsRealtimeContractGet200ResponseEventsInner>](ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ApiV1ChatsRealtimeContractGet200Response } from 'blanche-client-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "version": null,
23
+ "channel": null,
24
+ "streamName": null,
25
+ "envelope": null,
26
+ "events": null,
27
+ } satisfies ApiV1ChatsRealtimeContractGet200Response
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 ApiV1ChatsRealtimeContractGet200Response
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,36 @@
1
+
2
+ # ApiV1ChatsRealtimeContractGet200ResponseEventsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `type` | string
10
+ `description` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ApiV1ChatsRealtimeContractGet200ResponseEventsInner } from 'blanche-client-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "type": null,
20
+ "description": null,
21
+ } satisfies ApiV1ChatsRealtimeContractGet200ResponseEventsInner
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 ApiV1ChatsRealtimeContractGet200ResponseEventsInner
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
+
@@ -9,6 +9,7 @@ Name | Type
9
9
  `chats` | Array<object>
10
10
  `cursor` | string
11
11
  `hasMore` | boolean
12
+ `cursorContract` | [ApiV1ChatsSyncGet200ResponseCursorContract](ApiV1ChatsSyncGet200ResponseCursorContract.md)
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "chats": null,
21
22
  "cursor": null,
22
23
  "hasMore": null,
24
+ "cursorContract": null,
23
25
  } satisfies ApiV1ChatsSyncGet200Response
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,36 @@
1
+
2
+ # ApiV1ChatsSyncGet200ResponseCursorContract
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `order` | string
10
+ `encoding` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ApiV1ChatsSyncGet200ResponseCursorContract } from 'blanche-client-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "order": null,
20
+ "encoding": null,
21
+ } satisfies ApiV1ChatsSyncGet200ResponseCursorContract
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 ApiV1ChatsSyncGet200ResponseCursorContract
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
+
package/docs/ChatsApi.md CHANGED
@@ -8,10 +8,12 @@ All URIs are relative to *http://localhost:3000*
8
8
  | [**apiV1ChatsChatIdMessagesPost**](ChatsApi.md#apiv1chatschatidmessagespostoperation) | **POST** /api/v1/chats/{chat_id}/messages | Create chat message |
9
9
  | [**apiV1ChatsChatIdMessagesSyncGet**](ChatsApi.md#apiv1chatschatidmessagessyncget) | **GET** /api/v1/chats/{chat_id}/messages/sync | Sync chat messages by cursor |
10
10
  | [**apiV1ChatsGet**](ChatsApi.md#apiv1chatsget) | **GET** /api/v1/chats | List chats |
11
+ | [**apiV1ChatsIdArtifactsGet**](ChatsApi.md#apiv1chatsidartifactsget) | **GET** /api/v1/chats/{id}/artifacts | List artifacts for chat |
11
12
  | [**apiV1ChatsIdMessagesMessageIdAttachmentsGet**](ChatsApi.md#apiv1chatsidmessagesmessageidattachmentsget) | **GET** /api/v1/chats/{id}/messages/{message_id}/attachments | List chat message attachments |
12
13
  | [**apiV1ChatsIdMessagesMessageIdAttachmentsPost**](ChatsApi.md#apiv1chatsidmessagesmessageidattachmentspostoperation) | **POST** /api/v1/chats/{id}/messages/{message_id}/attachments | Create chat message attachment |
13
14
  | [**apiV1ChatsIdReadPost**](ChatsApi.md#apiv1chatsidreadpostoperation) | **POST** /api/v1/chats/{id}/read | Mark chat as read |
14
15
  | [**apiV1ChatsIdReportsPost**](ChatsApi.md#apiv1chatsidreportspostoperation) | **POST** /api/v1/chats/{id}/reports | Run deterministic SQL report tool |
16
+ | [**apiV1ChatsIdRunsRunIdArtifactsGet**](ChatsApi.md#apiv1chatsidrunsrunidartifactsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/artifacts | List artifacts for chat run |
15
17
  | [**apiV1ChatsIdRunsRunIdCitationsGet**](ChatsApi.md#apiv1chatsidrunsrunidcitationsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/citations | Get run citations |
16
18
  | [**apiV1ChatsIdRunsRunIdGet**](ChatsApi.md#apiv1chatsidrunsrunidget) | **GET** /api/v1/chats/{id}/runs/{run_id} | Get chat run status |
17
19
  | [**apiV1ChatsIdRunsRunIdRetryPost**](ChatsApi.md#apiv1chatsidrunsrunidretrypost) | **POST** /api/v1/chats/{id}/runs/{run_id}/retry | Retry chat run |
@@ -20,6 +22,7 @@ All URIs are relative to *http://localhost:3000*
20
22
  | [**apiV1ChatsPlannerContractGet**](ChatsApi.md#apiv1chatsplannercontractget) | **GET** /api/v1/chats/planner_contract | Get planner contract schema |
21
23
  | [**apiV1ChatsPlannerPost**](ChatsApi.md#apiv1chatsplannerpostoperation) | **POST** /api/v1/chats/planner | Build deterministic planner decision |
22
24
  | [**apiV1ChatsPost**](ChatsApi.md#apiv1chatspostoperation) | **POST** /api/v1/chats | Create chat |
25
+ | [**apiV1ChatsRealtimeContractGet**](ChatsApi.md#apiv1chatsrealtimecontractget) | **GET** /api/v1/chats/realtime_contract | Get AnyCable realtime event contract |
23
26
  | [**apiV1ChatsSyncGet**](ChatsApi.md#apiv1chatssyncget) | **GET** /api/v1/chats/sync | Sync chats by cursor |
24
27
 
25
28
 
@@ -302,6 +305,71 @@ No authorization required
302
305
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
303
306
 
304
307
 
308
+ ## apiV1ChatsIdArtifactsGet
309
+
310
+ > ApiV1ChatsIdArtifactsGet200Response apiV1ChatsIdArtifactsGet(id)
311
+
312
+ List artifacts for chat
313
+
314
+ ### Example
315
+
316
+ ```ts
317
+ import {
318
+ Configuration,
319
+ ChatsApi,
320
+ } from 'blanche-client-sdk';
321
+ import type { ApiV1ChatsIdArtifactsGetRequest } from 'blanche-client-sdk';
322
+
323
+ async function example() {
324
+ console.log("🚀 Testing blanche-client-sdk SDK...");
325
+ const api = new ChatsApi();
326
+
327
+ const body = {
328
+ // string
329
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
330
+ } satisfies ApiV1ChatsIdArtifactsGetRequest;
331
+
332
+ try {
333
+ const data = await api.apiV1ChatsIdArtifactsGet(body);
334
+ console.log(data);
335
+ } catch (error) {
336
+ console.error(error);
337
+ }
338
+ }
339
+
340
+ // Run the test
341
+ example().catch(console.error);
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+
347
+ | Name | Type | Description | Notes |
348
+ |------------- | ------------- | ------------- | -------------|
349
+ | **id** | `string` | | [Defaults to `undefined`] |
350
+
351
+ ### Return type
352
+
353
+ [**ApiV1ChatsIdArtifactsGet200Response**](ApiV1ChatsIdArtifactsGet200Response.md)
354
+
355
+ ### Authorization
356
+
357
+ No authorization required
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: Not defined
362
+ - **Accept**: `application/json`
363
+
364
+
365
+ ### HTTP response details
366
+ | Status code | Description | Response headers |
367
+ |-------------|-------------|------------------|
368
+ | **200** | artifacts returned | - |
369
+
370
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
371
+
372
+
305
373
  ## apiV1ChatsIdMessagesMessageIdAttachmentsGet
306
374
 
307
375
  > ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response apiV1ChatsIdMessagesMessageIdAttachmentsGet(id, messageId)
@@ -578,6 +646,74 @@ No authorization required
578
646
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
579
647
 
580
648
 
649
+ ## apiV1ChatsIdRunsRunIdArtifactsGet
650
+
651
+ > ApiV1ChatsIdRunsRunIdArtifactsGet200Response apiV1ChatsIdRunsRunIdArtifactsGet(id, runId)
652
+
653
+ List artifacts for chat run
654
+
655
+ ### Example
656
+
657
+ ```ts
658
+ import {
659
+ Configuration,
660
+ ChatsApi,
661
+ } from 'blanche-client-sdk';
662
+ import type { ApiV1ChatsIdRunsRunIdArtifactsGetRequest } from 'blanche-client-sdk';
663
+
664
+ async function example() {
665
+ console.log("🚀 Testing blanche-client-sdk SDK...");
666
+ const api = new ChatsApi();
667
+
668
+ const body = {
669
+ // string
670
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
671
+ // string
672
+ runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
673
+ } satisfies ApiV1ChatsIdRunsRunIdArtifactsGetRequest;
674
+
675
+ try {
676
+ const data = await api.apiV1ChatsIdRunsRunIdArtifactsGet(body);
677
+ console.log(data);
678
+ } catch (error) {
679
+ console.error(error);
680
+ }
681
+ }
682
+
683
+ // Run the test
684
+ example().catch(console.error);
685
+ ```
686
+
687
+ ### Parameters
688
+
689
+
690
+ | Name | Type | Description | Notes |
691
+ |------------- | ------------- | ------------- | -------------|
692
+ | **id** | `string` | | [Defaults to `undefined`] |
693
+ | **runId** | `string` | | [Defaults to `undefined`] |
694
+
695
+ ### Return type
696
+
697
+ [**ApiV1ChatsIdRunsRunIdArtifactsGet200Response**](ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md)
698
+
699
+ ### Authorization
700
+
701
+ No authorization required
702
+
703
+ ### HTTP request headers
704
+
705
+ - **Content-Type**: Not defined
706
+ - **Accept**: `application/json`
707
+
708
+
709
+ ### HTTP response details
710
+ | Status code | Description | Response headers |
711
+ |-------------|-------------|------------------|
712
+ | **200** | run artifacts returned | - |
713
+
714
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
715
+
716
+
581
717
  ## apiV1ChatsIdRunsRunIdCitationsGet
582
718
 
583
719
  > ApiV1ChatsIdRunsRunIdCitationsGet200Response apiV1ChatsIdRunsRunIdCitationsGet(id, runId)
@@ -1103,6 +1239,63 @@ No authorization required
1103
1239
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1104
1240
 
1105
1241
 
1242
+ ## apiV1ChatsRealtimeContractGet
1243
+
1244
+ > ApiV1ChatsRealtimeContractGet200Response apiV1ChatsRealtimeContractGet()
1245
+
1246
+ Get AnyCable realtime event contract
1247
+
1248
+ ### Example
1249
+
1250
+ ```ts
1251
+ import {
1252
+ Configuration,
1253
+ ChatsApi,
1254
+ } from 'blanche-client-sdk';
1255
+ import type { ApiV1ChatsRealtimeContractGetRequest } from 'blanche-client-sdk';
1256
+
1257
+ async function example() {
1258
+ console.log("🚀 Testing blanche-client-sdk SDK...");
1259
+ const api = new ChatsApi();
1260
+
1261
+ try {
1262
+ const data = await api.apiV1ChatsRealtimeContractGet();
1263
+ console.log(data);
1264
+ } catch (error) {
1265
+ console.error(error);
1266
+ }
1267
+ }
1268
+
1269
+ // Run the test
1270
+ example().catch(console.error);
1271
+ ```
1272
+
1273
+ ### Parameters
1274
+
1275
+ This endpoint does not need any parameter.
1276
+
1277
+ ### Return type
1278
+
1279
+ [**ApiV1ChatsRealtimeContractGet200Response**](ApiV1ChatsRealtimeContractGet200Response.md)
1280
+
1281
+ ### Authorization
1282
+
1283
+ No authorization required
1284
+
1285
+ ### HTTP request headers
1286
+
1287
+ - **Content-Type**: Not defined
1288
+ - **Accept**: `application/json`
1289
+
1290
+
1291
+ ### HTTP response details
1292
+ | Status code | Description | Response headers |
1293
+ |-------------|-------------|------------------|
1294
+ | **200** | realtime contract returned | - |
1295
+
1296
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1297
+
1298
+
1106
1299
  ## apiV1ChatsSyncGet
1107
1300
 
1108
1301
  > ApiV1ChatsSyncGet200Response apiV1ChatsSyncGet(cursor, limit)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blanche-client-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "OpenAPI client for blanche-client-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {