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