Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/permissions-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/permissions-client",
"version": "0.16.2",
"version": "0.17.0-alpha.2",
"description": "Client library for epilot Permissions API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
56 changes: 54 additions & 2 deletions clients/permissions-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ declare namespace Components {
* Type of the role
*/
type: "user_role";
/**
* Optional parent role that this role inherits from. Must be an `org_role` or a sharing role of type `share_role` or `partner_role`.
* example:
* 123:owner
*/
parent_role?: string;
/**
* List of grants (permissions) applied to the role
*/
Expand Down Expand Up @@ -336,6 +342,17 @@ declare namespace Components {
operation: "equals";
values: any[];
}
/**
* Error response
*/
export interface Error {
/**
* Error message
* example:
* Parent role 123:nonexistent does not exist
*/
message: string;
}
export interface Grant {
/**
* example:
Expand Down Expand Up @@ -389,6 +406,18 @@ declare namespace Components {
*/
RoleId[];
}
/**
* All roles attached to an users of an organization
*/
export interface OrgAssignments {
organizationId?: /**
* Id of an organization
* example:
* 123
*/
OrganizationId;
assignments?: /* A role attached to an user */ InternalAssignment[];
}
/**
* A role automatically applied to all users in an organization.
*/
Expand Down Expand Up @@ -438,6 +467,18 @@ declare namespace Components {
*/
pricing_tier?: string;
}
/**
* All roles attached to an users of an organization
*/
export interface OrgRoles {
organizationId?: /**
* Id of an organization
* example:
* 123
*/
OrganizationId;
roles?: Role[];
}
/**
* Id of an organization
* example:
Expand Down Expand Up @@ -705,6 +746,12 @@ declare namespace Components {
* List of grants (permissions) applied to the role
*/
grants: Grant[];
/**
* Optional parent role that this role inherits from. Must be an `org_role` or `share_role`.
* example:
* 123:owner
*/
parent_role?: string;
}
}
}
Expand Down Expand Up @@ -753,6 +800,8 @@ declare namespace Paths {
export type RequestBody = Components.Schemas.CreateRolePayload;
namespace Responses {
export type $200 = Components.Schemas.Role;
export type $400 = /* Error response */ Components.Schemas.Error;
export type $404 = /* Error response */ Components.Schemas.Error;
}
}
namespace DeleteRole {
Expand Down Expand Up @@ -839,6 +888,8 @@ declare namespace Paths {
export type RequestBody = Components.Schemas.RolePayload;
namespace Responses {
export type $200 = Components.Schemas.Role;
export type $400 = /* Error response */ Components.Schemas.Error;
export type $404 = /* Error response */ Components.Schemas.Error;
}
}
namespace RefreshPermissions {
Expand Down Expand Up @@ -881,7 +932,6 @@ declare namespace Paths {
}
}


export interface OperationMethods {
/**
* listCurrentRoles - listCurrentRoles
Expand Down Expand Up @@ -1172,18 +1222,20 @@ export interface PathsDictionary {

export type Client = OpenAPIClient<OperationMethods, PathsDictionary>


export type Assignment = Components.Schemas.Assignment;
export type Assignments = Components.Schemas.Assignments;
export type BaseRole = Components.Schemas.BaseRole;
export type BaseRoleForCreate = Components.Schemas.BaseRoleForCreate;
export type CreateRolePayload = Components.Schemas.CreateRolePayload;
export type EqualsCondition = Components.Schemas.EqualsCondition;
export type Error = Components.Schemas.Error;
export type Grant = Components.Schemas.Grant;
export type GrantCondition = Components.Schemas.GrantCondition;
export type GrantWithDependencies = Components.Schemas.GrantWithDependencies;
export type InternalAssignment = Components.Schemas.InternalAssignment;
export type OrgAssignments = Components.Schemas.OrgAssignments;
export type OrgRole = Components.Schemas.OrgRole;
export type OrgRoles = Components.Schemas.OrgRoles;
export type OrganizationId = Components.Schemas.OrganizationId;
export type PartnerRole = Components.Schemas.PartnerRole;
export type PortalRole = Components.Schemas.PortalRole;
Expand Down
Loading
Loading