@testcollab/sdk 3.7.0 → 3.9.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.
- package/.openapi-generator/FILES +16 -0
- package/dist/esm/models/QacConversationFeedback.d.ts +93 -0
- package/dist/esm/models/QacConversationFeedback.js +80 -0
- package/dist/esm/models/QacConversationFeedbackPayload.d.ts +62 -0
- package/dist/esm/models/QacConversationFeedbackPayload.js +63 -0
- package/dist/esm/models/QacConversationMessage.d.ts +135 -0
- package/dist/esm/models/QacConversationMessage.js +105 -0
- package/dist/esm/models/QacConversationMessagePayload.d.ts +88 -0
- package/dist/esm/models/QacConversationMessagePayload.js +71 -0
- package/dist/esm/models/QacConversationThread.d.ts +130 -0
- package/dist/esm/models/QacConversationThread.js +90 -0
- package/dist/esm/models/QacConversationThreadPayload.d.ts +81 -0
- package/dist/esm/models/QacConversationThreadPayload.js +65 -0
- package/dist/esm/models/QacConversationThreadWithMessages.d.ts +40 -0
- package/dist/esm/models/QacConversationThreadWithMessages.js +45 -0
- package/dist/esm/models/QacConversationTokenUsage.d.ts +44 -0
- package/dist/esm/models/QacConversationTokenUsage.js +45 -0
- package/dist/esm/models/SuiteTree.d.ts +0 -6
- package/dist/esm/models/SuiteTree.js +0 -4
- package/dist/esm/models/TrainingArtifactPayload.d.ts +4 -4
- package/dist/esm/models/TrainingArtifactPayload.js +4 -4
- package/dist/esm/models/TrainingSession.d.ts +1 -0
- package/dist/esm/models/TrainingSession.js +2 -1
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/QacConversationFeedback.d.ts +93 -0
- package/dist/models/QacConversationFeedback.js +88 -0
- package/dist/models/QacConversationFeedbackPayload.d.ts +62 -0
- package/dist/models/QacConversationFeedbackPayload.js +71 -0
- package/dist/models/QacConversationMessage.d.ts +135 -0
- package/dist/models/QacConversationMessage.js +113 -0
- package/dist/models/QacConversationMessagePayload.d.ts +88 -0
- package/dist/models/QacConversationMessagePayload.js +79 -0
- package/dist/models/QacConversationThread.d.ts +130 -0
- package/dist/models/QacConversationThread.js +98 -0
- package/dist/models/QacConversationThreadPayload.d.ts +81 -0
- package/dist/models/QacConversationThreadPayload.js +73 -0
- package/dist/models/QacConversationThreadWithMessages.d.ts +40 -0
- package/dist/models/QacConversationThreadWithMessages.js +52 -0
- package/dist/models/QacConversationTokenUsage.d.ts +44 -0
- package/dist/models/QacConversationTokenUsage.js +52 -0
- package/dist/models/SuiteTree.d.ts +0 -6
- package/dist/models/SuiteTree.js +0 -4
- package/dist/models/TrainingArtifactPayload.d.ts +4 -4
- package/dist/models/TrainingArtifactPayload.js +4 -4
- package/dist/models/TrainingSession.d.ts +1 -0
- package/dist/models/TrainingSession.js +2 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/QacConversationFeedback.md +48 -0
- package/docs/QacConversationFeedbackPayload.md +38 -0
- package/docs/QacConversationMessage.md +58 -0
- package/docs/QacConversationMessagePayload.md +46 -0
- package/docs/QacConversationThread.md +62 -0
- package/docs/QacConversationThreadPayload.md +46 -0
- package/docs/QacConversationThreadWithMessages.md +36 -0
- package/docs/QacConversationTokenUsage.md +38 -0
- package/docs/SuiteTree.md +0 -2
- package/docs/TrainingArtifactPayload.md +2 -2
- package/package.json +1 -1
- package/src/models/QacConversationFeedback.ts +155 -0
- package/src/models/QacConversationFeedbackPayload.ts +104 -0
- package/src/models/QacConversationMessage.ts +222 -0
- package/src/models/QacConversationMessagePayload.ts +136 -0
- package/src/models/QacConversationThread.ts +203 -0
- package/src/models/QacConversationThreadPayload.ts +127 -0
- package/src/models/QacConversationThreadWithMessages.ts +88 -0
- package/src/models/QacConversationTokenUsage.ts +81 -0
- package/src/models/SuiteTree.ts +0 -9
- package/src/models/TrainingArtifactPayload.ts +8 -8
- package/src/models/TrainingSession.ts +2 -1
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* TC API
|
|
6
|
+
* TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.3.1
|
|
9
|
+
* Contact: support@testcollab.com
|
|
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.QacConversationThreadPayloadStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfQacConversationThreadPayload = instanceOfQacConversationThreadPayload;
|
|
18
|
+
exports.QacConversationThreadPayloadFromJSON = QacConversationThreadPayloadFromJSON;
|
|
19
|
+
exports.QacConversationThreadPayloadFromJSONTyped = QacConversationThreadPayloadFromJSONTyped;
|
|
20
|
+
exports.QacConversationThreadPayloadToJSON = QacConversationThreadPayloadToJSON;
|
|
21
|
+
exports.QacConversationThreadPayloadToJSONTyped = QacConversationThreadPayloadToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.QacConversationThreadPayloadStatusEnum = {
|
|
26
|
+
Open: 'open',
|
|
27
|
+
Closed: 'closed',
|
|
28
|
+
Archived: 'archived'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the QacConversationThreadPayload interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfQacConversationThreadPayload(value) {
|
|
34
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('sourceUrl' in value) || value['sourceUrl'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function QacConversationThreadPayloadFromJSON(json) {
|
|
41
|
+
return QacConversationThreadPayloadFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function QacConversationThreadPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'project': json['project'] == null ? undefined : json['project'],
|
|
49
|
+
'company': json['company'],
|
|
50
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
51
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
52
|
+
'sourceUrl': json['source_url'],
|
|
53
|
+
'contextRefs': json['context_refs'] == null ? undefined : json['context_refs'],
|
|
54
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function QacConversationThreadPayloadToJSON(json) {
|
|
58
|
+
return QacConversationThreadPayloadToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function QacConversationThreadPayloadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'project': value['project'],
|
|
66
|
+
'company': value['company'],
|
|
67
|
+
'title': value['title'],
|
|
68
|
+
'status': value['status'],
|
|
69
|
+
'source_url': value['sourceUrl'],
|
|
70
|
+
'context_refs': value['contextRefs'],
|
|
71
|
+
'metadata': value['metadata'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TC API
|
|
3
|
+
* TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.3.1
|
|
6
|
+
* Contact: support@testcollab.com
|
|
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
|
+
import type { QacConversationThread } from './QacConversationThread';
|
|
13
|
+
import type { QacConversationMessage } from './QacConversationMessage';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface QacConversationThreadWithMessages
|
|
18
|
+
*/
|
|
19
|
+
export interface QacConversationThreadWithMessages {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {QacConversationThread}
|
|
23
|
+
* @memberof QacConversationThreadWithMessages
|
|
24
|
+
*/
|
|
25
|
+
thread?: QacConversationThread;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<QacConversationMessage>}
|
|
29
|
+
* @memberof QacConversationThreadWithMessages
|
|
30
|
+
*/
|
|
31
|
+
messages?: Array<QacConversationMessage>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the QacConversationThreadWithMessages interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfQacConversationThreadWithMessages(value: object): value is QacConversationThreadWithMessages;
|
|
37
|
+
export declare function QacConversationThreadWithMessagesFromJSON(json: any): QacConversationThreadWithMessages;
|
|
38
|
+
export declare function QacConversationThreadWithMessagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): QacConversationThreadWithMessages;
|
|
39
|
+
export declare function QacConversationThreadWithMessagesToJSON(json: any): QacConversationThreadWithMessages;
|
|
40
|
+
export declare function QacConversationThreadWithMessagesToJSONTyped(value?: QacConversationThreadWithMessages | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* TC API
|
|
6
|
+
* TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.3.1
|
|
9
|
+
* Contact: support@testcollab.com
|
|
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.instanceOfQacConversationThreadWithMessages = instanceOfQacConversationThreadWithMessages;
|
|
17
|
+
exports.QacConversationThreadWithMessagesFromJSON = QacConversationThreadWithMessagesFromJSON;
|
|
18
|
+
exports.QacConversationThreadWithMessagesFromJSONTyped = QacConversationThreadWithMessagesFromJSONTyped;
|
|
19
|
+
exports.QacConversationThreadWithMessagesToJSON = QacConversationThreadWithMessagesToJSON;
|
|
20
|
+
exports.QacConversationThreadWithMessagesToJSONTyped = QacConversationThreadWithMessagesToJSONTyped;
|
|
21
|
+
const QacConversationThread_1 = require("./QacConversationThread");
|
|
22
|
+
const QacConversationMessage_1 = require("./QacConversationMessage");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the QacConversationThreadWithMessages interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfQacConversationThreadWithMessages(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function QacConversationThreadWithMessagesFromJSON(json) {
|
|
30
|
+
return QacConversationThreadWithMessagesFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function QacConversationThreadWithMessagesFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'thread': json['thread'] == null ? undefined : (0, QacConversationThread_1.QacConversationThreadFromJSON)(json['thread']),
|
|
38
|
+
'messages': json['messages'] == null ? undefined : (json['messages'].map(QacConversationMessage_1.QacConversationMessageFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function QacConversationThreadWithMessagesToJSON(json) {
|
|
42
|
+
return QacConversationThreadWithMessagesToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function QacConversationThreadWithMessagesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'thread': (0, QacConversationThread_1.QacConversationThreadToJSON)(value['thread']),
|
|
50
|
+
'messages': value['messages'] == null ? undefined : (value['messages'].map(QacConversationMessage_1.QacConversationMessageToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TC API
|
|
3
|
+
* TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.3.1
|
|
6
|
+
* Contact: support@testcollab.com
|
|
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 QacConversationTokenUsage
|
|
16
|
+
*/
|
|
17
|
+
export interface QacConversationTokenUsage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof QacConversationTokenUsage
|
|
22
|
+
*/
|
|
23
|
+
promptTokens?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof QacConversationTokenUsage
|
|
28
|
+
*/
|
|
29
|
+
completionTokens?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof QacConversationTokenUsage
|
|
34
|
+
*/
|
|
35
|
+
totalTokens?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the QacConversationTokenUsage interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfQacConversationTokenUsage(value: object): value is QacConversationTokenUsage;
|
|
41
|
+
export declare function QacConversationTokenUsageFromJSON(json: any): QacConversationTokenUsage;
|
|
42
|
+
export declare function QacConversationTokenUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): QacConversationTokenUsage;
|
|
43
|
+
export declare function QacConversationTokenUsageToJSON(json: any): QacConversationTokenUsage;
|
|
44
|
+
export declare function QacConversationTokenUsageToJSONTyped(value?: QacConversationTokenUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* TC API
|
|
6
|
+
* TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.3.1
|
|
9
|
+
* Contact: support@testcollab.com
|
|
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.instanceOfQacConversationTokenUsage = instanceOfQacConversationTokenUsage;
|
|
17
|
+
exports.QacConversationTokenUsageFromJSON = QacConversationTokenUsageFromJSON;
|
|
18
|
+
exports.QacConversationTokenUsageFromJSONTyped = QacConversationTokenUsageFromJSONTyped;
|
|
19
|
+
exports.QacConversationTokenUsageToJSON = QacConversationTokenUsageToJSON;
|
|
20
|
+
exports.QacConversationTokenUsageToJSONTyped = QacConversationTokenUsageToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the QacConversationTokenUsage interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfQacConversationTokenUsage(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function QacConversationTokenUsageFromJSON(json) {
|
|
28
|
+
return QacConversationTokenUsageFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function QacConversationTokenUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'promptTokens': json['prompt_tokens'] == null ? undefined : json['prompt_tokens'],
|
|
36
|
+
'completionTokens': json['completion_tokens'] == null ? undefined : json['completion_tokens'],
|
|
37
|
+
'totalTokens': json['total_tokens'] == null ? undefined : json['total_tokens'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function QacConversationTokenUsageToJSON(json) {
|
|
41
|
+
return QacConversationTokenUsageToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function QacConversationTokenUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'prompt_tokens': value['promptTokens'],
|
|
49
|
+
'completion_tokens': value['completionTokens'],
|
|
50
|
+
'total_tokens': value['totalTokens'],
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/SuiteTree.js
CHANGED
|
@@ -26,8 +26,6 @@ function instanceOfSuiteTree(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('title' in value) || value['title'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('testcasecount' in value) || value['testcasecount'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('children' in value) || value['children'] === undefined)
|
|
@@ -44,7 +42,6 @@ function SuiteTreeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
return {
|
|
45
43
|
'id': json['id'],
|
|
46
44
|
'title': json['title'],
|
|
47
|
-
'description': json['description'],
|
|
48
45
|
'suitecount': json['suitecount'] == null ? undefined : json['suitecount'],
|
|
49
46
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
50
47
|
'testcasecount': json['testcasecount'],
|
|
@@ -66,7 +63,6 @@ function SuiteTreeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
63
|
return {
|
|
67
64
|
'id': value['id'],
|
|
68
65
|
'title': value['title'],
|
|
69
|
-
'description': value['description'],
|
|
70
66
|
'suitecount': value['suitecount'],
|
|
71
67
|
'created_by': value['createdBy'],
|
|
72
68
|
'testcasecount': value['testcasecount'],
|
|
@@ -71,10 +71,10 @@ export interface TrainingArtifactPayload {
|
|
|
71
71
|
imgThumb?: string;
|
|
72
72
|
/**
|
|
73
73
|
* Timestamp when the action was executed
|
|
74
|
-
* @type {
|
|
74
|
+
* @type {string}
|
|
75
75
|
* @memberof TrainingArtifactPayload
|
|
76
76
|
*/
|
|
77
|
-
timestamp?:
|
|
77
|
+
timestamp?: string;
|
|
78
78
|
/**
|
|
79
79
|
* Browser URL captured for the artifact
|
|
80
80
|
* @type {string}
|
|
@@ -91,10 +91,10 @@ export interface TrainingArtifactPayload {
|
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
93
|
* Optional override for the artifact creation timestamp
|
|
94
|
-
* @type {
|
|
94
|
+
* @type {string}
|
|
95
95
|
* @memberof TrainingArtifactPayload
|
|
96
96
|
*/
|
|
97
|
-
created?:
|
|
97
|
+
created?: string;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* @export
|
|
@@ -64,10 +64,10 @@ function TrainingArtifactPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'subStepTxt': json['sub_step_txt'] == null ? undefined : json['sub_step_txt'],
|
|
65
65
|
'imgFull': json['img_full'] == null ? undefined : json['img_full'],
|
|
66
66
|
'imgThumb': json['img_thumb'] == null ? undefined : json['img_thumb'],
|
|
67
|
-
'timestamp': json['timestamp'] == null ? undefined :
|
|
67
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
68
68
|
'browserLocation': json['browser_location'] == null ? undefined : json['browser_location'],
|
|
69
69
|
'otherInfoJson': json['other_info_json'] == null ? undefined : json['other_info_json'],
|
|
70
|
-
'created': json['created'] == null ? undefined :
|
|
70
|
+
'created': json['created'] == null ? undefined : json['created'],
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
function TrainingArtifactPayloadToJSON(json) {
|
|
@@ -87,9 +87,9 @@ function TrainingArtifactPayloadToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
87
87
|
'sub_step_txt': value['subStepTxt'],
|
|
88
88
|
'img_full': value['imgFull'],
|
|
89
89
|
'img_thumb': value['imgThumb'],
|
|
90
|
-
'timestamp': value['timestamp']
|
|
90
|
+
'timestamp': value['timestamp'],
|
|
91
91
|
'browser_location': value['browserLocation'],
|
|
92
92
|
'other_info_json': value['otherInfoJson'],
|
|
93
|
-
'created': value['created']
|
|
93
|
+
'created': value['created'],
|
|
94
94
|
};
|
|
95
95
|
}
|
|
@@ -123,6 +123,7 @@ export declare const TrainingSessionStatusEnum: {
|
|
|
123
123
|
readonly Inprogress: "inprogress";
|
|
124
124
|
readonly Ready: "ready";
|
|
125
125
|
readonly Failed: "failed";
|
|
126
|
+
readonly Stopped: "stopped";
|
|
126
127
|
};
|
|
127
128
|
export type TrainingSessionStatusEnum = typeof TrainingSessionStatusEnum[keyof typeof TrainingSessionStatusEnum];
|
|
128
129
|
/**
|
package/dist/models/index.d.ts
CHANGED
|
@@ -157,6 +157,14 @@ export * from './Projectsetting';
|
|
|
157
157
|
export * from './ProjectsettingMini';
|
|
158
158
|
export * from './ProjectsettingPayload';
|
|
159
159
|
export * from './QACCustomHeader';
|
|
160
|
+
export * from './QacConversationFeedback';
|
|
161
|
+
export * from './QacConversationFeedbackPayload';
|
|
162
|
+
export * from './QacConversationMessage';
|
|
163
|
+
export * from './QacConversationMessagePayload';
|
|
164
|
+
export * from './QacConversationThread';
|
|
165
|
+
export * from './QacConversationThreadPayload';
|
|
166
|
+
export * from './QacConversationThreadWithMessages';
|
|
167
|
+
export * from './QacConversationTokenUsage';
|
|
160
168
|
export * from './Queue';
|
|
161
169
|
export * from './QueuePayload';
|
|
162
170
|
export * from './QueueStatus';
|
package/dist/models/index.js
CHANGED
|
@@ -175,6 +175,14 @@ __exportStar(require("./Projectsetting"), exports);
|
|
|
175
175
|
__exportStar(require("./ProjectsettingMini"), exports);
|
|
176
176
|
__exportStar(require("./ProjectsettingPayload"), exports);
|
|
177
177
|
__exportStar(require("./QACCustomHeader"), exports);
|
|
178
|
+
__exportStar(require("./QacConversationFeedback"), exports);
|
|
179
|
+
__exportStar(require("./QacConversationFeedbackPayload"), exports);
|
|
180
|
+
__exportStar(require("./QacConversationMessage"), exports);
|
|
181
|
+
__exportStar(require("./QacConversationMessagePayload"), exports);
|
|
182
|
+
__exportStar(require("./QacConversationThread"), exports);
|
|
183
|
+
__exportStar(require("./QacConversationThreadPayload"), exports);
|
|
184
|
+
__exportStar(require("./QacConversationThreadWithMessages"), exports);
|
|
185
|
+
__exportStar(require("./QacConversationTokenUsage"), exports);
|
|
178
186
|
__exportStar(require("./Queue"), exports);
|
|
179
187
|
__exportStar(require("./QueuePayload"), exports);
|
|
180
188
|
__exportStar(require("./QueueStatus"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# QacConversationFeedback
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`message` | number
|
|
11
|
+
`givenBy` | [UserMinified](UserMinified.md)
|
|
12
|
+
`rating` | string
|
|
13
|
+
`reason` | string
|
|
14
|
+
`comment` | string
|
|
15
|
+
`createdAt` | string
|
|
16
|
+
`updatedAt` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { QacConversationFeedback } from '@testcollab/sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"id": 5,
|
|
26
|
+
"message": 120,
|
|
27
|
+
"givenBy": null,
|
|
28
|
+
"rating": up,
|
|
29
|
+
"reason": irrelevant,
|
|
30
|
+
"comment": The suggestion missed mobile edge cases.,
|
|
31
|
+
"createdAt": 2019-04-30T17:11:24.000Z,
|
|
32
|
+
"updatedAt": 2019-04-30T17:11:24.000Z,
|
|
33
|
+
} satisfies QacConversationFeedback
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as QacConversationFeedback
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# QacConversationFeedbackPayload
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`rating` | string
|
|
10
|
+
`reason` | string
|
|
11
|
+
`comment` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { QacConversationFeedbackPayload } from '@testcollab/sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"rating": up,
|
|
21
|
+
"reason": irrelevant,
|
|
22
|
+
"comment": The response missed device coverage.,
|
|
23
|
+
} satisfies QacConversationFeedbackPayload
|
|
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 QacConversationFeedbackPayload
|
|
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,58 @@
|
|
|
1
|
+
|
|
2
|
+
# QacConversationMessage
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`thread` | number
|
|
11
|
+
`authorType` | string
|
|
12
|
+
`author` | [UserMinified](UserMinified.md)
|
|
13
|
+
`role` | string
|
|
14
|
+
`content` | string
|
|
15
|
+
`contentHtml` | string
|
|
16
|
+
`attachments` | [Array<Upload>](Upload.md)
|
|
17
|
+
`status` | string
|
|
18
|
+
`errorReason` | string
|
|
19
|
+
`tokenUsage` | [QacConversationTokenUsage](QacConversationTokenUsage.md)
|
|
20
|
+
`createdAt` | string
|
|
21
|
+
`updatedAt` | string
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { QacConversationMessage } from '@testcollab/sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"id": 120,
|
|
31
|
+
"thread": 45,
|
|
32
|
+
"authorType": user,
|
|
33
|
+
"author": null,
|
|
34
|
+
"role": assistant,
|
|
35
|
+
"content": Here are the steps to reproduce the issue.,
|
|
36
|
+
"contentHtml": <p>Here are the steps to reproduce the issue.</p>,
|
|
37
|
+
"attachments": null,
|
|
38
|
+
"status": completed,
|
|
39
|
+
"errorReason": LLM request failed,
|
|
40
|
+
"tokenUsage": null,
|
|
41
|
+
"createdAt": 2019-04-30T17:11:24.000Z,
|
|
42
|
+
"updatedAt": 2019-04-30T17:11:24.000Z,
|
|
43
|
+
} satisfies QacConversationMessage
|
|
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 QacConversationMessage
|
|
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,46 @@
|
|
|
1
|
+
|
|
2
|
+
# QacConversationMessagePayload
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`thread` | number
|
|
10
|
+
`authorType` | string
|
|
11
|
+
`role` | string
|
|
12
|
+
`content` | string
|
|
13
|
+
`contentHtml` | string
|
|
14
|
+
`attachments` | Array<number>
|
|
15
|
+
`metadata` | { [key: string]: any; }
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { QacConversationMessagePayload } from '@testcollab/sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"thread": 45,
|
|
25
|
+
"authorType": user,
|
|
26
|
+
"role": assistant,
|
|
27
|
+
"content": Draft a regression test outline for checkout.,
|
|
28
|
+
"contentHtml": <p>Draft a regression test outline for checkout.</p>,
|
|
29
|
+
"attachments": null,
|
|
30
|
+
"metadata": null,
|
|
31
|
+
} satisfies QacConversationMessagePayload
|
|
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 QacConversationMessagePayload
|
|
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
|
+
|