Skip to content

Commit

Permalink
Add Domain Principal (#2962)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-codaio committed May 23, 2024
1 parent 17c74d4 commit 412b337
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 6 deletions.
15 changes: 13 additions & 2 deletions dist/bundle.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions dist/schema.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/schema.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codahq/packs-sdk",
"version": "1.7.7",
"version": "1.7.7-prerelease.1",
"license": "MIT",
"workspaces": [
"dev/eslint"
Expand Down
14 changes: 13 additions & 1 deletion schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,7 @@ export enum PrincipalType {
User = 'user',
Group = 'group',
Anyone = 'anyone',
Domain = 'domain',
}

/**
Expand All @@ -1293,6 +1294,17 @@ export interface GroupPrincipal {
groupId: string | number;
}

/**
* This represents a principal that is anyone in that domain
*
* TODO(sam): Unhide this
* @hidden
*/
export interface DomainPrincipal {
type: PrincipalType.Domain;
domain: string;
}

/**
* This represents a principal corresponding to anyone
*
Expand All @@ -1311,7 +1323,7 @@ export interface AnyonePrincipal {
* TODO(sam): Unhide this
* @hidden
*/
type Principal = UserPrincipal | GroupPrincipal | AnyonePrincipal;
type Principal = UserPrincipal | GroupPrincipal | AnyonePrincipal | DomainPrincipal;

/**
* This represents the definition of a permission in the external system.
Expand Down

0 comments on commit 412b337

Please sign in to comment.