@breign/client 1.0.181 → 1.0.183
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/AdminApi.d.ts +46 -10
- package/dist/apis/AdminApi.js +101 -15
- package/dist/apis/EngineApi.d.ts +43 -1
- package/dist/apis/EngineApi.js +100 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +7 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.js +3 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +1 -1
- package/dist/models/AiGatewaySettingsUio.d.ts +7 -0
- package/dist/models/AiGatewaySettingsUio.js +3 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +7 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.js +3 -0
- package/dist/models/AiGatewayUserBudgetUio.d.ts +58 -0
- package/dist/models/AiGatewayUserBudgetUio.js +67 -0
- package/dist/models/ModelDefinitionUio.d.ts +1 -1
- package/dist/models/ModelUserAccessUio.d.ts +50 -0
- package/dist/models/ModelUserAccessUio.js +62 -0
- package/dist/models/OrganisationPlatformEngineUsageModelsInnerUio.d.ts +56 -0
- package/dist/models/OrganisationPlatformEngineUsageModelsInnerUio.js +66 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +7 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.js +5 -0
- package/dist/models/OrganizationModelAccessUio.d.ts +33 -0
- package/dist/models/OrganizationModelAccessUio.js +51 -0
- package/dist/models/OrganizationUio.d.ts +0 -6
- package/dist/models/OrganizationUio.js +0 -2
- package/dist/models/PlatformEngineAccessModelsInnerUio.d.ts +38 -0
- package/dist/models/PlatformEngineAccessModelsInnerUio.js +54 -0
- package/dist/models/PlatformEngineAccessUio.d.ts +33 -0
- package/dist/models/PlatformEngineAccessUio.js +51 -0
- package/dist/models/SetModelUserAccessUio.d.ts +44 -0
- package/dist/models/SetModelUserAccessUio.js +58 -0
- package/dist/models/TokenPriceSuggestionRequestUio.d.ts +39 -0
- package/dist/models/TokenPriceSuggestionRequestUio.js +55 -0
- package/dist/models/TokenPriceSuggestionUio.d.ts +70 -0
- package/dist/models/TokenPriceSuggestionUio.js +72 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/dist/openapi.json +482 -59
- package/package.json +1 -1
- package/dist/models/AllowPlatformEnginesUio.d.ts +0 -32
- package/dist/models/AllowPlatformEnginesUio.js +0 -50
package/dist/openapi.json
CHANGED
|
@@ -7566,6 +7566,61 @@
|
|
|
7566
7566
|
"tags" : [ "Engines" ]
|
|
7567
7567
|
}
|
|
7568
7568
|
},
|
|
7569
|
+
"/organizations/{organizationId}/engines/token-price-suggestions" : {
|
|
7570
|
+
"post" : {
|
|
7571
|
+
"description" : "Admin d'organisation. Prix au million de tokens proposés pour des modèles, en euros : tarifs Breign, sinon catalogue public (models.dev) converti au taux BCE du jour. C'est en euros que se comptent les budgets des utilisateurs. Un prix dont la devise ne se convertit pas est omis.",
|
|
7572
|
+
"operationId" : "suggestOrganizationTokenPrices",
|
|
7573
|
+
"parameters" : [ {
|
|
7574
|
+
"description" : "ID of the organization",
|
|
7575
|
+
"in" : "path",
|
|
7576
|
+
"name" : "organizationId",
|
|
7577
|
+
"required" : true,
|
|
7578
|
+
"schema" : {
|
|
7579
|
+
"type" : "string"
|
|
7580
|
+
}
|
|
7581
|
+
} ],
|
|
7582
|
+
"requestBody" : {
|
|
7583
|
+
"content" : {
|
|
7584
|
+
"application/json" : {
|
|
7585
|
+
"schema" : {
|
|
7586
|
+
"$ref" : "#/components/schemas/TokenPriceSuggestionRequest"
|
|
7587
|
+
}
|
|
7588
|
+
}
|
|
7589
|
+
},
|
|
7590
|
+
"required" : true
|
|
7591
|
+
},
|
|
7592
|
+
"responses" : {
|
|
7593
|
+
"200" : {
|
|
7594
|
+
"content" : {
|
|
7595
|
+
"application/json" : {
|
|
7596
|
+
"schema" : {
|
|
7597
|
+
"items" : {
|
|
7598
|
+
"$ref" : "#/components/schemas/TokenPriceSuggestion"
|
|
7599
|
+
},
|
|
7600
|
+
"type" : "array"
|
|
7601
|
+
}
|
|
7602
|
+
}
|
|
7603
|
+
},
|
|
7604
|
+
"description" : "Suggested prices in euros; models without a known price are omitted"
|
|
7605
|
+
},
|
|
7606
|
+
"400" : {
|
|
7607
|
+
"content" : {
|
|
7608
|
+
"application/json" : {
|
|
7609
|
+
"schema" : {
|
|
7610
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7611
|
+
}
|
|
7612
|
+
}
|
|
7613
|
+
},
|
|
7614
|
+
"description" : "Invalid request"
|
|
7615
|
+
},
|
|
7616
|
+
"403" : {
|
|
7617
|
+
"description" : "Forbidden — the caller is not an admin of the organization"
|
|
7618
|
+
}
|
|
7619
|
+
},
|
|
7620
|
+
"summary" : "Suggest token prices for organization engine models",
|
|
7621
|
+
"tags" : [ "engine" ]
|
|
7622
|
+
}
|
|
7623
|
+
},
|
|
7569
7624
|
"/organizations/{organizationId}/engines/providers/with-embedding" : {
|
|
7570
7625
|
"get" : {
|
|
7571
7626
|
"description" : "Returns engine providers that support embedding for a given organization. Chaque provider est réduit aux seuls modèles marqués `hasEmbedding`.",
|
|
@@ -7885,6 +7940,52 @@
|
|
|
7885
7940
|
"tags" : [ "admin" ]
|
|
7886
7941
|
}
|
|
7887
7942
|
},
|
|
7943
|
+
"/admin/platform-engines/token-price-suggestions" : {
|
|
7944
|
+
"post" : {
|
|
7945
|
+
"description" : "Superadmin. Prix au million de tokens proposés pour des modèles : tarifs Breign déjà enregistrés, sinon catalogue public (models.dev), dans leur devise d'origine.",
|
|
7946
|
+
"operationId" : "suggestPlatformTokenPrices",
|
|
7947
|
+
"requestBody" : {
|
|
7948
|
+
"content" : {
|
|
7949
|
+
"application/json" : {
|
|
7950
|
+
"schema" : {
|
|
7951
|
+
"$ref" : "#/components/schemas/TokenPriceSuggestionRequest"
|
|
7952
|
+
}
|
|
7953
|
+
}
|
|
7954
|
+
},
|
|
7955
|
+
"required" : true
|
|
7956
|
+
},
|
|
7957
|
+
"responses" : {
|
|
7958
|
+
"200" : {
|
|
7959
|
+
"content" : {
|
|
7960
|
+
"application/json" : {
|
|
7961
|
+
"schema" : {
|
|
7962
|
+
"items" : {
|
|
7963
|
+
"$ref" : "#/components/schemas/TokenPriceSuggestion"
|
|
7964
|
+
},
|
|
7965
|
+
"type" : "array"
|
|
7966
|
+
}
|
|
7967
|
+
}
|
|
7968
|
+
},
|
|
7969
|
+
"description" : "Suggested prices; models without a known price are omitted"
|
|
7970
|
+
},
|
|
7971
|
+
"400" : {
|
|
7972
|
+
"content" : {
|
|
7973
|
+
"application/json" : {
|
|
7974
|
+
"schema" : {
|
|
7975
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7976
|
+
}
|
|
7977
|
+
}
|
|
7978
|
+
},
|
|
7979
|
+
"description" : "Invalid request"
|
|
7980
|
+
},
|
|
7981
|
+
"403" : {
|
|
7982
|
+
"description" : "Forbidden — superadmin only"
|
|
7983
|
+
}
|
|
7984
|
+
},
|
|
7985
|
+
"summary" : "Suggest token prices for platform engine models",
|
|
7986
|
+
"tags" : [ "admin" ]
|
|
7987
|
+
}
|
|
7988
|
+
},
|
|
7888
7989
|
"/admin/platform-engines/{id}" : {
|
|
7889
7990
|
"delete" : {
|
|
7890
7991
|
"operationId" : "deletePlatformEngine",
|
|
@@ -8052,13 +8153,42 @@
|
|
|
8052
8153
|
"tags" : [ "admin" ]
|
|
8053
8154
|
}
|
|
8054
8155
|
},
|
|
8055
|
-
"/admin/
|
|
8056
|
-
"
|
|
8057
|
-
"description" : "Superadmin.
|
|
8058
|
-
"operationId" : "
|
|
8156
|
+
"/admin/platform-engines/{id}/access" : {
|
|
8157
|
+
"get" : {
|
|
8158
|
+
"description" : "Superadmin. Organisations qui ont accès à chaque modèle du moteur plateforme.",
|
|
8159
|
+
"operationId" : "getPlatformEngineAccess",
|
|
8059
8160
|
"parameters" : [ {
|
|
8060
8161
|
"in" : "path",
|
|
8061
|
-
"name" : "
|
|
8162
|
+
"name" : "id",
|
|
8163
|
+
"required" : true,
|
|
8164
|
+
"schema" : {
|
|
8165
|
+
"type" : "string"
|
|
8166
|
+
}
|
|
8167
|
+
} ],
|
|
8168
|
+
"responses" : {
|
|
8169
|
+
"200" : {
|
|
8170
|
+
"content" : {
|
|
8171
|
+
"application/json" : {
|
|
8172
|
+
"schema" : {
|
|
8173
|
+
"$ref" : "#/components/schemas/PlatformEngineAccess"
|
|
8174
|
+
}
|
|
8175
|
+
}
|
|
8176
|
+
},
|
|
8177
|
+
"description" : "Access per model"
|
|
8178
|
+
},
|
|
8179
|
+
"404" : {
|
|
8180
|
+
"description" : "Platform engine not found"
|
|
8181
|
+
}
|
|
8182
|
+
},
|
|
8183
|
+
"summary" : "Get platform engine access",
|
|
8184
|
+
"tags" : [ "admin" ]
|
|
8185
|
+
},
|
|
8186
|
+
"put" : {
|
|
8187
|
+
"description" : "Superadmin. Remplace, pour chaque modèle listé, les organisations qui y ont accès. Les modèles absents du corps gardent leurs organisations.\n",
|
|
8188
|
+
"operationId" : "setPlatformEngineAccess",
|
|
8189
|
+
"parameters" : [ {
|
|
8190
|
+
"in" : "path",
|
|
8191
|
+
"name" : "id",
|
|
8062
8192
|
"required" : true,
|
|
8063
8193
|
"schema" : {
|
|
8064
8194
|
"type" : "string"
|
|
@@ -8068,7 +8198,7 @@
|
|
|
8068
8198
|
"content" : {
|
|
8069
8199
|
"application/json" : {
|
|
8070
8200
|
"schema" : {
|
|
8071
|
-
"$ref" : "#/components/schemas/
|
|
8201
|
+
"$ref" : "#/components/schemas/PlatformEngineAccess"
|
|
8072
8202
|
}
|
|
8073
8203
|
}
|
|
8074
8204
|
},
|
|
@@ -8079,20 +8209,128 @@
|
|
|
8079
8209
|
"content" : {
|
|
8080
8210
|
"application/json" : {
|
|
8081
8211
|
"schema" : {
|
|
8082
|
-
"$ref" : "#/components/schemas/
|
|
8212
|
+
"$ref" : "#/components/schemas/PlatformEngineAccess"
|
|
8083
8213
|
}
|
|
8084
8214
|
}
|
|
8085
8215
|
},
|
|
8086
8216
|
"description" : "Updated access"
|
|
8087
8217
|
},
|
|
8088
8218
|
"400" : {
|
|
8089
|
-
"description" : "
|
|
8219
|
+
"description" : "Unknown model or organisation"
|
|
8090
8220
|
},
|
|
8091
8221
|
"404" : {
|
|
8092
|
-
"description" : "
|
|
8222
|
+
"description" : "Platform engine not found"
|
|
8093
8223
|
}
|
|
8094
8224
|
},
|
|
8095
|
-
"summary" : "
|
|
8225
|
+
"summary" : "Set platform engine access",
|
|
8226
|
+
"tags" : [ "admin" ]
|
|
8227
|
+
}
|
|
8228
|
+
},
|
|
8229
|
+
"/organizations/{organizationId}/engines/access" : {
|
|
8230
|
+
"get" : {
|
|
8231
|
+
"description" : "Admin de l'organisation. Modèles réservés à certains membres.",
|
|
8232
|
+
"operationId" : "getOrganizationModelAccess",
|
|
8233
|
+
"parameters" : [ {
|
|
8234
|
+
"in" : "path",
|
|
8235
|
+
"name" : "organizationId",
|
|
8236
|
+
"required" : true,
|
|
8237
|
+
"schema" : {
|
|
8238
|
+
"type" : "string"
|
|
8239
|
+
}
|
|
8240
|
+
} ],
|
|
8241
|
+
"responses" : {
|
|
8242
|
+
"200" : {
|
|
8243
|
+
"content" : {
|
|
8244
|
+
"application/json" : {
|
|
8245
|
+
"schema" : {
|
|
8246
|
+
"$ref" : "#/components/schemas/OrganizationModelAccess"
|
|
8247
|
+
}
|
|
8248
|
+
}
|
|
8249
|
+
},
|
|
8250
|
+
"description" : "Model access rules"
|
|
8251
|
+
},
|
|
8252
|
+
"403" : {
|
|
8253
|
+
"description" : "Not an admin of the organization"
|
|
8254
|
+
}
|
|
8255
|
+
},
|
|
8256
|
+
"summary" : "List model user restrictions of an organization",
|
|
8257
|
+
"tags" : [ "engine" ]
|
|
8258
|
+
}
|
|
8259
|
+
},
|
|
8260
|
+
"/organizations/{organizationId}/engines/providers/{providerId}/access" : {
|
|
8261
|
+
"put" : {
|
|
8262
|
+
"description" : "Admin de l'organisation. Réserve un modèle (de l'organisation ou plateforme ouvert à l'organisation) à certains membres, ou le rouvre à tous avec `restrictToUsers: false`.\n",
|
|
8263
|
+
"operationId" : "setModelUserAccess",
|
|
8264
|
+
"parameters" : [ {
|
|
8265
|
+
"in" : "path",
|
|
8266
|
+
"name" : "organizationId",
|
|
8267
|
+
"required" : true,
|
|
8268
|
+
"schema" : {
|
|
8269
|
+
"type" : "string"
|
|
8270
|
+
}
|
|
8271
|
+
}, {
|
|
8272
|
+
"in" : "path",
|
|
8273
|
+
"name" : "providerId",
|
|
8274
|
+
"required" : true,
|
|
8275
|
+
"schema" : {
|
|
8276
|
+
"type" : "string"
|
|
8277
|
+
}
|
|
8278
|
+
} ],
|
|
8279
|
+
"requestBody" : {
|
|
8280
|
+
"content" : {
|
|
8281
|
+
"application/json" : {
|
|
8282
|
+
"schema" : {
|
|
8283
|
+
"$ref" : "#/components/schemas/SetModelUserAccess"
|
|
8284
|
+
}
|
|
8285
|
+
}
|
|
8286
|
+
},
|
|
8287
|
+
"required" : true
|
|
8288
|
+
},
|
|
8289
|
+
"responses" : {
|
|
8290
|
+
"200" : {
|
|
8291
|
+
"content" : {
|
|
8292
|
+
"application/json" : {
|
|
8293
|
+
"schema" : {
|
|
8294
|
+
"$ref" : "#/components/schemas/ModelUserAccess"
|
|
8295
|
+
}
|
|
8296
|
+
}
|
|
8297
|
+
},
|
|
8298
|
+
"description" : "Updated rule"
|
|
8299
|
+
},
|
|
8300
|
+
"400" : {
|
|
8301
|
+
"description" : "Model not available to the organization, or user not a member"
|
|
8302
|
+
},
|
|
8303
|
+
"403" : {
|
|
8304
|
+
"description" : "Not an admin of the organization"
|
|
8305
|
+
}
|
|
8306
|
+
},
|
|
8307
|
+
"summary" : "Restrict a model to some members",
|
|
8308
|
+
"tags" : [ "engine" ]
|
|
8309
|
+
}
|
|
8310
|
+
},
|
|
8311
|
+
"/admin/organisations" : {
|
|
8312
|
+
"get" : {
|
|
8313
|
+
"description" : "Superadmin. Toutes les organisations de la plateforme, avec leurs membres.",
|
|
8314
|
+
"operationId" : "listAdminOrganisations",
|
|
8315
|
+
"responses" : {
|
|
8316
|
+
"200" : {
|
|
8317
|
+
"content" : {
|
|
8318
|
+
"application/json" : {
|
|
8319
|
+
"schema" : {
|
|
8320
|
+
"items" : {
|
|
8321
|
+
"$ref" : "#/components/schemas/Organization"
|
|
8322
|
+
},
|
|
8323
|
+
"type" : "array"
|
|
8324
|
+
}
|
|
8325
|
+
}
|
|
8326
|
+
},
|
|
8327
|
+
"description" : "Organisations"
|
|
8328
|
+
},
|
|
8329
|
+
"403" : {
|
|
8330
|
+
"description" : "Not a superadmin"
|
|
8331
|
+
}
|
|
8332
|
+
},
|
|
8333
|
+
"summary" : "List all organisations",
|
|
8096
8334
|
"tags" : [ "admin" ]
|
|
8097
8335
|
}
|
|
8098
8336
|
},
|
|
@@ -26745,7 +26983,7 @@
|
|
|
26745
26983
|
"type" : "integer"
|
|
26746
26984
|
},
|
|
26747
26985
|
"inputTokenPrice" : {
|
|
26748
|
-
"description" : "Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme.",
|
|
26986
|
+
"description" : "Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme, ou par l'admin d'organisation sur ses moteurs à clé propre (compté dans les budgets en euros).",
|
|
26749
26987
|
"minimum" : 0,
|
|
26750
26988
|
"type" : "number"
|
|
26751
26989
|
},
|
|
@@ -26792,6 +27030,54 @@
|
|
|
26792
27030
|
"required" : [ "id", "models", "name", "providerType" ],
|
|
26793
27031
|
"type" : "object"
|
|
26794
27032
|
},
|
|
27033
|
+
"TokenPriceSuggestionRequest" : {
|
|
27034
|
+
"properties" : {
|
|
27035
|
+
"providerType" : {
|
|
27036
|
+
"$ref" : "#/components/schemas/ProviderType"
|
|
27037
|
+
},
|
|
27038
|
+
"modelIds" : {
|
|
27039
|
+
"description" : "Identifiants des modèles chez le fournisseur (`modelId`).",
|
|
27040
|
+
"items" : {
|
|
27041
|
+
"type" : "string"
|
|
27042
|
+
},
|
|
27043
|
+
"maxItems" : 50,
|
|
27044
|
+
"minItems" : 1,
|
|
27045
|
+
"type" : "array"
|
|
27046
|
+
}
|
|
27047
|
+
},
|
|
27048
|
+
"required" : [ "modelIds", "providerType" ],
|
|
27049
|
+
"type" : "object"
|
|
27050
|
+
},
|
|
27051
|
+
"TokenPriceSuggestion" : {
|
|
27052
|
+
"properties" : {
|
|
27053
|
+
"modelId" : {
|
|
27054
|
+
"type" : "string"
|
|
27055
|
+
},
|
|
27056
|
+
"inputTokenPrice" : {
|
|
27057
|
+
"description" : "Prix d'un million de tokens en entrée.",
|
|
27058
|
+
"type" : "number"
|
|
27059
|
+
},
|
|
27060
|
+
"outputTokenPrice" : {
|
|
27061
|
+
"description" : "Prix d'un million de tokens en sortie.",
|
|
27062
|
+
"type" : "number"
|
|
27063
|
+
},
|
|
27064
|
+
"currency" : {
|
|
27065
|
+
"description" : "Devise des prix (ISO 4217).",
|
|
27066
|
+
"type" : "string"
|
|
27067
|
+
},
|
|
27068
|
+
"source" : {
|
|
27069
|
+
"description" : "configuration = tarifs déjà enregistrés par Breign ; catalog = catalogue public (models.dev).",
|
|
27070
|
+
"enum" : [ "configuration", "catalog" ],
|
|
27071
|
+
"type" : "string"
|
|
27072
|
+
},
|
|
27073
|
+
"convertedFrom" : {
|
|
27074
|
+
"description" : "Devise d'origine quand les prix ont été convertis en euros au taux du jour (BCE). Absent sans conversion.",
|
|
27075
|
+
"type" : "string"
|
|
27076
|
+
}
|
|
27077
|
+
},
|
|
27078
|
+
"required" : [ "currency", "modelId", "source" ],
|
|
27079
|
+
"type" : "object"
|
|
27080
|
+
},
|
|
26795
27081
|
"EmbeddingProvider" : {
|
|
26796
27082
|
"properties" : {
|
|
26797
27083
|
"id" : {
|
|
@@ -26886,13 +27172,110 @@
|
|
|
26886
27172
|
"required" : [ "agentsByModel", "defaultEnginesByModel", "knowledgeBases" ],
|
|
26887
27173
|
"type" : "object"
|
|
26888
27174
|
},
|
|
26889
|
-
"
|
|
27175
|
+
"PlatformEngineAccess" : {
|
|
27176
|
+
"description" : "Organisations qui ont accès à chaque modèle d'un moteur plateforme.",
|
|
27177
|
+
"properties" : {
|
|
27178
|
+
"models" : {
|
|
27179
|
+
"items" : {
|
|
27180
|
+
"$ref" : "#/components/schemas/PlatformEngineAccess_models_inner"
|
|
27181
|
+
},
|
|
27182
|
+
"type" : "array"
|
|
27183
|
+
}
|
|
27184
|
+
},
|
|
27185
|
+
"required" : [ "models" ],
|
|
27186
|
+
"type" : "object"
|
|
27187
|
+
},
|
|
27188
|
+
"OrganizationModelAccess" : {
|
|
26890
27189
|
"properties" : {
|
|
26891
|
-
"
|
|
27190
|
+
"rules" : {
|
|
27191
|
+
"description" : "Seuls les modèles restreints, ou l'ayant été, figurent ici. Absent ⇒ tous les membres.",
|
|
27192
|
+
"items" : {
|
|
27193
|
+
"$ref" : "#/components/schemas/ModelUserAccess"
|
|
27194
|
+
},
|
|
27195
|
+
"type" : "array"
|
|
27196
|
+
}
|
|
27197
|
+
},
|
|
27198
|
+
"required" : [ "rules" ],
|
|
27199
|
+
"type" : "object"
|
|
27200
|
+
},
|
|
27201
|
+
"ModelUserAccess" : {
|
|
27202
|
+
"description" : "Restriction d'un modèle à certains membres d'une organisation.",
|
|
27203
|
+
"properties" : {
|
|
27204
|
+
"providerId" : {
|
|
27205
|
+
"type" : "string"
|
|
27206
|
+
},
|
|
27207
|
+
"modelId" : {
|
|
27208
|
+
"type" : "string"
|
|
27209
|
+
},
|
|
27210
|
+
"restrictToUsers" : {
|
|
27211
|
+
"description" : "Vrai ⇒ seuls `userIds` et les admins de l'organisation peuvent utiliser le modèle.",
|
|
26892
27212
|
"type" : "boolean"
|
|
27213
|
+
},
|
|
27214
|
+
"userIds" : {
|
|
27215
|
+
"items" : {
|
|
27216
|
+
"type" : "string"
|
|
27217
|
+
},
|
|
27218
|
+
"type" : "array"
|
|
26893
27219
|
}
|
|
26894
27220
|
},
|
|
26895
|
-
"required" : [ "
|
|
27221
|
+
"required" : [ "modelId", "providerId", "restrictToUsers", "userIds" ],
|
|
27222
|
+
"type" : "object"
|
|
27223
|
+
},
|
|
27224
|
+
"SetModelUserAccess" : {
|
|
27225
|
+
"properties" : {
|
|
27226
|
+
"modelId" : {
|
|
27227
|
+
"type" : "string"
|
|
27228
|
+
},
|
|
27229
|
+
"restrictToUsers" : {
|
|
27230
|
+
"type" : "boolean"
|
|
27231
|
+
},
|
|
27232
|
+
"userIds" : {
|
|
27233
|
+
"items" : {
|
|
27234
|
+
"type" : "string"
|
|
27235
|
+
},
|
|
27236
|
+
"type" : "array"
|
|
27237
|
+
}
|
|
27238
|
+
},
|
|
27239
|
+
"required" : [ "modelId", "restrictToUsers", "userIds" ],
|
|
27240
|
+
"type" : "object"
|
|
27241
|
+
},
|
|
27242
|
+
"Organization" : {
|
|
27243
|
+
"properties" : {
|
|
27244
|
+
"id" : {
|
|
27245
|
+
"type" : "string"
|
|
27246
|
+
},
|
|
27247
|
+
"name" : {
|
|
27248
|
+
"type" : "string"
|
|
27249
|
+
},
|
|
27250
|
+
"slug" : {
|
|
27251
|
+
"type" : "string"
|
|
27252
|
+
},
|
|
27253
|
+
"engine" : {
|
|
27254
|
+
"$ref" : "#/components/schemas/OrganizationEngine"
|
|
27255
|
+
},
|
|
27256
|
+
"ocr" : {
|
|
27257
|
+
"$ref" : "#/components/schemas/OrganizationOcrConfig"
|
|
27258
|
+
},
|
|
27259
|
+
"users" : {
|
|
27260
|
+
"items" : {
|
|
27261
|
+
"$ref" : "#/components/schemas/OrganizationUser"
|
|
27262
|
+
},
|
|
27263
|
+
"type" : "array"
|
|
27264
|
+
}
|
|
27265
|
+
},
|
|
27266
|
+
"required" : [ "id", "name", "slug" ],
|
|
27267
|
+
"type" : "object"
|
|
27268
|
+
},
|
|
27269
|
+
"OrganizationUser" : {
|
|
27270
|
+
"properties" : {
|
|
27271
|
+
"id" : {
|
|
27272
|
+
"type" : "string"
|
|
27273
|
+
},
|
|
27274
|
+
"role" : {
|
|
27275
|
+
"type" : "string"
|
|
27276
|
+
}
|
|
27277
|
+
},
|
|
27278
|
+
"required" : [ "id", "role" ],
|
|
26896
27279
|
"type" : "object"
|
|
26897
27280
|
},
|
|
26898
27281
|
"OrganisationPlatformEngineUsage" : {
|
|
@@ -26906,9 +27289,16 @@
|
|
|
26906
27289
|
},
|
|
26907
27290
|
"knowledgeBases" : {
|
|
26908
27291
|
"type" : "integer"
|
|
27292
|
+
},
|
|
27293
|
+
"models" : {
|
|
27294
|
+
"description" : "Le même usage, modèle par modèle.",
|
|
27295
|
+
"items" : {
|
|
27296
|
+
"$ref" : "#/components/schemas/OrganisationPlatformEngineUsage_models_inner"
|
|
27297
|
+
},
|
|
27298
|
+
"type" : "array"
|
|
26909
27299
|
}
|
|
26910
27300
|
},
|
|
26911
|
-
"required" : [ "agents", "defaultEngine", "knowledgeBases" ],
|
|
27301
|
+
"required" : [ "agents", "defaultEngine", "knowledgeBases", "models" ],
|
|
26912
27302
|
"type" : "object"
|
|
26913
27303
|
},
|
|
26914
27304
|
"FileWithDownloadUrl" : {
|
|
@@ -27360,49 +27750,6 @@
|
|
|
27360
27750
|
},
|
|
27361
27751
|
"type" : "object"
|
|
27362
27752
|
},
|
|
27363
|
-
"Organization" : {
|
|
27364
|
-
"properties" : {
|
|
27365
|
-
"id" : {
|
|
27366
|
-
"type" : "string"
|
|
27367
|
-
},
|
|
27368
|
-
"name" : {
|
|
27369
|
-
"type" : "string"
|
|
27370
|
-
},
|
|
27371
|
-
"slug" : {
|
|
27372
|
-
"type" : "string"
|
|
27373
|
-
},
|
|
27374
|
-
"engine" : {
|
|
27375
|
-
"$ref" : "#/components/schemas/OrganizationEngine"
|
|
27376
|
-
},
|
|
27377
|
-
"ocr" : {
|
|
27378
|
-
"$ref" : "#/components/schemas/OrganizationOcrConfig"
|
|
27379
|
-
},
|
|
27380
|
-
"allowPlatformEngines" : {
|
|
27381
|
-
"description" : "L'organisation peut choisir les moteurs plateforme Breign.",
|
|
27382
|
-
"type" : "boolean"
|
|
27383
|
-
},
|
|
27384
|
-
"users" : {
|
|
27385
|
-
"items" : {
|
|
27386
|
-
"$ref" : "#/components/schemas/OrganizationUser"
|
|
27387
|
-
},
|
|
27388
|
-
"type" : "array"
|
|
27389
|
-
}
|
|
27390
|
-
},
|
|
27391
|
-
"required" : [ "id", "name", "slug" ],
|
|
27392
|
-
"type" : "object"
|
|
27393
|
-
},
|
|
27394
|
-
"OrganizationUser" : {
|
|
27395
|
-
"properties" : {
|
|
27396
|
-
"id" : {
|
|
27397
|
-
"type" : "string"
|
|
27398
|
-
},
|
|
27399
|
-
"role" : {
|
|
27400
|
-
"type" : "string"
|
|
27401
|
-
}
|
|
27402
|
-
},
|
|
27403
|
-
"required" : [ "id", "role" ],
|
|
27404
|
-
"type" : "object"
|
|
27405
|
-
},
|
|
27406
27753
|
"Role" : {
|
|
27407
27754
|
"properties" : {
|
|
27408
27755
|
"id" : {
|
|
@@ -30592,6 +30939,13 @@
|
|
|
30592
30939
|
},
|
|
30593
30940
|
"type" : "array"
|
|
30594
30941
|
},
|
|
30942
|
+
"userBudgets" : {
|
|
30943
|
+
"description" : "Budgets en euros par utilisateur (moteurs à clé propre seulement ; vide côté plateforme).",
|
|
30944
|
+
"items" : {
|
|
30945
|
+
"$ref" : "#/components/schemas/AiGatewayUserBudget"
|
|
30946
|
+
},
|
|
30947
|
+
"type" : "array"
|
|
30948
|
+
},
|
|
30595
30949
|
"updatedAt" : {
|
|
30596
30950
|
"format" : "date-time",
|
|
30597
30951
|
"type" : "string"
|
|
@@ -30607,7 +30961,7 @@
|
|
|
30607
30961
|
"AiGatewayModelTokenQuota" : {
|
|
30608
30962
|
"properties" : {
|
|
30609
30963
|
"userId" : {
|
|
30610
|
-
"description" : "Breign user id this quota applies to",
|
|
30964
|
+
"description" : "Breign user id this quota applies to, or `*` for every user (each one separately). A quota on a specific user overrides the `*` one for that user.",
|
|
30611
30965
|
"type" : "string"
|
|
30612
30966
|
},
|
|
30613
30967
|
"model" : {
|
|
@@ -30631,6 +30985,31 @@
|
|
|
30631
30985
|
"required" : [ "limit", "model", "period", "userId" ],
|
|
30632
30986
|
"type" : "object"
|
|
30633
30987
|
},
|
|
30988
|
+
"AiGatewayUserBudget" : {
|
|
30989
|
+
"properties" : {
|
|
30990
|
+
"userId" : {
|
|
30991
|
+
"description" : "Breign user id this budget applies to, or `*` for every user (each one separately). A budget on a specific user overrides the `*` one for that user.",
|
|
30992
|
+
"type" : "string"
|
|
30993
|
+
},
|
|
30994
|
+
"amount" : {
|
|
30995
|
+
"description" : "Budget en euros pour la période, tous modèles à clé propre de l'organisation confondus. Une consommation sans prix en euros n'y compte pas.",
|
|
30996
|
+
"exclusiveMinimum" : true,
|
|
30997
|
+
"minimum" : 0,
|
|
30998
|
+
"type" : "number"
|
|
30999
|
+
},
|
|
31000
|
+
"period" : {
|
|
31001
|
+
"enum" : [ "day", "month" ],
|
|
31002
|
+
"type" : "string"
|
|
31003
|
+
},
|
|
31004
|
+
"used" : {
|
|
31005
|
+
"description" : "Euros déjà consommés sur la période en cours (réponse seulement). Absent pour `*` : chaque utilisateur a sa propre consommation.",
|
|
31006
|
+
"readOnly" : true,
|
|
31007
|
+
"type" : "number"
|
|
31008
|
+
}
|
|
31009
|
+
},
|
|
31010
|
+
"required" : [ "amount", "period", "userId" ],
|
|
31011
|
+
"type" : "object"
|
|
31012
|
+
},
|
|
30634
31013
|
"AiGatewaySettingsUpdateRequest" : {
|
|
30635
31014
|
"properties" : {
|
|
30636
31015
|
"gatewayRpm" : {
|
|
@@ -30643,6 +31022,13 @@
|
|
|
30643
31022
|
"$ref" : "#/components/schemas/AiGatewayModelTokenQuota"
|
|
30644
31023
|
},
|
|
30645
31024
|
"type" : "array"
|
|
31025
|
+
},
|
|
31026
|
+
"userBudgets" : {
|
|
31027
|
+
"description" : "Remplace tous les budgets. Refusé sur les réglages plateforme.",
|
|
31028
|
+
"items" : {
|
|
31029
|
+
"$ref" : "#/components/schemas/AiGatewayUserBudget"
|
|
31030
|
+
},
|
|
31031
|
+
"type" : "array"
|
|
30646
31032
|
}
|
|
30647
31033
|
},
|
|
30648
31034
|
"type" : "object"
|
|
@@ -35714,6 +36100,43 @@
|
|
|
35714
36100
|
"required" : [ "id", "name", "organizationId" ],
|
|
35715
36101
|
"type" : "object"
|
|
35716
36102
|
},
|
|
36103
|
+
"PlatformEngineAccess_models_inner" : {
|
|
36104
|
+
"properties" : {
|
|
36105
|
+
"modelId" : {
|
|
36106
|
+
"type" : "string"
|
|
36107
|
+
},
|
|
36108
|
+
"organizationIds" : {
|
|
36109
|
+
"items" : {
|
|
36110
|
+
"type" : "string"
|
|
36111
|
+
},
|
|
36112
|
+
"type" : "array"
|
|
36113
|
+
}
|
|
36114
|
+
},
|
|
36115
|
+
"required" : [ "modelId", "organizationIds" ],
|
|
36116
|
+
"type" : "object"
|
|
36117
|
+
},
|
|
36118
|
+
"OrganisationPlatformEngineUsage_models_inner" : {
|
|
36119
|
+
"properties" : {
|
|
36120
|
+
"providerId" : {
|
|
36121
|
+
"type" : "string"
|
|
36122
|
+
},
|
|
36123
|
+
"modelId" : {
|
|
36124
|
+
"type" : "string"
|
|
36125
|
+
},
|
|
36126
|
+
"agents" : {
|
|
36127
|
+
"type" : "integer"
|
|
36128
|
+
},
|
|
36129
|
+
"defaultEngine" : {
|
|
36130
|
+
"type" : "boolean"
|
|
36131
|
+
},
|
|
36132
|
+
"knowledgeBases" : {
|
|
36133
|
+
"description" : "Bases de connaissances indexées avec ce modèle d'embedding.",
|
|
36134
|
+
"type" : "integer"
|
|
36135
|
+
}
|
|
36136
|
+
},
|
|
36137
|
+
"required" : [ "agents", "defaultEngine", "knowledgeBases", "modelId", "providerId" ],
|
|
36138
|
+
"type" : "object"
|
|
36139
|
+
},
|
|
35717
36140
|
"MetricForAgent_identifier" : {
|
|
35718
36141
|
"properties" : {
|
|
35719
36142
|
"agentId" : {
|