@openparser/lineage 1.0.9 → 1.0.11
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/CHANGELOG.md +8 -0
- package/dist/activity.d.ts +7 -7
- package/dist/activity.d.ts.map +1 -1
- package/dist/builder.d.ts.map +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/confidence.d.ts +7 -7
- package/dist/confidence.d.ts.map +1 -1
- package/dist/derivation.d.ts +10 -10
- package/dist/derivation.d.ts.map +1 -1
- package/dist/document.d.ts +32 -32
- package/dist/entity.d.ts +10 -10
- package/dist/entity.d.ts.map +1 -1
- package/dist/profile/transform-validation.d.ts +21 -25
- package/dist/profile/transform-validation.d.ts.map +1 -1
- package/dist/relation.d.ts +3 -3
- package/dist/relation.d.ts.map +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/activity.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ export declare const AssociationSchema: z.ZodObject<{
|
|
|
6
6
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
7
7
|
}, z.core.$strict>;
|
|
8
8
|
export type Association = z.infer<typeof AssociationSchema>;
|
|
9
|
-
export declare const ACTIVITY_STATUSES: readonly [
|
|
9
|
+
export declare const ACTIVITY_STATUSES: readonly ['scheduled', 'started', 'ended', 'failed', 'cancelled'];
|
|
10
10
|
export declare const ActivityStatusSchema: z.ZodEnum<{
|
|
11
|
-
|
|
12
|
-
started: "started";
|
|
11
|
+
cancelled: "cancelled";
|
|
13
12
|
ended: "ended";
|
|
14
13
|
failed: "failed";
|
|
15
|
-
|
|
14
|
+
scheduled: "scheduled";
|
|
15
|
+
started: "started";
|
|
16
16
|
}>;
|
|
17
17
|
export type ActivityStatus = z.infer<typeof ActivityStatusSchema>;
|
|
18
18
|
/**
|
|
@@ -37,11 +37,11 @@ export declare const ActivitySchema: z.ZodObject<{
|
|
|
37
37
|
type: z.ZodString;
|
|
38
38
|
name: z.ZodOptional<z.ZodString>;
|
|
39
39
|
status: z.ZodOptional<z.ZodEnum<{
|
|
40
|
-
|
|
41
|
-
started: "started";
|
|
40
|
+
cancelled: "cancelled";
|
|
42
41
|
ended: "ended";
|
|
43
42
|
failed: "failed";
|
|
44
|
-
|
|
43
|
+
scheduled: "scheduled";
|
|
44
|
+
started: "started";
|
|
45
45
|
}>>;
|
|
46
46
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
47
47
|
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
package/dist/activity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../src/activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oEAAoE;AACpE,eAAO,MAAM,iBAAiB;;;;kBAMnB,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../src/activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oEAAoE;AACpE,eAAO,MAAM,iBAAiB;;;;kBAMnB,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,YAAI,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AACnG,eAAO,MAAM,oBAAoB;;;;;;EAA4B,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;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GvB;IAED,YAAY,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAGxC;IAED,cAAc,CAAC,UAAU,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,GAAG,IAAI,CAG3E;IAED,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAM5C;IAED,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI,CAMlD;IAED,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAMzC;IAED;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE;QACX,yEAAyE;QACzE,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,KAAK,CAAC,eAAe,GAAG,MAAM,CAAC,CAAC;QACzC,cAAc,CAAC,EAAE,cAAc,CAAC;QAChC,UAAU,CAAC,EAAE,mBAAmB,CAAC;QACjC,UAAU,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;KACvC,GAAG,IAAI,CAkBP;IAED,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAGjC;IAED,WAAW,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAGxC;IAED,mDAAmD;IACnD,KAAK,IAAI,eAAe,CAavB;CACF"}
|
package/dist/common.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare function jsonValuesEqual(left: JsonValue, right: JsonValue): bool
|
|
|
21
21
|
export declare const JsonPointerSchema: z.ZodString;
|
|
22
22
|
export type JsonPointer = z.infer<typeof JsonPointerSchema>;
|
|
23
23
|
/** Wire format tag for this package. */
|
|
24
|
-
export declare const LINEAGE_FORMAT:
|
|
24
|
+
export declare const LINEAGE_FORMAT: 'lineage@1';
|
|
25
25
|
export declare const LineageFormatSchema: z.ZodLiteral<"lineage@1">;
|
|
26
26
|
export type LineageFormat = z.infer<typeof LineageFormatSchema>;
|
|
27
27
|
/**
|
package/dist/confidence.d.ts
CHANGED
|
@@ -10,18 +10,18 @@ export declare const ConfidenceScaleSchema: z.ZodObject<{
|
|
|
10
10
|
max: z.ZodNumber;
|
|
11
11
|
}, z.core.$strict>;
|
|
12
12
|
export type ConfidenceScale = z.infer<typeof ConfidenceScaleSchema>;
|
|
13
|
-
export declare const CONFIDENCE_KINDS: readonly [
|
|
13
|
+
export declare const CONFIDENCE_KINDS: readonly ['reported', 'derived', 'assessed'];
|
|
14
14
|
export declare const ConfidenceKindSchema: z.ZodEnum<{
|
|
15
|
-
reported: "reported";
|
|
16
|
-
derived: "derived";
|
|
17
15
|
assessed: "assessed";
|
|
16
|
+
derived: "derived";
|
|
17
|
+
reported: "reported";
|
|
18
18
|
}>;
|
|
19
19
|
export type ConfidenceKind = z.infer<typeof ConfidenceKindSchema>;
|
|
20
20
|
export declare const ConfidenceSourceSchema: z.ZodObject<{
|
|
21
21
|
type: z.ZodEnum<{
|
|
22
|
+
activity: "activity";
|
|
22
23
|
agent: "agent";
|
|
23
24
|
entity: "entity";
|
|
24
|
-
activity: "activity";
|
|
25
25
|
}>;
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
}, z.core.$strict>;
|
|
@@ -38,18 +38,18 @@ export declare const ConfidenceAssertionSchema: z.ZodObject<{
|
|
|
38
38
|
max: z.ZodNumber;
|
|
39
39
|
}, z.core.$strict>;
|
|
40
40
|
kind: z.ZodEnum<{
|
|
41
|
-
reported: "reported";
|
|
42
|
-
derived: "derived";
|
|
43
41
|
assessed: "assessed";
|
|
42
|
+
derived: "derived";
|
|
43
|
+
reported: "reported";
|
|
44
44
|
}>;
|
|
45
45
|
scope: z.ZodString;
|
|
46
46
|
granularity: z.ZodOptional<z.ZodString>;
|
|
47
47
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
48
48
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
49
|
type: z.ZodEnum<{
|
|
50
|
+
activity: "activity";
|
|
50
51
|
agent: "agent";
|
|
51
52
|
entity: "entity";
|
|
52
|
-
activity: "activity";
|
|
53
53
|
}>;
|
|
54
54
|
id: z.ZodString;
|
|
55
55
|
}, z.core.$strict>>>;
|
package/dist/confidence.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confidence.d.ts","sourceRoot":"","sources":["../src/confidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;kBAc9B,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"confidence.d.ts","sourceRoot":"","sources":["../src/confidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;kBAc9B,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,gBAAgB,YAAI,UAAU,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAC7E,eAAO,MAAM,oBAAoB;;;;EAA2B,CAAC;AAC7D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;kBAKxB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;kBA2BlC,CAAC;AACL,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/derivation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const DERIVATION_EFFECTS: readonly [
|
|
2
|
+
export declare const DERIVATION_EFFECTS: readonly ['direct', 'indirect'];
|
|
3
3
|
export declare const MAX_DERIVATION_INPUTS = 1024;
|
|
4
4
|
export declare const DerivationEffectSchema: z.ZodEnum<{
|
|
5
5
|
direct: "direct";
|
|
@@ -32,18 +32,18 @@ export declare const DerivationInputSchema: z.ZodObject<{
|
|
|
32
32
|
max: z.ZodNumber;
|
|
33
33
|
}, z.core.$strict>;
|
|
34
34
|
kind: z.ZodEnum<{
|
|
35
|
-
reported: "reported";
|
|
36
|
-
derived: "derived";
|
|
37
35
|
assessed: "assessed";
|
|
36
|
+
derived: "derived";
|
|
37
|
+
reported: "reported";
|
|
38
38
|
}>;
|
|
39
39
|
scope: z.ZodString;
|
|
40
40
|
granularity: z.ZodOptional<z.ZodString>;
|
|
41
41
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
42
42
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
43
|
type: z.ZodEnum<{
|
|
44
|
+
activity: "activity";
|
|
44
45
|
agent: "agent";
|
|
45
46
|
entity: "entity";
|
|
46
|
-
activity: "activity";
|
|
47
47
|
}>;
|
|
48
48
|
id: z.ZodString;
|
|
49
49
|
}, z.core.$strict>>>;
|
|
@@ -97,18 +97,18 @@ export declare const DerivationSchema: z.ZodObject<{
|
|
|
97
97
|
max: z.ZodNumber;
|
|
98
98
|
}, z.core.$strict>;
|
|
99
99
|
kind: z.ZodEnum<{
|
|
100
|
-
reported: "reported";
|
|
101
|
-
derived: "derived";
|
|
102
100
|
assessed: "assessed";
|
|
101
|
+
derived: "derived";
|
|
102
|
+
reported: "reported";
|
|
103
103
|
}>;
|
|
104
104
|
scope: z.ZodString;
|
|
105
105
|
granularity: z.ZodOptional<z.ZodString>;
|
|
106
106
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
107
107
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
108
|
type: z.ZodEnum<{
|
|
109
|
+
activity: "activity";
|
|
109
110
|
agent: "agent";
|
|
110
111
|
entity: "entity";
|
|
111
|
-
activity: "activity";
|
|
112
112
|
}>;
|
|
113
113
|
id: z.ZodString;
|
|
114
114
|
}, z.core.$strict>>>;
|
|
@@ -132,18 +132,18 @@ export declare const DerivationSchema: z.ZodObject<{
|
|
|
132
132
|
max: z.ZodNumber;
|
|
133
133
|
}, z.core.$strict>;
|
|
134
134
|
kind: z.ZodEnum<{
|
|
135
|
-
reported: "reported";
|
|
136
|
-
derived: "derived";
|
|
137
135
|
assessed: "assessed";
|
|
136
|
+
derived: "derived";
|
|
137
|
+
reported: "reported";
|
|
138
138
|
}>;
|
|
139
139
|
scope: z.ZodString;
|
|
140
140
|
granularity: z.ZodOptional<z.ZodString>;
|
|
141
141
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
142
142
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
143
|
type: z.ZodEnum<{
|
|
144
|
+
activity: "activity";
|
|
144
145
|
agent: "agent";
|
|
145
146
|
entity: "entity";
|
|
146
|
-
activity: "activity";
|
|
147
147
|
}>;
|
|
148
148
|
id: z.ZodString;
|
|
149
149
|
}, z.core.$strict>>>;
|
package/dist/derivation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derivation.d.ts","sourceRoot":"","sources":["../src/derivation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"derivation.d.ts","sourceRoot":"","sources":["../src/derivation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB,YAAI,QAAQ,EAAE,UAAU,CAAU,CAAC;AAClE,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAC3C,eAAO,MAAM,sBAAsB;;;EAA6B,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQvB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;;;;kBAQtB,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUlB,CAAC;AACZ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,QAAQ,CAAC,GAAG,MAAM,CAElF"}
|
package/dist/document.d.ts
CHANGED
|
@@ -11,11 +11,11 @@ export declare const LineageDocumentShapeSchema: z.ZodObject<{
|
|
|
11
11
|
profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
12
|
entities: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13
13
|
kind: z.ZodEnum<{
|
|
14
|
-
value: "value";
|
|
15
14
|
artifact: "artifact";
|
|
16
|
-
evidence: "evidence";
|
|
17
|
-
decision: "decision";
|
|
18
15
|
collection: "collection";
|
|
16
|
+
decision: "decision";
|
|
17
|
+
evidence: "evidence";
|
|
18
|
+
value: "value";
|
|
19
19
|
}>;
|
|
20
20
|
name: z.ZodOptional<z.ZodString>;
|
|
21
21
|
value: z.ZodOptional<z.ZodJSONSchema>;
|
|
@@ -46,18 +46,18 @@ export declare const LineageDocumentShapeSchema: z.ZodObject<{
|
|
|
46
46
|
max: z.ZodNumber;
|
|
47
47
|
}, z.core.$strict>;
|
|
48
48
|
kind: z.ZodEnum<{
|
|
49
|
-
reported: "reported";
|
|
50
|
-
derived: "derived";
|
|
51
49
|
assessed: "assessed";
|
|
50
|
+
derived: "derived";
|
|
51
|
+
reported: "reported";
|
|
52
52
|
}>;
|
|
53
53
|
scope: z.ZodString;
|
|
54
54
|
granularity: z.ZodOptional<z.ZodString>;
|
|
55
55
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
56
56
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
57
|
type: z.ZodEnum<{
|
|
58
|
+
activity: "activity";
|
|
58
59
|
agent: "agent";
|
|
59
60
|
entity: "entity";
|
|
60
|
-
activity: "activity";
|
|
61
61
|
}>;
|
|
62
62
|
id: z.ZodString;
|
|
63
63
|
}, z.core.$strict>>>;
|
|
@@ -82,11 +82,11 @@ export declare const LineageDocumentShapeSchema: z.ZodObject<{
|
|
|
82
82
|
type: z.ZodString;
|
|
83
83
|
name: z.ZodOptional<z.ZodString>;
|
|
84
84
|
status: z.ZodOptional<z.ZodEnum<{
|
|
85
|
-
|
|
86
|
-
started: "started";
|
|
85
|
+
cancelled: "cancelled";
|
|
87
86
|
ended: "ended";
|
|
88
87
|
failed: "failed";
|
|
89
|
-
|
|
88
|
+
scheduled: "scheduled";
|
|
89
|
+
started: "started";
|
|
90
90
|
}>>;
|
|
91
91
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
92
92
|
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -128,18 +128,18 @@ export declare const LineageDocumentShapeSchema: z.ZodObject<{
|
|
|
128
128
|
max: z.ZodNumber;
|
|
129
129
|
}, z.core.$strict>;
|
|
130
130
|
kind: z.ZodEnum<{
|
|
131
|
-
reported: "reported";
|
|
132
|
-
derived: "derived";
|
|
133
131
|
assessed: "assessed";
|
|
132
|
+
derived: "derived";
|
|
133
|
+
reported: "reported";
|
|
134
134
|
}>;
|
|
135
135
|
scope: z.ZodString;
|
|
136
136
|
granularity: z.ZodOptional<z.ZodString>;
|
|
137
137
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
138
138
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
139
|
type: z.ZodEnum<{
|
|
140
|
+
activity: "activity";
|
|
140
141
|
agent: "agent";
|
|
141
142
|
entity: "entity";
|
|
142
|
-
activity: "activity";
|
|
143
143
|
}>;
|
|
144
144
|
id: z.ZodString;
|
|
145
145
|
}, z.core.$strict>>>;
|
|
@@ -163,18 +163,18 @@ export declare const LineageDocumentShapeSchema: z.ZodObject<{
|
|
|
163
163
|
max: z.ZodNumber;
|
|
164
164
|
}, z.core.$strict>;
|
|
165
165
|
kind: z.ZodEnum<{
|
|
166
|
-
reported: "reported";
|
|
167
|
-
derived: "derived";
|
|
168
166
|
assessed: "assessed";
|
|
167
|
+
derived: "derived";
|
|
168
|
+
reported: "reported";
|
|
169
169
|
}>;
|
|
170
170
|
scope: z.ZodString;
|
|
171
171
|
granularity: z.ZodOptional<z.ZodString>;
|
|
172
172
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
173
173
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
174
174
|
type: z.ZodEnum<{
|
|
175
|
+
activity: "activity";
|
|
175
176
|
agent: "agent";
|
|
176
177
|
entity: "entity";
|
|
177
|
-
activity: "activity";
|
|
178
178
|
}>;
|
|
179
179
|
id: z.ZodString;
|
|
180
180
|
}, z.core.$strict>>>;
|
|
@@ -186,9 +186,9 @@ export declare const LineageDocumentShapeSchema: z.ZodObject<{
|
|
|
186
186
|
}, z.core.$strict>>>;
|
|
187
187
|
relations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
188
188
|
type: z.ZodEnum<{
|
|
189
|
+
alternate_of: "alternate_of";
|
|
189
190
|
member_of: "member_of";
|
|
190
191
|
specialization_of: "specialization_of";
|
|
191
|
-
alternate_of: "alternate_of";
|
|
192
192
|
}>;
|
|
193
193
|
source: z.ZodString;
|
|
194
194
|
target: z.ZodString;
|
|
@@ -223,11 +223,11 @@ export declare const LineageDocumentSchema: z.ZodObject<{
|
|
|
223
223
|
profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
224
|
entities: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
225
225
|
kind: z.ZodEnum<{
|
|
226
|
-
value: "value";
|
|
227
226
|
artifact: "artifact";
|
|
228
|
-
evidence: "evidence";
|
|
229
|
-
decision: "decision";
|
|
230
227
|
collection: "collection";
|
|
228
|
+
decision: "decision";
|
|
229
|
+
evidence: "evidence";
|
|
230
|
+
value: "value";
|
|
231
231
|
}>;
|
|
232
232
|
name: z.ZodOptional<z.ZodString>;
|
|
233
233
|
value: z.ZodOptional<z.ZodJSONSchema>;
|
|
@@ -258,18 +258,18 @@ export declare const LineageDocumentSchema: z.ZodObject<{
|
|
|
258
258
|
max: z.ZodNumber;
|
|
259
259
|
}, z.core.$strict>;
|
|
260
260
|
kind: z.ZodEnum<{
|
|
261
|
-
reported: "reported";
|
|
262
|
-
derived: "derived";
|
|
263
261
|
assessed: "assessed";
|
|
262
|
+
derived: "derived";
|
|
263
|
+
reported: "reported";
|
|
264
264
|
}>;
|
|
265
265
|
scope: z.ZodString;
|
|
266
266
|
granularity: z.ZodOptional<z.ZodString>;
|
|
267
267
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
268
268
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
269
269
|
type: z.ZodEnum<{
|
|
270
|
+
activity: "activity";
|
|
270
271
|
agent: "agent";
|
|
271
272
|
entity: "entity";
|
|
272
|
-
activity: "activity";
|
|
273
273
|
}>;
|
|
274
274
|
id: z.ZodString;
|
|
275
275
|
}, z.core.$strict>>>;
|
|
@@ -294,11 +294,11 @@ export declare const LineageDocumentSchema: z.ZodObject<{
|
|
|
294
294
|
type: z.ZodString;
|
|
295
295
|
name: z.ZodOptional<z.ZodString>;
|
|
296
296
|
status: z.ZodOptional<z.ZodEnum<{
|
|
297
|
-
|
|
298
|
-
started: "started";
|
|
297
|
+
cancelled: "cancelled";
|
|
299
298
|
ended: "ended";
|
|
300
299
|
failed: "failed";
|
|
301
|
-
|
|
300
|
+
scheduled: "scheduled";
|
|
301
|
+
started: "started";
|
|
302
302
|
}>>;
|
|
303
303
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
304
304
|
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -340,18 +340,18 @@ export declare const LineageDocumentSchema: z.ZodObject<{
|
|
|
340
340
|
max: z.ZodNumber;
|
|
341
341
|
}, z.core.$strict>;
|
|
342
342
|
kind: z.ZodEnum<{
|
|
343
|
-
reported: "reported";
|
|
344
|
-
derived: "derived";
|
|
345
343
|
assessed: "assessed";
|
|
344
|
+
derived: "derived";
|
|
345
|
+
reported: "reported";
|
|
346
346
|
}>;
|
|
347
347
|
scope: z.ZodString;
|
|
348
348
|
granularity: z.ZodOptional<z.ZodString>;
|
|
349
349
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
350
350
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
351
351
|
type: z.ZodEnum<{
|
|
352
|
+
activity: "activity";
|
|
352
353
|
agent: "agent";
|
|
353
354
|
entity: "entity";
|
|
354
|
-
activity: "activity";
|
|
355
355
|
}>;
|
|
356
356
|
id: z.ZodString;
|
|
357
357
|
}, z.core.$strict>>>;
|
|
@@ -375,18 +375,18 @@ export declare const LineageDocumentSchema: z.ZodObject<{
|
|
|
375
375
|
max: z.ZodNumber;
|
|
376
376
|
}, z.core.$strict>;
|
|
377
377
|
kind: z.ZodEnum<{
|
|
378
|
-
reported: "reported";
|
|
379
|
-
derived: "derived";
|
|
380
378
|
assessed: "assessed";
|
|
379
|
+
derived: "derived";
|
|
380
|
+
reported: "reported";
|
|
381
381
|
}>;
|
|
382
382
|
scope: z.ZodString;
|
|
383
383
|
granularity: z.ZodOptional<z.ZodString>;
|
|
384
384
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
385
385
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
386
386
|
type: z.ZodEnum<{
|
|
387
|
+
activity: "activity";
|
|
387
388
|
agent: "agent";
|
|
388
389
|
entity: "entity";
|
|
389
|
-
activity: "activity";
|
|
390
390
|
}>;
|
|
391
391
|
id: z.ZodString;
|
|
392
392
|
}, z.core.$strict>>>;
|
|
@@ -398,9 +398,9 @@ export declare const LineageDocumentSchema: z.ZodObject<{
|
|
|
398
398
|
}, z.core.$strict>>>;
|
|
399
399
|
relations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
400
400
|
type: z.ZodEnum<{
|
|
401
|
+
alternate_of: "alternate_of";
|
|
401
402
|
member_of: "member_of";
|
|
402
403
|
specialization_of: "specialization_of";
|
|
403
|
-
alternate_of: "alternate_of";
|
|
404
404
|
}>;
|
|
405
405
|
source: z.ZodString;
|
|
406
406
|
target: z.ZodString;
|
package/dist/entity.d.ts
CHANGED
|
@@ -38,13 +38,13 @@ export declare const SelectorSchema: z.ZodObject<{
|
|
|
38
38
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
39
39
|
}, z.core.$strict>;
|
|
40
40
|
export type Selector = z.infer<typeof SelectorSchema>;
|
|
41
|
-
export declare const ENTITY_KINDS: readonly [
|
|
41
|
+
export declare const ENTITY_KINDS: readonly ['value', 'artifact', 'evidence', 'decision', 'collection'];
|
|
42
42
|
export declare const EntityKindSchema: z.ZodEnum<{
|
|
43
|
-
value: "value";
|
|
44
43
|
artifact: "artifact";
|
|
45
|
-
evidence: "evidence";
|
|
46
|
-
decision: "decision";
|
|
47
44
|
collection: "collection";
|
|
45
|
+
decision: "decision";
|
|
46
|
+
evidence: "evidence";
|
|
47
|
+
value: "value";
|
|
48
48
|
}>;
|
|
49
49
|
export type EntityKind = z.infer<typeof EntityKindSchema>;
|
|
50
50
|
/**
|
|
@@ -55,11 +55,11 @@ export type EntityKind = z.infer<typeof EntityKindSchema>;
|
|
|
55
55
|
*/
|
|
56
56
|
export declare const EntitySchema: z.ZodObject<{
|
|
57
57
|
kind: z.ZodEnum<{
|
|
58
|
-
value: "value";
|
|
59
58
|
artifact: "artifact";
|
|
60
|
-
evidence: "evidence";
|
|
61
|
-
decision: "decision";
|
|
62
59
|
collection: "collection";
|
|
60
|
+
decision: "decision";
|
|
61
|
+
evidence: "evidence";
|
|
62
|
+
value: "value";
|
|
63
63
|
}>;
|
|
64
64
|
name: z.ZodOptional<z.ZodString>;
|
|
65
65
|
value: z.ZodOptional<z.ZodJSONSchema>;
|
|
@@ -90,18 +90,18 @@ export declare const EntitySchema: z.ZodObject<{
|
|
|
90
90
|
max: z.ZodNumber;
|
|
91
91
|
}, z.core.$strict>;
|
|
92
92
|
kind: z.ZodEnum<{
|
|
93
|
-
reported: "reported";
|
|
94
|
-
derived: "derived";
|
|
95
93
|
assessed: "assessed";
|
|
94
|
+
derived: "derived";
|
|
95
|
+
reported: "reported";
|
|
96
96
|
}>;
|
|
97
97
|
scope: z.ZodString;
|
|
98
98
|
granularity: z.ZodOptional<z.ZodString>;
|
|
99
99
|
calibrated: z.ZodDefault<z.ZodBoolean>;
|
|
100
100
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
101
|
type: z.ZodEnum<{
|
|
102
|
+
activity: "activity";
|
|
102
103
|
agent: "agent";
|
|
103
104
|
entity: "entity";
|
|
104
|
-
activity: "activity";
|
|
105
105
|
}>;
|
|
106
106
|
id: z.ZodString;
|
|
107
107
|
}, z.core.$strict>>>;
|
package/dist/entity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../src/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,gEAAgE;AAChE,eAAO,MAAM,iBAAiB;;;;kBAMnB,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,YAAY;;;kBAKd,CAAC;AACZ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;kBAOf,CAAC;AACZ,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;kBAMhB,CAAC;AACZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../src/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,gEAAgE;AAChE,eAAO,MAAM,iBAAiB;;;;kBAMnB,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,YAAY;;;kBAKd,CAAC;AACZ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;kBAOf,CAAC;AACZ,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;kBAMhB,CAAC;AACZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,YAAI,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,CAAU,CAAC;AACjG,eAAO,MAAM,gBAAgB;;;;;;EAAuB,CAAC;AACrD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsBd,CAAC;AACZ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -4,12 +4,12 @@ export declare const TRANSFORM_PROOF_ATTRIBUTE = "openparser:transformProof";
|
|
|
4
4
|
export declare const MAX_TRANSFORM_PROOF_BYTES = 2048;
|
|
5
5
|
/** Admission budget so a newly accepted policy can always serialize inside a 2 KiB proof. */
|
|
6
6
|
export declare const MAX_TRANSFORM_INTENT_PARAMETER_BYTES = 1024;
|
|
7
|
-
export declare const TRANSFORM_DOCS_ANCHORS: readonly [
|
|
7
|
+
export declare const TRANSFORM_DOCS_ANCHORS: readonly ['date-time-format', 'numeric-format', 'quantity-magnitude', 'unit-conversion', 'currency-code', 'boolean-alias', 'text-normalization', 'enum-alias'];
|
|
8
8
|
export type TransformDocsAnchor = (typeof TRANSFORM_DOCS_ANCHORS)[number];
|
|
9
9
|
export declare const TransformProofClassSchema: z.ZodEnum<{
|
|
10
|
-
safe_equivalence: "safe_equivalence";
|
|
11
10
|
exact_conversion: "exact_conversion";
|
|
12
11
|
policy_application: "policy_application";
|
|
12
|
+
safe_equivalence: "safe_equivalence";
|
|
13
13
|
}>;
|
|
14
14
|
export type TransformProofClass = z.infer<typeof TransformProofClassSchema>;
|
|
15
15
|
export type DateTimeKind = 'date' | 'date-time' | 'time';
|
|
@@ -30,19 +30,19 @@ export declare function dateTimeFormatIssue(kind: DateTimeKind, sourceFormats: s
|
|
|
30
30
|
* omitted. A claim `source_format` may only prioritize a catalog member; it
|
|
31
31
|
* cannot add omitted forms or shrink the candidate set.
|
|
32
32
|
*/
|
|
33
|
-
export declare const DATE_SOURCE_CATALOG_ID:
|
|
33
|
+
export declare const DATE_SOURCE_CATALOG_ID: 'openparser.transform.date-source-catalog';
|
|
34
34
|
export declare const DATE_SOURCE_CATALOG_VERSION: 1;
|
|
35
35
|
export declare const FORMAT_ONLY_DATE_TARGETS: {
|
|
36
|
-
readonly date:
|
|
36
|
+
readonly date: 'yyyy-MM-dd';
|
|
37
37
|
readonly 'date-time': "yyyy-MM-dd'T'HH:mm:ssZZ";
|
|
38
|
-
readonly time:
|
|
38
|
+
readonly time: 'HH:mm:ssZZ';
|
|
39
39
|
};
|
|
40
40
|
export declare const DATE_SOURCE_CATALOG_V1: Record<DateTimeKind, readonly string[]>;
|
|
41
41
|
export declare function trustedDateSourceFormats(kind: DateTimeKind, targetFormat?: string): string[];
|
|
42
42
|
export declare function formatOnlyDateTimeParameters(kind: DateTimeKind): {
|
|
43
43
|
kind: DateTimeKind;
|
|
44
44
|
sourceFormats: string[];
|
|
45
|
-
targetFormat: "yyyy-MM-dd" | "yyyy-MM-dd'T'HH:mm:ssZZ"
|
|
45
|
+
targetFormat: "HH:mm:ssZZ" | "yyyy-MM-dd" | "yyyy-MM-dd'T'HH:mm:ssZZ";
|
|
46
46
|
locale: string;
|
|
47
47
|
zonePolicy: "civil" | "preserve";
|
|
48
48
|
sourceCatalog: {
|
|
@@ -55,17 +55,17 @@ export declare const TransformIntentSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
55
55
|
parameters: z.ZodObject<{
|
|
56
56
|
kind: z.ZodEnum<{
|
|
57
57
|
date: "date";
|
|
58
|
-
time: "time";
|
|
59
58
|
"date-time": "date-time";
|
|
59
|
+
time: "time";
|
|
60
60
|
}>;
|
|
61
61
|
sourceFormats: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
62
62
|
targetFormat: z.ZodString;
|
|
63
63
|
locale: z.ZodDefault<z.ZodString>;
|
|
64
64
|
zonePolicy: z.ZodDefault<z.ZodEnum<{
|
|
65
65
|
civil: "civil";
|
|
66
|
+
named: "named";
|
|
66
67
|
preserve: "preserve";
|
|
67
68
|
utc: "utc";
|
|
68
|
-
named: "named";
|
|
69
69
|
}>>;
|
|
70
70
|
zone: z.ZodOptional<z.ZodString>;
|
|
71
71
|
sourceCatalog: z.ZodOptional<z.ZodObject<{
|
|
@@ -81,9 +81,9 @@ export declare const TransformIntentSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
81
81
|
".": ".";
|
|
82
82
|
}>>;
|
|
83
83
|
groupingSeparator: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
" ": " ";
|
|
84
85
|
",": ",";
|
|
85
86
|
".": ".";
|
|
86
|
-
" ": " ";
|
|
87
87
|
"\u00A0": " ";
|
|
88
88
|
}>>;
|
|
89
89
|
prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -119,11 +119,11 @@ export declare const TransformIntentSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
119
119
|
operation: z.ZodLiteral<"text_normalization">;
|
|
120
120
|
parameters: z.ZodObject<{
|
|
121
121
|
operations: z.ZodArray<z.ZodEnum<{
|
|
122
|
-
trim: "trim";
|
|
123
|
-
lowercase: "lowercase";
|
|
124
|
-
uppercase: "uppercase";
|
|
125
122
|
collapse_whitespace: "collapse_whitespace";
|
|
123
|
+
lowercase: "lowercase";
|
|
126
124
|
nfkc: "nfkc";
|
|
125
|
+
trim: "trim";
|
|
126
|
+
uppercase: "uppercase";
|
|
127
127
|
}>>;
|
|
128
128
|
locale: z.ZodDefault<z.ZodString>;
|
|
129
129
|
}, z.core.$strict>;
|
|
@@ -140,26 +140,26 @@ export declare const TRANSFORM_OPERATIONS: readonly ["date_time_format", "numeri
|
|
|
140
140
|
export declare const TransformClaimSchema: z.ZodObject<{
|
|
141
141
|
operation: z.ZodEnum<{
|
|
142
142
|
"": "";
|
|
143
|
+
boolean_alias: "boolean_alias";
|
|
144
|
+
currency_code: "currency_code";
|
|
143
145
|
date_time_format: "date_time_format";
|
|
146
|
+
enum_alias: "enum_alias";
|
|
144
147
|
numeric_format: "numeric_format";
|
|
145
148
|
quantity_magnitude: "quantity_magnitude";
|
|
146
|
-
unit_conversion: "unit_conversion";
|
|
147
|
-
currency_code: "currency_code";
|
|
148
|
-
boolean_alias: "boolean_alias";
|
|
149
149
|
text_normalization: "text_normalization";
|
|
150
|
-
|
|
150
|
+
unit_conversion: "unit_conversion";
|
|
151
151
|
}>;
|
|
152
152
|
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
153
153
|
reason: z.ZodString;
|
|
154
154
|
confidence: z.ZodEnum<{
|
|
155
155
|
"": "";
|
|
156
|
+
high: "high";
|
|
156
157
|
low: "low";
|
|
157
158
|
medium: "medium";
|
|
158
|
-
high: "high";
|
|
159
159
|
}>;
|
|
160
160
|
}, z.core.$strict>;
|
|
161
161
|
export type TransformClaim = z.infer<typeof TransformClaimSchema>;
|
|
162
|
-
export declare const TRANSFORM_PROOF_OPERAND_KEYS: readonly [
|
|
162
|
+
export declare const TRANSFORM_PROOF_OPERAND_KEYS: readonly ['bounded', 'canonical', 'magnitude', 'mappedValue', 'matchedSourceFormat', 'output', 'outputCode', 'outputDecimal', 'outputHash', 'policyHash', 'resolvedCode', 'sourceDecimal', 'sourceHash', 'sourceMagnitude', 'sourceUnit', 'targetMagnitude', 'targetUnit'];
|
|
163
163
|
export declare const TransformProofHashSchema: z.ZodObject<{
|
|
164
164
|
algorithm: z.ZodLiteral<"sha256">;
|
|
165
165
|
digest: z.ZodString;
|
|
@@ -175,21 +175,17 @@ export declare const TransformProofSchema: z.ZodObject<{
|
|
|
175
175
|
methodId: z.ZodString;
|
|
176
176
|
methodVersion: z.ZodNumber;
|
|
177
177
|
result: z.ZodEnum<{
|
|
178
|
-
verified: "verified";
|
|
179
178
|
contradicted: "contradicted";
|
|
180
179
|
not_applicable: "not_applicable";
|
|
180
|
+
verified: "verified";
|
|
181
181
|
}>;
|
|
182
182
|
proofClass: z.ZodEnum<{
|
|
183
|
-
safe_equivalence: "safe_equivalence";
|
|
184
183
|
exact_conversion: "exact_conversion";
|
|
185
184
|
policy_application: "policy_application";
|
|
185
|
+
safe_equivalence: "safe_equivalence";
|
|
186
186
|
}>;
|
|
187
187
|
scope: z.ZodString;
|
|
188
|
-
trustedParameters: z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | z.core.
|
|
189
|
-
[key: string]: z.core.util.JSONType;
|
|
190
|
-
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | z.core.util.JSONType[] | {
|
|
191
|
-
[key: string]: z.core.util.JSONType;
|
|
192
|
-
} | null, unknown>>>;
|
|
188
|
+
trustedParameters: z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | z.JSONType[] | Record<string, z.JSONType> | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | z.JSONType[] | Record<string, z.JSONType> | null, unknown>>>;
|
|
193
189
|
operands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | {
|
|
194
190
|
algorithm: "sha256";
|
|
195
191
|
digest: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-validation.d.ts","sourceRoot":"","sources":["../../src/profile/transform-validation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,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A2B,CAAC;CACjC,CAAC;AA2sBF,eAAO,MAAM,oBAAoB,2PAS2B,CAAC;AAM7D,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,kBAAkB,GAC5B,4BAA4B,CAE9B;AAQD,qGAAqG;AACrG,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,GAAG,2BAA2B,CAU9B"}
|
package/dist/relation.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const RELATION_TYPES: readonly [
|
|
2
|
+
export declare const RELATION_TYPES: readonly ['member_of', 'specialization_of', 'alternate_of'];
|
|
3
3
|
export declare const RelationTypeSchema: z.ZodEnum<{
|
|
4
|
+
alternate_of: "alternate_of";
|
|
4
5
|
member_of: "member_of";
|
|
5
6
|
specialization_of: "specialization_of";
|
|
6
|
-
alternate_of: "alternate_of";
|
|
7
7
|
}>;
|
|
8
8
|
export type RelationType = z.infer<typeof RelationTypeSchema>;
|
|
9
9
|
/**
|
|
@@ -15,9 +15,9 @@ export type RelationType = z.infer<typeof RelationTypeSchema>;
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const RelationSchema: z.ZodObject<{
|
|
17
17
|
type: z.ZodEnum<{
|
|
18
|
+
alternate_of: "alternate_of";
|
|
18
19
|
member_of: "member_of";
|
|
19
20
|
specialization_of: "specialization_of";
|
|
20
|
-
alternate_of: "alternate_of";
|
|
21
21
|
}>;
|
|
22
22
|
source: z.ZodString;
|
|
23
23
|
target: z.ZodString;
|
package/dist/relation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relation.d.ts","sourceRoot":"","sources":["../src/relation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"relation.d.ts","sourceRoot":"","sources":["../src/relation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc,YAAI,WAAW,EAAE,mBAAmB,EAAE,cAAc,CAAU,CAAC;AAC1F,eAAO,MAAM,kBAAkB;;;;EAAyB,CAAC;AACzD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;kBAgBvB,CAAC;AACL,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/validate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAE1B,YAAY,MAAM,EAAE,MAAM,EAAE,EAI3B;CACF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI,CAwM/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openparser/lineage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Zod schemas, validation, and helpers for lineage@1 complete data-derivation DAGs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/luxon": "3.7.4",
|
|
44
|
-
"esbuild": "
|
|
44
|
+
"esbuild": "0.25.12",
|
|
45
45
|
"prettier": "3.8.1",
|
|
46
|
-
"typescript": "^
|
|
46
|
+
"typescript": "^7.0.2"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|