blanche-client-sdk 0.6.1 → 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.
- package/.openapi-generator/FILES +8 -0
- package/README.md +8 -2
- package/dist/apis/ChatsApi.d.ts +32 -1
- package/dist/apis/ChatsApi.js +122 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200Response.d.ts +33 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200Response.js +52 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.d.ts +80 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.js +81 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.d.ts +33 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.js +52 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.d.ts +56 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.js +67 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/ApiV1ChatsIdArtifactsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md +50 -0
- package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md +42 -0
- package/docs/ChatsApi.md +135 -0
- package/package.json +1 -1
- package/src/apis/ChatsApi.ts +113 -0
- package/src/models/ApiV1ChatsIdArtifactsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.ts +137 -0
- package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts +102 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
|
|
28
|
+
*/
|
|
29
|
+
runId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
|
|
34
|
+
*/
|
|
35
|
+
kind: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
|
|
40
|
+
*/
|
|
41
|
+
payload: object;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
|
|
46
|
+
*/
|
|
47
|
+
position: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner(value: object): value is ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner;
|
|
53
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner;
|
|
54
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner;
|
|
55
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner;
|
|
56
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(value?: ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner = instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner;
|
|
17
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('position' in value) || value['position'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON(json) {
|
|
38
|
+
return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'runId': json['run_id'],
|
|
47
|
+
'kind': json['kind'],
|
|
48
|
+
'payload': json['payload'],
|
|
49
|
+
'position': json['position'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON(json) {
|
|
53
|
+
return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'run_id': value['runId'],
|
|
63
|
+
'kind': value['kind'],
|
|
64
|
+
'payload': value['payload'],
|
|
65
|
+
'position': value['position'],
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
|
@@ -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
|
+
|
|
@@ -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
|
+
|
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 |
|
|
@@ -303,6 +305,71 @@ No authorization required
|
|
|
303
305
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
304
306
|
|
|
305
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
|
+
|
|
306
373
|
## apiV1ChatsIdMessagesMessageIdAttachmentsGet
|
|
307
374
|
|
|
308
375
|
> ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response apiV1ChatsIdMessagesMessageIdAttachmentsGet(id, messageId)
|
|
@@ -579,6 +646,74 @@ No authorization required
|
|
|
579
646
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
580
647
|
|
|
581
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
|
+
|
|
582
717
|
## apiV1ChatsIdRunsRunIdCitationsGet
|
|
583
718
|
|
|
584
719
|
> ApiV1ChatsIdRunsRunIdCitationsGet200Response apiV1ChatsIdRunsRunIdCitationsGet(id, runId)
|
package/package.json
CHANGED
package/src/apis/ChatsApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
ApiV1ChatsChatIdMessagesPostRequest,
|
|
21
21
|
ApiV1ChatsChatIdMessagesSyncGet200Response,
|
|
22
22
|
ApiV1ChatsGet200Response,
|
|
23
|
+
ApiV1ChatsIdArtifactsGet200Response,
|
|
23
24
|
ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response,
|
|
24
25
|
ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response,
|
|
25
26
|
ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest,
|
|
@@ -28,6 +29,7 @@ import type {
|
|
|
28
29
|
ApiV1ChatsIdReportsPost200Response,
|
|
29
30
|
ApiV1ChatsIdReportsPost422Response,
|
|
30
31
|
ApiV1ChatsIdReportsPostRequest,
|
|
32
|
+
ApiV1ChatsIdRunsRunIdArtifactsGet200Response,
|
|
31
33
|
ApiV1ChatsIdRunsRunIdCitationsGet200Response,
|
|
32
34
|
ApiV1ChatsIdRunsRunIdGet200Response,
|
|
33
35
|
ApiV1ChatsIdRunsRunIdRetryPost201Response,
|
|
@@ -53,6 +55,8 @@ import {
|
|
|
53
55
|
ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON,
|
|
54
56
|
ApiV1ChatsGet200ResponseFromJSON,
|
|
55
57
|
ApiV1ChatsGet200ResponseToJSON,
|
|
58
|
+
ApiV1ChatsIdArtifactsGet200ResponseFromJSON,
|
|
59
|
+
ApiV1ChatsIdArtifactsGet200ResponseToJSON,
|
|
56
60
|
ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSON,
|
|
57
61
|
ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSON,
|
|
58
62
|
ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSON,
|
|
@@ -69,6 +73,8 @@ import {
|
|
|
69
73
|
ApiV1ChatsIdReportsPost422ResponseToJSON,
|
|
70
74
|
ApiV1ChatsIdReportsPostRequestFromJSON,
|
|
71
75
|
ApiV1ChatsIdReportsPostRequestToJSON,
|
|
76
|
+
ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON,
|
|
77
|
+
ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON,
|
|
72
78
|
ApiV1ChatsIdRunsRunIdCitationsGet200ResponseFromJSON,
|
|
73
79
|
ApiV1ChatsIdRunsRunIdCitationsGet200ResponseToJSON,
|
|
74
80
|
ApiV1ChatsIdRunsRunIdGet200ResponseFromJSON,
|
|
@@ -119,6 +125,10 @@ export interface ApiV1ChatsGetRequest {
|
|
|
119
125
|
offset?: number;
|
|
120
126
|
}
|
|
121
127
|
|
|
128
|
+
export interface ApiV1ChatsIdArtifactsGetRequest {
|
|
129
|
+
id: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
122
132
|
export interface ApiV1ChatsIdMessagesMessageIdAttachmentsGetRequest {
|
|
123
133
|
id: string;
|
|
124
134
|
messageId: string;
|
|
@@ -140,6 +150,11 @@ export interface ApiV1ChatsIdReportsPostOperationRequest {
|
|
|
140
150
|
apiV1ChatsIdReportsPostRequest?: ApiV1ChatsIdReportsPostRequest;
|
|
141
151
|
}
|
|
142
152
|
|
|
153
|
+
export interface ApiV1ChatsIdRunsRunIdArtifactsGetRequest {
|
|
154
|
+
id: string;
|
|
155
|
+
runId: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
143
158
|
export interface ApiV1ChatsIdRunsRunIdCitationsGetRequest {
|
|
144
159
|
id: string;
|
|
145
160
|
runId: string;
|
|
@@ -381,6 +396,51 @@ export class ChatsApi extends runtime.BaseAPI {
|
|
|
381
396
|
return await response.value();
|
|
382
397
|
}
|
|
383
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Creates request options for apiV1ChatsIdArtifactsGet without sending the request
|
|
401
|
+
*/
|
|
402
|
+
async apiV1ChatsIdArtifactsGetRequestOpts(requestParameters: ApiV1ChatsIdArtifactsGetRequest): Promise<runtime.RequestOpts> {
|
|
403
|
+
if (requestParameters['id'] == null) {
|
|
404
|
+
throw new runtime.RequiredError(
|
|
405
|
+
'id',
|
|
406
|
+
'Required parameter "id" was null or undefined when calling apiV1ChatsIdArtifactsGet().'
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const queryParameters: any = {};
|
|
411
|
+
|
|
412
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
let urlPath = `/api/v1/chats/{id}/artifacts`;
|
|
416
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
417
|
+
|
|
418
|
+
return {
|
|
419
|
+
path: urlPath,
|
|
420
|
+
method: 'GET',
|
|
421
|
+
headers: headerParameters,
|
|
422
|
+
query: queryParameters,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* List artifacts for chat
|
|
428
|
+
*/
|
|
429
|
+
async apiV1ChatsIdArtifactsGetRaw(requestParameters: ApiV1ChatsIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdArtifactsGet200Response>> {
|
|
430
|
+
const requestOptions = await this.apiV1ChatsIdArtifactsGetRequestOpts(requestParameters);
|
|
431
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
432
|
+
|
|
433
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1ChatsIdArtifactsGet200ResponseFromJSON(jsonValue));
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* List artifacts for chat
|
|
438
|
+
*/
|
|
439
|
+
async apiV1ChatsIdArtifactsGet(requestParameters: ApiV1ChatsIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdArtifactsGet200Response> {
|
|
440
|
+
const response = await this.apiV1ChatsIdArtifactsGetRaw(requestParameters, initOverrides);
|
|
441
|
+
return await response.value();
|
|
442
|
+
}
|
|
443
|
+
|
|
384
444
|
/**
|
|
385
445
|
* Creates request options for apiV1ChatsIdMessagesMessageIdAttachmentsGet without sending the request
|
|
386
446
|
*/
|
|
@@ -586,6 +646,59 @@ export class ChatsApi extends runtime.BaseAPI {
|
|
|
586
646
|
return await response.value();
|
|
587
647
|
}
|
|
588
648
|
|
|
649
|
+
/**
|
|
650
|
+
* Creates request options for apiV1ChatsIdRunsRunIdArtifactsGet without sending the request
|
|
651
|
+
*/
|
|
652
|
+
async apiV1ChatsIdRunsRunIdArtifactsGetRequestOpts(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest): Promise<runtime.RequestOpts> {
|
|
653
|
+
if (requestParameters['id'] == null) {
|
|
654
|
+
throw new runtime.RequiredError(
|
|
655
|
+
'id',
|
|
656
|
+
'Required parameter "id" was null or undefined when calling apiV1ChatsIdRunsRunIdArtifactsGet().'
|
|
657
|
+
);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
if (requestParameters['runId'] == null) {
|
|
661
|
+
throw new runtime.RequiredError(
|
|
662
|
+
'runId',
|
|
663
|
+
'Required parameter "runId" was null or undefined when calling apiV1ChatsIdRunsRunIdArtifactsGet().'
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
const queryParameters: any = {};
|
|
668
|
+
|
|
669
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
let urlPath = `/api/v1/chats/{id}/runs/{run_id}/artifacts`;
|
|
673
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
674
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
675
|
+
|
|
676
|
+
return {
|
|
677
|
+
path: urlPath,
|
|
678
|
+
method: 'GET',
|
|
679
|
+
headers: headerParameters,
|
|
680
|
+
query: queryParameters,
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* List artifacts for chat run
|
|
686
|
+
*/
|
|
687
|
+
async apiV1ChatsIdRunsRunIdArtifactsGetRaw(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdRunsRunIdArtifactsGet200Response>> {
|
|
688
|
+
const requestOptions = await this.apiV1ChatsIdRunsRunIdArtifactsGetRequestOpts(requestParameters);
|
|
689
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
690
|
+
|
|
691
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON(jsonValue));
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* List artifacts for chat run
|
|
696
|
+
*/
|
|
697
|
+
async apiV1ChatsIdRunsRunIdArtifactsGet(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdRunsRunIdArtifactsGet200Response> {
|
|
698
|
+
const response = await this.apiV1ChatsIdRunsRunIdArtifactsGetRaw(requestParameters, initOverrides);
|
|
699
|
+
return await response.value();
|
|
700
|
+
}
|
|
701
|
+
|
|
589
702
|
/**
|
|
590
703
|
* Creates request options for apiV1ChatsIdRunsRunIdCitationsGet without sending the request
|
|
591
704
|
*/
|