@cairul/sdk 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/dist/generated/apis/DocumentationApi.d.ts +41 -0
- package/dist/generated/apis/DocumentationApi.js +76 -0
- package/dist/generated/apis/HealthApi.d.ts +30 -0
- package/dist/generated/apis/HealthApi.js +49 -0
- package/dist/generated/apis/IdentitiesApi.d.ts +36 -0
- package/dist/generated/apis/IdentitiesApi.js +53 -0
- package/dist/generated/apis/JourneysApi.d.ts +161 -0
- package/dist/generated/apis/JourneysApi.js +268 -0
- package/dist/generated/apis/PlansApi.d.ts +73 -0
- package/dist/generated/apis/PlansApi.js +121 -0
- package/dist/generated/apis/index.d.ts +5 -0
- package/dist/generated/apis/index.js +7 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.js +5 -0
- package/dist/generated/models/APIError.d.ts +30 -0
- package/dist/generated/models/APIError.js +43 -0
- package/dist/generated/models/ApiHealth.d.ts +30 -0
- package/dist/generated/models/ApiHealth.js +43 -0
- package/dist/generated/models/CapturePolicy.d.ts +47 -0
- package/dist/generated/models/CapturePolicy.js +53 -0
- package/dist/generated/models/Check.d.ts +39 -0
- package/dist/generated/models/Check.js +52 -0
- package/dist/generated/models/CheckAction.d.ts +43 -0
- package/dist/generated/models/CheckAction.js +50 -0
- package/dist/generated/models/CheckInput.d.ts +35 -0
- package/dist/generated/models/CheckInput.js +48 -0
- package/dist/generated/models/EventPublication.d.ts +60 -0
- package/dist/generated/models/EventPublication.js +64 -0
- package/dist/generated/models/ExecutionObservation.d.ts +56 -0
- package/dist/generated/models/ExecutionObservation.js +73 -0
- package/dist/generated/models/HarnessIdentity.d.ts +42 -0
- package/dist/generated/models/HarnessIdentity.js +57 -0
- package/dist/generated/models/Identity.d.ts +58 -0
- package/dist/generated/models/Identity.js +61 -0
- package/dist/generated/models/JournalEntry.d.ts +75 -0
- package/dist/generated/models/JournalEntry.js +88 -0
- package/dist/generated/models/Journey.d.ts +85 -0
- package/dist/generated/models/Journey.js +113 -0
- package/dist/generated/models/MCPRequestObservation.d.ts +50 -0
- package/dist/generated/models/MCPRequestObservation.js +66 -0
- package/dist/generated/models/ModelObservation.d.ts +47 -0
- package/dist/generated/models/ModelObservation.js +58 -0
- package/dist/generated/models/ObservationBatch.d.ts +40 -0
- package/dist/generated/models/ObservationBatch.js +55 -0
- package/dist/generated/models/ObservationEvent.d.ts +66 -0
- package/dist/generated/models/ObservationEvent.js +74 -0
- package/dist/generated/models/Phase.d.ts +39 -0
- package/dist/generated/models/Phase.js +52 -0
- package/dist/generated/models/PhaseInput.d.ts +35 -0
- package/dist/generated/models/PhaseInput.js +48 -0
- package/dist/generated/models/Plan.d.ts +55 -0
- package/dist/generated/models/Plan.js +70 -0
- package/dist/generated/models/PlanInput.d.ts +39 -0
- package/dist/generated/models/PlanInput.js +52 -0
- package/dist/generated/models/PublicationResult.d.ts +35 -0
- package/dist/generated/models/PublicationResult.js +46 -0
- package/dist/generated/models/RecordingEndObservation.d.ts +52 -0
- package/dist/generated/models/RecordingEndObservation.js +67 -0
- package/dist/generated/models/RecordingStartObservation.d.ts +35 -0
- package/dist/generated/models/RecordingStartObservation.js +48 -0
- package/dist/generated/models/StartJourneyInput.d.ts +59 -0
- package/dist/generated/models/StartJourneyInput.js +64 -0
- package/dist/generated/models/StartedJourney.d.ts +40 -0
- package/dist/generated/models/StartedJourney.js +55 -0
- package/dist/generated/models/TokenUsage.d.ts +46 -0
- package/dist/generated/models/TokenUsage.js +49 -0
- package/dist/generated/models/ToolObservation.d.ts +64 -0
- package/dist/generated/models/ToolObservation.js +73 -0
- package/dist/generated/models/WorkflowActionType.d.ts +29 -0
- package/dist/generated/models/WorkflowActionType.js +47 -0
- package/dist/generated/models/WorkflowJourneyStatus.d.ts +26 -0
- package/dist/generated/models/WorkflowJourneyStatus.js +44 -0
- package/dist/generated/models/index.d.ts +29 -0
- package/dist/generated/models/index.js +31 -0
- package/dist/generated/runtime.d.ts +217 -0
- package/dist/generated/runtime.js +455 -0
- package/package.json +23 -3
- package/README.md +0 -3
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cairul API
|
|
5
|
+
* Backend API for Cairul.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const CapturePolicyModeEnum = {
|
|
18
|
+
All: 'all',
|
|
19
|
+
FailedTools: 'failed_tools',
|
|
20
|
+
None: 'none',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CapturePolicy interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfCapturePolicy(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function CapturePolicyFromJSON(json) {
|
|
29
|
+
return CapturePolicyFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function CapturePolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
mode: json['mode'] == null ? undefined : json['mode'],
|
|
37
|
+
toolNames: json['tool_names'] == null ? undefined : json['tool_names'],
|
|
38
|
+
version: json['version'] == null ? undefined : json['version'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function CapturePolicyToJSON(json) {
|
|
42
|
+
return CapturePolicyToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function CapturePolicyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
mode: value['mode'],
|
|
50
|
+
tool_names: value['toolNames'],
|
|
51
|
+
version: value['version'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cairul API
|
|
3
|
+
* Backend API for Cairul.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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
|
+
import type { CheckAction } from './CheckAction.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Check
|
|
17
|
+
*/
|
|
18
|
+
export interface Check {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
action: CheckAction;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the Check interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCheck(value: object): value is Check;
|
|
36
|
+
export declare function CheckFromJSON(json: any): Check;
|
|
37
|
+
export declare function CheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): Check;
|
|
38
|
+
export declare function CheckToJSON(json: any): Check;
|
|
39
|
+
export declare function CheckToJSONTyped(value?: Check | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cairul API
|
|
5
|
+
* Backend API for Cairul.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CheckActionFromJSON, CheckActionToJSON, } from './CheckAction.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Check interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCheck(value) {
|
|
19
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function CheckFromJSON(json) {
|
|
28
|
+
return CheckFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function CheckFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
action: CheckActionFromJSON(json['action']),
|
|
36
|
+
id: json['id'],
|
|
37
|
+
name: json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function CheckToJSON(json) {
|
|
41
|
+
return CheckToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function CheckToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
action: CheckActionToJSON(value['action']),
|
|
49
|
+
id: value['id'],
|
|
50
|
+
name: value['name'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cairul API
|
|
3
|
+
* Backend API for Cairul.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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
|
+
import type { WorkflowActionType } from './WorkflowActionType.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CheckAction
|
|
17
|
+
*/
|
|
18
|
+
export interface CheckAction {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
delaySeconds?: number;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
instructions?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
options?: object;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
type: WorkflowActionType;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CheckAction interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfCheckAction(value: object): value is CheckAction;
|
|
40
|
+
export declare function CheckActionFromJSON(json: any): CheckAction;
|
|
41
|
+
export declare function CheckActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckAction;
|
|
42
|
+
export declare function CheckActionToJSON(json: any): CheckAction;
|
|
43
|
+
export declare function CheckActionToJSONTyped(value?: CheckAction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cairul API
|
|
5
|
+
* Backend API for Cairul.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { WorkflowActionTypeFromJSON, WorkflowActionTypeToJSON, } from './WorkflowActionType.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CheckAction interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCheckAction(value) {
|
|
19
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function CheckActionFromJSON(json) {
|
|
24
|
+
return CheckActionFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function CheckActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
delaySeconds: json['delay_seconds'] == null ? undefined : json['delay_seconds'],
|
|
32
|
+
instructions: json['instructions'] == null ? undefined : json['instructions'],
|
|
33
|
+
options: json['options'] == null ? undefined : json['options'],
|
|
34
|
+
type: WorkflowActionTypeFromJSON(json['type']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function CheckActionToJSON(json) {
|
|
38
|
+
return CheckActionToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function CheckActionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
delay_seconds: value['delaySeconds'],
|
|
46
|
+
instructions: value['instructions'],
|
|
47
|
+
options: value['options'],
|
|
48
|
+
type: WorkflowActionTypeToJSON(value['type']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cairul API
|
|
3
|
+
* Backend API for Cairul.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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
|
+
import type { CheckAction } from './CheckAction.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CheckInput
|
|
17
|
+
*/
|
|
18
|
+
export interface CheckInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
action: CheckAction;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CheckInput interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfCheckInput(value: object): value is CheckInput;
|
|
32
|
+
export declare function CheckInputFromJSON(json: any): CheckInput;
|
|
33
|
+
export declare function CheckInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckInput;
|
|
34
|
+
export declare function CheckInputToJSON(json: any): CheckInput;
|
|
35
|
+
export declare function CheckInputToJSONTyped(value?: CheckInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cairul API
|
|
5
|
+
* Backend API for Cairul.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CheckActionFromJSON, CheckActionToJSON, } from './CheckAction.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CheckInput interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCheckInput(value) {
|
|
19
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function CheckInputFromJSON(json) {
|
|
26
|
+
return CheckInputFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function CheckInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
action: CheckActionFromJSON(json['action']),
|
|
34
|
+
name: json['name'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function CheckInputToJSON(json) {
|
|
38
|
+
return CheckInputToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function CheckInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
action: CheckActionToJSON(value['action']),
|
|
46
|
+
name: value['name'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cairul API
|
|
3
|
+
* Backend API for Cairul.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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
|
+
import type { StartJourneyInput } from './StartJourneyInput.js';
|
|
13
|
+
import type { ObservationBatch } from './ObservationBatch.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface EventPublication
|
|
18
|
+
*/
|
|
19
|
+
export interface EventPublication {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
journeyId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
observations?: ObservationBatch;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
start?: StartJourneyInput;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
type: EventPublicationTypeEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
version: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const EventPublicationTypeEnum: {
|
|
49
|
+
readonly JourneyStart: "journey.start";
|
|
50
|
+
readonly JourneyObservations: "journey.observations";
|
|
51
|
+
};
|
|
52
|
+
export type EventPublicationTypeEnum = (typeof EventPublicationTypeEnum)[keyof typeof EventPublicationTypeEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the EventPublication interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfEventPublication(value: object): value is EventPublication;
|
|
57
|
+
export declare function EventPublicationFromJSON(json: any): EventPublication;
|
|
58
|
+
export declare function EventPublicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventPublication;
|
|
59
|
+
export declare function EventPublicationToJSON(json: any): EventPublication;
|
|
60
|
+
export declare function EventPublicationToJSONTyped(value?: EventPublication | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cairul API
|
|
5
|
+
* Backend API for Cairul.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { StartJourneyInputFromJSON, StartJourneyInputToJSON, } from './StartJourneyInput.js';
|
|
15
|
+
import { ObservationBatchFromJSON, ObservationBatchToJSON, } from './ObservationBatch.js';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const EventPublicationTypeEnum = {
|
|
20
|
+
JourneyStart: 'journey.start',
|
|
21
|
+
JourneyObservations: 'journey.observations',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EventPublication interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfEventPublication(value) {
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function EventPublicationFromJSON(json) {
|
|
34
|
+
return EventPublicationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function EventPublicationFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
id: json['id'] == null ? undefined : json['id'],
|
|
42
|
+
journeyId: json['journey_id'] == null ? undefined : json['journey_id'],
|
|
43
|
+
observations: json['observations'] == null ? undefined : ObservationBatchFromJSON(json['observations']),
|
|
44
|
+
start: json['start'] == null ? undefined : StartJourneyInputFromJSON(json['start']),
|
|
45
|
+
type: json['type'],
|
|
46
|
+
version: json['version'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function EventPublicationToJSON(json) {
|
|
50
|
+
return EventPublicationToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function EventPublicationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
id: value['id'],
|
|
58
|
+
journey_id: value['journeyId'],
|
|
59
|
+
observations: ObservationBatchToJSON(value['observations']),
|
|
60
|
+
start: StartJourneyInputToJSON(value['start']),
|
|
61
|
+
type: value['type'],
|
|
62
|
+
version: value['version'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cairul API
|
|
3
|
+
* Backend API for Cairul.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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
|
+
import type { ToolObservation } from './ToolObservation.js';
|
|
13
|
+
import type { ModelObservation } from './ModelObservation.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ExecutionObservation
|
|
18
|
+
*/
|
|
19
|
+
export interface ExecutionObservation {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
endReason: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
model?: ModelObservation;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
observedStartedAt: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
partial: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
tools: Array<ToolObservation>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
turnId: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ExecutionObservation interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfExecutionObservation(value: object): value is ExecutionObservation;
|
|
53
|
+
export declare function ExecutionObservationFromJSON(json: any): ExecutionObservation;
|
|
54
|
+
export declare function ExecutionObservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionObservation;
|
|
55
|
+
export declare function ExecutionObservationToJSON(json: any): ExecutionObservation;
|
|
56
|
+
export declare function ExecutionObservationToJSONTyped(value?: ExecutionObservation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cairul API
|
|
5
|
+
* Backend API for Cairul.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ToolObservationFromJSON, ToolObservationToJSON, } from './ToolObservation.js';
|
|
15
|
+
import { ModelObservationFromJSON, ModelObservationToJSON, } from './ModelObservation.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ExecutionObservation interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfExecutionObservation(value) {
|
|
20
|
+
if ((!('endReason' in value) && !('end_reason' in value)) ||
|
|
21
|
+
(value['endReason'] === undefined &&
|
|
22
|
+
value['end_reason'] === undefined))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if ((!('observedStartedAt' in value) &&
|
|
27
|
+
!('observed_started_at' in value)) ||
|
|
28
|
+
(value['observedStartedAt'] === undefined &&
|
|
29
|
+
value['observed_started_at'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('partial' in value) || value['partial'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('tools' in value) || value['tools'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('turnId' in value) && !('turn_id' in value)) ||
|
|
36
|
+
(value['turnId'] === undefined && value['turn_id'] === undefined))
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function ExecutionObservationFromJSON(json) {
|
|
41
|
+
return ExecutionObservationFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function ExecutionObservationFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
endReason: json['end_reason'],
|
|
49
|
+
id: json['id'],
|
|
50
|
+
model: json['model'] == null ? undefined : ModelObservationFromJSON(json['model']),
|
|
51
|
+
observedStartedAt: json['observed_started_at'],
|
|
52
|
+
partial: json['partial'],
|
|
53
|
+
tools: json['tools'].map(ToolObservationFromJSON),
|
|
54
|
+
turnId: json['turn_id'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export function ExecutionObservationToJSON(json) {
|
|
58
|
+
return ExecutionObservationToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function ExecutionObservationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
end_reason: value['endReason'],
|
|
66
|
+
id: value['id'],
|
|
67
|
+
model: ModelObservationToJSON(value['model']),
|
|
68
|
+
observed_started_at: value['observedStartedAt'],
|
|
69
|
+
partial: value['partial'],
|
|
70
|
+
tools: value['tools'].map(ToolObservationToJSON),
|
|
71
|
+
turn_id: value['turnId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cairul API
|
|
3
|
+
* Backend API for Cairul.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 HarnessIdentity
|
|
16
|
+
*/
|
|
17
|
+
export interface HarnessIdentity {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
sessionId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
threadId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
version?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the HarnessIdentity interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfHarnessIdentity(value: object): value is HarnessIdentity;
|
|
39
|
+
export declare function HarnessIdentityFromJSON(json: any): HarnessIdentity;
|
|
40
|
+
export declare function HarnessIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): HarnessIdentity;
|
|
41
|
+
export declare function HarnessIdentityToJSON(json: any): HarnessIdentity;
|
|
42
|
+
export declare function HarnessIdentityToJSONTyped(value?: HarnessIdentity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cairul API
|
|
5
|
+
* Backend API for Cairul.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the HarnessIdentity interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHarnessIdentity(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('sessionId' in value) && !('session_id' in value)) ||
|
|
21
|
+
(value['sessionId'] === undefined &&
|
|
22
|
+
value['session_id'] === undefined))
|
|
23
|
+
return false;
|
|
24
|
+
if ((!('threadId' in value) && !('thread_id' in value)) ||
|
|
25
|
+
(value['threadId'] === undefined &&
|
|
26
|
+
value['thread_id'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function HarnessIdentityFromJSON(json) {
|
|
31
|
+
return HarnessIdentityFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function HarnessIdentityFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
name: json['name'],
|
|
39
|
+
sessionId: json['session_id'],
|
|
40
|
+
threadId: json['thread_id'],
|
|
41
|
+
version: json['version'] == null ? undefined : json['version'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function HarnessIdentityToJSON(json) {
|
|
45
|
+
return HarnessIdentityToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function HarnessIdentityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
name: value['name'],
|
|
53
|
+
session_id: value['sessionId'],
|
|
54
|
+
thread_id: value['threadId'],
|
|
55
|
+
version: value['version'],
|
|
56
|
+
};
|
|
57
|
+
}
|