auth0 4.13.0 → 4.14.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.
@@ -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, SsProfileList, SsProfileUpdate, SsoAccessTicketResponse, SsoTicketRequestJson, DeleteSelfServiceProfilesByIdRequest, GetSelfServiceProfilesByIdRequest, PatchSelfServiceProfilesByIdRequest, PostSsoTicketRequest } from '../models/index.js';
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
- deleteSelfServiceProfiles(requestParameters: DeleteSelfServiceProfilesByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
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
- * Retrieve self-service profiles
28
+ * Get self-service profiles
19
29
  *
20
30
  * @throws {RequiredError}
21
31
  */
22
- getSelfServiceProfiles(initOverrides?: InitOverride): Promise<ApiResponse<SsProfileList>>;
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
- * Retrieve a self-service profile by Id
38
+ * Get a self-service profile by Id
26
39
  *
27
40
  * @throws {RequiredError}
28
41
  */
29
- getSelfServiceProfilesById(requestParameters: GetSelfServiceProfilesByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<SsProfile>>;
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
- patchSelfServiceProfiles(requestParameters: PatchSelfServiceProfilesByIdRequest, bodyParameters: SsProfileUpdate, initOverrides?: InitOverride): Promise<ApiResponse<SsProfile>>;
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
- postSelfServiceProfiles(bodyParameters: SsProfileCreate, initOverrides?: InitOverride): Promise<ApiResponse<SsProfile>>;
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
- * Creates an sso-access ticket to initiate the Self Service SSO Flow using a self-service profile.
46
- * Create an sso-access ticket to initiate the Self Service SSO Flow
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
- postSsoTicket(requestParameters: PostSsoTicketRequest, bodyParameters: SsoTicketRequestJson, initOverrides?: InitOverride): Promise<ApiResponse<SsoAccessTicketResponse>>;
81
+ updateCustomText(requestParameters: PutSelfServiceProfileCustomTextRequest, bodyParameters: {
82
+ [key: string]: any;
83
+ }, initOverrides?: InitOverride): Promise<ApiResponse<{
84
+ [key: string]: any;
85
+ }>>;
51
86
  }
52
87
  export {};
@@ -36,7 +36,7 @@ class SelfServiceProfilesManager extends BaseAPI {
36
36
  *
37
37
  * @throws {RequiredError}
38
38
  */
39
- async deleteSelfServiceProfiles(requestParameters, initOverrides) {
39
+ async delete(requestParameters, initOverrides) {
40
40
  runtime.validateRequiredRequestParams(requestParameters, ['id']);
41
41
  const response = await this.request({
42
42
  path: `/self-service-profiles/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
@@ -45,25 +45,52 @@ class SelfServiceProfilesManager extends BaseAPI {
45
45
  return runtime.VoidApiResponse.fromResponse(response);
46
46
  }
47
47
  /**
48
- * Retrieves self-service profiles. Currently only one profile can be created per tenant.
49
- * Retrieve self-service profiles
48
+ * Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page.
49
+ *
50
+ * Get custom text for a self-service profile
50
51
  *
51
52
  * @throws {RequiredError}
52
53
  */
53
- async getSelfServiceProfiles(initOverrides) {
54
+ async getCustomText(requestParameters, initOverrides) {
55
+ runtime.validateRequiredRequestParams(requestParameters, ['id', 'language', 'page']);
56
+ const response = await this.request({
57
+ path: `/self-service-profiles/{id}/custom-text/{language}/{page}`
58
+ .replace('{id}', encodeURIComponent(String(requestParameters.id)))
59
+ .replace('{language}', encodeURIComponent(String(requestParameters.language)))
60
+ .replace('{page}', encodeURIComponent(String(requestParameters.page))),
61
+ method: 'GET',
62
+ }, initOverrides);
63
+ return runtime.JSONApiResponse.fromResponse(response);
64
+ }
65
+ async getAll(requestParameters = {}, initOverrides) {
66
+ const queryParameters = runtime.applyQueryParams(requestParameters, [
67
+ {
68
+ key: 'page',
69
+ config: {},
70
+ },
71
+ {
72
+ key: 'per_page',
73
+ config: {},
74
+ },
75
+ {
76
+ key: 'include_totals',
77
+ config: {},
78
+ },
79
+ ]);
54
80
  const response = await this.request({
55
81
  path: `/self-service-profiles`,
56
82
  method: 'GET',
83
+ query: queryParameters,
57
84
  }, initOverrides);
58
85
  return runtime.JSONApiResponse.fromResponse(response);
59
86
  }
60
87
  /**
61
88
  * Retrieves a self-service profile by Id.
62
- * Retrieve a self-service profile by Id
89
+ * Get a self-service profile by Id
63
90
  *
64
91
  * @throws {RequiredError}
65
92
  */
66
- async getSelfServiceProfilesById(requestParameters, initOverrides) {
93
+ async get(requestParameters, initOverrides) {
67
94
  runtime.validateRequiredRequestParams(requestParameters, ['id']);
68
95
  const response = await this.request({
69
96
  path: `/self-service-profiles/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
@@ -77,7 +104,7 @@ class SelfServiceProfilesManager extends BaseAPI {
77
104
  *
78
105
  * @throws {RequiredError}
79
106
  */
80
- async patchSelfServiceProfiles(requestParameters, bodyParameters, initOverrides) {
107
+ async update(requestParameters, bodyParameters, initOverrides) {
81
108
  runtime.validateRequiredRequestParams(requestParameters, ['id']);
82
109
  const headerParameters = {};
83
110
  headerParameters['Content-Type'] = 'application/json';
@@ -89,13 +116,31 @@ class SelfServiceProfilesManager extends BaseAPI {
89
116
  }, initOverrides);
90
117
  return runtime.JSONApiResponse.fromResponse(response);
91
118
  }
119
+ /**
120
+ * 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.
121
+ * 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.
122
+ *
123
+ * Revoke an SSO access ticket
124
+ *
125
+ * @throws {RequiredError}
126
+ */
127
+ async revokeSsoTicket(requestParameters, initOverrides) {
128
+ runtime.validateRequiredRequestParams(requestParameters, ['profileId', 'id']);
129
+ const response = await this.request({
130
+ path: `/self-service-profiles/{profileId}/sso-ticket/{id}/revoke`
131
+ .replace('{profileId}', encodeURIComponent(String(requestParameters.profileId)))
132
+ .replace('{id}', encodeURIComponent(String(requestParameters.id))),
133
+ method: 'POST',
134
+ }, initOverrides);
135
+ return runtime.TextApiResponse.fromResponse(response);
136
+ }
92
137
  /**
93
138
  * Creates a self-service profile. Currently only one profile can be created per tenant.
94
139
  * Create a self-service profile
95
140
  *
96
141
  * @throws {RequiredError}
97
142
  */
98
- async postSelfServiceProfiles(bodyParameters, initOverrides) {
143
+ async create(bodyParameters, initOverrides) {
99
144
  const headerParameters = {};
100
145
  headerParameters['Content-Type'] = 'application/json';
101
146
  const response = await this.request({
@@ -107,12 +152,13 @@ class SelfServiceProfilesManager extends BaseAPI {
107
152
  return runtime.JSONApiResponse.fromResponse(response);
108
153
  }
109
154
  /**
110
- * Creates an sso-access ticket to initiate the Self Service SSO Flow using a self-service profile.
111
- * Create an sso-access ticket to initiate the Self Service SSO Flow
155
+ * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile.
156
+ *
157
+ * Create an SSO access ticket to initiate the Self Service SSO Flow
112
158
  *
113
159
  * @throws {RequiredError}
114
160
  */
115
- async postSsoTicket(requestParameters, bodyParameters, initOverrides) {
161
+ async createSsoTicket(requestParameters, bodyParameters, initOverrides) {
116
162
  runtime.validateRequiredRequestParams(requestParameters, ['id']);
117
163
  const headerParameters = {};
118
164
  headerParameters['Content-Type'] = 'application/json';
@@ -124,6 +170,28 @@ class SelfServiceProfilesManager extends BaseAPI {
124
170
  }, initOverrides);
125
171
  return runtime.JSONApiResponse.fromResponse(response);
126
172
  }
173
+ /**
174
+ * Updates text customizations for a given self-service profile, language and Self Service SSO Flow page.
175
+ *
176
+ * Set custom text for a self-service profile
177
+ *
178
+ * @throws {RequiredError}
179
+ */
180
+ async updateCustomText(requestParameters, bodyParameters, initOverrides) {
181
+ runtime.validateRequiredRequestParams(requestParameters, ['id', 'language', 'page']);
182
+ const headerParameters = {};
183
+ headerParameters['Content-Type'] = 'application/json';
184
+ const response = await this.request({
185
+ path: `/self-service-profiles/{id}/custom-text/{language}/{page}`
186
+ .replace('{id}', encodeURIComponent(String(requestParameters.id)))
187
+ .replace('{language}', encodeURIComponent(String(requestParameters.language)))
188
+ .replace('{page}', encodeURIComponent(String(requestParameters.page))),
189
+ method: 'PUT',
190
+ headers: headerParameters,
191
+ body: bodyParameters,
192
+ }, initOverrides);
193
+ return runtime.JSONApiResponse.fromResponse(response);
194
+ }
127
195
  }
128
196
  exports.SelfServiceProfilesManager = SelfServiceProfilesManager;
129
197
  //# 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,iEAAmD;AAenD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAa,0BAA2B,SAAQ,OAAO;IACrD;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,iBAAuD,EACvD,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,6BAA6B,CAAC,OAAO,CACzC,MAAM,EACN,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CACjD;YACD,MAAM,EAAE,QAAQ;SACjB,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAAC,aAA4B;QACvD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,wBAAwB;YAC9B,MAAM,EAAE,KAAK;SACd,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9B,iBAAoD,EACpD,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;Y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eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,iBAAuC,EACvC,cAAoC,EACpC,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEjE,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,wCAAwC,CAAC,OAAO,CACpD,MAAM,EACN,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CACjD;YACD,MAAM,EAAE,MAAM;YACd,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;AAnKD,gEAmKC"}
1
+ {"version":3,"file":"self-service-profiles-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/self-service-profiles-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AAoBnD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAa,0BAA2B,SAAQ,OAAO;IACrD;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,iBAAuD,EACvD,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,6BAA6B,CAAC,OAAO,CACzC,MAAM,EACN,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAA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seInner {
7234
7234
  */
7235
7235
  last_used_at: string;
7236
7236
  }
7237
+ /**
7238
+ *
7239
+ */
7240
+ export type GetSelfServiceProfiles200Response = Array<SsProfile> | GetSelfServiceProfiles200ResponseOneOf;
7241
+ /**
7242
+ *
7243
+ */
7244
+ export interface GetSelfServiceProfiles200ResponseOneOf {
7245
+ /**
7246
+ */
7247
+ start: number;
7248
+ /**
7249
+ */
7250
+ limit: number;
7251
+ /**
7252
+ */
7253
+ total: number;
7254
+ /**
7255
+ */
7256
+ self_service_profiles: Array<SsProfile>;
7257
+ }
7237
7258
  /**
7238
7259
  *
7239
7260
  */
@@ -12735,6 +12756,97 @@ export interface PostSigningKeys201Response {
12735
12756
  */
12736
12757
  kid: string;
12737
12758
  }
12759
+ /**
12760
+ *
12761
+ */
12762
+ export interface PostSsoTicketRequest {
12763
+ /**
12764
+ * If provided, this will allow editing of the provided connection during the SSO Flow
12765
+ *
12766
+ */
12767
+ connection_id?: string;
12768
+ /**
12769
+ */
12770
+ connection_config?: PostSsoTicketRequestConnectionConfig;
12771
+ /**
12772
+ * List of client_ids that the connection will be enabled for.
12773
+ *
12774
+ */
12775
+ enabled_clients?: Array<string>;
12776
+ /**
12777
+ * List of organizations that the connection will be enabled for.
12778
+ *
12779
+ */
12780
+ enabled_organizations?: Array<PostSsoTicketRequestEnabledOrganizationsInner>;
12781
+ /**
12782
+ * Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days).
12783
+ *
12784
+ */
12785
+ ttl_sec?: number;
12786
+ }
12787
+ /**
12788
+ * If provided, this will create a new connection for the SSO flow with the given configuration
12789
+ */
12790
+ export interface PostSsoTicketRequestConnectionConfig {
12791
+ /**
12792
+ * The name of the connection that will be created as a part of the SSO flow.
12793
+ *
12794
+ */
12795
+ name: string;
12796
+ /**
12797
+ * Connection name used in the new universal login experience
12798
+ *
12799
+ */
12800
+ display_name?: string;
12801
+ /**
12802
+ */
12803
+ is_domain_connection?: boolean;
12804
+ /**
12805
+ * Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed.
12806
+ *
12807
+ */
12808
+ metadata?: {
12809
+ [key: string]: any;
12810
+ };
12811
+ /**
12812
+ */
12813
+ options?: PostSsoTicketRequestConnectionConfigOptions | null;
12814
+ }
12815
+ /**
12816
+ * The connection's options (depend on the connection strategy)
12817
+ */
12818
+ export interface PostSsoTicketRequestConnectionConfigOptions {
12819
+ /**
12820
+ * URL for the icon. Must use HTTPS.
12821
+ *
12822
+ */
12823
+ icon_url?: string | null;
12824
+ /**
12825
+ * List of domain_aliases that can be authenticated in the Identity Provider
12826
+ *
12827
+ */
12828
+ domain_aliases?: Array<string>;
12829
+ }
12830
+ /**
12831
+ *
12832
+ */
12833
+ export interface PostSsoTicketRequestEnabledOrganizationsInner {
12834
+ /**
12835
+ * Organization identifier
12836
+ *
12837
+ */
12838
+ organization_id: string;
12839
+ /**
12840
+ * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.
12841
+ *
12842
+ */
12843
+ assign_membership_on_login?: boolean;
12844
+ /**
12845
+ * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true.
12846
+ *
12847
+ */
12848
+ show_as_button?: boolean;
12849
+ }
12738
12850
  /**
12739
12851
  *
12740
12852
  */
@@ -13882,6 +13994,16 @@ export interface SsProfile {
13882
13994
  *
13883
13995
  */
13884
13996
  id: string;
13997
+ /**
13998
+ * The name of the self-service Profile.
13999
+ *
14000
+ */
14001
+ name: string;
14002
+ /**
14003
+ * The description of the self-service Profile.
14004
+ *
14005
+ */
14006
+ description: string;
13885
14007
  /**
13886
14008
  * List of attributes to be mapped that will be shown to the user during the SS-SSO flow.
13887
14009
  *
@@ -13900,7 +14022,23 @@ export interface SsProfile {
13900
14022
  /**
13901
14023
  */
13902
14024
  branding: SsProfileBranding;
14025
+ /**
14026
+ * List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`]
14027
+ *
14028
+ */
14029
+ allowed_strategies: Array<SsProfileAllowedStrategiesEnum>;
13903
14030
  }
14031
+ export declare const SsProfileAllowedStrategiesEnum: {
14032
+ readonly oidc: "oidc";
14033
+ readonly samlp: "samlp";
14034
+ readonly waad: "waad";
14035
+ readonly google_apps: "google-apps";
14036
+ readonly adfs: "adfs";
14037
+ readonly okta: "okta";
14038
+ readonly keycloak_samlp: "keycloak-samlp";
14039
+ readonly pingfederate: "pingfederate";
14040
+ };
14041
+ export type SsProfileAllowedStrategiesEnum = (typeof SsProfileAllowedStrategiesEnum)[keyof typeof SsProfileAllowedStrategiesEnum];
13904
14042
  /**
13905
14043
  *
13906
14044
  */
@@ -13926,6 +14064,16 @@ export interface SsProfileBrandingColors {
13926
14064
  *
13927
14065
  */
13928
14066
  export interface SsProfileCreate {
14067
+ /**
14068
+ * The name of the self-service Profile.
14069
+ *
14070
+ */
14071
+ name: string;
14072
+ /**
14073
+ * The description of the self-service Profile.
14074
+ *
14075
+ */
14076
+ description?: string;
13929
14077
  /**
13930
14078
  * List of attributes to be mapped that will be shown to the user during the SS-SSO flow.
13931
14079
  *
@@ -13934,7 +14082,23 @@ export interface SsProfileCreate {
13934
14082
  /**
13935
14083
  */
13936
14084
  branding?: SsProfileCreateBranding;
14085
+ /**
14086
+ * List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`]
14087
+ *
14088
+ */
14089
+ allowed_strategies?: Array<SsProfileCreateAllowedStrategiesEnum>;
13937
14090
  }
14091
+ export declare const SsProfileCreateAllowedStrategiesEnum: {
14092
+ readonly oidc: "oidc";
14093
+ readonly samlp: "samlp";
14094
+ readonly waad: "waad";
14095
+ readonly google_apps: "google-apps";
14096
+ readonly adfs: "adfs";
14097
+ readonly okta: "okta";
14098
+ readonly keycloak_samlp: "keycloak-samlp";
14099
+ readonly pingfederate: "pingfederate";
14100
+ };
14101
+ export type SsProfileCreateAllowedStrategiesEnum = (typeof SsProfileCreateAllowedStrategiesEnum)[keyof typeof SsProfileCreateAllowedStrategiesEnum];
13938
14102
  /**
13939
14103
  *
13940
14104
  */
@@ -13947,15 +14111,20 @@ export interface SsProfileCreateBranding {
13947
14111
  */
13948
14112
  colors?: SsProfileBrandingColors;
13949
14113
  }
13950
- /**
13951
- *
13952
- */
13953
- export interface SsProfileList extends Array<SsProfile> {
13954
- }
13955
14114
  /**
13956
14115
  *
13957
14116
  */
13958
14117
  export interface SsProfileUpdate {
14118
+ /**
14119
+ * The name of the self-service Profile.
14120
+ *
14121
+ */
14122
+ name?: string;
14123
+ /**
14124
+ * The description of the self-service Profile.
14125
+ *
14126
+ */
14127
+ description?: string | null;
13959
14128
  /**
13960
14129
  * List of attributes to be mapped that will be shown to the user during the SS-SSO flow.
13961
14130
  *
@@ -13964,7 +14133,23 @@ export interface SsProfileUpdate {
13964
14133
  /**
13965
14134
  */
13966
14135
  branding?: SsProfileUpdateBranding | null;
14136
+ /**
14137
+ * List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`]
14138
+ *
14139
+ */
14140
+ allowed_strategies?: Array<SsProfileUpdateAllowedStrategiesEnum>;
13967
14141
  }
14142
+ export declare const SsProfileUpdateAllowedStrategiesEnum: {
14143
+ readonly oidc: "oidc";
14144
+ readonly samlp: "samlp";
14145
+ readonly waad: "waad";
14146
+ readonly google_apps: "google-apps";
14147
+ readonly adfs: "adfs";
14148
+ readonly okta: "okta";
14149
+ readonly keycloak_samlp: "keycloak-samlp";
14150
+ readonly pingfederate: "pingfederate";
14151
+ };
14152
+ export type SsProfileUpdateAllowedStrategiesEnum = (typeof SsProfileUpdateAllowedStrategiesEnum)[keyof typeof SsProfileUpdateAllowedStrategiesEnum];
13968
14153
  /**
13969
14154
  *
13970
14155
  */
@@ -18001,6 +18186,60 @@ export interface DeleteSelfServiceProfilesByIdRequest {
18001
18186
  */
18002
18187
  id: string;
18003
18188
  }
18189
+ /**
18190
+ *
18191
+ */
18192
+ export declare const GetSelfServiceProfileCustomTextLanguageEnum: {
18193
+ readonly en: "en";
18194
+ };
18195
+ export type GetSelfServiceProfileCustomTextLanguageEnum = (typeof GetSelfServiceProfileCustomTextLanguageEnum)[keyof typeof GetSelfServiceProfileCustomTextLanguageEnum];
18196
+ /**
18197
+ *
18198
+ */
18199
+ export declare const GetSelfServiceProfileCustomTextPageEnum: {
18200
+ readonly get_started: "get-started";
18201
+ };
18202
+ export type GetSelfServiceProfileCustomTextPageEnum = (typeof GetSelfServiceProfileCustomTextPageEnum)[keyof typeof GetSelfServiceProfileCustomTextPageEnum];
18203
+ /**
18204
+ *
18205
+ */
18206
+ export interface GetSelfServiceProfileCustomTextRequest {
18207
+ /**
18208
+ * The id of the self-service profile.
18209
+ *
18210
+ */
18211
+ id: string;
18212
+ /**
18213
+ * The language of the custom text.
18214
+ *
18215
+ */
18216
+ language: GetSelfServiceProfileCustomTextLanguageEnum;
18217
+ /**
18218
+ * The page where the custom text is shown.
18219
+ *
18220
+ */
18221
+ page: GetSelfServiceProfileCustomTextPageEnum;
18222
+ }
18223
+ /**
18224
+ *
18225
+ */
18226
+ export interface GetSelfServiceProfilesRequest {
18227
+ /**
18228
+ * Page index of the results to return. First page is 0.
18229
+ *
18230
+ */
18231
+ page?: number;
18232
+ /**
18233
+ * Number of results per page. Defaults to 50.
18234
+ *
18235
+ */
18236
+ per_page?: number;
18237
+ /**
18238
+ * Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
18239
+ *
18240
+ */
18241
+ include_totals?: boolean;
18242
+ }
18004
18243
  /**
18005
18244
  *
18006
18245
  */
@@ -18024,13 +18263,62 @@ export interface PatchSelfServiceProfilesByIdRequest {
18024
18263
  /**
18025
18264
  *
18026
18265
  */
18027
- export interface PostSsoTicketRequest {
18266
+ export interface PostRevokeRequest {
18267
+ /**
18268
+ * The id of the self-service profile
18269
+ *
18270
+ */
18271
+ profileId: string;
18028
18272
  /**
18029
- * The id of the sso-profile to retrieve
18273
+ * The id of the ticket to revoke
18030
18274
  *
18031
18275
  */
18032
18276
  id: string;
18033
18277
  }
18278
+ /**
18279
+ *
18280
+ */
18281
+ export interface PostSsoTicketOperationRequest {
18282
+ /**
18283
+ * The id of the self-service profile to retrieve
18284
+ *
18285
+ */
18286
+ id: string;
18287
+ }
18288
+ /**
18289
+ *
18290
+ */
18291
+ export declare const PutSelfServiceProfileCustomTextLanguageEnum: {
18292
+ readonly en: "en";
18293
+ };
18294
+ export type PutSelfServiceProfileCustomTextLanguageEnum = (typeof PutSelfServiceProfileCustomTextLanguageEnum)[keyof typeof PutSelfServiceProfileCustomTextLanguageEnum];
18295
+ /**
18296
+ *
18297
+ */
18298
+ export declare const PutSelfServiceProfileCustomTextPageEnum: {
18299
+ readonly get_started: "get-started";
18300
+ };
18301
+ export type PutSelfServiceProfileCustomTextPageEnum = (typeof PutSelfServiceProfileCustomTextPageEnum)[keyof typeof PutSelfServiceProfileCustomTextPageEnum];
18302
+ /**
18303
+ *
18304
+ */
18305
+ export interface PutSelfServiceProfileCustomTextRequest {
18306
+ /**
18307
+ * The id of the self-service profile.
18308
+ *
18309
+ */
18310
+ id: string;
18311
+ /**
18312
+ * The language of the custom text.
18313
+ *
18314
+ */
18315
+ language: PutSelfServiceProfileCustomTextLanguageEnum;
18316
+ /**
18317
+ * The page where the custom text is shown.
18318
+ *
18319
+ */
18320
+ page: PutSelfServiceProfileCustomTextPageEnum;
18321
+ }
18034
18322
  /**
18035
18323
  *
18036
18324
  */