@kitman-sh/sdk 0.10.82 → 0.10.83
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/dist/build/index.js +2 -2
- package/dist/{chunk-fc5r66fq.js → chunk-3pz068kn.js} +11 -5
- package/dist/{chunk-0f530caz.js → chunk-cqknxyv9.js} +88 -47
- package/dist/loop/index.js +7 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/a2a.d.ts +577 -0
- package/types/packages/core/src/agent-capabilities.d.ts +1434 -0
- package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
- package/types/packages/core/src/approval-queue.d.ts +126 -0
- package/types/packages/core/src/audit.d.ts +52 -0
- package/types/packages/core/src/change-delivery.d.ts +39 -0
- package/types/packages/core/src/change-request-review.d.ts +361 -0
- package/types/packages/core/src/change-request.d.ts +288 -0
- package/types/packages/core/src/connection.d.ts +33 -0
- package/types/packages/core/src/context-feedback.d.ts +89 -0
- package/types/packages/core/src/data-lifecycle.d.ts +195 -0
- package/types/packages/core/src/decision.d.ts +48 -0
- package/types/packages/core/src/delivery-operation.d.ts +125 -0
- package/types/packages/core/src/delivery-policy.d.ts +174 -0
- package/types/packages/core/src/enterprise-forge.d.ts +19 -0
- package/types/packages/core/src/epic-delivery.d.ts +38 -0
- package/types/packages/core/src/external-effect.d.ts +313 -0
- package/types/packages/core/src/fix-flow.d.ts +149 -0
- package/types/packages/core/src/following.d.ts +59 -0
- package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
- package/types/packages/core/src/github-delivery.d.ts +78 -0
- package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
- package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
- package/types/packages/core/src/global-search.d.ts +42 -0
- package/types/packages/core/src/id.d.ts +1 -0
- package/types/packages/core/src/integration.d.ts +276 -0
- package/types/packages/core/src/intent.d.ts +260 -0
- package/types/packages/core/src/kit-install.d.ts +130 -0
- package/types/packages/core/src/live.d.ts +8231 -0
- package/types/packages/core/src/marketplace.d.ts +168 -0
- package/types/packages/core/src/me.d.ts +31 -0
- package/types/packages/core/src/memory.d.ts +93 -0
- package/types/packages/core/src/my-teams.d.ts +1599 -0
- package/types/packages/core/src/notification.d.ts +250 -0
- package/types/packages/core/src/observability.d.ts +175 -0
- package/types/packages/core/src/owner.d.ts +15 -0
- package/types/packages/core/src/personal-development-profile.d.ts +11 -0
- package/types/packages/core/src/platform-release.d.ts +60 -0
- package/types/packages/core/src/program-credential.d.ts +10 -0
- package/types/packages/core/src/provider-safe-text.d.ts +2 -0
- package/types/packages/core/src/push.d.ts +68 -0
- package/types/packages/core/src/run-display.d.ts +22 -0
- package/types/packages/core/src/run-file.d.ts +190 -0
- package/types/packages/core/src/run-graph.d.ts +67 -0
- package/types/packages/core/src/run-journal.d.ts +28 -0
- package/types/packages/core/src/run-launch.d.ts +82 -0
- package/types/packages/core/src/runner-eligibility.d.ts +62 -0
- package/types/packages/core/src/runner-routing.d.ts +11 -0
- package/types/packages/core/src/runner-trust.d.ts +67 -0
- package/types/packages/core/src/runner.d.ts +4076 -0
- package/types/packages/core/src/scope-directory.d.ts +100 -0
- package/types/packages/core/src/session.d.ts +90 -0
- package/types/packages/core/src/step-brief.d.ts +70 -0
- package/types/packages/core/src/storage.d.ts +49 -0
- package/types/packages/core/src/sync-kit.d.ts +595 -0
- package/types/packages/core/src/task-detail.d.ts +511 -0
- package/types/packages/core/src/task-execution-record.d.ts +620 -0
- package/types/packages/core/src/task-key.d.ts +9 -0
- package/types/packages/core/src/task.d.ts +588 -0
- package/types/packages/core/src/team-context.d.ts +43 -0
- package/types/packages/core/src/transcript.d.ts +250 -0
- package/types/packages/core/src/trust-panel.d.ts +27 -0
- package/types/packages/core/src/work-unit.d.ts +33 -1
- package/types/packages/core/src/workspace.d.ts +167 -0
- package/types/packages/live/src/rpc/runner-client.d.ts +15 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +1515 -1486
- package/types/packages/sdk/src/loop/activities.d.ts +3 -0
- package/types/packages/sdk/src/loop/index.d.ts +1 -0
- package/types/packages/sdk/src/loop/resolve.d.ts +13 -0
- package/types/packages/sdk/src/loop/steps.d.ts +5 -0
- package/types/packages/sdk/src/loop/sync.d.ts +8 -1
- package/types/packages/sdk/src/loop/test-loop.d.ts +7 -0
- package/types/packages/sdk/src/program/engine.d.ts +2 -1
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { ActorType } from './common';
|
|
3
|
+
export declare const ChangeRequestStatuses: readonly ['draft', 'open', 'closed', 'merged'];
|
|
4
|
+
export declare const ChangeRequestStatus: Schema.Literals<readonly ["draft", "open", "closed", "merged"]>;
|
|
5
|
+
export declare const ChangeRequestProviderRef: Schema.Struct<{
|
|
6
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
7
|
+
readonly host: Schema.String;
|
|
8
|
+
readonly owner: Schema.String;
|
|
9
|
+
readonly repositoryName: Schema.String;
|
|
10
|
+
readonly providerRepositoryId: Schema.String;
|
|
11
|
+
readonly url: Schema.String;
|
|
12
|
+
readonly externalId: Schema.String;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const ChangeRequestProviderMetadata: Schema.Struct<{
|
|
15
|
+
readonly headCommitSha: Schema.optionalKey<Schema.String>;
|
|
16
|
+
readonly baseCommitSha: Schema.optionalKey<Schema.String>;
|
|
17
|
+
readonly bodyDigest: Schema.optionalKey<Schema.String>;
|
|
18
|
+
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
19
|
+
readonly mergeable: Schema.optionalKey<Schema.Boolean>;
|
|
20
|
+
readonly mergeState: Schema.optionalKey<Schema.String>;
|
|
21
|
+
readonly checkState: Schema.optionalKey<Schema.String>;
|
|
22
|
+
readonly reviewState: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly reviewHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly checkHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
25
|
+
readonly snapshotObservedAt: Schema.optionalKey<Schema.String>;
|
|
26
|
+
readonly reviewObservedAt: Schema.optionalKey<Schema.String>;
|
|
27
|
+
readonly checkObservedAt: Schema.optionalKey<Schema.String>;
|
|
28
|
+
readonly reconciliationState: Schema.optionalKey<Schema.Literals<readonly ["current", "required"]>>;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const ChangeRequest: Schema.Struct<{
|
|
31
|
+
readonly id: Schema.String;
|
|
32
|
+
readonly workspaceId: Schema.String;
|
|
33
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
34
|
+
/** The Tasks it delivers; none for a taskless Run's, such as a scheduled Sweep's batch. */
|
|
35
|
+
readonly taskIds: Schema.$Array<Schema.String>;
|
|
36
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
37
|
+
readonly repoBindingId: Schema.String;
|
|
38
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
39
|
+
readonly host: Schema.String;
|
|
40
|
+
readonly owner: Schema.String;
|
|
41
|
+
readonly repositoryName: Schema.String;
|
|
42
|
+
readonly providerRepositoryId: Schema.String;
|
|
43
|
+
readonly url: Schema.String;
|
|
44
|
+
readonly externalId: Schema.String;
|
|
45
|
+
readonly title: Schema.String;
|
|
46
|
+
readonly sourceBranch: Schema.String;
|
|
47
|
+
readonly targetBranch: Schema.String;
|
|
48
|
+
readonly status: Schema.Literals<readonly ["draft", "open", "closed", "merged"]>;
|
|
49
|
+
readonly draft: Schema.Boolean;
|
|
50
|
+
readonly providerMetadata: Schema.optionalKey<Schema.Struct<{
|
|
51
|
+
readonly headCommitSha: Schema.optionalKey<Schema.String>;
|
|
52
|
+
readonly baseCommitSha: Schema.optionalKey<Schema.String>;
|
|
53
|
+
readonly bodyDigest: Schema.optionalKey<Schema.String>;
|
|
54
|
+
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
55
|
+
readonly mergeable: Schema.optionalKey<Schema.Boolean>;
|
|
56
|
+
readonly mergeState: Schema.optionalKey<Schema.String>;
|
|
57
|
+
readonly checkState: Schema.optionalKey<Schema.String>;
|
|
58
|
+
readonly reviewState: Schema.optionalKey<Schema.String>;
|
|
59
|
+
readonly reviewHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
60
|
+
readonly checkHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
61
|
+
readonly snapshotObservedAt: Schema.optionalKey<Schema.String>;
|
|
62
|
+
readonly reviewObservedAt: Schema.optionalKey<Schema.String>;
|
|
63
|
+
readonly checkObservedAt: Schema.optionalKey<Schema.String>;
|
|
64
|
+
readonly reconciliationState: Schema.optionalKey<Schema.Literals<readonly ["current", "required"]>>;
|
|
65
|
+
}>>;
|
|
66
|
+
readonly lastObservedAt: Schema.String;
|
|
67
|
+
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
68
|
+
readonly createdByActorId: Schema.String;
|
|
69
|
+
readonly createdAt: Schema.String;
|
|
70
|
+
readonly updatedAt: Schema.String;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const ChangeRequestList: Schema.Struct<{
|
|
73
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
74
|
+
readonly id: Schema.String;
|
|
75
|
+
readonly workspaceId: Schema.String;
|
|
76
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
77
|
+
/** The Tasks it delivers; none for a taskless Run's, such as a scheduled Sweep's batch. */
|
|
78
|
+
readonly taskIds: Schema.$Array<Schema.String>;
|
|
79
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
80
|
+
readonly repoBindingId: Schema.String;
|
|
81
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
82
|
+
readonly host: Schema.String;
|
|
83
|
+
readonly owner: Schema.String;
|
|
84
|
+
readonly repositoryName: Schema.String;
|
|
85
|
+
readonly providerRepositoryId: Schema.String;
|
|
86
|
+
readonly url: Schema.String;
|
|
87
|
+
readonly externalId: Schema.String;
|
|
88
|
+
readonly title: Schema.String;
|
|
89
|
+
readonly sourceBranch: Schema.String;
|
|
90
|
+
readonly targetBranch: Schema.String;
|
|
91
|
+
readonly status: Schema.Literals<readonly ["draft", "open", "closed", "merged"]>;
|
|
92
|
+
readonly draft: Schema.Boolean;
|
|
93
|
+
readonly providerMetadata: Schema.optionalKey<Schema.Struct<{
|
|
94
|
+
readonly headCommitSha: Schema.optionalKey<Schema.String>;
|
|
95
|
+
readonly baseCommitSha: Schema.optionalKey<Schema.String>;
|
|
96
|
+
readonly bodyDigest: Schema.optionalKey<Schema.String>;
|
|
97
|
+
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
98
|
+
readonly mergeable: Schema.optionalKey<Schema.Boolean>;
|
|
99
|
+
readonly mergeState: Schema.optionalKey<Schema.String>;
|
|
100
|
+
readonly checkState: Schema.optionalKey<Schema.String>;
|
|
101
|
+
readonly reviewState: Schema.optionalKey<Schema.String>;
|
|
102
|
+
readonly reviewHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
103
|
+
readonly checkHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
104
|
+
readonly snapshotObservedAt: Schema.optionalKey<Schema.String>;
|
|
105
|
+
readonly reviewObservedAt: Schema.optionalKey<Schema.String>;
|
|
106
|
+
readonly checkObservedAt: Schema.optionalKey<Schema.String>;
|
|
107
|
+
readonly reconciliationState: Schema.optionalKey<Schema.Literals<readonly ["current", "required"]>>;
|
|
108
|
+
}>>;
|
|
109
|
+
readonly lastObservedAt: Schema.String;
|
|
110
|
+
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
111
|
+
readonly createdByActorId: Schema.String;
|
|
112
|
+
readonly createdAt: Schema.String;
|
|
113
|
+
readonly updatedAt: Schema.String;
|
|
114
|
+
}>>;
|
|
115
|
+
readonly nextCursor: Schema.optionalKey<Schema.String>;
|
|
116
|
+
}>;
|
|
117
|
+
export declare const ChangeRequestDetail: Schema.Struct<{
|
|
118
|
+
readonly changeRequest: Schema.Struct<{
|
|
119
|
+
readonly id: Schema.String;
|
|
120
|
+
readonly workspaceId: Schema.String;
|
|
121
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
122
|
+
/** The Tasks it delivers; none for a taskless Run's, such as a scheduled Sweep's batch. */
|
|
123
|
+
readonly taskIds: Schema.$Array<Schema.String>;
|
|
124
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
125
|
+
readonly repoBindingId: Schema.String;
|
|
126
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
127
|
+
readonly host: Schema.String;
|
|
128
|
+
readonly owner: Schema.String;
|
|
129
|
+
readonly repositoryName: Schema.String;
|
|
130
|
+
readonly providerRepositoryId: Schema.String;
|
|
131
|
+
readonly url: Schema.String;
|
|
132
|
+
readonly externalId: Schema.String;
|
|
133
|
+
readonly title: Schema.String;
|
|
134
|
+
readonly sourceBranch: Schema.String;
|
|
135
|
+
readonly targetBranch: Schema.String;
|
|
136
|
+
readonly status: Schema.Literals<readonly ["draft", "open", "closed", "merged"]>;
|
|
137
|
+
readonly draft: Schema.Boolean;
|
|
138
|
+
readonly providerMetadata: Schema.optionalKey<Schema.Struct<{
|
|
139
|
+
readonly headCommitSha: Schema.optionalKey<Schema.String>;
|
|
140
|
+
readonly baseCommitSha: Schema.optionalKey<Schema.String>;
|
|
141
|
+
readonly bodyDigest: Schema.optionalKey<Schema.String>;
|
|
142
|
+
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
143
|
+
readonly mergeable: Schema.optionalKey<Schema.Boolean>;
|
|
144
|
+
readonly mergeState: Schema.optionalKey<Schema.String>;
|
|
145
|
+
readonly checkState: Schema.optionalKey<Schema.String>;
|
|
146
|
+
readonly reviewState: Schema.optionalKey<Schema.String>;
|
|
147
|
+
readonly reviewHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
148
|
+
readonly checkHeadCommitSha: Schema.optionalKey<Schema.String>;
|
|
149
|
+
readonly snapshotObservedAt: Schema.optionalKey<Schema.String>;
|
|
150
|
+
readonly reviewObservedAt: Schema.optionalKey<Schema.String>;
|
|
151
|
+
readonly checkObservedAt: Schema.optionalKey<Schema.String>;
|
|
152
|
+
readonly reconciliationState: Schema.optionalKey<Schema.Literals<readonly ["current", "required"]>>;
|
|
153
|
+
}>>;
|
|
154
|
+
readonly lastObservedAt: Schema.String;
|
|
155
|
+
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
156
|
+
readonly createdByActorId: Schema.String;
|
|
157
|
+
readonly createdAt: Schema.String;
|
|
158
|
+
readonly updatedAt: Schema.String;
|
|
159
|
+
}>;
|
|
160
|
+
}>;
|
|
161
|
+
/** A file a ChangeRequest changes, as its forge reports it; Kitman stores none of it. */
|
|
162
|
+
export declare const ChangeRequestChangedFile: Schema.Struct<{
|
|
163
|
+
readonly path: Schema.String;
|
|
164
|
+
readonly previousPath: Schema.optionalKey<Schema.String>;
|
|
165
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "removed", "renamed", "copied", "changed"]>;
|
|
166
|
+
readonly additions: Schema.optionalKey<Schema.Int>;
|
|
167
|
+
readonly deletions: Schema.optionalKey<Schema.Int>;
|
|
168
|
+
readonly patch: Schema.optionalKey<Schema.String>;
|
|
169
|
+
/** `omitted` when the forge sent no patch, `truncated` when Kitman cut it short. */
|
|
170
|
+
readonly patchState: Schema.Literals<readonly ["shown", "omitted", "truncated", "binary"]>;
|
|
171
|
+
}>;
|
|
172
|
+
export declare const ChangeRequestFiles: Schema.Struct<{
|
|
173
|
+
/** The forge's name, for "Open on GitLab". */
|
|
174
|
+
readonly forge: Schema.String;
|
|
175
|
+
readonly url: Schema.String;
|
|
176
|
+
/** Absent when the forge cannot list them or the read failed: the list is on the forge. */
|
|
177
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
178
|
+
readonly path: Schema.String;
|
|
179
|
+
readonly previousPath: Schema.optionalKey<Schema.String>;
|
|
180
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "removed", "renamed", "copied", "changed"]>;
|
|
181
|
+
readonly additions: Schema.optionalKey<Schema.Int>;
|
|
182
|
+
readonly deletions: Schema.optionalKey<Schema.Int>;
|
|
183
|
+
readonly patch: Schema.optionalKey<Schema.String>;
|
|
184
|
+
/** `omitted` when the forge sent no patch, `truncated` when Kitman cut it short. */
|
|
185
|
+
readonly patchState: Schema.Literals<readonly ["shown", "omitted", "truncated", "binary"]>;
|
|
186
|
+
}>>>;
|
|
187
|
+
/** The ChangeRequest changes more files than Kitman lists. */
|
|
188
|
+
readonly more: Schema.optionalKey<Schema.Boolean>;
|
|
189
|
+
}>;
|
|
190
|
+
export type ChangeRequestChangedFile = (typeof ChangeRequestChangedFile)['Type'];
|
|
191
|
+
export type ChangeRequestFiles = (typeof ChangeRequestFiles)['Type'];
|
|
192
|
+
/** A Task to link a ChangeRequest to, which also lifts that Task's suppression. */
|
|
193
|
+
export declare const ChangeRequestTaskLink: Schema.Struct<{
|
|
194
|
+
readonly taskId: Schema.String;
|
|
195
|
+
}>;
|
|
196
|
+
export declare const ChangeRequestReadiness: Schema.Struct<{
|
|
197
|
+
readonly state: Schema.Literals<readonly ["ready", "blocked", "stale"]>;
|
|
198
|
+
readonly headCommitSha: Schema.optionalKey<Schema.String>;
|
|
199
|
+
readonly observedAt: Schema.String;
|
|
200
|
+
readonly refreshDueAt: Schema.String;
|
|
201
|
+
readonly freshness: Schema.Literals<readonly ["current", "stale"]>;
|
|
202
|
+
readonly permissionState: Schema.Literals<readonly ["ready", "missing"]>;
|
|
203
|
+
readonly providerUrl: Schema.String;
|
|
204
|
+
readonly gates: Schema.Struct<{
|
|
205
|
+
readonly providerProtection: Schema.Struct<{
|
|
206
|
+
readonly ready: Schema.Boolean;
|
|
207
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
208
|
+
}>;
|
|
209
|
+
readonly providerChecks: Schema.Struct<{
|
|
210
|
+
readonly ready: Schema.Boolean;
|
|
211
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
212
|
+
}>;
|
|
213
|
+
readonly providerReview: Schema.Struct<{
|
|
214
|
+
readonly ready: Schema.Boolean;
|
|
215
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
216
|
+
}>;
|
|
217
|
+
readonly taskAcceptance: Schema.Struct<{
|
|
218
|
+
readonly ready: Schema.Boolean;
|
|
219
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
220
|
+
}>;
|
|
221
|
+
readonly verification: Schema.Struct<{
|
|
222
|
+
readonly ready: Schema.Boolean;
|
|
223
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
224
|
+
}>;
|
|
225
|
+
readonly independence: Schema.Struct<{
|
|
226
|
+
readonly ready: Schema.Boolean;
|
|
227
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
228
|
+
}>;
|
|
229
|
+
readonly authority: Schema.Struct<{
|
|
230
|
+
readonly ready: Schema.Boolean;
|
|
231
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
232
|
+
}>;
|
|
233
|
+
readonly capability: Schema.Struct<{
|
|
234
|
+
readonly ready: Schema.Boolean;
|
|
235
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
236
|
+
}>;
|
|
237
|
+
}>;
|
|
238
|
+
readonly reasons: Schema.$Array<Schema.String>;
|
|
239
|
+
}>;
|
|
240
|
+
type ChangeRequestReadinessInput = {
|
|
241
|
+
readonly changeRequest: Pick<ChangeRequest, 'status' | 'draft' | 'url' | 'lastObservedAt' | 'createdByActorType' | 'createdByActorId' | 'providerMetadata'>;
|
|
242
|
+
/** Each delivered Task's acceptance criteria; none when it delivers no Task. */
|
|
243
|
+
readonly taskAcceptanceCriteria: readonly (readonly string[])[];
|
|
244
|
+
readonly verificationCommands: readonly string[];
|
|
245
|
+
readonly reviews: readonly Pick<ChangeRequestReviewReadinessEvidence, 'outcome' | 'reviewerActorType' | 'reviewerActorId' | 'headCommitSha'>[];
|
|
246
|
+
readonly connection: {
|
|
247
|
+
readonly connected: boolean;
|
|
248
|
+
readonly credentialConfigured: boolean;
|
|
249
|
+
readonly capabilities: readonly string[];
|
|
250
|
+
};
|
|
251
|
+
/** The latest pipeline result reported to Kitman for the head, when the pipeline runs outside the forge. */
|
|
252
|
+
readonly reportedPipeline?: {
|
|
253
|
+
readonly head: string;
|
|
254
|
+
readonly status: 'success' | 'failed' | 'canceled';
|
|
255
|
+
readonly reportedBy?: {
|
|
256
|
+
readonly actorType: string;
|
|
257
|
+
readonly actorId: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly now: Date;
|
|
261
|
+
readonly maxAgeSeconds?: number;
|
|
262
|
+
};
|
|
263
|
+
type ChangeRequestReviewReadinessEvidence = {
|
|
264
|
+
readonly outcome: string;
|
|
265
|
+
readonly reviewerActorType?: ActorType;
|
|
266
|
+
readonly reviewerActorId?: string;
|
|
267
|
+
readonly headCommitSha?: string;
|
|
268
|
+
};
|
|
269
|
+
/** The actor id Kitman records a Run's own writes under, such as the ChangeRequest it opens or a review it approves. */
|
|
270
|
+
export declare const runActorId: (runId: string) => string;
|
|
271
|
+
/**
|
|
272
|
+
* Whether a review approves `head` independently of whoever opened the ChangeRequest: a person's, or a Run's recorded
|
|
273
|
+
* under `runActorId` once Kitman has checked it did not write the change. Any other agent, including a delegated tool
|
|
274
|
+
* such as a Step's Code Mode, cannot be tied to the Run it works for, so it may be the author.
|
|
275
|
+
*/
|
|
276
|
+
export declare function isIndependentApproval(review: ChangeRequestReviewReadinessEvidence, changeRequest: Pick<ChangeRequest, 'createdByActorType' | 'createdByActorId'>, head: string | undefined): boolean;
|
|
277
|
+
/** The `checkState` a refresh records when the forge ran no checks for the head. */
|
|
278
|
+
export declare const noForgeChecks = "none";
|
|
279
|
+
export declare function evaluateChangeRequestReadiness(input: ChangeRequestReadinessInput): ChangeRequestReadiness;
|
|
280
|
+
export type ChangeRequestStatus = (typeof ChangeRequestStatus)['Type'];
|
|
281
|
+
export type ChangeRequestProviderRef = (typeof ChangeRequestProviderRef)['Type'];
|
|
282
|
+
export type ChangeRequestProviderMetadata = (typeof ChangeRequestProviderMetadata)['Type'];
|
|
283
|
+
export type ChangeRequest = (typeof ChangeRequest)['Type'];
|
|
284
|
+
export type ChangeRequestList = (typeof ChangeRequestList)['Type'];
|
|
285
|
+
export type ChangeRequestDetail = (typeof ChangeRequestDetail)['Type'];
|
|
286
|
+
export type ChangeRequestTaskLink = (typeof ChangeRequestTaskLink)['Type'];
|
|
287
|
+
export type ChangeRequestReadiness = (typeof ChangeRequestReadiness)['Type'];
|
|
288
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const Connection: Schema.Struct<{
|
|
3
|
+
readonly id: Schema.String;
|
|
4
|
+
readonly workspaceId: Schema.String;
|
|
5
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
6
|
+
readonly owner: Schema.Struct<{
|
|
7
|
+
readonly actorType: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>, Schema.Literal<"runner">]>;
|
|
8
|
+
readonly actorId: Schema.String;
|
|
9
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
10
|
+
readonly agentIdentityId: Schema.optionalKey<Schema.String>;
|
|
11
|
+
readonly runnerId: Schema.optionalKey<Schema.String>;
|
|
12
|
+
}>;
|
|
13
|
+
readonly provider: Schema.String;
|
|
14
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
15
|
+
readonly allowedEvents: Schema.$Array<Schema.Struct<{
|
|
16
|
+
readonly name: Schema.String;
|
|
17
|
+
readonly schema: Schema.Struct<{
|
|
18
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
19
|
+
readonly name: Schema.String;
|
|
20
|
+
readonly version: Schema.String;
|
|
21
|
+
readonly sha256: Schema.String;
|
|
22
|
+
}>;
|
|
23
|
+
}>>;
|
|
24
|
+
readonly secretRefs: Schema.$Array<Schema.Struct<{
|
|
25
|
+
readonly kind: Schema.Literal<"secret_ref">;
|
|
26
|
+
readonly ref: Schema.String;
|
|
27
|
+
}>>;
|
|
28
|
+
readonly health: Schema.Literals<readonly ["healthy", "degraded", "unavailable"]>;
|
|
29
|
+
readonly deliveryCursor: Schema.optionalKey<Schema.String>;
|
|
30
|
+
readonly createdAt: Schema.String;
|
|
31
|
+
readonly updatedAt: Schema.String;
|
|
32
|
+
}>;
|
|
33
|
+
export type Connection = (typeof Connection)['Type'];
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const ContextRelevanceFeedbackProposalTargetTypes: readonly ['memory', 'kit', 'decision', 'agent_environment_policy', 'team_context', 'context_relevance'];
|
|
3
|
+
export declare const ContextRelevanceFeedbackKind: Schema.Literals<readonly ["missing_context", "irrelevant_context", "stale_context", "useful_context"]>;
|
|
4
|
+
export declare const ContextRelevanceFeedbackCreate: Schema.Struct<{
|
|
5
|
+
readonly kind: Schema.Literals<readonly ["missing_context", "irrelevant_context", "stale_context", "useful_context"]>;
|
|
6
|
+
readonly contextPackId: Schema.String;
|
|
7
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
8
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
9
|
+
readonly retrievalRefKind: Schema.optionalKey<Schema.String>;
|
|
10
|
+
readonly retrievalRefId: Schema.optionalKey<Schema.String>;
|
|
11
|
+
readonly content: Schema.String;
|
|
12
|
+
readonly evidence: Schema.optionalKey<Schema.String>;
|
|
13
|
+
readonly proposalCandidate: Schema.optionalKey<Schema.Struct<{
|
|
14
|
+
readonly targetType: Schema.Literals<readonly ["memory", "kit", "decision", "agent_environment_policy", "team_context", "context_relevance"]>;
|
|
15
|
+
readonly title: Schema.String;
|
|
16
|
+
readonly summary: Schema.String;
|
|
17
|
+
readonly suggestedChange: Schema.String;
|
|
18
|
+
readonly riskLevel: Schema.optionalKey<Schema.Literals<readonly ["low", "medium", "high"]>>;
|
|
19
|
+
}>>;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const ContextRelevanceFeedback: Schema.Struct<{
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly workspaceId: Schema.String;
|
|
24
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
25
|
+
readonly taskId: Schema.String;
|
|
26
|
+
readonly contextPackId: Schema.String;
|
|
27
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
28
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
29
|
+
readonly kind: Schema.Literals<readonly ["missing_context", "irrelevant_context", "stale_context", "useful_context"]>;
|
|
30
|
+
readonly retrievalRefKind: Schema.optionalKey<Schema.String>;
|
|
31
|
+
readonly retrievalRefId: Schema.optionalKey<Schema.String>;
|
|
32
|
+
readonly content: Schema.String;
|
|
33
|
+
readonly evidence: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly generatedProposalId: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
36
|
+
readonly createdByActorId: Schema.String;
|
|
37
|
+
readonly createdAt: Schema.String;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const ContextRelevanceFeedbackCreateResult: Schema.Struct<{
|
|
40
|
+
readonly feedback: Schema.Struct<{
|
|
41
|
+
readonly id: Schema.String;
|
|
42
|
+
readonly workspaceId: Schema.String;
|
|
43
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
44
|
+
readonly taskId: Schema.String;
|
|
45
|
+
readonly contextPackId: Schema.String;
|
|
46
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
47
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
48
|
+
readonly kind: Schema.Literals<readonly ["missing_context", "irrelevant_context", "stale_context", "useful_context"]>;
|
|
49
|
+
readonly retrievalRefKind: Schema.optionalKey<Schema.String>;
|
|
50
|
+
readonly retrievalRefId: Schema.optionalKey<Schema.String>;
|
|
51
|
+
readonly content: Schema.String;
|
|
52
|
+
readonly evidence: Schema.optionalKey<Schema.String>;
|
|
53
|
+
readonly generatedProposalId: Schema.optionalKey<Schema.String>;
|
|
54
|
+
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
55
|
+
readonly createdByActorId: Schema.String;
|
|
56
|
+
readonly createdAt: Schema.String;
|
|
57
|
+
}>;
|
|
58
|
+
readonly proposal: Schema.optionalKey<Schema.Struct<{
|
|
59
|
+
readonly id: Schema.String;
|
|
60
|
+
readonly workspaceId: Schema.String;
|
|
61
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
62
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
63
|
+
readonly target: Schema.Struct<{
|
|
64
|
+
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
65
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
66
|
+
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
|
|
67
|
+
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
68
|
+
}>;
|
|
69
|
+
readonly title: Schema.String;
|
|
70
|
+
readonly summary: Schema.String;
|
|
71
|
+
readonly status: Schema.Literals<readonly ["proposed", "in_review", "approved", "rejected", "applied", "reverted", "superseded", "canceled"]>;
|
|
72
|
+
readonly riskLevel: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
73
|
+
readonly approvalPolicy: Schema.Struct<{
|
|
74
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
75
|
+
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
76
|
+
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
77
|
+
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
78
|
+
}>;
|
|
79
|
+
readonly proposedByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
80
|
+
readonly proposedByActorId: Schema.String;
|
|
81
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
82
|
+
readonly createdAt: Schema.String;
|
|
83
|
+
readonly updatedAt: Schema.String;
|
|
84
|
+
}>>;
|
|
85
|
+
}>;
|
|
86
|
+
export type ContextRelevanceFeedbackKind = (typeof ContextRelevanceFeedbackKind)['Type'];
|
|
87
|
+
export type ContextRelevanceFeedbackCreate = (typeof ContextRelevanceFeedbackCreate)['Type'];
|
|
88
|
+
export type ContextRelevanceFeedback = (typeof ContextRelevanceFeedback)['Type'];
|
|
89
|
+
export type ContextRelevanceFeedbackCreateResult = (typeof ContextRelevanceFeedbackCreateResult)['Type'];
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
declare const DataLifecycleSubjectKinds: readonly ['workspace', 'team', 'task', 'runner', 'runner_replica'];
|
|
3
|
+
export type DataLifecycleSubjectKind = (typeof DataLifecycleSubjectKinds)[number];
|
|
4
|
+
export declare const DataLifecycleStates: readonly ['active', 'requested', 'draining', 'export_evaluated', 'erased', 'tombstoned', 'blocked_by_hold', 'residue_unknown', 'rejected', 'canceled'];
|
|
5
|
+
export type DataLifecycleState = (typeof DataLifecycleStates)[number];
|
|
6
|
+
declare const DataLifecycleDispositions: readonly ['retain', 'erase', 'tombstone'];
|
|
7
|
+
export type DataLifecycleDisposition = (typeof DataLifecycleDispositions)[number];
|
|
8
|
+
declare const DataLifecycleHoldStatuses: readonly ['active', 'released', 'superseded'];
|
|
9
|
+
export type DataLifecycleHoldStatus = (typeof DataLifecycleHoldStatuses)[number];
|
|
10
|
+
declare const DataLifecycleCaseHoldStatuses: readonly ['none', 'active', 'released'];
|
|
11
|
+
export type DataLifecycleCaseHoldStatus = (typeof DataLifecycleCaseHoldStatuses)[number];
|
|
12
|
+
declare const DataLifecycleResidueDispositions: readonly ['deleted', 'quarantined', 'retained_until', 'unknown'];
|
|
13
|
+
export type DataLifecycleResidueDisposition = (typeof DataLifecycleResidueDispositions)[number];
|
|
14
|
+
export declare const DataLifecycleSubjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
|
|
15
|
+
export declare const DataLifecycleState: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"requested">, Schema.Literal<"draining">, Schema.Literal<"export_evaluated">, Schema.Literal<"erased">, Schema.Literal<"tombstoned">, Schema.Literal<"blocked_by_hold">, Schema.Literal<"residue_unknown">, Schema.Literal<"rejected">, Schema.Literal<"canceled">]>;
|
|
16
|
+
export declare const DataLifecycleDisposition: Schema.Union<readonly [Schema.Literal<"retain">, Schema.Literal<"erase">, Schema.Literal<"tombstone">]>;
|
|
17
|
+
export declare const DataLifecycleHoldStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"released">, Schema.Literal<"superseded">]>;
|
|
18
|
+
export declare const DataLifecycleCaseHoldStatus: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"active">, Schema.Literal<"released">]>;
|
|
19
|
+
export declare const DataLifecycleResidueDisposition: Schema.Union<readonly [Schema.Literal<"deleted">, Schema.Literal<"quarantined">, Schema.Literal<"retained_until">, Schema.Literal<"unknown">]>;
|
|
20
|
+
export declare const DataLifecycleCase: Schema.Struct<{
|
|
21
|
+
readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
|
|
24
|
+
readonly subjectId: Schema.String;
|
|
25
|
+
readonly workspaceId: Schema.String;
|
|
26
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
27
|
+
readonly requestedDisposition: Schema.Union<readonly [Schema.Literal<"retain">, Schema.Literal<"erase">, Schema.Literal<"tombstone">]>;
|
|
28
|
+
readonly policyDigest: Schema.String;
|
|
29
|
+
readonly state: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"requested">, Schema.Literal<"draining">, Schema.Literal<"export_evaluated">, Schema.Literal<"erased">, Schema.Literal<"tombstoned">, Schema.Literal<"blocked_by_hold">, Schema.Literal<"residue_unknown">, Schema.Literal<"rejected">, Schema.Literal<"canceled">]>;
|
|
30
|
+
readonly holdStatus: Schema.Union<readonly [Schema.Literal<"none">, Schema.Literal<"active">, Schema.Literal<"released">]>;
|
|
31
|
+
readonly resourceVersion: Schema.Int;
|
|
32
|
+
readonly containmentVersion: Schema.Int;
|
|
33
|
+
readonly exportManifestId: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly erasureId: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly tombstoneId: Schema.optionalKey<Schema.String>;
|
|
36
|
+
readonly residueUnknown: Schema.Boolean;
|
|
37
|
+
readonly owner: Schema.Struct<{
|
|
38
|
+
readonly actorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
39
|
+
readonly actorId: Schema.String;
|
|
40
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
41
|
+
}>;
|
|
42
|
+
readonly createdAt: Schema.String;
|
|
43
|
+
readonly updatedAt: Schema.String;
|
|
44
|
+
}>;
|
|
45
|
+
export type DataLifecycleCase = (typeof DataLifecycleCase)['Type'];
|
|
46
|
+
export declare const DataLifecycleRequest: Schema.Struct<{
|
|
47
|
+
readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
|
|
48
|
+
readonly subjectId: Schema.String;
|
|
49
|
+
readonly workspaceId: Schema.String;
|
|
50
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
51
|
+
readonly requestedDisposition: Schema.Union<readonly [Schema.Literal<"retain">, Schema.Literal<"erase">, Schema.Literal<"tombstone">]>;
|
|
52
|
+
readonly policyDigest: Schema.String;
|
|
53
|
+
readonly reasonClass: Schema.String;
|
|
54
|
+
readonly expectedResourceVersion: Schema.optionalKey<Schema.Int>;
|
|
55
|
+
}>;
|
|
56
|
+
export type DataLifecycleRequest = (typeof DataLifecycleRequest)['Type'];
|
|
57
|
+
export declare const DataLifecycleHoldRequest: Schema.Struct<{
|
|
58
|
+
readonly scopeKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
|
|
59
|
+
readonly scopeRef: Schema.String;
|
|
60
|
+
readonly categories: Schema.$Array<Schema.String>;
|
|
61
|
+
readonly authorityRef: Schema.String;
|
|
62
|
+
readonly reasonClass: Schema.String;
|
|
63
|
+
readonly reviewAt: Schema.String;
|
|
64
|
+
readonly policyDigest: Schema.String;
|
|
65
|
+
}>;
|
|
66
|
+
export type DataLifecycleHoldRequest = (typeof DataLifecycleHoldRequest)['Type'];
|
|
67
|
+
export declare const DataLifecycleHold: Schema.Struct<{
|
|
68
|
+
readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
|
|
69
|
+
readonly id: Schema.String;
|
|
70
|
+
readonly caseId: Schema.String;
|
|
71
|
+
readonly scopeKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
|
|
72
|
+
readonly scopeRef: Schema.String;
|
|
73
|
+
readonly categories: Schema.$Array<Schema.String>;
|
|
74
|
+
readonly authorityRef: Schema.String;
|
|
75
|
+
readonly reasonClass: Schema.String;
|
|
76
|
+
readonly openedAt: Schema.String;
|
|
77
|
+
readonly reviewAt: Schema.String;
|
|
78
|
+
readonly releasedAt: Schema.optionalKey<Schema.String>;
|
|
79
|
+
readonly policyDigest: Schema.String;
|
|
80
|
+
readonly actor: Schema.Struct<{
|
|
81
|
+
readonly actorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
82
|
+
readonly actorId: Schema.String;
|
|
83
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
84
|
+
}>;
|
|
85
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"released">, Schema.Literal<"superseded">]>;
|
|
86
|
+
}>;
|
|
87
|
+
export type DataLifecycleHold = (typeof DataLifecycleHold)['Type'];
|
|
88
|
+
export declare const DataLifecycleExportManifest: Schema.Struct<{
|
|
89
|
+
readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
|
|
90
|
+
readonly id: Schema.String;
|
|
91
|
+
readonly caseId: Schema.String;
|
|
92
|
+
readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
|
|
93
|
+
readonly subjectId: Schema.String;
|
|
94
|
+
readonly workspaceId: Schema.String;
|
|
95
|
+
readonly policyDigest: Schema.String;
|
|
96
|
+
readonly memberDigests: Schema.$Array<Schema.String>;
|
|
97
|
+
readonly omissions: Schema.$Array<Schema.Struct<{
|
|
98
|
+
readonly category: Schema.String;
|
|
99
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"authorization">, Schema.Literal<"redaction">, Schema.Literal<"retention">, Schema.Literal<"legal_hold">, Schema.Literal<"raw_local">, Schema.Literal<"provider_owned">]>;
|
|
100
|
+
}>>;
|
|
101
|
+
readonly manifestDigest: Schema.String;
|
|
102
|
+
readonly createdAt: Schema.String;
|
|
103
|
+
readonly actor: Schema.Struct<{
|
|
104
|
+
readonly actorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
105
|
+
readonly actorId: Schema.String;
|
|
106
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
107
|
+
}>;
|
|
108
|
+
}>;
|
|
109
|
+
export type DataLifecycleExportManifest = (typeof DataLifecycleExportManifest)['Type'];
|
|
110
|
+
export declare const DataLifecycleExportRequest: Schema.Struct<{
|
|
111
|
+
readonly memberDigests: Schema.$Array<Schema.String>;
|
|
112
|
+
readonly omissions: Schema.$Array<Schema.Struct<{
|
|
113
|
+
readonly category: Schema.String;
|
|
114
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"authorization">, Schema.Literal<"redaction">, Schema.Literal<"retention">, Schema.Literal<"legal_hold">, Schema.Literal<"raw_local">, Schema.Literal<"provider_owned">]>;
|
|
115
|
+
}>>;
|
|
116
|
+
}>;
|
|
117
|
+
export type DataLifecycleExportRequest = (typeof DataLifecycleExportRequest)['Type'];
|
|
118
|
+
export declare const DataLifecycleErasure: Schema.Struct<{
|
|
119
|
+
readonly id: Schema.String;
|
|
120
|
+
readonly caseId: Schema.String;
|
|
121
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"requested">, Schema.Literal<"blocked_by_hold">, Schema.Literal<"approved">, Schema.Literal<"completed">, Schema.Literal<"provider_owned_nonclaim">]>;
|
|
122
|
+
readonly reasonClass: Schema.String;
|
|
123
|
+
readonly policyDigest: Schema.String;
|
|
124
|
+
readonly holdSummary: Schema.String;
|
|
125
|
+
readonly finalRedactionEpoch: Schema.Int;
|
|
126
|
+
readonly tombstoneId: Schema.optionalKey<Schema.String>;
|
|
127
|
+
readonly providerOwnedNonclaim: Schema.Boolean;
|
|
128
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
129
|
+
readonly actorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
130
|
+
readonly actorId: Schema.String;
|
|
131
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
132
|
+
}>>;
|
|
133
|
+
readonly createdAt: Schema.String;
|
|
134
|
+
readonly updatedAt: Schema.String;
|
|
135
|
+
}>;
|
|
136
|
+
export type DataLifecycleErasure = (typeof DataLifecycleErasure)['Type'];
|
|
137
|
+
export declare const DataLifecycleResidueResource: Schema.Struct<{
|
|
138
|
+
readonly resourceKind: Schema.String;
|
|
139
|
+
readonly resourceRef: Schema.String;
|
|
140
|
+
readonly disposition: Schema.Union<readonly [Schema.Literal<"deleted">, Schema.Literal<"quarantined">, Schema.Literal<"retained_until">, Schema.Literal<"unknown">]>;
|
|
141
|
+
readonly retainedUntil: Schema.optionalKey<Schema.String>;
|
|
142
|
+
readonly ownerRef: Schema.optionalKey<Schema.String>;
|
|
143
|
+
readonly policyDigest: Schema.String;
|
|
144
|
+
readonly nextCheckAt: Schema.optionalKey<Schema.String>;
|
|
145
|
+
readonly receiptDigest: Schema.optionalKey<Schema.String>;
|
|
146
|
+
}>;
|
|
147
|
+
export type DataLifecycleResidueResource = (typeof DataLifecycleResidueResource)['Type'];
|
|
148
|
+
export declare const DataLifecycleResidueRequest: Schema.Struct<{
|
|
149
|
+
readonly resources: Schema.$Array<Schema.Struct<{
|
|
150
|
+
readonly resourceKind: Schema.String;
|
|
151
|
+
readonly resourceRef: Schema.String;
|
|
152
|
+
readonly disposition: Schema.Union<readonly [Schema.Literal<"deleted">, Schema.Literal<"quarantined">, Schema.Literal<"retained_until">, Schema.Literal<"unknown">]>;
|
|
153
|
+
readonly retainedUntil: Schema.optionalKey<Schema.String>;
|
|
154
|
+
readonly ownerRef: Schema.optionalKey<Schema.String>;
|
|
155
|
+
readonly policyDigest: Schema.String;
|
|
156
|
+
readonly nextCheckAt: Schema.optionalKey<Schema.String>;
|
|
157
|
+
readonly receiptDigest: Schema.optionalKey<Schema.String>;
|
|
158
|
+
}>>;
|
|
159
|
+
}>;
|
|
160
|
+
export type DataLifecycleResidueRequest = (typeof DataLifecycleResidueRequest)['Type'];
|
|
161
|
+
export declare const DataLifecycleTombstone: Schema.Struct<{
|
|
162
|
+
readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
|
|
163
|
+
readonly id: Schema.String;
|
|
164
|
+
readonly caseId: Schema.String;
|
|
165
|
+
readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
|
|
166
|
+
readonly subjectId: Schema.String;
|
|
167
|
+
readonly workspaceId: Schema.String;
|
|
168
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
169
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
170
|
+
readonly priorSafeDigest: Schema.optionalKey<Schema.String>;
|
|
171
|
+
readonly finalRedactionEpoch: Schema.Int;
|
|
172
|
+
readonly disposition: Schema.Union<readonly [Schema.Literal<"retain">, Schema.Literal<"erase">, Schema.Literal<"tombstone">]>;
|
|
173
|
+
readonly erasureReasonClass: Schema.String;
|
|
174
|
+
readonly retentionPolicyDigest: Schema.String;
|
|
175
|
+
readonly holdSummary: Schema.String;
|
|
176
|
+
readonly residueDisposition: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"deleted">, Schema.Literal<"quarantined">, Schema.Literal<"retained_until">, Schema.Literal<"unknown">]>>;
|
|
177
|
+
readonly createdAt: Schema.String;
|
|
178
|
+
readonly eventRef: Schema.String;
|
|
179
|
+
}>;
|
|
180
|
+
export type DataLifecycleTombstone = (typeof DataLifecycleTombstone)['Type'];
|
|
181
|
+
export declare function isDataLifecycleTransitionAllowed(from: DataLifecycleState, to: DataLifecycleState): boolean;
|
|
182
|
+
export declare function assertDataLifecycleTransition(from: DataLifecycleState, to: DataLifecycleState): void;
|
|
183
|
+
export declare function isDataLifecycleSecurityContained(state: DataLifecycleState): boolean;
|
|
184
|
+
export declare function lifecycleRequestDigest(input: {
|
|
185
|
+
readonly subjectKind: DataLifecycleSubjectKind;
|
|
186
|
+
readonly subjectId: string;
|
|
187
|
+
readonly workspaceId: string;
|
|
188
|
+
readonly teamId?: string;
|
|
189
|
+
readonly requestedDisposition: DataLifecycleDisposition;
|
|
190
|
+
readonly policyDigest: string;
|
|
191
|
+
readonly reasonClass: string;
|
|
192
|
+
}): string;
|
|
193
|
+
export declare function assertSafeDataLifecycleText(value: string, path?: string): void;
|
|
194
|
+
export declare function assertSafeDataLifecycleMetadata<ValueType>(value: ValueType, path?: string): void;
|
|
195
|
+
export {};
|