@suss/ir-core 0.0.1
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/LICENSE +205 -0
- package/README.md +40 -0
- package/dist/chunk-BWK3IPL7.js +166 -0
- package/dist/index.cjs +626 -0
- package/dist/index.d.cts +264 -0
- package/dist/index.d.ts +264 -0
- package/dist/index.js +435 -0
- package/dist/schemas.cjs +203 -0
- package/dist/schemas.d.cts +272 -0
- package/dist/schemas.d.ts +272 -0
- package/dist/schemas.js +32 -0
- package/package.json +63 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ConfidenceSourceSchema: z.ZodEnum<{
|
|
4
|
+
inferred_static: "inferred_static";
|
|
5
|
+
inferred_ai: "inferred_ai";
|
|
6
|
+
declared: "declared";
|
|
7
|
+
derived: "derived";
|
|
8
|
+
}>;
|
|
9
|
+
declare const ConfidenceLevelSchema: z.ZodEnum<{
|
|
10
|
+
high: "high";
|
|
11
|
+
medium: "medium";
|
|
12
|
+
low: "low";
|
|
13
|
+
}>;
|
|
14
|
+
declare const ConfidenceInfoSchema: z.ZodObject<{
|
|
15
|
+
source: z.ZodEnum<{
|
|
16
|
+
inferred_static: "inferred_static";
|
|
17
|
+
inferred_ai: "inferred_ai";
|
|
18
|
+
declared: "declared";
|
|
19
|
+
derived: "derived";
|
|
20
|
+
}>;
|
|
21
|
+
level: z.ZodEnum<{
|
|
22
|
+
high: "high";
|
|
23
|
+
medium: "medium";
|
|
24
|
+
low: "low";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const SourceLocationSchema: z.ZodObject<{
|
|
28
|
+
file: z.ZodString;
|
|
29
|
+
range: z.ZodObject<{
|
|
30
|
+
start: z.ZodNumber;
|
|
31
|
+
end: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
exportName: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const RestSemanticsSchema: z.ZodObject<{
|
|
36
|
+
name: z.ZodLiteral<"rest">;
|
|
37
|
+
method: z.ZodString;
|
|
38
|
+
path: z.ZodString;
|
|
39
|
+
declaredResponses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const FunctionCallSemanticsSchema: z.ZodObject<{
|
|
42
|
+
name: z.ZodLiteral<"function-call">;
|
|
43
|
+
module: z.ZodOptional<z.ZodString>;
|
|
44
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
45
|
+
package: z.ZodOptional<z.ZodString>;
|
|
46
|
+
exportPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
/**
|
|
49
|
+
* Provider-side GraphQL resolver. One resolver binds one
|
|
50
|
+
* (typeName, fieldName) pair. Pairing key: `${typeName}.${fieldName}`.
|
|
51
|
+
*/
|
|
52
|
+
declare const GraphqlResolverSemanticsSchema: z.ZodObject<{
|
|
53
|
+
name: z.ZodLiteral<"graphql-resolver">;
|
|
54
|
+
typeName: z.ZodString;
|
|
55
|
+
fieldName: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
/**
|
|
58
|
+
* Consumer-side GraphQL operation — a document sent from client to
|
|
59
|
+
* server. Binds by operation name + type.
|
|
60
|
+
*/
|
|
61
|
+
declare const GraphqlOperationSemanticsSchema: z.ZodObject<{
|
|
62
|
+
name: z.ZodLiteral<"graphql-operation">;
|
|
63
|
+
operationName: z.ZodOptional<z.ZodString>;
|
|
64
|
+
operationType: z.ZodEnum<{
|
|
65
|
+
query: "query";
|
|
66
|
+
mutation: "mutation";
|
|
67
|
+
subscription: "subscription";
|
|
68
|
+
}>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
/**
|
|
71
|
+
* Provider-side runtime configuration channel — env vars + their
|
|
72
|
+
* declared values on a deployable unit. The channel is the boundary;
|
|
73
|
+
* env var names are FIELDS on its contract. Pairing key:
|
|
74
|
+
* `(deploymentTarget, instanceName)`.
|
|
75
|
+
*/
|
|
76
|
+
declare const RuntimeConfigSemanticsSchema: z.ZodObject<{
|
|
77
|
+
name: z.ZodLiteral<"runtime-config">;
|
|
78
|
+
deploymentTarget: z.ZodEnum<{
|
|
79
|
+
lambda: "lambda";
|
|
80
|
+
"ecs-task": "ecs-task";
|
|
81
|
+
container: "container";
|
|
82
|
+
"k8s-deployment": "k8s-deployment";
|
|
83
|
+
}>;
|
|
84
|
+
instanceName: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
/**
|
|
87
|
+
* Provider-side relational storage table. Columns are FIELDS on the
|
|
88
|
+
* table's contract. Pairing key: `(storageSystem, scope, table)`.
|
|
89
|
+
*/
|
|
90
|
+
declare const StorageRelationalSemanticsSchema: z.ZodObject<{
|
|
91
|
+
name: z.ZodLiteral<"storage-relational">;
|
|
92
|
+
storageSystem: z.ZodEnum<{
|
|
93
|
+
postgres: "postgres";
|
|
94
|
+
mysql: "mysql";
|
|
95
|
+
sqlite: "sqlite";
|
|
96
|
+
}>;
|
|
97
|
+
scope: z.ZodString;
|
|
98
|
+
table: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
/**
|
|
101
|
+
* Provider-side message-bus boundary — SQS / EventBridge / BullMQ /
|
|
102
|
+
* Kafka / NATS. Producer `interaction(class: "message-send")` effects
|
|
103
|
+
* pair against these via `(messageBus, channel)`.
|
|
104
|
+
*
|
|
105
|
+
* The `channel` string is per-bus. SQS keys it on the single queue
|
|
106
|
+
* identity (CFN logical id / env-var name). EventBridge carries a
|
|
107
|
+
* two-part identity — the event bus AND the DetailType a rule matches —
|
|
108
|
+
* encoded as `"<bus>#<detailType>"`, because one bus multiplexes many
|
|
109
|
+
* event types and a rule subscribes to a subset. See
|
|
110
|
+
* `@suss/framework-aws-eventbridge` for the producer-side scheme and
|
|
111
|
+
* `@suss/contract-cloudformation`'s messageBus reader for the
|
|
112
|
+
* consumer/provider-side scheme.
|
|
113
|
+
*/
|
|
114
|
+
declare const MessageBusSemanticsSchema: z.ZodObject<{
|
|
115
|
+
name: z.ZodLiteral<"message-bus">;
|
|
116
|
+
messageBus: z.ZodEnum<{
|
|
117
|
+
sqs: "sqs";
|
|
118
|
+
eventbridge: "eventbridge";
|
|
119
|
+
bullmq: "bullmq";
|
|
120
|
+
kafka: "kafka";
|
|
121
|
+
nats: "nats";
|
|
122
|
+
}>;
|
|
123
|
+
channel: z.ZodString;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
declare const SemanticsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
name: z.ZodLiteral<"rest">;
|
|
127
|
+
method: z.ZodString;
|
|
128
|
+
path: z.ZodString;
|
|
129
|
+
declaredResponses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
name: z.ZodLiteral<"function-call">;
|
|
132
|
+
module: z.ZodOptional<z.ZodString>;
|
|
133
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
134
|
+
package: z.ZodOptional<z.ZodString>;
|
|
135
|
+
exportPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
name: z.ZodLiteral<"graphql-resolver">;
|
|
138
|
+
typeName: z.ZodString;
|
|
139
|
+
fieldName: z.ZodString;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
name: z.ZodLiteral<"graphql-operation">;
|
|
142
|
+
operationName: z.ZodOptional<z.ZodString>;
|
|
143
|
+
operationType: z.ZodEnum<{
|
|
144
|
+
query: "query";
|
|
145
|
+
mutation: "mutation";
|
|
146
|
+
subscription: "subscription";
|
|
147
|
+
}>;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
+
name: z.ZodLiteral<"runtime-config">;
|
|
150
|
+
deploymentTarget: z.ZodEnum<{
|
|
151
|
+
lambda: "lambda";
|
|
152
|
+
"ecs-task": "ecs-task";
|
|
153
|
+
container: "container";
|
|
154
|
+
"k8s-deployment": "k8s-deployment";
|
|
155
|
+
}>;
|
|
156
|
+
instanceName: z.ZodString;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
name: z.ZodLiteral<"storage-relational">;
|
|
159
|
+
storageSystem: z.ZodEnum<{
|
|
160
|
+
postgres: "postgres";
|
|
161
|
+
mysql: "mysql";
|
|
162
|
+
sqlite: "sqlite";
|
|
163
|
+
}>;
|
|
164
|
+
scope: z.ZodString;
|
|
165
|
+
table: z.ZodString;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
name: z.ZodLiteral<"message-bus">;
|
|
168
|
+
messageBus: z.ZodEnum<{
|
|
169
|
+
sqs: "sqs";
|
|
170
|
+
eventbridge: "eventbridge";
|
|
171
|
+
bullmq: "bullmq";
|
|
172
|
+
kafka: "kafka";
|
|
173
|
+
nats: "nats";
|
|
174
|
+
}>;
|
|
175
|
+
channel: z.ZodString;
|
|
176
|
+
}, z.core.$strip>], "name">;
|
|
177
|
+
declare const BoundaryBindingSchema: z.ZodObject<{
|
|
178
|
+
transport: z.ZodString;
|
|
179
|
+
semantics: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
180
|
+
name: z.ZodLiteral<"rest">;
|
|
181
|
+
method: z.ZodString;
|
|
182
|
+
path: z.ZodString;
|
|
183
|
+
declaredResponses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
name: z.ZodLiteral<"function-call">;
|
|
186
|
+
module: z.ZodOptional<z.ZodString>;
|
|
187
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
188
|
+
package: z.ZodOptional<z.ZodString>;
|
|
189
|
+
exportPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
name: z.ZodLiteral<"graphql-resolver">;
|
|
192
|
+
typeName: z.ZodString;
|
|
193
|
+
fieldName: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
name: z.ZodLiteral<"graphql-operation">;
|
|
196
|
+
operationName: z.ZodOptional<z.ZodString>;
|
|
197
|
+
operationType: z.ZodEnum<{
|
|
198
|
+
query: "query";
|
|
199
|
+
mutation: "mutation";
|
|
200
|
+
subscription: "subscription";
|
|
201
|
+
}>;
|
|
202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
+
name: z.ZodLiteral<"runtime-config">;
|
|
204
|
+
deploymentTarget: z.ZodEnum<{
|
|
205
|
+
lambda: "lambda";
|
|
206
|
+
"ecs-task": "ecs-task";
|
|
207
|
+
container: "container";
|
|
208
|
+
"k8s-deployment": "k8s-deployment";
|
|
209
|
+
}>;
|
|
210
|
+
instanceName: z.ZodString;
|
|
211
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
212
|
+
name: z.ZodLiteral<"storage-relational">;
|
|
213
|
+
storageSystem: z.ZodEnum<{
|
|
214
|
+
postgres: "postgres";
|
|
215
|
+
mysql: "mysql";
|
|
216
|
+
sqlite: "sqlite";
|
|
217
|
+
}>;
|
|
218
|
+
scope: z.ZodString;
|
|
219
|
+
table: z.ZodString;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
name: z.ZodLiteral<"message-bus">;
|
|
222
|
+
messageBus: z.ZodEnum<{
|
|
223
|
+
sqs: "sqs";
|
|
224
|
+
eventbridge: "eventbridge";
|
|
225
|
+
bullmq: "bullmq";
|
|
226
|
+
kafka: "kafka";
|
|
227
|
+
nats: "nats";
|
|
228
|
+
}>;
|
|
229
|
+
channel: z.ZodString;
|
|
230
|
+
}, z.core.$strip>], "name">;
|
|
231
|
+
recognition: z.ZodString;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
type TypeShape = {
|
|
234
|
+
type: "record";
|
|
235
|
+
properties: Record<string, TypeShape>;
|
|
236
|
+
spreads?: Array<{
|
|
237
|
+
sourceText: string;
|
|
238
|
+
}> | undefined;
|
|
239
|
+
} | {
|
|
240
|
+
type: "dictionary";
|
|
241
|
+
values: TypeShape;
|
|
242
|
+
} | {
|
|
243
|
+
type: "array";
|
|
244
|
+
items: TypeShape;
|
|
245
|
+
} | {
|
|
246
|
+
type: "literal";
|
|
247
|
+
value: string | number | boolean;
|
|
248
|
+
raw?: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
type: "text";
|
|
251
|
+
} | {
|
|
252
|
+
type: "integer";
|
|
253
|
+
} | {
|
|
254
|
+
type: "number";
|
|
255
|
+
} | {
|
|
256
|
+
type: "boolean";
|
|
257
|
+
} | {
|
|
258
|
+
type: "null";
|
|
259
|
+
} | {
|
|
260
|
+
type: "undefined";
|
|
261
|
+
} | {
|
|
262
|
+
type: "union";
|
|
263
|
+
variants: TypeShape[];
|
|
264
|
+
} | {
|
|
265
|
+
type: "ref";
|
|
266
|
+
name: string;
|
|
267
|
+
} | {
|
|
268
|
+
type: "unknown";
|
|
269
|
+
};
|
|
270
|
+
declare const TypeShapeSchema: z.ZodType<TypeShape>;
|
|
271
|
+
|
|
272
|
+
export { BoundaryBindingSchema, ConfidenceInfoSchema, ConfidenceLevelSchema, ConfidenceSourceSchema, FunctionCallSemanticsSchema, GraphqlOperationSemanticsSchema, GraphqlResolverSemanticsSchema, MessageBusSemanticsSchema, RestSemanticsSchema, RuntimeConfigSemanticsSchema, SemanticsSchema, SourceLocationSchema, StorageRelationalSemanticsSchema, type TypeShape, TypeShapeSchema };
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ConfidenceSourceSchema: z.ZodEnum<{
|
|
4
|
+
inferred_static: "inferred_static";
|
|
5
|
+
inferred_ai: "inferred_ai";
|
|
6
|
+
declared: "declared";
|
|
7
|
+
derived: "derived";
|
|
8
|
+
}>;
|
|
9
|
+
declare const ConfidenceLevelSchema: z.ZodEnum<{
|
|
10
|
+
high: "high";
|
|
11
|
+
medium: "medium";
|
|
12
|
+
low: "low";
|
|
13
|
+
}>;
|
|
14
|
+
declare const ConfidenceInfoSchema: z.ZodObject<{
|
|
15
|
+
source: z.ZodEnum<{
|
|
16
|
+
inferred_static: "inferred_static";
|
|
17
|
+
inferred_ai: "inferred_ai";
|
|
18
|
+
declared: "declared";
|
|
19
|
+
derived: "derived";
|
|
20
|
+
}>;
|
|
21
|
+
level: z.ZodEnum<{
|
|
22
|
+
high: "high";
|
|
23
|
+
medium: "medium";
|
|
24
|
+
low: "low";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const SourceLocationSchema: z.ZodObject<{
|
|
28
|
+
file: z.ZodString;
|
|
29
|
+
range: z.ZodObject<{
|
|
30
|
+
start: z.ZodNumber;
|
|
31
|
+
end: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
exportName: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const RestSemanticsSchema: z.ZodObject<{
|
|
36
|
+
name: z.ZodLiteral<"rest">;
|
|
37
|
+
method: z.ZodString;
|
|
38
|
+
path: z.ZodString;
|
|
39
|
+
declaredResponses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const FunctionCallSemanticsSchema: z.ZodObject<{
|
|
42
|
+
name: z.ZodLiteral<"function-call">;
|
|
43
|
+
module: z.ZodOptional<z.ZodString>;
|
|
44
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
45
|
+
package: z.ZodOptional<z.ZodString>;
|
|
46
|
+
exportPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
/**
|
|
49
|
+
* Provider-side GraphQL resolver. One resolver binds one
|
|
50
|
+
* (typeName, fieldName) pair. Pairing key: `${typeName}.${fieldName}`.
|
|
51
|
+
*/
|
|
52
|
+
declare const GraphqlResolverSemanticsSchema: z.ZodObject<{
|
|
53
|
+
name: z.ZodLiteral<"graphql-resolver">;
|
|
54
|
+
typeName: z.ZodString;
|
|
55
|
+
fieldName: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
/**
|
|
58
|
+
* Consumer-side GraphQL operation — a document sent from client to
|
|
59
|
+
* server. Binds by operation name + type.
|
|
60
|
+
*/
|
|
61
|
+
declare const GraphqlOperationSemanticsSchema: z.ZodObject<{
|
|
62
|
+
name: z.ZodLiteral<"graphql-operation">;
|
|
63
|
+
operationName: z.ZodOptional<z.ZodString>;
|
|
64
|
+
operationType: z.ZodEnum<{
|
|
65
|
+
query: "query";
|
|
66
|
+
mutation: "mutation";
|
|
67
|
+
subscription: "subscription";
|
|
68
|
+
}>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
/**
|
|
71
|
+
* Provider-side runtime configuration channel — env vars + their
|
|
72
|
+
* declared values on a deployable unit. The channel is the boundary;
|
|
73
|
+
* env var names are FIELDS on its contract. Pairing key:
|
|
74
|
+
* `(deploymentTarget, instanceName)`.
|
|
75
|
+
*/
|
|
76
|
+
declare const RuntimeConfigSemanticsSchema: z.ZodObject<{
|
|
77
|
+
name: z.ZodLiteral<"runtime-config">;
|
|
78
|
+
deploymentTarget: z.ZodEnum<{
|
|
79
|
+
lambda: "lambda";
|
|
80
|
+
"ecs-task": "ecs-task";
|
|
81
|
+
container: "container";
|
|
82
|
+
"k8s-deployment": "k8s-deployment";
|
|
83
|
+
}>;
|
|
84
|
+
instanceName: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
/**
|
|
87
|
+
* Provider-side relational storage table. Columns are FIELDS on the
|
|
88
|
+
* table's contract. Pairing key: `(storageSystem, scope, table)`.
|
|
89
|
+
*/
|
|
90
|
+
declare const StorageRelationalSemanticsSchema: z.ZodObject<{
|
|
91
|
+
name: z.ZodLiteral<"storage-relational">;
|
|
92
|
+
storageSystem: z.ZodEnum<{
|
|
93
|
+
postgres: "postgres";
|
|
94
|
+
mysql: "mysql";
|
|
95
|
+
sqlite: "sqlite";
|
|
96
|
+
}>;
|
|
97
|
+
scope: z.ZodString;
|
|
98
|
+
table: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
/**
|
|
101
|
+
* Provider-side message-bus boundary — SQS / EventBridge / BullMQ /
|
|
102
|
+
* Kafka / NATS. Producer `interaction(class: "message-send")` effects
|
|
103
|
+
* pair against these via `(messageBus, channel)`.
|
|
104
|
+
*
|
|
105
|
+
* The `channel` string is per-bus. SQS keys it on the single queue
|
|
106
|
+
* identity (CFN logical id / env-var name). EventBridge carries a
|
|
107
|
+
* two-part identity — the event bus AND the DetailType a rule matches —
|
|
108
|
+
* encoded as `"<bus>#<detailType>"`, because one bus multiplexes many
|
|
109
|
+
* event types and a rule subscribes to a subset. See
|
|
110
|
+
* `@suss/framework-aws-eventbridge` for the producer-side scheme and
|
|
111
|
+
* `@suss/contract-cloudformation`'s messageBus reader for the
|
|
112
|
+
* consumer/provider-side scheme.
|
|
113
|
+
*/
|
|
114
|
+
declare const MessageBusSemanticsSchema: z.ZodObject<{
|
|
115
|
+
name: z.ZodLiteral<"message-bus">;
|
|
116
|
+
messageBus: z.ZodEnum<{
|
|
117
|
+
sqs: "sqs";
|
|
118
|
+
eventbridge: "eventbridge";
|
|
119
|
+
bullmq: "bullmq";
|
|
120
|
+
kafka: "kafka";
|
|
121
|
+
nats: "nats";
|
|
122
|
+
}>;
|
|
123
|
+
channel: z.ZodString;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
declare const SemanticsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
name: z.ZodLiteral<"rest">;
|
|
127
|
+
method: z.ZodString;
|
|
128
|
+
path: z.ZodString;
|
|
129
|
+
declaredResponses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
name: z.ZodLiteral<"function-call">;
|
|
132
|
+
module: z.ZodOptional<z.ZodString>;
|
|
133
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
134
|
+
package: z.ZodOptional<z.ZodString>;
|
|
135
|
+
exportPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
name: z.ZodLiteral<"graphql-resolver">;
|
|
138
|
+
typeName: z.ZodString;
|
|
139
|
+
fieldName: z.ZodString;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
name: z.ZodLiteral<"graphql-operation">;
|
|
142
|
+
operationName: z.ZodOptional<z.ZodString>;
|
|
143
|
+
operationType: z.ZodEnum<{
|
|
144
|
+
query: "query";
|
|
145
|
+
mutation: "mutation";
|
|
146
|
+
subscription: "subscription";
|
|
147
|
+
}>;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
+
name: z.ZodLiteral<"runtime-config">;
|
|
150
|
+
deploymentTarget: z.ZodEnum<{
|
|
151
|
+
lambda: "lambda";
|
|
152
|
+
"ecs-task": "ecs-task";
|
|
153
|
+
container: "container";
|
|
154
|
+
"k8s-deployment": "k8s-deployment";
|
|
155
|
+
}>;
|
|
156
|
+
instanceName: z.ZodString;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
name: z.ZodLiteral<"storage-relational">;
|
|
159
|
+
storageSystem: z.ZodEnum<{
|
|
160
|
+
postgres: "postgres";
|
|
161
|
+
mysql: "mysql";
|
|
162
|
+
sqlite: "sqlite";
|
|
163
|
+
}>;
|
|
164
|
+
scope: z.ZodString;
|
|
165
|
+
table: z.ZodString;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
name: z.ZodLiteral<"message-bus">;
|
|
168
|
+
messageBus: z.ZodEnum<{
|
|
169
|
+
sqs: "sqs";
|
|
170
|
+
eventbridge: "eventbridge";
|
|
171
|
+
bullmq: "bullmq";
|
|
172
|
+
kafka: "kafka";
|
|
173
|
+
nats: "nats";
|
|
174
|
+
}>;
|
|
175
|
+
channel: z.ZodString;
|
|
176
|
+
}, z.core.$strip>], "name">;
|
|
177
|
+
declare const BoundaryBindingSchema: z.ZodObject<{
|
|
178
|
+
transport: z.ZodString;
|
|
179
|
+
semantics: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
180
|
+
name: z.ZodLiteral<"rest">;
|
|
181
|
+
method: z.ZodString;
|
|
182
|
+
path: z.ZodString;
|
|
183
|
+
declaredResponses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
name: z.ZodLiteral<"function-call">;
|
|
186
|
+
module: z.ZodOptional<z.ZodString>;
|
|
187
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
188
|
+
package: z.ZodOptional<z.ZodString>;
|
|
189
|
+
exportPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
name: z.ZodLiteral<"graphql-resolver">;
|
|
192
|
+
typeName: z.ZodString;
|
|
193
|
+
fieldName: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
name: z.ZodLiteral<"graphql-operation">;
|
|
196
|
+
operationName: z.ZodOptional<z.ZodString>;
|
|
197
|
+
operationType: z.ZodEnum<{
|
|
198
|
+
query: "query";
|
|
199
|
+
mutation: "mutation";
|
|
200
|
+
subscription: "subscription";
|
|
201
|
+
}>;
|
|
202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
+
name: z.ZodLiteral<"runtime-config">;
|
|
204
|
+
deploymentTarget: z.ZodEnum<{
|
|
205
|
+
lambda: "lambda";
|
|
206
|
+
"ecs-task": "ecs-task";
|
|
207
|
+
container: "container";
|
|
208
|
+
"k8s-deployment": "k8s-deployment";
|
|
209
|
+
}>;
|
|
210
|
+
instanceName: z.ZodString;
|
|
211
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
212
|
+
name: z.ZodLiteral<"storage-relational">;
|
|
213
|
+
storageSystem: z.ZodEnum<{
|
|
214
|
+
postgres: "postgres";
|
|
215
|
+
mysql: "mysql";
|
|
216
|
+
sqlite: "sqlite";
|
|
217
|
+
}>;
|
|
218
|
+
scope: z.ZodString;
|
|
219
|
+
table: z.ZodString;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
name: z.ZodLiteral<"message-bus">;
|
|
222
|
+
messageBus: z.ZodEnum<{
|
|
223
|
+
sqs: "sqs";
|
|
224
|
+
eventbridge: "eventbridge";
|
|
225
|
+
bullmq: "bullmq";
|
|
226
|
+
kafka: "kafka";
|
|
227
|
+
nats: "nats";
|
|
228
|
+
}>;
|
|
229
|
+
channel: z.ZodString;
|
|
230
|
+
}, z.core.$strip>], "name">;
|
|
231
|
+
recognition: z.ZodString;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
type TypeShape = {
|
|
234
|
+
type: "record";
|
|
235
|
+
properties: Record<string, TypeShape>;
|
|
236
|
+
spreads?: Array<{
|
|
237
|
+
sourceText: string;
|
|
238
|
+
}> | undefined;
|
|
239
|
+
} | {
|
|
240
|
+
type: "dictionary";
|
|
241
|
+
values: TypeShape;
|
|
242
|
+
} | {
|
|
243
|
+
type: "array";
|
|
244
|
+
items: TypeShape;
|
|
245
|
+
} | {
|
|
246
|
+
type: "literal";
|
|
247
|
+
value: string | number | boolean;
|
|
248
|
+
raw?: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
type: "text";
|
|
251
|
+
} | {
|
|
252
|
+
type: "integer";
|
|
253
|
+
} | {
|
|
254
|
+
type: "number";
|
|
255
|
+
} | {
|
|
256
|
+
type: "boolean";
|
|
257
|
+
} | {
|
|
258
|
+
type: "null";
|
|
259
|
+
} | {
|
|
260
|
+
type: "undefined";
|
|
261
|
+
} | {
|
|
262
|
+
type: "union";
|
|
263
|
+
variants: TypeShape[];
|
|
264
|
+
} | {
|
|
265
|
+
type: "ref";
|
|
266
|
+
name: string;
|
|
267
|
+
} | {
|
|
268
|
+
type: "unknown";
|
|
269
|
+
};
|
|
270
|
+
declare const TypeShapeSchema: z.ZodType<TypeShape>;
|
|
271
|
+
|
|
272
|
+
export { BoundaryBindingSchema, ConfidenceInfoSchema, ConfidenceLevelSchema, ConfidenceSourceSchema, FunctionCallSemanticsSchema, GraphqlOperationSemanticsSchema, GraphqlResolverSemanticsSchema, MessageBusSemanticsSchema, RestSemanticsSchema, RuntimeConfigSemanticsSchema, SemanticsSchema, SourceLocationSchema, StorageRelationalSemanticsSchema, type TypeShape, TypeShapeSchema };
|
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BoundaryBindingSchema,
|
|
3
|
+
ConfidenceInfoSchema,
|
|
4
|
+
ConfidenceLevelSchema,
|
|
5
|
+
ConfidenceSourceSchema,
|
|
6
|
+
FunctionCallSemanticsSchema,
|
|
7
|
+
GraphqlOperationSemanticsSchema,
|
|
8
|
+
GraphqlResolverSemanticsSchema,
|
|
9
|
+
MessageBusSemanticsSchema,
|
|
10
|
+
RestSemanticsSchema,
|
|
11
|
+
RuntimeConfigSemanticsSchema,
|
|
12
|
+
SemanticsSchema,
|
|
13
|
+
SourceLocationSchema,
|
|
14
|
+
StorageRelationalSemanticsSchema,
|
|
15
|
+
TypeShapeSchema
|
|
16
|
+
} from "./chunk-BWK3IPL7.js";
|
|
17
|
+
export {
|
|
18
|
+
BoundaryBindingSchema,
|
|
19
|
+
ConfidenceInfoSchema,
|
|
20
|
+
ConfidenceLevelSchema,
|
|
21
|
+
ConfidenceSourceSchema,
|
|
22
|
+
FunctionCallSemanticsSchema,
|
|
23
|
+
GraphqlOperationSemanticsSchema,
|
|
24
|
+
GraphqlResolverSemanticsSchema,
|
|
25
|
+
MessageBusSemanticsSchema,
|
|
26
|
+
RestSemanticsSchema,
|
|
27
|
+
RuntimeConfigSemanticsSchema,
|
|
28
|
+
SemanticsSchema,
|
|
29
|
+
SourceLocationSchema,
|
|
30
|
+
StorageRelationalSemanticsSchema,
|
|
31
|
+
TypeShapeSchema
|
|
32
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@suss/ir-core",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
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
|
+
"keywords": [
|
|
7
|
+
"suss",
|
|
8
|
+
"ir",
|
|
9
|
+
"behavioral-summary",
|
|
10
|
+
"intent"
|
|
11
|
+
],
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"author": "Nimbus Cloud AI LLC",
|
|
14
|
+
"homepage": "https://github.com/nimbuscloud-ai/suss/tree/main/packages/ir-core#readme",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/nimbuscloud-ai/suss.git",
|
|
18
|
+
"directory": "packages/ir-core"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/nimbuscloud-ai/suss/issues"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js",
|
|
30
|
+
"require": "./dist/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./schemas": {
|
|
33
|
+
"types": "./dist/schemas.d.ts",
|
|
34
|
+
"import": "./dist/schemas.js",
|
|
35
|
+
"require": "./dist/schemas.cjs"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"README.md",
|
|
41
|
+
"LICENSE"
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsup",
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"test:coverage": "vitest run --coverage",
|
|
47
|
+
"lint": "biome check .",
|
|
48
|
+
"lint:fix": "biome check --write .",
|
|
49
|
+
"typecheck": "tsc --noEmit"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"zod": "^4.0.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"tsup": "*",
|
|
56
|
+
"typescript": "*",
|
|
57
|
+
"vitest": "*",
|
|
58
|
+
"zod": "^4.3.6"
|
|
59
|
+
},
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public"
|
|
62
|
+
}
|
|
63
|
+
}
|