@empire-builder-kit/runtime 1.0.0-beta.9 → 1.0.0-rc.1
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/NOTICE +6 -0
- package/package.json +93 -3
- package/src/api-contract/artifacts.d.ts +67 -0
- package/src/api-contract/artifacts.js +349 -0
- package/src/api-contract/artifacts.js.map +1 -0
- package/src/api-contract/client.d.ts +79 -0
- package/src/api-contract/client.js +561 -0
- package/src/api-contract/client.js.map +1 -0
- package/src/api-contract/errors.d.ts +7 -0
- package/src/api-contract/errors.js +11 -0
- package/src/api-contract/errors.js.map +1 -0
- package/src/api-contract/index.d.ts +9 -0
- package/src/api-contract/index.js +10 -0
- package/src/api-contract/index.js.map +1 -0
- package/src/api-contract/operation.d.ts +118 -0
- package/src/api-contract/operation.js +609 -0
- package/src/api-contract/operation.js.map +1 -0
- package/src/api-contract/schema.d.ts +81 -0
- package/src/api-contract/schema.js +313 -0
- package/src/api-contract/schema.js.map +1 -0
- package/src/api-contract/server.d.ts +77 -0
- package/src/api-contract/server.js +466 -0
- package/src/api-contract/server.js.map +1 -0
- package/src/async-work/contract.d.ts +17 -0
- package/src/async-work/contract.js +105 -0
- package/src/async-work/contract.js.map +1 -0
- package/src/async-work/idempotency.d.ts +123 -0
- package/src/async-work/idempotency.js +167 -0
- package/src/async-work/idempotency.js.map +1 -0
- package/src/async-work/index.d.ts +8 -0
- package/src/async-work/index.js +9 -0
- package/src/async-work/index.js.map +1 -0
- package/src/async-work/provider.d.ts +90 -0
- package/src/async-work/provider.js +155 -0
- package/src/async-work/provider.js.map +1 -0
- package/src/async-work/recovery.d.ts +103 -0
- package/src/async-work/recovery.js +291 -0
- package/src/async-work/recovery.js.map +1 -0
- package/src/async-work/schedule.d.ts +117 -0
- package/src/async-work/schedule.js +279 -0
- package/src/async-work/schedule.js.map +1 -0
- package/src/async-work/sqs.d.ts +133 -0
- package/src/async-work/sqs.js +280 -0
- package/src/async-work/sqs.js.map +1 -0
- package/src/async-work/webhook.d.ts +60 -0
- package/src/async-work/webhook.js +178 -0
- package/src/async-work/webhook.js.map +1 -0
- package/src/async-work/workflow.d.ts +98 -0
- package/src/async-work/workflow.js +225 -0
- package/src/async-work/workflow.js.map +1 -0
- package/src/auth-backend.d.ts +12 -2
- package/src/auth-backend.js +30 -18
- package/src/auth-backend.js.map +1 -1
- package/src/authorization/admission.d.ts +30 -0
- package/src/authorization/admission.js +87 -0
- package/src/authorization/admission.js.map +1 -0
- package/src/authorization/approval.d.ts +99 -0
- package/src/authorization/approval.js +249 -0
- package/src/authorization/approval.js.map +1 -0
- package/src/authorization/audit.d.ts +35 -0
- package/src/authorization/audit.js +35 -0
- package/src/authorization/audit.js.map +1 -0
- package/src/authorization/delegation.d.ts +149 -0
- package/src/authorization/delegation.js +401 -0
- package/src/authorization/delegation.js.map +1 -0
- package/src/authorization/errors.d.ts +32 -0
- package/src/authorization/errors.js +153 -0
- package/src/authorization/errors.js.map +1 -0
- package/src/authorization/evaluator.d.ts +39 -0
- package/src/authorization/evaluator.js +199 -0
- package/src/authorization/evaluator.js.map +1 -0
- package/src/authorization/index.d.ts +14 -0
- package/src/authorization/index.js +15 -0
- package/src/authorization/index.js.map +1 -0
- package/src/authorization/machine-token.d.ts +87 -0
- package/src/authorization/machine-token.js +201 -0
- package/src/authorization/machine-token.js.map +1 -0
- package/src/authorization/machine.d.ts +32 -0
- package/src/authorization/machine.js +41 -0
- package/src/authorization/machine.js.map +1 -0
- package/src/authorization/model.d.ts +112 -0
- package/src/authorization/model.js +112 -0
- package/src/authorization/model.js.map +1 -0
- package/src/canonical-json.cjs +157 -0
- package/src/canonical-json.d.cts +26 -0
- package/src/canonical-json.d.ts +18 -0
- package/src/canonical-json.js +125 -0
- package/src/canonical-json.js.map +1 -0
- package/src/configuration/contract.d.ts +107 -0
- package/src/configuration/contract.js +461 -0
- package/src/configuration/contract.js.map +1 -0
- package/src/configuration/index.d.ts +3 -0
- package/src/configuration/index.js +4 -0
- package/src/configuration/index.js.map +1 -0
- package/src/configuration/provider.d.ts +59 -0
- package/src/configuration/provider.js +198 -0
- package/src/configuration/provider.js.map +1 -0
- package/src/configuration/rollout-evaluator.cjs +54 -0
- package/src/configuration/rollout-evaluator.d.cts +26 -0
- package/src/configuration/rollout-evaluator.d.ts +18 -0
- package/src/configuration/rollout-evaluator.js +38 -0
- package/src/configuration/rollout-evaluator.js.map +1 -0
- package/src/configuration/rollout-key.cjs +38 -0
- package/src/configuration/rollout-key.d.cts +14 -0
- package/src/configuration/rollout-key.d.ts +10 -0
- package/src/configuration/rollout-key.js +26 -0
- package/src/configuration/rollout-key.js.map +1 -0
- package/src/configuration/rollout.d.ts +60 -0
- package/src/configuration/rollout.js +42 -0
- package/src/configuration/rollout.js.map +1 -0
- package/src/data-lifecycle/contract.d.ts +33 -0
- package/src/data-lifecycle/contract.js +118 -0
- package/src/data-lifecycle/contract.js.map +1 -0
- package/src/data-lifecycle/event.d.ts +28 -0
- package/src/data-lifecycle/event.js +76 -0
- package/src/data-lifecycle/event.js.map +1 -0
- package/src/data-lifecycle/evidence.d.ts +65 -0
- package/src/data-lifecycle/evidence.js +162 -0
- package/src/data-lifecycle/evidence.js.map +1 -0
- package/src/data-lifecycle/holds.d.ts +29 -0
- package/src/data-lifecycle/holds.js +124 -0
- package/src/data-lifecycle/holds.js.map +1 -0
- package/src/data-lifecycle/index.d.ts +8 -0
- package/src/data-lifecycle/index.js +9 -0
- package/src/data-lifecycle/index.js.map +1 -0
- package/src/data-lifecycle/policy.d.ts +16 -0
- package/src/data-lifecycle/policy.js +79 -0
- package/src/data-lifecycle/policy.js.map +1 -0
- package/src/data-lifecycle/restore.d.ts +90 -0
- package/src/data-lifecycle/restore.js +336 -0
- package/src/data-lifecycle/restore.js.map +1 -0
- package/src/data-lifecycle/retention.d.ts +57 -0
- package/src/data-lifecycle/retention.js +232 -0
- package/src/data-lifecycle/retention.js.map +1 -0
- package/src/data-lifecycle/rights.d.ts +171 -0
- package/src/data-lifecycle/rights.js +533 -0
- package/src/data-lifecycle/rights.js.map +1 -0
- package/src/database.d.ts +36 -0
- package/src/database.js +119 -0
- package/src/database.js.map +1 -0
- package/src/deterministic-order.cjs +16 -0
- package/src/deterministic-order.d.cts +9 -0
- package/src/deterministic-order.d.ts +7 -0
- package/src/deterministic-order.js +10 -0
- package/src/deterministic-order.js.map +1 -0
- package/src/events.d.ts +28 -19
- package/src/events.js +171 -66
- package/src/events.js.map +1 -1
- package/src/index.d.ts +7 -1
- package/src/index.js +24 -0
- package/src/index.js.map +1 -1
- package/src/lambda.d.ts +8 -2
- package/src/lambda.js +100 -39
- package/src/lambda.js.map +1 -1
- package/src/logging.d.ts +95 -36
- package/src/logging.js +460 -62
- package/src/logging.js.map +1 -1
- package/src/observability.d.ts +80 -18
- package/src/observability.js +252 -61
- package/src/observability.js.map +1 -1
- package/src/performance/index.d.ts +1 -0
- package/src/performance/index.js +2 -0
- package/src/performance/index.js.map +1 -0
- package/src/performance/protected-load-endpoint.d.ts +140 -0
- package/src/performance/protected-load-endpoint.js +462 -0
- package/src/performance/protected-load-endpoint.js.map +1 -0
- package/src/rds-global-ca-bundle.d.ts +1 -0
- package/src/rds-global-ca-bundle.js +2742 -0
- package/src/rds-global-ca-bundle.js.map +1 -0
- package/src/reliability/burn.d.ts +39 -0
- package/src/reliability/burn.js +102 -0
- package/src/reliability/burn.js.map +1 -0
- package/src/reliability/contract.d.ts +5 -0
- package/src/reliability/contract.js +317 -0
- package/src/reliability/contract.js.map +1 -0
- package/src/reliability/incident.d.ts +16 -0
- package/src/reliability/incident.js +562 -0
- package/src/reliability/incident.js.map +1 -0
- package/src/reliability/index.d.ts +5 -0
- package/src/reliability/index.js +6 -0
- package/src/reliability/index.js.map +1 -0
- package/src/reliability/model.d.ts +191 -0
- package/src/reliability/model.fixtures.d.ts +2 -0
- package/src/reliability/model.fixtures.js +57 -0
- package/src/reliability/model.fixtures.js.map +1 -0
- package/src/reliability/model.js +2 -0
- package/src/reliability/model.js.map +1 -0
- package/src/reliability/slo.d.ts +9 -0
- package/src/reliability/slo.js +74 -0
- package/src/reliability/slo.js.map +1 -0
- package/src/request-context.d.ts +57 -15
- package/src/request-context.js +116 -36
- package/src/request-context.js.map +1 -1
- package/src/safe-reference.cjs +57 -0
- package/src/safe-reference.d.cts +25 -0
- package/src/safe-reference.d.ts +11 -0
- package/src/safe-reference.js +46 -0
- package/src/safe-reference.js.map +1 -0
- package/src/secrets/contract.d.ts +99 -0
- package/src/secrets/contract.js +238 -0
- package/src/secrets/contract.js.map +1 -0
- package/src/secrets/index.d.ts +4 -0
- package/src/secrets/index.js +5 -0
- package/src/secrets/index.js.map +1 -0
- package/src/secrets/observability.d.ts +14 -0
- package/src/secrets/observability.js +100 -0
- package/src/secrets/observability.js.map +1 -0
- package/src/secrets/personal.d.ts +48 -0
- package/src/secrets/personal.js +332 -0
- package/src/secrets/personal.js.map +1 -0
- package/src/secrets/resolver.d.ts +125 -0
- package/src/secrets/resolver.js +602 -0
- package/src/secrets/resolver.js.map +1 -0
- package/src/secrets/sensitive-patterns.cjs +84 -0
- package/src/secrets/sensitive-patterns.d.cts +62 -0
- package/src/secrets/sensitive-patterns.d.ts +40 -0
- package/src/secrets/sensitive-patterns.js +60 -0
- package/src/secrets/sensitive-patterns.js.map +1 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { type DataLifecycleRuntimeHoldV1 } from './holds.js';
|
|
2
|
+
export declare const DATA_LIFECYCLE_RIGHTS_STATE_VERSION: 1;
|
|
3
|
+
export declare const DATA_LIFECYCLE_MAX_EXPORT_LIFETIME_MS: number;
|
|
4
|
+
export type DataLifecycleApprovalRequirement = 'required' | 'not-required';
|
|
5
|
+
export interface DataLifecycleTrackedCopyV1 {
|
|
6
|
+
attempts: number;
|
|
7
|
+
copyId: string;
|
|
8
|
+
outcomeCode?: string;
|
|
9
|
+
status: 'pending' | 'in-progress' | 'completed' | 'failed';
|
|
10
|
+
}
|
|
11
|
+
export type DataLifecycleDeletionStatus = 'requested' | 'verified' | 'held' | 'rejected' | 'primary-deletion-in-progress' | 'downstream-deletion-in-progress' | 'completed' | 'failed';
|
|
12
|
+
export interface DataLifecycleDeletionRequestV1 {
|
|
13
|
+
approvalRef?: string;
|
|
14
|
+
approvalRequirement: DataLifecycleApprovalRequirement;
|
|
15
|
+
authorityRef?: string;
|
|
16
|
+
categoryId: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
downstreamCopies: readonly DataLifecycleTrackedCopyV1[];
|
|
19
|
+
holdIds: readonly string[];
|
|
20
|
+
kind: 'data-deletion';
|
|
21
|
+
outcomeCode?: string;
|
|
22
|
+
policyVersion: string;
|
|
23
|
+
primaryLocationId: string;
|
|
24
|
+
primaryStatus: 'pending' | 'in-progress' | 'completed' | 'failed';
|
|
25
|
+
requestRef: string;
|
|
26
|
+
scopeRef: string;
|
|
27
|
+
status: DataLifecycleDeletionStatus;
|
|
28
|
+
updatedAt: string;
|
|
29
|
+
version: typeof DATA_LIFECYCLE_RIGHTS_STATE_VERSION;
|
|
30
|
+
}
|
|
31
|
+
export type DataLifecycleDeletionCommand = {
|
|
32
|
+
approvalRef?: string;
|
|
33
|
+
at: string;
|
|
34
|
+
authorityRef: string;
|
|
35
|
+
holds: readonly DataLifecycleRuntimeHoldV1[];
|
|
36
|
+
type: 'verify';
|
|
37
|
+
} | {
|
|
38
|
+
at: string;
|
|
39
|
+
reasonCode: string;
|
|
40
|
+
type: 'reject';
|
|
41
|
+
} | {
|
|
42
|
+
at: string;
|
|
43
|
+
type: 'start-primary';
|
|
44
|
+
} | {
|
|
45
|
+
at: string;
|
|
46
|
+
outcomeCode: 'deleted' | 'not-found';
|
|
47
|
+
type: 'complete-primary';
|
|
48
|
+
} | {
|
|
49
|
+
at: string;
|
|
50
|
+
errorCode: string;
|
|
51
|
+
type: 'fail-primary';
|
|
52
|
+
} | {
|
|
53
|
+
at: string;
|
|
54
|
+
copyId: string;
|
|
55
|
+
type: 'start-copy';
|
|
56
|
+
} | {
|
|
57
|
+
at: string;
|
|
58
|
+
copyId: string;
|
|
59
|
+
outcomeCode: 'acknowledged' | 'deleted' | 'not-found';
|
|
60
|
+
type: 'complete-copy';
|
|
61
|
+
} | {
|
|
62
|
+
at: string;
|
|
63
|
+
copyId: string;
|
|
64
|
+
errorCode: string;
|
|
65
|
+
type: 'fail-copy';
|
|
66
|
+
} | {
|
|
67
|
+
at: string;
|
|
68
|
+
type: 'retry';
|
|
69
|
+
};
|
|
70
|
+
export type DataLifecycleExportStatus = 'requested' | 'verified' | 'held' | 'rejected' | 'gathering' | 'ready' | 'expired' | 'artifact-deletion-in-progress' | 'unpublished-artifact-deletion-in-progress' | 'completed' | 'failed';
|
|
71
|
+
export interface DataLifecycleExportArtifactV1 {
|
|
72
|
+
artifactRef: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
encryption: 'approved-profile';
|
|
75
|
+
expiresAt: string;
|
|
76
|
+
status: 'available' | 'deletion-in-progress' | 'deleted';
|
|
77
|
+
}
|
|
78
|
+
export interface DataLifecycleExportRequestV1 {
|
|
79
|
+
approvalRef?: string;
|
|
80
|
+
approvalRequirement: DataLifecycleApprovalRequirement;
|
|
81
|
+
artifact?: DataLifecycleExportArtifactV1;
|
|
82
|
+
authorityRef?: string;
|
|
83
|
+
categoryId: string;
|
|
84
|
+
createdAt: string;
|
|
85
|
+
failurePhase?: 'gathering' | 'artifact-deletion' | 'unpublished-artifact-deletion';
|
|
86
|
+
holdIds: readonly string[];
|
|
87
|
+
kind: 'data-export';
|
|
88
|
+
outcomeCode?: string;
|
|
89
|
+
policyVersion: string;
|
|
90
|
+
requestRef: string;
|
|
91
|
+
scopeRef: string;
|
|
92
|
+
sourceCopies: readonly DataLifecycleTrackedCopyV1[];
|
|
93
|
+
status: DataLifecycleExportStatus;
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
version: typeof DATA_LIFECYCLE_RIGHTS_STATE_VERSION;
|
|
96
|
+
}
|
|
97
|
+
export type DataLifecycleExportCommand = {
|
|
98
|
+
approvalRef?: string;
|
|
99
|
+
at: string;
|
|
100
|
+
authorityRef: string;
|
|
101
|
+
holds: readonly DataLifecycleRuntimeHoldV1[];
|
|
102
|
+
type: 'verify';
|
|
103
|
+
} | {
|
|
104
|
+
at: string;
|
|
105
|
+
reasonCode: string;
|
|
106
|
+
type: 'reject';
|
|
107
|
+
} | {
|
|
108
|
+
at: string;
|
|
109
|
+
type: 'start-gathering';
|
|
110
|
+
} | {
|
|
111
|
+
at: string;
|
|
112
|
+
copyId: string;
|
|
113
|
+
type: 'start-copy';
|
|
114
|
+
} | {
|
|
115
|
+
at: string;
|
|
116
|
+
copyId: string;
|
|
117
|
+
outcomeCode: 'gathered' | 'not-found';
|
|
118
|
+
type: 'complete-copy';
|
|
119
|
+
} | {
|
|
120
|
+
at: string;
|
|
121
|
+
copyId: string;
|
|
122
|
+
errorCode: string;
|
|
123
|
+
type: 'fail-copy';
|
|
124
|
+
} | {
|
|
125
|
+
artifactRef: string;
|
|
126
|
+
at: string;
|
|
127
|
+
encryption: 'approved-profile';
|
|
128
|
+
expiresAt: string;
|
|
129
|
+
type: 'publish';
|
|
130
|
+
} | {
|
|
131
|
+
at: string;
|
|
132
|
+
type: 'expire';
|
|
133
|
+
} | {
|
|
134
|
+
at: string;
|
|
135
|
+
type: 'start-artifact-deletion';
|
|
136
|
+
} | {
|
|
137
|
+
at: string;
|
|
138
|
+
type: 'start-unpublished-artifact-deletion';
|
|
139
|
+
} | {
|
|
140
|
+
at: string;
|
|
141
|
+
outcomeCode: 'deleted' | 'not-found';
|
|
142
|
+
type: 'complete-artifact-deletion';
|
|
143
|
+
} | {
|
|
144
|
+
at: string;
|
|
145
|
+
errorCode: string;
|
|
146
|
+
type: 'fail-artifact-deletion';
|
|
147
|
+
} | {
|
|
148
|
+
at: string;
|
|
149
|
+
type: 'retry';
|
|
150
|
+
};
|
|
151
|
+
export declare function createDataLifecycleDeletionRequest(options: {
|
|
152
|
+
approvalRequirement: DataLifecycleApprovalRequirement;
|
|
153
|
+
categoryId: string;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
downstreamCopyIds: readonly string[];
|
|
156
|
+
policyVersion: string;
|
|
157
|
+
primaryLocationId: string;
|
|
158
|
+
requestRef: string;
|
|
159
|
+
scopeRef: string;
|
|
160
|
+
}): DataLifecycleDeletionRequestV1;
|
|
161
|
+
export declare function transitionDataLifecycleDeletion(current: DataLifecycleDeletionRequestV1, command: DataLifecycleDeletionCommand): DataLifecycleDeletionRequestV1;
|
|
162
|
+
export declare function createDataLifecycleExportRequest(options: {
|
|
163
|
+
approvalRequirement: DataLifecycleApprovalRequirement;
|
|
164
|
+
categoryId: string;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
policyVersion: string;
|
|
167
|
+
requestRef: string;
|
|
168
|
+
scopeRef: string;
|
|
169
|
+
sourceCopyIds: readonly string[];
|
|
170
|
+
}): DataLifecycleExportRequestV1;
|
|
171
|
+
export declare function transitionDataLifecycleExport(current: DataLifecycleExportRequestV1, command: DataLifecycleExportCommand): DataLifecycleExportRequestV1;
|