@elqora/artifacts 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,15 +22,23 @@ The package is ESM-only and supports Node.js 20 or newer.
22
22
  import {
23
23
  ARTIFACT_PROTOCOL_VERSION,
24
24
  type Artifact,
25
+ type ArtifactSpecification,
25
26
  type ArtifactSpec,
26
27
  type ArtifactVersion,
27
28
  } from "@elqora/artifacts";
28
29
 
29
- const artifact: Artifact<"delivery_evidence", "image"> = {
30
+ type ImageSubject = { subject: string };
31
+
32
+ const artifact: Artifact<"delivery_evidence", "image", ImageSubject> = {
30
33
  schemaVersion: ARTIFACT_PROTOCOL_VERSION,
31
34
  id: "artifact_1",
32
35
  kind: "delivery_evidence",
33
36
  valueType: "image",
37
+ specification: {
38
+ schema: "image-subject",
39
+ version: 1,
40
+ value: { subject: "Delivery entrance" },
41
+ } satisfies ArtifactSpecification<ImageSubject>,
34
42
  createdBy: { type: "user", id: "user_1" },
35
43
  createdAt: "2026-08-15T09:00:00Z",
36
44
  updatedAt: "2026-08-15T09:00:00Z",
@@ -63,6 +63,13 @@ export type WireProviderArtifactSource = {
63
63
  "reference": unknown;
64
64
  [key: string]: unknown;
65
65
  };
66
+ /** Schema-identified semantic interpretation of an artifact or one immutable artifact version. */
67
+ export type WireArtifactSpecification = {
68
+ "schema": string;
69
+ "version": number;
70
+ "value": unknown;
71
+ [key: string]: unknown;
72
+ };
66
73
  export type WireArtifactVersion = {
67
74
  "schemaVersion": WireArtifactProtocolCommonContractsSchemaVersion;
68
75
  "id": WireArtifactProtocolCommonContractsArtifactVersionId;
@@ -70,6 +77,7 @@ export type WireArtifactVersion = {
70
77
  "version": number;
71
78
  "source": WireArtifactSource;
72
79
  "integrity"?: WireArtifactIntegrity;
80
+ "specification"?: WireArtifactSpecification;
73
81
  "createdBy": WireArtifactProtocolCommonContractsActorReference;
74
82
  "createdAt": WireArtifactProtocolCommonContractsTimestamp;
75
83
  "note"?: string;
@@ -84,6 +92,7 @@ export type WireArtifact = {
84
92
  "valueType": WireArtifactProtocolCommonContractsArtifactValueType;
85
93
  "title"?: string;
86
94
  "description"?: string;
95
+ "specification"?: WireArtifactSpecification;
87
96
  "currentVersionId"?: WireArtifactProtocolCommonContractsArtifactVersionId;
88
97
  "createdBy": WireArtifactProtocolCommonContractsActorReference;
89
98
  "createdAt": WireArtifactProtocolCommonContractsTimestamp;
@@ -243,7 +252,7 @@ export type WireArtifactVerificationPolicy = {
243
252
  [key: string]: unknown;
244
253
  };
245
254
  /** The major.minor version of the serialized Artifact Protocol record. */
246
- export type WireArtifactProtocolCommonContractsSchemaVersion = "1.0";
255
+ export type WireArtifactProtocolCommonContractsSchemaVersion = "1.1";
247
256
  /** A non-empty, case-sensitive identifier whose generation and internal form are host-defined. */
248
257
  export type WireArtifactProtocolCommonContractsOpaqueIdentifier = string;
249
258
  export type WireArtifactProtocolCommonContractsArtifactId = WireArtifactProtocolCommonContractsOpaqueIdentifier;
@@ -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,C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AAiC,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\nexport type WireArtifactVersion = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVersionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"version\": number;\n \"source\": WireArtifactSource;\n \"integrity\"?: WireArtifactIntegrity;\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 \"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.0\";\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,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;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 \"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 +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\nexport type WireArtifactVersion = {\n \"schemaVersion\": WireArtifactProtocolCommonContractsSchemaVersion;\n \"id\": WireArtifactProtocolCommonContractsArtifactVersionId;\n \"artifactId\": WireArtifactProtocolCommonContractsArtifactId;\n \"version\": number;\n \"source\": WireArtifactSource;\n \"integrity\"?: WireArtifactIntegrity;\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 \"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.0\";\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 \"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"]}
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import type * as Generated from "./generated/wire.js";
3
3
  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
4
  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, };
5
5
  /** The schema version implemented by this binding. */
6
- export declare const ARTIFACT_PROTOCOL_VERSION: "1.0";
6
+ export declare const ARTIFACT_PROTOCOL_VERSION: "1.1";
7
7
  export type ArtifactProtocolVersion = typeof ARTIFACT_PROTOCOL_VERSION;
8
8
  /** Base fields carried by every top-level protocol record. */
9
9
  export interface ArtifactProtocolRecord extends Pick<Generated.WireArtifact, "schemaVersion"> {
@@ -36,13 +36,20 @@ export interface ArtifactSubjectReference<TType extends string = string> {
36
36
  id: string;
37
37
  scope?: Record<string, string>;
38
38
  }
39
- export interface Artifact<TKind extends string = ArtifactKind, TValueType extends ArtifactValueType = ArtifactValueType> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, "scope" | "kind" | "valueType" | "createdBy" | "metadata"> {
39
+ /** Schema-governed semantic interpretation of an artifact or immutable artifact version. */
40
+ export interface ArtifactSpecification<TValue = unknown> extends Omit<Generated.WireArtifactSpecification, "value"> {
41
+ schema: string;
42
+ version: number;
43
+ value: TValue;
44
+ }
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"> {
40
46
  id: ArtifactId;
41
47
  scope?: ArtifactScopeReference;
42
48
  kind: TKind;
43
49
  valueType: TValueType;
44
50
  title?: string;
45
51
  description?: string;
52
+ specification?: ArtifactSpecification<TSpecification>;
46
53
  currentVersionId?: ArtifactVersionId;
47
54
  createdBy: ActorReference;
48
55
  createdAt: string;
@@ -97,12 +104,13 @@ export interface ArtifactIntegrity extends Generated.WireArtifactIntegrity {
97
104
  size?: number;
98
105
  verifiedAt?: string;
99
106
  }
100
- export interface ArtifactVersion<TSource extends ArtifactSource = ArtifactSource> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, "source" | "integrity" | "createdBy" | "metadata"> {
107
+ export interface ArtifactVersion<TSource extends ArtifactSource = ArtifactSource, TSpecification = unknown> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, "source" | "integrity" | "specification" | "createdBy" | "metadata"> {
101
108
  id: ArtifactVersionId;
102
109
  artifactId: ArtifactId;
103
110
  version: number;
104
111
  source: TSource;
105
112
  integrity?: ArtifactIntegrity;
113
+ specification?: ArtifactSpecification<TSpecification>;
106
114
  createdBy: ActorReference;
107
115
  createdAt: string;
108
116
  note?: string;
@@ -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,CAAC;IAC3F,aAAa,EAAE,uBAAuB,CAAC;CACxC;AAED,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAA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,EAAE,EAAE,oBAAoB,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,WAAW,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,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\";\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.0\" 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\nexport interface Artifact<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, \"scope\" | \"kind\" | \"valueType\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactId;\n scope?: ArtifactScopeReference;\n kind: TKind;\n valueType: TValueType;\n title?: string;\n description?: string;\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> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, \"source\" | \"integrity\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactVersionId;\n artifactId: ArtifactId;\n version: number;\n source: TSource;\n integrity?: ArtifactIntegrity;\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,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,CAAC;IAC3F,aAAa,EAAE,uBAAuB,CAAC;CACxC;AAED,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAC3C,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAC1C,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAE5C,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,GAAG,MAA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,EAAE,IAAI,CAAC,SAAS,CAAC,sBAAsB,EAAE,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;IAC5K,EAAE,EAAE,oBAAoB,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,WAAW,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,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\";\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"]}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  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
2
  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
3
  /** The schema version implemented by this binding. */
4
- export const ARTIFACT_PROTOCOL_VERSION = "1.0";
4
+ export const ARTIFACT_PROTOCOL_VERSION = "1.1";
5
5
  //# sourceMappingURL=index.js.map
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.0\" 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\nexport interface Artifact<\n TKind extends string = ArtifactKind,\n TValueType extends ArtifactValueType = ArtifactValueType,\n> extends ArtifactProtocolRecord, Omit<Generated.WireArtifact, \"scope\" | \"kind\" | \"valueType\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactId;\n scope?: ArtifactScopeReference;\n kind: TKind;\n valueType: TValueType;\n title?: string;\n description?: string;\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> extends ArtifactProtocolRecord, Omit<Generated.WireArtifactVersion, \"source\" | \"integrity\" | \"createdBy\" | \"metadata\"> {\n id: ArtifactVersionId;\n artifactId: ArtifactId;\n version: number;\n source: TSource;\n integrity?: ArtifactIntegrity;\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":"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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elqora/artifacts",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript SDK for the language-neutral Elqora Artifact Protocol.",
5
5
  "type": "module",
6
6
  "sideEffects": false,