Skip to content

Commit 6642b0e

Browse files
authored
Merge branch 'master' into sdk-5929-multiple-custom-domain-support
2 parents a97119e + 0195846 commit 6642b0e

3 files changed

Lines changed: 351 additions & 0 deletions

File tree

src/management/__generated/managers/connections-manager.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import type {
66
ConnectionUpdate,
77
GetConnectionClients200Response,
88
GetConnections200Response,
9+
GetConnectionsKeysResponseContent,
910
GetDefaultMapping200Response,
1011
GetScimConfiguration200Response,
1112
GetScimTokens200ResponseInner,
1213
PatchClientsRequestInner,
1314
PatchScimConfigurationRequest,
15+
PostConnectionsKeysRotateResponseContent,
1416
PostScimConfigurationRequest,
1517
PostScimToken201Response,
1618
PostScimTokenRequest,
@@ -24,12 +26,14 @@ import type {
2426
GetConnectionsRequest,
2527
GetConnectionsByIdRequest,
2628
GetDefaultMappingRequest,
29+
GetKeysRequest,
2730
GetScimConfigurationRequest,
2831
GetScimTokensRequest,
2932
GetStatusRequest,
3033
PatchClientsRequest,
3134
PatchConnectionsByIdRequest,
3235
PatchScimConfigurationOperationRequest,
36+
PostRotateRequest,
3337
PostScimConfigurationOperationRequest,
3438
PostScimTokenOperationRequest,
3539
} from '../models/index.js';
@@ -350,6 +354,33 @@ export class ConnectionsManager extends BaseAPI {
350354
return runtime.JSONApiResponse.fromResponse(response);
351355
}
352356

357+
/**
358+
* Gets the connection keys for the Okta or OIDC connection strategy.
359+
*
360+
* Get connection keys
361+
*
362+
* @throws {RequiredError}
363+
*/
364+
async getKeys(
365+
requestParameters: GetKeysRequest,
366+
initOverrides?: InitOverride
367+
): Promise<ApiResponse<GetConnectionsKeysResponseContent>> {
368+
runtime.validateRequiredRequestParams(requestParameters, ['id']);
369+
370+
const response = await this.request(
371+
{
372+
path: `/connections/{id}/keys`.replace(
373+
'{id}',
374+
encodeURIComponent(String(requestParameters.id))
375+
),
376+
method: 'GET',
377+
},
378+
initOverrides
379+
);
380+
381+
return runtime.JSONApiResponse.fromResponse(response);
382+
}
383+
353384
/**
354385
* Retrieves a scim configuration by its <code>connectionId</code>.
355386
*
@@ -556,6 +587,33 @@ export class ConnectionsManager extends BaseAPI {
556587
return runtime.JSONApiResponse.fromResponse(response);
557588
}
558589

590+
/**
591+
* Rotates the connection keys for the Okta or OIDC connection strategies.
592+
*
593+
* Rotate connection keys
594+
*
595+
* @throws {RequiredError}
596+
*/
597+
async rotateKeys(
598+
requestParameters: PostRotateRequest,
599+
initOverrides?: InitOverride
600+
): Promise<ApiResponse<PostConnectionsKeysRotateResponseContent>> {
601+
runtime.validateRequiredRequestParams(requestParameters, ['id']);
602+
603+
const response = await this.request(
604+
{
605+
path: `/connections/{id}/keys/rotate`.replace(
606+
'{id}',
607+
encodeURIComponent(String(requestParameters.id))
608+
),
609+
method: 'POST',
610+
},
611+
initOverrides
612+
);
613+
614+
return runtime.JSONApiResponse.fromResponse(response);
615+
}
616+
559617
/**
560618
* Create a scim configuration for a connection.
561619
*

src/management/__generated/models/index.ts

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5647,6 +5647,83 @@ export interface GetConnections200ResponseOneOf {
56475647
*/
56485648
connections: Array<ConnectionForList>;
56495649
}
5650+
/**
5651+
*
5652+
*/
5653+
export interface GetConnectionsKeysResponseContent
5654+
extends Array<GetConnectionsKeysResponseContentInner> {}
5655+
/**
5656+
*
5657+
*/
5658+
export interface GetConnectionsKeysResponseContentInner {
5659+
[key: string]: any | any;
5660+
/**
5661+
* The key id of the signing key
5662+
*
5663+
*/
5664+
kid: string;
5665+
/**
5666+
* The public certificate of the signing key
5667+
*
5668+
*/
5669+
cert: string;
5670+
/**
5671+
* The public certificate of the signing key in pkcs7 format
5672+
*
5673+
*/
5674+
pkcs?: string;
5675+
/**
5676+
* True if the key is the the current key
5677+
*
5678+
*/
5679+
current?: boolean;
5680+
/**
5681+
* True if the key is the the next key
5682+
*
5683+
*/
5684+
next?: boolean;
5685+
/**
5686+
* True if the key is the the previous key
5687+
*
5688+
*/
5689+
previous?: boolean;
5690+
/**
5691+
* The date and time when the key became the current key
5692+
*
5693+
*/
5694+
current_since?: string;
5695+
/**
5696+
* The cert fingerprint
5697+
*
5698+
*/
5699+
fingerprint: string;
5700+
/**
5701+
* The cert thumbprint
5702+
*
5703+
*/
5704+
thumbprint: string;
5705+
/**
5706+
* Signing key algorithm
5707+
*
5708+
*/
5709+
algorithm?: string;
5710+
/**
5711+
* Signing key use, whether for encryption or signing
5712+
*
5713+
*/
5714+
key_use?: GetConnectionsKeysResponseContentInnerKeyUseEnum;
5715+
/**
5716+
*/
5717+
subject_dn?: string;
5718+
}
5719+
5720+
export const GetConnectionsKeysResponseContentInnerKeyUseEnum = {
5721+
encryption: 'encryption',
5722+
signing: 'signing',
5723+
} as const;
5724+
export type GetConnectionsKeysResponseContentInnerKeyUseEnum =
5725+
(typeof GetConnectionsKeysResponseContentInnerKeyUseEnum)[keyof typeof GetConnectionsKeysResponseContentInnerKeyUseEnum];
5726+
56505727
/**
56515728
*
56525729
*/
@@ -11051,6 +11128,63 @@ export const PostBrandingThemeRequestWidgetSocialButtonsLayoutEnum = {
1105111128
export type PostBrandingThemeRequestWidgetSocialButtonsLayoutEnum =
1105211129
(typeof PostBrandingThemeRequestWidgetSocialButtonsLayoutEnum)[keyof typeof PostBrandingThemeRequestWidgetSocialButtonsLayoutEnum];
1105311130

11131+
/**
11132+
*
11133+
*/
11134+
export interface PostConnectionsKeysRotateResponseContent {
11135+
[key: string]: any | any;
11136+
/**
11137+
* The key id of the signing key
11138+
*
11139+
*/
11140+
kid: string;
11141+
/**
11142+
* The public certificate of the signing key
11143+
*
11144+
*/
11145+
cert: string;
11146+
/**
11147+
* The public certificate of the signing key in pkcs7 format
11148+
*
11149+
*/
11150+
pkcs?: string;
11151+
/**
11152+
* True if the key is the the next key
11153+
*
11154+
*/
11155+
next?: boolean;
11156+
/**
11157+
* The cert fingerprint
11158+
*
11159+
*/
11160+
fingerprint: string;
11161+
/**
11162+
* The cert thumbprint
11163+
*
11164+
*/
11165+
thumbprint: string;
11166+
/**
11167+
* Signing key algorithm
11168+
*
11169+
*/
11170+
algorithm?: string;
11171+
/**
11172+
* Signing key use, whether for encryption or signing
11173+
*
11174+
*/
11175+
key_use?: PostConnectionsKeysRotateResponseContentKeyUseEnum;
11176+
/**
11177+
*/
11178+
subject_dn?: string;
11179+
}
11180+
11181+
export const PostConnectionsKeysRotateResponseContentKeyUseEnum = {
11182+
encryption: 'encryption',
11183+
signing: 'signing',
11184+
} as const;
11185+
export type PostConnectionsKeysRotateResponseContentKeyUseEnum =
11186+
(typeof PostConnectionsKeysRotateResponseContentKeyUseEnum)[keyof typeof PostConnectionsKeysRotateResponseContentKeyUseEnum];
11187+
1105411188
/**
1105511189
*
1105611190
*/
@@ -18712,6 +18846,16 @@ export interface GetDefaultMappingRequest {
1871218846
*/
1871318847
id: string;
1871418848
}
18849+
/**
18850+
*
18851+
*/
18852+
export interface GetKeysRequest {
18853+
/**
18854+
* ID of the connection
18855+
*
18856+
*/
18857+
id: string;
18858+
}
1871518859
/**
1871618860
*
1871718861
*/
@@ -18772,6 +18916,16 @@ export interface PatchScimConfigurationOperationRequest {
1877218916
*/
1877318917
id: string;
1877418918
}
18919+
/**
18920+
*
18921+
*/
18922+
export interface PostRotateRequest {
18923+
/**
18924+
* ID of the connection
18925+
*
18926+
*/
18927+
id: string;
18928+
}
1877518929
/**
1877618930
*
1877718931
*/

0 commit comments

Comments
 (0)