@breign/client 1.0.131 → 1.0.132
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 +108 -1
- package/dist/apis/AiGatewayApi.js +218 -1
- package/dist/models/AiGatewayV1CreditsUio.d.ts +38 -0
- package/dist/models/AiGatewayV1CreditsUio.js +52 -0
- package/dist/models/AiGatewayV1EndpointPricingUio.d.ts +50 -0
- package/dist/models/AiGatewayV1EndpointPricingUio.js +54 -0
- package/dist/models/AiGatewayV1EndpointUio.d.ts +111 -0
- package/dist/models/AiGatewayV1EndpointUio.js +85 -0
- package/dist/models/AiGatewayV1GenerationDataUio.d.ts +146 -0
- package/dist/models/AiGatewayV1GenerationDataUio.js +96 -0
- package/dist/models/AiGatewayV1GenerationUio.d.ts +33 -0
- package/dist/models/AiGatewayV1GenerationUio.js +51 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.d.ts +56 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.js +56 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataUio.d.ts +70 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataUio.js +72 -0
- package/dist/models/AiGatewayV1ModelEndpointsUio.d.ts +33 -0
- package/dist/models/AiGatewayV1ModelEndpointsUio.js +51 -0
- package/dist/models/AiGatewayV1ModelListUio.d.ts +46 -0
- package/dist/models/AiGatewayV1ModelListUio.js +62 -0
- package/dist/models/AiGatewayV1ModelPricingUio.d.ts +50 -0
- package/dist/models/AiGatewayV1ModelPricingUio.js +54 -0
- package/dist/models/AiGatewayV1ModelUio.d.ts +114 -0
- package/dist/models/AiGatewayV1ModelUio.js +99 -0
- package/dist/models/AiGatewayV1ReportRowUio.d.ts +140 -0
- package/dist/models/AiGatewayV1ReportRowUio.js +104 -0
- package/dist/models/AiGatewayV1ReportUio.d.ts +33 -0
- package/dist/models/AiGatewayV1ReportUio.js +51 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/dist/openapi.json +1176 -364
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -12746,10 +12746,10 @@
|
|
|
12746
12746
|
"tags" : [ "ai-gateway" ]
|
|
12747
12747
|
}
|
|
12748
12748
|
},
|
|
12749
|
-
"/organizations/{organizationId}/
|
|
12750
|
-
"
|
|
12751
|
-
"description" : "
|
|
12752
|
-
"operationId" : "
|
|
12749
|
+
"/organizations/{organizationId}/ai-gateway/v1/models" : {
|
|
12750
|
+
"get" : {
|
|
12751
|
+
"description" : "Équivalent de `GET /v1/models` de l'AI Gateway Vercel, monté sous le préfixe organisation. Liste les modèles des providers configurés pour l'organisation.",
|
|
12752
|
+
"operationId" : "listAiGatewayV1Models",
|
|
12753
12753
|
"parameters" : [ {
|
|
12754
12754
|
"description" : "ID of the organization",
|
|
12755
12755
|
"in" : "path",
|
|
@@ -12759,34 +12759,18 @@
|
|
|
12759
12759
|
"type" : "string"
|
|
12760
12760
|
}
|
|
12761
12761
|
} ],
|
|
12762
|
-
"requestBody" : {
|
|
12763
|
-
"content" : {
|
|
12764
|
-
"application/json" : {
|
|
12765
|
-
"schema" : {
|
|
12766
|
-
"$ref" : "#/components/schemas/OpenAiChatCompletionRequest"
|
|
12767
|
-
}
|
|
12768
|
-
}
|
|
12769
|
-
},
|
|
12770
|
-
"required" : true
|
|
12771
|
-
},
|
|
12772
12762
|
"responses" : {
|
|
12773
12763
|
"200" : {
|
|
12774
12764
|
"content" : {
|
|
12775
12765
|
"application/json" : {
|
|
12776
12766
|
"schema" : {
|
|
12777
|
-
"$ref" : "#/components/schemas/
|
|
12778
|
-
}
|
|
12779
|
-
},
|
|
12780
|
-
"text/plain" : {
|
|
12781
|
-
"schema" : {
|
|
12782
|
-
"description" : "Flux de chunks JSON, renvoyé lorsque `stream` vaut true.",
|
|
12783
|
-
"type" : "string"
|
|
12767
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelList"
|
|
12784
12768
|
}
|
|
12785
12769
|
}
|
|
12786
12770
|
},
|
|
12787
|
-
"description" : "
|
|
12771
|
+
"description" : "Model list"
|
|
12788
12772
|
},
|
|
12789
|
-
"
|
|
12773
|
+
"401" : {
|
|
12790
12774
|
"content" : {
|
|
12791
12775
|
"application/json" : {
|
|
12792
12776
|
"schema" : {
|
|
@@ -12794,9 +12778,9 @@
|
|
|
12794
12778
|
}
|
|
12795
12779
|
}
|
|
12796
12780
|
},
|
|
12797
|
-
"description" : "
|
|
12781
|
+
"description" : "Unauthenticated"
|
|
12798
12782
|
},
|
|
12799
|
-
"
|
|
12783
|
+
"403" : {
|
|
12800
12784
|
"content" : {
|
|
12801
12785
|
"application/json" : {
|
|
12802
12786
|
"schema" : {
|
|
@@ -12804,9 +12788,54 @@
|
|
|
12804
12788
|
}
|
|
12805
12789
|
}
|
|
12806
12790
|
},
|
|
12807
|
-
"description" : "
|
|
12791
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
12792
|
+
}
|
|
12793
|
+
},
|
|
12794
|
+
"summary" : "List models (AI Gateway REST API)",
|
|
12795
|
+
"tags" : [ "ai-gateway" ]
|
|
12796
|
+
}
|
|
12797
|
+
},
|
|
12798
|
+
"/organizations/{organizationId}/ai-gateway/v1/models/{creator}/{model}/endpoints" : {
|
|
12799
|
+
"get" : {
|
|
12800
|
+
"description" : "Équivalent de `GET /v1/models/{creator}/{model}/endpoints`. Un modèle n'étant servi que par le provider qui le déclare dans l'organisation, la liste contient toujours un seul endpoint. Les identifiants Breign n'ayant pas toujours de créateur, `{creator}/{model}` est résolu d'abord tel quel, puis sur le seul segment `{model}`.",
|
|
12801
|
+
"operationId" : "getAiGatewayV1ModelEndpoints",
|
|
12802
|
+
"parameters" : [ {
|
|
12803
|
+
"description" : "ID of the organization",
|
|
12804
|
+
"in" : "path",
|
|
12805
|
+
"name" : "organizationId",
|
|
12806
|
+
"required" : true,
|
|
12807
|
+
"schema" : {
|
|
12808
|
+
"type" : "string"
|
|
12809
|
+
}
|
|
12810
|
+
}, {
|
|
12811
|
+
"description" : "Premier segment de l'identifiant de modèle",
|
|
12812
|
+
"in" : "path",
|
|
12813
|
+
"name" : "creator",
|
|
12814
|
+
"required" : true,
|
|
12815
|
+
"schema" : {
|
|
12816
|
+
"type" : "string"
|
|
12817
|
+
}
|
|
12818
|
+
}, {
|
|
12819
|
+
"description" : "Second segment de l'identifiant de modèle",
|
|
12820
|
+
"in" : "path",
|
|
12821
|
+
"name" : "model",
|
|
12822
|
+
"required" : true,
|
|
12823
|
+
"schema" : {
|
|
12824
|
+
"type" : "string"
|
|
12825
|
+
}
|
|
12826
|
+
} ],
|
|
12827
|
+
"responses" : {
|
|
12828
|
+
"200" : {
|
|
12829
|
+
"content" : {
|
|
12830
|
+
"application/json" : {
|
|
12831
|
+
"schema" : {
|
|
12832
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelEndpoints"
|
|
12833
|
+
}
|
|
12834
|
+
}
|
|
12835
|
+
},
|
|
12836
|
+
"description" : "Model endpoints"
|
|
12808
12837
|
},
|
|
12809
|
-
"
|
|
12838
|
+
"401" : {
|
|
12810
12839
|
"content" : {
|
|
12811
12840
|
"application/json" : {
|
|
12812
12841
|
"schema" : {
|
|
@@ -12814,9 +12843,9 @@
|
|
|
12814
12843
|
}
|
|
12815
12844
|
}
|
|
12816
12845
|
},
|
|
12817
|
-
"description" : "
|
|
12846
|
+
"description" : "Unauthenticated"
|
|
12818
12847
|
},
|
|
12819
|
-
"
|
|
12848
|
+
"403" : {
|
|
12820
12849
|
"content" : {
|
|
12821
12850
|
"application/json" : {
|
|
12822
12851
|
"schema" : {
|
|
@@ -12824,9 +12853,9 @@
|
|
|
12824
12853
|
}
|
|
12825
12854
|
}
|
|
12826
12855
|
},
|
|
12827
|
-
"description" : "
|
|
12856
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
12828
12857
|
},
|
|
12829
|
-
"
|
|
12858
|
+
"404" : {
|
|
12830
12859
|
"content" : {
|
|
12831
12860
|
"application/json" : {
|
|
12832
12861
|
"schema" : {
|
|
@@ -12834,72 +12863,81 @@
|
|
|
12834
12863
|
}
|
|
12835
12864
|
}
|
|
12836
12865
|
},
|
|
12837
|
-
"description" : "
|
|
12866
|
+
"description" : "Model not found"
|
|
12838
12867
|
}
|
|
12839
12868
|
},
|
|
12840
|
-
"summary" : "
|
|
12869
|
+
"summary" : "Get model endpoints (AI Gateway REST API)",
|
|
12841
12870
|
"tags" : [ "ai-gateway" ]
|
|
12842
12871
|
}
|
|
12843
12872
|
},
|
|
12844
|
-
"/
|
|
12845
|
-
"
|
|
12846
|
-
"description" : "
|
|
12847
|
-
"operationId" : "
|
|
12873
|
+
"/organizations/{organizationId}/ai-gateway/v1/credits" : {
|
|
12874
|
+
"get" : {
|
|
12875
|
+
"description" : "Équivalent de `GET /v1/credits`. `total_used` est la dépense cumulée de l'organisation, calculée depuis la configuration de prix. `balance` est toujours null : Breign n'a pas de notion de crédits prépayés.",
|
|
12876
|
+
"operationId" : "getAiGatewayV1Credits",
|
|
12877
|
+
"parameters" : [ {
|
|
12878
|
+
"description" : "ID of the organization",
|
|
12879
|
+
"in" : "path",
|
|
12880
|
+
"name" : "organizationId",
|
|
12881
|
+
"required" : true,
|
|
12882
|
+
"schema" : {
|
|
12883
|
+
"type" : "string"
|
|
12884
|
+
}
|
|
12885
|
+
} ],
|
|
12848
12886
|
"responses" : {
|
|
12849
12887
|
"200" : {
|
|
12850
12888
|
"content" : {
|
|
12851
12889
|
"application/json" : {
|
|
12852
12890
|
"schema" : {
|
|
12853
|
-
"$ref" : "#/components/schemas/
|
|
12891
|
+
"$ref" : "#/components/schemas/AiGatewayV1Credits"
|
|
12854
12892
|
}
|
|
12855
12893
|
}
|
|
12856
12894
|
},
|
|
12857
|
-
"description" : "
|
|
12895
|
+
"description" : "Credit balance"
|
|
12858
12896
|
},
|
|
12859
12897
|
"401" : {
|
|
12860
|
-
"
|
|
12898
|
+
"content" : {
|
|
12899
|
+
"application/json" : {
|
|
12900
|
+
"schema" : {
|
|
12901
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12902
|
+
}
|
|
12903
|
+
}
|
|
12904
|
+
},
|
|
12905
|
+
"description" : "Unauthenticated"
|
|
12861
12906
|
},
|
|
12862
12907
|
"403" : {
|
|
12863
|
-
"
|
|
12908
|
+
"content" : {
|
|
12909
|
+
"application/json" : {
|
|
12910
|
+
"schema" : {
|
|
12911
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12912
|
+
}
|
|
12913
|
+
}
|
|
12914
|
+
},
|
|
12915
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
12864
12916
|
}
|
|
12865
12917
|
},
|
|
12866
|
-
"summary" : "
|
|
12867
|
-
"tags" : [ "
|
|
12868
|
-
}
|
|
12918
|
+
"summary" : "Check credit balance (AI Gateway REST API)",
|
|
12919
|
+
"tags" : [ "ai-gateway" ]
|
|
12920
|
+
}
|
|
12921
|
+
},
|
|
12922
|
+
"/organizations/{organizationId}/ai-gateway/v1/generation" : {
|
|
12869
12923
|
"get" : {
|
|
12870
|
-
"description" : "
|
|
12871
|
-
"operationId" : "
|
|
12924
|
+
"description" : "Équivalent de `GET /v1/generation`. L'identifiant est renvoyé comme `id` des complétions compatibles OpenAI, injecté dans le premier chunk en streaming, et exposé dans `providerMetadata.gateway.generationId` sur les routes AI SDK.",
|
|
12925
|
+
"operationId" : "getAiGatewayV1Generation",
|
|
12872
12926
|
"parameters" : [ {
|
|
12873
|
-
"description" : "
|
|
12874
|
-
"in" : "
|
|
12875
|
-
"name" : "
|
|
12876
|
-
"
|
|
12877
|
-
"default" : 1,
|
|
12878
|
-
"minimum" : 1,
|
|
12879
|
-
"type" : "integer"
|
|
12880
|
-
}
|
|
12881
|
-
}, {
|
|
12882
|
-
"description" : "Maximum number of tool presets to return",
|
|
12883
|
-
"in" : "query",
|
|
12884
|
-
"name" : "limit",
|
|
12885
|
-
"schema" : {
|
|
12886
|
-
"default" : 25,
|
|
12887
|
-
"maximum" : 100,
|
|
12888
|
-
"minimum" : 1,
|
|
12889
|
-
"type" : "integer"
|
|
12890
|
-
}
|
|
12891
|
-
}, {
|
|
12892
|
-
"description" : "Search tool presets by name, slug, url or description",
|
|
12893
|
-
"in" : "query",
|
|
12894
|
-
"name" : "search",
|
|
12927
|
+
"description" : "ID of the organization",
|
|
12928
|
+
"in" : "path",
|
|
12929
|
+
"name" : "organizationId",
|
|
12930
|
+
"required" : true,
|
|
12895
12931
|
"schema" : {
|
|
12896
12932
|
"type" : "string"
|
|
12897
12933
|
}
|
|
12898
12934
|
}, {
|
|
12899
|
-
"description" : "
|
|
12935
|
+
"description" : "Identifiant de génération, au format `gen_<ulid>`",
|
|
12900
12936
|
"in" : "query",
|
|
12901
|
-
"name" : "
|
|
12937
|
+
"name" : "id",
|
|
12938
|
+
"required" : true,
|
|
12902
12939
|
"schema" : {
|
|
12940
|
+
"pattern" : "^gen_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
12903
12941
|
"type" : "string"
|
|
12904
12942
|
}
|
|
12905
12943
|
} ],
|
|
@@ -12908,133 +12946,472 @@
|
|
|
12908
12946
|
"content" : {
|
|
12909
12947
|
"application/json" : {
|
|
12910
12948
|
"schema" : {
|
|
12911
|
-
"$ref" : "#/components/schemas/
|
|
12949
|
+
"$ref" : "#/components/schemas/AiGatewayV1Generation"
|
|
12912
12950
|
}
|
|
12913
12951
|
}
|
|
12914
12952
|
},
|
|
12915
|
-
"description" : "
|
|
12916
|
-
},
|
|
12917
|
-
"401" : {
|
|
12918
|
-
"description" : "Unauthorized"
|
|
12919
|
-
},
|
|
12920
|
-
"403" : {
|
|
12921
|
-
"description" : "Forbidden"
|
|
12922
|
-
}
|
|
12923
|
-
},
|
|
12924
|
-
"summary" : "List tool presets",
|
|
12925
|
-
"tags" : [ "admin" ]
|
|
12926
|
-
},
|
|
12927
|
-
"post" : {
|
|
12928
|
-
"operationId" : "createAdminToolPreset",
|
|
12929
|
-
"requestBody" : {
|
|
12930
|
-
"content" : {
|
|
12931
|
-
"application/json" : {
|
|
12932
|
-
"schema" : {
|
|
12933
|
-
"$ref" : "#/components/schemas/ToolPresetCreateRequest"
|
|
12934
|
-
}
|
|
12935
|
-
}
|
|
12953
|
+
"description" : "Generation details"
|
|
12936
12954
|
},
|
|
12937
|
-
"
|
|
12938
|
-
},
|
|
12939
|
-
"responses" : {
|
|
12940
|
-
"201" : {
|
|
12955
|
+
"400" : {
|
|
12941
12956
|
"content" : {
|
|
12942
12957
|
"application/json" : {
|
|
12943
12958
|
"schema" : {
|
|
12944
|
-
"$ref" : "#/components/schemas/
|
|
12959
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12945
12960
|
}
|
|
12946
12961
|
}
|
|
12947
12962
|
},
|
|
12948
|
-
"description" : "
|
|
12949
|
-
},
|
|
12950
|
-
"400" : {
|
|
12951
|
-
"description" : "Invalid payload"
|
|
12963
|
+
"description" : "Invalid or missing id parameter"
|
|
12952
12964
|
},
|
|
12953
12965
|
"401" : {
|
|
12954
|
-
"description" : "Unauthorized"
|
|
12955
|
-
},
|
|
12956
|
-
"403" : {
|
|
12957
|
-
"description" : "Forbidden"
|
|
12958
|
-
},
|
|
12959
|
-
"409" : {
|
|
12960
|
-
"description" : "TOOL_PRESET_SLUG_ALREADY_EXISTS"
|
|
12961
|
-
}
|
|
12962
|
-
},
|
|
12963
|
-
"summary" : "Create a tool preset",
|
|
12964
|
-
"tags" : [ "admin" ]
|
|
12965
|
-
}
|
|
12966
|
-
},
|
|
12967
|
-
"/admin/tool-presets/export" : {
|
|
12968
|
-
"get" : {
|
|
12969
|
-
"description" : "Returns the whole shared tool library at once, without pagination. The payload can be fed back as-is to /admin/tool-presets/import.",
|
|
12970
|
-
"operationId" : "exportAdminToolPresets",
|
|
12971
|
-
"responses" : {
|
|
12972
|
-
"200" : {
|
|
12973
12966
|
"content" : {
|
|
12974
12967
|
"application/json" : {
|
|
12975
12968
|
"schema" : {
|
|
12976
|
-
"
|
|
12977
|
-
"$ref" : "#/components/schemas/ToolPreset"
|
|
12978
|
-
},
|
|
12979
|
-
"type" : "array"
|
|
12969
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12980
12970
|
}
|
|
12981
12971
|
}
|
|
12982
12972
|
},
|
|
12983
|
-
"description" : "
|
|
12984
|
-
},
|
|
12985
|
-
"401" : {
|
|
12986
|
-
"description" : "Unauthorized"
|
|
12973
|
+
"description" : "Unauthenticated"
|
|
12987
12974
|
},
|
|
12988
12975
|
"403" : {
|
|
12989
|
-
"
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
}
|
|
12995
|
-
},
|
|
12996
|
-
"/admin/tool-presets/import" : {
|
|
12997
|
-
"post" : {
|
|
12998
|
-
"description" : "Replaces the presets that already exist (matched on their slug) and adds the new ones. Presets absent from the payload are left untouched.",
|
|
12999
|
-
"operationId" : "importAdminToolPresets",
|
|
13000
|
-
"requestBody" : {
|
|
13001
|
-
"content" : {
|
|
13002
|
-
"application/json" : {
|
|
13003
|
-
"schema" : {
|
|
13004
|
-
"$ref" : "#/components/schemas/ToolPresetImportRequest"
|
|
12976
|
+
"content" : {
|
|
12977
|
+
"application/json" : {
|
|
12978
|
+
"schema" : {
|
|
12979
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12980
|
+
}
|
|
13005
12981
|
}
|
|
13006
|
-
}
|
|
12982
|
+
},
|
|
12983
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
13007
12984
|
},
|
|
13008
|
-
"
|
|
13009
|
-
},
|
|
13010
|
-
"responses" : {
|
|
13011
|
-
"200" : {
|
|
12985
|
+
"404" : {
|
|
13012
12986
|
"content" : {
|
|
13013
12987
|
"application/json" : {
|
|
13014
12988
|
"schema" : {
|
|
13015
|
-
"$ref" : "#/components/schemas/
|
|
12989
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13016
12990
|
}
|
|
13017
12991
|
}
|
|
13018
12992
|
},
|
|
13019
|
-
"description" : "
|
|
13020
|
-
},
|
|
13021
|
-
"400" : {
|
|
13022
|
-
"description" : "Invalid payload or duplicated slug"
|
|
13023
|
-
},
|
|
13024
|
-
"401" : {
|
|
13025
|
-
"description" : "Unauthorized"
|
|
13026
|
-
},
|
|
13027
|
-
"403" : {
|
|
13028
|
-
"description" : "Forbidden"
|
|
12993
|
+
"description" : "Usage event not found"
|
|
13029
12994
|
}
|
|
13030
12995
|
},
|
|
13031
|
-
"summary" : "
|
|
13032
|
-
"tags" : [ "
|
|
12996
|
+
"summary" : "Look up a generation (AI Gateway REST API)",
|
|
12997
|
+
"tags" : [ "ai-gateway" ]
|
|
13033
12998
|
}
|
|
13034
12999
|
},
|
|
13035
|
-
"/
|
|
13036
|
-
"
|
|
13037
|
-
"
|
|
13000
|
+
"/organizations/{organizationId}/ai-gateway/v1/report" : {
|
|
13001
|
+
"get" : {
|
|
13002
|
+
"description" : "Équivalent de `GET /v1/report`. L'attribution applicative provient des en-têtes `ai-reporting-user` et `ai-reporting-tags` posés sur les appels d'inférence. Réservé aux administrateurs de l'organisation.",
|
|
13003
|
+
"operationId" : "getAiGatewayV1Report",
|
|
13004
|
+
"parameters" : [ {
|
|
13005
|
+
"description" : "ID of the organization",
|
|
13006
|
+
"in" : "path",
|
|
13007
|
+
"name" : "organizationId",
|
|
13008
|
+
"required" : true,
|
|
13009
|
+
"schema" : {
|
|
13010
|
+
"type" : "string"
|
|
13011
|
+
}
|
|
13012
|
+
}, {
|
|
13013
|
+
"description" : "Début de période inclus, au format YYYY-MM-DD (UTC)",
|
|
13014
|
+
"in" : "query",
|
|
13015
|
+
"name" : "start_date",
|
|
13016
|
+
"required" : true,
|
|
13017
|
+
"schema" : {
|
|
13018
|
+
"type" : "string"
|
|
13019
|
+
}
|
|
13020
|
+
}, {
|
|
13021
|
+
"description" : "Fin de période incluse, au format YYYY-MM-DD (UTC)",
|
|
13022
|
+
"in" : "query",
|
|
13023
|
+
"name" : "end_date",
|
|
13024
|
+
"required" : true,
|
|
13025
|
+
"schema" : {
|
|
13026
|
+
"type" : "string"
|
|
13027
|
+
}
|
|
13028
|
+
}, {
|
|
13029
|
+
"description" : "Dimension d'agrégation. `credential_type` vaut toujours `system` et `zero_data_retention` toujours `false` : Breign ne sert pas d'appels BYOK et n'expose pas d'option ZDR.",
|
|
13030
|
+
"in" : "query",
|
|
13031
|
+
"name" : "group_by",
|
|
13032
|
+
"schema" : {
|
|
13033
|
+
"default" : "day",
|
|
13034
|
+
"enum" : [ "day", "user", "model", "tag", "provider", "credential_type", "zero_data_retention", "api_key_name" ],
|
|
13035
|
+
"type" : "string"
|
|
13036
|
+
}
|
|
13037
|
+
}, {
|
|
13038
|
+
"description" : "Granularité temporelle, applicable seulement à group_by=day",
|
|
13039
|
+
"in" : "query",
|
|
13040
|
+
"name" : "date_part",
|
|
13041
|
+
"schema" : {
|
|
13042
|
+
"default" : "day",
|
|
13043
|
+
"enum" : [ "day", "hour" ],
|
|
13044
|
+
"type" : "string"
|
|
13045
|
+
}
|
|
13046
|
+
}, {
|
|
13047
|
+
"in" : "query",
|
|
13048
|
+
"name" : "user_id",
|
|
13049
|
+
"schema" : {
|
|
13050
|
+
"type" : "string"
|
|
13051
|
+
}
|
|
13052
|
+
}, {
|
|
13053
|
+
"in" : "query",
|
|
13054
|
+
"name" : "model",
|
|
13055
|
+
"schema" : {
|
|
13056
|
+
"type" : "string"
|
|
13057
|
+
}
|
|
13058
|
+
}, {
|
|
13059
|
+
"in" : "query",
|
|
13060
|
+
"name" : "provider",
|
|
13061
|
+
"schema" : {
|
|
13062
|
+
"type" : "string"
|
|
13063
|
+
}
|
|
13064
|
+
}, {
|
|
13065
|
+
"description" : "Étiquettes séparées par des virgules",
|
|
13066
|
+
"in" : "query",
|
|
13067
|
+
"name" : "tags",
|
|
13068
|
+
"schema" : {
|
|
13069
|
+
"type" : "string"
|
|
13070
|
+
}
|
|
13071
|
+
}, {
|
|
13072
|
+
"in" : "query",
|
|
13073
|
+
"name" : "tags_match",
|
|
13074
|
+
"schema" : {
|
|
13075
|
+
"default" : "any",
|
|
13076
|
+
"enum" : [ "any", "all" ],
|
|
13077
|
+
"type" : "string"
|
|
13078
|
+
}
|
|
13079
|
+
} ],
|
|
13080
|
+
"responses" : {
|
|
13081
|
+
"200" : {
|
|
13082
|
+
"content" : {
|
|
13083
|
+
"application/json" : {
|
|
13084
|
+
"schema" : {
|
|
13085
|
+
"$ref" : "#/components/schemas/AiGatewayV1Report"
|
|
13086
|
+
}
|
|
13087
|
+
}
|
|
13088
|
+
},
|
|
13089
|
+
"description" : "Spend report"
|
|
13090
|
+
},
|
|
13091
|
+
"400" : {
|
|
13092
|
+
"content" : {
|
|
13093
|
+
"application/json" : {
|
|
13094
|
+
"schema" : {
|
|
13095
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13096
|
+
}
|
|
13097
|
+
}
|
|
13098
|
+
},
|
|
13099
|
+
"description" : "Missing or invalid parameters"
|
|
13100
|
+
},
|
|
13101
|
+
"401" : {
|
|
13102
|
+
"content" : {
|
|
13103
|
+
"application/json" : {
|
|
13104
|
+
"schema" : {
|
|
13105
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13106
|
+
}
|
|
13107
|
+
}
|
|
13108
|
+
},
|
|
13109
|
+
"description" : "Unauthenticated"
|
|
13110
|
+
},
|
|
13111
|
+
"403" : {
|
|
13112
|
+
"content" : {
|
|
13113
|
+
"application/json" : {
|
|
13114
|
+
"schema" : {
|
|
13115
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13116
|
+
}
|
|
13117
|
+
}
|
|
13118
|
+
},
|
|
13119
|
+
"description" : "Forbidden — the caller is not an admin of the organization"
|
|
13120
|
+
}
|
|
13121
|
+
},
|
|
13122
|
+
"summary" : "Query spend report (AI Gateway REST API)",
|
|
13123
|
+
"tags" : [ "ai-gateway" ]
|
|
13124
|
+
}
|
|
13125
|
+
},
|
|
13126
|
+
"/organizations/{organizationId}/openai/chat/completions" : {
|
|
13127
|
+
"post" : {
|
|
13128
|
+
"description" : "OpenAI-compatible chat completion. Contrairement à `/ai-gateway/chat/completions`, la réponse OpenAI native est relayée sans transformation, `stream_options` est accepté, et la consommation de tokens est enregistrée dans les métriques de l'organisation.\n\nToutes les erreurs utilisent l'enveloppe OpenAI `{ error: { message } }`.",
|
|
13129
|
+
"operationId" : "createOpenAiChatCompletion",
|
|
13130
|
+
"parameters" : [ {
|
|
13131
|
+
"description" : "ID of the organization",
|
|
13132
|
+
"in" : "path",
|
|
13133
|
+
"name" : "organizationId",
|
|
13134
|
+
"required" : true,
|
|
13135
|
+
"schema" : {
|
|
13136
|
+
"type" : "string"
|
|
13137
|
+
}
|
|
13138
|
+
} ],
|
|
13139
|
+
"requestBody" : {
|
|
13140
|
+
"content" : {
|
|
13141
|
+
"application/json" : {
|
|
13142
|
+
"schema" : {
|
|
13143
|
+
"$ref" : "#/components/schemas/OpenAiChatCompletionRequest"
|
|
13144
|
+
}
|
|
13145
|
+
}
|
|
13146
|
+
},
|
|
13147
|
+
"required" : true
|
|
13148
|
+
},
|
|
13149
|
+
"responses" : {
|
|
13150
|
+
"200" : {
|
|
13151
|
+
"content" : {
|
|
13152
|
+
"application/json" : {
|
|
13153
|
+
"schema" : {
|
|
13154
|
+
"$ref" : "#/components/schemas/OpenAiChatCompletionResponse"
|
|
13155
|
+
}
|
|
13156
|
+
},
|
|
13157
|
+
"text/plain" : {
|
|
13158
|
+
"schema" : {
|
|
13159
|
+
"description" : "Flux de chunks JSON, renvoyé lorsque `stream` vaut true.",
|
|
13160
|
+
"type" : "string"
|
|
13161
|
+
}
|
|
13162
|
+
}
|
|
13163
|
+
},
|
|
13164
|
+
"description" : "Completion générée. Avec `stream: true`, la réponse est un flux `text/plain` de chunks JSON OpenAI."
|
|
13165
|
+
},
|
|
13166
|
+
"400" : {
|
|
13167
|
+
"content" : {
|
|
13168
|
+
"application/json" : {
|
|
13169
|
+
"schema" : {
|
|
13170
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13171
|
+
}
|
|
13172
|
+
}
|
|
13173
|
+
},
|
|
13174
|
+
"description" : "Invalid request body"
|
|
13175
|
+
},
|
|
13176
|
+
"401" : {
|
|
13177
|
+
"content" : {
|
|
13178
|
+
"application/json" : {
|
|
13179
|
+
"schema" : {
|
|
13180
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13181
|
+
}
|
|
13182
|
+
}
|
|
13183
|
+
},
|
|
13184
|
+
"description" : "Unauthenticated — no caller identity could be established"
|
|
13185
|
+
},
|
|
13186
|
+
"403" : {
|
|
13187
|
+
"content" : {
|
|
13188
|
+
"application/json" : {
|
|
13189
|
+
"schema" : {
|
|
13190
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13191
|
+
}
|
|
13192
|
+
}
|
|
13193
|
+
},
|
|
13194
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
13195
|
+
},
|
|
13196
|
+
"404" : {
|
|
13197
|
+
"content" : {
|
|
13198
|
+
"application/json" : {
|
|
13199
|
+
"schema" : {
|
|
13200
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13201
|
+
}
|
|
13202
|
+
}
|
|
13203
|
+
},
|
|
13204
|
+
"description" : "Model not found — aucun provider de l'organisation n'expose ce modèle"
|
|
13205
|
+
},
|
|
13206
|
+
"500" : {
|
|
13207
|
+
"content" : {
|
|
13208
|
+
"application/json" : {
|
|
13209
|
+
"schema" : {
|
|
13210
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
13211
|
+
}
|
|
13212
|
+
}
|
|
13213
|
+
},
|
|
13214
|
+
"description" : "Internal server error"
|
|
13215
|
+
}
|
|
13216
|
+
},
|
|
13217
|
+
"summary" : "Create a chat completion using the native OpenAI client",
|
|
13218
|
+
"tags" : [ "ai-gateway" ]
|
|
13219
|
+
}
|
|
13220
|
+
},
|
|
13221
|
+
"/admin/tool-presets" : {
|
|
13222
|
+
"delete" : {
|
|
13223
|
+
"description" : "Clears the shared tool library",
|
|
13224
|
+
"operationId" : "deleteAllAdminToolPresets",
|
|
13225
|
+
"responses" : {
|
|
13226
|
+
"200" : {
|
|
13227
|
+
"content" : {
|
|
13228
|
+
"application/json" : {
|
|
13229
|
+
"schema" : {
|
|
13230
|
+
"$ref" : "#/components/schemas/ToolPresetDeleteAllResponse"
|
|
13231
|
+
}
|
|
13232
|
+
}
|
|
13233
|
+
},
|
|
13234
|
+
"description" : "Tool library cleared"
|
|
13235
|
+
},
|
|
13236
|
+
"401" : {
|
|
13237
|
+
"description" : "Unauthorized"
|
|
13238
|
+
},
|
|
13239
|
+
"403" : {
|
|
13240
|
+
"description" : "Forbidden"
|
|
13241
|
+
}
|
|
13242
|
+
},
|
|
13243
|
+
"summary" : "Delete every tool preset",
|
|
13244
|
+
"tags" : [ "admin" ]
|
|
13245
|
+
},
|
|
13246
|
+
"get" : {
|
|
13247
|
+
"description" : "Returns a page of the shared tool library, including inactive presets. Use /admin/tool-presets/export to retrieve the whole library at once.",
|
|
13248
|
+
"operationId" : "getAdminToolPresets",
|
|
13249
|
+
"parameters" : [ {
|
|
13250
|
+
"description" : "Page number, starting at 1",
|
|
13251
|
+
"in" : "query",
|
|
13252
|
+
"name" : "page",
|
|
13253
|
+
"schema" : {
|
|
13254
|
+
"default" : 1,
|
|
13255
|
+
"minimum" : 1,
|
|
13256
|
+
"type" : "integer"
|
|
13257
|
+
}
|
|
13258
|
+
}, {
|
|
13259
|
+
"description" : "Maximum number of tool presets to return",
|
|
13260
|
+
"in" : "query",
|
|
13261
|
+
"name" : "limit",
|
|
13262
|
+
"schema" : {
|
|
13263
|
+
"default" : 25,
|
|
13264
|
+
"maximum" : 100,
|
|
13265
|
+
"minimum" : 1,
|
|
13266
|
+
"type" : "integer"
|
|
13267
|
+
}
|
|
13268
|
+
}, {
|
|
13269
|
+
"description" : "Search tool presets by name, slug, url or description",
|
|
13270
|
+
"in" : "query",
|
|
13271
|
+
"name" : "search",
|
|
13272
|
+
"schema" : {
|
|
13273
|
+
"type" : "string"
|
|
13274
|
+
}
|
|
13275
|
+
}, {
|
|
13276
|
+
"description" : "Filter tool presets by category",
|
|
13277
|
+
"in" : "query",
|
|
13278
|
+
"name" : "category",
|
|
13279
|
+
"schema" : {
|
|
13280
|
+
"type" : "string"
|
|
13281
|
+
}
|
|
13282
|
+
} ],
|
|
13283
|
+
"responses" : {
|
|
13284
|
+
"200" : {
|
|
13285
|
+
"content" : {
|
|
13286
|
+
"application/json" : {
|
|
13287
|
+
"schema" : {
|
|
13288
|
+
"$ref" : "#/components/schemas/ToolPresetPage"
|
|
13289
|
+
}
|
|
13290
|
+
}
|
|
13291
|
+
},
|
|
13292
|
+
"description" : "Tool presets retrieved successfully"
|
|
13293
|
+
},
|
|
13294
|
+
"401" : {
|
|
13295
|
+
"description" : "Unauthorized"
|
|
13296
|
+
},
|
|
13297
|
+
"403" : {
|
|
13298
|
+
"description" : "Forbidden"
|
|
13299
|
+
}
|
|
13300
|
+
},
|
|
13301
|
+
"summary" : "List tool presets",
|
|
13302
|
+
"tags" : [ "admin" ]
|
|
13303
|
+
},
|
|
13304
|
+
"post" : {
|
|
13305
|
+
"operationId" : "createAdminToolPreset",
|
|
13306
|
+
"requestBody" : {
|
|
13307
|
+
"content" : {
|
|
13308
|
+
"application/json" : {
|
|
13309
|
+
"schema" : {
|
|
13310
|
+
"$ref" : "#/components/schemas/ToolPresetCreateRequest"
|
|
13311
|
+
}
|
|
13312
|
+
}
|
|
13313
|
+
},
|
|
13314
|
+
"required" : true
|
|
13315
|
+
},
|
|
13316
|
+
"responses" : {
|
|
13317
|
+
"201" : {
|
|
13318
|
+
"content" : {
|
|
13319
|
+
"application/json" : {
|
|
13320
|
+
"schema" : {
|
|
13321
|
+
"$ref" : "#/components/schemas/ToolPreset"
|
|
13322
|
+
}
|
|
13323
|
+
}
|
|
13324
|
+
},
|
|
13325
|
+
"description" : "Tool preset created"
|
|
13326
|
+
},
|
|
13327
|
+
"400" : {
|
|
13328
|
+
"description" : "Invalid payload"
|
|
13329
|
+
},
|
|
13330
|
+
"401" : {
|
|
13331
|
+
"description" : "Unauthorized"
|
|
13332
|
+
},
|
|
13333
|
+
"403" : {
|
|
13334
|
+
"description" : "Forbidden"
|
|
13335
|
+
},
|
|
13336
|
+
"409" : {
|
|
13337
|
+
"description" : "TOOL_PRESET_SLUG_ALREADY_EXISTS"
|
|
13338
|
+
}
|
|
13339
|
+
},
|
|
13340
|
+
"summary" : "Create a tool preset",
|
|
13341
|
+
"tags" : [ "admin" ]
|
|
13342
|
+
}
|
|
13343
|
+
},
|
|
13344
|
+
"/admin/tool-presets/export" : {
|
|
13345
|
+
"get" : {
|
|
13346
|
+
"description" : "Returns the whole shared tool library at once, without pagination. The payload can be fed back as-is to /admin/tool-presets/import.",
|
|
13347
|
+
"operationId" : "exportAdminToolPresets",
|
|
13348
|
+
"responses" : {
|
|
13349
|
+
"200" : {
|
|
13350
|
+
"content" : {
|
|
13351
|
+
"application/json" : {
|
|
13352
|
+
"schema" : {
|
|
13353
|
+
"items" : {
|
|
13354
|
+
"$ref" : "#/components/schemas/ToolPreset"
|
|
13355
|
+
},
|
|
13356
|
+
"type" : "array"
|
|
13357
|
+
}
|
|
13358
|
+
}
|
|
13359
|
+
},
|
|
13360
|
+
"description" : "Tool library exported successfully"
|
|
13361
|
+
},
|
|
13362
|
+
"401" : {
|
|
13363
|
+
"description" : "Unauthorized"
|
|
13364
|
+
},
|
|
13365
|
+
"403" : {
|
|
13366
|
+
"description" : "Forbidden"
|
|
13367
|
+
}
|
|
13368
|
+
},
|
|
13369
|
+
"summary" : "Export every tool preset",
|
|
13370
|
+
"tags" : [ "admin" ]
|
|
13371
|
+
}
|
|
13372
|
+
},
|
|
13373
|
+
"/admin/tool-presets/import" : {
|
|
13374
|
+
"post" : {
|
|
13375
|
+
"description" : "Replaces the presets that already exist (matched on their slug) and adds the new ones. Presets absent from the payload are left untouched.",
|
|
13376
|
+
"operationId" : "importAdminToolPresets",
|
|
13377
|
+
"requestBody" : {
|
|
13378
|
+
"content" : {
|
|
13379
|
+
"application/json" : {
|
|
13380
|
+
"schema" : {
|
|
13381
|
+
"$ref" : "#/components/schemas/ToolPresetImportRequest"
|
|
13382
|
+
}
|
|
13383
|
+
}
|
|
13384
|
+
},
|
|
13385
|
+
"required" : true
|
|
13386
|
+
},
|
|
13387
|
+
"responses" : {
|
|
13388
|
+
"200" : {
|
|
13389
|
+
"content" : {
|
|
13390
|
+
"application/json" : {
|
|
13391
|
+
"schema" : {
|
|
13392
|
+
"$ref" : "#/components/schemas/ToolPresetImportResponse"
|
|
13393
|
+
}
|
|
13394
|
+
}
|
|
13395
|
+
},
|
|
13396
|
+
"description" : "Import completed"
|
|
13397
|
+
},
|
|
13398
|
+
"400" : {
|
|
13399
|
+
"description" : "Invalid payload or duplicated slug"
|
|
13400
|
+
},
|
|
13401
|
+
"401" : {
|
|
13402
|
+
"description" : "Unauthorized"
|
|
13403
|
+
},
|
|
13404
|
+
"403" : {
|
|
13405
|
+
"description" : "Forbidden"
|
|
13406
|
+
}
|
|
13407
|
+
},
|
|
13408
|
+
"summary" : "Import tool presets",
|
|
13409
|
+
"tags" : [ "admin" ]
|
|
13410
|
+
}
|
|
13411
|
+
},
|
|
13412
|
+
"/admin/tool-presets/{toolPresetId}" : {
|
|
13413
|
+
"delete" : {
|
|
13414
|
+
"operationId" : "deleteAdminToolPreset",
|
|
13038
13415
|
"parameters" : [ {
|
|
13039
13416
|
"description" : "Tool preset identifier",
|
|
13040
13417
|
"in" : "path",
|
|
@@ -19422,92 +19799,342 @@
|
|
|
19422
19799
|
"type" : "number"
|
|
19423
19800
|
}
|
|
19424
19801
|
},
|
|
19425
|
-
"required" : [ "canCreateAgents", "user" ],
|
|
19802
|
+
"required" : [ "canCreateAgents", "user" ],
|
|
19803
|
+
"type" : "object"
|
|
19804
|
+
},
|
|
19805
|
+
"UserIdentifierRequest" : {
|
|
19806
|
+
"additionalProperties" : false,
|
|
19807
|
+
"properties" : {
|
|
19808
|
+
"email" : {
|
|
19809
|
+
"type" : "string"
|
|
19810
|
+
}
|
|
19811
|
+
},
|
|
19812
|
+
"required" : [ "email" ],
|
|
19813
|
+
"type" : "object"
|
|
19814
|
+
},
|
|
19815
|
+
"UserUpdateRequest" : {
|
|
19816
|
+
"additionalProperties" : false,
|
|
19817
|
+
"properties" : {
|
|
19818
|
+
"user" : {
|
|
19819
|
+
"$ref" : "#/components/schemas/UserIdentifierRequest"
|
|
19820
|
+
},
|
|
19821
|
+
"isAdmin" : {
|
|
19822
|
+
"nullable" : true,
|
|
19823
|
+
"type" : "boolean"
|
|
19824
|
+
},
|
|
19825
|
+
"canCreateAgents" : {
|
|
19826
|
+
"nullable" : true,
|
|
19827
|
+
"type" : "boolean"
|
|
19828
|
+
},
|
|
19829
|
+
"maxAgents" : {
|
|
19830
|
+
"nullable" : true,
|
|
19831
|
+
"type" : "number"
|
|
19832
|
+
},
|
|
19833
|
+
"agents" : {
|
|
19834
|
+
"items" : {
|
|
19835
|
+
"type" : "string"
|
|
19836
|
+
},
|
|
19837
|
+
"nullable" : true,
|
|
19838
|
+
"type" : "array"
|
|
19839
|
+
},
|
|
19840
|
+
"allAgents" : {
|
|
19841
|
+
"nullable" : true,
|
|
19842
|
+
"type" : "boolean"
|
|
19843
|
+
}
|
|
19844
|
+
},
|
|
19845
|
+
"type" : "object"
|
|
19846
|
+
},
|
|
19847
|
+
"UserLockRequest" : {
|
|
19848
|
+
"additionalProperties" : false,
|
|
19849
|
+
"properties" : {
|
|
19850
|
+
"locked" : {
|
|
19851
|
+
"description" : "true pour verrouiller le compte, false pour le déverrouiller",
|
|
19852
|
+
"type" : "boolean"
|
|
19853
|
+
}
|
|
19854
|
+
},
|
|
19855
|
+
"required" : [ "locked" ],
|
|
19856
|
+
"type" : "object"
|
|
19857
|
+
},
|
|
19858
|
+
"ApiKeyCreateRequest" : {
|
|
19859
|
+
"additionalProperties" : false,
|
|
19860
|
+
"properties" : {
|
|
19861
|
+
"name" : {
|
|
19862
|
+
"description" : "Nom descriptif de la clé",
|
|
19863
|
+
"maxLength" : 50,
|
|
19864
|
+
"minLength" : 1,
|
|
19865
|
+
"type" : "string"
|
|
19866
|
+
}
|
|
19867
|
+
},
|
|
19868
|
+
"required" : [ "name" ],
|
|
19869
|
+
"type" : "object"
|
|
19870
|
+
},
|
|
19871
|
+
"ApiKeyCreated" : {
|
|
19872
|
+
"properties" : {
|
|
19873
|
+
"id" : {
|
|
19874
|
+
"type" : "string"
|
|
19875
|
+
},
|
|
19876
|
+
"name" : {
|
|
19877
|
+
"type" : "string"
|
|
19878
|
+
},
|
|
19879
|
+
"keySecret" : {
|
|
19880
|
+
"description" : "Valeur de la clé. Renvoyée uniquement à la création.",
|
|
19881
|
+
"type" : "string"
|
|
19882
|
+
}
|
|
19883
|
+
},
|
|
19884
|
+
"required" : [ "id", "keySecret", "name" ],
|
|
19885
|
+
"type" : "object"
|
|
19886
|
+
},
|
|
19887
|
+
"AiGatewayModelList" : {
|
|
19888
|
+
"properties" : {
|
|
19889
|
+
"object" : {
|
|
19890
|
+
"enum" : [ "list" ],
|
|
19891
|
+
"type" : "string"
|
|
19892
|
+
},
|
|
19893
|
+
"data" : {
|
|
19894
|
+
"items" : {
|
|
19895
|
+
"$ref" : "#/components/schemas/AiGatewayModelList_data_inner"
|
|
19896
|
+
},
|
|
19897
|
+
"type" : "array"
|
|
19898
|
+
}
|
|
19899
|
+
},
|
|
19900
|
+
"required" : [ "data", "object" ],
|
|
19901
|
+
"type" : "object"
|
|
19902
|
+
},
|
|
19903
|
+
"AiGatewayError" : {
|
|
19904
|
+
"properties" : {
|
|
19905
|
+
"error" : {
|
|
19906
|
+
"$ref" : "#/components/schemas/deleteMessageAudio_200_response"
|
|
19907
|
+
}
|
|
19908
|
+
},
|
|
19909
|
+
"required" : [ "error" ],
|
|
19910
|
+
"type" : "object"
|
|
19911
|
+
},
|
|
19912
|
+
"AiGatewayModel" : {
|
|
19913
|
+
"properties" : {
|
|
19914
|
+
"id" : {
|
|
19915
|
+
"type" : "string"
|
|
19916
|
+
},
|
|
19917
|
+
"object" : {
|
|
19918
|
+
"enum" : [ "model" ],
|
|
19919
|
+
"type" : "string"
|
|
19920
|
+
},
|
|
19921
|
+
"created" : {
|
|
19922
|
+
"description" : "Horodatage Unix généré à chaque appel, pas une date de création réelle.",
|
|
19923
|
+
"type" : "integer"
|
|
19924
|
+
},
|
|
19925
|
+
"owned_by" : {
|
|
19926
|
+
"description" : "Nom du provider qui expose le modèle.",
|
|
19927
|
+
"type" : "string"
|
|
19928
|
+
}
|
|
19929
|
+
},
|
|
19930
|
+
"required" : [ "created", "id", "object", "owned_by" ],
|
|
19931
|
+
"type" : "object"
|
|
19932
|
+
},
|
|
19933
|
+
"AiGatewayChatCompletionRequest" : {
|
|
19934
|
+
"additionalProperties" : false,
|
|
19935
|
+
"properties" : {
|
|
19936
|
+
"model" : {
|
|
19937
|
+
"minLength" : 1,
|
|
19938
|
+
"type" : "string"
|
|
19939
|
+
},
|
|
19940
|
+
"messages" : {
|
|
19941
|
+
"items" : {
|
|
19942
|
+
"$ref" : "#/components/schemas/AiGatewayMessage"
|
|
19943
|
+
},
|
|
19944
|
+
"minItems" : 1,
|
|
19945
|
+
"type" : "array"
|
|
19946
|
+
},
|
|
19947
|
+
"maxTokens" : {
|
|
19948
|
+
"description" : "Nombre maximum de tokens générés.",
|
|
19949
|
+
"minimum" : 1,
|
|
19950
|
+
"type" : "number"
|
|
19951
|
+
},
|
|
19952
|
+
"temperature" : {
|
|
19953
|
+
"description" : "Température d'échantillonnage.",
|
|
19954
|
+
"maximum" : 1,
|
|
19955
|
+
"minimum" : 0,
|
|
19956
|
+
"type" : "number"
|
|
19957
|
+
},
|
|
19958
|
+
"stream" : {
|
|
19959
|
+
"description" : "Si true, la réponse est un flux de texte brut au lieu d'un objet JSON.",
|
|
19960
|
+
"type" : "boolean"
|
|
19961
|
+
}
|
|
19962
|
+
},
|
|
19963
|
+
"required" : [ "messages", "model" ],
|
|
19964
|
+
"type" : "object"
|
|
19965
|
+
},
|
|
19966
|
+
"AiGatewayMessage" : {
|
|
19967
|
+
"additionalProperties" : false,
|
|
19968
|
+
"properties" : {
|
|
19969
|
+
"role" : {
|
|
19970
|
+
"enum" : [ "user", "system", "assistant" ],
|
|
19971
|
+
"type" : "string"
|
|
19972
|
+
},
|
|
19973
|
+
"content" : {
|
|
19974
|
+
"minLength" : 1,
|
|
19975
|
+
"type" : "string"
|
|
19976
|
+
}
|
|
19977
|
+
},
|
|
19978
|
+
"required" : [ "content", "role" ],
|
|
19979
|
+
"type" : "object"
|
|
19980
|
+
},
|
|
19981
|
+
"AiGatewayChatCompletionResponse" : {
|
|
19982
|
+
"additionalProperties" : true,
|
|
19983
|
+
"properties" : {
|
|
19984
|
+
"text" : {
|
|
19985
|
+
"type" : "string"
|
|
19986
|
+
},
|
|
19987
|
+
"finishReason" : {
|
|
19988
|
+
"type" : "string"
|
|
19989
|
+
},
|
|
19990
|
+
"usage" : {
|
|
19991
|
+
"additionalProperties" : true,
|
|
19992
|
+
"type" : "object"
|
|
19993
|
+
}
|
|
19994
|
+
},
|
|
19995
|
+
"type" : "object"
|
|
19996
|
+
},
|
|
19997
|
+
"AiGatewayEmbeddingRequest" : {
|
|
19998
|
+
"additionalProperties" : false,
|
|
19999
|
+
"properties" : {
|
|
20000
|
+
"model" : {
|
|
20001
|
+
"minLength" : 1,
|
|
20002
|
+
"type" : "string"
|
|
20003
|
+
},
|
|
20004
|
+
"input" : {
|
|
20005
|
+
"minLength" : 1,
|
|
20006
|
+
"type" : "string"
|
|
20007
|
+
}
|
|
20008
|
+
},
|
|
20009
|
+
"required" : [ "input", "model" ],
|
|
19426
20010
|
"type" : "object"
|
|
19427
20011
|
},
|
|
19428
|
-
"
|
|
19429
|
-
"additionalProperties" :
|
|
20012
|
+
"AiGatewayEmbeddingResponse" : {
|
|
20013
|
+
"additionalProperties" : true,
|
|
19430
20014
|
"properties" : {
|
|
19431
|
-
"
|
|
20015
|
+
"embedding" : {
|
|
20016
|
+
"items" : {
|
|
20017
|
+
"type" : "number"
|
|
20018
|
+
},
|
|
20019
|
+
"type" : "array"
|
|
20020
|
+
},
|
|
20021
|
+
"value" : {
|
|
19432
20022
|
"type" : "string"
|
|
20023
|
+
},
|
|
20024
|
+
"usage" : {
|
|
20025
|
+
"additionalProperties" : true,
|
|
20026
|
+
"type" : "object"
|
|
19433
20027
|
}
|
|
19434
20028
|
},
|
|
19435
|
-
"required" : [ "email" ],
|
|
19436
20029
|
"type" : "object"
|
|
19437
20030
|
},
|
|
19438
|
-
"
|
|
19439
|
-
"additionalProperties" : false,
|
|
20031
|
+
"AiGatewayUsage" : {
|
|
19440
20032
|
"properties" : {
|
|
19441
|
-
"
|
|
19442
|
-
"$ref" : "#/components/schemas/
|
|
19443
|
-
},
|
|
19444
|
-
"isAdmin" : {
|
|
19445
|
-
"nullable" : true,
|
|
19446
|
-
"type" : "boolean"
|
|
20033
|
+
"total" : {
|
|
20034
|
+
"$ref" : "#/components/schemas/AiGatewayUsageTotal"
|
|
19447
20035
|
},
|
|
19448
|
-
"
|
|
19449
|
-
"
|
|
19450
|
-
|
|
20036
|
+
"series" : {
|
|
20037
|
+
"items" : {
|
|
20038
|
+
"$ref" : "#/components/schemas/AiGatewayUsagePoint"
|
|
20039
|
+
},
|
|
20040
|
+
"type" : "array"
|
|
19451
20041
|
},
|
|
19452
|
-
"
|
|
19453
|
-
"
|
|
19454
|
-
|
|
20042
|
+
"byModel" : {
|
|
20043
|
+
"items" : {
|
|
20044
|
+
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
20045
|
+
},
|
|
20046
|
+
"type" : "array"
|
|
19455
20047
|
},
|
|
19456
|
-
"
|
|
20048
|
+
"byProvider" : {
|
|
19457
20049
|
"items" : {
|
|
19458
|
-
"
|
|
20050
|
+
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
19459
20051
|
},
|
|
19460
|
-
"nullable" : true,
|
|
19461
20052
|
"type" : "array"
|
|
19462
20053
|
},
|
|
19463
|
-
"
|
|
19464
|
-
"
|
|
19465
|
-
|
|
20054
|
+
"byUser" : {
|
|
20055
|
+
"items" : {
|
|
20056
|
+
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
20057
|
+
},
|
|
20058
|
+
"type" : "array"
|
|
19466
20059
|
}
|
|
19467
20060
|
},
|
|
20061
|
+
"required" : [ "byModel", "byProvider", "byUser", "series", "total" ],
|
|
19468
20062
|
"type" : "object"
|
|
19469
20063
|
},
|
|
19470
|
-
"
|
|
19471
|
-
"additionalProperties" : false,
|
|
20064
|
+
"AiGatewayUsageTotal" : {
|
|
19472
20065
|
"properties" : {
|
|
19473
|
-
"
|
|
19474
|
-
"
|
|
19475
|
-
|
|
20066
|
+
"requests" : {
|
|
20067
|
+
"type" : "integer"
|
|
20068
|
+
},
|
|
20069
|
+
"inputTokens" : {
|
|
20070
|
+
"type" : "integer"
|
|
20071
|
+
},
|
|
20072
|
+
"outputTokens" : {
|
|
20073
|
+
"type" : "integer"
|
|
20074
|
+
},
|
|
20075
|
+
"reasoningTokens" : {
|
|
20076
|
+
"type" : "integer"
|
|
20077
|
+
},
|
|
20078
|
+
"totalTokens" : {
|
|
20079
|
+
"type" : "integer"
|
|
20080
|
+
},
|
|
20081
|
+
"uniqueUsers" : {
|
|
20082
|
+
"type" : "integer"
|
|
19476
20083
|
}
|
|
19477
20084
|
},
|
|
19478
|
-
"required" : [ "
|
|
20085
|
+
"required" : [ "inputTokens", "outputTokens", "reasoningTokens", "requests", "totalTokens", "uniqueUsers" ],
|
|
19479
20086
|
"type" : "object"
|
|
19480
20087
|
},
|
|
19481
|
-
"
|
|
19482
|
-
"additionalProperties" : false,
|
|
20088
|
+
"AiGatewayUsagePoint" : {
|
|
19483
20089
|
"properties" : {
|
|
19484
|
-
"
|
|
19485
|
-
"description" : "
|
|
19486
|
-
"
|
|
19487
|
-
|
|
20090
|
+
"bucket" : {
|
|
20091
|
+
"description" : "Clé de regroupement temporel, dépendante de la granularité demandée",
|
|
20092
|
+
"type" : "string"
|
|
20093
|
+
},
|
|
20094
|
+
"label" : {
|
|
19488
20095
|
"type" : "string"
|
|
20096
|
+
},
|
|
20097
|
+
"requests" : {
|
|
20098
|
+
"type" : "integer"
|
|
20099
|
+
},
|
|
20100
|
+
"inputTokens" : {
|
|
20101
|
+
"type" : "integer"
|
|
20102
|
+
},
|
|
20103
|
+
"outputTokens" : {
|
|
20104
|
+
"type" : "integer"
|
|
19489
20105
|
}
|
|
19490
20106
|
},
|
|
19491
|
-
"required" : [ "
|
|
20107
|
+
"required" : [ "bucket", "inputTokens", "label", "outputTokens", "requests" ],
|
|
19492
20108
|
"type" : "object"
|
|
19493
20109
|
},
|
|
19494
|
-
"
|
|
20110
|
+
"AiGatewayUsageBreakdownItem" : {
|
|
20111
|
+
"description" : "Consommation agrégée sur une dimension (modèle, provider ou utilisateur).",
|
|
19495
20112
|
"properties" : {
|
|
19496
|
-
"
|
|
20113
|
+
"key" : {
|
|
20114
|
+
"description" : "Identifiant brut de la dimension (id de modèle, de provider ou d'utilisateur)",
|
|
19497
20115
|
"type" : "string"
|
|
19498
20116
|
},
|
|
19499
|
-
"
|
|
20117
|
+
"label" : {
|
|
20118
|
+
"description" : "Libellé affichable ; pour un utilisateur, son email lorsqu'il est connu",
|
|
19500
20119
|
"type" : "string"
|
|
19501
20120
|
},
|
|
19502
|
-
"
|
|
19503
|
-
"
|
|
19504
|
-
|
|
20121
|
+
"requests" : {
|
|
20122
|
+
"type" : "integer"
|
|
20123
|
+
},
|
|
20124
|
+
"inputTokens" : {
|
|
20125
|
+
"type" : "integer"
|
|
20126
|
+
},
|
|
20127
|
+
"outputTokens" : {
|
|
20128
|
+
"type" : "integer"
|
|
20129
|
+
},
|
|
20130
|
+
"totalTokens" : {
|
|
20131
|
+
"type" : "integer"
|
|
19505
20132
|
}
|
|
19506
20133
|
},
|
|
19507
|
-
"required" : [ "
|
|
20134
|
+
"required" : [ "inputTokens", "key", "label", "outputTokens", "requests", "totalTokens" ],
|
|
19508
20135
|
"type" : "object"
|
|
19509
20136
|
},
|
|
19510
|
-
"
|
|
20137
|
+
"AiGatewayV1ModelList" : {
|
|
19511
20138
|
"properties" : {
|
|
19512
20139
|
"object" : {
|
|
19513
20140
|
"enum" : [ "list" ],
|
|
@@ -19515,7 +20142,7 @@
|
|
|
19515
20142
|
},
|
|
19516
20143
|
"data" : {
|
|
19517
20144
|
"items" : {
|
|
19518
|
-
"$ref" : "#/components/schemas/
|
|
20145
|
+
"$ref" : "#/components/schemas/AiGatewayV1Model"
|
|
19519
20146
|
},
|
|
19520
20147
|
"type" : "array"
|
|
19521
20148
|
}
|
|
@@ -19523,16 +20150,7 @@
|
|
|
19523
20150
|
"required" : [ "data", "object" ],
|
|
19524
20151
|
"type" : "object"
|
|
19525
20152
|
},
|
|
19526
|
-
"
|
|
19527
|
-
"properties" : {
|
|
19528
|
-
"error" : {
|
|
19529
|
-
"$ref" : "#/components/schemas/deleteMessageAudio_200_response"
|
|
19530
|
-
}
|
|
19531
|
-
},
|
|
19532
|
-
"required" : [ "error" ],
|
|
19533
|
-
"type" : "object"
|
|
19534
|
-
},
|
|
19535
|
-
"AiGatewayModel" : {
|
|
20153
|
+
"AiGatewayV1Model" : {
|
|
19536
20154
|
"properties" : {
|
|
19537
20155
|
"id" : {
|
|
19538
20156
|
"type" : "string"
|
|
@@ -19542,219 +20160,255 @@
|
|
|
19542
20160
|
"type" : "string"
|
|
19543
20161
|
},
|
|
19544
20162
|
"created" : {
|
|
19545
|
-
"
|
|
20163
|
+
"type" : "integer"
|
|
20164
|
+
},
|
|
20165
|
+
"released" : {
|
|
20166
|
+
"description" : "Toujours null — date de sortie non conservée par Breign",
|
|
20167
|
+
"nullable" : true,
|
|
19546
20168
|
"type" : "integer"
|
|
19547
20169
|
},
|
|
19548
20170
|
"owned_by" : {
|
|
19549
|
-
"description" : "Nom du provider qui expose le modèle.",
|
|
19550
20171
|
"type" : "string"
|
|
19551
|
-
}
|
|
19552
|
-
|
|
19553
|
-
"required" : [ "created", "id", "object", "owned_by" ],
|
|
19554
|
-
"type" : "object"
|
|
19555
|
-
},
|
|
19556
|
-
"AiGatewayChatCompletionRequest" : {
|
|
19557
|
-
"additionalProperties" : false,
|
|
19558
|
-
"properties" : {
|
|
19559
|
-
"model" : {
|
|
19560
|
-
"minLength" : 1,
|
|
20172
|
+
},
|
|
20173
|
+
"name" : {
|
|
19561
20174
|
"type" : "string"
|
|
19562
20175
|
},
|
|
19563
|
-
"
|
|
20176
|
+
"description" : {
|
|
20177
|
+
"description" : "Toujours null — description non conservée par Breign",
|
|
20178
|
+
"nullable" : true,
|
|
20179
|
+
"type" : "string"
|
|
20180
|
+
},
|
|
20181
|
+
"context_window" : {
|
|
20182
|
+
"description" : "Toujours null — taille de contexte non conservée par Breign",
|
|
20183
|
+
"nullable" : true,
|
|
20184
|
+
"type" : "integer"
|
|
20185
|
+
},
|
|
20186
|
+
"max_tokens" : {
|
|
20187
|
+
"nullable" : true,
|
|
20188
|
+
"type" : "integer"
|
|
20189
|
+
},
|
|
20190
|
+
"type" : {
|
|
20191
|
+
"enum" : [ "language", "embedding" ],
|
|
20192
|
+
"type" : "string"
|
|
20193
|
+
},
|
|
20194
|
+
"tags" : {
|
|
19564
20195
|
"items" : {
|
|
19565
|
-
"
|
|
20196
|
+
"type" : "string"
|
|
19566
20197
|
},
|
|
19567
|
-
"minItems" : 1,
|
|
19568
20198
|
"type" : "array"
|
|
19569
20199
|
},
|
|
19570
|
-
"
|
|
19571
|
-
"
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
|
|
19575
|
-
"temperature" : {
|
|
19576
|
-
"description" : "Température d'échantillonnage.",
|
|
19577
|
-
"maximum" : 1,
|
|
19578
|
-
"minimum" : 0,
|
|
19579
|
-
"type" : "number"
|
|
19580
|
-
},
|
|
19581
|
-
"stream" : {
|
|
19582
|
-
"description" : "Si true, la réponse est un flux de texte brut au lieu d'un objet JSON.",
|
|
19583
|
-
"type" : "boolean"
|
|
20200
|
+
"pricing" : {
|
|
20201
|
+
"allOf" : [ {
|
|
20202
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelPricing"
|
|
20203
|
+
} ],
|
|
20204
|
+
"nullable" : true
|
|
19584
20205
|
}
|
|
19585
20206
|
},
|
|
19586
|
-
"required" : [ "
|
|
20207
|
+
"required" : [ "created", "id", "name", "object", "owned_by", "tags", "type" ],
|
|
19587
20208
|
"type" : "object"
|
|
19588
20209
|
},
|
|
19589
|
-
"
|
|
19590
|
-
"additionalProperties" : false,
|
|
20210
|
+
"AiGatewayV1ModelPricing" : {
|
|
19591
20211
|
"properties" : {
|
|
19592
|
-
"
|
|
19593
|
-
"
|
|
20212
|
+
"input" : {
|
|
20213
|
+
"description" : "Coût par token en entrée",
|
|
20214
|
+
"nullable" : true,
|
|
19594
20215
|
"type" : "string"
|
|
19595
20216
|
},
|
|
19596
|
-
"
|
|
19597
|
-
"
|
|
20217
|
+
"output" : {
|
|
20218
|
+
"description" : "Coût par token en sortie",
|
|
20219
|
+
"nullable" : true,
|
|
20220
|
+
"type" : "string"
|
|
20221
|
+
},
|
|
20222
|
+
"input_cache_read" : {
|
|
20223
|
+
"description" : "Toujours null — Breign ne tarife pas la lecture de cache",
|
|
20224
|
+
"nullable" : true,
|
|
20225
|
+
"type" : "string"
|
|
20226
|
+
},
|
|
20227
|
+
"input_cache_write" : {
|
|
20228
|
+
"description" : "Toujours null — Breign ne tarife pas l'écriture de cache",
|
|
20229
|
+
"nullable" : true,
|
|
19598
20230
|
"type" : "string"
|
|
19599
20231
|
}
|
|
19600
20232
|
},
|
|
19601
|
-
"required" : [ "content", "role" ],
|
|
19602
20233
|
"type" : "object"
|
|
19603
20234
|
},
|
|
19604
|
-
"
|
|
19605
|
-
"additionalProperties" : true,
|
|
20235
|
+
"AiGatewayV1ModelEndpoints" : {
|
|
19606
20236
|
"properties" : {
|
|
19607
|
-
"
|
|
20237
|
+
"data" : {
|
|
20238
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelEndpoints_data"
|
|
20239
|
+
}
|
|
20240
|
+
},
|
|
20241
|
+
"required" : [ "data" ],
|
|
20242
|
+
"type" : "object"
|
|
20243
|
+
},
|
|
20244
|
+
"AiGatewayV1Endpoint" : {
|
|
20245
|
+
"properties" : {
|
|
20246
|
+
"name" : {
|
|
20247
|
+
"type" : "string"
|
|
20248
|
+
},
|
|
20249
|
+
"model_name" : {
|
|
20250
|
+
"type" : "string"
|
|
20251
|
+
},
|
|
20252
|
+
"context_length" : {
|
|
20253
|
+
"nullable" : true,
|
|
20254
|
+
"type" : "integer"
|
|
20255
|
+
},
|
|
20256
|
+
"pricing" : {
|
|
20257
|
+
"$ref" : "#/components/schemas/AiGatewayV1Endpoint_pricing"
|
|
20258
|
+
},
|
|
20259
|
+
"provider_name" : {
|
|
19608
20260
|
"type" : "string"
|
|
19609
20261
|
},
|
|
19610
|
-
"
|
|
19611
|
-
"
|
|
20262
|
+
"max_completion_tokens" : {
|
|
20263
|
+
"nullable" : true,
|
|
20264
|
+
"type" : "integer"
|
|
20265
|
+
},
|
|
20266
|
+
"supported_parameters" : {
|
|
20267
|
+
"items" : {
|
|
20268
|
+
"type" : "string"
|
|
20269
|
+
},
|
|
20270
|
+
"type" : "array"
|
|
20271
|
+
},
|
|
20272
|
+
"status" : {
|
|
20273
|
+
"description" : "0 lorsque l'endpoint est actif",
|
|
20274
|
+
"type" : "integer"
|
|
20275
|
+
},
|
|
20276
|
+
"uptime_last_15m" : {
|
|
20277
|
+
"description" : "Toujours null — Breign ne collecte pas de télémétrie de disponibilité",
|
|
20278
|
+
"nullable" : true,
|
|
20279
|
+
"type" : "number"
|
|
20280
|
+
},
|
|
20281
|
+
"uptime_last_1h" : {
|
|
20282
|
+
"description" : "Toujours null — Breign ne collecte pas de télémétrie de disponibilité",
|
|
20283
|
+
"nullable" : true,
|
|
20284
|
+
"type" : "number"
|
|
20285
|
+
},
|
|
20286
|
+
"uptime_last_1d" : {
|
|
20287
|
+
"description" : "Toujours null — Breign ne collecte pas de télémétrie de disponibilité",
|
|
20288
|
+
"nullable" : true,
|
|
20289
|
+
"type" : "number"
|
|
20290
|
+
},
|
|
20291
|
+
"throughput_last_1h" : {
|
|
20292
|
+
"description" : "Toujours null — débit non mesuré par endpoint provider",
|
|
20293
|
+
"nullable" : true,
|
|
20294
|
+
"type" : "object"
|
|
19612
20295
|
},
|
|
19613
|
-
"
|
|
19614
|
-
"
|
|
20296
|
+
"latency_last_1h" : {
|
|
20297
|
+
"description" : "Toujours null — latence non mesurée par endpoint provider",
|
|
20298
|
+
"nullable" : true,
|
|
19615
20299
|
"type" : "object"
|
|
20300
|
+
},
|
|
20301
|
+
"supports_implicit_caching" : {
|
|
20302
|
+
"nullable" : true,
|
|
20303
|
+
"type" : "boolean"
|
|
19616
20304
|
}
|
|
19617
20305
|
},
|
|
20306
|
+
"required" : [ "model_name", "name", "provider_name", "status", "supported_parameters" ],
|
|
19618
20307
|
"type" : "object"
|
|
19619
20308
|
},
|
|
19620
|
-
"
|
|
19621
|
-
"additionalProperties" : false,
|
|
20309
|
+
"AiGatewayV1Credits" : {
|
|
19622
20310
|
"properties" : {
|
|
19623
|
-
"
|
|
19624
|
-
"
|
|
20311
|
+
"balance" : {
|
|
20312
|
+
"description" : "Toujours null — Breign n'a pas de notion de crédits prépayés",
|
|
20313
|
+
"nullable" : true,
|
|
19625
20314
|
"type" : "string"
|
|
19626
20315
|
},
|
|
19627
|
-
"
|
|
19628
|
-
"
|
|
20316
|
+
"total_used" : {
|
|
20317
|
+
"description" : "Dépense cumulée de l'organisation, calculée depuis la configuration de prix",
|
|
19629
20318
|
"type" : "string"
|
|
19630
20319
|
}
|
|
19631
20320
|
},
|
|
19632
|
-
"required" : [ "
|
|
20321
|
+
"required" : [ "total_used" ],
|
|
19633
20322
|
"type" : "object"
|
|
19634
20323
|
},
|
|
19635
|
-
"
|
|
19636
|
-
"additionalProperties" : true,
|
|
20324
|
+
"AiGatewayV1Generation" : {
|
|
19637
20325
|
"properties" : {
|
|
19638
|
-
"
|
|
19639
|
-
"
|
|
19640
|
-
"type" : "number"
|
|
19641
|
-
},
|
|
19642
|
-
"type" : "array"
|
|
19643
|
-
},
|
|
19644
|
-
"value" : {
|
|
19645
|
-
"type" : "string"
|
|
19646
|
-
},
|
|
19647
|
-
"usage" : {
|
|
19648
|
-
"additionalProperties" : true,
|
|
19649
|
-
"type" : "object"
|
|
20326
|
+
"data" : {
|
|
20327
|
+
"$ref" : "#/components/schemas/AiGatewayV1Generation_data"
|
|
19650
20328
|
}
|
|
19651
20329
|
},
|
|
20330
|
+
"required" : [ "data" ],
|
|
19652
20331
|
"type" : "object"
|
|
19653
20332
|
},
|
|
19654
|
-
"
|
|
20333
|
+
"AiGatewayV1Report" : {
|
|
19655
20334
|
"properties" : {
|
|
19656
|
-
"
|
|
19657
|
-
"$ref" : "#/components/schemas/AiGatewayUsageTotal"
|
|
19658
|
-
},
|
|
19659
|
-
"series" : {
|
|
19660
|
-
"items" : {
|
|
19661
|
-
"$ref" : "#/components/schemas/AiGatewayUsagePoint"
|
|
19662
|
-
},
|
|
19663
|
-
"type" : "array"
|
|
19664
|
-
},
|
|
19665
|
-
"byModel" : {
|
|
19666
|
-
"items" : {
|
|
19667
|
-
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
19668
|
-
},
|
|
19669
|
-
"type" : "array"
|
|
19670
|
-
},
|
|
19671
|
-
"byProvider" : {
|
|
19672
|
-
"items" : {
|
|
19673
|
-
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
19674
|
-
},
|
|
19675
|
-
"type" : "array"
|
|
19676
|
-
},
|
|
19677
|
-
"byUser" : {
|
|
20335
|
+
"results" : {
|
|
19678
20336
|
"items" : {
|
|
19679
|
-
"$ref" : "#/components/schemas/
|
|
20337
|
+
"$ref" : "#/components/schemas/AiGatewayV1ReportRow"
|
|
19680
20338
|
},
|
|
19681
20339
|
"type" : "array"
|
|
19682
20340
|
}
|
|
19683
20341
|
},
|
|
19684
|
-
"required" : [ "
|
|
20342
|
+
"required" : [ "results" ],
|
|
19685
20343
|
"type" : "object"
|
|
19686
20344
|
},
|
|
19687
|
-
"
|
|
20345
|
+
"AiGatewayV1ReportRow" : {
|
|
20346
|
+
"description" : "Porte la seule clé de regroupement correspondant au group_by demandé, plus les métriques agrégées.",
|
|
19688
20347
|
"properties" : {
|
|
19689
|
-
"
|
|
19690
|
-
"type" : "
|
|
19691
|
-
},
|
|
19692
|
-
"inputTokens" : {
|
|
19693
|
-
"type" : "integer"
|
|
19694
|
-
},
|
|
19695
|
-
"outputTokens" : {
|
|
19696
|
-
"type" : "integer"
|
|
20348
|
+
"day" : {
|
|
20349
|
+
"type" : "string"
|
|
19697
20350
|
},
|
|
19698
|
-
"
|
|
19699
|
-
"type" : "
|
|
20351
|
+
"hour" : {
|
|
20352
|
+
"type" : "string"
|
|
19700
20353
|
},
|
|
19701
|
-
"
|
|
19702
|
-
"
|
|
20354
|
+
"user" : {
|
|
20355
|
+
"nullable" : true,
|
|
20356
|
+
"type" : "string"
|
|
19703
20357
|
},
|
|
19704
|
-
"
|
|
19705
|
-
"type" : "integer"
|
|
19706
|
-
}
|
|
19707
|
-
},
|
|
19708
|
-
"required" : [ "inputTokens", "outputTokens", "reasoningTokens", "requests", "totalTokens", "uniqueUsers" ],
|
|
19709
|
-
"type" : "object"
|
|
19710
|
-
},
|
|
19711
|
-
"AiGatewayUsagePoint" : {
|
|
19712
|
-
"properties" : {
|
|
19713
|
-
"bucket" : {
|
|
19714
|
-
"description" : "Clé de regroupement temporel, dépendante de la granularité demandée",
|
|
20358
|
+
"model" : {
|
|
19715
20359
|
"type" : "string"
|
|
19716
20360
|
},
|
|
19717
|
-
"
|
|
20361
|
+
"tag" : {
|
|
19718
20362
|
"type" : "string"
|
|
19719
20363
|
},
|
|
19720
|
-
"
|
|
19721
|
-
"type" : "
|
|
20364
|
+
"provider" : {
|
|
20365
|
+
"type" : "string"
|
|
19722
20366
|
},
|
|
19723
|
-
"
|
|
19724
|
-
"type" : "
|
|
20367
|
+
"credential_type" : {
|
|
20368
|
+
"type" : "string"
|
|
19725
20369
|
},
|
|
19726
|
-
"
|
|
19727
|
-
"type" : "integer"
|
|
19728
|
-
}
|
|
19729
|
-
},
|
|
19730
|
-
"required" : [ "bucket", "inputTokens", "label", "outputTokens", "requests" ],
|
|
19731
|
-
"type" : "object"
|
|
19732
|
-
},
|
|
19733
|
-
"AiGatewayUsageBreakdownItem" : {
|
|
19734
|
-
"description" : "Consommation agrégée sur une dimension (modèle, provider ou utilisateur).",
|
|
19735
|
-
"properties" : {
|
|
19736
|
-
"key" : {
|
|
19737
|
-
"description" : "Identifiant brut de la dimension (id de modèle, de provider ou d'utilisateur)",
|
|
20370
|
+
"zero_data_retention" : {
|
|
19738
20371
|
"type" : "string"
|
|
19739
20372
|
},
|
|
19740
|
-
"
|
|
19741
|
-
"
|
|
20373
|
+
"api_key_name" : {
|
|
20374
|
+
"nullable" : true,
|
|
19742
20375
|
"type" : "string"
|
|
19743
20376
|
},
|
|
19744
|
-
"
|
|
19745
|
-
"type" : "
|
|
20377
|
+
"total_cost" : {
|
|
20378
|
+
"type" : "number"
|
|
19746
20379
|
},
|
|
19747
|
-
"
|
|
19748
|
-
"
|
|
20380
|
+
"market_cost" : {
|
|
20381
|
+
"description" : "Égal à total_cost — Breign ne sert pas d'appels BYOK",
|
|
20382
|
+
"type" : "number"
|
|
19749
20383
|
},
|
|
19750
|
-
"
|
|
19751
|
-
"
|
|
20384
|
+
"surcharge_cost" : {
|
|
20385
|
+
"description" : "Toujours 0 — aucune capacité facturée en supplément",
|
|
20386
|
+
"type" : "number"
|
|
19752
20387
|
},
|
|
19753
|
-
"
|
|
19754
|
-
"
|
|
20388
|
+
"gateway_cost" : {
|
|
20389
|
+
"description" : "Toujours 0 — la passerelle ne facture pas de coût propre",
|
|
20390
|
+
"type" : "number"
|
|
20391
|
+
},
|
|
20392
|
+
"input_tokens" : {
|
|
20393
|
+
"type" : "number"
|
|
20394
|
+
},
|
|
20395
|
+
"output_tokens" : {
|
|
20396
|
+
"type" : "number"
|
|
20397
|
+
},
|
|
20398
|
+
"cached_input_tokens" : {
|
|
20399
|
+
"type" : "number"
|
|
20400
|
+
},
|
|
20401
|
+
"cache_creation_input_tokens" : {
|
|
20402
|
+
"type" : "number"
|
|
20403
|
+
},
|
|
20404
|
+
"reasoning_tokens" : {
|
|
20405
|
+
"type" : "number"
|
|
20406
|
+
},
|
|
20407
|
+
"request_count" : {
|
|
20408
|
+
"type" : "number"
|
|
19755
20409
|
}
|
|
19756
20410
|
},
|
|
19757
|
-
"required" : [ "
|
|
20411
|
+
"required" : [ "cache_creation_input_tokens", "cached_input_tokens", "gateway_cost", "input_tokens", "market_cost", "output_tokens", "reasoning_tokens", "request_count", "surcharge_cost", "total_cost" ],
|
|
19758
20412
|
"type" : "object"
|
|
19759
20413
|
},
|
|
19760
20414
|
"OpenAiChatCompletionRequest" : {
|
|
@@ -22030,6 +22684,164 @@
|
|
|
22030
22684
|
"required" : [ "created", "id", "object", "owned_by" ],
|
|
22031
22685
|
"type" : "object"
|
|
22032
22686
|
},
|
|
22687
|
+
"AiGatewayV1ModelEndpoints_data_architecture" : {
|
|
22688
|
+
"properties" : {
|
|
22689
|
+
"tokenizer" : {
|
|
22690
|
+
"nullable" : true,
|
|
22691
|
+
"type" : "string"
|
|
22692
|
+
},
|
|
22693
|
+
"instruct_type" : {
|
|
22694
|
+
"nullable" : true,
|
|
22695
|
+
"type" : "string"
|
|
22696
|
+
},
|
|
22697
|
+
"modality" : {
|
|
22698
|
+
"type" : "string"
|
|
22699
|
+
},
|
|
22700
|
+
"input_modalities" : {
|
|
22701
|
+
"items" : {
|
|
22702
|
+
"type" : "string"
|
|
22703
|
+
},
|
|
22704
|
+
"type" : "array"
|
|
22705
|
+
},
|
|
22706
|
+
"output_modalities" : {
|
|
22707
|
+
"items" : {
|
|
22708
|
+
"type" : "string"
|
|
22709
|
+
},
|
|
22710
|
+
"type" : "array"
|
|
22711
|
+
}
|
|
22712
|
+
},
|
|
22713
|
+
"type" : "object"
|
|
22714
|
+
},
|
|
22715
|
+
"AiGatewayV1ModelEndpoints_data" : {
|
|
22716
|
+
"properties" : {
|
|
22717
|
+
"id" : {
|
|
22718
|
+
"type" : "string"
|
|
22719
|
+
},
|
|
22720
|
+
"name" : {
|
|
22721
|
+
"type" : "string"
|
|
22722
|
+
},
|
|
22723
|
+
"created" : {
|
|
22724
|
+
"type" : "integer"
|
|
22725
|
+
},
|
|
22726
|
+
"released" : {
|
|
22727
|
+
"nullable" : true,
|
|
22728
|
+
"type" : "integer"
|
|
22729
|
+
},
|
|
22730
|
+
"description" : {
|
|
22731
|
+
"nullable" : true,
|
|
22732
|
+
"type" : "string"
|
|
22733
|
+
},
|
|
22734
|
+
"architecture" : {
|
|
22735
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelEndpoints_data_architecture"
|
|
22736
|
+
},
|
|
22737
|
+
"endpoints" : {
|
|
22738
|
+
"items" : {
|
|
22739
|
+
"$ref" : "#/components/schemas/AiGatewayV1Endpoint"
|
|
22740
|
+
},
|
|
22741
|
+
"type" : "array"
|
|
22742
|
+
}
|
|
22743
|
+
},
|
|
22744
|
+
"required" : [ "architecture", "created", "endpoints", "id", "name" ],
|
|
22745
|
+
"type" : "object"
|
|
22746
|
+
},
|
|
22747
|
+
"AiGatewayV1Endpoint_pricing" : {
|
|
22748
|
+
"nullable" : true,
|
|
22749
|
+
"properties" : {
|
|
22750
|
+
"prompt" : {
|
|
22751
|
+
"nullable" : true,
|
|
22752
|
+
"type" : "string"
|
|
22753
|
+
},
|
|
22754
|
+
"completion" : {
|
|
22755
|
+
"nullable" : true,
|
|
22756
|
+
"type" : "string"
|
|
22757
|
+
},
|
|
22758
|
+
"input_cache_read" : {
|
|
22759
|
+
"nullable" : true,
|
|
22760
|
+
"type" : "string"
|
|
22761
|
+
},
|
|
22762
|
+
"input_cache_write" : {
|
|
22763
|
+
"nullable" : true,
|
|
22764
|
+
"type" : "string"
|
|
22765
|
+
}
|
|
22766
|
+
},
|
|
22767
|
+
"type" : "object"
|
|
22768
|
+
},
|
|
22769
|
+
"AiGatewayV1Generation_data" : {
|
|
22770
|
+
"properties" : {
|
|
22771
|
+
"id" : {
|
|
22772
|
+
"type" : "string"
|
|
22773
|
+
},
|
|
22774
|
+
"total_cost" : {
|
|
22775
|
+
"description" : "Null lorsque le modèle n'est pas tarifé",
|
|
22776
|
+
"nullable" : true,
|
|
22777
|
+
"type" : "number"
|
|
22778
|
+
},
|
|
22779
|
+
"upstream_inference_cost" : {
|
|
22780
|
+
"description" : "Toujours 0 — Breign ne sert pas d'appels BYOK",
|
|
22781
|
+
"type" : "number"
|
|
22782
|
+
},
|
|
22783
|
+
"usage" : {
|
|
22784
|
+
"nullable" : true,
|
|
22785
|
+
"type" : "number"
|
|
22786
|
+
},
|
|
22787
|
+
"created_at" : {
|
|
22788
|
+
"format" : "date-time",
|
|
22789
|
+
"type" : "string"
|
|
22790
|
+
},
|
|
22791
|
+
"model" : {
|
|
22792
|
+
"type" : "string"
|
|
22793
|
+
},
|
|
22794
|
+
"is_byok" : {
|
|
22795
|
+
"type" : "boolean"
|
|
22796
|
+
},
|
|
22797
|
+
"provider_name" : {
|
|
22798
|
+
"type" : "string"
|
|
22799
|
+
},
|
|
22800
|
+
"streamed" : {
|
|
22801
|
+
"type" : "boolean"
|
|
22802
|
+
},
|
|
22803
|
+
"finish_reason" : {
|
|
22804
|
+
"nullable" : true,
|
|
22805
|
+
"type" : "string"
|
|
22806
|
+
},
|
|
22807
|
+
"latency" : {
|
|
22808
|
+
"description" : "Temps jusqu'au premier token ; null hors streaming",
|
|
22809
|
+
"nullable" : true,
|
|
22810
|
+
"type" : "integer"
|
|
22811
|
+
},
|
|
22812
|
+
"generation_time" : {
|
|
22813
|
+
"nullable" : true,
|
|
22814
|
+
"type" : "integer"
|
|
22815
|
+
},
|
|
22816
|
+
"tokens_prompt" : {
|
|
22817
|
+
"type" : "integer"
|
|
22818
|
+
},
|
|
22819
|
+
"tokens_completion" : {
|
|
22820
|
+
"type" : "integer"
|
|
22821
|
+
},
|
|
22822
|
+
"native_tokens_prompt" : {
|
|
22823
|
+
"type" : "integer"
|
|
22824
|
+
},
|
|
22825
|
+
"native_tokens_completion" : {
|
|
22826
|
+
"type" : "integer"
|
|
22827
|
+
},
|
|
22828
|
+
"native_tokens_reasoning" : {
|
|
22829
|
+
"type" : "integer"
|
|
22830
|
+
},
|
|
22831
|
+
"native_tokens_cached" : {
|
|
22832
|
+
"type" : "integer"
|
|
22833
|
+
},
|
|
22834
|
+
"native_tokens_cache_creation" : {
|
|
22835
|
+
"type" : "integer"
|
|
22836
|
+
},
|
|
22837
|
+
"billable_web_search_calls" : {
|
|
22838
|
+
"description" : "Toujours 0 — la recherche web n'est pas proposée",
|
|
22839
|
+
"type" : "integer"
|
|
22840
|
+
}
|
|
22841
|
+
},
|
|
22842
|
+
"required" : [ "created_at", "id", "model", "provider_name", "streamed" ],
|
|
22843
|
+
"type" : "object"
|
|
22844
|
+
},
|
|
22033
22845
|
"OpenAiChatCompletionRequest_stream_options" : {
|
|
22034
22846
|
"additionalProperties" : false,
|
|
22035
22847
|
"properties" : {
|