@xemahq/contracts 0.14.0 → 0.15.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/dist/.source-stamp.json +1 -1
- package/dist/notification/lib/notification-descriptor-contribution.d.ts +108 -8
- package/dist/notification/lib/notification-descriptor-contribution.d.ts.map +1 -1
- package/dist/notification/lib/notification-descriptor-contribution.js +61 -3
- package/dist/notification/lib/notification-descriptor-contribution.js.map +1 -1
- package/package.json +1 -1
package/dist/.source-stamp.json
CHANGED
|
@@ -2,6 +2,15 @@ import { z } from 'zod';
|
|
|
2
2
|
import { NotificationCategory } from './notification-category';
|
|
3
3
|
import { NotificationChannel } from './notification-channel';
|
|
4
4
|
import { NotificationSeverity } from './notification-severity';
|
|
5
|
+
export declare const NotificationLifecycleTriggerSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
6
|
+
eventType: z.ZodString;
|
|
7
|
+
when: z.ZodObject<{
|
|
8
|
+
path: z.ZodString;
|
|
9
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
}, z.core.$strict>]>;
|
|
12
|
+
export type NotificationLifecycleTrigger = z.infer<typeof NotificationLifecycleTriggerSchema>;
|
|
13
|
+
export declare function lifecycleTriggerEventType(trigger: NotificationLifecycleTrigger): string;
|
|
5
14
|
export declare const NotificationTemplateSchema: z.ZodObject<{
|
|
6
15
|
template: z.ZodString;
|
|
7
16
|
}, z.core.$strict>;
|
|
@@ -14,6 +23,9 @@ export declare const NotificationSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
14
23
|
kind: z.ZodLiteral<"resource">;
|
|
15
24
|
resourceKind: z.ZodString;
|
|
16
25
|
idPath: z.ZodString;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
+
kind: z.ZodLiteral<"resource-ref">;
|
|
28
|
+
refPath: z.ZodString;
|
|
17
29
|
}, z.core.$strict>, z.ZodObject<{
|
|
18
30
|
kind: z.ZodLiteral<"none">;
|
|
19
31
|
reason: z.ZodString;
|
|
@@ -70,6 +82,9 @@ declare const NotifyingDescriptorSchema: z.ZodObject<{
|
|
|
70
82
|
kind: z.ZodLiteral<"resource">;
|
|
71
83
|
resourceKind: z.ZodString;
|
|
72
84
|
idPath: z.ZodString;
|
|
85
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
86
|
+
kind: z.ZodLiteral<"resource-ref">;
|
|
87
|
+
refPath: z.ZodString;
|
|
73
88
|
}, z.core.$strict>, z.ZodObject<{
|
|
74
89
|
kind: z.ZodLiteral<"none">;
|
|
75
90
|
reason: z.ZodString;
|
|
@@ -127,8 +142,27 @@ declare const NotifyingDescriptorSchema: z.ZodObject<{
|
|
|
127
142
|
default: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof NotificationChannel>>>;
|
|
128
143
|
}, z.core.$strict>>;
|
|
129
144
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
130
|
-
resolvedBy: z.ZodDefault<z.ZodArray<z.ZodString
|
|
131
|
-
|
|
145
|
+
resolvedBy: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
146
|
+
eventType: z.ZodString;
|
|
147
|
+
when: z.ZodObject<{
|
|
148
|
+
path: z.ZodString;
|
|
149
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
}, z.core.$strict>]>>>;
|
|
152
|
+
cancelledBy: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
153
|
+
eventType: z.ZodString;
|
|
154
|
+
when: z.ZodObject<{
|
|
155
|
+
path: z.ZodString;
|
|
156
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
}, z.core.$strict>]>>>;
|
|
159
|
+
reopenedBy: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
160
|
+
eventType: z.ZodString;
|
|
161
|
+
when: z.ZodObject<{
|
|
162
|
+
path: z.ZodString;
|
|
163
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
}, z.core.$strict>]>>>;
|
|
132
166
|
}, z.core.$strict>>;
|
|
133
167
|
}, z.core.$strict>;
|
|
134
168
|
export declare const NotificationDescriptorManifestSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -152,6 +186,9 @@ export declare const NotificationDescriptorManifestSchema: z.ZodPipe<z.ZodDiscri
|
|
|
152
186
|
kind: z.ZodLiteral<"resource">;
|
|
153
187
|
resourceKind: z.ZodString;
|
|
154
188
|
idPath: z.ZodString;
|
|
189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"resource-ref">;
|
|
191
|
+
refPath: z.ZodString;
|
|
155
192
|
}, z.core.$strict>, z.ZodObject<{
|
|
156
193
|
kind: z.ZodLiteral<"none">;
|
|
157
194
|
reason: z.ZodString;
|
|
@@ -209,8 +246,27 @@ export declare const NotificationDescriptorManifestSchema: z.ZodPipe<z.ZodDiscri
|
|
|
209
246
|
default: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof NotificationChannel>>>;
|
|
210
247
|
}, z.core.$strict>>;
|
|
211
248
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
212
|
-
resolvedBy: z.ZodDefault<z.ZodArray<z.ZodString
|
|
213
|
-
|
|
249
|
+
resolvedBy: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
250
|
+
eventType: z.ZodString;
|
|
251
|
+
when: z.ZodObject<{
|
|
252
|
+
path: z.ZodString;
|
|
253
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
}, z.core.$strict>]>>>;
|
|
256
|
+
cancelledBy: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
257
|
+
eventType: z.ZodString;
|
|
258
|
+
when: z.ZodObject<{
|
|
259
|
+
path: z.ZodString;
|
|
260
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
}, z.core.$strict>]>>>;
|
|
263
|
+
reopenedBy: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
264
|
+
eventType: z.ZodString;
|
|
265
|
+
when: z.ZodObject<{
|
|
266
|
+
path: z.ZodString;
|
|
267
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
268
|
+
}, z.core.$strict>;
|
|
269
|
+
}, z.core.$strict>]>>>;
|
|
214
270
|
}, z.core.$strict>>;
|
|
215
271
|
}, z.core.$strict>, z.ZodObject<{
|
|
216
272
|
notifies: z.ZodLiteral<false>;
|
|
@@ -230,6 +286,9 @@ export declare const NotificationDescriptorManifestSchema: z.ZodPipe<z.ZodDiscri
|
|
|
230
286
|
kind: "resource";
|
|
231
287
|
resourceKind: string;
|
|
232
288
|
idPath: string;
|
|
289
|
+
} | {
|
|
290
|
+
kind: "resource-ref";
|
|
291
|
+
refPath: string;
|
|
233
292
|
} | {
|
|
234
293
|
kind: "none";
|
|
235
294
|
reason: string;
|
|
@@ -282,8 +341,27 @@ export declare const NotificationDescriptorManifestSchema: z.ZodPipe<z.ZodDiscri
|
|
|
282
341
|
} | undefined;
|
|
283
342
|
} | undefined;
|
|
284
343
|
lifecycle?: {
|
|
285
|
-
resolvedBy: string
|
|
286
|
-
|
|
344
|
+
resolvedBy: (string | {
|
|
345
|
+
eventType: string;
|
|
346
|
+
when: {
|
|
347
|
+
path: string;
|
|
348
|
+
equals: string | number | boolean;
|
|
349
|
+
};
|
|
350
|
+
})[];
|
|
351
|
+
cancelledBy: (string | {
|
|
352
|
+
eventType: string;
|
|
353
|
+
when: {
|
|
354
|
+
path: string;
|
|
355
|
+
equals: string | number | boolean;
|
|
356
|
+
};
|
|
357
|
+
})[];
|
|
358
|
+
reopenedBy: (string | {
|
|
359
|
+
eventType: string;
|
|
360
|
+
when: {
|
|
361
|
+
path: string;
|
|
362
|
+
equals: string | number | boolean;
|
|
363
|
+
};
|
|
364
|
+
})[];
|
|
287
365
|
} | undefined;
|
|
288
366
|
} | {
|
|
289
367
|
notifies: false;
|
|
@@ -303,6 +381,9 @@ export declare const NotificationDescriptorManifestSchema: z.ZodPipe<z.ZodDiscri
|
|
|
303
381
|
kind: "resource";
|
|
304
382
|
resourceKind: string;
|
|
305
383
|
idPath: string;
|
|
384
|
+
} | {
|
|
385
|
+
kind: "resource-ref";
|
|
386
|
+
refPath: string;
|
|
306
387
|
} | {
|
|
307
388
|
kind: "none";
|
|
308
389
|
reason: string;
|
|
@@ -355,8 +436,27 @@ export declare const NotificationDescriptorManifestSchema: z.ZodPipe<z.ZodDiscri
|
|
|
355
436
|
} | undefined;
|
|
356
437
|
} | undefined;
|
|
357
438
|
lifecycle?: {
|
|
358
|
-
resolvedBy: string
|
|
359
|
-
|
|
439
|
+
resolvedBy: (string | {
|
|
440
|
+
eventType: string;
|
|
441
|
+
when: {
|
|
442
|
+
path: string;
|
|
443
|
+
equals: string | number | boolean;
|
|
444
|
+
};
|
|
445
|
+
})[];
|
|
446
|
+
cancelledBy: (string | {
|
|
447
|
+
eventType: string;
|
|
448
|
+
when: {
|
|
449
|
+
path: string;
|
|
450
|
+
equals: string | number | boolean;
|
|
451
|
+
};
|
|
452
|
+
})[];
|
|
453
|
+
reopenedBy: (string | {
|
|
454
|
+
eventType: string;
|
|
455
|
+
when: {
|
|
456
|
+
path: string;
|
|
457
|
+
equals: string | number | boolean;
|
|
458
|
+
};
|
|
459
|
+
})[];
|
|
360
460
|
} | undefined;
|
|
361
461
|
} | {
|
|
362
462
|
notifies: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-descriptor-contribution.d.ts","sourceRoot":"","sources":["../../../src/notification/lib/notification-descriptor-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,oBAAoB,EAErB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EAErB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"notification-descriptor-contribution.d.ts","sourceRoot":"","sources":["../../../src/notification/lib/notification-descriptor-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,oBAAoB,EAErB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EAErB,MAAM,yBAAyB,CAAC;AA2EjC,eAAO,MAAM,kCAAkC;;;;;;oBAa7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAGF,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,4BAA4B,GACpC,MAAM,CAER;AAGD,eAAO,MAAM,0BAA0B;;kBAI5B,CAAC;AAGZ,eAAO,MAAM,sBAAsB;;;;oBAGjC,CAAC;AAiBH,eAAO,MAAM,yBAAyB;;;;;;;;;;4BAsDpC,CAAC;AA+BH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;4BA4DrC,CAAC;AAeH,eAAO,MAAM,sCAAsC;;;EAGjD,CAAC;AAWH,eAAO,MAAM,+BAA+B;;;;;;EAM1C,CAAC;AAEH,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgX3B,CAAC;AAmBL,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkB9C,CAAC;AAEJ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,yBAAyB,CACjC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAG9E,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,8BAA8B,GACzC,UAAU,IAAI,+BAA+B,CAE/C"}
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationDescriptorManifestSchema = exports.NotificationAggregateKindSchema = exports.NotificationRecipientEligibilitySchema = exports.NotificationAudienceSchema = exports.NotificationSubjectSchema = exports.NotificationTextSchema = exports.NotificationTemplateSchema = void 0;
|
|
3
|
+
exports.NotificationDescriptorManifestSchema = exports.NotificationAggregateKindSchema = exports.NotificationRecipientEligibilitySchema = exports.NotificationAudienceSchema = exports.NotificationSubjectSchema = exports.NotificationTextSchema = exports.NotificationTemplateSchema = exports.NotificationLifecycleTriggerSchema = void 0;
|
|
4
|
+
exports.lifecycleTriggerEventType = lifecycleTriggerEventType;
|
|
4
5
|
exports.descriptorNotifies = descriptorNotifies;
|
|
5
6
|
const zod_1 = require("zod");
|
|
6
7
|
const notification_category_1 = require("./notification-category");
|
|
7
8
|
const notification_channel_1 = require("./notification-channel");
|
|
8
9
|
const notification_severity_1 = require("./notification-severity");
|
|
10
|
+
exports.NotificationLifecycleTriggerSchema = zod_1.z.union([
|
|
11
|
+
zod_1.z.string().min(1).max(200),
|
|
12
|
+
zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
eventType: zod_1.z.string().min(1).max(200),
|
|
15
|
+
when: zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
path: zod_1.z.string().min(1).max(200),
|
|
18
|
+
equals: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean()]),
|
|
19
|
+
})
|
|
20
|
+
.strict(),
|
|
21
|
+
})
|
|
22
|
+
.strict(),
|
|
23
|
+
]);
|
|
24
|
+
function lifecycleTriggerEventType(trigger) {
|
|
25
|
+
return typeof trigger === 'string' ? trigger : trigger.eventType;
|
|
26
|
+
}
|
|
9
27
|
exports.NotificationTemplateSchema = zod_1.z
|
|
10
28
|
.object({
|
|
11
29
|
template: zod_1.z.string().min(1).max(512),
|
|
@@ -23,6 +41,12 @@ exports.NotificationSubjectSchema = zod_1.z.discriminatedUnion('kind', [
|
|
|
23
41
|
idPath: zod_1.z.string().min(1).max(200),
|
|
24
42
|
})
|
|
25
43
|
.strict(),
|
|
44
|
+
zod_1.z
|
|
45
|
+
.object({
|
|
46
|
+
kind: zod_1.z.literal('resource-ref'),
|
|
47
|
+
refPath: zod_1.z.string().min(1).max(200),
|
|
48
|
+
})
|
|
49
|
+
.strict(),
|
|
26
50
|
zod_1.z
|
|
27
51
|
.object({
|
|
28
52
|
kind: zod_1.z.literal('none'),
|
|
@@ -121,8 +145,9 @@ const NotifyingDescriptorSchema = zod_1.z
|
|
|
121
145
|
}),
|
|
122
146
|
lifecycle: zod_1.z
|
|
123
147
|
.object({
|
|
124
|
-
resolvedBy: zod_1.z.array(
|
|
125
|
-
cancelledBy: zod_1.z.array(
|
|
148
|
+
resolvedBy: zod_1.z.array(exports.NotificationLifecycleTriggerSchema).default([]),
|
|
149
|
+
cancelledBy: zod_1.z.array(exports.NotificationLifecycleTriggerSchema).default([]),
|
|
150
|
+
reopenedBy: zod_1.z.array(exports.NotificationLifecycleTriggerSchema).default([]),
|
|
126
151
|
})
|
|
127
152
|
.strict()
|
|
128
153
|
.optional(),
|
|
@@ -204,6 +229,39 @@ const NotifyingDescriptorSchema = zod_1.z
|
|
|
204
229
|
'never sends.',
|
|
205
230
|
});
|
|
206
231
|
}
|
|
232
|
+
if (descriptor.lifecycle !== undefined) {
|
|
233
|
+
const arms = [
|
|
234
|
+
['resolvedBy', descriptor.lifecycle.resolvedBy],
|
|
235
|
+
['cancelledBy', descriptor.lifecycle.cancelledBy],
|
|
236
|
+
['reopenedBy', descriptor.lifecycle.reopenedBy],
|
|
237
|
+
];
|
|
238
|
+
for (const [i, [leftName, left]] of arms.entries()) {
|
|
239
|
+
for (const [rightName, right] of arms.slice(i + 1)) {
|
|
240
|
+
for (const leftTrigger of left) {
|
|
241
|
+
const type = lifecycleTriggerEventType(leftTrigger);
|
|
242
|
+
for (const rightTrigger of right) {
|
|
243
|
+
if (lifecycleTriggerEventType(rightTrigger) !== type) {
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
if (typeof leftTrigger === 'string' ||
|
|
247
|
+
typeof rightTrigger === 'string') {
|
|
248
|
+
ctx.addIssue({
|
|
249
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
250
|
+
path: ['lifecycle', rightName],
|
|
251
|
+
message: `"${type}" is declared in both ${leftName} and ` +
|
|
252
|
+
`${rightName}, at least once with no condition. An ` +
|
|
253
|
+
'unconditional trigger fires every time, so one event ' +
|
|
254
|
+
'would both close and reopen a row — and nothing ranks ' +
|
|
255
|
+
'the arms, so a consumer would resolve it by iteration ' +
|
|
256
|
+
'order rather than by what the producer meant. Give each ' +
|
|
257
|
+
'occurrence a `when` that tells them apart.',
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
207
265
|
});
|
|
208
266
|
const NonNotifyingDescriptorSchema = zod_1.z
|
|
209
267
|
.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-descriptor-contribution.js","sourceRoot":"","sources":["../../../src/notification/lib/notification-descriptor-contribution.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"notification-descriptor-contribution.js","sourceRoot":"","sources":["../../../src/notification/lib/notification-descriptor-contribution.ts"],"names":[],"mappings":";;;AA4GA,8DAIC;AAsnBD,gDAIC;AA1uBD,6BAAwB;AAExB,mEAGiC;AACjC,iEAGgC;AAChC,mEAGiC;AA2EpB,QAAA,kCAAkC,GAAG,OAAC,CAAC,KAAK,CAAC;IACxD,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1B,OAAC;SACE,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACrC,IAAI,EAAE,OAAC;aACJ,MAAM,CAAC;YACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;YAChC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,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oCAAoC,GAAG,OAAC;KAClD,kBAAkB,CAAC,UAAU,EAAE;IAC9B,yBAAyB;IACzB,4BAA4B;CAC7B,CAAC;KAID,SAAS,CAAC,CAAC,UAAU,EAAE,EAAE,CACxB,UAAU,CAAC,QAAQ,IAAI,UAAU,CAAC,oBAAoB,KAAK,SAAS;IAClE,CAAC,CAAC;QACE,GAAG,UAAU;QACb,oBAAoB,EAClB,UAAU,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM;YAChC,CAAC,CAAE,MAAgB;YACnB,CAAC,CAAE,uBAAiC;KACzC;IACH,CAAC,CAAC,UAAU,CACf,CAAC;AAaJ,SAAgB,kBAAkB,CAChC,UAA0C;IAE1C,OAAO,UAAU,CAAC,QAAQ,CAAC;AAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Consolidated Xema OS kernel wire contracts — pure types + zod schemas for the kernel protocol surfaces. One package, one npm scope, wildcard per-surface subpath exports. No framework/runtime deps.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
|