@tiangong-lca/cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -6
- package/dist/src/batch.d.ts +6 -0
- package/dist/src/batch.js +6 -0
- package/dist/src/batch.js.map +1 -0
- package/dist/src/cli.d.ts +161 -0
- package/dist/src/cli.js +130 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/command-spec.d.ts +90 -0
- package/dist/src/command-spec.js +400 -0
- package/dist/src/command-spec.js.map +1 -0
- package/dist/src/lib/artifacts.d.ts +9 -0
- package/dist/src/lib/auth-identity-receipt.d.ts +160 -0
- package/dist/src/lib/auth-identity-receipt.js +634 -0
- package/dist/src/lib/auth-identity-receipt.js.map +1 -0
- package/dist/src/lib/batch/attempt-recovery.d.ts +12 -0
- package/dist/src/lib/batch/attempt-recovery.js +183 -0
- package/dist/src/lib/batch/attempt-recovery.js.map +1 -0
- package/dist/src/lib/batch/canonical-contracts.d.ts +21 -0
- package/dist/src/lib/batch/canonical-contracts.js +180 -0
- package/dist/src/lib/batch/canonical-contracts.js.map +1 -0
- package/dist/src/lib/batch/engine.d.ts +2 -0
- package/dist/src/lib/batch/engine.js +294 -0
- package/dist/src/lib/batch/engine.js.map +1 -0
- package/dist/src/lib/batch/errors.d.ts +51 -0
- package/dist/src/lib/batch/errors.js +81 -0
- package/dist/src/lib/batch/errors.js.map +1 -0
- package/dist/src/lib/batch/item-projection.d.ts +10 -0
- package/dist/src/lib/batch/item-projection.js +118 -0
- package/dist/src/lib/batch/item-projection.js.map +1 -0
- package/dist/src/lib/batch/run-lock.d.ts +4 -0
- package/dist/src/lib/batch/run-lock.js +155 -0
- package/dist/src/lib/batch/run-lock.js.map +1 -0
- package/dist/src/lib/batch/scheduler-runtime.d.ts +29 -0
- package/dist/src/lib/batch/scheduler-runtime.js +114 -0
- package/dist/src/lib/batch/scheduler-runtime.js.map +1 -0
- package/dist/src/lib/batch/types.d.ts +183 -0
- package/dist/src/lib/batch/types.js +2 -0
- package/dist/src/lib/batch/types.js.map +1 -0
- package/dist/src/lib/dataset-author.d.ts +39 -0
- package/dist/src/lib/dataset-bilingual.d.ts +165 -0
- package/dist/src/lib/dataset-classification.d.ts +279 -0
- package/dist/src/lib/dataset-command.d.ts +53 -0
- package/dist/src/lib/dataset-contract.d.ts +82 -0
- package/dist/src/lib/dataset-curation-queue.d.ts +219 -0
- package/dist/src/lib/dataset-evidence-search.d.ts +134 -0
- package/dist/src/lib/dataset-import-lca.d.ts +136 -0
- package/dist/src/lib/dataset-local.d.ts +23 -0
- package/dist/src/lib/dataset-maintenance-alias-request.d.ts +12 -0
- package/dist/src/lib/dataset-maintenance-alias-rewrite.d.ts +111 -0
- package/dist/src/lib/dataset-maintenance-apply.d.ts +458 -0
- package/dist/src/lib/dataset-maintenance-clear-account.d.ts +161 -0
- package/dist/src/lib/dataset-maintenance-contract.d.ts +317 -0
- package/dist/src/lib/dataset-maintenance-derivatives.d.ts +48 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-approval-claim.d.ts +50 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-capture.d.ts +110 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-command.d.ts +15 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-contract.d.ts +387 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-execution-contract.d.ts +456 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-freeze.d.ts +99 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-plan.d.ts +85 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-recovery.d.ts +268 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-run.d.ts +123 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-seal.d.ts +50 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-verify.d.ts +85 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-wire.d.ts +32 -0
- package/dist/src/lib/dataset-maintenance-pagination.d.ts +58 -0
- package/dist/src/lib/dataset-maintenance-plan.d.ts +40 -0
- package/dist/src/lib/dataset-maintenance-protected-artifacts.d.ts +16 -0
- package/dist/src/lib/dataset-maintenance-protected-before.d.ts +71 -0
- package/dist/src/lib/dataset-maintenance-protected-contract.d.ts +385 -0
- package/dist/src/lib/dataset-maintenance-protected-freeze.d.ts +148 -0
- package/dist/src/lib/dataset-maintenance-protected-preparation.d.ts +76 -0
- package/dist/src/lib/dataset-maintenance-protected-run.d.ts +252 -0
- package/dist/src/lib/dataset-maintenance-protected-seal.d.ts +93 -0
- package/dist/src/lib/dataset-maintenance-protected-toolchain.d.ts +31 -0
- package/dist/src/lib/dataset-maintenance-protected-verify.d.ts +99 -0
- package/dist/src/lib/dataset-maintenance-remote.d.ts +212 -0
- package/dist/src/lib/dataset-maintenance-support-validation.d.ts +18 -0
- package/dist/src/lib/dataset-maintenance-verify.d.ts +102 -0
- package/dist/src/lib/dataset-patch.d.ts +193 -0
- package/dist/src/lib/dataset-references-rewrite.d.ts +77 -0
- package/dist/src/lib/dataset-remote-refresh.d.ts +64 -0
- package/dist/src/lib/dataset-remote-verify.d.ts +168 -0
- package/dist/src/lib/dataset-save-draft-run.d.ts +283 -0
- package/dist/src/lib/dataset-save-draft-run.js +54 -21
- package/dist/src/lib/dataset-save-draft-run.js.map +1 -1
- package/dist/src/lib/dataset-source-upload-attachments.d.ts +109 -0
- package/dist/src/lib/dataset-validate.d.ts +62 -0
- package/dist/src/lib/dotenv.d.ts +6 -0
- package/dist/src/lib/env.d.ts +59 -0
- package/dist/src/lib/errors.d.ts +18 -0
- package/dist/src/lib/flow-build-alias-map.d.ts +80 -0
- package/dist/src/lib/flow-fetch-rows.d.ts +70 -0
- package/dist/src/lib/flow-get.d.ts +35 -0
- package/dist/src/lib/flow-governance.d.ts +22 -0
- package/dist/src/lib/flow-list.d.ts +57 -0
- package/dist/src/lib/flow-materialize-decisions.d.ts +67 -0
- package/dist/src/lib/flow-payload-validation.d.ts +32 -0
- package/dist/src/lib/flow-publish-reviewed-data.d.ts +262 -0
- package/dist/src/lib/flow-publish-version.d.ts +193 -0
- package/dist/src/lib/flow-qa.d.ts +289 -0
- package/dist/src/lib/flow-read.d.ts +70 -0
- package/dist/src/lib/flow-regen-product.d.ts +431 -0
- package/dist/src/lib/flow-remediate.d.ts +133 -0
- package/dist/src/lib/http.d.ts +25 -0
- package/dist/src/lib/http.js.map +1 -1
- package/dist/src/lib/identity-preflight.d.ts +235 -0
- package/dist/src/lib/io.d.ts +2 -0
- package/dist/src/lib/kb-search.d.ts +23 -0
- package/dist/src/lib/lca-release.d.ts +105 -0
- package/dist/src/lib/lifecyclemodel-auto-build.d.ts +223 -0
- package/dist/src/lib/lifecyclemodel-bundle-save.d.ts +71 -0
- package/dist/src/lib/lifecyclemodel-graph.d.ts +91 -0
- package/dist/src/lib/lifecyclemodel-orchestrate.d.ts +349 -0
- package/dist/src/lib/lifecyclemodel-publish-build.d.ts +77 -0
- package/dist/src/lib/lifecyclemodel-publish-resulting-process.d.ts +27 -0
- package/dist/src/lib/lifecyclemodel-qa.d.ts +206 -0
- package/dist/src/lib/lifecyclemodel-resulting-process.d.ts +204 -0
- package/dist/src/lib/lifecyclemodel-save-draft-run.d.ts +96 -0
- package/dist/src/lib/lifecyclemodel-validate-build.d.ts +78 -0
- package/dist/src/lib/llm.d.ts +51 -0
- package/dist/src/lib/package-version.d.ts +3 -0
- package/dist/src/lib/process-auto-build.d.ts +168 -0
- package/dist/src/lib/process-batch-build.d.ts +97 -0
- package/dist/src/lib/process-dedup-review.d.ts +253 -0
- package/dist/src/lib/process-flow-build-plan.d.ts +108 -0
- package/dist/src/lib/process-get.d.ts +26 -0
- package/dist/src/lib/process-list.d.ts +87 -0
- package/dist/src/lib/process-payload-validation.d.ts +27 -0
- package/dist/src/lib/process-publish-build.d.ts +148 -0
- package/dist/src/lib/process-qa.d.ts +243 -0
- package/dist/src/lib/process-refresh-references.d.ts +179 -0
- package/dist/src/lib/process-required-fields.d.ts +142 -0
- package/dist/src/lib/process-resume-build.d.ts +77 -0
- package/dist/src/lib/process-save-draft-run.d.ts +72 -0
- package/dist/src/lib/process-save-draft.d.ts +53 -0
- package/dist/src/lib/process-scope-statistics.d.ts +210 -0
- package/dist/src/lib/process-verify-rows.d.ts +71 -0
- package/dist/src/lib/publish.d.ts +219 -0
- package/dist/src/lib/remote.d.ts +19 -0
- package/dist/src/lib/run.d.ts +60 -0
- package/dist/src/lib/runtime-rulesets.d.ts +29 -0
- package/dist/src/lib/state-lock.d.ts +25 -0
- package/dist/src/lib/state-lock.js +23 -1
- package/dist/src/lib/state-lock.js.map +1 -1
- package/dist/src/lib/supabase-client.d.ts +47 -0
- package/dist/src/lib/supabase-data-api-contract.d.ts +304 -0
- package/dist/src/lib/supabase-data-api-replay.d.ts +74 -0
- package/dist/src/lib/supabase-json-ordered-write.d.ts +65 -0
- package/dist/src/lib/supabase-rest.d.ts +26 -0
- package/dist/src/lib/supabase-session.d.ts +115 -0
- package/dist/src/lib/tidas-languages.d.ts +3 -0
- package/dist/src/lib/tidas-sdk-package-validator.d.ts +111 -0
- package/dist/src/lib/tidas-sdk-validation.d.ts +42 -0
- package/dist/src/lib/unstructured.d.ts +32 -0
- package/dist/src/lib/user-api-key.d.ts +16 -0
- package/dist/src/lib/validation.d.ts +82 -0
- package/dist/src/main.d.ts +4 -0
- package/package.json +17 -3
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { type DatasetMaintenanceRowSnapshot, type JsonObject } from './dataset-maintenance-contract.js';
|
|
2
|
+
import { type StandardStMultiLang } from './dataset-maintenance-flow-identity-wire.js';
|
|
3
|
+
export declare const FLOW_IDENTITY_SOURCE_COUNT = 305;
|
|
4
|
+
export declare const FLOW_IDENTITY_REFERENCE_FIELDS: readonly ['@refObjectId', '@type', '@uri', '@version', 'common:shortDescription'];
|
|
5
|
+
export declare const HISTORICAL_FLOW_IDENTITY_AUTHORITY_SHA256: Set<string>;
|
|
6
|
+
export type FlowIdentityDirection = 'Input' | 'Output';
|
|
7
|
+
export type FlowIdentityDisposition = 'map_public' | 'pending' | 'blocker' | 'orphan';
|
|
8
|
+
export type FlowIdentityArtifactSha256 = string;
|
|
9
|
+
export type FlowIdentityDbOpaqueSha256 = string;
|
|
10
|
+
export type FlowIdentitySharedRequestSha256 = string;
|
|
11
|
+
export type FlowIdentityReference = {
|
|
12
|
+
'@refObjectId': string;
|
|
13
|
+
'@type': 'flow data set';
|
|
14
|
+
'@uri': string;
|
|
15
|
+
'@version': string;
|
|
16
|
+
'common:shortDescription': StandardStMultiLang;
|
|
17
|
+
};
|
|
18
|
+
export type FlowIdentityCompatibilityPolicy = {
|
|
19
|
+
schema_version: 'dataset-flow-identity-compatibility-policy.v1';
|
|
20
|
+
policy_sha256: string;
|
|
21
|
+
evidence_resolution_sha256: string;
|
|
22
|
+
approved_at_utc: string;
|
|
23
|
+
approval_text_sha256: string;
|
|
24
|
+
};
|
|
25
|
+
export type FlowIdentityReviewEntry = {
|
|
26
|
+
source: {
|
|
27
|
+
id: string;
|
|
28
|
+
version: string;
|
|
29
|
+
};
|
|
30
|
+
disposition: FlowIdentityDisposition;
|
|
31
|
+
target: {
|
|
32
|
+
id: string;
|
|
33
|
+
version: string;
|
|
34
|
+
reference: FlowIdentityReference;
|
|
35
|
+
} | null;
|
|
36
|
+
allowed_directions: FlowIdentityDirection[];
|
|
37
|
+
source_trace_sha256: string;
|
|
38
|
+
compartment_evidence_sha256: string;
|
|
39
|
+
decision_evidence_sha256: string;
|
|
40
|
+
};
|
|
41
|
+
export type FlowIdentityReviewLedger = {
|
|
42
|
+
schema_version: 'dataset-flow-identity-review-ledger.v3';
|
|
43
|
+
generated_at_utc: string;
|
|
44
|
+
source_count: 305;
|
|
45
|
+
review_evidence_sha256: string;
|
|
46
|
+
execution_authority: false;
|
|
47
|
+
entries: FlowIdentityReviewEntry[];
|
|
48
|
+
ledger_sha256: string;
|
|
49
|
+
};
|
|
50
|
+
export type FlowIdentityCaptureAttestation = {
|
|
51
|
+
ok: true;
|
|
52
|
+
command: 'cmd_dataset_flow_identity_capture_attest_guarded';
|
|
53
|
+
schema_version: 'dataset-flow-identity-capture-attest-result.v2';
|
|
54
|
+
proof_domain: 'dataset-flow-identity-db-proof.v2';
|
|
55
|
+
receipt_id: string;
|
|
56
|
+
receipt_proof_sha256: FlowIdentityDbOpaqueSha256;
|
|
57
|
+
operation_id: string;
|
|
58
|
+
environment: 'production' | 'preview' | 'local';
|
|
59
|
+
project_ref: string;
|
|
60
|
+
captured_at: string;
|
|
61
|
+
expires_at: string;
|
|
62
|
+
source_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
63
|
+
support_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
64
|
+
target_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
65
|
+
mapping_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
66
|
+
process_intent_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
67
|
+
protected_closure_sha256: FlowIdentityDbOpaqueSha256;
|
|
68
|
+
whole_scope_proof_sha256: FlowIdentityDbOpaqueSha256;
|
|
69
|
+
policy_sha256: FlowIdentityDbOpaqueSha256;
|
|
70
|
+
policy_approval_text_sha256: FlowIdentityDbOpaqueSha256;
|
|
71
|
+
source_count: 305;
|
|
72
|
+
target_count: number;
|
|
73
|
+
support_count: number;
|
|
74
|
+
mapping_count: number;
|
|
75
|
+
process_count: number;
|
|
76
|
+
rewrite_count: number;
|
|
77
|
+
capture_request_sha256: FlowIdentitySharedRequestSha256;
|
|
78
|
+
replay: boolean;
|
|
79
|
+
};
|
|
80
|
+
export type FlowIdentityCaptureRequest = {
|
|
81
|
+
schema_version: 'dataset-flow-identity-capture-attest.v2';
|
|
82
|
+
request_id: string;
|
|
83
|
+
environment: 'production' | 'preview' | 'local';
|
|
84
|
+
project_ref: string;
|
|
85
|
+
actor: {
|
|
86
|
+
user_id: string;
|
|
87
|
+
email: string;
|
|
88
|
+
};
|
|
89
|
+
target_visibility: 'owner_draft';
|
|
90
|
+
operation_id: string;
|
|
91
|
+
compatibility_policy: FlowIdentityCompatibilityPolicy;
|
|
92
|
+
artifact_evidence: {
|
|
93
|
+
review_ledger_sha256: FlowIdentityArtifactSha256;
|
|
94
|
+
live_capture_artifact_sha256: FlowIdentityArtifactSha256;
|
|
95
|
+
toolchain_evidence_sha256: FlowIdentityArtifactSha256;
|
|
96
|
+
};
|
|
97
|
+
mappings: JsonObject[];
|
|
98
|
+
process_intents: JsonObject[];
|
|
99
|
+
protected_closure: JsonObject;
|
|
100
|
+
};
|
|
101
|
+
export type FlowIdentityCaptureCompleteness = {
|
|
102
|
+
schema_version: 'dataset-flow-identity-capture-completeness.v2';
|
|
103
|
+
source_count: 305;
|
|
104
|
+
target_count: number;
|
|
105
|
+
support_count: number;
|
|
106
|
+
owner_draft_process_count: number;
|
|
107
|
+
owner_draft_process_scan: JsonObject;
|
|
108
|
+
};
|
|
109
|
+
export type FlowIdentityLiveCapture = {
|
|
110
|
+
schema_version: 'dataset-flow-identity-live-capture.v2';
|
|
111
|
+
captured_at_utc: string;
|
|
112
|
+
environment: 'production' | 'preview' | 'local';
|
|
113
|
+
project_ref: string;
|
|
114
|
+
account: {
|
|
115
|
+
user_id: string;
|
|
116
|
+
email: string;
|
|
117
|
+
};
|
|
118
|
+
prerequisites: {
|
|
119
|
+
step2_readback_sha256: string;
|
|
120
|
+
step2_completed_at_utc: string;
|
|
121
|
+
issue29_target1_readback_sha256: string;
|
|
122
|
+
issue29_target1_completed_at_utc: string;
|
|
123
|
+
issue29_target2_readback_sha256: string;
|
|
124
|
+
issue29_target2_completed_at_utc: string;
|
|
125
|
+
};
|
|
126
|
+
sdk: {
|
|
127
|
+
package: '@tiangong-lca/tidas-sdk';
|
|
128
|
+
version: string;
|
|
129
|
+
};
|
|
130
|
+
artifact_evidence: {
|
|
131
|
+
review_ledger_sha256: FlowIdentityArtifactSha256;
|
|
132
|
+
live_capture_artifact_sha256: FlowIdentityArtifactSha256;
|
|
133
|
+
toolchain_evidence_sha256: FlowIdentityArtifactSha256;
|
|
134
|
+
};
|
|
135
|
+
completeness: FlowIdentityCaptureCompleteness;
|
|
136
|
+
source_rows: DatasetMaintenanceRowSnapshot[];
|
|
137
|
+
target_rows: DatasetMaintenanceRowSnapshot[];
|
|
138
|
+
support_rows: DatasetMaintenanceRowSnapshot[];
|
|
139
|
+
process_rows: DatasetMaintenanceRowSnapshot[];
|
|
140
|
+
capture_request: FlowIdentityCaptureRequest;
|
|
141
|
+
attestation: FlowIdentityCaptureAttestation;
|
|
142
|
+
capture_artifact_sha256: FlowIdentityArtifactSha256;
|
|
143
|
+
};
|
|
144
|
+
export type FlowIdentityMappingEndpoint = {
|
|
145
|
+
id: string;
|
|
146
|
+
version: string;
|
|
147
|
+
user_id: string;
|
|
148
|
+
state_code: number;
|
|
149
|
+
modified_at: string;
|
|
150
|
+
payload_sha256: string;
|
|
151
|
+
row_sha256: string;
|
|
152
|
+
flow_type: 'Elementary flow';
|
|
153
|
+
flow_property_id: string;
|
|
154
|
+
flow_property_version: string;
|
|
155
|
+
unit_group_id: string;
|
|
156
|
+
unit_group_version: string;
|
|
157
|
+
category_path_sha256: string;
|
|
158
|
+
};
|
|
159
|
+
export type FlowIdentityMapping = {
|
|
160
|
+
ordinal: number;
|
|
161
|
+
mapping_id: string;
|
|
162
|
+
source: FlowIdentityMappingEndpoint & {
|
|
163
|
+
source_trace_sha256: string;
|
|
164
|
+
};
|
|
165
|
+
target: FlowIdentityMappingEndpoint & {
|
|
166
|
+
reference: FlowIdentityReference;
|
|
167
|
+
};
|
|
168
|
+
compatibility: {
|
|
169
|
+
policy_sha256: string;
|
|
170
|
+
mode: 'identity';
|
|
171
|
+
confidence: 'approved';
|
|
172
|
+
flow_property_compatible: true;
|
|
173
|
+
unit_group_compatible: true;
|
|
174
|
+
direction_compatible: true;
|
|
175
|
+
compartment_compatible: true;
|
|
176
|
+
conversion_factor: '1';
|
|
177
|
+
evidence_sha256: string;
|
|
178
|
+
flow_schema: {
|
|
179
|
+
status: 'pass' | 'legacy_warning';
|
|
180
|
+
warning_set_sha256: string;
|
|
181
|
+
};
|
|
182
|
+
process_schema_required: 'pass';
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export type FlowIdentitySupportSnapshot = {
|
|
186
|
+
ordinal: number;
|
|
187
|
+
table: 'flowproperties' | 'unitgroups';
|
|
188
|
+
id: string;
|
|
189
|
+
version: string;
|
|
190
|
+
user_id: string;
|
|
191
|
+
state_code: 0 | 100;
|
|
192
|
+
modified_at: string;
|
|
193
|
+
payload_sha256: string;
|
|
194
|
+
row_sha256: string;
|
|
195
|
+
};
|
|
196
|
+
export type FlowIdentityProcessManifest = {
|
|
197
|
+
ordinal: number;
|
|
198
|
+
id: string;
|
|
199
|
+
version: string;
|
|
200
|
+
user_id: string;
|
|
201
|
+
state_code: 0;
|
|
202
|
+
modified_at: string;
|
|
203
|
+
model_id: string | null;
|
|
204
|
+
rule_verification: boolean | null;
|
|
205
|
+
before_row_sha256: string;
|
|
206
|
+
before_payload_sha256: string;
|
|
207
|
+
before_exchange_set_sha256: string;
|
|
208
|
+
before_exchange_count: number;
|
|
209
|
+
desired_payload_sha256: string;
|
|
210
|
+
desired_exchange_set_sha256: string;
|
|
211
|
+
rewrite_count: number;
|
|
212
|
+
process_template_sha256: string;
|
|
213
|
+
rewrite_set_sha256: string;
|
|
214
|
+
collision_ledger_sha256: string;
|
|
215
|
+
process_schema: {
|
|
216
|
+
status: 'pass';
|
|
217
|
+
evidence_sha256: string;
|
|
218
|
+
};
|
|
219
|
+
pending_blocker_closure_sha256: string;
|
|
220
|
+
};
|
|
221
|
+
export type FlowIdentityRewrite = {
|
|
222
|
+
ordinal: number;
|
|
223
|
+
exchange_index: number;
|
|
224
|
+
internal_id: string;
|
|
225
|
+
direction: FlowIdentityDirection;
|
|
226
|
+
mapping_id: string;
|
|
227
|
+
source_reference: FlowIdentityReference;
|
|
228
|
+
target_reference: FlowIdentityReference;
|
|
229
|
+
before_reference_sha256: string;
|
|
230
|
+
after_reference_sha256: string;
|
|
231
|
+
};
|
|
232
|
+
export type FlowIdentityCollisionEntry = {
|
|
233
|
+
target_id: string;
|
|
234
|
+
target_version: string;
|
|
235
|
+
exchange_indexes: number[];
|
|
236
|
+
internal_ids: Array<string | null>;
|
|
237
|
+
mapping_ids: Array<string | null>;
|
|
238
|
+
preserve_rows: true;
|
|
239
|
+
};
|
|
240
|
+
export type FlowIdentityCollisionLedger = {
|
|
241
|
+
schema_version: 'dataset-flow-identity-collision-ledger.v1';
|
|
242
|
+
entries: FlowIdentityCollisionEntry[];
|
|
243
|
+
};
|
|
244
|
+
export type FlowIdentityOccurrence = {
|
|
245
|
+
process_id: string;
|
|
246
|
+
process_version: string;
|
|
247
|
+
exchange_index: number;
|
|
248
|
+
internal_id: string;
|
|
249
|
+
direction: FlowIdentityDirection;
|
|
250
|
+
reference_sha256: string;
|
|
251
|
+
};
|
|
252
|
+
export type FlowIdentityProtectedReferenceEntry = {
|
|
253
|
+
source_id: string;
|
|
254
|
+
source_version: string;
|
|
255
|
+
expected_reference_count: number;
|
|
256
|
+
occurrences: FlowIdentityOccurrence[];
|
|
257
|
+
occurrence_set_sha256: string;
|
|
258
|
+
evidence_sha256: string;
|
|
259
|
+
};
|
|
260
|
+
export type FlowIdentityProtectedOrphanEntry = {
|
|
261
|
+
source_id: string;
|
|
262
|
+
source_version: string;
|
|
263
|
+
evidence_sha256: string;
|
|
264
|
+
};
|
|
265
|
+
export type FlowIdentityProtectedClosure = {
|
|
266
|
+
schema_version: 'dataset-flow-identity-protected-closure.v1';
|
|
267
|
+
pending: FlowIdentityProtectedReferenceEntry[];
|
|
268
|
+
blockers: FlowIdentityProtectedReferenceEntry[];
|
|
269
|
+
orphans: FlowIdentityProtectedOrphanEntry[];
|
|
270
|
+
pending_set_sha256: string;
|
|
271
|
+
blocker_set_sha256: string;
|
|
272
|
+
orphan_set_sha256: string;
|
|
273
|
+
total_expected_reference_count: number;
|
|
274
|
+
};
|
|
275
|
+
export type FlowIdentityProcessTemplate = {
|
|
276
|
+
process: FlowIdentityProcessManifest;
|
|
277
|
+
rewrites: FlowIdentityRewrite[];
|
|
278
|
+
collision_ledger: FlowIdentityCollisionLedger;
|
|
279
|
+
desired_payload: JsonObject;
|
|
280
|
+
};
|
|
281
|
+
export type FlowIdentityPlan = {
|
|
282
|
+
schema_version: 'dataset-flow-identity-plan.v2';
|
|
283
|
+
generated_at_utc: string;
|
|
284
|
+
environment: FlowIdentityLiveCapture['environment'];
|
|
285
|
+
project_ref: string;
|
|
286
|
+
account: FlowIdentityLiveCapture['account'];
|
|
287
|
+
operation_id: string;
|
|
288
|
+
status: 'ready';
|
|
289
|
+
target_visibility: 'owner_draft';
|
|
290
|
+
review_ledger_sha256: string;
|
|
291
|
+
capture_artifact_sha256: FlowIdentityArtifactSha256;
|
|
292
|
+
receipt_id: string;
|
|
293
|
+
receipt_proof_sha256: FlowIdentityDbOpaqueSha256;
|
|
294
|
+
capture_request_sha256: FlowIdentitySharedRequestSha256;
|
|
295
|
+
source_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
296
|
+
support_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
297
|
+
target_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
298
|
+
mapping_guard_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
299
|
+
process_intent_set_sha256: FlowIdentityDbOpaqueSha256;
|
|
300
|
+
receipt_protected_closure_sha256: FlowIdentityDbOpaqueSha256;
|
|
301
|
+
capture_whole_scope_proof_sha256: FlowIdentityDbOpaqueSha256;
|
|
302
|
+
source_universe_artifact_sha256: FlowIdentityArtifactSha256;
|
|
303
|
+
compatibility_policy: FlowIdentityCompatibilityPolicy;
|
|
304
|
+
support_snapshot_artifact_sha256: FlowIdentityArtifactSha256;
|
|
305
|
+
mapping_artifact_sha256: FlowIdentityArtifactSha256;
|
|
306
|
+
process_manifest_artifact_sha256: FlowIdentityArtifactSha256;
|
|
307
|
+
protected_closure_artifact_sha256: FlowIdentityArtifactSha256;
|
|
308
|
+
support_snapshots: FlowIdentitySupportSnapshot[];
|
|
309
|
+
mappings: FlowIdentityMapping[];
|
|
310
|
+
processes: FlowIdentityProcessManifest[];
|
|
311
|
+
protected_closure: FlowIdentityProtectedClosure;
|
|
312
|
+
summary: {
|
|
313
|
+
semantic_sources: 305;
|
|
314
|
+
mappings: number;
|
|
315
|
+
processes: number;
|
|
316
|
+
rewrites: number;
|
|
317
|
+
collision_entries: number;
|
|
318
|
+
pending: number;
|
|
319
|
+
blockers: number;
|
|
320
|
+
orphans: number;
|
|
321
|
+
protected_references: number;
|
|
322
|
+
};
|
|
323
|
+
artifacts: {
|
|
324
|
+
plan: 'flow-identity-plan.json';
|
|
325
|
+
live_capture: 'flow-identity-live-capture.json';
|
|
326
|
+
process_manifest: 'flow-identity-process-manifest.jsonl';
|
|
327
|
+
collision_ledger: 'flow-identity-collision-ledger.jsonl';
|
|
328
|
+
protected_closure: 'flow-identity-protected-closure.json';
|
|
329
|
+
desired_payload_dir: 'desired-processes';
|
|
330
|
+
process_request_dir: 'process-requests';
|
|
331
|
+
};
|
|
332
|
+
plan_sha256: string;
|
|
333
|
+
};
|
|
334
|
+
export type FlowIdentityPlanBundle = {
|
|
335
|
+
plan: FlowIdentityPlan;
|
|
336
|
+
process_templates: FlowIdentityProcessTemplate[];
|
|
337
|
+
};
|
|
338
|
+
declare function token(value: unknown, label: string): string;
|
|
339
|
+
declare function hash(value: unknown, label: string): string;
|
|
340
|
+
declare function instant(value: unknown, label: string): string;
|
|
341
|
+
declare function version(value: unknown, label: string): string;
|
|
342
|
+
declare function computeSelfHash(value: Record<string, unknown>, field: string): string;
|
|
343
|
+
declare function hasExactKeys(value: unknown, expected: readonly string[]): boolean;
|
|
344
|
+
export declare function assertCurrentFlowIdentityAuthority(value: {
|
|
345
|
+
oracleSha256?: unknown;
|
|
346
|
+
authoritySha256?: unknown;
|
|
347
|
+
approvalText?: unknown;
|
|
348
|
+
oracleGeneration?: unknown;
|
|
349
|
+
sourceCount?: unknown;
|
|
350
|
+
}): void;
|
|
351
|
+
export declare function computeFlowIdentityReviewLedgerSha256(ledger: FlowIdentityReviewLedger): string;
|
|
352
|
+
export declare function computeFlowIdentityCaptureSha256(capture: FlowIdentityLiveCapture): string;
|
|
353
|
+
export declare function computeFlowIdentityCaptureEvidenceSha256(capture: Omit<FlowIdentityLiveCapture, 'attestation' | 'capture_artifact_sha256'>): string;
|
|
354
|
+
export declare function computeFlowIdentityMappingId(mapping: Omit<FlowIdentityMapping, 'mapping_id'> | FlowIdentityMapping): string;
|
|
355
|
+
export declare function computeFlowIdentityProcessTemplateSha256(process: FlowIdentityProcessManifest): string;
|
|
356
|
+
export declare function computeFlowIdentityPlanSha256(plan: FlowIdentityPlan): string;
|
|
357
|
+
export declare function parseFlowIdentityReference(value: unknown, label: string): FlowIdentityReference;
|
|
358
|
+
export declare function extractFlowIdentityReference(value: unknown, label: string): FlowIdentityReference;
|
|
359
|
+
export declare function parseFlowIdentityPolicy(value: unknown): FlowIdentityCompatibilityPolicy;
|
|
360
|
+
declare function parseReviewEntry(value: unknown, index: number): FlowIdentityReviewEntry;
|
|
361
|
+
export declare function parseFlowIdentityReviewLedger(value: unknown): FlowIdentityReviewLedger;
|
|
362
|
+
export declare function parseFlowIdentityCapture(value: unknown): FlowIdentityLiveCapture;
|
|
363
|
+
declare function validOneBasedOrdinals(values: Array<{
|
|
364
|
+
ordinal: number;
|
|
365
|
+
}>): boolean;
|
|
366
|
+
declare function validOccurrenceEntry(entry: FlowIdentityProtectedReferenceEntry): boolean;
|
|
367
|
+
declare function supportSnapshotRowSha256(snapshot: FlowIdentitySupportSnapshot): string;
|
|
368
|
+
declare function validSupportSnapshot(snapshot: FlowIdentitySupportSnapshot, actorUserId: string): boolean;
|
|
369
|
+
declare function validMapping(mapping: FlowIdentityMapping, actorUserId: string): boolean;
|
|
370
|
+
declare function validProcess(process: FlowIdentityProcessManifest, actorUserId: string): boolean;
|
|
371
|
+
export declare function parseFlowIdentityPlan(value: unknown): FlowIdentityPlan;
|
|
372
|
+
export declare const __testInternals: {
|
|
373
|
+
computeSelfHash: typeof computeSelfHash;
|
|
374
|
+
hash: typeof hash;
|
|
375
|
+
hasExactKeys: typeof hasExactKeys;
|
|
376
|
+
instant: typeof instant;
|
|
377
|
+
parseReviewEntry: typeof parseReviewEntry;
|
|
378
|
+
supportSnapshotRowSha256: typeof supportSnapshotRowSha256;
|
|
379
|
+
token: typeof token;
|
|
380
|
+
validMapping: typeof validMapping;
|
|
381
|
+
validOccurrenceEntry: typeof validOccurrenceEntry;
|
|
382
|
+
validOneBasedOrdinals: typeof validOneBasedOrdinals;
|
|
383
|
+
validProcess: typeof validProcess;
|
|
384
|
+
validSupportSnapshot: typeof validSupportSnapshot;
|
|
385
|
+
version: typeof version;
|
|
386
|
+
};
|
|
387
|
+
export {};
|