slotlock 0.9.0 → 0.10.0
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/CHANGELOG.md +305 -0
- package/NOTICE +2 -0
- package/README.md +4 -2
- package/agent-store-backend.js +209 -15
- package/application-api.d.ts +10 -1
- package/application-api.js +213 -2
- package/availability-store.js +13 -5
- package/booking-rules.d.ts +11 -0
- package/booking-rules.js +21 -1
- package/config.d.ts +50 -0
- package/config.js +107 -0
- package/dashboard-scope.d.ts +7 -0
- package/dashboard-scope.js +21 -0
- package/dashboard.d.ts +97 -2
- package/dashboard.js +3068 -284
- package/ddl-identity.d.ts +25 -0
- package/ddl-identity.js +881 -0
- package/ddl-scim.d.ts +5 -0
- package/ddl-scim.js +740 -0
- package/ddl-sso.d.ts +15 -0
- package/ddl-sso.js +1033 -0
- package/ddl.d.ts +40 -9
- package/ddl.js +2123 -49
- package/domains.d.ts +117 -0
- package/domains.js +340 -0
- package/event-feed.d.ts +1 -1
- package/event-feed.js +6 -34
- package/holiday-import.d.ts +1 -1
- package/holiday-import.js +2 -3
- package/holidays.js +70 -11
- package/index.d.ts +12 -4
- package/index.js +8 -2
- package/invitation-email.d.ts +26 -0
- package/invitation-email.js +73 -0
- package/maintenance.d.ts +7 -2
- package/maintenance.js +15 -1
- package/oidc.d.ts +135 -0
- package/oidc.js +452 -0
- package/openapi.json +1886 -6
- package/package.json +2 -1
- package/scim-server.d.ts +19 -0
- package/scim-server.js +243 -0
- package/scim.d.ts +180 -0
- package/scim.js +416 -0
- package/self-host.d.ts +19 -6
- package/self-host.js +262 -7
- package/slotlock.manifest.json +1 -1
- package/store.d.ts +273 -2
- package/store.js +984 -72
- package/types.d.ts +33 -1
- package/types.js +68 -1
- package/workspace-domains.d.ts +146 -0
- package/workspace-domains.js +249 -0
- package/workspace-roles.d.ts +47 -0
- package/workspace-roles.js +304 -0
- package/workspace-scim.d.ts +89 -0
- package/workspace-scim.js +157 -0
- package/workspace-sso.d.ts +131 -0
- package/workspace-sso.js +180 -0
- package/workspaces.d.ts +240 -0
- package/workspaces.js +433 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who a person is, as every dashboard table checks it: a GitHub account, a Google account, or a
|
|
3
|
+
* person a team's identity provider signed in (sso:<uuid>, teams phase 5.4).
|
|
4
|
+
*/
|
|
5
|
+
export declare const SLOTLOCK_PERSON_PATTERN = "^(github:[1-9][0-9]{0,19}|google:[A-Za-z0-9._-]{1,255}|sso:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$";
|
|
6
|
+
/** The tables of verified domains and requests to join: their owner's only. */
|
|
7
|
+
export declare const SLOTLOCK_IDENTITY_TABLES: readonly ["workspace_domains", "workspace_join_requests", "workspace_join_blocks"];
|
|
8
|
+
/** The SECURITY DEFINER functions through which the serving role reaches them. */
|
|
9
|
+
export declare const SLOTLOCK_IDENTITY_FUNCTIONS: readonly ["slotlock.claim_domain(text, text, text, text, text)", "slotlock.workspace_domains_list(text)", "slotlock.record_domain_check(uuid, text, text, text, text, text)", "slotlock.domains_due(integer)", "slotlock.release_domain(text, text, uuid)", "slotlock.set_invite_domain_restriction(text, text, boolean)", "slotlock.set_domain_join_policy(text, text, uuid, text)", "slotlock.discoverable_workspaces(text, text[])", "slotlock.request_to_join(text, text, text[], text, integer)", "slotlock.workspace_join_requests_list(text)", "slotlock.decide_join_request(text, text, uuid, text, text, integer)", "slotlock.workspace_domain_members(text)", "slotlock.prune_workspace_domains()", "slotlock.workspace_invites_restricted(text)"];
|
|
10
|
+
/** How many domains a team may claim or hold at once. */
|
|
11
|
+
export declare const SLOTLOCK_WORKSPACE_DOMAIN_LIMIT = 20;
|
|
12
|
+
/**
|
|
13
|
+
* How a person's address was verified, as a request to join records it: by a Google Workspace
|
|
14
|
+
* account of that domain (Google's `hd` claim), the only evidence that lets someone join at once;
|
|
15
|
+
* or by a Google or GitHub account that verified it once and never checks again, which only asks.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SLOTLOCK_JOIN_EVIDENCE: readonly ["google_workspace", "google", "github"];
|
|
18
|
+
/**
|
|
19
|
+
* SQL that is true when a team holds its invitations to its verified domains and the invitation
|
|
20
|
+
* (to `email`, or to the GitHub account `github`) is not to one of them.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SLOTLOCK_INVITE_DOMAIN_REFUSED: (tenant: string, email: string, github: string) => string;
|
|
23
|
+
/** Requests to join a person may make a day, across every team. */
|
|
24
|
+
export declare const SLOTLOCK_JOIN_REQUEST_DAILY_LIMIT = 20;
|
|
25
|
+
export declare const SLOTLOCK_IDENTITY_DDL: string;
|