@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.
Files changed (79) hide show
  1. package/LICENSE +202 -0
  2. package/dist/generated/apis/DocumentationApi.d.ts +41 -0
  3. package/dist/generated/apis/DocumentationApi.js +76 -0
  4. package/dist/generated/apis/HealthApi.d.ts +30 -0
  5. package/dist/generated/apis/HealthApi.js +49 -0
  6. package/dist/generated/apis/IdentitiesApi.d.ts +36 -0
  7. package/dist/generated/apis/IdentitiesApi.js +53 -0
  8. package/dist/generated/apis/JourneysApi.d.ts +161 -0
  9. package/dist/generated/apis/JourneysApi.js +268 -0
  10. package/dist/generated/apis/PlansApi.d.ts +73 -0
  11. package/dist/generated/apis/PlansApi.js +121 -0
  12. package/dist/generated/apis/index.d.ts +5 -0
  13. package/dist/generated/apis/index.js +7 -0
  14. package/dist/generated/index.d.ts +3 -0
  15. package/dist/generated/index.js +5 -0
  16. package/dist/generated/models/APIError.d.ts +30 -0
  17. package/dist/generated/models/APIError.js +43 -0
  18. package/dist/generated/models/ApiHealth.d.ts +30 -0
  19. package/dist/generated/models/ApiHealth.js +43 -0
  20. package/dist/generated/models/CapturePolicy.d.ts +47 -0
  21. package/dist/generated/models/CapturePolicy.js +53 -0
  22. package/dist/generated/models/Check.d.ts +39 -0
  23. package/dist/generated/models/Check.js +52 -0
  24. package/dist/generated/models/CheckAction.d.ts +43 -0
  25. package/dist/generated/models/CheckAction.js +50 -0
  26. package/dist/generated/models/CheckInput.d.ts +35 -0
  27. package/dist/generated/models/CheckInput.js +48 -0
  28. package/dist/generated/models/EventPublication.d.ts +60 -0
  29. package/dist/generated/models/EventPublication.js +64 -0
  30. package/dist/generated/models/ExecutionObservation.d.ts +56 -0
  31. package/dist/generated/models/ExecutionObservation.js +73 -0
  32. package/dist/generated/models/HarnessIdentity.d.ts +42 -0
  33. package/dist/generated/models/HarnessIdentity.js +57 -0
  34. package/dist/generated/models/Identity.d.ts +58 -0
  35. package/dist/generated/models/Identity.js +61 -0
  36. package/dist/generated/models/JournalEntry.d.ts +75 -0
  37. package/dist/generated/models/JournalEntry.js +88 -0
  38. package/dist/generated/models/Journey.d.ts +85 -0
  39. package/dist/generated/models/Journey.js +113 -0
  40. package/dist/generated/models/MCPRequestObservation.d.ts +50 -0
  41. package/dist/generated/models/MCPRequestObservation.js +66 -0
  42. package/dist/generated/models/ModelObservation.d.ts +47 -0
  43. package/dist/generated/models/ModelObservation.js +58 -0
  44. package/dist/generated/models/ObservationBatch.d.ts +40 -0
  45. package/dist/generated/models/ObservationBatch.js +55 -0
  46. package/dist/generated/models/ObservationEvent.d.ts +66 -0
  47. package/dist/generated/models/ObservationEvent.js +74 -0
  48. package/dist/generated/models/Phase.d.ts +39 -0
  49. package/dist/generated/models/Phase.js +52 -0
  50. package/dist/generated/models/PhaseInput.d.ts +35 -0
  51. package/dist/generated/models/PhaseInput.js +48 -0
  52. package/dist/generated/models/Plan.d.ts +55 -0
  53. package/dist/generated/models/Plan.js +70 -0
  54. package/dist/generated/models/PlanInput.d.ts +39 -0
  55. package/dist/generated/models/PlanInput.js +52 -0
  56. package/dist/generated/models/PublicationResult.d.ts +35 -0
  57. package/dist/generated/models/PublicationResult.js +46 -0
  58. package/dist/generated/models/RecordingEndObservation.d.ts +52 -0
  59. package/dist/generated/models/RecordingEndObservation.js +67 -0
  60. package/dist/generated/models/RecordingStartObservation.d.ts +35 -0
  61. package/dist/generated/models/RecordingStartObservation.js +48 -0
  62. package/dist/generated/models/StartJourneyInput.d.ts +59 -0
  63. package/dist/generated/models/StartJourneyInput.js +64 -0
  64. package/dist/generated/models/StartedJourney.d.ts +40 -0
  65. package/dist/generated/models/StartedJourney.js +55 -0
  66. package/dist/generated/models/TokenUsage.d.ts +46 -0
  67. package/dist/generated/models/TokenUsage.js +49 -0
  68. package/dist/generated/models/ToolObservation.d.ts +64 -0
  69. package/dist/generated/models/ToolObservation.js +73 -0
  70. package/dist/generated/models/WorkflowActionType.d.ts +29 -0
  71. package/dist/generated/models/WorkflowActionType.js +47 -0
  72. package/dist/generated/models/WorkflowJourneyStatus.d.ts +26 -0
  73. package/dist/generated/models/WorkflowJourneyStatus.js +44 -0
  74. package/dist/generated/models/index.d.ts +29 -0
  75. package/dist/generated/models/index.js +31 -0
  76. package/dist/generated/runtime.d.ts +217 -0
  77. package/dist/generated/runtime.js +455 -0
  78. package/package.json +23 -3
  79. package/README.md +0 -3
@@ -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 { StartedJourney } from './StartedJourney.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PublicationResult
17
+ */
18
+ export interface PublicationResult {
19
+ /**
20
+ *
21
+ */
22
+ accepted: number;
23
+ /**
24
+ *
25
+ */
26
+ started?: StartedJourney;
27
+ }
28
+ /**
29
+ * Check if a given object implements the PublicationResult interface.
30
+ */
31
+ export declare function instanceOfPublicationResult(value: object): value is PublicationResult;
32
+ export declare function PublicationResultFromJSON(json: any): PublicationResult;
33
+ export declare function PublicationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicationResult;
34
+ export declare function PublicationResultToJSON(json: any): PublicationResult;
35
+ export declare function PublicationResultToJSONTyped(value?: PublicationResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
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 { StartedJourneyFromJSON, StartedJourneyToJSON, } from './StartedJourney.js';
15
+ /**
16
+ * Check if a given object implements the PublicationResult interface.
17
+ */
18
+ export function instanceOfPublicationResult(value) {
19
+ if (!('accepted' in value) || value['accepted'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function PublicationResultFromJSON(json) {
24
+ return PublicationResultFromJSONTyped(json, false);
25
+ }
26
+ export function PublicationResultFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ accepted: json['accepted'],
32
+ started: json['started'] == null ? undefined : StartedJourneyFromJSON(json['started']),
33
+ };
34
+ }
35
+ export function PublicationResultToJSON(json) {
36
+ return PublicationResultToJSONTyped(json, false);
37
+ }
38
+ export function PublicationResultToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ accepted: value['accepted'],
44
+ started: StartedJourneyToJSON(value['started']),
45
+ };
46
+ }
@@ -0,0 +1,52 @@
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 RecordingEndObservation
16
+ */
17
+ export interface RecordingEndObservation {
18
+ /**
19
+ *
20
+ */
21
+ observed: number;
22
+ /**
23
+ *
24
+ */
25
+ reason: RecordingEndObservationReasonEnum;
26
+ /**
27
+ *
28
+ */
29
+ retained: number;
30
+ /**
31
+ *
32
+ */
33
+ sourceAvailable: boolean;
34
+ }
35
+ /**
36
+ * @export
37
+ */
38
+ export declare const RecordingEndObservationReasonEnum: {
39
+ readonly Completed: "completed";
40
+ readonly Aborted: "aborted";
41
+ readonly SessionEnd: "session_end";
42
+ readonly JourneySwitched: "journey_switched";
43
+ };
44
+ export type RecordingEndObservationReasonEnum = (typeof RecordingEndObservationReasonEnum)[keyof typeof RecordingEndObservationReasonEnum];
45
+ /**
46
+ * Check if a given object implements the RecordingEndObservation interface.
47
+ */
48
+ export declare function instanceOfRecordingEndObservation(value: object): value is RecordingEndObservation;
49
+ export declare function RecordingEndObservationFromJSON(json: any): RecordingEndObservation;
50
+ export declare function RecordingEndObservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecordingEndObservation;
51
+ export declare function RecordingEndObservationToJSON(json: any): RecordingEndObservation;
52
+ export declare function RecordingEndObservationToJSONTyped(value?: RecordingEndObservation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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 RecordingEndObservationReasonEnum = {
18
+ Completed: 'completed',
19
+ Aborted: 'aborted',
20
+ SessionEnd: 'session_end',
21
+ JourneySwitched: 'journey_switched',
22
+ };
23
+ /**
24
+ * Check if a given object implements the RecordingEndObservation interface.
25
+ */
26
+ export function instanceOfRecordingEndObservation(value) {
27
+ if (!('observed' in value) || value['observed'] === undefined)
28
+ return false;
29
+ if (!('reason' in value) || value['reason'] === undefined)
30
+ return false;
31
+ if (!('retained' in value) || value['retained'] === undefined)
32
+ return false;
33
+ if ((!('sourceAvailable' in value) &&
34
+ !('source_available' in value)) ||
35
+ (value['sourceAvailable'] === undefined &&
36
+ value['source_available'] === undefined))
37
+ return false;
38
+ return true;
39
+ }
40
+ export function RecordingEndObservationFromJSON(json) {
41
+ return RecordingEndObservationFromJSONTyped(json, false);
42
+ }
43
+ export function RecordingEndObservationFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ observed: json['observed'],
49
+ reason: json['reason'],
50
+ retained: json['retained'],
51
+ sourceAvailable: json['source_available'],
52
+ };
53
+ }
54
+ export function RecordingEndObservationToJSON(json) {
55
+ return RecordingEndObservationToJSONTyped(json, false);
56
+ }
57
+ export function RecordingEndObservationToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ observed: value['observed'],
63
+ reason: value['reason'],
64
+ retained: value['retained'],
65
+ source_available: value['sourceAvailable'],
66
+ };
67
+ }
@@ -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 { MCPRequestObservation } from './MCPRequestObservation.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RecordingStartObservation
17
+ */
18
+ export interface RecordingStartObservation {
19
+ /**
20
+ *
21
+ */
22
+ policyVersion: number;
23
+ /**
24
+ *
25
+ */
26
+ request?: MCPRequestObservation;
27
+ }
28
+ /**
29
+ * Check if a given object implements the RecordingStartObservation interface.
30
+ */
31
+ export declare function instanceOfRecordingStartObservation(value: object): value is RecordingStartObservation;
32
+ export declare function RecordingStartObservationFromJSON(json: any): RecordingStartObservation;
33
+ export declare function RecordingStartObservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecordingStartObservation;
34
+ export declare function RecordingStartObservationToJSON(json: any): RecordingStartObservation;
35
+ export declare function RecordingStartObservationToJSONTyped(value?: RecordingStartObservation | 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 { MCPRequestObservationFromJSON, MCPRequestObservationToJSON, } from './MCPRequestObservation.js';
15
+ /**
16
+ * Check if a given object implements the RecordingStartObservation interface.
17
+ */
18
+ export function instanceOfRecordingStartObservation(value) {
19
+ if ((!('policyVersion' in value) && !('policy_version' in value)) ||
20
+ (value['policyVersion'] === undefined &&
21
+ value['policy_version'] === undefined))
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RecordingStartObservationFromJSON(json) {
26
+ return RecordingStartObservationFromJSONTyped(json, false);
27
+ }
28
+ export function RecordingStartObservationFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ policyVersion: json['policy_version'],
34
+ request: json['request'] == null ? undefined : MCPRequestObservationFromJSON(json['request']),
35
+ };
36
+ }
37
+ export function RecordingStartObservationToJSON(json) {
38
+ return RecordingStartObservationToJSONTyped(json, false);
39
+ }
40
+ export function RecordingStartObservationToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ policy_version: value['policyVersion'],
46
+ request: MCPRequestObservationToJSON(value['request']),
47
+ };
48
+ }
@@ -0,0 +1,59 @@
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 { CapturePolicy } from './CapturePolicy.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface StartJourneyInput
17
+ */
18
+ export interface StartJourneyInput {
19
+ /**
20
+ *
21
+ */
22
+ capturePolicy?: CapturePolicy;
23
+ /**
24
+ *
25
+ */
26
+ harness?: string;
27
+ /**
28
+ *
29
+ */
30
+ harnessVersion?: string;
31
+ /**
32
+ * Checks evaluated by the MCP instead of the backend.
33
+ */
34
+ localCheckNames?: Array<string>;
35
+ /**
36
+ * Session ID issued by the harness.
37
+ */
38
+ sessionId: string;
39
+ /**
40
+ *
41
+ */
42
+ threadId?: string;
43
+ /**
44
+ *
45
+ */
46
+ userId?: string;
47
+ /**
48
+ *
49
+ */
50
+ workItemUrl: string;
51
+ }
52
+ /**
53
+ * Check if a given object implements the StartJourneyInput interface.
54
+ */
55
+ export declare function instanceOfStartJourneyInput(value: object): value is StartJourneyInput;
56
+ export declare function StartJourneyInputFromJSON(json: any): StartJourneyInput;
57
+ export declare function StartJourneyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartJourneyInput;
58
+ export declare function StartJourneyInputToJSON(json: any): StartJourneyInput;
59
+ export declare function StartJourneyInputToJSONTyped(value?: StartJourneyInput | 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 { CapturePolicyFromJSON, CapturePolicyToJSON, } from './CapturePolicy.js';
15
+ /**
16
+ * Check if a given object implements the StartJourneyInput interface.
17
+ */
18
+ export function instanceOfStartJourneyInput(value) {
19
+ if ((!('sessionId' in value) && !('session_id' in value)) ||
20
+ (value['sessionId'] === undefined &&
21
+ value['session_id'] === undefined))
22
+ return false;
23
+ if ((!('workItemUrl' in value) && !('work_item_url' in value)) ||
24
+ (value['workItemUrl'] === undefined &&
25
+ value['work_item_url'] === undefined))
26
+ return false;
27
+ return true;
28
+ }
29
+ export function StartJourneyInputFromJSON(json) {
30
+ return StartJourneyInputFromJSONTyped(json, false);
31
+ }
32
+ export function StartJourneyInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ capturePolicy: json['capture_policy'] == null ? undefined : CapturePolicyFromJSON(json['capture_policy']),
38
+ harness: json['harness'] == null ? undefined : json['harness'],
39
+ harnessVersion: json['harness_version'] == null ? undefined : json['harness_version'],
40
+ localCheckNames: json['local_check_names'] == null ? undefined : json['local_check_names'],
41
+ sessionId: json['session_id'],
42
+ threadId: json['thread_id'] == null ? undefined : json['thread_id'],
43
+ userId: json['user_id'] == null ? undefined : json['user_id'],
44
+ workItemUrl: json['work_item_url'],
45
+ };
46
+ }
47
+ export function StartJourneyInputToJSON(json) {
48
+ return StartJourneyInputToJSONTyped(json, false);
49
+ }
50
+ export function StartJourneyInputToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ capture_policy: CapturePolicyToJSON(value['capturePolicy']),
56
+ harness: value['harness'],
57
+ harness_version: value['harnessVersion'],
58
+ local_check_names: value['localCheckNames'],
59
+ session_id: value['sessionId'],
60
+ thread_id: value['threadId'],
61
+ user_id: value['userId'],
62
+ work_item_url: value['workItemUrl'],
63
+ };
64
+ }
@@ -0,0 +1,40 @@
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 { Plan } from './Plan.js';
13
+ import type { Journey } from './Journey.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface StartedJourney
18
+ */
19
+ export interface StartedJourney {
20
+ /**
21
+ *
22
+ */
23
+ journey: Journey;
24
+ /**
25
+ *
26
+ */
27
+ journeyId: string;
28
+ /**
29
+ *
30
+ */
31
+ plan: Plan;
32
+ }
33
+ /**
34
+ * Check if a given object implements the StartedJourney interface.
35
+ */
36
+ export declare function instanceOfStartedJourney(value: object): value is StartedJourney;
37
+ export declare function StartedJourneyFromJSON(json: any): StartedJourney;
38
+ export declare function StartedJourneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartedJourney;
39
+ export declare function StartedJourneyToJSON(json: any): StartedJourney;
40
+ export declare function StartedJourneyToJSONTyped(value?: StartedJourney | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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 { PlanFromJSON, PlanToJSON } from './Plan.js';
15
+ import { JourneyFromJSON, JourneyToJSON } from './Journey.js';
16
+ /**
17
+ * Check if a given object implements the StartedJourney interface.
18
+ */
19
+ export function instanceOfStartedJourney(value) {
20
+ if (!('journey' in value) || value['journey'] === undefined)
21
+ return false;
22
+ if ((!('journeyId' in value) && !('journey_id' in value)) ||
23
+ (value['journeyId'] === undefined &&
24
+ value['journey_id'] === undefined))
25
+ return false;
26
+ if (!('plan' in value) || value['plan'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function StartedJourneyFromJSON(json) {
31
+ return StartedJourneyFromJSONTyped(json, false);
32
+ }
33
+ export function StartedJourneyFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ journey: JourneyFromJSON(json['journey']),
39
+ journeyId: json['journey_id'],
40
+ plan: PlanFromJSON(json['plan']),
41
+ };
42
+ }
43
+ export function StartedJourneyToJSON(json) {
44
+ return StartedJourneyToJSONTyped(json, false);
45
+ }
46
+ export function StartedJourneyToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ journey: JourneyToJSON(value['journey']),
52
+ journey_id: value['journeyId'],
53
+ plan: PlanToJSON(value['plan']),
54
+ };
55
+ }
@@ -0,0 +1,46 @@
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 TokenUsage
16
+ */
17
+ export interface TokenUsage {
18
+ /**
19
+ *
20
+ */
21
+ cacheWriteInputTokens?: number;
22
+ /**
23
+ *
24
+ */
25
+ cachedInputTokens?: number;
26
+ /**
27
+ *
28
+ */
29
+ inputTokens?: number;
30
+ /**
31
+ *
32
+ */
33
+ outputTokens?: number;
34
+ /**
35
+ *
36
+ */
37
+ reasoningOutputTokens?: number;
38
+ }
39
+ /**
40
+ * Check if a given object implements the TokenUsage interface.
41
+ */
42
+ export declare function instanceOfTokenUsage(value: object): value is TokenUsage;
43
+ export declare function TokenUsageFromJSON(json: any): TokenUsage;
44
+ export declare function TokenUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenUsage;
45
+ export declare function TokenUsageToJSON(json: any): TokenUsage;
46
+ export declare function TokenUsageToJSONTyped(value?: TokenUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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 TokenUsage interface.
16
+ */
17
+ export function instanceOfTokenUsage(value) {
18
+ return true;
19
+ }
20
+ export function TokenUsageFromJSON(json) {
21
+ return TokenUsageFromJSONTyped(json, false);
22
+ }
23
+ export function TokenUsageFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ cacheWriteInputTokens: json['cache_write_input_tokens'] == null ? undefined : json['cache_write_input_tokens'],
29
+ cachedInputTokens: json['cached_input_tokens'] == null ? undefined : json['cached_input_tokens'],
30
+ inputTokens: json['input_tokens'] == null ? undefined : json['input_tokens'],
31
+ outputTokens: json['output_tokens'] == null ? undefined : json['output_tokens'],
32
+ reasoningOutputTokens: json['reasoning_output_tokens'] == null ? undefined : json['reasoning_output_tokens'],
33
+ };
34
+ }
35
+ export function TokenUsageToJSON(json) {
36
+ return TokenUsageToJSONTyped(json, false);
37
+ }
38
+ export function TokenUsageToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ cache_write_input_tokens: value['cacheWriteInputTokens'],
44
+ cached_input_tokens: value['cachedInputTokens'],
45
+ input_tokens: value['inputTokens'],
46
+ output_tokens: value['outputTokens'],
47
+ reasoning_output_tokens: value['reasoningOutputTokens'],
48
+ };
49
+ }
@@ -0,0 +1,64 @@
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 { MCPRequestObservation } from './MCPRequestObservation.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ToolObservation
17
+ */
18
+ export interface ToolObservation {
19
+ /**
20
+ *
21
+ */
22
+ callId: string;
23
+ /**
24
+ *
25
+ */
26
+ endedAt?: string;
27
+ /**
28
+ *
29
+ */
30
+ failed?: boolean;
31
+ /**
32
+ *
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ */
38
+ request?: MCPRequestObservation;
39
+ /**
40
+ *
41
+ */
42
+ startedAt: string;
43
+ /**
44
+ *
45
+ */
46
+ timing: ToolObservationTimingEnum;
47
+ }
48
+ /**
49
+ * @export
50
+ */
51
+ export declare const ToolObservationTimingEnum: {
52
+ readonly Runtime: "runtime";
53
+ readonly McpRequest: "mcp_request";
54
+ readonly Rollout: "rollout";
55
+ };
56
+ export type ToolObservationTimingEnum = (typeof ToolObservationTimingEnum)[keyof typeof ToolObservationTimingEnum];
57
+ /**
58
+ * Check if a given object implements the ToolObservation interface.
59
+ */
60
+ export declare function instanceOfToolObservation(value: object): value is ToolObservation;
61
+ export declare function ToolObservationFromJSON(json: any): ToolObservation;
62
+ export declare function ToolObservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolObservation;
63
+ export declare function ToolObservationToJSON(json: any): ToolObservation;
64
+ export declare function ToolObservationToJSONTyped(value?: ToolObservation | null, ignoreDiscriminator?: boolean): any;