@sequenceholdings/orm 2.9.0 → 2.11.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.
Files changed (50) hide show
  1. package/README.md +71 -0
  2. package/dist/authoring.cjs +796 -7
  3. package/dist/authoring.cjs.map +1 -1
  4. package/dist/authoring.d.cts +11 -2
  5. package/dist/authoring.d.ts +11 -2
  6. package/dist/authoring.js +796 -7
  7. package/dist/authoring.js.map +1 -1
  8. package/dist/canonical.cjs +777 -6
  9. package/dist/canonical.cjs.map +1 -1
  10. package/dist/canonical.d.cts +43 -43
  11. package/dist/canonical.d.ts +43 -43
  12. package/dist/canonical.js +777 -6
  13. package/dist/canonical.js.map +1 -1
  14. package/dist/cli.cjs +7585 -7512
  15. package/dist/cli.cjs.map +1 -1
  16. package/dist/cli.d.cts +10 -1
  17. package/dist/cli.d.ts +10 -1
  18. package/dist/cli.js +7584 -7513
  19. package/dist/cli.js.map +1 -1
  20. package/dist/compiler.cjs +1059 -50
  21. package/dist/compiler.cjs.map +1 -1
  22. package/dist/compiler.d.cts +182 -2
  23. package/dist/compiler.d.ts +182 -2
  24. package/dist/compiler.js +1054 -51
  25. package/dist/compiler.js.map +1 -1
  26. package/dist/index.cjs +3720 -3447
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +96 -31
  29. package/dist/index.d.ts +96 -31
  30. package/dist/index.js +3714 -3446
  31. package/dist/index.js.map +1 -1
  32. package/dist/ir.cjs +787 -14
  33. package/dist/ir.cjs.map +1 -1
  34. package/dist/ir.d.cts +70 -59
  35. package/dist/ir.d.ts +70 -59
  36. package/dist/ir.js +787 -15
  37. package/dist/ir.js.map +1 -1
  38. package/dist/predicate-v2.cjs +802 -30
  39. package/dist/predicate-v2.cjs.map +1 -1
  40. package/dist/predicate-v2.d.cts +2 -0
  41. package/dist/predicate-v2.d.ts +2 -0
  42. package/dist/predicate-v2.js +802 -30
  43. package/dist/predicate-v2.js.map +1 -1
  44. package/dist/sdl.cjs +794 -24
  45. package/dist/sdl.cjs.map +1 -1
  46. package/dist/sdl.js +794 -24
  47. package/dist/sdl.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/{definition-B99BsOAO.d.cts → definition-CevES7lM.d.cts} +2 -2
  50. package/dist/{definition-B99BsOAO.d.ts → definition-CevES7lM.d.ts} +2 -2
package/dist/cli.d.cts CHANGED
@@ -5,6 +5,13 @@ declare const TOKEN_ENV = "SEQUENCE_ORM_TOKEN";
5
5
  declare const SOURCE_ENV = "SEQUENCE_ORM_SOURCE";
6
6
  /** Namespace-admin override reason for an apply whose source does not verify; set by `seq-studio orm apply --unverified-source`. */
7
7
  declare const UNVERIFIED_SOURCE_REASON_ENV = "SEQUENCE_ORM_UNVERIFIED_SOURCE_REASON";
8
+ /**
9
+ * The caller's token for the source claim's `source_environment`; set by `seq-studio orm apply --source-env`.
10
+ * Only the apply request carries it (as `x-sequence-source-authorization`), so Atlas can read the source there.
11
+ */
12
+ declare const SOURCE_AUTHORIZATION_ENV = "SEQUENCE_ORM_SOURCE_AUTHORIZATION";
13
+ /** The apply request's source environment credential header, when the delegate supplied one. */
14
+ declare function applySourceHeaders(env?: NodeJS.ProcessEnv): Record<string, string>;
8
15
  /** The apply body's `source` claim, when the delegate supplied one. Atlas verifies it; it never authorizes anything. */
9
16
  declare function applySourceFromEnv(env?: NodeJS.ProcessEnv): {
10
17
  source?: Record<string, unknown>;
@@ -39,6 +46,8 @@ declare function errorDetail(payload: unknown): string | null;
39
46
  interface RegistryActivation {
40
47
  id: string;
41
48
  provenance_class: string;
49
+ /** Absent on an older Atlas; null for this deployment's own Git Service. */
50
+ source_environment?: string | null;
42
51
  source_commit: string | null;
43
52
  source_branch: string | null;
44
53
  source_path: string | null;
@@ -47,4 +56,4 @@ interface RegistryActivation {
47
56
  activated_at: string;
48
57
  }
49
58
 
50
- export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, type RegistryActivation, SOURCE_ENV, TOKEN_ENV, UNVERIFIED_SOURCE_REASON_ENV, applySourceFromEnv, describeActivation, errorDetail, parseApplyWait, runCli, setTokenProvider };
59
+ export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, type RegistryActivation, SOURCE_AUTHORIZATION_ENV, SOURCE_ENV, TOKEN_ENV, UNVERIFIED_SOURCE_REASON_ENV, applySourceFromEnv, applySourceHeaders, describeActivation, errorDetail, parseApplyWait, runCli, setTokenProvider };
package/dist/cli.d.ts CHANGED
@@ -5,6 +5,13 @@ declare const TOKEN_ENV = "SEQUENCE_ORM_TOKEN";
5
5
  declare const SOURCE_ENV = "SEQUENCE_ORM_SOURCE";
6
6
  /** Namespace-admin override reason for an apply whose source does not verify; set by `seq-studio orm apply --unverified-source`. */
7
7
  declare const UNVERIFIED_SOURCE_REASON_ENV = "SEQUENCE_ORM_UNVERIFIED_SOURCE_REASON";
8
+ /**
9
+ * The caller's token for the source claim's `source_environment`; set by `seq-studio orm apply --source-env`.
10
+ * Only the apply request carries it (as `x-sequence-source-authorization`), so Atlas can read the source there.
11
+ */
12
+ declare const SOURCE_AUTHORIZATION_ENV = "SEQUENCE_ORM_SOURCE_AUTHORIZATION";
13
+ /** The apply request's source environment credential header, when the delegate supplied one. */
14
+ declare function applySourceHeaders(env?: NodeJS.ProcessEnv): Record<string, string>;
8
15
  /** The apply body's `source` claim, when the delegate supplied one. Atlas verifies it; it never authorizes anything. */
9
16
  declare function applySourceFromEnv(env?: NodeJS.ProcessEnv): {
10
17
  source?: Record<string, unknown>;
@@ -39,6 +46,8 @@ declare function errorDetail(payload: unknown): string | null;
39
46
  interface RegistryActivation {
40
47
  id: string;
41
48
  provenance_class: string;
49
+ /** Absent on an older Atlas; null for this deployment's own Git Service. */
50
+ source_environment?: string | null;
42
51
  source_commit: string | null;
43
52
  source_branch: string | null;
44
53
  source_path: string | null;
@@ -47,4 +56,4 @@ interface RegistryActivation {
47
56
  activated_at: string;
48
57
  }
49
58
 
50
- export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, type RegistryActivation, SOURCE_ENV, TOKEN_ENV, UNVERIFIED_SOURCE_REASON_ENV, applySourceFromEnv, describeActivation, errorDetail, parseApplyWait, runCli, setTokenProvider };
59
+ export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, type RegistryActivation, SOURCE_AUTHORIZATION_ENV, SOURCE_ENV, TOKEN_ENV, UNVERIFIED_SOURCE_REASON_ENV, applySourceFromEnv, applySourceHeaders, describeActivation, errorDetail, parseApplyWait, runCli, setTokenProvider };