@raystack/frontier 0.0.8 → 0.0.10

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 CHANGED
@@ -152,12 +152,28 @@ interface V1Beta1AuthenticateResponse {
152
152
  /** state is used for resuming authentication flow in applicable strategies */
153
153
  state?: string;
154
154
  }
155
+ interface V1Beta1BatchCheckPermissionBody {
156
+ /** the permission name to check. <br/> *Example:* `get` or `list` */
157
+ permission: string;
158
+ /** `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` */
159
+ resource?: string;
160
+ }
161
+ interface V1Beta1BatchCheckPermissionRequest {
162
+ bodies?: V1Beta1BatchCheckPermissionBody[];
163
+ }
164
+ interface V1Beta1BatchCheckPermissionResponse {
165
+ pairs?: V1Beta1BatchCheckPermissionResponsePair[];
166
+ }
167
+ interface V1Beta1BatchCheckPermissionResponsePair {
168
+ body?: V1Beta1BatchCheckPermissionBody;
169
+ status?: boolean;
170
+ }
155
171
  interface V1Beta1CheckResourcePermissionRequest {
156
172
  /** Deprecated. Use `resource` field instead. */
157
173
  objectId?: string;
158
174
  /** Deprecated. Use `resource` field instead. */
159
175
  objectNamespace?: string;
160
- /** the permission name to check. <br/> *Example:* `get` or `list` */
176
+ /** the permission name to check. <br/> *Example:* `get`, `list`, `compute.instance.create` */
161
177
  permission: string;
162
178
  /** `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` */
163
179
  resource?: string;
@@ -344,14 +360,6 @@ interface V1Beta1GetOrganizationResponse {
344
360
  interface V1Beta1GetOrganizationRoleResponse {
345
361
  role?: V1Beta1Role;
346
362
  }
347
- interface V1Beta1GetOrganizationsByCurrentUserResponse {
348
- organizations?: V1Beta1Organization[];
349
- joinableViaDomain?: V1Beta1Organization[];
350
- }
351
- interface V1Beta1GetOrganizationsByUserResponse {
352
- organizations?: V1Beta1Organization[];
353
- joinableViaDomain?: V1Beta1Organization[];
354
- }
355
363
  interface V1Beta1GetPermissionResponse {
356
364
  permission?: V1Beta1Permission;
357
365
  }
@@ -364,12 +372,6 @@ interface V1Beta1GetProjectResourceResponse {
364
372
  interface V1Beta1GetProjectResponse {
365
373
  project?: V1Beta1Project;
366
374
  }
367
- interface V1Beta1GetProjectsByCurrentUserResponse {
368
- projects?: V1Beta1Project[];
369
- }
370
- interface V1Beta1GetProjectsByUserResponse {
371
- projects?: V1Beta1Project[];
372
- }
373
375
  interface V1Beta1GetRelationResponse {
374
376
  relation?: V1Beta1Relation;
375
377
  }
@@ -495,6 +497,14 @@ interface V1Beta1ListAuthStrategiesResponse {
495
497
  }
496
498
  interface V1Beta1ListCurrentUserGroupsResponse {
497
499
  groups?: V1Beta1Group[];
500
+ accessPairs?: V1Beta1ListCurrentUserGroupsResponseAccessPair[];
501
+ }
502
+ interface V1Beta1ListCurrentUserGroupsResponseAccessPair {
503
+ groupId?: string;
504
+ permissions?: string[];
505
+ }
506
+ interface V1Beta1ListCurrentUserInvitationsResponse {
507
+ invitations?: V1Beta1Invitation[];
498
508
  }
499
509
  interface V1Beta1ListCurrentUserPreferencesResponse {
500
510
  preferences?: V1Beta1Preference[];
@@ -504,6 +514,11 @@ interface V1Beta1ListGroupPreferencesResponse {
504
514
  }
505
515
  interface V1Beta1ListGroupUsersResponse {
506
516
  users?: V1Beta1User[];
517
+ rolePairs?: V1Beta1ListGroupUsersResponseRolePair[];
518
+ }
519
+ interface V1Beta1ListGroupUsersResponseRolePair {
520
+ userId?: string;
521
+ roles?: V1Beta1Role[];
507
522
  }
508
523
  interface V1Beta1ListGroupsResponse {
509
524
  groups?: V1Beta1Group[];
@@ -544,6 +559,14 @@ interface V1Beta1ListOrganizationServiceUsersResponse {
544
559
  interface V1Beta1ListOrganizationUsersResponse {
545
560
  users?: V1Beta1User[];
546
561
  }
562
+ interface V1Beta1ListOrganizationsByCurrentUserResponse {
563
+ organizations?: V1Beta1Organization[];
564
+ joinableViaDomain?: V1Beta1Organization[];
565
+ }
566
+ interface V1Beta1ListOrganizationsByUserResponse {
567
+ organizations?: V1Beta1Organization[];
568
+ joinableViaDomain?: V1Beta1Organization[];
569
+ }
547
570
  interface V1Beta1ListOrganizationsResponse {
548
571
  organizations?: V1Beta1Organization[];
549
572
  }
@@ -565,8 +588,32 @@ interface V1Beta1ListProjectPreferencesResponse {
565
588
  interface V1Beta1ListProjectResourcesResponse {
566
589
  resources?: V1Beta1Resource[];
567
590
  }
591
+ interface V1Beta1ListProjectServiceUsersResponse {
592
+ serviceusers?: V1Beta1ServiceUser[];
593
+ rolePairs?: V1Beta1ListProjectServiceUsersResponseRolePair[];
594
+ }
595
+ interface V1Beta1ListProjectServiceUsersResponseRolePair {
596
+ serviceuserId?: string;
597
+ roles?: V1Beta1Role[];
598
+ }
568
599
  interface V1Beta1ListProjectUsersResponse {
569
600
  users?: V1Beta1User[];
601
+ rolePairs?: V1Beta1ListProjectUsersResponseRolePair[];
602
+ }
603
+ interface V1Beta1ListProjectUsersResponseRolePair {
604
+ userId?: string;
605
+ roles?: V1Beta1Role[];
606
+ }
607
+ interface V1Beta1ListProjectsByCurrentUserResponse {
608
+ projects?: V1Beta1Project[];
609
+ accessPairs?: V1Beta1ListProjectsByCurrentUserResponseAccessPair[];
610
+ }
611
+ interface V1Beta1ListProjectsByCurrentUserResponseAccessPair {
612
+ projectId?: string;
613
+ permissions?: string[];
614
+ }
615
+ interface V1Beta1ListProjectsByUserResponse {
616
+ projects?: V1Beta1Project[];
570
617
  }
571
618
  interface V1Beta1ListProjectsResponse {
572
619
  projects?: V1Beta1Project[];
@@ -670,6 +717,13 @@ interface V1Beta1Organization {
670
717
  * @example "2023-06-07T05:39:56.961Z"
671
718
  */
672
719
  updatedAt?: string;
720
+ /**
721
+ * The state of the organization (enabled or disabled).
722
+ * @example "enabled"
723
+ */
724
+ state?: string;
725
+ /** The base64 encoded image string of the organization avatar. Should be less than 2MB. */
726
+ avatar?: string;
673
727
  }
674
728
  interface V1Beta1OrganizationRequestBody {
675
729
  /** The name of the organization. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/>*Example:*`"frontier-org1-acme"` */
@@ -678,6 +732,11 @@ interface V1Beta1OrganizationRequestBody {
678
732
  title?: string;
679
733
  /** Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields. <br/>*Example*:`{"labels": {"key": "value"}, "description": "Organization description"}` */
680
734
  metadata?: object;
735
+ /**
736
+ * The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.
737
+ * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
738
+ */
739
+ avatar?: string;
681
740
  }
682
741
  interface V1Beta1Permission {
683
742
  id?: string;
@@ -1043,7 +1102,13 @@ interface V1Beta1User {
1043
1102
  * @example "2023-06-07T05:39:56.961Z"
1044
1103
  */
1045
1104
  updatedAt?: string;
1105
+ /**
1106
+ * The state of the user (enabled or disabled).
1107
+ * @example "enabled"
1108
+ */
1046
1109
  state?: string;
1110
+ /** The base64 encoded image string of the user avatar. Should be less than 2MB. */
1111
+ avatar?: string;
1047
1112
  }
1048
1113
  interface V1Beta1UserRequestBody {
1049
1114
  /** The name of the user. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores and must start with a letter. If not provided, Frontier automatically generates a name from the user email. */
@@ -1054,6 +1119,11 @@ interface V1Beta1UserRequestBody {
1054
1119
  metadata?: object;
1055
1120
  /** 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"` */
1056
1121
  title?: string;
1122
+ /**
1123
+ * The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.
1124
+ * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
1125
+ */
1126
+ avatar?: string;
1057
1127
  }
1058
1128
  interface V1Beta1VerifyOrganizationDomainResponse {
1059
1129
  state?: string;
@@ -1323,6 +1393,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1323
1393
  * @secure
1324
1394
  */
1325
1395
  frontierServiceAuthToken: (body: V1Beta1AuthTokenRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthTokenResponse, RpcStatus>>;
1396
+ /**
1397
+ * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
1398
+ *
1399
+ * @tags Authz
1400
+ * @name FrontierServiceBatchCheckPermission
1401
+ * @summary Batch check
1402
+ * @request POST:/v1beta1/batchcheck
1403
+ * @secure
1404
+ */
1405
+ frontierServiceBatchCheckPermission: (body: V1Beta1BatchCheckPermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1BatchCheckPermissionResponse, RpcStatus>>;
1326
1406
  /**
1327
1407
  * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
1328
1408
  *
@@ -1770,7 +1850,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1770
1850
  * @request GET:/v1beta1/organizations/{orgId}/groups/{id}/users
1771
1851
  * @secure
1772
1852
  */
1773
- frontierServiceListGroupUsers: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupUsersResponse, RpcStatus>>;
1853
+ frontierServiceListGroupUsers: (orgId: string, id: string, query?: {
1854
+ withRoles?: boolean;
1855
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupUsersResponse, RpcStatus>>;
1774
1856
  /**
1775
1857
  * @description Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members.
1776
1858
  *
@@ -2052,7 +2134,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2052
2134
  * @tags Preference
2053
2135
  * @name FrontierServiceDescribePreferences
2054
2136
  * @summary Describe preferences
2055
- * @request GET:/v1beta1/preferences/_describe
2137
+ * @request GET:/v1beta1/preferences/traits
2056
2138
  * @secure
2057
2139
  */
2058
2140
  frontierServiceDescribePreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1DescribePreferencesResponse, RpcStatus>>;
@@ -2148,6 +2230,18 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2148
2230
  frontierServiceCreateProjectPreferences: (id: string, body: {
2149
2231
  bodies?: V1Beta1PreferenceRequestBody[];
2150
2232
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectPreferencesResponse, RpcStatus>>;
2233
+ /**
2234
+ * @description Returns a collection of users of a project. Filter by user permissions is supported.
2235
+ *
2236
+ * @tags Project
2237
+ * @name FrontierServiceListProjectServiceUsers
2238
+ * @summary List project serviceusers
2239
+ * @request GET:/v1beta1/projects/{id}/serviceusers
2240
+ * @secure
2241
+ */
2242
+ frontierServiceListProjectServiceUsers: (id: string, query?: {
2243
+ withRoles?: boolean;
2244
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectServiceUsersResponse, RpcStatus>>;
2151
2245
  /**
2152
2246
  * @description Returns a collection of users of a project. Filter by user permissions is supported.
2153
2247
  *
@@ -2159,6 +2253,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2159
2253
  */
2160
2254
  frontierServiceListProjectUsers: (id: string, query?: {
2161
2255
  permissionFilter?: string;
2256
+ withRoles?: boolean;
2162
2257
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectUsersResponse, RpcStatus>>;
2163
2258
  /**
2164
2259
  * No description
@@ -2523,12 +2618,12 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2523
2618
  * @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
2524
2619
  *
2525
2620
  * @tags User
2526
- * @name FrontierServiceGetOrganizationsByUser
2621
+ * @name FrontierServiceListOrganizationsByUser
2527
2622
  * @summary Get user organizations
2528
2623
  * @request GET:/v1beta1/users/{id}/organizations
2529
2624
  * @secure
2530
2625
  */
2531
- frontierServiceGetOrganizationsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByUserResponse, RpcStatus>>;
2626
+ frontierServiceListOrganizationsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByUserResponse, RpcStatus>>;
2532
2627
  /**
2533
2628
  * @description List a user preferences by ID.
2534
2629
  *
@@ -2555,12 +2650,12 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2555
2650
  * @description Get all the projects a user belongs to.
2556
2651
  *
2557
2652
  * @tags User
2558
- * @name FrontierServiceGetProjectsByUser
2653
+ * @name FrontierServiceListProjectsByUser
2559
2654
  * @summary Get user projects
2560
2655
  * @request GET:/v1beta1/users/{id}/projects
2561
2656
  * @secure
2562
2657
  */
2563
- frontierServiceGetProjectsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectsByUserResponse, RpcStatus>>;
2658
+ frontierServiceListProjectsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByUserResponse, RpcStatus>>;
2564
2659
  /**
2565
2660
  * No description
2566
2661
  *
@@ -2590,17 +2685,31 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2590
2685
  * @request GET:/v1beta1/users/self/groups
2591
2686
  * @secure
2592
2687
  */
2593
- frontierServiceListCurrentUserGroups: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserGroupsResponse, RpcStatus>>;
2688
+ frontierServiceListCurrentUserGroups: (query?: {
2689
+ /** org_id is optional filter over an organization */
2690
+ orgId?: string;
2691
+ withPermissions?: string[];
2692
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserGroupsResponse, RpcStatus>>;
2693
+ /**
2694
+ * @description List all the invitations sent to current user.
2695
+ *
2696
+ * @tags User
2697
+ * @name FrontierServiceListCurrentUserInvitations
2698
+ * @summary List user invitations
2699
+ * @request GET:/v1beta1/users/self/invitations
2700
+ * @secure
2701
+ */
2702
+ frontierServiceListCurrentUserInvitations: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserInvitationsResponse, RpcStatus>>;
2594
2703
  /**
2595
2704
  * @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
2596
2705
  *
2597
2706
  * @tags User
2598
- * @name FrontierServiceGetOrganizationsByCurrentUser
2707
+ * @name FrontierServiceListOrganizationsByCurrentUser
2599
2708
  * @summary Get my organizations
2600
2709
  * @request GET:/v1beta1/users/self/organizations
2601
2710
  * @secure
2602
2711
  */
2603
- frontierServiceGetOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByCurrentUserResponse, RpcStatus>>;
2712
+ frontierServiceListOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByCurrentUserResponse, RpcStatus>>;
2604
2713
  /**
2605
2714
  * @description List a user preferences by ID.
2606
2715
  *
@@ -2625,14 +2734,23 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2625
2734
  * @description Get all projects the current user belongs to
2626
2735
  *
2627
2736
  * @tags User
2628
- * @name FrontierServiceGetProjectsByCurrentUser
2737
+ * @name FrontierServiceListProjectsByCurrentUser
2629
2738
  * @summary Get my projects
2630
2739
  * @request GET:/v1beta1/users/self/projects
2631
2740
  * @secure
2632
2741
  */
2633
- frontierServiceGetProjectsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectsByCurrentUserResponse, RpcStatus>>;
2742
+ frontierServiceListProjectsByCurrentUser: (query?: {
2743
+ /** org_id is optional and filter projects by org */
2744
+ orgId?: string;
2745
+ /**
2746
+ * list of permissions needs to be checked against each project
2747
+ * query params are set as with_permissions=get&with_permissions=delete
2748
+ * to be represented as array
2749
+ */
2750
+ withPermissions?: string[];
2751
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByCurrentUserResponse, RpcStatus>>;
2634
2752
  }
2635
2753
 
2636
2754
  declare const FrontierClient: typeof V1Beta1;
2637
2755
 
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 };
2756
+ export { FrontierClient, ProtobufAny, ProtobufNullValue, RpcStatus, V1Beta1, V1Beta1AcceptOrganizationInvitationResponse, V1Beta1AddGroupUsersResponse, V1Beta1AddOrganizationUsersResponse, V1Beta1AuditLog, V1Beta1AuditLogActor, V1Beta1AuditLogTarget, V1Beta1AuthCallbackRequest, V1Beta1AuthCallbackResponse, V1Beta1AuthLogoutResponse, V1Beta1AuthStrategy, V1Beta1AuthTokenRequest, V1Beta1AuthTokenResponse, V1Beta1AuthenticateResponse, V1Beta1BatchCheckPermissionBody, V1Beta1BatchCheckPermissionRequest, V1Beta1BatchCheckPermissionResponse, V1Beta1BatchCheckPermissionResponsePair, 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, V1Beta1GetPermissionResponse, V1Beta1GetPolicyResponse, V1Beta1GetProjectResourceResponse, V1Beta1GetProjectResponse, V1Beta1GetRelationResponse, V1Beta1GetServiceUserKeyResponse, V1Beta1GetServiceUserResponse, V1Beta1GetUserResponse, V1Beta1Group, V1Beta1GroupRequestBody, V1Beta1Invitation, V1Beta1JSONWebKey, V1Beta1JoinOrganizationResponse, V1Beta1KeyCredential, V1Beta1ListAllOrganizationsResponse, V1Beta1ListAllUsersResponse, V1Beta1ListAuthStrategiesResponse, V1Beta1ListCurrentUserGroupsResponse, V1Beta1ListCurrentUserGroupsResponseAccessPair, V1Beta1ListCurrentUserInvitationsResponse, V1Beta1ListCurrentUserPreferencesResponse, V1Beta1ListGroupPreferencesResponse, V1Beta1ListGroupUsersResponse, V1Beta1ListGroupUsersResponseRolePair, V1Beta1ListGroupsResponse, V1Beta1ListMetaSchemasResponse, V1Beta1ListNamespacesResponse, V1Beta1ListOrganizationAdminsResponse, V1Beta1ListOrganizationAuditLogsResponse, V1Beta1ListOrganizationDomainsResponse, V1Beta1ListOrganizationGroupsResponse, V1Beta1ListOrganizationInvitationsResponse, V1Beta1ListOrganizationPreferencesResponse, V1Beta1ListOrganizationProjectsResponse, V1Beta1ListOrganizationRolesResponse, V1Beta1ListOrganizationServiceUsersResponse, V1Beta1ListOrganizationUsersResponse, V1Beta1ListOrganizationsByCurrentUserResponse, V1Beta1ListOrganizationsByUserResponse, V1Beta1ListOrganizationsResponse, V1Beta1ListPermissionsResponse, V1Beta1ListPoliciesResponse, V1Beta1ListPreferencesResponse, V1Beta1ListProjectAdminsResponse, V1Beta1ListProjectPreferencesResponse, V1Beta1ListProjectResourcesResponse, V1Beta1ListProjectServiceUsersResponse, V1Beta1ListProjectServiceUsersResponseRolePair, V1Beta1ListProjectUsersResponse, V1Beta1ListProjectUsersResponseRolePair, V1Beta1ListProjectsByCurrentUserResponse, V1Beta1ListProjectsByCurrentUserResponseAccessPair, V1Beta1ListProjectsByUserResponse, 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 };
package/dist/index.js CHANGED
@@ -446,6 +446,23 @@ var V1Beta1 = class extends HttpClient {
446
446
  type: "application/json" /* Json */,
447
447
  format: "json"
448
448
  }, params));
449
+ /**
450
+ * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
451
+ *
452
+ * @tags Authz
453
+ * @name FrontierServiceBatchCheckPermission
454
+ * @summary Batch check
455
+ * @request POST:/v1beta1/batchcheck
456
+ * @secure
457
+ */
458
+ this.frontierServiceBatchCheckPermission = (body, params = {}) => this.request(__spreadValues({
459
+ path: `/v1beta1/batchcheck`,
460
+ method: "POST",
461
+ body,
462
+ secure: true,
463
+ type: "application/json" /* Json */,
464
+ format: "json"
465
+ }, params));
449
466
  /**
450
467
  * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
451
468
  *
@@ -1082,9 +1099,10 @@ var V1Beta1 = class extends HttpClient {
1082
1099
  * @request GET:/v1beta1/organizations/{orgId}/groups/{id}/users
1083
1100
  * @secure
1084
1101
  */
1085
- this.frontierServiceListGroupUsers = (orgId, id, params = {}) => this.request(__spreadValues({
1102
+ this.frontierServiceListGroupUsers = (orgId, id, query, params = {}) => this.request(__spreadValues({
1086
1103
  path: `/v1beta1/organizations/${orgId}/groups/${id}/users`,
1087
1104
  method: "GET",
1105
+ query,
1088
1106
  secure: true,
1089
1107
  format: "json"
1090
1108
  }, params));
@@ -1486,11 +1504,11 @@ var V1Beta1 = class extends HttpClient {
1486
1504
  * @tags Preference
1487
1505
  * @name FrontierServiceDescribePreferences
1488
1506
  * @summary Describe preferences
1489
- * @request GET:/v1beta1/preferences/_describe
1507
+ * @request GET:/v1beta1/preferences/traits
1490
1508
  * @secure
1491
1509
  */
1492
1510
  this.frontierServiceDescribePreferences = (params = {}) => this.request(__spreadValues({
1493
- path: `/v1beta1/preferences/_describe`,
1511
+ path: `/v1beta1/preferences/traits`,
1494
1512
  method: "GET",
1495
1513
  secure: true,
1496
1514
  format: "json"
@@ -1635,6 +1653,22 @@ var V1Beta1 = class extends HttpClient {
1635
1653
  secure: true,
1636
1654
  format: "json"
1637
1655
  }, params));
1656
+ /**
1657
+ * @description Returns a collection of users of a project. Filter by user permissions is supported.
1658
+ *
1659
+ * @tags Project
1660
+ * @name FrontierServiceListProjectServiceUsers
1661
+ * @summary List project serviceusers
1662
+ * @request GET:/v1beta1/projects/{id}/serviceusers
1663
+ * @secure
1664
+ */
1665
+ this.frontierServiceListProjectServiceUsers = (id, query, params = {}) => this.request(__spreadValues({
1666
+ path: `/v1beta1/projects/${id}/serviceusers`,
1667
+ method: "GET",
1668
+ query,
1669
+ secure: true,
1670
+ format: "json"
1671
+ }, params));
1638
1672
  /**
1639
1673
  * @description Returns a collection of users of a project. Filter by user permissions is supported.
1640
1674
  *
@@ -2154,12 +2188,12 @@ var V1Beta1 = class extends HttpClient {
2154
2188
  * @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
2155
2189
  *
2156
2190
  * @tags User
2157
- * @name FrontierServiceGetOrganizationsByUser
2191
+ * @name FrontierServiceListOrganizationsByUser
2158
2192
  * @summary Get user organizations
2159
2193
  * @request GET:/v1beta1/users/{id}/organizations
2160
2194
  * @secure
2161
2195
  */
2162
- this.frontierServiceGetOrganizationsByUser = (id, params = {}) => this.request(__spreadValues({
2196
+ this.frontierServiceListOrganizationsByUser = (id, params = {}) => this.request(__spreadValues({
2163
2197
  path: `/v1beta1/users/${id}/organizations`,
2164
2198
  method: "GET",
2165
2199
  secure: true,
@@ -2200,12 +2234,12 @@ var V1Beta1 = class extends HttpClient {
2200
2234
  * @description Get all the projects a user belongs to.
2201
2235
  *
2202
2236
  * @tags User
2203
- * @name FrontierServiceGetProjectsByUser
2237
+ * @name FrontierServiceListProjectsByUser
2204
2238
  * @summary Get user projects
2205
2239
  * @request GET:/v1beta1/users/{id}/projects
2206
2240
  * @secure
2207
2241
  */
2208
- this.frontierServiceGetProjectsByUser = (id, params = {}) => this.request(__spreadValues({
2242
+ this.frontierServiceListProjectsByUser = (id, params = {}) => this.request(__spreadValues({
2209
2243
  path: `/v1beta1/users/${id}/projects`,
2210
2244
  method: "GET",
2211
2245
  secure: true,
@@ -2251,9 +2285,25 @@ var V1Beta1 = class extends HttpClient {
2251
2285
  * @request GET:/v1beta1/users/self/groups
2252
2286
  * @secure
2253
2287
  */
2254
- this.frontierServiceListCurrentUserGroups = (params = {}) => this.request(__spreadValues({
2288
+ this.frontierServiceListCurrentUserGroups = (query, params = {}) => this.request(__spreadValues({
2255
2289
  path: `/v1beta1/users/self/groups`,
2256
2290
  method: "GET",
2291
+ query,
2292
+ secure: true,
2293
+ format: "json"
2294
+ }, params));
2295
+ /**
2296
+ * @description List all the invitations sent to current user.
2297
+ *
2298
+ * @tags User
2299
+ * @name FrontierServiceListCurrentUserInvitations
2300
+ * @summary List user invitations
2301
+ * @request GET:/v1beta1/users/self/invitations
2302
+ * @secure
2303
+ */
2304
+ this.frontierServiceListCurrentUserInvitations = (params = {}) => this.request(__spreadValues({
2305
+ path: `/v1beta1/users/self/invitations`,
2306
+ method: "GET",
2257
2307
  secure: true,
2258
2308
  format: "json"
2259
2309
  }, params));
@@ -2261,12 +2311,12 @@ var V1Beta1 = class extends HttpClient {
2261
2311
  * @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
2262
2312
  *
2263
2313
  * @tags User
2264
- * @name FrontierServiceGetOrganizationsByCurrentUser
2314
+ * @name FrontierServiceListOrganizationsByCurrentUser
2265
2315
  * @summary Get my organizations
2266
2316
  * @request GET:/v1beta1/users/self/organizations
2267
2317
  * @secure
2268
2318
  */
2269
- this.frontierServiceGetOrganizationsByCurrentUser = (params = {}) => this.request(__spreadValues({
2319
+ this.frontierServiceListOrganizationsByCurrentUser = (params = {}) => this.request(__spreadValues({
2270
2320
  path: `/v1beta1/users/self/organizations`,
2271
2321
  method: "GET",
2272
2322
  secure: true,
@@ -2308,14 +2358,15 @@ var V1Beta1 = class extends HttpClient {
2308
2358
  * @description Get all projects the current user belongs to
2309
2359
  *
2310
2360
  * @tags User
2311
- * @name FrontierServiceGetProjectsByCurrentUser
2361
+ * @name FrontierServiceListProjectsByCurrentUser
2312
2362
  * @summary Get my projects
2313
2363
  * @request GET:/v1beta1/users/self/projects
2314
2364
  * @secure
2315
2365
  */
2316
- this.frontierServiceGetProjectsByCurrentUser = (params = {}) => this.request(__spreadValues({
2366
+ this.frontierServiceListProjectsByCurrentUser = (query, params = {}) => this.request(__spreadValues({
2317
2367
  path: `/v1beta1/users/self/projects`,
2318
2368
  method: "GET",
2369
+ query,
2319
2370
  secure: true,
2320
2371
  format: "json"
2321
2372
  }, params));