@breign/client 1.0.190 → 1.0.192
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/apis/AiGatewayApi.d.ts +15 -1
- package/dist/apis/AiGatewayApi.js +34 -0
- package/dist/apis/TicketsApi.d.ts +15 -1
- package/dist/apis/TicketsApi.js +32 -0
- package/dist/models/AgentAtWorkProjectUio.d.ts +44 -0
- package/dist/models/AgentAtWorkProjectUio.js +58 -0
- package/dist/models/AgentAtWorkUio.d.ts +65 -0
- package/dist/models/AgentAtWorkUio.js +73 -0
- package/dist/models/AiGatewaySystemOneAnswerUio.d.ts +68 -0
- package/dist/models/AiGatewaySystemOneAnswerUio.js +69 -0
- package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.d.ts +23 -0
- package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.js +37 -0
- package/dist/models/AiGatewaySystemOneQuestionUio.d.ts +54 -0
- package/dist/models/AiGatewaySystemOneQuestionUio.js +66 -0
- package/dist/models/AiGatewaySystemOneRequestStateUio.d.ts +23 -0
- package/dist/models/AiGatewaySystemOneRequestStateUio.js +37 -0
- package/dist/models/AiGatewaySystemOneRequestUio.d.ts +54 -0
- package/dist/models/AiGatewaySystemOneRequestUio.js +63 -0
- package/dist/models/AiGatewaySystemOneResponseUio.d.ts +48 -0
- package/dist/models/AiGatewaySystemOneResponseUio.js +61 -0
- package/dist/models/AiGatewaySystemOneResponseUsageUio.d.ts +38 -0
- package/dist/models/AiGatewaySystemOneResponseUsageUio.js +50 -0
- package/dist/models/ModelDefinitionUio.d.ts +6 -0
- package/dist/models/ModelDefinitionUio.js +2 -0
- package/dist/models/ProjectAttentionUio.d.ts +6 -0
- package/dist/models/ProjectAttentionUio.js +4 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +6 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.js +2 -0
- package/dist/models/UserChatPreferencesUio.d.ts +6 -0
- package/dist/models/UserChatPreferencesUio.js +4 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/openapi.json +327 -2
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -17017,6 +17017,95 @@
|
|
|
17017
17017
|
"tags" : [ "ai-gateway" ]
|
|
17018
17018
|
}
|
|
17019
17019
|
},
|
|
17020
|
+
"/organizations/{organizationId}/ai-gateway/systemone" : {
|
|
17021
|
+
"post" : {
|
|
17022
|
+
"description" : "Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`.\n\nAussi monté sous `/ai-gateway/v1/systemone`, pour qu'un client System One puisse utiliser la passerelle comme URL de base.\n\nToutes les erreurs utilisent l'enveloppe OpenAI `{ error: { message } }`.",
|
|
17023
|
+
"operationId" : "createAiGatewaySystemOneDecision",
|
|
17024
|
+
"parameters" : [ {
|
|
17025
|
+
"description" : "ID of the organization",
|
|
17026
|
+
"in" : "path",
|
|
17027
|
+
"name" : "organizationId",
|
|
17028
|
+
"required" : true,
|
|
17029
|
+
"schema" : {
|
|
17030
|
+
"type" : "string"
|
|
17031
|
+
}
|
|
17032
|
+
} ],
|
|
17033
|
+
"requestBody" : {
|
|
17034
|
+
"content" : {
|
|
17035
|
+
"application/json" : {
|
|
17036
|
+
"schema" : {
|
|
17037
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneRequest"
|
|
17038
|
+
}
|
|
17039
|
+
}
|
|
17040
|
+
},
|
|
17041
|
+
"required" : true
|
|
17042
|
+
},
|
|
17043
|
+
"responses" : {
|
|
17044
|
+
"200" : {
|
|
17045
|
+
"content" : {
|
|
17046
|
+
"application/json" : {
|
|
17047
|
+
"schema" : {
|
|
17048
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneResponse"
|
|
17049
|
+
}
|
|
17050
|
+
}
|
|
17051
|
+
},
|
|
17052
|
+
"description" : "Décision prise"
|
|
17053
|
+
},
|
|
17054
|
+
"400" : {
|
|
17055
|
+
"content" : {
|
|
17056
|
+
"application/json" : {
|
|
17057
|
+
"schema" : {
|
|
17058
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17059
|
+
}
|
|
17060
|
+
}
|
|
17061
|
+
},
|
|
17062
|
+
"description" : "Invalid request body, modèle sans capacité Decision, ou provider qui ne sait pas servir de modèle de décision"
|
|
17063
|
+
},
|
|
17064
|
+
"401" : {
|
|
17065
|
+
"content" : {
|
|
17066
|
+
"application/json" : {
|
|
17067
|
+
"schema" : {
|
|
17068
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17069
|
+
}
|
|
17070
|
+
}
|
|
17071
|
+
},
|
|
17072
|
+
"description" : "Unauthenticated — no caller identity could be established"
|
|
17073
|
+
},
|
|
17074
|
+
"403" : {
|
|
17075
|
+
"content" : {
|
|
17076
|
+
"application/json" : {
|
|
17077
|
+
"schema" : {
|
|
17078
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17079
|
+
}
|
|
17080
|
+
}
|
|
17081
|
+
},
|
|
17082
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
17083
|
+
},
|
|
17084
|
+
"404" : {
|
|
17085
|
+
"content" : {
|
|
17086
|
+
"application/json" : {
|
|
17087
|
+
"schema" : {
|
|
17088
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17089
|
+
}
|
|
17090
|
+
}
|
|
17091
|
+
},
|
|
17092
|
+
"description" : "Model not found — aucun provider de l'organisation n'expose ce modèle"
|
|
17093
|
+
},
|
|
17094
|
+
"500" : {
|
|
17095
|
+
"content" : {
|
|
17096
|
+
"application/json" : {
|
|
17097
|
+
"schema" : {
|
|
17098
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17099
|
+
}
|
|
17100
|
+
}
|
|
17101
|
+
},
|
|
17102
|
+
"description" : "Internal server error"
|
|
17103
|
+
}
|
|
17104
|
+
},
|
|
17105
|
+
"summary" : "Ask a decision model through the AI gateway",
|
|
17106
|
+
"tags" : [ "ai-gateway" ]
|
|
17107
|
+
}
|
|
17108
|
+
},
|
|
17020
17109
|
"/organizations/{organizationId}/ai-gateway/credits" : {
|
|
17021
17110
|
"get" : {
|
|
17022
17111
|
"description" : "Le suivi de crédits n'est pas implémenté sur ce déploiement : l'endpoint répond systématiquement 501 à un appelant autorisé. Réservé pour un usage futur.",
|
|
@@ -18474,6 +18563,54 @@
|
|
|
18474
18563
|
"tags" : [ "tickets" ]
|
|
18475
18564
|
}
|
|
18476
18565
|
},
|
|
18566
|
+
"/organizations/{organizationId}/agents-at-work" : {
|
|
18567
|
+
"get" : {
|
|
18568
|
+
"description" : "Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d'abord, puis du plus récent au plus ancien.",
|
|
18569
|
+
"operationId" : "getAgentsAtWork",
|
|
18570
|
+
"parameters" : [ {
|
|
18571
|
+
"description" : "ID of the organization",
|
|
18572
|
+
"in" : "path",
|
|
18573
|
+
"name" : "organizationId",
|
|
18574
|
+
"required" : true,
|
|
18575
|
+
"schema" : {
|
|
18576
|
+
"type" : "string"
|
|
18577
|
+
}
|
|
18578
|
+
}, {
|
|
18579
|
+
"description" : "Nombre de lignes renvoyées (10 par défaut)",
|
|
18580
|
+
"in" : "query",
|
|
18581
|
+
"name" : "limit",
|
|
18582
|
+
"required" : false,
|
|
18583
|
+
"schema" : {
|
|
18584
|
+
"maximum" : 30,
|
|
18585
|
+
"minimum" : 1,
|
|
18586
|
+
"type" : "integer"
|
|
18587
|
+
}
|
|
18588
|
+
} ],
|
|
18589
|
+
"responses" : {
|
|
18590
|
+
"200" : {
|
|
18591
|
+
"content" : {
|
|
18592
|
+
"application/json" : {
|
|
18593
|
+
"schema" : {
|
|
18594
|
+
"items" : {
|
|
18595
|
+
"$ref" : "#/components/schemas/AgentAtWork"
|
|
18596
|
+
},
|
|
18597
|
+
"type" : "array"
|
|
18598
|
+
}
|
|
18599
|
+
}
|
|
18600
|
+
},
|
|
18601
|
+
"description" : "OK"
|
|
18602
|
+
},
|
|
18603
|
+
"401" : {
|
|
18604
|
+
"description" : "Unauthenticated"
|
|
18605
|
+
},
|
|
18606
|
+
"403" : {
|
|
18607
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
18608
|
+
}
|
|
18609
|
+
},
|
|
18610
|
+
"summary" : "List the agents at work on the caller's tickets",
|
|
18611
|
+
"tags" : [ "tickets" ]
|
|
18612
|
+
}
|
|
18613
|
+
},
|
|
18477
18614
|
"/tickets/{ticketId}" : {
|
|
18478
18615
|
"get" : {
|
|
18479
18616
|
"description" : "Ticket avec ses assignés et leurs états.",
|
|
@@ -27310,6 +27447,14 @@
|
|
|
27310
27447
|
},
|
|
27311
27448
|
"type" : "array"
|
|
27312
27449
|
},
|
|
27450
|
+
"pinnedProjectIds" : {
|
|
27451
|
+
"description" : "Liste ordonnée des espaces de travail épinglés dans la barre latérale",
|
|
27452
|
+
"items" : {
|
|
27453
|
+
"format" : "uuid",
|
|
27454
|
+
"type" : "string"
|
|
27455
|
+
},
|
|
27456
|
+
"type" : "array"
|
|
27457
|
+
},
|
|
27313
27458
|
"railOpen" : {
|
|
27314
27459
|
"type" : "boolean"
|
|
27315
27460
|
},
|
|
@@ -27321,7 +27466,7 @@
|
|
|
27321
27466
|
"type" : "array"
|
|
27322
27467
|
}
|
|
27323
27468
|
},
|
|
27324
|
-
"required" : [ "agentConversations", "pinnedAgentIds", "railOpen" ],
|
|
27469
|
+
"required" : [ "agentConversations", "pinnedAgentIds", "pinnedProjectIds", "railOpen" ],
|
|
27325
27470
|
"type" : "object"
|
|
27326
27471
|
},
|
|
27327
27472
|
"UserAgentConversation" : {
|
|
@@ -27348,6 +27493,13 @@
|
|
|
27348
27493
|
},
|
|
27349
27494
|
"type" : "array"
|
|
27350
27495
|
},
|
|
27496
|
+
"pinnedProjectIds" : {
|
|
27497
|
+
"items" : {
|
|
27498
|
+
"format" : "uuid",
|
|
27499
|
+
"type" : "string"
|
|
27500
|
+
},
|
|
27501
|
+
"type" : "array"
|
|
27502
|
+
},
|
|
27351
27503
|
"railOpen" : {
|
|
27352
27504
|
"type" : "boolean"
|
|
27353
27505
|
}
|
|
@@ -28151,6 +28303,10 @@
|
|
|
28151
28303
|
"description" : "Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.",
|
|
28152
28304
|
"type" : "boolean"
|
|
28153
28305
|
},
|
|
28306
|
+
"hasDecision" : {
|
|
28307
|
+
"description" : "Modèle de décision (API System One `/v1/systemone`, ou Decisions API d'OpenAI) : il renvoie des probabilités sur des questions typées au lieu de générer du texte. Non conversationnel, accessible uniquement via la ai-gateway (`/ai-gateway/v1/systemone`).",
|
|
28308
|
+
"type" : "boolean"
|
|
28309
|
+
},
|
|
28154
28310
|
"maxTokens" : {
|
|
28155
28311
|
"minimum" : 1,
|
|
28156
28312
|
"type" : "integer"
|
|
@@ -31958,6 +32114,96 @@
|
|
|
31958
32114
|
},
|
|
31959
32115
|
"type" : "object"
|
|
31960
32116
|
},
|
|
32117
|
+
"AiGatewaySystemOneRequest" : {
|
|
32118
|
+
"additionalProperties" : false,
|
|
32119
|
+
"properties" : {
|
|
32120
|
+
"model" : {
|
|
32121
|
+
"minLength" : 1,
|
|
32122
|
+
"type" : "string"
|
|
32123
|
+
},
|
|
32124
|
+
"state" : {
|
|
32125
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneRequest_state"
|
|
32126
|
+
},
|
|
32127
|
+
"images" : {
|
|
32128
|
+
"description" : "Images encodées en base64 (PNG, JPEG ou WebP), partagées par toutes les questions.",
|
|
32129
|
+
"items" : {
|
|
32130
|
+
"type" : "string"
|
|
32131
|
+
},
|
|
32132
|
+
"type" : "array"
|
|
32133
|
+
},
|
|
32134
|
+
"questions" : {
|
|
32135
|
+
"additionalProperties" : {
|
|
32136
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneQuestion"
|
|
32137
|
+
},
|
|
32138
|
+
"minProperties" : 1,
|
|
32139
|
+
"type" : "object"
|
|
32140
|
+
}
|
|
32141
|
+
},
|
|
32142
|
+
"required" : [ "model", "questions", "state" ],
|
|
32143
|
+
"type" : "object"
|
|
32144
|
+
},
|
|
32145
|
+
"AiGatewaySystemOneQuestion" : {
|
|
32146
|
+
"additionalProperties" : false,
|
|
32147
|
+
"properties" : {
|
|
32148
|
+
"type" : {
|
|
32149
|
+
"enum" : [ "choice", "noul", "score" ],
|
|
32150
|
+
"type" : "string"
|
|
32151
|
+
},
|
|
32152
|
+
"instructions" : {
|
|
32153
|
+
"minLength" : 1,
|
|
32154
|
+
"type" : "string"
|
|
32155
|
+
},
|
|
32156
|
+
"criteria" : {
|
|
32157
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneQuestion_criteria"
|
|
32158
|
+
}
|
|
32159
|
+
},
|
|
32160
|
+
"required" : [ "instructions", "type" ],
|
|
32161
|
+
"type" : "object"
|
|
32162
|
+
},
|
|
32163
|
+
"AiGatewaySystemOneResponse" : {
|
|
32164
|
+
"properties" : {
|
|
32165
|
+
"model" : {
|
|
32166
|
+
"type" : "string"
|
|
32167
|
+
},
|
|
32168
|
+
"answers" : {
|
|
32169
|
+
"additionalProperties" : {
|
|
32170
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneAnswer"
|
|
32171
|
+
},
|
|
32172
|
+
"type" : "object"
|
|
32173
|
+
},
|
|
32174
|
+
"usage" : {
|
|
32175
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneResponse_usage"
|
|
32176
|
+
}
|
|
32177
|
+
},
|
|
32178
|
+
"required" : [ "answers", "model", "usage" ],
|
|
32179
|
+
"type" : "object"
|
|
32180
|
+
},
|
|
32181
|
+
"AiGatewaySystemOneAnswer" : {
|
|
32182
|
+
"additionalProperties" : true,
|
|
32183
|
+
"properties" : {
|
|
32184
|
+
"type" : {
|
|
32185
|
+
"enum" : [ "choice", "noul", "score" ],
|
|
32186
|
+
"type" : "string"
|
|
32187
|
+
},
|
|
32188
|
+
"choice" : {
|
|
32189
|
+
"type" : "string"
|
|
32190
|
+
},
|
|
32191
|
+
"noul" : {
|
|
32192
|
+
"type" : "number"
|
|
32193
|
+
},
|
|
32194
|
+
"score" : {
|
|
32195
|
+
"type" : "number"
|
|
32196
|
+
},
|
|
32197
|
+
"probabilities" : {
|
|
32198
|
+
"additionalProperties" : {
|
|
32199
|
+
"type" : "number"
|
|
32200
|
+
},
|
|
32201
|
+
"type" : "object"
|
|
32202
|
+
}
|
|
32203
|
+
},
|
|
32204
|
+
"required" : [ "type" ],
|
|
32205
|
+
"type" : "object"
|
|
32206
|
+
},
|
|
31961
32207
|
"AiGatewayUsage" : {
|
|
31962
32208
|
"properties" : {
|
|
31963
32209
|
"total" : {
|
|
@@ -32750,9 +32996,13 @@
|
|
|
32750
32996
|
},
|
|
32751
32997
|
"goAheads" : {
|
|
32752
32998
|
"type" : "integer"
|
|
32999
|
+
},
|
|
33000
|
+
"approvals" : {
|
|
33001
|
+
"description" : "Demandes d'approbation posées par un agent",
|
|
33002
|
+
"type" : "integer"
|
|
32753
33003
|
}
|
|
32754
33004
|
},
|
|
32755
|
-
"required" : [ "goAheads", "proposals", "questions", "reviews" ],
|
|
33005
|
+
"required" : [ "approvals", "goAheads", "proposals", "questions", "reviews" ],
|
|
32756
33006
|
"type" : "object"
|
|
32757
33007
|
},
|
|
32758
33008
|
"ProjectActivity" : {
|
|
@@ -33270,6 +33520,32 @@
|
|
|
33270
33520
|
"required" : [ "agentId", "conversationId", "currentStep", "lastRunAt", "planDone", "planTotal", "status" ],
|
|
33271
33521
|
"type" : "object"
|
|
33272
33522
|
},
|
|
33523
|
+
"AgentAtWork" : {
|
|
33524
|
+
"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é.",
|
|
33525
|
+
"properties" : {
|
|
33526
|
+
"ticket" : {
|
|
33527
|
+
"$ref" : "#/components/schemas/TicketParentRef"
|
|
33528
|
+
},
|
|
33529
|
+
"project" : {
|
|
33530
|
+
"$ref" : "#/components/schemas/AgentAtWork_project"
|
|
33531
|
+
},
|
|
33532
|
+
"agentId" : {
|
|
33533
|
+
"type" : "string"
|
|
33534
|
+
},
|
|
33535
|
+
"state" : {
|
|
33536
|
+
"$ref" : "#/components/schemas/TicketAssigneeState"
|
|
33537
|
+
},
|
|
33538
|
+
"stateNote" : {
|
|
33539
|
+
"nullable" : true,
|
|
33540
|
+
"type" : "string"
|
|
33541
|
+
},
|
|
33542
|
+
"updatedAt" : {
|
|
33543
|
+
"type" : "string"
|
|
33544
|
+
}
|
|
33545
|
+
},
|
|
33546
|
+
"required" : [ "agentId", "project", "state", "stateNote", "ticket", "updatedAt" ],
|
|
33547
|
+
"type" : "object"
|
|
33548
|
+
},
|
|
33273
33549
|
"UpdateTicketRequest" : {
|
|
33274
33550
|
"description" : "Mise à jour partielle — une propriété absente reste inchangée. Le projet ne change pas.",
|
|
33275
33551
|
"properties" : {
|
|
@@ -38678,6 +38954,39 @@
|
|
|
38678
38954
|
"required" : [ "created", "id", "object", "owned_by" ],
|
|
38679
38955
|
"type" : "object"
|
|
38680
38956
|
},
|
|
38957
|
+
"AiGatewaySystemOneRequest_state" : {
|
|
38958
|
+
"description" : "Entrée sur laquelle décider, texte ou objet JSON.",
|
|
38959
|
+
"oneOf" : [ {
|
|
38960
|
+
"type" : "string"
|
|
38961
|
+
}, {
|
|
38962
|
+
"additionalProperties" : true,
|
|
38963
|
+
"type" : "object"
|
|
38964
|
+
} ]
|
|
38965
|
+
},
|
|
38966
|
+
"AiGatewaySystemOneQuestion_criteria" : {
|
|
38967
|
+
"oneOf" : [ {
|
|
38968
|
+
"additionalProperties" : {
|
|
38969
|
+
"type" : "string"
|
|
38970
|
+
},
|
|
38971
|
+
"type" : "object"
|
|
38972
|
+
}, {
|
|
38973
|
+
"items" : {
|
|
38974
|
+
"type" : "string"
|
|
38975
|
+
},
|
|
38976
|
+
"type" : "array"
|
|
38977
|
+
} ]
|
|
38978
|
+
},
|
|
38979
|
+
"AiGatewaySystemOneResponse_usage" : {
|
|
38980
|
+
"properties" : {
|
|
38981
|
+
"input_tokens" : {
|
|
38982
|
+
"type" : "integer"
|
|
38983
|
+
},
|
|
38984
|
+
"output_tokens" : {
|
|
38985
|
+
"type" : "integer"
|
|
38986
|
+
}
|
|
38987
|
+
},
|
|
38988
|
+
"type" : "object"
|
|
38989
|
+
},
|
|
38681
38990
|
"AiGatewayV1ModelEndpoints_data_architecture" : {
|
|
38682
38991
|
"properties" : {
|
|
38683
38992
|
"tokenizer" : {
|
|
@@ -38845,6 +39154,22 @@
|
|
|
38845
39154
|
},
|
|
38846
39155
|
"type" : "object"
|
|
38847
39156
|
},
|
|
39157
|
+
"AgentAtWork_project" : {
|
|
39158
|
+
"properties" : {
|
|
39159
|
+
"id" : {
|
|
39160
|
+
"format" : "uuid",
|
|
39161
|
+
"type" : "string"
|
|
39162
|
+
},
|
|
39163
|
+
"key" : {
|
|
39164
|
+
"type" : "string"
|
|
39165
|
+
},
|
|
39166
|
+
"name" : {
|
|
39167
|
+
"type" : "string"
|
|
39168
|
+
}
|
|
39169
|
+
},
|
|
39170
|
+
"required" : [ "id", "key", "name" ],
|
|
39171
|
+
"type" : "object"
|
|
39172
|
+
},
|
|
38848
39173
|
"TicketAgentExecution_pendingQuestion" : {
|
|
38849
39174
|
"nullable" : true,
|
|
38850
39175
|
"properties" : {
|