@breign/client 1.0.126 → 1.0.128

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 (167) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +100 -0
  2. package/dist/apis/AiGatewayApi.js +248 -0
  3. package/dist/apis/AppApi.d.ts +17 -3
  4. package/dist/apis/AppApi.js +36 -2
  5. package/dist/apis/AuthApi.d.ts +40 -1
  6. package/dist/apis/AuthApi.js +82 -0
  7. package/dist/apis/ConfigurationApi.d.ts +16 -3
  8. package/dist/apis/ConfigurationApi.js +33 -2
  9. package/dist/apis/ConversationsApi.d.ts +73 -3
  10. package/dist/apis/ConversationsApi.js +174 -2
  11. package/dist/apis/EngineApi.d.ts +17 -16
  12. package/dist/apis/EngineApi.js +33 -30
  13. package/dist/apis/EnginesApi.d.ts +3 -3
  14. package/dist/apis/EnginesApi.js +4 -4
  15. package/dist/apis/OrganizationsApi.d.ts +10 -111
  16. package/dist/apis/OrganizationsApi.js +12 -264
  17. package/dist/apis/PromptsApi.d.ts +3 -3
  18. package/dist/apis/PromptsApi.js +1 -1
  19. package/dist/apis/ToolsApi.d.ts +1 -2
  20. package/dist/apis/ToolsApi.js +3 -6
  21. package/dist/apis/UsersApi.d.ts +127 -0
  22. package/dist/apis/UsersApi.js +308 -0
  23. package/dist/apis/index.d.ts +2 -0
  24. package/dist/apis/index.js +2 -0
  25. package/dist/models/AgentPatchUio.d.ts +7 -0
  26. package/dist/models/AgentPatchUio.js +3 -0
  27. package/dist/models/AgentSandboxConfigurationUio.d.ts +58 -0
  28. package/dist/models/AgentSandboxConfigurationUio.js +62 -0
  29. package/dist/models/AgentSandboxNetworkConfigurationUio.d.ts +57 -0
  30. package/dist/models/AgentSandboxNetworkConfigurationUio.js +65 -0
  31. package/dist/models/AgentUio.d.ts +7 -0
  32. package/dist/models/AgentUio.js +3 -0
  33. package/dist/models/AiGatewayChatCompletionRequestUio.d.ts +57 -0
  34. package/dist/models/AiGatewayChatCompletionRequestUio.js +61 -0
  35. package/dist/models/AiGatewayChatCompletionResponseUio.d.ts +47 -0
  36. package/dist/models/AiGatewayChatCompletionResponseUio.js +54 -0
  37. package/dist/models/AiGatewayEmbeddingRequestUio.d.ts +38 -0
  38. package/dist/models/AiGatewayEmbeddingRequestUio.js +54 -0
  39. package/dist/models/AiGatewayEmbeddingResponseUio.d.ts +47 -0
  40. package/dist/models/AiGatewayEmbeddingResponseUio.js +54 -0
  41. package/dist/models/AiGatewayErrorUio.d.ts +33 -0
  42. package/dist/models/AiGatewayErrorUio.js +51 -0
  43. package/dist/models/AiGatewayMessageUio.d.ts +47 -0
  44. package/dist/models/AiGatewayMessageUio.js +63 -0
  45. package/dist/models/AiGatewayModelListDataInnerUio.d.ts +57 -0
  46. package/dist/models/AiGatewayModelListDataInnerUio.js +69 -0
  47. package/dist/models/AiGatewayModelListUio.d.ts +46 -0
  48. package/dist/models/AiGatewayModelListUio.js +62 -0
  49. package/dist/models/AiGatewayModelUio.d.ts +57 -0
  50. package/dist/models/AiGatewayModelUio.js +69 -0
  51. package/dist/models/ApiKeyCreateRequestUio.d.ts +32 -0
  52. package/dist/models/ApiKeyCreateRequestUio.js +50 -0
  53. package/dist/models/ApiKeyCreatedUio.d.ts +44 -0
  54. package/dist/models/{ApiKeyUio.js → ApiKeyCreatedUio.js} +13 -13
  55. package/dist/models/ApiKeyRefUio.d.ts +38 -0
  56. package/dist/models/ApiKeyRefUio.js +54 -0
  57. package/dist/models/AppInstanceEphemeralCreateRequestUio.d.ts +1 -1
  58. package/dist/models/AppInstanceEphemeralCreateRequestUio.js +3 -1
  59. package/dist/models/AppReplaceRequestUio.d.ts +94 -0
  60. package/dist/models/AppReplaceRequestUio.js +82 -0
  61. package/dist/models/AppTextToSpeechResponseUio.d.ts +3 -3
  62. package/dist/models/AppTextToSpeechResponseUio.js +3 -3
  63. package/dist/models/AppUpdateRequestEphemeralInstancesUio.d.ts +38 -0
  64. package/dist/models/AppUpdateRequestEphemeralInstancesUio.js +50 -0
  65. package/dist/models/AppUpdateRequestUio.d.ts +12 -12
  66. package/dist/models/AppUpdateRequestUio.js +3 -3
  67. package/dist/models/AttachmentProcessedRequestUio.d.ts +50 -0
  68. package/dist/models/AttachmentProcessedRequestUio.js +62 -0
  69. package/dist/models/AuthCodeConfirmRequestUio.d.ts +1 -1
  70. package/dist/models/AuthCodeConfirmRequestUio.js +3 -1
  71. package/dist/models/AuthCodeConfirmResponseUio.d.ts +15 -3
  72. package/dist/models/AuthCodeConfirmResponseUio.js +6 -3
  73. package/dist/models/ChatMessageUio.d.ts +6 -0
  74. package/dist/models/ChatMessageUio.js +2 -0
  75. package/dist/models/ConfigurationDefaultFillerPhrasesUio.d.ts +7 -6
  76. package/dist/models/ConfigurationDefaultFillerPhrasesUio.js +7 -8
  77. package/dist/models/ConfigurationDefaultFillerPhrasesUpdateRequestUio.d.ts +39 -0
  78. package/dist/models/ConfigurationDefaultFillerPhrasesUpdateRequestUio.js +55 -0
  79. package/dist/models/ContextLocationRequestUio.d.ts +38 -0
  80. package/dist/models/ContextLocationRequestUio.js +54 -0
  81. package/dist/models/ConversationDetailUio.d.ts +101 -0
  82. package/dist/models/ConversationDetailUio.js +75 -0
  83. package/dist/models/ConversationMessagesInnerUio.d.ts +6 -0
  84. package/dist/models/ConversationMessagesInnerUio.js +2 -0
  85. package/dist/models/DeleteOrganizationUser200ResponseUio.d.ts +32 -0
  86. package/dist/models/DeleteOrganizationUser200ResponseUio.js +50 -0
  87. package/dist/models/DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio.d.ts +50 -0
  88. package/dist/models/DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio.js +54 -0
  89. package/dist/models/DeleteProvider200ResponseUio.d.ts +45 -0
  90. package/dist/models/DeleteProvider200ResponseUio.js +55 -0
  91. package/dist/models/EmbeddingProviderModelsInnerUio.d.ts +44 -0
  92. package/dist/models/EmbeddingProviderModelsInnerUio.js +58 -0
  93. package/dist/models/EmbeddingProviderUio.d.ts +57 -0
  94. package/dist/models/EmbeddingProviderUio.js +65 -0
  95. package/dist/models/FillerPhraseUio.d.ts +38 -0
  96. package/dist/models/FillerPhraseUio.js +54 -0
  97. package/dist/models/GetJwks200ResponseUio.d.ts +34 -0
  98. package/dist/models/GetJwks200ResponseUio.js +50 -0
  99. package/dist/models/MarkAttachmentProcessed400ResponseUio.d.ts +40 -0
  100. package/dist/models/MarkAttachmentProcessed400ResponseUio.js +52 -0
  101. package/dist/models/MessageUio.d.ts +7 -1
  102. package/dist/models/MessageUio.js +2 -0
  103. package/dist/models/OpenAiChatCompletionRequestStreamOptionsUio.d.ts +32 -0
  104. package/dist/models/OpenAiChatCompletionRequestStreamOptionsUio.js +48 -0
  105. package/dist/models/OpenAiChatCompletionRequestUio.d.ts +64 -0
  106. package/dist/models/OpenAiChatCompletionRequestUio.js +64 -0
  107. package/dist/models/OpenAiChatCompletionResponseUio.d.ts +67 -0
  108. package/dist/models/OpenAiChatCompletionResponseUio.js +60 -0
  109. package/dist/models/OrganizationMemberUio.d.ts +3 -3
  110. package/dist/models/OrganizationMemberUio.js +3 -3
  111. package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
  112. package/dist/models/OrganizationMemberUserUio.js +50 -0
  113. package/dist/models/PinRequestUio.d.ts +3 -3
  114. package/dist/models/PinRequestUio.js +3 -3
  115. package/dist/models/ProviderValiationRequestUio.d.ts +1 -1
  116. package/dist/models/ProviderValiationRequestUio.js +1 -3
  117. package/dist/models/SetContextLocation400ResponseUio.d.ts +40 -0
  118. package/dist/models/SetContextLocation400ResponseUio.js +52 -0
  119. package/dist/models/TTSRequestUio.d.ts +1 -1
  120. package/dist/models/TTSRequestUio.js +1 -3
  121. package/dist/models/UserCreateRequestUio.d.ts +45 -0
  122. package/dist/models/UserCreateRequestUio.js +57 -0
  123. package/dist/models/UserDetailUio.d.ts +88 -0
  124. package/dist/models/UserDetailUio.js +80 -0
  125. package/dist/models/UserIdentifierRequestUio.d.ts +32 -0
  126. package/dist/models/UserIdentifierRequestUio.js +50 -0
  127. package/dist/models/UserIdentifierUio.d.ts +38 -0
  128. package/dist/models/UserIdentifierUio.js +52 -0
  129. package/dist/models/UserLockRequestUio.d.ts +32 -0
  130. package/dist/models/UserLockRequestUio.js +50 -0
  131. package/dist/models/UserUpdateRequestUio.d.ts +63 -0
  132. package/dist/models/UserUpdateRequestUio.js +59 -0
  133. package/dist/models/WorkspaceFileContentUio.d.ts +62 -0
  134. package/dist/models/WorkspaceFileContentUio.js +70 -0
  135. package/dist/models/WorkspaceFileEntryUio.d.ts +56 -0
  136. package/dist/models/WorkspaceFileEntryUio.js +66 -0
  137. package/dist/models/index.d.ts +41 -14
  138. package/dist/models/index.js +41 -14
  139. package/dist/openapi.json +3890 -2297
  140. package/package.json +1 -1
  141. package/dist/models/AccessRoleCreateRequestUio.d.ts +0 -45
  142. package/dist/models/AccessRoleCreateRequestUio.js +0 -55
  143. package/dist/models/AccessRolePermissionsRequestUio.d.ts +0 -33
  144. package/dist/models/AccessRolePermissionsRequestUio.js +0 -51
  145. package/dist/models/AccessRoleUio.d.ts +0 -75
  146. package/dist/models/AccessRoleUio.js +0 -75
  147. package/dist/models/AccessRoleUpdateRequestUio.d.ts +0 -38
  148. package/dist/models/AccessRoleUpdateRequestUio.js +0 -52
  149. package/dist/models/ApiKeyUio.d.ts +0 -44
  150. package/dist/models/AudioFile1Uio.d.ts +0 -45
  151. package/dist/models/AudioFile1Uio.js +0 -59
  152. package/dist/models/Conversation1Uio.d.ts +0 -46
  153. package/dist/models/Conversation1Uio.js +0 -60
  154. package/dist/models/OrganizationPermissionKeyUio.d.ts +0 -59
  155. package/dist/models/OrganizationPermissionKeyUio.js +0 -85
  156. package/dist/models/PermissionEntryUio.d.ts +0 -39
  157. package/dist/models/PermissionEntryUio.js +0 -55
  158. package/dist/models/ProviderSimpleUio.d.ts +0 -57
  159. package/dist/models/ProviderSimpleUio.js +0 -65
  160. package/dist/models/UserAccessRolesRequestUio.d.ts +0 -32
  161. package/dist/models/UserAccessRolesRequestUio.js +0 -50
  162. package/dist/models/UserAccessUio.d.ts +0 -39
  163. package/dist/models/UserAccessUio.js +0 -55
  164. package/dist/models/UserDirectPermissionsRequestUio.d.ts +0 -33
  165. package/dist/models/UserDirectPermissionsRequestUio.js +0 -51
  166. package/dist/models/UserUio.d.ts +0 -87
  167. package/dist/models/UserUio.js +0 -67
@@ -22,8 +22,6 @@ 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;
27
25
  if (!('providerType' in value) || value['providerType'] === undefined)
28
26
  return false;
29
27
  if (!('apiKey' in value) || value['apiKey'] === undefined)
@@ -38,7 +36,7 @@ function ProviderValiationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
38
36
  return json;
39
37
  }
40
38
  return {
41
- 'organizationId': json['organizationId'],
39
+ 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
42
40
  'providerType': json['providerType'],
43
41
  'apiKey': json['apiKey'],
44
42
  };
@@ -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 SetContextLocation400ResponseUio
16
+ */
17
+ export interface SetContextLocation400ResponseUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SetContextLocation400ResponseUio
22
+ */
23
+ error: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: Array<string>; }}
27
+ * @memberof SetContextLocation400ResponseUio
28
+ */
29
+ details?: {
30
+ [key: string]: Array<string>;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the SetContextLocation400ResponseUio interface.
35
+ */
36
+ export declare function instanceOfSetContextLocation400ResponseUio(value: object): value is SetContextLocation400ResponseUio;
37
+ export declare function SetContextLocation400ResponseUioFromJSON(json: any): SetContextLocation400ResponseUio;
38
+ export declare function SetContextLocation400ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetContextLocation400ResponseUio;
39
+ export declare function SetContextLocation400ResponseUioToJSON(json: any): SetContextLocation400ResponseUio;
40
+ export declare function SetContextLocation400ResponseUioToJSONTyped(value?: SetContextLocation400ResponseUio | 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.instanceOfSetContextLocation400ResponseUio = instanceOfSetContextLocation400ResponseUio;
17
+ exports.SetContextLocation400ResponseUioFromJSON = SetContextLocation400ResponseUioFromJSON;
18
+ exports.SetContextLocation400ResponseUioFromJSONTyped = SetContextLocation400ResponseUioFromJSONTyped;
19
+ exports.SetContextLocation400ResponseUioToJSON = SetContextLocation400ResponseUioToJSON;
20
+ exports.SetContextLocation400ResponseUioToJSONTyped = SetContextLocation400ResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SetContextLocation400ResponseUio interface.
23
+ */
24
+ function instanceOfSetContextLocation400ResponseUio(value) {
25
+ if (!('error' in value) || value['error'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SetContextLocation400ResponseUioFromJSON(json) {
30
+ return SetContextLocation400ResponseUioFromJSONTyped(json, false);
31
+ }
32
+ function SetContextLocation400ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'error': json['error'],
38
+ 'details': json['details'] == null ? undefined : json['details'],
39
+ };
40
+ }
41
+ function SetContextLocation400ResponseUioToJSON(json) {
42
+ return SetContextLocation400ResponseUioToJSONTyped(json, false);
43
+ }
44
+ function SetContextLocation400ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'error': value['error'],
50
+ 'details': value['details'],
51
+ };
52
+ }
@@ -33,7 +33,7 @@ export interface TTSRequestUio {
33
33
  * @type {string}
34
34
  * @memberof TTSRequestUio
35
35
  */
36
- voiceId: string;
36
+ voiceId?: string;
37
37
  }
38
38
  /**
39
39
  * Check if a given object implements the TTSRequestUio interface.
@@ -27,8 +27,6 @@ function instanceOfTTSRequestUio(value) {
27
27
  return false;
28
28
  if (!('provider' in value) || value['provider'] === undefined)
29
29
  return false;
30
- if (!('voiceId' in value) || value['voiceId'] === undefined)
31
- return false;
32
30
  return true;
33
31
  }
34
32
  function TTSRequestUioFromJSON(json) {
@@ -41,7 +39,7 @@ function TTSRequestUioFromJSONTyped(json, ignoreDiscriminator) {
41
39
  return {
42
40
  'text': json['text'],
43
41
  'provider': (0, TextToSpeechProviderUio_1.TextToSpeechProviderUioFromJSON)(json['provider']),
44
- 'voiceId': json['voiceId'],
42
+ 'voiceId': json['voiceId'] == null ? undefined : json['voiceId'],
45
43
  };
46
44
  }
47
45
  function TTSRequestUioToJSON(json) {
@@ -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 { UserIdentifierRequestUio } from './UserIdentifierRequestUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserCreateRequestUio
17
+ */
18
+ export interface UserCreateRequestUio {
19
+ /**
20
+ *
21
+ * @type {UserIdentifierRequestUio}
22
+ * @memberof UserCreateRequestUio
23
+ */
24
+ user: UserIdentifierRequestUio;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof UserCreateRequestUio
29
+ */
30
+ canCreateAgents: boolean;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof UserCreateRequestUio
35
+ */
36
+ maxAgents?: number | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the UserCreateRequestUio interface.
40
+ */
41
+ export declare function instanceOfUserCreateRequestUio(value: object): value is UserCreateRequestUio;
42
+ export declare function UserCreateRequestUioFromJSON(json: any): UserCreateRequestUio;
43
+ export declare function UserCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCreateRequestUio;
44
+ export declare function UserCreateRequestUioToJSON(json: any): UserCreateRequestUio;
45
+ export declare function UserCreateRequestUioToJSONTyped(value?: UserCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfUserCreateRequestUio = instanceOfUserCreateRequestUio;
17
+ exports.UserCreateRequestUioFromJSON = UserCreateRequestUioFromJSON;
18
+ exports.UserCreateRequestUioFromJSONTyped = UserCreateRequestUioFromJSONTyped;
19
+ exports.UserCreateRequestUioToJSON = UserCreateRequestUioToJSON;
20
+ exports.UserCreateRequestUioToJSONTyped = UserCreateRequestUioToJSONTyped;
21
+ const UserIdentifierRequestUio_1 = require("./UserIdentifierRequestUio");
22
+ /**
23
+ * Check if a given object implements the UserCreateRequestUio interface.
24
+ */
25
+ function instanceOfUserCreateRequestUio(value) {
26
+ if (!('user' in value) || value['user'] === undefined)
27
+ return false;
28
+ if (!('canCreateAgents' in value) || value['canCreateAgents'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function UserCreateRequestUioFromJSON(json) {
33
+ return UserCreateRequestUioFromJSONTyped(json, false);
34
+ }
35
+ function UserCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'user': (0, UserIdentifierRequestUio_1.UserIdentifierRequestUioFromJSON)(json['user']),
41
+ 'canCreateAgents': json['canCreateAgents'],
42
+ 'maxAgents': json['maxAgents'] == null ? undefined : json['maxAgents'],
43
+ };
44
+ }
45
+ function UserCreateRequestUioToJSON(json) {
46
+ return UserCreateRequestUioToJSONTyped(json, false);
47
+ }
48
+ function UserCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'user': (0, UserIdentifierRequestUio_1.UserIdentifierRequestUioToJSON)(value['user']),
54
+ 'canCreateAgents': value['canCreateAgents'],
55
+ 'maxAgents': value['maxAgents'],
56
+ };
57
+ }
@@ -0,0 +1,88 @@
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 { UserIdentifierUio } from './UserIdentifierUio';
13
+ import type { ApiKeyRefUio } from './ApiKeyRefUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface UserDetailUio
18
+ */
19
+ export interface UserDetailUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof UserDetailUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {UserIdentifierUio}
29
+ * @memberof UserDetailUio
30
+ */
31
+ user: UserIdentifierUio;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof UserDetailUio
36
+ */
37
+ isAdmin: boolean;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof UserDetailUio
42
+ */
43
+ canCreateAgents: boolean;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof UserDetailUio
48
+ */
49
+ maxAgents?: number | null;
50
+ /**
51
+ * Identifiants des agents auxquels l'utilisateur a accès
52
+ * @type {Array<string>}
53
+ * @memberof UserDetailUio
54
+ */
55
+ agents: Array<string>;
56
+ /**
57
+ *
58
+ * @type {Array<ApiKeyRefUio>}
59
+ * @memberof UserDetailUio
60
+ */
61
+ apiKeys: Array<ApiKeyRefUio>;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof UserDetailUio
66
+ */
67
+ createdAt?: Date;
68
+ /**
69
+ *
70
+ * @type {boolean}
71
+ * @memberof UserDetailUio
72
+ */
73
+ locked?: boolean;
74
+ /**
75
+ *
76
+ * @type {Date}
77
+ * @memberof UserDetailUio
78
+ */
79
+ lockDate?: Date;
80
+ }
81
+ /**
82
+ * Check if a given object implements the UserDetailUio interface.
83
+ */
84
+ export declare function instanceOfUserDetailUio(value: object): value is UserDetailUio;
85
+ export declare function UserDetailUioFromJSON(json: any): UserDetailUio;
86
+ export declare function UserDetailUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDetailUio;
87
+ export declare function UserDetailUioToJSON(json: any): UserDetailUio;
88
+ export declare function UserDetailUioToJSONTyped(value?: UserDetailUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.instanceOfUserDetailUio = instanceOfUserDetailUio;
17
+ exports.UserDetailUioFromJSON = UserDetailUioFromJSON;
18
+ exports.UserDetailUioFromJSONTyped = UserDetailUioFromJSONTyped;
19
+ exports.UserDetailUioToJSON = UserDetailUioToJSON;
20
+ exports.UserDetailUioToJSONTyped = UserDetailUioToJSONTyped;
21
+ const UserIdentifierUio_1 = require("./UserIdentifierUio");
22
+ const ApiKeyRefUio_1 = require("./ApiKeyRefUio");
23
+ /**
24
+ * Check if a given object implements the UserDetailUio interface.
25
+ */
26
+ function instanceOfUserDetailUio(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('user' in value) || value['user'] === undefined)
30
+ return false;
31
+ if (!('isAdmin' in value) || value['isAdmin'] === undefined)
32
+ return false;
33
+ if (!('canCreateAgents' in value) || value['canCreateAgents'] === undefined)
34
+ return false;
35
+ if (!('agents' in value) || value['agents'] === undefined)
36
+ return false;
37
+ if (!('apiKeys' in value) || value['apiKeys'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function UserDetailUioFromJSON(json) {
42
+ return UserDetailUioFromJSONTyped(json, false);
43
+ }
44
+ function UserDetailUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'user': (0, UserIdentifierUio_1.UserIdentifierUioFromJSON)(json['user']),
51
+ 'isAdmin': json['isAdmin'],
52
+ 'canCreateAgents': json['canCreateAgents'],
53
+ 'maxAgents': json['maxAgents'] == null ? undefined : json['maxAgents'],
54
+ 'agents': json['agents'],
55
+ 'apiKeys': (json['apiKeys'].map(ApiKeyRefUio_1.ApiKeyRefUioFromJSON)),
56
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
57
+ 'locked': json['locked'] == null ? undefined : json['locked'],
58
+ 'lockDate': json['lockDate'] == null ? undefined : (new Date(json['lockDate'])),
59
+ };
60
+ }
61
+ function UserDetailUioToJSON(json) {
62
+ return UserDetailUioToJSONTyped(json, false);
63
+ }
64
+ function UserDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'user': (0, UserIdentifierUio_1.UserIdentifierUioToJSON)(value['user']),
71
+ 'isAdmin': value['isAdmin'],
72
+ 'canCreateAgents': value['canCreateAgents'],
73
+ 'maxAgents': value['maxAgents'],
74
+ 'agents': value['agents'],
75
+ 'apiKeys': (value['apiKeys'].map(ApiKeyRefUio_1.ApiKeyRefUioToJSON)),
76
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
77
+ 'locked': value['locked'],
78
+ 'lockDate': value['lockDate'] == null ? undefined : ((value['lockDate']).toISOString()),
79
+ };
80
+ }
@@ -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 UserIdentifierRequestUio
16
+ */
17
+ export interface UserIdentifierRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserIdentifierRequestUio
22
+ */
23
+ email: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UserIdentifierRequestUio interface.
27
+ */
28
+ export declare function instanceOfUserIdentifierRequestUio(value: object): value is UserIdentifierRequestUio;
29
+ export declare function UserIdentifierRequestUioFromJSON(json: any): UserIdentifierRequestUio;
30
+ export declare function UserIdentifierRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserIdentifierRequestUio;
31
+ export declare function UserIdentifierRequestUioToJSON(json: any): UserIdentifierRequestUio;
32
+ export declare function UserIdentifierRequestUioToJSONTyped(value?: UserIdentifierRequestUio | 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.instanceOfUserIdentifierRequestUio = instanceOfUserIdentifierRequestUio;
17
+ exports.UserIdentifierRequestUioFromJSON = UserIdentifierRequestUioFromJSON;
18
+ exports.UserIdentifierRequestUioFromJSONTyped = UserIdentifierRequestUioFromJSONTyped;
19
+ exports.UserIdentifierRequestUioToJSON = UserIdentifierRequestUioToJSON;
20
+ exports.UserIdentifierRequestUioToJSONTyped = UserIdentifierRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserIdentifierRequestUio interface.
23
+ */
24
+ function instanceOfUserIdentifierRequestUio(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UserIdentifierRequestUioFromJSON(json) {
30
+ return UserIdentifierRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function UserIdentifierRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'email': json['email'],
38
+ };
39
+ }
40
+ function UserIdentifierRequestUioToJSON(json) {
41
+ return UserIdentifierRequestUioToJSONTyped(json, false);
42
+ }
43
+ function UserIdentifierRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'email': value['email'],
49
+ };
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 UserIdentifierUio
16
+ */
17
+ export interface UserIdentifierUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserIdentifierUio
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserIdentifierUio
28
+ */
29
+ name?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserIdentifierUio interface.
33
+ */
34
+ export declare function instanceOfUserIdentifierUio(value: object): value is UserIdentifierUio;
35
+ export declare function UserIdentifierUioFromJSON(json: any): UserIdentifierUio;
36
+ export declare function UserIdentifierUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserIdentifierUio;
37
+ export declare function UserIdentifierUioToJSON(json: any): UserIdentifierUio;
38
+ export declare function UserIdentifierUioToJSONTyped(value?: UserIdentifierUio | 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.instanceOfUserIdentifierUio = instanceOfUserIdentifierUio;
17
+ exports.UserIdentifierUioFromJSON = UserIdentifierUioFromJSON;
18
+ exports.UserIdentifierUioFromJSONTyped = UserIdentifierUioFromJSONTyped;
19
+ exports.UserIdentifierUioToJSON = UserIdentifierUioToJSON;
20
+ exports.UserIdentifierUioToJSONTyped = UserIdentifierUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserIdentifierUio interface.
23
+ */
24
+ function instanceOfUserIdentifierUio(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UserIdentifierUioFromJSON(json) {
30
+ return UserIdentifierUioFromJSONTyped(json, false);
31
+ }
32
+ function UserIdentifierUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'email': json['email'],
38
+ 'name': json['name'] == null ? undefined : json['name'],
39
+ };
40
+ }
41
+ function UserIdentifierUioToJSON(json) {
42
+ return UserIdentifierUioToJSONTyped(json, false);
43
+ }
44
+ function UserIdentifierUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'email': value['email'],
50
+ 'name': value['name'],
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 UserLockRequestUio
16
+ */
17
+ export interface UserLockRequestUio {
18
+ /**
19
+ * true pour verrouiller le compte, false pour le déverrouiller
20
+ * @type {boolean}
21
+ * @memberof UserLockRequestUio
22
+ */
23
+ locked: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UserLockRequestUio interface.
27
+ */
28
+ export declare function instanceOfUserLockRequestUio(value: object): value is UserLockRequestUio;
29
+ export declare function UserLockRequestUioFromJSON(json: any): UserLockRequestUio;
30
+ export declare function UserLockRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLockRequestUio;
31
+ export declare function UserLockRequestUioToJSON(json: any): UserLockRequestUio;
32
+ export declare function UserLockRequestUioToJSONTyped(value?: UserLockRequestUio | 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.instanceOfUserLockRequestUio = instanceOfUserLockRequestUio;
17
+ exports.UserLockRequestUioFromJSON = UserLockRequestUioFromJSON;
18
+ exports.UserLockRequestUioFromJSONTyped = UserLockRequestUioFromJSONTyped;
19
+ exports.UserLockRequestUioToJSON = UserLockRequestUioToJSON;
20
+ exports.UserLockRequestUioToJSONTyped = UserLockRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserLockRequestUio interface.
23
+ */
24
+ function instanceOfUserLockRequestUio(value) {
25
+ if (!('locked' in value) || value['locked'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UserLockRequestUioFromJSON(json) {
30
+ return UserLockRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function UserLockRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'locked': json['locked'],
38
+ };
39
+ }
40
+ function UserLockRequestUioToJSON(json) {
41
+ return UserLockRequestUioToJSONTyped(json, false);
42
+ }
43
+ function UserLockRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'locked': value['locked'],
49
+ };
50
+ }