@breign/client 1.0.184 → 1.0.185
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/OauthProviderApi.d.ts +155 -0
- package/dist/apis/OauthProviderApi.js +388 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/OAuthAuthorizationConsentRequestUio.d.ts +44 -0
- package/dist/models/OAuthAuthorizationConsentRequestUio.js +56 -0
- package/dist/models/OAuthAuthorizationRedirectUio.d.ts +32 -0
- package/dist/models/OAuthAuthorizationRedirectUio.js +50 -0
- package/dist/models/OAuthAuthorizationResumeClientUio.d.ts +50 -0
- package/dist/models/OAuthAuthorizationResumeClientUio.js +62 -0
- package/dist/models/OAuthAuthorizationResumeOrganizationUio.d.ts +38 -0
- package/dist/models/OAuthAuthorizationResumeOrganizationUio.js +54 -0
- package/dist/models/OAuthAuthorizationResumeRequestUio.d.ts +32 -0
- package/dist/models/OAuthAuthorizationResumeRequestUio.js +50 -0
- package/dist/models/OAuthAuthorizationResumeUio.d.ts +72 -0
- package/dist/models/OAuthAuthorizationResumeUio.js +70 -0
- package/dist/models/OAuthClientCreateUio.d.ts +77 -0
- package/dist/models/OAuthClientCreateUio.js +75 -0
- package/dist/models/OAuthClientTypeUio.d.ts +25 -0
- package/dist/models/OAuthClientTypeUio.js +51 -0
- package/dist/models/OAuthClientUio.d.ts +95 -0
- package/dist/models/OAuthClientUio.js +95 -0
- package/dist/models/OAuthClientUpdateUio.d.ts +62 -0
- package/dist/models/OAuthClientUpdateUio.js +58 -0
- package/dist/models/OAuthClientWithSecretUio.d.ts +101 -0
- package/dist/models/OAuthClientWithSecretUio.js +99 -0
- package/dist/models/OAuthConsentUio.d.ts +68 -0
- package/dist/models/OAuthConsentUio.js +74 -0
- package/dist/models/OAuthProviderInfoUio.d.ts +44 -0
- package/dist/models/OAuthProviderInfoUio.js +58 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/dist/openapi.json +750 -0
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
}, {
|
|
103
103
|
"description" : "Support page of an organization, its settings and the requests sent from it",
|
|
104
104
|
"name" : "support"
|
|
105
|
+
}, {
|
|
106
|
+
"description" : "Breign as an OAuth provider for third-party apps: the authorization bridge used by breign-app, the OAuth clients of an organization and the user's connected applications",
|
|
107
|
+
"name" : "oauth-provider"
|
|
105
108
|
} ],
|
|
106
109
|
"paths" : {
|
|
107
110
|
"/health" : {
|
|
@@ -5233,6 +5236,169 @@
|
|
|
5233
5236
|
"tags" : [ "auth" ]
|
|
5234
5237
|
}
|
|
5235
5238
|
},
|
|
5239
|
+
"/oauth/provider" : {
|
|
5240
|
+
"get" : {
|
|
5241
|
+
"description" : "Issuer, ressource à passer en `resource` et document de découverte. Répond 404 quand le fournisseur OAuth est désactivé : breign-app s'en sert pour afficher ou non ses écrans.",
|
|
5242
|
+
"operationId" : "getOAuthProvider",
|
|
5243
|
+
"responses" : {
|
|
5244
|
+
"200" : {
|
|
5245
|
+
"content" : {
|
|
5246
|
+
"application/json" : {
|
|
5247
|
+
"schema" : {
|
|
5248
|
+
"$ref" : "#/components/schemas/OAuthProviderInfo"
|
|
5249
|
+
}
|
|
5250
|
+
}
|
|
5251
|
+
},
|
|
5252
|
+
"description" : "OK"
|
|
5253
|
+
},
|
|
5254
|
+
"401" : {
|
|
5255
|
+
"description" : "Unauthenticated"
|
|
5256
|
+
},
|
|
5257
|
+
"404" : {
|
|
5258
|
+
"description" : "OAuth provider disabled"
|
|
5259
|
+
}
|
|
5260
|
+
},
|
|
5261
|
+
"summary" : "Describe the OAuth provider of the platform",
|
|
5262
|
+
"tags" : [ "oauth-provider" ]
|
|
5263
|
+
}
|
|
5264
|
+
},
|
|
5265
|
+
"/oauth/authorizations/resume" : {
|
|
5266
|
+
"post" : {
|
|
5267
|
+
"description" : "Appelée par la page `/oauth/authorize` de breign-app au nom de l'utilisateur connecté (clé plateforme + `x-user-id`). L'utilisateur doit être membre de l'organisation du client.",
|
|
5268
|
+
"operationId" : "resumeOAuthAuthorization",
|
|
5269
|
+
"requestBody" : {
|
|
5270
|
+
"content" : {
|
|
5271
|
+
"application/json" : {
|
|
5272
|
+
"schema" : {
|
|
5273
|
+
"$ref" : "#/components/schemas/OAuthAuthorizationResumeRequest"
|
|
5274
|
+
}
|
|
5275
|
+
}
|
|
5276
|
+
},
|
|
5277
|
+
"required" : true
|
|
5278
|
+
},
|
|
5279
|
+
"responses" : {
|
|
5280
|
+
"200" : {
|
|
5281
|
+
"content" : {
|
|
5282
|
+
"application/json" : {
|
|
5283
|
+
"schema" : {
|
|
5284
|
+
"$ref" : "#/components/schemas/OAuthAuthorizationResume"
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5287
|
+
},
|
|
5288
|
+
"description" : "OK"
|
|
5289
|
+
},
|
|
5290
|
+
"400" : {
|
|
5291
|
+
"description" : "Invalid authorization request, unknown or disabled client (INVALID_CLIENT), missing resource (RESOURCE_REQUIRED)"
|
|
5292
|
+
},
|
|
5293
|
+
"401" : {
|
|
5294
|
+
"description" : "Unauthenticated"
|
|
5295
|
+
},
|
|
5296
|
+
"403" : {
|
|
5297
|
+
"description" : "Not a user account"
|
|
5298
|
+
}
|
|
5299
|
+
},
|
|
5300
|
+
"summary" : "Resume an OAuth authorization request on behalf of the connected user",
|
|
5301
|
+
"tags" : [ "oauth-provider" ]
|
|
5302
|
+
}
|
|
5303
|
+
},
|
|
5304
|
+
"/oauth/authorizations/consent" : {
|
|
5305
|
+
"post" : {
|
|
5306
|
+
"description" : "Appelée par breign-app quand l'utilisateur accepte ou refuse. Un refus est accepté même d'un non-membre, pour renvoyer l'application avec `access_denied`.",
|
|
5307
|
+
"operationId" : "consentOAuthAuthorization",
|
|
5308
|
+
"requestBody" : {
|
|
5309
|
+
"content" : {
|
|
5310
|
+
"application/json" : {
|
|
5311
|
+
"schema" : {
|
|
5312
|
+
"$ref" : "#/components/schemas/OAuthAuthorizationConsentRequest"
|
|
5313
|
+
}
|
|
5314
|
+
}
|
|
5315
|
+
},
|
|
5316
|
+
"required" : true
|
|
5317
|
+
},
|
|
5318
|
+
"responses" : {
|
|
5319
|
+
"200" : {
|
|
5320
|
+
"content" : {
|
|
5321
|
+
"application/json" : {
|
|
5322
|
+
"schema" : {
|
|
5323
|
+
"$ref" : "#/components/schemas/OAuthAuthorizationRedirect"
|
|
5324
|
+
}
|
|
5325
|
+
}
|
|
5326
|
+
},
|
|
5327
|
+
"description" : "OK"
|
|
5328
|
+
},
|
|
5329
|
+
"400" : {
|
|
5330
|
+
"description" : "Invalid authorization request"
|
|
5331
|
+
},
|
|
5332
|
+
"401" : {
|
|
5333
|
+
"description" : "Unauthenticated"
|
|
5334
|
+
},
|
|
5335
|
+
"403" : {
|
|
5336
|
+
"description" : "Not a user account"
|
|
5337
|
+
}
|
|
5338
|
+
},
|
|
5339
|
+
"summary" : "Answer the consent screen of an OAuth authorization",
|
|
5340
|
+
"tags" : [ "oauth-provider" ]
|
|
5341
|
+
}
|
|
5342
|
+
},
|
|
5343
|
+
"/me/oauth-consents" : {
|
|
5344
|
+
"get" : {
|
|
5345
|
+
"operationId" : "listMyOAuthConsents",
|
|
5346
|
+
"responses" : {
|
|
5347
|
+
"200" : {
|
|
5348
|
+
"content" : {
|
|
5349
|
+
"application/json" : {
|
|
5350
|
+
"schema" : {
|
|
5351
|
+
"items" : {
|
|
5352
|
+
"$ref" : "#/components/schemas/OAuthConsent"
|
|
5353
|
+
},
|
|
5354
|
+
"type" : "array"
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
},
|
|
5358
|
+
"description" : "OK"
|
|
5359
|
+
},
|
|
5360
|
+
"401" : {
|
|
5361
|
+
"description" : "Unauthenticated"
|
|
5362
|
+
},
|
|
5363
|
+
"403" : {
|
|
5364
|
+
"description" : "Not a user account"
|
|
5365
|
+
}
|
|
5366
|
+
},
|
|
5367
|
+
"summary" : "List the applications the current user authorized",
|
|
5368
|
+
"tags" : [ "oauth-provider" ]
|
|
5369
|
+
}
|
|
5370
|
+
},
|
|
5371
|
+
"/me/oauth-consents/{clientId}" : {
|
|
5372
|
+
"delete" : {
|
|
5373
|
+
"description" : "Supprime le consentement et révoque les jetons de l'application pour l'utilisateur.",
|
|
5374
|
+
"operationId" : "revokeMyOAuthConsent",
|
|
5375
|
+
"parameters" : [ {
|
|
5376
|
+
"description" : "client_id of the OAuth client",
|
|
5377
|
+
"in" : "path",
|
|
5378
|
+
"name" : "clientId",
|
|
5379
|
+
"required" : true,
|
|
5380
|
+
"schema" : {
|
|
5381
|
+
"type" : "string"
|
|
5382
|
+
}
|
|
5383
|
+
} ],
|
|
5384
|
+
"responses" : {
|
|
5385
|
+
"204" : {
|
|
5386
|
+
"description" : "Revoked"
|
|
5387
|
+
},
|
|
5388
|
+
"401" : {
|
|
5389
|
+
"description" : "Unauthenticated"
|
|
5390
|
+
},
|
|
5391
|
+
"403" : {
|
|
5392
|
+
"description" : "Not a user account"
|
|
5393
|
+
},
|
|
5394
|
+
"404" : {
|
|
5395
|
+
"description" : "No access granted to this client"
|
|
5396
|
+
}
|
|
5397
|
+
},
|
|
5398
|
+
"summary" : "Revoke an application the current user authorized",
|
|
5399
|
+
"tags" : [ "oauth-provider" ]
|
|
5400
|
+
}
|
|
5401
|
+
},
|
|
5236
5402
|
"/.well-known/jwks.json" : {
|
|
5237
5403
|
"get" : {
|
|
5238
5404
|
"description" : "Returns the JSON Web Key Set for JWT verification",
|
|
@@ -19621,6 +19787,277 @@
|
|
|
19621
19787
|
"tags" : [ "support" ]
|
|
19622
19788
|
}
|
|
19623
19789
|
},
|
|
19790
|
+
"/organizations/{organizationId}/oauth-clients" : {
|
|
19791
|
+
"get" : {
|
|
19792
|
+
"description" : "Réservé aux admins de l'organisation et aux superadmins.",
|
|
19793
|
+
"operationId" : "listOrganizationOAuthClients",
|
|
19794
|
+
"parameters" : [ {
|
|
19795
|
+
"description" : "ID of the organization",
|
|
19796
|
+
"in" : "path",
|
|
19797
|
+
"name" : "organizationId",
|
|
19798
|
+
"required" : true,
|
|
19799
|
+
"schema" : {
|
|
19800
|
+
"type" : "string"
|
|
19801
|
+
}
|
|
19802
|
+
} ],
|
|
19803
|
+
"responses" : {
|
|
19804
|
+
"200" : {
|
|
19805
|
+
"content" : {
|
|
19806
|
+
"application/json" : {
|
|
19807
|
+
"schema" : {
|
|
19808
|
+
"items" : {
|
|
19809
|
+
"$ref" : "#/components/schemas/OAuthClient"
|
|
19810
|
+
},
|
|
19811
|
+
"type" : "array"
|
|
19812
|
+
}
|
|
19813
|
+
}
|
|
19814
|
+
},
|
|
19815
|
+
"description" : "OK"
|
|
19816
|
+
},
|
|
19817
|
+
"401" : {
|
|
19818
|
+
"description" : "Unauthenticated"
|
|
19819
|
+
},
|
|
19820
|
+
"403" : {
|
|
19821
|
+
"description" : "Not an admin of the organization"
|
|
19822
|
+
}
|
|
19823
|
+
},
|
|
19824
|
+
"summary" : "List the OAuth clients of an organization",
|
|
19825
|
+
"tags" : [ "oauth-provider" ]
|
|
19826
|
+
},
|
|
19827
|
+
"post" : {
|
|
19828
|
+
"description" : "Réservé aux admins de l'organisation et aux superadmins. Le secret d'un client confidentiel n'est renvoyé qu'ici et à sa rotation.",
|
|
19829
|
+
"operationId" : "createOrganizationOAuthClient",
|
|
19830
|
+
"parameters" : [ {
|
|
19831
|
+
"description" : "ID of the organization",
|
|
19832
|
+
"in" : "path",
|
|
19833
|
+
"name" : "organizationId",
|
|
19834
|
+
"required" : true,
|
|
19835
|
+
"schema" : {
|
|
19836
|
+
"type" : "string"
|
|
19837
|
+
}
|
|
19838
|
+
} ],
|
|
19839
|
+
"requestBody" : {
|
|
19840
|
+
"content" : {
|
|
19841
|
+
"application/json" : {
|
|
19842
|
+
"schema" : {
|
|
19843
|
+
"$ref" : "#/components/schemas/OAuthClientCreate"
|
|
19844
|
+
}
|
|
19845
|
+
}
|
|
19846
|
+
},
|
|
19847
|
+
"required" : true
|
|
19848
|
+
},
|
|
19849
|
+
"responses" : {
|
|
19850
|
+
"201" : {
|
|
19851
|
+
"content" : {
|
|
19852
|
+
"application/json" : {
|
|
19853
|
+
"schema" : {
|
|
19854
|
+
"$ref" : "#/components/schemas/OAuthClientWithSecret"
|
|
19855
|
+
}
|
|
19856
|
+
}
|
|
19857
|
+
},
|
|
19858
|
+
"description" : "Created"
|
|
19859
|
+
},
|
|
19860
|
+
"400" : {
|
|
19861
|
+
"description" : "Invalid client (redirect URI"
|
|
19862
|
+
},
|
|
19863
|
+
"401" : {
|
|
19864
|
+
"description" : "Unauthenticated"
|
|
19865
|
+
},
|
|
19866
|
+
"403" : {
|
|
19867
|
+
"description" : "Not an admin of the organization"
|
|
19868
|
+
}
|
|
19869
|
+
},
|
|
19870
|
+
"summary" : "Create an OAuth client for an organization",
|
|
19871
|
+
"tags" : [ "oauth-provider" ]
|
|
19872
|
+
}
|
|
19873
|
+
},
|
|
19874
|
+
"/organizations/{organizationId}/oauth-clients/{clientId}" : {
|
|
19875
|
+
"delete" : {
|
|
19876
|
+
"description" : "Ses jetons et les consentements donnés sont supprimés avec lui.",
|
|
19877
|
+
"operationId" : "deleteOrganizationOAuthClient",
|
|
19878
|
+
"parameters" : [ {
|
|
19879
|
+
"description" : "ID of the organization",
|
|
19880
|
+
"in" : "path",
|
|
19881
|
+
"name" : "organizationId",
|
|
19882
|
+
"required" : true,
|
|
19883
|
+
"schema" : {
|
|
19884
|
+
"type" : "string"
|
|
19885
|
+
}
|
|
19886
|
+
}, {
|
|
19887
|
+
"description" : "client_id of the OAuth client",
|
|
19888
|
+
"in" : "path",
|
|
19889
|
+
"name" : "clientId",
|
|
19890
|
+
"required" : true,
|
|
19891
|
+
"schema" : {
|
|
19892
|
+
"type" : "string"
|
|
19893
|
+
}
|
|
19894
|
+
} ],
|
|
19895
|
+
"responses" : {
|
|
19896
|
+
"204" : {
|
|
19897
|
+
"description" : "Deleted"
|
|
19898
|
+
},
|
|
19899
|
+
"401" : {
|
|
19900
|
+
"description" : "Unauthenticated"
|
|
19901
|
+
},
|
|
19902
|
+
"403" : {
|
|
19903
|
+
"description" : "Not an admin of the organization"
|
|
19904
|
+
},
|
|
19905
|
+
"404" : {
|
|
19906
|
+
"description" : "Unknown client"
|
|
19907
|
+
}
|
|
19908
|
+
},
|
|
19909
|
+
"summary" : "Delete an OAuth client of an organization",
|
|
19910
|
+
"tags" : [ "oauth-provider" ]
|
|
19911
|
+
},
|
|
19912
|
+
"get" : {
|
|
19913
|
+
"operationId" : "getOrganizationOAuthClient",
|
|
19914
|
+
"parameters" : [ {
|
|
19915
|
+
"description" : "ID of the organization",
|
|
19916
|
+
"in" : "path",
|
|
19917
|
+
"name" : "organizationId",
|
|
19918
|
+
"required" : true,
|
|
19919
|
+
"schema" : {
|
|
19920
|
+
"type" : "string"
|
|
19921
|
+
}
|
|
19922
|
+
}, {
|
|
19923
|
+
"description" : "client_id of the OAuth client",
|
|
19924
|
+
"in" : "path",
|
|
19925
|
+
"name" : "clientId",
|
|
19926
|
+
"required" : true,
|
|
19927
|
+
"schema" : {
|
|
19928
|
+
"type" : "string"
|
|
19929
|
+
}
|
|
19930
|
+
} ],
|
|
19931
|
+
"responses" : {
|
|
19932
|
+
"200" : {
|
|
19933
|
+
"content" : {
|
|
19934
|
+
"application/json" : {
|
|
19935
|
+
"schema" : {
|
|
19936
|
+
"$ref" : "#/components/schemas/OAuthClient"
|
|
19937
|
+
}
|
|
19938
|
+
}
|
|
19939
|
+
},
|
|
19940
|
+
"description" : "OK"
|
|
19941
|
+
},
|
|
19942
|
+
"401" : {
|
|
19943
|
+
"description" : "Unauthenticated"
|
|
19944
|
+
},
|
|
19945
|
+
"403" : {
|
|
19946
|
+
"description" : "Not an admin of the organization"
|
|
19947
|
+
},
|
|
19948
|
+
"404" : {
|
|
19949
|
+
"description" : "Unknown client"
|
|
19950
|
+
}
|
|
19951
|
+
},
|
|
19952
|
+
"summary" : "Get an OAuth client of an organization",
|
|
19953
|
+
"tags" : [ "oauth-provider" ]
|
|
19954
|
+
},
|
|
19955
|
+
"patch" : {
|
|
19956
|
+
"operationId" : "updateOrganizationOAuthClient",
|
|
19957
|
+
"parameters" : [ {
|
|
19958
|
+
"description" : "ID of the organization",
|
|
19959
|
+
"in" : "path",
|
|
19960
|
+
"name" : "organizationId",
|
|
19961
|
+
"required" : true,
|
|
19962
|
+
"schema" : {
|
|
19963
|
+
"type" : "string"
|
|
19964
|
+
}
|
|
19965
|
+
}, {
|
|
19966
|
+
"description" : "client_id of the OAuth client",
|
|
19967
|
+
"in" : "path",
|
|
19968
|
+
"name" : "clientId",
|
|
19969
|
+
"required" : true,
|
|
19970
|
+
"schema" : {
|
|
19971
|
+
"type" : "string"
|
|
19972
|
+
}
|
|
19973
|
+
} ],
|
|
19974
|
+
"requestBody" : {
|
|
19975
|
+
"content" : {
|
|
19976
|
+
"application/json" : {
|
|
19977
|
+
"schema" : {
|
|
19978
|
+
"$ref" : "#/components/schemas/OAuthClientUpdate"
|
|
19979
|
+
}
|
|
19980
|
+
}
|
|
19981
|
+
},
|
|
19982
|
+
"required" : true
|
|
19983
|
+
},
|
|
19984
|
+
"responses" : {
|
|
19985
|
+
"200" : {
|
|
19986
|
+
"content" : {
|
|
19987
|
+
"application/json" : {
|
|
19988
|
+
"schema" : {
|
|
19989
|
+
"$ref" : "#/components/schemas/OAuthClient"
|
|
19990
|
+
}
|
|
19991
|
+
}
|
|
19992
|
+
},
|
|
19993
|
+
"description" : "OK"
|
|
19994
|
+
},
|
|
19995
|
+
"400" : {
|
|
19996
|
+
"description" : "Invalid update"
|
|
19997
|
+
},
|
|
19998
|
+
"401" : {
|
|
19999
|
+
"description" : "Unauthenticated"
|
|
20000
|
+
},
|
|
20001
|
+
"403" : {
|
|
20002
|
+
"description" : "Not an admin of the organization"
|
|
20003
|
+
},
|
|
20004
|
+
"404" : {
|
|
20005
|
+
"description" : "Unknown client"
|
|
20006
|
+
}
|
|
20007
|
+
},
|
|
20008
|
+
"summary" : "Update an OAuth client of an organization",
|
|
20009
|
+
"tags" : [ "oauth-provider" ]
|
|
20010
|
+
}
|
|
20011
|
+
},
|
|
20012
|
+
"/organizations/{organizationId}/oauth-clients/{clientId}/rotate-secret" : {
|
|
20013
|
+
"post" : {
|
|
20014
|
+
"description" : "L'ancien secret cesse de fonctionner ; le nouveau n'est affiché qu'ici.",
|
|
20015
|
+
"operationId" : "rotateOrganizationOAuthClientSecret",
|
|
20016
|
+
"parameters" : [ {
|
|
20017
|
+
"description" : "ID of the organization",
|
|
20018
|
+
"in" : "path",
|
|
20019
|
+
"name" : "organizationId",
|
|
20020
|
+
"required" : true,
|
|
20021
|
+
"schema" : {
|
|
20022
|
+
"type" : "string"
|
|
20023
|
+
}
|
|
20024
|
+
}, {
|
|
20025
|
+
"description" : "client_id of the OAuth client",
|
|
20026
|
+
"in" : "path",
|
|
20027
|
+
"name" : "clientId",
|
|
20028
|
+
"required" : true,
|
|
20029
|
+
"schema" : {
|
|
20030
|
+
"type" : "string"
|
|
20031
|
+
}
|
|
20032
|
+
} ],
|
|
20033
|
+
"responses" : {
|
|
20034
|
+
"200" : {
|
|
20035
|
+
"content" : {
|
|
20036
|
+
"application/json" : {
|
|
20037
|
+
"schema" : {
|
|
20038
|
+
"$ref" : "#/components/schemas/OAuthClientWithSecret"
|
|
20039
|
+
}
|
|
20040
|
+
}
|
|
20041
|
+
},
|
|
20042
|
+
"description" : "OK"
|
|
20043
|
+
},
|
|
20044
|
+
"400" : {
|
|
20045
|
+
"description" : "A public client has no secret (PUBLIC_CLIENT_HAS_NO_SECRET)"
|
|
20046
|
+
},
|
|
20047
|
+
"401" : {
|
|
20048
|
+
"description" : "Unauthenticated"
|
|
20049
|
+
},
|
|
20050
|
+
"403" : {
|
|
20051
|
+
"description" : "Not an admin of the organization"
|
|
20052
|
+
},
|
|
20053
|
+
"404" : {
|
|
20054
|
+
"description" : "Unknown client"
|
|
20055
|
+
}
|
|
20056
|
+
},
|
|
20057
|
+
"summary" : "Rotate the secret of a confidential OAuth client",
|
|
20058
|
+
"tags" : [ "oauth-provider" ]
|
|
20059
|
+
}
|
|
20060
|
+
},
|
|
19624
20061
|
"/execution-nodes/{nodeId}/sessions/{sessionId}" : {
|
|
19625
20062
|
"get" : {
|
|
19626
20063
|
"operationId" : "getExecutionNodeSession",
|
|
@@ -21597,6 +22034,15 @@
|
|
|
21597
22034
|
"type" : "string"
|
|
21598
22035
|
}
|
|
21599
22036
|
},
|
|
22037
|
+
"oauthClientIdPath" : {
|
|
22038
|
+
"description" : "client_id of the OAuth client",
|
|
22039
|
+
"in" : "path",
|
|
22040
|
+
"name" : "clientId",
|
|
22041
|
+
"required" : true,
|
|
22042
|
+
"schema" : {
|
|
22043
|
+
"type" : "string"
|
|
22044
|
+
}
|
|
22045
|
+
},
|
|
21600
22046
|
"toolIdPath" : {
|
|
21601
22047
|
"description" : "Tool identifier",
|
|
21602
22048
|
"in" : "path",
|
|
@@ -25917,6 +26363,130 @@
|
|
|
25917
26363
|
"required" : [ "access_token", "key_id", "key_name", "token_type" ],
|
|
25918
26364
|
"type" : "object"
|
|
25919
26365
|
},
|
|
26366
|
+
"OAuthProviderInfo" : {
|
|
26367
|
+
"description" : "Le fournisseur OAuth de la plateforme. Répond 404 quand il est désactivé.",
|
|
26368
|
+
"properties" : {
|
|
26369
|
+
"issuer" : {
|
|
26370
|
+
"type" : "string"
|
|
26371
|
+
},
|
|
26372
|
+
"resource" : {
|
|
26373
|
+
"description" : "La valeur exacte que les applications passent en `resource`.",
|
|
26374
|
+
"type" : "string"
|
|
26375
|
+
},
|
|
26376
|
+
"discoveryUrl" : {
|
|
26377
|
+
"type" : "string"
|
|
26378
|
+
}
|
|
26379
|
+
},
|
|
26380
|
+
"required" : [ "discoveryUrl", "issuer", "resource" ],
|
|
26381
|
+
"type" : "object"
|
|
26382
|
+
},
|
|
26383
|
+
"OAuthAuthorizationResumeRequest" : {
|
|
26384
|
+
"properties" : {
|
|
26385
|
+
"oauthQuery" : {
|
|
26386
|
+
"description" : "La requête d'autorisation signée, telle que le fournisseur l'a passée à la page `/oauth/authorize` de breign-app (sa query string, sans le `?`).",
|
|
26387
|
+
"type" : "string"
|
|
26388
|
+
}
|
|
26389
|
+
},
|
|
26390
|
+
"required" : [ "oauthQuery" ],
|
|
26391
|
+
"type" : "object"
|
|
26392
|
+
},
|
|
26393
|
+
"OAuthAuthorizationResume" : {
|
|
26394
|
+
"description" : "`redirect` : l'utilisateur a déjà consenti (ou le client s'en dispense), envoyer le navigateur sur `redirectUrl`. `consent_required` : afficher l'écran de consentement.",
|
|
26395
|
+
"properties" : {
|
|
26396
|
+
"status" : {
|
|
26397
|
+
"enum" : [ "redirect", "consent_required" ],
|
|
26398
|
+
"type" : "string"
|
|
26399
|
+
},
|
|
26400
|
+
"redirectUrl" : {
|
|
26401
|
+
"description" : "Présent quand `status` vaut `redirect`.",
|
|
26402
|
+
"type" : "string"
|
|
26403
|
+
},
|
|
26404
|
+
"client" : {
|
|
26405
|
+
"$ref" : "#/components/schemas/OAuthAuthorizationResume_client"
|
|
26406
|
+
},
|
|
26407
|
+
"organization" : {
|
|
26408
|
+
"$ref" : "#/components/schemas/OAuthAuthorizationResume_organization"
|
|
26409
|
+
},
|
|
26410
|
+
"scopes" : {
|
|
26411
|
+
"description" : "Scopes demandés par l'application. Présent quand `status` vaut `consent_required`.",
|
|
26412
|
+
"items" : {
|
|
26413
|
+
"type" : "string"
|
|
26414
|
+
},
|
|
26415
|
+
"type" : "array"
|
|
26416
|
+
},
|
|
26417
|
+
"oauthQuery" : {
|
|
26418
|
+
"description" : "La requête signée à renvoyer à `consent` avec la réponse de l'utilisateur. Présent quand `status` vaut `consent_required` ; elle peut différer de celle passée à `resume`.",
|
|
26419
|
+
"type" : "string"
|
|
26420
|
+
}
|
|
26421
|
+
},
|
|
26422
|
+
"required" : [ "status" ],
|
|
26423
|
+
"type" : "object"
|
|
26424
|
+
},
|
|
26425
|
+
"OAuthAuthorizationConsentRequest" : {
|
|
26426
|
+
"properties" : {
|
|
26427
|
+
"oauthQuery" : {
|
|
26428
|
+
"type" : "string"
|
|
26429
|
+
},
|
|
26430
|
+
"accept" : {
|
|
26431
|
+
"description" : "Un refus renvoie l'application avec `error=access_denied`.",
|
|
26432
|
+
"type" : "boolean"
|
|
26433
|
+
},
|
|
26434
|
+
"scope" : {
|
|
26435
|
+
"description" : "Scopes accordés, séparés par des espaces : un sous-ensemble de ceux demandés. Par défaut, tous.",
|
|
26436
|
+
"type" : "string"
|
|
26437
|
+
}
|
|
26438
|
+
},
|
|
26439
|
+
"required" : [ "accept", "oauthQuery" ],
|
|
26440
|
+
"type" : "object"
|
|
26441
|
+
},
|
|
26442
|
+
"OAuthAuthorizationRedirect" : {
|
|
26443
|
+
"properties" : {
|
|
26444
|
+
"redirectUrl" : {
|
|
26445
|
+
"description" : "Où envoyer le navigateur : l'adresse de retour de l'application, avec le code ou l'erreur.",
|
|
26446
|
+
"type" : "string"
|
|
26447
|
+
}
|
|
26448
|
+
},
|
|
26449
|
+
"required" : [ "redirectUrl" ],
|
|
26450
|
+
"type" : "object"
|
|
26451
|
+
},
|
|
26452
|
+
"OAuthConsent" : {
|
|
26453
|
+
"description" : "Une application que l'utilisateur a autorisée.",
|
|
26454
|
+
"properties" : {
|
|
26455
|
+
"clientId" : {
|
|
26456
|
+
"type" : "string"
|
|
26457
|
+
},
|
|
26458
|
+
"clientName" : {
|
|
26459
|
+
"nullable" : true,
|
|
26460
|
+
"type" : "string"
|
|
26461
|
+
},
|
|
26462
|
+
"clientIcon" : {
|
|
26463
|
+
"nullable" : true,
|
|
26464
|
+
"type" : "string"
|
|
26465
|
+
},
|
|
26466
|
+
"clientUri" : {
|
|
26467
|
+
"nullable" : true,
|
|
26468
|
+
"type" : "string"
|
|
26469
|
+
},
|
|
26470
|
+
"scopes" : {
|
|
26471
|
+
"items" : {
|
|
26472
|
+
"type" : "string"
|
|
26473
|
+
},
|
|
26474
|
+
"type" : "array"
|
|
26475
|
+
},
|
|
26476
|
+
"createdAt" : {
|
|
26477
|
+
"format" : "date-time",
|
|
26478
|
+
"nullable" : true,
|
|
26479
|
+
"type" : "string"
|
|
26480
|
+
},
|
|
26481
|
+
"updatedAt" : {
|
|
26482
|
+
"format" : "date-time",
|
|
26483
|
+
"nullable" : true,
|
|
26484
|
+
"type" : "string"
|
|
26485
|
+
}
|
|
26486
|
+
},
|
|
26487
|
+
"required" : [ "clientIcon", "clientId", "clientName", "clientUri", "createdAt", "scopes", "updatedAt" ],
|
|
26488
|
+
"type" : "object"
|
|
26489
|
+
},
|
|
25920
26490
|
"Chunk" : {
|
|
25921
26491
|
"properties" : {
|
|
25922
26492
|
"id" : {
|
|
@@ -32865,6 +33435,150 @@
|
|
|
32865
33435
|
"required" : [ "duplicate", "eventId" ],
|
|
32866
33436
|
"type" : "object"
|
|
32867
33437
|
},
|
|
33438
|
+
"OAuthClient" : {
|
|
33439
|
+
"description" : "Une application tierce autorisée à connecter les utilisateurs de l'organisation.",
|
|
33440
|
+
"properties" : {
|
|
33441
|
+
"clientId" : {
|
|
33442
|
+
"type" : "string"
|
|
33443
|
+
},
|
|
33444
|
+
"name" : {
|
|
33445
|
+
"nullable" : true,
|
|
33446
|
+
"type" : "string"
|
|
33447
|
+
},
|
|
33448
|
+
"type" : {
|
|
33449
|
+
"$ref" : "#/components/schemas/OAuthClientType"
|
|
33450
|
+
},
|
|
33451
|
+
"applicationType" : {
|
|
33452
|
+
"description" : "`native` pour une appli mobile ou desktop (retour en loopback ou schéma privé).",
|
|
33453
|
+
"enum" : [ "web", "native" ],
|
|
33454
|
+
"type" : "string"
|
|
33455
|
+
},
|
|
33456
|
+
"redirectUris" : {
|
|
33457
|
+
"items" : {
|
|
33458
|
+
"type" : "string"
|
|
33459
|
+
},
|
|
33460
|
+
"type" : "array"
|
|
33461
|
+
},
|
|
33462
|
+
"uri" : {
|
|
33463
|
+
"description" : "Site de l'application, affiché sur l'écran de consentement.",
|
|
33464
|
+
"nullable" : true,
|
|
33465
|
+
"type" : "string"
|
|
33466
|
+
},
|
|
33467
|
+
"icon" : {
|
|
33468
|
+
"description" : "Logo de l'application, affiché sur l'écran de consentement.",
|
|
33469
|
+
"nullable" : true,
|
|
33470
|
+
"type" : "string"
|
|
33471
|
+
},
|
|
33472
|
+
"skipConsent" : {
|
|
33473
|
+
"description" : "Application de confiance, les utilisateurs ne voient pas l'écran de consentement.",
|
|
33474
|
+
"type" : "boolean"
|
|
33475
|
+
},
|
|
33476
|
+
"disabled" : {
|
|
33477
|
+
"type" : "boolean"
|
|
33478
|
+
},
|
|
33479
|
+
"createdAt" : {
|
|
33480
|
+
"format" : "date-time",
|
|
33481
|
+
"nullable" : true,
|
|
33482
|
+
"type" : "string"
|
|
33483
|
+
}
|
|
33484
|
+
},
|
|
33485
|
+
"required" : [ "applicationType", "clientId", "createdAt", "disabled", "icon", "name", "redirectUris", "skipConsent", "type", "uri" ],
|
|
33486
|
+
"type" : "object"
|
|
33487
|
+
},
|
|
33488
|
+
"OAuthClientType" : {
|
|
33489
|
+
"description" : "`confidential` : application avec serveur, qui garde un secret. `public` : SPA, mobile ou desktop, sans secret, PKCE obligatoire.",
|
|
33490
|
+
"enum" : [ "confidential", "public" ],
|
|
33491
|
+
"type" : "string"
|
|
33492
|
+
},
|
|
33493
|
+
"OAuthClientCreate" : {
|
|
33494
|
+
"properties" : {
|
|
33495
|
+
"name" : {
|
|
33496
|
+
"maxLength" : 200,
|
|
33497
|
+
"minLength" : 1,
|
|
33498
|
+
"type" : "string"
|
|
33499
|
+
},
|
|
33500
|
+
"type" : {
|
|
33501
|
+
"$ref" : "#/components/schemas/OAuthClientType"
|
|
33502
|
+
},
|
|
33503
|
+
"applicationType" : {
|
|
33504
|
+
"default" : "web",
|
|
33505
|
+
"enum" : [ "web", "native" ],
|
|
33506
|
+
"type" : "string"
|
|
33507
|
+
},
|
|
33508
|
+
"redirectUris" : {
|
|
33509
|
+
"items" : {
|
|
33510
|
+
"format" : "uri",
|
|
33511
|
+
"type" : "string"
|
|
33512
|
+
},
|
|
33513
|
+
"maxItems" : 20,
|
|
33514
|
+
"minItems" : 1,
|
|
33515
|
+
"type" : "array"
|
|
33516
|
+
},
|
|
33517
|
+
"uri" : {
|
|
33518
|
+
"format" : "uri",
|
|
33519
|
+
"type" : "string"
|
|
33520
|
+
},
|
|
33521
|
+
"icon" : {
|
|
33522
|
+
"format" : "uri",
|
|
33523
|
+
"type" : "string"
|
|
33524
|
+
},
|
|
33525
|
+
"skipConsent" : {
|
|
33526
|
+
"default" : false,
|
|
33527
|
+
"type" : "boolean"
|
|
33528
|
+
}
|
|
33529
|
+
},
|
|
33530
|
+
"required" : [ "name", "redirectUris", "type" ],
|
|
33531
|
+
"type" : "object"
|
|
33532
|
+
},
|
|
33533
|
+
"OAuthClientWithSecret" : {
|
|
33534
|
+
"allOf" : [ {
|
|
33535
|
+
"$ref" : "#/components/schemas/OAuthClient"
|
|
33536
|
+
}, {
|
|
33537
|
+
"properties" : {
|
|
33538
|
+
"clientSecret" : {
|
|
33539
|
+
"description" : "Le secret d'un client confidentiel, affiché une seule fois (création, rotation). Null pour un client public.",
|
|
33540
|
+
"nullable" : true,
|
|
33541
|
+
"type" : "string"
|
|
33542
|
+
}
|
|
33543
|
+
},
|
|
33544
|
+
"required" : [ "clientSecret" ],
|
|
33545
|
+
"type" : "object"
|
|
33546
|
+
} ]
|
|
33547
|
+
},
|
|
33548
|
+
"OAuthClientUpdate" : {
|
|
33549
|
+
"minProperties" : 1,
|
|
33550
|
+
"properties" : {
|
|
33551
|
+
"name" : {
|
|
33552
|
+
"maxLength" : 200,
|
|
33553
|
+
"minLength" : 1,
|
|
33554
|
+
"type" : "string"
|
|
33555
|
+
},
|
|
33556
|
+
"redirectUris" : {
|
|
33557
|
+
"items" : {
|
|
33558
|
+
"format" : "uri",
|
|
33559
|
+
"type" : "string"
|
|
33560
|
+
},
|
|
33561
|
+
"maxItems" : 20,
|
|
33562
|
+
"minItems" : 1,
|
|
33563
|
+
"type" : "array"
|
|
33564
|
+
},
|
|
33565
|
+
"uri" : {
|
|
33566
|
+
"description" : "URL du site, ou chaîne vide pour l'effacer.",
|
|
33567
|
+
"type" : "string"
|
|
33568
|
+
},
|
|
33569
|
+
"icon" : {
|
|
33570
|
+
"description" : "URL du logo, ou chaîne vide pour l'effacer.",
|
|
33571
|
+
"type" : "string"
|
|
33572
|
+
},
|
|
33573
|
+
"skipConsent" : {
|
|
33574
|
+
"type" : "boolean"
|
|
33575
|
+
},
|
|
33576
|
+
"disabled" : {
|
|
33577
|
+
"type" : "boolean"
|
|
33578
|
+
}
|
|
33579
|
+
},
|
|
33580
|
+
"type" : "object"
|
|
33581
|
+
},
|
|
32868
33582
|
"NodeSessionDetail" : {
|
|
32869
33583
|
"allOf" : [ {
|
|
32870
33584
|
"$ref" : "#/components/schemas/NodeSession"
|
|
@@ -36002,6 +36716,42 @@
|
|
|
36002
36716
|
"required" : [ "email" ],
|
|
36003
36717
|
"type" : "object"
|
|
36004
36718
|
},
|
|
36719
|
+
"OAuthAuthorizationResume_client" : {
|
|
36720
|
+
"description" : "Présent quand `status` vaut `consent_required`.",
|
|
36721
|
+
"properties" : {
|
|
36722
|
+
"clientId" : {
|
|
36723
|
+
"type" : "string"
|
|
36724
|
+
},
|
|
36725
|
+
"name" : {
|
|
36726
|
+
"nullable" : true,
|
|
36727
|
+
"type" : "string"
|
|
36728
|
+
},
|
|
36729
|
+
"uri" : {
|
|
36730
|
+
"nullable" : true,
|
|
36731
|
+
"type" : "string"
|
|
36732
|
+
},
|
|
36733
|
+
"icon" : {
|
|
36734
|
+
"nullable" : true,
|
|
36735
|
+
"type" : "string"
|
|
36736
|
+
}
|
|
36737
|
+
},
|
|
36738
|
+
"required" : [ "clientId", "icon", "name", "uri" ],
|
|
36739
|
+
"type" : "object"
|
|
36740
|
+
},
|
|
36741
|
+
"OAuthAuthorizationResume_organization" : {
|
|
36742
|
+
"description" : "Présent quand `status` vaut `consent_required`.",
|
|
36743
|
+
"properties" : {
|
|
36744
|
+
"id" : {
|
|
36745
|
+
"type" : "string"
|
|
36746
|
+
},
|
|
36747
|
+
"name" : {
|
|
36748
|
+
"nullable" : true,
|
|
36749
|
+
"type" : "string"
|
|
36750
|
+
}
|
|
36751
|
+
},
|
|
36752
|
+
"required" : [ "id", "name" ],
|
|
36753
|
+
"type" : "object"
|
|
36754
|
+
},
|
|
36005
36755
|
"ChunkCreateRequest_content_inner" : {
|
|
36006
36756
|
"additionalProperties" : false,
|
|
36007
36757
|
"properties" : {
|