@breign/client 1.0.209 → 1.0.211

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 (31) hide show
  1. package/dist/apis/OrganizationsApi.d.ts +56 -1
  2. package/dist/apis/OrganizationsApi.js +136 -0
  3. package/dist/models/AgentMetricsOverviewUio.d.ts +7 -0
  4. package/dist/models/AgentMetricsOverviewUio.js +3 -0
  5. package/dist/models/AgentTokenCostByAppInnerUio.d.ts +40 -0
  6. package/dist/models/AgentTokenCostByAppInnerUio.js +54 -0
  7. package/dist/models/AgentTokenCostByModelInnerUio.d.ts +46 -0
  8. package/dist/models/AgentTokenCostByModelInnerUio.js +58 -0
  9. package/dist/models/AgentTokenCostUio.d.ts +54 -0
  10. package/dist/models/AgentTokenCostUio.js +64 -0
  11. package/dist/models/AiGatewayUsageCostUio.d.ts +1 -1
  12. package/dist/models/EditOrganizationMemoryFileContent409ResponseUio.d.ts +44 -0
  13. package/dist/models/EditOrganizationMemoryFileContent409ResponseUio.js +58 -0
  14. package/dist/models/MemoryFileContentUio.d.ts +62 -0
  15. package/dist/models/MemoryFileContentUio.js +70 -0
  16. package/dist/models/MemoryFileEntryUio.d.ts +56 -0
  17. package/dist/models/MemoryFileEntryUio.js +66 -0
  18. package/dist/models/MemoryFileWriteRequestUio.d.ts +50 -0
  19. package/dist/models/MemoryFileWriteRequestUio.js +60 -0
  20. package/dist/models/ModelConsumptionItemUio.d.ts +14 -0
  21. package/dist/models/ModelConsumptionItemUio.js +8 -0
  22. package/dist/models/ModelConsumptionSliceUio.d.ts +14 -0
  23. package/dist/models/ModelConsumptionSliceUio.js +8 -0
  24. package/dist/models/OrganizationModelConsumptionTotalUio.d.ts +14 -0
  25. package/dist/models/OrganizationModelConsumptionTotalUio.js +8 -0
  26. package/dist/models/OrganizationModelConsumptionUio.d.ts +7 -0
  27. package/dist/models/OrganizationModelConsumptionUio.js +5 -0
  28. package/dist/models/index.d.ts +7 -0
  29. package/dist/models/index.js +7 -0
  30. package/dist/openapi.json +429 -5
  31. package/package.json +1 -1
@@ -85,6 +85,9 @@ export * from './AgentSubscriptionUio';
85
85
  export * from './AgentTicketActivityUio';
86
86
  export * from './AgentTicketCreationUio';
87
87
  export * from './AgentTokenBreakdownUio';
88
+ export * from './AgentTokenCostByAppInnerUio';
89
+ export * from './AgentTokenCostByModelInnerUio';
90
+ export * from './AgentTokenCostUio';
88
91
  export * from './AgentTokenUsageByTaskUio';
89
92
  export * from './AgentTokenUsageMetricUio';
90
93
  export * from './AgentToolAllowedMethodsRequestUio';
@@ -287,6 +290,7 @@ export * from './DeletePlatformEngineResponseUio';
287
290
  export * from './DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio';
288
291
  export * from './DeleteProvider200ResponseUio';
289
292
  export * from './EditConversationWorkspaceFileContent409ResponseUio';
293
+ export * from './EditOrganizationMemoryFileContent409ResponseUio';
290
294
  export * from './EditToolApprovalRequestUio';
291
295
  export * from './EmbeddingProviderModelsInnerUio';
292
296
  export * from './EmbeddingProviderUio';
@@ -478,6 +482,9 @@ export * from './McpTicketViewUio';
478
482
  export * from './MemberAccessRolesUio';
479
483
  export * from './MemberRefUio';
480
484
  export * from './MemberTypeUio';
485
+ export * from './MemoryFileContentUio';
486
+ export * from './MemoryFileEntryUio';
487
+ export * from './MemoryFileWriteRequestUio';
481
488
  export * from './MessageAnonymizationUio';
482
489
  export * from './MessageAudioDownloadUrlUio';
483
490
  export * from './MessageStatusErrorUio';
@@ -103,6 +103,9 @@ __exportStar(require("./AgentSubscriptionUio"), exports);
103
103
  __exportStar(require("./AgentTicketActivityUio"), exports);
104
104
  __exportStar(require("./AgentTicketCreationUio"), exports);
105
105
  __exportStar(require("./AgentTokenBreakdownUio"), exports);
106
+ __exportStar(require("./AgentTokenCostByAppInnerUio"), exports);
107
+ __exportStar(require("./AgentTokenCostByModelInnerUio"), exports);
108
+ __exportStar(require("./AgentTokenCostUio"), exports);
106
109
  __exportStar(require("./AgentTokenUsageByTaskUio"), exports);
107
110
  __exportStar(require("./AgentTokenUsageMetricUio"), exports);
108
111
  __exportStar(require("./AgentToolAllowedMethodsRequestUio"), exports);
@@ -305,6 +308,7 @@ __exportStar(require("./DeletePlatformEngineResponseUio"), exports);
305
308
  __exportStar(require("./DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio"), exports);
306
309
  __exportStar(require("./DeleteProvider200ResponseUio"), exports);
307
310
  __exportStar(require("./EditConversationWorkspaceFileContent409ResponseUio"), exports);
311
+ __exportStar(require("./EditOrganizationMemoryFileContent409ResponseUio"), exports);
308
312
  __exportStar(require("./EditToolApprovalRequestUio"), exports);
309
313
  __exportStar(require("./EmbeddingProviderModelsInnerUio"), exports);
310
314
  __exportStar(require("./EmbeddingProviderUio"), exports);
@@ -496,6 +500,9 @@ __exportStar(require("./McpTicketViewUio"), exports);
496
500
  __exportStar(require("./MemberAccessRolesUio"), exports);
497
501
  __exportStar(require("./MemberRefUio"), exports);
498
502
  __exportStar(require("./MemberTypeUio"), exports);
503
+ __exportStar(require("./MemoryFileContentUio"), exports);
504
+ __exportStar(require("./MemoryFileEntryUio"), exports);
505
+ __exportStar(require("./MemoryFileWriteRequestUio"), exports);
499
506
  __exportStar(require("./MessageAnonymizationUio"), exports);
500
507
  __exportStar(require("./MessageAudioDownloadUrlUio"), exports);
501
508
  __exportStar(require("./MessageStatusErrorUio"), exports);
package/dist/openapi.json CHANGED
@@ -10344,6 +10344,221 @@
10344
10344
  "tags" : [ "organizations" ]
10345
10345
  }
10346
10346
  },
10347
+ "/organizations/{organizationId}/memory/files" : {
10348
+ "delete" : {
10349
+ "description" : "Deletes one file, or every file of a personal space when the path is its root (/shared, or /memories with `agentId`) — the user's \"forget everything\". The organisation's memory is deleted file by file only. Cannot be undone.",
10350
+ "operationId" : "deleteOrganizationMemoryFile",
10351
+ "parameters" : [ {
10352
+ "description" : "ID of the organization",
10353
+ "in" : "path",
10354
+ "name" : "organizationId",
10355
+ "required" : true,
10356
+ "schema" : {
10357
+ "type" : "string"
10358
+ }
10359
+ }, {
10360
+ "description" : "Virtual path of a memory file. Its root names the space: /org (the organisation's memory), /shared (the caller's memory shared by all their agents) or /memories (the caller's memory with one agent, which then requires `agentId`). Rejected with 400 when it contains a traversal or uses characters outside [A-Za-z0-9._-].",
10361
+ "example" : "/org/core.md",
10362
+ "in" : "query",
10363
+ "name" : "path",
10364
+ "required" : true,
10365
+ "schema" : {
10366
+ "type" : "string"
10367
+ }
10368
+ }, {
10369
+ "description" : "The agent a /memories path belongs to. Required for /memories, rejected for /org and /shared.",
10370
+ "in" : "query",
10371
+ "name" : "agentId",
10372
+ "required" : false,
10373
+ "schema" : {
10374
+ "type" : "string"
10375
+ }
10376
+ } ],
10377
+ "responses" : {
10378
+ "204" : {
10379
+ "description" : "Successfully deleted."
10380
+ },
10381
+ "400" : {
10382
+ "description" : "Missing or invalid path or agentId, or /org as a whole"
10383
+ },
10384
+ "401" : {
10385
+ "description" : "Unauthorized"
10386
+ },
10387
+ "403" : {
10388
+ "description" : "Forbidden - Not a member of the organisation, or a service identity"
10389
+ },
10390
+ "500" : {
10391
+ "description" : "Server error"
10392
+ }
10393
+ },
10394
+ "summary" : "Delete a memory file, or a whole personal memory space",
10395
+ "tags" : [ "organizations" ]
10396
+ },
10397
+ "get" : {
10398
+ "description" : "The organisation's memory (/org) and the caller's own personal memory: /shared, and /memories of every agent, whatever the agents' memory settings (a disabled space still holds what it retained). Never another user's personal memory. The content is not returned here; use the content endpoint for that.",
10399
+ "operationId" : "listOrganizationMemoryFiles",
10400
+ "parameters" : [ {
10401
+ "description" : "ID of the organization",
10402
+ "in" : "path",
10403
+ "name" : "organizationId",
10404
+ "required" : true,
10405
+ "schema" : {
10406
+ "type" : "string"
10407
+ }
10408
+ } ],
10409
+ "responses" : {
10410
+ "200" : {
10411
+ "content" : {
10412
+ "application/json" : {
10413
+ "schema" : {
10414
+ "items" : {
10415
+ "$ref" : "#/components/schemas/MemoryFileEntry"
10416
+ },
10417
+ "type" : "array"
10418
+ }
10419
+ }
10420
+ },
10421
+ "description" : "Successfully retrieved the listing, sorted by path."
10422
+ },
10423
+ "401" : {
10424
+ "description" : "Unauthorized"
10425
+ },
10426
+ "403" : {
10427
+ "description" : "Forbidden - Not a member of the organisation, or a service identity"
10428
+ },
10429
+ "500" : {
10430
+ "description" : "Server error"
10431
+ }
10432
+ },
10433
+ "summary" : "List the memory files the caller can manage in the organisation",
10434
+ "tags" : [ "organizations" ]
10435
+ }
10436
+ },
10437
+ "/organizations/{organizationId}/memory/files/content" : {
10438
+ "get" : {
10439
+ "operationId" : "getOrganizationMemoryFileContent",
10440
+ "parameters" : [ {
10441
+ "description" : "ID of the organization",
10442
+ "in" : "path",
10443
+ "name" : "organizationId",
10444
+ "required" : true,
10445
+ "schema" : {
10446
+ "type" : "string"
10447
+ }
10448
+ }, {
10449
+ "description" : "Virtual path of a memory file. Its root names the space: /org (the organisation's memory), /shared (the caller's memory shared by all their agents) or /memories (the caller's memory with one agent, which then requires `agentId`). Rejected with 400 when it contains a traversal or uses characters outside [A-Za-z0-9._-].",
10450
+ "example" : "/org/core.md",
10451
+ "in" : "query",
10452
+ "name" : "path",
10453
+ "required" : true,
10454
+ "schema" : {
10455
+ "type" : "string"
10456
+ }
10457
+ }, {
10458
+ "description" : "The agent a /memories path belongs to. Required for /memories, rejected for /org and /shared.",
10459
+ "in" : "query",
10460
+ "name" : "agentId",
10461
+ "required" : false,
10462
+ "schema" : {
10463
+ "type" : "string"
10464
+ }
10465
+ } ],
10466
+ "responses" : {
10467
+ "200" : {
10468
+ "content" : {
10469
+ "application/json" : {
10470
+ "schema" : {
10471
+ "$ref" : "#/components/schemas/MemoryFileContent"
10472
+ }
10473
+ }
10474
+ },
10475
+ "description" : "Successfully retrieved the file."
10476
+ },
10477
+ "400" : {
10478
+ "description" : "Missing or invalid path or agentId"
10479
+ },
10480
+ "401" : {
10481
+ "description" : "Unauthorized"
10482
+ },
10483
+ "403" : {
10484
+ "description" : "Forbidden - Not a member of the organisation, or a service identity"
10485
+ },
10486
+ "404" : {
10487
+ "description" : "Memory file not found"
10488
+ },
10489
+ "500" : {
10490
+ "description" : "Server error"
10491
+ }
10492
+ },
10493
+ "summary" : "Read a memory file",
10494
+ "tags" : [ "organizations" ]
10495
+ },
10496
+ "put" : {
10497
+ "description" : "Saves a user edit. Optimistic concurrency: the write only lands if the file is still at `expectedVersion`, otherwise a 409 is returned carrying the current version so the client can re-read. The edit is signed by the caller.",
10498
+ "operationId" : "editOrganizationMemoryFileContent",
10499
+ "parameters" : [ {
10500
+ "description" : "ID of the organization",
10501
+ "in" : "path",
10502
+ "name" : "organizationId",
10503
+ "required" : true,
10504
+ "schema" : {
10505
+ "type" : "string"
10506
+ }
10507
+ } ],
10508
+ "requestBody" : {
10509
+ "content" : {
10510
+ "application/json" : {
10511
+ "schema" : {
10512
+ "$ref" : "#/components/schemas/MemoryFileWriteRequest"
10513
+ }
10514
+ }
10515
+ },
10516
+ "required" : true
10517
+ },
10518
+ "responses" : {
10519
+ "200" : {
10520
+ "content" : {
10521
+ "application/json" : {
10522
+ "schema" : {
10523
+ "$ref" : "#/components/schemas/MemoryFileContent"
10524
+ }
10525
+ }
10526
+ },
10527
+ "description" : "Successfully saved. Returns the file at its new version."
10528
+ },
10529
+ "400" : {
10530
+ "description" : "Invalid path, agentId or body (the content must be plain text)"
10531
+ },
10532
+ "401" : {
10533
+ "description" : "Unauthorized"
10534
+ },
10535
+ "403" : {
10536
+ "description" : "Forbidden - Not a member of the organisation, or a service identity"
10537
+ },
10538
+ "404" : {
10539
+ "description" : "Memory file not found"
10540
+ },
10541
+ "409" : {
10542
+ "content" : {
10543
+ "application/json" : {
10544
+ "schema" : {
10545
+ "$ref" : "#/components/schemas/editOrganizationMemoryFileContent_409_response"
10546
+ }
10547
+ }
10548
+ },
10549
+ "description" : "An agent wrote the file since it was read. Besides the usual error `code` and `message`, the body carries `currentVersion` so the client can re-read."
10550
+ },
10551
+ "413" : {
10552
+ "description" : "Content exceeds the memory length limit"
10553
+ },
10554
+ "500" : {
10555
+ "description" : "Server error"
10556
+ }
10557
+ },
10558
+ "summary" : "Edit a memory file",
10559
+ "tags" : [ "organizations" ]
10560
+ }
10561
+ },
10347
10562
  "/organizations/{organizationId}/member-access-roles" : {
10348
10563
  "get" : {
10349
10564
  "operationId" : "listOrganizationMemberAccessRoles",
@@ -24625,6 +24840,25 @@
24625
24840
  "type" : "string"
24626
24841
  }
24627
24842
  },
24843
+ "memoryPathQuery" : {
24844
+ "description" : "Virtual path of a memory file. Its root names the space: /org (the organisation's memory), /shared (the caller's memory shared by all their agents) or /memories (the caller's memory with one agent, which then requires `agentId`). Rejected with 400 when it contains a traversal or uses characters outside [A-Za-z0-9._-].",
24845
+ "example" : "/org/core.md",
24846
+ "in" : "query",
24847
+ "name" : "path",
24848
+ "required" : true,
24849
+ "schema" : {
24850
+ "type" : "string"
24851
+ }
24852
+ },
24853
+ "memoryAgentIdQuery" : {
24854
+ "description" : "The agent a /memories path belongs to. Required for /memories, rejected for /org and /shared.",
24855
+ "in" : "query",
24856
+ "name" : "agentId",
24857
+ "required" : false,
24858
+ "schema" : {
24859
+ "type" : "string"
24860
+ }
24861
+ },
24628
24862
  "manifestIdPath" : {
24629
24863
  "description" : "ID of the manifest",
24630
24864
  "in" : "path",
@@ -25885,6 +26119,9 @@
25885
26119
  "periodComparison" : {
25886
26120
  "$ref" : "#/components/schemas/AgentMetricsPeriodComparison"
25887
26121
  },
26122
+ "tokenCost" : {
26123
+ "$ref" : "#/components/schemas/AgentTokenCost"
26124
+ },
25888
26125
  "tokenUsage" : {
25889
26126
  "items" : {
25890
26127
  "$ref" : "#/components/schemas/AgentTokenUsageMetric"
@@ -26023,6 +26260,32 @@
26023
26260
  "required" : [ "conversations", "ephemeralInstancesCreated", "errorConversationCount", "feedbackPositive", "totalRequests", "totalTokensUsed", "uniqueUsersCount" ],
26024
26261
  "type" : "object"
26025
26262
  },
26263
+ "AgentTokenCost" : {
26264
+ "description" : "Coût des tokens de l'agent sur la période (coût figé à l'écriture, sinon prix actuel). Joint seulement pour un administrateur de l'organisation ; les modèles Breign ne sont valorisés que pour le superAdmin.",
26265
+ "properties" : {
26266
+ "total" : {
26267
+ "$ref" : "#/components/schemas/ModelConsumptionCost"
26268
+ },
26269
+ "unpricedTokens" : {
26270
+ "description" : "Tokens sans prix connu ; le coût est alors une estimation partielle.",
26271
+ "type" : "number"
26272
+ },
26273
+ "byApp" : {
26274
+ "items" : {
26275
+ "$ref" : "#/components/schemas/AgentTokenCost_byApp_inner"
26276
+ },
26277
+ "type" : "array"
26278
+ },
26279
+ "byModel" : {
26280
+ "items" : {
26281
+ "$ref" : "#/components/schemas/AgentTokenCost_byModel_inner"
26282
+ },
26283
+ "type" : "array"
26284
+ }
26285
+ },
26286
+ "required" : [ "byApp", "byModel", "total", "unpricedTokens" ],
26287
+ "type" : "object"
26288
+ },
26026
26289
  "AgentTokenUsageMetric" : {
26027
26290
  "properties" : {
26028
26291
  "provider" : {
@@ -30900,9 +31163,23 @@
30900
31163
  "$ref" : "#/components/schemas/ModelConsumptionItem"
30901
31164
  },
30902
31165
  "type" : "array"
31166
+ },
31167
+ "byUser" : {
31168
+ "description" : "Consommation par utilisateur, tous modèles confondus.",
31169
+ "items" : {
31170
+ "$ref" : "#/components/schemas/ModelConsumptionSlice"
31171
+ },
31172
+ "type" : "array"
30903
31173
  }
30904
31174
  },
30905
- "required" : [ "byModel", "total" ],
31175
+ "required" : [ "byModel", "byUser", "total" ],
31176
+ "type" : "object"
31177
+ },
31178
+ "ModelConsumptionCost" : {
31179
+ "additionalProperties" : {
31180
+ "type" : "number"
31181
+ },
31182
+ "description" : "Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.",
30906
31183
  "type" : "object"
30907
31184
  },
30908
31185
  "ModelConsumptionItem" : {
@@ -30930,6 +31207,12 @@
30930
31207
  "totalTokens" : {
30931
31208
  "type" : "number"
30932
31209
  },
31210
+ "cost" : {
31211
+ "$ref" : "#/components/schemas/ModelConsumptionCost"
31212
+ },
31213
+ "unpricedTokens" : {
31214
+ "type" : "number"
31215
+ },
30933
31216
  "sources" : {
30934
31217
  "items" : {
30935
31218
  "$ref" : "#/components/schemas/ModelConsumptionSlice"
@@ -30943,7 +31226,7 @@
30943
31226
  "type" : "array"
30944
31227
  }
30945
31228
  },
30946
- "required" : [ "inputTokens", "model", "outputTokens", "provider", "providerName", "requests", "sources", "totalTokens", "users" ],
31229
+ "required" : [ "cost", "inputTokens", "model", "outputTokens", "provider", "providerName", "requests", "sources", "totalTokens", "unpricedTokens", "users" ],
30947
31230
  "type" : "object"
30948
31231
  },
30949
31232
  "ModelConsumptionSlice" : {
@@ -30971,9 +31254,16 @@
30971
31254
  },
30972
31255
  "totalTokens" : {
30973
31256
  "type" : "number"
31257
+ },
31258
+ "cost" : {
31259
+ "$ref" : "#/components/schemas/ModelConsumptionCost"
31260
+ },
31261
+ "unpricedTokens" : {
31262
+ "description" : "Tokens sans prix connu ; le coût est alors une estimation partielle.",
31263
+ "type" : "number"
30974
31264
  }
30975
31265
  },
30976
- "required" : [ "inputTokens", "key", "kind", "label", "outputTokens", "requests", "totalTokens" ],
31266
+ "required" : [ "cost", "inputTokens", "key", "kind", "label", "outputTokens", "requests", "totalTokens", "unpricedTokens" ],
30977
31267
  "type" : "object"
30978
31268
  },
30979
31269
  "Guardian" : {
@@ -31364,6 +31654,90 @@
31364
31654
  },
31365
31655
  "type" : "object"
31366
31656
  },
31657
+ "MemoryFileEntry" : {
31658
+ "description" : "One memory file the caller can manage in the organisation. Listing entry: it carries only the start of the content (`preview`), enough to recognise the file without opening it.",
31659
+ "properties" : {
31660
+ "path" : {
31661
+ "description" : "Virtual path. Its root names the space: /org (the organisation's memory), /shared (the caller's memory shared by all their agents) or /memories (the caller's memory with one agent).",
31662
+ "example" : "/memories/core.md",
31663
+ "type" : "string"
31664
+ },
31665
+ "agentId" : {
31666
+ "description" : "The agent a /memories file belongs to; null for /org and /shared.",
31667
+ "nullable" : true,
31668
+ "type" : "string"
31669
+ },
31670
+ "size" : {
31671
+ "description" : "Length of the content, in characters.",
31672
+ "type" : "integer"
31673
+ },
31674
+ "updatedAt" : {
31675
+ "description" : "Last write, by an agent or a user (ISO 8601).",
31676
+ "type" : "string"
31677
+ },
31678
+ "preview" : {
31679
+ "description" : "The first 200 characters of the content.",
31680
+ "type" : "string"
31681
+ }
31682
+ },
31683
+ "required" : [ "agentId", "path", "preview", "size", "updatedAt" ],
31684
+ "type" : "object"
31685
+ },
31686
+ "MemoryFileContent" : {
31687
+ "description" : "The current state of a memory file. There is no history.",
31688
+ "properties" : {
31689
+ "path" : {
31690
+ "example" : "/org/core.md",
31691
+ "type" : "string"
31692
+ },
31693
+ "agentId" : {
31694
+ "nullable" : true,
31695
+ "type" : "string"
31696
+ },
31697
+ "content" : {
31698
+ "type" : "string"
31699
+ },
31700
+ "size" : {
31701
+ "description" : "Length of the content, in characters.",
31702
+ "type" : "integer"
31703
+ },
31704
+ "version" : {
31705
+ "description" : "Incremented on every write, by an agent or a user.",
31706
+ "type" : "integer"
31707
+ },
31708
+ "updatedAt" : {
31709
+ "type" : "string"
31710
+ }
31711
+ },
31712
+ "required" : [ "agentId", "content", "path", "size", "updatedAt", "version" ],
31713
+ "type" : "object"
31714
+ },
31715
+ "MemoryFileWriteRequest" : {
31716
+ "additionalProperties" : false,
31717
+ "description" : "A user edit of a memory file. Optimistic: `expectedVersion` is the version the client read, and the write is refused with a 409 if an agent wrote since. The file must already exist; this never creates one.",
31718
+ "properties" : {
31719
+ "path" : {
31720
+ "example" : "/org/core.md",
31721
+ "type" : "string"
31722
+ },
31723
+ "agentId" : {
31724
+ "description" : "Required for a /memories path, rejected otherwise.",
31725
+ "nullable" : true,
31726
+ "type" : "string"
31727
+ },
31728
+ "content" : {
31729
+ "description" : "Bounded by the same length limit as the agents' own writes.",
31730
+ "type" : "string"
31731
+ },
31732
+ "expectedVersion" : {
31733
+ "description" : "The version the client last read. A mismatch yields a 409.",
31734
+ "minimum" : 1,
31735
+ "type" : "integer"
31736
+ }
31737
+ },
31738
+ "required" : [ "content", "expectedVersion", "path" ],
31739
+ "type" : "object"
31740
+ },
31367
31741
  "MemberAccessRoles" : {
31368
31742
  "description" : "Explicit access roles of one member (none means the default role for their legacy role).",
31369
31743
  "properties" : {
@@ -34824,7 +35198,7 @@
34824
35198
  "type" : "object"
34825
35199
  },
34826
35200
  "AiGatewayUsageCost" : {
34827
- "description" : "Coût estimé, joint seulement sur le périmètre des modèles Breign (réservé au superAdmin).",
35201
+ "description" : "Coût estimé du périmètre demandé : moteurs de l'organisation, ou modèles Breign (`providerSource=INTERNAL`, réservé au superAdmin).",
34828
35202
  "properties" : {
34829
35203
  "total" : {
34830
35204
  "$ref" : "#/components/schemas/AiGatewayCostByCurrency"
@@ -40758,6 +41132,21 @@
40758
41132
  "required" : [ "success" ],
40759
41133
  "type" : "object"
40760
41134
  },
41135
+ "editOrganizationMemoryFileContent_409_response" : {
41136
+ "properties" : {
41137
+ "code" : {
41138
+ "type" : "string"
41139
+ },
41140
+ "message" : {
41141
+ "type" : "string"
41142
+ },
41143
+ "currentVersion" : {
41144
+ "type" : "integer"
41145
+ }
41146
+ },
41147
+ "required" : [ "code", "currentVersion", "message" ],
41148
+ "type" : "object"
41149
+ },
40761
41150
  "createToolApproval_request" : {
40762
41151
  "additionalProperties" : false,
40763
41152
  "properties" : {
@@ -41295,6 +41684,35 @@
41295
41684
  "required" : [ "model", "providerId" ],
41296
41685
  "type" : "object"
41297
41686
  },
41687
+ "AgentTokenCost_byApp_inner" : {
41688
+ "properties" : {
41689
+ "appId" : {
41690
+ "description" : "Null pour les tours sans app (appel direct).",
41691
+ "nullable" : true,
41692
+ "type" : "string"
41693
+ },
41694
+ "cost" : {
41695
+ "$ref" : "#/components/schemas/ModelConsumptionCost"
41696
+ }
41697
+ },
41698
+ "required" : [ "appId", "cost" ],
41699
+ "type" : "object"
41700
+ },
41701
+ "AgentTokenCost_byModel_inner" : {
41702
+ "properties" : {
41703
+ "provider" : {
41704
+ "type" : "string"
41705
+ },
41706
+ "model" : {
41707
+ "type" : "string"
41708
+ },
41709
+ "cost" : {
41710
+ "$ref" : "#/components/schemas/ModelConsumptionCost"
41711
+ }
41712
+ },
41713
+ "required" : [ "cost", "model", "provider" ],
41714
+ "type" : "object"
41715
+ },
41298
41716
  "OrgUsageMetricsResponse_total" : {
41299
41717
  "properties" : {
41300
41718
  "requests" : {
@@ -42364,9 +42782,15 @@
42364
42782
  },
42365
42783
  "uniqueUsers" : {
42366
42784
  "type" : "number"
42785
+ },
42786
+ "cost" : {
42787
+ "$ref" : "#/components/schemas/ModelConsumptionCost"
42788
+ },
42789
+ "unpricedTokens" : {
42790
+ "type" : "number"
42367
42791
  }
42368
42792
  },
42369
- "required" : [ "inputTokens", "outputTokens", "requests", "totalTokens", "uniqueUsers" ],
42793
+ "required" : [ "cost", "inputTokens", "outputTokens", "requests", "totalTokens", "uniqueUsers", "unpricedTokens" ],
42370
42794
  "type" : "object"
42371
42795
  },
42372
42796
  "OrganizationMember_user" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.209",
3
+ "version": "1.0.211",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",