@suss/ir-core 0.5.10 → 0.6.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/README.md +1 -1
- package/dist/{chunk-WKR5SU4N.js → chunk-TEXSN75M.js} +32 -18
- package/dist/index.cjs +95 -25
- package/dist/index.d.cts +51 -11
- package/dist/index.d.ts +51 -11
- package/dist/index.js +60 -8
- package/dist/{schemas-CaX7_SZ4.d.cts → schemas-D6hKT-zV.d.cts} +15 -24
- package/dist/{schemas-CaX7_SZ4.d.ts → schemas-D6hKT-zV.d.ts} +15 -24
- package/dist/schemas.cjs +33 -19
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-FFPB2UKY.js +0 -625
- package/dist/schemas-N9GyG0Sn.d.cts +0 -432
- package/dist/schemas-N9GyG0Sn.d.ts +0 -432
|
@@ -124,14 +124,11 @@ declare const SemanticsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
124
124
|
instanceName: z.ZodString;
|
|
125
125
|
name: z.ZodLiteral<"runtime-config">;
|
|
126
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
127
|
-
name: z.ZodLiteral<"storage
|
|
128
|
-
storageSystem: z.
|
|
129
|
-
postgres: "postgres";
|
|
130
|
-
mysql: "mysql";
|
|
131
|
-
sqlite: "sqlite";
|
|
132
|
-
}>;
|
|
127
|
+
name: z.ZodLiteral<"storage">;
|
|
128
|
+
storageSystem: z.ZodString;
|
|
133
129
|
scope: z.ZodString;
|
|
134
|
-
|
|
130
|
+
container: z.ZodNullable<z.ZodString>;
|
|
131
|
+
accessPath: z.ZodNullable<z.ZodString>;
|
|
135
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
136
133
|
name: z.ZodLiteral<"message-bus">;
|
|
137
134
|
messageBus: z.ZodEnum<{
|
|
@@ -192,17 +189,14 @@ declare const RuntimeConfigSemanticsSchema: z.ZodObject<{
|
|
|
192
189
|
}, z.core.$strip>;
|
|
193
190
|
type RuntimeConfigSemantics = z.infer<typeof RuntimeConfigSemanticsSchema>;
|
|
194
191
|
|
|
195
|
-
declare const
|
|
196
|
-
name: z.ZodLiteral<"storage
|
|
197
|
-
storageSystem: z.
|
|
198
|
-
postgres: "postgres";
|
|
199
|
-
mysql: "mysql";
|
|
200
|
-
sqlite: "sqlite";
|
|
201
|
-
}>;
|
|
192
|
+
declare const StorageSemanticsSchema: z.ZodObject<{
|
|
193
|
+
name: z.ZodLiteral<"storage">;
|
|
194
|
+
storageSystem: z.ZodString;
|
|
202
195
|
scope: z.ZodString;
|
|
203
|
-
|
|
196
|
+
container: z.ZodNullable<z.ZodString>;
|
|
197
|
+
accessPath: z.ZodNullable<z.ZodString>;
|
|
204
198
|
}, z.core.$strip>;
|
|
205
|
-
type
|
|
199
|
+
type StorageSemantics = z.infer<typeof StorageSemanticsSchema>;
|
|
206
200
|
|
|
207
201
|
/**
|
|
208
202
|
* @suss/ir-core schemas: primitives shared by every suss IR.
|
|
@@ -320,14 +314,11 @@ declare const BoundaryBindingSchema: z.ZodObject<{
|
|
|
320
314
|
instanceName: z.ZodString;
|
|
321
315
|
name: z.ZodLiteral<"runtime-config">;
|
|
322
316
|
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
-
name: z.ZodLiteral<"storage
|
|
324
|
-
storageSystem: z.
|
|
325
|
-
postgres: "postgres";
|
|
326
|
-
mysql: "mysql";
|
|
327
|
-
sqlite: "sqlite";
|
|
328
|
-
}>;
|
|
317
|
+
name: z.ZodLiteral<"storage">;
|
|
318
|
+
storageSystem: z.ZodString;
|
|
329
319
|
scope: z.ZodString;
|
|
330
|
-
|
|
320
|
+
container: z.ZodNullable<z.ZodString>;
|
|
321
|
+
accessPath: z.ZodNullable<z.ZodString>;
|
|
331
322
|
}, z.core.$strip>, z.ZodObject<{
|
|
332
323
|
name: z.ZodLiteral<"message-bus">;
|
|
333
324
|
messageBus: z.ZodEnum<{
|
|
@@ -429,4 +420,4 @@ declare const TypeShapeSchema: z.ZodType<TypeShape>;
|
|
|
429
420
|
*/
|
|
430
421
|
declare function withDefinitionsInlined(shape: TypeShape, definitions: Record<string, TypeShape> | undefined, depth?: number, inProgress?: ReadonlySet<string>): TypeShape;
|
|
431
422
|
|
|
432
|
-
export { BoundaryBindingSchema as B, ConfidenceInfoSchema as C, type DeployableUnit as D, type FunctionCallSemantics as F, type GraphqlOperationSemantics as G, type MessageBusSemantics as M, type RestSemantics as R, type Semantics as S, type TypeShape as T, ConfidenceLevelSchema as a, ConfidenceSourceSchema as b, CorroborationSchema as c, SourceLocationSchema as d, type MessageBusTechnology as e, DeployableUnitSchema as f, FunctionCallSemanticsSchema as g, GraphqlOperationSemanticsSchema as h, type GraphqlResolverSemantics as i, GraphqlResolverSemanticsSchema as j, MessageBusSemanticsSchema as k, RestSemanticsSchema as l, type RuntimeConfigSemantics as m, RuntimeConfigSemanticsSchema as n, SemanticsSchema as o, type
|
|
423
|
+
export { BoundaryBindingSchema as B, ConfidenceInfoSchema as C, type DeployableUnit as D, type FunctionCallSemantics as F, type GraphqlOperationSemantics as G, type MessageBusSemantics as M, type RestSemantics as R, type Semantics as S, type TypeShape as T, ConfidenceLevelSchema as a, ConfidenceSourceSchema as b, CorroborationSchema as c, SourceLocationSchema as d, type MessageBusTechnology as e, DeployableUnitSchema as f, FunctionCallSemanticsSchema as g, GraphqlOperationSemanticsSchema as h, type GraphqlResolverSemantics as i, GraphqlResolverSemanticsSchema as j, MessageBusSemanticsSchema as k, RestSemanticsSchema as l, type RuntimeConfigSemantics as m, RuntimeConfigSemanticsSchema as n, SemanticsSchema as o, type StorageSemantics as p, StorageSemanticsSchema as q, TypeShapeSchema as r, ecsContainerInstanceName as s, methodsAgree as t, normalizePath as u, routePathAdmits as v, typeDefinitionKey as w, withDefinitionsInlined as x };
|
|
@@ -124,14 +124,11 @@ declare const SemanticsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
124
124
|
instanceName: z.ZodString;
|
|
125
125
|
name: z.ZodLiteral<"runtime-config">;
|
|
126
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
127
|
-
name: z.ZodLiteral<"storage
|
|
128
|
-
storageSystem: z.
|
|
129
|
-
postgres: "postgres";
|
|
130
|
-
mysql: "mysql";
|
|
131
|
-
sqlite: "sqlite";
|
|
132
|
-
}>;
|
|
127
|
+
name: z.ZodLiteral<"storage">;
|
|
128
|
+
storageSystem: z.ZodString;
|
|
133
129
|
scope: z.ZodString;
|
|
134
|
-
|
|
130
|
+
container: z.ZodNullable<z.ZodString>;
|
|
131
|
+
accessPath: z.ZodNullable<z.ZodString>;
|
|
135
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
136
133
|
name: z.ZodLiteral<"message-bus">;
|
|
137
134
|
messageBus: z.ZodEnum<{
|
|
@@ -192,17 +189,14 @@ declare const RuntimeConfigSemanticsSchema: z.ZodObject<{
|
|
|
192
189
|
}, z.core.$strip>;
|
|
193
190
|
type RuntimeConfigSemantics = z.infer<typeof RuntimeConfigSemanticsSchema>;
|
|
194
191
|
|
|
195
|
-
declare const
|
|
196
|
-
name: z.ZodLiteral<"storage
|
|
197
|
-
storageSystem: z.
|
|
198
|
-
postgres: "postgres";
|
|
199
|
-
mysql: "mysql";
|
|
200
|
-
sqlite: "sqlite";
|
|
201
|
-
}>;
|
|
192
|
+
declare const StorageSemanticsSchema: z.ZodObject<{
|
|
193
|
+
name: z.ZodLiteral<"storage">;
|
|
194
|
+
storageSystem: z.ZodString;
|
|
202
195
|
scope: z.ZodString;
|
|
203
|
-
|
|
196
|
+
container: z.ZodNullable<z.ZodString>;
|
|
197
|
+
accessPath: z.ZodNullable<z.ZodString>;
|
|
204
198
|
}, z.core.$strip>;
|
|
205
|
-
type
|
|
199
|
+
type StorageSemantics = z.infer<typeof StorageSemanticsSchema>;
|
|
206
200
|
|
|
207
201
|
/**
|
|
208
202
|
* @suss/ir-core schemas: primitives shared by every suss IR.
|
|
@@ -320,14 +314,11 @@ declare const BoundaryBindingSchema: z.ZodObject<{
|
|
|
320
314
|
instanceName: z.ZodString;
|
|
321
315
|
name: z.ZodLiteral<"runtime-config">;
|
|
322
316
|
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
-
name: z.ZodLiteral<"storage
|
|
324
|
-
storageSystem: z.
|
|
325
|
-
postgres: "postgres";
|
|
326
|
-
mysql: "mysql";
|
|
327
|
-
sqlite: "sqlite";
|
|
328
|
-
}>;
|
|
317
|
+
name: z.ZodLiteral<"storage">;
|
|
318
|
+
storageSystem: z.ZodString;
|
|
329
319
|
scope: z.ZodString;
|
|
330
|
-
|
|
320
|
+
container: z.ZodNullable<z.ZodString>;
|
|
321
|
+
accessPath: z.ZodNullable<z.ZodString>;
|
|
331
322
|
}, z.core.$strip>, z.ZodObject<{
|
|
332
323
|
name: z.ZodLiteral<"message-bus">;
|
|
333
324
|
messageBus: z.ZodEnum<{
|
|
@@ -429,4 +420,4 @@ declare const TypeShapeSchema: z.ZodType<TypeShape>;
|
|
|
429
420
|
*/
|
|
430
421
|
declare function withDefinitionsInlined(shape: TypeShape, definitions: Record<string, TypeShape> | undefined, depth?: number, inProgress?: ReadonlySet<string>): TypeShape;
|
|
431
422
|
|
|
432
|
-
export { BoundaryBindingSchema as B, ConfidenceInfoSchema as C, type DeployableUnit as D, type FunctionCallSemantics as F, type GraphqlOperationSemantics as G, type MessageBusSemantics as M, type RestSemantics as R, type Semantics as S, type TypeShape as T, ConfidenceLevelSchema as a, ConfidenceSourceSchema as b, CorroborationSchema as c, SourceLocationSchema as d, type MessageBusTechnology as e, DeployableUnitSchema as f, FunctionCallSemanticsSchema as g, GraphqlOperationSemanticsSchema as h, type GraphqlResolverSemantics as i, GraphqlResolverSemanticsSchema as j, MessageBusSemanticsSchema as k, RestSemanticsSchema as l, type RuntimeConfigSemantics as m, RuntimeConfigSemanticsSchema as n, SemanticsSchema as o, type
|
|
423
|
+
export { BoundaryBindingSchema as B, ConfidenceInfoSchema as C, type DeployableUnit as D, type FunctionCallSemantics as F, type GraphqlOperationSemantics as G, type MessageBusSemantics as M, type RestSemantics as R, type Semantics as S, type TypeShape as T, ConfidenceLevelSchema as a, ConfidenceSourceSchema as b, CorroborationSchema as c, SourceLocationSchema as d, type MessageBusTechnology as e, DeployableUnitSchema as f, FunctionCallSemanticsSchema as g, GraphqlOperationSemanticsSchema as h, type GraphqlResolverSemantics as i, GraphqlResolverSemanticsSchema as j, MessageBusSemanticsSchema as k, RestSemanticsSchema as l, type RuntimeConfigSemantics as m, RuntimeConfigSemanticsSchema as n, SemanticsSchema as o, type StorageSemantics as p, StorageSemanticsSchema as q, TypeShapeSchema as r, ecsContainerInstanceName as s, methodsAgree as t, normalizePath as u, routePathAdmits as v, typeDefinitionKey as w, withDefinitionsInlined as x };
|
package/dist/schemas.cjs
CHANGED
|
@@ -34,7 +34,7 @@ __export(schemas_exports, {
|
|
|
34
34
|
RuntimeConfigSemanticsSchema: () => RuntimeConfigSemanticsSchema,
|
|
35
35
|
SemanticsSchema: () => SemanticsSchema,
|
|
36
36
|
SourceLocationSchema: () => SourceLocationSchema,
|
|
37
|
-
|
|
37
|
+
StorageSemanticsSchema: () => StorageSemanticsSchema,
|
|
38
38
|
TypeShapeSchema: () => TypeShapeSchema,
|
|
39
39
|
typeDefinitionKey: () => typeDefinitionKey,
|
|
40
40
|
withDefinitionsInlined: () => withDefinitionsInlined
|
|
@@ -446,29 +446,43 @@ var runtimeConfigSemantics = defineBoundarySemantics({
|
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
|
|
449
|
-
// src/semantics/
|
|
449
|
+
// src/semantics/storage.ts
|
|
450
450
|
var import_zod8 = require("zod");
|
|
451
|
-
var
|
|
452
|
-
name: import_zod8.z.literal("storage
|
|
453
|
-
storageSystem: import_zod8.z.enum(["postgres", "mysql", "sqlite"]),
|
|
451
|
+
var StorageSemanticsSchema = import_zod8.z.object({
|
|
452
|
+
name: import_zod8.z.literal("storage"),
|
|
454
453
|
/**
|
|
455
|
-
*
|
|
456
|
-
*
|
|
454
|
+
* Which store this is: postgres, mysql, sqlite, dynamodb. Two
|
|
455
|
+
* products' containers can share a name, so this keeps them apart,
|
|
456
|
+
* and it is what a finding message calls the store.
|
|
457
|
+
*/
|
|
458
|
+
storageSystem: import_zod8.z.string(),
|
|
459
|
+
/**
|
|
460
|
+
* The ORM, schema, or deployment scope. A single-database setup uses
|
|
461
|
+
* `"default"`, and a monorepo with several schemas gives each one its
|
|
462
|
+
* own value.
|
|
457
463
|
*/
|
|
458
464
|
scope: import_zod8.z.string(),
|
|
459
465
|
/**
|
|
460
|
-
* The table or
|
|
461
|
-
* the source states one this reader could not
|
|
462
|
-
* pairs with nothing, rather than with
|
|
463
|
-
* happens to spell.
|
|
466
|
+
* The table, bucket, collection, or index, as the source declares
|
|
467
|
+
* it, or null when the source states one this reader could not
|
|
468
|
+
* settle. A null container pairs with nothing, rather than with
|
|
469
|
+
* whatever its source text happens to spell.
|
|
470
|
+
*/
|
|
471
|
+
container: import_zod8.z.string().nullable(),
|
|
472
|
+
/**
|
|
473
|
+
* A secondary way into the container, a DynamoDB global secondary
|
|
474
|
+
* index or an Elasticsearch alias, each with its own key fields.
|
|
475
|
+
* Null means the container's own primary way in. A query through an
|
|
476
|
+
* index and a query through the table are different accesses, so
|
|
477
|
+
* they pair separately.
|
|
464
478
|
*/
|
|
465
|
-
|
|
479
|
+
accessPath: import_zod8.z.string().nullable()
|
|
466
480
|
});
|
|
467
|
-
var
|
|
468
|
-
name: "storage
|
|
469
|
-
schema:
|
|
481
|
+
var storageSemantics = defineBoundarySemantics({
|
|
482
|
+
name: "storage",
|
|
483
|
+
schema: StorageSemanticsSchema,
|
|
470
484
|
behavior: {
|
|
471
|
-
/** A query returns rows, not a status and a body. */
|
|
485
|
+
/** A query returns rows or items, not a status and a body. */
|
|
472
486
|
exchangesHttpResponses: false,
|
|
473
487
|
reportsUnpairedItself: false,
|
|
474
488
|
identityKey: () => null
|
|
@@ -482,7 +496,7 @@ var SemanticsSchema = import_zod9.z.discriminatedUnion("name", [
|
|
|
482
496
|
graphqlResolverSemantics.schema,
|
|
483
497
|
graphqlOperationSemantics.schema,
|
|
484
498
|
runtimeConfigSemantics.schema,
|
|
485
|
-
|
|
499
|
+
storageSemantics.schema,
|
|
486
500
|
messageBusSemantics.schema
|
|
487
501
|
]);
|
|
488
502
|
var DEFINITIONS = [
|
|
@@ -491,7 +505,7 @@ var DEFINITIONS = [
|
|
|
491
505
|
graphqlResolverSemantics,
|
|
492
506
|
graphqlOperationSemantics,
|
|
493
507
|
runtimeConfigSemantics,
|
|
494
|
-
|
|
508
|
+
storageSemantics,
|
|
495
509
|
messageBusSemantics
|
|
496
510
|
];
|
|
497
511
|
var BY_NAME = new Map(
|
|
@@ -632,7 +646,7 @@ function withDefinitionsInlined(shape, definitions, depth = 0, inProgress = /* @
|
|
|
632
646
|
RuntimeConfigSemanticsSchema,
|
|
633
647
|
SemanticsSchema,
|
|
634
648
|
SourceLocationSchema,
|
|
635
|
-
|
|
649
|
+
StorageSemanticsSchema,
|
|
636
650
|
TypeShapeSchema,
|
|
637
651
|
typeDefinitionKey,
|
|
638
652
|
withDefinitionsInlined
|
package/dist/schemas.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { B as BoundaryBindingSchema, C as ConfidenceInfoSchema, a as ConfidenceLevelSchema, b as ConfidenceSourceSchema, c as CorroborationSchema, f as DeployableUnitSchema, g as FunctionCallSemanticsSchema, h as GraphqlOperationSemanticsSchema, j as GraphqlResolverSemanticsSchema, k as MessageBusSemanticsSchema, l as RestSemanticsSchema, n as RuntimeConfigSemanticsSchema, o as SemanticsSchema, d as SourceLocationSchema, q as
|
|
2
|
+
export { B as BoundaryBindingSchema, C as ConfidenceInfoSchema, a as ConfidenceLevelSchema, b as ConfidenceSourceSchema, c as CorroborationSchema, f as DeployableUnitSchema, g as FunctionCallSemanticsSchema, h as GraphqlOperationSemanticsSchema, j as GraphqlResolverSemanticsSchema, k as MessageBusSemanticsSchema, l as RestSemanticsSchema, n as RuntimeConfigSemanticsSchema, o as SemanticsSchema, d as SourceLocationSchema, q as StorageSemanticsSchema, T as TypeShape, r as TypeShapeSchema, w as typeDefinitionKey, x as withDefinitionsInlined } from './schemas-D6hKT-zV.cjs';
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { B as BoundaryBindingSchema, C as ConfidenceInfoSchema, a as ConfidenceLevelSchema, b as ConfidenceSourceSchema, c as CorroborationSchema, f as DeployableUnitSchema, g as FunctionCallSemanticsSchema, h as GraphqlOperationSemanticsSchema, j as GraphqlResolverSemanticsSchema, k as MessageBusSemanticsSchema, l as RestSemanticsSchema, n as RuntimeConfigSemanticsSchema, o as SemanticsSchema, d as SourceLocationSchema, q as
|
|
2
|
+
export { B as BoundaryBindingSchema, C as ConfidenceInfoSchema, a as ConfidenceLevelSchema, b as ConfidenceSourceSchema, c as CorroborationSchema, f as DeployableUnitSchema, g as FunctionCallSemanticsSchema, h as GraphqlOperationSemanticsSchema, j as GraphqlResolverSemanticsSchema, k as MessageBusSemanticsSchema, l as RestSemanticsSchema, n as RuntimeConfigSemanticsSchema, o as SemanticsSchema, d as SourceLocationSchema, q as StorageSemanticsSchema, T as TypeShape, r as TypeShapeSchema, w as typeDefinitionKey, x as withDefinitionsInlined } from './schemas-D6hKT-zV.js';
|
package/dist/schemas.js
CHANGED
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
RuntimeConfigSemanticsSchema,
|
|
14
14
|
SemanticsSchema,
|
|
15
15
|
SourceLocationSchema,
|
|
16
|
-
|
|
16
|
+
StorageSemanticsSchema,
|
|
17
17
|
TypeShapeSchema,
|
|
18
18
|
typeDefinitionKey,
|
|
19
19
|
withDefinitionsInlined
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TEXSN75M.js";
|
|
21
21
|
export {
|
|
22
22
|
BoundaryBindingSchema,
|
|
23
23
|
ConfidenceInfoSchema,
|
|
@@ -33,7 +33,7 @@ export {
|
|
|
33
33
|
RuntimeConfigSemanticsSchema,
|
|
34
34
|
SemanticsSchema,
|
|
35
35
|
SourceLocationSchema,
|
|
36
|
-
|
|
36
|
+
StorageSemanticsSchema,
|
|
37
37
|
TypeShapeSchema,
|
|
38
38
|
typeDefinitionKey,
|
|
39
39
|
withDefinitionsInlined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/ir-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared IR primitives for suss — type shapes, boundary bindings, source locations, and confidence. Imported by both @suss/behavioral-ir and @suss/intent-ir so neither depends on the other.",
|
|
6
6
|
"keywords": [
|