@raystack/frontier 0.0.2 → 0.0.4
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 +416 -20
- package/dist/index.js +316 -3
- package/dist/index.mjs +316 -3
- package/package.json +7 -2
- package/react/dist/index.d.ts +448 -37
- package/react/dist/index.js +3835 -359
- package/react/dist/index.mjs +3940 -361
package/react/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React__default, { ComponentPropsWithRef, Dispatch, SetStateAction } from 'react';
|
|
1
|
+
import React$1, { ComponentPropsWithRef, Dispatch, SetStateAction } from 'react';
|
|
3
2
|
|
|
4
3
|
type ContainerProps = ComponentPropsWithRef<'div'> & {
|
|
5
|
-
children?:
|
|
4
|
+
children?: React$1.ReactNode;
|
|
6
5
|
shadow?: 'none' | 'xs' | 'sm' | 'md' | 'lg';
|
|
7
6
|
radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg';
|
|
7
|
+
className?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const Container: ({ children, shadow, radius, style }: ContainerProps) => JSX.Element;
|
|
9
|
+
declare const Container: ({ children, shadow, radius, style, className }: ContainerProps) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
type MagicLinkVerifyProps = ComponentPropsWithRef<typeof Container> & {
|
|
12
|
+
logo?: React$1.ReactNode;
|
|
13
|
+
title?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const MagicLinkVerify: ({ logo, title, ...props }: MagicLinkVerifyProps) => JSX.Element;
|
|
10
16
|
|
|
11
17
|
type SignedInProps = ComponentPropsWithRef<typeof Container> & {
|
|
12
|
-
logo?:
|
|
18
|
+
logo?: React$1.ReactNode;
|
|
13
19
|
title?: string;
|
|
14
20
|
excludes?: string[];
|
|
15
21
|
};
|
|
16
|
-
declare const
|
|
22
|
+
declare const SignIn: ({ logo, title, excludes, ...props }: SignedInProps) => JSX.Element;
|
|
17
23
|
|
|
18
|
-
type
|
|
19
|
-
logo?:
|
|
24
|
+
type SignUpProps = ComponentPropsWithRef<typeof Container> & {
|
|
25
|
+
logo?: React$1.ReactNode;
|
|
20
26
|
title?: string;
|
|
27
|
+
excludes?: string[];
|
|
21
28
|
};
|
|
22
|
-
declare const
|
|
29
|
+
declare const SignUp: ({ logo, title, excludes, ...props }: SignUpProps) => JSX.Element;
|
|
23
30
|
|
|
24
31
|
type CreateOrganizationProps = ComponentPropsWithRef<typeof Container> & {
|
|
25
32
|
title?: string;
|
|
@@ -27,25 +34,32 @@ type CreateOrganizationProps = ComponentPropsWithRef<typeof Container> & {
|
|
|
27
34
|
};
|
|
28
35
|
declare const CreateOrganization: ({ title, description, ...props }: CreateOrganizationProps) => JSX.Element;
|
|
29
36
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
|
|
37
|
+
interface OrganizationProfileProps {
|
|
38
|
+
organizationId: string;
|
|
39
|
+
defaultRoute?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const OrganizationProfile: ({ organizationId, defaultRoute }: OrganizationProfileProps) => JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface WindowProps extends React.HTMLAttributes<HTMLDialogElement> {
|
|
44
|
+
open?: boolean;
|
|
45
|
+
onOpenChange?: (open: boolean) => void;
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
declare const Window: ({ open, onOpenChange, children, ...props }: WindowProps) => JSX.Element;
|
|
36
49
|
|
|
37
50
|
interface FrontierClientOptions {
|
|
38
51
|
endpoint?: string;
|
|
39
52
|
redirectSignup?: string;
|
|
40
53
|
redirectLogin?: string;
|
|
41
54
|
redirectMagicLinkVerify?: string;
|
|
55
|
+
callbackUrl?: string;
|
|
42
56
|
}
|
|
43
57
|
interface InitialState {
|
|
44
58
|
sessionId?: string | null;
|
|
45
59
|
}
|
|
46
60
|
interface FrontierProviderProps {
|
|
47
61
|
config: FrontierClientOptions;
|
|
48
|
-
children:
|
|
62
|
+
children: React$1.ReactNode;
|
|
49
63
|
initialState?: InitialState;
|
|
50
64
|
}
|
|
51
65
|
|
|
@@ -181,7 +195,9 @@ interface V1Beta1AuthTokenResponse {
|
|
|
181
195
|
tokenType?: string;
|
|
182
196
|
}
|
|
183
197
|
interface V1Beta1AuthenticateResponse {
|
|
198
|
+
/** endpoint specifies the url to redirect user for starting authentication flow */
|
|
184
199
|
endpoint?: string;
|
|
200
|
+
/** state is used for resuming authentication flow in applicable strategies */
|
|
185
201
|
state?: string;
|
|
186
202
|
}
|
|
187
203
|
interface V1Beta1CheckResourcePermissionRequest {
|
|
@@ -197,14 +213,29 @@ interface V1Beta1CheckResourcePermissionRequest {
|
|
|
197
213
|
interface V1Beta1CheckResourcePermissionResponse {
|
|
198
214
|
status?: boolean;
|
|
199
215
|
}
|
|
216
|
+
interface V1Beta1CreateCurrentUserPreferencesRequest {
|
|
217
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
218
|
+
}
|
|
219
|
+
interface V1Beta1CreateCurrentUserPreferencesResponse {
|
|
220
|
+
preferences?: V1Beta1Preference[];
|
|
221
|
+
}
|
|
222
|
+
interface V1Beta1CreateGroupPreferencesResponse {
|
|
223
|
+
preferences?: V1Beta1Preference[];
|
|
224
|
+
}
|
|
200
225
|
interface V1Beta1CreateGroupResponse {
|
|
201
226
|
group?: V1Beta1Group;
|
|
202
227
|
}
|
|
203
228
|
interface V1Beta1CreateMetaSchemaResponse {
|
|
204
229
|
metaschema?: V1Beta1MetaSchema;
|
|
205
230
|
}
|
|
231
|
+
interface V1Beta1CreateOrganizationDomainResponse {
|
|
232
|
+
domain?: V1Beta1Domain;
|
|
233
|
+
}
|
|
206
234
|
interface V1Beta1CreateOrganizationInvitationResponse {
|
|
207
|
-
|
|
235
|
+
invitations?: V1Beta1Invitation[];
|
|
236
|
+
}
|
|
237
|
+
interface V1Beta1CreateOrganizationPreferencesResponse {
|
|
238
|
+
preferences?: V1Beta1Preference[];
|
|
208
239
|
}
|
|
209
240
|
interface V1Beta1CreateOrganizationResponse {
|
|
210
241
|
organization?: V1Beta1Organization;
|
|
@@ -221,6 +252,15 @@ interface V1Beta1CreatePermissionResponse {
|
|
|
221
252
|
interface V1Beta1CreatePolicyResponse {
|
|
222
253
|
policy?: V1Beta1Policy;
|
|
223
254
|
}
|
|
255
|
+
interface V1Beta1CreatePreferencesRequest {
|
|
256
|
+
preferences?: V1Beta1PreferenceRequestBody[];
|
|
257
|
+
}
|
|
258
|
+
interface V1Beta1CreatePreferencesResponse {
|
|
259
|
+
preference?: V1Beta1Preference[];
|
|
260
|
+
}
|
|
261
|
+
interface V1Beta1CreateProjectPreferencesResponse {
|
|
262
|
+
preferences?: V1Beta1Preference[];
|
|
263
|
+
}
|
|
224
264
|
interface V1Beta1CreateProjectResourceResponse {
|
|
225
265
|
resource?: V1Beta1Resource;
|
|
226
266
|
}
|
|
@@ -247,9 +287,54 @@ interface V1Beta1CreateServiceUserResponse {
|
|
|
247
287
|
interface V1Beta1CreateServiceUserSecretResponse {
|
|
248
288
|
secret?: V1Beta1SecretCredential;
|
|
249
289
|
}
|
|
290
|
+
interface V1Beta1CreateUserPreferencesResponse {
|
|
291
|
+
preferences?: V1Beta1Preference[];
|
|
292
|
+
}
|
|
250
293
|
interface V1Beta1CreateUserResponse {
|
|
251
294
|
user?: V1Beta1User;
|
|
252
295
|
}
|
|
296
|
+
interface V1Beta1DescribePreferencesResponse {
|
|
297
|
+
traits?: V1Beta1PreferenceTrait[];
|
|
298
|
+
}
|
|
299
|
+
interface V1Beta1Domain {
|
|
300
|
+
/**
|
|
301
|
+
* The domain id
|
|
302
|
+
* @example "943e4567-e89b-12d3-a456-426655440000"
|
|
303
|
+
*/
|
|
304
|
+
id?: string;
|
|
305
|
+
/**
|
|
306
|
+
* The domain name
|
|
307
|
+
* @example "raystack.org"
|
|
308
|
+
*/
|
|
309
|
+
name?: string;
|
|
310
|
+
/**
|
|
311
|
+
* The organization id
|
|
312
|
+
* @example "123e4567-e89b-12d3-a456-426655440000"
|
|
313
|
+
*/
|
|
314
|
+
orgId?: string;
|
|
315
|
+
/**
|
|
316
|
+
* The dns TXT record token to verify the domain
|
|
317
|
+
* @example "_frontier-domain-verification=LB6U2lSQgGS55HOy6kpWFqkngRC8TMEjyrakfmYC2D0s+nfy/WkFSg=="
|
|
318
|
+
*/
|
|
319
|
+
token?: string;
|
|
320
|
+
/**
|
|
321
|
+
* The domain state either pending or verified
|
|
322
|
+
* @example "pending"
|
|
323
|
+
*/
|
|
324
|
+
state?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The time the domain whitelist request was created
|
|
327
|
+
* @format date-time
|
|
328
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
329
|
+
*/
|
|
330
|
+
createdAt?: string;
|
|
331
|
+
/**
|
|
332
|
+
* The time the org domain was updated
|
|
333
|
+
* @format date-time
|
|
334
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
335
|
+
*/
|
|
336
|
+
updatedAt?: string;
|
|
337
|
+
}
|
|
253
338
|
interface V1Beta1GetCurrentUserResponse {
|
|
254
339
|
user?: V1Beta1User;
|
|
255
340
|
serviceuser?: V1Beta1ServiceUser;
|
|
@@ -270,6 +355,9 @@ interface V1Beta1GetNamespaceResponse {
|
|
|
270
355
|
interface V1Beta1GetOrganizationAuditLogResponse {
|
|
271
356
|
log?: V1Beta1AuditLog;
|
|
272
357
|
}
|
|
358
|
+
interface V1Beta1GetOrganizationDomainResponse {
|
|
359
|
+
domain?: V1Beta1Domain;
|
|
360
|
+
}
|
|
273
361
|
interface V1Beta1GetOrganizationInvitationResponse {
|
|
274
362
|
invitation?: V1Beta1Invitation;
|
|
275
363
|
}
|
|
@@ -281,9 +369,11 @@ interface V1Beta1GetOrganizationRoleResponse {
|
|
|
281
369
|
}
|
|
282
370
|
interface V1Beta1GetOrganizationsByCurrentUserResponse {
|
|
283
371
|
organizations?: V1Beta1Organization[];
|
|
372
|
+
joinableViaDomain?: V1Beta1Organization[];
|
|
284
373
|
}
|
|
285
374
|
interface V1Beta1GetOrganizationsByUserResponse {
|
|
286
375
|
organizations?: V1Beta1Organization[];
|
|
376
|
+
joinableViaDomain?: V1Beta1Organization[];
|
|
287
377
|
}
|
|
288
378
|
interface V1Beta1GetPermissionResponse {
|
|
289
379
|
permission?: V1Beta1Permission;
|
|
@@ -380,6 +470,11 @@ interface V1Beta1Invitation {
|
|
|
380
470
|
* @example "2023-06-07T05:39:56.961Z"
|
|
381
471
|
*/
|
|
382
472
|
expiresAt?: string;
|
|
473
|
+
/**
|
|
474
|
+
* The list of role ids to which the user is invited in an organization.
|
|
475
|
+
* @example "d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
|
|
476
|
+
*/
|
|
477
|
+
roleIds?: string[];
|
|
383
478
|
}
|
|
384
479
|
/** JSON Web Key as specified in RFC 7517 */
|
|
385
480
|
interface V1Beta1JSONWebKey {
|
|
@@ -423,6 +518,12 @@ interface V1Beta1ListAuthStrategiesResponse {
|
|
|
423
518
|
interface V1Beta1ListCurrentUserGroupsResponse {
|
|
424
519
|
groups?: V1Beta1Group[];
|
|
425
520
|
}
|
|
521
|
+
interface V1Beta1ListCurrentUserPreferencesResponse {
|
|
522
|
+
preferences?: V1Beta1Preference[];
|
|
523
|
+
}
|
|
524
|
+
interface V1Beta1ListGroupPreferencesResponse {
|
|
525
|
+
preferences?: V1Beta1Preference[];
|
|
526
|
+
}
|
|
426
527
|
interface V1Beta1ListGroupUsersResponse {
|
|
427
528
|
users?: V1Beta1User[];
|
|
428
529
|
}
|
|
@@ -441,12 +542,18 @@ interface V1Beta1ListOrganizationAdminsResponse {
|
|
|
441
542
|
interface V1Beta1ListOrganizationAuditLogsResponse {
|
|
442
543
|
logs?: V1Beta1AuditLog[];
|
|
443
544
|
}
|
|
545
|
+
interface V1Beta1ListOrganizationDomainsResponse {
|
|
546
|
+
domains?: V1Beta1Domain[];
|
|
547
|
+
}
|
|
444
548
|
interface V1Beta1ListOrganizationGroupsResponse {
|
|
445
549
|
groups?: V1Beta1Group[];
|
|
446
550
|
}
|
|
447
551
|
interface V1Beta1ListOrganizationInvitationsResponse {
|
|
448
552
|
invitations?: V1Beta1Invitation[];
|
|
449
553
|
}
|
|
554
|
+
interface V1Beta1ListOrganizationPreferencesResponse {
|
|
555
|
+
preferences?: V1Beta1Preference[];
|
|
556
|
+
}
|
|
450
557
|
interface V1Beta1ListOrganizationProjectsResponse {
|
|
451
558
|
projects?: V1Beta1Project[];
|
|
452
559
|
}
|
|
@@ -468,9 +575,15 @@ interface V1Beta1ListPermissionsResponse {
|
|
|
468
575
|
interface V1Beta1ListPoliciesResponse {
|
|
469
576
|
policies?: V1Beta1Policy[];
|
|
470
577
|
}
|
|
578
|
+
interface V1Beta1ListPreferencesResponse {
|
|
579
|
+
preferences?: V1Beta1Preference[];
|
|
580
|
+
}
|
|
471
581
|
interface V1Beta1ListProjectAdminsResponse {
|
|
472
582
|
users?: V1Beta1User[];
|
|
473
583
|
}
|
|
584
|
+
interface V1Beta1ListProjectPreferencesResponse {
|
|
585
|
+
preferences?: V1Beta1Preference[];
|
|
586
|
+
}
|
|
474
587
|
interface V1Beta1ListProjectResourcesResponse {
|
|
475
588
|
resources?: V1Beta1Resource[];
|
|
476
589
|
}
|
|
@@ -505,6 +618,9 @@ interface V1Beta1ListUserGroupsResponse {
|
|
|
505
618
|
interface V1Beta1ListUserInvitationsResponse {
|
|
506
619
|
invitations?: V1Beta1Invitation[];
|
|
507
620
|
}
|
|
621
|
+
interface V1Beta1ListUserPreferencesResponse {
|
|
622
|
+
preferences?: V1Beta1Preference[];
|
|
623
|
+
}
|
|
508
624
|
interface V1Beta1ListUsersResponse {
|
|
509
625
|
/** @format int32 */
|
|
510
626
|
count?: number;
|
|
@@ -614,7 +730,7 @@ interface V1Beta1PermissionRequestBody {
|
|
|
614
730
|
name?: string;
|
|
615
731
|
/**
|
|
616
732
|
* namespace should be in service/resource format
|
|
617
|
-
* The namespace of the permission.The namespace should be in service/resource format.<br/>*Example:*`
|
|
733
|
+
* The namespace of the permission. The namespace should be in service/resource format.<br/>*Example:*`compute/guardian`
|
|
618
734
|
*/
|
|
619
735
|
namespace?: string;
|
|
620
736
|
/** The metadata object for permissions that can hold key value pairs. */
|
|
@@ -622,7 +738,9 @@ interface V1Beta1PermissionRequestBody {
|
|
|
622
738
|
/** The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty. */
|
|
623
739
|
title?: string;
|
|
624
740
|
/**
|
|
625
|
-
*
|
|
741
|
+
* key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
|
|
742
|
+
* Use this instead of using name and namespace fields
|
|
743
|
+
* 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.
|
|
626
744
|
* @example "compute.instance.get"
|
|
627
745
|
*/
|
|
628
746
|
key?: string;
|
|
@@ -661,6 +779,51 @@ interface V1Beta1PolicyRequestBody {
|
|
|
661
779
|
/** Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> *Example:* `{"labels": {"key": "value"}, "description": "Policy description"}` */
|
|
662
780
|
metadata?: object;
|
|
663
781
|
}
|
|
782
|
+
interface V1Beta1Preference {
|
|
783
|
+
id?: string;
|
|
784
|
+
name?: string;
|
|
785
|
+
value?: string;
|
|
786
|
+
resourceId?: string;
|
|
787
|
+
resourceType?: string;
|
|
788
|
+
/**
|
|
789
|
+
* The time when the preference was created.
|
|
790
|
+
* @format date-time
|
|
791
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
792
|
+
*/
|
|
793
|
+
createdAt?: string;
|
|
794
|
+
/**
|
|
795
|
+
* The time when the preference was updated.
|
|
796
|
+
* @format date-time
|
|
797
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
798
|
+
*/
|
|
799
|
+
updatedAt?: string;
|
|
800
|
+
}
|
|
801
|
+
interface V1Beta1PreferenceRequestBody {
|
|
802
|
+
name?: string;
|
|
803
|
+
value?: string;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* PreferenceTrait is a trait that can be used to add preferences to a resource
|
|
807
|
+
* it explains what preferences are available for a resource
|
|
808
|
+
*/
|
|
809
|
+
interface V1Beta1PreferenceTrait {
|
|
810
|
+
resourceType?: string;
|
|
811
|
+
name?: string;
|
|
812
|
+
title?: string;
|
|
813
|
+
description?: string;
|
|
814
|
+
longDescription?: string;
|
|
815
|
+
heading?: string;
|
|
816
|
+
subHeading?: string;
|
|
817
|
+
breadcrumb?: string;
|
|
818
|
+
inputHints?: string;
|
|
819
|
+
text?: string;
|
|
820
|
+
textarea?: string;
|
|
821
|
+
select?: string;
|
|
822
|
+
combobox?: string;
|
|
823
|
+
checkbox?: string;
|
|
824
|
+
multiselect?: string;
|
|
825
|
+
number?: string;
|
|
826
|
+
}
|
|
664
827
|
interface V1Beta1Project {
|
|
665
828
|
id?: string;
|
|
666
829
|
name?: string;
|
|
@@ -867,6 +1030,9 @@ interface V1Beta1UpdateProjectResourceResponse {
|
|
|
867
1030
|
interface V1Beta1UpdateProjectResponse {
|
|
868
1031
|
project?: V1Beta1Project;
|
|
869
1032
|
}
|
|
1033
|
+
interface V1Beta1UpdateRoleResponse {
|
|
1034
|
+
role?: V1Beta1Role;
|
|
1035
|
+
}
|
|
870
1036
|
interface V1Beta1UpdateUserResponse {
|
|
871
1037
|
user?: V1Beta1User;
|
|
872
1038
|
}
|
|
@@ -909,6 +1075,9 @@ interface V1Beta1UserRequestBody {
|
|
|
909
1075
|
/** 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"` */
|
|
910
1076
|
title?: string;
|
|
911
1077
|
}
|
|
1078
|
+
interface V1Beta1VerifyOrganizationDomainResponse {
|
|
1079
|
+
state?: string;
|
|
1080
|
+
}
|
|
912
1081
|
|
|
913
1082
|
declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
914
1083
|
/**
|
|
@@ -1092,15 +1261,17 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1092
1261
|
frontierServiceAuthenticate: (strategyName: string, query?: {
|
|
1093
1262
|
/**
|
|
1094
1263
|
* by default, location redirect header for starting authentication flow if applicable
|
|
1095
|
-
* will be skipped unless this is set to true, useful in browser
|
|
1264
|
+
* will be skipped unless this is set to true, useful in browser, same value will
|
|
1265
|
+
* also be returned as endpoint in response anyway
|
|
1096
1266
|
*
|
|
1097
|
-
* If set to true, location header will be set for redirect
|
|
1267
|
+
* If set to true, location header will be set for redirect to start auth flow
|
|
1098
1268
|
*/
|
|
1099
|
-
|
|
1269
|
+
redirectOnstart?: boolean;
|
|
1100
1270
|
/**
|
|
1101
|
-
* by default, after successful authentication no operation will be performed
|
|
1102
|
-
* to apply redirection in case of browsers, provide
|
|
1103
|
-
*
|
|
1271
|
+
* by default, after successful authentication(flow completes) no operation will be performed,
|
|
1272
|
+
* to apply redirection in case of browsers, provide an url that will be used
|
|
1273
|
+
* after authentication where users are sent from frontier.
|
|
1274
|
+
* return_to should be one of the allowed urls configured at instance level
|
|
1104
1275
|
*
|
|
1105
1276
|
* URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
|
|
1106
1277
|
*/
|
|
@@ -1111,6 +1282,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1111
1282
|
* Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
|
|
1112
1283
|
*/
|
|
1113
1284
|
email?: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* callback_url will be used by strategy as last step to finish authentication flow
|
|
1287
|
+
* in OIDC this host will receive "state" and "code" query params, in case of magic links
|
|
1288
|
+
* this will be the url where user is redirected after clicking on magic link.
|
|
1289
|
+
* For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
|
|
1290
|
+
* callback_url should be one of the allowed urls configured at instance level
|
|
1291
|
+
*
|
|
1292
|
+
* 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`
|
|
1293
|
+
*/
|
|
1294
|
+
callbackUrl?: string;
|
|
1114
1295
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
|
|
1115
1296
|
/**
|
|
1116
1297
|
* @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.
|
|
@@ -1124,14 +1305,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1124
1305
|
frontierServiceAuthenticate2: (strategyName: string, body: {
|
|
1125
1306
|
/**
|
|
1126
1307
|
* by default, location redirect header for starting authentication flow if applicable
|
|
1127
|
-
* will be skipped unless this is set to true, useful in browser
|
|
1128
|
-
*
|
|
1308
|
+
* will be skipped unless this is set to true, useful in browser, same value will
|
|
1309
|
+
* also be returned as endpoint in response anyway
|
|
1310
|
+
* If set to true, location header will be set for redirect to start auth flow
|
|
1129
1311
|
*/
|
|
1130
|
-
|
|
1312
|
+
redirectOnstart?: boolean;
|
|
1131
1313
|
/**
|
|
1132
|
-
* by default, after successful authentication no operation will be performed
|
|
1133
|
-
* to apply redirection in case of browsers, provide
|
|
1134
|
-
*
|
|
1314
|
+
* by default, after successful authentication(flow completes) no operation will be performed,
|
|
1315
|
+
* to apply redirection in case of browsers, provide an url that will be used
|
|
1316
|
+
* after authentication where users are sent from frontier.
|
|
1317
|
+
* return_to should be one of the allowed urls configured at instance level
|
|
1135
1318
|
* URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
|
|
1136
1319
|
*/
|
|
1137
1320
|
returnTo?: string;
|
|
@@ -1140,6 +1323,15 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1140
1323
|
* Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
|
|
1141
1324
|
*/
|
|
1142
1325
|
email?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* callback_url will be used by strategy as last step to finish authentication flow
|
|
1328
|
+
* in OIDC this host will receive "state" and "code" query params, in case of magic links
|
|
1329
|
+
* this will be the url where user is redirected after clicking on magic link.
|
|
1330
|
+
* For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
|
|
1331
|
+
* callback_url should be one of the allowed urls configured at instance level
|
|
1332
|
+
* 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`
|
|
1333
|
+
*/
|
|
1334
|
+
callbackUrl?: string;
|
|
1143
1335
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
|
|
1144
1336
|
/**
|
|
1145
1337
|
* @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.
|
|
@@ -1161,6 +1353,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1161
1353
|
* @secure
|
|
1162
1354
|
*/
|
|
1163
1355
|
frontierServiceCheckResourcePermission: (body: V1Beta1CheckResourcePermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckResourcePermissionResponse, RpcStatus>>;
|
|
1356
|
+
/**
|
|
1357
|
+
* @description List a group preferences by ID.
|
|
1358
|
+
*
|
|
1359
|
+
* @tags Preference
|
|
1360
|
+
* @name FrontierServiceListGroupPreferences
|
|
1361
|
+
* @summary List group preferences
|
|
1362
|
+
* @request GET:/v1beta1/groups/{id}/preferences
|
|
1363
|
+
* @secure
|
|
1364
|
+
*/
|
|
1365
|
+
frontierServiceListGroupPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupPreferencesResponse, RpcStatus>>;
|
|
1366
|
+
/**
|
|
1367
|
+
* @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.
|
|
1368
|
+
*
|
|
1369
|
+
* @tags Preference
|
|
1370
|
+
* @name FrontierServiceCreateGroupPreferences
|
|
1371
|
+
* @summary Create group preferences
|
|
1372
|
+
* @request POST:/v1beta1/groups/{id}/preferences
|
|
1373
|
+
* @secure
|
|
1374
|
+
*/
|
|
1375
|
+
frontierServiceCreateGroupPreferences: (id: string, body: {
|
|
1376
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
1377
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateGroupPreferencesResponse, RpcStatus>>;
|
|
1164
1378
|
/**
|
|
1165
1379
|
* @description Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc
|
|
1166
1380
|
*
|
|
@@ -1358,6 +1572,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1358
1572
|
* @secure
|
|
1359
1573
|
*/
|
|
1360
1574
|
frontierServiceEnableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1575
|
+
/**
|
|
1576
|
+
* @description List an organization preferences by ID.
|
|
1577
|
+
*
|
|
1578
|
+
* @tags Preference
|
|
1579
|
+
* @name FrontierServiceListOrganizationPreferences
|
|
1580
|
+
* @summary List organization preferences
|
|
1581
|
+
* @request GET:/v1beta1/organizations/{id}/preferences
|
|
1582
|
+
* @secure
|
|
1583
|
+
*/
|
|
1584
|
+
frontierServiceListOrganizationPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationPreferencesResponse, RpcStatus>>;
|
|
1585
|
+
/**
|
|
1586
|
+
* @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.
|
|
1587
|
+
*
|
|
1588
|
+
* @tags Preference
|
|
1589
|
+
* @name FrontierServiceCreateOrganizationPreferences
|
|
1590
|
+
* @summary Create organization preferences
|
|
1591
|
+
* @request POST:/v1beta1/organizations/{id}/preferences
|
|
1592
|
+
* @secure
|
|
1593
|
+
*/
|
|
1594
|
+
frontierServiceCreateOrganizationPreferences: (id: string, body: {
|
|
1595
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
1596
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationPreferencesResponse, RpcStatus>>;
|
|
1361
1597
|
/**
|
|
1362
1598
|
* @description Get all projects that belong to an organization
|
|
1363
1599
|
*
|
|
@@ -1416,6 +1652,62 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1416
1652
|
* @secure
|
|
1417
1653
|
*/
|
|
1418
1654
|
frontierServiceRemoveOrganizationUser: (id: string, userId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1655
|
+
/**
|
|
1656
|
+
* @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.
|
|
1657
|
+
*
|
|
1658
|
+
* @tags Organization
|
|
1659
|
+
* @name FrontierServiceListOrganizationDomains
|
|
1660
|
+
* @summary List org domains
|
|
1661
|
+
* @request GET:/v1beta1/organizations/{orgId}/domains
|
|
1662
|
+
* @secure
|
|
1663
|
+
*/
|
|
1664
|
+
frontierServiceListOrganizationDomains: (orgId: string, query?: {
|
|
1665
|
+
/** filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed */
|
|
1666
|
+
state?: string;
|
|
1667
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationDomainsResponse, RpcStatus>>;
|
|
1668
|
+
/**
|
|
1669
|
+
* @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.
|
|
1670
|
+
*
|
|
1671
|
+
* @tags Organization
|
|
1672
|
+
* @name FrontierServiceCreateOrganizationDomain
|
|
1673
|
+
* @summary Create org domain
|
|
1674
|
+
* @request POST:/v1beta1/organizations/{orgId}/domains
|
|
1675
|
+
* @secure
|
|
1676
|
+
*/
|
|
1677
|
+
frontierServiceCreateOrganizationDomain: (orgId: string, body: {
|
|
1678
|
+
/** domain name to be added to the trusted domain list */
|
|
1679
|
+
domain: string;
|
|
1680
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationDomainResponse, RpcStatus>>;
|
|
1681
|
+
/**
|
|
1682
|
+
* @description Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID
|
|
1683
|
+
*
|
|
1684
|
+
* @tags Organization
|
|
1685
|
+
* @name FrontierServiceGetOrganizationDomain
|
|
1686
|
+
* @summary Get org domain
|
|
1687
|
+
* @request GET:/v1beta1/organizations/{orgId}/domains/{id}
|
|
1688
|
+
* @secure
|
|
1689
|
+
*/
|
|
1690
|
+
frontierServiceGetOrganizationDomain: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationDomainResponse, RpcStatus>>;
|
|
1691
|
+
/**
|
|
1692
|
+
* @description Remove a domain from the list of an organization's trusted domains list
|
|
1693
|
+
*
|
|
1694
|
+
* @tags Organization
|
|
1695
|
+
* @name FrontierServiceDeleteOrganizationDomain
|
|
1696
|
+
* @summary Delete org domain
|
|
1697
|
+
* @request DELETE:/v1beta1/organizations/{orgId}/domains/{id}
|
|
1698
|
+
* @secure
|
|
1699
|
+
*/
|
|
1700
|
+
frontierServiceDeleteOrganizationDomain: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1701
|
+
/**
|
|
1702
|
+
* @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.
|
|
1703
|
+
*
|
|
1704
|
+
* @tags Organization
|
|
1705
|
+
* @name FrontierServiceVerifyOrganizationDomain
|
|
1706
|
+
* @summary Verify org domain
|
|
1707
|
+
* @request POST:/v1beta1/organizations/{orgId}/domains/{id}/verify
|
|
1708
|
+
* @secure
|
|
1709
|
+
*/
|
|
1710
|
+
frontierServiceVerifyOrganizationDomain: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<V1Beta1VerifyOrganizationDomainResponse, RpcStatus>>;
|
|
1419
1711
|
/**
|
|
1420
1712
|
* @description Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled.
|
|
1421
1713
|
*
|
|
@@ -1535,7 +1827,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1535
1827
|
userId?: string;
|
|
1536
1828
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationInvitationsResponse, RpcStatus>>;
|
|
1537
1829
|
/**
|
|
1538
|
-
* @description Invite users to an organization, if
|
|
1830
|
+
* @description Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days
|
|
1539
1831
|
*
|
|
1540
1832
|
* @tags Organization
|
|
1541
1833
|
* @name FrontierServiceCreateOrganizationInvitation
|
|
@@ -1545,9 +1837,11 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1545
1837
|
*/
|
|
1546
1838
|
frontierServiceCreateOrganizationInvitation: (orgId: string, body: {
|
|
1547
1839
|
/** 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 */
|
|
1548
|
-
|
|
1840
|
+
userIds: string[];
|
|
1549
1841
|
/** list of group ids to which user needs to be added as a member. */
|
|
1550
1842
|
groupIds?: string[];
|
|
1843
|
+
/** list of role ids to which user needs to be added as a member. Roles are binded at organization level by default. */
|
|
1844
|
+
roleIds?: string[];
|
|
1551
1845
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationInvitationResponse, RpcStatus>>;
|
|
1552
1846
|
/**
|
|
1553
1847
|
* @description Returns a pending invitation queued for an organization
|
|
@@ -1579,6 +1873,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1579
1873
|
* @secure
|
|
1580
1874
|
*/
|
|
1581
1875
|
frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1876
|
+
/**
|
|
1877
|
+
* @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.
|
|
1878
|
+
*
|
|
1879
|
+
* @tags Organization
|
|
1880
|
+
* @name FrontierServiceJoinOrganization
|
|
1881
|
+
* @summary Join organization
|
|
1882
|
+
* @request POST:/v1beta1/organizations/{orgId}/join
|
|
1883
|
+
* @secure
|
|
1884
|
+
*/
|
|
1885
|
+
frontierServiceJoinOrganization: (orgId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1582
1886
|
/**
|
|
1583
1887
|
* @description Returns a list of custom roles created under an organization with their associated permissions
|
|
1584
1888
|
*
|
|
@@ -1742,6 +2046,36 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1742
2046
|
* @secure
|
|
1743
2047
|
*/
|
|
1744
2048
|
frontierServiceUpdatePolicy: (id: string, body: V1Beta1PolicyRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePolicyResponse, RpcStatus>>;
|
|
2049
|
+
/**
|
|
2050
|
+
* @description Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc
|
|
2051
|
+
*
|
|
2052
|
+
* @tags Preference
|
|
2053
|
+
* @name AdminServiceListPreferences
|
|
2054
|
+
* @summary List platform preferences
|
|
2055
|
+
* @request GET:/v1beta1/preferences
|
|
2056
|
+
* @secure
|
|
2057
|
+
*/
|
|
2058
|
+
adminServiceListPreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPreferencesResponse, RpcStatus>>;
|
|
2059
|
+
/**
|
|
2060
|
+
* @description Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores.
|
|
2061
|
+
*
|
|
2062
|
+
* @tags Preference
|
|
2063
|
+
* @name AdminServiceCreatePreferences
|
|
2064
|
+
* @summary Create platform preferences
|
|
2065
|
+
* @request POST:/v1beta1/preferences
|
|
2066
|
+
* @secure
|
|
2067
|
+
*/
|
|
2068
|
+
adminServiceCreatePreferences: (body: V1Beta1CreatePreferencesRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePreferencesResponse, RpcStatus>>;
|
|
2069
|
+
/**
|
|
2070
|
+
* @description Returns a list of all preferences supported by Frontier.
|
|
2071
|
+
*
|
|
2072
|
+
* @tags Preference
|
|
2073
|
+
* @name FrontierServiceDescribePreferences
|
|
2074
|
+
* @summary Describe preferences
|
|
2075
|
+
* @request GET:/v1beta1/preferences/_describe
|
|
2076
|
+
* @secure
|
|
2077
|
+
*/
|
|
2078
|
+
frontierServiceDescribePreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1DescribePreferencesResponse, RpcStatus>>;
|
|
1745
2079
|
/**
|
|
1746
2080
|
* No description
|
|
1747
2081
|
*
|
|
@@ -1812,6 +2146,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1812
2146
|
* @secure
|
|
1813
2147
|
*/
|
|
1814
2148
|
frontierServiceEnableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2149
|
+
/**
|
|
2150
|
+
* @description List a project preferences by ID.
|
|
2151
|
+
*
|
|
2152
|
+
* @tags Preference
|
|
2153
|
+
* @name FrontierServiceListProjectPreferences
|
|
2154
|
+
* @summary List project preferences
|
|
2155
|
+
* @request GET:/v1beta1/projects/{id}/preferences
|
|
2156
|
+
* @secure
|
|
2157
|
+
*/
|
|
2158
|
+
frontierServiceListProjectPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectPreferencesResponse, RpcStatus>>;
|
|
2159
|
+
/**
|
|
2160
|
+
* @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.
|
|
2161
|
+
*
|
|
2162
|
+
* @tags Preference
|
|
2163
|
+
* @name FrontierServiceCreateProjectPreferences
|
|
2164
|
+
* @summary Create project preferences
|
|
2165
|
+
* @request POST:/v1beta1/projects/{id}/preferences
|
|
2166
|
+
* @secure
|
|
2167
|
+
*/
|
|
2168
|
+
frontierServiceCreateProjectPreferences: (id: string, body: {
|
|
2169
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
2170
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectPreferencesResponse, RpcStatus>>;
|
|
1815
2171
|
/**
|
|
1816
2172
|
* @description Returns a collection of users of a project. Filter by user permissions is supported.
|
|
1817
2173
|
*
|
|
@@ -1941,6 +2297,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1941
2297
|
* @secure
|
|
1942
2298
|
*/
|
|
1943
2299
|
adminServiceDeleteRole: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2300
|
+
/**
|
|
2301
|
+
* @description Update a role title, description and permissions.
|
|
2302
|
+
*
|
|
2303
|
+
* @tags Role
|
|
2304
|
+
* @name AdminServiceUpdateRole
|
|
2305
|
+
* @summary Update role
|
|
2306
|
+
* @request PUT:/v1beta1/roles/{id}
|
|
2307
|
+
* @secure
|
|
2308
|
+
*/
|
|
2309
|
+
adminServiceUpdateRole: (id: string, body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateRoleResponse, RpcStatus>>;
|
|
1944
2310
|
/**
|
|
1945
2311
|
* @description Returns the service user of an organization in a Frontier instance. It can be filter by it's state
|
|
1946
2312
|
*
|
|
@@ -2174,7 +2540,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2174
2540
|
*/
|
|
2175
2541
|
frontierServiceListUserInvitations: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserInvitationsResponse, RpcStatus>>;
|
|
2176
2542
|
/**
|
|
2177
|
-
* @description
|
|
2543
|
+
* @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
|
|
2178
2544
|
*
|
|
2179
2545
|
* @tags User
|
|
2180
2546
|
* @name FrontierServiceGetOrganizationsByUser
|
|
@@ -2183,6 +2549,28 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2183
2549
|
* @secure
|
|
2184
2550
|
*/
|
|
2185
2551
|
frontierServiceGetOrganizationsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByUserResponse, RpcStatus>>;
|
|
2552
|
+
/**
|
|
2553
|
+
* @description List a user preferences by ID.
|
|
2554
|
+
*
|
|
2555
|
+
* @tags Preference
|
|
2556
|
+
* @name FrontierServiceListUserPreferences
|
|
2557
|
+
* @summary List user preferences
|
|
2558
|
+
* @request GET:/v1beta1/users/{id}/preferences
|
|
2559
|
+
* @secure
|
|
2560
|
+
*/
|
|
2561
|
+
frontierServiceListUserPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserPreferencesResponse, RpcStatus>>;
|
|
2562
|
+
/**
|
|
2563
|
+
* @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.
|
|
2564
|
+
*
|
|
2565
|
+
* @tags Preference
|
|
2566
|
+
* @name FrontierServiceCreateUserPreferences
|
|
2567
|
+
* @summary Create user preferences
|
|
2568
|
+
* @request POST:/v1beta1/users/{id}/preferences
|
|
2569
|
+
* @secure
|
|
2570
|
+
*/
|
|
2571
|
+
frontierServiceCreateUserPreferences: (id: string, body: {
|
|
2572
|
+
bodies?: V1Beta1PreferenceRequestBody[];
|
|
2573
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateUserPreferencesResponse, RpcStatus>>;
|
|
2186
2574
|
/**
|
|
2187
2575
|
* @description Get all the projects a user belongs to.
|
|
2188
2576
|
*
|
|
@@ -2224,7 +2612,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2224
2612
|
*/
|
|
2225
2613
|
frontierServiceListCurrentUserGroups: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserGroupsResponse, RpcStatus>>;
|
|
2226
2614
|
/**
|
|
2227
|
-
* @description
|
|
2615
|
+
* @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
|
|
2228
2616
|
*
|
|
2229
2617
|
* @tags User
|
|
2230
2618
|
* @name FrontierServiceGetOrganizationsByCurrentUser
|
|
@@ -2233,6 +2621,26 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2233
2621
|
* @secure
|
|
2234
2622
|
*/
|
|
2235
2623
|
frontierServiceGetOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByCurrentUserResponse, RpcStatus>>;
|
|
2624
|
+
/**
|
|
2625
|
+
* @description List a user preferences by ID.
|
|
2626
|
+
*
|
|
2627
|
+
* @tags Preference
|
|
2628
|
+
* @name FrontierServiceListCurrentUserPreferences
|
|
2629
|
+
* @summary List current user preferences
|
|
2630
|
+
* @request GET:/v1beta1/users/self/preferences
|
|
2631
|
+
* @secure
|
|
2632
|
+
*/
|
|
2633
|
+
frontierServiceListCurrentUserPreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserPreferencesResponse, RpcStatus>>;
|
|
2634
|
+
/**
|
|
2635
|
+
* @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.
|
|
2636
|
+
*
|
|
2637
|
+
* @tags Preference
|
|
2638
|
+
* @name FrontierServiceCreateCurrentUserPreferences
|
|
2639
|
+
* @summary Create current user preferences
|
|
2640
|
+
* @request POST:/v1beta1/users/self/preferences
|
|
2641
|
+
* @secure
|
|
2642
|
+
*/
|
|
2643
|
+
frontierServiceCreateCurrentUserPreferences: (body: V1Beta1CreateCurrentUserPreferencesRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateCurrentUserPreferencesResponse, RpcStatus>>;
|
|
2236
2644
|
/**
|
|
2237
2645
|
* @description Get all projects the current user belongs to
|
|
2238
2646
|
*
|
|
@@ -2259,6 +2667,9 @@ interface FrontierContextProviderProps {
|
|
|
2259
2667
|
}
|
|
2260
2668
|
declare function useFrontier(): FrontierContextProviderProps;
|
|
2261
2669
|
|
|
2262
|
-
declare const FrontierProvider:
|
|
2670
|
+
declare const FrontierProvider: {
|
|
2671
|
+
(props: FrontierProviderProps): JSX.Element;
|
|
2672
|
+
displayName: string;
|
|
2673
|
+
};
|
|
2263
2674
|
|
|
2264
|
-
export { CreateOrganization, FrontierProvider, MagicLinkVerify,
|
|
2675
|
+
export { Container, CreateOrganization, FrontierProvider, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier };
|