@breign/client 1.0.206 → 1.0.208
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 +36 -1
- package/dist/apis/AiGatewayApi.js +85 -0
- package/dist/models/AiGatewayRequestLogCursorUio.d.ts +38 -0
- package/dist/models/AiGatewayRequestLogCursorUio.js +54 -0
- package/dist/models/AiGatewayRequestLogStatusUio.d.ts +25 -0
- package/dist/models/AiGatewayRequestLogStatusUio.js +51 -0
- package/dist/models/AiGatewayRequestLogSummaryUio.d.ts +141 -0
- package/dist/models/AiGatewayRequestLogSummaryUio.js +123 -0
- package/dist/models/AiGatewayRequestLogUio.d.ts +157 -0
- package/dist/models/AiGatewayRequestLogUio.js +131 -0
- package/dist/models/AiGatewayRequestLogsResponseUio.d.ts +46 -0
- package/dist/models/AiGatewayRequestLogsResponseUio.js +60 -0
- package/dist/models/ToolPresetCreateRequestUio.d.ts +7 -0
- package/dist/models/ToolPresetCreateRequestUio.js +3 -0
- package/dist/models/ToolPresetImportItemUio.d.ts +7 -0
- package/dist/models/ToolPresetImportItemUio.js +3 -0
- package/dist/models/ToolPresetTypeUio.d.ts +26 -0
- package/dist/models/ToolPresetTypeUio.js +52 -0
- package/dist/models/ToolPresetUio.d.ts +8 -1
- package/dist/models/ToolPresetUio.js +3 -0
- package/dist/models/ToolPresetUpdateRequestUio.d.ts +7 -0
- package/dist/models/ToolPresetUpdateRequestUio.js +3 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/openapi.json +300 -1
- package/package.json +1 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -105,6 +105,11 @@ export * from './AiGatewayModelListDataInnerUio';
|
|
|
105
105
|
export * from './AiGatewayModelListUio';
|
|
106
106
|
export * from './AiGatewayModelTokenQuotaUio';
|
|
107
107
|
export * from './AiGatewayModelUio';
|
|
108
|
+
export * from './AiGatewayRequestLogCursorUio';
|
|
109
|
+
export * from './AiGatewayRequestLogStatusUio';
|
|
110
|
+
export * from './AiGatewayRequestLogSummaryUio';
|
|
111
|
+
export * from './AiGatewayRequestLogUio';
|
|
112
|
+
export * from './AiGatewayRequestLogsResponseUio';
|
|
108
113
|
export * from './AiGatewaySettingsUio';
|
|
109
114
|
export * from './AiGatewaySettingsUpdateRequestUio';
|
|
110
115
|
export * from './AiGatewaySystemOneAnswerUio';
|
|
@@ -754,6 +759,7 @@ export * from './ToolPresetImportResponseUio';
|
|
|
754
759
|
export * from './ToolPresetOAuthRegistrationUio';
|
|
755
760
|
export * from './ToolPresetPageUio';
|
|
756
761
|
export * from './ToolPresetTransportUio';
|
|
762
|
+
export * from './ToolPresetTypeUio';
|
|
757
763
|
export * from './ToolPresetUio';
|
|
758
764
|
export * from './ToolPresetUpdateRequestUio';
|
|
759
765
|
export * from './ToolResultUio';
|
package/dist/models/index.js
CHANGED
|
@@ -123,6 +123,11 @@ __exportStar(require("./AiGatewayModelListDataInnerUio"), exports);
|
|
|
123
123
|
__exportStar(require("./AiGatewayModelListUio"), exports);
|
|
124
124
|
__exportStar(require("./AiGatewayModelTokenQuotaUio"), exports);
|
|
125
125
|
__exportStar(require("./AiGatewayModelUio"), exports);
|
|
126
|
+
__exportStar(require("./AiGatewayRequestLogCursorUio"), exports);
|
|
127
|
+
__exportStar(require("./AiGatewayRequestLogStatusUio"), exports);
|
|
128
|
+
__exportStar(require("./AiGatewayRequestLogSummaryUio"), exports);
|
|
129
|
+
__exportStar(require("./AiGatewayRequestLogUio"), exports);
|
|
130
|
+
__exportStar(require("./AiGatewayRequestLogsResponseUio"), exports);
|
|
126
131
|
__exportStar(require("./AiGatewaySettingsUio"), exports);
|
|
127
132
|
__exportStar(require("./AiGatewaySettingsUpdateRequestUio"), exports);
|
|
128
133
|
__exportStar(require("./AiGatewaySystemOneAnswerUio"), exports);
|
|
@@ -772,6 +777,7 @@ __exportStar(require("./ToolPresetImportResponseUio"), exports);
|
|
|
772
777
|
__exportStar(require("./ToolPresetOAuthRegistrationUio"), exports);
|
|
773
778
|
__exportStar(require("./ToolPresetPageUio"), exports);
|
|
774
779
|
__exportStar(require("./ToolPresetTransportUio"), exports);
|
|
780
|
+
__exportStar(require("./ToolPresetTypeUio"), exports);
|
|
775
781
|
__exportStar(require("./ToolPresetUio"), exports);
|
|
776
782
|
__exportStar(require("./ToolPresetUpdateRequestUio"), exports);
|
|
777
783
|
__exportStar(require("./ToolResultUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -17512,6 +17512,140 @@
|
|
|
17512
17512
|
"tags" : [ "ai-gateway" ]
|
|
17513
17513
|
}
|
|
17514
17514
|
},
|
|
17515
|
+
"/organizations/{organizationId}/ai-gateway/request-logs" : {
|
|
17516
|
+
"get" : {
|
|
17517
|
+
"description" : "Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l'organisation.",
|
|
17518
|
+
"operationId" : "listAiGatewayRequestLogs",
|
|
17519
|
+
"parameters" : [ {
|
|
17520
|
+
"description" : "ID of the organization",
|
|
17521
|
+
"in" : "path",
|
|
17522
|
+
"name" : "organizationId",
|
|
17523
|
+
"required" : true,
|
|
17524
|
+
"schema" : {
|
|
17525
|
+
"type" : "string"
|
|
17526
|
+
}
|
|
17527
|
+
}, {
|
|
17528
|
+
"in" : "query",
|
|
17529
|
+
"name" : "userId",
|
|
17530
|
+
"schema" : {
|
|
17531
|
+
"type" : "string"
|
|
17532
|
+
}
|
|
17533
|
+
}, {
|
|
17534
|
+
"in" : "query",
|
|
17535
|
+
"name" : "model",
|
|
17536
|
+
"schema" : {
|
|
17537
|
+
"type" : "string"
|
|
17538
|
+
}
|
|
17539
|
+
}, {
|
|
17540
|
+
"in" : "query",
|
|
17541
|
+
"name" : "status",
|
|
17542
|
+
"schema" : {
|
|
17543
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogStatus"
|
|
17544
|
+
}
|
|
17545
|
+
}, {
|
|
17546
|
+
"in" : "query",
|
|
17547
|
+
"name" : "startDate",
|
|
17548
|
+
"schema" : {
|
|
17549
|
+
"format" : "date-time",
|
|
17550
|
+
"type" : "string"
|
|
17551
|
+
}
|
|
17552
|
+
}, {
|
|
17553
|
+
"in" : "query",
|
|
17554
|
+
"name" : "endDate",
|
|
17555
|
+
"schema" : {
|
|
17556
|
+
"format" : "date-time",
|
|
17557
|
+
"type" : "string"
|
|
17558
|
+
}
|
|
17559
|
+
}, {
|
|
17560
|
+
"description" : "Taille de page, bornée côté serveur.",
|
|
17561
|
+
"in" : "query",
|
|
17562
|
+
"name" : "limit",
|
|
17563
|
+
"schema" : {
|
|
17564
|
+
"default" : 50,
|
|
17565
|
+
"maximum" : 200,
|
|
17566
|
+
"minimum" : 1,
|
|
17567
|
+
"type" : "integer"
|
|
17568
|
+
}
|
|
17569
|
+
}, {
|
|
17570
|
+
"description" : "Moitié date du curseur, renvoyée depuis `nextCursor` avec `beforeId`.",
|
|
17571
|
+
"in" : "query",
|
|
17572
|
+
"name" : "beforeCreatedAt",
|
|
17573
|
+
"schema" : {
|
|
17574
|
+
"type" : "string"
|
|
17575
|
+
}
|
|
17576
|
+
}, {
|
|
17577
|
+
"description" : "Moitié identifiant du curseur, renvoyée depuis `nextCursor` avec `beforeCreatedAt`.",
|
|
17578
|
+
"in" : "query",
|
|
17579
|
+
"name" : "beforeId",
|
|
17580
|
+
"schema" : {
|
|
17581
|
+
"type" : "string"
|
|
17582
|
+
}
|
|
17583
|
+
} ],
|
|
17584
|
+
"responses" : {
|
|
17585
|
+
"200" : {
|
|
17586
|
+
"content" : {
|
|
17587
|
+
"application/json" : {
|
|
17588
|
+
"schema" : {
|
|
17589
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogsResponse"
|
|
17590
|
+
}
|
|
17591
|
+
}
|
|
17592
|
+
},
|
|
17593
|
+
"description" : "A page of request logs"
|
|
17594
|
+
},
|
|
17595
|
+
"400" : {
|
|
17596
|
+
"description" : "Invalid status or date filter"
|
|
17597
|
+
},
|
|
17598
|
+
"403" : {
|
|
17599
|
+
"description" : "Forbidden"
|
|
17600
|
+
}
|
|
17601
|
+
},
|
|
17602
|
+
"summary" : "List the requests sent to providers by the AI gateway",
|
|
17603
|
+
"tags" : [ "ai-gateway" ]
|
|
17604
|
+
}
|
|
17605
|
+
},
|
|
17606
|
+
"/organizations/{organizationId}/ai-gateway/request-logs/{logId}" : {
|
|
17607
|
+
"get" : {
|
|
17608
|
+
"description" : "Paramètres, contenu et réponse d'une requête. Réservé aux administrateurs de l'organisation.",
|
|
17609
|
+
"operationId" : "getAiGatewayRequestLog",
|
|
17610
|
+
"parameters" : [ {
|
|
17611
|
+
"description" : "ID of the organization",
|
|
17612
|
+
"in" : "path",
|
|
17613
|
+
"name" : "organizationId",
|
|
17614
|
+
"required" : true,
|
|
17615
|
+
"schema" : {
|
|
17616
|
+
"type" : "string"
|
|
17617
|
+
}
|
|
17618
|
+
}, {
|
|
17619
|
+
"description" : "Identifiant de génération (`gen_<ulid>`)",
|
|
17620
|
+
"in" : "path",
|
|
17621
|
+
"name" : "logId",
|
|
17622
|
+
"required" : true,
|
|
17623
|
+
"schema" : {
|
|
17624
|
+
"type" : "string"
|
|
17625
|
+
}
|
|
17626
|
+
} ],
|
|
17627
|
+
"responses" : {
|
|
17628
|
+
"200" : {
|
|
17629
|
+
"content" : {
|
|
17630
|
+
"application/json" : {
|
|
17631
|
+
"schema" : {
|
|
17632
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLog"
|
|
17633
|
+
}
|
|
17634
|
+
}
|
|
17635
|
+
},
|
|
17636
|
+
"description" : "The request log"
|
|
17637
|
+
},
|
|
17638
|
+
"403" : {
|
|
17639
|
+
"description" : "Forbidden"
|
|
17640
|
+
},
|
|
17641
|
+
"404" : {
|
|
17642
|
+
"description" : "Request log not found"
|
|
17643
|
+
}
|
|
17644
|
+
},
|
|
17645
|
+
"summary" : "Read one request sent to a provider, with its content",
|
|
17646
|
+
"tags" : [ "ai-gateway" ]
|
|
17647
|
+
}
|
|
17648
|
+
},
|
|
17515
17649
|
"/organizations/{organizationId}/ai-gateway/settings" : {
|
|
17516
17650
|
"get" : {
|
|
17517
17651
|
"description" : "Limites des modèles dont l'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.",
|
|
@@ -34704,6 +34838,152 @@
|
|
|
34704
34838
|
"description" : "Montant par devise ISO ; deux devises ne s'additionnent pas.",
|
|
34705
34839
|
"type" : "object"
|
|
34706
34840
|
},
|
|
34841
|
+
"AiGatewayRequestLogStatus" : {
|
|
34842
|
+
"enum" : [ "ok", "error" ],
|
|
34843
|
+
"title" : "AiGatewayRequestLogStatus",
|
|
34844
|
+
"type" : "string"
|
|
34845
|
+
},
|
|
34846
|
+
"AiGatewayRequestLogsResponse" : {
|
|
34847
|
+
"additionalProperties" : false,
|
|
34848
|
+
"properties" : {
|
|
34849
|
+
"logs" : {
|
|
34850
|
+
"items" : {
|
|
34851
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogSummary"
|
|
34852
|
+
},
|
|
34853
|
+
"type" : "array"
|
|
34854
|
+
},
|
|
34855
|
+
"nextCursor" : {
|
|
34856
|
+
"allOf" : [ {
|
|
34857
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogCursor"
|
|
34858
|
+
} ],
|
|
34859
|
+
"description" : "Null une fois la dernière page servie.",
|
|
34860
|
+
"nullable" : true
|
|
34861
|
+
},
|
|
34862
|
+
"retentionDays" : {
|
|
34863
|
+
"description" : "Durée de conservation des requêtes, en jours.",
|
|
34864
|
+
"type" : "integer"
|
|
34865
|
+
}
|
|
34866
|
+
},
|
|
34867
|
+
"required" : [ "logs", "nextCursor", "retentionDays" ],
|
|
34868
|
+
"title" : "AiGatewayRequestLogsResponse",
|
|
34869
|
+
"type" : "object"
|
|
34870
|
+
},
|
|
34871
|
+
"AiGatewayRequestLogSummary" : {
|
|
34872
|
+
"properties" : {
|
|
34873
|
+
"id" : {
|
|
34874
|
+
"description" : "Identifiant de génération (`gen_<ulid>`), celui que le client a reçu.",
|
|
34875
|
+
"type" : "string"
|
|
34876
|
+
},
|
|
34877
|
+
"organizationId" : {
|
|
34878
|
+
"type" : "string"
|
|
34879
|
+
},
|
|
34880
|
+
"userId" : {
|
|
34881
|
+
"nullable" : true,
|
|
34882
|
+
"type" : "string"
|
|
34883
|
+
},
|
|
34884
|
+
"agentId" : {
|
|
34885
|
+
"description" : "Renseigné pour un tour d'agent sur un nœud.",
|
|
34886
|
+
"nullable" : true,
|
|
34887
|
+
"type" : "string"
|
|
34888
|
+
},
|
|
34889
|
+
"conversationId" : {
|
|
34890
|
+
"description" : "Renseigné pour un tour d'agent sur un nœud.",
|
|
34891
|
+
"nullable" : true,
|
|
34892
|
+
"type" : "string"
|
|
34893
|
+
},
|
|
34894
|
+
"route" : {
|
|
34895
|
+
"description" : "chat/completions, embeddings, systemone ou openai/chat/completions.",
|
|
34896
|
+
"type" : "string"
|
|
34897
|
+
},
|
|
34898
|
+
"streamed" : {
|
|
34899
|
+
"type" : "boolean"
|
|
34900
|
+
},
|
|
34901
|
+
"model" : {
|
|
34902
|
+
"type" : "string"
|
|
34903
|
+
},
|
|
34904
|
+
"providerId" : {
|
|
34905
|
+
"type" : "string"
|
|
34906
|
+
},
|
|
34907
|
+
"providerName" : {
|
|
34908
|
+
"type" : "string"
|
|
34909
|
+
},
|
|
34910
|
+
"status" : {
|
|
34911
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogStatus"
|
|
34912
|
+
},
|
|
34913
|
+
"errorMessage" : {
|
|
34914
|
+
"nullable" : true,
|
|
34915
|
+
"type" : "string"
|
|
34916
|
+
},
|
|
34917
|
+
"finishReason" : {
|
|
34918
|
+
"nullable" : true,
|
|
34919
|
+
"type" : "string"
|
|
34920
|
+
},
|
|
34921
|
+
"durationMs" : {
|
|
34922
|
+
"type" : "integer"
|
|
34923
|
+
},
|
|
34924
|
+
"promptTokens" : {
|
|
34925
|
+
"nullable" : true,
|
|
34926
|
+
"type" : "integer"
|
|
34927
|
+
},
|
|
34928
|
+
"completionTokens" : {
|
|
34929
|
+
"nullable" : true,
|
|
34930
|
+
"type" : "integer"
|
|
34931
|
+
},
|
|
34932
|
+
"reportingUser" : {
|
|
34933
|
+
"nullable" : true,
|
|
34934
|
+
"type" : "string"
|
|
34935
|
+
},
|
|
34936
|
+
"tags" : {
|
|
34937
|
+
"items" : {
|
|
34938
|
+
"type" : "string"
|
|
34939
|
+
},
|
|
34940
|
+
"type" : "array"
|
|
34941
|
+
},
|
|
34942
|
+
"createdAt" : {
|
|
34943
|
+
"type" : "string"
|
|
34944
|
+
}
|
|
34945
|
+
},
|
|
34946
|
+
"required" : [ "agentId", "completionTokens", "conversationId", "createdAt", "durationMs", "errorMessage", "finishReason", "id", "model", "organizationId", "promptTokens", "providerId", "providerName", "reportingUser", "route", "status", "streamed", "tags", "userId" ],
|
|
34947
|
+
"title" : "AiGatewayRequestLogSummary",
|
|
34948
|
+
"type" : "object"
|
|
34949
|
+
},
|
|
34950
|
+
"AiGatewayRequestLogCursor" : {
|
|
34951
|
+
"additionalProperties" : false,
|
|
34952
|
+
"properties" : {
|
|
34953
|
+
"createdAt" : {
|
|
34954
|
+
"type" : "string"
|
|
34955
|
+
},
|
|
34956
|
+
"id" : {
|
|
34957
|
+
"type" : "string"
|
|
34958
|
+
}
|
|
34959
|
+
},
|
|
34960
|
+
"required" : [ "createdAt", "id" ],
|
|
34961
|
+
"title" : "AiGatewayRequestLogCursor",
|
|
34962
|
+
"type" : "object"
|
|
34963
|
+
},
|
|
34964
|
+
"AiGatewayRequestLog" : {
|
|
34965
|
+
"allOf" : [ {
|
|
34966
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogSummary"
|
|
34967
|
+
}, {
|
|
34968
|
+
"properties" : {
|
|
34969
|
+
"request" : {
|
|
34970
|
+
"additionalProperties" : true,
|
|
34971
|
+
"description" : "Corps de la requête du client. Les images en base64 sont omises et les contenus très volumineux tronqués.",
|
|
34972
|
+
"nullable" : true,
|
|
34973
|
+
"type" : "object"
|
|
34974
|
+
},
|
|
34975
|
+
"response" : {
|
|
34976
|
+
"additionalProperties" : true,
|
|
34977
|
+
"description" : "Réponse au format OpenAI ; partielle si un flux a échoué en route, nulle sans réponse. Pour un embedding, seuls le nombre et la dimension des vecteurs sont conservés.",
|
|
34978
|
+
"nullable" : true,
|
|
34979
|
+
"type" : "object"
|
|
34980
|
+
}
|
|
34981
|
+
},
|
|
34982
|
+
"required" : [ "request", "response" ],
|
|
34983
|
+
"type" : "object"
|
|
34984
|
+
} ],
|
|
34985
|
+
"title" : "AiGatewayRequestLog"
|
|
34986
|
+
},
|
|
34707
34987
|
"AiGatewaySettings" : {
|
|
34708
34988
|
"properties" : {
|
|
34709
34989
|
"organizationId" : {
|
|
@@ -39543,8 +39823,14 @@
|
|
|
39543
39823
|
"descriptionFr" : {
|
|
39544
39824
|
"type" : "string"
|
|
39545
39825
|
},
|
|
39826
|
+
"type" : {
|
|
39827
|
+
"allOf" : [ {
|
|
39828
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
39829
|
+
} ],
|
|
39830
|
+
"description" : "Kind of tool created from the preset. Optional so that a client talking to an API without this field keeps working: absent means mcp."
|
|
39831
|
+
},
|
|
39546
39832
|
"url" : {
|
|
39547
|
-
"description" : "MCP server URL, possibly with {{key}} variables declared in configOptions",
|
|
39833
|
+
"description" : "MCP server URL (mcp), ai-plugin manifest URL (tool_api) or OpenAPI definition URL (openapi), possibly with {{key}} variables declared in configOptions",
|
|
39548
39834
|
"type" : "string"
|
|
39549
39835
|
},
|
|
39550
39836
|
"configOptions" : {
|
|
@@ -39656,6 +39942,9 @@
|
|
|
39656
39942
|
"descriptionFr" : {
|
|
39657
39943
|
"type" : "string"
|
|
39658
39944
|
},
|
|
39945
|
+
"type" : {
|
|
39946
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
39947
|
+
},
|
|
39659
39948
|
"url" : {
|
|
39660
39949
|
"type" : "string"
|
|
39661
39950
|
},
|
|
@@ -39789,6 +40078,9 @@
|
|
|
39789
40078
|
"descriptionFr" : {
|
|
39790
40079
|
"type" : "string"
|
|
39791
40080
|
},
|
|
40081
|
+
"type" : {
|
|
40082
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
40083
|
+
},
|
|
39792
40084
|
"url" : {
|
|
39793
40085
|
"type" : "string"
|
|
39794
40086
|
},
|
|
@@ -39869,6 +40161,9 @@
|
|
|
39869
40161
|
"descriptionFr" : {
|
|
39870
40162
|
"type" : "string"
|
|
39871
40163
|
},
|
|
40164
|
+
"type" : {
|
|
40165
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
40166
|
+
},
|
|
39872
40167
|
"url" : {
|
|
39873
40168
|
"type" : "string"
|
|
39874
40169
|
},
|
|
@@ -40264,6 +40559,10 @@
|
|
|
40264
40559
|
"enum" : [ "pending", "done" ],
|
|
40265
40560
|
"type" : "string"
|
|
40266
40561
|
},
|
|
40562
|
+
"ToolPresetType" : {
|
|
40563
|
+
"enum" : [ "mcp", "tool_api", "openapi" ],
|
|
40564
|
+
"type" : "string"
|
|
40565
|
+
},
|
|
40267
40566
|
"ToolPresetTransport" : {
|
|
40268
40567
|
"enum" : [ "http", "sse" ],
|
|
40269
40568
|
"type" : "string"
|