@breign/client 1.0.74 → 1.0.76

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 (98) hide show
  1. package/dist/apis/AgentApi.d.ts +95 -3
  2. package/dist/apis/AgentApi.js +218 -5
  3. package/dist/apis/AppApi.d.ts +73 -2
  4. package/dist/apis/AppApi.js +169 -2
  5. package/dist/apis/KnowledgeApi.d.ts +27 -1
  6. package/dist/apis/KnowledgeApi.js +60 -0
  7. package/dist/apis/OrganizationsApi.d.ts +67 -1
  8. package/dist/apis/OrganizationsApi.js +156 -0
  9. package/dist/apis/PromptsApi.d.ts +3 -3
  10. package/dist/apis/PromptsApi.js +1 -1
  11. package/dist/apis/ToolsApi.d.ts +26 -1
  12. package/dist/apis/ToolsApi.js +59 -0
  13. package/dist/models/AdvancedFlowEditorEdgeUio.d.ts +56 -0
  14. package/dist/models/AdvancedFlowEditorEdgeUio.js +62 -0
  15. package/dist/models/AdvancedFlowEditorNodePositionUio.d.ts +38 -0
  16. package/dist/models/AdvancedFlowEditorNodePositionUio.js +54 -0
  17. package/dist/models/AdvancedFlowEditorNodeUio.d.ts +53 -0
  18. package/dist/models/AdvancedFlowEditorNodeUio.js +63 -0
  19. package/dist/models/AdvancedFlowEditorUio.d.ts +46 -0
  20. package/dist/models/AdvancedFlowEditorUio.js +60 -0
  21. package/dist/models/AdvancedFlowEditorUpdateRequestUio.d.ts +40 -0
  22. package/dist/models/AdvancedFlowEditorUpdateRequestUio.js +56 -0
  23. package/dist/models/AgentFlowCreateUio.d.ts +6 -0
  24. package/dist/models/AgentFlowCreateUio.js +2 -0
  25. package/dist/models/AgentFlowUio.d.ts +6 -0
  26. package/dist/models/AgentFlowUio.js +2 -0
  27. package/dist/models/AnimationCreateRequestUio.d.ts +56 -0
  28. package/dist/models/AnimationCreateRequestUio.js +64 -0
  29. package/dist/models/AnimationUio.d.ts +56 -0
  30. package/dist/models/AnimationUio.js +64 -0
  31. package/dist/models/AppCommandsInnerUio.d.ts +46 -0
  32. package/dist/models/AppCommandsInnerUio.js +56 -0
  33. package/dist/models/AppUio.d.ts +17 -3
  34. package/dist/models/AppUio.js +9 -3
  35. package/dist/models/AppUpdateRequestUio.d.ts +8 -0
  36. package/dist/models/AppUpdateRequestUio.js +2 -0
  37. package/dist/models/Conversation1Uio.d.ts +46 -0
  38. package/dist/models/Conversation1Uio.js +60 -0
  39. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.d.ts +32 -0
  40. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.js +48 -0
  41. package/dist/models/ConversationMessagesInnerFlowNodeUio.d.ts +51 -0
  42. package/dist/models/ConversationMessagesInnerFlowNodeUio.js +55 -0
  43. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.d.ts +38 -0
  44. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.js +54 -0
  45. package/dist/models/ConversationMessagesInnerUio.d.ts +79 -0
  46. package/dist/models/ConversationMessagesInnerUio.js +73 -0
  47. package/dist/models/ConversationMetricsInnerSourceUio.d.ts +51 -0
  48. package/dist/models/ConversationMetricsInnerSourceUio.js +65 -0
  49. package/dist/models/ConversationMetricsInnerUio.d.ts +46 -0
  50. package/dist/models/ConversationMetricsInnerUio.js +60 -0
  51. package/dist/models/ConversationMetricsInnerValueInnerCostUio.d.ts +38 -0
  52. package/dist/models/ConversationMetricsInnerValueInnerCostUio.js +54 -0
  53. package/dist/models/ConversationMetricsInnerValueInnerUio.d.ts +63 -0
  54. package/dist/models/ConversationMetricsInnerValueInnerUio.js +69 -0
  55. package/dist/models/ConversationUio.d.ts +56 -6
  56. package/dist/models/ConversationUio.js +27 -7
  57. package/dist/models/FlowContentsUio.d.ts +6 -0
  58. package/dist/models/FlowContentsUio.js +2 -0
  59. package/dist/models/FlowEditorNodeUio.d.ts +39 -0
  60. package/dist/models/FlowEditorNodeUio.js +55 -0
  61. package/dist/models/FlowEditorUio.d.ts +39 -0
  62. package/dist/models/FlowEditorUio.js +55 -0
  63. package/dist/models/FlowEditorUpdateRequestUio.d.ts +33 -0
  64. package/dist/models/FlowEditorUpdateRequestUio.js +51 -0
  65. package/dist/models/GuardianEngineUio.d.ts +27 -4
  66. package/dist/models/GuardianEngineUio.js +11 -4
  67. package/dist/models/GuardianPutRequestUio.d.ts +13 -0
  68. package/dist/models/GuardianPutRequestUio.js +5 -0
  69. package/dist/models/GuardianTypeUio.d.ts +2 -3
  70. package/dist/models/GuardianTypeUio.js +2 -3
  71. package/dist/models/GuardianUio.d.ts +1 -1
  72. package/dist/models/GuardianUio.js +3 -1
  73. package/dist/models/KnowledgeFilesByIdsRequestUio.d.ts +32 -0
  74. package/dist/models/KnowledgeFilesByIdsRequestUio.js +50 -0
  75. package/dist/models/OrganizationUio.d.ts +20 -0
  76. package/dist/models/OrganizationUio.js +10 -0
  77. package/dist/models/OrganizationUserUio.d.ts +38 -0
  78. package/dist/models/OrganizationUserUio.js +54 -0
  79. package/dist/models/RoleCreateRequestUio.d.ts +44 -0
  80. package/dist/models/RoleCreateRequestUio.js +56 -0
  81. package/dist/models/SequenceContentsUio.d.ts +38 -0
  82. package/dist/models/SequenceContentsUio.js +50 -0
  83. package/dist/models/SequenceCreateRequestUio.d.ts +45 -0
  84. package/dist/models/SequenceCreateRequestUio.js +59 -0
  85. package/dist/models/SequenceUio.d.ts +45 -0
  86. package/dist/models/SequenceUio.js +59 -0
  87. package/dist/models/ToolUpdateRequestUio.d.ts +62 -0
  88. package/dist/models/ToolUpdateRequestUio.js +56 -0
  89. package/dist/models/index.d.ts +27 -3
  90. package/dist/models/index.js +27 -3
  91. package/dist/openapi.json +1491 -129
  92. package/package.json +1 -1
  93. package/dist/models/AppSequencesInnerUio.d.ts +0 -38
  94. package/dist/models/AppSequencesInnerUio.js +0 -50
  95. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +0 -32
  96. package/dist/models/ConversationFlowNodeEntrypointsUio.js +0 -48
  97. package/dist/models/ConversationFlowNodeUio.d.ts +0 -51
  98. package/dist/models/ConversationFlowNodeUio.js +0 -55
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ModelDefinitionUio } from './ModelDefinitionUio';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,12 +18,34 @@
17
18
  export interface GuardianEngineUio {
18
19
  /**
19
20
  *
20
- * @type {{ [key: string]: any; }}
21
+ * @type {string}
21
22
  * @memberof GuardianEngineUio
22
23
  */
23
- configuration: {
24
- [key: string]: any;
25
- };
24
+ providerId?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GuardianEngineUio
29
+ */
30
+ model?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof GuardianEngineUio
35
+ */
36
+ endpoint?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GuardianEngineUio
41
+ */
42
+ apiKey?: string;
43
+ /**
44
+ *
45
+ * @type {ModelDefinitionUio}
46
+ * @memberof GuardianEngineUio
47
+ */
48
+ resolvedModel?: ModelDefinitionUio;
26
49
  }
27
50
  /**
28
51
  * Check if a given object implements the GuardianEngineUio interface.
@@ -18,12 +18,11 @@ exports.GuardianEngineUioFromJSON = GuardianEngineUioFromJSON;
18
18
  exports.GuardianEngineUioFromJSONTyped = GuardianEngineUioFromJSONTyped;
19
19
  exports.GuardianEngineUioToJSON = GuardianEngineUioToJSON;
20
20
  exports.GuardianEngineUioToJSONTyped = GuardianEngineUioToJSONTyped;
21
+ const ModelDefinitionUio_1 = require("./ModelDefinitionUio");
21
22
  /**
22
23
  * Check if a given object implements the GuardianEngineUio interface.
23
24
  */
24
25
  function instanceOfGuardianEngineUio(value) {
25
- if (!('configuration' in value) || value['configuration'] === undefined)
26
- return false;
27
26
  return true;
28
27
  }
29
28
  function GuardianEngineUioFromJSON(json) {
@@ -34,7 +33,11 @@ function GuardianEngineUioFromJSONTyped(json, ignoreDiscriminator) {
34
33
  return json;
35
34
  }
36
35
  return {
37
- 'configuration': json['configuration'],
36
+ 'providerId': json['providerId'] == null ? undefined : json['providerId'],
37
+ 'model': json['model'] == null ? undefined : json['model'],
38
+ 'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
39
+ 'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
40
+ 'resolvedModel': json['resolvedModel'] == null ? undefined : (0, ModelDefinitionUio_1.ModelDefinitionUioFromJSON)(json['resolvedModel']),
38
41
  };
39
42
  }
40
43
  function GuardianEngineUioToJSON(json) {
@@ -45,6 +48,10 @@ function GuardianEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
45
48
  return value;
46
49
  }
47
50
  return {
48
- 'configuration': value['configuration'],
51
+ 'providerId': value['providerId'],
52
+ 'model': value['model'],
53
+ 'endpoint': value['endpoint'],
54
+ 'apiKey': value['apiKey'],
55
+ 'resolvedModel': (0, ModelDefinitionUio_1.ModelDefinitionUioToJSON)(value['resolvedModel']),
49
56
  };
50
57
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GuardianRoleUio } from './GuardianRoleUio';
13
+ import type { GuardianEngineUio } from './GuardianEngineUio';
13
14
  import type { GuardianTypeUio } from './GuardianTypeUio';
14
15
  import type { GuardianPositionUio } from './GuardianPositionUio';
15
16
  /**
@@ -62,6 +63,18 @@ export interface GuardianPutRequestUio {
62
63
  * @memberof GuardianPutRequestUio
63
64
  */
64
65
  position?: Array<GuardianPositionUio>;
66
+ /**
67
+ *
68
+ * @type {GuardianEngineUio}
69
+ * @memberof GuardianPutRequestUio
70
+ */
71
+ engine?: GuardianEngineUio;
72
+ /**
73
+ *
74
+ * @type {Array<any>}
75
+ * @memberof GuardianPutRequestUio
76
+ */
77
+ excludedAgents?: Array<any>;
65
78
  }
66
79
  /**
67
80
  * Check if a given object implements the GuardianPutRequestUio interface.
@@ -19,6 +19,7 @@ exports.GuardianPutRequestUioFromJSONTyped = GuardianPutRequestUioFromJSONTyped;
19
19
  exports.GuardianPutRequestUioToJSON = GuardianPutRequestUioToJSON;
20
20
  exports.GuardianPutRequestUioToJSONTyped = GuardianPutRequestUioToJSONTyped;
21
21
  const GuardianRoleUio_1 = require("./GuardianRoleUio");
22
+ const GuardianEngineUio_1 = require("./GuardianEngineUio");
22
23
  const GuardianTypeUio_1 = require("./GuardianTypeUio");
23
24
  const GuardianPositionUio_1 = require("./GuardianPositionUio");
24
25
  /**
@@ -42,6 +43,8 @@ function GuardianPutRequestUioFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
43
44
  'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
44
45
  'position': json['position'] == null ? undefined : (json['position'].map(GuardianPositionUio_1.GuardianPositionUioFromJSON)),
46
+ 'engine': json['engine'] == null ? undefined : (0, GuardianEngineUio_1.GuardianEngineUioFromJSON)(json['engine']),
47
+ 'excludedAgents': json['excludedAgents'] == null ? undefined : json['excludedAgents'],
45
48
  };
46
49
  }
47
50
  function GuardianPutRequestUioToJSON(json) {
@@ -59,5 +62,7 @@ function GuardianPutRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
59
62
  'forbiddenMessages': value['forbiddenMessages'],
60
63
  'thresholds': value['thresholds'],
61
64
  'position': value['position'] == null ? undefined : (value['position'].map(GuardianPositionUio_1.GuardianPositionUioToJSON)),
65
+ 'engine': (0, GuardianEngineUio_1.GuardianEngineUioToJSON)(value['engine']),
66
+ 'excludedAgents': value['excludedAgents'],
62
67
  };
63
68
  }
@@ -14,9 +14,8 @@
14
14
  * @export
15
15
  */
16
16
  export declare const GuardianTypeUio: {
17
- readonly Node: "node";
18
- readonly Openai: "openai";
19
- readonly Llmguards: "llmguards";
17
+ readonly ModerationApi: "moderationAPI";
18
+ readonly BreignGuardApi: "breignGuardAPI";
20
19
  };
21
20
  export type GuardianTypeUio = typeof GuardianTypeUio[keyof typeof GuardianTypeUio];
22
21
  export declare function instanceOfGuardianTypeUio(value: any): boolean;
@@ -24,9 +24,8 @@ exports.GuardianTypeUioToJSONTyped = GuardianTypeUioToJSONTyped;
24
24
  * @export
25
25
  */
26
26
  exports.GuardianTypeUio = {
27
- Node: 'node',
28
- Openai: 'openai',
29
- Llmguards: 'llmguards'
27
+ ModerationApi: 'moderationAPI',
28
+ BreignGuardApi: 'breignGuardAPI'
30
29
  };
31
30
  function instanceOfGuardianTypeUio(value) {
32
31
  for (const key in exports.GuardianTypeUio) {
@@ -60,7 +60,7 @@ export interface GuardianUio {
60
60
  * @type {string}
61
61
  * @memberof GuardianUio
62
62
  */
63
- organisationId?: string;
63
+ organisationId: string;
64
64
  /**
65
65
  *
66
66
  * @type {GuardianRoleUio}
@@ -30,6 +30,8 @@ function instanceOfGuardianUio(value) {
30
30
  return false;
31
31
  if (!('type' in value) || value['type'] === undefined)
32
32
  return false;
33
+ if (!('organisationId' in value) || value['organisationId'] === undefined)
34
+ return false;
33
35
  if (!('role' in value) || value['role'] === undefined)
34
36
  return false;
35
37
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -52,7 +54,7 @@ function GuardianUioFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'description': json['description'] == null ? undefined : json['description'],
53
55
  'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
54
56
  'agentId': json['agentId'] == null ? undefined : json['agentId'],
55
- 'organisationId': json['organisationId'] == null ? undefined : json['organisationId'],
57
+ 'organisationId': json['organisationId'],
56
58
  'role': (0, GuardianRoleUio_1.GuardianRoleUioFromJSON)(json['role']),
57
59
  'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
58
60
  'createdAt': json['createdAt'],
@@ -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 KnowledgeFilesByIdsRequestUio
16
+ */
17
+ export interface KnowledgeFilesByIdsRequestUio {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof KnowledgeFilesByIdsRequestUio
22
+ */
23
+ ids: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the KnowledgeFilesByIdsRequestUio interface.
27
+ */
28
+ export declare function instanceOfKnowledgeFilesByIdsRequestUio(value: object): value is KnowledgeFilesByIdsRequestUio;
29
+ export declare function KnowledgeFilesByIdsRequestUioFromJSON(json: any): KnowledgeFilesByIdsRequestUio;
30
+ export declare function KnowledgeFilesByIdsRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeFilesByIdsRequestUio;
31
+ export declare function KnowledgeFilesByIdsRequestUioToJSON(json: any): KnowledgeFilesByIdsRequestUio;
32
+ export declare function KnowledgeFilesByIdsRequestUioToJSONTyped(value?: KnowledgeFilesByIdsRequestUio | 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.instanceOfKnowledgeFilesByIdsRequestUio = instanceOfKnowledgeFilesByIdsRequestUio;
17
+ exports.KnowledgeFilesByIdsRequestUioFromJSON = KnowledgeFilesByIdsRequestUioFromJSON;
18
+ exports.KnowledgeFilesByIdsRequestUioFromJSONTyped = KnowledgeFilesByIdsRequestUioFromJSONTyped;
19
+ exports.KnowledgeFilesByIdsRequestUioToJSON = KnowledgeFilesByIdsRequestUioToJSON;
20
+ exports.KnowledgeFilesByIdsRequestUioToJSONTyped = KnowledgeFilesByIdsRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the KnowledgeFilesByIdsRequestUio interface.
23
+ */
24
+ function instanceOfKnowledgeFilesByIdsRequestUio(value) {
25
+ if (!('ids' in value) || value['ids'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function KnowledgeFilesByIdsRequestUioFromJSON(json) {
30
+ return KnowledgeFilesByIdsRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function KnowledgeFilesByIdsRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'ids': json['ids'],
38
+ };
39
+ }
40
+ function KnowledgeFilesByIdsRequestUioToJSON(json) {
41
+ return KnowledgeFilesByIdsRequestUioToJSONTyped(json, false);
42
+ }
43
+ function KnowledgeFilesByIdsRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'ids': value['ids'],
49
+ };
50
+ }
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { OrganizationEngineUio } from './OrganizationEngineUio';
13
+ import type { OrganizationUserUio } from './OrganizationUserUio';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -27,6 +29,24 @@ export interface OrganizationUio {
27
29
  * @memberof OrganizationUio
28
30
  */
29
31
  name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof OrganizationUio
36
+ */
37
+ slug: string;
38
+ /**
39
+ *
40
+ * @type {OrganizationEngineUio}
41
+ * @memberof OrganizationUio
42
+ */
43
+ engine?: OrganizationEngineUio | null;
44
+ /**
45
+ *
46
+ * @type {Array<OrganizationUserUio>}
47
+ * @memberof OrganizationUio
48
+ */
49
+ users?: Array<OrganizationUserUio>;
30
50
  }
31
51
  /**
32
52
  * Check if a given object implements the OrganizationUio interface.
@@ -18,6 +18,8 @@ exports.OrganizationUioFromJSON = OrganizationUioFromJSON;
18
18
  exports.OrganizationUioFromJSONTyped = OrganizationUioFromJSONTyped;
19
19
  exports.OrganizationUioToJSON = OrganizationUioToJSON;
20
20
  exports.OrganizationUioToJSONTyped = OrganizationUioToJSONTyped;
21
+ const OrganizationEngineUio_1 = require("./OrganizationEngineUio");
22
+ const OrganizationUserUio_1 = require("./OrganizationUserUio");
21
23
  /**
22
24
  * Check if a given object implements the OrganizationUio interface.
23
25
  */
@@ -26,6 +28,8 @@ function instanceOfOrganizationUio(value) {
26
28
  return false;
27
29
  if (!('name' in value) || value['name'] === undefined)
28
30
  return false;
31
+ if (!('slug' in value) || value['slug'] === undefined)
32
+ return false;
29
33
  return true;
30
34
  }
31
35
  function OrganizationUioFromJSON(json) {
@@ -38,6 +42,9 @@ function OrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
38
42
  return {
39
43
  'id': json['id'],
40
44
  'name': json['name'],
45
+ 'slug': json['slug'],
46
+ 'engine': json['engine'] == null ? undefined : (0, OrganizationEngineUio_1.OrganizationEngineUioFromJSON)(json['engine']),
47
+ 'users': json['users'] == null ? undefined : (json['users'].map(OrganizationUserUio_1.OrganizationUserUioFromJSON)),
41
48
  };
42
49
  }
43
50
  function OrganizationUioToJSON(json) {
@@ -50,5 +57,8 @@ function OrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
50
57
  return {
51
58
  'id': value['id'],
52
59
  'name': value['name'],
60
+ 'slug': value['slug'],
61
+ 'engine': (0, OrganizationEngineUio_1.OrganizationEngineUioToJSON)(value['engine']),
62
+ 'users': value['users'] == null ? undefined : (value['users'].map(OrganizationUserUio_1.OrganizationUserUioToJSON)),
53
63
  };
54
64
  }
@@ -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 OrganizationUserUio
16
+ */
17
+ export interface OrganizationUserUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OrganizationUserUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OrganizationUserUio
28
+ */
29
+ role: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OrganizationUserUio interface.
33
+ */
34
+ export declare function instanceOfOrganizationUserUio(value: object): value is OrganizationUserUio;
35
+ export declare function OrganizationUserUioFromJSON(json: any): OrganizationUserUio;
36
+ export declare function OrganizationUserUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationUserUio;
37
+ export declare function OrganizationUserUioToJSON(json: any): OrganizationUserUio;
38
+ export declare function OrganizationUserUioToJSONTyped(value?: OrganizationUserUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfOrganizationUserUio = instanceOfOrganizationUserUio;
17
+ exports.OrganizationUserUioFromJSON = OrganizationUserUioFromJSON;
18
+ exports.OrganizationUserUioFromJSONTyped = OrganizationUserUioFromJSONTyped;
19
+ exports.OrganizationUserUioToJSON = OrganizationUserUioToJSON;
20
+ exports.OrganizationUserUioToJSONTyped = OrganizationUserUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OrganizationUserUio interface.
23
+ */
24
+ function instanceOfOrganizationUserUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('role' in value) || value['role'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function OrganizationUserUioFromJSON(json) {
32
+ return OrganizationUserUioFromJSONTyped(json, false);
33
+ }
34
+ function OrganizationUserUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'role': json['role'],
41
+ };
42
+ }
43
+ function OrganizationUserUioToJSON(json) {
44
+ return OrganizationUserUioToJSONTyped(json, false);
45
+ }
46
+ function OrganizationUserUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'role': value['role'],
53
+ };
54
+ }
@@ -0,0 +1,44 @@
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 RoleCreateRequestUio
16
+ */
17
+ export interface RoleCreateRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RoleCreateRequestUio
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof RoleCreateRequestUio
28
+ */
29
+ color: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof RoleCreateRequestUio
34
+ */
35
+ description?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the RoleCreateRequestUio interface.
39
+ */
40
+ export declare function instanceOfRoleCreateRequestUio(value: object): value is RoleCreateRequestUio;
41
+ export declare function RoleCreateRequestUioFromJSON(json: any): RoleCreateRequestUio;
42
+ export declare function RoleCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleCreateRequestUio;
43
+ export declare function RoleCreateRequestUioToJSON(json: any): RoleCreateRequestUio;
44
+ export declare function RoleCreateRequestUioToJSONTyped(value?: RoleCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfRoleCreateRequestUio = instanceOfRoleCreateRequestUio;
17
+ exports.RoleCreateRequestUioFromJSON = RoleCreateRequestUioFromJSON;
18
+ exports.RoleCreateRequestUioFromJSONTyped = RoleCreateRequestUioFromJSONTyped;
19
+ exports.RoleCreateRequestUioToJSON = RoleCreateRequestUioToJSON;
20
+ exports.RoleCreateRequestUioToJSONTyped = RoleCreateRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RoleCreateRequestUio interface.
23
+ */
24
+ function instanceOfRoleCreateRequestUio(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('color' in value) || value['color'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function RoleCreateRequestUioFromJSON(json) {
32
+ return RoleCreateRequestUioFromJSONTyped(json, false);
33
+ }
34
+ function RoleCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'color': json['color'],
41
+ 'description': json['description'] == null ? undefined : json['description'],
42
+ };
43
+ }
44
+ function RoleCreateRequestUioToJSON(json) {
45
+ return RoleCreateRequestUioToJSONTyped(json, false);
46
+ }
47
+ function RoleCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'color': value['color'],
54
+ 'description': value['description'],
55
+ };
56
+ }
@@ -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 SequenceContentsUio
16
+ */
17
+ export interface SequenceContentsUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SequenceContentsUio
22
+ */
23
+ text?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SequenceContentsUio
28
+ */
29
+ code?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SequenceContentsUio interface.
33
+ */
34
+ export declare function instanceOfSequenceContentsUio(value: object): value is SequenceContentsUio;
35
+ export declare function SequenceContentsUioFromJSON(json: any): SequenceContentsUio;
36
+ export declare function SequenceContentsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SequenceContentsUio;
37
+ export declare function SequenceContentsUioToJSON(json: any): SequenceContentsUio;
38
+ export declare function SequenceContentsUioToJSONTyped(value?: SequenceContentsUio | 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.instanceOfSequenceContentsUio = instanceOfSequenceContentsUio;
17
+ exports.SequenceContentsUioFromJSON = SequenceContentsUioFromJSON;
18
+ exports.SequenceContentsUioFromJSONTyped = SequenceContentsUioFromJSONTyped;
19
+ exports.SequenceContentsUioToJSON = SequenceContentsUioToJSON;
20
+ exports.SequenceContentsUioToJSONTyped = SequenceContentsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SequenceContentsUio interface.
23
+ */
24
+ function instanceOfSequenceContentsUio(value) {
25
+ return true;
26
+ }
27
+ function SequenceContentsUioFromJSON(json) {
28
+ return SequenceContentsUioFromJSONTyped(json, false);
29
+ }
30
+ function SequenceContentsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'text': json['text'] == null ? undefined : json['text'],
36
+ 'code': json['code'] == null ? undefined : json['code'],
37
+ };
38
+ }
39
+ function SequenceContentsUioToJSON(json) {
40
+ return SequenceContentsUioToJSONTyped(json, false);
41
+ }
42
+ function SequenceContentsUioToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'text': value['text'],
48
+ 'code': value['code'],
49
+ };
50
+ }
@@ -0,0 +1,45 @@
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 { SequenceContentsUio } from './SequenceContentsUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SequenceCreateRequestUio
17
+ */
18
+ export interface SequenceCreateRequestUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SequenceCreateRequestUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SequenceCreateRequestUio
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {SequenceContentsUio}
34
+ * @memberof SequenceCreateRequestUio
35
+ */
36
+ contents: SequenceContentsUio;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SequenceCreateRequestUio interface.
40
+ */
41
+ export declare function instanceOfSequenceCreateRequestUio(value: object): value is SequenceCreateRequestUio;
42
+ export declare function SequenceCreateRequestUioFromJSON(json: any): SequenceCreateRequestUio;
43
+ export declare function SequenceCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SequenceCreateRequestUio;
44
+ export declare function SequenceCreateRequestUioToJSON(json: any): SequenceCreateRequestUio;
45
+ export declare function SequenceCreateRequestUioToJSONTyped(value?: SequenceCreateRequestUio | null, ignoreDiscriminator?: boolean): any;