@breign/client 1.0.100 → 1.0.102

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 (50) hide show
  1. package/dist/apis/AgentApi.d.ts +14 -0
  2. package/dist/apis/AgentApi.js +32 -0
  3. package/dist/apis/ConfigurationApi.d.ts +11 -1
  4. package/dist/apis/ConfigurationApi.js +26 -0
  5. package/dist/apis/ScheduledTasksApi.d.ts +143 -0
  6. package/dist/apis/ScheduledTasksApi.js +364 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/ChatUio.d.ts +14 -0
  10. package/dist/models/ChatUio.js +10 -0
  11. package/dist/models/GetUploadLimits200ResponseUio.d.ts +32 -0
  12. package/dist/models/GetUploadLimits200ResponseUio.js +50 -0
  13. package/dist/models/PromptCreateRequestUio.d.ts +14 -0
  14. package/dist/models/PromptCreateRequestUio.js +10 -0
  15. package/dist/models/PromptFlowCreateRequestUio.d.ts +14 -0
  16. package/dist/models/PromptFlowCreateRequestUio.js +10 -0
  17. package/dist/models/RunStepUio.d.ts +78 -0
  18. package/dist/models/RunStepUio.js +74 -0
  19. package/dist/models/ScheduledTaskCreateUio.d.ts +77 -0
  20. package/dist/models/ScheduledTaskCreateUio.js +75 -0
  21. package/dist/models/ScheduledTaskListUio.d.ts +39 -0
  22. package/dist/models/ScheduledTaskListUio.js +55 -0
  23. package/dist/models/ScheduledTaskManualRunResponseUio.d.ts +32 -0
  24. package/dist/models/ScheduledTaskManualRunResponseUio.js +50 -0
  25. package/dist/models/ScheduledTaskRunListUio.d.ts +39 -0
  26. package/dist/models/ScheduledTaskRunListUio.js +55 -0
  27. package/dist/models/ScheduledTaskRunUio.d.ts +110 -0
  28. package/dist/models/ScheduledTaskRunUio.js +98 -0
  29. package/dist/models/ScheduledTaskStatusResponseUio.d.ts +46 -0
  30. package/dist/models/ScheduledTaskStatusResponseUio.js +60 -0
  31. package/dist/models/ScheduledTaskStatusToggleUio.d.ts +40 -0
  32. package/dist/models/ScheduledTaskStatusToggleUio.js +58 -0
  33. package/dist/models/ScheduledTaskUio.d.ts +146 -0
  34. package/dist/models/ScheduledTaskUio.js +123 -0
  35. package/dist/models/TaskScheduleEndOneOf1Uio.d.ts +45 -0
  36. package/dist/models/TaskScheduleEndOneOf1Uio.js +61 -0
  37. package/dist/models/TaskScheduleEndOneOf2Uio.d.ts +45 -0
  38. package/dist/models/TaskScheduleEndOneOf2Uio.js +61 -0
  39. package/dist/models/TaskScheduleEndOneOfUio.d.ts +39 -0
  40. package/dist/models/TaskScheduleEndOneOfUio.js +57 -0
  41. package/dist/models/TaskScheduleEndUio.d.ts +24 -0
  42. package/dist/models/TaskScheduleEndUio.js +64 -0
  43. package/dist/models/TaskScheduleIntervalUio.d.ts +47 -0
  44. package/dist/models/TaskScheduleIntervalUio.js +63 -0
  45. package/dist/models/TaskScheduleUio.d.ts +94 -0
  46. package/dist/models/TaskScheduleUio.js +78 -0
  47. package/dist/models/index.d.ts +16 -0
  48. package/dist/models/index.js +16 -0
  49. package/dist/openapi.json +933 -4
  50. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 ScheduledTaskManualRunResponseUio
16
+ */
17
+ export interface ScheduledTaskManualRunResponseUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScheduledTaskManualRunResponseUio
22
+ */
23
+ runId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ScheduledTaskManualRunResponseUio interface.
27
+ */
28
+ export declare function instanceOfScheduledTaskManualRunResponseUio(value: object): value is ScheduledTaskManualRunResponseUio;
29
+ export declare function ScheduledTaskManualRunResponseUioFromJSON(json: any): ScheduledTaskManualRunResponseUio;
30
+ export declare function ScheduledTaskManualRunResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskManualRunResponseUio;
31
+ export declare function ScheduledTaskManualRunResponseUioToJSON(json: any): ScheduledTaskManualRunResponseUio;
32
+ export declare function ScheduledTaskManualRunResponseUioToJSONTyped(value?: ScheduledTaskManualRunResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfScheduledTaskManualRunResponseUio = instanceOfScheduledTaskManualRunResponseUio;
17
+ exports.ScheduledTaskManualRunResponseUioFromJSON = ScheduledTaskManualRunResponseUioFromJSON;
18
+ exports.ScheduledTaskManualRunResponseUioFromJSONTyped = ScheduledTaskManualRunResponseUioFromJSONTyped;
19
+ exports.ScheduledTaskManualRunResponseUioToJSON = ScheduledTaskManualRunResponseUioToJSON;
20
+ exports.ScheduledTaskManualRunResponseUioToJSONTyped = ScheduledTaskManualRunResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScheduledTaskManualRunResponseUio interface.
23
+ */
24
+ function instanceOfScheduledTaskManualRunResponseUio(value) {
25
+ if (!('runId' in value) || value['runId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ScheduledTaskManualRunResponseUioFromJSON(json) {
30
+ return ScheduledTaskManualRunResponseUioFromJSONTyped(json, false);
31
+ }
32
+ function ScheduledTaskManualRunResponseUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'runId': json['runId'],
38
+ };
39
+ }
40
+ function ScheduledTaskManualRunResponseUioToJSON(json) {
41
+ return ScheduledTaskManualRunResponseUioToJSONTyped(json, false);
42
+ }
43
+ function ScheduledTaskManualRunResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'runId': value['runId'],
49
+ };
50
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { ScheduledTaskRunUio } from './ScheduledTaskRunUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScheduledTaskRunListUio
17
+ */
18
+ export interface ScheduledTaskRunListUio {
19
+ /**
20
+ *
21
+ * @type {Array<ScheduledTaskRunUio>}
22
+ * @memberof ScheduledTaskRunListUio
23
+ */
24
+ runs: Array<ScheduledTaskRunUio>;
25
+ /**
26
+ *
27
+ * @type {Date}
28
+ * @memberof ScheduledTaskRunListUio
29
+ */
30
+ nextRun: Date | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ScheduledTaskRunListUio interface.
34
+ */
35
+ export declare function instanceOfScheduledTaskRunListUio(value: object): value is ScheduledTaskRunListUio;
36
+ export declare function ScheduledTaskRunListUioFromJSON(json: any): ScheduledTaskRunListUio;
37
+ export declare function ScheduledTaskRunListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskRunListUio;
38
+ export declare function ScheduledTaskRunListUioToJSON(json: any): ScheduledTaskRunListUio;
39
+ export declare function ScheduledTaskRunListUioToJSONTyped(value?: ScheduledTaskRunListUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfScheduledTaskRunListUio = instanceOfScheduledTaskRunListUio;
17
+ exports.ScheduledTaskRunListUioFromJSON = ScheduledTaskRunListUioFromJSON;
18
+ exports.ScheduledTaskRunListUioFromJSONTyped = ScheduledTaskRunListUioFromJSONTyped;
19
+ exports.ScheduledTaskRunListUioToJSON = ScheduledTaskRunListUioToJSON;
20
+ exports.ScheduledTaskRunListUioToJSONTyped = ScheduledTaskRunListUioToJSONTyped;
21
+ const ScheduledTaskRunUio_1 = require("./ScheduledTaskRunUio");
22
+ /**
23
+ * Check if a given object implements the ScheduledTaskRunListUio interface.
24
+ */
25
+ function instanceOfScheduledTaskRunListUio(value) {
26
+ if (!('runs' in value) || value['runs'] === undefined)
27
+ return false;
28
+ if (!('nextRun' in value) || value['nextRun'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function ScheduledTaskRunListUioFromJSON(json) {
33
+ return ScheduledTaskRunListUioFromJSONTyped(json, false);
34
+ }
35
+ function ScheduledTaskRunListUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'runs': (json['runs'].map(ScheduledTaskRunUio_1.ScheduledTaskRunUioFromJSON)),
41
+ 'nextRun': (json['nextRun'] == null ? null : new Date(json['nextRun'])),
42
+ };
43
+ }
44
+ function ScheduledTaskRunListUioToJSON(json) {
45
+ return ScheduledTaskRunListUioToJSONTyped(json, false);
46
+ }
47
+ function ScheduledTaskRunListUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'runs': (value['runs'].map(ScheduledTaskRunUio_1.ScheduledTaskRunUioToJSON)),
53
+ 'nextRun': (value['nextRun'] == null ? null : value['nextRun'].toISOString()),
54
+ };
55
+ }
@@ -0,0 +1,110 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { RunStepUio } from './RunStepUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScheduledTaskRunUio
17
+ */
18
+ export interface ScheduledTaskRunUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ScheduledTaskRunUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ScheduledTaskRunUio
29
+ */
30
+ taskId: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ScheduledTaskRunUio
35
+ */
36
+ status: ScheduledTaskRunUioStatusEnum;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ScheduledTaskRunUio
41
+ */
42
+ prompt: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ScheduledTaskRunUio
47
+ */
48
+ conversationId?: string;
49
+ /**
50
+ *
51
+ * @type {Date}
52
+ * @memberof ScheduledTaskRunUio
53
+ */
54
+ triggeredAt: Date;
55
+ /**
56
+ *
57
+ * @type {Date}
58
+ * @memberof ScheduledTaskRunUio
59
+ */
60
+ startedAt?: Date;
61
+ /**
62
+ *
63
+ * @type {Date}
64
+ * @memberof ScheduledTaskRunUio
65
+ */
66
+ finishedAt?: Date;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof ScheduledTaskRunUio
71
+ */
72
+ claimedAt?: Date;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof ScheduledTaskRunUio
77
+ */
78
+ retryCount: number;
79
+ /**
80
+ *
81
+ * @type {Array<RunStepUio>}
82
+ * @memberof ScheduledTaskRunUio
83
+ */
84
+ steps: Array<RunStepUio>;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof ScheduledTaskRunUio
89
+ */
90
+ createdAt: Date;
91
+ }
92
+ /**
93
+ * @export
94
+ */
95
+ export declare const ScheduledTaskRunUioStatusEnum: {
96
+ readonly Pending: "pending";
97
+ readonly Running: "running";
98
+ readonly Success: "success";
99
+ readonly Error: "error";
100
+ readonly FailedPermanently: "failed_permanently";
101
+ };
102
+ export type ScheduledTaskRunUioStatusEnum = typeof ScheduledTaskRunUioStatusEnum[keyof typeof ScheduledTaskRunUioStatusEnum];
103
+ /**
104
+ * Check if a given object implements the ScheduledTaskRunUio interface.
105
+ */
106
+ export declare function instanceOfScheduledTaskRunUio(value: object): value is ScheduledTaskRunUio;
107
+ export declare function ScheduledTaskRunUioFromJSON(json: any): ScheduledTaskRunUio;
108
+ export declare function ScheduledTaskRunUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskRunUio;
109
+ export declare function ScheduledTaskRunUioToJSON(json: any): ScheduledTaskRunUio;
110
+ export declare function ScheduledTaskRunUioToJSONTyped(value?: ScheduledTaskRunUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ScheduledTaskRunUioStatusEnum = void 0;
17
+ exports.instanceOfScheduledTaskRunUio = instanceOfScheduledTaskRunUio;
18
+ exports.ScheduledTaskRunUioFromJSON = ScheduledTaskRunUioFromJSON;
19
+ exports.ScheduledTaskRunUioFromJSONTyped = ScheduledTaskRunUioFromJSONTyped;
20
+ exports.ScheduledTaskRunUioToJSON = ScheduledTaskRunUioToJSON;
21
+ exports.ScheduledTaskRunUioToJSONTyped = ScheduledTaskRunUioToJSONTyped;
22
+ const RunStepUio_1 = require("./RunStepUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ScheduledTaskRunUioStatusEnum = {
27
+ Pending: 'pending',
28
+ Running: 'running',
29
+ Success: 'success',
30
+ Error: 'error',
31
+ FailedPermanently: 'failed_permanently'
32
+ };
33
+ /**
34
+ * Check if a given object implements the ScheduledTaskRunUio interface.
35
+ */
36
+ function instanceOfScheduledTaskRunUio(value) {
37
+ if (!('id' in value) || value['id'] === undefined)
38
+ return false;
39
+ if (!('taskId' in value) || value['taskId'] === undefined)
40
+ return false;
41
+ if (!('status' in value) || value['status'] === undefined)
42
+ return false;
43
+ if (!('prompt' in value) || value['prompt'] === undefined)
44
+ return false;
45
+ if (!('triggeredAt' in value) || value['triggeredAt'] === undefined)
46
+ return false;
47
+ if (!('retryCount' in value) || value['retryCount'] === undefined)
48
+ return false;
49
+ if (!('steps' in value) || value['steps'] === undefined)
50
+ return false;
51
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
52
+ return false;
53
+ return true;
54
+ }
55
+ function ScheduledTaskRunUioFromJSON(json) {
56
+ return ScheduledTaskRunUioFromJSONTyped(json, false);
57
+ }
58
+ function ScheduledTaskRunUioFromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'id': json['id'],
64
+ 'taskId': json['taskId'],
65
+ 'status': json['status'],
66
+ 'prompt': json['prompt'],
67
+ 'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
68
+ 'triggeredAt': (new Date(json['triggeredAt'])),
69
+ 'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
70
+ 'finishedAt': json['finishedAt'] == null ? undefined : (new Date(json['finishedAt'])),
71
+ 'claimedAt': json['claimedAt'] == null ? undefined : (new Date(json['claimedAt'])),
72
+ 'retryCount': json['retryCount'],
73
+ 'steps': (json['steps'].map(RunStepUio_1.RunStepUioFromJSON)),
74
+ 'createdAt': (new Date(json['createdAt'])),
75
+ };
76
+ }
77
+ function ScheduledTaskRunUioToJSON(json) {
78
+ return ScheduledTaskRunUioToJSONTyped(json, false);
79
+ }
80
+ function ScheduledTaskRunUioToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'id': value['id'],
86
+ 'taskId': value['taskId'],
87
+ 'status': value['status'],
88
+ 'prompt': value['prompt'],
89
+ 'conversationId': value['conversationId'],
90
+ 'triggeredAt': ((value['triggeredAt']).toISOString()),
91
+ 'startedAt': value['startedAt'] == null ? undefined : ((value['startedAt']).toISOString()),
92
+ 'finishedAt': value['finishedAt'] == null ? undefined : ((value['finishedAt']).toISOString()),
93
+ 'claimedAt': value['claimedAt'] == null ? undefined : ((value['claimedAt']).toISOString()),
94
+ 'retryCount': value['retryCount'],
95
+ 'steps': (value['steps'].map(RunStepUio_1.RunStepUioToJSON)),
96
+ 'createdAt': ((value['createdAt']).toISOString()),
97
+ };
98
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 ScheduledTaskStatusResponseUio
16
+ */
17
+ export interface ScheduledTaskStatusResponseUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScheduledTaskStatusResponseUio
22
+ */
23
+ status: ScheduledTaskStatusResponseUioStatusEnum;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof ScheduledTaskStatusResponseUio
28
+ */
29
+ nextRunAt?: Date | null;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ScheduledTaskStatusResponseUioStatusEnum: {
35
+ readonly Active: "active";
36
+ readonly Paused: "paused";
37
+ };
38
+ export type ScheduledTaskStatusResponseUioStatusEnum = typeof ScheduledTaskStatusResponseUioStatusEnum[keyof typeof ScheduledTaskStatusResponseUioStatusEnum];
39
+ /**
40
+ * Check if a given object implements the ScheduledTaskStatusResponseUio interface.
41
+ */
42
+ export declare function instanceOfScheduledTaskStatusResponseUio(value: object): value is ScheduledTaskStatusResponseUio;
43
+ export declare function ScheduledTaskStatusResponseUioFromJSON(json: any): ScheduledTaskStatusResponseUio;
44
+ export declare function ScheduledTaskStatusResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskStatusResponseUio;
45
+ export declare function ScheduledTaskStatusResponseUioToJSON(json: any): ScheduledTaskStatusResponseUio;
46
+ export declare function ScheduledTaskStatusResponseUioToJSONTyped(value?: ScheduledTaskStatusResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ScheduledTaskStatusResponseUioStatusEnum = void 0;
17
+ exports.instanceOfScheduledTaskStatusResponseUio = instanceOfScheduledTaskStatusResponseUio;
18
+ exports.ScheduledTaskStatusResponseUioFromJSON = ScheduledTaskStatusResponseUioFromJSON;
19
+ exports.ScheduledTaskStatusResponseUioFromJSONTyped = ScheduledTaskStatusResponseUioFromJSONTyped;
20
+ exports.ScheduledTaskStatusResponseUioToJSON = ScheduledTaskStatusResponseUioToJSON;
21
+ exports.ScheduledTaskStatusResponseUioToJSONTyped = ScheduledTaskStatusResponseUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ScheduledTaskStatusResponseUioStatusEnum = {
26
+ Active: 'active',
27
+ Paused: 'paused'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ScheduledTaskStatusResponseUio interface.
31
+ */
32
+ function instanceOfScheduledTaskStatusResponseUio(value) {
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ScheduledTaskStatusResponseUioFromJSON(json) {
38
+ return ScheduledTaskStatusResponseUioFromJSONTyped(json, false);
39
+ }
40
+ function ScheduledTaskStatusResponseUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'status': json['status'],
46
+ 'nextRunAt': json['nextRunAt'] == null ? undefined : (new Date(json['nextRunAt'])),
47
+ };
48
+ }
49
+ function ScheduledTaskStatusResponseUioToJSON(json) {
50
+ return ScheduledTaskStatusResponseUioToJSONTyped(json, false);
51
+ }
52
+ function ScheduledTaskStatusResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'status': value['status'],
58
+ 'nextRunAt': value['nextRunAt'] == null ? undefined : (value['nextRunAt'].toISOString()),
59
+ };
60
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 ScheduledTaskStatusToggleUio
16
+ */
17
+ export interface ScheduledTaskStatusToggleUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScheduledTaskStatusToggleUio
22
+ */
23
+ status: ScheduledTaskStatusToggleUioStatusEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const ScheduledTaskStatusToggleUioStatusEnum: {
29
+ readonly Active: "active";
30
+ readonly Paused: "paused";
31
+ };
32
+ export type ScheduledTaskStatusToggleUioStatusEnum = typeof ScheduledTaskStatusToggleUioStatusEnum[keyof typeof ScheduledTaskStatusToggleUioStatusEnum];
33
+ /**
34
+ * Check if a given object implements the ScheduledTaskStatusToggleUio interface.
35
+ */
36
+ export declare function instanceOfScheduledTaskStatusToggleUio(value: object): value is ScheduledTaskStatusToggleUio;
37
+ export declare function ScheduledTaskStatusToggleUioFromJSON(json: any): ScheduledTaskStatusToggleUio;
38
+ export declare function ScheduledTaskStatusToggleUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskStatusToggleUio;
39
+ export declare function ScheduledTaskStatusToggleUioToJSON(json: any): ScheduledTaskStatusToggleUio;
40
+ export declare function ScheduledTaskStatusToggleUioToJSONTyped(value?: ScheduledTaskStatusToggleUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ScheduledTaskStatusToggleUioStatusEnum = void 0;
17
+ exports.instanceOfScheduledTaskStatusToggleUio = instanceOfScheduledTaskStatusToggleUio;
18
+ exports.ScheduledTaskStatusToggleUioFromJSON = ScheduledTaskStatusToggleUioFromJSON;
19
+ exports.ScheduledTaskStatusToggleUioFromJSONTyped = ScheduledTaskStatusToggleUioFromJSONTyped;
20
+ exports.ScheduledTaskStatusToggleUioToJSON = ScheduledTaskStatusToggleUioToJSON;
21
+ exports.ScheduledTaskStatusToggleUioToJSONTyped = ScheduledTaskStatusToggleUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ScheduledTaskStatusToggleUioStatusEnum = {
26
+ Active: 'active',
27
+ Paused: 'paused'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ScheduledTaskStatusToggleUio interface.
31
+ */
32
+ function instanceOfScheduledTaskStatusToggleUio(value) {
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ScheduledTaskStatusToggleUioFromJSON(json) {
38
+ return ScheduledTaskStatusToggleUioFromJSONTyped(json, false);
39
+ }
40
+ function ScheduledTaskStatusToggleUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'status': json['status'],
46
+ };
47
+ }
48
+ function ScheduledTaskStatusToggleUioToJSON(json) {
49
+ return ScheduledTaskStatusToggleUioToJSONTyped(json, false);
50
+ }
51
+ function ScheduledTaskStatusToggleUioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'status': value['status'],
57
+ };
58
+ }