@kitman-sh/sdk 0.7.1 → 0.7.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/package.json +1 -1
- package/types/packages/core/src/a2a.d.ts +0 -577
- package/types/packages/core/src/agent-capabilities.d.ts +0 -1434
- package/types/packages/core/src/agent-launch-snapshot.d.ts +0 -44
- package/types/packages/core/src/approval-queue.d.ts +0 -126
- package/types/packages/core/src/audit.d.ts +0 -52
- package/types/packages/core/src/change-delivery.d.ts +0 -39
- package/types/packages/core/src/change-request-review.d.ts +0 -146
- package/types/packages/core/src/change-request.d.ts +0 -432
- package/types/packages/core/src/connection.d.ts +0 -33
- package/types/packages/core/src/context-feedback.d.ts +0 -89
- package/types/packages/core/src/data-lifecycle.d.ts +0 -195
- package/types/packages/core/src/decision.d.ts +0 -48
- package/types/packages/core/src/delivery-operation.d.ts +0 -125
- package/types/packages/core/src/delivery-policy.d.ts +0 -174
- package/types/packages/core/src/engineering-resources.d.ts +0 -26
- package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
- package/types/packages/core/src/epic-delivery.d.ts +0 -38
- package/types/packages/core/src/external-effect.d.ts +0 -313
- package/types/packages/core/src/fix-flow.d.ts +0 -149
- package/types/packages/core/src/following.d.ts +0 -59
- package/types/packages/core/src/github-delivery-fixtures.d.ts +0 -28
- package/types/packages/core/src/github-delivery.d.ts +0 -78
- package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +0 -26
- package/types/packages/core/src/gitlab-delivery.d.ts +0 -76
- package/types/packages/core/src/global-search.d.ts +0 -42
- package/types/packages/core/src/id.d.ts +0 -1
- package/types/packages/core/src/integration.d.ts +0 -255
- package/types/packages/core/src/intent.d.ts +0 -260
- package/types/packages/core/src/json.d.ts +0 -10
- package/types/packages/core/src/kit-taxonomy.d.ts +0 -21
- package/types/packages/core/src/live.d.ts +0 -8309
- package/types/packages/core/src/me.d.ts +0 -31
- package/types/packages/core/src/memory.d.ts +0 -88
- package/types/packages/core/src/my-teams.d.ts +0 -1230
- package/types/packages/core/src/notification.d.ts +0 -181
- package/types/packages/core/src/observability.d.ts +0 -175
- package/types/packages/core/src/package.d.ts +0 -369
- package/types/packages/core/src/personal-development-profile.d.ts +0 -11
- package/types/packages/core/src/platform-release.d.ts +0 -60
- package/types/packages/core/src/program-credential.d.ts +0 -10
- package/types/packages/core/src/project.d.ts +0 -66
- package/types/packages/core/src/provider-safe-text.d.ts +0 -2
- package/types/packages/core/src/repo-binding.d.ts +0 -131
- package/types/packages/core/src/run-journal.d.ts +0 -28
- package/types/packages/core/src/run-launch.d.ts +0 -67
- package/types/packages/core/src/runner-eligibility.d.ts +0 -43
- package/types/packages/core/src/runner-routing.d.ts +0 -11
- package/types/packages/core/src/runner-trust.d.ts +0 -67
- package/types/packages/core/src/runner.d.ts +0 -3750
- package/types/packages/core/src/scope-directory.d.ts +0 -100
- package/types/packages/core/src/secret.d.ts +0 -37
- package/types/packages/core/src/session.d.ts +0 -90
- package/types/packages/core/src/step-brief.d.ts +0 -50
- package/types/packages/core/src/sync-kit.d.ts +0 -587
- package/types/packages/core/src/task-detail.d.ts +0 -491
- package/types/packages/core/src/task-execution-record.d.ts +0 -620
- package/types/packages/core/src/task-key.d.ts +0 -9
- package/types/packages/core/src/task.d.ts +0 -543
- package/types/packages/core/src/work-unit.d.ts +0 -740
- package/types/packages/core/src/workspace.d.ts +0 -96
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
import type { JsonValue } from './runtime-type';
|
|
3
|
-
declare const ExternalEffectStates: readonly ['prepared', 'executing', 'confirmed_applied', 'confirmed_absent', 'unknown', 'reconciling', 'manual'];
|
|
4
|
-
declare const EffectIntentKinds: readonly ['start_loop_workflow', 'wake_loop_workflow', 'publish_work_unit', 'schedule_wake', 'reconcile_external_effect', 'publish_live_projection', 'quota_revalidate'];
|
|
5
|
-
declare const EffectIntentPublicationStatuses: readonly ['pending', 'claimed', 'executing', 'applied', 'retryable', 'unknown', 'blocked'];
|
|
6
|
-
declare const EffectReservationPhases: readonly ['claimed', 'executing', 'reconciling', 'settled', 'fenced'];
|
|
7
|
-
declare const EffectObservationKinds: readonly ['provider_response', 'provider_lookup', 'local_not_started_proof', 'publisher_target_read', 'timeout', 'cancellation', 'lease_loss', 'cleanup', 'reservation_claimed'];
|
|
8
|
-
declare const EffectObservationClassifications: readonly ['one_matching', 'none_authoritative', 'ambiguous', 'forbidden', 'unavailable', 'malformed', 'not_started'];
|
|
9
|
-
declare const EffectEvidenceGrades: readonly ['authoritative', 'strong', 'supporting', 'none'];
|
|
10
|
-
declare const EffectLookupModes: readonly ['provider_resource', 'provider_idempotency_key', 'provider_query_fingerprint', 'none'];
|
|
11
|
-
declare const EffectOwnerKinds: readonly ['publisher', 'runner', 'reconciler', 'operator'];
|
|
12
|
-
declare const ExternalEffectState: Schema.Literals<readonly ["prepared", "executing", "confirmed_applied", "confirmed_absent", "unknown", "reconciling", "manual"]>;
|
|
13
|
-
export declare const EffectIntentKind: Schema.Literals<readonly ["start_loop_workflow", "wake_loop_workflow", "publish_work_unit", "schedule_wake", "reconcile_external_effect", "publish_live_projection", "quota_revalidate"]>;
|
|
14
|
-
export declare const EffectIntentPublicationStatus: Schema.Literals<readonly ["pending", "claimed", "executing", "applied", "retryable", "unknown", "blocked"]>;
|
|
15
|
-
export declare const EffectReservationPhase: Schema.Literals<readonly ["claimed", "executing", "reconciling", "settled", "fenced"]>;
|
|
16
|
-
export declare const EffectObservationKind: Schema.Literals<readonly ["provider_response", "provider_lookup", "local_not_started_proof", "publisher_target_read", "timeout", "cancellation", "lease_loss", "cleanup", "reservation_claimed"]>;
|
|
17
|
-
export declare const EffectObservationClassification: Schema.Literals<readonly ["one_matching", "none_authoritative", "ambiguous", "forbidden", "unavailable", "malformed", "not_started"]>;
|
|
18
|
-
export declare const EffectEvidenceGrade: Schema.Literals<readonly ["authoritative", "strong", "supporting", "none"]>;
|
|
19
|
-
export declare const EffectLookupMode: Schema.Literals<readonly ["provider_resource", "provider_idempotency_key", "provider_query_fingerprint", "none"]>;
|
|
20
|
-
export declare const EffectOwnerKind: Schema.Literals<readonly ["publisher", "runner", "reconciler", "operator"]>;
|
|
21
|
-
export declare const ExternalEffectProviderTargetIdentity: Schema.Struct<{
|
|
22
|
-
readonly providerPath: Schema.String;
|
|
23
|
-
readonly providerHostRef: Schema.String;
|
|
24
|
-
readonly accountScopeDigest: Schema.String;
|
|
25
|
-
readonly resourceKind: Schema.String;
|
|
26
|
-
readonly providerResourceId: Schema.optionalKey<Schema.String>;
|
|
27
|
-
readonly repositoryOrProjectId: Schema.optionalKey<Schema.String>;
|
|
28
|
-
readonly refOrBranch: Schema.optionalKey<Schema.String>;
|
|
29
|
-
readonly parentResourceId: Schema.optionalKey<Schema.String>;
|
|
30
|
-
readonly sourceBranch: Schema.optionalKey<Schema.String>;
|
|
31
|
-
readonly targetBranch: Schema.optionalKey<Schema.String>;
|
|
32
|
-
readonly sourceSha: Schema.optionalKey<Schema.String>;
|
|
33
|
-
readonly targetSha: Schema.optionalKey<Schema.String>;
|
|
34
|
-
readonly effectMarker: Schema.optionalKey<Schema.String>;
|
|
35
|
-
readonly targetIdentityVersion: Schema.String;
|
|
36
|
-
}>;
|
|
37
|
-
export declare const ExternalEffectLookupIdentity: Schema.Struct<{
|
|
38
|
-
readonly providerPath: Schema.String;
|
|
39
|
-
readonly providerAdapterVersion: Schema.String;
|
|
40
|
-
readonly accountScopeDigest: Schema.String;
|
|
41
|
-
readonly lookupMode: Schema.Literals<readonly ["provider_resource", "provider_idempotency_key", "provider_query_fingerprint", "none"]>;
|
|
42
|
-
readonly providerTargetIdentity: Schema.Struct<{
|
|
43
|
-
readonly providerPath: Schema.String;
|
|
44
|
-
readonly providerHostRef: Schema.String;
|
|
45
|
-
readonly accountScopeDigest: Schema.String;
|
|
46
|
-
readonly resourceKind: Schema.String;
|
|
47
|
-
readonly providerResourceId: Schema.optionalKey<Schema.String>;
|
|
48
|
-
readonly repositoryOrProjectId: Schema.optionalKey<Schema.String>;
|
|
49
|
-
readonly refOrBranch: Schema.optionalKey<Schema.String>;
|
|
50
|
-
readonly parentResourceId: Schema.optionalKey<Schema.String>;
|
|
51
|
-
readonly sourceBranch: Schema.optionalKey<Schema.String>;
|
|
52
|
-
readonly targetBranch: Schema.optionalKey<Schema.String>;
|
|
53
|
-
readonly sourceSha: Schema.optionalKey<Schema.String>;
|
|
54
|
-
readonly targetSha: Schema.optionalKey<Schema.String>;
|
|
55
|
-
readonly effectMarker: Schema.optionalKey<Schema.String>;
|
|
56
|
-
readonly targetIdentityVersion: Schema.String;
|
|
57
|
-
}>;
|
|
58
|
-
readonly providerIdempotencyKey: Schema.optionalKey<Schema.String>;
|
|
59
|
-
readonly queryFingerprint: Schema.optionalKey<Schema.String>;
|
|
60
|
-
readonly lookupSchemaDigest: Schema.String;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const ExternalEffectProof: Schema.Struct<{
|
|
63
|
-
readonly kind: Schema.Literals<readonly ["provider_response", "provider_lookup", "publisher_target_read"]>;
|
|
64
|
-
readonly classification: Schema.Literals<readonly ["one_matching", "none_authoritative", "ambiguous", "forbidden", "unavailable", "malformed", "not_started"]>;
|
|
65
|
-
readonly requestDigest: Schema.String;
|
|
66
|
-
readonly providerTargetDigest: Schema.String;
|
|
67
|
-
readonly lookupIdentityDigest: Schema.String;
|
|
68
|
-
readonly responseDigest: Schema.optionalKey<Schema.String>;
|
|
69
|
-
readonly evidenceGrade: Schema.Literals<readonly ["authoritative", "strong", "supporting", "none"]>;
|
|
70
|
-
}>;
|
|
71
|
-
export declare const EffectReservationFence: Schema.Struct<{
|
|
72
|
-
readonly reservationId: Schema.String;
|
|
73
|
-
readonly ownerId: Schema.String;
|
|
74
|
-
readonly ownerReplicaId: Schema.optionalKey<Schema.String>;
|
|
75
|
-
readonly attempt: Schema.Finite;
|
|
76
|
-
readonly fencingToken: Schema.String;
|
|
77
|
-
readonly expectedResourceVersion: Schema.Finite;
|
|
78
|
-
}>;
|
|
79
|
-
type ExternalEffectState = (typeof ExternalEffectStates)[number];
|
|
80
|
-
export type EffectIntentKind = (typeof EffectIntentKinds)[number];
|
|
81
|
-
export type EffectIntentPublicationStatus = (typeof EffectIntentPublicationStatuses)[number];
|
|
82
|
-
export type EffectReservationPhase = (typeof EffectReservationPhases)[number];
|
|
83
|
-
export type EffectObservationKind = (typeof EffectObservationKinds)[number];
|
|
84
|
-
export type EffectObservationClassification = (typeof EffectObservationClassifications)[number];
|
|
85
|
-
export type EffectEvidenceGrade = (typeof EffectEvidenceGrades)[number];
|
|
86
|
-
export type EffectLookupMode = (typeof EffectLookupModes)[number];
|
|
87
|
-
export type EffectOwnerKind = (typeof EffectOwnerKinds)[number];
|
|
88
|
-
export type ExternalEffectProviderTargetIdentity = (typeof ExternalEffectProviderTargetIdentity)['Type'];
|
|
89
|
-
export type ExternalEffectLookupIdentity = (typeof ExternalEffectLookupIdentity)['Type'];
|
|
90
|
-
export type ExternalEffectProof = (typeof ExternalEffectProof)['Type'];
|
|
91
|
-
export type EffectReservationFence = (typeof EffectReservationFence)['Type'];
|
|
92
|
-
export interface ExternalEffectOutcome {
|
|
93
|
-
readonly kind: 'applied' | 'absent' | 'unknown' | 'manual';
|
|
94
|
-
readonly observationId?: string;
|
|
95
|
-
readonly reasonCode?: string;
|
|
96
|
-
readonly responseDigest?: string;
|
|
97
|
-
}
|
|
98
|
-
export interface ExternalEffect {
|
|
99
|
-
readonly id: string;
|
|
100
|
-
readonly workspaceId: string;
|
|
101
|
-
readonly projectId: string | null;
|
|
102
|
-
readonly rootRunId: string;
|
|
103
|
-
readonly runId: string;
|
|
104
|
-
readonly workUnitId: string;
|
|
105
|
-
readonly stepKey: string | null;
|
|
106
|
-
readonly participantKey: string | null;
|
|
107
|
-
readonly workUnitKind: string;
|
|
108
|
-
readonly effectSlot: string;
|
|
109
|
-
readonly operationFamily: string;
|
|
110
|
-
readonly snapshotDigest: string;
|
|
111
|
-
readonly authorityDigest: string;
|
|
112
|
-
readonly budgetDigest: string;
|
|
113
|
-
readonly effectKeyDigest: string;
|
|
114
|
-
readonly requestDigest: string;
|
|
115
|
-
readonly providerTargetIdentity: ExternalEffectProviderTargetIdentity;
|
|
116
|
-
readonly providerTargetDigest: string;
|
|
117
|
-
readonly lookupMode: EffectLookupMode;
|
|
118
|
-
readonly lookupIdentity: ExternalEffectLookupIdentity;
|
|
119
|
-
readonly lookupIdentityDigest: string;
|
|
120
|
-
readonly providerIdempotencyKey: string | null;
|
|
121
|
-
readonly providerIdempotencyScope: string | null;
|
|
122
|
-
readonly providerIdempotencyRetentionSeconds: number | null;
|
|
123
|
-
readonly state: ExternalEffectState;
|
|
124
|
-
readonly resourceVersion: number;
|
|
125
|
-
readonly lastReasonCode: string | null;
|
|
126
|
-
readonly currentReservationId: string | null;
|
|
127
|
-
readonly attemptCount: number;
|
|
128
|
-
readonly reconciliationCount: number;
|
|
129
|
-
readonly availableAt: string;
|
|
130
|
-
readonly executeBy: string;
|
|
131
|
-
readonly reservationExpiresAt: string | null;
|
|
132
|
-
readonly reconcileBy: string;
|
|
133
|
-
readonly manualBy: string;
|
|
134
|
-
readonly outcome: ExternalEffectOutcome | null;
|
|
135
|
-
}
|
|
136
|
-
export interface EffectIntent {
|
|
137
|
-
readonly id: string;
|
|
138
|
-
readonly workspaceId: string;
|
|
139
|
-
readonly projectId: string | null;
|
|
140
|
-
readonly kind: EffectIntentKind;
|
|
141
|
-
readonly intentKey: string;
|
|
142
|
-
readonly payloadDigest: string;
|
|
143
|
-
readonly externalEffectId: string | null;
|
|
144
|
-
readonly snapshotDigest: string | null;
|
|
145
|
-
readonly targetRef: EffectTargetReference;
|
|
146
|
-
readonly availableAt: string;
|
|
147
|
-
readonly executeBy: string;
|
|
148
|
-
readonly reconcileBy: string;
|
|
149
|
-
readonly publicationStatus: EffectIntentPublicationStatus;
|
|
150
|
-
readonly resourceVersion: number;
|
|
151
|
-
readonly attemptCount: number;
|
|
152
|
-
readonly currentReservationId: string | null;
|
|
153
|
-
readonly lastReasonCode: string | null;
|
|
154
|
-
}
|
|
155
|
-
export interface EffectReservation {
|
|
156
|
-
readonly id: string;
|
|
157
|
-
readonly workspaceId: string;
|
|
158
|
-
readonly externalEffectId: string | null;
|
|
159
|
-
readonly effectIntentId: string | null;
|
|
160
|
-
readonly attempt: number;
|
|
161
|
-
readonly ownerKind: EffectOwnerKind;
|
|
162
|
-
readonly ownerId: string;
|
|
163
|
-
readonly ownerReplicaId: string | null;
|
|
164
|
-
readonly leaseId: string | null;
|
|
165
|
-
readonly fencingToken: string;
|
|
166
|
-
readonly expectedResourceVersion: number;
|
|
167
|
-
readonly reservedAt: string;
|
|
168
|
-
readonly expiresAt: string;
|
|
169
|
-
readonly releasedAt: string | null;
|
|
170
|
-
readonly phase: EffectReservationPhase;
|
|
171
|
-
readonly reasonCode: string | null;
|
|
172
|
-
}
|
|
173
|
-
export interface EffectObservation {
|
|
174
|
-
readonly id: string;
|
|
175
|
-
readonly workspaceId: string;
|
|
176
|
-
readonly externalEffectId: string | null;
|
|
177
|
-
readonly effectIntentId: string | null;
|
|
178
|
-
readonly reservationId: string | null;
|
|
179
|
-
readonly kind: EffectObservationKind;
|
|
180
|
-
readonly providerPath: string | null;
|
|
181
|
-
readonly accountScopeDigest: string | null;
|
|
182
|
-
readonly adapterVersion: string | null;
|
|
183
|
-
readonly observedAt: string;
|
|
184
|
-
readonly providerTimestamp: string | null;
|
|
185
|
-
readonly classification: EffectObservationClassification | null;
|
|
186
|
-
readonly requestDigest: string | null;
|
|
187
|
-
readonly responseDigest: string | null;
|
|
188
|
-
readonly lookupIdentityDigest: string | null;
|
|
189
|
-
readonly evidenceGrade: EffectEvidenceGrade;
|
|
190
|
-
readonly safeData: EffectObservationEvidence;
|
|
191
|
-
}
|
|
192
|
-
type EffectTargetReference = {
|
|
193
|
-
readonly [field: string]: JsonValue;
|
|
194
|
-
};
|
|
195
|
-
type EffectObservationEvidence = {
|
|
196
|
-
readonly [field: string]: JsonValue;
|
|
197
|
-
};
|
|
198
|
-
type NormalizedProviderRequest = {
|
|
199
|
-
readonly [field: string]: JsonValue;
|
|
200
|
-
};
|
|
201
|
-
interface EffectKeyInput {
|
|
202
|
-
readonly contract: 'external-effect-reconciliation.v1';
|
|
203
|
-
readonly workspaceId: string;
|
|
204
|
-
readonly rootRunId: string;
|
|
205
|
-
readonly runId: string;
|
|
206
|
-
readonly snapshotDigest: string;
|
|
207
|
-
readonly workUnitKind: string;
|
|
208
|
-
readonly stepKey?: string;
|
|
209
|
-
readonly participantKey?: string;
|
|
210
|
-
readonly effectSlot: string;
|
|
211
|
-
readonly operationFamily: string;
|
|
212
|
-
}
|
|
213
|
-
export interface RequestDigestInput {
|
|
214
|
-
readonly contract: 'external-effect-reconciliation.v1';
|
|
215
|
-
readonly providerPath: string;
|
|
216
|
-
readonly providerAdapterVersion: string;
|
|
217
|
-
readonly providerRequestSchemaDigest: string;
|
|
218
|
-
readonly operation: string;
|
|
219
|
-
readonly providerTargetIdentity: ExternalEffectProviderTargetIdentity;
|
|
220
|
-
readonly normalizedRequest: NormalizedProviderRequest;
|
|
221
|
-
readonly secretReferencePlaceholders: readonly string[];
|
|
222
|
-
readonly semanticIdempotencyMode: EffectLookupMode;
|
|
223
|
-
}
|
|
224
|
-
export declare function effectKeyDigest(input: EffectKeyInput): string;
|
|
225
|
-
export declare function requestDigest(input: RequestDigestInput): string;
|
|
226
|
-
export declare function lookupIdentityDigest(input: ExternalEffectLookupIdentity): string;
|
|
227
|
-
export declare function providerTargetDigest(input: ExternalEffectProviderTargetIdentity): string;
|
|
228
|
-
export declare function providerIdempotencyKey(providerPath: string, accountScopeDigest: string, effectKey: string): string;
|
|
229
|
-
declare const ExternalEffectInvariantError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
230
|
-
readonly _tag: "ExternalEffectInvariantError";
|
|
231
|
-
} & Readonly<A>;
|
|
232
|
-
export declare class ExternalEffectInvariantError extends ExternalEffectInvariantError_base<{
|
|
233
|
-
readonly code: string;
|
|
234
|
-
readonly message: string;
|
|
235
|
-
}> {
|
|
236
|
-
constructor(code: string, message: string);
|
|
237
|
-
}
|
|
238
|
-
type ExternalEffectTransition = {
|
|
239
|
-
readonly kind: 'begin_executing';
|
|
240
|
-
readonly reservation: EffectReservation;
|
|
241
|
-
readonly expectedResourceVersion: number;
|
|
242
|
-
readonly now: string;
|
|
243
|
-
} | {
|
|
244
|
-
readonly kind: 'record_applied';
|
|
245
|
-
readonly reservation: EffectReservation;
|
|
246
|
-
readonly expectedResourceVersion: number;
|
|
247
|
-
readonly proof: ExternalEffectProof;
|
|
248
|
-
readonly now: string;
|
|
249
|
-
} | {
|
|
250
|
-
readonly kind: 'record_absent';
|
|
251
|
-
readonly reservation: EffectReservation;
|
|
252
|
-
readonly expectedResourceVersion: number;
|
|
253
|
-
readonly proof: ExternalEffectProof;
|
|
254
|
-
readonly now: string;
|
|
255
|
-
} | {
|
|
256
|
-
readonly kind: 'record_unknown';
|
|
257
|
-
readonly reservation: EffectReservation;
|
|
258
|
-
readonly expectedResourceVersion: number;
|
|
259
|
-
readonly reasonCode: string;
|
|
260
|
-
readonly now: string;
|
|
261
|
-
} | {
|
|
262
|
-
readonly kind: 'begin_reconciliation';
|
|
263
|
-
readonly reservation: EffectReservation;
|
|
264
|
-
readonly expectedResourceVersion: number;
|
|
265
|
-
readonly now: string;
|
|
266
|
-
} | {
|
|
267
|
-
readonly kind: 'record_lookup';
|
|
268
|
-
readonly reservation: EffectReservation;
|
|
269
|
-
readonly expectedResourceVersion: number;
|
|
270
|
-
readonly proof: ExternalEffectProof;
|
|
271
|
-
readonly now: string;
|
|
272
|
-
} | {
|
|
273
|
-
readonly kind: 'prepare_retry';
|
|
274
|
-
readonly reservation: EffectReservation;
|
|
275
|
-
readonly expectedResourceVersion: number;
|
|
276
|
-
readonly now: string;
|
|
277
|
-
} | {
|
|
278
|
-
readonly kind: 'manual';
|
|
279
|
-
readonly reservation?: EffectReservation;
|
|
280
|
-
readonly expectedResourceVersion: number;
|
|
281
|
-
readonly reasonCode: string;
|
|
282
|
-
readonly now: string;
|
|
283
|
-
};
|
|
284
|
-
export declare function assertExternalEffectProof(effect: ExternalEffect, proof: ExternalEffectProof, classification: EffectObservationClassification): void;
|
|
285
|
-
export declare function transitionExternalEffect(effect: ExternalEffect, transition: ExternalEffectTransition): ExternalEffect;
|
|
286
|
-
type EffectIntentTransition = {
|
|
287
|
-
readonly kind: 'claim';
|
|
288
|
-
readonly reservation: EffectReservation;
|
|
289
|
-
readonly expectedResourceVersion: number;
|
|
290
|
-
} | {
|
|
291
|
-
readonly kind: 'begin_executing';
|
|
292
|
-
readonly reservation: EffectReservation;
|
|
293
|
-
readonly expectedResourceVersion: number;
|
|
294
|
-
} | {
|
|
295
|
-
readonly kind: 'applied';
|
|
296
|
-
readonly reservation: EffectReservation;
|
|
297
|
-
readonly expectedResourceVersion: number;
|
|
298
|
-
} | {
|
|
299
|
-
readonly kind: 'retryable';
|
|
300
|
-
readonly reservation: EffectReservation;
|
|
301
|
-
readonly expectedResourceVersion: number;
|
|
302
|
-
} | {
|
|
303
|
-
readonly kind: 'record_unknown';
|
|
304
|
-
readonly reservation: EffectReservation;
|
|
305
|
-
readonly expectedResourceVersion: number;
|
|
306
|
-
readonly reasonCode: string;
|
|
307
|
-
} | {
|
|
308
|
-
readonly kind: 'blocked';
|
|
309
|
-
readonly expectedResourceVersion: number;
|
|
310
|
-
readonly reasonCode: string;
|
|
311
|
-
};
|
|
312
|
-
export declare function transitionEffectIntent(intent: EffectIntent, transition: EffectIntentTransition): EffectIntent;
|
|
313
|
-
export {};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
export declare const FixFlowFailureCategories: readonly ['harness_error', 'sandbox_error', 'verification_failed', 'review_failed', 'delivery_failed', 'missing_context', 'context_stale', 'rate_limited', 'canceled', 'missing_skill', 'stale_lease', 'missing_secret', 'materialization_failed', 'runner_unavailable', 'sandbox_unsupported', 'readiness_blocked', 'unknown'];
|
|
3
|
-
export declare const FixFlowRecoveryActions: readonly ['retry', 'repair_readiness', 'refresh_context', 'sync_agent_environment', 'escalate_sandbox', 'pause', 'resume', 'cancel', 'takeover', 'rotate_secret_ref', 'rerun_verification', 'create_follow_up', 'drain_replica', 'discard_cache'];
|
|
4
|
-
export declare const FixFlowRecoveryAction: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
5
|
-
type FixFlowSafeMetadataValue = string | boolean | number | null | readonly FixFlowSafeMetadataValue[] | {
|
|
6
|
-
readonly [key: string]: FixFlowSafeMetadataValue;
|
|
7
|
-
};
|
|
8
|
-
declare const FixFlowSafeMetadataValue: Schema.Codec<FixFlowSafeMetadataValue>;
|
|
9
|
-
export declare const FixFlowFailure: Schema.Struct<{
|
|
10
|
-
readonly outcome: Schema.Literals<readonly ["retry", "repair_task", "blocked", "terminal_failure"]>;
|
|
11
|
-
readonly category: Schema.Literals<readonly ["harness_error", "sandbox_error", "verification_failed", "review_failed", "delivery_failed", "missing_context", "context_stale", "rate_limited", "canceled", "missing_skill", "stale_lease", "missing_secret", "materialization_failed", "runner_unavailable", "sandbox_unsupported", "readiness_blocked", "unknown"]>;
|
|
12
|
-
readonly summary: Schema.String;
|
|
13
|
-
readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
|
|
14
|
-
readonly repairTask: Schema.optionalKey<Schema.Struct<{
|
|
15
|
-
readonly title: Schema.String;
|
|
16
|
-
readonly reason: Schema.String;
|
|
17
|
-
readonly blocksCurrentTask: Schema.Boolean;
|
|
18
|
-
readonly suggestedStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"blocked">, Schema.Literal<"backlog">]>>;
|
|
19
|
-
}>>;
|
|
20
|
-
readonly evidenceRefs: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
21
|
-
readonly kind: Schema.String;
|
|
22
|
-
readonly id: Schema.optionalKey<Schema.String>;
|
|
23
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
24
|
-
}>>>;
|
|
25
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<FixFlowSafeMetadataValue, FixFlowSafeMetadataValue, never, never>>>;
|
|
26
|
-
}>;
|
|
27
|
-
export declare const FixFlowRecoveryRequest: Schema.Struct<{
|
|
28
|
-
readonly action: Schema.optionalKey<Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>>;
|
|
29
|
-
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
30
|
-
readonly expectedResourceVersion: Schema.optionalKey<Schema.Int>;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const FixFlowRecoveryPlan: Schema.Struct<{
|
|
33
|
-
readonly contractVersion: Schema.Literal<"fix-flow.v1">;
|
|
34
|
-
readonly productName: Schema.Literal<"Fix Flow">;
|
|
35
|
-
readonly target: Schema.Struct<{
|
|
36
|
-
readonly kind: Schema.Literals<readonly ["loop_step", "step_attempt", "run", "task", "runner_replica"]>;
|
|
37
|
-
readonly id: Schema.String;
|
|
38
|
-
}>;
|
|
39
|
-
readonly canonicalIds: Schema.Struct<{
|
|
40
|
-
readonly workUnitId: Schema.optionalKey<Schema.String>;
|
|
41
|
-
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
42
|
-
readonly runId: Schema.optionalKey<Schema.String>;
|
|
43
|
-
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
44
|
-
readonly runnerReplicaId: Schema.optionalKey<Schema.String>;
|
|
45
|
-
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
46
|
-
}>;
|
|
47
|
-
readonly failure: Schema.Struct<{
|
|
48
|
-
readonly outcome: Schema.Literals<readonly ["retry", "repair_task", "blocked", "terminal_failure"]>;
|
|
49
|
-
readonly category: Schema.Literals<readonly ["harness_error", "sandbox_error", "verification_failed", "review_failed", "delivery_failed", "missing_context", "context_stale", "rate_limited", "canceled", "missing_skill", "stale_lease", "missing_secret", "materialization_failed", "runner_unavailable", "sandbox_unsupported", "readiness_blocked", "unknown"]>;
|
|
50
|
-
readonly summary: Schema.String;
|
|
51
|
-
readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
|
|
52
|
-
readonly repairTask: Schema.optionalKey<Schema.Struct<{
|
|
53
|
-
readonly title: Schema.String;
|
|
54
|
-
readonly reason: Schema.String;
|
|
55
|
-
readonly blocksCurrentTask: Schema.Boolean;
|
|
56
|
-
readonly suggestedStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"blocked">, Schema.Literal<"backlog">]>>;
|
|
57
|
-
}>>;
|
|
58
|
-
readonly evidenceRefs: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
59
|
-
readonly kind: Schema.String;
|
|
60
|
-
readonly id: Schema.optionalKey<Schema.String>;
|
|
61
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
62
|
-
}>>>;
|
|
63
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<FixFlowSafeMetadataValue, FixFlowSafeMetadataValue, never, never>>>;
|
|
64
|
-
}>;
|
|
65
|
-
readonly recommendedAction: Schema.Struct<{
|
|
66
|
-
readonly kind: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
67
|
-
readonly label: Schema.String;
|
|
68
|
-
readonly reason: Schema.String;
|
|
69
|
-
readonly requiresApproval: Schema.Boolean;
|
|
70
|
-
}>;
|
|
71
|
-
readonly evidenceRefs: Schema.$Array<Schema.Struct<{
|
|
72
|
-
readonly kind: Schema.String;
|
|
73
|
-
readonly id: Schema.optionalKey<Schema.String>;
|
|
74
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
75
|
-
}>>;
|
|
76
|
-
}>;
|
|
77
|
-
export declare const FixFlowRecoveryResult: Schema.Struct<{
|
|
78
|
-
readonly contractVersion: Schema.Literal<"fix-flow.v1">;
|
|
79
|
-
readonly productName: Schema.Literal<"Fix Flow">;
|
|
80
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"applied">, Schema.Literal<"queued">, Schema.Literal<"already_applied">]>;
|
|
81
|
-
readonly action: Schema.Struct<{
|
|
82
|
-
readonly kind: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
83
|
-
readonly label: Schema.String;
|
|
84
|
-
readonly reason: Schema.String;
|
|
85
|
-
readonly requiresApproval: Schema.Boolean;
|
|
86
|
-
}>;
|
|
87
|
-
readonly summary: Schema.String;
|
|
88
|
-
readonly changedRefs: Schema.$Array<Schema.Struct<{
|
|
89
|
-
readonly kind: Schema.String;
|
|
90
|
-
readonly id: Schema.optionalKey<Schema.String>;
|
|
91
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
92
|
-
}>>;
|
|
93
|
-
readonly evidenceRefs: Schema.$Array<Schema.Struct<{
|
|
94
|
-
readonly kind: Schema.String;
|
|
95
|
-
readonly id: Schema.optionalKey<Schema.String>;
|
|
96
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
97
|
-
}>>;
|
|
98
|
-
readonly plan: Schema.optionalKey<Schema.Struct<{
|
|
99
|
-
readonly contractVersion: Schema.Literal<"fix-flow.v1">;
|
|
100
|
-
readonly productName: Schema.Literal<"Fix Flow">;
|
|
101
|
-
readonly target: Schema.Struct<{
|
|
102
|
-
readonly kind: Schema.Literals<readonly ["loop_step", "step_attempt", "run", "task", "runner_replica"]>;
|
|
103
|
-
readonly id: Schema.String;
|
|
104
|
-
}>;
|
|
105
|
-
readonly canonicalIds: Schema.Struct<{
|
|
106
|
-
readonly workUnitId: Schema.optionalKey<Schema.String>;
|
|
107
|
-
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
108
|
-
readonly runId: Schema.optionalKey<Schema.String>;
|
|
109
|
-
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
110
|
-
readonly runnerReplicaId: Schema.optionalKey<Schema.String>;
|
|
111
|
-
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
112
|
-
}>;
|
|
113
|
-
readonly failure: Schema.Struct<{
|
|
114
|
-
readonly outcome: Schema.Literals<readonly ["retry", "repair_task", "blocked", "terminal_failure"]>;
|
|
115
|
-
readonly category: Schema.Literals<readonly ["harness_error", "sandbox_error", "verification_failed", "review_failed", "delivery_failed", "missing_context", "context_stale", "rate_limited", "canceled", "missing_skill", "stale_lease", "missing_secret", "materialization_failed", "runner_unavailable", "sandbox_unsupported", "readiness_blocked", "unknown"]>;
|
|
116
|
-
readonly summary: Schema.String;
|
|
117
|
-
readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
|
|
118
|
-
readonly repairTask: Schema.optionalKey<Schema.Struct<{
|
|
119
|
-
readonly title: Schema.String;
|
|
120
|
-
readonly reason: Schema.String;
|
|
121
|
-
readonly blocksCurrentTask: Schema.Boolean;
|
|
122
|
-
readonly suggestedStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"blocked">, Schema.Literal<"backlog">]>>;
|
|
123
|
-
}>>;
|
|
124
|
-
readonly evidenceRefs: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
125
|
-
readonly kind: Schema.String;
|
|
126
|
-
readonly id: Schema.optionalKey<Schema.String>;
|
|
127
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
128
|
-
}>>>;
|
|
129
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<FixFlowSafeMetadataValue, FixFlowSafeMetadataValue, never, never>>>;
|
|
130
|
-
}>;
|
|
131
|
-
readonly recommendedAction: Schema.Struct<{
|
|
132
|
-
readonly kind: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
133
|
-
readonly label: Schema.String;
|
|
134
|
-
readonly reason: Schema.String;
|
|
135
|
-
readonly requiresApproval: Schema.Boolean;
|
|
136
|
-
}>;
|
|
137
|
-
readonly evidenceRefs: Schema.$Array<Schema.Struct<{
|
|
138
|
-
readonly kind: Schema.String;
|
|
139
|
-
readonly id: Schema.optionalKey<Schema.String>;
|
|
140
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
141
|
-
}>>;
|
|
142
|
-
}>>;
|
|
143
|
-
}>;
|
|
144
|
-
export type FixFlowRecoveryAction = (typeof FixFlowRecoveryAction)['Type'];
|
|
145
|
-
export type FixFlowFailure = (typeof FixFlowFailure)['Type'];
|
|
146
|
-
export type FixFlowRecoveryPlan = (typeof FixFlowRecoveryPlan)['Type'];
|
|
147
|
-
export type FixFlowRecoveryRequest = (typeof FixFlowRecoveryRequest)['Type'];
|
|
148
|
-
export type FixFlowRecoveryResult = (typeof FixFlowRecoveryResult)['Type'];
|
|
149
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
export declare const FollowTarget: Schema.Struct<{
|
|
3
|
-
readonly kind: Schema.Literal<"task">;
|
|
4
|
-
readonly taskId: Schema.String;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const FollowEventPreset: Schema.Literals<readonly ["attention", "all"]>;
|
|
7
|
-
export declare const FollowCreate: Schema.Struct<{
|
|
8
|
-
readonly target: Schema.Struct<{
|
|
9
|
-
readonly kind: Schema.Literal<"task">;
|
|
10
|
-
readonly taskId: Schema.String;
|
|
11
|
-
}>;
|
|
12
|
-
readonly preset: Schema.optionalKey<Schema.Literals<readonly ["attention", "all"]>>;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const Follow: Schema.Struct<{
|
|
15
|
-
readonly id: Schema.String;
|
|
16
|
-
readonly workspaceId: Schema.String;
|
|
17
|
-
readonly target: Schema.Struct<{
|
|
18
|
-
readonly kind: Schema.Literal<"task">;
|
|
19
|
-
readonly taskId: Schema.String;
|
|
20
|
-
}>;
|
|
21
|
-
readonly preset: Schema.Literals<readonly ["attention", "all"]>;
|
|
22
|
-
readonly createdAt: Schema.String;
|
|
23
|
-
readonly updatedAt: Schema.String;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const FollowListQuery: Schema.Struct<{
|
|
26
|
-
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
27
|
-
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
28
|
-
}>;
|
|
29
|
-
export declare const FollowList: Schema.Struct<{
|
|
30
|
-
readonly items: Schema.$Array<Schema.Struct<{
|
|
31
|
-
readonly id: Schema.String;
|
|
32
|
-
readonly workspaceId: Schema.String;
|
|
33
|
-
readonly target: Schema.Struct<{
|
|
34
|
-
readonly kind: Schema.Literal<"task">;
|
|
35
|
-
readonly taskId: Schema.String;
|
|
36
|
-
}>;
|
|
37
|
-
readonly preset: Schema.Literals<readonly ["attention", "all"]>;
|
|
38
|
-
readonly createdAt: Schema.String;
|
|
39
|
-
readonly updatedAt: Schema.String;
|
|
40
|
-
}>>;
|
|
41
|
-
readonly pageInfo: Schema.Union<readonly [Schema.Struct<{
|
|
42
|
-
readonly limit: Schema.Int;
|
|
43
|
-
readonly hasNextPage: Schema.Literal<false>;
|
|
44
|
-
}>, Schema.Struct<{
|
|
45
|
-
readonly limit: Schema.Int;
|
|
46
|
-
readonly hasNextPage: Schema.Literal<true>;
|
|
47
|
-
readonly nextCursor: Schema.String;
|
|
48
|
-
}>]>;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const FollowDelete: Schema.Struct<{
|
|
51
|
-
readonly deleted: Schema.Literal<true>;
|
|
52
|
-
}>;
|
|
53
|
-
export type FollowTarget = (typeof FollowTarget)['Type'];
|
|
54
|
-
export type FollowEventPreset = (typeof FollowEventPreset)['Type'];
|
|
55
|
-
export type FollowCreate = (typeof FollowCreate)['Type'];
|
|
56
|
-
export type Follow = (typeof Follow)['Type'];
|
|
57
|
-
export type FollowListQuery = (typeof FollowListQuery)['Type'];
|
|
58
|
-
export type FollowList = (typeof FollowList)['Type'];
|
|
59
|
-
export type FollowDelete = (typeof FollowDelete)['Type'];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** Non-secret certification fixtures. Hosted GitHub and GHES remain independent rows. */
|
|
2
|
-
export declare const GitHubDeliveryCertificationFixtures: readonly [{
|
|
3
|
-
readonly rowId: 'DELIVERY-GITHUB-COM-EPIC-INTEGRATION-V1';
|
|
4
|
-
readonly hostClass: 'github_com';
|
|
5
|
-
readonly host: 'github.com';
|
|
6
|
-
readonly repositoryId: 'fixture-github-com-repository';
|
|
7
|
-
readonly owner: 'kitman-fixtures';
|
|
8
|
-
readonly repositoryName: 'epic-delivery';
|
|
9
|
-
readonly adapterVersion: 'github.v1';
|
|
10
|
-
readonly apiVersion: '2022-11-28';
|
|
11
|
-
readonly accountScopeDigest: string;
|
|
12
|
-
readonly apiBaseUrl: 'https://api.github.com';
|
|
13
|
-
readonly protectionProfile: 'protected-default-human-merge';
|
|
14
|
-
readonly authMode: 'runner_secret_ref';
|
|
15
|
-
}, {
|
|
16
|
-
readonly rowId: 'DELIVERY-GHES-EPIC-INTEGRATION-V1';
|
|
17
|
-
readonly hostClass: 'github_enterprise_server';
|
|
18
|
-
readonly host: 'github.example.test';
|
|
19
|
-
readonly repositoryId: 'fixture-ghes-repository';
|
|
20
|
-
readonly owner: 'kitman-fixtures';
|
|
21
|
-
readonly repositoryName: 'epic-delivery';
|
|
22
|
-
readonly adapterVersion: 'github.v1';
|
|
23
|
-
readonly apiVersion: '2022-11-28';
|
|
24
|
-
readonly accountScopeDigest: string;
|
|
25
|
-
readonly apiBaseUrl: 'https://github.example.test/api/v3';
|
|
26
|
-
readonly protectionProfile: 'protected-default-human-merge';
|
|
27
|
-
readonly authMode: 'runner_secret_ref';
|
|
28
|
-
}];
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from './runtime-type';
|
|
2
|
-
import type { DeliveryAttempt, DeliveryPolicy, DeliveryPolicyOperation } from './delivery-policy';
|
|
3
|
-
export declare const GitHubProviderOperations: readonly ['create_branch', 'update_branch', 'create_pull_request', 'update_pull_request', 'read_checks', 'request_review', 'record_review', 'update_description', 'reply_review_thread', 'set_draft_state', 'publish_check_run', 'set_pull_request_state', 'enqueue_pull_request', 'delete_merged_branch', 'merge_pull_request', 'reconcile', 'conflict'];
|
|
4
|
-
type GitHubProviderOperation = (typeof GitHubProviderOperations)[number];
|
|
5
|
-
type GitHubHostClass = 'github_com' | 'github_enterprise_server';
|
|
6
|
-
type GitHubObservationClassification = 'found_same' | 'not_found' | 'found_conflict';
|
|
7
|
-
export declare function assertGitHubProviderOperation(deliveryOperation: DeliveryPolicyOperation, providerOperation: GitHubProviderOperation): void;
|
|
8
|
-
export declare function githubProviderOperationForDeliveryOperation(deliveryOperation: DeliveryPolicyOperation): GitHubProviderOperation;
|
|
9
|
-
export interface DeclaredGitHubRepository {
|
|
10
|
-
readonly rowId: string;
|
|
11
|
-
readonly hostClass: GitHubHostClass;
|
|
12
|
-
readonly host: string;
|
|
13
|
-
readonly repositoryId: string;
|
|
14
|
-
readonly owner: string;
|
|
15
|
-
readonly repositoryName: string;
|
|
16
|
-
readonly adapterVersion: string;
|
|
17
|
-
readonly apiVersion: string;
|
|
18
|
-
readonly accountScopeDigest: string;
|
|
19
|
-
readonly apiBaseUrl: string;
|
|
20
|
-
}
|
|
21
|
-
export interface GitHubDeliveryExpectation {
|
|
22
|
-
readonly operation: GitHubProviderOperation;
|
|
23
|
-
readonly deliveryOperation: DeliveryPolicyOperation;
|
|
24
|
-
readonly repositoryId: string;
|
|
25
|
-
readonly host: string;
|
|
26
|
-
readonly sourceBranch?: string;
|
|
27
|
-
readonly targetBranch?: string;
|
|
28
|
-
readonly sourceSha?: string;
|
|
29
|
-
readonly targetSha?: string;
|
|
30
|
-
readonly pullRequestNumber?: string;
|
|
31
|
-
readonly title?: string;
|
|
32
|
-
readonly effectMarker: string;
|
|
33
|
-
}
|
|
34
|
-
export interface GitHubProviderObservation {
|
|
35
|
-
readonly operation: GitHubProviderOperation;
|
|
36
|
-
readonly repositoryId: string;
|
|
37
|
-
readonly host: string;
|
|
38
|
-
readonly providerObjectId?: string;
|
|
39
|
-
readonly pullRequestNumber?: string;
|
|
40
|
-
readonly sourceBranch?: string;
|
|
41
|
-
readonly targetBranch?: string;
|
|
42
|
-
readonly sourceSha?: string;
|
|
43
|
-
readonly targetSha?: string;
|
|
44
|
-
readonly effectMarker?: string;
|
|
45
|
-
readonly resultingSha?: string;
|
|
46
|
-
}
|
|
47
|
-
type GitHubIdentityPin = 'sourceBranch' | 'targetBranch' | 'sourceSha' | 'targetSha' | 'pullRequestNumber';
|
|
48
|
-
export declare function githubIdentityPinsForOperation(operation: GitHubProviderOperation): readonly GitHubIdentityPin[];
|
|
49
|
-
export declare function normalizeGitHubDeliveryExpectation(expectation: GitHubDeliveryExpectation, attempt: Pick<DeliveryAttempt, 'source' | 'target'>): GitHubDeliveryExpectation;
|
|
50
|
-
declare const GitHubDeliveryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
51
|
-
readonly _tag: "GitHubDeliveryError";
|
|
52
|
-
} & Readonly<A>;
|
|
53
|
-
export declare class GitHubDeliveryError extends GitHubDeliveryError_base<{
|
|
54
|
-
readonly code: string;
|
|
55
|
-
readonly message: string;
|
|
56
|
-
}> {
|
|
57
|
-
constructor(code: string, message: string);
|
|
58
|
-
}
|
|
59
|
-
export declare function isDeclaredGitHubHost(input: Pick<DeclaredGitHubRepository, 'hostClass' | 'host'>): boolean;
|
|
60
|
-
export declare function assertDeclaredGitHubRepository(repository: DeclaredGitHubRepository): void;
|
|
61
|
-
export declare function assertSafeGitHubRef(ref: string): void;
|
|
62
|
-
export declare function githubRepositoryPath(repository: Pick<DeclaredGitHubRepository, 'owner' | 'repositoryName'>): string;
|
|
63
|
-
export declare function assertGitHubDeliveryTarget(input: {
|
|
64
|
-
readonly policy: DeliveryPolicy;
|
|
65
|
-
readonly operation: DeliveryPolicyOperation;
|
|
66
|
-
readonly targetBranch: string;
|
|
67
|
-
}): void;
|
|
68
|
-
export declare function githubRequestMarker(input: {
|
|
69
|
-
readonly effectKey: string;
|
|
70
|
-
readonly policyDigest: string;
|
|
71
|
-
}): string;
|
|
72
|
-
export declare function classifyGitHubProviderObservation(expected: GitHubDeliveryExpectation, observed: GitHubProviderObservation | null): GitHubObservationClassification;
|
|
73
|
-
export declare function assertExactGitHubSha(expected: string, observed: string, kind: 'source' | 'target'): void;
|
|
74
|
-
export type GitHubProviderEvidence = {
|
|
75
|
-
readonly [key: string]: JsonValue;
|
|
76
|
-
};
|
|
77
|
-
export declare function safeGitHubProviderEvidence<Evidence extends GitHubProviderEvidence>(input: Evidence): Evidence;
|
|
78
|
-
export {};
|