@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,268 @@
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 * as runtime from '../runtime.js';
15
+ import { EventPublicationToJSON } from '../models/EventPublication.js';
16
+ import { JournalEntryFromJSON } from '../models/JournalEntry.js';
17
+ import { JourneyFromJSON } from '../models/Journey.js';
18
+ import { PublicationResultFromJSON, } from '../models/PublicationResult.js';
19
+ import { StartJourneyInputToJSON, } from '../models/StartJourneyInput.js';
20
+ import { StartedJourneyFromJSON } from '../models/StartedJourney.js';
21
+ /**
22
+ *
23
+ */
24
+ export class JourneysApi extends runtime.BaseAPI {
25
+ /**
26
+ * Creates request options for abortJourney without sending the request
27
+ */
28
+ async abortJourneyRequestOpts(requestParameters) {
29
+ if (requestParameters['id'] == null) {
30
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling abortJourney().');
31
+ }
32
+ const queryParameters = {};
33
+ const headerParameters = {};
34
+ let urlPath = `/journeys/{id}/abort`;
35
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
36
+ return {
37
+ path: urlPath,
38
+ method: 'POST',
39
+ headers: headerParameters,
40
+ query: queryParameters,
41
+ };
42
+ }
43
+ /**
44
+ * Abort an active journey regardless of incomplete checks
45
+ */
46
+ async abortJourneyRaw(requestParameters, initOverrides) {
47
+ const requestOptions = await this.abortJourneyRequestOpts(requestParameters);
48
+ const response = await this.request(requestOptions, initOverrides);
49
+ return new runtime.JSONApiResponse(response, (jsonValue) => JourneyFromJSON(jsonValue));
50
+ }
51
+ /**
52
+ * Abort an active journey regardless of incomplete checks
53
+ */
54
+ async abortJourney(requestParameters, initOverrides) {
55
+ const response = await this.abortJourneyRaw(requestParameters, initOverrides);
56
+ return await response.value();
57
+ }
58
+ /**
59
+ * Creates request options for completeJourney without sending the request
60
+ */
61
+ async completeJourneyRequestOpts(requestParameters) {
62
+ if (requestParameters['id'] == null) {
63
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling completeJourney().');
64
+ }
65
+ const queryParameters = {};
66
+ const headerParameters = {};
67
+ let urlPath = `/journeys/{id}/complete`;
68
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
69
+ return {
70
+ path: urlPath,
71
+ method: 'POST',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ };
75
+ }
76
+ /**
77
+ * Complete a journey after every phase and check is satisfied
78
+ */
79
+ async completeJourneyRaw(requestParameters, initOverrides) {
80
+ const requestOptions = await this.completeJourneyRequestOpts(requestParameters);
81
+ const response = await this.request(requestOptions, initOverrides);
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => JourneyFromJSON(jsonValue));
83
+ }
84
+ /**
85
+ * Complete a journey after every phase and check is satisfied
86
+ */
87
+ async completeJourney(requestParameters, initOverrides) {
88
+ const response = await this.completeJourneyRaw(requestParameters, initOverrides);
89
+ return await response.value();
90
+ }
91
+ /**
92
+ * Creates request options for confirmCheck without sending the request
93
+ */
94
+ async confirmCheckRequestOpts(requestParameters) {
95
+ if (requestParameters['id'] == null) {
96
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling confirmCheck().');
97
+ }
98
+ if (requestParameters['checkID'] == null) {
99
+ throw new runtime.RequiredError('checkID', 'Required parameter "checkID" was null or undefined when calling confirmCheck().');
100
+ }
101
+ const queryParameters = {};
102
+ const headerParameters = {};
103
+ let urlPath = `/journeys/{id}/checks/{checkID}/complete`;
104
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
105
+ urlPath = urlPath.replace('{checkID}', encodeURIComponent(String(requestParameters['checkID'])));
106
+ return {
107
+ path: urlPath,
108
+ method: 'POST',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ };
112
+ }
113
+ /**
114
+ * Confirm a manual check in the current phase
115
+ */
116
+ async confirmCheckRaw(requestParameters, initOverrides) {
117
+ const requestOptions = await this.confirmCheckRequestOpts(requestParameters);
118
+ const response = await this.request(requestOptions, initOverrides);
119
+ return new runtime.JSONApiResponse(response, (jsonValue) => JourneyFromJSON(jsonValue));
120
+ }
121
+ /**
122
+ * Confirm a manual check in the current phase
123
+ */
124
+ async confirmCheck(requestParameters, initOverrides) {
125
+ const response = await this.confirmCheckRaw(requestParameters, initOverrides);
126
+ return await response.value();
127
+ }
128
+ /**
129
+ * Creates request options for getJourneyStatus without sending the request
130
+ */
131
+ async getJourneyStatusRequestOpts(requestParameters) {
132
+ if (requestParameters['id'] == null) {
133
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getJourneyStatus().');
134
+ }
135
+ const queryParameters = {};
136
+ const headerParameters = {};
137
+ let urlPath = `/journeys/{id}`;
138
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
139
+ return {
140
+ path: urlPath,
141
+ method: 'GET',
142
+ headers: headerParameters,
143
+ query: queryParameters,
144
+ };
145
+ }
146
+ /**
147
+ * Reconcile and fetch the current journey state
148
+ */
149
+ async getJourneyStatusRaw(requestParameters, initOverrides) {
150
+ const requestOptions = await this.getJourneyStatusRequestOpts(requestParameters);
151
+ const response = await this.request(requestOptions, initOverrides);
152
+ return new runtime.JSONApiResponse(response, (jsonValue) => JourneyFromJSON(jsonValue));
153
+ }
154
+ /**
155
+ * Reconcile and fetch the current journey state
156
+ */
157
+ async getJourneyStatus(requestParameters, initOverrides) {
158
+ const response = await this.getJourneyStatusRaw(requestParameters, initOverrides);
159
+ return await response.value();
160
+ }
161
+ /**
162
+ * Creates request options for getJourneyTimeline without sending the request
163
+ */
164
+ async getJourneyTimelineRequestOpts(requestParameters) {
165
+ if (requestParameters['id'] == null) {
166
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getJourneyTimeline().');
167
+ }
168
+ const queryParameters = {};
169
+ if (requestParameters['after'] != null) {
170
+ queryParameters['after'] = requestParameters['after'];
171
+ }
172
+ if (requestParameters['limit'] != null) {
173
+ queryParameters['limit'] = requestParameters['limit'];
174
+ }
175
+ const headerParameters = {};
176
+ let urlPath = `/journeys/{id}/timeline`;
177
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
178
+ return {
179
+ path: urlPath,
180
+ method: 'GET',
181
+ headers: headerParameters,
182
+ query: queryParameters,
183
+ };
184
+ }
185
+ /**
186
+ * Read the journey journal after a cursor
187
+ */
188
+ async getJourneyTimelineRaw(requestParameters, initOverrides) {
189
+ const requestOptions = await this.getJourneyTimelineRequestOpts(requestParameters);
190
+ const response = await this.request(requestOptions, initOverrides);
191
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JournalEntryFromJSON));
192
+ }
193
+ /**
194
+ * Read the journey journal after a cursor
195
+ */
196
+ async getJourneyTimeline(requestParameters, initOverrides) {
197
+ const response = await this.getJourneyTimelineRaw(requestParameters, initOverrides);
198
+ return await response.value();
199
+ }
200
+ /**
201
+ * Creates request options for publishEvent without sending the request
202
+ */
203
+ async publishEventRequestOpts(requestParameters) {
204
+ if (requestParameters['eventPublication'] == null) {
205
+ throw new runtime.RequiredError('eventPublication', 'Required parameter "eventPublication" was null or undefined when calling publishEvent().');
206
+ }
207
+ const queryParameters = {};
208
+ const headerParameters = {};
209
+ headerParameters['Content-Type'] = 'application/json';
210
+ let urlPath = `/events`;
211
+ return {
212
+ path: urlPath,
213
+ method: 'POST',
214
+ headers: headerParameters,
215
+ query: queryParameters,
216
+ body: EventPublicationToJSON(requestParameters['eventPublication']),
217
+ };
218
+ }
219
+ /**
220
+ * Publish a Cairul event
221
+ */
222
+ async publishEventRaw(requestParameters, initOverrides) {
223
+ const requestOptions = await this.publishEventRequestOpts(requestParameters);
224
+ const response = await this.request(requestOptions, initOverrides);
225
+ return new runtime.JSONApiResponse(response, (jsonValue) => PublicationResultFromJSON(jsonValue));
226
+ }
227
+ /**
228
+ * Publish a Cairul event
229
+ */
230
+ async publishEvent(requestParameters, initOverrides) {
231
+ const response = await this.publishEventRaw(requestParameters, initOverrides);
232
+ return await response.value();
233
+ }
234
+ /**
235
+ * Creates request options for startJourney without sending the request
236
+ */
237
+ async startJourneyRequestOpts(requestParameters) {
238
+ if (requestParameters['startJourneyInput'] == null) {
239
+ throw new runtime.RequiredError('startJourneyInput', 'Required parameter "startJourneyInput" was null or undefined when calling startJourney().');
240
+ }
241
+ const queryParameters = {};
242
+ const headerParameters = {};
243
+ headerParameters['Content-Type'] = 'application/json';
244
+ let urlPath = `/journeys`;
245
+ return {
246
+ path: urlPath,
247
+ method: 'POST',
248
+ headers: headerParameters,
249
+ query: queryParameters,
250
+ body: StartJourneyInputToJSON(requestParameters['startJourneyInput']),
251
+ };
252
+ }
253
+ /**
254
+ * Start a journey using the default plan for the work item URL
255
+ */
256
+ async startJourneyRaw(requestParameters, initOverrides) {
257
+ const requestOptions = await this.startJourneyRequestOpts(requestParameters);
258
+ const response = await this.request(requestOptions, initOverrides);
259
+ return new runtime.JSONApiResponse(response, (jsonValue) => StartedJourneyFromJSON(jsonValue));
260
+ }
261
+ /**
262
+ * Start a journey using the default plan for the work item URL
263
+ */
264
+ async startJourney(requestParameters, initOverrides) {
265
+ const response = await this.startJourneyRaw(requestParameters, initOverrides);
266
+ return await response.value();
267
+ }
268
+ }
@@ -0,0 +1,73 @@
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 * as runtime from '../runtime.js';
13
+ import { type Plan } from '../models/Plan.js';
14
+ import { type PlanInput } from '../models/PlanInput.js';
15
+ export interface ActivatePlanRequest {
16
+ /**
17
+ * Plan ID
18
+ */
19
+ id: string;
20
+ }
21
+ export interface CreatePlanRequest {
22
+ /**
23
+ * Plan definition
24
+ */
25
+ planInput: PlanInput;
26
+ }
27
+ export interface GetPlanRequest {
28
+ /**
29
+ * Plan ID
30
+ */
31
+ id: string;
32
+ }
33
+ /**
34
+ *
35
+ */
36
+ export declare class PlansApi extends runtime.BaseAPI {
37
+ /**
38
+ * Creates request options for activatePlan without sending the request
39
+ */
40
+ activatePlanRequestOpts(requestParameters: ActivatePlanRequest): Promise<runtime.RequestOpts>;
41
+ /**
42
+ * Activate a plan revision for future journeys
43
+ */
44
+ activatePlanRaw(requestParameters: ActivatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Plan>>;
45
+ /**
46
+ * Activate a plan revision for future journeys
47
+ */
48
+ activatePlan(requestParameters: ActivatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Plan>;
49
+ /**
50
+ * Creates request options for createPlan without sending the request
51
+ */
52
+ createPlanRequestOpts(requestParameters: CreatePlanRequest): Promise<runtime.RequestOpts>;
53
+ /**
54
+ * Create an immutable plan
55
+ */
56
+ createPlanRaw(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Plan>>;
57
+ /**
58
+ * Create an immutable plan
59
+ */
60
+ createPlan(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Plan>;
61
+ /**
62
+ * Creates request options for getPlan without sending the request
63
+ */
64
+ getPlanRequestOpts(requestParameters: GetPlanRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * Fetch a plan
67
+ */
68
+ getPlanRaw(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Plan>>;
69
+ /**
70
+ * Fetch a plan
71
+ */
72
+ getPlan(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Plan>;
73
+ }
@@ -0,0 +1,121 @@
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 * as runtime from '../runtime.js';
15
+ import { PlanFromJSON } from '../models/Plan.js';
16
+ import { PlanInputToJSON } from '../models/PlanInput.js';
17
+ /**
18
+ *
19
+ */
20
+ export class PlansApi extends runtime.BaseAPI {
21
+ /**
22
+ * Creates request options for activatePlan without sending the request
23
+ */
24
+ async activatePlanRequestOpts(requestParameters) {
25
+ if (requestParameters['id'] == null) {
26
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling activatePlan().');
27
+ }
28
+ const queryParameters = {};
29
+ const headerParameters = {};
30
+ let urlPath = `/plans/{id}/activate`;
31
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
32
+ return {
33
+ path: urlPath,
34
+ method: 'POST',
35
+ headers: headerParameters,
36
+ query: queryParameters,
37
+ };
38
+ }
39
+ /**
40
+ * Activate a plan revision for future journeys
41
+ */
42
+ async activatePlanRaw(requestParameters, initOverrides) {
43
+ const requestOptions = await this.activatePlanRequestOpts(requestParameters);
44
+ const response = await this.request(requestOptions, initOverrides);
45
+ return new runtime.JSONApiResponse(response, (jsonValue) => PlanFromJSON(jsonValue));
46
+ }
47
+ /**
48
+ * Activate a plan revision for future journeys
49
+ */
50
+ async activatePlan(requestParameters, initOverrides) {
51
+ const response = await this.activatePlanRaw(requestParameters, initOverrides);
52
+ return await response.value();
53
+ }
54
+ /**
55
+ * Creates request options for createPlan without sending the request
56
+ */
57
+ async createPlanRequestOpts(requestParameters) {
58
+ if (requestParameters['planInput'] == null) {
59
+ throw new runtime.RequiredError('planInput', 'Required parameter "planInput" was null or undefined when calling createPlan().');
60
+ }
61
+ const queryParameters = {};
62
+ const headerParameters = {};
63
+ headerParameters['Content-Type'] = 'application/json';
64
+ let urlPath = `/plans`;
65
+ return {
66
+ path: urlPath,
67
+ method: 'POST',
68
+ headers: headerParameters,
69
+ query: queryParameters,
70
+ body: PlanInputToJSON(requestParameters['planInput']),
71
+ };
72
+ }
73
+ /**
74
+ * Create an immutable plan
75
+ */
76
+ async createPlanRaw(requestParameters, initOverrides) {
77
+ const requestOptions = await this.createPlanRequestOpts(requestParameters);
78
+ const response = await this.request(requestOptions, initOverrides);
79
+ return new runtime.JSONApiResponse(response, (jsonValue) => PlanFromJSON(jsonValue));
80
+ }
81
+ /**
82
+ * Create an immutable plan
83
+ */
84
+ async createPlan(requestParameters, initOverrides) {
85
+ const response = await this.createPlanRaw(requestParameters, initOverrides);
86
+ return await response.value();
87
+ }
88
+ /**
89
+ * Creates request options for getPlan without sending the request
90
+ */
91
+ async getPlanRequestOpts(requestParameters) {
92
+ if (requestParameters['id'] == null) {
93
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPlan().');
94
+ }
95
+ const queryParameters = {};
96
+ const headerParameters = {};
97
+ let urlPath = `/plans/{id}`;
98
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
99
+ return {
100
+ path: urlPath,
101
+ method: 'GET',
102
+ headers: headerParameters,
103
+ query: queryParameters,
104
+ };
105
+ }
106
+ /**
107
+ * Fetch a plan
108
+ */
109
+ async getPlanRaw(requestParameters, initOverrides) {
110
+ const requestOptions = await this.getPlanRequestOpts(requestParameters);
111
+ const response = await this.request(requestOptions, initOverrides);
112
+ return new runtime.JSONApiResponse(response, (jsonValue) => PlanFromJSON(jsonValue));
113
+ }
114
+ /**
115
+ * Fetch a plan
116
+ */
117
+ async getPlan(requestParameters, initOverrides) {
118
+ const response = await this.getPlanRaw(requestParameters, initOverrides);
119
+ return await response.value();
120
+ }
121
+ }
@@ -0,0 +1,5 @@
1
+ export * from './DocumentationApi.js';
2
+ export * from './HealthApi.js';
3
+ export * from './IdentitiesApi.js';
4
+ export * from './JourneysApi.js';
5
+ export * from './PlansApi.js';
@@ -0,0 +1,7 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './DocumentationApi.js';
4
+ export * from './HealthApi.js';
5
+ export * from './IdentitiesApi.js';
6
+ export * from './JourneysApi.js';
7
+ export * from './PlansApi.js';
@@ -0,0 +1,3 @@
1
+ export * from './runtime.js';
2
+ export * from './apis/index.js';
3
+ export * from './models/index.js';
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime.js';
4
+ export * from './apis/index.js';
5
+ export * from './models/index.js';
@@ -0,0 +1,30 @@
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 APIError
16
+ */
17
+ export interface APIError {
18
+ /**
19
+ *
20
+ */
21
+ message: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the APIError interface.
25
+ */
26
+ export declare function instanceOfAPIError(value: object): value is APIError;
27
+ export declare function APIErrorFromJSON(json: any): APIError;
28
+ export declare function APIErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): APIError;
29
+ export declare function APIErrorToJSON(json: any): APIError;
30
+ export declare function APIErrorToJSONTyped(value?: APIError | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 APIError interface.
16
+ */
17
+ export function instanceOfAPIError(value) {
18
+ if (!('message' in value) || value['message'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function APIErrorFromJSON(json) {
23
+ return APIErrorFromJSONTyped(json, false);
24
+ }
25
+ export function APIErrorFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ message: json['message'],
31
+ };
32
+ }
33
+ export function APIErrorToJSON(json) {
34
+ return APIErrorToJSONTyped(json, false);
35
+ }
36
+ export function APIErrorToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ message: value['message'],
42
+ };
43
+ }
@@ -0,0 +1,30 @@
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 ApiHealth
16
+ */
17
+ export interface ApiHealth {
18
+ /**
19
+ *
20
+ */
21
+ status: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the ApiHealth interface.
25
+ */
26
+ export declare function instanceOfApiHealth(value: object): value is ApiHealth;
27
+ export declare function ApiHealthFromJSON(json: any): ApiHealth;
28
+ export declare function ApiHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiHealth;
29
+ export declare function ApiHealthToJSON(json: any): ApiHealth;
30
+ export declare function ApiHealthToJSONTyped(value?: ApiHealth | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 ApiHealth interface.
16
+ */
17
+ export function instanceOfApiHealth(value) {
18
+ if (!('status' in value) || value['status'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ApiHealthFromJSON(json) {
23
+ return ApiHealthFromJSONTyped(json, false);
24
+ }
25
+ export function ApiHealthFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ status: json['status'],
31
+ };
32
+ }
33
+ export function ApiHealthToJSON(json) {
34
+ return ApiHealthToJSONTyped(json, false);
35
+ }
36
+ export function ApiHealthToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ status: value['status'],
42
+ };
43
+ }
@@ -0,0 +1,47 @@
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 CapturePolicy
16
+ */
17
+ export interface CapturePolicy {
18
+ /**
19
+ *
20
+ */
21
+ mode?: CapturePolicyModeEnum;
22
+ /**
23
+ *
24
+ */
25
+ toolNames?: Array<string>;
26
+ /**
27
+ *
28
+ */
29
+ version?: number;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const CapturePolicyModeEnum: {
35
+ readonly All: "all";
36
+ readonly FailedTools: "failed_tools";
37
+ readonly None: "none";
38
+ };
39
+ export type CapturePolicyModeEnum = (typeof CapturePolicyModeEnum)[keyof typeof CapturePolicyModeEnum];
40
+ /**
41
+ * Check if a given object implements the CapturePolicy interface.
42
+ */
43
+ export declare function instanceOfCapturePolicy(value: object): value is CapturePolicy;
44
+ export declare function CapturePolicyFromJSON(json: any): CapturePolicy;
45
+ export declare function CapturePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CapturePolicy;
46
+ export declare function CapturePolicyToJSON(json: any): CapturePolicy;
47
+ export declare function CapturePolicyToJSONTyped(value?: CapturePolicy | null, ignoreDiscriminator?: boolean): any;