Comparing version 4.10.0 to 4.11.0
@@ -80,5 +80,2 @@ "use strict"; | ||
} | ||
if (payload.org_id !== organization) { | ||
throw new Error(`Organization Id (org_id) claim value mismatch in the ID token; expected "${organization}", found "${payload.org_id}"'`); | ||
} | ||
} | ||
@@ -89,5 +86,2 @@ else { | ||
} | ||
if (payload.org_name !== organization.toLowerCase()) { | ||
throw new Error(`Organization Name (org_name) claim value mismatch in the ID token; expected "${organization}", found "${payload.org_name}"'`); | ||
} | ||
} | ||
@@ -94,0 +88,0 @@ } |
import * as runtime from '../../../lib/runtime.js'; | ||
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js'; | ||
import type { DeleteMembersRequest, DeleteOrganizationMemberRolesRequest, GetEnabledConnections200ResponseOneOfInner, GetInvitations200ResponseOneOfInner, GetOrganizations200ResponseOneOfInner, PatchEnabledConnectionsByConnectionIdRequest, PatchOrganizationsByIdRequest, PostEnabledConnectionsRequest, PostInvitationsRequest, PostMembersRequest, PostOrganizationMemberRolesRequest, PostOrganizations201Response, PostOrganizationsRequest, GetEnabledConnections200ResponseOneOf, GetInvitations200ResponseOneOf, GetMembers200ResponseOneOf, GetMembers200ResponseOneOfInner, GetOrganizationClientGrants200ResponseOneOf, GetOrganizationClientGrants200ResponseOneOfInner, GetOrganizationMemberRoles200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOfInner, GetOrganizations200ResponseOneOf, DeleteEnabledConnectionsByConnectionIdRequest, DeleteInvitationsByInvitationIdRequest, DeleteMembersOperationRequest, DeleteOrganizationMemberRolesOperationRequest, DeleteOrganizationsByIdRequest, GetEnabledConnectionsRequest, GetEnabledConnectionsByConnectionIdRequest, GetInvitationsRequest, GetInvitationsByInvitationIdRequest, GetMembersRequest, GetNameByNameRequest, GetOrganizationClientGrantsRequest, GetOrganizationMemberRolesRequest, GetOrganizationsRequest, GetOrganizationsByIdRequest, PatchEnabledConnectionsByConnectionIdOperationRequest, PatchOrganizationsByIdOperationRequest, PostEnabledConnectionsOperationRequest, PostInvitationsOperationRequest, PostMembersOperationRequest, PostOrganizationMemberRolesOperationRequest } from '../models/index.js'; | ||
import type { DeleteMembersRequest, DeleteOrganizationMemberRolesRequest, GetEnabledConnections200ResponseOneOfInner, GetInvitations200ResponseOneOfInner, GetOrganizationClientGrants200ResponseOneOfInner, GetOrganizations200ResponseOneOfInner, PatchEnabledConnectionsByConnectionIdRequest, PatchOrganizationsByIdRequest, PostEnabledConnectionsRequest, PostInvitationsRequest, PostMembersRequest, PostOrganizationClientGrantsRequest, PostOrganizationMemberRolesRequest, PostOrganizations201Response, PostOrganizationsRequest, GetEnabledConnections200ResponseOneOf, GetInvitations200ResponseOneOf, GetMembers200ResponseOneOf, GetMembers200ResponseOneOfInner, GetOrganizationClientGrants200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOfInner, GetOrganizations200ResponseOneOf, DeleteClientGrantsByGrantIdRequest, DeleteEnabledConnectionsByConnectionIdRequest, DeleteInvitationsByInvitationIdRequest, DeleteMembersOperationRequest, DeleteOrganizationMemberRolesOperationRequest, DeleteOrganizationsByIdRequest, GetEnabledConnectionsRequest, GetEnabledConnectionsByConnectionIdRequest, GetInvitationsRequest, GetInvitationsByInvitationIdRequest, GetMembersRequest, GetNameByNameRequest, GetOrganizationClientGrantsRequest, GetOrganizationMemberRolesRequest, GetOrganizationsRequest, GetOrganizationsByIdRequest, PatchEnabledConnectionsByConnectionIdOperationRequest, PatchOrganizationsByIdOperationRequest, PostEnabledConnectionsOperationRequest, PostInvitationsOperationRequest, PostMembersOperationRequest, PostOrganizationClientGrantsOperationRequest, PostOrganizationMemberRolesOperationRequest } from '../models/index.js'; | ||
declare const BaseAPI: typeof runtime.BaseAPI; | ||
@@ -10,2 +10,8 @@ /** | ||
/** | ||
* Remove a client grant from an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
deleteClientGrantsByGrantId(requestParameters: DeleteClientGrantsByGrantIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>; | ||
/** | ||
* Delete connections from an organization | ||
@@ -202,2 +208,8 @@ * | ||
/** | ||
* Associate a client grant with an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
postOrganizationClientGrants(requestParameters: PostOrganizationClientGrantsOperationRequest, bodyParameters: PostOrganizationClientGrantsRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetOrganizationClientGrants200ResponseOneOfInner>>; | ||
/** | ||
* Assign one or more roles to a given user that will be applied in the context of the provided organization | ||
@@ -204,0 +216,0 @@ * |
@@ -34,2 +34,17 @@ "use strict"; | ||
/** | ||
* Remove a client grant from an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
async deleteClientGrantsByGrantId(requestParameters, initOverrides) { | ||
runtime.validateRequiredRequestParams(requestParameters, ['id', 'grant_id']); | ||
const response = await this.request({ | ||
path: `/organizations/{id}/client-grants/{grant_id}` | ||
.replace('{id}', encodeURIComponent(String(requestParameters.id))) | ||
.replace('{grant_id}', encodeURIComponent(String(requestParameters.grant_id))), | ||
method: 'DELETE', | ||
}, initOverrides); | ||
return runtime.VoidApiResponse.fromResponse(response); | ||
} | ||
/** | ||
* Delete connections from an organization | ||
@@ -472,2 +487,19 @@ * | ||
/** | ||
* Associate a client grant with an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
async postOrganizationClientGrants(requestParameters, bodyParameters, initOverrides) { | ||
runtime.validateRequiredRequestParams(requestParameters, ['id']); | ||
const headerParameters = {}; | ||
headerParameters['Content-Type'] = 'application/json'; | ||
const response = await this.request({ | ||
path: `/organizations/{id}/client-grants`.replace('{id}', encodeURIComponent(String(requestParameters.id))), | ||
method: 'POST', | ||
headers: headerParameters, | ||
body: bodyParameters, | ||
}, initOverrides); | ||
return runtime.JSONApiResponse.fromResponse(response); | ||
} | ||
/** | ||
* Assign one or more roles to a given user that will be applied in the context of the provided organization | ||
@@ -474,0 +506,0 @@ * |
@@ -1,1 +0,1 @@ | ||
export declare const version = "4.10.0"; | ||
export declare const version = "4.11.0"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '4.10.0'; | ||
exports.version = '4.11.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -53,5 +53,2 @@ import * as jose from 'jose'; | ||
} | ||
if (payload.org_id !== organization) { | ||
throw new Error(`Organization Id (org_id) claim value mismatch in the ID token; expected "${organization}", found "${payload.org_id}"'`); | ||
} | ||
} | ||
@@ -62,5 +59,2 @@ else { | ||
} | ||
if (payload.org_name !== organization.toLowerCase()) { | ||
throw new Error(`Organization Name (org_name) claim value mismatch in the ID token; expected "${organization}", found "${payload.org_name}"'`); | ||
} | ||
} | ||
@@ -67,0 +61,0 @@ } |
import * as runtime from '../../../lib/runtime.js'; | ||
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js'; | ||
import type { DeleteMembersRequest, DeleteOrganizationMemberRolesRequest, GetEnabledConnections200ResponseOneOfInner, GetInvitations200ResponseOneOfInner, GetOrganizations200ResponseOneOfInner, PatchEnabledConnectionsByConnectionIdRequest, PatchOrganizationsByIdRequest, PostEnabledConnectionsRequest, PostInvitationsRequest, PostMembersRequest, PostOrganizationMemberRolesRequest, PostOrganizations201Response, PostOrganizationsRequest, GetEnabledConnections200ResponseOneOf, GetInvitations200ResponseOneOf, GetMembers200ResponseOneOf, GetMembers200ResponseOneOfInner, GetOrganizationClientGrants200ResponseOneOf, GetOrganizationClientGrants200ResponseOneOfInner, GetOrganizationMemberRoles200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOfInner, GetOrganizations200ResponseOneOf, DeleteEnabledConnectionsByConnectionIdRequest, DeleteInvitationsByInvitationIdRequest, DeleteMembersOperationRequest, DeleteOrganizationMemberRolesOperationRequest, DeleteOrganizationsByIdRequest, GetEnabledConnectionsRequest, GetEnabledConnectionsByConnectionIdRequest, GetInvitationsRequest, GetInvitationsByInvitationIdRequest, GetMembersRequest, GetNameByNameRequest, GetOrganizationClientGrantsRequest, GetOrganizationMemberRolesRequest, GetOrganizationsRequest, GetOrganizationsByIdRequest, PatchEnabledConnectionsByConnectionIdOperationRequest, PatchOrganizationsByIdOperationRequest, PostEnabledConnectionsOperationRequest, PostInvitationsOperationRequest, PostMembersOperationRequest, PostOrganizationMemberRolesOperationRequest } from '../models/index.js'; | ||
import type { DeleteMembersRequest, DeleteOrganizationMemberRolesRequest, GetEnabledConnections200ResponseOneOfInner, GetInvitations200ResponseOneOfInner, GetOrganizationClientGrants200ResponseOneOfInner, GetOrganizations200ResponseOneOfInner, PatchEnabledConnectionsByConnectionIdRequest, PatchOrganizationsByIdRequest, PostEnabledConnectionsRequest, PostInvitationsRequest, PostMembersRequest, PostOrganizationClientGrantsRequest, PostOrganizationMemberRolesRequest, PostOrganizations201Response, PostOrganizationsRequest, GetEnabledConnections200ResponseOneOf, GetInvitations200ResponseOneOf, GetMembers200ResponseOneOf, GetMembers200ResponseOneOfInner, GetOrganizationClientGrants200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOfInner, GetOrganizations200ResponseOneOf, DeleteClientGrantsByGrantIdRequest, DeleteEnabledConnectionsByConnectionIdRequest, DeleteInvitationsByInvitationIdRequest, DeleteMembersOperationRequest, DeleteOrganizationMemberRolesOperationRequest, DeleteOrganizationsByIdRequest, GetEnabledConnectionsRequest, GetEnabledConnectionsByConnectionIdRequest, GetInvitationsRequest, GetInvitationsByInvitationIdRequest, GetMembersRequest, GetNameByNameRequest, GetOrganizationClientGrantsRequest, GetOrganizationMemberRolesRequest, GetOrganizationsRequest, GetOrganizationsByIdRequest, PatchEnabledConnectionsByConnectionIdOperationRequest, PatchOrganizationsByIdOperationRequest, PostEnabledConnectionsOperationRequest, PostInvitationsOperationRequest, PostMembersOperationRequest, PostOrganizationClientGrantsOperationRequest, PostOrganizationMemberRolesOperationRequest } from '../models/index.js'; | ||
declare const BaseAPI: typeof runtime.BaseAPI; | ||
@@ -10,2 +10,8 @@ /** | ||
/** | ||
* Remove a client grant from an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
deleteClientGrantsByGrantId(requestParameters: DeleteClientGrantsByGrantIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>; | ||
/** | ||
* Delete connections from an organization | ||
@@ -202,2 +208,8 @@ * | ||
/** | ||
* Associate a client grant with an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
postOrganizationClientGrants(requestParameters: PostOrganizationClientGrantsOperationRequest, bodyParameters: PostOrganizationClientGrantsRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetOrganizationClientGrants200ResponseOneOfInner>>; | ||
/** | ||
* Assign one or more roles to a given user that will be applied in the context of the provided organization | ||
@@ -204,0 +216,0 @@ * |
@@ -8,2 +8,17 @@ import * as runtime from '../../../lib/runtime.js'; | ||
/** | ||
* Remove a client grant from an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
async deleteClientGrantsByGrantId(requestParameters, initOverrides) { | ||
runtime.validateRequiredRequestParams(requestParameters, ['id', 'grant_id']); | ||
const response = await this.request({ | ||
path: `/organizations/{id}/client-grants/{grant_id}` | ||
.replace('{id}', encodeURIComponent(String(requestParameters.id))) | ||
.replace('{grant_id}', encodeURIComponent(String(requestParameters.grant_id))), | ||
method: 'DELETE', | ||
}, initOverrides); | ||
return runtime.VoidApiResponse.fromResponse(response); | ||
} | ||
/** | ||
* Delete connections from an organization | ||
@@ -446,2 +461,19 @@ * | ||
/** | ||
* Associate a client grant with an organization | ||
* | ||
* @throws {RequiredError} | ||
*/ | ||
async postOrganizationClientGrants(requestParameters, bodyParameters, initOverrides) { | ||
runtime.validateRequiredRequestParams(requestParameters, ['id']); | ||
const headerParameters = {}; | ||
headerParameters['Content-Type'] = 'application/json'; | ||
const response = await this.request({ | ||
path: `/organizations/{id}/client-grants`.replace('{id}', encodeURIComponent(String(requestParameters.id))), | ||
method: 'POST', | ||
headers: headerParameters, | ||
body: bodyParameters, | ||
}, initOverrides); | ||
return runtime.JSONApiResponse.fromResponse(response); | ||
} | ||
/** | ||
* Assign one or more roles to a given user that will be applied in the context of the provided organization | ||
@@ -448,0 +480,0 @@ * |
@@ -1,1 +0,1 @@ | ||
export declare const version = "4.10.0"; | ||
export declare const version = "4.11.0"; |
@@ -1,2 +0,2 @@ | ||
export const version = '4.10.0'; | ||
export const version = '4.11.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "auth0", | ||
"version": "4.10.0", | ||
"version": "4.11.0", | ||
"description": "SDK for Auth0 API v2", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2306395
59291