@elqora/artifacts 0.2.0 → 0.2.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/README.md +27 -0
- package/dist/editor-kernel.d.ts +36 -0
- package/dist/editor-kernel.d.ts.map +1 -0
- package/dist/editor-kernel.js +76 -0
- package/dist/editor-kernel.js.map +1 -0
- package/dist/editor.d.ts +55 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +118 -0
- package/dist/editor.js.map +1 -0
- package/dist/generated/wire.d.ts +4 -0
- package/dist/generated/wire.d.ts.map +1 -1
- package/dist/generated/wire.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@ type ImageSubject = { subject: string };
|
|
|
32
32
|
const artifact: Artifact<"delivery_evidence", "image", ImageSubject> = {
|
|
33
33
|
schemaVersion: ARTIFACT_PROTOCOL_VERSION,
|
|
34
34
|
id: "artifact_1",
|
|
35
|
+
specId: "spec_1",
|
|
35
36
|
kind: "delivery_evidence",
|
|
36
37
|
valueType: "image",
|
|
37
38
|
specification: {
|
|
@@ -50,6 +51,32 @@ The root export includes the ergonomic TypeScript interfaces, generated
|
|
|
50
51
|
the canonical JSON Schemas in the
|
|
51
52
|
[source repository](https://github.com/elqora/artifacts).
|
|
52
53
|
|
|
54
|
+
## Programmatic editing
|
|
55
|
+
|
|
56
|
+
Artifacts require a matching specification list when opened in an editor. Edits
|
|
57
|
+
are grouped with callback transactions; failures roll back automatically and
|
|
58
|
+
are returned as `{ ok: false, error }`. Successful transactions return the
|
|
59
|
+
updated value and create one local history entry.
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
const opened = ArtifactEditor.open(artifact, { specs });
|
|
63
|
+
|
|
64
|
+
if (opened.ok) {
|
|
65
|
+
const result = opened.value.transaction((tx) => {
|
|
66
|
+
tx.setTitle("Updated evidence");
|
|
67
|
+
tx.updateMetadata({ reviewed: true });
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
if (result.ok) {
|
|
71
|
+
opened.value.history.undo();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`ArtifactSpecEditor` provides the same editing model for specification
|
|
77
|
+
definitions. Neither editor persists data, executes host validation, or creates
|
|
78
|
+
artifact versions.
|
|
79
|
+
|
|
53
80
|
## Compatibility
|
|
54
81
|
|
|
55
82
|
During `0.x`, changes are additive by default. Existing public exports and wire
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type EditorResult<T> = {
|
|
2
|
+
ok: true;
|
|
3
|
+
value: T;
|
|
4
|
+
} | {
|
|
5
|
+
ok: false;
|
|
6
|
+
error: unknown;
|
|
7
|
+
};
|
|
8
|
+
export interface EditorHistory<T> {
|
|
9
|
+
undo(): T | undefined;
|
|
10
|
+
redo(): T | undefined;
|
|
11
|
+
readonly canUndo: boolean;
|
|
12
|
+
readonly canRedo: boolean;
|
|
13
|
+
clear(): void;
|
|
14
|
+
}
|
|
15
|
+
declare class EditorHistoryImpl<T> implements EditorHistory<T> {
|
|
16
|
+
private readonly read;
|
|
17
|
+
private readonly write;
|
|
18
|
+
private readonly undoStack;
|
|
19
|
+
private readonly redoStack;
|
|
20
|
+
constructor(read: () => T, write: (value: T) => void);
|
|
21
|
+
get canUndo(): boolean;
|
|
22
|
+
get canRedo(): boolean;
|
|
23
|
+
undo(): T | undefined;
|
|
24
|
+
redo(): T | undefined;
|
|
25
|
+
push(before: T, after: T): void;
|
|
26
|
+
clear(): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class EditorKernel<T> {
|
|
29
|
+
private state;
|
|
30
|
+
readonly history: EditorHistoryImpl<T>;
|
|
31
|
+
constructor(initial: T);
|
|
32
|
+
value(): T;
|
|
33
|
+
transaction(callback: (draft: T) => void): EditorResult<T>;
|
|
34
|
+
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IACjB,SAAgB,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;gBAE3B,OAAO,EAAE,CAAC;IAUtB,KAAK,IAAI,CAAC;IAIV,WAAW,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC;CAkBlE","sourcesContent":["export type EditorResult<T> =\n | { ok: true; value: T }\n | { ok: false; error: unknown };\n\nexport interface EditorHistory<T> {\n undo(): T | undefined;\n redo(): T | undefined;\n readonly canUndo: boolean;\n readonly canRedo: boolean;\n clear(): void;\n}\n\ntype HistoryEntry<T> = {\n before: T;\n after: T;\n};\n\nfunction clone<T>(value: T): T {\n return structuredClone(value);\n}\n\nfunction equal<T>(left: T, right: T): boolean {\n return JSON.stringify(left) === JSON.stringify(right);\n}\n\nclass EditorHistoryImpl<T> implements EditorHistory<T> {\n private readonly undoStack: HistoryEntry<T>[] = [];\n private readonly redoStack: HistoryEntry<T>[] = [];\n\n public constructor(\n private readonly read: () => T,\n private readonly write: (value: T) => void,\n ) {}\n\n public get canUndo(): boolean {\n return this.undoStack.length > 0;\n }\n\n public get canRedo(): boolean {\n return this.redoStack.length > 0;\n }\n\n public undo(): T | undefined {\n const entry = this.undoStack.pop();\n if (entry === undefined) return undefined;\n\n this.redoStack.push(entry);\n this.write(clone(entry.before));\n return clone(this.read());\n }\n\n public redo(): T | undefined {\n const entry = this.redoStack.pop();\n if (entry === undefined) return undefined;\n\n this.undoStack.push(entry);\n this.write(clone(entry.after));\n return clone(this.read());\n }\n\n public push(before: T, after: T): void {\n this.undoStack.push({ before: clone(before), after: clone(after) });\n this.redoStack.length = 0;\n }\n\n public clear(): void {\n this.undoStack.length = 0;\n this.redoStack.length = 0;\n }\n}\n\nexport class EditorKernel<T> {\n private state: T;\n public readonly history: EditorHistoryImpl<T>;\n\n public constructor(initial: T) {\n this.state = clone(initial);\n this.history = new EditorHistoryImpl(\n () => this.state,\n (value) => {\n this.state = clone(value);\n },\n );\n }\n\n public value(): T {\n return clone(this.state);\n }\n\n public transaction(callback: (draft: T) => void): EditorResult<T> {\n const before = clone(this.state);\n const draft = clone(this.state);\n\n try {\n callback(draft);\n\n if (!equal(before, draft)) {\n this.state = draft;\n this.history.push(before, draft);\n }\n\n return { ok: true, value: clone(this.state) };\n } catch (error) {\n this.state = before;\n return { ok: false, error };\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function clone(value) {
|
|
2
|
+
return structuredClone(value);
|
|
3
|
+
}
|
|
4
|
+
function equal(left, right) {
|
|
5
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
6
|
+
}
|
|
7
|
+
class EditorHistoryImpl {
|
|
8
|
+
read;
|
|
9
|
+
write;
|
|
10
|
+
undoStack = [];
|
|
11
|
+
redoStack = [];
|
|
12
|
+
constructor(read, write) {
|
|
13
|
+
this.read = read;
|
|
14
|
+
this.write = write;
|
|
15
|
+
}
|
|
16
|
+
get canUndo() {
|
|
17
|
+
return this.undoStack.length > 0;
|
|
18
|
+
}
|
|
19
|
+
get canRedo() {
|
|
20
|
+
return this.redoStack.length > 0;
|
|
21
|
+
}
|
|
22
|
+
undo() {
|
|
23
|
+
const entry = this.undoStack.pop();
|
|
24
|
+
if (entry === undefined)
|
|
25
|
+
return undefined;
|
|
26
|
+
this.redoStack.push(entry);
|
|
27
|
+
this.write(clone(entry.before));
|
|
28
|
+
return clone(this.read());
|
|
29
|
+
}
|
|
30
|
+
redo() {
|
|
31
|
+
const entry = this.redoStack.pop();
|
|
32
|
+
if (entry === undefined)
|
|
33
|
+
return undefined;
|
|
34
|
+
this.undoStack.push(entry);
|
|
35
|
+
this.write(clone(entry.after));
|
|
36
|
+
return clone(this.read());
|
|
37
|
+
}
|
|
38
|
+
push(before, after) {
|
|
39
|
+
this.undoStack.push({ before: clone(before), after: clone(after) });
|
|
40
|
+
this.redoStack.length = 0;
|
|
41
|
+
}
|
|
42
|
+
clear() {
|
|
43
|
+
this.undoStack.length = 0;
|
|
44
|
+
this.redoStack.length = 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export class EditorKernel {
|
|
48
|
+
state;
|
|
49
|
+
history;
|
|
50
|
+
constructor(initial) {
|
|
51
|
+
this.state = clone(initial);
|
|
52
|
+
this.history = new EditorHistoryImpl(() => this.state, (value) => {
|
|
53
|
+
this.state = clone(value);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
value() {
|
|
57
|
+
return clone(this.state);
|
|
58
|
+
}
|
|
59
|
+
transaction(callback) {
|
|
60
|
+
const before = clone(this.state);
|
|
61
|
+
const draft = clone(this.state);
|
|
62
|
+
try {
|
|
63
|
+
callback(draft);
|
|
64
|
+
if (!equal(before, draft)) {
|
|
65
|
+
this.state = draft;
|
|
66
|
+
this.history.push(before, draft);
|
|
67
|
+
}
|
|
68
|
+
return { ok: true, value: clone(this.state) };
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
this.state = before;
|
|
72
|
+
return { ok: false, error };
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=editor-kernel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-kernel.js","sourceRoot":"","sources":["../src/editor-kernel.ts"],"names":[],"mappings":"AAiBA,SAAS,KAAK,CAAI,KAAQ;IACxB,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,KAAK,CAAI,IAAO,EAAE,KAAQ;IACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,iBAAiB;IAKF;IACA;IALF,SAAS,GAAsB,EAAE,CAAC;IAClC,SAAS,GAAsB,EAAE,CAAC;IAEnD,YACmB,IAAa,EACb,KAAyB;QADzB,SAAI,GAAJ,IAAI,CAAS;QACb,UAAK,GAA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nexport interface EditorHistory<T> {\n undo(): T | undefined;\n redo(): T | undefined;\n readonly canUndo: boolean;\n readonly canRedo: boolean;\n clear(): void;\n}\n\ntype HistoryEntry<T> = {\n before: T;\n after: T;\n};\n\nfunction clone<T>(value: T): T {\n return structuredClone(value);\n}\n\nfunction equal<T>(left: T, right: T): boolean {\n return JSON.stringify(left) === JSON.stringify(right);\n}\n\nclass EditorHistoryImpl<T> implements EditorHistory<T> {\n private readonly undoStack: HistoryEntry<T>[] = [];\n private readonly redoStack: HistoryEntry<T>[] = [];\n\n public constructor(\n private readonly read: () => T,\n private readonly write: (value: T) => void,\n ) {}\n\n public get canUndo(): boolean {\n return this.undoStack.length > 0;\n }\n\n public get canRedo(): boolean {\n return this.redoStack.length > 0;\n }\n\n public undo(): T | undefined {\n const entry = this.undoStack.pop();\n if (entry === undefined) return undefined;\n\n this.redoStack.push(entry);\n this.write(clone(entry.before));\n return clone(this.read());\n }\n\n public redo(): T | undefined {\n const entry = this.redoStack.pop();\n if (entry === undefined) return undefined;\n\n this.undoStack.push(entry);\n this.write(clone(entry.after));\n return clone(this.read());\n }\n\n public push(before: T, after: T): void {\n this.undoStack.push({ before: clone(before), after: clone(after) });\n this.redoStack.length = 0;\n }\n\n public clear(): void {\n this.undoStack.length = 0;\n this.redoStack.length = 0;\n }\n}\n\nexport class EditorKernel<T> {\n private state: T;\n public readonly history: EditorHistoryImpl<T>;\n\n public constructor(initial: T) {\n this.state = clone(initial);\n this.history = new EditorHistoryImpl(\n () => this.state,\n (value) => {\n this.state = clone(value);\n },\n );\n }\n\n public value(): T {\n return clone(this.state);\n }\n\n public transaction(callback: (draft: T) => void): EditorResult<T> {\n const before = clone(this.state);\n const draft = clone(this.state);\n\n try {\n callback(draft);\n\n if (!equal(before, draft)) {\n this.state = draft;\n this.history.push(before, draft);\n }\n\n return { ok: true, value: clone(this.state) };\n } catch (error) {\n this.state = before;\n return { ok: false, error };\n }\n }\n}\n"]}
|
package/dist/editor.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Artifact, ArtifactAccessPolicy, ArtifactKind, ArtifactLifecyclePolicy, ArtifactMetadata, ArtifactPresentationPolicy, ArtifactPrivacyPolicy, ArtifactProviderPolicy, ArtifactRequirementPolicy, ArtifactScopeReference, ArtifactSpec, ArtifactSpecId, ArtifactSpecification, ArtifactValidationPolicy, ArtifactValueType, ArtifactVerificationPolicy, ArtifactRetentionPolicy } from "./index.js";
|
|
2
|
+
import { type EditorHistory, type EditorResult } from "./editor-kernel.js";
|
|
3
|
+
export type { EditorHistory, EditorResult } from "./editor-kernel.js";
|
|
4
|
+
export interface ArtifactEditorOptions {
|
|
5
|
+
specs: readonly ArtifactSpec[];
|
|
6
|
+
}
|
|
7
|
+
export interface ArtifactEditTransaction<TSpecification = unknown> {
|
|
8
|
+
setScope(scope?: ArtifactScopeReference): void;
|
|
9
|
+
setTitle(title?: string): void;
|
|
10
|
+
setDescription(description?: string): void;
|
|
11
|
+
setSpec(specId: ArtifactSpecId): void;
|
|
12
|
+
setSpecification<TValue>(specification?: ArtifactSpecification<TValue>): void;
|
|
13
|
+
setMetadata(metadata?: ArtifactMetadata): void;
|
|
14
|
+
updateMetadata(partial: ArtifactMetadata): void;
|
|
15
|
+
removeMetadata(key: string): void;
|
|
16
|
+
setArchivedAt(timestamp?: string): void;
|
|
17
|
+
}
|
|
18
|
+
export interface ArtifactSpecEditTransaction<TConfig extends object = Record<string, unknown>> {
|
|
19
|
+
setKey(key: string): void;
|
|
20
|
+
setName(name: string): void;
|
|
21
|
+
setDescription(description?: string): void;
|
|
22
|
+
setKind(kind: ArtifactKind): void;
|
|
23
|
+
setValueType(valueType: ArtifactValueType): void;
|
|
24
|
+
setConfig(config?: TConfig): void;
|
|
25
|
+
setProvider(provider?: ArtifactProviderPolicy): void;
|
|
26
|
+
setRequirement(requirement?: ArtifactRequirementPolicy): void;
|
|
27
|
+
setLifecycle(lifecycle?: ArtifactLifecyclePolicy): void;
|
|
28
|
+
setAccess(access?: ArtifactAccessPolicy): void;
|
|
29
|
+
setPrivacy(privacy?: ArtifactPrivacyPolicy): void;
|
|
30
|
+
setValidation(validation?: ArtifactValidationPolicy): void;
|
|
31
|
+
setVerification(verification?: ArtifactVerificationPolicy): void;
|
|
32
|
+
setRetention(retention?: ArtifactRetentionPolicy): void;
|
|
33
|
+
setPresentation(presentation?: ArtifactPresentationPolicy): void;
|
|
34
|
+
setMetadata(metadata?: ArtifactMetadata): void;
|
|
35
|
+
updateMetadata(partial: ArtifactMetadata): void;
|
|
36
|
+
removeMetadata(key: string): void;
|
|
37
|
+
}
|
|
38
|
+
export declare class ArtifactEditor<TKind extends string = string, TValueType extends ArtifactValueType = ArtifactValueType, TSpecification = unknown> {
|
|
39
|
+
private readonly kernel;
|
|
40
|
+
private readonly specs;
|
|
41
|
+
private constructor();
|
|
42
|
+
static open<TKind extends string = string, TValueType extends ArtifactValueType = ArtifactValueType, TSpecification = unknown>(artifact: Artifact<TKind, TValueType, TSpecification>, options: ArtifactEditorOptions): EditorResult<ArtifactEditor<TKind, TValueType, TSpecification>>;
|
|
43
|
+
value(): Artifact<TKind, TValueType, TSpecification>;
|
|
44
|
+
get history(): EditorHistory<Artifact<TKind, TValueType, TSpecification>>;
|
|
45
|
+
transaction(callback: (transaction: ArtifactEditTransaction<TSpecification>) => void): EditorResult<Artifact<TKind, TValueType, TSpecification>>;
|
|
46
|
+
}
|
|
47
|
+
export declare class ArtifactSpecEditor<TKind extends string = string, TValueType extends ArtifactValueType = ArtifactValueType, TConfig extends object = Record<string, unknown>> {
|
|
48
|
+
private readonly kernel;
|
|
49
|
+
private constructor();
|
|
50
|
+
static open<TKind extends string = string, TValueType extends ArtifactValueType = ArtifactValueType, TConfig extends object = Record<string, unknown>>(spec: ArtifactSpec<TKind, TValueType, TConfig>): ArtifactSpecEditor<TKind, TValueType, TConfig>;
|
|
51
|
+
value(): ArtifactSpec<TKind, TValueType, TConfig>;
|
|
52
|
+
get history(): EditorHistory<ArtifactSpec<TKind, TValueType, TConfig>>;
|
|
53
|
+
transaction(callback: (transaction: ArtifactSpecEditTransaction<TConfig>) => void): EditorResult<ArtifactSpec<TKind, TValueType, TConfig>>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,oBAAoB,EAGpB,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EAEzB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,qBAAqB,EAErB,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAgB,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEzF,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,uBAAuB,CAAC,cAAc,GAAG,OAAO;IAC/D,QAAQ,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,gBAAgB,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9E,WAAW,CAAC,QAAQ,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/C,cAAc,CA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S,iBAAiB,GAAG,iBAAiB,EACxD,OAAO,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChD,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,GAAG,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC;IAI1F,KAAK,IAAI,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC;IAIxD,IAAW,OAAO,IAAI,aAAa,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAE5E;IAEM,WAAW,CAChB,QAAQ,EAAE,CAAC,WAAW,EAAE,2BAA2B,CAAC,OAAO,CAAC,KAAK,IAAI,GACpE,YAAY,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;CAyB1D","sourcesContent":["import type {\n ActorReference,\n Artifact,\n ArtifactAccessPolicy,\n ArtifactCondition,\n ArtifactEncryptionPolicy,\n ArtifactKind,\n ArtifactLifecyclePolicy,\n ArtifactMetadata,\n ArtifactPresentationPolicy,\n ArtifactPrivacyPolicy,\n ArtifactProviderPolicy,\n ArtifactRequirementPolicy,\n ArtifactRole,\n ArtifactScopeReference,\n ArtifactSpec,\n ArtifactSpecId,\n ArtifactSpecification,\n ArtifactSubjectReference,\n ArtifactValidationPolicy,\n ArtifactValueType,\n ArtifactVerificationPolicy,\n ArtifactRetentionPolicy,\n} from \"./index.js\";\nimport { EditorKernel, type EditorHistory, type EditorResult } from \"./editor-kernel.js\";\n\nexport type { EditorHistory, EditorResult } from \"./editor-kernel.js\";\n\nexport interface ArtifactEditorOptions {\n specs: readonly ArtifactSpec[];\n}\n\nexport interface ArtifactEditTransaction<TSpecification = unknown> {\n setScope(scope?: ArtifactScopeReference): void;\n setTitle(title?: string): void;\n setDescription(description?: string): void;\n setSpec(specId: ArtifactSpecId): void;\n setSpecification<TValue>(specification?: ArtifactSpecification<TValue>): void;\n setMetadata(metadata?: ArtifactMetadata): void;\n updateMetadata(partial: ArtifactMetadata): void;\n removeMetadata(key: string): void;\n setArchivedAt(timestamp?: string): void;\n}\n\nexport interface ArtifactSpecEditTransaction<TConfig extends object = Record<string, unknown>> {\n setKey(key: string): void;\n setName(name: string): void;\n setDescription(description?: string): void;\n setKind(kind: ArtifactKind): void;\n setValueType(valueType: ArtifactValueType): void;\n setConfig(config?: TConfig): void;\n setProvider(provider?: ArtifactProviderPolicy): void;\n setRequirement(requirement?: ArtifactRequirementPolicy): void;\n setLifecycle(lifecycle?: ArtifactLifecyclePolicy): void;\n setAccess(access?: ArtifactAccessPolicy): void;\n setPrivacy(privacy?: ArtifactPrivacyPolicy): void;\n setValidation(validation?: ArtifactValidationPolicy): void;\n setVerification(verification?: ArtifactVerificationPolicy): void;\n setRetention(retention?: ArtifactRetentionPolicy): void;\n setPresentation(presentation?: ArtifactPresentationPolicy): void;\n setMetadata(metadata?: ArtifactMetadata): void;\n updateMetadata(partial: ArtifactMetadata): void;\n removeMetadata(key: string): void;\n}\n\nfunction setOptional<T extends object, K extends keyof T>(draft: T, key: K, value: T[K] | undefined): void {\n if (value === undefined) delete draft[key];\n else draft[key] = value;\n}\n\nfunction updateMetadata<T extends { metadata?: ArtifactMetadata }>(draft: T, partial: ArtifactMetadata): void {\n draft.metadata = { ...(draft.metadata ?? {}), ...partial };\n}\n\nfunction removeMetadata<T extends { metadata?: ArtifactMetadata }>(draft: T, key: string): void {\n if (draft.metadata === undefined || !Object.hasOwn(draft.metadata, key)) return;\n const metadata = { ...draft.metadata };\n delete metadata[key];\n setOptional(draft, \"metadata\", Object.keys(metadata).length > 0 ? metadata : undefined);\n}\n\nfunction error(message: string): Error {\n return new Error(message);\n}\n\nexport class ArtifactEditor<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n> {\n private constructor(\n private readonly kernel: EditorKernel<Artifact<TKind, TValueType, TSpecification>>,\n private readonly specs: ReadonlyMap<ArtifactSpecId, ArtifactSpec>,\n ) {}\n\n public static open<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n >(\n artifact: Artifact<TKind, TValueType, TSpecification>,\n options: ArtifactEditorOptions,\n ): EditorResult<ArtifactEditor<TKind, TValueType, TSpecification>> {\n const specs = new Map<ArtifactSpecId, ArtifactSpec>();\n for (const spec of options.specs) {\n if (specs.has(spec.id)) {\n return { ok: false, error: error(`Duplicate artifact specification ID: ${spec.id}`) };\n }\n specs.set(spec.id, structuredClone(spec));\n }\n\n const selected = specs.get(artifact.specId);\n if (selected === undefined) {\n return { ok: false, error: error(`Artifact specification not found: ${artifact.specId}`) };\n }\n if (selected.kind !== artifact.kind || selected.valueType !== artifact.valueType) {\n return {\n ok: false,\n error: error(`Artifact ${artifact.id} does not match specification ${selected.id}`),\n };\n }\n\n return { ok: true, value: new ArtifactEditor(new EditorKernel(artifact), specs) };\n }\n\n public value(): Artifact<TKind, TValueType, TSpecification> {\n return this.kernel.value();\n }\n\n public get history(): EditorHistory<Artifact<TKind, TValueType, TSpecification>> {\n return this.kernel.history;\n }\n\n public transaction(\n callback: (transaction: ArtifactEditTransaction<TSpecification>) => void,\n ): EditorResult<Artifact<TKind, TValueType, TSpecification>> {\n return this.kernel.transaction((draft) => {\n const transaction: ArtifactEditTransaction<TSpecification> = {\n setScope: (scope) => setOptional(draft, \"scope\", scope),\n setTitle: (title) => setOptional(draft, \"title\", title),\n setDescription: (description) => setOptional(draft, \"description\", description),\n setSpec: (specId) => {\n const spec = this.specs.get(specId);\n if (spec === undefined) throw error(`Artifact specification not found: ${specId}`);\n draft.specId = spec.id;\n draft.kind = spec.kind as TKind;\n draft.valueType = spec.valueType as TValueType;\n },\n setSpecification: (specification) => setOptional(draft, \"specification\", specification as ArtifactSpecification<TSpecification> | undefined),\n setMetadata: (metadata) => setOptional(draft, \"metadata\", metadata),\n updateMetadata: (partial) => updateMetadata(draft, partial),\n removeMetadata: (key) => removeMetadata(draft, key),\n setArchivedAt: (timestamp) => setOptional(draft, \"archivedAt\", timestamp),\n };\n callback(transaction);\n });\n }\n}\n\nexport class ArtifactSpecEditor<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = Record<string, unknown>,\n> {\n private constructor(private readonly kernel: EditorKernel<ArtifactSpec<TKind, TValueType, TConfig>>) {}\n\n public static open<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = Record<string, unknown>,\n >(spec: ArtifactSpec<TKind, TValueType, TConfig>): ArtifactSpecEditor<TKind, TValueType, TConfig> {\n return new ArtifactSpecEditor(new EditorKernel(spec));\n }\n\n public value(): ArtifactSpec<TKind, TValueType, TConfig> {\n return this.kernel.value();\n }\n\n public get history(): EditorHistory<ArtifactSpec<TKind, TValueType, TConfig>> {\n return this.kernel.history;\n }\n\n public transaction(\n callback: (transaction: ArtifactSpecEditTransaction<TConfig>) => void,\n ): EditorResult<ArtifactSpec<TKind, TValueType, TConfig>> {\n return this.kernel.transaction((draft) => {\n const transaction: ArtifactSpecEditTransaction<TConfig> = {\n setKey: (key) => { draft.key = key; },\n setName: (name) => { draft.name = name; },\n setDescription: (description) => setOptional(draft, \"description\", description),\n setKind: (kind) => { draft.kind = kind as TKind; },\n setValueType: (valueType) => { draft.valueType = valueType as TValueType; },\n setConfig: (config) => setOptional(draft, \"config\", config),\n setProvider: (provider) => setOptional(draft, \"provider\", provider),\n setRequirement: (requirement) => setOptional(draft, \"requirement\", requirement),\n setLifecycle: (lifecycle) => setOptional(draft, \"lifecycle\", lifecycle),\n setAccess: (access) => setOptional(draft, \"access\", access),\n setPrivacy: (privacy) => setOptional(draft, \"privacy\", privacy),\n setValidation: (validation) => setOptional(draft, \"validation\", validation),\n setVerification: (verification) => setOptional(draft, \"verification\", verification),\n setRetention: (retention) => setOptional(draft, \"retention\", retention),\n setPresentation: (presentation) => setOptional(draft, \"presentation\", presentation),\n setMetadata: (metadata) => setOptional(draft, \"metadata\", metadata),\n updateMetadata: (partial) => updateMetadata(draft, partial),\n removeMetadata: (key) => removeMetadata(draft, key),\n };\n callback(transaction);\n });\n }\n}\n"]}
|
package/dist/editor.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { EditorKernel } from "./editor-kernel.js";
|
|
2
|
+
function setOptional(draft, key, value) {
|
|
3
|
+
if (value === undefined)
|
|
4
|
+
delete draft[key];
|
|
5
|
+
else
|
|
6
|
+
draft[key] = value;
|
|
7
|
+
}
|
|
8
|
+
function updateMetadata(draft, partial) {
|
|
9
|
+
draft.metadata = { ...(draft.metadata ?? {}), ...partial };
|
|
10
|
+
}
|
|
11
|
+
function removeMetadata(draft, key) {
|
|
12
|
+
if (draft.metadata === undefined || !Object.hasOwn(draft.metadata, key))
|
|
13
|
+
return;
|
|
14
|
+
const metadata = { ...draft.metadata };
|
|
15
|
+
delete metadata[key];
|
|
16
|
+
setOptional(draft, "metadata", Object.keys(metadata).length > 0 ? metadata : undefined);
|
|
17
|
+
}
|
|
18
|
+
function error(message) {
|
|
19
|
+
return new Error(message);
|
|
20
|
+
}
|
|
21
|
+
export class ArtifactEditor {
|
|
22
|
+
kernel;
|
|
23
|
+
specs;
|
|
24
|
+
constructor(kernel, specs) {
|
|
25
|
+
this.kernel = kernel;
|
|
26
|
+
this.specs = specs;
|
|
27
|
+
}
|
|
28
|
+
static open(artifact, options) {
|
|
29
|
+
const specs = new Map();
|
|
30
|
+
for (const spec of options.specs) {
|
|
31
|
+
if (specs.has(spec.id)) {
|
|
32
|
+
return { ok: false, error: error(`Duplicate artifact specification ID: ${spec.id}`) };
|
|
33
|
+
}
|
|
34
|
+
specs.set(spec.id, structuredClone(spec));
|
|
35
|
+
}
|
|
36
|
+
const selected = specs.get(artifact.specId);
|
|
37
|
+
if (selected === undefined) {
|
|
38
|
+
return { ok: false, error: error(`Artifact specification not found: ${artifact.specId}`) };
|
|
39
|
+
}
|
|
40
|
+
if (selected.kind !== artifact.kind || selected.valueType !== artifact.valueType) {
|
|
41
|
+
return {
|
|
42
|
+
ok: false,
|
|
43
|
+
error: error(`Artifact ${artifact.id} does not match specification ${selected.id}`),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return { ok: true, value: new ArtifactEditor(new EditorKernel(artifact), specs) };
|
|
47
|
+
}
|
|
48
|
+
value() {
|
|
49
|
+
return this.kernel.value();
|
|
50
|
+
}
|
|
51
|
+
get history() {
|
|
52
|
+
return this.kernel.history;
|
|
53
|
+
}
|
|
54
|
+
transaction(callback) {
|
|
55
|
+
return this.kernel.transaction((draft) => {
|
|
56
|
+
const transaction = {
|
|
57
|
+
setScope: (scope) => setOptional(draft, "scope", scope),
|
|
58
|
+
setTitle: (title) => setOptional(draft, "title", title),
|
|
59
|
+
setDescription: (description) => setOptional(draft, "description", description),
|
|
60
|
+
setSpec: (specId) => {
|
|
61
|
+
const spec = this.specs.get(specId);
|
|
62
|
+
if (spec === undefined)
|
|
63
|
+
throw error(`Artifact specification not found: ${specId}`);
|
|
64
|
+
draft.specId = spec.id;
|
|
65
|
+
draft.kind = spec.kind;
|
|
66
|
+
draft.valueType = spec.valueType;
|
|
67
|
+
},
|
|
68
|
+
setSpecification: (specification) => setOptional(draft, "specification", specification),
|
|
69
|
+
setMetadata: (metadata) => setOptional(draft, "metadata", metadata),
|
|
70
|
+
updateMetadata: (partial) => updateMetadata(draft, partial),
|
|
71
|
+
removeMetadata: (key) => removeMetadata(draft, key),
|
|
72
|
+
setArchivedAt: (timestamp) => setOptional(draft, "archivedAt", timestamp),
|
|
73
|
+
};
|
|
74
|
+
callback(transaction);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export class ArtifactSpecEditor {
|
|
79
|
+
kernel;
|
|
80
|
+
constructor(kernel) {
|
|
81
|
+
this.kernel = kernel;
|
|
82
|
+
}
|
|
83
|
+
static open(spec) {
|
|
84
|
+
return new ArtifactSpecEditor(new EditorKernel(spec));
|
|
85
|
+
}
|
|
86
|
+
value() {
|
|
87
|
+
return this.kernel.value();
|
|
88
|
+
}
|
|
89
|
+
get history() {
|
|
90
|
+
return this.kernel.history;
|
|
91
|
+
}
|
|
92
|
+
transaction(callback) {
|
|
93
|
+
return this.kernel.transaction((draft) => {
|
|
94
|
+
const transaction = {
|
|
95
|
+
setKey: (key) => { draft.key = key; },
|
|
96
|
+
setName: (name) => { draft.name = name; },
|
|
97
|
+
setDescription: (description) => setOptional(draft, "description", description),
|
|
98
|
+
setKind: (kind) => { draft.kind = kind; },
|
|
99
|
+
setValueType: (valueType) => { draft.valueType = valueType; },
|
|
100
|
+
setConfig: (config) => setOptional(draft, "config", config),
|
|
101
|
+
setProvider: (provider) => setOptional(draft, "provider", provider),
|
|
102
|
+
setRequirement: (requirement) => setOptional(draft, "requirement", requirement),
|
|
103
|
+
setLifecycle: (lifecycle) => setOptional(draft, "lifecycle", lifecycle),
|
|
104
|
+
setAccess: (access) => setOptional(draft, "access", access),
|
|
105
|
+
setPrivacy: (privacy) => setOptional(draft, "privacy", privacy),
|
|
106
|
+
setValidation: (validation) => setOptional(draft, "validation", validation),
|
|
107
|
+
setVerification: (verification) => setOptional(draft, "verification", verification),
|
|
108
|
+
setRetention: (retention) => setOptional(draft, "retention", retention),
|
|
109
|
+
setPresentation: (presentation) => setOptional(draft, "presentation", presentation),
|
|
110
|
+
setMetadata: (metadata) => setOptional(draft, "metadata", metadata),
|
|
111
|
+
updateMetadata: (partial) => updateMetadata(draft, partial),
|
|
112
|
+
removeMetadata: (key) => removeMetadata(draft, key),
|
|
113
|
+
};
|
|
114
|
+
callback(transaction);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,YAAY,EAAyC,MAAM,oBAAoB,CAAC;AAyCz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ind,\n ArtifactLifecyclePolicy,\n ArtifactMetadata,\n ArtifactPresentationPolicy,\n ArtifactPrivacyPolicy,\n ArtifactProviderPolicy,\n ArtifactRequirementPolicy,\n ArtifactRole,\n ArtifactScopeReference,\n ArtifactSpec,\n ArtifactSpecId,\n ArtifactSpecification,\n ArtifactSubjectReference,\n ArtifactValidationPolicy,\n ArtifactValueType,\n ArtifactVerificationPolicy,\n ArtifactRetentionPolicy,\n} from \"./index.js\";\nimport { EditorKernel, type EditorHistory, type EditorResult } from \"./editor-kernel.js\";\n\nexport type { EditorHistory, EditorResult } from \"./editor-kernel.js\";\n\nexport interface ArtifactEditorOptions {\n specs: readonly ArtifactSpec[];\n}\n\nexport interface ArtifactEditTransaction<TSpecification = unknown> {\n setScope(scope?: ArtifactScopeReference): void;\n setTitle(title?: string): void;\n setDescription(description?: string): void;\n setSpec(specId: ArtifactSpecId): void;\n setSpecification<TValue>(specification?: ArtifactSpecification<TValue>): void;\n setMetadata(metadata?: ArtifactMetadata): void;\n updateMetadata(partial: ArtifactMetadata): void;\n removeMetadata(key: string): void;\n setArchivedAt(timestamp?: string): void;\n}\n\nexport interface ArtifactSpecEditTransaction<TConfig extends object = Record<string, unknown>> {\n setKey(key: string): void;\n setName(name: string): void;\n setDescription(description?: string): void;\n setKind(kind: ArtifactKind): void;\n setValueType(valueType: ArtifactValueType): void;\n setConfig(config?: TConfig): void;\n setProvider(provider?: ArtifactProviderPolicy): void;\n setRequirement(requirement?: ArtifactRequirementPolicy): void;\n setLifecycle(lifecycle?: ArtifactLifecyclePolicy): void;\n setAccess(access?: ArtifactAccessPolicy): void;\n setPrivacy(privacy?: ArtifactPrivacyPolicy): void;\n setValidation(validation?: ArtifactValidationPolicy): void;\n setVerification(verification?: ArtifactVerificationPolicy): void;\n setRetention(retention?: ArtifactRetentionPolicy): void;\n setPresentation(presentation?: ArtifactPresentationPolicy): void;\n setMetadata(metadata?: ArtifactMetadata): void;\n updateMetadata(partial: ArtifactMetadata): void;\n removeMetadata(key: string): void;\n}\n\nfunction setOptional<T extends object, K extends keyof T>(draft: T, key: K, value: T[K] | undefined): void {\n if (value === undefined) delete draft[key];\n else draft[key] = value;\n}\n\nfunction updateMetadata<T extends { metadata?: ArtifactMetadata }>(draft: T, partial: ArtifactMetadata): void {\n draft.metadata = { ...(draft.metadata ?? {}), ...partial };\n}\n\nfunction removeMetadata<T extends { metadata?: ArtifactMetadata }>(draft: T, key: string): void {\n if (draft.metadata === undefined || !Object.hasOwn(draft.metadata, key)) return;\n const metadata = { ...draft.metadata };\n delete metadata[key];\n setOptional(draft, \"metadata\", Object.keys(metadata).length > 0 ? metadata : undefined);\n}\n\nfunction error(message: string): Error {\n return new Error(message);\n}\n\nexport class ArtifactEditor<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n> {\n private constructor(\n private readonly kernel: EditorKernel<Artifact<TKind, TValueType, TSpecification>>,\n private readonly specs: ReadonlyMap<ArtifactSpecId, ArtifactSpec>,\n ) {}\n\n public static open<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n >(\n artifact: Artifact<TKind, TValueType, TSpecification>,\n options: ArtifactEditorOptions,\n ): EditorResult<ArtifactEditor<TKind, TValueType, TSpecification>> {\n const specs = new Map<ArtifactSpecId, ArtifactSpec>();\n for (const spec of options.specs) {\n if (specs.has(spec.id)) {\n return { ok: false, error: error(`Duplicate artifact specification ID: ${spec.id}`) };\n }\n specs.set(spec.id, structuredClone(spec));\n }\n\n const selected = specs.get(artifact.specId);\n if (selected === undefined) {\n return { ok: false, error: error(`Artifact specification not found: ${artifact.specId}`) };\n }\n if (selected.kind !== artifact.kind || selected.valueType !== artifact.valueType) {\n return {\n ok: false,\n error: error(`Artifact ${artifact.id} does not match specification ${selected.id}`),\n };\n }\n\n return { ok: true, value: new ArtifactEditor(new EditorKernel(artifact), specs) };\n }\n\n public value(): Artifact<TKind, TValueType, TSpecification> {\n return this.kernel.value();\n }\n\n public get history(): EditorHistory<Artifact<TKind, TValueType, TSpecification>> {\n return this.kernel.history;\n }\n\n public transaction(\n callback: (transaction: ArtifactEditTransaction<TSpecification>) => void,\n ): EditorResult<Artifact<TKind, TValueType, TSpecification>> {\n return this.kernel.transaction((draft) => {\n const transaction: ArtifactEditTransaction<TSpecification> = {\n setScope: (scope) => setOptional(draft, \"scope\", scope),\n setTitle: (title) => setOptional(draft, \"title\", title),\n setDescription: (description) => setOptional(draft, \"description\", description),\n setSpec: (specId) => {\n const spec = this.specs.get(specId);\n if (spec === undefined) throw error(`Artifact specification not found: ${specId}`);\n draft.specId = spec.id;\n draft.kind = spec.kind as TKind;\n draft.valueType = spec.valueType as TValueType;\n },\n setSpecification: (specification) => setOptional(draft, \"specification\", specification as ArtifactSpecification<TSpecification> | undefined),\n setMetadata: (metadata) => setOptional(draft, \"metadata\", metadata),\n updateMetadata: (partial) => updateMetadata(draft, partial),\n removeMetadata: (key) => removeMetadata(draft, key),\n setArchivedAt: (timestamp) => setOptional(draft, \"archivedAt\", timestamp),\n };\n callback(transaction);\n });\n }\n}\n\nexport class ArtifactSpecEditor<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = Record<string, unknown>,\n> {\n private constructor(private readonly kernel: EditorKernel<ArtifactSpec<TKind, TValueType, TConfig>>) {}\n\n public static open<\n TKind extends string = string,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = Record<string, unknown>,\n >(spec: ArtifactSpec<TKind, TValueType, TConfig>): ArtifactSpecEditor<TKind, TValueType, TConfig> {\n return new ArtifactSpecEditor(new EditorKernel(spec));\n }\n\n public value(): ArtifactSpec<TKind, TValueType, TConfig> {\n return this.kernel.value();\n }\n\n public get history(): EditorHistory<ArtifactSpec<TKind, TValueType, TConfig>> {\n return this.kernel.history;\n }\n\n public transaction(\n callback: (transaction: ArtifactSpecEditTransaction<TConfig>) => void,\n ): EditorResult<ArtifactSpec<TKind, TValueType, TConfig>> {\n return this.kernel.transaction((draft) => {\n const transaction: ArtifactSpecEditTransaction<TConfig> = {\n setKey: (key) => { draft.key = key; },\n setName: (name) => { draft.name = name; },\n setDescription: (description) => setOptional(draft, \"description\", description),\n setKind: (kind) => { draft.kind = kind as TKind; },\n setValueType: (valueType) => { draft.valueType = valueType as TValueType; },\n setConfig: (config) => setOptional(draft, \"config\", config),\n setProvider: (provider) => setOptional(draft, \"provider\", provider),\n setRequirement: (requirement) => setOptional(draft, \"requirement\", requirement),\n setLifecycle: (lifecycle) => setOptional(draft, \"lifecycle\", lifecycle),\n setAccess: (access) => setOptional(draft, \"access\", access),\n setPrivacy: (privacy) => setOptional(draft, \"privacy\", privacy),\n setValidation: (validation) => setOptional(draft, \"validation\", validation),\n setVerification: (verification) => setOptional(draft, \"verification\", verification),\n setRetention: (retention) => setOptional(draft, \"retention\", retention),\n setPresentation: (presentation) => setOptional(draft, \"presentation\", presentation),\n setMetadata: (metadata) => setOptional(draft, \"metadata\", metadata),\n updateMetadata: (partial) => updateMetadata(draft, partial),\n removeMetadata: (key) => removeMetadata(draft, key),\n };\n callback(transaction);\n });\n }\n}\n"]}
|
package/dist/generated/wire.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export type WireArtifactVersion = {
|
|
|
87
87
|
export type WireArtifact = {
|
|
88
88
|
"schemaVersion": WireArtifactProtocolCommonContractsSchemaVersion;
|
|
89
89
|
"id": WireArtifactProtocolCommonContractsArtifactId;
|
|
90
|
+
"specId": WireArtifactProtocolCommonContractsArtifactSpecId;
|
|
90
91
|
"scope"?: WireArtifactProtocolCommonContractsArtifactScopeReference;
|
|
91
92
|
"kind": string;
|
|
92
93
|
"valueType": WireArtifactProtocolCommonContractsArtifactValueType;
|
|
@@ -234,6 +235,9 @@ export type WireArtifactRetentionPolicyHostDefined = {
|
|
|
234
235
|
};
|
|
235
236
|
export type WireArtifactValidationPolicy = {
|
|
236
237
|
"mode"?: "strict" | "lenient";
|
|
238
|
+
"schema"?: {
|
|
239
|
+
[key: string]: string | Array<string>;
|
|
240
|
+
};
|
|
237
241
|
"rules"?: Array<WireArtifactValidationRule>;
|
|
238
242
|
[key: string]: unknown;
|
|
239
243
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../src/generated/wire.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,4CAA4C,CAAC;IAC5D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,gDAAgD,CAAC;IAClE,IAAI,EAAE,iDAAiD,CAAC;IACxD,YAAY,EAAE,6CAA6C,CAAC;IAC5D,mBAAmB,CAAC,EAAE,oDAAoD,CAAC;IAC3E,SAAS,EAAE,2DAA2D,CAAC;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,iDAAiD,CAAC;IAC/D,WAAW,EAAE,4CAA4C,CAAC;IAC1D,UAAU,CAAC,EAAE,mDAAmD,CAAC;IACjE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,uBAAuB,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,wBAAwB,GAAG,0BAA0B,CAAC;AAE/L,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,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CACxB,CAAC","sourcesContent":["// Code generated from canonical JSON Schemas; DO NOT EDIT.\n\nexport type WireArtifactIntegrity = {\n \"algorithm\": \"sha256\" | \"sha384\" | \"sha512\";\n \"hash\": string;\n \"size\"?: number;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLink = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactLinkId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"subject\": WireArtifactProtocolCommonContractsArtifactSubjectReference;\n \"role\": string;\n \"note\"?: string;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSource = WireInlineArtifactSource | WireLocalArtifactSource | WireObjectArtifactSource | WireUrlArtifactSource | WireHostedArtifactSource | WireProviderArtifactSource;\n\nexport type WireInlineArtifactSource = {\n \"type\": \"inline\";\n \"value\": unknown;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireLocalArtifactSource = {\n \"type\": \"local\";\n \"localId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"syncState\": \"local_only\" | \"pending_upload\" | \"uploading\" | \"uploaded\" | \"failed\";\n \"remoteVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n [key: string]: unknown;\n};\n\nexport type WireObjectArtifactSource = {\n \"type\": \"object\";\n \"objectId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"storageProvider\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireUrlArtifactSource = {\n \"type\": \"url\";\n \"url\": string;\n \"provider\"?: string;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireHostedArtifactSource = {\n \"type\": \"hosted\";\n \"recordType\": string;\n \"recordId\": string;\n [key: string]: unknown;\n};\n\nexport type WireProviderArtifactSource = {\n \"type\": \"provider\";\n \"provider\": string;\n \"reference\": unknown;\n [key: string]: unknown;\n};\n\n/** Schema-identified semantic interpretation of an artifact or one immutable artifact version. */\nexport type WireArtifactSpecification = {\n \"schema\": string;\n \"version\": number;\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVersion = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVersionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"version\": number;\n \"source\": WireArtifactSource;\n \"integrity\"?: WireArtifactIntegrity;\n \"specification\"?: WireArtifactSpecification;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"note\"?: string;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifact = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactId;\n \"scope\"?: WireArtifactProtocolCommonContractsArtifactScopeReference;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"title\"?: string;\n \"description\"?: string;\n \"specification\"?: WireArtifactSpecification;\n \"currentVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"updatedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"archivedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicy = {\n \"read\"?: WireArtifactAccessPolicyRules;\n \"write\"?: WireArtifactAccessPolicyRules;\n \"submit\"?: WireArtifactAccessPolicyRules;\n \"verify\"?: WireArtifactAccessPolicyRules;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicyRules = Array<WireArtifactAccessPolicyRule>;\n\nexport type WireArtifactAccessPolicyRule = {\n \"actors\": Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** A language-neutral recursive condition AST. Resolution of host identifiers is host-defined. */\nexport type WireArtifactCondition = WireArtifactConditionCondition;\n\nexport type WireArtifactConditionCondition = WireArtifactConditionState | WireArtifactConditionActor | WireArtifactConditionArtifactExists | WireArtifactConditionArtifactValue | WireArtifactConditionAnd | WireArtifactConditionOr | WireArtifactConditionNot;\n\nexport type WireArtifactConditionState = {\n \"kind\": \"state\";\n \"namespace\": string;\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionActor = {\n \"kind\": \"actor\";\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactExists = {\n \"kind\": \"artifact_exists\";\n \"artifact\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactValue = {\n \"kind\": \"artifact_value\";\n \"artifact\": string;\n \"operator\": \"eq\" | \"neq\" | \"gt\" | \"gte\" | \"lt\" | \"lte\" | \"contains\" | \"in\";\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionAnd = {\n \"kind\": \"and\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionOr = {\n \"kind\": \"or\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionNot = {\n \"kind\": \"not\";\n \"condition\": WireArtifactConditionCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLifecyclePolicy = {\n \"createAt\"?: string;\n \"editableDuring\"?: Array<string>;\n \"submitDuring\"?: Array<string>;\n \"lockAt\"?: string;\n \"invalidateOn\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactPresentationPolicy = {\n \"label\"?: string;\n \"helpText\"?: string;\n \"order\"?: number;\n \"display\"?: string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactPrivacyPolicy = {\n \"classification\": \"public\" | \"internal\" | \"private\" | \"sensitive\" | \"restricted\";\n \"reveal\"?: Array<WireArtifactRevealRule>;\n \"masking\"?: WireArtifactMaskingPolicy;\n \"encryption\"?: WireArtifactEncryptionPolicy;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRevealRule = {\n \"actors\": Array<string>;\n \"when\"?: WireArtifactCondition;\n \"representation\": \"hidden\" | \"masked\" | \"approximate\" | \"full\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactMaskingPolicy = {\n \"strategy\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactEncryptionPolicy = {\n \"required\": boolean;\n \"level\"?: string;\n \"keyScope\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProviderPolicy = {\n \"actors\": Array<string>;\n \"mode\"?: \"single\" | \"any\" | \"all\";\n \"delegation\"?: \"forbidden\" | \"allowed\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirementPolicy = {\n \"mode\": \"required\" | \"optional\" | \"conditional\";\n \"condition\"?: WireArtifactCondition;\n \"blocks\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicy = WireArtifactRetentionPolicyForever | WireArtifactRetentionPolicyDuration | WireArtifactRetentionPolicyUntil | WireArtifactRetentionPolicyHostDefined;\n\nexport type WireArtifactRetentionPolicyForever = {\n \"policy\": \"forever\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyDuration = {\n \"policy\": \"duration\";\n \"days\": number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyUntil = {\n \"policy\": \"until\";\n \"date\": WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyHostDefined = {\n \"policy\": \"host_defined\";\n \"key\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationPolicy = {\n \"mode\"?: \"strict\" | \"lenient\";\n \"rules\"?: Array<WireArtifactValidationRule>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationRule = {\n \"type\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerificationPolicy = {\n \"required\": boolean;\n \"methods\"?: Array<string>;\n \"actors\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** The major.minor version of the serialized Artifact Protocol record. */\nexport type WireArtifactProtocolCommonContractsSchemaVersion = \"1.1\";\n\n/** A non-empty, case-sensitive identifier whose generation and internal form are host-defined. */\nexport type WireArtifactProtocolCommonContractsOpaqueIdentifier = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVersionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactLinkId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSpecId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSubmissionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVerificationId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactRequirementId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\n/** An RFC 3339 full-date string. */\nexport type WireArtifactProtocolCommonContractsDate = string;\n\n/** An RFC 3339 date-time string. */\nexport type WireArtifactProtocolCommonContractsTimestamp = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactValueType = \"text\" | \"number\" | \"boolean\" | \"currency\" | \"date\" | \"datetime\" | \"time\" | \"location\" | \"file\" | \"image\" | \"video\" | \"audio\" | \"link\" | \"structured\" | \"reference\" | \"signature\" | \"collection\";\n\nexport type WireArtifactProtocolCommonContractsActorReference = {\n \"type\": string;\n \"id\"?: WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"displayName\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactScopeReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactSubjectReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"scope\"?: {\n [key: string]: string;\n};\n [key: string]: unknown;\n};\n\n/** Host extensions represented by arbitrary JSON values. */\nexport type WireArtifactProtocolCommonContractsArtifactMetadata = {\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmission = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submittedBy\": WireArtifactProtocolCommonContractsActorReference;\n \"value\"?: unknown;\n \"submittedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"context\"?: WireArtifactSubmissionContext;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmissionContext = {\n \"latitude\"?: number;\n \"longitude\"?: number;\n \"deviceId\"?: string;\n \"ipAddress\"?: unknown | unknown;\n \"userAgent\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerification = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVerificationId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submissionId\"?: WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"status\": \"pending\" | \"verified\" | \"rejected\" | \"waived\";\n \"method\"?: string;\n \"verifiedBy\"?: WireArtifactProtocolCommonContractsActorReference;\n \"reason\"?: string;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirement = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactRequirementId;\n \"key\"?: string;\n \"allowedKinds\"?: Array<string>;\n \"allowedValueTypes\"?: Array<WireArtifactProtocolCommonContractsArtifactValueType>;\n \"minimumCount\"?: number;\n \"maximumCount\"?: number;\n \"required\": boolean;\n \"specId\"?: WireArtifactProtocolCommonContractsArtifactSpecId;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** An immutable copy of a specification revision captured by a host. */\nexport type WireArtifactSpecSnapshot = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"sourceSpecId\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"sourceVersion\": number;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSpec = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"version\": number;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** Standardized representation constraints. Artifact kind remains a separate host-defined semantic identifier. */\nexport type WireArtifactValueSchema = WireArtifactValueSchemaText | WireArtifactValueSchemaNumber | WireArtifactValueSchemaBoolean | WireArtifactValueSchemaCurrency | WireArtifactValueSchemaDate | WireArtifactValueSchemaDatetime | WireArtifactValueSchemaTime | WireArtifactValueSchemaLocation | WireArtifactValueSchemaFile | WireArtifactValueSchemaImage | WireArtifactValueSchemaVideo | WireArtifactValueSchemaAudio | WireArtifactValueSchemaLink | WireArtifactValueSchemaStructured | WireArtifactValueSchemaReference | WireArtifactValueSchemaSignature | WireArtifactValueSchemaCollection;\n\nexport type WireArtifactValueSchemaText = {\n \"valueType\": \"text\";\n \"minLength\"?: number;\n \"maxLength\"?: number;\n \"multiline\"?: boolean;\n \"pattern\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaNumber = {\n \"valueType\": \"number\";\n \"minimum\"?: number;\n \"maximum\"?: number;\n \"integer\"?: boolean;\n \"multipleOf\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaBoolean = {\n \"valueType\": \"boolean\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCurrency = {\n \"valueType\": \"currency\";\n \"currencies\"?: Array<string>;\n \"minimumMinorUnits\"?: number;\n \"maximumMinorUnits\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDate = {\n \"valueType\": \"date\";\n \"minimum\"?: WireArtifactProtocolCommonContractsDate;\n \"maximum\"?: WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDatetime = {\n \"valueType\": \"datetime\";\n \"minimum\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"maximum\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaTime = {\n \"valueType\": \"time\";\n \"minimum\"?: string;\n \"maximum\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLocation = {\n \"valueType\": \"location\";\n \"mode\": \"point\" | \"address\" | \"point_and_address\";\n \"requireCoordinates\"?: boolean;\n \"allowManualEntry\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFile = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"file\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaImage = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"image\";\n \"requireTimestamp\"?: boolean;\n \"requireLocation\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaVideo = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"video\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaAudio = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"audio\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFileBase = {\n \"minFiles\"?: number;\n \"maxFiles\"?: number;\n \"acceptedMimeTypes\"?: Array<string>;\n \"maxSizeBytes\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLink = {\n \"valueType\": \"link\";\n \"allowedSchemes\"?: Array<string>;\n \"allowedHosts\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaStructured = {\n \"valueType\": \"structured\";\n \"jsonSchema\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaReference = {\n \"valueType\": \"reference\";\n \"providers\"?: Array<string>;\n \"resourceTypes\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaSignature = {\n \"valueType\": \"signature\";\n \"methods\"?: Array<string>;\n \"requireTimestamp\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCollection = {\n \"valueType\": \"collection\";\n \"itemSchema\": WireArtifactValueSchema;\n \"minItems\"?: number;\n \"maxItems\"?: number;\n \"uniqueItems\"?: boolean;\n [key: string]: unknown;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../src/generated/wire.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,4CAA4C,CAAC;IAC5D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,g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CAAC;IAC1B,YAAY,CAAC,EAAE;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACA,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,WAAW,EAAE,YAAY,CAAC;IAC1B,YAAY,EAAE,uBAAuB,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC","sourcesContent":["// Code generated from canonical JSON Schemas; DO NOT EDIT.\n\nexport type WireArtifactIntegrity = {\n \"algorithm\": \"sha256\" | \"sha384\" | \"sha512\";\n \"hash\": string;\n \"size\"?: number;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLink = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactLinkId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"subject\": WireArtifactProtocolCommonContractsArtifactSubjectReference;\n \"role\": string;\n \"note\"?: string;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSource = WireInlineArtifactSource | WireLocalArtifactSource | WireObjectArtifactSource | WireUrlArtifactSource | WireHostedArtifactSource | WireProviderArtifactSource;\n\nexport type WireInlineArtifactSource = {\n \"type\": \"inline\";\n \"value\": unknown;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireLocalArtifactSource = {\n \"type\": \"local\";\n \"localId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"syncState\": \"local_only\" | \"pending_upload\" | \"uploading\" | \"uploaded\" | \"failed\";\n \"remoteVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n [key: string]: unknown;\n};\n\nexport type WireObjectArtifactSource = {\n \"type\": \"object\";\n \"objectId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"storageProvider\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireUrlArtifactSource = {\n \"type\": \"url\";\n \"url\": string;\n \"provider\"?: string;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireHostedArtifactSource = {\n \"type\": \"hosted\";\n \"recordType\": string;\n \"recordId\": string;\n [key: string]: unknown;\n};\n\nexport type WireProviderArtifactSource = {\n \"type\": \"provider\";\n \"provider\": string;\n \"reference\": unknown;\n [key: string]: unknown;\n};\n\n/** Schema-identified semantic interpretation of an artifact or one immutable artifact version. */\nexport type WireArtifactSpecification = {\n \"schema\": string;\n \"version\": number;\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVersion = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVersionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"version\": number;\n \"source\": WireArtifactSource;\n \"integrity\"?: WireArtifactIntegrity;\n \"specification\"?: WireArtifactSpecification;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"note\"?: string;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifact = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactId;\n \"specId\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"scope\"?: WireArtifactProtocolCommonContractsArtifactScopeReference;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"title\"?: string;\n \"description\"?: string;\n \"specification\"?: WireArtifactSpecification;\n \"currentVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"updatedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"archivedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicy = {\n \"read\"?: WireArtifactAccessPolicyRules;\n \"write\"?: WireArtifactAccessPolicyRules;\n \"submit\"?: WireArtifactAccessPolicyRules;\n \"verify\"?: WireArtifactAccessPolicyRules;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicyRules = Array<WireArtifactAccessPolicyRule>;\n\nexport type WireArtifactAccessPolicyRule = {\n \"actors\": Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** A language-neutral recursive condition AST. Resolution of host identifiers is host-defined. */\nexport type WireArtifactCondition = WireArtifactConditionCondition;\n\nexport type WireArtifactConditionCondition = WireArtifactConditionState | WireArtifactConditionActor | WireArtifactConditionArtifactExists | WireArtifactConditionArtifactValue | WireArtifactConditionAnd | WireArtifactConditionOr | WireArtifactConditionNot;\n\nexport type WireArtifactConditionState = {\n \"kind\": \"state\";\n \"namespace\": string;\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionActor = {\n \"kind\": \"actor\";\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactExists = {\n \"kind\": \"artifact_exists\";\n \"artifact\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactValue = {\n \"kind\": \"artifact_value\";\n \"artifact\": string;\n \"operator\": \"eq\" | \"neq\" | \"gt\" | \"gte\" | \"lt\" | \"lte\" | \"contains\" | \"in\";\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionAnd = {\n \"kind\": \"and\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionOr = {\n \"kind\": \"or\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionNot = {\n \"kind\": \"not\";\n \"condition\": WireArtifactConditionCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLifecyclePolicy = {\n \"createAt\"?: string;\n \"editableDuring\"?: Array<string>;\n \"submitDuring\"?: Array<string>;\n \"lockAt\"?: string;\n \"invalidateOn\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactPresentationPolicy = {\n \"label\"?: string;\n \"helpText\"?: string;\n \"order\"?: number;\n \"display\"?: string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactPrivacyPolicy = {\n \"classification\": \"public\" | \"internal\" | \"private\" | \"sensitive\" | \"restricted\";\n \"reveal\"?: Array<WireArtifactRevealRule>;\n \"masking\"?: WireArtifactMaskingPolicy;\n \"encryption\"?: WireArtifactEncryptionPolicy;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRevealRule = {\n \"actors\": Array<string>;\n \"when\"?: WireArtifactCondition;\n \"representation\": \"hidden\" | \"masked\" | \"approximate\" | \"full\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactMaskingPolicy = {\n \"strategy\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactEncryptionPolicy = {\n \"required\": boolean;\n \"level\"?: string;\n \"keyScope\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProviderPolicy = {\n \"actors\": Array<string>;\n \"mode\"?: \"single\" | \"any\" | \"all\";\n \"delegation\"?: \"forbidden\" | \"allowed\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirementPolicy = {\n \"mode\": \"required\" | \"optional\" | \"conditional\";\n \"condition\"?: WireArtifactCondition;\n \"blocks\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicy = WireArtifactRetentionPolicyForever | WireArtifactRetentionPolicyDuration | WireArtifactRetentionPolicyUntil | WireArtifactRetentionPolicyHostDefined;\n\nexport type WireArtifactRetentionPolicyForever = {\n \"policy\": \"forever\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyDuration = {\n \"policy\": \"duration\";\n \"days\": number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyUntil = {\n \"policy\": \"until\";\n \"date\": WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyHostDefined = {\n \"policy\": \"host_defined\";\n \"key\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationPolicy = {\n \"mode\"?: \"strict\" | \"lenient\";\n \"schema\"?: {\n [key: string]: string | Array<string>;\n};\n \"rules\"?: Array<WireArtifactValidationRule>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationRule = {\n \"type\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerificationPolicy = {\n \"required\": boolean;\n \"methods\"?: Array<string>;\n \"actors\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** The major.minor version of the serialized Artifact Protocol record. */\nexport type WireArtifactProtocolCommonContractsSchemaVersion = \"1.1\";\n\n/** A non-empty, case-sensitive identifier whose generation and internal form are host-defined. */\nexport type WireArtifactProtocolCommonContractsOpaqueIdentifier = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVersionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactLinkId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSpecId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSubmissionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVerificationId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactRequirementId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\n/** An RFC 3339 full-date string. */\nexport type WireArtifactProtocolCommonContractsDate = string;\n\n/** An RFC 3339 date-time string. */\nexport type WireArtifactProtocolCommonContractsTimestamp = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactValueType = \"text\" | \"number\" | \"boolean\" | \"currency\" | \"date\" | \"datetime\" | \"time\" | \"location\" | \"file\" | \"image\" | \"video\" | \"audio\" | \"link\" | \"structured\" | \"reference\" | \"signature\" | \"collection\";\n\nexport type WireArtifactProtocolCommonContractsActorReference = {\n \"type\": string;\n \"id\"?: WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"displayName\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactScopeReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactSubjectReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"scope\"?: {\n [key: string]: string;\n};\n [key: string]: unknown;\n};\n\n/** Host extensions represented by arbitrary JSON values. */\nexport type WireArtifactProtocolCommonContractsArtifactMetadata = {\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmission = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submittedBy\": WireArtifactProtocolCommonContractsActorReference;\n \"value\"?: unknown;\n \"submittedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"context\"?: WireArtifactSubmissionContext;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmissionContext = {\n \"latitude\"?: number;\n \"longitude\"?: number;\n \"deviceId\"?: string;\n \"ipAddress\"?: unknown | unknown;\n \"userAgent\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerification = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVerificationId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submissionId\"?: WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"status\": \"pending\" | \"verified\" | \"rejected\" | \"waived\";\n \"method\"?: string;\n \"verifiedBy\"?: WireArtifactProtocolCommonContractsActorReference;\n \"reason\"?: string;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirement = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactRequirementId;\n \"key\"?: string;\n \"allowedKinds\"?: Array<string>;\n \"allowedValueTypes\"?: Array<WireArtifactProtocolCommonContractsArtifactValueType>;\n \"minimumCount\"?: number;\n \"maximumCount\"?: number;\n \"required\": boolean;\n \"specId\"?: WireArtifactProtocolCommonContractsArtifactSpecId;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** An immutable copy of a specification revision captured by a host. */\nexport type WireArtifactSpecSnapshot = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"sourceSpecId\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"sourceVersion\": number;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSpec = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"version\": number;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** Standardized representation constraints. Artifact kind remains a separate host-defined semantic identifier. */\nexport type WireArtifactValueSchema = WireArtifactValueSchemaText | WireArtifactValueSchemaNumber | WireArtifactValueSchemaBoolean | WireArtifactValueSchemaCurrency | WireArtifactValueSchemaDate | WireArtifactValueSchemaDatetime | WireArtifactValueSchemaTime | WireArtifactValueSchemaLocation | WireArtifactValueSchemaFile | WireArtifactValueSchemaImage | WireArtifactValueSchemaVideo | WireArtifactValueSchemaAudio | WireArtifactValueSchemaLink | WireArtifactValueSchemaStructured | WireArtifactValueSchemaReference | WireArtifactValueSchemaSignature | WireArtifactValueSchemaCollection;\n\nexport type WireArtifactValueSchemaText = {\n \"valueType\": \"text\";\n \"minLength\"?: number;\n \"maxLength\"?: number;\n \"multiline\"?: boolean;\n \"pattern\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaNumber = {\n \"valueType\": \"number\";\n \"minimum\"?: number;\n \"maximum\"?: number;\n \"integer\"?: boolean;\n \"multipleOf\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaBoolean = {\n \"valueType\": \"boolean\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCurrency = {\n \"valueType\": \"currency\";\n \"currencies\"?: Array<string>;\n \"minimumMinorUnits\"?: number;\n \"maximumMinorUnits\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDate = {\n \"valueType\": \"date\";\n \"minimum\"?: WireArtifactProtocolCommonContractsDate;\n \"maximum\"?: WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDatetime = {\n \"valueType\": \"datetime\";\n \"minimum\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"maximum\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaTime = {\n \"valueType\": \"time\";\n \"minimum\"?: string;\n \"maximum\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLocation = {\n \"valueType\": \"location\";\n \"mode\": \"point\" | \"address\" | \"point_and_address\";\n \"requireCoordinates\"?: boolean;\n \"allowManualEntry\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFile = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"file\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaImage = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"image\";\n \"requireTimestamp\"?: boolean;\n \"requireLocation\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaVideo = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"video\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaAudio = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"audio\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFileBase = {\n \"minFiles\"?: number;\n \"maxFiles\"?: number;\n \"acceptedMimeTypes\"?: Array<string>;\n \"maxSizeBytes\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLink = {\n \"valueType\": \"link\";\n \"allowedSchemes\"?: Array<string>;\n \"allowedHosts\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaStructured = {\n \"valueType\": \"structured\";\n \"jsonSchema\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaReference = {\n \"valueType\": \"reference\";\n \"providers\"?: Array<string>;\n \"resourceTypes\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaSignature = {\n \"valueType\": \"signature\";\n \"methods\"?: Array<string>;\n \"requireTimestamp\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCollection = {\n \"valueType\": \"collection\";\n \"itemSchema\": WireArtifactValueSchema;\n \"minItems\"?: number;\n \"maxItems\"?: number;\n \"uniqueItems\"?: boolean;\n [key: string]: unknown;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.js","sourceRoot":"","sources":["../../src/generated/wire.ts"],"names":[],"mappings":"AAAA,2DAA2D","sourcesContent":["// Code generated from canonical JSON Schemas; DO NOT EDIT.\n\nexport type WireArtifactIntegrity = {\n \"algorithm\": \"sha256\" | \"sha384\" | \"sha512\";\n \"hash\": string;\n \"size\"?: number;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLink = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactLinkId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"subject\": WireArtifactProtocolCommonContractsArtifactSubjectReference;\n \"role\": string;\n \"note\"?: string;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSource = WireInlineArtifactSource | WireLocalArtifactSource | WireObjectArtifactSource | WireUrlArtifactSource | WireHostedArtifactSource | WireProviderArtifactSource;\n\nexport type WireInlineArtifactSource = {\n \"type\": \"inline\";\n \"value\": unknown;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireLocalArtifactSource = {\n \"type\": \"local\";\n \"localId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"syncState\": \"local_only\" | \"pending_upload\" | \"uploading\" | \"uploaded\" | \"failed\";\n \"remoteVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n [key: string]: unknown;\n};\n\nexport type WireObjectArtifactSource = {\n \"type\": \"object\";\n \"objectId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"storageProvider\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireUrlArtifactSource = {\n \"type\": \"url\";\n \"url\": string;\n \"provider\"?: string;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireHostedArtifactSource = {\n \"type\": \"hosted\";\n \"recordType\": string;\n \"recordId\": string;\n [key: string]: unknown;\n};\n\nexport type WireProviderArtifactSource = {\n \"type\": \"provider\";\n \"provider\": string;\n \"reference\": unknown;\n [key: string]: unknown;\n};\n\n/** Schema-identified semantic interpretation of an artifact or one immutable artifact version. */\nexport type WireArtifactSpecification = {\n \"schema\": string;\n \"version\": number;\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVersion = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVersionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"version\": number;\n \"source\": WireArtifactSource;\n \"integrity\"?: WireArtifactIntegrity;\n \"specification\"?: WireArtifactSpecification;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"note\"?: string;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifact = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactId;\n \"scope\"?: WireArtifactProtocolCommonContractsArtifactScopeReference;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"title\"?: string;\n \"description\"?: string;\n \"specification\"?: WireArtifactSpecification;\n \"currentVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"updatedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"archivedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicy = {\n \"read\"?: WireArtifactAccessPolicyRules;\n \"write\"?: WireArtifactAccessPolicyRules;\n \"submit\"?: WireArtifactAccessPolicyRules;\n \"verify\"?: WireArtifactAccessPolicyRules;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicyRules = Array<WireArtifactAccessPolicyRule>;\n\nexport type WireArtifactAccessPolicyRule = {\n \"actors\": Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** A language-neutral recursive condition AST. Resolution of host identifiers is host-defined. */\nexport type WireArtifactCondition = WireArtifactConditionCondition;\n\nexport type WireArtifactConditionCondition = WireArtifactConditionState | WireArtifactConditionActor | WireArtifactConditionArtifactExists | WireArtifactConditionArtifactValue | WireArtifactConditionAnd | WireArtifactConditionOr | WireArtifactConditionNot;\n\nexport type WireArtifactConditionState = {\n \"kind\": \"state\";\n \"namespace\": string;\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionActor = {\n \"kind\": \"actor\";\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactExists = {\n \"kind\": \"artifact_exists\";\n \"artifact\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactValue = {\n \"kind\": \"artifact_value\";\n \"artifact\": string;\n \"operator\": \"eq\" | \"neq\" | \"gt\" | \"gte\" | \"lt\" | \"lte\" | \"contains\" | \"in\";\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionAnd = {\n \"kind\": \"and\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionOr = {\n \"kind\": \"or\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionNot = {\n \"kind\": \"not\";\n \"condition\": WireArtifactConditionCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLifecyclePolicy = {\n \"createAt\"?: string;\n \"editableDuring\"?: Array<string>;\n \"submitDuring\"?: Array<string>;\n \"lockAt\"?: string;\n \"invalidateOn\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactPresentationPolicy = {\n \"label\"?: string;\n \"helpText\"?: string;\n \"order\"?: number;\n \"display\"?: string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactPrivacyPolicy = {\n \"classification\": \"public\" | \"internal\" | \"private\" | \"sensitive\" | \"restricted\";\n \"reveal\"?: Array<WireArtifactRevealRule>;\n \"masking\"?: WireArtifactMaskingPolicy;\n \"encryption\"?: WireArtifactEncryptionPolicy;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRevealRule = {\n \"actors\": Array<string>;\n \"when\"?: WireArtifactCondition;\n \"representation\": \"hidden\" | \"masked\" | \"approximate\" | \"full\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactMaskingPolicy = {\n \"strategy\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactEncryptionPolicy = {\n \"required\": boolean;\n \"level\"?: string;\n \"keyScope\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProviderPolicy = {\n \"actors\": Array<string>;\n \"mode\"?: \"single\" | \"any\" | \"all\";\n \"delegation\"?: \"forbidden\" | \"allowed\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirementPolicy = {\n \"mode\": \"required\" | \"optional\" | \"conditional\";\n \"condition\"?: WireArtifactCondition;\n \"blocks\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicy = WireArtifactRetentionPolicyForever | WireArtifactRetentionPolicyDuration | WireArtifactRetentionPolicyUntil | WireArtifactRetentionPolicyHostDefined;\n\nexport type WireArtifactRetentionPolicyForever = {\n \"policy\": \"forever\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyDuration = {\n \"policy\": \"duration\";\n \"days\": number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyUntil = {\n \"policy\": \"until\";\n \"date\": WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyHostDefined = {\n \"policy\": \"host_defined\";\n \"key\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationPolicy = {\n \"mode\"?: \"strict\" | \"lenient\";\n \"rules\"?: Array<WireArtifactValidationRule>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationRule = {\n \"type\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerificationPolicy = {\n \"required\": boolean;\n \"methods\"?: Array<string>;\n \"actors\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** The major.minor version of the serialized Artifact Protocol record. */\nexport type WireArtifactProtocolCommonContractsSchemaVersion = \"1.1\";\n\n/** A non-empty, case-sensitive identifier whose generation and internal form are host-defined. */\nexport type WireArtifactProtocolCommonContractsOpaqueIdentifier = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVersionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactLinkId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSpecId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSubmissionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVerificationId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactRequirementId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\n/** An RFC 3339 full-date string. */\nexport type WireArtifactProtocolCommonContractsDate = string;\n\n/** An RFC 3339 date-time string. */\nexport type WireArtifactProtocolCommonContractsTimestamp = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactValueType = \"text\" | \"number\" | \"boolean\" | \"currency\" | \"date\" | \"datetime\" | \"time\" | \"location\" | \"file\" | \"image\" | \"video\" | \"audio\" | \"link\" | \"structured\" | \"reference\" | \"signature\" | \"collection\";\n\nexport type WireArtifactProtocolCommonContractsActorReference = {\n \"type\": string;\n \"id\"?: WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"displayName\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactScopeReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactSubjectReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"scope\"?: {\n [key: string]: string;\n};\n [key: string]: unknown;\n};\n\n/** Host extensions represented by arbitrary JSON values. */\nexport type WireArtifactProtocolCommonContractsArtifactMetadata = {\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmission = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submittedBy\": WireArtifactProtocolCommonContractsActorReference;\n \"value\"?: unknown;\n \"submittedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"context\"?: WireArtifactSubmissionContext;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmissionContext = {\n \"latitude\"?: number;\n \"longitude\"?: number;\n \"deviceId\"?: string;\n \"ipAddress\"?: unknown | unknown;\n \"userAgent\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerification = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVerificationId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submissionId\"?: WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"status\": \"pending\" | \"verified\" | \"rejected\" | \"waived\";\n \"method\"?: string;\n \"verifiedBy\"?: WireArtifactProtocolCommonContractsActorReference;\n \"reason\"?: string;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirement = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactRequirementId;\n \"key\"?: string;\n \"allowedKinds\"?: Array<string>;\n \"allowedValueTypes\"?: Array<WireArtifactProtocolCommonContractsArtifactValueType>;\n \"minimumCount\"?: number;\n \"maximumCount\"?: number;\n \"required\": boolean;\n \"specId\"?: WireArtifactProtocolCommonContractsArtifactSpecId;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** An immutable copy of a specification revision captured by a host. */\nexport type WireArtifactSpecSnapshot = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"sourceSpecId\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"sourceVersion\": number;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSpec = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"version\": number;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** Standardized representation constraints. Artifact kind remains a separate host-defined semantic identifier. */\nexport type WireArtifactValueSchema = WireArtifactValueSchemaText | WireArtifactValueSchemaNumber | WireArtifactValueSchemaBoolean | WireArtifactValueSchemaCurrency | WireArtifactValueSchemaDate | WireArtifactValueSchemaDatetime | WireArtifactValueSchemaTime | WireArtifactValueSchemaLocation | WireArtifactValueSchemaFile | WireArtifactValueSchemaImage | WireArtifactValueSchemaVideo | WireArtifactValueSchemaAudio | WireArtifactValueSchemaLink | WireArtifactValueSchemaStructured | WireArtifactValueSchemaReference | WireArtifactValueSchemaSignature | WireArtifactValueSchemaCollection;\n\nexport type WireArtifactValueSchemaText = {\n \"valueType\": \"text\";\n \"minLength\"?: number;\n \"maxLength\"?: number;\n \"multiline\"?: boolean;\n \"pattern\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaNumber = {\n \"valueType\": \"number\";\n \"minimum\"?: number;\n \"maximum\"?: number;\n \"integer\"?: boolean;\n \"multipleOf\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaBoolean = {\n \"valueType\": \"boolean\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCurrency = {\n \"valueType\": \"currency\";\n \"currencies\"?: Array<string>;\n \"minimumMinorUnits\"?: number;\n \"maximumMinorUnits\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDate = {\n \"valueType\": \"date\";\n \"minimum\"?: WireArtifactProtocolCommonContractsDate;\n \"maximum\"?: WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDatetime = {\n \"valueType\": \"datetime\";\n \"minimum\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"maximum\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaTime = {\n \"valueType\": \"time\";\n \"minimum\"?: string;\n \"maximum\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLocation = {\n \"valueType\": \"location\";\n \"mode\": \"point\" | \"address\" | \"point_and_address\";\n \"requireCoordinates\"?: boolean;\n \"allowManualEntry\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFile = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"file\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaImage = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"image\";\n \"requireTimestamp\"?: boolean;\n \"requireLocation\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaVideo = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"video\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaAudio = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"audio\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFileBase = {\n \"minFiles\"?: number;\n \"maxFiles\"?: number;\n \"acceptedMimeTypes\"?: Array<string>;\n \"maxSizeBytes\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLink = {\n \"valueType\": \"link\";\n \"allowedSchemes\"?: Array<string>;\n \"allowedHosts\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaStructured = {\n \"valueType\": \"structured\";\n \"jsonSchema\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaReference = {\n \"valueType\": \"reference\";\n \"providers\"?: Array<string>;\n \"resourceTypes\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaSignature = {\n \"valueType\": \"signature\";\n \"methods\"?: Array<string>;\n \"requireTimestamp\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCollection = {\n \"valueType\": \"collection\";\n \"itemSchema\": WireArtifactValueSchema;\n \"minItems\"?: number;\n \"maxItems\"?: number;\n \"uniqueItems\"?: boolean;\n [key: string]: unknown;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"wire.js","sourceRoot":"","sources":["../../src/generated/wire.ts"],"names":[],"mappings":"AAAA,2DAA2D","sourcesContent":["// Code generated from canonical JSON Schemas; DO NOT EDIT.\n\nexport type WireArtifactIntegrity = {\n \"algorithm\": \"sha256\" | \"sha384\" | \"sha512\";\n \"hash\": string;\n \"size\"?: number;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLink = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactLinkId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"subject\": WireArtifactProtocolCommonContractsArtifactSubjectReference;\n \"role\": string;\n \"note\"?: string;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSource = WireInlineArtifactSource | WireLocalArtifactSource | WireObjectArtifactSource | WireUrlArtifactSource | WireHostedArtifactSource | WireProviderArtifactSource;\n\nexport type WireInlineArtifactSource = {\n \"type\": \"inline\";\n \"value\": unknown;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireLocalArtifactSource = {\n \"type\": \"local\";\n \"localId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"syncState\": \"local_only\" | \"pending_upload\" | \"uploading\" | \"uploaded\" | \"failed\";\n \"remoteVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n [key: string]: unknown;\n};\n\nexport type WireObjectArtifactSource = {\n \"type\": \"object\";\n \"objectId\": string;\n \"filename\"?: string;\n \"mediaType\"?: string;\n \"size\"?: number;\n \"storageProvider\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireUrlArtifactSource = {\n \"type\": \"url\";\n \"url\": string;\n \"provider\"?: string;\n \"mediaType\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireHostedArtifactSource = {\n \"type\": \"hosted\";\n \"recordType\": string;\n \"recordId\": string;\n [key: string]: unknown;\n};\n\nexport type WireProviderArtifactSource = {\n \"type\": \"provider\";\n \"provider\": string;\n \"reference\": unknown;\n [key: string]: unknown;\n};\n\n/** Schema-identified semantic interpretation of an artifact or one immutable artifact version. */\nexport type WireArtifactSpecification = {\n \"schema\": string;\n \"version\": number;\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVersion = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVersionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"version\": number;\n \"source\": WireArtifactSource;\n \"integrity\"?: WireArtifactIntegrity;\n \"specification\"?: WireArtifactSpecification;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"note\"?: string;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifact = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactId;\n \"specId\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"scope\"?: WireArtifactProtocolCommonContractsArtifactScopeReference;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"title\"?: string;\n \"description\"?: string;\n \"specification\"?: WireArtifactSpecification;\n \"currentVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"createdBy\": WireArtifactProtocolCommonContractsActorReference;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"updatedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"archivedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicy = {\n \"read\"?: WireArtifactAccessPolicyRules;\n \"write\"?: WireArtifactAccessPolicyRules;\n \"submit\"?: WireArtifactAccessPolicyRules;\n \"verify\"?: WireArtifactAccessPolicyRules;\n [key: string]: unknown;\n};\n\nexport type WireArtifactAccessPolicyRules = Array<WireArtifactAccessPolicyRule>;\n\nexport type WireArtifactAccessPolicyRule = {\n \"actors\": Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** A language-neutral recursive condition AST. Resolution of host identifiers is host-defined. */\nexport type WireArtifactCondition = WireArtifactConditionCondition;\n\nexport type WireArtifactConditionCondition = WireArtifactConditionState | WireArtifactConditionActor | WireArtifactConditionArtifactExists | WireArtifactConditionArtifactValue | WireArtifactConditionAnd | WireArtifactConditionOr | WireArtifactConditionNot;\n\nexport type WireArtifactConditionState = {\n \"kind\": \"state\";\n \"namespace\": string;\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionActor = {\n \"kind\": \"actor\";\n \"in\": Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactExists = {\n \"kind\": \"artifact_exists\";\n \"artifact\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionArtifactValue = {\n \"kind\": \"artifact_value\";\n \"artifact\": string;\n \"operator\": \"eq\" | \"neq\" | \"gt\" | \"gte\" | \"lt\" | \"lte\" | \"contains\" | \"in\";\n \"value\": unknown;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionAnd = {\n \"kind\": \"and\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionOr = {\n \"kind\": \"or\";\n \"conditions\": Array<WireArtifactConditionCondition>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactConditionNot = {\n \"kind\": \"not\";\n \"condition\": WireArtifactConditionCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactLifecyclePolicy = {\n \"createAt\"?: string;\n \"editableDuring\"?: Array<string>;\n \"submitDuring\"?: Array<string>;\n \"lockAt\"?: string;\n \"invalidateOn\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\nexport type WireArtifactPresentationPolicy = {\n \"label\"?: string;\n \"helpText\"?: string;\n \"order\"?: number;\n \"display\"?: string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactPrivacyPolicy = {\n \"classification\": \"public\" | \"internal\" | \"private\" | \"sensitive\" | \"restricted\";\n \"reveal\"?: Array<WireArtifactRevealRule>;\n \"masking\"?: WireArtifactMaskingPolicy;\n \"encryption\"?: WireArtifactEncryptionPolicy;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRevealRule = {\n \"actors\": Array<string>;\n \"when\"?: WireArtifactCondition;\n \"representation\": \"hidden\" | \"masked\" | \"approximate\" | \"full\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactMaskingPolicy = {\n \"strategy\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactEncryptionPolicy = {\n \"required\": boolean;\n \"level\"?: string;\n \"keyScope\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProviderPolicy = {\n \"actors\": Array<string>;\n \"mode\"?: \"single\" | \"any\" | \"all\";\n \"delegation\"?: \"forbidden\" | \"allowed\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirementPolicy = {\n \"mode\": \"required\" | \"optional\" | \"conditional\";\n \"condition\"?: WireArtifactCondition;\n \"blocks\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicy = WireArtifactRetentionPolicyForever | WireArtifactRetentionPolicyDuration | WireArtifactRetentionPolicyUntil | WireArtifactRetentionPolicyHostDefined;\n\nexport type WireArtifactRetentionPolicyForever = {\n \"policy\": \"forever\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyDuration = {\n \"policy\": \"duration\";\n \"days\": number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyUntil = {\n \"policy\": \"until\";\n \"date\": WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRetentionPolicyHostDefined = {\n \"policy\": \"host_defined\";\n \"key\": string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationPolicy = {\n \"mode\"?: \"strict\" | \"lenient\";\n \"schema\"?: {\n [key: string]: string | Array<string>;\n};\n \"rules\"?: Array<WireArtifactValidationRule>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValidationRule = {\n \"type\": string;\n \"config\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerificationPolicy = {\n \"required\": boolean;\n \"methods\"?: Array<string>;\n \"actors\"?: Array<string>;\n \"condition\"?: WireArtifactCondition;\n [key: string]: unknown;\n};\n\n/** The major.minor version of the serialized Artifact Protocol record. */\nexport type WireArtifactProtocolCommonContractsSchemaVersion = \"1.1\";\n\n/** A non-empty, case-sensitive identifier whose generation and internal form are host-defined. */\nexport type WireArtifactProtocolCommonContractsOpaqueIdentifier = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVersionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactLinkId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSpecId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactSubmissionId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactVerificationId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\nexport type WireArtifactProtocolCommonContractsArtifactRequirementId = WireArtifactProtocolCommonContractsOpaqueIdentifier;\n\n/** An RFC 3339 full-date string. */\nexport type WireArtifactProtocolCommonContractsDate = string;\n\n/** An RFC 3339 date-time string. */\nexport type WireArtifactProtocolCommonContractsTimestamp = string;\n\nexport type WireArtifactProtocolCommonContractsArtifactValueType = \"text\" | \"number\" | \"boolean\" | \"currency\" | \"date\" | \"datetime\" | \"time\" | \"location\" | \"file\" | \"image\" | \"video\" | \"audio\" | \"link\" | \"structured\" | \"reference\" | \"signature\" | \"collection\";\n\nexport type WireArtifactProtocolCommonContractsActorReference = {\n \"type\": string;\n \"id\"?: WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"displayName\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactScopeReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n [key: string]: unknown;\n};\n\nexport type WireArtifactProtocolCommonContractsArtifactSubjectReference = {\n \"type\": string;\n \"id\": WireArtifactProtocolCommonContractsOpaqueIdentifier;\n \"scope\"?: {\n [key: string]: string;\n};\n [key: string]: unknown;\n};\n\n/** Host extensions represented by arbitrary JSON values. */\nexport type WireArtifactProtocolCommonContractsArtifactMetadata = {\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmission = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submittedBy\": WireArtifactProtocolCommonContractsActorReference;\n \"value\"?: unknown;\n \"submittedAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"context\"?: WireArtifactSubmissionContext;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSubmissionContext = {\n \"latitude\"?: number;\n \"longitude\"?: number;\n \"deviceId\"?: string;\n \"ipAddress\"?: unknown | unknown;\n \"userAgent\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactVerification = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVerificationId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"artifactVersionId\"?: WireArtifactProtocolCommonContractsArtifactVersionId;\n \"submissionId\"?: WireArtifactProtocolCommonContractsArtifactSubmissionId;\n \"status\": \"pending\" | \"verified\" | \"rejected\" | \"waived\";\n \"method\"?: string;\n \"verifiedBy\"?: WireArtifactProtocolCommonContractsActorReference;\n \"reason\"?: string;\n \"createdAt\": WireArtifactProtocolCommonContractsTimestamp;\n \"verifiedAt\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactRequirement = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactRequirementId;\n \"key\"?: string;\n \"allowedKinds\"?: Array<string>;\n \"allowedValueTypes\"?: Array<WireArtifactProtocolCommonContractsArtifactValueType>;\n \"minimumCount\"?: number;\n \"maximumCount\"?: number;\n \"required\": boolean;\n \"specId\"?: WireArtifactProtocolCommonContractsArtifactSpecId;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** An immutable copy of a specification revision captured by a host. */\nexport type WireArtifactSpecSnapshot = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"sourceSpecId\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"sourceVersion\": number;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\nexport type WireArtifactSpec = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactSpecId;\n \"key\": string;\n \"name\": string;\n \"description\"?: string;\n \"version\": number;\n \"kind\": string;\n \"valueType\": WireArtifactProtocolCommonContractsArtifactValueType;\n \"config\"?: {\n \"valueType\"?: WireArtifactProtocolCommonContractsArtifactValueType;\n [key: string]: unknown;\n};\n \"provider\"?: WireArtifactProviderPolicy;\n \"requirement\"?: WireArtifactRequirementPolicy;\n \"lifecycle\"?: WireArtifactLifecyclePolicy;\n \"access\"?: WireArtifactAccessPolicy;\n \"privacy\"?: WireArtifactPrivacyPolicy;\n \"validation\"?: WireArtifactValidationPolicy;\n \"verification\"?: WireArtifactVerificationPolicy;\n \"retention\"?: WireArtifactRetentionPolicy;\n \"presentation\"?: WireArtifactPresentationPolicy;\n \"metadata\"?: WireArtifactProtocolCommonContractsArtifactMetadata;\n [key: string]: unknown;\n};\n\n/** Standardized representation constraints. Artifact kind remains a separate host-defined semantic identifier. */\nexport type WireArtifactValueSchema = WireArtifactValueSchemaText | WireArtifactValueSchemaNumber | WireArtifactValueSchemaBoolean | WireArtifactValueSchemaCurrency | WireArtifactValueSchemaDate | WireArtifactValueSchemaDatetime | WireArtifactValueSchemaTime | WireArtifactValueSchemaLocation | WireArtifactValueSchemaFile | WireArtifactValueSchemaImage | WireArtifactValueSchemaVideo | WireArtifactValueSchemaAudio | WireArtifactValueSchemaLink | WireArtifactValueSchemaStructured | WireArtifactValueSchemaReference | WireArtifactValueSchemaSignature | WireArtifactValueSchemaCollection;\n\nexport type WireArtifactValueSchemaText = {\n \"valueType\": \"text\";\n \"minLength\"?: number;\n \"maxLength\"?: number;\n \"multiline\"?: boolean;\n \"pattern\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaNumber = {\n \"valueType\": \"number\";\n \"minimum\"?: number;\n \"maximum\"?: number;\n \"integer\"?: boolean;\n \"multipleOf\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaBoolean = {\n \"valueType\": \"boolean\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCurrency = {\n \"valueType\": \"currency\";\n \"currencies\"?: Array<string>;\n \"minimumMinorUnits\"?: number;\n \"maximumMinorUnits\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDate = {\n \"valueType\": \"date\";\n \"minimum\"?: WireArtifactProtocolCommonContractsDate;\n \"maximum\"?: WireArtifactProtocolCommonContractsDate;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaDatetime = {\n \"valueType\": \"datetime\";\n \"minimum\"?: WireArtifactProtocolCommonContractsTimestamp;\n \"maximum\"?: WireArtifactProtocolCommonContractsTimestamp;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaTime = {\n \"valueType\": \"time\";\n \"minimum\"?: string;\n \"maximum\"?: string;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLocation = {\n \"valueType\": \"location\";\n \"mode\": \"point\" | \"address\" | \"point_and_address\";\n \"requireCoordinates\"?: boolean;\n \"allowManualEntry\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFile = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"file\";\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaImage = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"image\";\n \"requireTimestamp\"?: boolean;\n \"requireLocation\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaVideo = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"video\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaAudio = WireArtifactValueSchemaFileBase & {\n \"valueType\": \"audio\";\n \"maxDurationSeconds\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaFileBase = {\n \"minFiles\"?: number;\n \"maxFiles\"?: number;\n \"acceptedMimeTypes\"?: Array<string>;\n \"maxSizeBytes\"?: number;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaLink = {\n \"valueType\": \"link\";\n \"allowedSchemes\"?: Array<string>;\n \"allowedHosts\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaStructured = {\n \"valueType\": \"structured\";\n \"jsonSchema\"?: {\n [key: string]: unknown;\n};\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaReference = {\n \"valueType\": \"reference\";\n \"providers\"?: Array<string>;\n \"resourceTypes\"?: Array<string>;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaSignature = {\n \"valueType\": \"signature\";\n \"methods\"?: Array<string>;\n \"requireTimestamp\"?: boolean;\n [key: string]: unknown;\n};\n\nexport type WireArtifactValueSchemaCollection = {\n \"valueType\": \"collection\";\n \"itemSchema\": WireArtifactValueSchema;\n \"minItems\"?: number;\n \"maxItems\"?: number;\n \"uniqueItems\"?: boolean;\n [key: string]: unknown;\n};\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type * from "./generated/wire.js";
|
|
2
|
+
export * from "./editor.js";
|
|
2
3
|
import type * as Generated from "./generated/wire.js";
|
|
3
4
|
import { ARTIFACT_CONDITION_KINDS, ARTIFACT_INTEGRITY_ALGORITHMS, ARTIFACT_PRIVACY_CLASSIFICATIONS, ARTIFACT_PRIVACY_REPRESENTATIONS, ARTIFACT_SOURCE_TYPES, ARTIFACT_VALUE_OPERATORS, ARTIFACT_VALUE_TYPES, ARTIFACT_VERIFICATION_STATUSES, LOCAL_ARTIFACT_SYNC_STATES } from "./generated/vocabulary.js";
|
|
4
5
|
export { ARTIFACT_CONDITION_KINDS, ARTIFACT_INTEGRITY_ALGORITHMS, ARTIFACT_PRIVACY_CLASSIFICATIONS, ARTIFACT_PRIVACY_REPRESENTATIONS, ARTIFACT_SOURCE_TYPES, ARTIFACT_VALUE_OPERATORS, ARTIFACT_VALUE_TYPES, ARTIFACT_VERIFICATION_STATUSES, LOCAL_ARTIFACT_SYNC_STATES, };
|
|
@@ -42,8 +43,9 @@ export interface ArtifactSpecification<TValue = unknown> extends Omit<Generated.
|
|
|
42
43
|
version: number;
|
|
43
44
|
value: TValue;
|
|
44
45
|
}
|
|
45
|
-
export interface Artifact<TKind extends string = ArtifactKind, TValueType extends ArtifactValueType = ArtifactValueType, TSpecification = unknown> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, "scope" | "kind" | "valueType" | "specification" | "createdBy" | "metadata"> {
|
|
46
|
+
export interface Artifact<TKind extends string = ArtifactKind, TValueType extends ArtifactValueType = ArtifactValueType, TSpecification = unknown> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, "scope" | "specId" | "kind" | "valueType" | "specification" | "createdBy" | "metadata"> {
|
|
46
47
|
id: ArtifactId;
|
|
48
|
+
specId: ArtifactSpecId;
|
|
47
49
|
scope?: ArtifactScopeReference;
|
|
48
50
|
kind: TKind;
|
|
49
51
|
valueType: TValueType;
|
|
@@ -215,8 +217,11 @@ export interface ArtifactValidationRule extends Generated.WireArtifactValidation
|
|
|
215
217
|
type: string;
|
|
216
218
|
config?: Record<string, unknown>;
|
|
217
219
|
}
|
|
218
|
-
|
|
220
|
+
/** Laravel-style serializable rules applied to an artifact specification value. */
|
|
221
|
+
export type ArtifactValidationSchema = Record<string, string | string[]>;
|
|
222
|
+
export interface ArtifactValidationPolicy extends Omit<Generated.WireArtifactValidationPolicy, "schema" | "rules"> {
|
|
219
223
|
mode?: "strict" | "lenient";
|
|
224
|
+
schema?: ArtifactValidationSchema;
|
|
220
225
|
rules?: ArtifactValidationRule[];
|
|
221
226
|
}
|
|
222
227
|
export interface ArtifactVerificationPolicy extends Omit<Generated.WireArtifactVerificationPolicy, "condition"> {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,qBAAqB,CAAC;AACzC,OAAO,KAAK,KAAK,SAAS,MAAM,qBAAqB,CAAC;AACtD,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,yBAAyB,EAAG,KAAc,CAAC;AAExD,MAAM,MAAM,uBAAuB,GAAG,OAAO,yBAAyB,CAAC;AAEvE,8DAA8D;AAC9D,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,eAAe,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,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B","sourcesContent":["export type * from \"./generated/wire.js\";\nimport type * as Generated from \"./generated/wire.js\";\nimport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n} from \"./generated/vocabulary.js\";\nexport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n};\n\n/** The schema version implemented by this binding. */\nexport const ARTIFACT_PROTOCOL_VERSION = \"1.1\" as const;\n\nexport type ArtifactProtocolVersion = typeof ARTIFACT_PROTOCOL_VERSION;\n\n/** Base fields carried by every top-level protocol record. */\nexport interface ArtifactProtocolRecord extends Pick<Generated.WireArtifact, \"schemaVersion\"> {\n schemaVersion: ArtifactProtocolVersion;\n}\n\n/** Opaque, non-empty serialized identifiers. Their generation is host-defined. */\nexport type ArtifactId = string;\nexport type ArtifactVersionId = string;\nexport type ArtifactLinkId = string;\nexport type ArtifactSpecId = string;\nexport type ArtifactRequirementId = string;\nexport type ArtifactSubmissionId = string;\nexport type ArtifactVerificationId = string;\n\n/** Host extension data. Values must be JSON-serializable when encoded. */\nexport type ArtifactMetadata = Record<string, unknown>;\n\nexport type ArtifactValueType = (typeof ARTIFACT_VALUE_TYPES)[number];\n\nexport type ArtifactKind = string;\nexport type ArtifactRole = string;\n\nexport interface ActorReference<TType extends string = string> {\n type: TType;\n id?: string;\n displayName?: string;\n}\n\nexport interface ArtifactScopeReference<TType extends string = string> {\n type: TType;\n id: string;\n}\n\nexport interface ArtifactSubjectReference<TType extends string = string> {\n type: TType;\n id: string;\n scope?: Record<string, string>;\n}\n\n/** Schema-governed semantic interpretation of an artifact or immutable artifact version. */\nexport interface ArtifactSpecification<TValue = unknown> extends Omit<Generated.WireArtifactSpecification, \"value\"> {\n schema: string;\n version: number;\n value: TValue;\n}\n\nexport interface Artifact<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, \"scope\" | \"kind\" | \"valueType\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactId;\n scope?: ArtifactScopeReference;\n kind: TKind;\n valueType: TValueType;\n title?: string;\n description?: string;\n specification?: ArtifactSpecification<TSpecification>;\n currentVersionId?: ArtifactVersionId;\n createdBy: ActorReference;\n createdAt: string;\n updatedAt: string;\n archivedAt?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface InlineArtifactSource<TValue = unknown> extends Omit<Generated.WireInlineArtifactSource, \"value\"> {\n type: \"inline\";\n value: TValue;\n mediaType?: string;\n}\n\nexport type LocalArtifactSyncState =\n (typeof LOCAL_ARTIFACT_SYNC_STATES)[number];\n\nexport interface LocalArtifactSource extends Generated.WireLocalArtifactSource {\n type: \"local\";\n localId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n syncState: LocalArtifactSyncState;\n remoteVersionId?: ArtifactVersionId;\n}\n\nexport interface ObjectArtifactSource extends Generated.WireObjectArtifactSource {\n type: \"object\";\n objectId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n storageProvider?: string;\n}\n\nexport interface UrlArtifactSource extends Generated.WireUrlArtifactSource {\n type: \"url\";\n url: string;\n provider?: string;\n mediaType?: string;\n}\n\nexport interface HostedArtifactSource extends Generated.WireHostedArtifactSource {\n type: \"hosted\";\n recordType: string;\n recordId: string;\n}\n\nexport interface ProviderArtifactSource<\n TProvider extends string = string,\n TReference = unknown,\n> extends Omit<Generated.WireProviderArtifactSource, \"provider\" | \"reference\"> {\n type: \"provider\";\n provider: TProvider;\n reference: TReference;\n}\n\nexport type ArtifactSource =\n | InlineArtifactSource\n | LocalArtifactSource\n | ObjectArtifactSource\n | UrlArtifactSource\n | HostedArtifactSource\n | ProviderArtifactSource;\n\nexport type ArtifactIntegrityAlgorithm =\n (typeof ARTIFACT_INTEGRITY_ALGORITHMS)[number];\n\nexport interface ArtifactIntegrity extends Generated.WireArtifactIntegrity {\n algorithm: ArtifactIntegrityAlgorithm;\n hash: string;\n size?: number;\n verifiedAt?: string;\n}\n\nexport interface ArtifactVersion<\n TSource extends ArtifactSource = ArtifactSource,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, \"source\" | \"integrity\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactVersionId;\n artifactId: ArtifactId;\n version: number;\n source: TSource;\n integrity?: ArtifactIntegrity;\n specification?: ArtifactSpecification<TSpecification>;\n createdBy: ActorReference;\n createdAt: string;\n note?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactLink<\n TRole extends string = ArtifactRole,\n TSubjectType extends string = string,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactLink, \"subject\" | \"role\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactLinkId;\n artifactId: ArtifactId;\n /** Omit to follow the logical artifact; provide to pin immutable content. */\n artifactVersionId?: ArtifactVersionId;\n subject: ArtifactSubjectReference<TSubjectType>;\n role: TRole;\n note?: string;\n createdBy: ActorReference;\n createdAt: string;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactValueOperator = (typeof ARTIFACT_VALUE_OPERATORS)[number];\n\nexport interface ArtifactStateCondition extends Generated.WireArtifactConditionState {\n kind: \"state\";\n namespace: string;\n in: string[];\n}\n\nexport interface ArtifactActorCondition extends Generated.WireArtifactConditionActor {\n kind: \"actor\";\n in: string[];\n}\n\nexport interface ArtifactExistsCondition extends Generated.WireArtifactConditionArtifactExists {\n kind: \"artifact_exists\";\n artifact: string;\n}\n\nexport interface ArtifactValueCondition<TValue = unknown> extends Omit<Generated.WireArtifactConditionArtifactValue, \"value\"> {\n kind: \"artifact_value\";\n artifact: string;\n operator: ArtifactValueOperator;\n value: TValue;\n}\n\nexport interface ArtifactAndCondition extends Omit<Generated.WireArtifactConditionAnd, \"conditions\"> { kind: \"and\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactOrCondition extends Omit<Generated.WireArtifactConditionOr, \"conditions\"> { kind: \"or\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactNotCondition extends Omit<Generated.WireArtifactConditionNot, \"condition\"> { kind: \"not\"; condition: ArtifactCondition; }\n\nexport type ArtifactCondition =\n | ArtifactStateCondition | ArtifactActorCondition | ArtifactExistsCondition\n | ArtifactValueCondition | ArtifactAndCondition | ArtifactOrCondition\n | ArtifactNotCondition;\n\nexport interface ArtifactProviderPolicy extends Generated.WireArtifactProviderPolicy {\n actors: string[];\n mode?: \"single\" | \"any\" | \"all\";\n delegation?: \"forbidden\" | \"allowed\";\n}\n\nexport interface ArtifactRequirementPolicy extends Omit<Generated.WireArtifactRequirementPolicy, \"condition\"> {\n mode: \"required\" | \"optional\" | \"conditional\";\n condition?: ArtifactCondition;\n blocks?: string[];\n}\n\nexport interface ArtifactLifecyclePolicy extends Omit<Generated.WireArtifactLifecyclePolicy, \"condition\"> {\n createAt?: string;\n editableDuring?: string[];\n submitDuring?: string[];\n lockAt?: string;\n invalidateOn?: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessRule extends Omit<Generated.WireArtifactAccessPolicyRule, \"condition\"> {\n actors: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessPolicy extends Omit<Generated.WireArtifactAccessPolicy, \"read\" | \"write\" | \"submit\" | \"verify\"> {\n read?: ArtifactAccessRule[];\n write?: ArtifactAccessRule[];\n submit?: ArtifactAccessRule[];\n verify?: ArtifactAccessRule[];\n}\n\nexport type ArtifactPrivacyClassification =\n (typeof ARTIFACT_PRIVACY_CLASSIFICATIONS)[number];\n\nexport type ArtifactPrivacyRepresentation =\n (typeof ARTIFACT_PRIVACY_REPRESENTATIONS)[number];\n\nexport interface ArtifactRevealRule extends Omit<Generated.WireArtifactRevealRule, \"when\"> {\n actors: string[];\n when?: ArtifactCondition;\n representation: ArtifactPrivacyRepresentation;\n}\n\nexport interface ArtifactMaskingPolicy extends Generated.WireArtifactMaskingPolicy {\n strategy: string;\n config?: Record<string, unknown>;\n}\n\nexport interface ArtifactEncryptionPolicy extends Generated.WireArtifactEncryptionPolicy {\n required: boolean;\n level?: string;\n keyScope?: string;\n}\n\nexport interface ArtifactPrivacyPolicy extends Omit<Generated.WireArtifactPrivacyPolicy, \"reveal\" | \"masking\" | \"encryption\"> {\n classification: ArtifactPrivacyClassification;\n reveal?: ArtifactRevealRule[];\n masking?: ArtifactMaskingPolicy;\n encryption?: ArtifactEncryptionPolicy;\n}\n\nexport interface ArtifactValidationRule extends Generated.WireArtifactValidationRule {\n type: string;\n config?: Record<string, unknown>;\n}\n\nexport interface ArtifactValidationPolicy extends Omit<Generated.WireArtifactValidationPolicy, \"rules\"> {\n mode?: \"strict\" | \"lenient\";\n rules?: ArtifactValidationRule[];\n}\n\nexport interface ArtifactVerificationPolicy extends Omit<Generated.WireArtifactVerificationPolicy, \"condition\"> {\n required: boolean;\n methods?: string[];\n actors?: string[];\n condition?: ArtifactCondition;\n}\n\nexport type ArtifactRetentionPolicy =\n | { policy: \"forever\" }\n | { policy: \"duration\"; days: number }\n | { policy: \"until\"; date: string }\n | { policy: \"host_defined\"; key: string };\n\nexport interface ArtifactPresentationPolicy extends Generated.WireArtifactPresentationPolicy {\n label?: string;\n helpText?: string;\n order?: number;\n display?: string;\n config?: Record<string, unknown>;\n}\n\nexport interface TextArtifactValueSchema extends Generated.WireArtifactValueSchemaText { valueType: \"text\"; }\nexport interface NumberArtifactValueSchema extends Generated.WireArtifactValueSchemaNumber { valueType: \"number\"; }\nexport interface BooleanArtifactValueSchema extends Generated.WireArtifactValueSchemaBoolean { valueType: \"boolean\"; }\nexport interface CurrencyArtifactValueSchema extends Generated.WireArtifactValueSchemaCurrency { valueType: \"currency\"; }\nexport interface DateArtifactValueSchema extends Generated.WireArtifactValueSchemaDate { valueType: \"date\"; }\nexport interface DatetimeArtifactValueSchema extends Generated.WireArtifactValueSchemaDatetime { valueType: \"datetime\"; }\nexport interface TimeArtifactValueSchema extends Generated.WireArtifactValueSchemaTime { valueType: \"time\"; }\nexport interface LocationArtifactValueSchema extends Generated.WireArtifactValueSchemaLocation { valueType: \"location\"; }\nexport interface FileArtifactValueSchema extends Generated.WireArtifactValueSchemaFile { valueType: \"file\"; }\nexport interface ImageArtifactValueSchema extends Generated.WireArtifactValueSchemaImage { valueType: \"image\"; }\nexport interface VideoArtifactValueSchema extends Generated.WireArtifactValueSchemaVideo { valueType: \"video\"; }\nexport interface AudioArtifactValueSchema extends Generated.WireArtifactValueSchemaAudio { valueType: \"audio\"; }\nexport interface LinkArtifactValueSchema extends Generated.WireArtifactValueSchemaLink { valueType: \"link\"; }\nexport interface StructuredArtifactValueSchema extends Generated.WireArtifactValueSchemaStructured { valueType: \"structured\"; }\nexport interface ReferenceArtifactValueSchema extends Generated.WireArtifactValueSchemaReference { valueType: \"reference\"; }\nexport interface SignatureArtifactValueSchema extends Generated.WireArtifactValueSchemaSignature { valueType: \"signature\"; }\nexport interface CollectionArtifactValueSchema extends Omit<Generated.WireArtifactValueSchemaCollection, \"itemSchema\"> { valueType: \"collection\"; itemSchema: ArtifactValueSchema; }\n\nexport type ArtifactValueSchema =\n | TextArtifactValueSchema | NumberArtifactValueSchema | BooleanArtifactValueSchema\n | CurrencyArtifactValueSchema | DateArtifactValueSchema | DatetimeArtifactValueSchema\n | TimeArtifactValueSchema | LocationArtifactValueSchema | FileArtifactValueSchema\n | ImageArtifactValueSchema | VideoArtifactValueSchema | AudioArtifactValueSchema\n | LinkArtifactValueSchema | StructuredArtifactValueSchema | ReferenceArtifactValueSchema\n | SignatureArtifactValueSchema | CollectionArtifactValueSchema;\n\nexport type ArtifactValueConfig<TValueType extends ArtifactValueType> =\n Omit<Extract<ArtifactValueSchema, { valueType: TValueType }>, \"valueType\"> &\n { valueType?: TValueType };\n\nexport interface ArtifactSpec<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSpec, \"kind\" | \"valueType\" | \"config\" | \"provider\" | \"requirement\" | \"lifecycle\" | \"access\" | \"privacy\" | \"validation\" | \"verification\" | \"retention\" | \"presentation\" | \"metadata\"> {\n id: ArtifactSpecId;\n key: string;\n name: string;\n description?: string;\n version: number;\n kind: TKind;\n valueType: TValueType;\n config?: TConfig;\n provider?: ArtifactProviderPolicy;\n requirement?: ArtifactRequirementPolicy;\n lifecycle?: ArtifactLifecyclePolicy;\n access?: ArtifactAccessPolicy;\n privacy?: ArtifactPrivacyPolicy;\n validation?: ArtifactValidationPolicy;\n verification?: ArtifactVerificationPolicy;\n retention?: ArtifactRetentionPolicy;\n presentation?: ArtifactPresentationPolicy;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactSpecSnapshot<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> = Omit<ArtifactSpec<TKind, TValueType, TConfig>, \"id\" | \"version\"> & {\n sourceSpecId: ArtifactSpecId;\n sourceVersion: number;\n};\n\nexport interface ArtifactRequirement extends ArtifactProtocolRecord, Omit<Generated.WireArtifactRequirement, \"metadata\"> {\n id: ArtifactRequirementId;\n key?: string;\n allowedKinds?: string[];\n allowedValueTypes?: ArtifactValueType[];\n minimumCount?: number;\n maximumCount?: number;\n required: boolean;\n specId?: ArtifactSpecId;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactSubmissionContext extends Generated.WireArtifactSubmissionContext {\n latitude?: number;\n longitude?: number;\n deviceId?: string;\n ipAddress?: string;\n userAgent?: string;\n}\n\nexport interface ArtifactSubmission<TValue = unknown> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSubmission, \"submittedBy\" | \"value\" | \"context\" | \"metadata\"> {\n id: ArtifactSubmissionId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submittedBy: ActorReference;\n value?: TValue;\n submittedAt: string;\n context?: ArtifactSubmissionContext;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactVerificationStatus =\n (typeof ARTIFACT_VERIFICATION_STATUSES)[number];\n\nexport interface ArtifactVerification extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVerification, \"verifiedBy\" | \"metadata\"> {\n id: ArtifactVerificationId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submissionId?: ArtifactSubmissionId;\n status: ArtifactVerificationStatus;\n method?: string;\n verifiedBy?: ActorReference;\n reason?: string;\n createdAt: string;\n verifiedAt?: string;\n metadata?: ArtifactMetadata;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,qBAAqB,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,KAAK,SAAS,MAAM,qBAAqB,CAAC;AACtD,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,2BAA2B,C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AAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,wBAAwB,EAAE,YAAY,GAAG,UAAU,CAAC;IACvI,EAAE,EAAE,sBAAsB,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,MAAM,EAAE,0BAA0B,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B","sourcesContent":["export type * from \"./generated/wire.js\";\nexport * from \"./editor.js\";\nimport type * as Generated from \"./generated/wire.js\";\nimport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n} from \"./generated/vocabulary.js\";\nexport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n};\n\n/** The schema version implemented by this binding. */\nexport const ARTIFACT_PROTOCOL_VERSION = \"1.1\" as const;\n\nexport type ArtifactProtocolVersion = typeof ARTIFACT_PROTOCOL_VERSION;\n\n/** Base fields carried by every top-level protocol record. */\nexport interface ArtifactProtocolRecord extends Pick<Generated.WireArtifact, \"schemaVersion\"> {\n schemaVersion: ArtifactProtocolVersion;\n}\n\n/** Opaque, non-empty serialized identifiers. Their generation is host-defined. */\nexport type ArtifactId = string;\nexport type ArtifactVersionId = string;\nexport type ArtifactLinkId = string;\nexport type ArtifactSpecId = string;\nexport type ArtifactRequirementId = string;\nexport type ArtifactSubmissionId = string;\nexport type ArtifactVerificationId = string;\n\n/** Host extension data. Values must be JSON-serializable when encoded. */\nexport type ArtifactMetadata = Record<string, unknown>;\n\nexport type ArtifactValueType = (typeof ARTIFACT_VALUE_TYPES)[number];\n\nexport type ArtifactKind = string;\nexport type ArtifactRole = string;\n\nexport interface ActorReference<TType extends string = string> {\n type: TType;\n id?: string;\n displayName?: string;\n}\n\nexport interface ArtifactScopeReference<TType extends string = string> {\n type: TType;\n id: string;\n}\n\nexport interface ArtifactSubjectReference<TType extends string = string> {\n type: TType;\n id: string;\n scope?: Record<string, string>;\n}\n\n/** Schema-governed semantic interpretation of an artifact or immutable artifact version. */\nexport interface ArtifactSpecification<TValue = unknown> extends Omit<Generated.WireArtifactSpecification, \"value\"> {\n schema: string;\n version: number;\n value: TValue;\n}\n\nexport interface Artifact<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, \"scope\" | \"specId\" | \"kind\" | \"valueType\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactId;\n specId: ArtifactSpecId;\n scope?: ArtifactScopeReference;\n kind: TKind;\n valueType: TValueType;\n title?: string;\n description?: string;\n specification?: ArtifactSpecification<TSpecification>;\n currentVersionId?: ArtifactVersionId;\n createdBy: ActorReference;\n createdAt: string;\n updatedAt: string;\n archivedAt?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface InlineArtifactSource<TValue = unknown> extends Omit<Generated.WireInlineArtifactSource, \"value\"> {\n type: \"inline\";\n value: TValue;\n mediaType?: string;\n}\n\nexport type LocalArtifactSyncState =\n (typeof LOCAL_ARTIFACT_SYNC_STATES)[number];\n\nexport interface LocalArtifactSource extends Generated.WireLocalArtifactSource {\n type: \"local\";\n localId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n syncState: LocalArtifactSyncState;\n remoteVersionId?: ArtifactVersionId;\n}\n\nexport interface ObjectArtifactSource extends Generated.WireObjectArtifactSource {\n type: \"object\";\n objectId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n storageProvider?: string;\n}\n\nexport interface UrlArtifactSource extends Generated.WireUrlArtifactSource {\n type: \"url\";\n url: string;\n provider?: string;\n mediaType?: string;\n}\n\nexport interface HostedArtifactSource extends Generated.WireHostedArtifactSource {\n type: \"hosted\";\n recordType: string;\n recordId: string;\n}\n\nexport interface ProviderArtifactSource<\n TProvider extends string = string,\n TReference = unknown,\n> extends Omit<Generated.WireProviderArtifactSource, \"provider\" | \"reference\"> {\n type: \"provider\";\n provider: TProvider;\n reference: TReference;\n}\n\nexport type ArtifactSource =\n | InlineArtifactSource\n | LocalArtifactSource\n | ObjectArtifactSource\n | UrlArtifactSource\n | HostedArtifactSource\n | ProviderArtifactSource;\n\nexport type ArtifactIntegrityAlgorithm =\n (typeof ARTIFACT_INTEGRITY_ALGORITHMS)[number];\n\nexport interface ArtifactIntegrity extends Generated.WireArtifactIntegrity {\n algorithm: ArtifactIntegrityAlgorithm;\n hash: string;\n size?: number;\n verifiedAt?: string;\n}\n\nexport interface ArtifactVersion<\n TSource extends ArtifactSource = ArtifactSource,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, \"source\" | \"integrity\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactVersionId;\n artifactId: ArtifactId;\n version: number;\n source: TSource;\n integrity?: ArtifactIntegrity;\n specification?: ArtifactSpecification<TSpecification>;\n createdBy: ActorReference;\n createdAt: string;\n note?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactLink<\n TRole extends string = ArtifactRole,\n TSubjectType extends string = string,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactLink, \"subject\" | \"role\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactLinkId;\n artifactId: ArtifactId;\n /** Omit to follow the logical artifact; provide to pin immutable content. */\n artifactVersionId?: ArtifactVersionId;\n subject: ArtifactSubjectReference<TSubjectType>;\n role: TRole;\n note?: string;\n createdBy: ActorReference;\n createdAt: string;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactValueOperator = (typeof ARTIFACT_VALUE_OPERATORS)[number];\n\nexport interface ArtifactStateCondition extends Generated.WireArtifactConditionState {\n kind: \"state\";\n namespace: string;\n in: string[];\n}\n\nexport interface ArtifactActorCondition extends Generated.WireArtifactConditionActor {\n kind: \"actor\";\n in: string[];\n}\n\nexport interface ArtifactExistsCondition extends Generated.WireArtifactConditionArtifactExists {\n kind: \"artifact_exists\";\n artifact: string;\n}\n\nexport interface ArtifactValueCondition<TValue = unknown> extends Omit<Generated.WireArtifactConditionArtifactValue, \"value\"> {\n kind: \"artifact_value\";\n artifact: string;\n operator: ArtifactValueOperator;\n value: TValue;\n}\n\nexport interface ArtifactAndCondition extends Omit<Generated.WireArtifactConditionAnd, \"conditions\"> { kind: \"and\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactOrCondition extends Omit<Generated.WireArtifactConditionOr, \"conditions\"> { kind: \"or\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactNotCondition extends Omit<Generated.WireArtifactConditionNot, \"condition\"> { kind: \"not\"; condition: ArtifactCondition; }\n\nexport type ArtifactCondition =\n | ArtifactStateCondition | ArtifactActorCondition | ArtifactExistsCondition\n | ArtifactValueCondition | ArtifactAndCondition | ArtifactOrCondition\n | ArtifactNotCondition;\n\nexport interface ArtifactProviderPolicy extends Generated.WireArtifactProviderPolicy {\n actors: string[];\n mode?: \"single\" | \"any\" | \"all\";\n delegation?: \"forbidden\" | \"allowed\";\n}\n\nexport interface ArtifactRequirementPolicy extends Omit<Generated.WireArtifactRequirementPolicy, \"condition\"> {\n mode: \"required\" | \"optional\" | \"conditional\";\n condition?: ArtifactCondition;\n blocks?: string[];\n}\n\nexport interface ArtifactLifecyclePolicy extends Omit<Generated.WireArtifactLifecyclePolicy, \"condition\"> {\n createAt?: string;\n editableDuring?: string[];\n submitDuring?: string[];\n lockAt?: string;\n invalidateOn?: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessRule extends Omit<Generated.WireArtifactAccessPolicyRule, \"condition\"> {\n actors: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessPolicy extends Omit<Generated.WireArtifactAccessPolicy, \"read\" | \"write\" | \"submit\" | \"verify\"> {\n read?: ArtifactAccessRule[];\n write?: ArtifactAccessRule[];\n submit?: ArtifactAccessRule[];\n verify?: ArtifactAccessRule[];\n}\n\nexport type ArtifactPrivacyClassification =\n (typeof ARTIFACT_PRIVACY_CLASSIFICATIONS)[number];\n\nexport type ArtifactPrivacyRepresentation =\n (typeof ARTIFACT_PRIVACY_REPRESENTATIONS)[number];\n\nexport interface ArtifactRevealRule extends Omit<Generated.WireArtifactRevealRule, \"when\"> {\n actors: string[];\n when?: ArtifactCondition;\n representation: ArtifactPrivacyRepresentation;\n}\n\nexport interface ArtifactMaskingPolicy extends Generated.WireArtifactMaskingPolicy {\n strategy: string;\n config?: Record<string, unknown>;\n}\n\nexport interface ArtifactEncryptionPolicy extends Generated.WireArtifactEncryptionPolicy {\n required: boolean;\n level?: string;\n keyScope?: string;\n}\n\nexport interface ArtifactPrivacyPolicy extends Omit<Generated.WireArtifactPrivacyPolicy, \"reveal\" | \"masking\" | \"encryption\"> {\n classification: ArtifactPrivacyClassification;\n reveal?: ArtifactRevealRule[];\n masking?: ArtifactMaskingPolicy;\n encryption?: ArtifactEncryptionPolicy;\n}\n\nexport interface ArtifactValidationRule extends Generated.WireArtifactValidationRule {\n type: string;\n config?: Record<string, unknown>;\n}\n\n/** Laravel-style serializable rules applied to an artifact specification value. */\nexport type ArtifactValidationSchema = Record<string, string | string[]>;\n\nexport interface ArtifactValidationPolicy extends Omit<Generated.WireArtifactValidationPolicy, \"schema\" | \"rules\"> {\n mode?: \"strict\" | \"lenient\";\n schema?: ArtifactValidationSchema;\n rules?: ArtifactValidationRule[];\n}\n\nexport interface ArtifactVerificationPolicy extends Omit<Generated.WireArtifactVerificationPolicy, \"condition\"> {\n required: boolean;\n methods?: string[];\n actors?: string[];\n condition?: ArtifactCondition;\n}\n\nexport type ArtifactRetentionPolicy =\n | { policy: \"forever\" }\n | { policy: \"duration\"; days: number }\n | { policy: \"until\"; date: string }\n | { policy: \"host_defined\"; key: string };\n\nexport interface ArtifactPresentationPolicy extends Generated.WireArtifactPresentationPolicy {\n label?: string;\n helpText?: string;\n order?: number;\n display?: string;\n config?: Record<string, unknown>;\n}\n\nexport interface TextArtifactValueSchema extends Generated.WireArtifactValueSchemaText { valueType: \"text\"; }\nexport interface NumberArtifactValueSchema extends Generated.WireArtifactValueSchemaNumber { valueType: \"number\"; }\nexport interface BooleanArtifactValueSchema extends Generated.WireArtifactValueSchemaBoolean { valueType: \"boolean\"; }\nexport interface CurrencyArtifactValueSchema extends Generated.WireArtifactValueSchemaCurrency { valueType: \"currency\"; }\nexport interface DateArtifactValueSchema extends Generated.WireArtifactValueSchemaDate { valueType: \"date\"; }\nexport interface DatetimeArtifactValueSchema extends Generated.WireArtifactValueSchemaDatetime { valueType: \"datetime\"; }\nexport interface TimeArtifactValueSchema extends Generated.WireArtifactValueSchemaTime { valueType: \"time\"; }\nexport interface LocationArtifactValueSchema extends Generated.WireArtifactValueSchemaLocation { valueType: \"location\"; }\nexport interface FileArtifactValueSchema extends Generated.WireArtifactValueSchemaFile { valueType: \"file\"; }\nexport interface ImageArtifactValueSchema extends Generated.WireArtifactValueSchemaImage { valueType: \"image\"; }\nexport interface VideoArtifactValueSchema extends Generated.WireArtifactValueSchemaVideo { valueType: \"video\"; }\nexport interface AudioArtifactValueSchema extends Generated.WireArtifactValueSchemaAudio { valueType: \"audio\"; }\nexport interface LinkArtifactValueSchema extends Generated.WireArtifactValueSchemaLink { valueType: \"link\"; }\nexport interface StructuredArtifactValueSchema extends Generated.WireArtifactValueSchemaStructured { valueType: \"structured\"; }\nexport interface ReferenceArtifactValueSchema extends Generated.WireArtifactValueSchemaReference { valueType: \"reference\"; }\nexport interface SignatureArtifactValueSchema extends Generated.WireArtifactValueSchemaSignature { valueType: \"signature\"; }\nexport interface CollectionArtifactValueSchema extends Omit<Generated.WireArtifactValueSchemaCollection, \"itemSchema\"> { valueType: \"collection\"; itemSchema: ArtifactValueSchema; }\n\nexport type ArtifactValueSchema =\n | TextArtifactValueSchema | NumberArtifactValueSchema | BooleanArtifactValueSchema\n | CurrencyArtifactValueSchema | DateArtifactValueSchema | DatetimeArtifactValueSchema\n | TimeArtifactValueSchema | LocationArtifactValueSchema | FileArtifactValueSchema\n | ImageArtifactValueSchema | VideoArtifactValueSchema | AudioArtifactValueSchema\n | LinkArtifactValueSchema | StructuredArtifactValueSchema | ReferenceArtifactValueSchema\n | SignatureArtifactValueSchema | CollectionArtifactValueSchema;\n\nexport type ArtifactValueConfig<TValueType extends ArtifactValueType> =\n Omit<Extract<ArtifactValueSchema, { valueType: TValueType }>, \"valueType\"> &\n { valueType?: TValueType };\n\nexport interface ArtifactSpec<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSpec, \"kind\" | \"valueType\" | \"config\" | \"provider\" | \"requirement\" | \"lifecycle\" | \"access\" | \"privacy\" | \"validation\" | \"verification\" | \"retention\" | \"presentation\" | \"metadata\"> {\n id: ArtifactSpecId;\n key: string;\n name: string;\n description?: string;\n version: number;\n kind: TKind;\n valueType: TValueType;\n config?: TConfig;\n provider?: ArtifactProviderPolicy;\n requirement?: ArtifactRequirementPolicy;\n lifecycle?: ArtifactLifecyclePolicy;\n access?: ArtifactAccessPolicy;\n privacy?: ArtifactPrivacyPolicy;\n validation?: ArtifactValidationPolicy;\n verification?: ArtifactVerificationPolicy;\n retention?: ArtifactRetentionPolicy;\n presentation?: ArtifactPresentationPolicy;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactSpecSnapshot<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> = Omit<ArtifactSpec<TKind, TValueType, TConfig>, \"id\" | \"version\"> & {\n sourceSpecId: ArtifactSpecId;\n sourceVersion: number;\n};\n\nexport interface ArtifactRequirement extends ArtifactProtocolRecord, Omit<Generated.WireArtifactRequirement, \"metadata\"> {\n id: ArtifactRequirementId;\n key?: string;\n allowedKinds?: string[];\n allowedValueTypes?: ArtifactValueType[];\n minimumCount?: number;\n maximumCount?: number;\n required: boolean;\n specId?: ArtifactSpecId;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactSubmissionContext extends Generated.WireArtifactSubmissionContext {\n latitude?: number;\n longitude?: number;\n deviceId?: string;\n ipAddress?: string;\n userAgent?: string;\n}\n\nexport interface ArtifactSubmission<TValue = unknown> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSubmission, \"submittedBy\" | \"value\" | \"context\" | \"metadata\"> {\n id: ArtifactSubmissionId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submittedBy: ActorReference;\n value?: TValue;\n submittedAt: string;\n context?: ArtifactSubmissionContext;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactVerificationStatus =\n (typeof ARTIFACT_VERIFICATION_STATUSES)[number];\n\nexport interface ArtifactVerification extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVerification, \"verifiedBy\" | \"metadata\"> {\n id: ArtifactVerificationId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submissionId?: ArtifactSubmissionId;\n status: ArtifactVerificationStatus;\n method?: string;\n verifiedBy?: ActorReference;\n reason?: string;\n createdAt: string;\n verifiedAt?: string;\n metadata?: ArtifactMetadata;\n}\n"]}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./editor.js";
|
|
1
2
|
import { ARTIFACT_CONDITION_KINDS, ARTIFACT_INTEGRITY_ALGORITHMS, ARTIFACT_PRIVACY_CLASSIFICATIONS, ARTIFACT_PRIVACY_REPRESENTATIONS, ARTIFACT_SOURCE_TYPES, ARTIFACT_VALUE_OPERATORS, ARTIFACT_VALUE_TYPES, ARTIFACT_VERIFICATION_STATUSES, LOCAL_ARTIFACT_SYNC_STATES, } from "./generated/vocabulary.js";
|
|
2
3
|
export { ARTIFACT_CONDITION_KINDS, ARTIFACT_INTEGRITY_ALGORITHMS, ARTIFACT_PRIVACY_CLASSIFICATIONS, ARTIFACT_PRIVACY_REPRESENTATIONS, ARTIFACT_SOURCE_TYPES, ARTIFACT_VALUE_OPERATORS, ARTIFACT_VALUE_TYPES, ARTIFACT_VERIFICATION_STATUSES, LOCAL_ARTIFACT_SYNC_STATES, };
|
|
3
4
|
/** The schema version implemented by this binding. */
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAC;AAEF,sDAAsD;AACtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAc,CAAC","sourcesContent":["export type * from \"./generated/wire.js\";\nimport type * as Generated from \"./generated/wire.js\";\nimport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n} from \"./generated/vocabulary.js\";\nexport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n};\n\n/** The schema version implemented by this binding. */\nexport const ARTIFACT_PROTOCOL_VERSION = \"1.1\" as const;\n\nexport type ArtifactProtocolVersion = typeof ARTIFACT_PROTOCOL_VERSION;\n\n/** Base fields carried by every top-level protocol record. */\nexport interface ArtifactProtocolRecord extends Pick<Generated.WireArtifact, \"schemaVersion\"> {\n schemaVersion: ArtifactProtocolVersion;\n}\n\n/** Opaque, non-empty serialized identifiers. Their generation is host-defined. */\nexport type ArtifactId = string;\nexport type ArtifactVersionId = string;\nexport type ArtifactLinkId = string;\nexport type ArtifactSpecId = string;\nexport type ArtifactRequirementId = string;\nexport type ArtifactSubmissionId = string;\nexport type ArtifactVerificationId = string;\n\n/** Host extension data. Values must be JSON-serializable when encoded. */\nexport type ArtifactMetadata = Record<string, unknown>;\n\nexport type ArtifactValueType = (typeof ARTIFACT_VALUE_TYPES)[number];\n\nexport type ArtifactKind = string;\nexport type ArtifactRole = string;\n\nexport interface ActorReference<TType extends string = string> {\n type: TType;\n id?: string;\n displayName?: string;\n}\n\nexport interface ArtifactScopeReference<TType extends string = string> {\n type: TType;\n id: string;\n}\n\nexport interface ArtifactSubjectReference<TType extends string = string> {\n type: TType;\n id: string;\n scope?: Record<string, string>;\n}\n\n/** Schema-governed semantic interpretation of an artifact or immutable artifact version. */\nexport interface ArtifactSpecification<TValue = unknown> extends Omit<Generated.WireArtifactSpecification, \"value\"> {\n schema: string;\n version: number;\n value: TValue;\n}\n\nexport interface Artifact<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, \"scope\" | \"kind\" | \"valueType\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactId;\n scope?: ArtifactScopeReference;\n kind: TKind;\n valueType: TValueType;\n title?: string;\n description?: string;\n specification?: ArtifactSpecification<TSpecification>;\n currentVersionId?: ArtifactVersionId;\n createdBy: ActorReference;\n createdAt: string;\n updatedAt: string;\n archivedAt?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface InlineArtifactSource<TValue = unknown> extends Omit<Generated.WireInlineArtifactSource, \"value\"> {\n type: \"inline\";\n value: TValue;\n mediaType?: string;\n}\n\nexport type LocalArtifactSyncState =\n (typeof LOCAL_ARTIFACT_SYNC_STATES)[number];\n\nexport interface LocalArtifactSource extends Generated.WireLocalArtifactSource {\n type: \"local\";\n localId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n syncState: LocalArtifactSyncState;\n remoteVersionId?: ArtifactVersionId;\n}\n\nexport interface ObjectArtifactSource extends Generated.WireObjectArtifactSource {\n type: \"object\";\n objectId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n storageProvider?: string;\n}\n\nexport interface UrlArtifactSource extends Generated.WireUrlArtifactSource {\n type: \"url\";\n url: string;\n provider?: string;\n mediaType?: string;\n}\n\nexport interface HostedArtifactSource extends Generated.WireHostedArtifactSource {\n type: \"hosted\";\n recordType: string;\n recordId: string;\n}\n\nexport interface ProviderArtifactSource<\n TProvider extends string = string,\n TReference = unknown,\n> extends Omit<Generated.WireProviderArtifactSource, \"provider\" | \"reference\"> {\n type: \"provider\";\n provider: TProvider;\n reference: TReference;\n}\n\nexport type ArtifactSource =\n | InlineArtifactSource\n | LocalArtifactSource\n | ObjectArtifactSource\n | UrlArtifactSource\n | HostedArtifactSource\n | ProviderArtifactSource;\n\nexport type ArtifactIntegrityAlgorithm =\n (typeof ARTIFACT_INTEGRITY_ALGORITHMS)[number];\n\nexport interface ArtifactIntegrity extends Generated.WireArtifactIntegrity {\n algorithm: ArtifactIntegrityAlgorithm;\n hash: string;\n size?: number;\n verifiedAt?: string;\n}\n\nexport interface ArtifactVersion<\n TSource extends ArtifactSource = ArtifactSource,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, \"source\" | \"integrity\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactVersionId;\n artifactId: ArtifactId;\n version: number;\n source: TSource;\n integrity?: ArtifactIntegrity;\n specification?: ArtifactSpecification<TSpecification>;\n createdBy: ActorReference;\n createdAt: string;\n note?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactLink<\n TRole extends string = ArtifactRole,\n TSubjectType extends string = string,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactLink, \"subject\" | \"role\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactLinkId;\n artifactId: ArtifactId;\n /** Omit to follow the logical artifact; provide to pin immutable content. */\n artifactVersionId?: ArtifactVersionId;\n subject: ArtifactSubjectReference<TSubjectType>;\n role: TRole;\n note?: string;\n createdBy: ActorReference;\n createdAt: string;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactValueOperator = (typeof ARTIFACT_VALUE_OPERATORS)[number];\n\nexport interface ArtifactStateCondition extends Generated.WireArtifactConditionState {\n kind: \"state\";\n namespace: string;\n in: string[];\n}\n\nexport interface ArtifactActorCondition extends Generated.WireArtifactConditionActor {\n kind: \"actor\";\n in: string[];\n}\n\nexport interface ArtifactExistsCondition extends Generated.WireArtifactConditionArtifactExists {\n kind: \"artifact_exists\";\n artifact: string;\n}\n\nexport interface ArtifactValueCondition<TValue = unknown> extends Omit<Generated.WireArtifactConditionArtifactValue, \"value\"> {\n kind: \"artifact_value\";\n artifact: string;\n operator: ArtifactValueOperator;\n value: TValue;\n}\n\nexport interface ArtifactAndCondition extends Omit<Generated.WireArtifactConditionAnd, \"conditions\"> { kind: \"and\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactOrCondition extends Omit<Generated.WireArtifactConditionOr, \"conditions\"> { kind: \"or\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactNotCondition extends Omit<Generated.WireArtifactConditionNot, \"condition\"> { kind: \"not\"; condition: ArtifactCondition; }\n\nexport type ArtifactCondition =\n | ArtifactStateCondition | ArtifactActorCondition | ArtifactExistsCondition\n | ArtifactValueCondition | ArtifactAndCondition | ArtifactOrCondition\n | ArtifactNotCondition;\n\nexport interface ArtifactProviderPolicy extends Generated.WireArtifactProviderPolicy {\n actors: string[];\n mode?: \"single\" | \"any\" | \"all\";\n delegation?: \"forbidden\" | \"allowed\";\n}\n\nexport interface ArtifactRequirementPolicy extends Omit<Generated.WireArtifactRequirementPolicy, \"condition\"> {\n mode: \"required\" | \"optional\" | \"conditional\";\n condition?: ArtifactCondition;\n blocks?: string[];\n}\n\nexport interface ArtifactLifecyclePolicy extends Omit<Generated.WireArtifactLifecyclePolicy, \"condition\"> {\n createAt?: string;\n editableDuring?: string[];\n submitDuring?: string[];\n lockAt?: string;\n invalidateOn?: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessRule extends Omit<Generated.WireArtifactAccessPolicyRule, \"condition\"> {\n actors: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessPolicy extends Omit<Generated.WireArtifactAccessPolicy, \"read\" | \"write\" | \"submit\" | \"verify\"> {\n read?: ArtifactAccessRule[];\n write?: ArtifactAccessRule[];\n submit?: ArtifactAccessRule[];\n verify?: ArtifactAccessRule[];\n}\n\nexport type ArtifactPrivacyClassification =\n (typeof ARTIFACT_PRIVACY_CLASSIFICATIONS)[number];\n\nexport type ArtifactPrivacyRepresentation =\n (typeof ARTIFACT_PRIVACY_REPRESENTATIONS)[number];\n\nexport interface ArtifactRevealRule extends Omit<Generated.WireArtifactRevealRule, \"when\"> {\n actors: string[];\n when?: ArtifactCondition;\n representation: ArtifactPrivacyRepresentation;\n}\n\nexport interface ArtifactMaskingPolicy extends Generated.WireArtifactMaskingPolicy {\n strategy: string;\n config?: Record<string, unknown>;\n}\n\nexport interface ArtifactEncryptionPolicy extends Generated.WireArtifactEncryptionPolicy {\n required: boolean;\n level?: string;\n keyScope?: string;\n}\n\nexport interface ArtifactPrivacyPolicy extends Omit<Generated.WireArtifactPrivacyPolicy, \"reveal\" | \"masking\" | \"encryption\"> {\n classification: ArtifactPrivacyClassification;\n reveal?: ArtifactRevealRule[];\n masking?: ArtifactMaskingPolicy;\n encryption?: ArtifactEncryptionPolicy;\n}\n\nexport interface ArtifactValidationRule extends Generated.WireArtifactValidationRule {\n type: string;\n config?: Record<string, unknown>;\n}\n\nexport interface ArtifactValidationPolicy extends Omit<Generated.WireArtifactValidationPolicy, \"rules\"> {\n mode?: \"strict\" | \"lenient\";\n rules?: ArtifactValidationRule[];\n}\n\nexport interface ArtifactVerificationPolicy extends Omit<Generated.WireArtifactVerificationPolicy, \"condition\"> {\n required: boolean;\n methods?: string[];\n actors?: string[];\n condition?: ArtifactCondition;\n}\n\nexport type ArtifactRetentionPolicy =\n | { policy: \"forever\" }\n | { policy: \"duration\"; days: number }\n | { policy: \"until\"; date: string }\n | { policy: \"host_defined\"; key: string };\n\nexport interface ArtifactPresentationPolicy extends Generated.WireArtifactPresentationPolicy {\n label?: string;\n helpText?: string;\n order?: number;\n display?: string;\n config?: Record<string, unknown>;\n}\n\nexport interface TextArtifactValueSchema extends Generated.WireArtifactValueSchemaText { valueType: \"text\"; }\nexport interface NumberArtifactValueSchema extends Generated.WireArtifactValueSchemaNumber { valueType: \"number\"; }\nexport interface BooleanArtifactValueSchema extends Generated.WireArtifactValueSchemaBoolean { valueType: \"boolean\"; }\nexport interface CurrencyArtifactValueSchema extends Generated.WireArtifactValueSchemaCurrency { valueType: \"currency\"; }\nexport interface DateArtifactValueSchema extends Generated.WireArtifactValueSchemaDate { valueType: \"date\"; }\nexport interface DatetimeArtifactValueSchema extends Generated.WireArtifactValueSchemaDatetime { valueType: \"datetime\"; }\nexport interface TimeArtifactValueSchema extends Generated.WireArtifactValueSchemaTime { valueType: \"time\"; }\nexport interface LocationArtifactValueSchema extends Generated.WireArtifactValueSchemaLocation { valueType: \"location\"; }\nexport interface FileArtifactValueSchema extends Generated.WireArtifactValueSchemaFile { valueType: \"file\"; }\nexport interface ImageArtifactValueSchema extends Generated.WireArtifactValueSchemaImage { valueType: \"image\"; }\nexport interface VideoArtifactValueSchema extends Generated.WireArtifactValueSchemaVideo { valueType: \"video\"; }\nexport interface AudioArtifactValueSchema extends Generated.WireArtifactValueSchemaAudio { valueType: \"audio\"; }\nexport interface LinkArtifactValueSchema extends Generated.WireArtifactValueSchemaLink { valueType: \"link\"; }\nexport interface StructuredArtifactValueSchema extends Generated.WireArtifactValueSchemaStructured { valueType: \"structured\"; }\nexport interface ReferenceArtifactValueSchema extends Generated.WireArtifactValueSchemaReference { valueType: \"reference\"; }\nexport interface SignatureArtifactValueSchema extends Generated.WireArtifactValueSchemaSignature { valueType: \"signature\"; }\nexport interface CollectionArtifactValueSchema extends Omit<Generated.WireArtifactValueSchemaCollection, \"itemSchema\"> { valueType: \"collection\"; itemSchema: ArtifactValueSchema; }\n\nexport type ArtifactValueSchema =\n | TextArtifactValueSchema | NumberArtifactValueSchema | BooleanArtifactValueSchema\n | CurrencyArtifactValueSchema | DateArtifactValueSchema | DatetimeArtifactValueSchema\n | TimeArtifactValueSchema | LocationArtifactValueSchema | FileArtifactValueSchema\n | ImageArtifactValueSchema | VideoArtifactValueSchema | AudioArtifactValueSchema\n | LinkArtifactValueSchema | StructuredArtifactValueSchema | ReferenceArtifactValueSchema\n | SignatureArtifactValueSchema | CollectionArtifactValueSchema;\n\nexport type ArtifactValueConfig<TValueType extends ArtifactValueType> =\n Omit<Extract<ArtifactValueSchema, { valueType: TValueType }>, \"valueType\"> &\n { valueType?: TValueType };\n\nexport interface ArtifactSpec<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSpec, \"kind\" | \"valueType\" | \"config\" | \"provider\" | \"requirement\" | \"lifecycle\" | \"access\" | \"privacy\" | \"validation\" | \"verification\" | \"retention\" | \"presentation\" | \"metadata\"> {\n id: ArtifactSpecId;\n key: string;\n name: string;\n description?: string;\n version: number;\n kind: TKind;\n valueType: TValueType;\n config?: TConfig;\n provider?: ArtifactProviderPolicy;\n requirement?: ArtifactRequirementPolicy;\n lifecycle?: ArtifactLifecyclePolicy;\n access?: ArtifactAccessPolicy;\n privacy?: ArtifactPrivacyPolicy;\n validation?: ArtifactValidationPolicy;\n verification?: ArtifactVerificationPolicy;\n retention?: ArtifactRetentionPolicy;\n presentation?: ArtifactPresentationPolicy;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactSpecSnapshot<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> = Omit<ArtifactSpec<TKind, TValueType, TConfig>, \"id\" | \"version\"> & {\n sourceSpecId: ArtifactSpecId;\n sourceVersion: number;\n};\n\nexport interface ArtifactRequirement extends ArtifactProtocolRecord, Omit<Generated.WireArtifactRequirement, \"metadata\"> {\n id: ArtifactRequirementId;\n key?: string;\n allowedKinds?: string[];\n allowedValueTypes?: ArtifactValueType[];\n minimumCount?: number;\n maximumCount?: number;\n required: boolean;\n specId?: ArtifactSpecId;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactSubmissionContext extends Generated.WireArtifactSubmissionContext {\n latitude?: number;\n longitude?: number;\n deviceId?: string;\n ipAddress?: string;\n userAgent?: string;\n}\n\nexport interface ArtifactSubmission<TValue = unknown> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSubmission, \"submittedBy\" | \"value\" | \"context\" | \"metadata\"> {\n id: ArtifactSubmissionId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submittedBy: ActorReference;\n value?: TValue;\n submittedAt: string;\n context?: ArtifactSubmissionContext;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactVerificationStatus =\n (typeof ARTIFACT_VERIFICATION_STATUSES)[number];\n\nexport interface ArtifactVerification extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVerification, \"verifiedBy\" | \"metadata\"> {\n id: ArtifactVerificationId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submissionId?: ArtifactSubmissionId;\n status: ArtifactVerificationStatus;\n method?: string;\n verifiedBy?: ActorReference;\n reason?: string;\n createdAt: string;\n verifiedAt?: string;\n metadata?: ArtifactMetadata;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAE5B,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAC;AAEF,sDAAsD;AACtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAc,CAAC","sourcesContent":["export type * from \"./generated/wire.js\";\nexport * from \"./editor.js\";\nimport type * as Generated from \"./generated/wire.js\";\nimport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n} from \"./generated/vocabulary.js\";\nexport {\n ARTIFACT_CONDITION_KINDS,\n ARTIFACT_INTEGRITY_ALGORITHMS,\n ARTIFACT_PRIVACY_CLASSIFICATIONS,\n ARTIFACT_PRIVACY_REPRESENTATIONS,\n ARTIFACT_SOURCE_TYPES,\n ARTIFACT_VALUE_OPERATORS,\n ARTIFACT_VALUE_TYPES,\n ARTIFACT_VERIFICATION_STATUSES,\n LOCAL_ARTIFACT_SYNC_STATES,\n};\n\n/** The schema version implemented by this binding. */\nexport const ARTIFACT_PROTOCOL_VERSION = \"1.1\" as const;\n\nexport type ArtifactProtocolVersion = typeof ARTIFACT_PROTOCOL_VERSION;\n\n/** Base fields carried by every top-level protocol record. */\nexport interface ArtifactProtocolRecord extends Pick<Generated.WireArtifact, \"schemaVersion\"> {\n schemaVersion: ArtifactProtocolVersion;\n}\n\n/** Opaque, non-empty serialized identifiers. Their generation is host-defined. */\nexport type ArtifactId = string;\nexport type ArtifactVersionId = string;\nexport type ArtifactLinkId = string;\nexport type ArtifactSpecId = string;\nexport type ArtifactRequirementId = string;\nexport type ArtifactSubmissionId = string;\nexport type ArtifactVerificationId = string;\n\n/** Host extension data. Values must be JSON-serializable when encoded. */\nexport type ArtifactMetadata = Record<string, unknown>;\n\nexport type ArtifactValueType = (typeof ARTIFACT_VALUE_TYPES)[number];\n\nexport type ArtifactKind = string;\nexport type ArtifactRole = string;\n\nexport interface ActorReference<TType extends string = string> {\n type: TType;\n id?: string;\n displayName?: string;\n}\n\nexport interface ArtifactScopeReference<TType extends string = string> {\n type: TType;\n id: string;\n}\n\nexport interface ArtifactSubjectReference<TType extends string = string> {\n type: TType;\n id: string;\n scope?: Record<string, string>;\n}\n\n/** Schema-governed semantic interpretation of an artifact or immutable artifact version. */\nexport interface ArtifactSpecification<TValue = unknown> extends Omit<Generated.WireArtifactSpecification, \"value\"> {\n schema: string;\n version: number;\n value: TValue;\n}\n\nexport interface Artifact<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, \"scope\" | \"specId\" | \"kind\" | \"valueType\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactId;\n specId: ArtifactSpecId;\n scope?: ArtifactScopeReference;\n kind: TKind;\n valueType: TValueType;\n title?: string;\n description?: string;\n specification?: ArtifactSpecification<TSpecification>;\n currentVersionId?: ArtifactVersionId;\n createdBy: ActorReference;\n createdAt: string;\n updatedAt: string;\n archivedAt?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface InlineArtifactSource<TValue = unknown> extends Omit<Generated.WireInlineArtifactSource, \"value\"> {\n type: \"inline\";\n value: TValue;\n mediaType?: string;\n}\n\nexport type LocalArtifactSyncState =\n (typeof LOCAL_ARTIFACT_SYNC_STATES)[number];\n\nexport interface LocalArtifactSource extends Generated.WireLocalArtifactSource {\n type: \"local\";\n localId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n syncState: LocalArtifactSyncState;\n remoteVersionId?: ArtifactVersionId;\n}\n\nexport interface ObjectArtifactSource extends Generated.WireObjectArtifactSource {\n type: \"object\";\n objectId: string;\n filename?: string;\n mediaType?: string;\n size?: number;\n storageProvider?: string;\n}\n\nexport interface UrlArtifactSource extends Generated.WireUrlArtifactSource {\n type: \"url\";\n url: string;\n provider?: string;\n mediaType?: string;\n}\n\nexport interface HostedArtifactSource extends Generated.WireHostedArtifactSource {\n type: \"hosted\";\n recordType: string;\n recordId: string;\n}\n\nexport interface ProviderArtifactSource<\n TProvider extends string = string,\n TReference = unknown,\n> extends Omit<Generated.WireProviderArtifactSource, \"provider\" | \"reference\"> {\n type: \"provider\";\n provider: TProvider;\n reference: TReference;\n}\n\nexport type ArtifactSource =\n | InlineArtifactSource\n | LocalArtifactSource\n | ObjectArtifactSource\n | UrlArtifactSource\n | HostedArtifactSource\n | ProviderArtifactSource;\n\nexport type ArtifactIntegrityAlgorithm =\n (typeof ARTIFACT_INTEGRITY_ALGORITHMS)[number];\n\nexport interface ArtifactIntegrity extends Generated.WireArtifactIntegrity {\n algorithm: ArtifactIntegrityAlgorithm;\n hash: string;\n size?: number;\n verifiedAt?: string;\n}\n\nexport interface ArtifactVersion<\n TSource extends ArtifactSource = ArtifactSource,\n TSpecification = unknown,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, \"source\" | \"integrity\" | \"specification\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactVersionId;\n artifactId: ArtifactId;\n version: number;\n source: TSource;\n integrity?: ArtifactIntegrity;\n specification?: ArtifactSpecification<TSpecification>;\n createdBy: ActorReference;\n createdAt: string;\n note?: string;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactLink<\n TRole extends string = ArtifactRole,\n TSubjectType extends string = string,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactLink, \"subject\" | \"role\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactLinkId;\n artifactId: ArtifactId;\n /** Omit to follow the logical artifact; provide to pin immutable content. */\n artifactVersionId?: ArtifactVersionId;\n subject: ArtifactSubjectReference<TSubjectType>;\n role: TRole;\n note?: string;\n createdBy: ActorReference;\n createdAt: string;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactValueOperator = (typeof ARTIFACT_VALUE_OPERATORS)[number];\n\nexport interface ArtifactStateCondition extends Generated.WireArtifactConditionState {\n kind: \"state\";\n namespace: string;\n in: string[];\n}\n\nexport interface ArtifactActorCondition extends Generated.WireArtifactConditionActor {\n kind: \"actor\";\n in: string[];\n}\n\nexport interface ArtifactExistsCondition extends Generated.WireArtifactConditionArtifactExists {\n kind: \"artifact_exists\";\n artifact: string;\n}\n\nexport interface ArtifactValueCondition<TValue = unknown> extends Omit<Generated.WireArtifactConditionArtifactValue, \"value\"> {\n kind: \"artifact_value\";\n artifact: string;\n operator: ArtifactValueOperator;\n value: TValue;\n}\n\nexport interface ArtifactAndCondition extends Omit<Generated.WireArtifactConditionAnd, \"conditions\"> { kind: \"and\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactOrCondition extends Omit<Generated.WireArtifactConditionOr, \"conditions\"> { kind: \"or\"; conditions: ArtifactCondition[]; }\nexport interface ArtifactNotCondition extends Omit<Generated.WireArtifactConditionNot, \"condition\"> { kind: \"not\"; condition: ArtifactCondition; }\n\nexport type ArtifactCondition =\n | ArtifactStateCondition | ArtifactActorCondition | ArtifactExistsCondition\n | ArtifactValueCondition | ArtifactAndCondition | ArtifactOrCondition\n | ArtifactNotCondition;\n\nexport interface ArtifactProviderPolicy extends Generated.WireArtifactProviderPolicy {\n actors: string[];\n mode?: \"single\" | \"any\" | \"all\";\n delegation?: \"forbidden\" | \"allowed\";\n}\n\nexport interface ArtifactRequirementPolicy extends Omit<Generated.WireArtifactRequirementPolicy, \"condition\"> {\n mode: \"required\" | \"optional\" | \"conditional\";\n condition?: ArtifactCondition;\n blocks?: string[];\n}\n\nexport interface ArtifactLifecyclePolicy extends Omit<Generated.WireArtifactLifecyclePolicy, \"condition\"> {\n createAt?: string;\n editableDuring?: string[];\n submitDuring?: string[];\n lockAt?: string;\n invalidateOn?: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessRule extends Omit<Generated.WireArtifactAccessPolicyRule, \"condition\"> {\n actors: string[];\n condition?: ArtifactCondition;\n}\n\nexport interface ArtifactAccessPolicy extends Omit<Generated.WireArtifactAccessPolicy, \"read\" | \"write\" | \"submit\" | \"verify\"> {\n read?: ArtifactAccessRule[];\n write?: ArtifactAccessRule[];\n submit?: ArtifactAccessRule[];\n verify?: ArtifactAccessRule[];\n}\n\nexport type ArtifactPrivacyClassification =\n (typeof ARTIFACT_PRIVACY_CLASSIFICATIONS)[number];\n\nexport type ArtifactPrivacyRepresentation =\n (typeof ARTIFACT_PRIVACY_REPRESENTATIONS)[number];\n\nexport interface ArtifactRevealRule extends Omit<Generated.WireArtifactRevealRule, \"when\"> {\n actors: string[];\n when?: ArtifactCondition;\n representation: ArtifactPrivacyRepresentation;\n}\n\nexport interface ArtifactMaskingPolicy extends Generated.WireArtifactMaskingPolicy {\n strategy: string;\n config?: Record<string, unknown>;\n}\n\nexport interface ArtifactEncryptionPolicy extends Generated.WireArtifactEncryptionPolicy {\n required: boolean;\n level?: string;\n keyScope?: string;\n}\n\nexport interface ArtifactPrivacyPolicy extends Omit<Generated.WireArtifactPrivacyPolicy, \"reveal\" | \"masking\" | \"encryption\"> {\n classification: ArtifactPrivacyClassification;\n reveal?: ArtifactRevealRule[];\n masking?: ArtifactMaskingPolicy;\n encryption?: ArtifactEncryptionPolicy;\n}\n\nexport interface ArtifactValidationRule extends Generated.WireArtifactValidationRule {\n type: string;\n config?: Record<string, unknown>;\n}\n\n/** Laravel-style serializable rules applied to an artifact specification value. */\nexport type ArtifactValidationSchema = Record<string, string | string[]>;\n\nexport interface ArtifactValidationPolicy extends Omit<Generated.WireArtifactValidationPolicy, \"schema\" | \"rules\"> {\n mode?: \"strict\" | \"lenient\";\n schema?: ArtifactValidationSchema;\n rules?: ArtifactValidationRule[];\n}\n\nexport interface ArtifactVerificationPolicy extends Omit<Generated.WireArtifactVerificationPolicy, \"condition\"> {\n required: boolean;\n methods?: string[];\n actors?: string[];\n condition?: ArtifactCondition;\n}\n\nexport type ArtifactRetentionPolicy =\n | { policy: \"forever\" }\n | { policy: \"duration\"; days: number }\n | { policy: \"until\"; date: string }\n | { policy: \"host_defined\"; key: string };\n\nexport interface ArtifactPresentationPolicy extends Generated.WireArtifactPresentationPolicy {\n label?: string;\n helpText?: string;\n order?: number;\n display?: string;\n config?: Record<string, unknown>;\n}\n\nexport interface TextArtifactValueSchema extends Generated.WireArtifactValueSchemaText { valueType: \"text\"; }\nexport interface NumberArtifactValueSchema extends Generated.WireArtifactValueSchemaNumber { valueType: \"number\"; }\nexport interface BooleanArtifactValueSchema extends Generated.WireArtifactValueSchemaBoolean { valueType: \"boolean\"; }\nexport interface CurrencyArtifactValueSchema extends Generated.WireArtifactValueSchemaCurrency { valueType: \"currency\"; }\nexport interface DateArtifactValueSchema extends Generated.WireArtifactValueSchemaDate { valueType: \"date\"; }\nexport interface DatetimeArtifactValueSchema extends Generated.WireArtifactValueSchemaDatetime { valueType: \"datetime\"; }\nexport interface TimeArtifactValueSchema extends Generated.WireArtifactValueSchemaTime { valueType: \"time\"; }\nexport interface LocationArtifactValueSchema extends Generated.WireArtifactValueSchemaLocation { valueType: \"location\"; }\nexport interface FileArtifactValueSchema extends Generated.WireArtifactValueSchemaFile { valueType: \"file\"; }\nexport interface ImageArtifactValueSchema extends Generated.WireArtifactValueSchemaImage { valueType: \"image\"; }\nexport interface VideoArtifactValueSchema extends Generated.WireArtifactValueSchemaVideo { valueType: \"video\"; }\nexport interface AudioArtifactValueSchema extends Generated.WireArtifactValueSchemaAudio { valueType: \"audio\"; }\nexport interface LinkArtifactValueSchema extends Generated.WireArtifactValueSchemaLink { valueType: \"link\"; }\nexport interface StructuredArtifactValueSchema extends Generated.WireArtifactValueSchemaStructured { valueType: \"structured\"; }\nexport interface ReferenceArtifactValueSchema extends Generated.WireArtifactValueSchemaReference { valueType: \"reference\"; }\nexport interface SignatureArtifactValueSchema extends Generated.WireArtifactValueSchemaSignature { valueType: \"signature\"; }\nexport interface CollectionArtifactValueSchema extends Omit<Generated.WireArtifactValueSchemaCollection, \"itemSchema\"> { valueType: \"collection\"; itemSchema: ArtifactValueSchema; }\n\nexport type ArtifactValueSchema =\n | TextArtifactValueSchema | NumberArtifactValueSchema | BooleanArtifactValueSchema\n | CurrencyArtifactValueSchema | DateArtifactValueSchema | DatetimeArtifactValueSchema\n | TimeArtifactValueSchema | LocationArtifactValueSchema | FileArtifactValueSchema\n | ImageArtifactValueSchema | VideoArtifactValueSchema | AudioArtifactValueSchema\n | LinkArtifactValueSchema | StructuredArtifactValueSchema | ReferenceArtifactValueSchema\n | SignatureArtifactValueSchema | CollectionArtifactValueSchema;\n\nexport type ArtifactValueConfig<TValueType extends ArtifactValueType> =\n Omit<Extract<ArtifactValueSchema, { valueType: TValueType }>, \"valueType\"> &\n { valueType?: TValueType };\n\nexport interface ArtifactSpec<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSpec, \"kind\" | \"valueType\" | \"config\" | \"provider\" | \"requirement\" | \"lifecycle\" | \"access\" | \"privacy\" | \"validation\" | \"verification\" | \"retention\" | \"presentation\" | \"metadata\"> {\n id: ArtifactSpecId;\n key: string;\n name: string;\n description?: string;\n version: number;\n kind: TKind;\n valueType: TValueType;\n config?: TConfig;\n provider?: ArtifactProviderPolicy;\n requirement?: ArtifactRequirementPolicy;\n lifecycle?: ArtifactLifecyclePolicy;\n access?: ArtifactAccessPolicy;\n privacy?: ArtifactPrivacyPolicy;\n validation?: ArtifactValidationPolicy;\n verification?: ArtifactVerificationPolicy;\n retention?: ArtifactRetentionPolicy;\n presentation?: ArtifactPresentationPolicy;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactSpecSnapshot<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n TConfig extends object = ArtifactValueConfig<TValueType>,\n> = Omit<ArtifactSpec<TKind, TValueType, TConfig>, \"id\" | \"version\"> & {\n sourceSpecId: ArtifactSpecId;\n sourceVersion: number;\n};\n\nexport interface ArtifactRequirement extends ArtifactProtocolRecord, Omit<Generated.WireArtifactRequirement, \"metadata\"> {\n id: ArtifactRequirementId;\n key?: string;\n allowedKinds?: string[];\n allowedValueTypes?: ArtifactValueType[];\n minimumCount?: number;\n maximumCount?: number;\n required: boolean;\n specId?: ArtifactSpecId;\n metadata?: ArtifactMetadata;\n}\n\nexport interface ArtifactSubmissionContext extends Generated.WireArtifactSubmissionContext {\n latitude?: number;\n longitude?: number;\n deviceId?: string;\n ipAddress?: string;\n userAgent?: string;\n}\n\nexport interface ArtifactSubmission<TValue = unknown> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactSubmission, \"submittedBy\" | \"value\" | \"context\" | \"metadata\"> {\n id: ArtifactSubmissionId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submittedBy: ActorReference;\n value?: TValue;\n submittedAt: string;\n context?: ArtifactSubmissionContext;\n metadata?: ArtifactMetadata;\n}\n\nexport type ArtifactVerificationStatus =\n (typeof ARTIFACT_VERIFICATION_STATUSES)[number];\n\nexport interface ArtifactVerification extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVerification, \"verifiedBy\" | \"metadata\"> {\n id: ArtifactVerificationId;\n artifactId: ArtifactId;\n artifactVersionId?: ArtifactVersionId;\n submissionId?: ArtifactSubmissionId;\n status: ArtifactVerificationStatus;\n method?: string;\n verifiedBy?: ActorReference;\n reason?: string;\n createdAt: string;\n verifiedAt?: string;\n metadata?: ArtifactMetadata;\n}\n"]}
|