@breign/client 1.0.136 → 1.0.138

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 (62) hide show
  1. package/dist/apis/LibraryAgentsApi.d.ts +211 -0
  2. package/dist/apis/LibraryAgentsApi.js +537 -0
  3. package/dist/apis/index.d.ts +1 -0
  4. package/dist/apis/index.js +1 -0
  5. package/dist/models/AgentBundleDiffUio.d.ts +79 -0
  6. package/dist/models/AgentBundleDiffUio.js +85 -0
  7. package/dist/models/AgentBundleListDiffUio.d.ts +44 -0
  8. package/dist/models/AgentBundleListDiffUio.js +58 -0
  9. package/dist/models/AgentLibraryLinkLatestVersionUio.d.ts +44 -0
  10. package/dist/models/AgentLibraryLinkLatestVersionUio.js +58 -0
  11. package/dist/models/AgentLibraryLinkUio.d.ts +81 -0
  12. package/dist/models/AgentLibraryLinkUio.js +79 -0
  13. package/dist/models/AgentLibraryLinkUpdateRequestUio.d.ts +38 -0
  14. package/dist/models/AgentLibraryLinkUpdateRequestUio.js +52 -0
  15. package/dist/models/AgentLibraryLinkUpdateResponseUio.d.ts +69 -0
  16. package/dist/models/AgentLibraryLinkUpdateResponseUio.js +75 -0
  17. package/dist/models/AgentLibraryLinksResponseUio.d.ts +33 -0
  18. package/dist/models/AgentLibraryLinksResponseUio.js +51 -0
  19. package/dist/models/FileAttachmentCreateRequestUio.d.ts +6 -0
  20. package/dist/models/FileAttachmentCreateRequestUio.js +2 -0
  21. package/dist/models/FileAttachmentDetailsResponseUio.d.ts +6 -0
  22. package/dist/models/FileAttachmentDetailsResponseUio.js +2 -0
  23. package/dist/models/FileAttachmentUio.d.ts +6 -0
  24. package/dist/models/FileAttachmentUio.js +2 -0
  25. package/dist/models/FileAttachmentUploadResponseUio.d.ts +6 -0
  26. package/dist/models/FileAttachmentUploadResponseUio.js +2 -0
  27. package/dist/models/FileCreationResponseUio.d.ts +6 -0
  28. package/dist/models/FileCreationResponseUio.js +2 -0
  29. package/dist/models/FileUio.d.ts +6 -0
  30. package/dist/models/FileUio.js +2 -0
  31. package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
  32. package/dist/models/FileWithDownloadUrlUio.js +2 -0
  33. package/dist/models/KnowledgeFileCreationRequestUio.d.ts +6 -0
  34. package/dist/models/KnowledgeFileCreationRequestUio.js +2 -0
  35. package/dist/models/KnowledgeFileUio.d.ts +6 -0
  36. package/dist/models/KnowledgeFileUio.js +2 -0
  37. package/dist/models/LibraryAgentBundleSummaryUio.d.ts +56 -0
  38. package/dist/models/LibraryAgentBundleSummaryUio.js +66 -0
  39. package/dist/models/LibraryAgentDiffResponseUio.d.ts +46 -0
  40. package/dist/models/LibraryAgentDiffResponseUio.js +60 -0
  41. package/dist/models/LibraryAgentDiffVersionRefUio.d.ts +38 -0
  42. package/dist/models/LibraryAgentDiffVersionRefUio.js +54 -0
  43. package/dist/models/LibraryAgentEntryUio.d.ts +87 -0
  44. package/dist/models/LibraryAgentEntryUio.js +83 -0
  45. package/dist/models/LibraryAgentInstallRequestUio.d.ts +38 -0
  46. package/dist/models/LibraryAgentInstallRequestUio.js +52 -0
  47. package/dist/models/LibraryAgentInstallResponseUio.d.ts +75 -0
  48. package/dist/models/LibraryAgentInstallResponseUio.js +77 -0
  49. package/dist/models/LibraryAgentParseBundleRequestUio.d.ts +46 -0
  50. package/dist/models/LibraryAgentParseBundleRequestUio.js +62 -0
  51. package/dist/models/LibraryAgentPublishRequestUio.d.ts +68 -0
  52. package/dist/models/LibraryAgentPublishRequestUio.js +60 -0
  53. package/dist/models/LibraryAgentPublishVersionRequestUio.d.ts +62 -0
  54. package/dist/models/LibraryAgentPublishVersionRequestUio.js +58 -0
  55. package/dist/models/LibraryAgentVersionUio.d.ts +99 -0
  56. package/dist/models/LibraryAgentVersionUio.js +87 -0
  57. package/dist/models/LibraryAgentsPageUio.d.ts +63 -0
  58. package/dist/models/LibraryAgentsPageUio.js +71 -0
  59. package/dist/models/index.d.ts +18 -0
  60. package/dist/models/index.js +18 -0
  61. package/dist/openapi.json +6035 -4919
  62. package/package.json +1 -1
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfLibraryAgentDiffResponseUio = instanceOfLibraryAgentDiffResponseUio;
17
+ exports.LibraryAgentDiffResponseUioFromJSON = LibraryAgentDiffResponseUioFromJSON;
18
+ exports.LibraryAgentDiffResponseUioFromJSONTyped = LibraryAgentDiffResponseUioFromJSONTyped;
19
+ exports.LibraryAgentDiffResponseUioToJSON = LibraryAgentDiffResponseUioToJSON;
20
+ exports.LibraryAgentDiffResponseUioToJSONTyped = LibraryAgentDiffResponseUioToJSONTyped;
21
+ const AgentBundleDiffUio_1 = require("./AgentBundleDiffUio");
22
+ const LibraryAgentDiffVersionRefUio_1 = require("./LibraryAgentDiffVersionRefUio");
23
+ /**
24
+ * Check if a given object implements the LibraryAgentDiffResponseUio interface.
25
+ */
26
+ function instanceOfLibraryAgentDiffResponseUio(value) {
27
+ if (!('from' in value) || value['from'] === undefined)
28
+ return false;
29
+ if (!('to' in value) || value['to'] === undefined)
30
+ return false;
31
+ if (!('diff' in value) || value['diff'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function LibraryAgentDiffResponseUioFromJSON(json) {
36
+ return LibraryAgentDiffResponseUioFromJSONTyped(json, false);
37
+ }
38
+ function LibraryAgentDiffResponseUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'from': (0, LibraryAgentDiffVersionRefUio_1.LibraryAgentDiffVersionRefUioFromJSON)(json['from']),
44
+ 'to': (0, LibraryAgentDiffVersionRefUio_1.LibraryAgentDiffVersionRefUioFromJSON)(json['to']),
45
+ 'diff': (0, AgentBundleDiffUio_1.AgentBundleDiffUioFromJSON)(json['diff']),
46
+ };
47
+ }
48
+ function LibraryAgentDiffResponseUioToJSON(json) {
49
+ return LibraryAgentDiffResponseUioToJSONTyped(json, false);
50
+ }
51
+ function LibraryAgentDiffResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'from': (0, LibraryAgentDiffVersionRefUio_1.LibraryAgentDiffVersionRefUioToJSON)(value['from']),
57
+ 'to': (0, LibraryAgentDiffVersionRefUio_1.LibraryAgentDiffVersionRefUioToJSON)(value['to']),
58
+ 'diff': (0, AgentBundleDiffUio_1.AgentBundleDiffUioToJSON)(value['diff']),
59
+ };
60
+ }
@@ -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 LibraryAgentDiffVersionRefUio
16
+ */
17
+ export interface LibraryAgentDiffVersionRefUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LibraryAgentDiffVersionRefUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LibraryAgentDiffVersionRefUio
28
+ */
29
+ version: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LibraryAgentDiffVersionRefUio interface.
33
+ */
34
+ export declare function instanceOfLibraryAgentDiffVersionRefUio(value: object): value is LibraryAgentDiffVersionRefUio;
35
+ export declare function LibraryAgentDiffVersionRefUioFromJSON(json: any): LibraryAgentDiffVersionRefUio;
36
+ export declare function LibraryAgentDiffVersionRefUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentDiffVersionRefUio;
37
+ export declare function LibraryAgentDiffVersionRefUioToJSON(json: any): LibraryAgentDiffVersionRefUio;
38
+ export declare function LibraryAgentDiffVersionRefUioToJSONTyped(value?: LibraryAgentDiffVersionRefUio | 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.instanceOfLibraryAgentDiffVersionRefUio = instanceOfLibraryAgentDiffVersionRefUio;
17
+ exports.LibraryAgentDiffVersionRefUioFromJSON = LibraryAgentDiffVersionRefUioFromJSON;
18
+ exports.LibraryAgentDiffVersionRefUioFromJSONTyped = LibraryAgentDiffVersionRefUioFromJSONTyped;
19
+ exports.LibraryAgentDiffVersionRefUioToJSON = LibraryAgentDiffVersionRefUioToJSON;
20
+ exports.LibraryAgentDiffVersionRefUioToJSONTyped = LibraryAgentDiffVersionRefUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LibraryAgentDiffVersionRefUio interface.
23
+ */
24
+ function instanceOfLibraryAgentDiffVersionRefUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('version' in value) || value['version'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LibraryAgentDiffVersionRefUioFromJSON(json) {
32
+ return LibraryAgentDiffVersionRefUioFromJSONTyped(json, false);
33
+ }
34
+ function LibraryAgentDiffVersionRefUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'version': json['version'],
41
+ };
42
+ }
43
+ function LibraryAgentDiffVersionRefUioToJSON(json) {
44
+ return LibraryAgentDiffVersionRefUioToJSONTyped(json, false);
45
+ }
46
+ function LibraryAgentDiffVersionRefUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'version': value['version'],
53
+ };
54
+ }
@@ -0,0 +1,87 @@
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 { LibraryAgentVersionUio } from './LibraryAgentVersionUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LibraryAgentEntryUio
17
+ */
18
+ export interface LibraryAgentEntryUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof LibraryAgentEntryUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof LibraryAgentEntryUio
29
+ */
30
+ slug: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof LibraryAgentEntryUio
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof LibraryAgentEntryUio
41
+ */
42
+ description: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof LibraryAgentEntryUio
47
+ */
48
+ sourceAgentId?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof LibraryAgentEntryUio
53
+ */
54
+ latestVersionId: string | null;
55
+ /**
56
+ *
57
+ * @type {Date}
58
+ * @memberof LibraryAgentEntryUio
59
+ */
60
+ createdAt: Date;
61
+ /**
62
+ *
63
+ * @type {Date}
64
+ * @memberof LibraryAgentEntryUio
65
+ */
66
+ updatedAt: Date;
67
+ /**
68
+ *
69
+ * @type {Array<LibraryAgentVersionUio>}
70
+ * @memberof LibraryAgentEntryUio
71
+ */
72
+ versions: Array<LibraryAgentVersionUio>;
73
+ /**
74
+ *
75
+ * @type {LibraryAgentVersionUio}
76
+ * @memberof LibraryAgentEntryUio
77
+ */
78
+ latestVersion?: LibraryAgentVersionUio;
79
+ }
80
+ /**
81
+ * Check if a given object implements the LibraryAgentEntryUio interface.
82
+ */
83
+ export declare function instanceOfLibraryAgentEntryUio(value: object): value is LibraryAgentEntryUio;
84
+ export declare function LibraryAgentEntryUioFromJSON(json: any): LibraryAgentEntryUio;
85
+ export declare function LibraryAgentEntryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentEntryUio;
86
+ export declare function LibraryAgentEntryUioToJSON(json: any): LibraryAgentEntryUio;
87
+ export declare function LibraryAgentEntryUioToJSONTyped(value?: LibraryAgentEntryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
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.instanceOfLibraryAgentEntryUio = instanceOfLibraryAgentEntryUio;
17
+ exports.LibraryAgentEntryUioFromJSON = LibraryAgentEntryUioFromJSON;
18
+ exports.LibraryAgentEntryUioFromJSONTyped = LibraryAgentEntryUioFromJSONTyped;
19
+ exports.LibraryAgentEntryUioToJSON = LibraryAgentEntryUioToJSON;
20
+ exports.LibraryAgentEntryUioToJSONTyped = LibraryAgentEntryUioToJSONTyped;
21
+ const LibraryAgentVersionUio_1 = require("./LibraryAgentVersionUio");
22
+ /**
23
+ * Check if a given object implements the LibraryAgentEntryUio interface.
24
+ */
25
+ function instanceOfLibraryAgentEntryUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('slug' in value) || value['slug'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('description' in value) || value['description'] === undefined)
33
+ return false;
34
+ if (!('latestVersionId' in value) || value['latestVersionId'] === undefined)
35
+ return false;
36
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
37
+ return false;
38
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
39
+ return false;
40
+ if (!('versions' in value) || value['versions'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function LibraryAgentEntryUioFromJSON(json) {
45
+ return LibraryAgentEntryUioFromJSONTyped(json, false);
46
+ }
47
+ function LibraryAgentEntryUioFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'id': json['id'],
53
+ 'slug': json['slug'],
54
+ 'name': json['name'],
55
+ 'description': json['description'],
56
+ 'sourceAgentId': json['sourceAgentId'] == null ? undefined : json['sourceAgentId'],
57
+ 'latestVersionId': json['latestVersionId'],
58
+ 'createdAt': (new Date(json['createdAt'])),
59
+ 'updatedAt': (new Date(json['updatedAt'])),
60
+ 'versions': (json['versions'].map(LibraryAgentVersionUio_1.LibraryAgentVersionUioFromJSON)),
61
+ 'latestVersion': json['latestVersion'] == null ? undefined : (0, LibraryAgentVersionUio_1.LibraryAgentVersionUioFromJSON)(json['latestVersion']),
62
+ };
63
+ }
64
+ function LibraryAgentEntryUioToJSON(json) {
65
+ return LibraryAgentEntryUioToJSONTyped(json, false);
66
+ }
67
+ function LibraryAgentEntryUioToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'slug': value['slug'],
74
+ 'name': value['name'],
75
+ 'description': value['description'],
76
+ 'sourceAgentId': value['sourceAgentId'],
77
+ 'latestVersionId': value['latestVersionId'],
78
+ 'createdAt': ((value['createdAt']).toISOString()),
79
+ 'updatedAt': ((value['updatedAt']).toISOString()),
80
+ 'versions': (value['versions'].map(LibraryAgentVersionUio_1.LibraryAgentVersionUioToJSON)),
81
+ 'latestVersion': (0, LibraryAgentVersionUio_1.LibraryAgentVersionUioToJSON)(value['latestVersion']),
82
+ };
83
+ }
@@ -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 LibraryAgentInstallRequestUio
16
+ */
17
+ export interface LibraryAgentInstallRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LibraryAgentInstallRequestUio
22
+ */
23
+ organizationId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LibraryAgentInstallRequestUio
28
+ */
29
+ versionId?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LibraryAgentInstallRequestUio interface.
33
+ */
34
+ export declare function instanceOfLibraryAgentInstallRequestUio(value: object): value is LibraryAgentInstallRequestUio;
35
+ export declare function LibraryAgentInstallRequestUioFromJSON(json: any): LibraryAgentInstallRequestUio;
36
+ export declare function LibraryAgentInstallRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentInstallRequestUio;
37
+ export declare function LibraryAgentInstallRequestUioToJSON(json: any): LibraryAgentInstallRequestUio;
38
+ export declare function LibraryAgentInstallRequestUioToJSONTyped(value?: LibraryAgentInstallRequestUio | 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.instanceOfLibraryAgentInstallRequestUio = instanceOfLibraryAgentInstallRequestUio;
17
+ exports.LibraryAgentInstallRequestUioFromJSON = LibraryAgentInstallRequestUioFromJSON;
18
+ exports.LibraryAgentInstallRequestUioFromJSONTyped = LibraryAgentInstallRequestUioFromJSONTyped;
19
+ exports.LibraryAgentInstallRequestUioToJSON = LibraryAgentInstallRequestUioToJSON;
20
+ exports.LibraryAgentInstallRequestUioToJSONTyped = LibraryAgentInstallRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LibraryAgentInstallRequestUio interface.
23
+ */
24
+ function instanceOfLibraryAgentInstallRequestUio(value) {
25
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function LibraryAgentInstallRequestUioFromJSON(json) {
30
+ return LibraryAgentInstallRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function LibraryAgentInstallRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'organizationId': json['organizationId'],
38
+ 'versionId': json['versionId'] == null ? undefined : json['versionId'],
39
+ };
40
+ }
41
+ function LibraryAgentInstallRequestUioToJSON(json) {
42
+ return LibraryAgentInstallRequestUioToJSONTyped(json, false);
43
+ }
44
+ function LibraryAgentInstallRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'organizationId': value['organizationId'],
50
+ 'versionId': value['versionId'],
51
+ };
52
+ }
@@ -0,0 +1,75 @@
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 { AgentImportReportUio } from './AgentImportReportUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LibraryAgentInstallResponseUio
17
+ */
18
+ export interface LibraryAgentInstallResponseUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof LibraryAgentInstallResponseUio
23
+ */
24
+ agentId: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof LibraryAgentInstallResponseUio
29
+ */
30
+ agentName: string;
31
+ /**
32
+ * True when everything was linked as-is; false when the UI should show the import recap.
33
+ * @type {boolean}
34
+ * @memberof LibraryAgentInstallResponseUio
35
+ */
36
+ clean: boolean;
37
+ /**
38
+ *
39
+ * @type {AgentImportReportUio}
40
+ * @memberof LibraryAgentInstallResponseUio
41
+ */
42
+ report: AgentImportReportUio;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof LibraryAgentInstallResponseUio
47
+ */
48
+ librarySlug: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof LibraryAgentInstallResponseUio
53
+ */
54
+ libraryVersionId: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof LibraryAgentInstallResponseUio
59
+ */
60
+ libraryVersion: string;
61
+ /**
62
+ * Role assigned to the installed agent (first existing org role, or a base role created on first install). Null when role assignment failed.
63
+ * @type {string}
64
+ * @memberof LibraryAgentInstallResponseUio
65
+ */
66
+ roleId?: string | null;
67
+ }
68
+ /**
69
+ * Check if a given object implements the LibraryAgentInstallResponseUio interface.
70
+ */
71
+ export declare function instanceOfLibraryAgentInstallResponseUio(value: object): value is LibraryAgentInstallResponseUio;
72
+ export declare function LibraryAgentInstallResponseUioFromJSON(json: any): LibraryAgentInstallResponseUio;
73
+ export declare function LibraryAgentInstallResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentInstallResponseUio;
74
+ export declare function LibraryAgentInstallResponseUioToJSON(json: any): LibraryAgentInstallResponseUio;
75
+ export declare function LibraryAgentInstallResponseUioToJSONTyped(value?: LibraryAgentInstallResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,77 @@
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.instanceOfLibraryAgentInstallResponseUio = instanceOfLibraryAgentInstallResponseUio;
17
+ exports.LibraryAgentInstallResponseUioFromJSON = LibraryAgentInstallResponseUioFromJSON;
18
+ exports.LibraryAgentInstallResponseUioFromJSONTyped = LibraryAgentInstallResponseUioFromJSONTyped;
19
+ exports.LibraryAgentInstallResponseUioToJSON = LibraryAgentInstallResponseUioToJSON;
20
+ exports.LibraryAgentInstallResponseUioToJSONTyped = LibraryAgentInstallResponseUioToJSONTyped;
21
+ const AgentImportReportUio_1 = require("./AgentImportReportUio");
22
+ /**
23
+ * Check if a given object implements the LibraryAgentInstallResponseUio interface.
24
+ */
25
+ function instanceOfLibraryAgentInstallResponseUio(value) {
26
+ if (!('agentId' in value) || value['agentId'] === undefined)
27
+ return false;
28
+ if (!('agentName' in value) || value['agentName'] === undefined)
29
+ return false;
30
+ if (!('clean' in value) || value['clean'] === undefined)
31
+ return false;
32
+ if (!('report' in value) || value['report'] === undefined)
33
+ return false;
34
+ if (!('librarySlug' in value) || value['librarySlug'] === undefined)
35
+ return false;
36
+ if (!('libraryVersionId' in value) || value['libraryVersionId'] === undefined)
37
+ return false;
38
+ if (!('libraryVersion' in value) || value['libraryVersion'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function LibraryAgentInstallResponseUioFromJSON(json) {
43
+ return LibraryAgentInstallResponseUioFromJSONTyped(json, false);
44
+ }
45
+ function LibraryAgentInstallResponseUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'agentId': json['agentId'],
51
+ 'agentName': json['agentName'],
52
+ 'clean': json['clean'],
53
+ 'report': (0, AgentImportReportUio_1.AgentImportReportUioFromJSON)(json['report']),
54
+ 'librarySlug': json['librarySlug'],
55
+ 'libraryVersionId': json['libraryVersionId'],
56
+ 'libraryVersion': json['libraryVersion'],
57
+ 'roleId': json['roleId'] == null ? undefined : json['roleId'],
58
+ };
59
+ }
60
+ function LibraryAgentInstallResponseUioToJSON(json) {
61
+ return LibraryAgentInstallResponseUioToJSONTyped(json, false);
62
+ }
63
+ function LibraryAgentInstallResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'agentId': value['agentId'],
69
+ 'agentName': value['agentName'],
70
+ 'clean': value['clean'],
71
+ 'report': (0, AgentImportReportUio_1.AgentImportReportUioToJSON)(value['report']),
72
+ 'librarySlug': value['librarySlug'],
73
+ 'libraryVersionId': value['libraryVersionId'],
74
+ 'libraryVersion': value['libraryVersion'],
75
+ 'roleId': value['roleId'],
76
+ };
77
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LibraryAgentParseBundleRequestUio
16
+ */
17
+ export interface LibraryAgentParseBundleRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LibraryAgentParseBundleRequestUio
22
+ */
23
+ format: LibraryAgentParseBundleRequestUioFormatEnum;
24
+ /**
25
+ * Raw serialized breign-agent bundle.
26
+ * @type {string}
27
+ * @memberof LibraryAgentParseBundleRequestUio
28
+ */
29
+ content: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const LibraryAgentParseBundleRequestUioFormatEnum: {
35
+ readonly Yaml: "yaml";
36
+ readonly Json: "json";
37
+ };
38
+ export type LibraryAgentParseBundleRequestUioFormatEnum = typeof LibraryAgentParseBundleRequestUioFormatEnum[keyof typeof LibraryAgentParseBundleRequestUioFormatEnum];
39
+ /**
40
+ * Check if a given object implements the LibraryAgentParseBundleRequestUio interface.
41
+ */
42
+ export declare function instanceOfLibraryAgentParseBundleRequestUio(value: object): value is LibraryAgentParseBundleRequestUio;
43
+ export declare function LibraryAgentParseBundleRequestUioFromJSON(json: any): LibraryAgentParseBundleRequestUio;
44
+ export declare function LibraryAgentParseBundleRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentParseBundleRequestUio;
45
+ export declare function LibraryAgentParseBundleRequestUioToJSON(json: any): LibraryAgentParseBundleRequestUio;
46
+ export declare function LibraryAgentParseBundleRequestUioToJSONTyped(value?: LibraryAgentParseBundleRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.LibraryAgentParseBundleRequestUioFormatEnum = void 0;
17
+ exports.instanceOfLibraryAgentParseBundleRequestUio = instanceOfLibraryAgentParseBundleRequestUio;
18
+ exports.LibraryAgentParseBundleRequestUioFromJSON = LibraryAgentParseBundleRequestUioFromJSON;
19
+ exports.LibraryAgentParseBundleRequestUioFromJSONTyped = LibraryAgentParseBundleRequestUioFromJSONTyped;
20
+ exports.LibraryAgentParseBundleRequestUioToJSON = LibraryAgentParseBundleRequestUioToJSON;
21
+ exports.LibraryAgentParseBundleRequestUioToJSONTyped = LibraryAgentParseBundleRequestUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LibraryAgentParseBundleRequestUioFormatEnum = {
26
+ Yaml: 'yaml',
27
+ Json: 'json'
28
+ };
29
+ /**
30
+ * Check if a given object implements the LibraryAgentParseBundleRequestUio interface.
31
+ */
32
+ function instanceOfLibraryAgentParseBundleRequestUio(value) {
33
+ if (!('format' in value) || value['format'] === undefined)
34
+ return false;
35
+ if (!('content' in value) || value['content'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function LibraryAgentParseBundleRequestUioFromJSON(json) {
40
+ return LibraryAgentParseBundleRequestUioFromJSONTyped(json, false);
41
+ }
42
+ function LibraryAgentParseBundleRequestUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'format': json['format'],
48
+ 'content': json['content'],
49
+ };
50
+ }
51
+ function LibraryAgentParseBundleRequestUioToJSON(json) {
52
+ return LibraryAgentParseBundleRequestUioToJSONTyped(json, false);
53
+ }
54
+ function LibraryAgentParseBundleRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'format': value['format'],
60
+ 'content': value['content'],
61
+ };
62
+ }