@schemavaults/auth-common 0.7.28 → 0.7.29

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
@@ -17,5 +17,5 @@ export { appIdSchema } from "@schemavaults/app-definitions";
17
17
  export { audienceSchema, audienceRefSchema } from "./audience-schema";
18
18
  export { inviteCodeFormatSchema, inviteCodeDefinitionSchema, } from "./invite-code";
19
19
  export type { InviteCode, InviteCodeDefinition } from "./invite-code";
20
- export { organizationIdSchema, isValidOrganizationID, organizationDefinitionSchema, SCHEMAVAULTS_ORGANIZATION_ID, } from "./organizations";
20
+ export { organizationIdSchema, isValidOrganizationID, organizationDefinitionSchema, hardcodedOrgs, SCHEMAVAULTS_ORGANIZATION_ID, } from "./organizations";
21
21
  export type { OrganizationID, OrganizationDefinition } from "./organizations";
package/dist/index.js CHANGED
@@ -11,5 +11,5 @@ export { PRODUCTION_AUTH_SERVER_URL } from "@schemavaults/app-definitions";
11
11
  export { appIdSchema } from "@schemavaults/app-definitions";
12
12
  export { audienceSchema, audienceRefSchema } from "./audience-schema";
13
13
  export { inviteCodeFormatSchema, inviteCodeDefinitionSchema, } from "./invite-code";
14
- export { organizationIdSchema, isValidOrganizationID, organizationDefinitionSchema, SCHEMAVAULTS_ORGANIZATION_ID, } from "./organizations";
14
+ export { organizationIdSchema, isValidOrganizationID, organizationDefinitionSchema, hardcodedOrgs, SCHEMAVAULTS_ORGANIZATION_ID, } from "./organizations";
15
15
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,aAAa,CAAC;AAE5D,cAAc,eAAe,CAAC;AAG9B,mBAAmB;AACnB,cAAc,cAAc,CAAC;AAM7B,cAAc,cAAc,CAAC;AAG7B,cAAc,QAAQ,CAAC;AAGvB,OAAO,EAC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izationDefinition } from "./organization_definition";
2
+ export declare const hardcodedOrgs: readonly OrganizationDefinition[];
3
+ export default hardcodedOrgs;
@@ -0,0 +1,11 @@
1
+ import SCHEMAVAULTS_ORGANIZATION_ID from "./schemavaults_org_id";
2
+ const DefaultHardcodedOrgCreationTime = new Date("2024-01-01T00:00:00Z");
3
+ export const hardcodedOrgs = [
4
+ {
5
+ name: "SchemaVaults",
6
+ organization_id: SCHEMAVAULTS_ORGANIZATION_ID,
7
+ created_at: DefaultHardcodedOrgCreationTime.getTime(),
8
+ },
9
+ ];
10
+ export default hardcodedOrgs;
11
+ //# sourceMappingURL=hardcoded_orgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hardcoded_orgs.js","sourceRoot":"","sources":["../../src/organizations/hardcoded_orgs.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,MAAM,uBAAuB,CAAC;AAEjE,MAAM,+BAA+B,GAAG,IAAI,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D;QACE,IAAI,EAAE,cAAc;QACpB,eAAe,EAAE,4BAA4B;QAC7C,UAAU,EAAE,+BAA+B,CAAC,OAAO,EAAE;KACtD;CACF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -3,3 +3,4 @@ export type { OrganizationID } from "./organization_id";
3
3
  export { organizationDefinitionSchema } from "./organization_definition";
4
4
  export type { OrganizationDefinition } from "./organization_definition";
5
5
  export { SCHEMAVAULTS_ORGANIZATION_ID } from "./schemavaults_org_id";
6
+ export { hardcodedOrgs } from "./hardcoded_orgs";
@@ -1,4 +1,5 @@
1
1
  export { organizationIdSchema, isValidOrganizationID } from "./organization_id";
2
2
  export { organizationDefinitionSchema } from "./organization_definition";
3
3
  export { SCHEMAVAULTS_ORGANIZATION_ID } from "./schemavaults_org_id";
4
+ export { hardcodedOrgs } from "./hardcoded_orgs";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAGhF,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAGhF,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const SCHEMAVAULTS_ORGANIZATION_ID: "schemavaults";
2
+ export default SCHEMAVAULTS_ORGANIZATION_ID;
@@ -1,2 +1,3 @@
1
1
  export const SCHEMAVAULTS_ORGANIZATION_ID = "schemavaults";
2
+ export default SCHEMAVAULTS_ORGANIZATION_ID;
2
3
  //# sourceMappingURL=schemavaults_org_id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemavaults_org_id.js","sourceRoot":"","sources":["../../src/organizations/schemavaults_org_id.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,4BAA4B,GACvC,cAAgD,CAAC"}
1
+ {"version":3,"file":"schemavaults_org_id.js","sourceRoot":"","sources":["../../src/organizations/schemavaults_org_id.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,4BAA4B,GACvC,cAAgD,CAAC;AAEnD,eAAe,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schemavaults/auth-common",
3
3
  "description": "Types and utility functions for authentication and authorization",
4
- "version": "0.7.28",
4
+ "version": "0.7.29",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
7
7
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "types": "dist/index.d.ts",
15
15
  "dependencies": {
16
16
  "zod": "3.23.8",
17
- "@schemavaults/app-definitions": "0.6.1",
17
+ "@schemavaults/app-definitions": "0.6.11",
18
18
  "crypto-js": "4.2.0"
19
19
  },
20
20
  "scripts": {