@clipwright/core 0.27.0 → 0.29.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/CHANGELOG.md +68 -0
- package/dist/api-failure.d.ts +70 -5
- package/dist/api-failure.js +108 -4
- package/dist/api-failure.js.map +1 -1
- package/dist/contract-dispositions.js +3 -3
- package/dist/contract-dispositions.js.map +1 -1
- package/dist/contracts/v1/workflow-brief.d.ts +402 -0
- package/dist/contracts/v1/workflow-brief.js +40 -0
- package/dist/contracts/v1/workflow-brief.js.map +1 -0
- package/dist/contracts/v1/workflow-catalog.d.ts +1062 -0
- package/dist/contracts/v1/workflow-catalog.js +45 -0
- package/dist/contracts/v1/workflow-catalog.js.map +1 -0
- package/dist/contracts/v1/workflow-client.d.ts +319 -0
- package/dist/contracts/v1/workflow-client.js +37 -0
- package/dist/contracts/v1/workflow-client.js.map +1 -0
- package/dist/contracts/v1/workflow-dto.d.ts +18 -0
- package/dist/contracts/v1/workflow-dto.js +25 -0
- package/dist/contracts/v1/workflow-dto.js.map +1 -0
- package/dist/contracts/v1/workflow-evidence.d.ts +115 -0
- package/dist/contracts/v1/workflow-evidence.js +33 -0
- package/dist/contracts/v1/workflow-evidence.js.map +1 -0
- package/dist/contracts/v1/workflow-execution.d.ts +822 -0
- package/dist/contracts/v1/workflow-execution.js +64 -0
- package/dist/contracts/v1/workflow-execution.js.map +1 -0
- package/dist/contracts/v1/workflow-plan.d.ts +1078 -0
- package/dist/contracts/v1/workflow-plan.js +31 -0
- package/dist/contracts/v1/workflow-plan.js.map +1 -0
- package/dist/contracts/v1/workflow-primitives.d.ts +63 -0
- package/dist/contracts/v1/workflow-primitives.js +19 -0
- package/dist/contracts/v1/workflow-primitives.js.map +1 -0
- package/dist/contracts/v1/workflow-run-read.d.ts +929 -0
- package/dist/contracts/v1/workflow-run-read.js +23 -0
- package/dist/contracts/v1/workflow-run-read.js.map +1 -0
- package/dist/edit-billing.d.ts +65 -0
- package/dist/edit-billing.js +30 -0
- package/dist/edit-billing.js.map +1 -0
- package/dist/edit-candidate.d.ts +158 -0
- package/dist/edit-candidate.js +64 -0
- package/dist/edit-candidate.js.map +1 -0
- package/dist/edit-revision.d.ts +162 -0
- package/dist/edit-revision.js +36 -0
- package/dist/edit-revision.js.map +1 -0
- package/dist/edit.d.ts +3 -0
- package/dist/edit.js +4 -1
- package/dist/edit.js.map +1 -1
- package/dist/endpoints.d.ts +8 -0
- package/dist/endpoints.js +25 -4
- package/dist/endpoints.js.map +1 -1
- package/dist/errors.d.ts +109 -1
- package/dist/errors.js +92 -0
- package/dist/errors.js.map +1 -1
- package/dist/faceless-customer-anchors.d.ts +7 -0
- package/dist/faceless-customer-anchors.js +31 -0
- package/dist/faceless-customer-anchors.js.map +1 -0
- package/dist/faceless-image-placement.d.ts +23 -0
- package/dist/faceless-image-placement.js +30 -0
- package/dist/faceless-image-placement.js.map +1 -0
- package/dist/faceless-public-plan.d.ts +2 -0
- package/dist/faceless-public-plan.js +6 -2
- package/dist/faceless-public-plan.js.map +1 -1
- package/dist/faceless-public.d.ts +257 -0
- package/dist/faceless-public.js +20 -0
- package/dist/faceless-public.js.map +1 -1
- package/dist/idempotency.d.ts +4 -0
- package/dist/idempotency.js +17 -0
- package/dist/idempotency.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/run-static-warnings.js +3 -0
- package/dist/run-static-warnings.js.map +1 -1
- package/dist/runs.d.ts +110 -1
- package/dist/runs.js +28 -2
- package/dist/runs.js.map +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/skills.js +1 -1
- package/dist/skills.js.map +1 -1
- package/dist/workflows/catalog.d.ts +4 -0
- package/dist/workflows/catalog.js +57 -0
- package/dist/workflows/catalog.js.map +1 -0
- package/dist/workflows/index.d.ts +11 -0
- package/dist/workflows/index.js +12 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/methods/faceless-explainer.d.ts +175 -0
- package/dist/workflows/methods/faceless-explainer.js +20 -0
- package/dist/workflows/methods/faceless-explainer.js.map +1 -0
- package/dist/workflows/methods/kinetic-launch.d.ts +175 -0
- package/dist/workflows/methods/kinetic-launch.js +19 -0
- package/dist/workflows/methods/kinetic-launch.js.map +1 -0
- package/dist/workflows/methods/product-image-story.d.ts +175 -0
- package/dist/workflows/methods/product-image-story.js +20 -0
- package/dist/workflows/methods/product-image-story.js.map +1 -0
- package/dist/workflows/methods/shared.d.ts +190 -0
- package/dist/workflows/methods/shared.js +13 -0
- package/dist/workflows/methods/shared.js.map +1 -0
- package/dist/workflows/methods/ugc-faq-answer.d.ts +175 -0
- package/dist/workflows/methods/ugc-faq-answer.js +19 -0
- package/dist/workflows/methods/ugc-faq-answer.js.map +1 -0
- package/dist/workflows/methods/ugc-product-intro.d.ts +175 -0
- package/dist/workflows/methods/ugc-product-intro.js +19 -0
- package/dist/workflows/methods/ugc-product-intro.js.map +1 -0
- package/dist/workflows/methods/website-proof-demo.d.ts +175 -0
- package/dist/workflows/methods/website-proof-demo.js +19 -0
- package/dist/workflows/methods/website-proof-demo.js.map +1 -0
- package/dist/workflows/validate.d.ts +10 -0
- package/dist/workflows/validate.js +229 -0
- package/dist/workflows/validate.js.map +1 -0
- package/dist/workflows.d.ts +1 -0
- package/dist/workflows.js +2 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +7 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { facelessSceneAnchor } from '../../faceless-public.js';
|
|
3
|
+
import { workflowBrief, workflowBriefRead } from './workflow-brief.js';
|
|
4
|
+
import { workflowAnchorRead } from './workflow-evidence.js';
|
|
5
|
+
import { workflowDigest, workflowFormat, workflowFormatRead, workflowIssue, workflowIssueRead, workflowLocalId, workflowMethodId, workflowRevision, workflowText } from './workflow-primitives.js';
|
|
6
|
+
export const workflowBeat = z.strictObject({ id: workflowLocalId, role: workflowText(80), anchor: facelessSceneAnchor, required: z.boolean(), visual: workflowText(2000).optional() });
|
|
7
|
+
export const workflowBeatRead = z.looseObject({ id: z.string(), role: z.string(), anchor: workflowAnchorRead, required: z.boolean(), visual: z.string().optional() });
|
|
8
|
+
const binding = z.discriminatedUnion('kind', [
|
|
9
|
+
z.strictObject({ kind: z.literal('native'), skill: z.enum(['make_ugc', 'make_faceless']), profile: workflowText(80), visual_beats: z.literal('advisory') }),
|
|
10
|
+
z.strictObject({ kind: z.literal('blocked'), skill: z.literal('make_composition'), profile: workflowText(80), reasons: z.array(workflowIssue).min(1).max(20) }),
|
|
11
|
+
]);
|
|
12
|
+
const descriptorShape = {
|
|
13
|
+
id: workflowMethodId, version: workflowRevision, content_digest: workflowDigest, authoring_status: z.literal('ready'),
|
|
14
|
+
title: workflowText(200), purpose: workflowText(2000), required_inputs: z.array(z.enum(['audience', 'message', 'script', 'question', 'product', 'topic', 'assets'])).min(1).max(10),
|
|
15
|
+
required_features: z.array(workflowText(80)).min(1).max(30),
|
|
16
|
+
script_rules: z.strictObject({ structure: z.array(workflowText(80)).min(1).max(20), instructions: z.array(workflowText(2000)).min(1).max(20) }),
|
|
17
|
+
binding, output: z.strictObject({ formats: z.array(workflowFormat).min(1).max(20), timing: workflowText(2000) }),
|
|
18
|
+
limitations: z.array(workflowText(2000)).min(1).max(30), qa_policy: z.array(workflowText(2000)).min(1).max(30),
|
|
19
|
+
example: z.strictObject({ brief: workflowBrief, beats: z.array(workflowBeat).min(1).max(100) }),
|
|
20
|
+
};
|
|
21
|
+
export const methodDescriptor = z.strictObject(descriptorShape);
|
|
22
|
+
export const methodDescriptorRead = z.looseObject({ ...descriptorShape,
|
|
23
|
+
id: z.string(), authoring_status: z.string(), required_inputs: z.array(z.string()), required_features: z.array(z.string()),
|
|
24
|
+
script_rules: z.looseObject({ structure: z.array(z.string()), instructions: z.array(z.string()) }),
|
|
25
|
+
binding: z.looseObject({ kind: z.string(), skill: z.string(), profile: z.string(), visual_beats: z.string().optional(), reasons: z.array(workflowIssueRead).optional() }),
|
|
26
|
+
output: z.looseObject({ formats: z.array(workflowFormatRead), timing: z.string() }), example: z.looseObject({ brief: workflowBriefRead, beats: z.array(workflowBeatRead) }),
|
|
27
|
+
});
|
|
28
|
+
export const executorCapability = z.strictObject({
|
|
29
|
+
skill: workflowText(80), configured: z.boolean(), qualified: z.boolean(), enabled: z.boolean(), profiles: z.array(workflowText(80)).max(30),
|
|
30
|
+
features: z.array(workflowText(80)).max(100), formats: z.array(workflowFormat).max(30),
|
|
31
|
+
field_dispositions: z.record(z.string().max(80), z.enum(['implemented', 'warned', 'rejected', 'stored'])),
|
|
32
|
+
});
|
|
33
|
+
export const capabilityProfile = z.strictObject({ v: z.literal(1), content_digest: workflowDigest.describe('SHA256 computed by the server capability resolver from the effective snapshot; never accept a client-asserted digest.'), executors: z.array(executorCapability).max(20) })
|
|
34
|
+
.refine(snapshot => new Set(snapshot.executors.map(executor => executor.skill)).size === snapshot.executors.length, 'Executor skills must be unique');
|
|
35
|
+
export const workflowAvailability = z.strictObject({ status: z.enum(['available', 'execution_blocked']), reasons: z.array(workflowIssue).max(100) });
|
|
36
|
+
export const workflowMethodResponse = z.strictObject({ descriptor: methodDescriptor, availability: workflowAvailability, capabilities: capabilityProfile });
|
|
37
|
+
export const workflowMethodSummary = z.strictObject({ descriptor: methodDescriptor.pick({ id: true, version: true, content_digest: true, title: true, purpose: true, binding: true }), availability: workflowAvailability });
|
|
38
|
+
export const workflowCatalogResponse = z.strictObject({ v: z.literal(1), capabilities: capabilityProfile, methods: z.array(workflowMethodSummary).max(100) });
|
|
39
|
+
export const workflowMethodResponseRead = z.looseObject({ descriptor: methodDescriptorRead,
|
|
40
|
+
availability: z.looseObject({ status: z.string(), reasons: z.array(workflowIssueRead) }),
|
|
41
|
+
capabilities: z.looseObject({ v: z.number(), content_digest: workflowDigest, executors: z.array(z.looseObject({ skill: z.string(), configured: z.boolean(), qualified: z.boolean(), enabled: z.boolean(), profiles: z.array(z.string()), features: z.array(z.string()), formats: z.array(workflowFormatRead), field_dispositions: z.record(z.string(), z.string()) })) }),
|
|
42
|
+
});
|
|
43
|
+
export const workflowCatalogResponseRead = z.looseObject({ v: z.number(), capabilities: workflowMethodResponseRead.shape.capabilities,
|
|
44
|
+
methods: z.array(z.looseObject({ descriptor: methodDescriptorRead.pick({ id: true, version: true, content_digest: true, title: true, purpose: true, binding: true }), availability: workflowMethodResponseRead.shape.availability })) });
|
|
45
|
+
//# sourceMappingURL=workflow-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-catalog.js","sourceRoot":"","sources":["../../../src/contracts/v1/workflow-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEnM,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAEvL,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,E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
|
+
list_workflows: z.ZodObject<{}, z.core.$strict>;
|
|
4
|
+
get_workflow: z.ZodObject<{
|
|
5
|
+
method_id: z.ZodString;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
prepare_workflow_plan: z.ZodObject<{
|
|
8
|
+
document: z.ZodObject<{
|
|
9
|
+
v: z.ZodLiteral<1>;
|
|
10
|
+
method: z.ZodObject<{
|
|
11
|
+
method_id: z.ZodEnum<{
|
|
12
|
+
"faceless-explainer": "faceless-explainer";
|
|
13
|
+
"kinetic-launch": "kinetic-launch";
|
|
14
|
+
"product-image-story": "product-image-story";
|
|
15
|
+
"ugc-faq-answer": "ugc-faq-answer";
|
|
16
|
+
"ugc-product-intro": "ugc-product-intro";
|
|
17
|
+
"website-proof-demo": "website-proof-demo";
|
|
18
|
+
}>;
|
|
19
|
+
version: z.ZodNumber;
|
|
20
|
+
content_digest: z.ZodString;
|
|
21
|
+
capability_digest: z.ZodString;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
beats: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
role: z.ZodString;
|
|
26
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
27
|
+
startWord: z.ZodNumber;
|
|
28
|
+
endWord: z.ZodNumber;
|
|
29
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30
|
+
quote: z.ZodString;
|
|
31
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strict>]>;
|
|
33
|
+
required: z.ZodBoolean;
|
|
34
|
+
visual: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strict>>;
|
|
36
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
text: z.ZodString;
|
|
39
|
+
required: z.ZodBoolean;
|
|
40
|
+
status: z.ZodEnum<{
|
|
41
|
+
checked: "checked";
|
|
42
|
+
supplied: "supplied";
|
|
43
|
+
unresolved: "unresolved";
|
|
44
|
+
}>;
|
|
45
|
+
source: z.ZodObject<{
|
|
46
|
+
kind: z.ZodEnum<{
|
|
47
|
+
capture: "capture";
|
|
48
|
+
owner: "owner";
|
|
49
|
+
url: "url";
|
|
50
|
+
}>;
|
|
51
|
+
reference: z.ZodString;
|
|
52
|
+
url: z.ZodOptional<z.ZodString>;
|
|
53
|
+
observed_at: z.ZodOptional<z.ZodString>;
|
|
54
|
+
product_state: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
58
|
+
instance_id: z.ZodString;
|
|
59
|
+
asset_id: z.ZodString;
|
|
60
|
+
content_digest: z.ZodString;
|
|
61
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
62
|
+
startWord: z.ZodNumber;
|
|
63
|
+
endWord: z.ZodNumber;
|
|
64
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
65
|
+
quote: z.ZodString;
|
|
66
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strict>]>;
|
|
68
|
+
provenance: z.ZodEnum<{
|
|
69
|
+
generated_illustration: "generated_illustration";
|
|
70
|
+
owner_supplied: "owner_supplied";
|
|
71
|
+
verified_capture: "verified_capture";
|
|
72
|
+
}>;
|
|
73
|
+
rights: z.ZodEnum<{
|
|
74
|
+
licensed: "licensed";
|
|
75
|
+
owner_authorized: "owner_authorized";
|
|
76
|
+
unresolved: "unresolved";
|
|
77
|
+
}>;
|
|
78
|
+
purpose: z.ZodEnum<{
|
|
79
|
+
illustration: "illustration";
|
|
80
|
+
product_proof: "product_proof";
|
|
81
|
+
ui_proof: "ui_proof";
|
|
82
|
+
}>;
|
|
83
|
+
protected_area: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
x: z.ZodNumber;
|
|
85
|
+
y: z.ZodNumber;
|
|
86
|
+
width: z.ZodNumber;
|
|
87
|
+
height: z.ZodNumber;
|
|
88
|
+
}, z.core.$strict>>;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
brief: z.ZodObject<{
|
|
91
|
+
audience: z.ZodString;
|
|
92
|
+
message: z.ZodString;
|
|
93
|
+
script: z.ZodOptional<z.ZodString>;
|
|
94
|
+
cta: z.ZodOptional<z.ZodString>;
|
|
95
|
+
question: z.ZodOptional<z.ZodString>;
|
|
96
|
+
product: z.ZodOptional<z.ZodString>;
|
|
97
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
98
|
+
brand_intent: z.ZodOptional<z.ZodString>;
|
|
99
|
+
required_terms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
100
|
+
requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
101
|
+
feature: z.ZodString;
|
|
102
|
+
required: z.ZodBoolean;
|
|
103
|
+
}, z.core.$strict>>>;
|
|
104
|
+
requested_format: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
aspect_ratio: z.ZodEnum<{
|
|
106
|
+
"16:9": "16:9";
|
|
107
|
+
"1:1": "1:1";
|
|
108
|
+
"9:16": "9:16";
|
|
109
|
+
}>;
|
|
110
|
+
resolution: z.ZodEnum<{
|
|
111
|
+
"1080p": "1080p";
|
|
112
|
+
"4k": "4k";
|
|
113
|
+
"720p": "720p";
|
|
114
|
+
}>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
117
|
+
kind: z.ZodEnum<{
|
|
118
|
+
capture: "capture";
|
|
119
|
+
owner: "owner";
|
|
120
|
+
url: "url";
|
|
121
|
+
}>;
|
|
122
|
+
reference: z.ZodString;
|
|
123
|
+
url: z.ZodOptional<z.ZodString>;
|
|
124
|
+
observed_at: z.ZodOptional<z.ZodString>;
|
|
125
|
+
product_state: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strict>>>;
|
|
127
|
+
native: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
128
|
+
skill: z.ZodLiteral<"make_ugc">;
|
|
129
|
+
input: z.ZodObject<{
|
|
130
|
+
script: z.ZodOptional<z.ZodString>;
|
|
131
|
+
inserts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
media_url: z.ZodString;
|
|
134
|
+
media_type: z.ZodEnum<{
|
|
135
|
+
image: "image";
|
|
136
|
+
video: "video";
|
|
137
|
+
}>;
|
|
138
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
139
|
+
startWord: z.ZodNumber;
|
|
140
|
+
endWord: z.ZodNumber;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
quote: z.ZodString;
|
|
143
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
}, z.core.$strict>]>;
|
|
145
|
+
cover_words: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
image_motion: z.ZodOptional<z.ZodObject<{
|
|
147
|
+
direction: z.ZodEnum<{
|
|
148
|
+
in: "in";
|
|
149
|
+
out: "out";
|
|
150
|
+
}>;
|
|
151
|
+
amount: z.ZodNumber;
|
|
152
|
+
}, z.core.$strict>>;
|
|
153
|
+
}, z.core.$strict>>>;
|
|
154
|
+
person: z.ZodOptional<z.ZodString>;
|
|
155
|
+
actor_id: z.ZodOptional<z.ZodString>;
|
|
156
|
+
image: z.ZodOptional<z.ZodString>;
|
|
157
|
+
actor_gender: z.ZodOptional<z.ZodEnum<{
|
|
158
|
+
female: "female";
|
|
159
|
+
male: "male";
|
|
160
|
+
}>>;
|
|
161
|
+
name: z.ZodOptional<z.ZodString>;
|
|
162
|
+
broll_policy: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
anyone: "anyone";
|
|
164
|
+
no_actor: "no_actor";
|
|
165
|
+
no_people: "no_people";
|
|
166
|
+
}>>;
|
|
167
|
+
captions: z.ZodDefault<z.ZodBoolean>;
|
|
168
|
+
caption_style: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
hormozi: "hormozi";
|
|
170
|
+
minimal: "minimal";
|
|
171
|
+
tiktok: "tiktok";
|
|
172
|
+
}>>;
|
|
173
|
+
look: z.ZodDefault<z.ZodEnum<{
|
|
174
|
+
commercial: "commercial";
|
|
175
|
+
natural: "natural";
|
|
176
|
+
raw_iphone: "raw_iphone";
|
|
177
|
+
}>>;
|
|
178
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
"16:9": "16:9";
|
|
180
|
+
"1:1": "1:1";
|
|
181
|
+
"9:16": "9:16";
|
|
182
|
+
}>>;
|
|
183
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
"1080p": "1080p";
|
|
185
|
+
"4k": "4k";
|
|
186
|
+
"720p": "720p";
|
|
187
|
+
}>>;
|
|
188
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
189
|
+
voice_id: z.ZodOptional<z.ZodString>;
|
|
190
|
+
tts_model: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
eleven_flash_v2_5: "eleven_flash_v2_5";
|
|
192
|
+
eleven_turbo_v2_5: "eleven_turbo_v2_5";
|
|
193
|
+
eleven_v3: "eleven_v3";
|
|
194
|
+
eleven_v4: "eleven_v4";
|
|
195
|
+
"gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
|
|
196
|
+
}>>;
|
|
197
|
+
background: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
blur: "blur";
|
|
199
|
+
contain: "contain";
|
|
200
|
+
white: "white";
|
|
201
|
+
}>>;
|
|
202
|
+
segments: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodObject<{
|
|
203
|
+
kind: z.ZodEnum<{
|
|
204
|
+
actor: "actor";
|
|
205
|
+
media: "media";
|
|
206
|
+
}>;
|
|
207
|
+
script: z.ZodOptional<z.ZodString>;
|
|
208
|
+
media_url: z.ZodOptional<z.ZodString>;
|
|
209
|
+
media_type: z.ZodOptional<z.ZodEnum<{
|
|
210
|
+
image: "image";
|
|
211
|
+
video: "video";
|
|
212
|
+
}>>;
|
|
213
|
+
duration_seconds: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
image_motion: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
direction: z.ZodEnum<{
|
|
216
|
+
in: "in";
|
|
217
|
+
out: "out";
|
|
218
|
+
}>;
|
|
219
|
+
amount: z.ZodNumber;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
}, z.core.$strict>>, z.ZodArray<z.ZodObject<{
|
|
222
|
+
kind: z.ZodEnum<{
|
|
223
|
+
actor: "actor";
|
|
224
|
+
media: "media";
|
|
225
|
+
}>;
|
|
226
|
+
script: z.ZodOptional<z.ZodString>;
|
|
227
|
+
media_url: z.ZodOptional<z.ZodString>;
|
|
228
|
+
media_type: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
image: "image";
|
|
230
|
+
video: "video";
|
|
231
|
+
}>>;
|
|
232
|
+
duration_seconds: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
image_motion: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
direction: z.ZodEnum<{
|
|
235
|
+
in: "in";
|
|
236
|
+
out: "out";
|
|
237
|
+
}>;
|
|
238
|
+
amount: z.ZodNumber;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
}, z.core.$strip>>>>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
243
|
+
skill: z.ZodLiteral<"make_faceless">;
|
|
244
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
245
|
+
duration_seconds: z.ZodNumber;
|
|
246
|
+
style_reference: z.ZodOptional<z.ZodString>;
|
|
247
|
+
character_reference: z.ZodOptional<z.ZodString>;
|
|
248
|
+
character_details: z.ZodOptional<z.ZodString>;
|
|
249
|
+
scene_images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
|
+
image_url: z.ZodString;
|
|
251
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
252
|
+
startWord: z.ZodNumber;
|
|
253
|
+
endWord: z.ZodNumber;
|
|
254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
|
+
quote: z.ZodString;
|
|
256
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
}, z.core.$strict>]>;
|
|
258
|
+
}, z.core.$strict>>>;
|
|
259
|
+
captions: z.ZodDefault<z.ZodBoolean>;
|
|
260
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
261
|
+
voice_id: z.ZodOptional<z.ZodNever>;
|
|
262
|
+
input_mode: z.ZodLiteral<"script">;
|
|
263
|
+
script: z.ZodString;
|
|
264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
265
|
+
duration_seconds: z.ZodNumber;
|
|
266
|
+
style_reference: z.ZodOptional<z.ZodString>;
|
|
267
|
+
character_reference: z.ZodOptional<z.ZodString>;
|
|
268
|
+
character_details: z.ZodOptional<z.ZodString>;
|
|
269
|
+
scene_images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
270
|
+
image_url: z.ZodString;
|
|
271
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
272
|
+
startWord: z.ZodNumber;
|
|
273
|
+
endWord: z.ZodNumber;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
quote: z.ZodString;
|
|
276
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
}, z.core.$strict>]>;
|
|
278
|
+
}, z.core.$strict>>>;
|
|
279
|
+
captions: z.ZodDefault<z.ZodBoolean>;
|
|
280
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
281
|
+
voice_id: z.ZodOptional<z.ZodNever>;
|
|
282
|
+
input_mode: z.ZodLiteral<"brief">;
|
|
283
|
+
brief: z.ZodString;
|
|
284
|
+
}, z.core.$strict>], "input_mode">;
|
|
285
|
+
}, z.core.$strict>], "skill">>;
|
|
286
|
+
}, z.core.$strict>;
|
|
287
|
+
}, z.core.$strict>;
|
|
288
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
289
|
+
base_version: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
get_workflow_plan: z.ZodObject<{
|
|
292
|
+
plan_id: z.ZodString;
|
|
293
|
+
}, z.core.$strict>;
|
|
294
|
+
approve_workflow_plan: z.ZodObject<{
|
|
295
|
+
revision: z.ZodNumber;
|
|
296
|
+
content_digest: z.ZodString;
|
|
297
|
+
plan_id: z.ZodString;
|
|
298
|
+
}, z.core.$strict>;
|
|
299
|
+
quote_workflow_plan: z.ZodObject<{
|
|
300
|
+
plan_id: z.ZodString;
|
|
301
|
+
}, z.core.$strict>;
|
|
302
|
+
run_workflow_plan: z.ZodObject<{
|
|
303
|
+
revision: z.ZodNumber;
|
|
304
|
+
content_digest: z.ZodString;
|
|
305
|
+
semantic_input_digest: z.ZodString;
|
|
306
|
+
quote_id: z.ZodString;
|
|
307
|
+
idempotency_key: z.ZodString;
|
|
308
|
+
plan_id: z.ZodString;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
};
|
|
311
|
+
export declare const WORKFLOW_TOOL_DESCRIPTIONS: {
|
|
312
|
+
readonly list_workflows: 'List six workflow methods and their current availability. Free and read-only. Four B1 methods use native executors; website-proof-demo and kinetic-launch remain execution_blocked. Availability is not account-specific permission to buy.';
|
|
313
|
+
readonly get_workflow: 'Read one workflow method by method_id: required inputs, script rules, evidence, limitations and current availability. Free and read-only. Use the returned method and capability digests in a plan.';
|
|
314
|
+
readonly prepare_workflow_plan: 'Create or save a workflow plan without paying or starting a run. Supply the complete document. Omit both plan_id and base_version to create; supply both to save a revision. The document is strict and bounded to 256000 JSON bytes. Preserve exact accepted narration. After a lost save answer, read and compare the saved document; do not automatically approve or purchase.';
|
|
315
|
+
readonly get_workflow_plan: 'Read the current account-owned plan, revision, content digest, readiness issues and warnings. Free and read-only. The document is intent; it is not a delivered video or creative acceptance.';
|
|
316
|
+
readonly approve_workflow_plan: 'Explicitly approve the chosen plan revision and content_digest. Free; it stores approval but starts no run. Read all issues and warnings first. Approval is separate from a quote and a paid launch.';
|
|
317
|
+
readonly quote_workflow_plan: 'Quote the approved current plan without spending credits. Free and read-only. Show the native price and every warning before requesting a paid launch. The returned quote_id expires and binds the exact revision and semantic input.';
|
|
318
|
+
readonly run_workflow_plan: 'Start one explicitly approved paid workflow run using the exact revision, content_digest, semantic_input_digest and quote_id from its quote, plus an explicit idempotency_key. Returns immediately with its captured receipt and native run_id; poll get_run. Never auto-approve, auto-quote or invent a new key. If delivery is uncertain, recover with the original request and key; a new key can pay twice. Technical evidence is separate from human creative acceptance.';
|
|
319
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { approveWorkflowPlan, saveWorkflowPlan, workflowPlanDocument } from './workflow-plan.js';
|
|
3
|
+
import { launchWorkflow } from './workflow-execution.js';
|
|
4
|
+
import { workflowId, workflowText } from './workflow-primitives.js';
|
|
5
|
+
import { workflowBrief, workflowNativeInput } from './workflow-brief.js';
|
|
6
|
+
import { offeredUgcInputShape } from '../../contract-dispositions.js';
|
|
7
|
+
const [ugc, faceless] = workflowNativeInput.options;
|
|
8
|
+
const offeredShape = Object.fromEntries(Object.keys(offeredUgcInputShape).map(key => [key, ugc.shape.input.shape[key]]));
|
|
9
|
+
const offeredUgc = z.strictObject(offeredShape).superRefine((value, context) => {
|
|
10
|
+
const parsed = ugc.shape.input.safeParse(value);
|
|
11
|
+
if (!parsed.success)
|
|
12
|
+
for (const issue of parsed.error.issues)
|
|
13
|
+
context.addIssue({ code: z.ZodIssueCode.custom, path: issue.path, message: issue.message });
|
|
14
|
+
});
|
|
15
|
+
const offeredBrief = workflowBrief.safeExtend({ native: z.discriminatedUnion('skill', [ugc.safeExtend({ input: offeredUgc }), faceless]).optional() });
|
|
16
|
+
const offeredDocument = workflowPlanDocument.safeExtend({ brief: offeredBrief });
|
|
17
|
+
export const workflowToolInputs = {
|
|
18
|
+
list_workflows: z.strictObject({}),
|
|
19
|
+
get_workflow: z.strictObject({ method_id: workflowText(200) }),
|
|
20
|
+
prepare_workflow_plan: z.strictObject({ document: offeredDocument, plan_id: workflowId.optional(),
|
|
21
|
+
base_version: saveWorkflowPlan.shape.base_version.optional() })
|
|
22
|
+
.refine(value => (value.plan_id === undefined) === (value.base_version === undefined), 'plan_id and base_version must be supplied together'),
|
|
23
|
+
get_workflow_plan: z.strictObject({ plan_id: workflowId }),
|
|
24
|
+
approve_workflow_plan: z.strictObject({ plan_id: workflowId, ...approveWorkflowPlan.shape }),
|
|
25
|
+
quote_workflow_plan: z.strictObject({ plan_id: workflowId }),
|
|
26
|
+
run_workflow_plan: z.strictObject({ plan_id: workflowId, ...launchWorkflow.shape }),
|
|
27
|
+
};
|
|
28
|
+
export const WORKFLOW_TOOL_DESCRIPTIONS = {
|
|
29
|
+
list_workflows: 'List six workflow methods and their current availability. Free and read-only. Four B1 methods use native executors; website-proof-demo and kinetic-launch remain execution_blocked. Availability is not account-specific permission to buy.',
|
|
30
|
+
get_workflow: 'Read one workflow method by method_id: required inputs, script rules, evidence, limitations and current availability. Free and read-only. Use the returned method and capability digests in a plan.',
|
|
31
|
+
prepare_workflow_plan: 'Create or save a workflow plan without paying or starting a run. Supply the complete document. Omit both plan_id and base_version to create; supply both to save a revision. The document is strict and bounded to 256000 JSON bytes. Preserve exact accepted narration. After a lost save answer, read and compare the saved document; do not automatically approve or purchase.',
|
|
32
|
+
get_workflow_plan: 'Read the current account-owned plan, revision, content digest, readiness issues and warnings. Free and read-only. The document is intent; it is not a delivered video or creative acceptance.',
|
|
33
|
+
approve_workflow_plan: 'Explicitly approve the chosen plan revision and content_digest. Free; it stores approval but starts no run. Read all issues and warnings first. Approval is separate from a quote and a paid launch.',
|
|
34
|
+
quote_workflow_plan: 'Quote the approved current plan without spending credits. Free and read-only. Show the native price and every warning before requesting a paid launch. The returned quote_id expires and binds the exact revision and semantic input.',
|
|
35
|
+
run_workflow_plan: 'Start one explicitly approved paid workflow run using the exact revision, content_digest, semantic_input_digest and quote_id from its quote, plus an explicit idempotency_key. Returns immediately with its captured receipt and native run_id; poll get_run. Never auto-approve, auto-quote or invent a new key. If delivery is uncertain, recover with the original request and key; a new key can pay twice. Technical evidence is separate from human creative acceptance.',
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=workflow-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-client.js","sourceRoot":"","sources":["../../../src/contracts/v1/workflow-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,mBAAmB,CAAC,OAAO,CAAC;AAEpD,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAqB,CAAC,CAAC,CAAC,CACpF,CAAC;AACtD,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IAC3E,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,KA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,YAAY,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAC1D,qBAAqB,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,mBAAmB,CAAC,KAAK,EAAE,CAAC;IAC5F,mBAAmB,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAC5D,iBAAiB,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,cAAc,CAAC,KAAK,EAAE,CAAC;CACtF,CAAC;AACF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,cAAc,EAAE,6OAA6O;IAC7P,YAAY,EAAE,qMAAqM;IACnN,qBAAqB,EAAE,mXAAmX;IAC1Y,iBAAiB,EAAE,+LAA+L;IAClN,qBAAqB,EAAE,sMAAsM;IAC7N,mBAAmB,EAAE,uOAAuO;IAC5P,iBAAiB,EAAE,gdAAgd;CAC7d,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type WorkflowBrief } from './workflow-brief.js';
|
|
2
|
+
import { type WorkflowPlanDocument } from './workflow-plan.js';
|
|
3
|
+
import { type WorkflowReceipt } from './workflow-execution.js';
|
|
4
|
+
export declare class WorkflowBriefDto {
|
|
5
|
+
readonly value: WorkflowBrief;
|
|
6
|
+
private constructor();
|
|
7
|
+
static parse(value: unknown): WorkflowBriefDto;
|
|
8
|
+
}
|
|
9
|
+
export declare class WorkflowPlanDto {
|
|
10
|
+
readonly value: WorkflowPlanDocument;
|
|
11
|
+
private constructor();
|
|
12
|
+
static parse(value: unknown): WorkflowPlanDto;
|
|
13
|
+
}
|
|
14
|
+
export declare class WorkflowExecutionDto {
|
|
15
|
+
readonly value: WorkflowReceipt;
|
|
16
|
+
private constructor();
|
|
17
|
+
static parse(value: unknown): WorkflowExecutionDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { workflowBrief } from './workflow-brief.js';
|
|
2
|
+
import { workflowPlanDocument } from './workflow-plan.js';
|
|
3
|
+
import { workflowReceipt } from './workflow-execution.js';
|
|
4
|
+
export class WorkflowBriefDto {
|
|
5
|
+
value;
|
|
6
|
+
constructor(value) {
|
|
7
|
+
this.value = value;
|
|
8
|
+
}
|
|
9
|
+
static parse(value) { return new WorkflowBriefDto(workflowBrief.parse(value)); }
|
|
10
|
+
}
|
|
11
|
+
export class WorkflowPlanDto {
|
|
12
|
+
value;
|
|
13
|
+
constructor(value) {
|
|
14
|
+
this.value = value;
|
|
15
|
+
}
|
|
16
|
+
static parse(value) { return new WorkflowPlanDto(workflowPlanDocument.parse(value)); }
|
|
17
|
+
}
|
|
18
|
+
export class WorkflowExecutionDto {
|
|
19
|
+
value;
|
|
20
|
+
constructor(value) {
|
|
21
|
+
this.value = value;
|
|
22
|
+
}
|
|
23
|
+
static parse(value) { return new WorkflowExecutionDto(workflowReceipt.parse(value)); }
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=workflow-dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-dto.js","sourceRoot":"","sources":["../../../src/contracts/v1/workflow-dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAsB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAA6B,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAwB,MAAM,yBAAyB,CAAC;AAEhF,MAAM,OAAO,gBAAgB;IACI,KAAK;IAAlC,YAA6B,KAAoB;qBAApB,KAAK;IAAkB,CAAC;IACrD,MAAM,CAAC,KAAK,CAAC,KAAc,IAAsB,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9G;AACD,MAAM,OAAO,eAAe;IACK,KAAK;IAAlC,YAA6B,KAA2B;qBAA3B,KAAK;IAAyB,CAAC;IAC5D,MAAM,CAAC,KAAK,CAAC,KAAc,IAAqB,OAAO,IAAI,eAAe,CAAC,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CACnH;AACD,MAAM,OAAO,oBAAoB;IACA,KAAK;IAAlC,YAA6B,KAAsB;qBAAtB,KAAK;IAAoB,CAAC;IACvD,MAAM,CAAC,KAAK,CAAC,KAAc,IAA0B,OAAO,IAAI,oBAAoB,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CACxH"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const workflowEvidenceSource: z.ZodObject<{
|
|
3
|
+
kind: z.ZodEnum<{
|
|
4
|
+
capture: "capture";
|
|
5
|
+
owner: "owner";
|
|
6
|
+
url: "url";
|
|
7
|
+
}>;
|
|
8
|
+
reference: z.ZodString;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
observed_at: z.ZodOptional<z.ZodString>;
|
|
11
|
+
product_state: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const claimEvidence: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
text: z.ZodString;
|
|
16
|
+
required: z.ZodBoolean;
|
|
17
|
+
status: z.ZodEnum<{
|
|
18
|
+
checked: "checked";
|
|
19
|
+
supplied: "supplied";
|
|
20
|
+
unresolved: "unresolved";
|
|
21
|
+
}>;
|
|
22
|
+
source: z.ZodObject<{
|
|
23
|
+
kind: z.ZodEnum<{
|
|
24
|
+
capture: "capture";
|
|
25
|
+
owner: "owner";
|
|
26
|
+
url: "url";
|
|
27
|
+
}>;
|
|
28
|
+
reference: z.ZodString;
|
|
29
|
+
url: z.ZodOptional<z.ZodString>;
|
|
30
|
+
observed_at: z.ZodOptional<z.ZodString>;
|
|
31
|
+
product_state: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export type ClaimEvidence = z.infer<typeof claimEvidence>;
|
|
35
|
+
export declare const claimEvidenceRead: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
text: z.ZodString;
|
|
38
|
+
required: z.ZodBoolean;
|
|
39
|
+
status: z.ZodString;
|
|
40
|
+
source: z.ZodObject<{
|
|
41
|
+
kind: z.ZodString;
|
|
42
|
+
reference: z.ZodString;
|
|
43
|
+
url: z.ZodOptional<z.ZodString>;
|
|
44
|
+
observed_at: z.ZodOptional<z.ZodString>;
|
|
45
|
+
product_state: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$loose>;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
|
+
export declare const workflowAnchorRead: z.ZodUnion<readonly [z.ZodObject<{
|
|
49
|
+
startWord: z.ZodNumber;
|
|
50
|
+
endWord: z.ZodNumber;
|
|
51
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
52
|
+
quote: z.ZodString;
|
|
53
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$loose>]>;
|
|
55
|
+
export declare const protectedProductArea: z.ZodObject<{
|
|
56
|
+
x: z.ZodNumber;
|
|
57
|
+
y: z.ZodNumber;
|
|
58
|
+
width: z.ZodNumber;
|
|
59
|
+
height: z.ZodNumber;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
export declare const assetBinding: z.ZodObject<{
|
|
62
|
+
instance_id: z.ZodString;
|
|
63
|
+
asset_id: z.ZodString;
|
|
64
|
+
content_digest: z.ZodString;
|
|
65
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
66
|
+
startWord: z.ZodNumber;
|
|
67
|
+
endWord: z.ZodNumber;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
quote: z.ZodString;
|
|
70
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strict>]>;
|
|
72
|
+
provenance: z.ZodEnum<{
|
|
73
|
+
generated_illustration: "generated_illustration";
|
|
74
|
+
owner_supplied: "owner_supplied";
|
|
75
|
+
verified_capture: "verified_capture";
|
|
76
|
+
}>;
|
|
77
|
+
rights: z.ZodEnum<{
|
|
78
|
+
licensed: "licensed";
|
|
79
|
+
owner_authorized: "owner_authorized";
|
|
80
|
+
unresolved: "unresolved";
|
|
81
|
+
}>;
|
|
82
|
+
purpose: z.ZodEnum<{
|
|
83
|
+
illustration: "illustration";
|
|
84
|
+
product_proof: "product_proof";
|
|
85
|
+
ui_proof: "ui_proof";
|
|
86
|
+
}>;
|
|
87
|
+
protected_area: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
x: z.ZodNumber;
|
|
89
|
+
y: z.ZodNumber;
|
|
90
|
+
width: z.ZodNumber;
|
|
91
|
+
height: z.ZodNumber;
|
|
92
|
+
}, z.core.$strict>>;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
export type AssetBinding = z.infer<typeof assetBinding>;
|
|
95
|
+
export declare const assetBindingRead: z.ZodObject<{
|
|
96
|
+
instance_id: z.ZodString;
|
|
97
|
+
asset_id: z.ZodString;
|
|
98
|
+
content_digest: z.ZodString;
|
|
99
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
100
|
+
startWord: z.ZodNumber;
|
|
101
|
+
endWord: z.ZodNumber;
|
|
102
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
103
|
+
quote: z.ZodString;
|
|
104
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
}, z.core.$loose>]>;
|
|
106
|
+
provenance: z.ZodString;
|
|
107
|
+
rights: z.ZodString;
|
|
108
|
+
purpose: z.ZodString;
|
|
109
|
+
protected_area: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
x: z.ZodNumber;
|
|
111
|
+
y: z.ZodNumber;
|
|
112
|
+
width: z.ZodNumber;
|
|
113
|
+
height: z.ZodNumber;
|
|
114
|
+
}, z.core.$loose>>;
|
|
115
|
+
}, z.core.$loose>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { facelessSceneAnchor } from '../../faceless-public.js';
|
|
3
|
+
import { uploadId } from '../../uploads.js';
|
|
4
|
+
import { MAX_URL_LENGTH } from '../../skills.js';
|
|
5
|
+
import { workflowDigest, workflowLocalId, workflowText } from './workflow-primitives.js';
|
|
6
|
+
export const workflowEvidenceSource = z.strictObject({
|
|
7
|
+
kind: z.enum(['owner', 'url', 'capture']), reference: workflowText(2000),
|
|
8
|
+
url: z.string().url().max(MAX_URL_LENGTH).optional(), observed_at: z.string().datetime().optional(), product_state: workflowText(2000).optional(),
|
|
9
|
+
});
|
|
10
|
+
export const claimEvidence = z.strictObject({
|
|
11
|
+
id: workflowLocalId, text: workflowText(4000), required: z.boolean(), status: z.enum(['supplied', 'checked', 'unresolved']), source: workflowEvidenceSource,
|
|
12
|
+
});
|
|
13
|
+
export const claimEvidenceRead = z.looseObject({
|
|
14
|
+
id: z.string(), text: z.string(), required: z.boolean(), status: z.string(),
|
|
15
|
+
source: z.looseObject({ kind: z.string(), reference: z.string(), url: z.string().optional(), observed_at: z.string().optional(), product_state: z.string().optional() }),
|
|
16
|
+
});
|
|
17
|
+
export const workflowAnchorRead = z.union([
|
|
18
|
+
z.looseObject({ startWord: z.number().int().nonnegative(), endWord: z.number().int().positive() }),
|
|
19
|
+
z.looseObject({ quote: z.string(), occurrence: z.number().int().nonnegative().optional() }),
|
|
20
|
+
]);
|
|
21
|
+
export const protectedProductArea = z.strictObject({ x: z.number().min(0).lt(1), y: z.number().min(0).lt(1), width: z.number().positive().max(1), height: z.number().positive().max(1) })
|
|
22
|
+
.refine(area => area.x + area.width <= 1 && area.y + area.height <= 1, 'Protected product area exceeds source bounds');
|
|
23
|
+
export const assetBinding = z.strictObject({
|
|
24
|
+
instance_id: workflowLocalId, asset_id: uploadId, content_digest: workflowDigest, anchor: facelessSceneAnchor,
|
|
25
|
+
provenance: z.enum(['owner_supplied', 'generated_illustration', 'verified_capture']), rights: z.enum(['owner_authorized', 'licensed', 'unresolved']),
|
|
26
|
+
purpose: z.enum(['product_proof', 'illustration', 'ui_proof']), protected_area: protectedProductArea.optional(),
|
|
27
|
+
});
|
|
28
|
+
export const assetBindingRead = z.looseObject({
|
|
29
|
+
instance_id: z.string(), asset_id: z.string(), content_digest: workflowDigest, anchor: workflowAnchorRead,
|
|
30
|
+
provenance: z.string(), rights: z.string(), purpose: z.string(),
|
|
31
|
+
protected_area: z.looseObject({ x: z.number(), y: z.number(), width: z.number(), height: z.number() }).optional(),
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=workflow-evidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-evidence.js","sourceRoot":"","sources":["../../../src/contracts/v1/workflow-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC;IACxE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EA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