Skip to content

Commit

Permalink
API2 spec change: Adding missing "bodyParameters" and other minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nandan-bhat committed Jul 7, 2024
1 parent f28a396 commit 63d56bd
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 29 deletions.
12 changes: 10 additions & 2 deletions src/management/__generated/managers/connections-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type {
GetScimConfiguration200Response,
GetScimTokens200ResponseInner,
PatchScimConfigurationRequest,
PostScimConfigurationRequest,
PostScimToken201Response,
PostScimTokenRequest,
GetConnections200ResponseOneOf,
Expand All @@ -24,7 +25,7 @@ import type {
GetStatusRequest,
PatchConnectionsByIdRequest,
PatchScimConfigurationOperationRequest,
PostScimConfigurationRequest,
PostScimConfigurationOperationRequest,
PostScimTokenOperationRequest,
} from '../models/index.js';

Expand Down Expand Up @@ -479,18 +480,25 @@ export class ConnectionsManager extends BaseAPI {
* @throws {RequiredError}
*/
async createScimConfiguration(
requestParameters: PostScimConfigurationRequest,
requestParameters: PostScimConfigurationOperationRequest,
bodyParameters: PostScimConfigurationRequest | null,
initOverrides?: InitOverride
): Promise<ApiResponse<GetScimConfiguration200Response>> {
runtime.validateRequiredRequestParams(requestParameters, ['id']);

const headerParameters: runtime.HTTPHeaders = {};

headerParameters['Content-Type'] = 'application/json';

const response = await this.request(
{
path: `/connections/{id}/scim-configuration`.replace(
'{id}',
encodeURIComponent(String(requestParameters.id))
),
method: 'POST',
headers: headerParameters,
body: bodyParameters,
},
initOverrides
);
Expand Down
69 changes: 42 additions & 27 deletions src/management/__generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6478,11 +6478,6 @@ export interface GetScimTokens200ResponseInner {
*
*/
token_id: string;
/**
* The scim client's token
*
*/
token: string;
/**
* The scopes of the scim token
*
Expand All @@ -6494,10 +6489,15 @@ export interface GetScimTokens200ResponseInner {
*/
created_at: string;
/**
* The token's valid until at timestamp
* The token's valid until timestamp
*
*/
valid_until: string;
/**
* The token's last used at timestamp
*
*/
valid_until: string | null;
last_used_at: string;
}
/**
*
Expand Down Expand Up @@ -7836,23 +7836,7 @@ export interface PatchScimConfigurationRequest {
* The mapping between auth0 and SCIM
*
*/
mapping: Array<PatchScimConfigurationRequestMappingInner>;
}
/**
*
*/
export interface PatchScimConfigurationRequestMappingInner {
[key: string]: any | any;
/**
* The field location in the auth0 schema
*
*/
auth0?: string;
/**
* The field location in the SCIM schema
*
*/
scim?: string;
mapping: Array<PostScimConfigurationRequestMappingInner>;
}
/**
*
Expand Down Expand Up @@ -9843,6 +9827,37 @@ export interface PostRoleUsersRequest {
*/
users: Array<string>;
}
/**
*
*/
export interface PostScimConfigurationRequest {
/**
* User ID attribute for generating unique user ids
*
*/
user_id_attribute?: string;
/**
* The mapping between auth0 and SCIM
*
*/
mapping?: Array<PostScimConfigurationRequestMappingInner>;
}
/**
*
*/
export interface PostScimConfigurationRequestMappingInner {
[key: string]: any | any;
/**
* The field location in the auth0 schema
*
*/
auth0?: string;
/**
* The field location in the SCIM schema
*
*/
scim?: string;
}
/**
*
*/
Expand Down Expand Up @@ -9871,7 +9886,7 @@ export interface PostScimToken201Response {
* The token's valid until at timestamp
*
*/
valid_until: string | null;
valid_until: string;
}
/**
* SCIM Token
Expand All @@ -9886,7 +9901,7 @@ export interface PostScimTokenRequest {
* Lifetime of the token in seconds. Must be greater than 900
*
*/
token_lifetime?: number;
token_lifetime?: number | null;
}
/**
*
Expand Down Expand Up @@ -12955,7 +12970,7 @@ export interface PatchScimConfigurationOperationRequest {
/**
*
*/
export interface PostScimConfigurationRequest {
export interface PostScimConfigurationOperationRequest {
/**
* The id of the connection to create its SCIM configuration
*
Expand Down

0 comments on commit 63d56bd

Please sign in to comment.