@raystack/frontier 0.0.6 → 0.0.7

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,22 +152,6 @@ 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
- }
171
155
  interface V1Beta1CheckResourcePermissionRequest {
172
156
  /** Deprecated. Use `resource` field instead. */
173
157
  objectId?: string;
@@ -686,13 +670,6 @@ interface V1Beta1Organization {
686
670
  * @example "2023-06-07T05:39:56.961Z"
687
671
  */
688
672
  updatedAt?: string;
689
- /**
690
- * The state of the organization (enabled or disabled).
691
- * @example "enabled"
692
- */
693
- state?: string;
694
- /** The base64 encoded image string of the organization avatar. Should be less than 2MB. */
695
- avatar?: string;
696
673
  }
697
674
  interface V1Beta1OrganizationRequestBody {
698
675
  /** 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"` */
@@ -701,11 +678,6 @@ interface V1Beta1OrganizationRequestBody {
701
678
  title?: string;
702
679
  /** 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"}` */
703
680
  metadata?: object;
704
- /**
705
- * 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})+$`.
706
- * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
707
- */
708
- avatar?: string;
709
681
  }
710
682
  interface V1Beta1Permission {
711
683
  id?: string;
@@ -1071,13 +1043,7 @@ interface V1Beta1User {
1071
1043
  * @example "2023-06-07T05:39:56.961Z"
1072
1044
  */
1073
1045
  updatedAt?: string;
1074
- /**
1075
- * The state of the user (enabled or disabled).
1076
- * @example "enabled"
1077
- */
1078
1046
  state?: string;
1079
- /** The base64 encoded image string of the user avatar. Should be less than 2MB. */
1080
- avatar?: string;
1081
1047
  }
1082
1048
  interface V1Beta1UserRequestBody {
1083
1049
  /** 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. */
@@ -1088,11 +1054,6 @@ interface V1Beta1UserRequestBody {
1088
1054
  metadata?: object;
1089
1055
  /** The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty. <br/>*Example:*`"John Doe"` */
1090
1056
  title?: string;
1091
- /**
1092
- * 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})+$`.
1093
- * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
1094
- */
1095
- avatar?: string;
1096
1057
  }
1097
1058
  interface V1Beta1VerifyOrganizationDomainResponse {
1098
1059
  state?: string;
@@ -1362,16 +1323,6 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1362
1323
  * @secure
1363
1324
  */
1364
1325
  frontierServiceAuthToken: (body: V1Beta1AuthTokenRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthTokenResponse, RpcStatus>>;
1365
- /**
1366
- * @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).
1367
- *
1368
- * @tags Authz
1369
- * @name FrontierServiceBatchCheckPermission
1370
- * @summary Batch check
1371
- * @request POST:/v1beta1/batchcheck
1372
- * @secure
1373
- */
1374
- frontierServiceBatchCheckPermission: (body: V1Beta1BatchCheckPermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1BatchCheckPermissionResponse, RpcStatus>>;
1375
1326
  /**
1376
1327
  * @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).
1377
1328
  *
@@ -2101,7 +2052,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2101
2052
  * @tags Preference
2102
2053
  * @name FrontierServiceDescribePreferences
2103
2054
  * @summary Describe preferences
2104
- * @request GET:/v1beta1/preferences/traits
2055
+ * @request GET:/v1beta1/preferences/_describe
2105
2056
  * @secure
2106
2057
  */
2107
2058
  frontierServiceDescribePreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1DescribePreferencesResponse, RpcStatus>>;
@@ -2684,4 +2635,4 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2684
2635
 
2685
2636
  declare const FrontierClient: typeof V1Beta1;
2686
2637
 
2687
- 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, 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 };
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 };
package/dist/index.js CHANGED
@@ -446,23 +446,6 @@ 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));
466
449
  /**
467
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).
468
451
  *
@@ -1503,11 +1486,11 @@ var V1Beta1 = class extends HttpClient {
1503
1486
  * @tags Preference
1504
1487
  * @name FrontierServiceDescribePreferences
1505
1488
  * @summary Describe preferences
1506
- * @request GET:/v1beta1/preferences/traits
1489
+ * @request GET:/v1beta1/preferences/_describe
1507
1490
  * @secure
1508
1491
  */
1509
1492
  this.frontierServiceDescribePreferences = (params = {}) => this.request(__spreadValues({
1510
- path: `/v1beta1/preferences/traits`,
1493
+ path: `/v1beta1/preferences/_describe`,
1511
1494
  method: "GET",
1512
1495
  secure: true,
1513
1496
  format: "json"
package/dist/index.mjs CHANGED
@@ -421,23 +421,6 @@ var V1Beta1 = class extends HttpClient {
421
421
  type: "application/json" /* Json */,
422
422
  format: "json"
423
423
  }, params));
424
- /**
425
- * @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).
426
- *
427
- * @tags Authz
428
- * @name FrontierServiceBatchCheckPermission
429
- * @summary Batch check
430
- * @request POST:/v1beta1/batchcheck
431
- * @secure
432
- */
433
- this.frontierServiceBatchCheckPermission = (body, params = {}) => this.request(__spreadValues({
434
- path: `/v1beta1/batchcheck`,
435
- method: "POST",
436
- body,
437
- secure: true,
438
- type: "application/json" /* Json */,
439
- format: "json"
440
- }, params));
441
424
  /**
442
425
  * @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).
443
426
  *
@@ -1478,11 +1461,11 @@ var V1Beta1 = class extends HttpClient {
1478
1461
  * @tags Preference
1479
1462
  * @name FrontierServiceDescribePreferences
1480
1463
  * @summary Describe preferences
1481
- * @request GET:/v1beta1/preferences/traits
1464
+ * @request GET:/v1beta1/preferences/_describe
1482
1465
  * @secure
1483
1466
  */
1484
1467
  this.frontierServiceDescribePreferences = (params = {}) => this.request(__spreadValues({
1485
- path: `/v1beta1/preferences/traits`,
1468
+ path: `/v1beta1/preferences/_describe`,
1486
1469
  method: "GET",
1487
1470
  secure: true,
1488
1471
  format: "json"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -11,14 +11,6 @@
11
11
  "react/dist/**/*",
12
12
  "README.md"
13
13
  ],
14
- "scripts": {
15
- "build": "tsup",
16
- "dev": "tsup --watch src",
17
- "size": "size-limit",
18
- "lint": "eslint \"./**/*.ts*\"",
19
- "test": "echo \"Error: no test specified\" && exit 0",
20
- "gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o client --modular"
21
- },
22
14
  "author": "pyadav9678@gmail.com",
23
15
  "license": "Apache-2.0",
24
16
  "lint-staged": {
@@ -49,7 +41,6 @@
49
41
  },
50
42
  "devDependencies": {
51
43
  "@radix-ui/react-icons": "^1.3.0",
52
- "@raystack/frontier-tsconfig": "workspace:^",
53
44
  "@size-limit/preset-small-lib": "^8.2.6",
54
45
  "@tanstack/react-table": "^8.9.3",
55
46
  "@types/node": "^20.4.5",
@@ -58,17 +49,18 @@
58
49
  "esbuild-css-modules-plugin": "^2.7.1",
59
50
  "esbuild-plugin-external-global": "^1.0.1",
60
51
  "eslint": "^7.32.0",
61
- "eslint-config-frontier": "workspace:^",
62
52
  "np": "^7.7.0",
63
53
  "prettier": "^2.5.1",
64
54
  "size-limit": "^8.2.6",
65
55
  "swagger-typescript-api": "^13.0.2",
66
56
  "tsup": "^6.7.0",
67
- "typescript": "^5.1.6"
57
+ "typescript": "^5.1.6",
58
+ "eslint-config-frontier": "^0.0.0",
59
+ "@raystack/frontier-tsconfig": "^0.0.0"
68
60
  },
69
61
  "dependencies": {
70
62
  "@hookform/resolvers": "^3.1.1",
71
- "@raystack/apsara": "0.11.0",
63
+ "@raystack/apsara": "0.11.1",
72
64
  "@tanstack/react-router": "0.0.1-beta.174",
73
65
  "axios": "^1.4.0",
74
66
  "class-variance-authority": "^0.7.0",
@@ -96,5 +88,13 @@
96
88
  },
97
89
  "publishConfig": {
98
90
  "access": "public"
91
+ },
92
+ "scripts": {
93
+ "build": "tsup",
94
+ "dev": "tsup --watch src",
95
+ "size": "size-limit",
96
+ "lint": "eslint \"./**/*.ts*\"",
97
+ "test": "echo \"Error: no test specified\" && exit 0",
98
+ "gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o client --modular"
99
99
  }
100
- }
100
+ }
@@ -214,22 +214,6 @@ interface V1Beta1AuthenticateResponse {
214
214
  /** state is used for resuming authentication flow in applicable strategies */
215
215
  state?: string;
216
216
  }
217
- interface V1Beta1BatchCheckPermissionBody {
218
- /** the permission name to check. <br/> *Example:* `get` or `list` */
219
- permission: string;
220
- /** `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` */
221
- resource?: string;
222
- }
223
- interface V1Beta1BatchCheckPermissionRequest {
224
- bodies?: V1Beta1BatchCheckPermissionBody[];
225
- }
226
- interface V1Beta1BatchCheckPermissionResponse {
227
- pairs?: V1Beta1BatchCheckPermissionResponsePair[];
228
- }
229
- interface V1Beta1BatchCheckPermissionResponsePair {
230
- body?: V1Beta1BatchCheckPermissionBody;
231
- status?: boolean;
232
- }
233
217
  interface V1Beta1CheckResourcePermissionRequest {
234
218
  /** Deprecated. Use `resource` field instead. */
235
219
  objectId?: string;
@@ -722,13 +706,6 @@ interface V1Beta1Organization {
722
706
  * @example "2023-06-07T05:39:56.961Z"
723
707
  */
724
708
  updatedAt?: string;
725
- /**
726
- * The state of the organization (enabled or disabled).
727
- * @example "enabled"
728
- */
729
- state?: string;
730
- /** The base64 encoded image string of the organization avatar. Should be less than 2MB. */
731
- avatar?: string;
732
709
  }
733
710
  interface V1Beta1OrganizationRequestBody {
734
711
  /** 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"` */
@@ -737,11 +714,6 @@ interface V1Beta1OrganizationRequestBody {
737
714
  title?: string;
738
715
  /** 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"}` */
739
716
  metadata?: object;
740
- /**
741
- * 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})+$`.
742
- * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
743
- */
744
- avatar?: string;
745
717
  }
746
718
  interface V1Beta1Permission {
747
719
  id?: string;
@@ -1105,13 +1077,7 @@ interface V1Beta1User {
1105
1077
  * @example "2023-06-07T05:39:56.961Z"
1106
1078
  */
1107
1079
  updatedAt?: string;
1108
- /**
1109
- * The state of the user (enabled or disabled).
1110
- * @example "enabled"
1111
- */
1112
1080
  state?: string;
1113
- /** The base64 encoded image string of the user avatar. Should be less than 2MB. */
1114
- avatar?: string;
1115
1081
  }
1116
1082
  interface V1Beta1UserRequestBody {
1117
1083
  /** 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. */
@@ -1122,11 +1088,6 @@ interface V1Beta1UserRequestBody {
1122
1088
  metadata?: object;
1123
1089
  /** 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"` */
1124
1090
  title?: string;
1125
- /**
1126
- * 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})+$`.
1127
- * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
1128
- */
1129
- avatar?: string;
1130
1091
  }
1131
1092
  interface V1Beta1VerifyOrganizationDomainResponse {
1132
1093
  state?: string;
@@ -1396,16 +1357,6 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1396
1357
  * @secure
1397
1358
  */
1398
1359
  frontierServiceAuthToken: (body: V1Beta1AuthTokenRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthTokenResponse, RpcStatus>>;
1399
- /**
1400
- * @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).
1401
- *
1402
- * @tags Authz
1403
- * @name FrontierServiceBatchCheckPermission
1404
- * @summary Batch check
1405
- * @request POST:/v1beta1/batchcheck
1406
- * @secure
1407
- */
1408
- frontierServiceBatchCheckPermission: (body: V1Beta1BatchCheckPermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1BatchCheckPermissionResponse, RpcStatus>>;
1409
1360
  /**
1410
1361
  * @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).
1411
1362
  *
@@ -2135,7 +2086,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2135
2086
  * @tags Preference
2136
2087
  * @name FrontierServiceDescribePreferences
2137
2088
  * @summary Describe preferences
2138
- * @request GET:/v1beta1/preferences/traits
2089
+ * @request GET:/v1beta1/preferences/_describe
2139
2090
  * @secure
2140
2091
  */
2141
2092
  frontierServiceDescribePreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1DescribePreferencesResponse, RpcStatus>>;