@breign/client 1.0.188 → 1.0.190

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.
package/dist/openapi.json CHANGED
@@ -18238,6 +18238,14 @@
18238
18238
  "schema" : {
18239
18239
  "type" : "boolean"
18240
18240
  }
18241
+ }, {
18242
+ "description" : "Seulement les sous-tickets directs de ce ticket ; none pour les tickets sans parent",
18243
+ "in" : "query",
18244
+ "name" : "parentTicketId",
18245
+ "required" : false,
18246
+ "schema" : {
18247
+ "type" : "string"
18248
+ }
18241
18249
  }, {
18242
18250
  "description" : "Recherche dans le titre et la clé",
18243
18251
  "in" : "query",
@@ -18370,6 +18378,55 @@
18370
18378
  "tags" : [ "tickets" ]
18371
18379
  }
18372
18380
  },
18381
+ "/projects/{projectId}/threads" : {
18382
+ "get" : {
18383
+ "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.",
18384
+ "operationId" : "getProjectThreads",
18385
+ "parameters" : [ {
18386
+ "description" : "ID of the project",
18387
+ "in" : "path",
18388
+ "name" : "projectId",
18389
+ "required" : true,
18390
+ "schema" : {
18391
+ "format" : "uuid",
18392
+ "type" : "string"
18393
+ }
18394
+ }, {
18395
+ "description" : "Nombre de tickets terminés renvoyés (10 par défaut)",
18396
+ "in" : "query",
18397
+ "name" : "doneLimit",
18398
+ "required" : false,
18399
+ "schema" : {
18400
+ "maximum" : 50,
18401
+ "minimum" : 0,
18402
+ "type" : "integer"
18403
+ }
18404
+ } ],
18405
+ "responses" : {
18406
+ "200" : {
18407
+ "content" : {
18408
+ "application/json" : {
18409
+ "schema" : {
18410
+ "$ref" : "#/components/schemas/TicketThreads"
18411
+ }
18412
+ }
18413
+ },
18414
+ "description" : "OK"
18415
+ },
18416
+ "401" : {
18417
+ "description" : "Unauthenticated"
18418
+ },
18419
+ "403" : {
18420
+ "description" : "Forbidden — the caller is not part of the organization or not a member of the project"
18421
+ },
18422
+ "404" : {
18423
+ "description" : "Not found"
18424
+ }
18425
+ },
18426
+ "summary" : "Get the threads of a project",
18427
+ "tags" : [ "tickets" ]
18428
+ }
18429
+ },
18373
18430
  "/organizations/{organizationId}/tickets/{ticketKey}" : {
18374
18431
  "get" : {
18375
18432
  "description" : "Ticket désigné par sa clé (BRN-142) dans une organisation.",
@@ -18780,6 +18837,69 @@
18780
18837
  "tags" : [ "tickets" ]
18781
18838
  }
18782
18839
  },
18840
+ "/tickets/{ticketId}/agents/{agentId}/session/messages" : {
18841
+ "post" : {
18842
+ "description" : "Le message rejoint la session de travail de l'agent au prochain réveil, qui est mis en file (après le tour en cours ou la réponse à une question en attente). Le fil du ticket garde la trace de l'envoi, sans le texte.",
18843
+ "operationId" : "writeTicketAgentSessionMessage",
18844
+ "parameters" : [ {
18845
+ "description" : "ID of the ticket",
18846
+ "in" : "path",
18847
+ "name" : "ticketId",
18848
+ "required" : true,
18849
+ "schema" : {
18850
+ "format" : "uuid",
18851
+ "type" : "string"
18852
+ }
18853
+ }, {
18854
+ "description" : "Identifiant de l'agent",
18855
+ "in" : "path",
18856
+ "name" : "agentId",
18857
+ "required" : true,
18858
+ "schema" : {
18859
+ "type" : "string"
18860
+ }
18861
+ } ],
18862
+ "requestBody" : {
18863
+ "content" : {
18864
+ "application/json" : {
18865
+ "schema" : {
18866
+ "$ref" : "#/components/schemas/TicketSessionMessageRequest"
18867
+ }
18868
+ }
18869
+ },
18870
+ "required" : true
18871
+ },
18872
+ "responses" : {
18873
+ "201" : {
18874
+ "content" : {
18875
+ "application/json" : {
18876
+ "schema" : {
18877
+ "$ref" : "#/components/schemas/TicketEvent"
18878
+ }
18879
+ }
18880
+ },
18881
+ "description" : "Message mis en file ; l'événement de trace du ticket"
18882
+ },
18883
+ "400" : {
18884
+ "description" : "Invalid body"
18885
+ },
18886
+ "401" : {
18887
+ "description" : "Unauthenticated"
18888
+ },
18889
+ "403" : {
18890
+ "description" : "Forbidden — the caller is not part of the organization or not a member of the project"
18891
+ },
18892
+ "404" : {
18893
+ "description" : "Not found"
18894
+ },
18895
+ "409" : {
18896
+ "description" : "Agent work is disabled for this project"
18897
+ }
18898
+ },
18899
+ "summary" : "Write to an agent in its work session on a ticket",
18900
+ "tags" : [ "tickets" ]
18901
+ }
18902
+ },
18783
18903
  "/tickets/{ticketId}/usage" : {
18784
18904
  "get" : {
18785
18905
  "description" : "Tokens consommés par les sessions de travail des agents sur le ticket et par les appels qu'elles ont faits à d'autres agents : au total, par modèle, et par agent puis par modèle.",
@@ -32887,6 +33007,26 @@
32887
33007
  "nullable" : true,
32888
33008
  "type" : "string"
32889
33009
  },
33010
+ "parentTicketId" : {
33011
+ "description" : "Ticket parent, dans le même projet ; le ticket est alors un sous-ticket",
33012
+ "format" : "uuid",
33013
+ "nullable" : true,
33014
+ "type" : "string"
33015
+ },
33016
+ "parent" : {
33017
+ "allOf" : [ {
33018
+ "$ref" : "#/components/schemas/TicketParentRef"
33019
+ } ],
33020
+ "nullable" : true
33021
+ },
33022
+ "childCount" : {
33023
+ "description" : "Nombre de sous-tickets directs",
33024
+ "type" : "integer"
33025
+ },
33026
+ "openChildCount" : {
33027
+ "description" : "Nombre de sous-tickets directs pas encore terminés",
33028
+ "type" : "integer"
33029
+ },
32890
33030
  "position" : {
32891
33031
  "description" : "Ordre dans la colonne, croissant",
32892
33032
  "type" : "number"
@@ -32918,6 +33058,10 @@
32918
33058
  "nullable" : true,
32919
33059
  "type" : "string"
32920
33060
  },
33061
+ "lastActivityAt" : {
33062
+ "description" : "Dernier commentaire, changement de statut ou d'assignation",
33063
+ "type" : "string"
33064
+ },
32921
33065
  "createdAt" : {
32922
33066
  "type" : "string"
32923
33067
  },
@@ -32925,7 +33069,27 @@
32925
33069
  "type" : "string"
32926
33070
  }
32927
33071
  },
32928
- "required" : [ "artifactCount", "assignees", "commentCount", "createdAt", "createdBy", "description", "doneAt", "dueDate", "id", "key", "labels", "number", "organizationId", "pendingHumanActions", "position", "priority", "projectId", "reviewer", "sourceConversationId", "status", "title", "updatedAt" ],
33072
+ "required" : [ "artifactCount", "assignees", "childCount", "commentCount", "createdAt", "createdBy", "description", "doneAt", "dueDate", "id", "key", "labels", "lastActivityAt", "number", "openChildCount", "organizationId", "parent", "parentTicketId", "pendingHumanActions", "position", "priority", "projectId", "reviewer", "sourceConversationId", "status", "title", "updatedAt" ],
33073
+ "type" : "object"
33074
+ },
33075
+ "TicketParentRef" : {
33076
+ "description" : "Le ticket parent d'un sous-ticket, de quoi l'afficher sans le recharger.",
33077
+ "properties" : {
33078
+ "id" : {
33079
+ "format" : "uuid",
33080
+ "type" : "string"
33081
+ },
33082
+ "key" : {
33083
+ "type" : "string"
33084
+ },
33085
+ "title" : {
33086
+ "type" : "string"
33087
+ },
33088
+ "status" : {
33089
+ "$ref" : "#/components/schemas/TicketStatus"
33090
+ }
33091
+ },
33092
+ "required" : [ "id", "key", "status", "title" ],
32929
33093
  "type" : "object"
32930
33094
  },
32931
33095
  "TicketAssignee" : {
@@ -33007,6 +33171,11 @@
33007
33171
  },
33008
33172
  "startMode" : {
33009
33173
  "$ref" : "#/components/schemas/TicketStartMode"
33174
+ },
33175
+ "parentTicketId" : {
33176
+ "description" : "Ticket parent, dans le même projet",
33177
+ "format" : "uuid",
33178
+ "type" : "string"
33010
33179
  }
33011
33180
  },
33012
33181
  "required" : [ "title" ],
@@ -33025,6 +33194,82 @@
33025
33194
  "required" : [ "id", "type" ],
33026
33195
  "type" : "object"
33027
33196
  },
33197
+ "TicketThreads" : {
33198
+ "properties" : {
33199
+ "open" : {
33200
+ "description" : "Tous les tickets ouverts du projet",
33201
+ "items" : {
33202
+ "$ref" : "#/components/schemas/TicketThread"
33203
+ },
33204
+ "type" : "array"
33205
+ },
33206
+ "done" : {
33207
+ "description" : "Les tickets terminés les plus récents",
33208
+ "items" : {
33209
+ "$ref" : "#/components/schemas/TicketThread"
33210
+ },
33211
+ "type" : "array"
33212
+ },
33213
+ "doneTotal" : {
33214
+ "description" : "Nombre total de tickets terminés",
33215
+ "type" : "integer"
33216
+ }
33217
+ },
33218
+ "required" : [ "done", "doneTotal", "open" ],
33219
+ "type" : "object"
33220
+ },
33221
+ "TicketThread" : {
33222
+ "allOf" : [ {
33223
+ "$ref" : "#/components/schemas/Ticket"
33224
+ }, {
33225
+ "properties" : {
33226
+ "sessions" : {
33227
+ "items" : {
33228
+ "$ref" : "#/components/schemas/TicketThreadSession"
33229
+ },
33230
+ "type" : "array"
33231
+ }
33232
+ },
33233
+ "required" : [ "sessions" ],
33234
+ "type" : "object"
33235
+ } ]
33236
+ },
33237
+ "TicketThreadSession" : {
33238
+ "description" : "Une session de travail d'agent, sous-fil d'un ticket dans la vue « Fils ». Le statut vient des réveils et des questions en attente, sans relire la conversation.",
33239
+ "properties" : {
33240
+ "agentId" : {
33241
+ "type" : "string"
33242
+ },
33243
+ "status" : {
33244
+ "$ref" : "#/components/schemas/TicketAgentRunStatus"
33245
+ },
33246
+ "conversationId" : {
33247
+ "description" : "null tant que l'agent n'a pas commencé (premier réveil en attente)",
33248
+ "format" : "uuid",
33249
+ "nullable" : true,
33250
+ "type" : "string"
33251
+ },
33252
+ "planDone" : {
33253
+ "description" : "Étapes terminées du plan publié",
33254
+ "type" : "integer"
33255
+ },
33256
+ "planTotal" : {
33257
+ "description" : "Étapes du plan publié ; 0 sans plan",
33258
+ "type" : "integer"
33259
+ },
33260
+ "currentStep" : {
33261
+ "description" : "Étape en cours du plan",
33262
+ "nullable" : true,
33263
+ "type" : "string"
33264
+ },
33265
+ "lastRunAt" : {
33266
+ "nullable" : true,
33267
+ "type" : "string"
33268
+ }
33269
+ },
33270
+ "required" : [ "agentId", "conversationId", "currentStep", "lastRunAt", "planDone", "planTotal", "status" ],
33271
+ "type" : "object"
33272
+ },
33028
33273
  "UpdateTicketRequest" : {
33029
33274
  "description" : "Mise à jour partielle — une propriété absente reste inchangée. Le projet ne change pas.",
33030
33275
  "properties" : {
@@ -33059,6 +33304,12 @@
33059
33304
  },
33060
33305
  "position" : {
33061
33306
  "type" : "number"
33307
+ },
33308
+ "parentTicketId" : {
33309
+ "description" : "Ticket parent, dans le même projet ; null détache le ticket de son parent",
33310
+ "format" : "uuid",
33311
+ "nullable" : true,
33312
+ "type" : "string"
33062
33313
  }
33063
33314
  },
33064
33315
  "type" : "object"
@@ -33186,6 +33437,56 @@
33186
33437
  "required" : [ "status", "title" ],
33187
33438
  "type" : "object"
33188
33439
  },
33440
+ "TicketSessionMessageRequest" : {
33441
+ "properties" : {
33442
+ "body" : {
33443
+ "maxLength" : 20000,
33444
+ "minLength" : 1,
33445
+ "type" : "string"
33446
+ }
33447
+ },
33448
+ "required" : [ "body" ],
33449
+ "type" : "object"
33450
+ },
33451
+ "TicketEvent" : {
33452
+ "properties" : {
33453
+ "id" : {
33454
+ "format" : "uuid",
33455
+ "type" : "string"
33456
+ },
33457
+ "ticketId" : {
33458
+ "format" : "uuid",
33459
+ "type" : "string"
33460
+ },
33461
+ "author" : {
33462
+ "$ref" : "#/components/schemas/ActorRef"
33463
+ },
33464
+ "kind" : {
33465
+ "$ref" : "#/components/schemas/TicketEventKind"
33466
+ },
33467
+ "body" : {
33468
+ "nullable" : true,
33469
+ "type" : "string"
33470
+ },
33471
+ "data" : {
33472
+ "additionalProperties" : true,
33473
+ "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[] }.",
33474
+ "type" : "object"
33475
+ },
33476
+ "artifactIds" : {
33477
+ "items" : {
33478
+ "format" : "uuid",
33479
+ "type" : "string"
33480
+ },
33481
+ "type" : "array"
33482
+ },
33483
+ "createdAt" : {
33484
+ "type" : "string"
33485
+ }
33486
+ },
33487
+ "required" : [ "artifactIds", "author", "body", "createdAt", "data", "id", "kind", "ticketId" ],
33488
+ "type" : "object"
33489
+ },
33189
33490
  "TicketUsage" : {
33190
33491
  "description" : "Consommation du ticket : sessions de travail des agents et conversations ouvertes par leurs appels à d'autres agents. Modèles et agents triés du plus consommateur au moins consommateur.",
33191
33492
  "properties" : {
@@ -33277,45 +33578,6 @@
33277
33578
  "required" : [ "agentId", "inputTokens", "models", "outputTokens", "reasoningTokens", "totalTokens" ],
33278
33579
  "type" : "object"
33279
33580
  },
33280
- "TicketEvent" : {
33281
- "properties" : {
33282
- "id" : {
33283
- "format" : "uuid",
33284
- "type" : "string"
33285
- },
33286
- "ticketId" : {
33287
- "format" : "uuid",
33288
- "type" : "string"
33289
- },
33290
- "author" : {
33291
- "$ref" : "#/components/schemas/ActorRef"
33292
- },
33293
- "kind" : {
33294
- "$ref" : "#/components/schemas/TicketEventKind"
33295
- },
33296
- "body" : {
33297
- "nullable" : true,
33298
- "type" : "string"
33299
- },
33300
- "data" : {
33301
- "additionalProperties" : true,
33302
- "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[] }.",
33303
- "type" : "object"
33304
- },
33305
- "artifactIds" : {
33306
- "items" : {
33307
- "format" : "uuid",
33308
- "type" : "string"
33309
- },
33310
- "type" : "array"
33311
- },
33312
- "createdAt" : {
33313
- "type" : "string"
33314
- }
33315
- },
33316
- "required" : [ "artifactIds", "author", "body", "createdAt", "data", "id", "kind", "ticketId" ],
33317
- "type" : "object"
33318
- },
33319
33581
  "CreateTicketEventRequest" : {
33320
33582
  "description" : "Un commentaire humain ; les @mentions sont détectées dans le texte.",
33321
33583
  "properties" : {
@@ -34910,6 +35172,12 @@
34910
35172
  "type" : "string"
34911
35173
  },
34912
35174
  "type" : "array"
35175
+ },
35176
+ "parentTicketId" : {
35177
+ "description" : "Ticket parent du futur ticket",
35178
+ "format" : "uuid",
35179
+ "nullable" : true,
35180
+ "type" : "string"
34913
35181
  }
34914
35182
  },
34915
35183
  "required" : [ "assignees", "description", "priority", "reviewer", "startMode", "title", "workspacePaths" ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.188",
3
+ "version": "1.0.190",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",