@ariestools/aries-datalake-core 0.1.13

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 (82) hide show
  1. package/README.md +12 -0
  2. package/dist/browser/api/errors.d.ts +24 -0
  3. package/dist/browser/api/errors.d.ts.map +1 -0
  4. package/dist/browser/api/health.d.ts +12 -0
  5. package/dist/browser/api/health.d.ts.map +1 -0
  6. package/dist/browser/api/paths.d.ts +13 -0
  7. package/dist/browser/api/paths.d.ts.map +1 -0
  8. package/dist/browser/api/planePaths.d.ts +31 -0
  9. package/dist/browser/api/planePaths.d.ts.map +1 -0
  10. package/dist/browser/api/requests.d.ts +18 -0
  11. package/dist/browser/api/requests.d.ts.map +1 -0
  12. package/dist/browser/browser.d.ts +21 -0
  13. package/dist/browser/browser.d.ts.map +1 -0
  14. package/dist/browser/browser.mjs +144 -0
  15. package/dist/browser/browser.mjs.map +7 -0
  16. package/dist/browser/types/AclEntry.d.ts +14 -0
  17. package/dist/browser/types/AclEntry.d.ts.map +1 -0
  18. package/dist/browser/types/BrowserPayload.d.ts +48 -0
  19. package/dist/browser/types/BrowserPayload.d.ts.map +1 -0
  20. package/dist/browser/types/DatalakeConfig.d.ts +48 -0
  21. package/dist/browser/types/DatalakeConfig.d.ts.map +1 -0
  22. package/dist/browser/types/DatalakeDescriptor.d.ts +38 -0
  23. package/dist/browser/types/DatalakeDescriptor.d.ts.map +1 -0
  24. package/dist/browser/types/Principal.d.ts +17 -0
  25. package/dist/browser/types/Principal.d.ts.map +1 -0
  26. package/dist/browser/types/Region.d.ts +8 -0
  27. package/dist/browser/types/Region.d.ts.map +1 -0
  28. package/dist/browser/types/Scope.d.ts +17 -0
  29. package/dist/browser/types/Scope.d.ts.map +1 -0
  30. package/dist/browser/types/Status.d.ts +7 -0
  31. package/dist/browser/types/Status.d.ts.map +1 -0
  32. package/dist/browser/types/Tier.d.ts +8 -0
  33. package/dist/browser/types/Tier.d.ts.map +1 -0
  34. package/dist/browser/types/Token.d.ts +18 -0
  35. package/dist/browser/types/Token.d.ts.map +1 -0
  36. package/dist/node/api/errors.d.ts +24 -0
  37. package/dist/node/api/errors.d.ts.map +1 -0
  38. package/dist/node/api/health.d.ts +12 -0
  39. package/dist/node/api/health.d.ts.map +1 -0
  40. package/dist/node/api/paths.d.ts +13 -0
  41. package/dist/node/api/paths.d.ts.map +1 -0
  42. package/dist/node/api/planePaths.d.ts +31 -0
  43. package/dist/node/api/planePaths.d.ts.map +1 -0
  44. package/dist/node/api/requests.d.ts +18 -0
  45. package/dist/node/api/requests.d.ts.map +1 -0
  46. package/dist/node/auth/sessionTokenCodec.d.ts +69 -0
  47. package/dist/node/auth/sessionTokenCodec.d.ts.map +1 -0
  48. package/dist/node/auth/strictHs256.d.ts +13 -0
  49. package/dist/node/auth/strictHs256.d.ts.map +1 -0
  50. package/dist/node/auth/tokenCodec.d.ts +49 -0
  51. package/dist/node/auth/tokenCodec.d.ts.map +1 -0
  52. package/dist/node/browser.d.ts +21 -0
  53. package/dist/node/browser.d.ts.map +1 -0
  54. package/dist/node/index.d.ts +27 -0
  55. package/dist/node/index.d.ts.map +1 -0
  56. package/dist/node/index.mjs +423 -0
  57. package/dist/node/index.mjs.map +7 -0
  58. package/dist/node/store/DatalakeStore.d.ts +36 -0
  59. package/dist/node/store/DatalakeStore.d.ts.map +1 -0
  60. package/dist/node/types/AclEntry.d.ts +14 -0
  61. package/dist/node/types/AclEntry.d.ts.map +1 -0
  62. package/dist/node/types/BrowserPayload.d.ts +48 -0
  63. package/dist/node/types/BrowserPayload.d.ts.map +1 -0
  64. package/dist/node/types/DatalakeConfig.d.ts +48 -0
  65. package/dist/node/types/DatalakeConfig.d.ts.map +1 -0
  66. package/dist/node/types/DatalakeDescriptor.d.ts +38 -0
  67. package/dist/node/types/DatalakeDescriptor.d.ts.map +1 -0
  68. package/dist/node/types/Payload.d.ts +75 -0
  69. package/dist/node/types/Payload.d.ts.map +1 -0
  70. package/dist/node/types/Principal.d.ts +17 -0
  71. package/dist/node/types/Principal.d.ts.map +1 -0
  72. package/dist/node/types/Region.d.ts +8 -0
  73. package/dist/node/types/Region.d.ts.map +1 -0
  74. package/dist/node/types/Scope.d.ts +17 -0
  75. package/dist/node/types/Scope.d.ts.map +1 -0
  76. package/dist/node/types/Status.d.ts +7 -0
  77. package/dist/node/types/Status.d.ts.map +1 -0
  78. package/dist/node/types/Tier.d.ts +8 -0
  79. package/dist/node/types/Tier.d.ts.map +1 -0
  80. package/dist/node/types/Token.d.ts +18 -0
  81. package/dist/node/types/Token.d.ts.map +1 -0
  82. package/package.json +66 -0
@@ -0,0 +1,48 @@
1
+ import type { DatalakeRegion } from './Region.ts';
2
+ import type { DatalakeTier } from './Tier.ts';
3
+ /**
4
+ * User-supplied configuration for provisioning a new datalake. All fields are
5
+ * optional except tier; the control plane applies defaults for the rest.
6
+ */
7
+ export interface DatalakeConfig {
8
+ /** Payload schemas allowed for insert; empty array means all allowed. */
9
+ allowedSchemas?: string[];
10
+ /** Payload schemas disallowed for insert. */
11
+ disallowedSchemas?: string[];
12
+ /** Provisioned IOPS target. Ignored for the archive tier. */
13
+ iops?: number;
14
+ /**
15
+ * Per-datalake rate-limit overrides. When omitted, the data plane's
16
+ * default limits apply. Use this to tighten compliance-sensitive
17
+ * datalakes or relax a limit for a trusted internal tenant.
18
+ */
19
+ rateLimits?: RateLimitOverrides;
20
+ /** Deployment region. */
21
+ region?: DatalakeRegion;
22
+ /** Retention policy in days. `null` means keep forever. */
23
+ retentionDays?: number | null;
24
+ /** Provisioned capacity in bytes. Ignored for the archive tier. */
25
+ sizeBytes?: number;
26
+ /** Service tier (controls storage driver, IOPS ceiling, compute shape). */
27
+ tier: DatalakeTier;
28
+ /**
29
+ * Reserved. The archivist always recomputes `_hash` and `_dataHash` from
30
+ * payload bytes trustlessly, so this flag is a no-op. Kept on the type so
31
+ * older configs still parse; will be removed in a future major.
32
+ *
33
+ * @deprecated archivist is the trustless authority — no client-supplied
34
+ * hash is honored.
35
+ */
36
+ verifyHashes?: boolean;
37
+ }
38
+ export interface RateLimitOverrides {
39
+ /** Max anonymous requests per minute. */
40
+ anonymousPerMinute?: number;
41
+ /** Max authenticated requests per minute. */
42
+ authenticatedPerMinute?: number;
43
+ /**
44
+ * Burst multiplier (1 = no burst). Bucket capacity = perMinute * burstFactor.
45
+ */
46
+ burstFactor?: number;
47
+ }
48
+ //# sourceMappingURL=DatalakeConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatalakeConfig.d.ts","sourceRoot":"","sources":["../../../src/types/DatalakeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAE7C;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAA;IAC/B,yBAAyB;IACzB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2EAA2E;IAC3E,IAAI,EAAE,YAAY,CAAA;IAClB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
@@ -0,0 +1,38 @@
1
+ import type { AclEntry } from './AclEntry.ts';
2
+ import type { DatalakeConfig } from './DatalakeConfig.ts';
3
+ import type { DatalakeStatus } from './Status.ts';
4
+ /**
5
+ * Full server-side view of a provisioned datalake. Returned by
6
+ * `DatalakeClient.describe`, `DatalakeClient.list`, and `DatalakeClient.create`.
7
+ */
8
+ export interface DatalakeDescriptor {
9
+ /** Access grants. Owner is implicit and not listed here. */
10
+ acl: AclEntry[];
11
+ /** Requested configuration. */
12
+ config: DatalakeConfig;
13
+ /** ISO-8601 timestamps. */
14
+ createdAt: string;
15
+ /** Human-readable message when status === 'error'. */
16
+ errorMessage?: string;
17
+ /** Opaque server-assigned id. */
18
+ id: string;
19
+ /** Human-friendly name scoped to the owner. */
20
+ name: string;
21
+ /** User id of the owner. */
22
+ ownerId: string;
23
+ /** Current lifecycle state. */
24
+ status: DatalakeStatus;
25
+ updatedAt: string;
26
+ /** Public HTTPS URL of the RestDataLake endpoint (set once status === 'ready'). */
27
+ url?: string;
28
+ /** Current usage, refreshed periodically by the control plane. */
29
+ usage?: DatalakeUsage;
30
+ }
31
+ export interface DatalakeUsage {
32
+ bytesStored: number;
33
+ bytesStoredLimit: number;
34
+ payloadCount: number;
35
+ readsLast24h: number;
36
+ writesLast24h: number;
37
+ }
38
+ //# sourceMappingURL=DatalakeDescriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatalakeDescriptor.d.ts","sourceRoot":"","sources":["../../../src/types/DatalakeDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,4DAA4D;IAC5D,GAAG,EAAE,QAAQ,EAAE,CAAA;IACf,+BAA+B;IAC/B,MAAM,EAAE,cAAc,CAAA;IACtB,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iCAAiC;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,+BAA+B;IAC/B,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,mFAAmF;IACnF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kEAAkE;IAClE,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;CACtB"}
@@ -0,0 +1,75 @@
1
+ import type { Payload, WithStorageMeta } from '@xyo-network/sdk-protocol/payload-model';
2
+ /**
3
+ * Re-export the canonical XYO `Payload` and `WithStorageMeta` types for the
4
+ * Node data plane. The `/browser` entry point exposes an independent JSON
5
+ * wire contract so browser consumers do not inherit the SDK declaration graph.
6
+ *
7
+ * `Payload` is generic — extra fields require parameterising it as
8
+ * `Payload<{ foo: string }>`. Callers that just receive raw JSON should
9
+ * widen via `as unknown as Payload[]` at the parse boundary.
10
+ */
11
+ export type { Payload, WithStorageMeta } from '@xyo-network/sdk-protocol/payload-model';
12
+ /**
13
+ * A payload as it leaves the data plane after archivist processing.
14
+ */
15
+ export type StoredPayload = WithStorageMeta<Payload>;
16
+ /**
17
+ * Options for paginating through payloads on a datalake. The cursor is the
18
+ * `_sequence` of the last payload returned (archivist-canonical).
19
+ */
20
+ export interface NextPayloadsOptions {
21
+ /** Resume after this sequence (exclusive). */
22
+ cursor?: string;
23
+ /** Maximum payloads to return. Server caps this. */
24
+ limit?: number;
25
+ /** Sort direction by archivist-assigned sequence. */
26
+ order?: 'asc' | 'desc';
27
+ /** Restrict to payloads whose schema matches one of these. */
28
+ schemas?: string[];
29
+ }
30
+ /**
31
+ * Response body for the iterate endpoint. Mirrors the XYO archivist
32
+ * middleware shape (bare array); the next cursor is delivered via the
33
+ * `X-Datalake-Next-Cursor` response header.
34
+ */
35
+ export type NextPayloadsResponse = StoredPayload[];
36
+ /**
37
+ * Request body for the insert endpoint. A single payload or an array,
38
+ * matching the XYO archivist middleware contract.
39
+ */
40
+ export type InsertPayloadsBody = Payload | Payload[];
41
+ /**
42
+ * Response body for the insert endpoint. The archivist-stamped payloads
43
+ * that were stored, in order. Policy-rejected hashes and duplicate counts
44
+ * are delivered via response headers (`X-Datalake-Rejected`,
45
+ * `X-Datalake-Duplicates`).
46
+ */
47
+ export type InsertPayloadsResponse = StoredPayload[];
48
+ /**
49
+ * Datalake-specific extras that accompany an insert response. Read from
50
+ * response headers by `RestPayloadsClient`; a generic archivist client can
51
+ * ignore them.
52
+ */
53
+ export interface DatalakeInsertSummary {
54
+ /** Payloads in the request whose hash already existed in the datalake. */
55
+ duplicates: number;
56
+ /** Archivist-computed `_hash` values that were rejected by schema policy. */
57
+ rejected: string[];
58
+ }
59
+ /**
60
+ * Combined result returned by the `PayloadsClient.insert()` method. Pairs
61
+ * the bare archivist response array with the datalake-specific extras.
62
+ */
63
+ export interface InsertPayloadsResult {
64
+ inserted: StoredPayload[];
65
+ summary: DatalakeInsertSummary;
66
+ }
67
+ /**
68
+ * Combined result returned by the `PayloadsClient.next()` method. Pairs the
69
+ * bare archivist response array with the next-page cursor (when present).
70
+ */
71
+ export interface NextPayloadsResult {
72
+ nextCursor?: string;
73
+ payloads: StoredPayload[];
74
+ }
75
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/types/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAEvF;;;;;;;;GAQG;AACH,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAEvF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAC,CAAA;AAEpD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACtB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,EAAE,CAAA;AAElD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,EAAE,CAAA;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,aAAa,EAAE,CAAA;AAEpD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAA;IAClB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,OAAO,EAAE,qBAAqB,CAAA;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,aAAa,EAAE,CAAA;CAC1B"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Access-control role granted to a principal on a datalake.
3
+ * Maps 1:1 to XL1's DataLakeViewer (read) and DataLakeRunner (read/write) monikers.
4
+ */
5
+ export type DatalakeRole = 'viewer' | 'runner';
6
+ /**
7
+ * A principal identifier. Either a control-plane user id, or the reserved
8
+ * value `PUBLIC_PRINCIPAL` (`'public'`) which opens access to unauthenticated
9
+ * callers at the granted role.
10
+ */
11
+ export type DatalakePrincipal = string;
12
+ export declare const PUBLIC_PRINCIPAL = "public";
13
+ /**
14
+ * Type guard for the reserved `public` principal.
15
+ */
16
+ export declare function isPublicPrincipal(principal: DatalakePrincipal): boolean;
17
+ //# sourceMappingURL=Principal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Principal.d.ts","sourceRoot":"","sources":["../../../src/types/Principal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE9C;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAA;AAEtC,eAAO,MAAM,gBAAgB,WAAW,CAAA;AAExC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAEvE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Cloud regions where datalakes can be provisioned. Starts with AWS us-west-2;
3
+ * additional regions are added as the control plane expands.
4
+ */
5
+ export type DatalakeRegion = 'us-west-2' | 'us-east-1' | 'eu-west-1';
6
+ export declare const DATALAKE_REGIONS: readonly DatalakeRegion[];
7
+ export declare const DEFAULT_REGION: DatalakeRegion;
8
+ //# sourceMappingURL=Region.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../src/types/Region.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAA;AAEpE,eAAO,MAAM,gBAAgB,EAAE,SAAS,cAAc,EAAqD,CAAA;AAE3G,eAAO,MAAM,cAAc,EAAE,cAA4B,CAAA"}
@@ -0,0 +1,17 @@
1
+ /** Audience used by browser wallet JWTs for control-plane operations. */
2
+ export declare const DATALAKE_CONTROL_AUDIENCE = "aries-datalake-control";
3
+ /** Schema required on every wallet sign-in JWT accepted by Aries. */
4
+ export declare const DATALAKE_WALLET_JWT_SCHEMA = "network.xyo.auth.signin";
5
+ /** Browser operations intentionally exposed by the datalake control plane. */
6
+ export declare const DATALAKE_CONTROL_OPERATIONS: readonly ["datalake:create", "datalake:describe", "datalake:list"];
7
+ /** Browser operations intentionally exposed by the datalake data plane. */
8
+ export declare const DATALAKE_DATA_OPERATIONS: readonly ["payload:append", "payload:read", "usage:read"];
9
+ export type DatalakeControlOperation = typeof DATALAKE_CONTROL_OPERATIONS[number];
10
+ export type DatalakeDataOperation = typeof DATALAKE_DATA_OPERATIONS[number];
11
+ export type DatalakeOperation = DatalakeControlOperation | DatalakeDataOperation;
12
+ /** Canonical complete scope strings used when requesting browser wallet approval. */
13
+ export declare const DATALAKE_CONTROL_SCOPE: string;
14
+ export declare const DATALAKE_DATA_SCOPE: string;
15
+ export declare function isDatalakeControlOperation(value: string): value is DatalakeControlOperation;
16
+ export declare function isDatalakeDataOperation(value: string): value is DatalakeDataOperation;
17
+ //# sourceMappingURL=Scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../src/types/Scope.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,yBAAyB,2BAA2B,CAAA;AAEjE,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,4BAA4B,CAAA;AAEnE,8EAA8E;AAC9E,eAAO,MAAM,2BAA2B,oEAI9B,CAAA;AAEV,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,2DAI3B,CAAA;AAEV,MAAM,MAAM,wBAAwB,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAA;AACjF,MAAM,MAAM,qBAAqB,GAAG,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAA;AAC3E,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,GAAG,qBAAqB,CAAA;AAEhF,qFAAqF;AACrF,eAAO,MAAM,sBAAsB,QAAwC,CAAA;AAC3E,eAAO,MAAM,mBAAmB,QAAqC,CAAA;AAErE,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAE3F;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAErF"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Lifecycle state of a datalake on the control plane. The Provisioner worker
3
+ * transitions a datalake through these states; the CLI surfaces them via
4
+ * `aries datalake describe`.
5
+ */
6
+ export type DatalakeStatus = 'pending' | 'provisioning' | 'ready' | 'resizing' | 'deprovisioning' | 'deleted' | 'error';
7
+ //# sourceMappingURL=Status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../src/types/Status.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACpB,SAAS,GACT,cAAc,GACd,OAAO,GACP,UAAU,GACV,gBAAgB,GAChB,SAAS,GACT,OAAO,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Datalake service tiers. Each tier maps to a storage driver + resource profile
3
+ * on the control plane: small/medium use the shared hot pool, large gets a
4
+ * dedicated RestDataLake pod, archive uses the S3 + DynamoDB cold driver.
5
+ */
6
+ export type DatalakeTier = 'small' | 'medium' | 'large' | 'archive';
7
+ export declare const DATALAKE_TIERS: readonly DatalakeTier[];
8
+ //# sourceMappingURL=Tier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tier.d.ts","sourceRoot":"","sources":["../../../src/types/Tier.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAEnE,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAAqD,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { DatalakeRole } from './Principal.ts';
2
+ /**
3
+ * A scoped token minted for a single datalake + role. Safe to embed in SDKs
4
+ * or CI. Expires; refresh via the control plane.
5
+ */
6
+ export interface DatalakeToken {
7
+ /** Datalake id the token is scoped to. */
8
+ datalakeId: string;
9
+ /** ISO-8601 expiration. */
10
+ expiresAt: string;
11
+ /** Granted role. */
12
+ role: DatalakeRole;
13
+ /** The raw JWT string. */
14
+ token: string;
15
+ /** The URL the token should be used against. */
16
+ url: string;
17
+ }
18
+ //# sourceMappingURL=Token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../src/types/Token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAA;IAClB,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB;IACpB,IAAI,EAAE,YAAY,CAAA;IAClB,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAA;CACZ"}
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@ariestools/aries-datalake-core",
3
+ "version": "0.1.13",
4
+ "description": "Shared types and contracts for Aries on-demand XL1 datalake provisioning",
5
+ "keywords": [
6
+ "xylabs",
7
+ "ariestools",
8
+ "datalake",
9
+ "xl1",
10
+ "typescript"
11
+ ],
12
+ "homepage": "https://xylabs.com",
13
+ "bugs": {
14
+ "url": "git+https://github.com/xylabs/ariestools/issues",
15
+ "email": "support@xylabs.com"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/xylabs/ariestools.git"
20
+ },
21
+ "license": "LGPL-3.0-only",
22
+ "author": {
23
+ "name": "XY Labs Development Team",
24
+ "email": "support@xylabs.com",
25
+ "url": "https://xylabs.com"
26
+ },
27
+ "sideEffects": false,
28
+ "type": "module",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/node/index.d.ts",
32
+ "default": "./dist/node/index.mjs"
33
+ },
34
+ "./browser": {
35
+ "types": "./dist/browser/browser.d.ts",
36
+ "default": "./dist/browser/browser.mjs"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "README.md"
43
+ ],
44
+ "devDependencies": {
45
+ "@ariestools/toolchain": "~8.7.21",
46
+ "@ariestools/tsconfig": "~8.7.21",
47
+ "@types/node": "~26.1.1",
48
+ "@xyo-network/sdk-protocol": "~7.2.2",
49
+ "typescript": "~6.0.3",
50
+ "vite": "~8.1.5",
51
+ "vitest": "~4.1.10"
52
+ },
53
+ "peerDependencies": {
54
+ "@xyo-network/sdk-protocol": "^7.2"
55
+ },
56
+ "engines": {
57
+ "node": ">=18.17.1"
58
+ },
59
+ "engineStrict": true,
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "scripts": {
64
+ "package-compile": "package-compile-only && node ../../scripts/pruneBrowserDeclarations.mjs dist/browser/browser.d.ts"
65
+ }
66
+ }