@sourcey/catalog-verifier 1.1.7 → 1.1.9
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/SBOM.cdx.json +7 -7
- package/SOURCEY-CLOSURE.json +31 -15
- package/THIRD_PARTY_NOTICES.json +3 -3
- package/dist/contracts/admission-results/src/index.d.ts +373 -0
- package/dist/contracts/admission-results/src/index.d.ts.map +1 -0
- package/dist/contracts/admission-results/src/index.js +217 -0
- package/dist/contracts/admission-results/src/index.js.map +1 -0
- package/dist/contracts/api/src/index.d.ts +1115 -26
- package/dist/contracts/api/src/index.d.ts.map +1 -1
- package/dist/contracts/api/src/index.js +30 -1
- package/dist/contracts/api/src/index.js.map +1 -1
- package/dist/contracts/company-standing/src/index.d.ts +15 -0
- package/dist/contracts/company-standing/src/index.d.ts.map +1 -1
- package/dist/contracts/company-standing/src/index.js +11 -0
- package/dist/contracts/company-standing/src/index.js.map +1 -1
- package/dist/contracts/startup-credits-commercial/src/index.d.ts +554 -0
- package/dist/contracts/startup-credits-commercial/src/index.d.ts.map +1 -1
- package/dist/contracts/startup-credits-commercial/src/index.js +169 -4
- package/dist/contracts/startup-credits-commercial/src/index.js.map +1 -1
- package/dist/modules/publication-instance/src/index.d.ts +37 -0
- package/dist/modules/publication-instance/src/index.d.ts.map +1 -1
- package/package.json +2 -2
package/SBOM.cdx.json
CHANGED
|
@@ -99,25 +99,25 @@
|
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"type": "library",
|
|
102
|
-
"bom-ref": "pkg:npm/provenry@0.2.
|
|
102
|
+
"bom-ref": "pkg:npm/provenry@0.2.1",
|
|
103
103
|
"name": "provenry",
|
|
104
104
|
"licenses": [
|
|
105
105
|
{
|
|
106
106
|
"expression": "MIT"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
|
-
"version": "0.2.
|
|
110
|
-
"purl": "pkg:npm/provenry@0.2.
|
|
109
|
+
"version": "0.2.1",
|
|
110
|
+
"purl": "pkg:npm/provenry@0.2.1",
|
|
111
111
|
"hashes": [
|
|
112
112
|
{
|
|
113
113
|
"alg": "SHA-512",
|
|
114
|
-
"content": "
|
|
114
|
+
"content": "deaa4dc54a50f02c6c683f18ad88fbcfa2defd819d3357e9c78815c16241381865628b04004c46608bd7341a5127a8c453a322b008fbd0b34ae4b1082411b2a4"
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
117
|
"externalReferences": [
|
|
118
118
|
{
|
|
119
119
|
"type": "distribution",
|
|
120
|
-
"url": "https://registry.npmjs.org/provenry/-/provenry-0.2.
|
|
120
|
+
"url": "https://registry.npmjs.org/provenry/-/provenry-0.2.1.tgz"
|
|
121
121
|
}
|
|
122
122
|
]
|
|
123
123
|
},
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
{
|
|
223
223
|
"ref": "urn:sourcey:code-distribution:catalog-verifier",
|
|
224
224
|
"dependsOn": [
|
|
225
|
-
"pkg:npm/provenry@0.2.
|
|
225
|
+
"pkg:npm/provenry@0.2.1",
|
|
226
226
|
"pkg:npm/tldts@7.4.16",
|
|
227
227
|
"pkg:npm/yaml@2.9.1",
|
|
228
228
|
"pkg:npm/zod@4.6.5"
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
]
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
"ref": "pkg:npm/provenry@0.2.
|
|
242
|
+
"ref": "pkg:npm/provenry@0.2.1",
|
|
243
243
|
"dependsOn": [
|
|
244
244
|
"pkg:npm/parse5@8.0.1",
|
|
245
245
|
"pkg:npm/zod@4.6.5"
|
package/SOURCEY-CLOSURE.json
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
"code_distribution_closure_contract": "sourcey.code-distribution-closure/v1",
|
|
3
3
|
"distribution_id": "catalog-verifier",
|
|
4
4
|
"files": [
|
|
5
|
+
{
|
|
6
|
+
"path": "dist/contracts/admission-results/src/index.d.ts",
|
|
7
|
+
"sha256": "sha256:6ec83cc23be96bead6b9ca7cbff78f82d7faf8e26aed075ce2b734177ab58134"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"path": "dist/contracts/admission-results/src/index.d.ts.map",
|
|
11
|
+
"sha256": "sha256:e72a410bf1e9b8d3df6367dbd8c4f7dfc2e7da67a83634ece90859c37fbce961"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"path": "dist/contracts/admission-results/src/index.js",
|
|
15
|
+
"sha256": "sha256:8f995973f9978257559740fafe8b4106923a59d6b4bda83bc0723e1b2205c452"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "dist/contracts/admission-results/src/index.js.map",
|
|
19
|
+
"sha256": "sha256:4f2b1dd5e99ce26435d145eb4516eaf770f029a297fdd7bec647c01f24684b3e"
|
|
20
|
+
},
|
|
5
21
|
{
|
|
6
22
|
"path": "dist/contracts/agent-readiness/src/authority.d.ts",
|
|
7
23
|
"sha256": "sha256:f543c704057c4fa951ac135a871697121252fb65d51827f60f96d749568476cb"
|
|
@@ -164,19 +180,19 @@
|
|
|
164
180
|
},
|
|
165
181
|
{
|
|
166
182
|
"path": "dist/contracts/api/src/index.d.ts",
|
|
167
|
-
"sha256": "sha256:
|
|
183
|
+
"sha256": "sha256:749dcf39623408581a212657d96efa57e1dcbe0bdbb870b918f040ef097b01e4"
|
|
168
184
|
},
|
|
169
185
|
{
|
|
170
186
|
"path": "dist/contracts/api/src/index.d.ts.map",
|
|
171
|
-
"sha256": "sha256:
|
|
187
|
+
"sha256": "sha256:bf8ab85de5f158b6362386b2340e1b8f87e97ceb533130436911ed0f4bc4be0a"
|
|
172
188
|
},
|
|
173
189
|
{
|
|
174
190
|
"path": "dist/contracts/api/src/index.js",
|
|
175
|
-
"sha256": "sha256:
|
|
191
|
+
"sha256": "sha256:24c9a1cdbb2429355eacda17f103dfc73a79e953e6cfc8832c7eee446f1380f8"
|
|
176
192
|
},
|
|
177
193
|
{
|
|
178
194
|
"path": "dist/contracts/api/src/index.js.map",
|
|
179
|
-
"sha256": "sha256:
|
|
195
|
+
"sha256": "sha256:9d8a5dda6d799c3db5848496b86b4ad3dc1c43c5965312cb0092ef10c73012a3"
|
|
180
196
|
},
|
|
181
197
|
{
|
|
182
198
|
"path": "dist/contracts/artifact/src/distribution.d.ts",
|
|
@@ -372,19 +388,19 @@
|
|
|
372
388
|
},
|
|
373
389
|
{
|
|
374
390
|
"path": "dist/contracts/company-standing/src/index.d.ts",
|
|
375
|
-
"sha256": "sha256:
|
|
391
|
+
"sha256": "sha256:4dea6429f1e8baed79847d58f76393e27a08b5d8716eb1918f394ec657f061be"
|
|
376
392
|
},
|
|
377
393
|
{
|
|
378
394
|
"path": "dist/contracts/company-standing/src/index.d.ts.map",
|
|
379
|
-
"sha256": "sha256:
|
|
395
|
+
"sha256": "sha256:bba804a26cf673c9e8e14a62da38ddd5a2980d316f9d26748c243d91227d76fc"
|
|
380
396
|
},
|
|
381
397
|
{
|
|
382
398
|
"path": "dist/contracts/company-standing/src/index.js",
|
|
383
|
-
"sha256": "sha256:
|
|
399
|
+
"sha256": "sha256:7c5e987be08d279b5934b21874749ebd24dc20f9d131b8d321f4a8715f047ec3"
|
|
384
400
|
},
|
|
385
401
|
{
|
|
386
402
|
"path": "dist/contracts/company-standing/src/index.js.map",
|
|
387
|
-
"sha256": "sha256:
|
|
403
|
+
"sha256": "sha256:77f104ce25f05ad1731dddf3e625339818d87499079109ae40b4e7d881fe2b9d"
|
|
388
404
|
},
|
|
389
405
|
{
|
|
390
406
|
"path": "dist/contracts/company-verification/src/index.d.ts",
|
|
@@ -644,19 +660,19 @@
|
|
|
644
660
|
},
|
|
645
661
|
{
|
|
646
662
|
"path": "dist/contracts/startup-credits-commercial/src/index.d.ts",
|
|
647
|
-
"sha256": "sha256:
|
|
663
|
+
"sha256": "sha256:7a5fe2cc97257df65b98e867476048481f812a355b7ab1cf4a5104e51bf421f6"
|
|
648
664
|
},
|
|
649
665
|
{
|
|
650
666
|
"path": "dist/contracts/startup-credits-commercial/src/index.d.ts.map",
|
|
651
|
-
"sha256": "sha256:
|
|
667
|
+
"sha256": "sha256:d5e6995f232d901582ce95472653fd7b19e23db329c6869fa44bcac2731ddf50"
|
|
652
668
|
},
|
|
653
669
|
{
|
|
654
670
|
"path": "dist/contracts/startup-credits-commercial/src/index.js",
|
|
655
|
-
"sha256": "sha256:
|
|
671
|
+
"sha256": "sha256:53e5dd50b5d43416c20bc1dabfbff99d726046aa8a92bf3f70b17c5bed781622"
|
|
656
672
|
},
|
|
657
673
|
{
|
|
658
674
|
"path": "dist/contracts/startup-credits-commercial/src/index.js.map",
|
|
659
|
-
"sha256": "sha256:
|
|
675
|
+
"sha256": "sha256:a1faed1e4e1b758ca40aa9a62da90596dd85ebd602f16b4a1b35f4f0fed69b78"
|
|
660
676
|
},
|
|
661
677
|
{
|
|
662
678
|
"path": "dist/contracts/taxonomy/src/index.d.ts",
|
|
@@ -1860,11 +1876,11 @@
|
|
|
1860
1876
|
},
|
|
1861
1877
|
{
|
|
1862
1878
|
"path": "dist/modules/publication-instance/src/index.d.ts",
|
|
1863
|
-
"sha256": "sha256:
|
|
1879
|
+
"sha256": "sha256:23987dedc02a9a7d940ed0ad3d80ea10833fc2ebe3af7f26affecb937a96c6e0"
|
|
1864
1880
|
},
|
|
1865
1881
|
{
|
|
1866
1882
|
"path": "dist/modules/publication-instance/src/index.d.ts.map",
|
|
1867
|
-
"sha256": "sha256:
|
|
1883
|
+
"sha256": "sha256:f10ea7b676fc06914b593aa9993a711e49d62be603e9fec389e61881d114c39f"
|
|
1868
1884
|
},
|
|
1869
1885
|
{
|
|
1870
1886
|
"path": "dist/modules/publication-instance/src/index.js",
|
|
@@ -2211,5 +2227,5 @@
|
|
|
2211
2227
|
"sha256": "sha256:cec1e15c14a9958a061bcea4ac0bad33e10242994c25556c1ec952b52ef2735e"
|
|
2212
2228
|
}
|
|
2213
2229
|
],
|
|
2214
|
-
"closure_digest": "sha256:
|
|
2230
|
+
"closure_digest": "sha256:4be42ed7cdd97cf53a8cfb5ba91a6030bbf9871ae9c75e1eecdaef9b25d5e046"
|
|
2215
2231
|
}
|
package/THIRD_PARTY_NOTICES.json
CHANGED
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "provenry",
|
|
40
|
-
"version": "0.2.
|
|
40
|
+
"version": "0.2.1",
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"resolved": "https://registry.npmjs.org/provenry/-/provenry-0.2.
|
|
43
|
-
"integrity": "sha512
|
|
42
|
+
"resolved": "https://registry.npmjs.org/provenry/-/provenry-0.2.1.tgz",
|
|
43
|
+
"integrity": "sha512-3qpNxUpQ8CxsaD8YrYj7z6Le/YGdM1fpx4gVwWJBOBhlYosEAExGYIvXNBpRJ6jEU6MisAj70LNK5LEIJBGypA==",
|
|
44
44
|
"lock_path": "node_modules/provenry",
|
|
45
45
|
"license_files": [
|
|
46
46
|
{
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const startupCreditsAdmissionReportCoreSchema: z.ZodObject<{
|
|
3
|
+
report_contract: z.ZodLiteral<"sourcey.startup-credits-admission-report/v1alpha1">;
|
|
4
|
+
repository: z.ZodString;
|
|
5
|
+
pull_request_number: z.ZodNumber;
|
|
6
|
+
base_sha: z.ZodString;
|
|
7
|
+
head_sha: z.ZodString;
|
|
8
|
+
source_tree: z.ZodString;
|
|
9
|
+
change_tree: z.ZodString;
|
|
10
|
+
live_source_commit: z.ZodString;
|
|
11
|
+
live_parent_release_id: z.ZodString;
|
|
12
|
+
evaluated_at: z.ZodISODateTime;
|
|
13
|
+
changed_files: z.ZodArray<z.ZodString>;
|
|
14
|
+
subjects: z.ZodArray<z.ZodObject<{
|
|
15
|
+
kind: z.ZodEnum<{
|
|
16
|
+
entity: "entity";
|
|
17
|
+
offer: "offer";
|
|
18
|
+
program: "program";
|
|
19
|
+
}>;
|
|
20
|
+
entity_id: z.ZodString;
|
|
21
|
+
program_id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
offer_id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
label: z.ZodString;
|
|
24
|
+
revision_digest: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
candidate_domains: z.ZodArray<z.ZodString>;
|
|
27
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
28
|
+
subject_revision_digest: z.ZodString;
|
|
29
|
+
source_id: z.ZodString;
|
|
30
|
+
requested_url: z.ZodURL;
|
|
31
|
+
final_url: z.ZodNullable<z.ZodURL>;
|
|
32
|
+
final_host: z.ZodNullable<z.ZodString>;
|
|
33
|
+
authority: z.ZodEnum<{
|
|
34
|
+
ambiguous: "ambiguous";
|
|
35
|
+
canonical: "canonical";
|
|
36
|
+
inert: "inert";
|
|
37
|
+
}>;
|
|
38
|
+
capture_status: z.ZodEnum<{
|
|
39
|
+
anomaly: "anomaly";
|
|
40
|
+
captured: "captured";
|
|
41
|
+
not_attempted: "not_attempted";
|
|
42
|
+
retryable_failure: "retryable_failure";
|
|
43
|
+
terminal_failure: "terminal_failure";
|
|
44
|
+
}>;
|
|
45
|
+
response_status_code: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
capture_digest: z.ZodNullable<z.ZodString>;
|
|
47
|
+
normalized_object_digest: z.ZodNullable<z.ZodString>;
|
|
48
|
+
}, z.core.$strict>>;
|
|
49
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
50
|
+
subject_revision_digest: z.ZodString;
|
|
51
|
+
path: z.ZodString;
|
|
52
|
+
status: z.ZodEnum<{
|
|
53
|
+
contradicted: "contradicted";
|
|
54
|
+
supported: "supported";
|
|
55
|
+
unresolved: "unresolved";
|
|
56
|
+
unsupported: "unsupported";
|
|
57
|
+
}>;
|
|
58
|
+
guidance: z.ZodString;
|
|
59
|
+
result_digest: z.ZodString;
|
|
60
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
61
|
+
source_id: z.ZodString;
|
|
62
|
+
binding_digest: z.ZodString;
|
|
63
|
+
locators: z.ZodArray<z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"utf8-range">;
|
|
65
|
+
start_byte: z.ZodNumber;
|
|
66
|
+
end_byte: z.ZodNumber;
|
|
67
|
+
value_digest: z.ZodString;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
residue_codes: z.ZodArray<z.ZodString>;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
73
|
+
kind: z.ZodString;
|
|
74
|
+
strength: z.ZodEnum<{
|
|
75
|
+
ambiguous: "ambiguous";
|
|
76
|
+
exact: "exact";
|
|
77
|
+
}>;
|
|
78
|
+
key_digest: z.ZodString;
|
|
79
|
+
target_references: z.ZodArray<z.ZodString>;
|
|
80
|
+
source_references: z.ZodArray<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
company_admission: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
binding_contract: z.ZodLiteral<"sourcey.company-admission-binding/v1alpha1">;
|
|
84
|
+
entity_id: z.ZodString;
|
|
85
|
+
registrable_domain: z.ZodString;
|
|
86
|
+
official_source_url: z.ZodURL;
|
|
87
|
+
route: z.ZodEnum<{
|
|
88
|
+
free_machine_review: "free_machine_review";
|
|
89
|
+
human_verification_required: "human_verification_required";
|
|
90
|
+
}>;
|
|
91
|
+
result_digest: z.ZodString;
|
|
92
|
+
evidence_digest: z.ZodString;
|
|
93
|
+
policy_digest: z.ZodString;
|
|
94
|
+
expires_at: z.ZodISODateTime;
|
|
95
|
+
verification_digest: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
outcome: z.ZodEnum<{
|
|
98
|
+
auto_admissible: "auto_admissible";
|
|
99
|
+
human_review_required: "human_review_required";
|
|
100
|
+
needs_revision: "needs_revision";
|
|
101
|
+
rejected: "rejected";
|
|
102
|
+
temporarily_unavailable: "temporarily_unavailable";
|
|
103
|
+
}>;
|
|
104
|
+
reason_codes: z.ZodArray<z.ZodString>;
|
|
105
|
+
retryable: z.ZodBoolean;
|
|
106
|
+
next_action: z.ZodEnum<{
|
|
107
|
+
merge: "merge";
|
|
108
|
+
retry: "retry";
|
|
109
|
+
review: "review";
|
|
110
|
+
revise: "revise";
|
|
111
|
+
stop: "stop";
|
|
112
|
+
}>;
|
|
113
|
+
model_effects: z.ZodArray<z.ZodObject<{
|
|
114
|
+
provider: z.ZodString;
|
|
115
|
+
model: z.ZodString;
|
|
116
|
+
receipt_digest: z.ZodString;
|
|
117
|
+
spend_microusd: z.ZodNumber;
|
|
118
|
+
cached: z.ZodBoolean;
|
|
119
|
+
uses: z.ZodArray<z.ZodObject<{
|
|
120
|
+
subject_revision_digest: z.ZodString;
|
|
121
|
+
source_id: z.ZodString;
|
|
122
|
+
}, z.core.$strict>>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
authority: z.ZodObject<{
|
|
125
|
+
machine_policy_digest: z.ZodString;
|
|
126
|
+
coverage_policy_digest: z.ZodString;
|
|
127
|
+
evaluator_digest: z.ZodString;
|
|
128
|
+
input_digest: z.ZodNullable<z.ZodString>;
|
|
129
|
+
result_digest: z.ZodNullable<z.ZodString>;
|
|
130
|
+
execution_receipt_digest: z.ZodNullable<z.ZodString>;
|
|
131
|
+
admission_artifact_digest: z.ZodNullable<z.ZodString>;
|
|
132
|
+
admission_candidate_url: z.ZodNullable<z.ZodURL>;
|
|
133
|
+
evidence_authority_set_digest: z.ZodNullable<z.ZodString>;
|
|
134
|
+
asset_authority_bundle_digest: z.ZodNullable<z.ZodString>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
declare const startupCreditsAdmissionReportSchema: z.ZodObject<{
|
|
138
|
+
report_contract: z.ZodLiteral<"sourcey.startup-credits-admission-report/v1alpha1">;
|
|
139
|
+
repository: z.ZodString;
|
|
140
|
+
pull_request_number: z.ZodNumber;
|
|
141
|
+
base_sha: z.ZodString;
|
|
142
|
+
head_sha: z.ZodString;
|
|
143
|
+
source_tree: z.ZodString;
|
|
144
|
+
change_tree: z.ZodString;
|
|
145
|
+
live_source_commit: z.ZodString;
|
|
146
|
+
live_parent_release_id: z.ZodString;
|
|
147
|
+
evaluated_at: z.ZodISODateTime;
|
|
148
|
+
changed_files: z.ZodArray<z.ZodString>;
|
|
149
|
+
subjects: z.ZodArray<z.ZodObject<{
|
|
150
|
+
kind: z.ZodEnum<{
|
|
151
|
+
entity: "entity";
|
|
152
|
+
offer: "offer";
|
|
153
|
+
program: "program";
|
|
154
|
+
}>;
|
|
155
|
+
entity_id: z.ZodString;
|
|
156
|
+
program_id: z.ZodNullable<z.ZodString>;
|
|
157
|
+
offer_id: z.ZodNullable<z.ZodString>;
|
|
158
|
+
label: z.ZodString;
|
|
159
|
+
revision_digest: z.ZodNullable<z.ZodString>;
|
|
160
|
+
}, z.core.$strict>>;
|
|
161
|
+
candidate_domains: z.ZodArray<z.ZodString>;
|
|
162
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
163
|
+
subject_revision_digest: z.ZodString;
|
|
164
|
+
source_id: z.ZodString;
|
|
165
|
+
requested_url: z.ZodURL;
|
|
166
|
+
final_url: z.ZodNullable<z.ZodURL>;
|
|
167
|
+
final_host: z.ZodNullable<z.ZodString>;
|
|
168
|
+
authority: z.ZodEnum<{
|
|
169
|
+
ambiguous: "ambiguous";
|
|
170
|
+
canonical: "canonical";
|
|
171
|
+
inert: "inert";
|
|
172
|
+
}>;
|
|
173
|
+
capture_status: z.ZodEnum<{
|
|
174
|
+
anomaly: "anomaly";
|
|
175
|
+
captured: "captured";
|
|
176
|
+
not_attempted: "not_attempted";
|
|
177
|
+
retryable_failure: "retryable_failure";
|
|
178
|
+
terminal_failure: "terminal_failure";
|
|
179
|
+
}>;
|
|
180
|
+
response_status_code: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
capture_digest: z.ZodNullable<z.ZodString>;
|
|
182
|
+
normalized_object_digest: z.ZodNullable<z.ZodString>;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
185
|
+
subject_revision_digest: z.ZodString;
|
|
186
|
+
path: z.ZodString;
|
|
187
|
+
status: z.ZodEnum<{
|
|
188
|
+
contradicted: "contradicted";
|
|
189
|
+
supported: "supported";
|
|
190
|
+
unresolved: "unresolved";
|
|
191
|
+
unsupported: "unsupported";
|
|
192
|
+
}>;
|
|
193
|
+
guidance: z.ZodString;
|
|
194
|
+
result_digest: z.ZodString;
|
|
195
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
196
|
+
source_id: z.ZodString;
|
|
197
|
+
binding_digest: z.ZodString;
|
|
198
|
+
locators: z.ZodArray<z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"utf8-range">;
|
|
200
|
+
start_byte: z.ZodNumber;
|
|
201
|
+
end_byte: z.ZodNumber;
|
|
202
|
+
value_digest: z.ZodString;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
}, z.core.$strict>>;
|
|
205
|
+
residue_codes: z.ZodArray<z.ZodString>;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
208
|
+
kind: z.ZodString;
|
|
209
|
+
strength: z.ZodEnum<{
|
|
210
|
+
ambiguous: "ambiguous";
|
|
211
|
+
exact: "exact";
|
|
212
|
+
}>;
|
|
213
|
+
key_digest: z.ZodString;
|
|
214
|
+
target_references: z.ZodArray<z.ZodString>;
|
|
215
|
+
source_references: z.ZodArray<z.ZodString>;
|
|
216
|
+
}, z.core.$strict>>;
|
|
217
|
+
company_admission: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
binding_contract: z.ZodLiteral<"sourcey.company-admission-binding/v1alpha1">;
|
|
219
|
+
entity_id: z.ZodString;
|
|
220
|
+
registrable_domain: z.ZodString;
|
|
221
|
+
official_source_url: z.ZodURL;
|
|
222
|
+
route: z.ZodEnum<{
|
|
223
|
+
free_machine_review: "free_machine_review";
|
|
224
|
+
human_verification_required: "human_verification_required";
|
|
225
|
+
}>;
|
|
226
|
+
result_digest: z.ZodString;
|
|
227
|
+
evidence_digest: z.ZodString;
|
|
228
|
+
policy_digest: z.ZodString;
|
|
229
|
+
expires_at: z.ZodISODateTime;
|
|
230
|
+
verification_digest: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strict>>;
|
|
232
|
+
outcome: z.ZodEnum<{
|
|
233
|
+
auto_admissible: "auto_admissible";
|
|
234
|
+
human_review_required: "human_review_required";
|
|
235
|
+
needs_revision: "needs_revision";
|
|
236
|
+
rejected: "rejected";
|
|
237
|
+
temporarily_unavailable: "temporarily_unavailable";
|
|
238
|
+
}>;
|
|
239
|
+
reason_codes: z.ZodArray<z.ZodString>;
|
|
240
|
+
retryable: z.ZodBoolean;
|
|
241
|
+
next_action: z.ZodEnum<{
|
|
242
|
+
merge: "merge";
|
|
243
|
+
retry: "retry";
|
|
244
|
+
review: "review";
|
|
245
|
+
revise: "revise";
|
|
246
|
+
stop: "stop";
|
|
247
|
+
}>;
|
|
248
|
+
model_effects: z.ZodArray<z.ZodObject<{
|
|
249
|
+
provider: z.ZodString;
|
|
250
|
+
model: z.ZodString;
|
|
251
|
+
receipt_digest: z.ZodString;
|
|
252
|
+
spend_microusd: z.ZodNumber;
|
|
253
|
+
cached: z.ZodBoolean;
|
|
254
|
+
uses: z.ZodArray<z.ZodObject<{
|
|
255
|
+
subject_revision_digest: z.ZodString;
|
|
256
|
+
source_id: z.ZodString;
|
|
257
|
+
}, z.core.$strict>>;
|
|
258
|
+
}, z.core.$strict>>;
|
|
259
|
+
authority: z.ZodObject<{
|
|
260
|
+
machine_policy_digest: z.ZodString;
|
|
261
|
+
coverage_policy_digest: z.ZodString;
|
|
262
|
+
evaluator_digest: z.ZodString;
|
|
263
|
+
input_digest: z.ZodNullable<z.ZodString>;
|
|
264
|
+
result_digest: z.ZodNullable<z.ZodString>;
|
|
265
|
+
execution_receipt_digest: z.ZodNullable<z.ZodString>;
|
|
266
|
+
admission_artifact_digest: z.ZodNullable<z.ZodString>;
|
|
267
|
+
admission_candidate_url: z.ZodNullable<z.ZodURL>;
|
|
268
|
+
evidence_authority_set_digest: z.ZodNullable<z.ZodString>;
|
|
269
|
+
asset_authority_bundle_digest: z.ZodNullable<z.ZodString>;
|
|
270
|
+
}, z.core.$strict>;
|
|
271
|
+
report_digest: z.ZodString;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
export type StartupCreditsAdmissionReport = z.infer<typeof startupCreditsAdmissionReportSchema>;
|
|
274
|
+
export declare function createStartupCreditsAdmissionReport(input: z.input<typeof startupCreditsAdmissionReportCoreSchema>): StartupCreditsAdmissionReport;
|
|
275
|
+
/** One thing Sourcey checked on a pull request head, worded for its contributor. */
|
|
276
|
+
export declare const admissionSummaryCheckSchema: z.ZodObject<{
|
|
277
|
+
key: z.ZodEnum<{
|
|
278
|
+
admission: "admission";
|
|
279
|
+
company: "company";
|
|
280
|
+
conflicts: "conflicts";
|
|
281
|
+
facts: "facts";
|
|
282
|
+
files: "files";
|
|
283
|
+
logo: "logo";
|
|
284
|
+
review: "review";
|
|
285
|
+
sources: "sources";
|
|
286
|
+
standing: "standing";
|
|
287
|
+
verification: "verification";
|
|
288
|
+
}>;
|
|
289
|
+
status: z.ZodEnum<{
|
|
290
|
+
attention: "attention";
|
|
291
|
+
failed: "failed";
|
|
292
|
+
passed: "passed";
|
|
293
|
+
pending: "pending";
|
|
294
|
+
}>;
|
|
295
|
+
title: z.ZodString;
|
|
296
|
+
details: z.ZodArray<z.ZodObject<{
|
|
297
|
+
text: z.ZodString;
|
|
298
|
+
path: z.ZodNullable<z.ZodString>;
|
|
299
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
}, z.core.$strict>;
|
|
302
|
+
/**
|
|
303
|
+
* What Sourcey's admission concluded for one exact pull request head, as its contributor reads it
|
|
304
|
+
* on the `sourcey/admission` check and on Sourcey's page for the pull request: one state, what
|
|
305
|
+
* happens next, and every check with what passed and exactly what did not.
|
|
306
|
+
*/
|
|
307
|
+
export declare const admissionSummarySchema: z.ZodObject<{
|
|
308
|
+
summary_contract: z.ZodLiteral<"sourcey.pull-request-admission-summary/v1alpha1">;
|
|
309
|
+
repository: z.ZodString;
|
|
310
|
+
pull_request_number: z.ZodNumber;
|
|
311
|
+
head_sha: z.ZodString;
|
|
312
|
+
state: z.ZodEnum<{
|
|
313
|
+
needs_change: "needs_change";
|
|
314
|
+
needs_person: "needs_person";
|
|
315
|
+
passed: "passed";
|
|
316
|
+
refused: "refused";
|
|
317
|
+
verification_offered: "verification_offered";
|
|
318
|
+
verification_refused: "verification_refused";
|
|
319
|
+
verifying: "verifying";
|
|
320
|
+
}>;
|
|
321
|
+
title: z.ZodString;
|
|
322
|
+
lead: z.ZodString;
|
|
323
|
+
company: z.ZodNullable<z.ZodString>;
|
|
324
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
325
|
+
key: z.ZodEnum<{
|
|
326
|
+
admission: "admission";
|
|
327
|
+
company: "company";
|
|
328
|
+
conflicts: "conflicts";
|
|
329
|
+
facts: "facts";
|
|
330
|
+
files: "files";
|
|
331
|
+
logo: "logo";
|
|
332
|
+
review: "review";
|
|
333
|
+
sources: "sources";
|
|
334
|
+
standing: "standing";
|
|
335
|
+
verification: "verification";
|
|
336
|
+
}>;
|
|
337
|
+
status: z.ZodEnum<{
|
|
338
|
+
attention: "attention";
|
|
339
|
+
failed: "failed";
|
|
340
|
+
passed: "passed";
|
|
341
|
+
pending: "pending";
|
|
342
|
+
}>;
|
|
343
|
+
title: z.ZodString;
|
|
344
|
+
details: z.ZodArray<z.ZodObject<{
|
|
345
|
+
text: z.ZodString;
|
|
346
|
+
path: z.ZodNullable<z.ZodString>;
|
|
347
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
348
|
+
}, z.core.$strict>>;
|
|
349
|
+
}, z.core.$strict>>;
|
|
350
|
+
standing: z.ZodNullable<z.ZodObject<{
|
|
351
|
+
evaluated_at: z.ZodISODateTime;
|
|
352
|
+
rule: z.ZodString;
|
|
353
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
354
|
+
key: z.ZodEnum<{
|
|
355
|
+
certificate_age: "certificate_age";
|
|
356
|
+
domain_age: "domain_age";
|
|
357
|
+
mx: "mx";
|
|
358
|
+
reach: "reach";
|
|
359
|
+
source: "source";
|
|
360
|
+
}>;
|
|
361
|
+
label: z.ZodString;
|
|
362
|
+
value: z.ZodString;
|
|
363
|
+
requirement: z.ZodString;
|
|
364
|
+
met: z.ZodNullable<z.ZodBoolean>;
|
|
365
|
+
}, z.core.$strict>>;
|
|
366
|
+
}, z.core.$strict>>;
|
|
367
|
+
report_url: z.ZodNullable<z.ZodURL>;
|
|
368
|
+
}, z.core.$strict>;
|
|
369
|
+
export type AdmissionSummaryCheck = z.infer<typeof admissionSummaryCheckSchema>;
|
|
370
|
+
export type AdmissionSummary = z.infer<typeof admissionSummarySchema>;
|
|
371
|
+
export declare function verifyStartupCreditsAdmissionReport(input: unknown): StartupCreditsAdmissionReport;
|
|
372
|
+
export {};
|
|
373
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../contracts/admission-results/src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+ExB,QAAA,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsElC,CAAC;AAEZ,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE9B,CAAC;AAEZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,GAC7D,6BAA6B,CAG/B;AAED,oFAAoF;AACpF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;kBA6B7B,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiCxB,CAAC;AAEZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,OAAO,GAAG,6BAA6B,CAOjG"}
|