@ericminassian/platform-core 0.2.0 → 0.3.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 (44) hide show
  1. package/dist/api.d.ts +947 -209
  2. package/dist/api.js +335 -1
  3. package/dist/api.js.map +1 -1
  4. package/dist/auth.d.ts +19 -0
  5. package/dist/auth.js +29 -0
  6. package/dist/auth.js.map +1 -1
  7. package/dist/bindings.d.ts +8 -2
  8. package/dist/bindings.js.map +1 -1
  9. package/dist/cloudfront-function.js +6 -0
  10. package/dist/cloudfront-function.js.map +1 -1
  11. package/dist/config.d.ts +3 -1
  12. package/dist/config.js +7 -0
  13. package/dist/config.js.map +1 -1
  14. package/dist/constants.d.ts +11 -0
  15. package/dist/constants.js.map +1 -1
  16. package/dist/manifest.d.ts +96 -92
  17. package/dist/manifest.js +96 -66
  18. package/dist/manifest.js.map +1 -1
  19. package/dist/naming.d.ts +13 -2
  20. package/dist/naming.js +12 -1
  21. package/dist/naming.js.map +1 -1
  22. package/dist/platform-api.d.ts +5337 -0
  23. package/dist/platform-api.js +343 -0
  24. package/dist/platform-api.js.map +1 -0
  25. package/dist/router/decide.d.ts +5 -1
  26. package/dist/router/decide.js +7 -2
  27. package/dist/router.d.ts +1 -1
  28. package/dist/telemetry.d.ts +236 -74
  29. package/dist/telemetry.js +97 -0
  30. package/dist/telemetry.js.map +1 -1
  31. package/package.json +10 -2
  32. package/src/api.ts +427 -231
  33. package/src/auth.ts +33 -0
  34. package/src/bindings.ts +8 -2
  35. package/src/cloudfront-function.ts +6 -0
  36. package/src/config.ts +3 -1
  37. package/src/constants.ts +12 -0
  38. package/src/manifest.ts +145 -87
  39. package/src/naming.ts +13 -2
  40. package/src/platform-api.ts +504 -0
  41. package/src/router/decide.d.ts +5 -1
  42. package/src/router/decide.js +7 -2
  43. package/src/router.ts +1 -1
  44. package/src/telemetry.ts +107 -85
@@ -5,83 +5,245 @@
5
5
  * aggregates rollups into the telemetry table. Logs Insights covers the rest
6
6
  * (search, traces) on demand. No CloudWatch custom metrics are ever created.
7
7
  */
8
- export type TelemetryKind = 'req' | 'err' | 'job' | 'span' | 'log' | 'metric' | 'env';
9
- interface Base {
10
- /** Marker so the subscription filter only matches platform lines. */
11
- _p: 1;
12
- t: TelemetryKind;
13
- /** Epoch milliseconds. */
14
- ts: number;
15
- app: string;
16
- stage: string;
17
- /** Deployment id. */
18
- rev: string;
19
- trace?: string;
20
- span?: string;
21
- parent?: string;
22
- }
23
- export interface RequestEvent extends Base {
24
- t: 'req';
25
- method: string;
8
+ import { Schema } from 'effect';
9
+ export declare const TelemetryKind: Schema.Literals<readonly ["req", "err", "job", "span", "log", "metric", "env"]>;
10
+ export type TelemetryKind = typeof TelemetryKind.Type;
11
+ export declare const RequestEvent: Schema.Struct<{
12
+ readonly _p: Schema.Literal<1>;
13
+ readonly ts: Schema.Finite;
14
+ readonly app: Schema.String;
15
+ readonly stage: Schema.String;
16
+ readonly rev: Schema.String;
17
+ readonly trace: Schema.optional<Schema.String>;
18
+ readonly span: Schema.optional<Schema.String>;
19
+ readonly parent: Schema.optional<Schema.String>;
20
+ readonly t: Schema.Literal<"req">;
21
+ readonly method: Schema.String;
26
22
  /** Route pattern when known (`/api/todos/:id`), else the raw path. */
27
- route: string;
28
- path: string;
29
- status: number;
23
+ readonly route: Schema.String;
24
+ readonly path: Schema.String;
25
+ readonly status: Schema.Finite;
30
26
  /** Duration in ms. */
31
- dur: number;
32
- bytes?: number;
33
- country?: string;
27
+ readonly dur: Schema.Finite;
28
+ readonly bytes: Schema.optional<Schema.Finite>;
29
+ readonly country: Schema.optional<Schema.String>;
34
30
  /** Hashed user id when signed in. */
35
- user?: string;
36
- cold?: boolean;
37
- }
38
- export interface ErrorEvent extends Base {
39
- t: 'err';
40
- source: 'http' | 'job' | 'unhandled' | 'log';
41
- name: string;
42
- message: string;
43
- stack?: string;
44
- route?: string;
45
- job?: string;
46
- fingerprint: string;
47
- }
48
- export interface JobEvent extends Base {
49
- t: 'job';
50
- kind: 'queue' | 'event' | 'cron' | 'invoke';
51
- name: string;
52
- status: 'ok' | 'error';
53
- dur: number;
54
- attempt?: number;
55
- }
56
- export interface SpanEvent extends Base {
57
- t: 'span';
31
+ readonly user: Schema.optional<Schema.String>;
32
+ readonly cold: Schema.optional<Schema.Boolean>;
33
+ }>;
34
+ export type RequestEvent = typeof RequestEvent.Type;
35
+ export declare const ErrorEvent: Schema.Struct<{
36
+ readonly _p: Schema.Literal<1>;
37
+ readonly ts: Schema.Finite;
38
+ readonly app: Schema.String;
39
+ readonly stage: Schema.String;
40
+ readonly rev: Schema.String;
41
+ readonly trace: Schema.optional<Schema.String>;
42
+ readonly span: Schema.optional<Schema.String>;
43
+ readonly parent: Schema.optional<Schema.String>;
44
+ readonly t: Schema.Literal<"err">;
45
+ readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
46
+ readonly name: Schema.String;
47
+ readonly message: Schema.String;
48
+ readonly stack: Schema.optional<Schema.String>;
49
+ readonly route: Schema.optional<Schema.String>;
50
+ readonly job: Schema.optional<Schema.String>;
51
+ readonly fingerprint: Schema.String;
52
+ }>;
53
+ export type ErrorEvent = typeof ErrorEvent.Type;
54
+ export declare const JobEvent: Schema.Struct<{
55
+ readonly _p: Schema.Literal<1>;
56
+ readonly ts: Schema.Finite;
57
+ readonly app: Schema.String;
58
+ readonly stage: Schema.String;
59
+ readonly rev: Schema.String;
60
+ readonly trace: Schema.optional<Schema.String>;
61
+ readonly span: Schema.optional<Schema.String>;
62
+ readonly parent: Schema.optional<Schema.String>;
63
+ readonly t: Schema.Literal<"job">;
64
+ readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
65
+ readonly name: Schema.String;
66
+ readonly status: Schema.Literals<readonly ["ok", "error"]>;
67
+ readonly dur: Schema.Finite;
68
+ readonly attempt: Schema.optional<Schema.Finite>;
69
+ }>;
70
+ export type JobEvent = typeof JobEvent.Type;
71
+ export declare const SpanEvent: Schema.Struct<{
72
+ readonly _p: Schema.Literal<1>;
73
+ readonly ts: Schema.Finite;
74
+ readonly app: Schema.String;
75
+ readonly stage: Schema.String;
76
+ readonly rev: Schema.String;
77
+ readonly trace: Schema.optional<Schema.String>;
78
+ readonly span: Schema.optional<Schema.String>;
79
+ readonly parent: Schema.optional<Schema.String>;
80
+ readonly t: Schema.Literal<"span">;
58
81
  /** `db.get`, `db.query`, `queue.send`, `events.publish`, `storage.put`, `fetch`, ... */
59
- op: string;
60
- name?: string;
61
- dur: number;
62
- status: 'ok' | 'error';
82
+ readonly op: Schema.String;
83
+ readonly name: Schema.optional<Schema.String>;
84
+ readonly dur: Schema.Finite;
85
+ readonly status: Schema.Literals<readonly ["ok", "error"]>;
63
86
  /** Start offset relative to the trace root, ms. */
64
- start?: number;
65
- }
66
- export interface LogEvent extends Base {
67
- t: 'log';
68
- level: 'debug' | 'info' | 'warn' | 'error';
69
- msg: string;
70
- [field: string]: unknown;
71
- }
72
- export interface MetricEvent extends Base {
73
- t: 'metric';
74
- name: string;
75
- value: number;
76
- unit?: string;
77
- }
78
- export interface EnvEvent extends Base {
79
- t: 'env';
80
- event: 'start' | 'stop';
81
- runtime: 'web' | 'worker';
82
- initMs?: number;
83
- }
84
- export type TelemetryEvent = RequestEvent | ErrorEvent | JobEvent | SpanEvent | LogEvent | MetricEvent | EnvEvent;
87
+ readonly start: Schema.optional<Schema.Finite>;
88
+ }>;
89
+ export type SpanEvent = typeof SpanEvent.Type;
90
+ /** A log line; any other fields are the structured fields it was logged with. */
91
+ export declare const LogEvent: Schema.StructWithRest<Schema.Struct<{
92
+ readonly _p: Schema.Literal<1>;
93
+ readonly ts: Schema.Finite;
94
+ readonly app: Schema.String;
95
+ readonly stage: Schema.String;
96
+ readonly rev: Schema.String;
97
+ readonly trace: Schema.optional<Schema.String>;
98
+ readonly span: Schema.optional<Schema.String>;
99
+ readonly parent: Schema.optional<Schema.String>;
100
+ readonly t: Schema.Literal<"log">;
101
+ readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
102
+ readonly msg: Schema.String;
103
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
104
+ export type LogEvent = typeof LogEvent.Type;
105
+ export declare const MetricEvent: Schema.Struct<{
106
+ readonly _p: Schema.Literal<1>;
107
+ readonly ts: Schema.Finite;
108
+ readonly app: Schema.String;
109
+ readonly stage: Schema.String;
110
+ readonly rev: Schema.String;
111
+ readonly trace: Schema.optional<Schema.String>;
112
+ readonly span: Schema.optional<Schema.String>;
113
+ readonly parent: Schema.optional<Schema.String>;
114
+ readonly t: Schema.Literal<"metric">;
115
+ readonly name: Schema.String;
116
+ readonly value: Schema.Finite;
117
+ readonly unit: Schema.optional<Schema.String>;
118
+ }>;
119
+ export type MetricEvent = typeof MetricEvent.Type;
120
+ export declare const EnvEvent: Schema.Struct<{
121
+ readonly _p: Schema.Literal<1>;
122
+ readonly ts: Schema.Finite;
123
+ readonly app: Schema.String;
124
+ readonly stage: Schema.String;
125
+ readonly rev: Schema.String;
126
+ readonly trace: Schema.optional<Schema.String>;
127
+ readonly span: Schema.optional<Schema.String>;
128
+ readonly parent: Schema.optional<Schema.String>;
129
+ readonly t: Schema.Literal<"env">;
130
+ readonly event: Schema.Literals<readonly ["start", "stop"]>;
131
+ readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
132
+ readonly initMs: Schema.optional<Schema.Finite>;
133
+ }>;
134
+ export type EnvEvent = typeof EnvEvent.Type;
135
+ /** One telemetry line, as the SDK writes it and the telemetry processor reads it. */
136
+ export declare const TelemetryEvent: Schema.Union<readonly [Schema.Struct<{
137
+ readonly _p: Schema.Literal<1>;
138
+ readonly ts: Schema.Finite;
139
+ readonly app: Schema.String;
140
+ readonly stage: Schema.String;
141
+ readonly rev: Schema.String;
142
+ readonly trace: Schema.optional<Schema.String>;
143
+ readonly span: Schema.optional<Schema.String>;
144
+ readonly parent: Schema.optional<Schema.String>;
145
+ readonly t: Schema.Literal<"req">;
146
+ readonly method: Schema.String;
147
+ /** Route pattern when known (`/api/todos/:id`), else the raw path. */
148
+ readonly route: Schema.String;
149
+ readonly path: Schema.String;
150
+ readonly status: Schema.Finite;
151
+ /** Duration in ms. */
152
+ readonly dur: Schema.Finite;
153
+ readonly bytes: Schema.optional<Schema.Finite>;
154
+ readonly country: Schema.optional<Schema.String>;
155
+ /** Hashed user id when signed in. */
156
+ readonly user: Schema.optional<Schema.String>;
157
+ readonly cold: Schema.optional<Schema.Boolean>;
158
+ }>, Schema.Struct<{
159
+ readonly _p: Schema.Literal<1>;
160
+ readonly ts: Schema.Finite;
161
+ readonly app: Schema.String;
162
+ readonly stage: Schema.String;
163
+ readonly rev: Schema.String;
164
+ readonly trace: Schema.optional<Schema.String>;
165
+ readonly span: Schema.optional<Schema.String>;
166
+ readonly parent: Schema.optional<Schema.String>;
167
+ readonly t: Schema.Literal<"err">;
168
+ readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
169
+ readonly name: Schema.String;
170
+ readonly message: Schema.String;
171
+ readonly stack: Schema.optional<Schema.String>;
172
+ readonly route: Schema.optional<Schema.String>;
173
+ readonly job: Schema.optional<Schema.String>;
174
+ readonly fingerprint: Schema.String;
175
+ }>, Schema.Struct<{
176
+ readonly _p: Schema.Literal<1>;
177
+ readonly ts: Schema.Finite;
178
+ readonly app: Schema.String;
179
+ readonly stage: Schema.String;
180
+ readonly rev: Schema.String;
181
+ readonly trace: Schema.optional<Schema.String>;
182
+ readonly span: Schema.optional<Schema.String>;
183
+ readonly parent: Schema.optional<Schema.String>;
184
+ readonly t: Schema.Literal<"job">;
185
+ readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
186
+ readonly name: Schema.String;
187
+ readonly status: Schema.Literals<readonly ["ok", "error"]>;
188
+ readonly dur: Schema.Finite;
189
+ readonly attempt: Schema.optional<Schema.Finite>;
190
+ }>, Schema.Struct<{
191
+ readonly _p: Schema.Literal<1>;
192
+ readonly ts: Schema.Finite;
193
+ readonly app: Schema.String;
194
+ readonly stage: Schema.String;
195
+ readonly rev: Schema.String;
196
+ readonly trace: Schema.optional<Schema.String>;
197
+ readonly span: Schema.optional<Schema.String>;
198
+ readonly parent: Schema.optional<Schema.String>;
199
+ readonly t: Schema.Literal<"span">;
200
+ /** `db.get`, `db.query`, `queue.send`, `events.publish`, `storage.put`, `fetch`, ... */
201
+ readonly op: Schema.String;
202
+ readonly name: Schema.optional<Schema.String>;
203
+ readonly dur: Schema.Finite;
204
+ readonly status: Schema.Literals<readonly ["ok", "error"]>;
205
+ /** Start offset relative to the trace root, ms. */
206
+ readonly start: Schema.optional<Schema.Finite>;
207
+ }>, Schema.StructWithRest<Schema.Struct<{
208
+ readonly _p: Schema.Literal<1>;
209
+ readonly ts: Schema.Finite;
210
+ readonly app: Schema.String;
211
+ readonly stage: Schema.String;
212
+ readonly rev: Schema.String;
213
+ readonly trace: Schema.optional<Schema.String>;
214
+ readonly span: Schema.optional<Schema.String>;
215
+ readonly parent: Schema.optional<Schema.String>;
216
+ readonly t: Schema.Literal<"log">;
217
+ readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
218
+ readonly msg: Schema.String;
219
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
220
+ readonly _p: Schema.Literal<1>;
221
+ readonly ts: Schema.Finite;
222
+ readonly app: Schema.String;
223
+ readonly stage: Schema.String;
224
+ readonly rev: Schema.String;
225
+ readonly trace: Schema.optional<Schema.String>;
226
+ readonly span: Schema.optional<Schema.String>;
227
+ readonly parent: Schema.optional<Schema.String>;
228
+ readonly t: Schema.Literal<"metric">;
229
+ readonly name: Schema.String;
230
+ readonly value: Schema.Finite;
231
+ readonly unit: Schema.optional<Schema.String>;
232
+ }>, Schema.Struct<{
233
+ readonly _p: Schema.Literal<1>;
234
+ readonly ts: Schema.Finite;
235
+ readonly app: Schema.String;
236
+ readonly stage: Schema.String;
237
+ readonly rev: Schema.String;
238
+ readonly trace: Schema.optional<Schema.String>;
239
+ readonly span: Schema.optional<Schema.String>;
240
+ readonly parent: Schema.optional<Schema.String>;
241
+ readonly t: Schema.Literal<"env">;
242
+ readonly event: Schema.Literals<readonly ["start", "stop"]>;
243
+ readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
244
+ readonly initMs: Schema.optional<Schema.Finite>;
245
+ }>]>;
246
+ export type TelemetryEvent = typeof TelemetryEvent.Type;
85
247
  /** Account-level subscription filter: only aggregate-worthy kinds reach the processor. */
86
248
  export declare const TELEMETRY_FILTER_PATTERN = "{ ($._p = 1) && (($.t = \"req\") || ($.t = \"err\") || ($.t = \"job\") || ($.t = \"metric\") || ($.t = \"env\")) }";
87
249
  export declare function isTelemetryEvent(v: unknown): v is TelemetryEvent;
@@ -90,7 +252,8 @@ export declare const LATENCY_BUCKETS_MS: readonly [5, 10, 25, 50, 100, 250, 500,
90
252
  export declare function latencyBucket(ms: number): number;
91
253
  /** Approximate percentile (upper bound of the bucket containing it). `hist[i]` = count in bucket i. */
92
254
  export declare function percentile(hist: readonly number[], p: number): number | null;
93
- export type Resolution = '1m' | '1h' | '1d';
255
+ export declare const Resolution: Schema.Literals<readonly ["1m", "1h", "1d"]>;
256
+ export type Resolution = typeof Resolution.Type;
94
257
  export declare const RESOLUTION_MS: Record<Resolution, number>;
95
258
  /** How long each resolution is kept (DynamoDB TTL). */
96
259
  export declare const RESOLUTION_TTL_DAYS: Record<Resolution, number>;
@@ -123,4 +286,3 @@ export declare function topFrame(stack: string | undefined): string;
123
286
  /** Stable short hash (FNV-1a 32-bit, hex) — no crypto dependency so the SDK stays tiny. */
124
287
  export declare function fingerprint(parts: readonly string[]): string;
125
288
  export declare function errorFingerprint(name: string, message: string, stack?: string): string;
126
- export {};
package/dist/telemetry.js CHANGED
@@ -5,6 +5,99 @@
5
5
  * aggregates rollups into the telemetry table. Logs Insights covers the rest
6
6
  * (search, traces) on demand. No CloudWatch custom metrics are ever created.
7
7
  */
8
+ import { Schema } from 'effect';
9
+ export const TelemetryKind = Schema.Literals(['req', 'err', 'job', 'span', 'log', 'metric', 'env']);
10
+ const base = {
11
+ /** Marker so the subscription filter only matches platform lines. */
12
+ _p: Schema.Literal(1),
13
+ /** Epoch milliseconds. */
14
+ ts: Schema.Finite,
15
+ app: Schema.String,
16
+ stage: Schema.String,
17
+ /** Deployment id. */
18
+ rev: Schema.String,
19
+ trace: Schema.optional(Schema.String),
20
+ span: Schema.optional(Schema.String),
21
+ parent: Schema.optional(Schema.String),
22
+ };
23
+ export const RequestEvent = Schema.Struct({
24
+ ...base,
25
+ t: Schema.Literal('req'),
26
+ method: Schema.String,
27
+ /** Route pattern when known (`/api/todos/:id`), else the raw path. */
28
+ route: Schema.String,
29
+ path: Schema.String,
30
+ status: Schema.Finite,
31
+ /** Duration in ms. */
32
+ dur: Schema.Finite,
33
+ bytes: Schema.optional(Schema.Finite),
34
+ country: Schema.optional(Schema.String),
35
+ /** Hashed user id when signed in. */
36
+ user: Schema.optional(Schema.String),
37
+ cold: Schema.optional(Schema.Boolean),
38
+ });
39
+ export const ErrorEvent = Schema.Struct({
40
+ ...base,
41
+ t: Schema.Literal('err'),
42
+ source: Schema.Literals(['http', 'job', 'unhandled', 'log']),
43
+ name: Schema.String,
44
+ message: Schema.String,
45
+ stack: Schema.optional(Schema.String),
46
+ route: Schema.optional(Schema.String),
47
+ job: Schema.optional(Schema.String),
48
+ fingerprint: Schema.String,
49
+ });
50
+ export const JobEvent = Schema.Struct({
51
+ ...base,
52
+ t: Schema.Literal('job'),
53
+ kind: Schema.Literals(['queue', 'event', 'cron', 'invoke']),
54
+ name: Schema.String,
55
+ status: Schema.Literals(['ok', 'error']),
56
+ dur: Schema.Finite,
57
+ attempt: Schema.optional(Schema.Finite),
58
+ });
59
+ export const SpanEvent = Schema.Struct({
60
+ ...base,
61
+ t: Schema.Literal('span'),
62
+ /** `db.get`, `db.query`, `queue.send`, `events.publish`, `storage.put`, `fetch`, ... */
63
+ op: Schema.String,
64
+ name: Schema.optional(Schema.String),
65
+ dur: Schema.Finite,
66
+ status: Schema.Literals(['ok', 'error']),
67
+ /** Start offset relative to the trace root, ms. */
68
+ start: Schema.optional(Schema.Finite),
69
+ });
70
+ /** A log line; any other fields are the structured fields it was logged with. */
71
+ export const LogEvent = Schema.StructWithRest(Schema.Struct({
72
+ ...base,
73
+ t: Schema.Literal('log'),
74
+ level: Schema.Literals(['debug', 'info', 'warn', 'error']),
75
+ msg: Schema.String,
76
+ }), [Schema.Record(Schema.String, Schema.Unknown)]);
77
+ export const MetricEvent = Schema.Struct({
78
+ ...base,
79
+ t: Schema.Literal('metric'),
80
+ name: Schema.String,
81
+ value: Schema.Finite,
82
+ unit: Schema.optional(Schema.String),
83
+ });
84
+ export const EnvEvent = Schema.Struct({
85
+ ...base,
86
+ t: Schema.Literal('env'),
87
+ event: Schema.Literals(['start', 'stop']),
88
+ runtime: Schema.Literals(['web', 'worker']),
89
+ initMs: Schema.optional(Schema.Finite),
90
+ });
91
+ /** One telemetry line, as the SDK writes it and the telemetry processor reads it. */
92
+ export const TelemetryEvent = Schema.Union([
93
+ RequestEvent,
94
+ ErrorEvent,
95
+ JobEvent,
96
+ SpanEvent,
97
+ LogEvent,
98
+ MetricEvent,
99
+ EnvEvent,
100
+ ]);
8
101
  /** Account-level subscription filter: only aggregate-worthy kinds reach the processor. */
9
102
  export const TELEMETRY_FILTER_PATTERN = '{ ($._p = 1) && (($.t = "req") || ($.t = "err") || ($.t = "job") || ($.t = "metric") || ($.t = "env")) }';
10
103
  export function isTelemetryEvent(v) {
@@ -38,6 +131,10 @@ export function percentile(hist, p) {
38
131
  }
39
132
  return null;
40
133
  }
134
+ // ---------------------------------------------------------------------------
135
+ // Rollups (telemetry table layout)
136
+ // ---------------------------------------------------------------------------
137
+ export const Resolution = Schema.Literals(['1m', '1h', '1d']);
41
138
  export const RESOLUTION_MS = { '1m': 60_000, '1h': 3_600_000, '1d': 86_400_000 };
42
139
  /** How long each resolution is kept (DynamoDB TTL). */
43
140
  export const RESOLUTION_TTL_DAYS = { '1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,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;YAAE,SAAS;QAChE,OAAO,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,WAAW,CAAC,KAAwB;IAClD,IAAI,CAAC,GAAG,UAAU,CAAC;IACnB,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACjC,CAAC,IAAI,EAAE,CAAC,WAAW,CAAC,CAAC,CAAE,CAAC;QACxB,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,OAAe,EAAE,KAAc;IAC5E,OAAO,WAAW,CAAC,CAAC,IAAI,EAAE,qBAAqB,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC9E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ericminassian/platform-core",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Shared contracts for the platform: naming, manifest schema, bindings, telemetry, routing.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -14,10 +14,18 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "default": "./dist/index.js"
16
16
  },
17
+ "./auth": {
18
+ "types": "./dist/auth.d.ts",
19
+ "default": "./dist/auth.js"
20
+ },
17
21
  "./cloudfront-function": {
18
22
  "types": "./dist/cloudfront-function.d.ts",
19
23
  "default": "./dist/cloudfront-function.js"
20
24
  },
25
+ "./platform-api": {
26
+ "types": "./dist/platform-api.d.ts",
27
+ "default": "./dist/platform-api.js"
28
+ },
21
29
  "./router/decide.js": "./dist/router/decide.js"
22
30
  },
23
31
  "publishConfig": {
@@ -28,7 +36,7 @@
28
36
  "src"
29
37
  ],
30
38
  "dependencies": {
31
- "zod": "^4.6.7"
39
+ "effect": "^4.1.4"
32
40
  },
33
41
  "scripts": {
34
42
  "build": "tsc -p tsconfig.build.json && mkdir -p dist/router && cp src/router/decide.js src/router/decide.d.ts dist/router/",