@raystack/frontier 0.0.1 → 0.0.3
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/index.d.ts +459 -20
- package/dist/index.js +328 -5
- package/dist/index.mjs +325 -4
- package/package.json +7 -2
- package/react/dist/index.d.ts +441 -32
- package/react/dist/index.js +3818 -342
- package/react/dist/index.mjs +3899 -320
- package/react/dist/logo-TXEPJWB5.png +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -61,12 +61,27 @@ interface ProtobufAny {
|
|
|
61
61
|
'@type'?: string;
|
|
62
62
|
[key: string]: any;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
66
|
+
* `Value` type union.
|
|
67
|
+
*
|
|
68
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
69
|
+
*
|
|
70
|
+
* - NULL_VALUE: Null value.
|
|
71
|
+
* @default "NULL_VALUE"
|
|
72
|
+
*/
|
|
73
|
+
declare enum ProtobufNullValue {
|
|
74
|
+
NULL_VALUE = "NULL_VALUE"
|
|
75
|
+
}
|
|
64
76
|
interface RpcStatus {
|
|
65
77
|
/** @format int32 */
|
|
66
78
|
code?: number;
|
|
67
79
|
message?: string;
|
|
68
80
|
details?: ProtobufAny[];
|
|
69
81
|
}
|
|
82
|
+
type V1Beta1AcceptOrganizationInvitationResponse = object;
|
|
83
|
+
type V1Beta1AddGroupUsersResponse = object;
|
|
84
|
+
type V1Beta1AddOrganizationUsersResponse = object;
|
|
70
85
|
interface V1Beta1AuditLog {
|
|
71
86
|
/** A unique identifier of the audit log if not supplied will be autogenerated */
|
|
72
87
|
id?: string;
|
|
@@ -108,6 +123,8 @@ interface V1Beta1AuthCallbackRequest {
|
|
|
108
123
|
state?: string;
|
|
109
124
|
code?: string;
|
|
110
125
|
}
|
|
126
|
+
type V1Beta1AuthCallbackResponse = object;
|
|
127
|
+
type V1Beta1AuthLogoutResponse = object;
|
|
111
128
|
interface V1Beta1AuthStrategy {
|
|
112
129
|
name?: string;
|
|
113
130
|
params?: object;
|
|
@@ -130,7 +147,9 @@ interface V1Beta1AuthTokenResponse {
|
|
|
130
147
|
tokenType?: string;
|
|
131
148
|
}
|
|
132
149
|
interface V1Beta1AuthenticateResponse {
|
|
150
|
+
/** endpoint specifies the url to redirect user for starting authentication flow */
|
|
133
151
|
endpoint?: string;
|
|
152
|
+
/** state is used for resuming authentication flow in applicable strategies */
|
|
134
153
|
state?: string;
|
|
135
154
|
}
|
|
136
155
|
interface V1Beta1CheckResourcePermissionRequest {
|
|
@@ -146,14 +165,30 @@ interface V1Beta1CheckResourcePermissionRequest {
|
|
|
146
165
|
interface V1Beta1CheckResourcePermissionResponse {
|
|
147
166
|
status?: boolean;
|
|
148
167
|
}
|
|
168
|
+
interface V1Beta1CreateCurrentUserPreferencesRequest {
|
|
169
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
170
|
+
}
|
|
171
|
+
interface V1Beta1CreateCurrentUserPreferencesResponse {
|
|
172
|
+
preferences?: V1Beta1Preference[];
|
|
173
|
+
}
|
|
174
|
+
interface V1Beta1CreateGroupPreferencesResponse {
|
|
175
|
+
preferences?: V1Beta1Preference[];
|
|
176
|
+
}
|
|
149
177
|
interface V1Beta1CreateGroupResponse {
|
|
150
178
|
group?: V1Beta1Group;
|
|
151
179
|
}
|
|
152
180
|
interface V1Beta1CreateMetaSchemaResponse {
|
|
153
181
|
metaschema?: V1Beta1MetaSchema;
|
|
154
182
|
}
|
|
183
|
+
type V1Beta1CreateOrganizationAuditLogsResponse = object;
|
|
184
|
+
interface V1Beta1CreateOrganizationDomainResponse {
|
|
185
|
+
domain?: V1Beta1Domain;
|
|
186
|
+
}
|
|
155
187
|
interface V1Beta1CreateOrganizationInvitationResponse {
|
|
156
|
-
|
|
188
|
+
invitations?: V1Beta1Invitation[];
|
|
189
|
+
}
|
|
190
|
+
interface V1Beta1CreateOrganizationPreferencesResponse {
|
|
191
|
+
preferences?: V1Beta1Preference[];
|
|
157
192
|
}
|
|
158
193
|
interface V1Beta1CreateOrganizationResponse {
|
|
159
194
|
organization?: V1Beta1Organization;
|
|
@@ -170,6 +205,15 @@ interface V1Beta1CreatePermissionResponse {
|
|
|
170
205
|
interface V1Beta1CreatePolicyResponse {
|
|
171
206
|
policy?: V1Beta1Policy;
|
|
172
207
|
}
|
|
208
|
+
interface V1Beta1CreatePreferencesRequest {
|
|
209
|
+
preferences?: V1Beta1PreferenceRequestBody[];
|
|
210
|
+
}
|
|
211
|
+
interface V1Beta1CreatePreferencesResponse {
|
|
212
|
+
preference?: V1Beta1Preference[];
|
|
213
|
+
}
|
|
214
|
+
interface V1Beta1CreateProjectPreferencesResponse {
|
|
215
|
+
preferences?: V1Beta1Preference[];
|
|
216
|
+
}
|
|
173
217
|
interface V1Beta1CreateProjectResourceResponse {
|
|
174
218
|
resource?: V1Beta1Resource;
|
|
175
219
|
}
|
|
@@ -196,9 +240,78 @@ interface V1Beta1CreateServiceUserResponse {
|
|
|
196
240
|
interface V1Beta1CreateServiceUserSecretResponse {
|
|
197
241
|
secret?: V1Beta1SecretCredential;
|
|
198
242
|
}
|
|
243
|
+
interface V1Beta1CreateUserPreferencesResponse {
|
|
244
|
+
preferences?: V1Beta1Preference[];
|
|
245
|
+
}
|
|
199
246
|
interface V1Beta1CreateUserResponse {
|
|
200
247
|
user?: V1Beta1User;
|
|
201
248
|
}
|
|
249
|
+
type V1Beta1DeleteGroupResponse = object;
|
|
250
|
+
type V1Beta1DeleteMetaSchemaResponse = object;
|
|
251
|
+
type V1Beta1DeleteOrganizationDomainResponse = object;
|
|
252
|
+
type V1Beta1DeleteOrganizationInvitationResponse = object;
|
|
253
|
+
type V1Beta1DeleteOrganizationResponse = object;
|
|
254
|
+
type V1Beta1DeleteOrganizationRoleResponse = object;
|
|
255
|
+
type V1Beta1DeletePermissionResponse = object;
|
|
256
|
+
type V1Beta1DeletePolicyResponse = object;
|
|
257
|
+
type V1Beta1DeleteProjectResourceResponse = object;
|
|
258
|
+
type V1Beta1DeleteProjectResponse = object;
|
|
259
|
+
type V1Beta1DeleteRelationResponse = object;
|
|
260
|
+
type V1Beta1DeleteRoleResponse = object;
|
|
261
|
+
type V1Beta1DeleteServiceUserKeyResponse = object;
|
|
262
|
+
type V1Beta1DeleteServiceUserResponse = object;
|
|
263
|
+
type V1Beta1DeleteServiceUserSecretResponse = object;
|
|
264
|
+
type V1Beta1DeleteUserResponse = object;
|
|
265
|
+
interface V1Beta1DescribePreferencesResponse {
|
|
266
|
+
traits?: V1Beta1PreferenceTrait[];
|
|
267
|
+
}
|
|
268
|
+
type V1Beta1DisableGroupResponse = object;
|
|
269
|
+
type V1Beta1DisableOrganizationResponse = object;
|
|
270
|
+
type V1Beta1DisableProjectResponse = object;
|
|
271
|
+
type V1Beta1DisableUserResponse = object;
|
|
272
|
+
interface V1Beta1Domain {
|
|
273
|
+
/**
|
|
274
|
+
* The domain id
|
|
275
|
+
* @example "943e4567-e89b-12d3-a456-426655440000"
|
|
276
|
+
*/
|
|
277
|
+
id?: string;
|
|
278
|
+
/**
|
|
279
|
+
* The domain name
|
|
280
|
+
* @example "raystack.org"
|
|
281
|
+
*/
|
|
282
|
+
name?: string;
|
|
283
|
+
/**
|
|
284
|
+
* The organization id
|
|
285
|
+
* @example "123e4567-e89b-12d3-a456-426655440000"
|
|
286
|
+
*/
|
|
287
|
+
orgId?: string;
|
|
288
|
+
/**
|
|
289
|
+
* The dns TXT record token to verify the domain
|
|
290
|
+
* @example "_frontier-domain-verification=LB6U2lSQgGS55HOy6kpWFqkngRC8TMEjyrakfmYC2D0s+nfy/WkFSg=="
|
|
291
|
+
*/
|
|
292
|
+
token?: string;
|
|
293
|
+
/**
|
|
294
|
+
* The domain state either pending or verified
|
|
295
|
+
* @example "pending"
|
|
296
|
+
*/
|
|
297
|
+
state?: string;
|
|
298
|
+
/**
|
|
299
|
+
* The time the domain whitelist request was created
|
|
300
|
+
* @format date-time
|
|
301
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
302
|
+
*/
|
|
303
|
+
createdAt?: string;
|
|
304
|
+
/**
|
|
305
|
+
* The time the org domain was updated
|
|
306
|
+
* @format date-time
|
|
307
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
308
|
+
*/
|
|
309
|
+
updatedAt?: string;
|
|
310
|
+
}
|
|
311
|
+
type V1Beta1EnableGroupResponse = object;
|
|
312
|
+
type V1Beta1EnableOrganizationResponse = object;
|
|
313
|
+
type V1Beta1EnableProjectResponse = object;
|
|
314
|
+
type V1Beta1EnableUserResponse = object;
|
|
202
315
|
interface V1Beta1GetCurrentUserResponse {
|
|
203
316
|
user?: V1Beta1User;
|
|
204
317
|
serviceuser?: V1Beta1ServiceUser;
|
|
@@ -219,6 +332,9 @@ interface V1Beta1GetNamespaceResponse {
|
|
|
219
332
|
interface V1Beta1GetOrganizationAuditLogResponse {
|
|
220
333
|
log?: V1Beta1AuditLog;
|
|
221
334
|
}
|
|
335
|
+
interface V1Beta1GetOrganizationDomainResponse {
|
|
336
|
+
domain?: V1Beta1Domain;
|
|
337
|
+
}
|
|
222
338
|
interface V1Beta1GetOrganizationInvitationResponse {
|
|
223
339
|
invitation?: V1Beta1Invitation;
|
|
224
340
|
}
|
|
@@ -230,9 +346,11 @@ interface V1Beta1GetOrganizationRoleResponse {
|
|
|
230
346
|
}
|
|
231
347
|
interface V1Beta1GetOrganizationsByCurrentUserResponse {
|
|
232
348
|
organizations?: V1Beta1Organization[];
|
|
349
|
+
joinableViaDomain?: V1Beta1Organization[];
|
|
233
350
|
}
|
|
234
351
|
interface V1Beta1GetOrganizationsByUserResponse {
|
|
235
352
|
organizations?: V1Beta1Organization[];
|
|
353
|
+
joinableViaDomain?: V1Beta1Organization[];
|
|
236
354
|
}
|
|
237
355
|
interface V1Beta1GetPermissionResponse {
|
|
238
356
|
permission?: V1Beta1Permission;
|
|
@@ -329,6 +447,11 @@ interface V1Beta1Invitation {
|
|
|
329
447
|
* @example "2023-06-07T05:39:56.961Z"
|
|
330
448
|
*/
|
|
331
449
|
expiresAt?: string;
|
|
450
|
+
/**
|
|
451
|
+
* The list of role ids to which the user is invited in an organization.
|
|
452
|
+
* @example "d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
|
|
453
|
+
*/
|
|
454
|
+
roleIds?: string[];
|
|
332
455
|
}
|
|
333
456
|
/** JSON Web Key as specified in RFC 7517 */
|
|
334
457
|
interface V1Beta1JSONWebKey {
|
|
@@ -351,6 +474,7 @@ interface V1Beta1JSONWebKey {
|
|
|
351
474
|
/** Used for ECDSA keys. */
|
|
352
475
|
crv?: string;
|
|
353
476
|
}
|
|
477
|
+
type V1Beta1JoinOrganizationResponse = object;
|
|
354
478
|
interface V1Beta1KeyCredential {
|
|
355
479
|
type?: string;
|
|
356
480
|
kid?: string;
|
|
@@ -372,6 +496,12 @@ interface V1Beta1ListAuthStrategiesResponse {
|
|
|
372
496
|
interface V1Beta1ListCurrentUserGroupsResponse {
|
|
373
497
|
groups?: V1Beta1Group[];
|
|
374
498
|
}
|
|
499
|
+
interface V1Beta1ListCurrentUserPreferencesResponse {
|
|
500
|
+
preferences?: V1Beta1Preference[];
|
|
501
|
+
}
|
|
502
|
+
interface V1Beta1ListGroupPreferencesResponse {
|
|
503
|
+
preferences?: V1Beta1Preference[];
|
|
504
|
+
}
|
|
375
505
|
interface V1Beta1ListGroupUsersResponse {
|
|
376
506
|
users?: V1Beta1User[];
|
|
377
507
|
}
|
|
@@ -390,12 +520,18 @@ interface V1Beta1ListOrganizationAdminsResponse {
|
|
|
390
520
|
interface V1Beta1ListOrganizationAuditLogsResponse {
|
|
391
521
|
logs?: V1Beta1AuditLog[];
|
|
392
522
|
}
|
|
523
|
+
interface V1Beta1ListOrganizationDomainsResponse {
|
|
524
|
+
domains?: V1Beta1Domain[];
|
|
525
|
+
}
|
|
393
526
|
interface V1Beta1ListOrganizationGroupsResponse {
|
|
394
527
|
groups?: V1Beta1Group[];
|
|
395
528
|
}
|
|
396
529
|
interface V1Beta1ListOrganizationInvitationsResponse {
|
|
397
530
|
invitations?: V1Beta1Invitation[];
|
|
398
531
|
}
|
|
532
|
+
interface V1Beta1ListOrganizationPreferencesResponse {
|
|
533
|
+
preferences?: V1Beta1Preference[];
|
|
534
|
+
}
|
|
399
535
|
interface V1Beta1ListOrganizationProjectsResponse {
|
|
400
536
|
projects?: V1Beta1Project[];
|
|
401
537
|
}
|
|
@@ -417,9 +553,15 @@ interface V1Beta1ListPermissionsResponse {
|
|
|
417
553
|
interface V1Beta1ListPoliciesResponse {
|
|
418
554
|
policies?: V1Beta1Policy[];
|
|
419
555
|
}
|
|
556
|
+
interface V1Beta1ListPreferencesResponse {
|
|
557
|
+
preferences?: V1Beta1Preference[];
|
|
558
|
+
}
|
|
420
559
|
interface V1Beta1ListProjectAdminsResponse {
|
|
421
560
|
users?: V1Beta1User[];
|
|
422
561
|
}
|
|
562
|
+
interface V1Beta1ListProjectPreferencesResponse {
|
|
563
|
+
preferences?: V1Beta1Preference[];
|
|
564
|
+
}
|
|
423
565
|
interface V1Beta1ListProjectResourcesResponse {
|
|
424
566
|
resources?: V1Beta1Resource[];
|
|
425
567
|
}
|
|
@@ -454,6 +596,9 @@ interface V1Beta1ListUserGroupsResponse {
|
|
|
454
596
|
interface V1Beta1ListUserInvitationsResponse {
|
|
455
597
|
invitations?: V1Beta1Invitation[];
|
|
456
598
|
}
|
|
599
|
+
interface V1Beta1ListUserPreferencesResponse {
|
|
600
|
+
preferences?: V1Beta1Preference[];
|
|
601
|
+
}
|
|
457
602
|
interface V1Beta1ListUsersResponse {
|
|
458
603
|
/** @format int32 */
|
|
459
604
|
count?: number;
|
|
@@ -563,7 +708,7 @@ interface V1Beta1PermissionRequestBody {
|
|
|
563
708
|
name?: string;
|
|
564
709
|
/**
|
|
565
710
|
* namespace should be in service/resource format
|
|
566
|
-
* The namespace of the permission.The namespace should be in service/resource format.<br/>*Example:*`
|
|
711
|
+
* The namespace of the permission. The namespace should be in service/resource format.<br/>*Example:*`compute/guardian`
|
|
567
712
|
*/
|
|
568
713
|
namespace?: string;
|
|
569
714
|
/** The metadata object for permissions that can hold key value pairs. */
|
|
@@ -571,7 +716,9 @@ interface V1Beta1PermissionRequestBody {
|
|
|
571
716
|
/** The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty. */
|
|
572
717
|
title?: string;
|
|
573
718
|
/**
|
|
574
|
-
*
|
|
719
|
+
* key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
|
|
720
|
+
* Use this instead of using name and namespace fields
|
|
721
|
+
* Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. Namespace name cannot be `app` as it's reserved for core permissions.
|
|
575
722
|
* @example "compute.instance.get"
|
|
576
723
|
*/
|
|
577
724
|
key?: string;
|
|
@@ -610,6 +757,51 @@ interface V1Beta1PolicyRequestBody {
|
|
|
610
757
|
/** Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> *Example:* `{"labels": {"key": "value"}, "description": "Policy description"}` */
|
|
611
758
|
metadata?: object;
|
|
612
759
|
}
|
|
760
|
+
interface V1Beta1Preference {
|
|
761
|
+
id?: string;
|
|
762
|
+
name?: string;
|
|
763
|
+
value?: string;
|
|
764
|
+
resourceId?: string;
|
|
765
|
+
resourceType?: string;
|
|
766
|
+
/**
|
|
767
|
+
* The time when the preference was created.
|
|
768
|
+
* @format date-time
|
|
769
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
770
|
+
*/
|
|
771
|
+
createdAt?: string;
|
|
772
|
+
/**
|
|
773
|
+
* The time when the preference was updated.
|
|
774
|
+
* @format date-time
|
|
775
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
776
|
+
*/
|
|
777
|
+
updatedAt?: string;
|
|
778
|
+
}
|
|
779
|
+
interface V1Beta1PreferenceRequestBody {
|
|
780
|
+
name?: string;
|
|
781
|
+
value?: string;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* PreferenceTrait is a trait that can be used to add preferences to a resource
|
|
785
|
+
* it explains what preferences are available for a resource
|
|
786
|
+
*/
|
|
787
|
+
interface V1Beta1PreferenceTrait {
|
|
788
|
+
resourceType?: string;
|
|
789
|
+
name?: string;
|
|
790
|
+
title?: string;
|
|
791
|
+
description?: string;
|
|
792
|
+
longDescription?: string;
|
|
793
|
+
heading?: string;
|
|
794
|
+
subHeading?: string;
|
|
795
|
+
breadcrumb?: string;
|
|
796
|
+
inputHints?: string;
|
|
797
|
+
text?: string;
|
|
798
|
+
textarea?: string;
|
|
799
|
+
select?: string;
|
|
800
|
+
combobox?: string;
|
|
801
|
+
checkbox?: string;
|
|
802
|
+
multiselect?: string;
|
|
803
|
+
number?: string;
|
|
804
|
+
}
|
|
613
805
|
interface V1Beta1Project {
|
|
614
806
|
id?: string;
|
|
615
807
|
name?: string;
|
|
@@ -668,6 +860,8 @@ interface V1Beta1RelationRequestBody {
|
|
|
668
860
|
relation?: string;
|
|
669
861
|
subjectSubRelation?: string;
|
|
670
862
|
}
|
|
863
|
+
type V1Beta1RemoveGroupUserResponse = object;
|
|
864
|
+
type V1Beta1RemoveOrganizationUserResponse = object;
|
|
671
865
|
interface V1Beta1Resource {
|
|
672
866
|
id?: string;
|
|
673
867
|
/** Name of the resource. Must be unique within the project. */
|
|
@@ -816,6 +1010,9 @@ interface V1Beta1UpdateProjectResourceResponse {
|
|
|
816
1010
|
interface V1Beta1UpdateProjectResponse {
|
|
817
1011
|
project?: V1Beta1Project;
|
|
818
1012
|
}
|
|
1013
|
+
interface V1Beta1UpdateRoleResponse {
|
|
1014
|
+
role?: V1Beta1Role;
|
|
1015
|
+
}
|
|
819
1016
|
interface V1Beta1UpdateUserResponse {
|
|
820
1017
|
user?: V1Beta1User;
|
|
821
1018
|
}
|
|
@@ -858,6 +1055,9 @@ interface V1Beta1UserRequestBody {
|
|
|
858
1055
|
/** The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty. <br/>*Example:*`"John Doe"` */
|
|
859
1056
|
title?: string;
|
|
860
1057
|
}
|
|
1058
|
+
interface V1Beta1VerifyOrganizationDomainResponse {
|
|
1059
|
+
state?: string;
|
|
1060
|
+
}
|
|
861
1061
|
|
|
862
1062
|
declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
863
1063
|
/**
|
|
@@ -1041,15 +1241,17 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1041
1241
|
frontierServiceAuthenticate: (strategyName: string, query?: {
|
|
1042
1242
|
/**
|
|
1043
1243
|
* by default, location redirect header for starting authentication flow if applicable
|
|
1044
|
-
* will be skipped unless this is set to true, useful in browser
|
|
1244
|
+
* will be skipped unless this is set to true, useful in browser, same value will
|
|
1245
|
+
* also be returned as endpoint in response anyway
|
|
1045
1246
|
*
|
|
1046
|
-
* If set to true, location header will be set for redirect
|
|
1247
|
+
* If set to true, location header will be set for redirect to start auth flow
|
|
1047
1248
|
*/
|
|
1048
|
-
|
|
1249
|
+
redirectOnstart?: boolean;
|
|
1049
1250
|
/**
|
|
1050
|
-
* by default, after successful authentication no operation will be performed
|
|
1051
|
-
* to apply redirection in case of browsers, provide
|
|
1052
|
-
*
|
|
1251
|
+
* by default, after successful authentication(flow completes) no operation will be performed,
|
|
1252
|
+
* to apply redirection in case of browsers, provide an url that will be used
|
|
1253
|
+
* after authentication where users are sent from frontier.
|
|
1254
|
+
* return_to should be one of the allowed urls configured at instance level
|
|
1053
1255
|
*
|
|
1054
1256
|
* URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
|
|
1055
1257
|
*/
|
|
@@ -1060,6 +1262,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1060
1262
|
* Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
|
|
1061
1263
|
*/
|
|
1062
1264
|
email?: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* callback_url will be used by strategy as last step to finish authentication flow
|
|
1267
|
+
* in OIDC this host will receive "state" and "code" query params, in case of magic links
|
|
1268
|
+
* this will be the url where user is redirected after clicking on magic link.
|
|
1269
|
+
* For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
|
|
1270
|
+
* callback_url should be one of the allowed urls configured at instance level
|
|
1271
|
+
*
|
|
1272
|
+
* Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.<br/> *Example:*`https://frontier.example.com/v1beta1/auth/callback`
|
|
1273
|
+
*/
|
|
1274
|
+
callbackUrl?: string;
|
|
1063
1275
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
|
|
1064
1276
|
/**
|
|
1065
1277
|
* @description Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication.
|
|
@@ -1073,14 +1285,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1073
1285
|
frontierServiceAuthenticate2: (strategyName: string, body: {
|
|
1074
1286
|
/**
|
|
1075
1287
|
* by default, location redirect header for starting authentication flow if applicable
|
|
1076
|
-
* will be skipped unless this is set to true, useful in browser
|
|
1077
|
-
*
|
|
1288
|
+
* will be skipped unless this is set to true, useful in browser, same value will
|
|
1289
|
+
* also be returned as endpoint in response anyway
|
|
1290
|
+
* If set to true, location header will be set for redirect to start auth flow
|
|
1078
1291
|
*/
|
|
1079
|
-
|
|
1292
|
+
redirectOnstart?: boolean;
|
|
1080
1293
|
/**
|
|
1081
|
-
* by default, after successful authentication no operation will be performed
|
|
1082
|
-
* to apply redirection in case of browsers, provide
|
|
1083
|
-
*
|
|
1294
|
+
* by default, after successful authentication(flow completes) no operation will be performed,
|
|
1295
|
+
* to apply redirection in case of browsers, provide an url that will be used
|
|
1296
|
+
* after authentication where users are sent from frontier.
|
|
1297
|
+
* return_to should be one of the allowed urls configured at instance level
|
|
1084
1298
|
* URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
|
|
1085
1299
|
*/
|
|
1086
1300
|
returnTo?: string;
|
|
@@ -1089,6 +1303,15 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1089
1303
|
* Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
|
|
1090
1304
|
*/
|
|
1091
1305
|
email?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* callback_url will be used by strategy as last step to finish authentication flow
|
|
1308
|
+
* in OIDC this host will receive "state" and "code" query params, in case of magic links
|
|
1309
|
+
* this will be the url where user is redirected after clicking on magic link.
|
|
1310
|
+
* For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
|
|
1311
|
+
* callback_url should be one of the allowed urls configured at instance level
|
|
1312
|
+
* Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.<br/> *Example:*`https://frontier.example.com/v1beta1/auth/callback`
|
|
1313
|
+
*/
|
|
1314
|
+
callbackUrl?: string;
|
|
1092
1315
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
|
|
1093
1316
|
/**
|
|
1094
1317
|
* @description Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources.
|
|
@@ -1110,6 +1333,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1110
1333
|
* @secure
|
|
1111
1334
|
*/
|
|
1112
1335
|
frontierServiceCheckResourcePermission: (body: V1Beta1CheckResourcePermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckResourcePermissionResponse, RpcStatus>>;
|
|
1336
|
+
/**
|
|
1337
|
+
* @description List a group preferences by ID.
|
|
1338
|
+
*
|
|
1339
|
+
* @tags Preference
|
|
1340
|
+
* @name FrontierServiceListGroupPreferences
|
|
1341
|
+
* @summary List group preferences
|
|
1342
|
+
* @request GET:/v1beta1/groups/{id}/preferences
|
|
1343
|
+
* @secure
|
|
1344
|
+
*/
|
|
1345
|
+
frontierServiceListGroupPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupPreferencesResponse, RpcStatus>>;
|
|
1346
|
+
/**
|
|
1347
|
+
* @description Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores.
|
|
1348
|
+
*
|
|
1349
|
+
* @tags Preference
|
|
1350
|
+
* @name FrontierServiceCreateGroupPreferences
|
|
1351
|
+
* @summary Create group preferences
|
|
1352
|
+
* @request POST:/v1beta1/groups/{id}/preferences
|
|
1353
|
+
* @secure
|
|
1354
|
+
*/
|
|
1355
|
+
frontierServiceCreateGroupPreferences: (id: string, body: {
|
|
1356
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
1357
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateGroupPreferencesResponse, RpcStatus>>;
|
|
1113
1358
|
/**
|
|
1114
1359
|
* @description Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc
|
|
1115
1360
|
*
|
|
@@ -1307,6 +1552,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1307
1552
|
* @secure
|
|
1308
1553
|
*/
|
|
1309
1554
|
frontierServiceEnableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1555
|
+
/**
|
|
1556
|
+
* @description List an organization preferences by ID.
|
|
1557
|
+
*
|
|
1558
|
+
* @tags Preference
|
|
1559
|
+
* @name FrontierServiceListOrganizationPreferences
|
|
1560
|
+
* @summary List organization preferences
|
|
1561
|
+
* @request GET:/v1beta1/organizations/{id}/preferences
|
|
1562
|
+
* @secure
|
|
1563
|
+
*/
|
|
1564
|
+
frontierServiceListOrganizationPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationPreferencesResponse, RpcStatus>>;
|
|
1565
|
+
/**
|
|
1566
|
+
* @description Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores.
|
|
1567
|
+
*
|
|
1568
|
+
* @tags Preference
|
|
1569
|
+
* @name FrontierServiceCreateOrganizationPreferences
|
|
1570
|
+
* @summary Create organization preferences
|
|
1571
|
+
* @request POST:/v1beta1/organizations/{id}/preferences
|
|
1572
|
+
* @secure
|
|
1573
|
+
*/
|
|
1574
|
+
frontierServiceCreateOrganizationPreferences: (id: string, body: {
|
|
1575
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
1576
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationPreferencesResponse, RpcStatus>>;
|
|
1310
1577
|
/**
|
|
1311
1578
|
* @description Get all projects that belong to an organization
|
|
1312
1579
|
*
|
|
@@ -1365,6 +1632,62 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1365
1632
|
* @secure
|
|
1366
1633
|
*/
|
|
1367
1634
|
frontierServiceRemoveOrganizationUser: (id: string, userId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1635
|
+
/**
|
|
1636
|
+
* @description Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation.
|
|
1637
|
+
*
|
|
1638
|
+
* @tags Organization
|
|
1639
|
+
* @name FrontierServiceListOrganizationDomains
|
|
1640
|
+
* @summary List org domains
|
|
1641
|
+
* @request GET:/v1beta1/organizations/{orgId}/domains
|
|
1642
|
+
* @secure
|
|
1643
|
+
*/
|
|
1644
|
+
frontierServiceListOrganizationDomains: (orgId: string, query?: {
|
|
1645
|
+
/** filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed */
|
|
1646
|
+
state?: string;
|
|
1647
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationDomainsResponse, RpcStatus>>;
|
|
1648
|
+
/**
|
|
1649
|
+
* @description Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users.
|
|
1650
|
+
*
|
|
1651
|
+
* @tags Organization
|
|
1652
|
+
* @name FrontierServiceCreateOrganizationDomain
|
|
1653
|
+
* @summary Create org domain
|
|
1654
|
+
* @request POST:/v1beta1/organizations/{orgId}/domains
|
|
1655
|
+
* @secure
|
|
1656
|
+
*/
|
|
1657
|
+
frontierServiceCreateOrganizationDomain: (orgId: string, body: {
|
|
1658
|
+
/** domain name to be added to the trusted domain list */
|
|
1659
|
+
domain: string;
|
|
1660
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationDomainResponse, RpcStatus>>;
|
|
1661
|
+
/**
|
|
1662
|
+
* @description Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID
|
|
1663
|
+
*
|
|
1664
|
+
* @tags Organization
|
|
1665
|
+
* @name FrontierServiceGetOrganizationDomain
|
|
1666
|
+
* @summary Get org domain
|
|
1667
|
+
* @request GET:/v1beta1/organizations/{orgId}/domains/{id}
|
|
1668
|
+
* @secure
|
|
1669
|
+
*/
|
|
1670
|
+
frontierServiceGetOrganizationDomain: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationDomainResponse, RpcStatus>>;
|
|
1671
|
+
/**
|
|
1672
|
+
* @description Remove a domain from the list of an organization's trusted domains list
|
|
1673
|
+
*
|
|
1674
|
+
* @tags Organization
|
|
1675
|
+
* @name FrontierServiceDeleteOrganizationDomain
|
|
1676
|
+
* @summary Delete org domain
|
|
1677
|
+
* @request DELETE:/v1beta1/organizations/{orgId}/domains/{id}
|
|
1678
|
+
* @secure
|
|
1679
|
+
*/
|
|
1680
|
+
frontierServiceDeleteOrganizationDomain: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1681
|
+
/**
|
|
1682
|
+
* @description Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification.
|
|
1683
|
+
*
|
|
1684
|
+
* @tags Organization
|
|
1685
|
+
* @name FrontierServiceVerifyOrganizationDomain
|
|
1686
|
+
* @summary Verify org domain
|
|
1687
|
+
* @request POST:/v1beta1/organizations/{orgId}/domains/{id}/verify
|
|
1688
|
+
* @secure
|
|
1689
|
+
*/
|
|
1690
|
+
frontierServiceVerifyOrganizationDomain: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<V1Beta1VerifyOrganizationDomainResponse, RpcStatus>>;
|
|
1368
1691
|
/**
|
|
1369
1692
|
* @description Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled.
|
|
1370
1693
|
*
|
|
@@ -1484,7 +1807,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1484
1807
|
userId?: string;
|
|
1485
1808
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationInvitationsResponse, RpcStatus>>;
|
|
1486
1809
|
/**
|
|
1487
|
-
* @description Invite users to an organization, if
|
|
1810
|
+
* @description Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days
|
|
1488
1811
|
*
|
|
1489
1812
|
* @tags Organization
|
|
1490
1813
|
* @name FrontierServiceCreateOrganizationInvitation
|
|
@@ -1494,9 +1817,11 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1494
1817
|
*/
|
|
1495
1818
|
frontierServiceCreateOrganizationInvitation: (orgId: string, body: {
|
|
1496
1819
|
/** user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified */
|
|
1497
|
-
|
|
1820
|
+
userIds: string[];
|
|
1498
1821
|
/** list of group ids to which user needs to be added as a member. */
|
|
1499
1822
|
groupIds?: string[];
|
|
1823
|
+
/** list of role ids to which user needs to be added as a member. Roles are binded at organization level by default. */
|
|
1824
|
+
roleIds?: string[];
|
|
1500
1825
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationInvitationResponse, RpcStatus>>;
|
|
1501
1826
|
/**
|
|
1502
1827
|
* @description Returns a pending invitation queued for an organization
|
|
@@ -1528,6 +1853,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1528
1853
|
* @secure
|
|
1529
1854
|
*/
|
|
1530
1855
|
frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1856
|
+
/**
|
|
1857
|
+
* @description Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains.
|
|
1858
|
+
*
|
|
1859
|
+
* @tags Organization
|
|
1860
|
+
* @name FrontierServiceJoinOrganization
|
|
1861
|
+
* @summary Join organization
|
|
1862
|
+
* @request POST:/v1beta1/organizations/{orgId}/join
|
|
1863
|
+
* @secure
|
|
1864
|
+
*/
|
|
1865
|
+
frontierServiceJoinOrganization: (orgId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1531
1866
|
/**
|
|
1532
1867
|
* @description Returns a list of custom roles created under an organization with their associated permissions
|
|
1533
1868
|
*
|
|
@@ -1691,6 +2026,36 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1691
2026
|
* @secure
|
|
1692
2027
|
*/
|
|
1693
2028
|
frontierServiceUpdatePolicy: (id: string, body: V1Beta1PolicyRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePolicyResponse, RpcStatus>>;
|
|
2029
|
+
/**
|
|
2030
|
+
* @description Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc
|
|
2031
|
+
*
|
|
2032
|
+
* @tags Preference
|
|
2033
|
+
* @name AdminServiceListPreferences
|
|
2034
|
+
* @summary List platform preferences
|
|
2035
|
+
* @request GET:/v1beta1/preferences
|
|
2036
|
+
* @secure
|
|
2037
|
+
*/
|
|
2038
|
+
adminServiceListPreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPreferencesResponse, RpcStatus>>;
|
|
2039
|
+
/**
|
|
2040
|
+
* @description Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores.
|
|
2041
|
+
*
|
|
2042
|
+
* @tags Preference
|
|
2043
|
+
* @name AdminServiceCreatePreferences
|
|
2044
|
+
* @summary Create platform preferences
|
|
2045
|
+
* @request POST:/v1beta1/preferences
|
|
2046
|
+
* @secure
|
|
2047
|
+
*/
|
|
2048
|
+
adminServiceCreatePreferences: (body: V1Beta1CreatePreferencesRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePreferencesResponse, RpcStatus>>;
|
|
2049
|
+
/**
|
|
2050
|
+
* @description Returns a list of all preferences supported by Frontier.
|
|
2051
|
+
*
|
|
2052
|
+
* @tags Preference
|
|
2053
|
+
* @name FrontierServiceDescribePreferences
|
|
2054
|
+
* @summary Describe preferences
|
|
2055
|
+
* @request GET:/v1beta1/preferences/_describe
|
|
2056
|
+
* @secure
|
|
2057
|
+
*/
|
|
2058
|
+
frontierServiceDescribePreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1DescribePreferencesResponse, RpcStatus>>;
|
|
1694
2059
|
/**
|
|
1695
2060
|
* No description
|
|
1696
2061
|
*
|
|
@@ -1761,6 +2126,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1761
2126
|
* @secure
|
|
1762
2127
|
*/
|
|
1763
2128
|
frontierServiceEnableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2129
|
+
/**
|
|
2130
|
+
* @description List a project preferences by ID.
|
|
2131
|
+
*
|
|
2132
|
+
* @tags Preference
|
|
2133
|
+
* @name FrontierServiceListProjectPreferences
|
|
2134
|
+
* @summary List project preferences
|
|
2135
|
+
* @request GET:/v1beta1/projects/{id}/preferences
|
|
2136
|
+
* @secure
|
|
2137
|
+
*/
|
|
2138
|
+
frontierServiceListProjectPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectPreferencesResponse, RpcStatus>>;
|
|
2139
|
+
/**
|
|
2140
|
+
* @description Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores.
|
|
2141
|
+
*
|
|
2142
|
+
* @tags Preference
|
|
2143
|
+
* @name FrontierServiceCreateProjectPreferences
|
|
2144
|
+
* @summary Create project preferences
|
|
2145
|
+
* @request POST:/v1beta1/projects/{id}/preferences
|
|
2146
|
+
* @secure
|
|
2147
|
+
*/
|
|
2148
|
+
frontierServiceCreateProjectPreferences: (id: string, body: {
|
|
2149
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
2150
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectPreferencesResponse, RpcStatus>>;
|
|
1764
2151
|
/**
|
|
1765
2152
|
* @description Returns a collection of users of a project. Filter by user permissions is supported.
|
|
1766
2153
|
*
|
|
@@ -1890,6 +2277,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1890
2277
|
* @secure
|
|
1891
2278
|
*/
|
|
1892
2279
|
adminServiceDeleteRole: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2280
|
+
/**
|
|
2281
|
+
* @description Update a role title, description and permissions.
|
|
2282
|
+
*
|
|
2283
|
+
* @tags Role
|
|
2284
|
+
* @name AdminServiceUpdateRole
|
|
2285
|
+
* @summary Update role
|
|
2286
|
+
* @request PUT:/v1beta1/roles/{id}
|
|
2287
|
+
* @secure
|
|
2288
|
+
*/
|
|
2289
|
+
adminServiceUpdateRole: (id: string, body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateRoleResponse, RpcStatus>>;
|
|
1893
2290
|
/**
|
|
1894
2291
|
* @description Returns the service user of an organization in a Frontier instance. It can be filter by it's state
|
|
1895
2292
|
*
|
|
@@ -2123,7 +2520,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2123
2520
|
*/
|
|
2124
2521
|
frontierServiceListUserInvitations: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserInvitationsResponse, RpcStatus>>;
|
|
2125
2522
|
/**
|
|
2126
|
-
* @description
|
|
2523
|
+
* @description This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
|
|
2127
2524
|
*
|
|
2128
2525
|
* @tags User
|
|
2129
2526
|
* @name FrontierServiceGetOrganizationsByUser
|
|
@@ -2132,6 +2529,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2132
2529
|
* @secure
|
|
2133
2530
|
*/
|
|
2134
2531
|
frontierServiceGetOrganizationsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByUserResponse, RpcStatus>>;
|
|
2532
|
+
/**
|
|
2533
|
+
* @description List a user preferences by ID.
|
|
2534
|
+
*
|
|
2535
|
+
* @tags Preference
|
|
2536
|
+
* @name FrontierServiceListUserPreferences
|
|
2537
|
+
* @summary List user preferences
|
|
2538
|
+
* @request GET:/v1beta1/users/{id}/preferences
|
|
2539
|
+
* @secure
|
|
2540
|
+
*/
|
|
2541
|
+
frontierServiceListUserPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserPreferencesResponse, RpcStatus>>;
|
|
2542
|
+
/**
|
|
2543
|
+
* @description Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores.
|
|
2544
|
+
*
|
|
2545
|
+
* @tags Preference
|
|
2546
|
+
* @name FrontierServiceCreateUserPreferences
|
|
2547
|
+
* @summary Create user preferences
|
|
2548
|
+
* @request POST:/v1beta1/users/{id}/preferences
|
|
2549
|
+
* @secure
|
|
2550
|
+
*/
|
|
2551
|
+
frontierServiceCreateUserPreferences: (id: string, body: {
|
|
2552
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
2553
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateUserPreferencesResponse, RpcStatus>>;
|
|
2135
2554
|
/**
|
|
2136
2555
|
* @description Get all the projects a user belongs to.
|
|
2137
2556
|
*
|
|
@@ -2173,7 +2592,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2173
2592
|
*/
|
|
2174
2593
|
frontierServiceListCurrentUserGroups: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserGroupsResponse, RpcStatus>>;
|
|
2175
2594
|
/**
|
|
2176
|
-
* @description
|
|
2595
|
+
* @description This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
|
|
2177
2596
|
*
|
|
2178
2597
|
* @tags User
|
|
2179
2598
|
* @name FrontierServiceGetOrganizationsByCurrentUser
|
|
@@ -2182,6 +2601,26 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2182
2601
|
* @secure
|
|
2183
2602
|
*/
|
|
2184
2603
|
frontierServiceGetOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByCurrentUserResponse, RpcStatus>>;
|
|
2604
|
+
/**
|
|
2605
|
+
* @description List a user preferences by ID.
|
|
2606
|
+
*
|
|
2607
|
+
* @tags Preference
|
|
2608
|
+
* @name FrontierServiceListCurrentUserPreferences
|
|
2609
|
+
* @summary List current user preferences
|
|
2610
|
+
* @request GET:/v1beta1/users/self/preferences
|
|
2611
|
+
* @secure
|
|
2612
|
+
*/
|
|
2613
|
+
frontierServiceListCurrentUserPreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserPreferencesResponse, RpcStatus>>;
|
|
2614
|
+
/**
|
|
2615
|
+
* @description Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores.
|
|
2616
|
+
*
|
|
2617
|
+
* @tags Preference
|
|
2618
|
+
* @name FrontierServiceCreateCurrentUserPreferences
|
|
2619
|
+
* @summary Create current user preferences
|
|
2620
|
+
* @request POST:/v1beta1/users/self/preferences
|
|
2621
|
+
* @secure
|
|
2622
|
+
*/
|
|
2623
|
+
frontierServiceCreateCurrentUserPreferences: (body: V1Beta1CreateCurrentUserPreferencesRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateCurrentUserPreferencesResponse, RpcStatus>>;
|
|
2185
2624
|
/**
|
|
2186
2625
|
* @description Get all projects the current user belongs to
|
|
2187
2626
|
*
|
|
@@ -2196,4 +2635,4 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2196
2635
|
|
|
2197
2636
|
declare const FrontierClient: typeof V1Beta1;
|
|
2198
2637
|
|
|
2199
|
-
export { FrontierClient };
|
|
2638
|
+
export { FrontierClient, ProtobufAny, ProtobufNullValue, RpcStatus, V1Beta1, V1Beta1AcceptOrganizationInvitationResponse, V1Beta1AddGroupUsersResponse, V1Beta1AddOrganizationUsersResponse, V1Beta1AuditLog, V1Beta1AuditLogActor, V1Beta1AuditLogTarget, V1Beta1AuthCallbackRequest, V1Beta1AuthCallbackResponse, V1Beta1AuthLogoutResponse, V1Beta1AuthStrategy, V1Beta1AuthTokenRequest, V1Beta1AuthTokenResponse, V1Beta1AuthenticateResponse, V1Beta1CheckResourcePermissionRequest, V1Beta1CheckResourcePermissionResponse, V1Beta1CreateCurrentUserPreferencesRequest, V1Beta1CreateCurrentUserPreferencesResponse, V1Beta1CreateGroupPreferencesResponse, V1Beta1CreateGroupResponse, V1Beta1CreateMetaSchemaResponse, V1Beta1CreateOrganizationAuditLogsResponse, V1Beta1CreateOrganizationDomainResponse, V1Beta1CreateOrganizationInvitationResponse, V1Beta1CreateOrganizationPreferencesResponse, V1Beta1CreateOrganizationResponse, V1Beta1CreateOrganizationRoleResponse, V1Beta1CreatePermissionRequest, V1Beta1CreatePermissionResponse, V1Beta1CreatePolicyResponse, V1Beta1CreatePreferencesRequest, V1Beta1CreatePreferencesResponse, V1Beta1CreateProjectPreferencesResponse, V1Beta1CreateProjectResourceResponse, V1Beta1CreateProjectResponse, V1Beta1CreateRelationResponse, V1Beta1CreateRoleResponse, V1Beta1CreateServiceUserKeyResponse, V1Beta1CreateServiceUserRequest, V1Beta1CreateServiceUserResponse, V1Beta1CreateServiceUserSecretResponse, V1Beta1CreateUserPreferencesResponse, V1Beta1CreateUserResponse, V1Beta1DeleteGroupResponse, V1Beta1DeleteMetaSchemaResponse, V1Beta1DeleteOrganizationDomainResponse, V1Beta1DeleteOrganizationInvitationResponse, V1Beta1DeleteOrganizationResponse, V1Beta1DeleteOrganizationRoleResponse, V1Beta1DeletePermissionResponse, V1Beta1DeletePolicyResponse, V1Beta1DeleteProjectResourceResponse, V1Beta1DeleteProjectResponse, V1Beta1DeleteRelationResponse, V1Beta1DeleteRoleResponse, V1Beta1DeleteServiceUserKeyResponse, V1Beta1DeleteServiceUserResponse, V1Beta1DeleteServiceUserSecretResponse, V1Beta1DeleteUserResponse, V1Beta1DescribePreferencesResponse, V1Beta1DisableGroupResponse, V1Beta1DisableOrganizationResponse, V1Beta1DisableProjectResponse, V1Beta1DisableUserResponse, V1Beta1Domain, V1Beta1EnableGroupResponse, V1Beta1EnableOrganizationResponse, V1Beta1EnableProjectResponse, V1Beta1EnableUserResponse, V1Beta1GetCurrentUserResponse, V1Beta1GetGroupResponse, V1Beta1GetJWKsResponse, V1Beta1GetMetaSchemaResponse, V1Beta1GetNamespaceResponse, V1Beta1GetOrganizationAuditLogResponse, V1Beta1GetOrganizationDomainResponse, V1Beta1GetOrganizationInvitationResponse, V1Beta1GetOrganizationResponse, V1Beta1GetOrganizationRoleResponse, V1Beta1GetOrganizationsByCurrentUserResponse, V1Beta1GetOrganizationsByUserResponse, V1Beta1GetPermissionResponse, V1Beta1GetPolicyResponse, V1Beta1GetProjectResourceResponse, V1Beta1GetProjectResponse, V1Beta1GetProjectsByCurrentUserResponse, V1Beta1GetProjectsByUserResponse, V1Beta1GetRelationResponse, V1Beta1GetServiceUserKeyResponse, V1Beta1GetServiceUserResponse, V1Beta1GetUserResponse, V1Beta1Group, V1Beta1GroupRequestBody, V1Beta1Invitation, V1Beta1JSONWebKey, V1Beta1JoinOrganizationResponse, V1Beta1KeyCredential, V1Beta1ListAllOrganizationsResponse, V1Beta1ListAllUsersResponse, V1Beta1ListAuthStrategiesResponse, V1Beta1ListCurrentUserGroupsResponse, V1Beta1ListCurrentUserPreferencesResponse, V1Beta1ListGroupPreferencesResponse, V1Beta1ListGroupUsersResponse, V1Beta1ListGroupsResponse, V1Beta1ListMetaSchemasResponse, V1Beta1ListNamespacesResponse, V1Beta1ListOrganizationAdminsResponse, V1Beta1ListOrganizationAuditLogsResponse, V1Beta1ListOrganizationDomainsResponse, V1Beta1ListOrganizationGroupsResponse, V1Beta1ListOrganizationInvitationsResponse, V1Beta1ListOrganizationPreferencesResponse, V1Beta1ListOrganizationProjectsResponse, V1Beta1ListOrganizationRolesResponse, V1Beta1ListOrganizationServiceUsersResponse, V1Beta1ListOrganizationUsersResponse, V1Beta1ListOrganizationsResponse, V1Beta1ListPermissionsResponse, V1Beta1ListPoliciesResponse, V1Beta1ListPreferencesResponse, V1Beta1ListProjectAdminsResponse, V1Beta1ListProjectPreferencesResponse, V1Beta1ListProjectResourcesResponse, V1Beta1ListProjectUsersResponse, V1Beta1ListProjectsResponse, V1Beta1ListRelationsResponse, V1Beta1ListResourcesResponse, V1Beta1ListRolesResponse, V1Beta1ListServiceUserKeysResponse, V1Beta1ListServiceUserSecretsResponse, V1Beta1ListServiceUsersResponse, V1Beta1ListUserGroupsResponse, V1Beta1ListUserInvitationsResponse, V1Beta1ListUserPreferencesResponse, V1Beta1ListUsersResponse, V1Beta1MetaSchema, V1Beta1MetaSchemaRequestBody, V1Beta1Namespace, V1Beta1Organization, V1Beta1OrganizationRequestBody, V1Beta1Permission, V1Beta1PermissionRequestBody, V1Beta1Policy, V1Beta1PolicyRequestBody, V1Beta1Preference, V1Beta1PreferenceRequestBody, V1Beta1PreferenceTrait, V1Beta1Project, V1Beta1ProjectRequestBody, V1Beta1Relation, V1Beta1RelationRequestBody, V1Beta1RemoveGroupUserResponse, V1Beta1RemoveOrganizationUserResponse, V1Beta1Resource, V1Beta1ResourceRequestBody, V1Beta1Role, V1Beta1RoleRequestBody, V1Beta1SecretCredential, V1Beta1ServiceUser, V1Beta1ServiceUserKey, V1Beta1ServiceUserRequestBody, V1Beta1UpdateCurrentUserResponse, V1Beta1UpdateGroupResponse, V1Beta1UpdateMetaSchemaResponse, V1Beta1UpdateOrganizationResponse, V1Beta1UpdateOrganizationRoleResponse, V1Beta1UpdatePermissionResponse, V1Beta1UpdatePolicyResponse, V1Beta1UpdateProjectResourceResponse, V1Beta1UpdateProjectResponse, V1Beta1UpdateRoleResponse, V1Beta1UpdateUserResponse, V1Beta1User, V1Beta1UserRequestBody, V1Beta1VerifyOrganizationDomainResponse };
|