@sourcey/catalog-verifier 1.1.18 → 1.1.20

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.
Files changed (23) hide show
  1. package/SOURCEY-CLOSURE.json +34 -18
  2. package/dist/contracts/api/src/endpoints.d.ts +188 -28
  3. package/dist/contracts/api/src/endpoints.d.ts.map +1 -1
  4. package/dist/contracts/company-verification/src/commercial.d.ts +571 -0
  5. package/dist/contracts/company-verification/src/commercial.d.ts.map +1 -0
  6. package/dist/contracts/company-verification/src/commercial.js +273 -0
  7. package/dist/contracts/company-verification/src/commercial.js.map +1 -0
  8. package/dist/contracts/startup-credits-commercial/src/index.d.ts +2 -2
  9. package/dist/contracts/startup-credits-commercial/src/index.d.ts.map +1 -1
  10. package/dist/contracts/startup-credits-commercial/src/index.js +1 -1
  11. package/dist/contracts/startup-credits-commercial/src/index.js.map +1 -1
  12. package/dist/contracts/startup-credits-commercial/src/product.d.ts.map +1 -1
  13. package/dist/contracts/startup-credits-commercial/src/product.js +2 -20
  14. package/dist/contracts/startup-credits-commercial/src/product.js.map +1 -1
  15. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts +131 -3
  16. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts.map +1 -1
  17. package/dist/contracts/startup-credits-commercial/src/purchase.js +31 -15
  18. package/dist/contracts/startup-credits-commercial/src/purchase.js.map +1 -1
  19. package/dist/contracts/startup-credits-commercial/src/requests.d.ts +99 -15
  20. package/dist/contracts/startup-credits-commercial/src/requests.d.ts.map +1 -1
  21. package/dist/contracts/startup-credits-commercial/src/requests.js +23 -9
  22. package/dist/contracts/startup-credits-commercial/src/requests.js.map +1 -1
  23. package/package.json +1 -1
@@ -0,0 +1,571 @@
1
+ import { z } from "zod";
2
+ export declare const companyVerificationProductCode: "company-human-verification";
3
+ export declare const companyVerificationPrice: {
4
+ readonly currency: "usd";
5
+ readonly minor_units: 2900;
6
+ };
7
+ export declare const companyVerificationPriceLookupKey: "company-human-verification-usd-29";
8
+ export declare const companyVerificationPurchaseDisclosureStatement: "Human verification of a company includes publication of a supportable company record with verified status for a legitimate company. Sourcey cannot publish false, unsafe, conflicting, duplicate, or non-existent company claims. Refunds apply when Sourcey cannot deliver the purchased service or misses the review deadline.";
9
+ /** The business days a paid verification is delivered in, counted on Sydney's calendar. */
10
+ export declare const humanVerificationServiceCalendarSchema: z.ZodObject<{
11
+ time_zone: z.ZodLiteral<"Australia/Sydney">;
12
+ business_days: z.ZodLiteral<3>;
13
+ counting: z.ZodLiteral<"next-business-day">;
14
+ deadline: z.ZodLiteral<"end-of-local-day">;
15
+ holiday_dates: z.ZodArray<z.ZodISODate>;
16
+ valid_through: z.ZodISODate;
17
+ source_url: z.ZodLiteral<"https://www.nsw.gov.au/about-nsw/public-holidays">;
18
+ source_observed_at: z.ZodISODateTime;
19
+ }, z.core.$strict>;
20
+ export declare const companyVerificationServicePolicySchema: z.ZodObject<{
21
+ policy_contract: z.ZodLiteral<"sourcey.company-verification-service-policy/v1alpha1">;
22
+ product_code: z.ZodLiteral<"company-human-verification">;
23
+ price_lookup_key: z.ZodLiteral<"company-human-verification-usd-29">;
24
+ price: z.ZodObject<{
25
+ currency: z.ZodLiteral<"usd">;
26
+ minor_units: z.ZodLiteral<2900>;
27
+ }, z.core.$strict>;
28
+ service_calendar: z.ZodObject<{
29
+ time_zone: z.ZodLiteral<"Australia/Sydney">;
30
+ business_days: z.ZodLiteral<3>;
31
+ counting: z.ZodLiteral<"next-business-day">;
32
+ deadline: z.ZodLiteral<"end-of-local-day">;
33
+ holiday_dates: z.ZodArray<z.ZodISODate>;
34
+ valid_through: z.ZodISODate;
35
+ source_url: z.ZodLiteral<"https://www.nsw.gov.au/about-nsw/public-holidays">;
36
+ source_observed_at: z.ZodISODateTime;
37
+ }, z.core.$strict>;
38
+ material_misrepresentation_refundable: z.ZodLiteral<false>;
39
+ sla_miss_refundable: z.ZodLiteral<true>;
40
+ sourcey_error_refundable: z.ZodLiteral<true>;
41
+ payment_authorizes_human_verification: z.ZodLiteral<true>;
42
+ payment_changes_truth: z.ZodLiteral<false>;
43
+ }, z.core.$strict>;
44
+ export declare const companyVerificationWorkDefinitionSchema: z.ZodObject<{
45
+ work_contract: z.ZodLiteral<"sourcey.company-review-work-definition/v1alpha1">;
46
+ scope: z.ZodLiteral<"one-entity">;
47
+ passing_results: z.ZodObject<{
48
+ entity_identity: z.ZodObject<{
49
+ status: z.ZodLiteral<"verified">;
50
+ binding: z.ZodLiteral<"identity-epoch">;
51
+ }, z.core.$strict>;
52
+ }, z.core.$strict>;
53
+ }, z.core.$strict>;
54
+ export declare const companyVerificationPurchaseDisclosureSchema: z.ZodObject<{
55
+ disclosure_contract: z.ZodLiteral<"sourcey.company-purchase-disclosure/v1alpha1">;
56
+ statement: z.ZodLiteral<"Human verification of a company includes publication of a supportable company record with verified status for a legitimate company. Sourcey cannot publish false, unsafe, conflicting, duplicate, or non-existent company claims. Refunds apply when Sourcey cannot deliver the purchased service or misses the review deadline.">;
57
+ }, z.core.$strict>;
58
+ export declare const companyVerificationPurchasePreviewSchema: z.ZodObject<{
59
+ preview_contract: z.ZodLiteral<"sourcey.company-purchase-preview/v1alpha1">;
60
+ product_code: z.ZodLiteral<"company-human-verification">;
61
+ purchase_kind: z.ZodLiteral<"one_off">;
62
+ price_lookup_key: z.ZodLiteral<"company-human-verification-usd-29">;
63
+ price: z.ZodObject<{
64
+ currency: z.ZodLiteral<"usd">;
65
+ minor_units: z.ZodLiteral<2900>;
66
+ }, z.core.$strict>;
67
+ work_scope: z.ZodLiteral<"one-entity">;
68
+ passing_results: z.ZodObject<{
69
+ entity_identity: z.ZodObject<{
70
+ status: z.ZodLiteral<"verified">;
71
+ binding: z.ZodLiteral<"identity-epoch">;
72
+ }, z.core.$strict>;
73
+ }, z.core.$strict>;
74
+ service_level: z.ZodObject<{
75
+ starts_after: z.ZodLiteral<"settled-payment">;
76
+ business_days: z.ZodLiteral<3>;
77
+ time_zone: z.ZodLiteral<"Australia/Sydney">;
78
+ }, z.core.$strict>;
79
+ refunds: z.ZodObject<{
80
+ material_misrepresentation_refundable: z.ZodLiteral<false>;
81
+ service_level_missed_refundable: z.ZodLiteral<true>;
82
+ sourcey_error_refundable: z.ZodLiteral<true>;
83
+ }, z.core.$strict>;
84
+ disclosure: z.ZodLiteral<"Human verification of a company includes publication of a supportable company record with verified status for a legitimate company. Sourcey cannot publish false, unsafe, conflicting, duplicate, or non-existent company claims. Refunds apply when Sourcey cannot deliver the purchased service or misses the review deadline.">;
85
+ policy_bindings: z.ZodObject<{
86
+ assurance_method: z.ZodString;
87
+ purchase_disclosure: z.ZodString;
88
+ service: z.ZodString;
89
+ }, z.core.$strict>;
90
+ preview_digest: z.ZodString;
91
+ }, z.core.$strict>;
92
+ /**
93
+ * A data repository's pull request adding a company alone (no Offer) below Sourcey's standing bar.
94
+ * The order serves the pull request's own submission and its exact Entity; the head is where it
95
+ * was bought. A later head keeps the service while it keeps that Entity, and the person verifies
96
+ * each head again.
97
+ */
98
+ export declare const companyVerificationGitPullRequestTargetSchema: z.ZodObject<{
99
+ kind: z.ZodLiteral<"git_pull_request">;
100
+ base_release_id: z.ZodString;
101
+ entity_id: z.ZodString;
102
+ pull_request: z.ZodObject<{
103
+ repository_id: z.ZodString;
104
+ repository: z.ZodString;
105
+ pull_request_number: z.ZodNumber;
106
+ submission_id: z.ZodString;
107
+ head_sha: z.ZodString;
108
+ }, z.core.$strict>;
109
+ standing_result: z.ZodObject<{
110
+ result_contract: z.ZodLiteral<"sourcey.standing-result/v1alpha1">;
111
+ policy_digest: z.ZodString;
112
+ evidence_digest: z.ZodString;
113
+ registrable_domain: z.ZodString;
114
+ official_source_url: z.ZodURL;
115
+ route: z.ZodEnum<{
116
+ correction_required: "correction_required";
117
+ free_machine_review: "free_machine_review";
118
+ human_verification_required: "human_verification_required";
119
+ repair_required: "repair_required";
120
+ temporarily_unavailable: "temporarily_unavailable";
121
+ }>;
122
+ reasons: z.ZodArray<z.ZodString>;
123
+ evaluated_at: z.ZodISODateTime;
124
+ expires_at: z.ZodISODateTime;
125
+ result_digest: z.ZodString;
126
+ }, z.core.$strict>;
127
+ authoring_digest: z.ZodString;
128
+ revisions: z.ZodObject<{
129
+ entity_revision_digest: z.ZodString;
130
+ }, z.core.$strict>;
131
+ labels: z.ZodObject<{
132
+ company_name: z.ZodString;
133
+ company_site_url: z.ZodURL;
134
+ }, z.core.$strict>;
135
+ }, z.core.$strict>;
136
+ /**
137
+ * A company alone drafted on Sourcey (`companyDraftRequestSchema`), materialized as its one
138
+ * Entity-only authoring file under this product's preview. A company alone is always new.
139
+ */
140
+ export declare const companyVerificationDraftSchema: z.ZodObject<{
141
+ status: z.ZodLiteral<"materialized">;
142
+ base_release_id: z.ZodString;
143
+ entity_id: z.ZodString;
144
+ purchase_preview: z.ZodObject<{
145
+ preview_contract: z.ZodLiteral<"sourcey.company-purchase-preview/v1alpha1">;
146
+ product_code: z.ZodLiteral<"company-human-verification">;
147
+ purchase_kind: z.ZodLiteral<"one_off">;
148
+ price_lookup_key: z.ZodLiteral<"company-human-verification-usd-29">;
149
+ price: z.ZodObject<{
150
+ currency: z.ZodLiteral<"usd">;
151
+ minor_units: z.ZodLiteral<2900>;
152
+ }, z.core.$strict>;
153
+ work_scope: z.ZodLiteral<"one-entity">;
154
+ passing_results: z.ZodObject<{
155
+ entity_identity: z.ZodObject<{
156
+ status: z.ZodLiteral<"verified">;
157
+ binding: z.ZodLiteral<"identity-epoch">;
158
+ }, z.core.$strict>;
159
+ }, z.core.$strict>;
160
+ service_level: z.ZodObject<{
161
+ starts_after: z.ZodLiteral<"settled-payment">;
162
+ business_days: z.ZodLiteral<3>;
163
+ time_zone: z.ZodLiteral<"Australia/Sydney">;
164
+ }, z.core.$strict>;
165
+ refunds: z.ZodObject<{
166
+ material_misrepresentation_refundable: z.ZodLiteral<false>;
167
+ service_level_missed_refundable: z.ZodLiteral<true>;
168
+ sourcey_error_refundable: z.ZodLiteral<true>;
169
+ }, z.core.$strict>;
170
+ disclosure: z.ZodLiteral<"Human verification of a company includes publication of a supportable company record with verified status for a legitimate company. Sourcey cannot publish false, unsafe, conflicting, duplicate, or non-existent company claims. Refunds apply when Sourcey cannot deliver the purchased service or misses the review deadline.">;
171
+ policy_bindings: z.ZodObject<{
172
+ assurance_method: z.ZodString;
173
+ purchase_disclosure: z.ZodString;
174
+ service: z.ZodString;
175
+ }, z.core.$strict>;
176
+ preview_digest: z.ZodString;
177
+ }, z.core.$strict>;
178
+ expected_current_entities: z.ZodTuple<[], null>;
179
+ authoring_file: z.ZodObject<{
180
+ path: z.ZodString;
181
+ content: z.ZodString;
182
+ content_digest: z.ZodString;
183
+ }, z.core.$strict>;
184
+ diagnostics: z.ZodArray<z.ZodObject<{
185
+ code: z.ZodEnum<{
186
+ conflict: "conflict";
187
+ ineligible: "ineligible";
188
+ invalid: "invalid";
189
+ required: "required";
190
+ }>;
191
+ path: z.ZodString;
192
+ message: z.ZodString;
193
+ }, z.core.$strict>>;
194
+ }, z.core.$strict>;
195
+ /** A hosted company alone, bought for its exact retained submission. */
196
+ export declare const companyVerificationNewListingIntentTargetSchema: z.ZodObject<{
197
+ kind: z.ZodLiteral<"new_listing">;
198
+ base_release_id: z.ZodString;
199
+ entity_id: z.ZodString;
200
+ submission: z.ZodObject<{
201
+ submission_id: z.ZodString;
202
+ payload_digest: z.ZodString;
203
+ authorization_policy: z.ZodLiteral<"proposal">;
204
+ }, z.core.$strict>;
205
+ standing_result: z.ZodObject<{
206
+ result_contract: z.ZodLiteral<"sourcey.standing-result/v1alpha1">;
207
+ policy_digest: z.ZodString;
208
+ evidence_digest: z.ZodString;
209
+ registrable_domain: z.ZodString;
210
+ official_source_url: z.ZodURL;
211
+ route: z.ZodEnum<{
212
+ correction_required: "correction_required";
213
+ free_machine_review: "free_machine_review";
214
+ human_verification_required: "human_verification_required";
215
+ repair_required: "repair_required";
216
+ temporarily_unavailable: "temporarily_unavailable";
217
+ }>;
218
+ reasons: z.ZodArray<z.ZodString>;
219
+ evaluated_at: z.ZodISODateTime;
220
+ expires_at: z.ZodISODateTime;
221
+ result_digest: z.ZodString;
222
+ }, z.core.$strict>;
223
+ authoring_file_digest: z.ZodString;
224
+ }, z.core.$strict>;
225
+ /** The exact pull request head a person verified, and the Entity revision it compiles to. */
226
+ export declare const companyVerificationReviewedRevisionSchema: z.ZodObject<{
227
+ submission_id: z.ZodString;
228
+ revision_digest: z.ZodString;
229
+ head_sha: z.ZodString;
230
+ entity_revision_digest: z.ZodString;
231
+ }, z.core.$strict>;
232
+ export declare const companyVerificationFundedWorkIntentSchema: z.ZodObject<{
233
+ product_intent_contract: z.ZodLiteral<"sourcey.company-human-verification-intent/v1alpha1">;
234
+ verification_case_id: z.ZodString;
235
+ billing: z.ZodObject<{
236
+ intent_contract: z.ZodLiteral<"sourcey.funded-work-intent/v1alpha1">;
237
+ intent_id: z.ZodString;
238
+ product_code: z.ZodString;
239
+ purchase_kind: z.ZodLiteral<"one_off">;
240
+ actor_ref: z.ZodString;
241
+ owner_work_ref: z.ZodString;
242
+ owner_payload_digest: z.ZodString;
243
+ subject: z.ZodObject<{
244
+ entity_id: z.ZodString;
245
+ program_id: z.ZodOptional<z.ZodString>;
246
+ offer_id: z.ZodOptional<z.ZodString>;
247
+ }, z.core.$strict>;
248
+ base_release_id: z.ZodString;
249
+ eligibility_digest: z.ZodString;
250
+ policy_bindings: z.ZodArray<z.ZodObject<{
251
+ role: z.ZodString;
252
+ policy_digest: z.ZodString;
253
+ }, z.core.$strict>>;
254
+ work_class: z.ZodString;
255
+ forbidden_effects: z.ZodTuple<[z.ZodLiteral<"admit_without_evidence">, z.ZodLiteral<"alter_facts">, z.ZodLiteral<"alter_ranking">, z.ZodLiteral<"guarantee_outcome">, z.ZodLiteral<"publish_without_authority">], null>;
256
+ price_lookup_key: z.ZodString;
257
+ requested_by: z.ZodEnum<{
258
+ contributor: "contributor";
259
+ subject: "subject";
260
+ }>;
261
+ issued_at: z.ZodISODateTime;
262
+ expires_at: z.ZodISODateTime;
263
+ intent_digest: z.ZodString;
264
+ }, z.core.$strict>;
265
+ target: z.ZodUnion<readonly [z.ZodObject<{
266
+ kind: z.ZodLiteral<"git_pull_request">;
267
+ base_release_id: z.ZodString;
268
+ entity_id: z.ZodString;
269
+ pull_request: z.ZodObject<{
270
+ repository_id: z.ZodString;
271
+ repository: z.ZodString;
272
+ pull_request_number: z.ZodNumber;
273
+ submission_id: z.ZodString;
274
+ head_sha: z.ZodString;
275
+ }, z.core.$strict>;
276
+ standing_result: z.ZodObject<{
277
+ result_contract: z.ZodLiteral<"sourcey.standing-result/v1alpha1">;
278
+ policy_digest: z.ZodString;
279
+ evidence_digest: z.ZodString;
280
+ registrable_domain: z.ZodString;
281
+ official_source_url: z.ZodURL;
282
+ route: z.ZodEnum<{
283
+ correction_required: "correction_required";
284
+ free_machine_review: "free_machine_review";
285
+ human_verification_required: "human_verification_required";
286
+ repair_required: "repair_required";
287
+ temporarily_unavailable: "temporarily_unavailable";
288
+ }>;
289
+ reasons: z.ZodArray<z.ZodString>;
290
+ evaluated_at: z.ZodISODateTime;
291
+ expires_at: z.ZodISODateTime;
292
+ result_digest: z.ZodString;
293
+ }, z.core.$strict>;
294
+ authoring_digest: z.ZodString;
295
+ revisions: z.ZodObject<{
296
+ entity_revision_digest: z.ZodString;
297
+ }, z.core.$strict>;
298
+ labels: z.ZodObject<{
299
+ company_name: z.ZodString;
300
+ company_site_url: z.ZodURL;
301
+ }, z.core.$strict>;
302
+ }, z.core.$strict>, z.ZodObject<{
303
+ kind: z.ZodLiteral<"new_listing">;
304
+ base_release_id: z.ZodString;
305
+ entity_id: z.ZodString;
306
+ submission: z.ZodObject<{
307
+ submission_id: z.ZodString;
308
+ payload_digest: z.ZodString;
309
+ authorization_policy: z.ZodLiteral<"proposal">;
310
+ }, z.core.$strict>;
311
+ standing_result: z.ZodObject<{
312
+ result_contract: z.ZodLiteral<"sourcey.standing-result/v1alpha1">;
313
+ policy_digest: z.ZodString;
314
+ evidence_digest: z.ZodString;
315
+ registrable_domain: z.ZodString;
316
+ official_source_url: z.ZodURL;
317
+ route: z.ZodEnum<{
318
+ correction_required: "correction_required";
319
+ free_machine_review: "free_machine_review";
320
+ human_verification_required: "human_verification_required";
321
+ repair_required: "repair_required";
322
+ temporarily_unavailable: "temporarily_unavailable";
323
+ }>;
324
+ reasons: z.ZodArray<z.ZodString>;
325
+ evaluated_at: z.ZodISODateTime;
326
+ expires_at: z.ZodISODateTime;
327
+ result_digest: z.ZodString;
328
+ }, z.core.$strict>;
329
+ authoring_file_digest: z.ZodString;
330
+ }, z.core.$strict>]>;
331
+ purchase_preview_digest: z.ZodString;
332
+ disclosure_digest: z.ZodString;
333
+ product_intent_digest: z.ZodString;
334
+ }, z.core.$strict>;
335
+ /** What a person records verifying a company alone: its identity, and nothing about an Offer. */
336
+ export declare const companyVerificationReviewDecisionSchema: z.ZodObject<{
337
+ entity_identity: z.ZodDiscriminatedUnion<[z.ZodObject<{
338
+ status: z.ZodLiteral<"passed">;
339
+ rationale: z.ZodString;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ status: z.ZodLiteral<"failed">;
342
+ reason_code: z.ZodEnum<{
343
+ identity_mismatch: "identity_mismatch";
344
+ identity_unresolved: "identity_unresolved";
345
+ insufficient_evidence: "insufficient_evidence";
346
+ }>;
347
+ rationale: z.ZodString;
348
+ basis: z.ZodObject<{
349
+ evidence_event_ids: z.ZodArray<z.ZodString>;
350
+ observation_ids: z.ZodArray<z.ZodString>;
351
+ retained_artifact_digests: z.ZodDefault<z.ZodArray<z.ZodString>>;
352
+ }, z.core.$strict>;
353
+ }, z.core.$strict>], "status">;
354
+ }, z.core.$strict>;
355
+ export declare const companyVerificationReviewCompletionReceiptCoreSchema: z.ZodObject<{
356
+ order_id: z.ZodString;
357
+ funded_work_intent_id: z.ZodString;
358
+ funded_work_intent_digest: z.ZodString;
359
+ verification_case_id: z.ZodString;
360
+ method_policy_digest: z.ZodString;
361
+ reviewer_id: z.ZodString;
362
+ reviewed_at: z.ZodISODateTime;
363
+ readback_release_id: z.ZodString;
364
+ work_outcome: z.ZodLiteral<"review_delivered">;
365
+ entity_identity: z.ZodDiscriminatedUnion<[z.ZodObject<{
366
+ status: z.ZodLiteral<"passed">;
367
+ entity_id: z.ZodString;
368
+ assurance: z.ZodObject<{
369
+ status: z.ZodLiteral<"verified">;
370
+ assurance_id: z.ZodString;
371
+ verified_at: z.ZodISODateTime;
372
+ identity_epoch_digest: z.ZodString;
373
+ method_policy_digest: z.ZodString;
374
+ coverage_policy_digest: z.ZodString;
375
+ event_id: z.ZodString;
376
+ receipt_digest: z.ZodString;
377
+ }, z.core.$strict>;
378
+ }, z.core.$strict>, z.ZodObject<{
379
+ status: z.ZodLiteral<"reused">;
380
+ entity_id: z.ZodString;
381
+ assurance: z.ZodObject<{
382
+ status: z.ZodLiteral<"verified">;
383
+ assurance_id: z.ZodString;
384
+ verified_at: z.ZodISODateTime;
385
+ identity_epoch_digest: z.ZodString;
386
+ method_policy_digest: z.ZodString;
387
+ coverage_policy_digest: z.ZodString;
388
+ event_id: z.ZodString;
389
+ receipt_digest: z.ZodString;
390
+ }, z.core.$strict>;
391
+ }, z.core.$strict>, z.ZodObject<{
392
+ status: z.ZodLiteral<"failed">;
393
+ entity_id: z.ZodString;
394
+ reason_code: z.ZodEnum<{
395
+ identity_mismatch: "identity_mismatch";
396
+ identity_unresolved: "identity_unresolved";
397
+ insufficient_evidence: "insufficient_evidence";
398
+ }>;
399
+ rationale: z.ZodString;
400
+ basis: z.ZodObject<{
401
+ evidence_event_ids: z.ZodArray<z.ZodString>;
402
+ observation_ids: z.ZodArray<z.ZodString>;
403
+ retained_artifact_digests: z.ZodDefault<z.ZodArray<z.ZodString>>;
404
+ }, z.core.$strict>;
405
+ }, z.core.$strict>], "status">;
406
+ receipt_contract: z.ZodLiteral<"sourcey.company-review-completion/v1alpha1">;
407
+ target: z.ZodUnion<readonly [z.ZodObject<{
408
+ kind: z.ZodLiteral<"git_pull_request">;
409
+ base_release_id: z.ZodString;
410
+ entity_id: z.ZodString;
411
+ pull_request: z.ZodObject<{
412
+ repository_id: z.ZodString;
413
+ repository: z.ZodString;
414
+ pull_request_number: z.ZodNumber;
415
+ submission_id: z.ZodString;
416
+ head_sha: z.ZodString;
417
+ }, z.core.$strict>;
418
+ standing_result: z.ZodObject<{
419
+ result_contract: z.ZodLiteral<"sourcey.standing-result/v1alpha1">;
420
+ policy_digest: z.ZodString;
421
+ evidence_digest: z.ZodString;
422
+ registrable_domain: z.ZodString;
423
+ official_source_url: z.ZodURL;
424
+ route: z.ZodEnum<{
425
+ correction_required: "correction_required";
426
+ free_machine_review: "free_machine_review";
427
+ human_verification_required: "human_verification_required";
428
+ repair_required: "repair_required";
429
+ temporarily_unavailable: "temporarily_unavailable";
430
+ }>;
431
+ reasons: z.ZodArray<z.ZodString>;
432
+ evaluated_at: z.ZodISODateTime;
433
+ expires_at: z.ZodISODateTime;
434
+ result_digest: z.ZodString;
435
+ }, z.core.$strict>;
436
+ authoring_digest: z.ZodString;
437
+ revisions: z.ZodObject<{
438
+ entity_revision_digest: z.ZodString;
439
+ }, z.core.$strict>;
440
+ labels: z.ZodObject<{
441
+ company_name: z.ZodString;
442
+ company_site_url: z.ZodURL;
443
+ }, z.core.$strict>;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ kind: z.ZodLiteral<"new_listing">;
446
+ base_release_id: z.ZodString;
447
+ entity_id: z.ZodString;
448
+ submission_id: z.ZodString;
449
+ submission_payload_digest: z.ZodString;
450
+ }, z.core.$strict>]>;
451
+ reviewed_revision: z.ZodOptional<z.ZodObject<{
452
+ submission_id: z.ZodString;
453
+ revision_digest: z.ZodString;
454
+ head_sha: z.ZodString;
455
+ entity_revision_digest: z.ZodString;
456
+ }, z.core.$strict>>;
457
+ }, z.core.$strict>;
458
+ export declare const companyVerificationReviewCompletionReceiptSchema: z.ZodObject<{
459
+ order_id: z.ZodString;
460
+ funded_work_intent_id: z.ZodString;
461
+ funded_work_intent_digest: z.ZodString;
462
+ verification_case_id: z.ZodString;
463
+ method_policy_digest: z.ZodString;
464
+ reviewer_id: z.ZodString;
465
+ reviewed_at: z.ZodISODateTime;
466
+ readback_release_id: z.ZodString;
467
+ work_outcome: z.ZodLiteral<"review_delivered">;
468
+ entity_identity: z.ZodDiscriminatedUnion<[z.ZodObject<{
469
+ status: z.ZodLiteral<"passed">;
470
+ entity_id: z.ZodString;
471
+ assurance: z.ZodObject<{
472
+ status: z.ZodLiteral<"verified">;
473
+ assurance_id: z.ZodString;
474
+ verified_at: z.ZodISODateTime;
475
+ identity_epoch_digest: z.ZodString;
476
+ method_policy_digest: z.ZodString;
477
+ coverage_policy_digest: z.ZodString;
478
+ event_id: z.ZodString;
479
+ receipt_digest: z.ZodString;
480
+ }, z.core.$strict>;
481
+ }, z.core.$strict>, z.ZodObject<{
482
+ status: z.ZodLiteral<"reused">;
483
+ entity_id: z.ZodString;
484
+ assurance: z.ZodObject<{
485
+ status: z.ZodLiteral<"verified">;
486
+ assurance_id: z.ZodString;
487
+ verified_at: z.ZodISODateTime;
488
+ identity_epoch_digest: z.ZodString;
489
+ method_policy_digest: z.ZodString;
490
+ coverage_policy_digest: z.ZodString;
491
+ event_id: z.ZodString;
492
+ receipt_digest: z.ZodString;
493
+ }, z.core.$strict>;
494
+ }, z.core.$strict>, z.ZodObject<{
495
+ status: z.ZodLiteral<"failed">;
496
+ entity_id: z.ZodString;
497
+ reason_code: z.ZodEnum<{
498
+ identity_mismatch: "identity_mismatch";
499
+ identity_unresolved: "identity_unresolved";
500
+ insufficient_evidence: "insufficient_evidence";
501
+ }>;
502
+ rationale: z.ZodString;
503
+ basis: z.ZodObject<{
504
+ evidence_event_ids: z.ZodArray<z.ZodString>;
505
+ observation_ids: z.ZodArray<z.ZodString>;
506
+ retained_artifact_digests: z.ZodDefault<z.ZodArray<z.ZodString>>;
507
+ }, z.core.$strict>;
508
+ }, z.core.$strict>], "status">;
509
+ receipt_contract: z.ZodLiteral<"sourcey.company-review-completion/v1alpha1">;
510
+ target: z.ZodUnion<readonly [z.ZodObject<{
511
+ kind: z.ZodLiteral<"git_pull_request">;
512
+ base_release_id: z.ZodString;
513
+ entity_id: z.ZodString;
514
+ pull_request: z.ZodObject<{
515
+ repository_id: z.ZodString;
516
+ repository: z.ZodString;
517
+ pull_request_number: z.ZodNumber;
518
+ submission_id: z.ZodString;
519
+ head_sha: z.ZodString;
520
+ }, z.core.$strict>;
521
+ standing_result: z.ZodObject<{
522
+ result_contract: z.ZodLiteral<"sourcey.standing-result/v1alpha1">;
523
+ policy_digest: z.ZodString;
524
+ evidence_digest: z.ZodString;
525
+ registrable_domain: z.ZodString;
526
+ official_source_url: z.ZodURL;
527
+ route: z.ZodEnum<{
528
+ correction_required: "correction_required";
529
+ free_machine_review: "free_machine_review";
530
+ human_verification_required: "human_verification_required";
531
+ repair_required: "repair_required";
532
+ temporarily_unavailable: "temporarily_unavailable";
533
+ }>;
534
+ reasons: z.ZodArray<z.ZodString>;
535
+ evaluated_at: z.ZodISODateTime;
536
+ expires_at: z.ZodISODateTime;
537
+ result_digest: z.ZodString;
538
+ }, z.core.$strict>;
539
+ authoring_digest: z.ZodString;
540
+ revisions: z.ZodObject<{
541
+ entity_revision_digest: z.ZodString;
542
+ }, z.core.$strict>;
543
+ labels: z.ZodObject<{
544
+ company_name: z.ZodString;
545
+ company_site_url: z.ZodURL;
546
+ }, z.core.$strict>;
547
+ }, z.core.$strict>, z.ZodObject<{
548
+ kind: z.ZodLiteral<"new_listing">;
549
+ base_release_id: z.ZodString;
550
+ entity_id: z.ZodString;
551
+ submission_id: z.ZodString;
552
+ submission_payload_digest: z.ZodString;
553
+ }, z.core.$strict>]>;
554
+ reviewed_revision: z.ZodOptional<z.ZodObject<{
555
+ submission_id: z.ZodString;
556
+ revision_digest: z.ZodString;
557
+ head_sha: z.ZodString;
558
+ entity_revision_digest: z.ZodString;
559
+ }, z.core.$strict>>;
560
+ receipt_digest: z.ZodString;
561
+ }, z.core.$strict>;
562
+ export type CompanyVerificationServicePolicy = z.infer<typeof companyVerificationServicePolicySchema>;
563
+ export type CompanyVerificationPurchasePreview = z.infer<typeof companyVerificationPurchasePreviewSchema>;
564
+ export type CompanyVerificationGitPullRequestTarget = z.infer<typeof companyVerificationGitPullRequestTargetSchema>;
565
+ export type CompanyVerificationDraft = z.infer<typeof companyVerificationDraftSchema>;
566
+ export type CompanyVerificationNewListingIntentTarget = z.infer<typeof companyVerificationNewListingIntentTargetSchema>;
567
+ export type CompanyVerificationReviewedRevision = z.infer<typeof companyVerificationReviewedRevisionSchema>;
568
+ export type CompanyVerificationFundedWorkIntent = z.infer<typeof companyVerificationFundedWorkIntentSchema>;
569
+ export type CompanyVerificationReviewDecision = z.infer<typeof companyVerificationReviewDecisionSchema>;
570
+ export type CompanyVerificationReviewCompletionReceipt = z.infer<typeof companyVerificationReviewCompletionReceiptSchema>;
571
+ //# sourceMappingURL=commercial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commercial.d.ts","sourceRoot":"","sources":["../../../../contracts/company-verification/src/commercial.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,8BAA8B,EAAG,4BAAqC,CAAC;AACpF,eAAO,MAAM,wBAAwB;aAAK,QAAQ,EAAE,KAAK;aAAE,WAAW,EAAE,IAAK;CAAW,CAAC;AACzF,eAAO,MAAM,iCAAiC,EAAG,mCAA4C,CAAC;AAC9F,eAAO,MAAM,8CAA8C,EACzD,kUAA2U,CAAC;AAE9U,2FAA2F;AAC3F,eAAO,MAAM,sCAAsC;;;;;;;;;kBAuB/C,CAAC;AASL,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;kBAaxC,CAAC;AAEZ,eAAO,MAAM,uCAAuC;;;;;;;;;kBAYzC,CAAC;AAEZ,eAAO,MAAM,2CAA2C;;;kBAK7C,CAAC;AAoCZ,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE1C,CAAC;AAEZ;;;;;GAKG;AACH,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2B/C,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUhC,CAAC;AAEZ,wEAAwE;AACxE,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAejD,CAAC;AAEZ,6FAA6F;AAC7F,eAAO,MAAM,yCAAyC;;;;;kBAO3C,CAAC;AAEZ,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyDlD,CAAC;AAEL,iGAAiG;AACjG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;kBAEzC,CAAC;AAEZ,eAAO,MAAM,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwB7D,CAAC;AAEL,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGhD,CAAC;AAEd,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,6CAA6C,CACrD,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,+CAA+C,CACvD,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,gDAAgD,CACxD,CAAC"}