@lumoauth/api-client 1.0.0 → 1.1.0
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/.openapi-generator/FILES +10 -0
- package/.openapi-generator-ignore +1 -1
- package/README.md +8 -2
- package/api/admin-oauth-clients-api.ts +118 -0
- package/api/authorization-api.ts +5 -26
- package/dist/api/admin-oauth-clients-api.d.ts +65 -0
- package/dist/api/admin-oauth-clients-api.js +77 -0
- package/dist/api/authorization-api.d.ts +5 -5
- package/dist/api/authorization-api.js +4 -18
- package/dist/esm/api/admin-oauth-clients-api.d.ts +65 -0
- package/dist/esm/api/admin-oauth-clients-api.js +78 -1
- package/dist/esm/api/authorization-api.d.ts +5 -5
- package/dist/esm/api/authorization-api.js +4 -18
- package/dist/esm/models/admin-clients-cimd-check-request.d.ts +30 -0
- package/dist/esm/models/admin-clients-cimd-check-request.js +14 -0
- package/dist/esm/models/admin-clients-cimd-check-response.d.ts +25 -0
- package/dist/esm/models/admin-clients-cimd-check-response.js +14 -0
- package/dist/esm/models/authentication-settings.d.ts +1 -1
- package/dist/esm/models/authorization-server-metadata.d.ts +1 -1
- package/dist/esm/models/cimd-check-result-effective.d.ts +112 -0
- package/dist/esm/models/cimd-check-result-effective.js +31 -0
- package/dist/esm/models/cimd-check-result-shadow-client.d.ts +30 -0
- package/dist/esm/models/cimd-check-result-shadow-client.js +14 -0
- package/dist/esm/models/cimd-check-result.d.ts +76 -0
- package/dist/esm/models/cimd-check-result.js +14 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/open-id-configuration.d.ts +1 -1
- package/dist/esm/models/push-enrollment-started.d.ts +7 -1
- package/dist/models/admin-clients-cimd-check-request.d.ts +30 -0
- package/dist/models/admin-clients-cimd-check-request.js +15 -0
- package/dist/models/admin-clients-cimd-check-response.d.ts +25 -0
- package/dist/models/admin-clients-cimd-check-response.js +15 -0
- package/dist/models/authentication-settings.d.ts +1 -1
- package/dist/models/authorization-server-metadata.d.ts +1 -1
- package/dist/models/cimd-check-result-effective.d.ts +112 -0
- package/dist/models/cimd-check-result-effective.js +34 -0
- package/dist/models/cimd-check-result-shadow-client.d.ts +30 -0
- package/dist/models/cimd-check-result-shadow-client.js +15 -0
- package/dist/models/cimd-check-result.d.ts +76 -0
- package/dist/models/cimd-check-result.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/open-id-configuration.d.ts +1 -1
- package/dist/models/push-enrollment-started.d.ts +7 -1
- package/docs/AdminClientsCimdCheckRequest.md +22 -0
- package/docs/AdminClientsCimdCheckResponse.md +20 -0
- package/docs/AdminOAuthClientsApi.md +57 -0
- package/docs/AuthenticationSettings.md +1 -1
- package/docs/AuthorizationApi.md +8 -8
- package/docs/AuthorizationServerMetadata.md +1 -1
- package/docs/CimdCheckResult.md +37 -0
- package/docs/CimdCheckResultEffective.md +45 -0
- package/docs/CimdCheckResultShadowClient.md +23 -0
- package/docs/EnrollAuthenticator201Response.md +3 -1
- package/docs/OpenIdConfiguration.md +1 -1
- package/docs/PushEnrollmentStarted.md +3 -1
- package/docs/WellKnownApi.md +2 -2
- package/models/admin-clients-cimd-check-request.ts +36 -0
- package/models/admin-clients-cimd-check-response.ts +33 -0
- package/models/authentication-settings.ts +1 -1
- package/models/authorization-server-metadata.ts +1 -1
- package/models/cimd-check-result-effective.ts +120 -0
- package/models/cimd-check-result-shadow-client.ts +36 -0
- package/models/cimd-check-result.ts +84 -0
- package/models/index.ts +5 -0
- package/models/open-id-configuration.ts +1 -1
- package/models/push-enrollment-started.ts +7 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -94,6 +94,8 @@ docs/AdminAuditLogsStatsResponse.md
|
|
|
94
94
|
docs/AdminAuditLogsStatsResponseData.md
|
|
95
95
|
docs/AdminAuditLogsStatsResponseDataPeriod.md
|
|
96
96
|
docs/AdminClientTokensRevokeAllResponse.md
|
|
97
|
+
docs/AdminClientsCimdCheckRequest.md
|
|
98
|
+
docs/AdminClientsCimdCheckResponse.md
|
|
97
99
|
docs/AdminEmailApi.md
|
|
98
100
|
docs/AdminEmailTemplatesListResponse.md
|
|
99
101
|
docs/AdminEmailTemplatesPreviewResponse.md
|
|
@@ -242,6 +244,9 @@ docs/CheckPermissionResponse.md
|
|
|
242
244
|
docs/CheckPermissionsBulkResponse.md
|
|
243
245
|
docs/CheckRelationResponse.md
|
|
244
246
|
docs/CheckRelationScopedResponse.md
|
|
247
|
+
docs/CimdCheckResult.md
|
|
248
|
+
docs/CimdCheckResultEffective.md
|
|
249
|
+
docs/CimdCheckResultShadowClient.md
|
|
245
250
|
docs/CompleteTaskResponse.md
|
|
246
251
|
docs/CreateApprovalRequest.md
|
|
247
252
|
docs/CreateApprovalResponse.md
|
|
@@ -507,6 +512,8 @@ models/admin-audit-logs-stats-response-data-period.ts
|
|
|
507
512
|
models/admin-audit-logs-stats-response-data.ts
|
|
508
513
|
models/admin-audit-logs-stats-response.ts
|
|
509
514
|
models/admin-client-tokens-revoke-all-response.ts
|
|
515
|
+
models/admin-clients-cimd-check-request.ts
|
|
516
|
+
models/admin-clients-cimd-check-response.ts
|
|
510
517
|
models/admin-email-templates-list-response.ts
|
|
511
518
|
models/admin-email-templates-preview-response.ts
|
|
512
519
|
models/admin-email-templates-variables-response.ts
|
|
@@ -639,6 +646,9 @@ models/check-permission-response.ts
|
|
|
639
646
|
models/check-permissions-bulk-response.ts
|
|
640
647
|
models/check-relation-response.ts
|
|
641
648
|
models/check-relation-scoped-response.ts
|
|
649
|
+
models/cimd-check-result-effective.ts
|
|
650
|
+
models/cimd-check-result-shadow-client.ts
|
|
651
|
+
models/cimd-check-result.ts
|
|
642
652
|
models/complete-task-response.ts
|
|
643
653
|
models/create-approval-request.ts
|
|
644
654
|
models/create-approval-response.ts
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
> `github.com/lumoauth/lumo-auth-go`), prefer it.
|
|
8
8
|
> Do not edit by hand: changes are overwritten on the next regeneration.
|
|
9
9
|
|
|
10
|
-
## @lumoauth/api-client@1.
|
|
10
|
+
## @lumoauth/api-client@1.1.0
|
|
11
11
|
|
|
12
12
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
13
13
|
|
|
@@ -45,7 +45,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
45
45
|
_published:_
|
|
46
46
|
|
|
47
47
|
```
|
|
48
|
-
npm install @lumoauth/api-client@1.
|
|
48
|
+
npm install @lumoauth/api-client@1.1.0 --save
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
_unPublished (not recommended):_
|
|
@@ -153,6 +153,7 @@ Class | Method | HTTP request | Description
|
|
|
153
153
|
*AdminMfaApi* | [**issueTemporaryAccessCode**](docs/AdminMfaApi.md#issuetemporaryaccesscode) | **POST** /orgs/{orgId}/api/v1/admin/users/{userId}/temporary-access-code | Issue a temporary access code
|
|
154
154
|
*AdminMfaApi* | [**listUserAuthenticators**](docs/AdminMfaApi.md#listuserauthenticators) | **GET** /orgs/{orgId}/api/v1/admin/users/{userId}/authenticators | List a user\'s authenticators
|
|
155
155
|
*AdminMfaApi* | [**updateMfaPolicy**](docs/AdminMfaApi.md#updatemfapolicy) | **PUT** /orgs/{orgId}/api/v1/admin/policies/mfa | Update the MFA policy
|
|
156
|
+
*AdminOAuthClientsApi* | [**adminClientsCimdCheck**](docs/AdminOAuthClientsApi.md#adminclientscimdcheck) | **POST** /orgs/{orgId}/api/v1/admin/clients/cimd/check | Check a Client ID Metadata Document
|
|
156
157
|
*AdminOAuthClientsApi* | [**createClient**](docs/AdminOAuthClientsApi.md#createclient) | **POST** /orgs/{orgId}/api/v1/admin/clients | Create an OAuth client
|
|
157
158
|
*AdminOAuthClientsApi* | [**deleteClient**](docs/AdminOAuthClientsApi.md#deleteclient) | **DELETE** /orgs/{orgId}/api/v1/admin/clients/{clientId} | Delete an OAuth client
|
|
158
159
|
*AdminOAuthClientsApi* | [**disableClient**](docs/AdminOAuthClientsApi.md#disableclient) | **POST** /orgs/{orgId}/api/v1/admin/clients/{clientId}/disable | Disable an OAuth client
|
|
@@ -451,6 +452,8 @@ Class | Method | HTTP request | Description
|
|
|
451
452
|
- [AdminAuditLogsStatsResponseData](docs/AdminAuditLogsStatsResponseData.md)
|
|
452
453
|
- [AdminAuditLogsStatsResponseDataPeriod](docs/AdminAuditLogsStatsResponseDataPeriod.md)
|
|
453
454
|
- [AdminClientTokensRevokeAllResponse](docs/AdminClientTokensRevokeAllResponse.md)
|
|
455
|
+
- [AdminClientsCimdCheckRequest](docs/AdminClientsCimdCheckRequest.md)
|
|
456
|
+
- [AdminClientsCimdCheckResponse](docs/AdminClientsCimdCheckResponse.md)
|
|
454
457
|
- [AdminEmailTemplatesListResponse](docs/AdminEmailTemplatesListResponse.md)
|
|
455
458
|
- [AdminEmailTemplatesPreviewResponse](docs/AdminEmailTemplatesPreviewResponse.md)
|
|
456
459
|
- [AdminEmailTemplatesVariablesResponse](docs/AdminEmailTemplatesVariablesResponse.md)
|
|
@@ -583,6 +586,9 @@ Class | Method | HTTP request | Description
|
|
|
583
586
|
- [CheckPermissionsBulkResponse](docs/CheckPermissionsBulkResponse.md)
|
|
584
587
|
- [CheckRelationResponse](docs/CheckRelationResponse.md)
|
|
585
588
|
- [CheckRelationScopedResponse](docs/CheckRelationScopedResponse.md)
|
|
589
|
+
- [CimdCheckResult](docs/CimdCheckResult.md)
|
|
590
|
+
- [CimdCheckResultEffective](docs/CimdCheckResultEffective.md)
|
|
591
|
+
- [CimdCheckResultShadowClient](docs/CimdCheckResultShadowClient.md)
|
|
586
592
|
- [CompleteTaskResponse](docs/CompleteTaskResponse.md)
|
|
587
593
|
- [CreateApprovalRequest](docs/CreateApprovalRequest.md)
|
|
588
594
|
- [CreateApprovalResponse](docs/CreateApprovalResponse.md)
|
|
@@ -22,6 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
+
import type { AdminClientsCimdCheckRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { AdminClientsCimdCheckResponse } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
25
29
|
import type { CreateClientResponse } from '../models';
|
|
26
30
|
// @ts-ignore
|
|
27
31
|
import type { GetClientResponse } from '../models';
|
|
@@ -43,6 +47,53 @@ import type { UpdateClientResponse } from '../models';
|
|
|
43
47
|
*/
|
|
44
48
|
export const AdminOAuthClientsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45
49
|
return {
|
|
50
|
+
/**
|
|
51
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
52
|
+
* @summary Check a Client ID Metadata Document
|
|
53
|
+
* @param {string} orgId
|
|
54
|
+
* @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
adminClientsCimdCheck: async (orgId: string, adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
60
|
+
assertParamExists('adminClientsCimdCheck', 'orgId', orgId)
|
|
61
|
+
// verify required parameter 'adminClientsCimdCheckRequest' is not null or undefined
|
|
62
|
+
assertParamExists('adminClientsCimdCheck', 'adminClientsCimdCheckRequest', adminClientsCimdCheckRequest)
|
|
63
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/cimd/check`
|
|
64
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
65
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
67
|
+
let baseOptions;
|
|
68
|
+
if (configuration) {
|
|
69
|
+
baseOptions = configuration.baseOptions;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
73
|
+
const localVarHeaderParameter = {} as any;
|
|
74
|
+
const localVarQueryParameter = {} as any;
|
|
75
|
+
|
|
76
|
+
// authentication ApiKeyAuth required
|
|
77
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
78
|
+
|
|
79
|
+
// authentication BearerAuth required
|
|
80
|
+
// http bearer authentication required
|
|
81
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
86
|
+
|
|
87
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
90
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminClientsCimdCheckRequest, localVarRequestOptions, configuration)
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
url: toPathString(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
46
97
|
/**
|
|
47
98
|
*
|
|
48
99
|
* @summary Create an OAuth client
|
|
@@ -540,6 +591,20 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration?: C
|
|
|
540
591
|
export const AdminOAuthClientsApiFp = function(configuration?: Configuration) {
|
|
541
592
|
const localVarAxiosParamCreator = AdminOAuthClientsApiAxiosParamCreator(configuration)
|
|
542
593
|
return {
|
|
594
|
+
/**
|
|
595
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
596
|
+
* @summary Check a Client ID Metadata Document
|
|
597
|
+
* @param {string} orgId
|
|
598
|
+
* @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
async adminClientsCimdCheck(orgId: string, adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminClientsCimdCheckResponse>> {
|
|
603
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminClientsCimdCheck(orgId, adminClientsCimdCheckRequest, options);
|
|
604
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
605
|
+
const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.adminClientsCimdCheck']?.[localVarOperationServerIndex]?.url;
|
|
606
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
|
+
},
|
|
543
608
|
/**
|
|
544
609
|
*
|
|
545
610
|
* @summary Create an OAuth client
|
|
@@ -702,6 +767,16 @@ export const AdminOAuthClientsApiFp = function(configuration?: Configuration) {
|
|
|
702
767
|
export const AdminOAuthClientsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
703
768
|
const localVarFp = AdminOAuthClientsApiFp(configuration)
|
|
704
769
|
return {
|
|
770
|
+
/**
|
|
771
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
772
|
+
* @summary Check a Client ID Metadata Document
|
|
773
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
*/
|
|
777
|
+
adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse> {
|
|
778
|
+
return localVarFp.adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(axios, basePath));
|
|
779
|
+
},
|
|
705
780
|
/**
|
|
706
781
|
*
|
|
707
782
|
* @summary Create an OAuth client
|
|
@@ -821,6 +896,16 @@ export const AdminOAuthClientsApiFactory = function (configuration?: Configurati
|
|
|
821
896
|
* @interface AdminOAuthClientsApi
|
|
822
897
|
*/
|
|
823
898
|
export interface AdminOAuthClientsApiInterface {
|
|
899
|
+
/**
|
|
900
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
901
|
+
* @summary Check a Client ID Metadata Document
|
|
902
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
903
|
+
* @param {*} [options] Override http request option.
|
|
904
|
+
* @throws {RequiredError}
|
|
905
|
+
* @memberof AdminOAuthClientsApiInterface
|
|
906
|
+
*/
|
|
907
|
+
adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse>;
|
|
908
|
+
|
|
824
909
|
/**
|
|
825
910
|
*
|
|
826
911
|
* @summary Create an OAuth client
|
|
@@ -933,6 +1018,27 @@ export interface AdminOAuthClientsApiInterface {
|
|
|
933
1018
|
|
|
934
1019
|
}
|
|
935
1020
|
|
|
1021
|
+
/**
|
|
1022
|
+
* Request parameters for adminClientsCimdCheck operation in AdminOAuthClientsApi.
|
|
1023
|
+
* @export
|
|
1024
|
+
* @interface AdminOAuthClientsApiAdminClientsCimdCheckRequest
|
|
1025
|
+
*/
|
|
1026
|
+
export interface AdminOAuthClientsApiAdminClientsCimdCheckRequest {
|
|
1027
|
+
/**
|
|
1028
|
+
*
|
|
1029
|
+
* @type {string}
|
|
1030
|
+
* @memberof AdminOAuthClientsApiAdminClientsCimdCheck
|
|
1031
|
+
*/
|
|
1032
|
+
readonly orgId: string
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
*
|
|
1036
|
+
* @type {AdminClientsCimdCheckRequest}
|
|
1037
|
+
* @memberof AdminOAuthClientsApiAdminClientsCimdCheck
|
|
1038
|
+
*/
|
|
1039
|
+
readonly adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest
|
|
1040
|
+
}
|
|
1041
|
+
|
|
936
1042
|
/**
|
|
937
1043
|
* Request parameters for createClient operation in AdminOAuthClientsApi.
|
|
938
1044
|
* @export
|
|
@@ -1157,6 +1263,18 @@ export interface AdminOAuthClientsApiUpdateClientRequest {
|
|
|
1157
1263
|
* @extends {BaseAPI}
|
|
1158
1264
|
*/
|
|
1159
1265
|
export class AdminOAuthClientsApi extends BaseAPI implements AdminOAuthClientsApiInterface {
|
|
1266
|
+
/**
|
|
1267
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
1268
|
+
* @summary Check a Client ID Metadata Document
|
|
1269
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
1270
|
+
* @param {*} [options] Override http request option.
|
|
1271
|
+
* @throws {RequiredError}
|
|
1272
|
+
* @memberof AdminOAuthClientsApi
|
|
1273
|
+
*/
|
|
1274
|
+
public adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig) {
|
|
1275
|
+
return AdminOAuthClientsApiFp(this.configuration).adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1160
1278
|
/**
|
|
1161
1279
|
*
|
|
1162
1280
|
* @summary Create an OAuth client
|
package/api/authorization-api.ts
CHANGED
|
@@ -84,9 +84,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
84
84
|
const localVarHeaderParameter = {} as any;
|
|
85
85
|
const localVarQueryParameter = {} as any;
|
|
86
86
|
|
|
87
|
-
// authentication ApiKeyAuth required
|
|
88
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
89
|
-
|
|
90
87
|
// authentication BearerAuth required
|
|
91
88
|
// http bearer authentication required
|
|
92
89
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
@@ -125,9 +122,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
125
122
|
const localVarHeaderParameter = {} as any;
|
|
126
123
|
const localVarQueryParameter = {} as any;
|
|
127
124
|
|
|
128
|
-
// authentication ApiKeyAuth required
|
|
129
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
130
|
-
|
|
131
125
|
// authentication BearerAuth required
|
|
132
126
|
// http bearer authentication required
|
|
133
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
@@ -556,9 +550,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
556
550
|
const localVarHeaderParameter = {} as any;
|
|
557
551
|
const localVarQueryParameter = {} as any;
|
|
558
552
|
|
|
559
|
-
// authentication ApiKeyAuth required
|
|
560
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
561
|
-
|
|
562
553
|
// authentication BearerAuth required
|
|
563
554
|
// http bearer authentication required
|
|
564
555
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
@@ -605,9 +596,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
605
596
|
const localVarHeaderParameter = {} as any;
|
|
606
597
|
const localVarQueryParameter = {} as any;
|
|
607
598
|
|
|
608
|
-
// authentication ApiKeyAuth required
|
|
609
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
610
|
-
|
|
611
599
|
// authentication BearerAuth required
|
|
612
600
|
// http bearer authentication required
|
|
613
601
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
@@ -647,9 +635,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
647
635
|
const localVarHeaderParameter = {} as any;
|
|
648
636
|
const localVarQueryParameter = {} as any;
|
|
649
637
|
|
|
650
|
-
// authentication ApiKeyAuth required
|
|
651
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
652
|
-
|
|
653
638
|
// authentication BearerAuth required
|
|
654
639
|
// http bearer authentication required
|
|
655
640
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
@@ -670,7 +655,7 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
670
655
|
};
|
|
671
656
|
},
|
|
672
657
|
/**
|
|
673
|
-
* GET /api/v1/authz/permissions
|
|
658
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
674
659
|
* @summary List the caller\'s effective permissions
|
|
675
660
|
* @param {*} [options] Override http request option.
|
|
676
661
|
* @throws {RequiredError}
|
|
@@ -741,9 +726,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
741
726
|
const localVarHeaderParameter = {} as any;
|
|
742
727
|
const localVarQueryParameter = {} as any;
|
|
743
728
|
|
|
744
|
-
// authentication ApiKeyAuth required
|
|
745
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
746
|
-
|
|
747
729
|
// authentication BearerAuth required
|
|
748
730
|
// http bearer authentication required
|
|
749
731
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
@@ -790,9 +772,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
790
772
|
const localVarHeaderParameter = {} as any;
|
|
791
773
|
const localVarQueryParameter = {} as any;
|
|
792
774
|
|
|
793
|
-
// authentication ApiKeyAuth required
|
|
794
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
795
|
-
|
|
796
775
|
// authentication BearerAuth required
|
|
797
776
|
// http bearer authentication required
|
|
798
777
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
@@ -1011,7 +990,7 @@ export const AuthorizationApiFp = function(configuration?: Configuration) {
|
|
|
1011
990
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1012
991
|
},
|
|
1013
992
|
/**
|
|
1014
|
-
* GET /api/v1/authz/permissions
|
|
993
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
1015
994
|
* @summary List the caller\'s effective permissions
|
|
1016
995
|
* @param {*} [options] Override http request option.
|
|
1017
996
|
* @throws {RequiredError}
|
|
@@ -1207,7 +1186,7 @@ export const AuthorizationApiFactory = function (configuration?: Configuration,
|
|
|
1207
1186
|
return localVarFp.listAttributeDefinitions(requestParameters.orgId, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
1208
1187
|
},
|
|
1209
1188
|
/**
|
|
1210
|
-
* GET /api/v1/authz/permissions
|
|
1189
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
1211
1190
|
* @summary List the caller\'s effective permissions
|
|
1212
1191
|
* @param {*} [options] Override http request option.
|
|
1213
1192
|
* @throws {RequiredError}
|
|
@@ -1388,7 +1367,7 @@ export interface AuthorizationApiInterface {
|
|
|
1388
1367
|
listAttributeDefinitions(requestParameters: AuthorizationApiListAttributeDefinitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListAttributeDefinitionsResponse>;
|
|
1389
1368
|
|
|
1390
1369
|
/**
|
|
1391
|
-
* GET /api/v1/authz/permissions
|
|
1370
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
1392
1371
|
* @summary List the caller\'s effective permissions
|
|
1393
1372
|
* @param {*} [options] Override http request option.
|
|
1394
1373
|
* @throws {RequiredError}
|
|
@@ -1802,7 +1781,7 @@ export class AuthorizationApi extends BaseAPI implements AuthorizationApiInterfa
|
|
|
1802
1781
|
}
|
|
1803
1782
|
|
|
1804
1783
|
/**
|
|
1805
|
-
* GET /api/v1/authz/permissions
|
|
1784
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
1806
1785
|
* @summary List the caller\'s effective permissions
|
|
1807
1786
|
* @param {*} [options] Override http request option.
|
|
1808
1787
|
* @throws {RequiredError}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { AdminClientsCimdCheckRequest } from '../models';
|
|
16
|
+
import type { AdminClientsCimdCheckResponse } from '../models';
|
|
15
17
|
import type { CreateClientResponse } from '../models';
|
|
16
18
|
import type { GetClientResponse } from '../models';
|
|
17
19
|
import type { ListClientScopesResponse } from '../models';
|
|
@@ -25,6 +27,15 @@ import type { UpdateClientResponse } from '../models';
|
|
|
25
27
|
* @export
|
|
26
28
|
*/
|
|
27
29
|
export declare const AdminOAuthClientsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
30
|
+
/**
|
|
31
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
32
|
+
* @summary Check a Client ID Metadata Document
|
|
33
|
+
* @param {string} orgId
|
|
34
|
+
* @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
adminClientsCimdCheck: (orgId: string, adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
39
|
/**
|
|
29
40
|
*
|
|
30
41
|
* @summary Create an OAuth client
|
|
@@ -128,6 +139,15 @@ export declare const AdminOAuthClientsApiAxiosParamCreator: (configuration?: Con
|
|
|
128
139
|
* @export
|
|
129
140
|
*/
|
|
130
141
|
export declare const AdminOAuthClientsApiFp: (configuration?: Configuration) => {
|
|
142
|
+
/**
|
|
143
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
144
|
+
* @summary Check a Client ID Metadata Document
|
|
145
|
+
* @param {string} orgId
|
|
146
|
+
* @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
adminClientsCimdCheck(orgId: string, adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminClientsCimdCheckResponse>>;
|
|
131
151
|
/**
|
|
132
152
|
*
|
|
133
153
|
* @summary Create an OAuth client
|
|
@@ -231,6 +251,14 @@ export declare const AdminOAuthClientsApiFp: (configuration?: Configuration) =>
|
|
|
231
251
|
* @export
|
|
232
252
|
*/
|
|
233
253
|
export declare const AdminOAuthClientsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
254
|
+
/**
|
|
255
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
256
|
+
* @summary Check a Client ID Metadata Document
|
|
257
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse>;
|
|
234
262
|
/**
|
|
235
263
|
*
|
|
236
264
|
* @summary Create an OAuth client
|
|
@@ -326,6 +354,15 @@ export declare const AdminOAuthClientsApiFactory: (configuration?: Configuration
|
|
|
326
354
|
* @interface AdminOAuthClientsApi
|
|
327
355
|
*/
|
|
328
356
|
export interface AdminOAuthClientsApiInterface {
|
|
357
|
+
/**
|
|
358
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
359
|
+
* @summary Check a Client ID Metadata Document
|
|
360
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
* @memberof AdminOAuthClientsApiInterface
|
|
364
|
+
*/
|
|
365
|
+
adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse>;
|
|
329
366
|
/**
|
|
330
367
|
*
|
|
331
368
|
* @summary Create an OAuth client
|
|
@@ -426,6 +463,25 @@ export interface AdminOAuthClientsApiInterface {
|
|
|
426
463
|
*/
|
|
427
464
|
updateClient(requestParameters: AdminOAuthClientsApiUpdateClientRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateClientResponse>;
|
|
428
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* Request parameters for adminClientsCimdCheck operation in AdminOAuthClientsApi.
|
|
468
|
+
* @export
|
|
469
|
+
* @interface AdminOAuthClientsApiAdminClientsCimdCheckRequest
|
|
470
|
+
*/
|
|
471
|
+
export interface AdminOAuthClientsApiAdminClientsCimdCheckRequest {
|
|
472
|
+
/**
|
|
473
|
+
*
|
|
474
|
+
* @type {string}
|
|
475
|
+
* @memberof AdminOAuthClientsApiAdminClientsCimdCheck
|
|
476
|
+
*/
|
|
477
|
+
readonly orgId: string;
|
|
478
|
+
/**
|
|
479
|
+
*
|
|
480
|
+
* @type {AdminClientsCimdCheckRequest}
|
|
481
|
+
* @memberof AdminOAuthClientsApiAdminClientsCimdCheck
|
|
482
|
+
*/
|
|
483
|
+
readonly adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest;
|
|
484
|
+
}
|
|
429
485
|
/**
|
|
430
486
|
* Request parameters for createClient operation in AdminOAuthClientsApi.
|
|
431
487
|
* @export
|
|
@@ -630,6 +686,15 @@ export interface AdminOAuthClientsApiUpdateClientRequest {
|
|
|
630
686
|
* @extends {BaseAPI}
|
|
631
687
|
*/
|
|
632
688
|
export declare class AdminOAuthClientsApi extends BaseAPI implements AdminOAuthClientsApiInterface {
|
|
689
|
+
/**
|
|
690
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
691
|
+
* @summary Check a Client ID Metadata Document
|
|
692
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
* @memberof AdminOAuthClientsApi
|
|
696
|
+
*/
|
|
697
|
+
adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminClientsCimdCheckResponse, any, {}>>;
|
|
633
698
|
/**
|
|
634
699
|
*
|
|
635
700
|
* @summary Create an OAuth client
|
|
@@ -35,6 +35,45 @@ const base_1 = require("../base");
|
|
|
35
35
|
*/
|
|
36
36
|
const AdminOAuthClientsApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
|
+
/**
|
|
39
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
40
|
+
* @summary Check a Client ID Metadata Document
|
|
41
|
+
* @param {string} orgId
|
|
42
|
+
* @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
adminClientsCimdCheck: (orgId_1, adminClientsCimdCheckRequest_1, ...args_1) => __awaiter(this, [orgId_1, adminClientsCimdCheckRequest_1, ...args_1], void 0, function* (orgId, adminClientsCimdCheckRequest, options = {}) {
|
|
47
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('adminClientsCimdCheck', 'orgId', orgId);
|
|
49
|
+
// verify required parameter 'adminClientsCimdCheckRequest' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('adminClientsCimdCheck', 'adminClientsCimdCheckRequest', adminClientsCimdCheckRequest);
|
|
51
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/cimd/check`
|
|
52
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
}
|
|
59
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
60
|
+
const localVarHeaderParameter = {};
|
|
61
|
+
const localVarQueryParameter = {};
|
|
62
|
+
// authentication ApiKeyAuth required
|
|
63
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
64
|
+
// authentication BearerAuth required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
67
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminClientsCimdCheckRequest, localVarRequestOptions, configuration);
|
|
72
|
+
return {
|
|
73
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
74
|
+
options: localVarRequestOptions,
|
|
75
|
+
};
|
|
76
|
+
}),
|
|
38
77
|
/**
|
|
39
78
|
*
|
|
40
79
|
* @summary Create an OAuth client
|
|
@@ -455,6 +494,23 @@ exports.AdminOAuthClientsApiAxiosParamCreator = AdminOAuthClientsApiAxiosParamCr
|
|
|
455
494
|
const AdminOAuthClientsApiFp = function (configuration) {
|
|
456
495
|
const localVarAxiosParamCreator = (0, exports.AdminOAuthClientsApiAxiosParamCreator)(configuration);
|
|
457
496
|
return {
|
|
497
|
+
/**
|
|
498
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
499
|
+
* @summary Check a Client ID Metadata Document
|
|
500
|
+
* @param {string} orgId
|
|
501
|
+
* @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
adminClientsCimdCheck(orgId, adminClientsCimdCheckRequest, options) {
|
|
506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
var _a, _b, _c;
|
|
508
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminClientsCimdCheck(orgId, adminClientsCimdCheckRequest, options);
|
|
509
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
510
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminOAuthClientsApi.adminClientsCimdCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
511
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
512
|
+
});
|
|
513
|
+
},
|
|
458
514
|
/**
|
|
459
515
|
*
|
|
460
516
|
* @summary Create an OAuth client
|
|
@@ -650,6 +706,16 @@ exports.AdminOAuthClientsApiFp = AdminOAuthClientsApiFp;
|
|
|
650
706
|
const AdminOAuthClientsApiFactory = function (configuration, basePath, axios) {
|
|
651
707
|
const localVarFp = (0, exports.AdminOAuthClientsApiFp)(configuration);
|
|
652
708
|
return {
|
|
709
|
+
/**
|
|
710
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
711
|
+
* @summary Check a Client ID Metadata Document
|
|
712
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
713
|
+
* @param {*} [options] Override http request option.
|
|
714
|
+
* @throws {RequiredError}
|
|
715
|
+
*/
|
|
716
|
+
adminClientsCimdCheck(requestParameters, options) {
|
|
717
|
+
return localVarFp.adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(axios, basePath));
|
|
718
|
+
},
|
|
653
719
|
/**
|
|
654
720
|
*
|
|
655
721
|
* @summary Create an OAuth client
|
|
@@ -770,6 +836,17 @@ exports.AdminOAuthClientsApiFactory = AdminOAuthClientsApiFactory;
|
|
|
770
836
|
* @extends {BaseAPI}
|
|
771
837
|
*/
|
|
772
838
|
class AdminOAuthClientsApi extends base_1.BaseAPI {
|
|
839
|
+
/**
|
|
840
|
+
* Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
|
|
841
|
+
* @summary Check a Client ID Metadata Document
|
|
842
|
+
* @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
|
|
843
|
+
* @param {*} [options] Override http request option.
|
|
844
|
+
* @throws {RequiredError}
|
|
845
|
+
* @memberof AdminOAuthClientsApi
|
|
846
|
+
*/
|
|
847
|
+
adminClientsCimdCheck(requestParameters, options) {
|
|
848
|
+
return (0, exports.AdminOAuthClientsApiFp)(this.configuration).adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
849
|
+
}
|
|
773
850
|
/**
|
|
774
851
|
*
|
|
775
852
|
* @summary Create an OAuth client
|
|
@@ -152,7 +152,7 @@ export declare const AuthorizationApiAxiosParamCreator: (configuration?: Configu
|
|
|
152
152
|
*/
|
|
153
153
|
listAttributeDefinitions: (orgId: string, type?: ListAttributeDefinitionsType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
154
154
|
/**
|
|
155
|
-
* GET /api/v1/authz/permissions
|
|
155
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
156
156
|
* @summary List the caller\'s effective permissions
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
@@ -303,7 +303,7 @@ export declare const AuthorizationApiFp: (configuration?: Configuration) => {
|
|
|
303
303
|
*/
|
|
304
304
|
listAttributeDefinitions(orgId: string, type?: ListAttributeDefinitionsType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAttributeDefinitionsResponse>>;
|
|
305
305
|
/**
|
|
306
|
-
* GET /api/v1/authz/permissions
|
|
306
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
307
307
|
* @summary List the caller\'s effective permissions
|
|
308
308
|
* @param {*} [options] Override http request option.
|
|
309
309
|
* @throws {RequiredError}
|
|
@@ -450,7 +450,7 @@ export declare const AuthorizationApiFactory: (configuration?: Configuration, ba
|
|
|
450
450
|
*/
|
|
451
451
|
listAttributeDefinitions(requestParameters: AuthorizationApiListAttributeDefinitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListAttributeDefinitionsResponse>;
|
|
452
452
|
/**
|
|
453
|
-
* GET /api/v1/authz/permissions
|
|
453
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
454
454
|
* @summary List the caller\'s effective permissions
|
|
455
455
|
* @param {*} [options] Override http request option.
|
|
456
456
|
* @throws {RequiredError}
|
|
@@ -608,7 +608,7 @@ export interface AuthorizationApiInterface {
|
|
|
608
608
|
*/
|
|
609
609
|
listAttributeDefinitions(requestParameters: AuthorizationApiListAttributeDefinitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListAttributeDefinitionsResponse>;
|
|
610
610
|
/**
|
|
611
|
-
* GET /api/v1/authz/permissions
|
|
611
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
612
612
|
* @summary List the caller\'s effective permissions
|
|
613
613
|
* @param {*} [options] Override http request option.
|
|
614
614
|
* @throws {RequiredError}
|
|
@@ -954,7 +954,7 @@ export declare class AuthorizationApi extends BaseAPI implements AuthorizationAp
|
|
|
954
954
|
*/
|
|
955
955
|
listAttributeDefinitions(requestParameters: AuthorizationApiListAttributeDefinitionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAttributeDefinitionsResponse, any, {}>>;
|
|
956
956
|
/**
|
|
957
|
-
* GET /api/v1/authz/permissions
|
|
957
|
+
* GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
|
|
958
958
|
* @summary List the caller\'s effective permissions
|
|
959
959
|
* @param {*} [options] Override http request option.
|
|
960
960
|
* @throws {RequiredError}
|