@breign/client 1.0.130 → 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 +133 -1
- package/dist/apis/AiGatewayApi.js +264 -1
- package/dist/models/AiGatewayUsageBreakdownItemUio.d.ts +62 -0
- package/dist/models/AiGatewayUsageBreakdownItemUio.js +70 -0
- package/dist/models/AiGatewayUsagePointUio.d.ts +56 -0
- package/dist/models/AiGatewayUsagePointUio.js +66 -0
- package/dist/models/AiGatewayUsageTotalUio.d.ts +62 -0
- package/dist/models/AiGatewayUsageTotalUio.js +70 -0
- package/dist/models/AiGatewayUsageUio.d.ts +59 -0
- package/dist/models/AiGatewayUsageUio.js +69 -0
- 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 +17 -0
- package/dist/models/index.js +17 -0
- package/dist/openapi.json +1337 -345
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -12672,10 +12672,10 @@
|
|
|
12672
12672
|
"tags" : [ "ai-gateway" ]
|
|
12673
12673
|
}
|
|
12674
12674
|
},
|
|
12675
|
-
"/organizations/{organizationId}/
|
|
12676
|
-
"
|
|
12677
|
-
"description" : "
|
|
12678
|
-
"operationId" : "
|
|
12675
|
+
"/organizations/{organizationId}/ai-gateway/metrics" : {
|
|
12676
|
+
"get" : {
|
|
12677
|
+
"description" : "Usage de la passerelle pour l'organisation sur une période : totaux, série temporelle et répartitions par modèle, par provider et par utilisateur. Réservé aux administrateurs de l'organisation.",
|
|
12678
|
+
"operationId" : "getAiGatewayMetrics",
|
|
12679
12679
|
"parameters" : [ {
|
|
12680
12680
|
"description" : "ID of the organization",
|
|
12681
12681
|
"in" : "path",
|
|
@@ -12684,35 +12684,44 @@
|
|
|
12684
12684
|
"schema" : {
|
|
12685
12685
|
"type" : "string"
|
|
12686
12686
|
}
|
|
12687
|
+
}, {
|
|
12688
|
+
"description" : "Début de la période ; par défaut le premier jour du mois courant",
|
|
12689
|
+
"in" : "query",
|
|
12690
|
+
"name" : "startDate",
|
|
12691
|
+
"schema" : {
|
|
12692
|
+
"format" : "date-time",
|
|
12693
|
+
"type" : "string"
|
|
12694
|
+
}
|
|
12695
|
+
}, {
|
|
12696
|
+
"description" : "Fin de la période ; par défaut le dernier jour du mois courant",
|
|
12697
|
+
"in" : "query",
|
|
12698
|
+
"name" : "endDate",
|
|
12699
|
+
"schema" : {
|
|
12700
|
+
"format" : "date-time",
|
|
12701
|
+
"type" : "string"
|
|
12702
|
+
}
|
|
12703
|
+
}, {
|
|
12704
|
+
"description" : "Pas de regroupement de la série temporelle",
|
|
12705
|
+
"in" : "query",
|
|
12706
|
+
"name" : "granularity",
|
|
12707
|
+
"schema" : {
|
|
12708
|
+
"default" : "day",
|
|
12709
|
+
"enum" : [ "hour", "day", "week" ],
|
|
12710
|
+
"type" : "string"
|
|
12711
|
+
}
|
|
12687
12712
|
} ],
|
|
12688
|
-
"requestBody" : {
|
|
12689
|
-
"content" : {
|
|
12690
|
-
"application/json" : {
|
|
12691
|
-
"schema" : {
|
|
12692
|
-
"$ref" : "#/components/schemas/OpenAiChatCompletionRequest"
|
|
12693
|
-
}
|
|
12694
|
-
}
|
|
12695
|
-
},
|
|
12696
|
-
"required" : true
|
|
12697
|
-
},
|
|
12698
12713
|
"responses" : {
|
|
12699
12714
|
"200" : {
|
|
12700
12715
|
"content" : {
|
|
12701
12716
|
"application/json" : {
|
|
12702
12717
|
"schema" : {
|
|
12703
|
-
"$ref" : "#/components/schemas/
|
|
12704
|
-
}
|
|
12705
|
-
},
|
|
12706
|
-
"text/plain" : {
|
|
12707
|
-
"schema" : {
|
|
12708
|
-
"description" : "Flux de chunks JSON, renvoyé lorsque `stream` vaut true.",
|
|
12709
|
-
"type" : "string"
|
|
12718
|
+
"$ref" : "#/components/schemas/AiGatewayUsage"
|
|
12710
12719
|
}
|
|
12711
12720
|
}
|
|
12712
12721
|
},
|
|
12713
|
-
"description" : "
|
|
12722
|
+
"description" : "Usage metrics retrieved successfully"
|
|
12714
12723
|
},
|
|
12715
|
-
"
|
|
12724
|
+
"401" : {
|
|
12716
12725
|
"content" : {
|
|
12717
12726
|
"application/json" : {
|
|
12718
12727
|
"schema" : {
|
|
@@ -12720,9 +12729,9 @@
|
|
|
12720
12729
|
}
|
|
12721
12730
|
}
|
|
12722
12731
|
},
|
|
12723
|
-
"description" : "
|
|
12732
|
+
"description" : "Unauthenticated — no caller identity could be established"
|
|
12724
12733
|
},
|
|
12725
|
-
"
|
|
12734
|
+
"403" : {
|
|
12726
12735
|
"content" : {
|
|
12727
12736
|
"application/json" : {
|
|
12728
12737
|
"schema" : {
|
|
@@ -12730,19 +12739,38 @@
|
|
|
12730
12739
|
}
|
|
12731
12740
|
}
|
|
12732
12741
|
},
|
|
12733
|
-
"description" : "
|
|
12734
|
-
}
|
|
12735
|
-
|
|
12742
|
+
"description" : "Forbidden — the caller is not an admin of the organization"
|
|
12743
|
+
}
|
|
12744
|
+
},
|
|
12745
|
+
"summary" : "Get AI gateway usage metrics",
|
|
12746
|
+
"tags" : [ "ai-gateway" ]
|
|
12747
|
+
}
|
|
12748
|
+
},
|
|
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
|
+
"parameters" : [ {
|
|
12754
|
+
"description" : "ID of the organization",
|
|
12755
|
+
"in" : "path",
|
|
12756
|
+
"name" : "organizationId",
|
|
12757
|
+
"required" : true,
|
|
12758
|
+
"schema" : {
|
|
12759
|
+
"type" : "string"
|
|
12760
|
+
}
|
|
12761
|
+
} ],
|
|
12762
|
+
"responses" : {
|
|
12763
|
+
"200" : {
|
|
12736
12764
|
"content" : {
|
|
12737
12765
|
"application/json" : {
|
|
12738
12766
|
"schema" : {
|
|
12739
|
-
"$ref" : "#/components/schemas/
|
|
12767
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelList"
|
|
12740
12768
|
}
|
|
12741
12769
|
}
|
|
12742
12770
|
},
|
|
12743
|
-
"description" : "
|
|
12771
|
+
"description" : "Model list"
|
|
12744
12772
|
},
|
|
12745
|
-
"
|
|
12773
|
+
"401" : {
|
|
12746
12774
|
"content" : {
|
|
12747
12775
|
"application/json" : {
|
|
12748
12776
|
"schema" : {
|
|
@@ -12750,9 +12778,9 @@
|
|
|
12750
12778
|
}
|
|
12751
12779
|
}
|
|
12752
12780
|
},
|
|
12753
|
-
"description" : "
|
|
12781
|
+
"description" : "Unauthenticated"
|
|
12754
12782
|
},
|
|
12755
|
-
"
|
|
12783
|
+
"403" : {
|
|
12756
12784
|
"content" : {
|
|
12757
12785
|
"application/json" : {
|
|
12758
12786
|
"schema" : {
|
|
@@ -12760,71 +12788,38 @@
|
|
|
12760
12788
|
}
|
|
12761
12789
|
}
|
|
12762
12790
|
},
|
|
12763
|
-
"description" : "
|
|
12791
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
12764
12792
|
}
|
|
12765
12793
|
},
|
|
12766
|
-
"summary" : "
|
|
12794
|
+
"summary" : "List models (AI Gateway REST API)",
|
|
12767
12795
|
"tags" : [ "ai-gateway" ]
|
|
12768
12796
|
}
|
|
12769
12797
|
},
|
|
12770
|
-
"/
|
|
12771
|
-
"delete" : {
|
|
12772
|
-
"description" : "Clears the shared tool library",
|
|
12773
|
-
"operationId" : "deleteAllAdminToolPresets",
|
|
12774
|
-
"responses" : {
|
|
12775
|
-
"200" : {
|
|
12776
|
-
"content" : {
|
|
12777
|
-
"application/json" : {
|
|
12778
|
-
"schema" : {
|
|
12779
|
-
"$ref" : "#/components/schemas/ToolPresetDeleteAllResponse"
|
|
12780
|
-
}
|
|
12781
|
-
}
|
|
12782
|
-
},
|
|
12783
|
-
"description" : "Tool library cleared"
|
|
12784
|
-
},
|
|
12785
|
-
"401" : {
|
|
12786
|
-
"description" : "Unauthorized"
|
|
12787
|
-
},
|
|
12788
|
-
"403" : {
|
|
12789
|
-
"description" : "Forbidden"
|
|
12790
|
-
}
|
|
12791
|
-
},
|
|
12792
|
-
"summary" : "Delete every tool preset",
|
|
12793
|
-
"tags" : [ "admin" ]
|
|
12794
|
-
},
|
|
12798
|
+
"/organizations/{organizationId}/ai-gateway/v1/models/{creator}/{model}/endpoints" : {
|
|
12795
12799
|
"get" : {
|
|
12796
|
-
"description" : "
|
|
12797
|
-
"operationId" : "
|
|
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",
|
|
12798
12802
|
"parameters" : [ {
|
|
12799
|
-
"description" : "
|
|
12800
|
-
"in" : "
|
|
12801
|
-
"name" : "
|
|
12802
|
-
"
|
|
12803
|
-
"default" : 1,
|
|
12804
|
-
"minimum" : 1,
|
|
12805
|
-
"type" : "integer"
|
|
12806
|
-
}
|
|
12807
|
-
}, {
|
|
12808
|
-
"description" : "Maximum number of tool presets to return",
|
|
12809
|
-
"in" : "query",
|
|
12810
|
-
"name" : "limit",
|
|
12803
|
+
"description" : "ID of the organization",
|
|
12804
|
+
"in" : "path",
|
|
12805
|
+
"name" : "organizationId",
|
|
12806
|
+
"required" : true,
|
|
12811
12807
|
"schema" : {
|
|
12812
|
-
"
|
|
12813
|
-
"maximum" : 100,
|
|
12814
|
-
"minimum" : 1,
|
|
12815
|
-
"type" : "integer"
|
|
12808
|
+
"type" : "string"
|
|
12816
12809
|
}
|
|
12817
12810
|
}, {
|
|
12818
|
-
"description" : "
|
|
12819
|
-
"in" : "
|
|
12820
|
-
"name" : "
|
|
12811
|
+
"description" : "Premier segment de l'identifiant de modèle",
|
|
12812
|
+
"in" : "path",
|
|
12813
|
+
"name" : "creator",
|
|
12814
|
+
"required" : true,
|
|
12821
12815
|
"schema" : {
|
|
12822
12816
|
"type" : "string"
|
|
12823
12817
|
}
|
|
12824
12818
|
}, {
|
|
12825
|
-
"description" : "
|
|
12826
|
-
"in" : "
|
|
12827
|
-
"name" : "
|
|
12819
|
+
"description" : "Second segment de l'identifiant de modèle",
|
|
12820
|
+
"in" : "path",
|
|
12821
|
+
"name" : "model",
|
|
12822
|
+
"required" : true,
|
|
12828
12823
|
"schema" : {
|
|
12829
12824
|
"type" : "string"
|
|
12830
12825
|
}
|
|
@@ -12834,149 +12829,605 @@
|
|
|
12834
12829
|
"content" : {
|
|
12835
12830
|
"application/json" : {
|
|
12836
12831
|
"schema" : {
|
|
12837
|
-
"$ref" : "#/components/schemas/
|
|
12832
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelEndpoints"
|
|
12838
12833
|
}
|
|
12839
12834
|
}
|
|
12840
12835
|
},
|
|
12841
|
-
"description" : "
|
|
12836
|
+
"description" : "Model endpoints"
|
|
12842
12837
|
},
|
|
12843
12838
|
"401" : {
|
|
12844
|
-
"description" : "Unauthorized"
|
|
12845
|
-
},
|
|
12846
|
-
"403" : {
|
|
12847
|
-
"description" : "Forbidden"
|
|
12848
|
-
}
|
|
12849
|
-
},
|
|
12850
|
-
"summary" : "List tool presets",
|
|
12851
|
-
"tags" : [ "admin" ]
|
|
12852
|
-
},
|
|
12853
|
-
"post" : {
|
|
12854
|
-
"operationId" : "createAdminToolPreset",
|
|
12855
|
-
"requestBody" : {
|
|
12856
|
-
"content" : {
|
|
12857
|
-
"application/json" : {
|
|
12858
|
-
"schema" : {
|
|
12859
|
-
"$ref" : "#/components/schemas/ToolPresetCreateRequest"
|
|
12860
|
-
}
|
|
12861
|
-
}
|
|
12862
|
-
},
|
|
12863
|
-
"required" : true
|
|
12864
|
-
},
|
|
12865
|
-
"responses" : {
|
|
12866
|
-
"201" : {
|
|
12867
12839
|
"content" : {
|
|
12868
12840
|
"application/json" : {
|
|
12869
12841
|
"schema" : {
|
|
12870
|
-
"$ref" : "#/components/schemas/
|
|
12842
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12871
12843
|
}
|
|
12872
12844
|
}
|
|
12873
12845
|
},
|
|
12874
|
-
"description" : "
|
|
12875
|
-
},
|
|
12876
|
-
"400" : {
|
|
12877
|
-
"description" : "Invalid payload"
|
|
12878
|
-
},
|
|
12879
|
-
"401" : {
|
|
12880
|
-
"description" : "Unauthorized"
|
|
12846
|
+
"description" : "Unauthenticated"
|
|
12881
12847
|
},
|
|
12882
12848
|
"403" : {
|
|
12883
|
-
"description" : "Forbidden"
|
|
12884
|
-
},
|
|
12885
|
-
"409" : {
|
|
12886
|
-
"description" : "TOOL_PRESET_SLUG_ALREADY_EXISTS"
|
|
12887
|
-
}
|
|
12888
|
-
},
|
|
12889
|
-
"summary" : "Create a tool preset",
|
|
12890
|
-
"tags" : [ "admin" ]
|
|
12891
|
-
}
|
|
12892
|
-
},
|
|
12893
|
-
"/admin/tool-presets/export" : {
|
|
12894
|
-
"get" : {
|
|
12895
|
-
"description" : "Returns the whole shared tool library at once, without pagination. The payload can be fed back as-is to /admin/tool-presets/import.",
|
|
12896
|
-
"operationId" : "exportAdminToolPresets",
|
|
12897
|
-
"responses" : {
|
|
12898
|
-
"200" : {
|
|
12899
12849
|
"content" : {
|
|
12900
12850
|
"application/json" : {
|
|
12901
12851
|
"schema" : {
|
|
12902
|
-
"
|
|
12903
|
-
"$ref" : "#/components/schemas/ToolPreset"
|
|
12904
|
-
},
|
|
12905
|
-
"type" : "array"
|
|
12852
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12906
12853
|
}
|
|
12907
12854
|
}
|
|
12908
12855
|
},
|
|
12909
|
-
"description" : "
|
|
12910
|
-
},
|
|
12911
|
-
"401" : {
|
|
12912
|
-
"description" : "Unauthorized"
|
|
12913
|
-
},
|
|
12914
|
-
"403" : {
|
|
12915
|
-
"description" : "Forbidden"
|
|
12916
|
-
}
|
|
12917
|
-
},
|
|
12918
|
-
"summary" : "Export every tool preset",
|
|
12919
|
-
"tags" : [ "admin" ]
|
|
12920
|
-
}
|
|
12921
|
-
},
|
|
12922
|
-
"/admin/tool-presets/import" : {
|
|
12923
|
-
"post" : {
|
|
12924
|
-
"description" : "Replaces the presets that already exist (matched on their slug) and adds the new ones. Presets absent from the payload are left untouched.",
|
|
12925
|
-
"operationId" : "importAdminToolPresets",
|
|
12926
|
-
"requestBody" : {
|
|
12927
|
-
"content" : {
|
|
12928
|
-
"application/json" : {
|
|
12929
|
-
"schema" : {
|
|
12930
|
-
"$ref" : "#/components/schemas/ToolPresetImportRequest"
|
|
12931
|
-
}
|
|
12932
|
-
}
|
|
12856
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
12933
12857
|
},
|
|
12934
|
-
"
|
|
12935
|
-
},
|
|
12936
|
-
"responses" : {
|
|
12937
|
-
"200" : {
|
|
12858
|
+
"404" : {
|
|
12938
12859
|
"content" : {
|
|
12939
12860
|
"application/json" : {
|
|
12940
12861
|
"schema" : {
|
|
12941
|
-
"$ref" : "#/components/schemas/
|
|
12862
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12942
12863
|
}
|
|
12943
12864
|
}
|
|
12944
12865
|
},
|
|
12945
|
-
"description" : "
|
|
12946
|
-
},
|
|
12947
|
-
"400" : {
|
|
12948
|
-
"description" : "Invalid payload or duplicated slug"
|
|
12949
|
-
},
|
|
12950
|
-
"401" : {
|
|
12951
|
-
"description" : "Unauthorized"
|
|
12952
|
-
},
|
|
12953
|
-
"403" : {
|
|
12954
|
-
"description" : "Forbidden"
|
|
12866
|
+
"description" : "Model not found"
|
|
12955
12867
|
}
|
|
12956
12868
|
},
|
|
12957
|
-
"summary" : "
|
|
12958
|
-
"tags" : [ "
|
|
12869
|
+
"summary" : "Get model endpoints (AI Gateway REST API)",
|
|
12870
|
+
"tags" : [ "ai-gateway" ]
|
|
12959
12871
|
}
|
|
12960
12872
|
},
|
|
12961
|
-
"/
|
|
12962
|
-
"
|
|
12963
|
-
"
|
|
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",
|
|
12964
12877
|
"parameters" : [ {
|
|
12965
|
-
"description" : "
|
|
12878
|
+
"description" : "ID of the organization",
|
|
12966
12879
|
"in" : "path",
|
|
12967
|
-
"name" : "
|
|
12880
|
+
"name" : "organizationId",
|
|
12968
12881
|
"required" : true,
|
|
12969
12882
|
"schema" : {
|
|
12970
12883
|
"type" : "string"
|
|
12971
12884
|
}
|
|
12972
12885
|
} ],
|
|
12973
12886
|
"responses" : {
|
|
12974
|
-
"
|
|
12975
|
-
"
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12887
|
+
"200" : {
|
|
12888
|
+
"content" : {
|
|
12889
|
+
"application/json" : {
|
|
12890
|
+
"schema" : {
|
|
12891
|
+
"$ref" : "#/components/schemas/AiGatewayV1Credits"
|
|
12892
|
+
}
|
|
12893
|
+
}
|
|
12894
|
+
},
|
|
12895
|
+
"description" : "Credit balance"
|
|
12896
|
+
},
|
|
12897
|
+
"401" : {
|
|
12898
|
+
"content" : {
|
|
12899
|
+
"application/json" : {
|
|
12900
|
+
"schema" : {
|
|
12901
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12902
|
+
}
|
|
12903
|
+
}
|
|
12904
|
+
},
|
|
12905
|
+
"description" : "Unauthenticated"
|
|
12906
|
+
},
|
|
12907
|
+
"403" : {
|
|
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"
|
|
12916
|
+
}
|
|
12917
|
+
},
|
|
12918
|
+
"summary" : "Check credit balance (AI Gateway REST API)",
|
|
12919
|
+
"tags" : [ "ai-gateway" ]
|
|
12920
|
+
}
|
|
12921
|
+
},
|
|
12922
|
+
"/organizations/{organizationId}/ai-gateway/v1/generation" : {
|
|
12923
|
+
"get" : {
|
|
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",
|
|
12926
|
+
"parameters" : [ {
|
|
12927
|
+
"description" : "ID of the organization",
|
|
12928
|
+
"in" : "path",
|
|
12929
|
+
"name" : "organizationId",
|
|
12930
|
+
"required" : true,
|
|
12931
|
+
"schema" : {
|
|
12932
|
+
"type" : "string"
|
|
12933
|
+
}
|
|
12934
|
+
}, {
|
|
12935
|
+
"description" : "Identifiant de génération, au format `gen_<ulid>`",
|
|
12936
|
+
"in" : "query",
|
|
12937
|
+
"name" : "id",
|
|
12938
|
+
"required" : true,
|
|
12939
|
+
"schema" : {
|
|
12940
|
+
"pattern" : "^gen_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
12941
|
+
"type" : "string"
|
|
12942
|
+
}
|
|
12943
|
+
} ],
|
|
12944
|
+
"responses" : {
|
|
12945
|
+
"200" : {
|
|
12946
|
+
"content" : {
|
|
12947
|
+
"application/json" : {
|
|
12948
|
+
"schema" : {
|
|
12949
|
+
"$ref" : "#/components/schemas/AiGatewayV1Generation"
|
|
12950
|
+
}
|
|
12951
|
+
}
|
|
12952
|
+
},
|
|
12953
|
+
"description" : "Generation details"
|
|
12954
|
+
},
|
|
12955
|
+
"400" : {
|
|
12956
|
+
"content" : {
|
|
12957
|
+
"application/json" : {
|
|
12958
|
+
"schema" : {
|
|
12959
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12960
|
+
}
|
|
12961
|
+
}
|
|
12962
|
+
},
|
|
12963
|
+
"description" : "Invalid or missing id parameter"
|
|
12964
|
+
},
|
|
12965
|
+
"401" : {
|
|
12966
|
+
"content" : {
|
|
12967
|
+
"application/json" : {
|
|
12968
|
+
"schema" : {
|
|
12969
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12970
|
+
}
|
|
12971
|
+
}
|
|
12972
|
+
},
|
|
12973
|
+
"description" : "Unauthenticated"
|
|
12974
|
+
},
|
|
12975
|
+
"403" : {
|
|
12976
|
+
"content" : {
|
|
12977
|
+
"application/json" : {
|
|
12978
|
+
"schema" : {
|
|
12979
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12980
|
+
}
|
|
12981
|
+
}
|
|
12982
|
+
},
|
|
12983
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
12984
|
+
},
|
|
12985
|
+
"404" : {
|
|
12986
|
+
"content" : {
|
|
12987
|
+
"application/json" : {
|
|
12988
|
+
"schema" : {
|
|
12989
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
12990
|
+
}
|
|
12991
|
+
}
|
|
12992
|
+
},
|
|
12993
|
+
"description" : "Usage event not found"
|
|
12994
|
+
}
|
|
12995
|
+
},
|
|
12996
|
+
"summary" : "Look up a generation (AI Gateway REST API)",
|
|
12997
|
+
"tags" : [ "ai-gateway" ]
|
|
12998
|
+
}
|
|
12999
|
+
},
|
|
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",
|
|
13415
|
+
"parameters" : [ {
|
|
13416
|
+
"description" : "Tool preset identifier",
|
|
13417
|
+
"in" : "path",
|
|
13418
|
+
"name" : "toolPresetId",
|
|
13419
|
+
"required" : true,
|
|
13420
|
+
"schema" : {
|
|
13421
|
+
"type" : "string"
|
|
13422
|
+
}
|
|
13423
|
+
} ],
|
|
13424
|
+
"responses" : {
|
|
13425
|
+
"204" : {
|
|
13426
|
+
"description" : "Deleted"
|
|
13427
|
+
},
|
|
13428
|
+
"401" : {
|
|
13429
|
+
"description" : "Unauthorized"
|
|
13430
|
+
},
|
|
12980
13431
|
"403" : {
|
|
12981
13432
|
"description" : "Forbidden"
|
|
12982
13433
|
},
|
|
@@ -19282,158 +19733,408 @@
|
|
|
19282
19733
|
"nullable" : true,
|
|
19283
19734
|
"type" : "number"
|
|
19284
19735
|
},
|
|
19285
|
-
"agents" : {
|
|
19286
|
-
"description" : "Identifiants des agents auxquels l'utilisateur a accès",
|
|
19736
|
+
"agents" : {
|
|
19737
|
+
"description" : "Identifiants des agents auxquels l'utilisateur a accès",
|
|
19738
|
+
"items" : {
|
|
19739
|
+
"type" : "string"
|
|
19740
|
+
},
|
|
19741
|
+
"type" : "array"
|
|
19742
|
+
},
|
|
19743
|
+
"apiKeys" : {
|
|
19744
|
+
"items" : {
|
|
19745
|
+
"$ref" : "#/components/schemas/ApiKeyRef"
|
|
19746
|
+
},
|
|
19747
|
+
"type" : "array"
|
|
19748
|
+
},
|
|
19749
|
+
"createdAt" : {
|
|
19750
|
+
"format" : "date-time",
|
|
19751
|
+
"type" : "string"
|
|
19752
|
+
},
|
|
19753
|
+
"locked" : {
|
|
19754
|
+
"type" : "boolean"
|
|
19755
|
+
},
|
|
19756
|
+
"lockDate" : {
|
|
19757
|
+
"format" : "date-time",
|
|
19758
|
+
"type" : "string"
|
|
19759
|
+
}
|
|
19760
|
+
},
|
|
19761
|
+
"required" : [ "agents", "apiKeys", "canCreateAgents", "id", "isAdmin", "user" ],
|
|
19762
|
+
"type" : "object"
|
|
19763
|
+
},
|
|
19764
|
+
"UserIdentifier" : {
|
|
19765
|
+
"properties" : {
|
|
19766
|
+
"email" : {
|
|
19767
|
+
"type" : "string"
|
|
19768
|
+
},
|
|
19769
|
+
"name" : {
|
|
19770
|
+
"type" : "string"
|
|
19771
|
+
}
|
|
19772
|
+
},
|
|
19773
|
+
"required" : [ "email" ],
|
|
19774
|
+
"type" : "object"
|
|
19775
|
+
},
|
|
19776
|
+
"ApiKeyRef" : {
|
|
19777
|
+
"properties" : {
|
|
19778
|
+
"id" : {
|
|
19779
|
+
"type" : "string"
|
|
19780
|
+
},
|
|
19781
|
+
"name" : {
|
|
19782
|
+
"type" : "string"
|
|
19783
|
+
}
|
|
19784
|
+
},
|
|
19785
|
+
"required" : [ "id", "name" ],
|
|
19786
|
+
"type" : "object"
|
|
19787
|
+
},
|
|
19788
|
+
"UserCreateRequest" : {
|
|
19789
|
+
"additionalProperties" : false,
|
|
19790
|
+
"properties" : {
|
|
19791
|
+
"user" : {
|
|
19792
|
+
"$ref" : "#/components/schemas/UserIdentifierRequest"
|
|
19793
|
+
},
|
|
19794
|
+
"canCreateAgents" : {
|
|
19795
|
+
"type" : "boolean"
|
|
19796
|
+
},
|
|
19797
|
+
"maxAgents" : {
|
|
19798
|
+
"nullable" : true,
|
|
19799
|
+
"type" : "number"
|
|
19800
|
+
}
|
|
19801
|
+
},
|
|
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" : {
|
|
19287
19941
|
"items" : {
|
|
19288
|
-
"
|
|
19942
|
+
"$ref" : "#/components/schemas/AiGatewayMessage"
|
|
19289
19943
|
},
|
|
19944
|
+
"minItems" : 1,
|
|
19290
19945
|
"type" : "array"
|
|
19291
19946
|
},
|
|
19292
|
-
"
|
|
19293
|
-
"
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
"type" : "array"
|
|
19947
|
+
"maxTokens" : {
|
|
19948
|
+
"description" : "Nombre maximum de tokens générés.",
|
|
19949
|
+
"minimum" : 1,
|
|
19950
|
+
"type" : "number"
|
|
19297
19951
|
},
|
|
19298
|
-
"
|
|
19299
|
-
"
|
|
19300
|
-
"
|
|
19952
|
+
"temperature" : {
|
|
19953
|
+
"description" : "Température d'échantillonnage.",
|
|
19954
|
+
"maximum" : 1,
|
|
19955
|
+
"minimum" : 0,
|
|
19956
|
+
"type" : "number"
|
|
19301
19957
|
},
|
|
19302
|
-
"
|
|
19958
|
+
"stream" : {
|
|
19959
|
+
"description" : "Si true, la réponse est un flux de texte brut au lieu d'un objet JSON.",
|
|
19303
19960
|
"type" : "boolean"
|
|
19304
|
-
},
|
|
19305
|
-
"lockDate" : {
|
|
19306
|
-
"format" : "date-time",
|
|
19307
|
-
"type" : "string"
|
|
19308
19961
|
}
|
|
19309
19962
|
},
|
|
19310
|
-
"required" : [ "
|
|
19963
|
+
"required" : [ "messages", "model" ],
|
|
19311
19964
|
"type" : "object"
|
|
19312
19965
|
},
|
|
19313
|
-
"
|
|
19966
|
+
"AiGatewayMessage" : {
|
|
19967
|
+
"additionalProperties" : false,
|
|
19314
19968
|
"properties" : {
|
|
19315
|
-
"
|
|
19969
|
+
"role" : {
|
|
19970
|
+
"enum" : [ "user", "system", "assistant" ],
|
|
19316
19971
|
"type" : "string"
|
|
19317
19972
|
},
|
|
19318
|
-
"
|
|
19973
|
+
"content" : {
|
|
19974
|
+
"minLength" : 1,
|
|
19319
19975
|
"type" : "string"
|
|
19320
19976
|
}
|
|
19321
19977
|
},
|
|
19322
|
-
"required" : [ "
|
|
19978
|
+
"required" : [ "content", "role" ],
|
|
19323
19979
|
"type" : "object"
|
|
19324
19980
|
},
|
|
19325
|
-
"
|
|
19981
|
+
"AiGatewayChatCompletionResponse" : {
|
|
19982
|
+
"additionalProperties" : true,
|
|
19326
19983
|
"properties" : {
|
|
19327
|
-
"
|
|
19984
|
+
"text" : {
|
|
19328
19985
|
"type" : "string"
|
|
19329
19986
|
},
|
|
19330
|
-
"
|
|
19987
|
+
"finishReason" : {
|
|
19331
19988
|
"type" : "string"
|
|
19989
|
+
},
|
|
19990
|
+
"usage" : {
|
|
19991
|
+
"additionalProperties" : true,
|
|
19992
|
+
"type" : "object"
|
|
19332
19993
|
}
|
|
19333
19994
|
},
|
|
19334
|
-
"required" : [ "id", "name" ],
|
|
19335
19995
|
"type" : "object"
|
|
19336
19996
|
},
|
|
19337
|
-
"
|
|
19997
|
+
"AiGatewayEmbeddingRequest" : {
|
|
19338
19998
|
"additionalProperties" : false,
|
|
19339
19999
|
"properties" : {
|
|
19340
|
-
"
|
|
19341
|
-
"
|
|
19342
|
-
|
|
19343
|
-
"canCreateAgents" : {
|
|
19344
|
-
"type" : "boolean"
|
|
20000
|
+
"model" : {
|
|
20001
|
+
"minLength" : 1,
|
|
20002
|
+
"type" : "string"
|
|
19345
20003
|
},
|
|
19346
|
-
"
|
|
19347
|
-
"
|
|
19348
|
-
"type" : "
|
|
20004
|
+
"input" : {
|
|
20005
|
+
"minLength" : 1,
|
|
20006
|
+
"type" : "string"
|
|
19349
20007
|
}
|
|
19350
20008
|
},
|
|
19351
|
-
"required" : [ "
|
|
20009
|
+
"required" : [ "input", "model" ],
|
|
19352
20010
|
"type" : "object"
|
|
19353
20011
|
},
|
|
19354
|
-
"
|
|
19355
|
-
"additionalProperties" :
|
|
20012
|
+
"AiGatewayEmbeddingResponse" : {
|
|
20013
|
+
"additionalProperties" : true,
|
|
19356
20014
|
"properties" : {
|
|
19357
|
-
"
|
|
20015
|
+
"embedding" : {
|
|
20016
|
+
"items" : {
|
|
20017
|
+
"type" : "number"
|
|
20018
|
+
},
|
|
20019
|
+
"type" : "array"
|
|
20020
|
+
},
|
|
20021
|
+
"value" : {
|
|
19358
20022
|
"type" : "string"
|
|
20023
|
+
},
|
|
20024
|
+
"usage" : {
|
|
20025
|
+
"additionalProperties" : true,
|
|
20026
|
+
"type" : "object"
|
|
19359
20027
|
}
|
|
19360
20028
|
},
|
|
19361
|
-
"required" : [ "email" ],
|
|
19362
20029
|
"type" : "object"
|
|
19363
20030
|
},
|
|
19364
|
-
"
|
|
19365
|
-
"additionalProperties" : false,
|
|
20031
|
+
"AiGatewayUsage" : {
|
|
19366
20032
|
"properties" : {
|
|
19367
|
-
"
|
|
19368
|
-
"$ref" : "#/components/schemas/
|
|
19369
|
-
},
|
|
19370
|
-
"isAdmin" : {
|
|
19371
|
-
"nullable" : true,
|
|
19372
|
-
"type" : "boolean"
|
|
20033
|
+
"total" : {
|
|
20034
|
+
"$ref" : "#/components/schemas/AiGatewayUsageTotal"
|
|
19373
20035
|
},
|
|
19374
|
-
"
|
|
19375
|
-
"
|
|
19376
|
-
|
|
20036
|
+
"series" : {
|
|
20037
|
+
"items" : {
|
|
20038
|
+
"$ref" : "#/components/schemas/AiGatewayUsagePoint"
|
|
20039
|
+
},
|
|
20040
|
+
"type" : "array"
|
|
19377
20041
|
},
|
|
19378
|
-
"
|
|
19379
|
-
"
|
|
19380
|
-
|
|
20042
|
+
"byModel" : {
|
|
20043
|
+
"items" : {
|
|
20044
|
+
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
20045
|
+
},
|
|
20046
|
+
"type" : "array"
|
|
19381
20047
|
},
|
|
19382
|
-
"
|
|
20048
|
+
"byProvider" : {
|
|
19383
20049
|
"items" : {
|
|
19384
|
-
"
|
|
20050
|
+
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
19385
20051
|
},
|
|
19386
|
-
"nullable" : true,
|
|
19387
20052
|
"type" : "array"
|
|
19388
20053
|
},
|
|
19389
|
-
"
|
|
19390
|
-
"
|
|
19391
|
-
|
|
20054
|
+
"byUser" : {
|
|
20055
|
+
"items" : {
|
|
20056
|
+
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
20057
|
+
},
|
|
20058
|
+
"type" : "array"
|
|
19392
20059
|
}
|
|
19393
20060
|
},
|
|
20061
|
+
"required" : [ "byModel", "byProvider", "byUser", "series", "total" ],
|
|
19394
20062
|
"type" : "object"
|
|
19395
20063
|
},
|
|
19396
|
-
"
|
|
19397
|
-
"additionalProperties" : false,
|
|
20064
|
+
"AiGatewayUsageTotal" : {
|
|
19398
20065
|
"properties" : {
|
|
19399
|
-
"
|
|
19400
|
-
"
|
|
19401
|
-
|
|
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"
|
|
19402
20083
|
}
|
|
19403
20084
|
},
|
|
19404
|
-
"required" : [ "
|
|
20085
|
+
"required" : [ "inputTokens", "outputTokens", "reasoningTokens", "requests", "totalTokens", "uniqueUsers" ],
|
|
19405
20086
|
"type" : "object"
|
|
19406
20087
|
},
|
|
19407
|
-
"
|
|
19408
|
-
"additionalProperties" : false,
|
|
20088
|
+
"AiGatewayUsagePoint" : {
|
|
19409
20089
|
"properties" : {
|
|
19410
|
-
"
|
|
19411
|
-
"description" : "
|
|
19412
|
-
"
|
|
19413
|
-
|
|
20090
|
+
"bucket" : {
|
|
20091
|
+
"description" : "Clé de regroupement temporel, dépendante de la granularité demandée",
|
|
20092
|
+
"type" : "string"
|
|
20093
|
+
},
|
|
20094
|
+
"label" : {
|
|
19414
20095
|
"type" : "string"
|
|
20096
|
+
},
|
|
20097
|
+
"requests" : {
|
|
20098
|
+
"type" : "integer"
|
|
20099
|
+
},
|
|
20100
|
+
"inputTokens" : {
|
|
20101
|
+
"type" : "integer"
|
|
20102
|
+
},
|
|
20103
|
+
"outputTokens" : {
|
|
20104
|
+
"type" : "integer"
|
|
19415
20105
|
}
|
|
19416
20106
|
},
|
|
19417
|
-
"required" : [ "
|
|
20107
|
+
"required" : [ "bucket", "inputTokens", "label", "outputTokens", "requests" ],
|
|
19418
20108
|
"type" : "object"
|
|
19419
20109
|
},
|
|
19420
|
-
"
|
|
20110
|
+
"AiGatewayUsageBreakdownItem" : {
|
|
20111
|
+
"description" : "Consommation agrégée sur une dimension (modèle, provider ou utilisateur).",
|
|
19421
20112
|
"properties" : {
|
|
19422
|
-
"
|
|
20113
|
+
"key" : {
|
|
20114
|
+
"description" : "Identifiant brut de la dimension (id de modèle, de provider ou d'utilisateur)",
|
|
19423
20115
|
"type" : "string"
|
|
19424
20116
|
},
|
|
19425
|
-
"
|
|
20117
|
+
"label" : {
|
|
20118
|
+
"description" : "Libellé affichable ; pour un utilisateur, son email lorsqu'il est connu",
|
|
19426
20119
|
"type" : "string"
|
|
19427
20120
|
},
|
|
19428
|
-
"
|
|
19429
|
-
"
|
|
19430
|
-
|
|
20121
|
+
"requests" : {
|
|
20122
|
+
"type" : "integer"
|
|
20123
|
+
},
|
|
20124
|
+
"inputTokens" : {
|
|
20125
|
+
"type" : "integer"
|
|
20126
|
+
},
|
|
20127
|
+
"outputTokens" : {
|
|
20128
|
+
"type" : "integer"
|
|
20129
|
+
},
|
|
20130
|
+
"totalTokens" : {
|
|
20131
|
+
"type" : "integer"
|
|
19431
20132
|
}
|
|
19432
20133
|
},
|
|
19433
|
-
"required" : [ "
|
|
20134
|
+
"required" : [ "inputTokens", "key", "label", "outputTokens", "requests", "totalTokens" ],
|
|
19434
20135
|
"type" : "object"
|
|
19435
20136
|
},
|
|
19436
|
-
"
|
|
20137
|
+
"AiGatewayV1ModelList" : {
|
|
19437
20138
|
"properties" : {
|
|
19438
20139
|
"object" : {
|
|
19439
20140
|
"enum" : [ "list" ],
|
|
@@ -19441,7 +20142,7 @@
|
|
|
19441
20142
|
},
|
|
19442
20143
|
"data" : {
|
|
19443
20144
|
"items" : {
|
|
19444
|
-
"$ref" : "#/components/schemas/
|
|
20145
|
+
"$ref" : "#/components/schemas/AiGatewayV1Model"
|
|
19445
20146
|
},
|
|
19446
20147
|
"type" : "array"
|
|
19447
20148
|
}
|
|
@@ -19449,132 +20150,265 @@
|
|
|
19449
20150
|
"required" : [ "data", "object" ],
|
|
19450
20151
|
"type" : "object"
|
|
19451
20152
|
},
|
|
19452
|
-
"
|
|
20153
|
+
"AiGatewayV1Model" : {
|
|
19453
20154
|
"properties" : {
|
|
19454
|
-
"
|
|
19455
|
-
"
|
|
20155
|
+
"id" : {
|
|
20156
|
+
"type" : "string"
|
|
20157
|
+
},
|
|
20158
|
+
"object" : {
|
|
20159
|
+
"enum" : [ "model" ],
|
|
20160
|
+
"type" : "string"
|
|
20161
|
+
},
|
|
20162
|
+
"created" : {
|
|
20163
|
+
"type" : "integer"
|
|
20164
|
+
},
|
|
20165
|
+
"released" : {
|
|
20166
|
+
"description" : "Toujours null — date de sortie non conservée par Breign",
|
|
20167
|
+
"nullable" : true,
|
|
20168
|
+
"type" : "integer"
|
|
20169
|
+
},
|
|
20170
|
+
"owned_by" : {
|
|
20171
|
+
"type" : "string"
|
|
20172
|
+
},
|
|
20173
|
+
"name" : {
|
|
20174
|
+
"type" : "string"
|
|
20175
|
+
},
|
|
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" : {
|
|
20195
|
+
"items" : {
|
|
20196
|
+
"type" : "string"
|
|
20197
|
+
},
|
|
20198
|
+
"type" : "array"
|
|
20199
|
+
},
|
|
20200
|
+
"pricing" : {
|
|
20201
|
+
"allOf" : [ {
|
|
20202
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelPricing"
|
|
20203
|
+
} ],
|
|
20204
|
+
"nullable" : true
|
|
19456
20205
|
}
|
|
19457
20206
|
},
|
|
19458
|
-
"required" : [ "
|
|
20207
|
+
"required" : [ "created", "id", "name", "object", "owned_by", "tags", "type" ],
|
|
20208
|
+
"type" : "object"
|
|
20209
|
+
},
|
|
20210
|
+
"AiGatewayV1ModelPricing" : {
|
|
20211
|
+
"properties" : {
|
|
20212
|
+
"input" : {
|
|
20213
|
+
"description" : "Coût par token en entrée",
|
|
20214
|
+
"nullable" : true,
|
|
20215
|
+
"type" : "string"
|
|
20216
|
+
},
|
|
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,
|
|
20230
|
+
"type" : "string"
|
|
20231
|
+
}
|
|
20232
|
+
},
|
|
20233
|
+
"type" : "object"
|
|
20234
|
+
},
|
|
20235
|
+
"AiGatewayV1ModelEndpoints" : {
|
|
20236
|
+
"properties" : {
|
|
20237
|
+
"data" : {
|
|
20238
|
+
"$ref" : "#/components/schemas/AiGatewayV1ModelEndpoints_data"
|
|
20239
|
+
}
|
|
20240
|
+
},
|
|
20241
|
+
"required" : [ "data" ],
|
|
19459
20242
|
"type" : "object"
|
|
19460
20243
|
},
|
|
19461
|
-
"
|
|
20244
|
+
"AiGatewayV1Endpoint" : {
|
|
19462
20245
|
"properties" : {
|
|
19463
|
-
"
|
|
20246
|
+
"name" : {
|
|
19464
20247
|
"type" : "string"
|
|
19465
20248
|
},
|
|
19466
|
-
"
|
|
19467
|
-
"enum" : [ "model" ],
|
|
20249
|
+
"model_name" : {
|
|
19468
20250
|
"type" : "string"
|
|
19469
20251
|
},
|
|
19470
|
-
"
|
|
19471
|
-
"
|
|
20252
|
+
"context_length" : {
|
|
20253
|
+
"nullable" : true,
|
|
19472
20254
|
"type" : "integer"
|
|
19473
20255
|
},
|
|
19474
|
-
"
|
|
19475
|
-
"
|
|
19476
|
-
|
|
19477
|
-
|
|
19478
|
-
},
|
|
19479
|
-
"required" : [ "created", "id", "object", "owned_by" ],
|
|
19480
|
-
"type" : "object"
|
|
19481
|
-
},
|
|
19482
|
-
"AiGatewayChatCompletionRequest" : {
|
|
19483
|
-
"additionalProperties" : false,
|
|
19484
|
-
"properties" : {
|
|
19485
|
-
"model" : {
|
|
19486
|
-
"minLength" : 1,
|
|
20256
|
+
"pricing" : {
|
|
20257
|
+
"$ref" : "#/components/schemas/AiGatewayV1Endpoint_pricing"
|
|
20258
|
+
},
|
|
20259
|
+
"provider_name" : {
|
|
19487
20260
|
"type" : "string"
|
|
19488
20261
|
},
|
|
19489
|
-
"
|
|
20262
|
+
"max_completion_tokens" : {
|
|
20263
|
+
"nullable" : true,
|
|
20264
|
+
"type" : "integer"
|
|
20265
|
+
},
|
|
20266
|
+
"supported_parameters" : {
|
|
19490
20267
|
"items" : {
|
|
19491
|
-
"
|
|
20268
|
+
"type" : "string"
|
|
19492
20269
|
},
|
|
19493
|
-
"minItems" : 1,
|
|
19494
20270
|
"type" : "array"
|
|
19495
20271
|
},
|
|
19496
|
-
"
|
|
19497
|
-
"description" : "
|
|
19498
|
-
"
|
|
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,
|
|
19499
20279
|
"type" : "number"
|
|
19500
20280
|
},
|
|
19501
|
-
"
|
|
19502
|
-
"description" : "
|
|
19503
|
-
"
|
|
19504
|
-
"minimum" : 0,
|
|
20281
|
+
"uptime_last_1h" : {
|
|
20282
|
+
"description" : "Toujours null — Breign ne collecte pas de télémétrie de disponibilité",
|
|
20283
|
+
"nullable" : true,
|
|
19505
20284
|
"type" : "number"
|
|
19506
20285
|
},
|
|
19507
|
-
"
|
|
19508
|
-
"description" : "
|
|
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"
|
|
20295
|
+
},
|
|
20296
|
+
"latency_last_1h" : {
|
|
20297
|
+
"description" : "Toujours null — latence non mesurée par endpoint provider",
|
|
20298
|
+
"nullable" : true,
|
|
20299
|
+
"type" : "object"
|
|
20300
|
+
},
|
|
20301
|
+
"supports_implicit_caching" : {
|
|
20302
|
+
"nullable" : true,
|
|
19509
20303
|
"type" : "boolean"
|
|
19510
20304
|
}
|
|
19511
20305
|
},
|
|
19512
|
-
"required" : [ "
|
|
20306
|
+
"required" : [ "model_name", "name", "provider_name", "status", "supported_parameters" ],
|
|
19513
20307
|
"type" : "object"
|
|
19514
20308
|
},
|
|
19515
|
-
"
|
|
19516
|
-
"additionalProperties" : false,
|
|
20309
|
+
"AiGatewayV1Credits" : {
|
|
19517
20310
|
"properties" : {
|
|
19518
|
-
"
|
|
19519
|
-
"
|
|
20311
|
+
"balance" : {
|
|
20312
|
+
"description" : "Toujours null — Breign n'a pas de notion de crédits prépayés",
|
|
20313
|
+
"nullable" : true,
|
|
19520
20314
|
"type" : "string"
|
|
19521
20315
|
},
|
|
19522
|
-
"
|
|
19523
|
-
"
|
|
20316
|
+
"total_used" : {
|
|
20317
|
+
"description" : "Dépense cumulée de l'organisation, calculée depuis la configuration de prix",
|
|
19524
20318
|
"type" : "string"
|
|
19525
20319
|
}
|
|
19526
20320
|
},
|
|
19527
|
-
"required" : [ "
|
|
20321
|
+
"required" : [ "total_used" ],
|
|
19528
20322
|
"type" : "object"
|
|
19529
20323
|
},
|
|
19530
|
-
"
|
|
19531
|
-
"additionalProperties" : true,
|
|
20324
|
+
"AiGatewayV1Generation" : {
|
|
19532
20325
|
"properties" : {
|
|
19533
|
-
"
|
|
19534
|
-
"
|
|
19535
|
-
},
|
|
19536
|
-
"finishReason" : {
|
|
19537
|
-
"type" : "string"
|
|
19538
|
-
},
|
|
19539
|
-
"usage" : {
|
|
19540
|
-
"additionalProperties" : true,
|
|
19541
|
-
"type" : "object"
|
|
20326
|
+
"data" : {
|
|
20327
|
+
"$ref" : "#/components/schemas/AiGatewayV1Generation_data"
|
|
19542
20328
|
}
|
|
19543
20329
|
},
|
|
20330
|
+
"required" : [ "data" ],
|
|
19544
20331
|
"type" : "object"
|
|
19545
20332
|
},
|
|
19546
|
-
"
|
|
19547
|
-
"additionalProperties" : false,
|
|
20333
|
+
"AiGatewayV1Report" : {
|
|
19548
20334
|
"properties" : {
|
|
19549
|
-
"
|
|
19550
|
-
"
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
"minLength" : 1,
|
|
19555
|
-
"type" : "string"
|
|
20335
|
+
"results" : {
|
|
20336
|
+
"items" : {
|
|
20337
|
+
"$ref" : "#/components/schemas/AiGatewayV1ReportRow"
|
|
20338
|
+
},
|
|
20339
|
+
"type" : "array"
|
|
19556
20340
|
}
|
|
19557
20341
|
},
|
|
19558
|
-
"required" : [ "
|
|
20342
|
+
"required" : [ "results" ],
|
|
19559
20343
|
"type" : "object"
|
|
19560
20344
|
},
|
|
19561
|
-
"
|
|
19562
|
-
"
|
|
20345
|
+
"AiGatewayV1ReportRow" : {
|
|
20346
|
+
"description" : "Porte la seule clé de regroupement correspondant au group_by demandé, plus les métriques agrégées.",
|
|
19563
20347
|
"properties" : {
|
|
19564
|
-
"
|
|
19565
|
-
"
|
|
19566
|
-
"type" : "number"
|
|
19567
|
-
},
|
|
19568
|
-
"type" : "array"
|
|
20348
|
+
"day" : {
|
|
20349
|
+
"type" : "string"
|
|
19569
20350
|
},
|
|
19570
|
-
"
|
|
20351
|
+
"hour" : {
|
|
19571
20352
|
"type" : "string"
|
|
19572
20353
|
},
|
|
19573
|
-
"
|
|
19574
|
-
"
|
|
19575
|
-
"type" : "
|
|
20354
|
+
"user" : {
|
|
20355
|
+
"nullable" : true,
|
|
20356
|
+
"type" : "string"
|
|
20357
|
+
},
|
|
20358
|
+
"model" : {
|
|
20359
|
+
"type" : "string"
|
|
20360
|
+
},
|
|
20361
|
+
"tag" : {
|
|
20362
|
+
"type" : "string"
|
|
20363
|
+
},
|
|
20364
|
+
"provider" : {
|
|
20365
|
+
"type" : "string"
|
|
20366
|
+
},
|
|
20367
|
+
"credential_type" : {
|
|
20368
|
+
"type" : "string"
|
|
20369
|
+
},
|
|
20370
|
+
"zero_data_retention" : {
|
|
20371
|
+
"type" : "string"
|
|
20372
|
+
},
|
|
20373
|
+
"api_key_name" : {
|
|
20374
|
+
"nullable" : true,
|
|
20375
|
+
"type" : "string"
|
|
20376
|
+
},
|
|
20377
|
+
"total_cost" : {
|
|
20378
|
+
"type" : "number"
|
|
20379
|
+
},
|
|
20380
|
+
"market_cost" : {
|
|
20381
|
+
"description" : "Égal à total_cost — Breign ne sert pas d'appels BYOK",
|
|
20382
|
+
"type" : "number"
|
|
20383
|
+
},
|
|
20384
|
+
"surcharge_cost" : {
|
|
20385
|
+
"description" : "Toujours 0 — aucune capacité facturée en supplément",
|
|
20386
|
+
"type" : "number"
|
|
20387
|
+
},
|
|
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"
|
|
19576
20409
|
}
|
|
19577
20410
|
},
|
|
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" ],
|
|
19578
20412
|
"type" : "object"
|
|
19579
20413
|
},
|
|
19580
20414
|
"OpenAiChatCompletionRequest" : {
|
|
@@ -21850,6 +22684,164 @@
|
|
|
21850
22684
|
"required" : [ "created", "id", "object", "owned_by" ],
|
|
21851
22685
|
"type" : "object"
|
|
21852
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
|
+
},
|
|
21853
22845
|
"OpenAiChatCompletionRequest_stream_options" : {
|
|
21854
22846
|
"additionalProperties" : false,
|
|
21855
22847
|
"properties" : {
|