@kitman-sh/sdk 0.10.80 → 0.10.82
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-9ff7wyqt.js → chunk-0f530caz.js} +1 -0
- package/dist/{chunk-hrwq77a0.js → chunk-fc5r66fq.js} +1 -1
- package/dist/loop/index.js +1 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/sdk/src/loop/test-loop.d.ts +2 -0
- 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 -361
- package/types/packages/core/src/change-request.d.ts +0 -288
- 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/enterprise-forge.d.ts +0 -19
- 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 -276
- package/types/packages/core/src/intent.d.ts +0 -260
- package/types/packages/core/src/kit-install.d.ts +0 -130
- package/types/packages/core/src/live.d.ts +0 -8231
- package/types/packages/core/src/marketplace.d.ts +0 -168
- package/types/packages/core/src/me.d.ts +0 -31
- package/types/packages/core/src/memory.d.ts +0 -93
- package/types/packages/core/src/my-teams.d.ts +0 -1599
- package/types/packages/core/src/notification.d.ts +0 -250
- package/types/packages/core/src/observability.d.ts +0 -175
- package/types/packages/core/src/owner.d.ts +0 -15
- 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/provider-safe-text.d.ts +0 -2
- package/types/packages/core/src/push.d.ts +0 -68
- package/types/packages/core/src/run-display.d.ts +0 -22
- package/types/packages/core/src/run-file.d.ts +0 -190
- package/types/packages/core/src/run-graph.d.ts +0 -67
- package/types/packages/core/src/run-journal.d.ts +0 -28
- package/types/packages/core/src/run-launch.d.ts +0 -82
- package/types/packages/core/src/runner-eligibility.d.ts +0 -62
- 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 -4058
- package/types/packages/core/src/scope-directory.d.ts +0 -100
- package/types/packages/core/src/session.d.ts +0 -90
- package/types/packages/core/src/step-brief.d.ts +0 -71
- package/types/packages/core/src/storage.d.ts +0 -49
- package/types/packages/core/src/sync-kit.d.ts +0 -595
- package/types/packages/core/src/task-detail.d.ts +0 -511
- 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 -588
- package/types/packages/core/src/team-context.d.ts +0 -43
- package/types/packages/core/src/transcript.d.ts +0 -250
- package/types/packages/core/src/trust-panel.d.ts +0 -27
- package/types/packages/core/src/workspace.d.ts +0 -167
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
import type { JsonValue } from './runtime-type';
|
|
3
|
-
/** One normalized moment of an agent session (ADR-0007): never terminal bytes or a Harness's own files. */
|
|
4
|
-
export declare const AgentEvent: Schema.Union<readonly [Schema.Struct<{
|
|
5
|
-
readonly kind: Schema.Literal<"message">;
|
|
6
|
-
readonly role: Schema.Literals<readonly ["assistant", "user"]>;
|
|
7
|
-
readonly text: Schema.String;
|
|
8
|
-
}>, Schema.Struct<{
|
|
9
|
-
readonly kind: Schema.Literal<"tool_call">;
|
|
10
|
-
readonly callId: Schema.String;
|
|
11
|
-
readonly name: Schema.String;
|
|
12
|
-
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
13
|
-
}>, Schema.Struct<{
|
|
14
|
-
readonly kind: Schema.Literal<"tool_result">;
|
|
15
|
-
readonly callId: Schema.String;
|
|
16
|
-
readonly output: Schema.String;
|
|
17
|
-
readonly isError: Schema.optionalKey<Schema.Boolean>;
|
|
18
|
-
}>, Schema.Struct<{
|
|
19
|
-
readonly kind: Schema.Literal<"file">;
|
|
20
|
-
readonly path: Schema.String;
|
|
21
|
-
readonly change: Schema.Literals<readonly ["read", "changed"]>;
|
|
22
|
-
}>, Schema.Struct<{
|
|
23
|
-
readonly kind: Schema.Literal<"question">;
|
|
24
|
-
readonly text: Schema.String;
|
|
25
|
-
}>, Schema.Struct<{
|
|
26
|
-
readonly kind: Schema.Literal<"answer">;
|
|
27
|
-
readonly callId: Schema.optionalKey<Schema.String>;
|
|
28
|
-
readonly questionId: Schema.optionalKey<Schema.String>;
|
|
29
|
-
readonly text: Schema.String;
|
|
30
|
-
}>, Schema.Struct<{
|
|
31
|
-
readonly kind: Schema.Literal<"steer">;
|
|
32
|
-
readonly messageId: Schema.String;
|
|
33
|
-
readonly text: Schema.String;
|
|
34
|
-
}>, Schema.Struct<{
|
|
35
|
-
readonly kind: Schema.Literal<"secret_refused">;
|
|
36
|
-
readonly reference: Schema.optionalKey<Schema.String>;
|
|
37
|
-
readonly host: Schema.String;
|
|
38
|
-
readonly reason: Schema.String;
|
|
39
|
-
}>, Schema.Struct<{
|
|
40
|
-
readonly kind: Schema.Literal<"lifecycle">;
|
|
41
|
-
readonly state: Schema.Literals<readonly ["started", "resumed", "parked", "finished", "failed", "canceled"]>;
|
|
42
|
-
}>]>;
|
|
43
|
-
export type AgentEvent = (typeof AgentEvent)['Type'];
|
|
44
|
-
/** What replaces the words of an erased person's steers and answers. */
|
|
45
|
-
export declare const removedText = "removed";
|
|
46
|
-
/** An AgentEvent as the Runner numbers it, from 1, for its StepAttempt. */
|
|
47
|
-
export declare const TranscriptAppendEntry: Schema.Struct<{
|
|
48
|
-
readonly sequence: Schema.Int;
|
|
49
|
-
readonly event: Schema.Union<readonly [Schema.Struct<{
|
|
50
|
-
readonly kind: Schema.Literal<"message">;
|
|
51
|
-
readonly role: Schema.Literals<readonly ["assistant", "user"]>;
|
|
52
|
-
readonly text: Schema.String;
|
|
53
|
-
}>, Schema.Struct<{
|
|
54
|
-
readonly kind: Schema.Literal<"tool_call">;
|
|
55
|
-
readonly callId: Schema.String;
|
|
56
|
-
readonly name: Schema.String;
|
|
57
|
-
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
58
|
-
}>, Schema.Struct<{
|
|
59
|
-
readonly kind: Schema.Literal<"tool_result">;
|
|
60
|
-
readonly callId: Schema.String;
|
|
61
|
-
readonly output: Schema.String;
|
|
62
|
-
readonly isError: Schema.optionalKey<Schema.Boolean>;
|
|
63
|
-
}>, Schema.Struct<{
|
|
64
|
-
readonly kind: Schema.Literal<"file">;
|
|
65
|
-
readonly path: Schema.String;
|
|
66
|
-
readonly change: Schema.Literals<readonly ["read", "changed"]>;
|
|
67
|
-
}>, Schema.Struct<{
|
|
68
|
-
readonly kind: Schema.Literal<"question">;
|
|
69
|
-
readonly text: Schema.String;
|
|
70
|
-
}>, Schema.Struct<{
|
|
71
|
-
readonly kind: Schema.Literal<"answer">;
|
|
72
|
-
readonly callId: Schema.optionalKey<Schema.String>;
|
|
73
|
-
readonly questionId: Schema.optionalKey<Schema.String>;
|
|
74
|
-
readonly text: Schema.String;
|
|
75
|
-
}>, Schema.Struct<{
|
|
76
|
-
readonly kind: Schema.Literal<"steer">;
|
|
77
|
-
readonly messageId: Schema.String;
|
|
78
|
-
readonly text: Schema.String;
|
|
79
|
-
}>, Schema.Struct<{
|
|
80
|
-
readonly kind: Schema.Literal<"secret_refused">;
|
|
81
|
-
readonly reference: Schema.optionalKey<Schema.String>;
|
|
82
|
-
readonly host: Schema.String;
|
|
83
|
-
readonly reason: Schema.String;
|
|
84
|
-
}>, Schema.Struct<{
|
|
85
|
-
readonly kind: Schema.Literal<"lifecycle">;
|
|
86
|
-
readonly state: Schema.Literals<readonly ["started", "resumed", "parked", "finished", "failed", "canceled"]>;
|
|
87
|
-
}>]>;
|
|
88
|
-
}>;
|
|
89
|
-
export type TranscriptAppendEntry = (typeof TranscriptAppendEntry)['Type'];
|
|
90
|
-
export declare const TranscriptEntry: Schema.Struct<{
|
|
91
|
-
readonly stepAttemptId: Schema.String;
|
|
92
|
-
readonly sequence: Schema.Int;
|
|
93
|
-
readonly event: Schema.Union<readonly [Schema.Struct<{
|
|
94
|
-
readonly kind: Schema.Literal<"message">;
|
|
95
|
-
readonly role: Schema.Literals<readonly ["assistant", "user"]>;
|
|
96
|
-
readonly text: Schema.String;
|
|
97
|
-
}>, Schema.Struct<{
|
|
98
|
-
readonly kind: Schema.Literal<"tool_call">;
|
|
99
|
-
readonly callId: Schema.String;
|
|
100
|
-
readonly name: Schema.String;
|
|
101
|
-
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
102
|
-
}>, Schema.Struct<{
|
|
103
|
-
readonly kind: Schema.Literal<"tool_result">;
|
|
104
|
-
readonly callId: Schema.String;
|
|
105
|
-
readonly output: Schema.String;
|
|
106
|
-
readonly isError: Schema.optionalKey<Schema.Boolean>;
|
|
107
|
-
}>, Schema.Struct<{
|
|
108
|
-
readonly kind: Schema.Literal<"file">;
|
|
109
|
-
readonly path: Schema.String;
|
|
110
|
-
readonly change: Schema.Literals<readonly ["read", "changed"]>;
|
|
111
|
-
}>, Schema.Struct<{
|
|
112
|
-
readonly kind: Schema.Literal<"question">;
|
|
113
|
-
readonly text: Schema.String;
|
|
114
|
-
}>, Schema.Struct<{
|
|
115
|
-
readonly kind: Schema.Literal<"answer">;
|
|
116
|
-
readonly callId: Schema.optionalKey<Schema.String>;
|
|
117
|
-
readonly questionId: Schema.optionalKey<Schema.String>;
|
|
118
|
-
readonly text: Schema.String;
|
|
119
|
-
}>, Schema.Struct<{
|
|
120
|
-
readonly kind: Schema.Literal<"steer">;
|
|
121
|
-
readonly messageId: Schema.String;
|
|
122
|
-
readonly text: Schema.String;
|
|
123
|
-
}>, Schema.Struct<{
|
|
124
|
-
readonly kind: Schema.Literal<"secret_refused">;
|
|
125
|
-
readonly reference: Schema.optionalKey<Schema.String>;
|
|
126
|
-
readonly host: Schema.String;
|
|
127
|
-
readonly reason: Schema.String;
|
|
128
|
-
}>, Schema.Struct<{
|
|
129
|
-
readonly kind: Schema.Literal<"lifecycle">;
|
|
130
|
-
readonly state: Schema.Literals<readonly ["started", "resumed", "parked", "finished", "failed", "canceled"]>;
|
|
131
|
-
}>]>;
|
|
132
|
-
readonly createdAt: Schema.String;
|
|
133
|
-
}>;
|
|
134
|
-
export type TranscriptEntry = (typeof TranscriptEntry)['Type'];
|
|
135
|
-
/** A `before` past every sequence number, which reads the newest page. */
|
|
136
|
-
export declare const transcriptEnd = 2147483647;
|
|
137
|
-
/**
|
|
138
|
-
* A page of one StepAttempt's Transcript, oldest first; `next` is the `after` that reads the following page, and
|
|
139
|
-
* `previous` the `before` that reads the page before it.
|
|
140
|
-
*/
|
|
141
|
-
export declare const TranscriptPage: Schema.Struct<{
|
|
142
|
-
readonly items: Schema.$Array<Schema.Struct<{
|
|
143
|
-
readonly stepAttemptId: Schema.String;
|
|
144
|
-
readonly sequence: Schema.Int;
|
|
145
|
-
readonly event: Schema.Union<readonly [Schema.Struct<{
|
|
146
|
-
readonly kind: Schema.Literal<"message">;
|
|
147
|
-
readonly role: Schema.Literals<readonly ["assistant", "user"]>;
|
|
148
|
-
readonly text: Schema.String;
|
|
149
|
-
}>, Schema.Struct<{
|
|
150
|
-
readonly kind: Schema.Literal<"tool_call">;
|
|
151
|
-
readonly callId: Schema.String;
|
|
152
|
-
readonly name: Schema.String;
|
|
153
|
-
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
154
|
-
}>, Schema.Struct<{
|
|
155
|
-
readonly kind: Schema.Literal<"tool_result">;
|
|
156
|
-
readonly callId: Schema.String;
|
|
157
|
-
readonly output: Schema.String;
|
|
158
|
-
readonly isError: Schema.optionalKey<Schema.Boolean>;
|
|
159
|
-
}>, Schema.Struct<{
|
|
160
|
-
readonly kind: Schema.Literal<"file">;
|
|
161
|
-
readonly path: Schema.String;
|
|
162
|
-
readonly change: Schema.Literals<readonly ["read", "changed"]>;
|
|
163
|
-
}>, Schema.Struct<{
|
|
164
|
-
readonly kind: Schema.Literal<"question">;
|
|
165
|
-
readonly text: Schema.String;
|
|
166
|
-
}>, Schema.Struct<{
|
|
167
|
-
readonly kind: Schema.Literal<"answer">;
|
|
168
|
-
readonly callId: Schema.optionalKey<Schema.String>;
|
|
169
|
-
readonly questionId: Schema.optionalKey<Schema.String>;
|
|
170
|
-
readonly text: Schema.String;
|
|
171
|
-
}>, Schema.Struct<{
|
|
172
|
-
readonly kind: Schema.Literal<"steer">;
|
|
173
|
-
readonly messageId: Schema.String;
|
|
174
|
-
readonly text: Schema.String;
|
|
175
|
-
}>, Schema.Struct<{
|
|
176
|
-
readonly kind: Schema.Literal<"secret_refused">;
|
|
177
|
-
readonly reference: Schema.optionalKey<Schema.String>;
|
|
178
|
-
readonly host: Schema.String;
|
|
179
|
-
readonly reason: Schema.String;
|
|
180
|
-
}>, Schema.Struct<{
|
|
181
|
-
readonly kind: Schema.Literal<"lifecycle">;
|
|
182
|
-
readonly state: Schema.Literals<readonly ["started", "resumed", "parked", "finished", "failed", "canceled"]>;
|
|
183
|
-
}>]>;
|
|
184
|
-
readonly createdAt: Schema.String;
|
|
185
|
-
}>>;
|
|
186
|
-
readonly next: Schema.optionalKey<Schema.Int>;
|
|
187
|
-
readonly previous: Schema.optionalKey<Schema.Int>;
|
|
188
|
-
}>;
|
|
189
|
-
export type TranscriptPage = (typeof TranscriptPage)['Type'];
|
|
190
|
-
/** How many days a Workspace keeps Transcripts; `null` keeps each as long as its Run. */
|
|
191
|
-
export declare const TranscriptRetention: Schema.Struct<{
|
|
192
|
-
readonly days: Schema.NullOr<Schema.Int>;
|
|
193
|
-
}>;
|
|
194
|
-
export type TranscriptRetention = (typeof TranscriptRetention)['Type'];
|
|
195
|
-
export declare const MaxTranscriptSearchLimit = 50;
|
|
196
|
-
export declare const TranscriptSearchQuery: Schema.Struct<{
|
|
197
|
-
readonly q: Schema.String;
|
|
198
|
-
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
199
|
-
}>;
|
|
200
|
-
/** A Transcript that matches, opened at its first matching entry. */
|
|
201
|
-
export declare const TranscriptSearchHit: Schema.Struct<{
|
|
202
|
-
readonly runId: Schema.String;
|
|
203
|
-
readonly loop: Schema.String;
|
|
204
|
-
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
205
|
-
readonly id: Schema.String;
|
|
206
|
-
readonly key: Schema.String;
|
|
207
|
-
readonly title: Schema.String;
|
|
208
|
-
}>>;
|
|
209
|
-
readonly stepAttemptId: Schema.String;
|
|
210
|
-
/** The Run graph node the Run page opens the Step by. */
|
|
211
|
-
readonly node: Schema.optionalKey<Schema.String>;
|
|
212
|
-
readonly step: Schema.String;
|
|
213
|
-
readonly attempt: Schema.Int;
|
|
214
|
-
readonly agent: Schema.optionalKey<Schema.String>;
|
|
215
|
-
readonly ranAt: Schema.String;
|
|
216
|
-
readonly sequence: Schema.Int;
|
|
217
|
-
readonly matches: Schema.Int;
|
|
218
|
-
readonly excerpt: Schema.String;
|
|
219
|
-
}>;
|
|
220
|
-
export type TranscriptSearchHit = (typeof TranscriptSearchHit)['Type'];
|
|
221
|
-
/** Newest Transcripts first; `total` counts every matching Transcript the person may read. */
|
|
222
|
-
export declare const TranscriptSearchResult: Schema.Struct<{
|
|
223
|
-
readonly items: Schema.$Array<Schema.Struct<{
|
|
224
|
-
readonly runId: Schema.String;
|
|
225
|
-
readonly loop: Schema.String;
|
|
226
|
-
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
227
|
-
readonly id: Schema.String;
|
|
228
|
-
readonly key: Schema.String;
|
|
229
|
-
readonly title: Schema.String;
|
|
230
|
-
}>>;
|
|
231
|
-
readonly stepAttemptId: Schema.String;
|
|
232
|
-
/** The Run graph node the Run page opens the Step by. */
|
|
233
|
-
readonly node: Schema.optionalKey<Schema.String>;
|
|
234
|
-
readonly step: Schema.String;
|
|
235
|
-
readonly attempt: Schema.Int;
|
|
236
|
-
readonly agent: Schema.optionalKey<Schema.String>;
|
|
237
|
-
readonly ranAt: Schema.String;
|
|
238
|
-
readonly sequence: Schema.Int;
|
|
239
|
-
readonly matches: Schema.Int;
|
|
240
|
-
readonly excerpt: Schema.String;
|
|
241
|
-
}>>;
|
|
242
|
-
readonly total: Schema.Int;
|
|
243
|
-
}>;
|
|
244
|
-
export type TranscriptSearchResult = (typeof TranscriptSearchResult)['Type'];
|
|
245
|
-
/** Up to `width` characters of `text` around the first case-insensitive match of `query`, on one line. */
|
|
246
|
-
export declare const transcriptExcerpt: (text: string, query: string, width?: number) => string;
|
|
247
|
-
/** A redaction keeps the JSON's shape. */
|
|
248
|
-
export type Redact = <T extends JsonValue>(json: T) => T;
|
|
249
|
-
/** Replaces every exact occurrence of `values` in the strings of JSON, longest first so none is left in part. */
|
|
250
|
-
export declare const redactSecretValues: (values: readonly (readonly [name: string, value: string])[]) => Redact;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type ChangeRequest } from './change-request';
|
|
2
|
-
import type { RunShow } from './loop';
|
|
3
|
-
export type TrustStatus = 'failed' | 'partial' | 'unproved' | 'verified' | 'claims';
|
|
4
|
-
/** One kind of evidence a person reads before merging, with where it came from. */
|
|
5
|
-
export type TrustRow = {
|
|
6
|
-
readonly kind: 'checks' | 'criteria' | 'review' | 'forge' | 'claims';
|
|
7
|
-
readonly status: TrustStatus;
|
|
8
|
-
readonly label: string;
|
|
9
|
-
readonly word: string;
|
|
10
|
-
readonly detail: string;
|
|
11
|
-
readonly source: string;
|
|
12
|
-
};
|
|
13
|
-
export type TrustPanel = {
|
|
14
|
-
/** Failed when any evidence fails, partial while any is open or unproved; claims never count. */
|
|
15
|
-
readonly state: 'verified' | 'partial' | 'failed';
|
|
16
|
-
/** What the Run's Output left unsettled, unmet acceptance criteria first. */
|
|
17
|
-
readonly gaps: readonly string[];
|
|
18
|
-
/** Failing, then open, then unproved evidence, before the verified and the claims. */
|
|
19
|
-
readonly rows: readonly TrustRow[];
|
|
20
|
-
};
|
|
21
|
-
export type TrustPanelInput = {
|
|
22
|
-
readonly shown: Pick<RunShow, 'run' | 'steps' | 'evidence' | 'findings'>;
|
|
23
|
-
readonly acceptanceCriteria: readonly string[];
|
|
24
|
-
readonly changeRequest?: Pick<ChangeRequest, 'provider' | 'providerMetadata'> | undefined;
|
|
25
|
-
};
|
|
26
|
-
/** The rows of "Why you can trust this": each kind of evidence the Run has, set apart from what its agents claim. */
|
|
27
|
-
export declare const trustPanel: (input: TrustPanelInput) => TrustPanel;
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
export declare const WorkspaceNotificationPreferences: Schema.Struct<{
|
|
3
|
-
readonly decisionsRequiringAttention: Schema.Boolean;
|
|
4
|
-
readonly workReadyForReview: Schema.Boolean;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const Workspace: Schema.Struct<{
|
|
7
|
-
readonly id: Schema.String;
|
|
8
|
-
readonly name: Schema.String;
|
|
9
|
-
readonly slug: Schema.String;
|
|
10
|
-
readonly plan: Schema.Union<readonly [Schema.Literal<"free">, Schema.Literal<"solo_pro">, Schema.Literal<"team_starter">]>;
|
|
11
|
-
readonly notificationPreferences: Schema.optionalKey<Schema.Struct<{
|
|
12
|
-
readonly decisionsRequiringAttention: Schema.Boolean;
|
|
13
|
-
readonly workReadyForReview: Schema.Boolean;
|
|
14
|
-
}>>;
|
|
15
|
-
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
16
|
-
readonly createdAt: Schema.String;
|
|
17
|
-
readonly updatedAt: Schema.String;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const WorkspaceCreate: Schema.Struct<{
|
|
20
|
-
readonly name: Schema.String;
|
|
21
|
-
readonly slug: Schema.optionalKey<Schema.String>;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const WorkspaceUpdate: Schema.Struct<{
|
|
24
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
25
|
-
readonly slug: Schema.optionalKey<Schema.String>;
|
|
26
|
-
readonly notificationPreferences: Schema.optionalKey<Schema.Struct<{
|
|
27
|
-
readonly decisionsRequiringAttention: Schema.Boolean;
|
|
28
|
-
readonly workReadyForReview: Schema.Boolean;
|
|
29
|
-
}>>;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const WorkspaceList: Schema.Struct<{
|
|
32
|
-
readonly items: Schema.$Array<Schema.Struct<{
|
|
33
|
-
readonly id: Schema.String;
|
|
34
|
-
readonly name: Schema.String;
|
|
35
|
-
readonly slug: Schema.String;
|
|
36
|
-
readonly plan: Schema.Union<readonly [Schema.Literal<"free">, Schema.Literal<"solo_pro">, Schema.Literal<"team_starter">]>;
|
|
37
|
-
readonly notificationPreferences: Schema.optionalKey<Schema.Struct<{
|
|
38
|
-
readonly decisionsRequiringAttention: Schema.Boolean;
|
|
39
|
-
readonly workReadyForReview: Schema.Boolean;
|
|
40
|
-
}>>;
|
|
41
|
-
readonly createdByUserId: Schema.optionalKey<Schema.String>;
|
|
42
|
-
readonly createdAt: Schema.String;
|
|
43
|
-
readonly updatedAt: Schema.String;
|
|
44
|
-
}>>;
|
|
45
|
-
}>;
|
|
46
|
-
/** What a Workspace has set up, each part read from the rows that exist; onboarding stores only when it was seen. */
|
|
47
|
-
export declare const WorkspaceSetup: Schema.Struct<{
|
|
48
|
-
readonly forgeConnected: Schema.Boolean;
|
|
49
|
-
/** The first repository bound in the Workspace; a first Research Run reads it. */
|
|
50
|
-
readonly firstRepoBinding: Schema.NullOr<Schema.Struct<{
|
|
51
|
-
readonly id: Schema.String;
|
|
52
|
-
readonly owner: Schema.String;
|
|
53
|
-
readonly name: Schema.String;
|
|
54
|
-
}>>;
|
|
55
|
-
readonly verificationsApproved: Schema.Boolean;
|
|
56
|
-
/** The caller's own Runner heartbeating now, the Harnesses it offers, and what each other Harness lacks. */
|
|
57
|
-
readonly machine: Schema.Struct<{
|
|
58
|
-
readonly ready: Schema.Boolean;
|
|
59
|
-
readonly harnesses: Schema.$Array<Schema.String>;
|
|
60
|
-
readonly missing: Schema.$Array<Schema.String>;
|
|
61
|
-
}>;
|
|
62
|
-
/** Someone besides the caller is a member; a pending invitation is not one. */
|
|
63
|
-
readonly secondMember: Schema.Boolean;
|
|
64
|
-
/** The caller requested a Run on a Task. */
|
|
65
|
-
readonly taskRun: Schema.Boolean;
|
|
66
|
-
readonly onboardingSeenAt: Schema.NullOr<Schema.String>;
|
|
67
|
-
/** The forges this deployment connects in one click. */
|
|
68
|
-
readonly oneClickConnect: Schema.Struct<{
|
|
69
|
-
readonly github: Schema.Boolean;
|
|
70
|
-
readonly gitlab: Schema.Boolean;
|
|
71
|
-
}>;
|
|
72
|
-
}>;
|
|
73
|
-
/** A minted Pairing Code and the one command that pairs a machine with it. */
|
|
74
|
-
export declare const PairingCode: Schema.Struct<{
|
|
75
|
-
readonly id: Schema.String;
|
|
76
|
-
readonly code: Schema.String;
|
|
77
|
-
readonly expiresAt: Schema.String;
|
|
78
|
-
readonly command: Schema.String;
|
|
79
|
-
}>;
|
|
80
|
-
/** Whether the machine has redeemed a Pairing Code yet. */
|
|
81
|
-
export declare const PairingStatus: Schema.Union<readonly [Schema.Struct<{
|
|
82
|
-
readonly state: Schema.Literals<readonly ["waiting", "expired"]>;
|
|
83
|
-
}>, Schema.Struct<{
|
|
84
|
-
readonly state: Schema.Literal<"redeemed">;
|
|
85
|
-
readonly redeemedAt: Schema.String;
|
|
86
|
-
}>]>;
|
|
87
|
-
/** The Runner a Pairing Code pairs instead of signing its person in: a new shared Runner, or an existing one re-keyed. */
|
|
88
|
-
export declare const PairingTarget: Schema.Union<readonly [Schema.Struct<{
|
|
89
|
-
readonly kind: Schema.Literal<"shared">;
|
|
90
|
-
readonly name: Schema.String;
|
|
91
|
-
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
92
|
-
readonly ownership: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
93
|
-
readonly kind: Schema.Literal<"workspace">;
|
|
94
|
-
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
95
|
-
}>, Schema.Struct<{
|
|
96
|
-
readonly kind: Schema.Literal<"team">;
|
|
97
|
-
readonly teamId: Schema.String;
|
|
98
|
-
}>]>>;
|
|
99
|
-
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
100
|
-
}>, Schema.Struct<{
|
|
101
|
-
readonly kind: Schema.Literal<"runner">;
|
|
102
|
-
readonly runnerId: Schema.String;
|
|
103
|
-
}>]>;
|
|
104
|
-
export declare const PairingMint: Schema.Struct<{
|
|
105
|
-
readonly target: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
106
|
-
readonly kind: Schema.Literal<"shared">;
|
|
107
|
-
readonly name: Schema.String;
|
|
108
|
-
readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
109
|
-
readonly ownership: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
110
|
-
readonly kind: Schema.Literal<"workspace">;
|
|
111
|
-
readonly teamAccess: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"selected">]>;
|
|
112
|
-
}>, Schema.Struct<{
|
|
113
|
-
readonly kind: Schema.Literal<"team">;
|
|
114
|
-
readonly teamId: Schema.String;
|
|
115
|
-
}>]>>;
|
|
116
|
-
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
117
|
-
}>, Schema.Struct<{
|
|
118
|
-
readonly kind: Schema.Literal<"runner">;
|
|
119
|
-
readonly runnerId: Schema.String;
|
|
120
|
-
}>]>>;
|
|
121
|
-
}>;
|
|
122
|
-
/** A code with a target needs the machine's new public key. */
|
|
123
|
-
export declare const PairingRedeem: Schema.Struct<{
|
|
124
|
-
readonly code: Schema.String;
|
|
125
|
-
readonly publicKey: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Boolean, Schema.$Array<Schema.String>]>>>;
|
|
126
|
-
}>;
|
|
127
|
-
/** The credentials `kitman login` stores, for the person and Workspace the code was minted for. */
|
|
128
|
-
export declare const PairingCredentials: Schema.Struct<{
|
|
129
|
-
readonly accessToken: Schema.String;
|
|
130
|
-
readonly refreshToken: Schema.optional<Schema.String>;
|
|
131
|
-
readonly expiresIn: Schema.optional<Schema.Finite>;
|
|
132
|
-
readonly workspaceId: Schema.String;
|
|
133
|
-
readonly userId: Schema.String;
|
|
134
|
-
}>;
|
|
135
|
-
/** The Runner a code with a target paired, and the identity the redeemed public key now holds. */
|
|
136
|
-
export declare const PairedRunner: Schema.Struct<{
|
|
137
|
-
readonly runnerId: Schema.String;
|
|
138
|
-
readonly workspaceId: Schema.String;
|
|
139
|
-
readonly agentIdentityId: Schema.String;
|
|
140
|
-
readonly credentialHostId: Schema.String;
|
|
141
|
-
}>;
|
|
142
|
-
export declare const PairingRedemption: Schema.Union<readonly [Schema.Struct<{
|
|
143
|
-
readonly accessToken: Schema.String;
|
|
144
|
-
readonly refreshToken: Schema.optional<Schema.String>;
|
|
145
|
-
readonly expiresIn: Schema.optional<Schema.Finite>;
|
|
146
|
-
readonly workspaceId: Schema.String;
|
|
147
|
-
readonly userId: Schema.String;
|
|
148
|
-
}>, Schema.Struct<{
|
|
149
|
-
readonly runnerId: Schema.String;
|
|
150
|
-
readonly workspaceId: Schema.String;
|
|
151
|
-
readonly agentIdentityId: Schema.String;
|
|
152
|
-
readonly credentialHostId: Schema.String;
|
|
153
|
-
}>]>;
|
|
154
|
-
export type Workspace = (typeof Workspace)['Type'];
|
|
155
|
-
export type PairingCode = (typeof PairingCode)['Type'];
|
|
156
|
-
export type PairingRedeem = (typeof PairingRedeem)['Type'];
|
|
157
|
-
export type PairingStatus = (typeof PairingStatus)['Type'];
|
|
158
|
-
export type PairingCredentials = (typeof PairingCredentials)['Type'];
|
|
159
|
-
export type PairingTarget = (typeof PairingTarget)['Type'];
|
|
160
|
-
export type PairingMint = (typeof PairingMint)['Type'];
|
|
161
|
-
export type PairedRunner = (typeof PairedRunner)['Type'];
|
|
162
|
-
export type PairingRedemption = (typeof PairingRedemption)['Type'];
|
|
163
|
-
export type WorkspaceSetup = (typeof WorkspaceSetup)['Type'];
|
|
164
|
-
export type WorkspaceNotificationPreferences = (typeof WorkspaceNotificationPreferences)['Type'];
|
|
165
|
-
export type WorkspaceCreate = (typeof WorkspaceCreate)['Type'];
|
|
166
|
-
export type WorkspaceUpdate = (typeof WorkspaceUpdate)['Type'];
|
|
167
|
-
export type WorkspaceList = (typeof WorkspaceList)['Type'];
|