@breign/client 1.0.199 → 1.0.201

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 (37) hide show
  1. package/dist/apis/AuthApi.d.ts +18 -5
  2. package/dist/apis/AuthApi.js +31 -4
  3. package/dist/apis/ProjectsApi.d.ts +17 -4
  4. package/dist/apis/ProjectsApi.js +33 -4
  5. package/dist/apis/TicketsApi.d.ts +15 -1
  6. package/dist/apis/TicketsApi.js +34 -0
  7. package/dist/models/ApplicationTokenFormatUio.d.ts +26 -0
  8. package/dist/models/ApplicationTokenFormatUio.js +52 -0
  9. package/dist/models/ApplicationTokenRequestUio.d.ts +18 -3
  10. package/dist/models/ApplicationTokenRequestUio.js +10 -10
  11. package/dist/models/ApplicationTokenResponseUio.d.ts +26 -5
  12. package/dist/models/ApplicationTokenResponseUio.js +10 -7
  13. package/dist/models/ApplicationTokenRevocationRequestUio.d.ts +44 -0
  14. package/dist/models/ApplicationTokenRevocationRequestUio.js +56 -0
  15. package/dist/models/CreateProjectRequestUio.d.ts +6 -0
  16. package/dist/models/CreateProjectRequestUio.js +2 -0
  17. package/dist/models/MoveTicketsRequestUio.d.ts +38 -0
  18. package/dist/models/MoveTicketsRequestUio.js +54 -0
  19. package/dist/models/MoveTicketsResultUio.d.ts +40 -0
  20. package/dist/models/MoveTicketsResultUio.js +56 -0
  21. package/dist/models/MovedTicketUio.d.ts +44 -0
  22. package/dist/models/MovedTicketUio.js +58 -0
  23. package/dist/models/ProjectSummaryUio.d.ts +7 -1
  24. package/dist/models/ProjectSummaryUio.js +4 -0
  25. package/dist/models/ProjectUio.d.ts +7 -1
  26. package/dist/models/ProjectUio.js +4 -0
  27. package/dist/models/RemovedTicketMemberUio.d.ts +39 -0
  28. package/dist/models/RemovedTicketMemberUio.js +55 -0
  29. package/dist/models/TicketEventUio.d.ts +1 -1
  30. package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +6 -0
  31. package/dist/models/UpdateUserChatPreferencesRequestUio.js +2 -0
  32. package/dist/models/UserChatPreferencesUio.d.ts +6 -0
  33. package/dist/models/UserChatPreferencesUio.js +4 -0
  34. package/dist/models/index.d.ts +6 -0
  35. package/dist/models/index.js +6 -0
  36. package/dist/openapi.json +291 -28
  37. package/package.json +1 -1
@@ -29,6 +29,8 @@ function instanceOfUserChatPreferencesUio(value) {
29
29
  return false;
30
30
  if (!('railOpen' in value) || value['railOpen'] === undefined)
31
31
  return false;
32
+ if (!('dismissedHints' in value) || value['dismissedHints'] === undefined)
33
+ return false;
32
34
  if (!('agentConversations' in value) || value['agentConversations'] === undefined)
33
35
  return false;
34
36
  return true;
@@ -44,6 +46,7 @@ function UserChatPreferencesUioFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'pinnedAgentIds': json['pinnedAgentIds'],
45
47
  'pinnedProjectIds': json['pinnedProjectIds'],
46
48
  'railOpen': json['railOpen'],
49
+ 'dismissedHints': json['dismissedHints'],
47
50
  'agentConversations': (json['agentConversations'].map(UserAgentConversationUio_1.UserAgentConversationUioFromJSON)),
48
51
  };
49
52
  }
@@ -58,6 +61,7 @@ function UserChatPreferencesUioToJSONTyped(value, ignoreDiscriminator = false) {
58
61
  'pinnedAgentIds': value['pinnedAgentIds'],
59
62
  'pinnedProjectIds': value['pinnedProjectIds'],
60
63
  'railOpen': value['railOpen'],
64
+ 'dismissedHints': value['dismissedHints'],
61
65
  'agentConversations': (value['agentConversations'].map(UserAgentConversationUio_1.UserAgentConversationUioToJSON)),
62
66
  };
63
67
  }
@@ -179,8 +179,10 @@ export * from './ApplicationAuthorizationErrorUio';
179
179
  export * from './ApplicationAuthorizationRequestUio';
180
180
  export * from './ApplicationAuthorizationResponseUio';
181
181
  export * from './ApplicationTokenErrorUio';
182
+ export * from './ApplicationTokenFormatUio';
182
183
  export * from './ApplicationTokenRequestUio';
183
184
  export * from './ApplicationTokenResponseUio';
185
+ export * from './ApplicationTokenRevocationRequestUio';
184
186
  export * from './AttachmentCreateRequestUio';
185
187
  export * from './AttachmentCreateResponseUio';
186
188
  export * from './AttachmentDetailsResponseUio';
@@ -493,6 +495,9 @@ export * from './ModelDefinitionUio';
493
495
  export * from './ModelUio';
494
496
  export * from './ModelUsedUio';
495
497
  export * from './ModelUserAccessUio';
498
+ export * from './MoveTicketsRequestUio';
499
+ export * from './MoveTicketsResultUio';
500
+ export * from './MovedTicketUio';
496
501
  export * from './NodeAssociationPolicyUio';
497
502
  export * from './NodeGroupAgentUio';
498
503
  export * from './NodeGroupBulkIdsUio';
@@ -602,6 +607,7 @@ export * from './ProviderCreateRequestUio';
602
607
  export * from './ProviderTypeUio';
603
608
  export * from './ProviderUio';
604
609
  export * from './ProviderValiationRequestUio';
610
+ export * from './RemovedTicketMemberUio';
605
611
  export * from './RevealTokenRequestUio';
606
612
  export * from './RevealTokenResponseUio';
607
613
  export * from './RoleCreateRequestUio';
@@ -197,8 +197,10 @@ __exportStar(require("./ApplicationAuthorizationErrorUio"), exports);
197
197
  __exportStar(require("./ApplicationAuthorizationRequestUio"), exports);
198
198
  __exportStar(require("./ApplicationAuthorizationResponseUio"), exports);
199
199
  __exportStar(require("./ApplicationTokenErrorUio"), exports);
200
+ __exportStar(require("./ApplicationTokenFormatUio"), exports);
200
201
  __exportStar(require("./ApplicationTokenRequestUio"), exports);
201
202
  __exportStar(require("./ApplicationTokenResponseUio"), exports);
203
+ __exportStar(require("./ApplicationTokenRevocationRequestUio"), exports);
202
204
  __exportStar(require("./AttachmentCreateRequestUio"), exports);
203
205
  __exportStar(require("./AttachmentCreateResponseUio"), exports);
204
206
  __exportStar(require("./AttachmentDetailsResponseUio"), exports);
@@ -511,6 +513,9 @@ __exportStar(require("./ModelDefinitionUio"), exports);
511
513
  __exportStar(require("./ModelUio"), exports);
512
514
  __exportStar(require("./ModelUsedUio"), exports);
513
515
  __exportStar(require("./ModelUserAccessUio"), exports);
516
+ __exportStar(require("./MoveTicketsRequestUio"), exports);
517
+ __exportStar(require("./MoveTicketsResultUio"), exports);
518
+ __exportStar(require("./MovedTicketUio"), exports);
514
519
  __exportStar(require("./NodeAssociationPolicyUio"), exports);
515
520
  __exportStar(require("./NodeGroupAgentUio"), exports);
516
521
  __exportStar(require("./NodeGroupBulkIdsUio"), exports);
@@ -620,6 +625,7 @@ __exportStar(require("./ProviderCreateRequestUio"), exports);
620
625
  __exportStar(require("./ProviderTypeUio"), exports);
621
626
  __exportStar(require("./ProviderUio"), exports);
622
627
  __exportStar(require("./ProviderValiationRequestUio"), exports);
628
+ __exportStar(require("./RemovedTicketMemberUio"), exports);
623
629
  __exportStar(require("./RevealTokenRequestUio"), exports);
624
630
  __exportStar(require("./RevealTokenResponseUio"), exports);
625
631
  __exportStar(require("./RoleCreateRequestUio"), exports);
package/dist/openapi.json CHANGED
@@ -5219,7 +5219,7 @@
5219
5219
  },
5220
5220
  "/auth/token" : {
5221
5221
  "post" : {
5222
- "description" : "Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.\n",
5222
+ "description" : "Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.\n",
5223
5223
  "operationId" : "exchangeApplicationAuthorizationCode",
5224
5224
  "requestBody" : {
5225
5225
  "content" : {
@@ -5240,7 +5240,7 @@
5240
5240
  }
5241
5241
  }
5242
5242
  },
5243
- "description" : "API key of the user"
5243
+ "description" : "API key of the user, or access and refresh tokens"
5244
5244
  },
5245
5245
  "400" : {
5246
5246
  "content" : {
@@ -5254,7 +5254,41 @@
5254
5254
  }
5255
5255
  },
5256
5256
  "security" : [ ],
5257
- "summary" : "Exchange an application authorization code",
5257
+ "summary" : "Exchange an application authorization code, or refresh its tokens",
5258
+ "tags" : [ "auth" ]
5259
+ }
5260
+ },
5261
+ "/auth/revoke" : {
5262
+ "post" : {
5263
+ "description" : "Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).\n",
5264
+ "operationId" : "revokeApplicationToken",
5265
+ "requestBody" : {
5266
+ "content" : {
5267
+ "application/json" : {
5268
+ "schema" : {
5269
+ "$ref" : "#/components/schemas/ApplicationTokenRevocationRequest"
5270
+ }
5271
+ }
5272
+ },
5273
+ "required" : true
5274
+ },
5275
+ "responses" : {
5276
+ "200" : {
5277
+ "description" : "Token revoked, or unknown"
5278
+ },
5279
+ "400" : {
5280
+ "content" : {
5281
+ "application/json" : {
5282
+ "schema" : {
5283
+ "$ref" : "#/components/schemas/ApplicationTokenError"
5284
+ }
5285
+ }
5286
+ },
5287
+ "description" : "OAuth error (`invalid_request`)"
5288
+ }
5289
+ },
5290
+ "security" : [ ],
5291
+ "summary" : "Revoke an application refresh token",
5258
5292
  "tags" : [ "auth" ]
5259
5293
  }
5260
5294
  },
@@ -17981,7 +18015,7 @@
17981
18015
  },
17982
18016
  "/organizations/{organizationId}/projects" : {
17983
18017
  "get" : {
17984
- "description" : "Projets de l'organisation visibles par l'utilisateur courant (membre du projet, ou admin de l'organisation), avec leurs compteurs, leurs membres et les actions qui l'attendent.",
18018
+ "description" : "Projets de l'organisation visibles par l'utilisateur courant (membre du projet, ou admin de l'organisation), avec leurs compteurs, leurs membres et les actions qui l'attendent. Son espace personnel vient en tête, créé au besoin ; ceux des autres n'apparaissent jamais, même pour un admin.",
17985
18019
  "operationId" : "listProjects",
17986
18020
  "parameters" : [ {
17987
18021
  "description" : "ID of the organization",
@@ -18025,7 +18059,7 @@
18025
18059
  "tags" : [ "projects" ]
18026
18060
  },
18027
18061
  "post" : {
18028
- "description" : "Crée un projet ; le créateur en devient owner. La clé doit être unique dans l'organisation.",
18062
+ "description" : "Crée un projet ; le créateur en devient owner. La clé doit être unique dans l'organisation ; PERSO est réservée (400 PROJECT_KEY_RESERVED).",
18029
18063
  "operationId" : "createProject",
18030
18064
  "parameters" : [ {
18031
18065
  "description" : "ID of the organization",
@@ -18074,6 +18108,41 @@
18074
18108
  "tags" : [ "projects" ]
18075
18109
  }
18076
18110
  },
18111
+ "/organizations/{organizationId}/projects/personal" : {
18112
+ "get" : {
18113
+ "description" : "Espace de travail personnel de l'utilisateur courant dans l'organisation (clé PERSO), créé à la première demande.",
18114
+ "operationId" : "getPersonalProject",
18115
+ "parameters" : [ {
18116
+ "description" : "ID of the organization",
18117
+ "in" : "path",
18118
+ "name" : "organizationId",
18119
+ "required" : true,
18120
+ "schema" : {
18121
+ "type" : "string"
18122
+ }
18123
+ } ],
18124
+ "responses" : {
18125
+ "200" : {
18126
+ "content" : {
18127
+ "application/json" : {
18128
+ "schema" : {
18129
+ "$ref" : "#/components/schemas/Project"
18130
+ }
18131
+ }
18132
+ },
18133
+ "description" : "OK"
18134
+ },
18135
+ "401" : {
18136
+ "description" : "Unauthenticated"
18137
+ },
18138
+ "403" : {
18139
+ "description" : "Forbidden — the caller is not part of the organization"
18140
+ }
18141
+ },
18142
+ "summary" : "Get the caller's personal workspace",
18143
+ "tags" : [ "projects" ]
18144
+ }
18145
+ },
18077
18146
  "/projects/{projectId}" : {
18078
18147
  "get" : {
18079
18148
  "description" : "Projet et ses réglages.",
@@ -18157,6 +18226,9 @@
18157
18226
  },
18158
18227
  "404" : {
18159
18228
  "description" : "Not found"
18229
+ },
18230
+ "409" : {
18231
+ "description" : "Conflict — PERSONAL_PROJECT"
18160
18232
  }
18161
18233
  },
18162
18234
  "summary" : "Update a project",
@@ -18291,6 +18363,9 @@
18291
18363
  },
18292
18364
  "404" : {
18293
18365
  "description" : "Not found"
18366
+ },
18367
+ "409" : {
18368
+ "description" : "Conflict — PERSONAL_PROJECT"
18294
18369
  }
18295
18370
  },
18296
18371
  "summary" : "Replace the members of a project",
@@ -18534,6 +18609,61 @@
18534
18609
  "tags" : [ "tickets" ]
18535
18610
  }
18536
18611
  },
18612
+ "/projects/{projectId}/tickets/move" : {
18613
+ "post" : {
18614
+ "description" : "Emporte des tickets de l'espace personnel de l'appelant dans cet espace partagé, dont il est membre. Chaque ticket prend une clé de l'espace (PERSO-16 devient REF-1) et garde son historique ; l'ancienne clé ne mène plus nulle part. Un parent ou un enfant resté en arrière perd le lien ; les assignés et relecteurs qui ne sont pas membres de l'espace sont retirés.",
18615
+ "operationId" : "moveTickets",
18616
+ "parameters" : [ {
18617
+ "description" : "ID of the project",
18618
+ "in" : "path",
18619
+ "name" : "projectId",
18620
+ "required" : true,
18621
+ "schema" : {
18622
+ "format" : "uuid",
18623
+ "type" : "string"
18624
+ }
18625
+ } ],
18626
+ "requestBody" : {
18627
+ "content" : {
18628
+ "application/json" : {
18629
+ "schema" : {
18630
+ "$ref" : "#/components/schemas/MoveTicketsRequest"
18631
+ }
18632
+ }
18633
+ },
18634
+ "required" : true
18635
+ },
18636
+ "responses" : {
18637
+ "200" : {
18638
+ "content" : {
18639
+ "application/json" : {
18640
+ "schema" : {
18641
+ "$ref" : "#/components/schemas/MoveTicketsResult"
18642
+ }
18643
+ }
18644
+ },
18645
+ "description" : "OK"
18646
+ },
18647
+ "400" : {
18648
+ "description" : "Invalid request — MOVE_ONLY_FROM_PERSONAL_PROJECT"
18649
+ },
18650
+ "401" : {
18651
+ "description" : "Unauthenticated"
18652
+ },
18653
+ "403" : {
18654
+ "description" : "Forbidden — the caller is not a member of one of the projects"
18655
+ },
18656
+ "404" : {
18657
+ "description" : "Not found"
18658
+ },
18659
+ "409" : {
18660
+ "description" : "Conflict — the project is archived"
18661
+ }
18662
+ },
18663
+ "summary" : "Move tickets into a project",
18664
+ "tags" : [ "tickets" ]
18665
+ }
18666
+ },
18537
18667
  "/projects/{projectId}/threads" : {
18538
18668
  "get" : {
18539
18669
  "description" : "Vue « Fils » : tous les tickets ouverts et les terminés les plus récents, chacun avec les sessions de travail de ses agents. L'arbre des sous-tickets, les filtres et la recherche se font côté client.",
@@ -28214,9 +28344,10 @@
28214
28344
  "type" : "object"
28215
28345
  },
28216
28346
  "ApplicationTokenRequest" : {
28347
+ "description" : "`authorization_code` exchanges the code (with `code`, `code_verifier` and `redirect_uri`); `refresh_token` renews the tokens of a session opened with `token_format=jwt`.\n",
28217
28348
  "properties" : {
28218
28349
  "grant_type" : {
28219
- "enum" : [ "authorization_code" ],
28350
+ "enum" : [ "authorization_code", "refresh_token" ],
28220
28351
  "type" : "string"
28221
28352
  },
28222
28353
  "code" : {
@@ -28228,35 +28359,78 @@
28228
28359
  "redirect_uri" : {
28229
28360
  "type" : "string"
28230
28361
  },
28362
+ "refresh_token" : {
28363
+ "description" : "Required with `grant_type=refresh_token`.",
28364
+ "type" : "string"
28365
+ },
28231
28366
  "client_id" : {
28232
28367
  "type" : "string"
28368
+ },
28369
+ "token_format" : {
28370
+ "$ref" : "#/components/schemas/ApplicationTokenFormat"
28233
28371
  }
28234
28372
  },
28235
- "required" : [ "client_id", "code", "code_verifier", "grant_type", "redirect_uri" ],
28373
+ "required" : [ "client_id", "grant_type" ],
28236
28374
  "type" : "object"
28237
28375
  },
28376
+ "ApplicationTokenFormat" : {
28377
+ "default" : "api_key",
28378
+ "description" : "`api_key` (default) creates an API key of the user. `jwt` returns a 1 h access token and a rotating 30-day refresh token instead, without creating an API key.\n",
28379
+ "enum" : [ "api_key", "jwt" ],
28380
+ "type" : "string"
28381
+ },
28238
28382
  "ApplicationTokenResponse" : {
28383
+ "description" : "An API key (`token_type: api_key`), or with `token_format=jwt` an access token and a refresh token (`token_type: Bearer`). Each refresh returns a new refresh token; the previous one stops working, and presenting it again closes the session.\n",
28239
28384
  "properties" : {
28240
28385
  "access_token" : {
28241
- "description" : "API key, to send in the `x-api-key` header.",
28386
+ "description" : "API key, to send in the `x-api-key` header; or access token, to send as `Authorization: Bearer`.\n",
28242
28387
  "type" : "string"
28243
28388
  },
28244
28389
  "token_type" : {
28245
- "enum" : [ "api_key" ],
28390
+ "enum" : [ "api_key", "Bearer" ],
28246
28391
  "type" : "string"
28247
28392
  },
28248
28393
  "key_id" : {
28394
+ "description" : "Only for an API key.",
28249
28395
  "type" : "string"
28250
28396
  },
28251
28397
  "key_name" : {
28398
+ "description" : "Only for an API key.",
28399
+ "type" : "string"
28400
+ },
28401
+ "expires_in" : {
28402
+ "description" : "Lifetime of the access token in seconds. Only with `token_format=jwt`.",
28403
+ "type" : "integer"
28404
+ },
28405
+ "refresh_token" : {
28406
+ "description" : "Only with `token_format=jwt`.",
28252
28407
  "type" : "string"
28253
28408
  },
28254
28409
  "email" : {
28255
28410
  "nullable" : true,
28256
28411
  "type" : "string"
28412
+ },
28413
+ "user_id" : {
28414
+ "type" : "string"
28415
+ }
28416
+ },
28417
+ "required" : [ "access_token", "token_type" ],
28418
+ "type" : "object"
28419
+ },
28420
+ "ApplicationTokenRevocationRequest" : {
28421
+ "properties" : {
28422
+ "token" : {
28423
+ "description" : "The refresh token to revoke.",
28424
+ "type" : "string"
28425
+ },
28426
+ "client_id" : {
28427
+ "type" : "string"
28428
+ },
28429
+ "token_type_hint" : {
28430
+ "type" : "string"
28257
28431
  }
28258
28432
  },
28259
- "required" : [ "access_token", "key_id", "key_name", "token_type" ],
28433
+ "required" : [ "client_id", "token" ],
28260
28434
  "type" : "object"
28261
28435
  },
28262
28436
  "OAuthProviderInfo" : {
@@ -28677,6 +28851,13 @@
28677
28851
  "railOpen" : {
28678
28852
  "type" : "boolean"
28679
28853
  },
28854
+ "dismissedHints" : {
28855
+ "description" : "Aides et appels à l'action refermés par l'utilisateur (personal-workspace-cta)",
28856
+ "items" : {
28857
+ "type" : "string"
28858
+ },
28859
+ "type" : "array"
28860
+ },
28680
28861
  "agentConversations" : {
28681
28862
  "description" : "Conversation en cours avec chaque agent de l'organisation",
28682
28863
  "items" : {
@@ -28685,7 +28866,7 @@
28685
28866
  "type" : "array"
28686
28867
  }
28687
28868
  },
28688
- "required" : [ "agentConversations", "pinnedAgentIds", "pinnedProjectIds", "railOpen" ],
28869
+ "required" : [ "agentConversations", "dismissedHints", "pinnedAgentIds", "pinnedProjectIds", "railOpen" ],
28689
28870
  "type" : "object"
28690
28871
  },
28691
28872
  "UserAgentConversation" : {
@@ -28721,6 +28902,12 @@
28721
28902
  },
28722
28903
  "railOpen" : {
28723
28904
  "type" : "boolean"
28905
+ },
28906
+ "dismissedHints" : {
28907
+ "items" : {
28908
+ "type" : "string"
28909
+ },
28910
+ "type" : "array"
28724
28911
  }
28725
28912
  },
28726
28913
  "type" : "object"
@@ -34101,7 +34288,7 @@
34101
34288
  "type" : "string"
34102
34289
  },
34103
34290
  "key" : {
34104
- "description" : "Préfixe des identifiants de tickets (BRN donne BRN-142), unique dans l'organisation",
34291
+ "description" : "Préfixe des identifiants de tickets (BRN donne BRN-142), unique dans l'organisation sauf PERSO, la clé de tous les espaces personnels",
34105
34292
  "type" : "string"
34106
34293
  },
34107
34294
  "name" : {
@@ -34126,6 +34313,10 @@
34126
34313
  "nullable" : true,
34127
34314
  "type" : "string"
34128
34315
  },
34316
+ "personal" : {
34317
+ "description" : "Espace de travail personnel de l'appelant (clé PERSO), visible par lui seul ; ni partageable, ni renommable, ni archivable. Ses membres sont l'appelant et les agents qui lui sont accessibles.",
34318
+ "type" : "boolean"
34319
+ },
34129
34320
  "createdBy" : {
34130
34321
  "$ref" : "#/components/schemas/ActorRef"
34131
34322
  },
@@ -34136,7 +34327,7 @@
34136
34327
  "type" : "string"
34137
34328
  }
34138
34329
  },
34139
- "required" : [ "archivedAt", "color", "createdAt", "createdBy", "description", "dueDate", "id", "key", "name", "organizationId", "settings", "updatedAt" ],
34330
+ "required" : [ "archivedAt", "color", "createdAt", "createdBy", "description", "dueDate", "id", "key", "name", "organizationId", "personal", "settings", "updatedAt" ],
34140
34331
  "type" : "object"
34141
34332
  },
34142
34333
  "ProjectSettings" : {
@@ -34299,6 +34490,14 @@
34299
34490
  "$ref" : "#/components/schemas/ProjectMember"
34300
34491
  },
34301
34492
  "type" : "array"
34493
+ },
34494
+ "moveTicketIds" : {
34495
+ "description" : "Tickets de l'espace personnel de l'appelant à emporter dans le nouvel espace ; leurs agents assignés ou relecteurs en deviennent membres",
34496
+ "items" : {
34497
+ "type" : "string"
34498
+ },
34499
+ "maxItems" : 100,
34500
+ "type" : "array"
34302
34501
  }
34303
34502
  },
34304
34503
  "required" : [ "key", "name" ],
@@ -34691,6 +34890,84 @@
34691
34890
  "required" : [ "id", "type" ],
34692
34891
  "type" : "object"
34693
34892
  },
34893
+ "MoveTicketsRequest" : {
34894
+ "properties" : {
34895
+ "fromProjectId" : {
34896
+ "description" : "L'espace personnel de l'appelant, seul point de départ possible",
34897
+ "type" : "string"
34898
+ },
34899
+ "ticketIds" : {
34900
+ "items" : {
34901
+ "type" : "string"
34902
+ },
34903
+ "maxItems" : 100,
34904
+ "minItems" : 1,
34905
+ "type" : "array"
34906
+ }
34907
+ },
34908
+ "required" : [ "fromProjectId", "ticketIds" ],
34909
+ "type" : "object"
34910
+ },
34911
+ "MoveTicketsResult" : {
34912
+ "properties" : {
34913
+ "moved" : {
34914
+ "items" : {
34915
+ "$ref" : "#/components/schemas/MovedTicket"
34916
+ },
34917
+ "type" : "array"
34918
+ },
34919
+ "removed" : {
34920
+ "description" : "Assignés et relecteurs retirés des tickets, faute d'être membres de l'espace d'arrivée",
34921
+ "items" : {
34922
+ "$ref" : "#/components/schemas/RemovedTicketMember"
34923
+ },
34924
+ "type" : "array"
34925
+ }
34926
+ },
34927
+ "required" : [ "moved", "removed" ],
34928
+ "type" : "object"
34929
+ },
34930
+ "MovedTicket" : {
34931
+ "properties" : {
34932
+ "ticketId" : {
34933
+ "type" : "string"
34934
+ },
34935
+ "fromKey" : {
34936
+ "type" : "string"
34937
+ },
34938
+ "toKey" : {
34939
+ "type" : "string"
34940
+ }
34941
+ },
34942
+ "required" : [ "fromKey", "ticketId", "toKey" ],
34943
+ "type" : "object"
34944
+ },
34945
+ "RemovedTicketMember" : {
34946
+ "properties" : {
34947
+ "ticketId" : {
34948
+ "type" : "string"
34949
+ },
34950
+ "member" : {
34951
+ "$ref" : "#/components/schemas/MemberRef"
34952
+ }
34953
+ },
34954
+ "required" : [ "member", "ticketId" ],
34955
+ "type" : "object"
34956
+ },
34957
+ "MemberRef" : {
34958
+ "description" : "Un humain ou un agent.",
34959
+ "properties" : {
34960
+ "type" : {
34961
+ "$ref" : "#/components/schemas/MemberType"
34962
+ },
34963
+ "id" : {
34964
+ "format" : "uuid",
34965
+ "type" : "string"
34966
+ }
34967
+ },
34968
+ "required" : [ "id", "type" ],
34969
+ "type" : "object"
34970
+ },
34694
34971
  "TicketThreads" : {
34695
34972
  "properties" : {
34696
34973
  "open" : {
@@ -34993,7 +35270,7 @@
34993
35270
  },
34994
35271
  "data" : {
34995
35272
  "additionalProperties" : true,
34996
- "description" : "Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; pour approval, { approval: TicketApproval } ; mentions dans { mentions: MemberRef[] }.",
35273
+ "description" : "Détails selon le type : pour event, { action, from?, to?, member? } (action moved : from et to valent { projectId, key }) ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; pour approval, { approval: TicketApproval } ; mentions dans { mentions: MemberRef[] }.",
34997
35274
  "type" : "object"
34998
35275
  },
34999
35276
  "artifactIds" : {
@@ -38867,20 +39144,6 @@
38867
39144
  "enum" : [ "low", "medium", "high" ],
38868
39145
  "type" : "string"
38869
39146
  },
38870
- "MemberRef" : {
38871
- "description" : "Un humain ou un agent.",
38872
- "properties" : {
38873
- "type" : {
38874
- "$ref" : "#/components/schemas/MemberType"
38875
- },
38876
- "id" : {
38877
- "format" : "uuid",
38878
- "type" : "string"
38879
- }
38880
- },
38881
- "required" : [ "id", "type" ],
38882
- "type" : "object"
38883
- },
38884
39147
  "TicketAgentRunStatus" : {
38885
39148
  "description" : "Où en est le travail d'un agent sur un ticket : idle (rien en cours), queued (réveil en attente), running (il travaille), waiting_human (il attend la réponse à une question), failed (la dernière exécution a échoué).",
38886
39149
  "enum" : [ "idle", "queued", "running", "waiting_human", "failed" ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.199",
3
+ "version": "1.0.201",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",