@breign/client 1.0.172 → 1.0.173
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 +110 -1
- package/dist/apis/AdminApi.js +263 -0
- package/dist/apis/AiGatewayApi.d.ts +41 -5
- package/dist/apis/AiGatewayApi.js +80 -7
- package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +63 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.js +69 -0
- package/dist/models/AiGatewayUsageCostUio.d.ts +60 -0
- package/dist/models/AiGatewayUsageCostUio.js +62 -0
- package/dist/models/AiGatewayUsageUio.d.ts +7 -0
- package/dist/models/AiGatewayUsageUio.js +3 -0
- package/dist/models/AllowPlatformEnginesUio.d.ts +32 -0
- package/dist/models/AllowPlatformEnginesUio.js +50 -0
- package/dist/models/DefaultEngineRequestUio.d.ts +6 -0
- package/dist/models/DefaultEngineRequestUio.js +2 -0
- package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.d.ts +44 -0
- package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.js +58 -0
- package/dist/models/DeletePlatformEngineResponseUio.d.ts +45 -0
- package/dist/models/DeletePlatformEngineResponseUio.js +59 -0
- package/dist/models/ModelDefinitionUio.d.ts +33 -0
- package/dist/models/ModelDefinitionUio.js +17 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +44 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.js +58 -0
- package/dist/models/OrganizationUio.d.ts +6 -0
- package/dist/models/OrganizationUio.js +2 -0
- package/dist/models/PlatformEngineUsageUio.d.ts +48 -0
- package/dist/models/PlatformEngineUsageUio.js +58 -0
- package/dist/models/ProviderCreateRequestUio.d.ts +12 -0
- package/dist/models/ProviderCreateRequestUio.js +4 -0
- package/dist/models/ProviderUio.d.ts +12 -0
- package/dist/models/ProviderUio.js +4 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/openapi.json +585 -2
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -7148,6 +7148,296 @@
|
|
|
7148
7148
|
"tags" : [ "engine" ]
|
|
7149
7149
|
}
|
|
7150
7150
|
},
|
|
7151
|
+
"/admin/platform-engines" : {
|
|
7152
|
+
"get" : {
|
|
7153
|
+
"description" : "Superadmin. Moteurs IA dont la clé d'API appartient à Breign.",
|
|
7154
|
+
"operationId" : "listPlatformEngines",
|
|
7155
|
+
"responses" : {
|
|
7156
|
+
"200" : {
|
|
7157
|
+
"content" : {
|
|
7158
|
+
"application/json" : {
|
|
7159
|
+
"schema" : {
|
|
7160
|
+
"items" : {
|
|
7161
|
+
"$ref" : "#/components/schemas/Provider"
|
|
7162
|
+
},
|
|
7163
|
+
"type" : "array"
|
|
7164
|
+
}
|
|
7165
|
+
}
|
|
7166
|
+
},
|
|
7167
|
+
"description" : "Platform engines"
|
|
7168
|
+
}
|
|
7169
|
+
},
|
|
7170
|
+
"summary" : "List platform engines",
|
|
7171
|
+
"tags" : [ "admin" ]
|
|
7172
|
+
},
|
|
7173
|
+
"post" : {
|
|
7174
|
+
"description" : "Superadmin. Enregistre un moteur Breign, ses modèles, leurs capacités et leur prix au million de tokens.",
|
|
7175
|
+
"operationId" : "createPlatformEngine",
|
|
7176
|
+
"requestBody" : {
|
|
7177
|
+
"content" : {
|
|
7178
|
+
"application/json" : {
|
|
7179
|
+
"schema" : {
|
|
7180
|
+
"$ref" : "#/components/schemas/ProviderCreateRequest"
|
|
7181
|
+
}
|
|
7182
|
+
}
|
|
7183
|
+
},
|
|
7184
|
+
"required" : true
|
|
7185
|
+
},
|
|
7186
|
+
"responses" : {
|
|
7187
|
+
"201" : {
|
|
7188
|
+
"content" : {
|
|
7189
|
+
"application/json" : {
|
|
7190
|
+
"schema" : {
|
|
7191
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7192
|
+
}
|
|
7193
|
+
}
|
|
7194
|
+
},
|
|
7195
|
+
"description" : "Created"
|
|
7196
|
+
}
|
|
7197
|
+
},
|
|
7198
|
+
"summary" : "Create a platform engine",
|
|
7199
|
+
"tags" : [ "admin" ]
|
|
7200
|
+
}
|
|
7201
|
+
},
|
|
7202
|
+
"/admin/platform-engines/{id}" : {
|
|
7203
|
+
"delete" : {
|
|
7204
|
+
"operationId" : "deletePlatformEngine",
|
|
7205
|
+
"parameters" : [ {
|
|
7206
|
+
"in" : "path",
|
|
7207
|
+
"name" : "id",
|
|
7208
|
+
"required" : true,
|
|
7209
|
+
"schema" : {
|
|
7210
|
+
"type" : "string"
|
|
7211
|
+
}
|
|
7212
|
+
} ],
|
|
7213
|
+
"responses" : {
|
|
7214
|
+
"200" : {
|
|
7215
|
+
"content" : {
|
|
7216
|
+
"application/json" : {
|
|
7217
|
+
"schema" : {
|
|
7218
|
+
"$ref" : "#/components/schemas/DeletePlatformEngineResponse"
|
|
7219
|
+
}
|
|
7220
|
+
}
|
|
7221
|
+
},
|
|
7222
|
+
"description" : "Deleted"
|
|
7223
|
+
},
|
|
7224
|
+
"404" : {
|
|
7225
|
+
"description" : "Platform engine not found"
|
|
7226
|
+
}
|
|
7227
|
+
},
|
|
7228
|
+
"summary" : "Delete a platform engine",
|
|
7229
|
+
"tags" : [ "admin" ]
|
|
7230
|
+
},
|
|
7231
|
+
"put" : {
|
|
7232
|
+
"operationId" : "updatePlatformEngine",
|
|
7233
|
+
"parameters" : [ {
|
|
7234
|
+
"in" : "path",
|
|
7235
|
+
"name" : "id",
|
|
7236
|
+
"required" : true,
|
|
7237
|
+
"schema" : {
|
|
7238
|
+
"type" : "string"
|
|
7239
|
+
}
|
|
7240
|
+
} ],
|
|
7241
|
+
"requestBody" : {
|
|
7242
|
+
"content" : {
|
|
7243
|
+
"application/json" : {
|
|
7244
|
+
"schema" : {
|
|
7245
|
+
"$ref" : "#/components/schemas/ProviderCreateRequest"
|
|
7246
|
+
}
|
|
7247
|
+
}
|
|
7248
|
+
},
|
|
7249
|
+
"required" : true
|
|
7250
|
+
},
|
|
7251
|
+
"responses" : {
|
|
7252
|
+
"200" : {
|
|
7253
|
+
"content" : {
|
|
7254
|
+
"application/json" : {
|
|
7255
|
+
"schema" : {
|
|
7256
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7257
|
+
}
|
|
7258
|
+
}
|
|
7259
|
+
},
|
|
7260
|
+
"description" : "Updated"
|
|
7261
|
+
},
|
|
7262
|
+
"404" : {
|
|
7263
|
+
"description" : "Platform engine not found"
|
|
7264
|
+
}
|
|
7265
|
+
},
|
|
7266
|
+
"summary" : "Update a platform engine",
|
|
7267
|
+
"tags" : [ "admin" ]
|
|
7268
|
+
}
|
|
7269
|
+
},
|
|
7270
|
+
"/admin/platform-engines/{id}/usage" : {
|
|
7271
|
+
"get" : {
|
|
7272
|
+
"description" : "Superadmin. Ce qui casse si l'on supprime ce moteur ou l'un de ses modèles.",
|
|
7273
|
+
"operationId" : "getPlatformEngineUsage",
|
|
7274
|
+
"parameters" : [ {
|
|
7275
|
+
"in" : "path",
|
|
7276
|
+
"name" : "id",
|
|
7277
|
+
"required" : true,
|
|
7278
|
+
"schema" : {
|
|
7279
|
+
"type" : "string"
|
|
7280
|
+
}
|
|
7281
|
+
} ],
|
|
7282
|
+
"responses" : {
|
|
7283
|
+
"200" : {
|
|
7284
|
+
"content" : {
|
|
7285
|
+
"application/json" : {
|
|
7286
|
+
"schema" : {
|
|
7287
|
+
"$ref" : "#/components/schemas/PlatformEngineUsage"
|
|
7288
|
+
}
|
|
7289
|
+
}
|
|
7290
|
+
},
|
|
7291
|
+
"description" : "Usage of the platform engine"
|
|
7292
|
+
},
|
|
7293
|
+
"404" : {
|
|
7294
|
+
"content" : {
|
|
7295
|
+
"application/json" : {
|
|
7296
|
+
"schema" : {
|
|
7297
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7298
|
+
}
|
|
7299
|
+
}
|
|
7300
|
+
},
|
|
7301
|
+
"description" : "Platform engine not found"
|
|
7302
|
+
}
|
|
7303
|
+
},
|
|
7304
|
+
"summary" : "Get platform engine usage",
|
|
7305
|
+
"tags" : [ "admin" ]
|
|
7306
|
+
}
|
|
7307
|
+
},
|
|
7308
|
+
"/admin/platform-engines/{id}/available-models" : {
|
|
7309
|
+
"post" : {
|
|
7310
|
+
"description" : "Superadmin. Modèles exposés par la clé déjà enregistrée sur le moteur plateforme.",
|
|
7311
|
+
"operationId" : "listPlatformEngineAvailableModels",
|
|
7312
|
+
"parameters" : [ {
|
|
7313
|
+
"in" : "path",
|
|
7314
|
+
"name" : "id",
|
|
7315
|
+
"required" : true,
|
|
7316
|
+
"schema" : {
|
|
7317
|
+
"type" : "string"
|
|
7318
|
+
}
|
|
7319
|
+
} ],
|
|
7320
|
+
"responses" : {
|
|
7321
|
+
"200" : {
|
|
7322
|
+
"content" : {
|
|
7323
|
+
"application/json" : {
|
|
7324
|
+
"schema" : {
|
|
7325
|
+
"items" : {
|
|
7326
|
+
"$ref" : "#/components/schemas/Model"
|
|
7327
|
+
},
|
|
7328
|
+
"type" : "array"
|
|
7329
|
+
}
|
|
7330
|
+
}
|
|
7331
|
+
},
|
|
7332
|
+
"description" : "Models exposed by the stored API key"
|
|
7333
|
+
},
|
|
7334
|
+
"400" : {
|
|
7335
|
+
"content" : {
|
|
7336
|
+
"application/json" : {
|
|
7337
|
+
"schema" : {
|
|
7338
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7339
|
+
}
|
|
7340
|
+
}
|
|
7341
|
+
},
|
|
7342
|
+
"description" : "No API key stored for this engine"
|
|
7343
|
+
},
|
|
7344
|
+
"404" : {
|
|
7345
|
+
"content" : {
|
|
7346
|
+
"application/json" : {
|
|
7347
|
+
"schema" : {
|
|
7348
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7349
|
+
}
|
|
7350
|
+
}
|
|
7351
|
+
},
|
|
7352
|
+
"description" : "Platform engine not found"
|
|
7353
|
+
},
|
|
7354
|
+
"500" : {
|
|
7355
|
+
"content" : {
|
|
7356
|
+
"application/json" : {
|
|
7357
|
+
"schema" : {
|
|
7358
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
7359
|
+
}
|
|
7360
|
+
}
|
|
7361
|
+
},
|
|
7362
|
+
"description" : "Stored API key cannot be decrypted or models cannot be fetched"
|
|
7363
|
+
}
|
|
7364
|
+
},
|
|
7365
|
+
"summary" : "List models available with a platform engine key",
|
|
7366
|
+
"tags" : [ "admin" ]
|
|
7367
|
+
}
|
|
7368
|
+
},
|
|
7369
|
+
"/admin/organisations/{orgId}/platform-engines" : {
|
|
7370
|
+
"patch" : {
|
|
7371
|
+
"description" : "Superadmin. Ouvre ou retire à l'organisation l'accès aux moteurs plateforme.",
|
|
7372
|
+
"operationId" : "setOrganisationAllowPlatformEngines",
|
|
7373
|
+
"parameters" : [ {
|
|
7374
|
+
"in" : "path",
|
|
7375
|
+
"name" : "orgId",
|
|
7376
|
+
"required" : true,
|
|
7377
|
+
"schema" : {
|
|
7378
|
+
"type" : "string"
|
|
7379
|
+
}
|
|
7380
|
+
} ],
|
|
7381
|
+
"requestBody" : {
|
|
7382
|
+
"content" : {
|
|
7383
|
+
"application/json" : {
|
|
7384
|
+
"schema" : {
|
|
7385
|
+
"$ref" : "#/components/schemas/AllowPlatformEngines"
|
|
7386
|
+
}
|
|
7387
|
+
}
|
|
7388
|
+
},
|
|
7389
|
+
"required" : true
|
|
7390
|
+
},
|
|
7391
|
+
"responses" : {
|
|
7392
|
+
"200" : {
|
|
7393
|
+
"content" : {
|
|
7394
|
+
"application/json" : {
|
|
7395
|
+
"schema" : {
|
|
7396
|
+
"$ref" : "#/components/schemas/AllowPlatformEngines"
|
|
7397
|
+
}
|
|
7398
|
+
}
|
|
7399
|
+
},
|
|
7400
|
+
"description" : "Updated access"
|
|
7401
|
+
},
|
|
7402
|
+
"400" : {
|
|
7403
|
+
"description" : "Invalid request"
|
|
7404
|
+
},
|
|
7405
|
+
"404" : {
|
|
7406
|
+
"description" : "Organisation not found"
|
|
7407
|
+
}
|
|
7408
|
+
},
|
|
7409
|
+
"summary" : "Allow or forbid platform engines for an organisation",
|
|
7410
|
+
"tags" : [ "admin" ]
|
|
7411
|
+
}
|
|
7412
|
+
},
|
|
7413
|
+
"/admin/organisations/{orgId}/platform-engines/usage" : {
|
|
7414
|
+
"get" : {
|
|
7415
|
+
"description" : "Superadmin. Ce que l'organisation perd si on lui retire les moteurs plateforme.",
|
|
7416
|
+
"operationId" : "getOrganisationPlatformEngineUsage",
|
|
7417
|
+
"parameters" : [ {
|
|
7418
|
+
"in" : "path",
|
|
7419
|
+
"name" : "orgId",
|
|
7420
|
+
"required" : true,
|
|
7421
|
+
"schema" : {
|
|
7422
|
+
"type" : "string"
|
|
7423
|
+
}
|
|
7424
|
+
} ],
|
|
7425
|
+
"responses" : {
|
|
7426
|
+
"200" : {
|
|
7427
|
+
"content" : {
|
|
7428
|
+
"application/json" : {
|
|
7429
|
+
"schema" : {
|
|
7430
|
+
"$ref" : "#/components/schemas/OrganisationPlatformEngineUsage"
|
|
7431
|
+
}
|
|
7432
|
+
}
|
|
7433
|
+
},
|
|
7434
|
+
"description" : "Usage of platform engines by the organisation"
|
|
7435
|
+
}
|
|
7436
|
+
},
|
|
7437
|
+
"summary" : "Get organisation platform engine usage",
|
|
7438
|
+
"tags" : [ "admin" ]
|
|
7439
|
+
}
|
|
7440
|
+
},
|
|
7151
7441
|
"/files" : {
|
|
7152
7442
|
"get" : {
|
|
7153
7443
|
"description" : "Retrieves a list of all files (admin only)",
|
|
@@ -15711,6 +16001,14 @@
|
|
|
15711
16001
|
"format" : "date-time",
|
|
15712
16002
|
"type" : "string"
|
|
15713
16003
|
}
|
|
16004
|
+
}, {
|
|
16005
|
+
"description" : "Périmètre des moteurs. EXTERNAL (défaut) = clés propres de l'organisation. INTERNAL = modèles Breign, réservé au superAdmin ; ignoré pour un admin d'organisation.",
|
|
16006
|
+
"in" : "query",
|
|
16007
|
+
"name" : "providerSource",
|
|
16008
|
+
"schema" : {
|
|
16009
|
+
"enum" : [ "INTERNAL", "EXTERNAL" ],
|
|
16010
|
+
"type" : "string"
|
|
16011
|
+
}
|
|
15714
16012
|
}, {
|
|
15715
16013
|
"description" : "Pas de regroupement de la série temporelle",
|
|
15716
16014
|
"in" : "query",
|
|
@@ -15759,7 +16057,7 @@
|
|
|
15759
16057
|
},
|
|
15760
16058
|
"/organizations/{organizationId}/ai-gateway/settings" : {
|
|
15761
16059
|
"get" : {
|
|
15762
|
-
"description" : "
|
|
16060
|
+
"description" : "Limites des modèles dont l'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.",
|
|
15763
16061
|
"operationId" : "getAiGatewaySettings",
|
|
15764
16062
|
"parameters" : [ {
|
|
15765
16063
|
"description" : "ID of the organization",
|
|
@@ -15795,7 +16093,7 @@
|
|
|
15795
16093
|
"tags" : [ "ai-gateway" ]
|
|
15796
16094
|
},
|
|
15797
16095
|
"put" : {
|
|
15798
|
-
"description" : "
|
|
16096
|
+
"description" : "L'admin d'organisation fixe le RPM et les quotas de ses modèles à clé propre. Un quota visant un modèle Breign est refusé.",
|
|
15799
16097
|
"operationId" : "updateAiGatewaySettings",
|
|
15800
16098
|
"parameters" : [ {
|
|
15801
16099
|
"description" : "ID of the organization",
|
|
@@ -15844,6 +16142,122 @@
|
|
|
15844
16142
|
"tags" : [ "ai-gateway" ]
|
|
15845
16143
|
}
|
|
15846
16144
|
},
|
|
16145
|
+
"/organizations/{organizationId}/ai-gateway/internal-settings" : {
|
|
16146
|
+
"get" : {
|
|
16147
|
+
"description" : "Limites des modèles Breign (providerSource INTERNAL) pour une organisation. Réservé au superAdmin. La forme de la réponse est la même que les settings d'organisation : gatewayRpm et modelTokenQuotas portent ici le périmètre Breign.",
|
|
16148
|
+
"operationId" : "getAiGatewayInternalSettings",
|
|
16149
|
+
"parameters" : [ {
|
|
16150
|
+
"description" : "ID of the organization",
|
|
16151
|
+
"in" : "path",
|
|
16152
|
+
"name" : "organizationId",
|
|
16153
|
+
"required" : true,
|
|
16154
|
+
"schema" : {
|
|
16155
|
+
"type" : "string"
|
|
16156
|
+
}
|
|
16157
|
+
} ],
|
|
16158
|
+
"responses" : {
|
|
16159
|
+
"200" : {
|
|
16160
|
+
"content" : {
|
|
16161
|
+
"application/json" : {
|
|
16162
|
+
"schema" : {
|
|
16163
|
+
"$ref" : "#/components/schemas/AiGatewaySettings"
|
|
16164
|
+
}
|
|
16165
|
+
}
|
|
16166
|
+
},
|
|
16167
|
+
"description" : "Current Breign model limits"
|
|
16168
|
+
},
|
|
16169
|
+
"401" : {
|
|
16170
|
+
"description" : "Unauthorized"
|
|
16171
|
+
},
|
|
16172
|
+
"403" : {
|
|
16173
|
+
"description" : "Forbidden"
|
|
16174
|
+
},
|
|
16175
|
+
"500" : {
|
|
16176
|
+
"description" : "Server error"
|
|
16177
|
+
}
|
|
16178
|
+
},
|
|
16179
|
+
"summary" : "Get Breign model limit settings",
|
|
16180
|
+
"tags" : [ "ai-gateway" ]
|
|
16181
|
+
},
|
|
16182
|
+
"put" : {
|
|
16183
|
+
"description" : "Le superAdmin fixe le RPM et les quotas des modèles Breign. Un quota visant un modèle à clé propre est refusé. N'écrase pas les limites de l'admin.",
|
|
16184
|
+
"operationId" : "updateAiGatewayInternalSettings",
|
|
16185
|
+
"parameters" : [ {
|
|
16186
|
+
"description" : "ID of the organization",
|
|
16187
|
+
"in" : "path",
|
|
16188
|
+
"name" : "organizationId",
|
|
16189
|
+
"required" : true,
|
|
16190
|
+
"schema" : {
|
|
16191
|
+
"type" : "string"
|
|
16192
|
+
}
|
|
16193
|
+
} ],
|
|
16194
|
+
"requestBody" : {
|
|
16195
|
+
"content" : {
|
|
16196
|
+
"application/json" : {
|
|
16197
|
+
"schema" : {
|
|
16198
|
+
"$ref" : "#/components/schemas/AiGatewaySettingsUpdateRequest"
|
|
16199
|
+
}
|
|
16200
|
+
}
|
|
16201
|
+
},
|
|
16202
|
+
"required" : true
|
|
16203
|
+
},
|
|
16204
|
+
"responses" : {
|
|
16205
|
+
"200" : {
|
|
16206
|
+
"content" : {
|
|
16207
|
+
"application/json" : {
|
|
16208
|
+
"schema" : {
|
|
16209
|
+
"$ref" : "#/components/schemas/AiGatewaySettings"
|
|
16210
|
+
}
|
|
16211
|
+
}
|
|
16212
|
+
},
|
|
16213
|
+
"description" : "Updated Breign model limits"
|
|
16214
|
+
},
|
|
16215
|
+
"400" : {
|
|
16216
|
+
"description" : "Invalid request"
|
|
16217
|
+
},
|
|
16218
|
+
"401" : {
|
|
16219
|
+
"description" : "Unauthorized"
|
|
16220
|
+
},
|
|
16221
|
+
"403" : {
|
|
16222
|
+
"description" : "Forbidden"
|
|
16223
|
+
},
|
|
16224
|
+
"500" : {
|
|
16225
|
+
"description" : "Server error"
|
|
16226
|
+
}
|
|
16227
|
+
},
|
|
16228
|
+
"summary" : "Update Breign model limit settings",
|
|
16229
|
+
"tags" : [ "ai-gateway" ]
|
|
16230
|
+
}
|
|
16231
|
+
},
|
|
16232
|
+
"/admin/ai-gateway/internal-settings" : {
|
|
16233
|
+
"get" : {
|
|
16234
|
+
"description" : "Superadmin. Plafonds des modèles Breign de toutes les organisations, en une requête ; une organisation absente n'en a aucun. `maxQuotaRatio` est l'usage du quota le plus entamé sur sa période en cours (null sans quota).",
|
|
16235
|
+
"operationId" : "listAiGatewayInternalSettings",
|
|
16236
|
+
"responses" : {
|
|
16237
|
+
"200" : {
|
|
16238
|
+
"content" : {
|
|
16239
|
+
"application/json" : {
|
|
16240
|
+
"schema" : {
|
|
16241
|
+
"items" : {
|
|
16242
|
+
"$ref" : "#/components/schemas/AiGatewayInternalSettingsSummary"
|
|
16243
|
+
},
|
|
16244
|
+
"type" : "array"
|
|
16245
|
+
}
|
|
16246
|
+
}
|
|
16247
|
+
},
|
|
16248
|
+
"description" : "Breign model limits by organisation"
|
|
16249
|
+
},
|
|
16250
|
+
"401" : {
|
|
16251
|
+
"description" : "Unauthorized"
|
|
16252
|
+
},
|
|
16253
|
+
"403" : {
|
|
16254
|
+
"description" : "Forbidden"
|
|
16255
|
+
}
|
|
16256
|
+
},
|
|
16257
|
+
"summary" : "List Breign model limit settings of every organisation",
|
|
16258
|
+
"tags" : [ "admin" ]
|
|
16259
|
+
}
|
|
16260
|
+
},
|
|
15847
16261
|
"/organizations/{organizationId}/ai-gateway/v1/models" : {
|
|
15848
16262
|
"get" : {
|
|
15849
16263
|
"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.",
|
|
@@ -24026,6 +24440,10 @@
|
|
|
24026
24440
|
"model" : {
|
|
24027
24441
|
"type" : "string"
|
|
24028
24442
|
},
|
|
24443
|
+
"organizationId" : {
|
|
24444
|
+
"description" : "Requis quand le moteur est un moteur plateforme, pour savoir quelle organisation reçoit ce modèle par défaut.",
|
|
24445
|
+
"type" : "string"
|
|
24446
|
+
},
|
|
24029
24447
|
"options" : {
|
|
24030
24448
|
"additionalProperties" : true,
|
|
24031
24449
|
"type" : "object"
|
|
@@ -24074,6 +24492,14 @@
|
|
|
24074
24492
|
"providerSource" : {
|
|
24075
24493
|
"enum" : [ "INTERNAL", "EXTERNAL" ],
|
|
24076
24494
|
"type" : "string"
|
|
24495
|
+
},
|
|
24496
|
+
"isPlatform" : {
|
|
24497
|
+
"description" : "Moteur plateforme dont la clé d'API appartient à Breign. Il est proposé aux organisations autorisées et n'est pas modifiable par elles.",
|
|
24498
|
+
"type" : "boolean"
|
|
24499
|
+
},
|
|
24500
|
+
"organizationId" : {
|
|
24501
|
+
"nullable" : true,
|
|
24502
|
+
"type" : "string"
|
|
24077
24503
|
}
|
|
24078
24504
|
},
|
|
24079
24505
|
"required" : [ "models", "name", "providerType" ],
|
|
@@ -24113,6 +24539,25 @@
|
|
|
24113
24539
|
"minimum" : 1,
|
|
24114
24540
|
"type" : "integer"
|
|
24115
24541
|
},
|
|
24542
|
+
"inputTokenPrice" : {
|
|
24543
|
+
"description" : "Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme.",
|
|
24544
|
+
"minimum" : 0,
|
|
24545
|
+
"type" : "number"
|
|
24546
|
+
},
|
|
24547
|
+
"outputTokenPrice" : {
|
|
24548
|
+
"description" : "Prix d'un million de tokens en sortie. Les tokens de raisonnement suivent ce tarif.",
|
|
24549
|
+
"minimum" : 0,
|
|
24550
|
+
"type" : "number"
|
|
24551
|
+
},
|
|
24552
|
+
"currency" : {
|
|
24553
|
+
"description" : "Devise ISO du prix au token, par exemple EUR ou USD.",
|
|
24554
|
+
"type" : "string"
|
|
24555
|
+
},
|
|
24556
|
+
"priceSource" : {
|
|
24557
|
+
"description" : "Origine du prix au token. configuration = tarifs déjà enregistrés par Breign, catalog = catalogue public, manual = saisi à la main.",
|
|
24558
|
+
"enum" : [ "configuration", "catalog", "manual" ],
|
|
24559
|
+
"type" : "string"
|
|
24560
|
+
},
|
|
24116
24561
|
"options" : {
|
|
24117
24562
|
"additionalProperties" : true,
|
|
24118
24563
|
"type" : "object"
|
|
@@ -24193,6 +24638,74 @@
|
|
|
24193
24638
|
"required" : [ "label", "value" ],
|
|
24194
24639
|
"type" : "object"
|
|
24195
24640
|
},
|
|
24641
|
+
"DeletePlatformEngineResponse" : {
|
|
24642
|
+
"properties" : {
|
|
24643
|
+
"message" : {
|
|
24644
|
+
"type" : "string"
|
|
24645
|
+
},
|
|
24646
|
+
"agentsEngineUnsetCount" : {
|
|
24647
|
+
"type" : "integer"
|
|
24648
|
+
},
|
|
24649
|
+
"knowledgeBasesAffected" : {
|
|
24650
|
+
"items" : {
|
|
24651
|
+
"$ref" : "#/components/schemas/DeletePlatformEngineResponse_knowledgeBasesAffected_inner"
|
|
24652
|
+
},
|
|
24653
|
+
"type" : "array"
|
|
24654
|
+
}
|
|
24655
|
+
},
|
|
24656
|
+
"required" : [ "agentsEngineUnsetCount", "knowledgeBasesAffected", "message" ],
|
|
24657
|
+
"type" : "object"
|
|
24658
|
+
},
|
|
24659
|
+
"PlatformEngineUsage" : {
|
|
24660
|
+
"description" : "Ce qui dépend d'un moteur plateforme, toutes organisations confondues.",
|
|
24661
|
+
"properties" : {
|
|
24662
|
+
"agentsByModel" : {
|
|
24663
|
+
"additionalProperties" : {
|
|
24664
|
+
"type" : "integer"
|
|
24665
|
+
},
|
|
24666
|
+
"description" : "Agents branchés sur chaque modèle, par `modelId` du fournisseur.",
|
|
24667
|
+
"type" : "object"
|
|
24668
|
+
},
|
|
24669
|
+
"defaultEnginesByModel" : {
|
|
24670
|
+
"additionalProperties" : {
|
|
24671
|
+
"type" : "integer"
|
|
24672
|
+
},
|
|
24673
|
+
"description" : "Organisations dont c'est le moteur par défaut, par `modelId` du fournisseur.",
|
|
24674
|
+
"type" : "object"
|
|
24675
|
+
},
|
|
24676
|
+
"knowledgeBases" : {
|
|
24677
|
+
"description" : "Bases de connaissances indexées avec ses embeddings.",
|
|
24678
|
+
"type" : "integer"
|
|
24679
|
+
}
|
|
24680
|
+
},
|
|
24681
|
+
"required" : [ "agentsByModel", "defaultEnginesByModel", "knowledgeBases" ],
|
|
24682
|
+
"type" : "object"
|
|
24683
|
+
},
|
|
24684
|
+
"AllowPlatformEngines" : {
|
|
24685
|
+
"properties" : {
|
|
24686
|
+
"allowPlatformEngines" : {
|
|
24687
|
+
"type" : "boolean"
|
|
24688
|
+
}
|
|
24689
|
+
},
|
|
24690
|
+
"required" : [ "allowPlatformEngines" ],
|
|
24691
|
+
"type" : "object"
|
|
24692
|
+
},
|
|
24693
|
+
"OrganisationPlatformEngineUsage" : {
|
|
24694
|
+
"description" : "Ce qu'une organisation perd si on lui retire les moteurs plateforme.",
|
|
24695
|
+
"properties" : {
|
|
24696
|
+
"agents" : {
|
|
24697
|
+
"type" : "integer"
|
|
24698
|
+
},
|
|
24699
|
+
"defaultEngine" : {
|
|
24700
|
+
"type" : "boolean"
|
|
24701
|
+
},
|
|
24702
|
+
"knowledgeBases" : {
|
|
24703
|
+
"type" : "integer"
|
|
24704
|
+
}
|
|
24705
|
+
},
|
|
24706
|
+
"required" : [ "agents", "defaultEngine", "knowledgeBases" ],
|
|
24707
|
+
"type" : "object"
|
|
24708
|
+
},
|
|
24196
24709
|
"FileWithDownloadUrl" : {
|
|
24197
24710
|
"allOf" : [ {
|
|
24198
24711
|
"$ref" : "#/components/schemas/File"
|
|
@@ -24659,6 +25172,10 @@
|
|
|
24659
25172
|
"ocr" : {
|
|
24660
25173
|
"$ref" : "#/components/schemas/OrganizationOcrConfig"
|
|
24661
25174
|
},
|
|
25175
|
+
"allowPlatformEngines" : {
|
|
25176
|
+
"description" : "L'organisation peut choisir les moteurs plateforme Breign.",
|
|
25177
|
+
"type" : "boolean"
|
|
25178
|
+
},
|
|
24662
25179
|
"users" : {
|
|
24663
25180
|
"items" : {
|
|
24664
25181
|
"$ref" : "#/components/schemas/OrganizationUser"
|
|
@@ -27723,6 +28240,9 @@
|
|
|
27723
28240
|
"$ref" : "#/components/schemas/AiGatewayUsageBreakdownItem"
|
|
27724
28241
|
},
|
|
27725
28242
|
"type" : "array"
|
|
28243
|
+
},
|
|
28244
|
+
"cost" : {
|
|
28245
|
+
"$ref" : "#/components/schemas/AiGatewayUsageCost"
|
|
27726
28246
|
}
|
|
27727
28247
|
},
|
|
27728
28248
|
"required" : [ "byModel", "byProvider", "byUser", "series", "total" ],
|
|
@@ -27801,6 +28321,39 @@
|
|
|
27801
28321
|
"required" : [ "inputTokens", "key", "label", "outputTokens", "requests", "totalTokens" ],
|
|
27802
28322
|
"type" : "object"
|
|
27803
28323
|
},
|
|
28324
|
+
"AiGatewayUsageCost" : {
|
|
28325
|
+
"description" : "Coût estimé, joint seulement sur le périmètre des modèles Breign (réservé au superAdmin).",
|
|
28326
|
+
"properties" : {
|
|
28327
|
+
"total" : {
|
|
28328
|
+
"$ref" : "#/components/schemas/AiGatewayCostByCurrency"
|
|
28329
|
+
},
|
|
28330
|
+
"byModel" : {
|
|
28331
|
+
"additionalProperties" : {
|
|
28332
|
+
"$ref" : "#/components/schemas/AiGatewayCostByCurrency"
|
|
28333
|
+
},
|
|
28334
|
+
"type" : "object"
|
|
28335
|
+
},
|
|
28336
|
+
"byUser" : {
|
|
28337
|
+
"additionalProperties" : {
|
|
28338
|
+
"$ref" : "#/components/schemas/AiGatewayCostByCurrency"
|
|
28339
|
+
},
|
|
28340
|
+
"type" : "object"
|
|
28341
|
+
},
|
|
28342
|
+
"unpricedTokens" : {
|
|
28343
|
+
"description" : "Tokens sans prix connu ; le coût est alors une estimation partielle.",
|
|
28344
|
+
"type" : "integer"
|
|
28345
|
+
}
|
|
28346
|
+
},
|
|
28347
|
+
"required" : [ "byModel", "byUser", "total", "unpricedTokens" ],
|
|
28348
|
+
"type" : "object"
|
|
28349
|
+
},
|
|
28350
|
+
"AiGatewayCostByCurrency" : {
|
|
28351
|
+
"additionalProperties" : {
|
|
28352
|
+
"type" : "number"
|
|
28353
|
+
},
|
|
28354
|
+
"description" : "Montant par devise ISO ; deux devises ne s'additionnent pas.",
|
|
28355
|
+
"type" : "object"
|
|
28356
|
+
},
|
|
27804
28357
|
"AiGatewaySettings" : {
|
|
27805
28358
|
"properties" : {
|
|
27806
28359
|
"organizationId" : {
|
|
@@ -27873,6 +28426,21 @@
|
|
|
27873
28426
|
},
|
|
27874
28427
|
"type" : "object"
|
|
27875
28428
|
},
|
|
28429
|
+
"AiGatewayInternalSettingsSummary" : {
|
|
28430
|
+
"allOf" : [ {
|
|
28431
|
+
"$ref" : "#/components/schemas/AiGatewaySettings"
|
|
28432
|
+
}, {
|
|
28433
|
+
"properties" : {
|
|
28434
|
+
"maxQuotaRatio" : {
|
|
28435
|
+
"description" : "Usage du quota le plus entamé sur sa période en cours ; null sans quota.",
|
|
28436
|
+
"nullable" : true,
|
|
28437
|
+
"type" : "number"
|
|
28438
|
+
}
|
|
28439
|
+
},
|
|
28440
|
+
"required" : [ "maxQuotaRatio" ],
|
|
28441
|
+
"type" : "object"
|
|
28442
|
+
} ]
|
|
28443
|
+
},
|
|
27876
28444
|
"AiGatewayV1ModelList" : {
|
|
27877
28445
|
"properties" : {
|
|
27878
28446
|
"object" : {
|
|
@@ -31932,6 +32500,21 @@
|
|
|
31932
32500
|
"required" : [ "id", "modelId", "name" ],
|
|
31933
32501
|
"type" : "object"
|
|
31934
32502
|
},
|
|
32503
|
+
"DeletePlatformEngineResponse_knowledgeBasesAffected_inner" : {
|
|
32504
|
+
"properties" : {
|
|
32505
|
+
"id" : {
|
|
32506
|
+
"type" : "string"
|
|
32507
|
+
},
|
|
32508
|
+
"name" : {
|
|
32509
|
+
"type" : "string"
|
|
32510
|
+
},
|
|
32511
|
+
"organizationId" : {
|
|
32512
|
+
"type" : "string"
|
|
32513
|
+
}
|
|
32514
|
+
},
|
|
32515
|
+
"required" : [ "id", "name", "organizationId" ],
|
|
32516
|
+
"type" : "object"
|
|
32517
|
+
},
|
|
31935
32518
|
"MetricForAgent_identifier" : {
|
|
31936
32519
|
"properties" : {
|
|
31937
32520
|
"agentId" : {
|