@breign/client 1.0.101 → 1.0.103

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 (92) 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 +7 -7
  4. package/dist/apis/ConfigurationApi.js +5 -5
  5. package/dist/apis/OrganizationsApi.d.ts +175 -1
  6. package/dist/apis/OrganizationsApi.js +433 -0
  7. package/dist/apis/ScheduledTasksApi.d.ts +143 -0
  8. package/dist/apis/ScheduledTasksApi.js +364 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccessRoleCreateRequestUio.d.ts +45 -0
  12. package/dist/models/AccessRoleCreateRequestUio.js +55 -0
  13. package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
  14. package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
  15. package/dist/models/AccessRoleUio.d.ts +75 -0
  16. package/dist/models/AccessRoleUio.js +75 -0
  17. package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
  18. package/dist/models/AccessRoleUpdateRequestUio.js +52 -0
  19. package/dist/models/ChatUio.d.ts +14 -0
  20. package/dist/models/ChatUio.js +10 -0
  21. package/dist/models/GetUploadLimits200ResponseUio.d.ts +32 -0
  22. package/dist/models/GetUploadLimits200ResponseUio.js +50 -0
  23. package/dist/models/OrganizationMemberUio.d.ts +51 -0
  24. package/dist/models/OrganizationMemberUio.js +63 -0
  25. package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
  26. package/dist/models/OrganizationMemberUserUio.js +50 -0
  27. package/dist/models/OrganizationPermissionKeyUio.d.ts +59 -0
  28. package/dist/models/OrganizationPermissionKeyUio.js +85 -0
  29. package/dist/models/OrganizationUserInviteRequestUio.d.ts +38 -0
  30. package/dist/models/OrganizationUserInviteRequestUio.js +52 -0
  31. package/dist/models/OrganizationUserInviteResponseUio.d.ts +32 -0
  32. package/dist/models/OrganizationUserInviteResponseUio.js +50 -0
  33. package/dist/models/PermissionEntryUio.d.ts +39 -0
  34. package/dist/models/PermissionEntryUio.js +55 -0
  35. package/dist/models/PromptCreateRequestUio.d.ts +14 -0
  36. package/dist/models/PromptCreateRequestUio.js +10 -0
  37. package/dist/models/PromptFlowCreateRequestUio.d.ts +14 -0
  38. package/dist/models/PromptFlowCreateRequestUio.js +10 -0
  39. package/dist/models/ProviderValiationRequestUio.d.ts +6 -0
  40. package/dist/models/ProviderValiationRequestUio.js +4 -0
  41. package/dist/models/RunStepUio.d.ts +78 -0
  42. package/dist/models/RunStepUio.js +74 -0
  43. package/dist/models/ScheduledTaskCreateUio.d.ts +77 -0
  44. package/dist/models/ScheduledTaskCreateUio.js +75 -0
  45. package/dist/models/ScheduledTaskListUio.d.ts +39 -0
  46. package/dist/models/ScheduledTaskListUio.js +55 -0
  47. package/dist/models/ScheduledTaskManualRunResponseUio.d.ts +32 -0
  48. package/dist/models/ScheduledTaskManualRunResponseUio.js +50 -0
  49. package/dist/models/ScheduledTaskRunListUio.d.ts +39 -0
  50. package/dist/models/ScheduledTaskRunListUio.js +55 -0
  51. package/dist/models/ScheduledTaskRunUio.d.ts +110 -0
  52. package/dist/models/ScheduledTaskRunUio.js +98 -0
  53. package/dist/models/ScheduledTaskStatusResponseUio.d.ts +46 -0
  54. package/dist/models/ScheduledTaskStatusResponseUio.js +60 -0
  55. package/dist/models/ScheduledTaskStatusToggleUio.d.ts +40 -0
  56. package/dist/models/ScheduledTaskStatusToggleUio.js +58 -0
  57. package/dist/models/ScheduledTaskUio.d.ts +146 -0
  58. package/dist/models/ScheduledTaskUio.js +123 -0
  59. package/dist/models/TaskScheduleEndOneOf1Uio.d.ts +45 -0
  60. package/dist/models/TaskScheduleEndOneOf1Uio.js +61 -0
  61. package/dist/models/TaskScheduleEndOneOf2Uio.d.ts +45 -0
  62. package/dist/models/TaskScheduleEndOneOf2Uio.js +61 -0
  63. package/dist/models/TaskScheduleEndOneOfUio.d.ts +39 -0
  64. package/dist/models/TaskScheduleEndOneOfUio.js +57 -0
  65. package/dist/models/TaskScheduleEndUio.d.ts +24 -0
  66. package/dist/models/TaskScheduleEndUio.js +64 -0
  67. package/dist/models/TaskScheduleIntervalUio.d.ts +47 -0
  68. package/dist/models/TaskScheduleIntervalUio.js +63 -0
  69. package/dist/models/TaskScheduleUio.d.ts +94 -0
  70. package/dist/models/TaskScheduleUio.js +78 -0
  71. package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
  72. package/dist/models/UserAccessRolesRequestUio.js +50 -0
  73. package/dist/models/UserAccessUio.d.ts +39 -0
  74. package/dist/models/UserAccessUio.js +55 -0
  75. package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
  76. package/dist/models/UserAgentAccessAgentUio.js +54 -0
  77. package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
  78. package/dist/models/UserAgentAccessRequestUio.js +54 -0
  79. package/dist/models/UserAgentAccessUio.d.ts +45 -0
  80. package/dist/models/UserAgentAccessUio.js +59 -0
  81. package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
  82. package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
  83. package/dist/models/UserUio.d.ts +3 -3
  84. package/dist/models/UserUio.js +3 -3
  85. package/dist/models/index.d.ts +32 -2
  86. package/dist/models/index.js +32 -2
  87. package/dist/openapi.json +2329 -617
  88. package/package.json +1 -1
  89. package/dist/models/UploadLimitsResponseUio.d.ts +0 -32
  90. package/dist/models/UploadLimitsResponseUio.js +0 -50
  91. package/dist/models/UserUserUio.d.ts +0 -32
  92. package/dist/models/UserUserUio.js +0 -50
@@ -0,0 +1,38 @@
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 OrganizationUserInviteRequestUio
16
+ */
17
+ export interface OrganizationUserInviteRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OrganizationUserInviteRequestUio
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OrganizationUserInviteRequestUio
28
+ */
29
+ role?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OrganizationUserInviteRequestUio interface.
33
+ */
34
+ export declare function instanceOfOrganizationUserInviteRequestUio(value: object): value is OrganizationUserInviteRequestUio;
35
+ export declare function OrganizationUserInviteRequestUioFromJSON(json: any): OrganizationUserInviteRequestUio;
36
+ export declare function OrganizationUserInviteRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationUserInviteRequestUio;
37
+ export declare function OrganizationUserInviteRequestUioToJSON(json: any): OrganizationUserInviteRequestUio;
38
+ export declare function OrganizationUserInviteRequestUioToJSONTyped(value?: OrganizationUserInviteRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfOrganizationUserInviteRequestUio = instanceOfOrganizationUserInviteRequestUio;
17
+ exports.OrganizationUserInviteRequestUioFromJSON = OrganizationUserInviteRequestUioFromJSON;
18
+ exports.OrganizationUserInviteRequestUioFromJSONTyped = OrganizationUserInviteRequestUioFromJSONTyped;
19
+ exports.OrganizationUserInviteRequestUioToJSON = OrganizationUserInviteRequestUioToJSON;
20
+ exports.OrganizationUserInviteRequestUioToJSONTyped = OrganizationUserInviteRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OrganizationUserInviteRequestUio interface.
23
+ */
24
+ function instanceOfOrganizationUserInviteRequestUio(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function OrganizationUserInviteRequestUioFromJSON(json) {
30
+ return OrganizationUserInviteRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function OrganizationUserInviteRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'email': json['email'],
38
+ 'role': json['role'] == null ? undefined : json['role'],
39
+ };
40
+ }
41
+ function OrganizationUserInviteRequestUioToJSON(json) {
42
+ return OrganizationUserInviteRequestUioToJSONTyped(json, false);
43
+ }
44
+ function OrganizationUserInviteRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'email': value['email'],
50
+ 'role': value['role'],
51
+ };
52
+ }
@@ -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 OrganizationUserInviteResponseUio
16
+ */
17
+ export interface OrganizationUserInviteResponseUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OrganizationUserInviteResponseUio
22
+ */
23
+ userId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OrganizationUserInviteResponseUio interface.
27
+ */
28
+ export declare function instanceOfOrganizationUserInviteResponseUio(value: object): value is OrganizationUserInviteResponseUio;
29
+ export declare function OrganizationUserInviteResponseUioFromJSON(json: any): OrganizationUserInviteResponseUio;
30
+ export declare function OrganizationUserInviteResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationUserInviteResponseUio;
31
+ export declare function OrganizationUserInviteResponseUioToJSON(json: any): OrganizationUserInviteResponseUio;
32
+ export declare function OrganizationUserInviteResponseUioToJSONTyped(value?: OrganizationUserInviteResponseUio | 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.instanceOfOrganizationUserInviteResponseUio = instanceOfOrganizationUserInviteResponseUio;
17
+ exports.OrganizationUserInviteResponseUioFromJSON = OrganizationUserInviteResponseUioFromJSON;
18
+ exports.OrganizationUserInviteResponseUioFromJSONTyped = OrganizationUserInviteResponseUioFromJSONTyped;
19
+ exports.OrganizationUserInviteResponseUioToJSON = OrganizationUserInviteResponseUioToJSON;
20
+ exports.OrganizationUserInviteResponseUioToJSONTyped = OrganizationUserInviteResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OrganizationUserInviteResponseUio interface.
23
+ */
24
+ function instanceOfOrganizationUserInviteResponseUio(value) {
25
+ if (!('userId' in value) || value['userId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function OrganizationUserInviteResponseUioFromJSON(json) {
30
+ return OrganizationUserInviteResponseUioFromJSONTyped(json, false);
31
+ }
32
+ function OrganizationUserInviteResponseUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'userId': json['userId'],
38
+ };
39
+ }
40
+ function OrganizationUserInviteResponseUioToJSON(json) {
41
+ return OrganizationUserInviteResponseUioToJSONTyped(json, false);
42
+ }
43
+ function OrganizationUserInviteResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'userId': value['userId'],
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 { OrganizationPermissionKeyUio } from './OrganizationPermissionKeyUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PermissionEntryUio
17
+ */
18
+ export interface PermissionEntryUio {
19
+ /**
20
+ *
21
+ * @type {OrganizationPermissionKeyUio}
22
+ * @memberof PermissionEntryUio
23
+ */
24
+ permission: OrganizationPermissionKeyUio;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof PermissionEntryUio
29
+ */
30
+ allowed: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PermissionEntryUio interface.
34
+ */
35
+ export declare function instanceOfPermissionEntryUio(value: object): value is PermissionEntryUio;
36
+ export declare function PermissionEntryUioFromJSON(json: any): PermissionEntryUio;
37
+ export declare function PermissionEntryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionEntryUio;
38
+ export declare function PermissionEntryUioToJSON(json: any): PermissionEntryUio;
39
+ export declare function PermissionEntryUioToJSONTyped(value?: PermissionEntryUio | 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.instanceOfPermissionEntryUio = instanceOfPermissionEntryUio;
17
+ exports.PermissionEntryUioFromJSON = PermissionEntryUioFromJSON;
18
+ exports.PermissionEntryUioFromJSONTyped = PermissionEntryUioFromJSONTyped;
19
+ exports.PermissionEntryUioToJSON = PermissionEntryUioToJSON;
20
+ exports.PermissionEntryUioToJSONTyped = PermissionEntryUioToJSONTyped;
21
+ const OrganizationPermissionKeyUio_1 = require("./OrganizationPermissionKeyUio");
22
+ /**
23
+ * Check if a given object implements the PermissionEntryUio interface.
24
+ */
25
+ function instanceOfPermissionEntryUio(value) {
26
+ if (!('permission' in value) || value['permission'] === undefined)
27
+ return false;
28
+ if (!('allowed' in value) || value['allowed'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function PermissionEntryUioFromJSON(json) {
33
+ return PermissionEntryUioFromJSONTyped(json, false);
34
+ }
35
+ function PermissionEntryUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'permission': (0, OrganizationPermissionKeyUio_1.OrganizationPermissionKeyUioFromJSON)(json['permission']),
41
+ 'allowed': json['allowed'],
42
+ };
43
+ }
44
+ function PermissionEntryUioToJSON(json) {
45
+ return PermissionEntryUioToJSONTyped(json, false);
46
+ }
47
+ function PermissionEntryUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'permission': (0, OrganizationPermissionKeyUio_1.OrganizationPermissionKeyUioToJSON)(value['permission']),
53
+ 'allowed': value['allowed'],
54
+ };
55
+ }
@@ -27,6 +27,12 @@ export interface PromptCreateRequestUio {
27
27
  * @memberof PromptCreateRequestUio
28
28
  */
29
29
  customUserId?: string;
30
+ /**
31
+ * Type of conversation (defaults to 'chat')
32
+ * @type {string}
33
+ * @memberof PromptCreateRequestUio
34
+ */
35
+ type?: PromptCreateRequestUioTypeEnum;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -40,6 +46,14 @@ export interface PromptCreateRequestUio {
40
46
  */
41
47
  stream?: boolean;
42
48
  }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PromptCreateRequestUioTypeEnum: {
53
+ readonly Chat: "chat";
54
+ readonly Task: "task";
55
+ };
56
+ export type PromptCreateRequestUioTypeEnum = typeof PromptCreateRequestUioTypeEnum[keyof typeof PromptCreateRequestUioTypeEnum];
43
57
  /**
44
58
  * Check if a given object implements the PromptCreateRequestUio interface.
45
59
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PromptCreateRequestUioTypeEnum = void 0;
16
17
  exports.instanceOfPromptCreateRequestUio = instanceOfPromptCreateRequestUio;
17
18
  exports.PromptCreateRequestUioFromJSON = PromptCreateRequestUioFromJSON;
18
19
  exports.PromptCreateRequestUioFromJSONTyped = PromptCreateRequestUioFromJSONTyped;
19
20
  exports.PromptCreateRequestUioToJSON = PromptCreateRequestUioToJSON;
20
21
  exports.PromptCreateRequestUioToJSONTyped = PromptCreateRequestUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PromptCreateRequestUioTypeEnum = {
26
+ Chat: 'chat',
27
+ Task: 'task'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the PromptCreateRequestUio interface.
23
31
  */
@@ -38,6 +46,7 @@ function PromptCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
38
46
  return {
39
47
  'lang': json['lang'],
40
48
  'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
49
+ 'type': json['type'] == null ? undefined : json['type'],
41
50
  'message': json['message'],
42
51
  'stream': json['stream'] == null ? undefined : json['stream'],
43
52
  };
@@ -52,6 +61,7 @@ function PromptCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
52
61
  return {
53
62
  'lang': value['lang'],
54
63
  'customUserId': value['customUserId'],
64
+ 'type': value['type'],
55
65
  'message': value['message'],
56
66
  'stream': value['stream'],
57
67
  };
@@ -27,7 +27,21 @@ export interface PromptFlowCreateRequestUio {
27
27
  * @memberof PromptFlowCreateRequestUio
28
28
  */
29
29
  customUserId?: string;
30
+ /**
31
+ * Type of conversation (defaults to 'chat')
32
+ * @type {string}
33
+ * @memberof PromptFlowCreateRequestUio
34
+ */
35
+ type?: PromptFlowCreateRequestUioTypeEnum;
30
36
  }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const PromptFlowCreateRequestUioTypeEnum: {
41
+ readonly Chat: "chat";
42
+ readonly Task: "task";
43
+ };
44
+ export type PromptFlowCreateRequestUioTypeEnum = typeof PromptFlowCreateRequestUioTypeEnum[keyof typeof PromptFlowCreateRequestUioTypeEnum];
31
45
  /**
32
46
  * Check if a given object implements the PromptFlowCreateRequestUio interface.
33
47
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PromptFlowCreateRequestUioTypeEnum = void 0;
16
17
  exports.instanceOfPromptFlowCreateRequestUio = instanceOfPromptFlowCreateRequestUio;
17
18
  exports.PromptFlowCreateRequestUioFromJSON = PromptFlowCreateRequestUioFromJSON;
18
19
  exports.PromptFlowCreateRequestUioFromJSONTyped = PromptFlowCreateRequestUioFromJSONTyped;
19
20
  exports.PromptFlowCreateRequestUioToJSON = PromptFlowCreateRequestUioToJSON;
20
21
  exports.PromptFlowCreateRequestUioToJSONTyped = PromptFlowCreateRequestUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PromptFlowCreateRequestUioTypeEnum = {
26
+ Chat: 'chat',
27
+ Task: 'task'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the PromptFlowCreateRequestUio interface.
23
31
  */
@@ -36,6 +44,7 @@ function PromptFlowCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
36
44
  return {
37
45
  'lang': json['lang'],
38
46
  'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
47
+ 'type': json['type'] == null ? undefined : json['type'],
39
48
  };
40
49
  }
41
50
  function PromptFlowCreateRequestUioToJSON(json) {
@@ -48,5 +57,6 @@ function PromptFlowCreateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
48
57
  return {
49
58
  'lang': value['lang'],
50
59
  'customUserId': value['customUserId'],
60
+ 'type': value['type'],
51
61
  };
52
62
  }
@@ -15,6 +15,12 @@
15
15
  * @interface ProviderValiationRequestUio
16
16
  */
17
17
  export interface ProviderValiationRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ProviderValiationRequestUio
22
+ */
23
+ organizationId: string;
18
24
  /**
19
25
  *
20
26
  * @type {string}
@@ -22,6 +22,8 @@ exports.ProviderValiationRequestUioToJSONTyped = ProviderValiationRequestUioToJS
22
22
  * Check if a given object implements the ProviderValiationRequestUio interface.
23
23
  */
24
24
  function instanceOfProviderValiationRequestUio(value) {
25
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
26
+ return false;
25
27
  if (!('providerType' in value) || value['providerType'] === undefined)
26
28
  return false;
27
29
  if (!('apiKey' in value) || value['apiKey'] === undefined)
@@ -36,6 +38,7 @@ function ProviderValiationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
36
38
  return json;
37
39
  }
38
40
  return {
41
+ 'organizationId': json['organizationId'],
39
42
  'providerType': json['providerType'],
40
43
  'apiKey': json['apiKey'],
41
44
  };
@@ -48,6 +51,7 @@ function ProviderValiationRequestUioToJSONTyped(value, ignoreDiscriminator = fal
48
51
  return value;
49
52
  }
50
53
  return {
54
+ 'organizationId': value['organizationId'],
51
55
  'providerType': value['providerType'],
52
56
  'apiKey': value['apiKey'],
53
57
  };
@@ -0,0 +1,78 @@
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 RunStepUio
16
+ */
17
+ export interface RunStepUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RunStepUio
22
+ */
23
+ type: RunStepUioTypeEnum;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof RunStepUio
28
+ */
29
+ at: Date;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof RunStepUio
34
+ */
35
+ tool?: string;
36
+ /**
37
+ *
38
+ * @type {any}
39
+ * @memberof RunStepUio
40
+ */
41
+ input?: any | null;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof RunStepUio
46
+ */
47
+ output?: any | null;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof RunStepUio
52
+ */
53
+ tokens?: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof RunStepUio
58
+ */
59
+ error?: string;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const RunStepUioTypeEnum: {
65
+ readonly LlmCall: "llm_call";
66
+ readonly ToolCall: "tool_call";
67
+ readonly ToolResult: "tool_result";
68
+ readonly LlmResponse: "llm_response";
69
+ };
70
+ export type RunStepUioTypeEnum = typeof RunStepUioTypeEnum[keyof typeof RunStepUioTypeEnum];
71
+ /**
72
+ * Check if a given object implements the RunStepUio interface.
73
+ */
74
+ export declare function instanceOfRunStepUio(value: object): value is RunStepUio;
75
+ export declare function RunStepUioFromJSON(json: any): RunStepUio;
76
+ export declare function RunStepUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunStepUio;
77
+ export declare function RunStepUioToJSON(json: any): RunStepUio;
78
+ export declare function RunStepUioToJSONTyped(value?: RunStepUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.RunStepUioTypeEnum = void 0;
17
+ exports.instanceOfRunStepUio = instanceOfRunStepUio;
18
+ exports.RunStepUioFromJSON = RunStepUioFromJSON;
19
+ exports.RunStepUioFromJSONTyped = RunStepUioFromJSONTyped;
20
+ exports.RunStepUioToJSON = RunStepUioToJSON;
21
+ exports.RunStepUioToJSONTyped = RunStepUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.RunStepUioTypeEnum = {
26
+ LlmCall: 'llm_call',
27
+ ToolCall: 'tool_call',
28
+ ToolResult: 'tool_result',
29
+ LlmResponse: 'llm_response'
30
+ };
31
+ /**
32
+ * Check if a given object implements the RunStepUio interface.
33
+ */
34
+ function instanceOfRunStepUio(value) {
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('at' in value) || value['at'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function RunStepUioFromJSON(json) {
42
+ return RunStepUioFromJSONTyped(json, false);
43
+ }
44
+ function RunStepUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'type': json['type'],
50
+ 'at': (new Date(json['at'])),
51
+ 'tool': json['tool'] == null ? undefined : json['tool'],
52
+ 'input': json['input'] == null ? undefined : json['input'],
53
+ 'output': json['output'] == null ? undefined : json['output'],
54
+ 'tokens': json['tokens'] == null ? undefined : json['tokens'],
55
+ 'error': json['error'] == null ? undefined : json['error'],
56
+ };
57
+ }
58
+ function RunStepUioToJSON(json) {
59
+ return RunStepUioToJSONTyped(json, false);
60
+ }
61
+ function RunStepUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'type': value['type'],
67
+ 'at': ((value['at']).toISOString()),
68
+ 'tool': value['tool'],
69
+ 'input': value['input'],
70
+ 'output': value['output'],
71
+ 'tokens': value['tokens'],
72
+ 'error': value['error'],
73
+ };
74
+ }
@@ -0,0 +1,77 @@
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 { TaskScheduleUio } from './TaskScheduleUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScheduledTaskCreateUio
17
+ */
18
+ export interface ScheduledTaskCreateUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ScheduledTaskCreateUio
23
+ */
24
+ message: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ScheduledTaskCreateUio
29
+ */
30
+ mode: ScheduledTaskCreateUioModeEnum;
31
+ /**
32
+ *
33
+ * @type {TaskScheduleUio}
34
+ * @memberof ScheduledTaskCreateUio
35
+ */
36
+ schedule: TaskScheduleUio;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ScheduledTaskCreateUio
41
+ */
42
+ name?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ScheduledTaskCreateUio
47
+ */
48
+ timezone?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ScheduledTaskCreateUio
53
+ */
54
+ callbackUrl?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ScheduledTaskCreateUio
59
+ */
60
+ lang?: string;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const ScheduledTaskCreateUioModeEnum: {
66
+ readonly Once: "once";
67
+ readonly Recurring: "recurring";
68
+ };
69
+ export type ScheduledTaskCreateUioModeEnum = typeof ScheduledTaskCreateUioModeEnum[keyof typeof ScheduledTaskCreateUioModeEnum];
70
+ /**
71
+ * Check if a given object implements the ScheduledTaskCreateUio interface.
72
+ */
73
+ export declare function instanceOfScheduledTaskCreateUio(value: object): value is ScheduledTaskCreateUio;
74
+ export declare function ScheduledTaskCreateUioFromJSON(json: any): ScheduledTaskCreateUio;
75
+ export declare function ScheduledTaskCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskCreateUio;
76
+ export declare function ScheduledTaskCreateUioToJSON(json: any): ScheduledTaskCreateUio;
77
+ export declare function ScheduledTaskCreateUioToJSONTyped(value?: ScheduledTaskCreateUio | null, ignoreDiscriminator?: boolean): any;