auth0 4.13.0 → 4.15.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/dist/cjs/management/__generated/managers/prompts-manager.d.ts +15 -1
- package/dist/cjs/management/__generated/managers/prompts-manager.js +36 -0
- package/dist/cjs/management/__generated/managers/prompts-manager.js.map +1 -1
- package/dist/cjs/management/__generated/managers/self-service-profiles-manager.d.ts +46 -11
- package/dist/cjs/management/__generated/managers/self-service-profiles-manager.js +79 -11
- package/dist/cjs/management/__generated/managers/self-service-profiles-manager.js.map +1 -1
- package/dist/cjs/management/__generated/models/index.d.ts +657 -7
- package/dist/cjs/management/__generated/models/index.js +315 -5
- package/dist/cjs/management/__generated/models/index.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/management/__generated/managers/prompts-manager.d.ts +15 -1
- package/dist/esm/management/__generated/managers/prompts-manager.js +36 -0
- package/dist/esm/management/__generated/managers/prompts-manager.js.map +1 -1
- package/dist/esm/management/__generated/managers/self-service-profiles-manager.d.ts +46 -11
- package/dist/esm/management/__generated/managers/self-service-profiles-manager.js +79 -11
- package/dist/esm/management/__generated/managers/self-service-profiles-manager.js.map +1 -1
- package/dist/esm/management/__generated/models/index.d.ts +657 -7
- package/dist/esm/management/__generated/models/index.js +310 -0
- package/dist/esm/management/__generated/models/index.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as runtime from '../../../lib/runtime.js';
|
|
2
2
|
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
-
import type { PromptsSettings, PromptsSettingsUpdate, GetCustomTextByLanguageRequest, GetPartialsRequest, PutCustomTextByLanguageRequest, PutPartialsRequest } from '../models/index.js';
|
|
3
|
+
import type { GetRendering200Response, PatchRenderingRequest, PromptsSettings, PromptsSettingsUpdate, GetCustomTextByLanguageRequest, GetPartialsRequest, GetRenderingRequest, PatchRenderingOperationRequest, PutCustomTextByLanguageRequest, PutPartialsRequest } from '../models/index.js';
|
|
4
4
|
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -31,6 +31,13 @@ export declare class PromptsManager extends BaseAPI {
|
|
|
31
31
|
* @throws {RequiredError}
|
|
32
32
|
*/
|
|
33
33
|
get(initOverrides?: InitOverride): Promise<ApiResponse<PromptsSettings>>;
|
|
34
|
+
/**
|
|
35
|
+
* View the render settings for a specific screen
|
|
36
|
+
* Get render settings for a prompt
|
|
37
|
+
*
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
getRendering(requestParameters: GetRenderingRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetRendering200Response>>;
|
|
34
41
|
/**
|
|
35
42
|
* Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features.
|
|
36
43
|
* Update prompt settings
|
|
@@ -38,6 +45,13 @@ export declare class PromptsManager extends BaseAPI {
|
|
|
38
45
|
* @throws {RequiredError}
|
|
39
46
|
*/
|
|
40
47
|
update(bodyParameters: PromptsSettingsUpdate, initOverrides?: InitOverride): Promise<ApiResponse<PromptsSettings>>;
|
|
48
|
+
/**
|
|
49
|
+
* Configure the render settings for a specific screen
|
|
50
|
+
* Configure render settings for a prompt
|
|
51
|
+
*
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
updateRendering(requestParameters: PatchRenderingOperationRequest, bodyParameters: PatchRenderingRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
41
55
|
/**
|
|
42
56
|
* Set custom text for a specific prompt. Existing texts will be overwritten.
|
|
43
57
|
* Set custom text for a specific prompt
|
|
@@ -47,6 +47,22 @@ export class PromptsManager extends BaseAPI {
|
|
|
47
47
|
}, initOverrides);
|
|
48
48
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* View the render settings for a specific screen
|
|
52
|
+
* Get render settings for a prompt
|
|
53
|
+
*
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
async getRendering(requestParameters, initOverrides) {
|
|
57
|
+
runtime.validateRequiredRequestParams(requestParameters, ['prompt', 'screen']);
|
|
58
|
+
const response = await this.request({
|
|
59
|
+
path: `/prompts/{prompt}/screen/{screen}/rendering`
|
|
60
|
+
.replace('{prompt}', encodeURIComponent(String(requestParameters.prompt)))
|
|
61
|
+
.replace('{screen}', encodeURIComponent(String(requestParameters.screen))),
|
|
62
|
+
method: 'GET',
|
|
63
|
+
}, initOverrides);
|
|
64
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
65
|
+
}
|
|
50
66
|
/**
|
|
51
67
|
* Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features.
|
|
52
68
|
* Update prompt settings
|
|
@@ -64,6 +80,26 @@ export class PromptsManager extends BaseAPI {
|
|
|
64
80
|
}, initOverrides);
|
|
65
81
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
66
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Configure the render settings for a specific screen
|
|
85
|
+
* Configure render settings for a prompt
|
|
86
|
+
*
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
async updateRendering(requestParameters, bodyParameters, initOverrides) {
|
|
90
|
+
runtime.validateRequiredRequestParams(requestParameters, ['prompt', 'screen']);
|
|
91
|
+
const headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
+
const response = await this.request({
|
|
94
|
+
path: `/prompts/{prompt}/screen/{screen}/rendering`
|
|
95
|
+
.replace('{prompt}', encodeURIComponent(String(requestParameters.prompt)))
|
|
96
|
+
.replace('{screen}', encodeURIComponent(String(requestParameters.screen))),
|
|
97
|
+
method: 'PATCH',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
body: bodyParameters,
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
return runtime.VoidApiResponse.fromResponse(response);
|
|
102
|
+
}
|
|
67
103
|
/**
|
|
68
104
|
* Set custom text for a specific prompt. Existing texts will be overwritten.
|
|
69
105
|
* Set custom text for a specific prompt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/prompts-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"prompts-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/prompts-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAenD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,OAAO;IACzC;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,iBAAiD,EACjD,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;QAEjF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,0CAA0C;iBAC7C,OAAO,CAAC,UAAU,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;iBACzE,OAAO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C,OAAO,CACxC,UAAU,EACV,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CACrD;YACD,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,IAAI,EAAE,cAAc;SACrB,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as runtime from '../../../lib/runtime.js';
|
|
2
2
|
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
-
import type { SsProfile, SsProfileCreate,
|
|
3
|
+
import type { PostSsoTicketRequest, SsProfile, SsProfileCreate, SsProfileUpdate, SsoAccessTicketResponse, GetSelfServiceProfiles200ResponseOneOf, DeleteSelfServiceProfilesByIdRequest, GetSelfServiceProfileCustomTextRequest, GetSelfServiceProfilesRequest, GetSelfServiceProfilesByIdRequest, PatchSelfServiceProfilesByIdRequest, PostRevokeRequest, PostSsoTicketOperationRequest, PutSelfServiceProfileCustomTextRequest } from '../models/index.js';
|
|
4
4
|
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -12,41 +12,76 @@ export declare class SelfServiceProfilesManager extends BaseAPI {
|
|
|
12
12
|
*
|
|
13
13
|
* @throws {RequiredError}
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
delete(requestParameters: DeleteSelfServiceProfilesByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page.
|
|
18
|
+
*
|
|
19
|
+
* Get custom text for a self-service profile
|
|
20
|
+
*
|
|
21
|
+
* @throws {RequiredError}
|
|
22
|
+
*/
|
|
23
|
+
getCustomText(requestParameters: GetSelfServiceProfileCustomTextRequest, initOverrides?: InitOverride): Promise<ApiResponse<{
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>>;
|
|
16
26
|
/**
|
|
17
27
|
* Retrieves self-service profiles. Currently only one profile can be created per tenant.
|
|
18
|
-
*
|
|
28
|
+
* Get self-service profiles
|
|
19
29
|
*
|
|
20
30
|
* @throws {RequiredError}
|
|
21
31
|
*/
|
|
22
|
-
|
|
32
|
+
getAll(requestParameters: GetSelfServiceProfilesRequest & {
|
|
33
|
+
include_totals: true;
|
|
34
|
+
}, initOverrides?: InitOverride): Promise<ApiResponse<GetSelfServiceProfiles200ResponseOneOf>>;
|
|
35
|
+
getAll(requestParameters?: GetSelfServiceProfilesRequest, initOverrides?: InitOverride): Promise<ApiResponse<Array<SsProfile>>>;
|
|
23
36
|
/**
|
|
24
37
|
* Retrieves a self-service profile by Id.
|
|
25
|
-
*
|
|
38
|
+
* Get a self-service profile by Id
|
|
26
39
|
*
|
|
27
40
|
* @throws {RequiredError}
|
|
28
41
|
*/
|
|
29
|
-
|
|
42
|
+
get(requestParameters: GetSelfServiceProfilesByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<SsProfile>>;
|
|
30
43
|
/**
|
|
31
44
|
* Updates a self-service profile.
|
|
32
45
|
* Update a self-service profile
|
|
33
46
|
*
|
|
34
47
|
* @throws {RequiredError}
|
|
35
48
|
*/
|
|
36
|
-
|
|
49
|
+
update(requestParameters: PatchSelfServiceProfilesByIdRequest, bodyParameters: SsProfileUpdate, initOverrides?: InitOverride): Promise<ApiResponse<SsProfile>>;
|
|
50
|
+
/**
|
|
51
|
+
* Revokes an SSO access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service SSO session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required.
|
|
52
|
+
* Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found.
|
|
53
|
+
*
|
|
54
|
+
* Revoke an SSO access ticket
|
|
55
|
+
*
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
revokeSsoTicket(requestParameters: PostRevokeRequest, initOverrides?: InitOverride): Promise<ApiResponse<any>>;
|
|
37
59
|
/**
|
|
38
60
|
* Creates a self-service profile. Currently only one profile can be created per tenant.
|
|
39
61
|
* Create a self-service profile
|
|
40
62
|
*
|
|
41
63
|
* @throws {RequiredError}
|
|
42
64
|
*/
|
|
43
|
-
|
|
65
|
+
create(bodyParameters: SsProfileCreate, initOverrides?: InitOverride): Promise<ApiResponse<SsProfile>>;
|
|
66
|
+
/**
|
|
67
|
+
* Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile.
|
|
68
|
+
*
|
|
69
|
+
* Create an SSO access ticket to initiate the Self Service SSO Flow
|
|
70
|
+
*
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
createSsoTicket(requestParameters: PostSsoTicketOperationRequest, bodyParameters: PostSsoTicketRequest, initOverrides?: InitOverride): Promise<ApiResponse<SsoAccessTicketResponse>>;
|
|
44
74
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
75
|
+
* Updates text customizations for a given self-service profile, language and Self Service SSO Flow page.
|
|
76
|
+
*
|
|
77
|
+
* Set custom text for a self-service profile
|
|
47
78
|
*
|
|
48
79
|
* @throws {RequiredError}
|
|
49
80
|
*/
|
|
50
|
-
|
|
81
|
+
updateCustomText(requestParameters: PutSelfServiceProfileCustomTextRequest, bodyParameters: {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}, initOverrides?: InitOverride): Promise<ApiResponse<{
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}>>;
|
|
51
86
|
}
|
|
52
87
|
export {};
|
|
@@ -10,7 +10,7 @@ export class SelfServiceProfilesManager extends BaseAPI {
|
|
|
10
10
|
*
|
|
11
11
|
* @throws {RequiredError}
|
|
12
12
|
*/
|
|
13
|
-
async
|
|
13
|
+
async delete(requestParameters, initOverrides) {
|
|
14
14
|
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
15
15
|
const response = await this.request({
|
|
16
16
|
path: `/self-service-profiles/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
|
|
@@ -19,25 +19,52 @@ export class SelfServiceProfilesManager extends BaseAPI {
|
|
|
19
19
|
return runtime.VoidApiResponse.fromResponse(response);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Retrieves self-service
|
|
23
|
-
*
|
|
22
|
+
* Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page.
|
|
23
|
+
*
|
|
24
|
+
* Get custom text for a self-service profile
|
|
24
25
|
*
|
|
25
26
|
* @throws {RequiredError}
|
|
26
27
|
*/
|
|
27
|
-
async
|
|
28
|
+
async getCustomText(requestParameters, initOverrides) {
|
|
29
|
+
runtime.validateRequiredRequestParams(requestParameters, ['id', 'language', 'page']);
|
|
30
|
+
const response = await this.request({
|
|
31
|
+
path: `/self-service-profiles/{id}/custom-text/{language}/{page}`
|
|
32
|
+
.replace('{id}', encodeURIComponent(String(requestParameters.id)))
|
|
33
|
+
.replace('{language}', encodeURIComponent(String(requestParameters.language)))
|
|
34
|
+
.replace('{page}', encodeURIComponent(String(requestParameters.page))),
|
|
35
|
+
method: 'GET',
|
|
36
|
+
}, initOverrides);
|
|
37
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
38
|
+
}
|
|
39
|
+
async getAll(requestParameters = {}, initOverrides) {
|
|
40
|
+
const queryParameters = runtime.applyQueryParams(requestParameters, [
|
|
41
|
+
{
|
|
42
|
+
key: 'page',
|
|
43
|
+
config: {},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: 'per_page',
|
|
47
|
+
config: {},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: 'include_totals',
|
|
51
|
+
config: {},
|
|
52
|
+
},
|
|
53
|
+
]);
|
|
28
54
|
const response = await this.request({
|
|
29
55
|
path: `/self-service-profiles`,
|
|
30
56
|
method: 'GET',
|
|
57
|
+
query: queryParameters,
|
|
31
58
|
}, initOverrides);
|
|
32
59
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
33
60
|
}
|
|
34
61
|
/**
|
|
35
62
|
* Retrieves a self-service profile by Id.
|
|
36
|
-
*
|
|
63
|
+
* Get a self-service profile by Id
|
|
37
64
|
*
|
|
38
65
|
* @throws {RequiredError}
|
|
39
66
|
*/
|
|
40
|
-
async
|
|
67
|
+
async get(requestParameters, initOverrides) {
|
|
41
68
|
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
42
69
|
const response = await this.request({
|
|
43
70
|
path: `/self-service-profiles/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
|
|
@@ -51,7 +78,7 @@ export class SelfServiceProfilesManager extends BaseAPI {
|
|
|
51
78
|
*
|
|
52
79
|
* @throws {RequiredError}
|
|
53
80
|
*/
|
|
54
|
-
async
|
|
81
|
+
async update(requestParameters, bodyParameters, initOverrides) {
|
|
55
82
|
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
56
83
|
const headerParameters = {};
|
|
57
84
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -63,13 +90,31 @@ export class SelfServiceProfilesManager extends BaseAPI {
|
|
|
63
90
|
}, initOverrides);
|
|
64
91
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
65
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Revokes an SSO access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service SSO session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required.
|
|
95
|
+
* Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found.
|
|
96
|
+
*
|
|
97
|
+
* Revoke an SSO access ticket
|
|
98
|
+
*
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
async revokeSsoTicket(requestParameters, initOverrides) {
|
|
102
|
+
runtime.validateRequiredRequestParams(requestParameters, ['profileId', 'id']);
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/self-service-profiles/{profileId}/sso-ticket/{id}/revoke`
|
|
105
|
+
.replace('{profileId}', encodeURIComponent(String(requestParameters.profileId)))
|
|
106
|
+
.replace('{id}', encodeURIComponent(String(requestParameters.id))),
|
|
107
|
+
method: 'POST',
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return runtime.TextApiResponse.fromResponse(response);
|
|
110
|
+
}
|
|
66
111
|
/**
|
|
67
112
|
* Creates a self-service profile. Currently only one profile can be created per tenant.
|
|
68
113
|
* Create a self-service profile
|
|
69
114
|
*
|
|
70
115
|
* @throws {RequiredError}
|
|
71
116
|
*/
|
|
72
|
-
async
|
|
117
|
+
async create(bodyParameters, initOverrides) {
|
|
73
118
|
const headerParameters = {};
|
|
74
119
|
headerParameters['Content-Type'] = 'application/json';
|
|
75
120
|
const response = await this.request({
|
|
@@ -81,12 +126,13 @@ export class SelfServiceProfilesManager extends BaseAPI {
|
|
|
81
126
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
82
127
|
}
|
|
83
128
|
/**
|
|
84
|
-
* Creates an
|
|
85
|
-
*
|
|
129
|
+
* Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile.
|
|
130
|
+
*
|
|
131
|
+
* Create an SSO access ticket to initiate the Self Service SSO Flow
|
|
86
132
|
*
|
|
87
133
|
* @throws {RequiredError}
|
|
88
134
|
*/
|
|
89
|
-
async
|
|
135
|
+
async createSsoTicket(requestParameters, bodyParameters, initOverrides) {
|
|
90
136
|
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
91
137
|
const headerParameters = {};
|
|
92
138
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -98,5 +144,27 @@ export class SelfServiceProfilesManager extends BaseAPI {
|
|
|
98
144
|
}, initOverrides);
|
|
99
145
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
100
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Updates text customizations for a given self-service profile, language and Self Service SSO Flow page.
|
|
149
|
+
*
|
|
150
|
+
* Set custom text for a self-service profile
|
|
151
|
+
*
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
async updateCustomText(requestParameters, bodyParameters, initOverrides) {
|
|
155
|
+
runtime.validateRequiredRequestParams(requestParameters, ['id', 'language', 'page']);
|
|
156
|
+
const headerParameters = {};
|
|
157
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
158
|
+
const response = await this.request({
|
|
159
|
+
path: `/self-service-profiles/{id}/custom-text/{language}/{page}`
|
|
160
|
+
.replace('{id}', encodeURIComponent(String(requestParameters.id)))
|
|
161
|
+
.replace('{language}', encodeURIComponent(String(requestParameters.language)))
|
|
162
|
+
.replace('{page}', encodeURIComponent(String(requestParameters.page))),
|
|
163
|
+
method: 'PUT',
|
|
164
|
+
headers: headerParameters,
|
|
165
|
+
body: bodyParameters,
|
|
166
|
+
}, initOverrides);
|
|
167
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
168
|
+
}
|
|
101
169
|
}
|
|
102
170
|
//# sourceMappingURL=self-service-profiles-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-service-profiles-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/self-service-profiles-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"self-service-profiles-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/self-service-profiles-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAoBnD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5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