@breign/client 1.0.205 → 1.0.206

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, MoveTicketsRequestUio, MoveTicketsResultUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
13
+ import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ArtifactLibraryItemUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, MoveTicketsRequestUio, MoveTicketsResultUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
14
14
  export interface AcceptTicketProposalRequest {
15
15
  proposalId: string;
16
16
  acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
@@ -73,6 +73,28 @@ export interface GiveTicketGoAheadRequest {
73
73
  assigneeType: MemberTypeUio;
74
74
  assigneeId: string;
75
75
  }
76
+ export interface ListAgentArtifactsRequest {
77
+ organizationId: string;
78
+ agentId: string;
79
+ search?: string;
80
+ mimeType?: string;
81
+ page?: number;
82
+ limit?: number;
83
+ }
84
+ export interface ListOrganizationArtifactsRequest {
85
+ organizationId: string;
86
+ search?: string;
87
+ mimeType?: string;
88
+ page?: number;
89
+ limit?: number;
90
+ }
91
+ export interface ListProjectArtifactsRequest {
92
+ projectId: string;
93
+ search?: string;
94
+ mimeType?: string;
95
+ page?: number;
96
+ limit?: number;
97
+ }
76
98
  export interface ListProjectTicketsRequest {
77
99
  projectId: string;
78
100
  status?: Array<TicketStatusUio>;
@@ -294,6 +316,36 @@ export declare class TicketsApi extends runtime.BaseAPI {
294
316
  * Give the go-ahead to an assignee
295
317
  */
296
318
  giveTicketGoAhead(ticketId: string, assigneeType: MemberTypeUio, assigneeId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
319
+ /**
320
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
321
+ * List the artifacts added by an agent
322
+ */
323
+ listAgentArtifactsRaw(requestParameters: ListAgentArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
324
+ /**
325
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
326
+ * List the artifacts added by an agent
327
+ */
328
+ listAgentArtifacts(organizationId: string, agentId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
329
+ /**
330
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
331
+ * List the artifacts of an organization
332
+ */
333
+ listOrganizationArtifactsRaw(requestParameters: ListOrganizationArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
334
+ /**
335
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
336
+ * List the artifacts of an organization
337
+ */
338
+ listOrganizationArtifacts(organizationId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
339
+ /**
340
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
341
+ * List the artifacts of a workspace
342
+ */
343
+ listProjectArtifactsRaw(requestParameters: ListProjectArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
344
+ /**
345
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
346
+ * List the artifacts of a workspace
347
+ */
348
+ listProjectArtifacts(projectId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
297
349
  /**
298
350
  * Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
299
351
  * List the tickets of a project
@@ -568,6 +568,132 @@ class TicketsApi extends runtime.BaseAPI {
568
568
  const response = await this.giveTicketGoAheadRaw({ ticketId: ticketId, assigneeType: assigneeType, assigneeId: assigneeId }, initOverrides);
569
569
  return await response.value();
570
570
  }
571
+ /**
572
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
573
+ * List the artifacts added by an agent
574
+ */
575
+ async listAgentArtifactsRaw(requestParameters, initOverrides) {
576
+ if (requestParameters['organizationId'] == null) {
577
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listAgentArtifacts().');
578
+ }
579
+ if (requestParameters['agentId'] == null) {
580
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling listAgentArtifacts().');
581
+ }
582
+ const queryParameters = {};
583
+ if (requestParameters['search'] != null) {
584
+ queryParameters['search'] = requestParameters['search'];
585
+ }
586
+ if (requestParameters['mimeType'] != null) {
587
+ queryParameters['mimeType'] = requestParameters['mimeType'];
588
+ }
589
+ if (requestParameters['page'] != null) {
590
+ queryParameters['page'] = requestParameters['page'];
591
+ }
592
+ if (requestParameters['limit'] != null) {
593
+ queryParameters['limit'] = requestParameters['limit'];
594
+ }
595
+ const headerParameters = {};
596
+ if (this.configuration && this.configuration.apiKey) {
597
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
598
+ }
599
+ const response = await this.request({
600
+ path: `/organizations/{organizationId}/agents/{agentId}/artifacts`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
601
+ method: 'GET',
602
+ headers: headerParameters,
603
+ query: queryParameters,
604
+ }, initOverrides);
605
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
606
+ }
607
+ /**
608
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
609
+ * List the artifacts added by an agent
610
+ */
611
+ async listAgentArtifacts(organizationId, agentId, search, mimeType, page, limit, initOverrides) {
612
+ const response = await this.listAgentArtifactsRaw({ organizationId: organizationId, agentId: agentId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
613
+ return await response.value();
614
+ }
615
+ /**
616
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
617
+ * List the artifacts of an organization
618
+ */
619
+ async listOrganizationArtifactsRaw(requestParameters, initOverrides) {
620
+ if (requestParameters['organizationId'] == null) {
621
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationArtifacts().');
622
+ }
623
+ const queryParameters = {};
624
+ if (requestParameters['search'] != null) {
625
+ queryParameters['search'] = requestParameters['search'];
626
+ }
627
+ if (requestParameters['mimeType'] != null) {
628
+ queryParameters['mimeType'] = requestParameters['mimeType'];
629
+ }
630
+ if (requestParameters['page'] != null) {
631
+ queryParameters['page'] = requestParameters['page'];
632
+ }
633
+ if (requestParameters['limit'] != null) {
634
+ queryParameters['limit'] = requestParameters['limit'];
635
+ }
636
+ const headerParameters = {};
637
+ if (this.configuration && this.configuration.apiKey) {
638
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
639
+ }
640
+ const response = await this.request({
641
+ path: `/organizations/{organizationId}/artifacts`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
642
+ method: 'GET',
643
+ headers: headerParameters,
644
+ query: queryParameters,
645
+ }, initOverrides);
646
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
647
+ }
648
+ /**
649
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
650
+ * List the artifacts of an organization
651
+ */
652
+ async listOrganizationArtifacts(organizationId, search, mimeType, page, limit, initOverrides) {
653
+ const response = await this.listOrganizationArtifactsRaw({ organizationId: organizationId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
654
+ return await response.value();
655
+ }
656
+ /**
657
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
658
+ * List the artifacts of a workspace
659
+ */
660
+ async listProjectArtifactsRaw(requestParameters, initOverrides) {
661
+ if (requestParameters['projectId'] == null) {
662
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectArtifacts().');
663
+ }
664
+ const queryParameters = {};
665
+ if (requestParameters['search'] != null) {
666
+ queryParameters['search'] = requestParameters['search'];
667
+ }
668
+ if (requestParameters['mimeType'] != null) {
669
+ queryParameters['mimeType'] = requestParameters['mimeType'];
670
+ }
671
+ if (requestParameters['page'] != null) {
672
+ queryParameters['page'] = requestParameters['page'];
673
+ }
674
+ if (requestParameters['limit'] != null) {
675
+ queryParameters['limit'] = requestParameters['limit'];
676
+ }
677
+ const headerParameters = {};
678
+ if (this.configuration && this.configuration.apiKey) {
679
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
680
+ }
681
+ const response = await this.request({
682
+ path: `/projects/{projectId}/artifacts`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
683
+ method: 'GET',
684
+ headers: headerParameters,
685
+ query: queryParameters,
686
+ }, initOverrides);
687
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
688
+ }
689
+ /**
690
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
691
+ * List the artifacts of a workspace
692
+ */
693
+ async listProjectArtifacts(projectId, search, mimeType, page, limit, initOverrides) {
694
+ const response = await this.listProjectArtifactsRaw({ projectId: projectId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
695
+ return await response.value();
696
+ }
571
697
  /**
572
698
  * Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
573
699
  * List the tickets of a project
@@ -0,0 +1,56 @@
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 ArtifactLibraryItemAllOfProjectUio
16
+ */
17
+ export interface ArtifactLibraryItemAllOfProjectUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ArtifactLibraryItemAllOfProjectUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ArtifactLibraryItemAllOfProjectUio
28
+ */
29
+ key: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ArtifactLibraryItemAllOfProjectUio
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ArtifactLibraryItemAllOfProjectUio
40
+ */
41
+ color: string | null;
42
+ /**
43
+ * L'espace personnel de l'appelant
44
+ * @type {boolean}
45
+ * @memberof ArtifactLibraryItemAllOfProjectUio
46
+ */
47
+ personal: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the ArtifactLibraryItemAllOfProjectUio interface.
51
+ */
52
+ export declare function instanceOfArtifactLibraryItemAllOfProjectUio(value: object): value is ArtifactLibraryItemAllOfProjectUio;
53
+ export declare function ArtifactLibraryItemAllOfProjectUioFromJSON(json: any): ArtifactLibraryItemAllOfProjectUio;
54
+ export declare function ArtifactLibraryItemAllOfProjectUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLibraryItemAllOfProjectUio;
55
+ export declare function ArtifactLibraryItemAllOfProjectUioToJSON(json: any): ArtifactLibraryItemAllOfProjectUio;
56
+ export declare function ArtifactLibraryItemAllOfProjectUioToJSONTyped(value?: ArtifactLibraryItemAllOfProjectUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfArtifactLibraryItemAllOfProjectUio = instanceOfArtifactLibraryItemAllOfProjectUio;
17
+ exports.ArtifactLibraryItemAllOfProjectUioFromJSON = ArtifactLibraryItemAllOfProjectUioFromJSON;
18
+ exports.ArtifactLibraryItemAllOfProjectUioFromJSONTyped = ArtifactLibraryItemAllOfProjectUioFromJSONTyped;
19
+ exports.ArtifactLibraryItemAllOfProjectUioToJSON = ArtifactLibraryItemAllOfProjectUioToJSON;
20
+ exports.ArtifactLibraryItemAllOfProjectUioToJSONTyped = ArtifactLibraryItemAllOfProjectUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ArtifactLibraryItemAllOfProjectUio interface.
23
+ */
24
+ function instanceOfArtifactLibraryItemAllOfProjectUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('key' in value) || value['key'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('color' in value) || value['color'] === undefined)
32
+ return false;
33
+ if (!('personal' in value) || value['personal'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ArtifactLibraryItemAllOfProjectUioFromJSON(json) {
38
+ return ArtifactLibraryItemAllOfProjectUioFromJSONTyped(json, false);
39
+ }
40
+ function ArtifactLibraryItemAllOfProjectUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'key': json['key'],
47
+ 'name': json['name'],
48
+ 'color': json['color'],
49
+ 'personal': json['personal'],
50
+ };
51
+ }
52
+ function ArtifactLibraryItemAllOfProjectUioToJSON(json) {
53
+ return ArtifactLibraryItemAllOfProjectUioToJSONTyped(json, false);
54
+ }
55
+ function ArtifactLibraryItemAllOfProjectUioToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'key': value['key'],
62
+ 'name': value['name'],
63
+ 'color': value['color'],
64
+ 'personal': value['personal'],
65
+ };
66
+ }
@@ -0,0 +1,51 @@
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 { TicketStatusUio } from './TicketStatusUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ArtifactLibraryItemAllOfTicketUio
17
+ */
18
+ export interface ArtifactLibraryItemAllOfTicketUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ArtifactLibraryItemAllOfTicketUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ArtifactLibraryItemAllOfTicketUio
29
+ */
30
+ key: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ArtifactLibraryItemAllOfTicketUio
35
+ */
36
+ title: string;
37
+ /**
38
+ *
39
+ * @type {TicketStatusUio}
40
+ * @memberof ArtifactLibraryItemAllOfTicketUio
41
+ */
42
+ status: TicketStatusUio;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ArtifactLibraryItemAllOfTicketUio interface.
46
+ */
47
+ export declare function instanceOfArtifactLibraryItemAllOfTicketUio(value: object): value is ArtifactLibraryItemAllOfTicketUio;
48
+ export declare function ArtifactLibraryItemAllOfTicketUioFromJSON(json: any): ArtifactLibraryItemAllOfTicketUio;
49
+ export declare function ArtifactLibraryItemAllOfTicketUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLibraryItemAllOfTicketUio;
50
+ export declare function ArtifactLibraryItemAllOfTicketUioToJSON(json: any): ArtifactLibraryItemAllOfTicketUio;
51
+ export declare function ArtifactLibraryItemAllOfTicketUioToJSONTyped(value?: ArtifactLibraryItemAllOfTicketUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfArtifactLibraryItemAllOfTicketUio = instanceOfArtifactLibraryItemAllOfTicketUio;
17
+ exports.ArtifactLibraryItemAllOfTicketUioFromJSON = ArtifactLibraryItemAllOfTicketUioFromJSON;
18
+ exports.ArtifactLibraryItemAllOfTicketUioFromJSONTyped = ArtifactLibraryItemAllOfTicketUioFromJSONTyped;
19
+ exports.ArtifactLibraryItemAllOfTicketUioToJSON = ArtifactLibraryItemAllOfTicketUioToJSON;
20
+ exports.ArtifactLibraryItemAllOfTicketUioToJSONTyped = ArtifactLibraryItemAllOfTicketUioToJSONTyped;
21
+ const TicketStatusUio_1 = require("./TicketStatusUio");
22
+ /**
23
+ * Check if a given object implements the ArtifactLibraryItemAllOfTicketUio interface.
24
+ */
25
+ function instanceOfArtifactLibraryItemAllOfTicketUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('key' in value) || value['key'] === undefined)
29
+ return false;
30
+ if (!('title' in value) || value['title'] === undefined)
31
+ return false;
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ArtifactLibraryItemAllOfTicketUioFromJSON(json) {
37
+ return ArtifactLibraryItemAllOfTicketUioFromJSONTyped(json, false);
38
+ }
39
+ function ArtifactLibraryItemAllOfTicketUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'key': json['key'],
46
+ 'title': json['title'],
47
+ 'status': (0, TicketStatusUio_1.TicketStatusUioFromJSON)(json['status']),
48
+ };
49
+ }
50
+ function ArtifactLibraryItemAllOfTicketUioToJSON(json) {
51
+ return ArtifactLibraryItemAllOfTicketUioToJSONTyped(json, false);
52
+ }
53
+ function ArtifactLibraryItemAllOfTicketUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'key': value['key'],
60
+ 'title': value['title'],
61
+ 'status': (0, TicketStatusUio_1.TicketStatusUioToJSON)(value['status']),
62
+ };
63
+ }
@@ -0,0 +1,103 @@
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 { ActorRefUio } from './ActorRefUio';
13
+ import type { ArtifactLibraryItemAllOfProjectUio } from './ArtifactLibraryItemAllOfProjectUio';
14
+ import type { TicketArtifactSourceUio } from './TicketArtifactSourceUio';
15
+ import type { TicketArtifactStatusUio } from './TicketArtifactStatusUio';
16
+ import type { ArtifactLibraryItemAllOfTicketUio } from './ArtifactLibraryItemAllOfTicketUio';
17
+ /**
18
+ * Un artefact de la bibliothèque, avec de quoi afficher son ticket et son espace de travail.
19
+ * @export
20
+ * @interface ArtifactLibraryItemUio
21
+ */
22
+ export interface ArtifactLibraryItemUio {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof ArtifactLibraryItemUio
27
+ */
28
+ id: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ArtifactLibraryItemUio
33
+ */
34
+ ticketId: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ArtifactLibraryItemUio
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ArtifactLibraryItemUio
45
+ */
46
+ mimeType: string;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof ArtifactLibraryItemUio
51
+ */
52
+ size: number | null;
53
+ /**
54
+ *
55
+ * @type {TicketArtifactSourceUio}
56
+ * @memberof ArtifactLibraryItemUio
57
+ */
58
+ source: TicketArtifactSourceUio;
59
+ /**
60
+ *
61
+ * @type {TicketArtifactStatusUio}
62
+ * @memberof ArtifactLibraryItemUio
63
+ */
64
+ status: TicketArtifactStatusUio;
65
+ /**
66
+ *
67
+ * @type {ActorRefUio}
68
+ * @memberof ArtifactLibraryItemUio
69
+ */
70
+ addedBy: ActorRefUio;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof ArtifactLibraryItemUio
75
+ */
76
+ createdAt: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof ArtifactLibraryItemUio
81
+ */
82
+ projectId: string;
83
+ /**
84
+ *
85
+ * @type {ArtifactLibraryItemAllOfTicketUio}
86
+ * @memberof ArtifactLibraryItemUio
87
+ */
88
+ ticket: ArtifactLibraryItemAllOfTicketUio;
89
+ /**
90
+ *
91
+ * @type {ArtifactLibraryItemAllOfProjectUio}
92
+ * @memberof ArtifactLibraryItemUio
93
+ */
94
+ project: ArtifactLibraryItemAllOfProjectUio;
95
+ }
96
+ /**
97
+ * Check if a given object implements the ArtifactLibraryItemUio interface.
98
+ */
99
+ export declare function instanceOfArtifactLibraryItemUio(value: object): value is ArtifactLibraryItemUio;
100
+ export declare function ArtifactLibraryItemUioFromJSON(json: any): ArtifactLibraryItemUio;
101
+ export declare function ArtifactLibraryItemUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLibraryItemUio;
102
+ export declare function ArtifactLibraryItemUioToJSON(json: any): ArtifactLibraryItemUio;
103
+ export declare function ArtifactLibraryItemUioToJSONTyped(value?: ArtifactLibraryItemUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
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.instanceOfArtifactLibraryItemUio = instanceOfArtifactLibraryItemUio;
17
+ exports.ArtifactLibraryItemUioFromJSON = ArtifactLibraryItemUioFromJSON;
18
+ exports.ArtifactLibraryItemUioFromJSONTyped = ArtifactLibraryItemUioFromJSONTyped;
19
+ exports.ArtifactLibraryItemUioToJSON = ArtifactLibraryItemUioToJSON;
20
+ exports.ArtifactLibraryItemUioToJSONTyped = ArtifactLibraryItemUioToJSONTyped;
21
+ const ActorRefUio_1 = require("./ActorRefUio");
22
+ const ArtifactLibraryItemAllOfProjectUio_1 = require("./ArtifactLibraryItemAllOfProjectUio");
23
+ const TicketArtifactSourceUio_1 = require("./TicketArtifactSourceUio");
24
+ const TicketArtifactStatusUio_1 = require("./TicketArtifactStatusUio");
25
+ const ArtifactLibraryItemAllOfTicketUio_1 = require("./ArtifactLibraryItemAllOfTicketUio");
26
+ /**
27
+ * Check if a given object implements the ArtifactLibraryItemUio interface.
28
+ */
29
+ function instanceOfArtifactLibraryItemUio(value) {
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('ticketId' in value) || value['ticketId'] === undefined)
33
+ return false;
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
36
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
37
+ return false;
38
+ if (!('size' in value) || value['size'] === undefined)
39
+ return false;
40
+ if (!('source' in value) || value['source'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ if (!('addedBy' in value) || value['addedBy'] === undefined)
45
+ return false;
46
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
47
+ return false;
48
+ if (!('projectId' in value) || value['projectId'] === undefined)
49
+ return false;
50
+ if (!('ticket' in value) || value['ticket'] === undefined)
51
+ return false;
52
+ if (!('project' in value) || value['project'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function ArtifactLibraryItemUioFromJSON(json) {
57
+ return ArtifactLibraryItemUioFromJSONTyped(json, false);
58
+ }
59
+ function ArtifactLibraryItemUioFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'id': json['id'],
65
+ 'ticketId': json['ticketId'],
66
+ 'name': json['name'],
67
+ 'mimeType': json['mimeType'],
68
+ 'size': json['size'],
69
+ 'source': (0, TicketArtifactSourceUio_1.TicketArtifactSourceUioFromJSON)(json['source']),
70
+ 'status': (0, TicketArtifactStatusUio_1.TicketArtifactStatusUioFromJSON)(json['status']),
71
+ 'addedBy': (0, ActorRefUio_1.ActorRefUioFromJSON)(json['addedBy']),
72
+ 'createdAt': json['createdAt'],
73
+ 'projectId': json['projectId'],
74
+ 'ticket': (0, ArtifactLibraryItemAllOfTicketUio_1.ArtifactLibraryItemAllOfTicketUioFromJSON)(json['ticket']),
75
+ 'project': (0, ArtifactLibraryItemAllOfProjectUio_1.ArtifactLibraryItemAllOfProjectUioFromJSON)(json['project']),
76
+ };
77
+ }
78
+ function ArtifactLibraryItemUioToJSON(json) {
79
+ return ArtifactLibraryItemUioToJSONTyped(json, false);
80
+ }
81
+ function ArtifactLibraryItemUioToJSONTyped(value, ignoreDiscriminator = false) {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+ return {
86
+ 'id': value['id'],
87
+ 'ticketId': value['ticketId'],
88
+ 'name': value['name'],
89
+ 'mimeType': value['mimeType'],
90
+ 'size': value['size'],
91
+ 'source': (0, TicketArtifactSourceUio_1.TicketArtifactSourceUioToJSON)(value['source']),
92
+ 'status': (0, TicketArtifactStatusUio_1.TicketArtifactStatusUioToJSON)(value['status']),
93
+ 'addedBy': (0, ActorRefUio_1.ActorRefUioToJSON)(value['addedBy']),
94
+ 'createdAt': value['createdAt'],
95
+ 'projectId': value['projectId'],
96
+ 'ticket': (0, ArtifactLibraryItemAllOfTicketUio_1.ArtifactLibraryItemAllOfTicketUioToJSON)(value['ticket']),
97
+ 'project': (0, ArtifactLibraryItemAllOfProjectUio_1.ArtifactLibraryItemAllOfProjectUioToJSON)(value['project']),
98
+ };
99
+ }
@@ -183,6 +183,9 @@ export * from './ApplicationTokenFormatUio';
183
183
  export * from './ApplicationTokenRequestUio';
184
184
  export * from './ApplicationTokenResponseUio';
185
185
  export * from './ApplicationTokenRevocationRequestUio';
186
+ export * from './ArtifactLibraryItemAllOfProjectUio';
187
+ export * from './ArtifactLibraryItemAllOfTicketUio';
188
+ export * from './ArtifactLibraryItemUio';
186
189
  export * from './AttachmentCreateRequestUio';
187
190
  export * from './AttachmentCreateResponseUio';
188
191
  export * from './AttachmentDetailsResponseUio';
@@ -201,6 +201,9 @@ __exportStar(require("./ApplicationTokenFormatUio"), exports);
201
201
  __exportStar(require("./ApplicationTokenRequestUio"), exports);
202
202
  __exportStar(require("./ApplicationTokenResponseUio"), exports);
203
203
  __exportStar(require("./ApplicationTokenRevocationRequestUio"), exports);
204
+ __exportStar(require("./ArtifactLibraryItemAllOfProjectUio"), exports);
205
+ __exportStar(require("./ArtifactLibraryItemAllOfTicketUio"), exports);
206
+ __exportStar(require("./ArtifactLibraryItemUio"), exports);
204
207
  __exportStar(require("./AttachmentCreateRequestUio"), exports);
205
208
  __exportStar(require("./AttachmentCreateResponseUio"), exports);
206
209
  __exportStar(require("./AttachmentDetailsResponseUio"), exports);
package/dist/openapi.json CHANGED
@@ -18887,6 +18887,310 @@
18887
18887
  "tags" : [ "tickets" ]
18888
18888
  }
18889
18889
  },
18890
+ "/projects/{projectId}/artifacts" : {
18891
+ "get" : {
18892
+ "description" : "Bibliothèque d'artefacts de l'espace de travail : les artefacts prêts de tous ses tickets.",
18893
+ "operationId" : "listProjectArtifacts",
18894
+ "parameters" : [ {
18895
+ "description" : "ID of the project",
18896
+ "in" : "path",
18897
+ "name" : "projectId",
18898
+ "required" : true,
18899
+ "schema" : {
18900
+ "format" : "uuid",
18901
+ "type" : "string"
18902
+ }
18903
+ }, {
18904
+ "description" : "Recherche dans le nom de l'artefact, sans tenir compte de la casse",
18905
+ "in" : "query",
18906
+ "name" : "search",
18907
+ "required" : false,
18908
+ "schema" : {
18909
+ "type" : "string"
18910
+ }
18911
+ }, {
18912
+ "description" : "Début du type MIME (image/, application/pdf…)",
18913
+ "in" : "query",
18914
+ "name" : "mimeType",
18915
+ "required" : false,
18916
+ "schema" : {
18917
+ "type" : "string"
18918
+ }
18919
+ }, {
18920
+ "description" : "Page number",
18921
+ "in" : "query",
18922
+ "name" : "page",
18923
+ "schema" : {
18924
+ "type" : "integer"
18925
+ }
18926
+ }, {
18927
+ "description" : "Number of items per page. Must be used together with page.",
18928
+ "in" : "query",
18929
+ "name" : "limit",
18930
+ "required" : false,
18931
+ "schema" : {
18932
+ "maximum" : 100,
18933
+ "minimum" : 1,
18934
+ "type" : "integer"
18935
+ }
18936
+ } ],
18937
+ "responses" : {
18938
+ "200" : {
18939
+ "content" : {
18940
+ "application/json" : {
18941
+ "schema" : {
18942
+ "items" : {
18943
+ "$ref" : "#/components/schemas/ArtifactLibraryItem"
18944
+ },
18945
+ "type" : "array"
18946
+ }
18947
+ }
18948
+ },
18949
+ "description" : "OK, du plus récent au plus ancien",
18950
+ "headers" : {
18951
+ "X-Total-Count" : {
18952
+ "description" : "Total number of items matching the filters",
18953
+ "schema" : {
18954
+ "type" : "integer"
18955
+ }
18956
+ },
18957
+ "X-Page" : {
18958
+ "description" : "Current page number",
18959
+ "schema" : {
18960
+ "type" : "integer"
18961
+ }
18962
+ },
18963
+ "X-Limit" : {
18964
+ "description" : "Number of items per page",
18965
+ "schema" : {
18966
+ "type" : "integer"
18967
+ }
18968
+ },
18969
+ "X-Total-Pages" : {
18970
+ "description" : "Total number of pages",
18971
+ "schema" : {
18972
+ "type" : "integer"
18973
+ }
18974
+ }
18975
+ }
18976
+ },
18977
+ "401" : {
18978
+ "description" : "Unauthenticated"
18979
+ },
18980
+ "403" : {
18981
+ "description" : "Forbidden — the caller is not a member of the project"
18982
+ },
18983
+ "404" : {
18984
+ "description" : "Not found"
18985
+ }
18986
+ },
18987
+ "summary" : "List the artifacts of a workspace",
18988
+ "tags" : [ "tickets" ]
18989
+ }
18990
+ },
18991
+ "/organizations/{organizationId}/artifacts" : {
18992
+ "get" : {
18993
+ "description" : "Bibliothèque d'artefacts de l'organisation, vue d'admin : les artefacts de tous les espaces partagés, et de l'espace personnel de l'appelant ; jamais de l'espace personnel d'un autre.",
18994
+ "operationId" : "listOrganizationArtifacts",
18995
+ "parameters" : [ {
18996
+ "description" : "ID of the organization",
18997
+ "in" : "path",
18998
+ "name" : "organizationId",
18999
+ "required" : true,
19000
+ "schema" : {
19001
+ "type" : "string"
19002
+ }
19003
+ }, {
19004
+ "description" : "Recherche dans le nom de l'artefact, sans tenir compte de la casse",
19005
+ "in" : "query",
19006
+ "name" : "search",
19007
+ "required" : false,
19008
+ "schema" : {
19009
+ "type" : "string"
19010
+ }
19011
+ }, {
19012
+ "description" : "Début du type MIME (image/, application/pdf…)",
19013
+ "in" : "query",
19014
+ "name" : "mimeType",
19015
+ "required" : false,
19016
+ "schema" : {
19017
+ "type" : "string"
19018
+ }
19019
+ }, {
19020
+ "description" : "Page number",
19021
+ "in" : "query",
19022
+ "name" : "page",
19023
+ "schema" : {
19024
+ "type" : "integer"
19025
+ }
19026
+ }, {
19027
+ "description" : "Number of items per page. Must be used together with page.",
19028
+ "in" : "query",
19029
+ "name" : "limit",
19030
+ "required" : false,
19031
+ "schema" : {
19032
+ "maximum" : 100,
19033
+ "minimum" : 1,
19034
+ "type" : "integer"
19035
+ }
19036
+ } ],
19037
+ "responses" : {
19038
+ "200" : {
19039
+ "content" : {
19040
+ "application/json" : {
19041
+ "schema" : {
19042
+ "items" : {
19043
+ "$ref" : "#/components/schemas/ArtifactLibraryItem"
19044
+ },
19045
+ "type" : "array"
19046
+ }
19047
+ }
19048
+ },
19049
+ "description" : "OK, du plus récent au plus ancien",
19050
+ "headers" : {
19051
+ "X-Total-Count" : {
19052
+ "description" : "Total number of items matching the filters",
19053
+ "schema" : {
19054
+ "type" : "integer"
19055
+ }
19056
+ },
19057
+ "X-Page" : {
19058
+ "description" : "Current page number",
19059
+ "schema" : {
19060
+ "type" : "integer"
19061
+ }
19062
+ },
19063
+ "X-Limit" : {
19064
+ "description" : "Number of items per page",
19065
+ "schema" : {
19066
+ "type" : "integer"
19067
+ }
19068
+ },
19069
+ "X-Total-Pages" : {
19070
+ "description" : "Total number of pages",
19071
+ "schema" : {
19072
+ "type" : "integer"
19073
+ }
19074
+ }
19075
+ }
19076
+ },
19077
+ "401" : {
19078
+ "description" : "Unauthenticated"
19079
+ },
19080
+ "403" : {
19081
+ "description" : "Forbidden — the caller is not an admin of the organization"
19082
+ }
19083
+ },
19084
+ "summary" : "List the artifacts of an organization",
19085
+ "tags" : [ "tickets" ]
19086
+ }
19087
+ },
19088
+ "/organizations/{organizationId}/agents/{agentId}/artifacts" : {
19089
+ "get" : {
19090
+ "description" : "Bibliothèque d'artefacts d'un agent : ceux qu'il a joints, dans les espaces que l'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).",
19091
+ "operationId" : "listAgentArtifacts",
19092
+ "parameters" : [ {
19093
+ "description" : "ID of the organization",
19094
+ "in" : "path",
19095
+ "name" : "organizationId",
19096
+ "required" : true,
19097
+ "schema" : {
19098
+ "type" : "string"
19099
+ }
19100
+ }, {
19101
+ "description" : "ID of the agent",
19102
+ "in" : "path",
19103
+ "name" : "agentId",
19104
+ "required" : true,
19105
+ "schema" : {
19106
+ "format" : "uuid",
19107
+ "type" : "string"
19108
+ }
19109
+ }, {
19110
+ "description" : "Recherche dans le nom de l'artefact, sans tenir compte de la casse",
19111
+ "in" : "query",
19112
+ "name" : "search",
19113
+ "required" : false,
19114
+ "schema" : {
19115
+ "type" : "string"
19116
+ }
19117
+ }, {
19118
+ "description" : "Début du type MIME (image/, application/pdf…)",
19119
+ "in" : "query",
19120
+ "name" : "mimeType",
19121
+ "required" : false,
19122
+ "schema" : {
19123
+ "type" : "string"
19124
+ }
19125
+ }, {
19126
+ "description" : "Page number",
19127
+ "in" : "query",
19128
+ "name" : "page",
19129
+ "schema" : {
19130
+ "type" : "integer"
19131
+ }
19132
+ }, {
19133
+ "description" : "Number of items per page. Must be used together with page.",
19134
+ "in" : "query",
19135
+ "name" : "limit",
19136
+ "required" : false,
19137
+ "schema" : {
19138
+ "maximum" : 100,
19139
+ "minimum" : 1,
19140
+ "type" : "integer"
19141
+ }
19142
+ } ],
19143
+ "responses" : {
19144
+ "200" : {
19145
+ "content" : {
19146
+ "application/json" : {
19147
+ "schema" : {
19148
+ "items" : {
19149
+ "$ref" : "#/components/schemas/ArtifactLibraryItem"
19150
+ },
19151
+ "type" : "array"
19152
+ }
19153
+ }
19154
+ },
19155
+ "description" : "OK, du plus récent au plus ancien",
19156
+ "headers" : {
19157
+ "X-Total-Count" : {
19158
+ "description" : "Total number of items matching the filters",
19159
+ "schema" : {
19160
+ "type" : "integer"
19161
+ }
19162
+ },
19163
+ "X-Page" : {
19164
+ "description" : "Current page number",
19165
+ "schema" : {
19166
+ "type" : "integer"
19167
+ }
19168
+ },
19169
+ "X-Limit" : {
19170
+ "description" : "Number of items per page",
19171
+ "schema" : {
19172
+ "type" : "integer"
19173
+ }
19174
+ },
19175
+ "X-Total-Pages" : {
19176
+ "description" : "Total number of pages",
19177
+ "schema" : {
19178
+ "type" : "integer"
19179
+ }
19180
+ }
19181
+ }
19182
+ },
19183
+ "401" : {
19184
+ "description" : "Unauthenticated"
19185
+ },
19186
+ "403" : {
19187
+ "description" : "Forbidden — the caller cannot read this agent of the organization"
19188
+ }
19189
+ },
19190
+ "summary" : "List the artifacts added by an agent",
19191
+ "tags" : [ "tickets" ]
19192
+ }
19193
+ },
18890
19194
  "/organizations/{organizationId}/tickets/{ticketKey}" : {
18891
19195
  "get" : {
18892
19196
  "description" : "Ticket désigné par sa clé (BRN-142) dans une organisation.",
@@ -24329,6 +24633,35 @@
24329
24633
  "type" : "string"
24330
24634
  }
24331
24635
  },
24636
+ "artifactSearch" : {
24637
+ "description" : "Recherche dans le nom de l'artefact, sans tenir compte de la casse",
24638
+ "in" : "query",
24639
+ "name" : "search",
24640
+ "required" : false,
24641
+ "schema" : {
24642
+ "type" : "string"
24643
+ }
24644
+ },
24645
+ "artifactMimeType" : {
24646
+ "description" : "Début du type MIME (image/, application/pdf…)",
24647
+ "in" : "query",
24648
+ "name" : "mimeType",
24649
+ "required" : false,
24650
+ "schema" : {
24651
+ "type" : "string"
24652
+ }
24653
+ },
24654
+ "pageLimit" : {
24655
+ "description" : "Number of items per page. Must be used together with page.",
24656
+ "in" : "query",
24657
+ "name" : "limit",
24658
+ "required" : false,
24659
+ "schema" : {
24660
+ "maximum" : 100,
24661
+ "minimum" : 1,
24662
+ "type" : "integer"
24663
+ }
24664
+ },
24332
24665
  "ticketKeyPath" : {
24333
24666
  "description" : "Ticket key, project key followed by the ticket number (BRN-142)",
24334
24667
  "in" : "path",
@@ -24447,6 +24780,47 @@
24447
24780
  }
24448
24781
  }
24449
24782
  },
24783
+ "responses" : {
24784
+ "artifactLibrary" : {
24785
+ "content" : {
24786
+ "application/json" : {
24787
+ "schema" : {
24788
+ "items" : {
24789
+ "$ref" : "#/components/schemas/ArtifactLibraryItem"
24790
+ },
24791
+ "type" : "array"
24792
+ }
24793
+ }
24794
+ },
24795
+ "description" : "OK, du plus récent au plus ancien",
24796
+ "headers" : {
24797
+ "X-Total-Count" : {
24798
+ "description" : "Total number of items matching the filters",
24799
+ "schema" : {
24800
+ "type" : "integer"
24801
+ }
24802
+ },
24803
+ "X-Page" : {
24804
+ "description" : "Current page number",
24805
+ "schema" : {
24806
+ "type" : "integer"
24807
+ }
24808
+ },
24809
+ "X-Limit" : {
24810
+ "description" : "Number of items per page",
24811
+ "schema" : {
24812
+ "type" : "integer"
24813
+ }
24814
+ },
24815
+ "X-Total-Pages" : {
24816
+ "description" : "Total number of pages",
24817
+ "schema" : {
24818
+ "type" : "integer"
24819
+ }
24820
+ }
24821
+ }
24822
+ }
24823
+ },
24450
24824
  "schemas" : {
24451
24825
  "AudioFillerExistsResponse" : {
24452
24826
  "additionalProperties" : {
@@ -35594,6 +35968,63 @@
35594
35968
  "required" : [ "agentId", "conversationId", "currentStep", "lastRunAt", "planDone", "planTotal", "status" ],
35595
35969
  "type" : "object"
35596
35970
  },
35971
+ "ArtifactLibraryItem" : {
35972
+ "allOf" : [ {
35973
+ "$ref" : "#/components/schemas/TicketArtifact"
35974
+ }, {
35975
+ "properties" : {
35976
+ "projectId" : {
35977
+ "format" : "uuid",
35978
+ "type" : "string"
35979
+ },
35980
+ "ticket" : {
35981
+ "$ref" : "#/components/schemas/ArtifactLibraryItem_allOf_ticket"
35982
+ },
35983
+ "project" : {
35984
+ "$ref" : "#/components/schemas/ArtifactLibraryItem_allOf_project"
35985
+ }
35986
+ },
35987
+ "required" : [ "project", "projectId", "ticket" ],
35988
+ "type" : "object"
35989
+ } ],
35990
+ "description" : "Un artefact de la bibliothèque, avec de quoi afficher son ticket et son espace de travail."
35991
+ },
35992
+ "TicketArtifact" : {
35993
+ "properties" : {
35994
+ "id" : {
35995
+ "format" : "uuid",
35996
+ "type" : "string"
35997
+ },
35998
+ "ticketId" : {
35999
+ "format" : "uuid",
36000
+ "type" : "string"
36001
+ },
36002
+ "name" : {
36003
+ "type" : "string"
36004
+ },
36005
+ "mimeType" : {
36006
+ "type" : "string"
36007
+ },
36008
+ "size" : {
36009
+ "nullable" : true,
36010
+ "type" : "integer"
36011
+ },
36012
+ "source" : {
36013
+ "$ref" : "#/components/schemas/TicketArtifactSource"
36014
+ },
36015
+ "status" : {
36016
+ "$ref" : "#/components/schemas/TicketArtifactStatus"
36017
+ },
36018
+ "addedBy" : {
36019
+ "$ref" : "#/components/schemas/ActorRef"
36020
+ },
36021
+ "createdAt" : {
36022
+ "type" : "string"
36023
+ }
36024
+ },
36025
+ "required" : [ "addedBy", "createdAt", "id", "mimeType", "name", "size", "source", "status", "ticketId" ],
36026
+ "type" : "object"
36027
+ },
35597
36028
  "AgentAtWork" : {
35598
36029
  "description" : "Un agent assigné à un ticket ouvert qui concerne l'utilisateur (créateur, assigné ou relecteur), et qui travaille, attend une réponse ou est bloqué.",
35599
36030
  "properties" : {
@@ -35945,42 +36376,6 @@
35945
36376
  "required" : [ "body" ],
35946
36377
  "type" : "object"
35947
36378
  },
35948
- "TicketArtifact" : {
35949
- "properties" : {
35950
- "id" : {
35951
- "format" : "uuid",
35952
- "type" : "string"
35953
- },
35954
- "ticketId" : {
35955
- "format" : "uuid",
35956
- "type" : "string"
35957
- },
35958
- "name" : {
35959
- "type" : "string"
35960
- },
35961
- "mimeType" : {
35962
- "type" : "string"
35963
- },
35964
- "size" : {
35965
- "nullable" : true,
35966
- "type" : "integer"
35967
- },
35968
- "source" : {
35969
- "$ref" : "#/components/schemas/TicketArtifactSource"
35970
- },
35971
- "status" : {
35972
- "$ref" : "#/components/schemas/TicketArtifactStatus"
35973
- },
35974
- "addedBy" : {
35975
- "$ref" : "#/components/schemas/ActorRef"
35976
- },
35977
- "createdAt" : {
35978
- "type" : "string"
35979
- }
35980
- },
35981
- "required" : [ "addedBy", "createdAt", "id", "mimeType", "name", "size", "source", "status", "ticketId" ],
35982
- "type" : "object"
35983
- },
35984
36379
  "CreateTicketArtifactRequest" : {
35985
36380
  "description" : "Déclare un fichier à joindre ; la réponse donne l'URL où le téléverser.",
35986
36381
  "properties" : {
@@ -39794,6 +40189,14 @@
39794
40189
  "enum" : [ "idle", "queued", "running", "waiting_human", "failed" ],
39795
40190
  "type" : "string"
39796
40191
  },
40192
+ "TicketArtifactSource" : {
40193
+ "enum" : [ "file", "workspace" ],
40194
+ "type" : "string"
40195
+ },
40196
+ "TicketArtifactStatus" : {
40197
+ "enum" : [ "uploading", "ready" ],
40198
+ "type" : "string"
40199
+ },
39797
40200
  "TicketReviewDecision" : {
39798
40201
  "enum" : [ "approve", "changes" ],
39799
40202
  "type" : "string"
@@ -39812,14 +40215,6 @@
39812
40215
  "enum" : [ "comment", "report", "question", "approval", "event" ],
39813
40216
  "type" : "string"
39814
40217
  },
39815
- "TicketArtifactSource" : {
39816
- "enum" : [ "file", "workspace" ],
39817
- "type" : "string"
39818
- },
39819
- "TicketArtifactStatus" : {
39820
- "enum" : [ "uploading", "ready" ],
39821
- "type" : "string"
39822
- },
39823
40218
  "AgentExecutionGroupChoice" : {
39824
40219
  "description" : "Un groupe que l'utilisateur peut choisir pour l'agent, avec ce que ses nœuds portent.",
39825
40220
  "properties" : {
@@ -42109,6 +42504,49 @@
42109
42504
  },
42110
42505
  "type" : "object"
42111
42506
  },
42507
+ "ArtifactLibraryItem_allOf_ticket" : {
42508
+ "properties" : {
42509
+ "id" : {
42510
+ "format" : "uuid",
42511
+ "type" : "string"
42512
+ },
42513
+ "key" : {
42514
+ "type" : "string"
42515
+ },
42516
+ "title" : {
42517
+ "type" : "string"
42518
+ },
42519
+ "status" : {
42520
+ "$ref" : "#/components/schemas/TicketStatus"
42521
+ }
42522
+ },
42523
+ "required" : [ "id", "key", "status", "title" ],
42524
+ "type" : "object"
42525
+ },
42526
+ "ArtifactLibraryItem_allOf_project" : {
42527
+ "properties" : {
42528
+ "id" : {
42529
+ "format" : "uuid",
42530
+ "type" : "string"
42531
+ },
42532
+ "key" : {
42533
+ "type" : "string"
42534
+ },
42535
+ "name" : {
42536
+ "type" : "string"
42537
+ },
42538
+ "color" : {
42539
+ "nullable" : true,
42540
+ "type" : "string"
42541
+ },
42542
+ "personal" : {
42543
+ "description" : "L'espace personnel de l'appelant",
42544
+ "type" : "boolean"
42545
+ }
42546
+ },
42547
+ "required" : [ "color", "id", "key", "name", "personal" ],
42548
+ "type" : "object"
42549
+ },
42112
42550
  "AgentAtWork_project" : {
42113
42551
  "properties" : {
42114
42552
  "id" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.205",
3
+ "version": "1.0.206",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",