@ref0/sdk 0.10.0 → 0.12.0

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.
@@ -992,6 +992,122 @@ declare const PreviewNotReady_base: Schema.Class<PreviewNotReady, Schema.TaggedS
992
992
  }>, import("effect/Cause").YieldableError>;
993
993
  /** ref0 couldn't check what the person saw just now. Nothing ran: answer again. */
994
994
  declare class PreviewNotReady extends PreviewNotReady_base {}
995
+ /** A decision as `/v1` answers it: as it stands, and where it is, in words. */
996
+ declare const NamedDecision: Schema.Struct<{
997
+ readonly decision: Schema.brand<Schema.TemplateLiteral<readonly ["decision_", Schema.String]>, "DecisionId">;
998
+ readonly kind: Schema.Literals<readonly ["ask", "gate"]>;
999
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
1000
+ readonly kind: Schema.Literal<"thread">;
1001
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
1002
+ }>, Schema.Struct<{
1003
+ readonly kind: Schema.Literal<"version">;
1004
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
1005
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
1006
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
1007
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
1008
+ }>]>;
1009
+ readonly question: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
1010
+ readonly options: Schema.$Array<Schema.Struct<{
1011
+ readonly key: Schema.brand<Schema.String, "AnswerKey">;
1012
+ readonly label: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
1013
+ readonly detail: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
1014
+ }>>;
1015
+ readonly lean: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
1016
+ readonly deciders: Schema.$Array<Schema.Struct<{
1017
+ readonly decider: Schema.Union<readonly [Schema.Struct<{
1018
+ readonly kind: Schema.Literal<"person">;
1019
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
1020
+ }>, Schema.Struct<{
1021
+ readonly kind: Schema.Literal<"agent">;
1022
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
1023
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
1024
+ }>, Schema.Struct<{
1025
+ readonly kind: Schema.Literal<"check">;
1026
+ readonly name: Schema.brand<Schema.String, "CheckName">;
1027
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
1028
+ }>, Schema.Struct<{
1029
+ readonly kind: Schema.Literal<"role">;
1030
+ readonly role: Schema.Literal<"admin">;
1031
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
1032
+ }>, Schema.Struct<{
1033
+ readonly kind: Schema.Literal<"permission">;
1034
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
1035
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
1036
+ }>, Schema.Struct<{
1037
+ readonly kind: Schema.Literal<"override">;
1038
+ readonly of: Schema.Union<readonly [Schema.Struct<{
1039
+ readonly kind: Schema.Literal<"check">;
1040
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
1041
+ }>, Schema.Struct<{
1042
+ readonly kind: Schema.Literal<"not-run">;
1043
+ readonly check: Schema.brand<Schema.String, "CheckName">;
1044
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
1045
+ }>]>;
1046
+ readonly by: Schema.Union<readonly [Schema.Struct<{
1047
+ readonly kind: Schema.Literal<"person">;
1048
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
1049
+ }>, Schema.Struct<{
1050
+ readonly kind: Schema.Literal<"role">;
1051
+ readonly role: Schema.Literal<"admin">;
1052
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
1053
+ }>]>;
1054
+ }>]>;
1055
+ readonly required: Schema.Boolean;
1056
+ readonly why: Schema.optionalKey<Schema.String>;
1057
+ }>>;
1058
+ readonly deadline: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
1059
+ readonly state: Schema.Literals<readonly ["open", "closed"]>;
1060
+ readonly answers: Schema.$Array<Schema.Struct<{
1061
+ readonly decider: Schema.Union<readonly [Schema.Struct<{
1062
+ readonly kind: Schema.Literal<"person">;
1063
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
1064
+ }>, Schema.Struct<{
1065
+ readonly kind: Schema.Literal<"agent">;
1066
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
1067
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
1068
+ }>, Schema.Struct<{
1069
+ readonly kind: Schema.Literal<"check">;
1070
+ readonly name: Schema.brand<Schema.String, "CheckName">;
1071
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
1072
+ }>, Schema.Struct<{
1073
+ readonly kind: Schema.Literal<"role">;
1074
+ readonly role: Schema.Literal<"admin">;
1075
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
1076
+ }>, Schema.Struct<{
1077
+ readonly kind: Schema.Literal<"permission">;
1078
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
1079
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
1080
+ }>, Schema.Struct<{
1081
+ readonly kind: Schema.Literal<"override">;
1082
+ readonly of: Schema.Union<readonly [Schema.Struct<{
1083
+ readonly kind: Schema.Literal<"check">;
1084
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
1085
+ }>, Schema.Struct<{
1086
+ readonly kind: Schema.Literal<"not-run">;
1087
+ readonly check: Schema.brand<Schema.String, "CheckName">;
1088
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
1089
+ }>]>;
1090
+ readonly by: Schema.Union<readonly [Schema.Struct<{
1091
+ readonly kind: Schema.Literal<"person">;
1092
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
1093
+ }>, Schema.Struct<{
1094
+ readonly kind: Schema.Literal<"role">;
1095
+ readonly role: Schema.Literal<"admin">;
1096
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
1097
+ }>]>;
1098
+ }>]>;
1099
+ readonly answer: Schema.brand<Schema.String, "AnswerKey">;
1100
+ readonly reason: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
1101
+ readonly at: Schema.DateTimeUtcFromMillis;
1102
+ }>>;
1103
+ readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
1104
+ readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
1105
+ readonly names: Schema.Struct<{
1106
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
1107
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
1108
+ }>;
1109
+ }>;
1110
+ type NamedDecision = typeof NamedDecision.Type;
995
1111
  declare const PlanTextRefused_base: Schema.Class<PlanTextRefused, Schema.TaggedStruct<"PlanTextRefused", {
996
1112
  /** Where it is in the plan, such as `outcomes[3]`. */
997
1113
  readonly where: Schema.String;
@@ -1128,7 +1244,7 @@ declare const ConnectChosen: Schema.Struct<{
1128
1244
  }>>;
1129
1245
  readonly replacement: Schema.optionalKey<Schema.Struct<{
1130
1246
  readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
1131
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
1247
+ readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
1132
1248
  readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
1133
1249
  }>>;
1134
1250
  }>;
@@ -1166,7 +1282,7 @@ declare const ConnectFolderOption: Schema.Union<readonly [Schema.Struct<{
1166
1282
  }>>;
1167
1283
  readonly replacement: Schema.optionalKey<Schema.Struct<{
1168
1284
  readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
1169
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
1285
+ readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
1170
1286
  readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
1171
1287
  }>>;
1172
1288
  }>;
@@ -1214,7 +1330,7 @@ declare const ConnectOptions: Schema.Struct<{
1214
1330
  }>>;
1215
1331
  readonly replacement: Schema.optionalKey<Schema.Struct<{
1216
1332
  readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
1217
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
1333
+ readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
1218
1334
  readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
1219
1335
  }>>;
1220
1336
  }>;
@@ -1250,7 +1366,7 @@ declare const FoldersConnected: Schema.Struct<{
1250
1366
  readonly path: Schema.String;
1251
1367
  readonly replacement: Schema.optionalKey<Schema.Struct<{
1252
1368
  readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
1253
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
1369
+ readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
1254
1370
  readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
1255
1371
  }>>;
1256
1372
  }>>;
@@ -1295,6 +1411,22 @@ declare const StaleSeq_base: Schema.Class<StaleSeq, Schema.TaggedStruct<"StaleSe
1295
1411
  }>, import("effect/Cause").YieldableError>;
1296
1412
  /** A list older than the one kept, or the same one again: it changes nothing. */
1297
1413
  declare class StaleSeq extends StaleSeq_base {}
1414
+ declare const IdentityAudienceRefused_base: Schema.Class<IdentityAudienceRefused, Schema.TaggedStruct<"IdentityAudienceRefused", {
1415
+ readonly nextStep: Schema.String;
1416
+ }>, import("effect/Cause").YieldableError>;
1417
+ /**
1418
+ * The audience isn't one ref0 signs for: missing, given twice, or not an HTTPS origin as
1419
+ * `IdentityAudience` says. The refused text is never echoed.
1420
+ */
1421
+ declare class IdentityAudienceRefused extends IdentityAudienceRefused_base {}
1422
+ declare const IdentityTokenNotReady_base: Schema.Class<IdentityTokenNotReady, Schema.TaggedStruct<"IdentityTokenNotReady", {
1423
+ readonly nextStep: Schema.String;
1424
+ }>, import("effect/Cause").YieldableError>;
1425
+ /**
1426
+ * Less than a whole second is left before the session, a parent or the credential expires, or
1427
+ * the token would expire before it's recorded: the next prompt renews or replaces the session.
1428
+ */
1429
+ declare class IdentityTokenNotReady extends IdentityTokenNotReady_base {}
1298
1430
  //#endregion
1299
1431
  //#region src/ids.d.ts
1300
1432
  /** A person. A person is an owner, so this is also their owner ID. */
@@ -1346,7 +1478,7 @@ declare const ApiOrigin: Schema.brand<Schema.String, "ApiOrigin">;
1346
1478
  type ApiOrigin = typeof ApiOrigin.Type;
1347
1479
  /**
1348
1480
  * Whether a path is Worker "server"'s to answer, not a page's: the API's, signing in's, a
1349
- * connection's webhook, or OAuth's metadata.
1481
+ * connection's webhook, OAuth's metadata, or identity tokens' published documents.
1350
1482
  */
1351
1483
  declare const isRef0Path: (pathname: string) => boolean;
1352
1484
  declare const NoFork_base: Schema.Class<NoFork, Schema.TaggedStruct<"NoFork", {
@@ -1995,7 +2127,9 @@ declare const Caller_base: Context.ServiceClass<Caller, "ref0/contracts/Caller",
1995
2127
  * from. Every endpoint needs a credential, except a terminal asking for an approval, which has
1996
2128
  * none to give; who's acting comes from it, never from the request.
1997
2129
  * Every request that changes something carries an `Idempotency-Key`, a delivery ID its client
1998
- * made: a retry with the same key gets the first answer, for 24 hours.
2130
+ * made: a retry with the same key gets the first answer, for 24 hours. Asking for an identity
2131
+ * token is the one exception: each request makes a new token, and ref0 keeps none to answer a
2132
+ * retry with, so a retry gets another token, as `identity-tokens.ts` says.
1999
2133
  */
2000
2134
  /** Who's acting on a request: what `Authorize` found its credential to be. */
2001
2135
  declare class Caller extends Caller_base {}
@@ -2078,6 +2212,19 @@ declare const MachineNameRefusal_base: HttpApiMiddleware.ServiceClass<MachineNam
2078
2212
  * what to change. Any other part that fails its contract is answered with Effect's empty 400.
2079
2213
  */
2080
2214
  declare class MachineNameRefusal extends MachineNameRefusal_base {}
2215
+ declare const IdentityAudienceRefusal_base: HttpApiMiddleware.ServiceClass<IdentityAudienceRefusal, "ref0/contracts/IdentityAudienceRefusal", {
2216
+ requires: never;
2217
+ provides: never;
2218
+ error: typeof IdentityAudienceRefused;
2219
+ clientError: never;
2220
+ requiredForClient: false;
2221
+ security: never;
2222
+ }, HttpApiMiddleware.HttpApiMiddleware<never, typeof IdentityAudienceRefused, never>>;
2223
+ /**
2224
+ * An identity token's request whose audience its contract refuses, missing or not an HTTPS
2225
+ * origin, answered as `IdentityAudienceRefused`, which never echoes what was sent.
2226
+ */
2227
+ declare class IdentityAudienceRefusal extends IdentityAudienceRefusal_base {}
2081
2228
  declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/welcome", never, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2082
2229
  readonly state: Schema.Literals<readonly ["ready", "setting up"]>;
2083
2230
  readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
@@ -2103,7 +2250,15 @@ declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEnd
2103
2250
  }>]>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof AuthorityUnavailable>, SignedIn, never>, false>;
2104
2251
  /** Where a signed-in person stands, and naming their owner when their GitHub login couldn't. */
2105
2252
  declare class WelcomeGroup extends WelcomeGroup_base {}
2106
- declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
2253
+ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2254
+ readonly passkeys: Schema.$Array<Schema.Struct<{
2255
+ readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
2256
+ readonly name: Schema.optionalKey<Schema.String>;
2257
+ readonly createdAt: Schema.String;
2258
+ readonly backedUp: Schema.Boolean;
2259
+ }>>;
2260
+ readonly approvesHere: Schema.Boolean;
2261
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
2107
2262
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2108
2263
  }>>, Schema.toCodecJson<Schema.Struct<{
2109
2264
  readonly rp: Schema.Struct<{
@@ -2134,15 +2289,7 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
2134
2289
  }>>;
2135
2290
  readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2136
2291
  readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
2137
- }>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2138
- readonly passkeys: Schema.$Array<Schema.Struct<{
2139
- readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
2140
- readonly name: Schema.optionalKey<Schema.String>;
2141
- readonly createdAt: Schema.String;
2142
- readonly backedUp: Schema.Boolean;
2143
- }>>;
2144
- readonly approvesHere: Schema.Boolean;
2145
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
2292
+ }>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
2146
2293
  readonly id: Schema.String;
2147
2294
  readonly rawId: Schema.String;
2148
2295
  readonly type: Schema.Literal<"public-key">;
@@ -2207,7 +2354,19 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
2207
2354
  * what it came to with the approval's secret. Its person answers on their own page, by its code.
2208
2355
  */
2209
2356
  declare class TerminalApprovalsGroup extends TerminalApprovalsGroup_base {}
2210
- declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
2357
+ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
2358
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
2359
+ agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
2360
+ attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2361
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
2362
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2363
+ }>>, Schema.toCodecJson<Schema.Struct<{
2364
+ readonly credential: Schema.Struct<{
2365
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2366
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2367
+ }>;
2368
+ readonly childrenRevoked: Schema.Int;
2369
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
2211
2370
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
2212
2371
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
2213
2372
  }>>, Schema.toCodecStringTree<Schema.Struct<{
@@ -2224,19 +2383,7 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
2224
2383
  readonly person: Schema.brand<Schema.String, "OwnerName">;
2225
2384
  }>>;
2226
2385
  readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
2227
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
2228
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
2229
- agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
2230
- attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2231
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
2232
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2233
- }>>, Schema.toCodecJson<Schema.Struct<{
2234
- readonly credential: Schema.Struct<{
2235
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2236
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2237
- }>;
2238
- readonly childrenRevoked: Schema.Int;
2239
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never>, false>;
2386
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
2240
2387
  /**
2241
2388
  * An agent's live attachments, by approval: listed, every one to an admin and their own to anyone
2242
2389
  * else; and one of the caller's own disconnected, revoking its credential, which the Worker checks
@@ -2273,7 +2420,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
2273
2420
  }>>;
2274
2421
  readonly replacement: Schema.optionalKey<Schema.Struct<{
2275
2422
  readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2276
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
2423
+ readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
2277
2424
  readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
2278
2425
  }>>;
2279
2426
  }>>;
@@ -2318,7 +2465,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
2318
2465
  }>>;
2319
2466
  readonly replacement: Schema.optionalKey<Schema.Struct<{
2320
2467
  readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2321
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
2468
+ readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
2322
2469
  readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
2323
2470
  }>>;
2324
2471
  }>>;
@@ -2623,238 +2770,121 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
2623
2770
  readonly state: Schema.String;
2624
2771
  }>>;
2625
2772
  }>>;
2626
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"find", "POST", "/v1/approvals/find", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2627
- readonly code: Schema.String;
2628
- }>, Schema.Struct<{
2629
- readonly link: Schema.String;
2630
- }>]>>, Schema.toCodecStringTree<Schema.Struct<{
2631
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2632
- }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2633
- readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2634
- readonly says: Schema.String;
2635
- readonly fields: Schema.$Array<Schema.Struct<{
2636
- readonly name: Schema.String;
2637
- readonly value: Schema.String;
2638
- readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
2639
- }>>;
2640
- readonly command: Schema.Struct<{
2641
- readonly endpoint: Schema.String;
2642
- readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2643
- readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2644
- readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2645
- }>;
2646
- readonly asker: Schema.Union<readonly [Schema.Struct<{
2647
- readonly kind: Schema.Literal<"terminal">;
2648
- }>, Schema.Struct<{
2649
- readonly kind: Schema.Literal<"page">;
2650
- }>, Schema.Struct<{
2651
- readonly kind: Schema.Literal<"agent">;
2652
- readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2653
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
2654
- readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
2655
- readonly attachment: Schema.optionalKey<Schema.Struct<{
2656
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2657
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2773
+ readonly decisions: Schema.$Array<Schema.Struct<{
2774
+ readonly decision: Schema.brand<Schema.TemplateLiteral<readonly ["decision_", Schema.String]>, "DecisionId">;
2775
+ readonly kind: Schema.Literals<readonly ["ask", "gate"]>;
2776
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
2777
+ readonly kind: Schema.Literal<"thread">;
2778
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
2779
+ }>, Schema.Struct<{
2780
+ readonly kind: Schema.Literal<"version">;
2781
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
2782
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
2783
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
2784
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
2785
+ }>]>;
2786
+ readonly question: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
2787
+ readonly options: Schema.$Array<Schema.Struct<{
2788
+ readonly key: Schema.brand<Schema.String, "AnswerKey">;
2789
+ readonly label: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
2790
+ readonly detail: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
2658
2791
  }>>;
2659
- }>]>;
2660
- readonly askedFrom: Schema.optionalKey<Schema.String>;
2661
- readonly askedAt: Schema.DateTimeUtcFromString;
2662
- readonly expiresAt: Schema.DateTimeUtcFromString;
2663
- readonly agentPermission: Schema.optionalKey<Schema.Struct<{
2664
- readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
2665
- readonly mayAllow: Schema.Boolean;
2666
- }>>;
2667
- readonly preview: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2668
- readonly kind: Schema.Literal<"workflow">;
2669
- readonly repo: Schema.String;
2670
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
2671
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
2672
- readonly manifest: Schema.Union<readonly [Schema.Struct<{
2673
- readonly description: Schema.optionalKey<Schema.String>;
2674
- readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
2675
- readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
2676
- readonly where: Schema.Struct<{
2677
- readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
2678
- readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
2679
- }>>;
2680
- readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
2681
- readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
2682
- }>>;
2683
- readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
2684
- readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
2685
- }>>;
2686
- readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
2687
- readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
2688
- }>>;
2689
- readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
2690
- readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
2691
- readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
2692
- }>>;
2693
- readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
2694
- readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
2695
- readonly self: Schema.optionalKey<Schema.Boolean>;
2696
- }>>;
2697
- readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
2698
- readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
2699
- readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
2700
- readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
2701
- }>>;
2702
- readonly schedule: Schema.optionalKey<Schema.Struct<{
2703
- readonly cron: Schema.String;
2704
- readonly timezone: Schema.String;
2705
- }>>;
2706
- }>;
2707
- readonly permissions: Schema.Struct<{
2708
- readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
2709
- readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
2710
- readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
2711
- readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
2712
- readonly code: Schema.optionalKey<Schema.Literal<"write">>;
2713
- readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
2714
- readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
2715
- readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
2716
- readonly budgets: Schema.Struct<{
2717
- readonly requests: Schema.Int;
2718
- readonly asks: Schema.Int;
2719
- readonly threads: Schema.Int;
2720
- readonly calls: Schema.Int;
2721
- readonly forks: Schema.Int;
2722
- readonly pushes: Schema.Int;
2723
- readonly sandboxMinutes: Schema.Int;
2724
- }>;
2725
- }>;
2726
- }>, Schema.Struct<{
2727
- readonly description: Schema.optionalKey<Schema.String>;
2728
- readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
2729
- readonly called: Schema.Literal<true>;
2730
- readonly permissions: Schema.Struct<{
2731
- readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
2732
- readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
2733
- readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
2734
- readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
2735
- readonly code: Schema.optionalKey<Schema.Literal<"write">>;
2736
- readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
2737
- readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
2738
- readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
2739
- readonly budgets: Schema.Struct<{
2740
- readonly requests: Schema.Int;
2741
- readonly asks: Schema.Int;
2742
- readonly threads: Schema.Int;
2743
- readonly calls: Schema.Int;
2744
- readonly forks: Schema.Int;
2745
- readonly pushes: Schema.Int;
2746
- readonly sandboxMinutes: Schema.Int;
2747
- }>;
2748
- }>;
2749
- }>]>;
2750
- readonly state: Schema.Literals<readonly ["on", "off"]>;
2751
- readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
2752
- readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
2753
- }>, Schema.Struct<{
2754
- readonly kind: Schema.Literal<"attached workflow">;
2755
- readonly thread: Schema.String;
2756
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
2757
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
2758
- readonly manifest: Schema.Union<readonly [Schema.Struct<{
2759
- readonly description: Schema.optionalKey<Schema.String>;
2760
- readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
2761
- readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
2762
- readonly where: Schema.Struct<{
2763
- readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
2764
- readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
2765
- }>>;
2766
- readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
2767
- readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
2768
- }>>;
2769
- readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
2770
- readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
2771
- }>>;
2772
- readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
2773
- readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
2774
- }>>;
2775
- readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
2776
- readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
2777
- readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
2778
- }>>;
2779
- readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
2780
- readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
2781
- readonly self: Schema.optionalKey<Schema.Boolean>;
2782
- }>>;
2783
- readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
2784
- readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
2785
- readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
2786
- readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
2787
- }>>;
2788
- readonly schedule: Schema.optionalKey<Schema.Struct<{
2789
- readonly cron: Schema.String;
2790
- readonly timezone: Schema.String;
2791
- }>>;
2792
- }>;
2793
- readonly permissions: Schema.Struct<{
2794
- readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
2795
- readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
2796
- readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
2797
- readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
2798
- readonly code: Schema.optionalKey<Schema.Literal<"write">>;
2799
- readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
2800
- readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
2801
- readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
2802
- readonly budgets: Schema.Struct<{
2803
- readonly requests: Schema.Int;
2804
- readonly asks: Schema.Int;
2805
- readonly threads: Schema.Int;
2806
- readonly calls: Schema.Int;
2807
- readonly forks: Schema.Int;
2808
- readonly pushes: Schema.Int;
2809
- readonly sandboxMinutes: Schema.Int;
2810
- }>;
2811
- }>;
2812
- }>, Schema.Struct<{
2813
- readonly description: Schema.optionalKey<Schema.String>;
2814
- readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
2815
- readonly called: Schema.Literal<true>;
2816
- readonly permissions: Schema.Struct<{
2817
- readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
2818
- readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
2819
- readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
2820
- readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
2821
- readonly code: Schema.optionalKey<Schema.Literal<"write">>;
2822
- readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
2823
- readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
2824
- readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
2825
- readonly budgets: Schema.Struct<{
2826
- readonly requests: Schema.Int;
2827
- readonly asks: Schema.Int;
2828
- readonly threads: Schema.Int;
2829
- readonly calls: Schema.Int;
2830
- readonly forks: Schema.Int;
2831
- readonly pushes: Schema.Int;
2832
- readonly sandboxMinutes: Schema.Int;
2833
- }>;
2834
- }>;
2835
- }>]>;
2836
- readonly agent: Schema.brand<Schema.String, "AgentHandle">;
2837
- readonly source: Schema.String;
2838
- }>, Schema.Struct<{
2839
- readonly kind: Schema.Literal<"unavailable">;
2840
- readonly nextStep: Schema.String;
2841
- }>]>>;
2842
- }>, Schema.Struct<{
2843
- readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2844
- readonly machineName: Schema.String;
2845
- readonly folders: Schema.$Array<Schema.Struct<{
2846
- readonly path: Schema.String;
2847
- readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
2848
- readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
2849
- }>>;
2850
- readonly askedFrom: Schema.optionalKey<Schema.String>;
2851
- readonly askedAt: Schema.DateTimeUtcFromString;
2852
- readonly expiresAt: Schema.DateTimeUtcFromString;
2853
- readonly callback: Schema.optionalKey<Schema.Struct<{
2854
- readonly port: Schema.Int;
2855
- readonly state: Schema.String;
2792
+ readonly lean: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
2793
+ readonly deciders: Schema.$Array<Schema.Struct<{
2794
+ readonly decider: Schema.Union<readonly [Schema.Struct<{
2795
+ readonly kind: Schema.Literal<"person">;
2796
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2797
+ }>, Schema.Struct<{
2798
+ readonly kind: Schema.Literal<"agent">;
2799
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2800
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2801
+ }>, Schema.Struct<{
2802
+ readonly kind: Schema.Literal<"check">;
2803
+ readonly name: Schema.brand<Schema.String, "CheckName">;
2804
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
2805
+ }>, Schema.Struct<{
2806
+ readonly kind: Schema.Literal<"role">;
2807
+ readonly role: Schema.Literal<"admin">;
2808
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2809
+ }>, Schema.Struct<{
2810
+ readonly kind: Schema.Literal<"permission">;
2811
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
2812
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
2813
+ }>, Schema.Struct<{
2814
+ readonly kind: Schema.Literal<"override">;
2815
+ readonly of: Schema.Union<readonly [Schema.Struct<{
2816
+ readonly kind: Schema.Literal<"check">;
2817
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
2818
+ }>, Schema.Struct<{
2819
+ readonly kind: Schema.Literal<"not-run">;
2820
+ readonly check: Schema.brand<Schema.String, "CheckName">;
2821
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
2822
+ }>]>;
2823
+ readonly by: Schema.Union<readonly [Schema.Struct<{
2824
+ readonly kind: Schema.Literal<"person">;
2825
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2826
+ }>, Schema.Struct<{
2827
+ readonly kind: Schema.Literal<"role">;
2828
+ readonly role: Schema.Literal<"admin">;
2829
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2830
+ }>]>;
2831
+ }>]>;
2832
+ readonly required: Schema.Boolean;
2833
+ readonly why: Schema.optionalKey<Schema.String>;
2834
+ }>>;
2835
+ readonly deadline: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
2836
+ readonly state: Schema.Literals<readonly ["open", "closed"]>;
2837
+ readonly answers: Schema.$Array<Schema.Struct<{
2838
+ readonly decider: Schema.Union<readonly [Schema.Struct<{
2839
+ readonly kind: Schema.Literal<"person">;
2840
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2841
+ }>, Schema.Struct<{
2842
+ readonly kind: Schema.Literal<"agent">;
2843
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2844
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2845
+ }>, Schema.Struct<{
2846
+ readonly kind: Schema.Literal<"check">;
2847
+ readonly name: Schema.brand<Schema.String, "CheckName">;
2848
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
2849
+ }>, Schema.Struct<{
2850
+ readonly kind: Schema.Literal<"role">;
2851
+ readonly role: Schema.Literal<"admin">;
2852
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2853
+ }>, Schema.Struct<{
2854
+ readonly kind: Schema.Literal<"permission">;
2855
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
2856
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
2857
+ }>, Schema.Struct<{
2858
+ readonly kind: Schema.Literal<"override">;
2859
+ readonly of: Schema.Union<readonly [Schema.Struct<{
2860
+ readonly kind: Schema.Literal<"check">;
2861
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
2862
+ }>, Schema.Struct<{
2863
+ readonly kind: Schema.Literal<"not-run">;
2864
+ readonly check: Schema.brand<Schema.String, "CheckName">;
2865
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
2866
+ }>]>;
2867
+ readonly by: Schema.Union<readonly [Schema.Struct<{
2868
+ readonly kind: Schema.Literal<"person">;
2869
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2870
+ }>, Schema.Struct<{
2871
+ readonly kind: Schema.Literal<"role">;
2872
+ readonly role: Schema.Literal<"admin">;
2873
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2874
+ }>]>;
2875
+ }>]>;
2876
+ readonly answer: Schema.brand<Schema.String, "AnswerKey">;
2877
+ readonly reason: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
2878
+ readonly at: Schema.DateTimeUtcFromMillis;
2879
+ }>>;
2880
+ readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
2881
+ readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
2882
+ readonly names: Schema.Struct<{
2883
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
2884
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
2885
+ }>;
2856
2886
  }>>;
2857
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
2887
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
2858
2888
  approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2859
2889
  }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2860
2890
  readonly state: Schema.Literal<"waiting">;
@@ -2945,7 +2975,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
2945
2975
  }>>;
2946
2976
  readonly replacement: Schema.optionalKey<Schema.Struct<{
2947
2977
  readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2948
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
2978
+ readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
2949
2979
  readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
2950
2980
  }>>;
2951
2981
  }>;
@@ -2962,19 +2992,250 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
2962
2992
  readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
2963
2993
  readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2964
2994
  }>;
2965
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
2966
- approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2967
- }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2968
- readonly answer: Schema.Literal<"yes">;
2969
- readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
2970
- readonly assertion: Schema.Struct<{
2971
- readonly id: Schema.String;
2972
- readonly rawId: Schema.String;
2973
- readonly type: Schema.Literal<"public-key">;
2974
- readonly response: Schema.Struct<{
2975
- readonly clientDataJSON: Schema.String;
2976
- readonly authenticatorData: Schema.String;
2977
- readonly signature: Schema.String;
2995
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"find", "POST", "/v1/approvals/find", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2996
+ readonly code: Schema.String;
2997
+ }>, Schema.Struct<{
2998
+ readonly link: Schema.String;
2999
+ }>]>>, Schema.toCodecStringTree<Schema.Struct<{
3000
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
3001
+ }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
3002
+ readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
3003
+ readonly says: Schema.String;
3004
+ readonly fields: Schema.$Array<Schema.Struct<{
3005
+ readonly name: Schema.String;
3006
+ readonly value: Schema.String;
3007
+ readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
3008
+ }>>;
3009
+ readonly command: Schema.Struct<{
3010
+ readonly endpoint: Schema.String;
3011
+ readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
3012
+ readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
3013
+ readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
3014
+ }>;
3015
+ readonly asker: Schema.Union<readonly [Schema.Struct<{
3016
+ readonly kind: Schema.Literal<"terminal">;
3017
+ }>, Schema.Struct<{
3018
+ readonly kind: Schema.Literal<"page">;
3019
+ }>, Schema.Struct<{
3020
+ readonly kind: Schema.Literal<"agent">;
3021
+ readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
3022
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
3023
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
3024
+ readonly attachment: Schema.optionalKey<Schema.Struct<{
3025
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
3026
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
3027
+ }>>;
3028
+ }>]>;
3029
+ readonly askedFrom: Schema.optionalKey<Schema.String>;
3030
+ readonly askedAt: Schema.DateTimeUtcFromString;
3031
+ readonly expiresAt: Schema.DateTimeUtcFromString;
3032
+ readonly agentPermission: Schema.optionalKey<Schema.Struct<{
3033
+ readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
3034
+ readonly mayAllow: Schema.Boolean;
3035
+ }>>;
3036
+ readonly preview: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3037
+ readonly kind: Schema.Literal<"workflow">;
3038
+ readonly repo: Schema.String;
3039
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
3040
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
3041
+ readonly manifest: Schema.Union<readonly [Schema.Struct<{
3042
+ readonly description: Schema.optionalKey<Schema.String>;
3043
+ readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
3044
+ readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
3045
+ readonly where: Schema.Struct<{
3046
+ readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
3047
+ readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
3048
+ }>>;
3049
+ readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
3050
+ readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
3051
+ }>>;
3052
+ readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
3053
+ readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
3054
+ }>>;
3055
+ readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
3056
+ readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
3057
+ }>>;
3058
+ readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
3059
+ readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
3060
+ readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
3061
+ }>>;
3062
+ readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
3063
+ readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
3064
+ readonly self: Schema.optionalKey<Schema.Boolean>;
3065
+ }>>;
3066
+ readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
3067
+ readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
3068
+ readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
3069
+ readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
3070
+ }>>;
3071
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
3072
+ readonly cron: Schema.String;
3073
+ readonly timezone: Schema.String;
3074
+ }>>;
3075
+ }>;
3076
+ readonly permissions: Schema.Struct<{
3077
+ readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
3078
+ readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
3079
+ readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
3080
+ readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
3081
+ readonly code: Schema.optionalKey<Schema.Literal<"write">>;
3082
+ readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
3083
+ readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
3084
+ readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
3085
+ readonly budgets: Schema.Struct<{
3086
+ readonly requests: Schema.Int;
3087
+ readonly asks: Schema.Int;
3088
+ readonly threads: Schema.Int;
3089
+ readonly calls: Schema.Int;
3090
+ readonly forks: Schema.Int;
3091
+ readonly pushes: Schema.Int;
3092
+ readonly sandboxMinutes: Schema.Int;
3093
+ }>;
3094
+ }>;
3095
+ }>, Schema.Struct<{
3096
+ readonly description: Schema.optionalKey<Schema.String>;
3097
+ readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
3098
+ readonly called: Schema.Literal<true>;
3099
+ readonly permissions: Schema.Struct<{
3100
+ readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
3101
+ readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
3102
+ readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
3103
+ readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
3104
+ readonly code: Schema.optionalKey<Schema.Literal<"write">>;
3105
+ readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
3106
+ readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
3107
+ readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
3108
+ readonly budgets: Schema.Struct<{
3109
+ readonly requests: Schema.Int;
3110
+ readonly asks: Schema.Int;
3111
+ readonly threads: Schema.Int;
3112
+ readonly calls: Schema.Int;
3113
+ readonly forks: Schema.Int;
3114
+ readonly pushes: Schema.Int;
3115
+ readonly sandboxMinutes: Schema.Int;
3116
+ }>;
3117
+ }>;
3118
+ }>]>;
3119
+ readonly state: Schema.Literals<readonly ["on", "off"]>;
3120
+ readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
3121
+ readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
3122
+ }>, Schema.Struct<{
3123
+ readonly kind: Schema.Literal<"attached workflow">;
3124
+ readonly thread: Schema.String;
3125
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
3126
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
3127
+ readonly manifest: Schema.Union<readonly [Schema.Struct<{
3128
+ readonly description: Schema.optionalKey<Schema.String>;
3129
+ readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
3130
+ readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
3131
+ readonly where: Schema.Struct<{
3132
+ readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
3133
+ readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
3134
+ }>>;
3135
+ readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
3136
+ readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
3137
+ }>>;
3138
+ readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
3139
+ readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
3140
+ }>>;
3141
+ readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
3142
+ readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
3143
+ }>>;
3144
+ readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
3145
+ readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
3146
+ readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
3147
+ }>>;
3148
+ readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
3149
+ readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
3150
+ readonly self: Schema.optionalKey<Schema.Boolean>;
3151
+ }>>;
3152
+ readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
3153
+ readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
3154
+ readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
3155
+ readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
3156
+ }>>;
3157
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
3158
+ readonly cron: Schema.String;
3159
+ readonly timezone: Schema.String;
3160
+ }>>;
3161
+ }>;
3162
+ readonly permissions: Schema.Struct<{
3163
+ readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
3164
+ readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
3165
+ readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
3166
+ readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
3167
+ readonly code: Schema.optionalKey<Schema.Literal<"write">>;
3168
+ readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
3169
+ readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
3170
+ readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
3171
+ readonly budgets: Schema.Struct<{
3172
+ readonly requests: Schema.Int;
3173
+ readonly asks: Schema.Int;
3174
+ readonly threads: Schema.Int;
3175
+ readonly calls: Schema.Int;
3176
+ readonly forks: Schema.Int;
3177
+ readonly pushes: Schema.Int;
3178
+ readonly sandboxMinutes: Schema.Int;
3179
+ }>;
3180
+ }>;
3181
+ }>, Schema.Struct<{
3182
+ readonly description: Schema.optionalKey<Schema.String>;
3183
+ readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
3184
+ readonly called: Schema.Literal<true>;
3185
+ readonly permissions: Schema.Struct<{
3186
+ readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
3187
+ readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
3188
+ readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
3189
+ readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
3190
+ readonly code: Schema.optionalKey<Schema.Literal<"write">>;
3191
+ readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
3192
+ readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
3193
+ readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
3194
+ readonly budgets: Schema.Struct<{
3195
+ readonly requests: Schema.Int;
3196
+ readonly asks: Schema.Int;
3197
+ readonly threads: Schema.Int;
3198
+ readonly calls: Schema.Int;
3199
+ readonly forks: Schema.Int;
3200
+ readonly pushes: Schema.Int;
3201
+ readonly sandboxMinutes: Schema.Int;
3202
+ }>;
3203
+ }>;
3204
+ }>]>;
3205
+ readonly agent: Schema.brand<Schema.String, "AgentHandle">;
3206
+ readonly source: Schema.String;
3207
+ }>, Schema.Struct<{
3208
+ readonly kind: Schema.Literal<"unavailable">;
3209
+ readonly nextStep: Schema.String;
3210
+ }>]>>;
3211
+ }>, Schema.Struct<{
3212
+ readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
3213
+ readonly machineName: Schema.String;
3214
+ readonly folders: Schema.$Array<Schema.Struct<{
3215
+ readonly path: Schema.String;
3216
+ readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
3217
+ readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
3218
+ }>>;
3219
+ readonly askedFrom: Schema.optionalKey<Schema.String>;
3220
+ readonly askedAt: Schema.DateTimeUtcFromString;
3221
+ readonly expiresAt: Schema.DateTimeUtcFromString;
3222
+ readonly callback: Schema.optionalKey<Schema.Struct<{
3223
+ readonly port: Schema.Int;
3224
+ readonly state: Schema.String;
3225
+ }>>;
3226
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
3227
+ approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
3228
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
3229
+ readonly answer: Schema.Literal<"yes">;
3230
+ readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
3231
+ readonly assertion: Schema.Struct<{
3232
+ readonly id: Schema.String;
3233
+ readonly rawId: Schema.String;
3234
+ readonly type: Schema.Literal<"public-key">;
3235
+ readonly response: Schema.Struct<{
3236
+ readonly clientDataJSON: Schema.String;
3237
+ readonly authenticatorData: Schema.String;
3238
+ readonly signature: Schema.String;
2978
3239
  readonly userHandle: Schema.optional<Schema.String>;
2979
3240
  }>;
2980
3241
  readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
@@ -3076,21 +3337,52 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3076
3337
  readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
3077
3338
  }>>;
3078
3339
  readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
3079
- }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
3080
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
3081
- }>>, Schema.toCodecJson<Schema.Struct<{
3082
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
3083
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
3084
- from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3085
- to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3086
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3087
- readonly turns: Schema.Int;
3088
- readonly unknownTurns: Schema.Int;
3089
- readonly models: Schema.$Array<Schema.Struct<{
3090
- readonly model: Schema.String;
3091
- readonly input: Schema.Int;
3092
- readonly output: Schema.Int;
3093
- readonly cacheWrite: Schema.Int;
3340
+ }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3341
+ readonly mirrors: Schema.$Array<Schema.Struct<{
3342
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3343
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
3344
+ readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
3345
+ readonly name: Schema.brand<Schema.String, "RepoName">;
3346
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
3347
+ readonly kind: Schema.Literal<"none">;
3348
+ }>, Schema.Struct<{
3349
+ readonly kind: Schema.Literal<"github">;
3350
+ readonly branch: Schema.String;
3351
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
3352
+ readonly state: Schema.Literal<"on">;
3353
+ }>, Schema.Struct<{
3354
+ readonly state: Schema.Literal<"paused">;
3355
+ readonly paused: Schema.Union<readonly [Schema.Struct<{
3356
+ readonly why: Schema.Literal<"diverged">;
3357
+ readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3358
+ }>, Schema.Struct<{
3359
+ readonly why: Schema.Literal<"refused">;
3360
+ readonly said: Schema.String;
3361
+ }>, Schema.Struct<{
3362
+ readonly why: Schema.Literal<"unauthorized">;
3363
+ }>]>;
3364
+ }>, Schema.Struct<{
3365
+ readonly state: Schema.Literal<"off">;
3366
+ }>]>;
3367
+ readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3368
+ readonly nextStep: Schema.optionalKey<Schema.String>;
3369
+ }>]>;
3370
+ }>>;
3371
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
3372
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
3373
+ }>>, Schema.toCodecJson<Schema.Struct<{
3374
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
3375
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
3376
+ from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3377
+ to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3378
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3379
+ readonly turns: Schema.Int;
3380
+ readonly unknownTurns: Schema.Int;
3381
+ readonly models: Schema.$Array<Schema.Struct<{
3382
+ readonly model: Schema.String;
3383
+ readonly input: Schema.Int;
3384
+ readonly output: Schema.Int;
3385
+ readonly cacheWrite: Schema.Int;
3094
3386
  readonly cacheRead: Schema.Int;
3095
3387
  readonly cost: Schema.optionalKey<Schema.Finite>;
3096
3388
  }>>;
@@ -3153,38 +3445,12 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3153
3445
  readonly bytes: Schema.Int;
3154
3446
  }>>>;
3155
3447
  }>>;
3156
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3157
- readonly mirrors: Schema.$Array<Schema.Struct<{
3158
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3159
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
3160
- readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
3161
- readonly name: Schema.brand<Schema.String, "RepoName">;
3162
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
3163
- readonly kind: Schema.Literal<"none">;
3164
- }>, Schema.Struct<{
3165
- readonly kind: Schema.Literal<"github">;
3166
- readonly branch: Schema.String;
3167
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
3168
- readonly state: Schema.Literal<"on">;
3169
- }>, Schema.Struct<{
3170
- readonly state: Schema.Literal<"paused">;
3171
- readonly paused: Schema.Union<readonly [Schema.Struct<{
3172
- readonly why: Schema.Literal<"diverged">;
3173
- readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3174
- }>, Schema.Struct<{
3175
- readonly why: Schema.Literal<"refused">;
3176
- readonly said: Schema.String;
3177
- }>, Schema.Struct<{
3178
- readonly why: Schema.Literal<"unauthorized">;
3179
- }>]>;
3180
- }>, Schema.Struct<{
3181
- readonly state: Schema.Literal<"off">;
3182
- }>]>;
3183
- readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3184
- readonly nextStep: Schema.optionalKey<Schema.String>;
3185
- }>]>;
3186
- }>>;
3187
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
3448
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"identityToken", "POST", "/v1/me/identity-token", never, never, Schema.toCodecJson<Schema.Struct<{
3449
+ readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
3450
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3451
+ readonly token: Schema.brand<Schema.String, "IdentityToken">;
3452
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
3453
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof SessionHasEnded | typeof SlowDown | typeof IdentityAudienceRefused | typeof IdentityTokenNotReady>, Authorization | IdentityAudienceRefusal, never>, false>;
3188
3454
  declare class MeGroup extends MeGroup_base {}
3189
3455
  declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
3190
3456
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
@@ -6634,6 +6900,60 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
6634
6900
  }>;
6635
6901
  } & {
6636
6902
  readonly seq: Schema.Int;
6903
+ }>, Schema.Struct<{
6904
+ readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
6905
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
6906
+ readonly writer: Schema.Union<readonly [Schema.Literal<"directory">, Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
6907
+ readonly writerSeq: Schema.Int;
6908
+ readonly at: Schema.DateTimeUtcFromMillis;
6909
+ readonly schemaVersion: Schema.Literal<1>;
6910
+ readonly actor: Schema.Union<readonly [Schema.Struct<{
6911
+ readonly kind: Schema.Literal<"person">;
6912
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
6913
+ }>, Schema.Struct<{
6914
+ readonly kind: Schema.Literal<"agent">;
6915
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
6916
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
6917
+ }>, Schema.Struct<{
6918
+ readonly kind: Schema.Literal<"ref0">;
6919
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
6920
+ }>]>;
6921
+ readonly token: Schema.optionalKey<Schema.Struct<{
6922
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
6923
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
6924
+ }>>;
6925
+ readonly draftedBy: Schema.optionalKey<Schema.Struct<{
6926
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
6927
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
6928
+ }>>;
6929
+ readonly cause: Schema.optionalKey<Schema.Struct<{
6930
+ readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
6931
+ readonly event: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
6932
+ }>>;
6933
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
6934
+ readonly refs: Schema.$Array<Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">]>>;
6935
+ readonly source: Schema.optionalKey<Schema.Struct<{
6936
+ readonly system: Schema.String;
6937
+ readonly deliveryId: Schema.String;
6938
+ }>>;
6939
+ readonly trace: Schema.optionalKey<Schema.String>;
6940
+ readonly kind: Schema.Literal<"identity_token.issued">;
6941
+ readonly data: Schema.Struct<{
6942
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
6943
+ readonly agent: Schema.Struct<{
6944
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
6945
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
6946
+ }>;
6947
+ readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
6948
+ readonly jti: Schema.brand<Schema.String, "IdentityTokenId">;
6949
+ readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
6950
+ readonly issuer: Schema.brand<Schema.String, "ApiOrigin">;
6951
+ readonly keyId: Schema.brand<Schema.String, "SigningKeyId">;
6952
+ readonly issuedAt: Schema.DateTimeUtcFromMillis;
6953
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
6954
+ }>;
6955
+ } & {
6956
+ readonly seq: Schema.Int;
6637
6957
  }>, Schema.Struct<{
6638
6958
  readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
6639
6959
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
@@ -12680,177 +13000,27 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
12680
13000
  * the stage as filters. A project the reader can't see answers as one that isn't there.
12681
13001
  */
12682
13002
  declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
12683
- declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
12684
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12685
- }>>, Schema.toCodecStringTree<Schema.Struct<{
12686
- after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
12687
- limit: Schema.optionalKey<Schema.Int>;
12688
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12689
- readonly repos: Schema.$Array<Schema.Struct<{
12690
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12691
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12692
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12693
- readonly scope: Schema.Union<readonly [Schema.Struct<{
12694
- readonly kind: Schema.Literal<"project">;
12695
- readonly name: Schema.brand<Schema.String, "ProjectName">;
12696
- }>, Schema.Struct<{
12697
- readonly kind: Schema.Literal<"owner">;
12698
- }>]>;
12699
- readonly name: Schema.brand<Schema.String, "RepoName">;
12700
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12701
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12702
- readonly createdAt: Schema.DateTimeUtcFromMillis;
12703
- }>>;
12704
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
12705
- }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
13003
+ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
12706
13004
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12707
13005
  repo: Schema.brand<Schema.String, "RepoName">;
12708
13006
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
12709
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12710
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12711
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12712
- readonly scope: Schema.Union<readonly [Schema.Struct<{
12713
- readonly kind: Schema.Literal<"project">;
12714
- readonly name: Schema.brand<Schema.String, "ProjectName">;
12715
- }>, Schema.Struct<{
12716
- readonly kind: Schema.Literal<"owner">;
12717
- }>]>;
12718
- readonly name: Schema.brand<Schema.String, "RepoName">;
12719
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12720
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12721
- readonly createdAt: Schema.DateTimeUtcFromMillis;
12722
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
12723
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12724
- }>>, never, Schema.toCodecJson<Schema.Struct<{
12725
- readonly name: Schema.brand<Schema.String, "RepoName">;
12726
- readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
12727
- }>>, Schema.toCodecStringTree<Schema.Struct<{
12728
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
12729
- }>>, Schema.toCodecJson<Schema.Struct<{
12730
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12731
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12732
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12733
- readonly scope: Schema.Union<readonly [Schema.Struct<{
12734
- readonly kind: Schema.Literal<"project">;
12735
- readonly name: Schema.brand<Schema.String, "ProjectName">;
12736
- }>, Schema.Struct<{
12737
- readonly kind: Schema.Literal<"owner">;
12738
- }>]>;
12739
- readonly name: Schema.brand<Schema.String, "RepoName">;
12740
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12741
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12742
- readonly createdAt: Schema.DateTimeUtcFromMillis;
12743
- }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
12744
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12745
- }>>, never, Schema.toCodecJson<Schema.Struct<{
12746
- readonly name: Schema.brand<Schema.String, "RepoName">;
12747
- readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
12748
- readonly url: Schema.brand<Schema.String, "RepoUrl">;
12749
- }>>, Schema.toCodecStringTree<Schema.Struct<{
12750
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
12751
- }>>, Schema.toCodecJson<Schema.Struct<{
12752
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12753
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12754
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12755
- readonly scope: Schema.Union<readonly [Schema.Struct<{
12756
- readonly kind: Schema.Literal<"project">;
12757
- readonly name: Schema.brand<Schema.String, "ProjectName">;
12758
- }>, Schema.Struct<{
12759
- readonly kind: Schema.Literal<"owner">;
12760
- }>]>;
12761
- readonly name: Schema.brand<Schema.String, "RepoName">;
12762
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12763
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12764
- readonly createdAt: Schema.DateTimeUtcFromMillis;
12765
- }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
12766
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12767
- repo: Schema.brand<Schema.String, "RepoName">;
12768
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
12769
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12770
- readonly version: Schema.Int;
12771
- readonly baseline: Schema.Struct<{
12772
- readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
12773
- readonly tip: Schema.brand<Schema.String, "CommitOid">;
12774
- readonly sequence: Schema.Int;
12775
- readonly depth: Schema.Int;
12776
- readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13007
+ readonly active: Schema.Struct<{
13008
+ readonly revision: Schema.Int;
13009
+ readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13010
+ readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
12777
13011
  }>;
12778
- readonly main: Schema.optionalKey<Schema.Struct<{
12779
- readonly sequence: Schema.Int;
12780
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
12781
- }>>;
12782
- readonly packs: Schema.$Array<Schema.Struct<{
12783
- readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
12784
- readonly key: Schema.String;
12785
- readonly sha256: Schema.String;
12786
- readonly bytes: Schema.Int;
12787
- readonly merges: Schema.optionalKey<Schema.Struct<{
12788
- readonly first: Schema.Int;
12789
- readonly last: Schema.Int;
12790
- }>>;
12791
- readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
12792
- readonly depth: Schema.optionalKey<Schema.Int>;
12793
- readonly roots: Schema.$Array<Schema.Struct<{
12794
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
12795
- readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
12796
- }>>;
13012
+ readonly pending: Schema.optionalKey<Schema.Struct<{
13013
+ readonly revision: Schema.Int;
13014
+ readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13015
+ readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
12797
13016
  }>>;
12798
- }>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
12799
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12800
- repo: Schema.brand<Schema.String, "RepoName">;
12801
- }>>, Schema.toCodecStringTree<Schema.Struct<{
12802
- key: Schema.String;
12803
- }>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
12804
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12805
- repo: Schema.brand<Schema.String, "RepoName">;
12806
- }>>, Schema.toCodecStringTree<Schema.Struct<{
12807
- readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
12808
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12809
- readonly pullRequests: Schema.$Array<Schema.Struct<{
12810
- readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13017
+ readonly holding: Schema.$Array<Schema.Struct<{
13018
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13019
+ readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
12811
13020
  readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
12812
- readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
12813
- readonly head: Schema.Struct<{
12814
- readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
12815
- readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
12816
- readonly branch: Schema.String;
12817
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
12818
- readonly generation: Schema.Int;
12819
- }>;
12820
- readonly openedBy: Schema.Union<readonly [Schema.Struct<{
12821
- readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
12822
- readonly agent: Schema.Struct<{
12823
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12824
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
12825
- }>;
12826
- }>, Schema.Struct<{
12827
- readonly workflow: Schema.Struct<{
12828
- readonly name: Schema.brand<Schema.String, "WorkflowName">;
12829
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
12830
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
12831
- readonly step: Schema.Struct<{
12832
- readonly name: Schema.String;
12833
- readonly count: Schema.Int;
12834
- readonly attempt: Schema.Int;
12835
- }>;
12836
- }>;
12837
- }>]>;
12838
- readonly openedAt: Schema.DateTimeUtcFromMillis;
12839
- readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
12840
- readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
12841
- readonly repair: Schema.Boolean;
12842
- readonly current: Schema.Struct<{
12843
- readonly version: Schema.brand<Schema.Int, "VersionNumber">;
12844
- readonly head: Schema.brand<Schema.String, "CommitOid">;
12845
- readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
12846
- readonly planVersion: Schema.NullOr<Schema.Int>;
12847
- readonly intentRevision: Schema.Int;
12848
- readonly generation: Schema.Int;
12849
- readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
12850
- readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
12851
- readonly createdAt: Schema.DateTimeUtcFromMillis;
12852
- }>;
12853
- readonly threadNumber: Schema.Int;
13021
+ readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
13022
+ readonly gate: Schema.Int;
13023
+ readonly since: Schema.Int;
12854
13024
  }>>;
12855
13025
  }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
12856
13026
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
@@ -12901,7 +13071,24 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
12901
13071
  readonly createdAt: Schema.DateTimeUtcFromMillis;
12902
13072
  }>;
12903
13073
  readonly threadNumber: Schema.Int;
12904
- }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
13074
+ }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
13075
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13076
+ repo: Schema.brand<Schema.String, "RepoName">;
13077
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13078
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13079
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13080
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13081
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
13082
+ readonly kind: Schema.Literal<"project">;
13083
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
13084
+ }>, Schema.Struct<{
13085
+ readonly kind: Schema.Literal<"owner">;
13086
+ }>]>;
13087
+ readonly name: Schema.brand<Schema.String, "RepoName">;
13088
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13089
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13090
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
13091
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
12905
13092
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12906
13093
  repo: Schema.brand<Schema.String, "RepoName">;
12907
13094
  pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
@@ -12927,29 +13114,167 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
12927
13114
  }>]>;
12928
13115
  }>>;
12929
13116
  }>, Schema.Struct<{
12930
- readonly kind: Schema.Literal<"review">;
12931
- }>, Schema.Struct<{
12932
- readonly kind: Schema.Literal<"accountable">;
12933
- }>, Schema.Struct<{
12934
- readonly kind: Schema.Literal<"admin">;
12935
- }>, Schema.Struct<{
12936
- readonly kind: Schema.Literal<"permission">;
12937
- readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
12938
- }>]>;
12939
- readonly from: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
12940
- readonly kind: Schema.Literal<"gate">;
12941
- readonly line: Schema.optionalKey<Schema.Int>;
12942
- readonly code: Schema.optionalKey<Schema.String>;
12943
- }>, Schema.Struct<{
12944
- readonly kind: Schema.Literal<"floor">;
12945
- }>, Schema.Struct<{
12946
- readonly kind: Schema.Literal<"project gate">;
12947
- readonly line: Schema.optionalKey<Schema.Int>;
12948
- readonly code: Schema.optionalKey<Schema.String>;
13117
+ readonly kind: Schema.Literal<"review">;
13118
+ }>, Schema.Struct<{
13119
+ readonly kind: Schema.Literal<"accountable">;
13120
+ }>, Schema.Struct<{
13121
+ readonly kind: Schema.Literal<"admin">;
13122
+ }>, Schema.Struct<{
13123
+ readonly kind: Schema.Literal<"permission">;
13124
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
13125
+ }>]>;
13126
+ readonly from: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
13127
+ readonly kind: Schema.Literal<"gate">;
13128
+ readonly line: Schema.optionalKey<Schema.Int>;
13129
+ readonly code: Schema.optionalKey<Schema.String>;
13130
+ }>, Schema.Struct<{
13131
+ readonly kind: Schema.Literal<"floor">;
13132
+ }>, Schema.Struct<{
13133
+ readonly kind: Schema.Literal<"project gate">;
13134
+ readonly line: Schema.optionalKey<Schema.Int>;
13135
+ readonly code: Schema.optionalKey<Schema.String>;
13136
+ }>, Schema.Struct<{
13137
+ readonly kind: Schema.Literal<"added">;
13138
+ readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
13139
+ readonly by: Schema.Union<readonly [Schema.Struct<{
13140
+ readonly kind: Schema.Literal<"person">;
13141
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
13142
+ }>, Schema.Struct<{
13143
+ readonly kind: Schema.Literal<"agent">;
13144
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
13145
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13146
+ }>, Schema.Struct<{
13147
+ readonly kind: Schema.Literal<"ref0">;
13148
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
13149
+ }>]>;
13150
+ readonly through: Schema.Literals<readonly ["thread", "person", "finding", "workflow"]>;
13151
+ readonly at: Schema.Int;
13152
+ readonly finding: Schema.optionalKey<Schema.Struct<{
13153
+ readonly review: Schema.brand<Schema.TemplateLiteral<readonly ["review_", Schema.String]>, "ReviewId">;
13154
+ readonly finding: Schema.Int;
13155
+ }>>;
13156
+ readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
13157
+ readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
13158
+ }>, Schema.Struct<{
13159
+ readonly kind: Schema.Literal<"result">;
13160
+ readonly check: Schema.brand<Schema.String, "CheckName">;
13161
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13162
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
13163
+ readonly local: Schema.optionalKey<Schema.Literal<true>>;
13164
+ }>, Schema.Struct<{
13165
+ readonly kind: Schema.Literal<"tip">;
13166
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["tiprun_", Schema.String]>, "TipRunId">;
13167
+ readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
13168
+ readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckName">>;
13169
+ readonly checkRun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
13170
+ }>]>>;
13171
+ readonly standing: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
13172
+ readonly state: Schema.Literal<"met">;
13173
+ readonly by: Schema.$Array<Schema.Struct<{
13174
+ readonly decider: Schema.Union<readonly [Schema.Struct<{
13175
+ readonly kind: Schema.Literal<"person">;
13176
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
13177
+ }>, Schema.Struct<{
13178
+ readonly kind: Schema.Literal<"agent">;
13179
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
13180
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13181
+ }>, Schema.Struct<{
13182
+ readonly kind: Schema.Literal<"check">;
13183
+ readonly name: Schema.brand<Schema.String, "CheckName">;
13184
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13185
+ }>, Schema.Struct<{
13186
+ readonly kind: Schema.Literal<"role">;
13187
+ readonly role: Schema.Literal<"admin">;
13188
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13189
+ }>, Schema.Struct<{
13190
+ readonly kind: Schema.Literal<"permission">;
13191
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13192
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
13193
+ }>, Schema.Struct<{
13194
+ readonly kind: Schema.Literal<"override">;
13195
+ readonly of: Schema.Union<readonly [Schema.Struct<{
13196
+ readonly kind: Schema.Literal<"check">;
13197
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
13198
+ }>, Schema.Struct<{
13199
+ readonly kind: Schema.Literal<"not-run">;
13200
+ readonly check: Schema.brand<Schema.String, "CheckName">;
13201
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13202
+ }>]>;
13203
+ readonly by: Schema.Union<readonly [Schema.Struct<{
13204
+ readonly kind: Schema.Literal<"person">;
13205
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
13206
+ }>, Schema.Struct<{
13207
+ readonly kind: Schema.Literal<"role">;
13208
+ readonly role: Schema.Literal<"admin">;
13209
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13210
+ }>]>;
13211
+ }>]>;
13212
+ readonly by: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
13213
+ readonly overridden: Schema.optionalKey<Schema.Literal<true>>;
13214
+ }>>;
13215
+ }>, Schema.Struct<{
13216
+ readonly state: Schema.Literal<"met">;
13217
+ readonly as: Schema.Literals<readonly ["no checks", "on the tip"]>;
13218
+ }>, Schema.Struct<{
13219
+ readonly state: Schema.Literal<"waiting">;
13220
+ readonly on: Schema.$Array<Schema.Struct<{
13221
+ readonly decider: Schema.Union<readonly [Schema.Struct<{
13222
+ readonly kind: Schema.Literal<"person">;
13223
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
13224
+ }>, Schema.Struct<{
13225
+ readonly kind: Schema.Literal<"agent">;
13226
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
13227
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13228
+ }>, Schema.Struct<{
13229
+ readonly kind: Schema.Literal<"check">;
13230
+ readonly name: Schema.brand<Schema.String, "CheckName">;
13231
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13232
+ }>, Schema.Struct<{
13233
+ readonly kind: Schema.Literal<"role">;
13234
+ readonly role: Schema.Literal<"admin">;
13235
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13236
+ }>, Schema.Struct<{
13237
+ readonly kind: Schema.Literal<"permission">;
13238
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13239
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
13240
+ }>, Schema.Struct<{
13241
+ readonly kind: Schema.Literal<"override">;
13242
+ readonly of: Schema.Union<readonly [Schema.Struct<{
13243
+ readonly kind: Schema.Literal<"check">;
13244
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
13245
+ }>, Schema.Struct<{
13246
+ readonly kind: Schema.Literal<"not-run">;
13247
+ readonly check: Schema.brand<Schema.String, "CheckName">;
13248
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13249
+ }>]>;
13250
+ readonly by: Schema.Union<readonly [Schema.Struct<{
13251
+ readonly kind: Schema.Literal<"person">;
13252
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
13253
+ }>, Schema.Struct<{
13254
+ readonly kind: Schema.Literal<"role">;
13255
+ readonly role: Schema.Literal<"admin">;
13256
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13257
+ }>]>;
13258
+ }>]>;
13259
+ readonly overrides: Schema.optionalKey<Schema.$Array<Schema.Struct<{
13260
+ readonly of: Schema.Literals<readonly ["failed run", "not run"]>;
13261
+ readonly by: Schema.Union<readonly [Schema.Struct<{
13262
+ readonly kind: Schema.Literal<"person">;
13263
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
13264
+ }>, Schema.Struct<{
13265
+ readonly kind: Schema.Literal<"role">;
13266
+ readonly role: Schema.Literal<"admin">;
13267
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13268
+ }>]>;
13269
+ }>>>;
13270
+ }>>;
13271
+ readonly all: Schema.Boolean;
13272
+ }>, Schema.Struct<{
13273
+ readonly state: Schema.Literal<"waiting">;
13274
+ readonly for: Schema.Literal<"checks read">;
12949
13275
  }>, Schema.Struct<{
12950
- readonly kind: Schema.Literal<"added">;
12951
- readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
12952
- readonly by: Schema.Union<readonly [Schema.Struct<{
13276
+ readonly state: Schema.Literal<"refused">;
13277
+ readonly decider: Schema.Union<readonly [Schema.Struct<{
12953
13278
  readonly kind: Schema.Literal<"person">;
12954
13279
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
12955
13280
  }>, Schema.Struct<{
@@ -12957,31 +13282,44 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
12957
13282
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
12958
13283
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12959
13284
  }>, Schema.Struct<{
12960
- readonly kind: Schema.Literal<"ref0">;
12961
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
13285
+ readonly kind: Schema.Literal<"check">;
13286
+ readonly name: Schema.brand<Schema.String, "CheckName">;
13287
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13288
+ }>, Schema.Struct<{
13289
+ readonly kind: Schema.Literal<"role">;
13290
+ readonly role: Schema.Literal<"admin">;
13291
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13292
+ }>, Schema.Struct<{
13293
+ readonly kind: Schema.Literal<"permission">;
13294
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13295
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
13296
+ }>, Schema.Struct<{
13297
+ readonly kind: Schema.Literal<"override">;
13298
+ readonly of: Schema.Union<readonly [Schema.Struct<{
13299
+ readonly kind: Schema.Literal<"check">;
13300
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
13301
+ }>, Schema.Struct<{
13302
+ readonly kind: Schema.Literal<"not-run">;
13303
+ readonly check: Schema.brand<Schema.String, "CheckName">;
13304
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13305
+ }>]>;
13306
+ readonly by: Schema.Union<readonly [Schema.Struct<{
13307
+ readonly kind: Schema.Literal<"person">;
13308
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
13309
+ }>, Schema.Struct<{
13310
+ readonly kind: Schema.Literal<"role">;
13311
+ readonly role: Schema.Literal<"admin">;
13312
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13313
+ }>]>;
12962
13314
  }>]>;
12963
- readonly through: Schema.Literals<readonly ["thread", "person", "finding", "workflow"]>;
12964
- readonly at: Schema.Int;
12965
- readonly finding: Schema.optionalKey<Schema.Struct<{
12966
- readonly review: Schema.brand<Schema.TemplateLiteral<readonly ["review_", Schema.String]>, "ReviewId">;
12967
- readonly finding: Schema.Int;
12968
- }>>;
12969
- readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
12970
- readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
12971
- }>, Schema.Struct<{
12972
- readonly kind: Schema.Literal<"result">;
12973
- readonly check: Schema.brand<Schema.String, "CheckName">;
12974
- readonly source: Schema.optionalKey<Schema.Literal<"project">>;
12975
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
12976
- readonly local: Schema.optionalKey<Schema.Literal<true>>;
12977
- }>, Schema.Struct<{
12978
- readonly kind: Schema.Literal<"tip">;
12979
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["tiprun_", Schema.String]>, "TipRunId">;
12980
- readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
12981
- readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckName">>;
12982
- readonly checkRun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
13315
+ readonly by: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
12983
13316
  }>]>>;
12984
13317
  }>>;
13318
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13319
+ readonly names: Schema.optionalKey<Schema.$Array<Schema.Struct<{
13320
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13321
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
13322
+ }>>>;
12985
13323
  readonly reads: Schema.$Array<Schema.Struct<{
12986
13324
  readonly side: Schema.Literals<readonly ["before", "after"]>;
12987
13325
  readonly path: Schema.String;
@@ -13513,81 +13851,40 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13513
13851
  readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
13514
13852
  readonly at: Schema.DateTimeUtcFromMillis;
13515
13853
  }>]>>>;
13516
- }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
13517
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13518
- repo: Schema.brand<Schema.String, "RepoName">;
13519
- pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13520
- }>>, never, Schema.toCodecJson<Schema.Struct<{
13521
- readonly need: Schema.Union<readonly [Schema.Struct<{
13522
- readonly kind: Schema.Literal<"checks">;
13523
- }>, Schema.Struct<{
13524
- readonly kind: Schema.Literal<"check">;
13525
- readonly name: Schema.brand<Schema.String, "CheckName">;
13526
- readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13527
- readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13528
- readonly local: Schema.optionalKey<Schema.Literal<true>>;
13529
- readonly passkey: Schema.optionalKey<Schema.Struct<{
13530
- readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
13531
- readonly person: Schema.brand<Schema.String, "OwnerName">;
13532
- }>, Schema.Struct<{
13533
- readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
13534
- }>]>;
13535
- }>>;
13536
- }>, Schema.Struct<{
13537
- readonly kind: Schema.Literal<"review">;
13538
- }>, Schema.Struct<{
13539
- readonly kind: Schema.Literal<"accountable">;
13540
- }>, Schema.Struct<{
13541
- readonly kind: Schema.Literal<"admin">;
13542
- }>, Schema.Struct<{
13543
- readonly kind: Schema.Literal<"permission">;
13544
- readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
13545
- }>]>;
13546
- }>>, Schema.toCodecStringTree<Schema.Struct<{
13547
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13548
- }>>, Schema.toCodecJson<Schema.Struct<{
13549
- readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
13550
- readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
13551
- readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
13552
- readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
13553
- readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
13554
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
13555
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13556
- repo: Schema.brand<Schema.String, "RepoName">;
13557
- pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13558
- }>>, never, Schema.toCodecJson<Schema.Struct<{
13559
- readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
13560
- }>>, Schema.toCodecStringTree<Schema.Struct<{
13561
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13562
- }>>, Schema.toCodecJson<Schema.Struct<{
13563
- readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
13564
- readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
13565
- readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
13566
- readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
13567
- readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
13568
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
13854
+ }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
13569
13855
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13570
13856
  repo: Schema.brand<Schema.String, "RepoName">;
13571
13857
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13572
- readonly active: Schema.Struct<{
13573
- readonly revision: Schema.Int;
13574
- readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13575
- readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13858
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13859
+ readonly version: Schema.Int;
13860
+ readonly baseline: Schema.Struct<{
13861
+ readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
13862
+ readonly tip: Schema.brand<Schema.String, "CommitOid">;
13863
+ readonly sequence: Schema.Int;
13864
+ readonly depth: Schema.Int;
13865
+ readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13576
13866
  }>;
13577
- readonly pending: Schema.optionalKey<Schema.Struct<{
13578
- readonly revision: Schema.Int;
13579
- readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13580
- readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13867
+ readonly main: Schema.optionalKey<Schema.Struct<{
13868
+ readonly sequence: Schema.Int;
13869
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13581
13870
  }>>;
13582
- readonly holding: Schema.$Array<Schema.Struct<{
13583
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13584
- readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
13585
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13586
- readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
13587
- readonly gate: Schema.Int;
13588
- readonly since: Schema.Int;
13871
+ readonly packs: Schema.$Array<Schema.Struct<{
13872
+ readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
13873
+ readonly key: Schema.String;
13874
+ readonly sha256: Schema.String;
13875
+ readonly bytes: Schema.Int;
13876
+ readonly merges: Schema.optionalKey<Schema.Struct<{
13877
+ readonly first: Schema.Int;
13878
+ readonly last: Schema.Int;
13879
+ }>>;
13880
+ readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
13881
+ readonly depth: Schema.optionalKey<Schema.Int>;
13882
+ readonly roots: Schema.$Array<Schema.Struct<{
13883
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13884
+ readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13885
+ }>>;
13589
13886
  }>>;
13590
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13887
+ }>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13591
13888
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13592
13889
  repo: Schema.brand<Schema.String, "RepoName">;
13593
13890
  }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
@@ -13609,11 +13906,106 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13609
13906
  readonly why: Schema.Literal<"unauthorized">;
13610
13907
  }>]>;
13611
13908
  }>, Schema.Struct<{
13612
- readonly state: Schema.Literal<"off">;
13909
+ readonly state: Schema.Literal<"off">;
13910
+ }>]>;
13911
+ readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13912
+ readonly nextStep: Schema.optionalKey<Schema.String>;
13913
+ }>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
13914
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13915
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
13916
+ readonly name: Schema.brand<Schema.String, "RepoName">;
13917
+ readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
13918
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13919
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13920
+ }>>, Schema.toCodecJson<Schema.Struct<{
13921
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13922
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13923
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13924
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
13925
+ readonly kind: Schema.Literal<"project">;
13926
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
13927
+ }>, Schema.Struct<{
13928
+ readonly kind: Schema.Literal<"owner">;
13929
+ }>]>;
13930
+ readonly name: Schema.brand<Schema.String, "RepoName">;
13931
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13932
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13933
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
13934
+ }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
13935
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13936
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
13937
+ readonly name: Schema.brand<Schema.String, "RepoName">;
13938
+ readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
13939
+ readonly url: Schema.brand<Schema.String, "RepoUrl">;
13940
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13941
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13942
+ }>>, Schema.toCodecJson<Schema.Struct<{
13943
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13944
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13945
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13946
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
13947
+ readonly kind: Schema.Literal<"project">;
13948
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
13949
+ }>, Schema.Struct<{
13950
+ readonly kind: Schema.Literal<"owner">;
13951
+ }>]>;
13952
+ readonly name: Schema.brand<Schema.String, "RepoName">;
13953
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13954
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13955
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
13956
+ }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
13957
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13958
+ repo: Schema.brand<Schema.String, "RepoName">;
13959
+ pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13960
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
13961
+ readonly need: Schema.Union<readonly [Schema.Struct<{
13962
+ readonly kind: Schema.Literal<"checks">;
13963
+ }>, Schema.Struct<{
13964
+ readonly kind: Schema.Literal<"check">;
13965
+ readonly name: Schema.brand<Schema.String, "CheckName">;
13966
+ readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13967
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13968
+ readonly local: Schema.optionalKey<Schema.Literal<true>>;
13969
+ readonly passkey: Schema.optionalKey<Schema.Struct<{
13970
+ readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
13971
+ readonly person: Schema.brand<Schema.String, "OwnerName">;
13972
+ }>, Schema.Struct<{
13973
+ readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
13974
+ }>]>;
13975
+ }>>;
13976
+ }>, Schema.Struct<{
13977
+ readonly kind: Schema.Literal<"review">;
13978
+ }>, Schema.Struct<{
13979
+ readonly kind: Schema.Literal<"accountable">;
13980
+ }>, Schema.Struct<{
13981
+ readonly kind: Schema.Literal<"admin">;
13982
+ }>, Schema.Struct<{
13983
+ readonly kind: Schema.Literal<"permission">;
13984
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
13613
13985
  }>]>;
13614
- readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13615
- readonly nextStep: Schema.optionalKey<Schema.String>;
13616
- }>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13986
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13987
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13988
+ }>>, Schema.toCodecJson<Schema.Struct<{
13989
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
13990
+ readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
13991
+ readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
13992
+ readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
13993
+ readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
13994
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
13995
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13996
+ repo: Schema.brand<Schema.String, "RepoName">;
13997
+ pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13998
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
13999
+ readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
14000
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
14001
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
14002
+ }>>, Schema.toCodecJson<Schema.Struct<{
14003
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
14004
+ readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
14005
+ readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
14006
+ readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
14007
+ readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
14008
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13617
14009
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13618
14010
  repo: Schema.brand<Schema.String, "RepoName">;
13619
14011
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -13643,7 +14035,86 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13643
14035
  }>]>;
13644
14036
  readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13645
14037
  readonly nextStep: Schema.optionalKey<Schema.String>;
13646
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
14038
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
14039
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
14040
+ repo: Schema.brand<Schema.String, "RepoName">;
14041
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
14042
+ readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
14043
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
14044
+ readonly pullRequests: Schema.$Array<Schema.Struct<{
14045
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
14046
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
14047
+ readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
14048
+ readonly head: Schema.Struct<{
14049
+ readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
14050
+ readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
14051
+ readonly branch: Schema.String;
14052
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
14053
+ readonly generation: Schema.Int;
14054
+ }>;
14055
+ readonly openedBy: Schema.Union<readonly [Schema.Struct<{
14056
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
14057
+ readonly agent: Schema.Struct<{
14058
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
14059
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
14060
+ }>;
14061
+ }>, Schema.Struct<{
14062
+ readonly workflow: Schema.Struct<{
14063
+ readonly name: Schema.brand<Schema.String, "WorkflowName">;
14064
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
14065
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
14066
+ readonly step: Schema.Struct<{
14067
+ readonly name: Schema.String;
14068
+ readonly count: Schema.Int;
14069
+ readonly attempt: Schema.Int;
14070
+ }>;
14071
+ }>;
14072
+ }>]>;
14073
+ readonly openedAt: Schema.DateTimeUtcFromMillis;
14074
+ readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
14075
+ readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
14076
+ readonly repair: Schema.Boolean;
14077
+ readonly current: Schema.Struct<{
14078
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
14079
+ readonly head: Schema.brand<Schema.String, "CommitOid">;
14080
+ readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
14081
+ readonly planVersion: Schema.NullOr<Schema.Int>;
14082
+ readonly intentRevision: Schema.Int;
14083
+ readonly generation: Schema.Int;
14084
+ readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
14085
+ readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
14086
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
14087
+ }>;
14088
+ readonly threadNumber: Schema.Int;
14089
+ }>>;
14090
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
14091
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
14092
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
14093
+ after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
14094
+ limit: Schema.optionalKey<Schema.Int>;
14095
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
14096
+ readonly repos: Schema.$Array<Schema.Struct<{
14097
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
14098
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
14099
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
14100
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
14101
+ readonly kind: Schema.Literal<"project">;
14102
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
14103
+ }>, Schema.Struct<{
14104
+ readonly kind: Schema.Literal<"owner">;
14105
+ }>]>;
14106
+ readonly name: Schema.brand<Schema.String, "RepoName">;
14107
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
14108
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
14109
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
14110
+ }>>;
14111
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
14112
+ }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
14113
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
14114
+ repo: Schema.brand<Schema.String, "RepoName">;
14115
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
14116
+ key: Schema.String;
14117
+ }>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
13647
14118
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13648
14119
  repo: Schema.brand<Schema.String, "RepoName">;
13649
14120
  commit: Schema.brand<Schema.String, "CommitOid">;
@@ -16401,7 +16872,11 @@ declare const DecisionsGroup_base: HttpApiGroup.HttpApiGroup<"decisions", HttpAp
16401
16872
  }>>;
16402
16873
  readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
16403
16874
  readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
16404
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof PlanTextRefused | typeof DecisionNotFound | typeof AnswerRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/projects/:owner/:project/decisions/:decision", Schema.toCodecStringTree<Schema.Struct<{
16875
+ readonly names: Schema.Struct<{
16876
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
16877
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
16878
+ }>;
16879
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof PlanTextRefused | typeof DecisionNotFound | typeof AnswerRefused | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/projects/:owner/:project/decisions/:decision", Schema.toCodecStringTree<Schema.Struct<{
16405
16880
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
16406
16881
  project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
16407
16882
  } & {
@@ -16517,6 +16992,10 @@ declare const DecisionsGroup_base: HttpApiGroup.HttpApiGroup<"decisions", HttpAp
16517
16992
  }>>;
16518
16993
  readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
16519
16994
  readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
16995
+ readonly names: Schema.Struct<{
16996
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
16997
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
16998
+ }>;
16520
16999
  }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady | typeof DecisionNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/projects/:owner/:project/decisions/", Schema.toCodecStringTree<Schema.Struct<{
16521
17000
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
16522
17001
  project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
@@ -16630,6 +17109,11 @@ declare const DecisionsGroup_base: HttpApiGroup.HttpApiGroup<"decisions", HttpAp
16630
17109
  }>>;
16631
17110
  readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
16632
17111
  readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
17112
+ readonly names: Schema.Struct<{
17113
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17114
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
17115
+ }>;
17116
+ readonly waitsOn: Schema.Literals<readonly ["you", "your person"]>;
16633
17117
  }>>;
16634
17118
  }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady>, Authorization, never>, false>;
16635
17119
  declare class DecisionsGroup extends DecisionsGroup_base {}
@@ -16751,7 +17235,11 @@ declare const OrgDecisionsGroup_base: HttpApiGroup.HttpApiGroup<"orgDecisions",
16751
17235
  }>>;
16752
17236
  readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
16753
17237
  readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
16754
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof PlanTextRefused | typeof DecisionNotFound | typeof AnswerRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/decisions/:decision", Schema.toCodecStringTree<Schema.Struct<{
17238
+ readonly names: Schema.Struct<{
17239
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17240
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
17241
+ }>;
17242
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof PlanTextRefused | typeof DecisionNotFound | typeof AnswerRefused | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/decisions/:decision", Schema.toCodecStringTree<Schema.Struct<{
16755
17243
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
16756
17244
  } & {
16757
17245
  decision: Schema.brand<Schema.TemplateLiteral<readonly ["decision_", Schema.String]>, "DecisionId">;
@@ -16866,6 +17354,10 @@ declare const OrgDecisionsGroup_base: HttpApiGroup.HttpApiGroup<"orgDecisions",
16866
17354
  }>>;
16867
17355
  readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
16868
17356
  readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
17357
+ readonly names: Schema.Struct<{
17358
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17359
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
17360
+ }>;
16869
17361
  }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady | typeof DecisionNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/owners/:owner/decisions/", Schema.toCodecStringTree<Schema.Struct<{
16870
17362
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
16871
17363
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -16978,6 +17470,11 @@ declare const OrgDecisionsGroup_base: HttpApiGroup.HttpApiGroup<"orgDecisions",
16978
17470
  }>>;
16979
17471
  readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
16980
17472
  readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
17473
+ readonly names: Schema.Struct<{
17474
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17475
+ readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
17476
+ }>;
17477
+ readonly waitsOn: Schema.Literals<readonly ["you", "your person"]>;
16981
17478
  }>>;
16982
17479
  }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady>, Authorization, never>, false>;
16983
17480
  /** The decisions in an organization's own scope, on its org threads, as a project's. */
@@ -17198,7 +17695,31 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
17198
17695
  readonly thread: Schema.optionalKey<Schema.Int>;
17199
17696
  readonly suspended: Schema.optionalKey<Schema.Literal<true>>;
17200
17697
  }>>;
17201
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
17698
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
17699
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17700
+ repo: Schema.brand<Schema.String, "RepoName">;
17701
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
17702
+ readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
17703
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17704
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17705
+ }>>, Schema.toCodecJson<Schema.Struct<{
17706
+ readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17707
+ readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17708
+ readonly coversUnread: Schema.Boolean;
17709
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
17710
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17711
+ repo: Schema.brand<Schema.String, "RepoName">;
17712
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
17713
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17714
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17715
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17716
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17717
+ }>>, Schema.toCodecJson<Schema.Struct<{
17718
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17719
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17720
+ readonly changed: Schema.Boolean;
17721
+ readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17722
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
17202
17723
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17203
17724
  repo: Schema.brand<Schema.String, "RepoName">;
17204
17725
  workflow: Schema.brand<Schema.String, "WorkflowName">;
@@ -17270,31 +17791,7 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
17270
17791
  readonly title: Schema.optionalKey<Schema.String>;
17271
17792
  }>>;
17272
17793
  readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
17273
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
17274
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17275
- repo: Schema.brand<Schema.String, "RepoName">;
17276
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17277
- readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
17278
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17279
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17280
- }>>, Schema.toCodecJson<Schema.Struct<{
17281
- readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17282
- readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17283
- readonly coversUnread: Schema.Boolean;
17284
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
17285
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17286
- repo: Schema.brand<Schema.String, "RepoName">;
17287
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17288
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17289
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17290
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17291
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17292
- }>>, Schema.toCodecJson<Schema.Struct<{
17293
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17294
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17295
- readonly changed: Schema.Boolean;
17296
- readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17297
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never>, false>;
17794
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
17298
17795
  /**
17299
17796
  * A repo's workflows and their workflow runs, for whoever may read the repo. Turning workflows
17300
17797
  * off is a person's approved command, which reaches `/v1` with approvals; an agent asks its
@@ -17385,97 +17882,40 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
17385
17882
  }>>;
17386
17883
  }>>;
17387
17884
  }>;
17388
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
17389
- start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17390
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17391
- repo: Schema.brand<Schema.String, "RepoName">;
17392
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17393
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17394
- }>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
17395
- readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17396
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17397
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17398
- readonly rerun: Schema.Int;
17399
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17400
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17401
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17402
- readonly readsMoved: Schema.optionalKey<Schema.String>;
17403
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17404
- readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
17405
- }>, Schema.Struct<{
17406
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17407
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17408
- readonly rerun: Schema.Int;
17409
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17410
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17411
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17412
- readonly readsMoved: Schema.optionalKey<Schema.String>;
17413
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17414
- readonly state: Schema.Literal<"ended">;
17415
- readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
17416
- readonly reused: Schema.optionalKey<Schema.Literal<true>>;
17417
- }>, Schema.Struct<{
17418
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17419
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17420
- readonly rerun: Schema.Int;
17421
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17422
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17423
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17424
- readonly readsMoved: Schema.optionalKey<Schema.String>;
17425
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17426
- readonly state: Schema.Literal<"ended">;
17427
- readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
17428
- }>]>>;
17429
- }>, Schema.Struct<{
17430
- readonly waiting: Schema.Struct<{
17431
- readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17432
- readonly check: Schema.brand<Schema.String, "CheckName">;
17433
- readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17434
- readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
17435
- readonly waitingSince: Schema.DateTimeUtcFromString;
17436
- readonly endsAt: Schema.DateTimeUtcFromString;
17437
- readonly runs: Schema.$Array<Schema.Struct<{
17438
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17439
- readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
17440
- readonly title: Schema.optionalKey<Schema.String>;
17441
- readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
17442
- readonly leaves: Schema.$Array<Schema.Struct<{
17443
- readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
17444
- readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
17445
- readonly since: Schema.DateTimeUtcFromString;
17446
- readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17447
- readonly kind: Schema.Literal<"person">;
17448
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17449
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
17450
- }>, Schema.Struct<{
17451
- readonly kind: Schema.Literal<"agent">;
17452
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
17453
- }>, Schema.Struct<{
17454
- readonly kind: Schema.Literal<"holders">;
17455
- readonly permission: Schema.String;
17456
- }>]>>;
17457
- readonly what: Schema.optionalKey<Schema.String>;
17458
- readonly answer: Schema.optionalKey<Schema.String>;
17459
- }>>;
17460
- }>>;
17461
- }>;
17462
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
17463
- start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17464
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17465
- repo: Schema.brand<Schema.String, "RepoName">;
17466
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17467
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17468
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17469
- readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
17470
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
17885
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
17471
17886
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17472
17887
  repo: Schema.brand<Schema.String, "RepoName">;
17473
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17474
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17475
- readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
17476
- readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17477
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17478
- readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17888
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
17889
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17890
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17891
+ readonly check: Schema.brand<Schema.String, "CheckName">;
17892
+ readonly code: Schema.Struct<{
17893
+ readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
17894
+ readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
17895
+ }>;
17896
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17897
+ readonly tree: Schema.brand<Schema.String, "TreeOid">;
17898
+ readonly result: Schema.Union<readonly [Schema.Struct<{
17899
+ readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
17900
+ readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17901
+ readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17902
+ readonly kind: Schema.Literal<"review">;
17903
+ }>, Schema.Struct<{
17904
+ readonly kind: Schema.Literal<"accountable">;
17905
+ }>, Schema.Struct<{
17906
+ readonly kind: Schema.Literal<"admin">;
17907
+ }>, Schema.Struct<{
17908
+ readonly kind: Schema.Literal<"permission">;
17909
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
17910
+ }>]>>>;
17911
+ }>, Schema.Struct<{
17912
+ readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
17913
+ readonly why: Schema.optionalKey<Schema.String>;
17914
+ }>]>;
17915
+ readonly outputsHash: Schema.String;
17916
+ readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
17917
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
17918
+ readonly run: Schema.Union<readonly [Schema.Struct<{
17479
17919
  readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17480
17920
  readonly check: Schema.brand<Schema.String, "CheckName">;
17481
17921
  readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -17705,81 +18145,31 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
17705
18145
  }>>;
17706
18146
  readonly state: Schema.Literal<"ended">;
17707
18147
  readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
17708
- }>]>>;
17709
- readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17710
- }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
18148
+ }>]>;
18149
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
17711
18150
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17712
18151
  repo: Schema.brand<Schema.String, "RepoName">;
17713
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17714
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18152
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
17715
18153
  readonly check: Schema.brand<Schema.String, "CheckKey">;
17716
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17717
- readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
17718
- readonly version: Schema.brand<Schema.Int, "VersionNumber">;
17719
- readonly tree: Schema.brand<Schema.String, "TreeOid">;
17720
- readonly check: Schema.brand<Schema.String, "CheckName">;
17721
- readonly code: Schema.Struct<{
17722
- readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
17723
- readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
17724
- }>;
17725
- readonly timeoutSeconds: Schema.Int;
17726
- readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17727
- readonly compiled: Schema.Struct<{
17728
- readonly entry: Schema.Struct<{
17729
- readonly name: Schema.String;
17730
- readonly module: Schema.String;
17731
- readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17732
- readonly files: Schema.$Array<Schema.String>;
17733
- readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
17734
- readonly sourceMap: Schema.optionalKey<Schema.String>;
17735
- readonly reaches: Schema.optionalKey<Schema.Struct<{
17736
- readonly tree: Schema.Boolean;
17737
- readonly browser: Schema.Boolean;
17738
- }>>;
17739
- readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
17740
- readonly name: Schema.String;
17741
- readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17742
- readonly pin: Schema.String;
17743
- readonly format: Schema.Int;
17744
- }>>>;
17745
- readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
17746
- }>;
17747
- readonly modules: Schema.$Record<Schema.String, Schema.String>;
17748
- }>;
17749
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
18154
+ readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18155
+ }>, Schema.Struct<{
18156
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18157
+ readonly person: Schema.brand<Schema.String, "OwnerName">;
18158
+ }>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18159
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18160
+ readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18161
+ }>, Schema.Struct<{
18162
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18163
+ readonly person: Schema.brand<Schema.String, "OwnerName">;
18164
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
17750
18165
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17751
18166
  repo: Schema.brand<Schema.String, "RepoName">;
17752
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17753
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17754
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17755
- readonly check: Schema.brand<Schema.String, "CheckName">;
17756
- readonly code: Schema.Struct<{
17757
- readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
17758
- readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
17759
- }>;
17760
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17761
- readonly tree: Schema.brand<Schema.String, "TreeOid">;
17762
- readonly result: Schema.Union<readonly [Schema.Struct<{
17763
- readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
17764
- readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17765
- readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17766
- readonly kind: Schema.Literal<"review">;
17767
- }>, Schema.Struct<{
17768
- readonly kind: Schema.Literal<"accountable">;
17769
- }>, Schema.Struct<{
17770
- readonly kind: Schema.Literal<"admin">;
17771
- }>, Schema.Struct<{
17772
- readonly kind: Schema.Literal<"permission">;
17773
- readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
17774
- }>]>>>;
17775
- }>, Schema.Struct<{
17776
- readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
17777
- readonly why: Schema.optionalKey<Schema.String>;
17778
- }>]>;
17779
- readonly outputsHash: Schema.String;
17780
- readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
17781
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17782
- readonly run: Schema.Union<readonly [Schema.Struct<{
18167
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18168
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
18169
+ readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
18170
+ readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18171
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18172
+ readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17783
18173
  readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17784
18174
  readonly check: Schema.brand<Schema.String, "CheckName">;
17785
18175
  readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -18009,23 +18399,130 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
18009
18399
  }>>;
18010
18400
  readonly state: Schema.Literal<"ended">;
18011
18401
  readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
18012
- }>]>;
18013
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
18402
+ }>]>>;
18403
+ readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18404
+ }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
18405
+ start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18014
18406
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18015
18407
  repo: Schema.brand<Schema.String, "RepoName">;
18016
- }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18017
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18018
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18019
- }>, Schema.Struct<{
18020
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18021
- readonly person: Schema.brand<Schema.String, "OwnerName">;
18022
- }>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18023
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18024
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18408
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18409
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
18410
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18411
+ readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
18412
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
18413
+ start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18414
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18415
+ repo: Schema.brand<Schema.String, "RepoName">;
18416
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18417
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
18418
+ }>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18419
+ readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
18420
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18421
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18422
+ readonly rerun: Schema.Int;
18423
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18424
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
18425
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18426
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
18427
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
18428
+ readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
18429
+ }>, Schema.Struct<{
18430
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18431
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18432
+ readonly rerun: Schema.Int;
18433
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18434
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
18435
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18436
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
18437
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
18438
+ readonly state: Schema.Literal<"ended">;
18439
+ readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
18440
+ readonly reused: Schema.optionalKey<Schema.Literal<true>>;
18441
+ }>, Schema.Struct<{
18442
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18443
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18444
+ readonly rerun: Schema.Int;
18445
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18446
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
18447
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18448
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
18449
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
18450
+ readonly state: Schema.Literal<"ended">;
18451
+ readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
18452
+ }>]>>;
18025
18453
  }>, Schema.Struct<{
18454
+ readonly waiting: Schema.Struct<{
18455
+ readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18456
+ readonly check: Schema.brand<Schema.String, "CheckName">;
18457
+ readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18458
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
18459
+ readonly waitingSince: Schema.DateTimeUtcFromString;
18460
+ readonly endsAt: Schema.DateTimeUtcFromString;
18461
+ readonly runs: Schema.$Array<Schema.Struct<{
18462
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
18463
+ readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
18464
+ readonly title: Schema.optionalKey<Schema.String>;
18465
+ readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
18466
+ readonly leaves: Schema.$Array<Schema.Struct<{
18467
+ readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
18468
+ readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
18469
+ readonly since: Schema.DateTimeUtcFromString;
18470
+ readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
18471
+ readonly kind: Schema.Literal<"person">;
18472
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18473
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18474
+ }>, Schema.Struct<{
18475
+ readonly kind: Schema.Literal<"agent">;
18476
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18477
+ }>, Schema.Struct<{
18478
+ readonly kind: Schema.Literal<"holders">;
18479
+ readonly permission: Schema.String;
18480
+ }>]>>;
18481
+ readonly what: Schema.optionalKey<Schema.String>;
18482
+ readonly answer: Schema.optionalKey<Schema.String>;
18483
+ }>>;
18484
+ }>>;
18485
+ }>;
18486
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
18487
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18488
+ repo: Schema.brand<Schema.String, "RepoName">;
18489
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18490
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18026
18491
  readonly check: Schema.brand<Schema.String, "CheckKey">;
18027
- readonly person: Schema.brand<Schema.String, "OwnerName">;
18028
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
18492
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18493
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
18494
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
18495
+ readonly tree: Schema.brand<Schema.String, "TreeOid">;
18496
+ readonly check: Schema.brand<Schema.String, "CheckName">;
18497
+ readonly code: Schema.Struct<{
18498
+ readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
18499
+ readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
18500
+ }>;
18501
+ readonly timeoutSeconds: Schema.Int;
18502
+ readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18503
+ readonly compiled: Schema.Struct<{
18504
+ readonly entry: Schema.Struct<{
18505
+ readonly name: Schema.String;
18506
+ readonly module: Schema.String;
18507
+ readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18508
+ readonly files: Schema.$Array<Schema.String>;
18509
+ readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
18510
+ readonly sourceMap: Schema.optionalKey<Schema.String>;
18511
+ readonly reaches: Schema.optionalKey<Schema.Struct<{
18512
+ readonly tree: Schema.Boolean;
18513
+ readonly browser: Schema.Boolean;
18514
+ }>>;
18515
+ readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18516
+ readonly name: Schema.String;
18517
+ readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18518
+ readonly pin: Schema.String;
18519
+ readonly format: Schema.Int;
18520
+ }>>>;
18521
+ readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
18522
+ }>;
18523
+ readonly modules: Schema.$Record<Schema.String, Schema.String>;
18524
+ }>;
18525
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
18029
18526
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18030
18527
  repo: Schema.brand<Schema.String, "RepoName">;
18031
18528
  run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
@@ -18162,24 +18659,8 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
18162
18659
  * run's of the repo's project, a page at a time, for whoever sees the scope it was first started
18163
18660
  * in.
18164
18661
  */
18165
- declare class RunsGroup extends RunsGroup_base {}
18166
- declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
18167
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18168
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18169
- readonly client: Schema.String;
18170
- readonly agent: Schema.brand<Schema.String, "AgentHandle">;
18171
- readonly create: Schema.optionalKey<Schema.Boolean>;
18172
- readonly access: Schema.Literals<readonly ["read", "act"]>;
18173
- readonly projects: Schema.NonEmptyArray<Schema.Struct<{
18174
- readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18175
- readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
18176
- }>>;
18177
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18178
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18179
- }>>, Schema.toCodecJson<Schema.Struct<{
18180
- readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18181
- readonly client: Schema.String;
18182
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
18662
+ declare class RunsGroup extends RunsGroup_base {}
18663
+ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
18183
18664
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18184
18665
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18185
18666
  readonly request: Schema.String;
@@ -18195,7 +18676,23 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
18195
18676
  readonly request: Schema.String;
18196
18677
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18197
18678
  readonly redirect: Schema.String;
18198
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"finish", "POST", "/v1/owners/:owner/client-grants/:grant/finish", Schema.toCodecStringTree<Schema.Struct<{
18679
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
18680
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18681
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18682
+ readonly client: Schema.String;
18683
+ readonly agent: Schema.brand<Schema.String, "AgentHandle">;
18684
+ readonly create: Schema.optionalKey<Schema.Boolean>;
18685
+ readonly access: Schema.Literals<readonly ["read", "act"]>;
18686
+ readonly projects: Schema.NonEmptyArray<Schema.Struct<{
18687
+ readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18688
+ readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
18689
+ }>>;
18690
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18691
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18692
+ }>>, Schema.toCodecJson<Schema.Struct<{
18693
+ readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18694
+ readonly client: Schema.String;
18695
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"finish", "POST", "/v1/owners/:owner/client-grants/:grant/finish", Schema.toCodecStringTree<Schema.Struct<{
18199
18696
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18200
18697
  grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18201
18698
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -18211,69 +18708,7 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
18211
18708
  * consented, hands the client its code.
18212
18709
  */
18213
18710
  declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
18214
- declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18215
- cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18216
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18217
- readonly organizations: Schema.$Array<Schema.Struct<{
18218
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18219
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18220
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18221
- }>>;
18222
- readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18223
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
18224
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18225
- readonly displayName: Schema.optionalKey<Schema.String>;
18226
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18227
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18228
- }>>, Schema.toCodecJson<Schema.Struct<{
18229
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18230
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18231
- readonly displayName: Schema.String;
18232
- readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
18233
- }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
18234
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18235
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18236
- from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18237
- to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18238
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18239
- readonly from: Schema.brand<Schema.String, "UtcDay">;
18240
- readonly to: Schema.brand<Schema.String, "UtcDay">;
18241
- readonly days: Schema.$Array<Schema.Struct<{
18242
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18243
- readonly lines: Schema.$Array<Schema.Struct<{
18244
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18245
- readonly quantity: Schema.Finite;
18246
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18247
- }>>;
18248
- }>>;
18249
- readonly work: Schema.$Array<Schema.Struct<{
18250
- readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18251
- readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18252
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18253
- readonly lines: Schema.$Array<Schema.Struct<{
18254
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18255
- readonly quantity: Schema.Finite;
18256
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18257
- }>>;
18258
- }>>;
18259
- readonly kept: Schema.optionalKey<Schema.Struct<{
18260
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18261
- readonly counts: Schema.$Array<Schema.Struct<{
18262
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18263
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18264
- readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18265
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18266
- readonly bytes: Schema.Int;
18267
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18268
- }>>;
18269
- readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18270
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18271
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18272
- readonly counts: Schema.Int;
18273
- readonly bytes: Schema.Int;
18274
- }>>>;
18275
- }>>;
18276
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18711
+ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18277
18712
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18278
18713
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18279
18714
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
@@ -18289,7 +18724,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18289
18724
  }>;
18290
18725
  }>]>;
18291
18726
  readonly why: Schema.Literals<readonly ["removed", "left"]>;
18292
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
18727
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
18728
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18729
+ readonly displayName: Schema.optionalKey<Schema.String>;
18730
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18731
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18732
+ }>>, Schema.toCodecJson<Schema.Struct<{
18733
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18734
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18735
+ readonly displayName: Schema.String;
18736
+ readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
18737
+ }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18738
+ cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18739
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18740
+ readonly organizations: Schema.$Array<Schema.Struct<{
18741
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18742
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18743
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18744
+ }>>;
18745
+ readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18746
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
18293
18747
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18294
18748
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18295
18749
  from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
@@ -18464,39 +18918,59 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18464
18918
  }>>;
18465
18919
  }>;
18466
18920
  readonly pricesAsOf: Schema.String;
18467
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
18921
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
18922
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18923
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18924
+ from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18925
+ to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18926
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18927
+ readonly from: Schema.brand<Schema.String, "UtcDay">;
18928
+ readonly to: Schema.brand<Schema.String, "UtcDay">;
18929
+ readonly days: Schema.$Array<Schema.Struct<{
18930
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18931
+ readonly lines: Schema.$Array<Schema.Struct<{
18932
+ readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18933
+ readonly quantity: Schema.Finite;
18934
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18935
+ }>>;
18936
+ }>>;
18937
+ readonly work: Schema.$Array<Schema.Struct<{
18938
+ readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18939
+ readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18940
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18941
+ readonly lines: Schema.$Array<Schema.Struct<{
18942
+ readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18943
+ readonly quantity: Schema.Finite;
18944
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18945
+ }>>;
18946
+ }>>;
18947
+ readonly kept: Schema.optionalKey<Schema.Struct<{
18948
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18949
+ readonly counts: Schema.$Array<Schema.Struct<{
18950
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18951
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18952
+ readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18953
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18954
+ readonly bytes: Schema.Int;
18955
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18956
+ }>>;
18957
+ readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18958
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18959
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18960
+ readonly counts: Schema.Int;
18961
+ readonly bytes: Schema.Int;
18962
+ }>>>;
18963
+ }>>;
18964
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
18468
18965
  /**
18469
18966
  * Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
18470
18967
  * usage. Every change is a person's, by approval; agents never change members.
18471
18968
  */
18472
18969
  declare class OrganizationsGroup extends OrganizationsGroup_base {}
18473
- declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
18474
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18475
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18476
- cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
18477
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18478
- readonly members: Schema.$Array<Schema.Struct<{
18479
- readonly member: Schema.Union<readonly [Schema.Struct<{
18480
- readonly kind: Schema.Literal<"person">;
18481
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18482
- }>, Schema.Struct<{
18483
- readonly kind: Schema.Literal<"agent">;
18484
- readonly agent: Schema.Struct<{
18485
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18486
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18487
- }>;
18488
- }>]>;
18489
- readonly name: Schema.String;
18490
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18491
- readonly addedAt: Schema.DateTimeUtcFromMillis;
18492
- }>>;
18493
- readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
18494
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setRole", "PATCH", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
18970
+ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
18495
18971
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18496
18972
  member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18497
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18498
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18499
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18973
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18500
18974
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18501
18975
  }>>, Schema.toCodecJson<Schema.Struct<{
18502
18976
  readonly member: Schema.Union<readonly [Schema.Struct<{
@@ -18509,11 +18983,13 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
18509
18983
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18510
18984
  }>;
18511
18985
  }>]>;
18512
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18513
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
18986
+ readonly why: Schema.Literals<readonly ["removed", "left"]>;
18987
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setRole", "PATCH", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
18514
18988
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18515
18989
  member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18516
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18990
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18991
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18992
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18517
18993
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18518
18994
  }>>, Schema.toCodecJson<Schema.Struct<{
18519
18995
  readonly member: Schema.Union<readonly [Schema.Struct<{
@@ -18526,65 +19002,41 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
18526
19002
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18527
19003
  }>;
18528
19004
  }>]>;
18529
- readonly why: Schema.Literals<readonly ["removed", "left"]>;
18530
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
18531
- /** An organization's members: any member lists them; an admin changes a role or removes one. */
18532
- declare class MembersGroup extends MembersGroup_base {}
18533
- declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
18534
- cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18535
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18536
- readonly invitations: Schema.$Array<Schema.Struct<{
18537
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18538
- readonly organization: Schema.Struct<{
18539
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18540
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18541
- }>;
18542
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18543
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
18544
- }>>;
18545
- readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18546
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
19005
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
19006
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
18547
19007
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18548
19008
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18549
- cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19009
+ cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
18550
19010
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18551
- readonly invitations: Schema.$Array<Schema.Struct<{
18552
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18553
- readonly invitee: Schema.Struct<{
18554
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18555
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18556
- }>;
19011
+ readonly members: Schema.$Array<Schema.Struct<{
19012
+ readonly member: Schema.Union<readonly [Schema.Struct<{
19013
+ readonly kind: Schema.Literal<"person">;
19014
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19015
+ }>, Schema.Struct<{
19016
+ readonly kind: Schema.Literal<"agent">;
19017
+ readonly agent: Schema.Struct<{
19018
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19019
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19020
+ }>;
19021
+ }>]>;
19022
+ readonly name: Schema.String;
18557
19023
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18558
- readonly sentBy: Schema.Struct<{
18559
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18560
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18561
- }>;
18562
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
19024
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
18563
19025
  }>>;
18564
- readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18565
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18566
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18567
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18568
- readonly invitee: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18569
- readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
18570
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18571
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18572
- }>>, Schema.toCodecJson<Schema.Struct<{
18573
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18574
- readonly invitee: Schema.Struct<{
18575
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18576
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18577
- }>;
18578
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18579
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
18580
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
18581
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19026
+ readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
19027
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
19028
+ /** An organization's members: any member lists them; an admin changes a role or removes one. */
19029
+ declare class MembersGroup extends MembersGroup_base {}
19030
+ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
18582
19031
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18583
19032
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18584
19033
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18585
19034
  }>>, Schema.toCodecJson<Schema.Struct<{
18586
19035
  readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18587
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
19036
+ readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
19037
+ readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
19038
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
19039
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
18588
19040
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18589
19041
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18590
19042
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
@@ -18593,71 +19045,67 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
18593
19045
  readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18594
19046
  readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
18595
19047
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18596
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
19048
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
19049
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18597
19050
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18598
19051
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18599
19052
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18600
19053
  }>>, Schema.toCodecJson<Schema.Struct<{
18601
19054
  readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18602
- readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18603
- readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
19055
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
19056
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19057
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
19058
+ readonly invitee: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19059
+ readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
19060
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19061
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19062
+ }>>, Schema.toCodecJson<Schema.Struct<{
19063
+ readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19064
+ readonly invitee: Schema.Struct<{
19065
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19066
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19067
+ }>;
18604
19068
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18605
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never>, false>;
19069
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
19070
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
19071
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19072
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19073
+ cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19074
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19075
+ readonly invitations: Schema.$Array<Schema.Struct<{
19076
+ readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19077
+ readonly invitee: Schema.Struct<{
19078
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19079
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19080
+ }>;
19081
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
19082
+ readonly sentBy: Schema.Struct<{
19083
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19084
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19085
+ }>;
19086
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
19087
+ }>>;
19088
+ readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19089
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
19090
+ cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19091
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19092
+ readonly invitations: Schema.$Array<Schema.Struct<{
19093
+ readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19094
+ readonly organization: Schema.Struct<{
19095
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
19096
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19097
+ }>;
19098
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
19099
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
19100
+ }>>;
19101
+ readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19102
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
18606
19103
  /**
18607
19104
  * Invitations: an organization's admins send, list and withdraw them; the person invited lists
18608
19105
  * theirs and accepts or declines one, which is found from their own list, never the client.
18609
19106
  */
18610
19107
  declare class InvitationsGroup extends InvitationsGroup_base {}
18611
- declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18612
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18613
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18614
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18615
- limit: Schema.optionalKey<Schema.Int>;
18616
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18617
- readonly grants: Schema.$Array<Schema.Struct<{
18618
- readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
18619
- readonly subject: Schema.Union<readonly [Schema.Struct<{
18620
- readonly kind: Schema.Literal<"owner">;
18621
- }>, Schema.Struct<{
18622
- readonly kind: Schema.Literal<"project">;
18623
- readonly project: Schema.brand<Schema.String, "ProjectName">;
18624
- }>, Schema.Struct<{
18625
- readonly kind: Schema.Literal<"thread">;
18626
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18627
- }>, Schema.Struct<{
18628
- readonly kind: Schema.Literal<"agent">;
18629
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18630
- }>]>;
18631
- readonly principal: Schema.Union<readonly [Schema.Struct<{
18632
- readonly kind: Schema.Literal<"person">;
18633
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18634
- }>, Schema.Struct<{
18635
- readonly kind: Schema.Literal<"agent">;
18636
- readonly owner: Schema.brand<Schema.String, "OwnerName">;
18637
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18638
- }>, Schema.Struct<{
18639
- readonly kind: Schema.Literal<"agent">;
18640
- readonly agent: Schema.Struct<{
18641
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18642
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18643
- }>;
18644
- }>]>;
18645
- readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18646
- readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
18647
- readonly kind: Schema.Literal<"person">;
18648
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18649
- }>, Schema.Struct<{
18650
- readonly kind: Schema.Literal<"agent">;
18651
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18652
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18653
- }>, Schema.Struct<{
18654
- readonly kind: Schema.Literal<"ref0">;
18655
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18656
- }>]>;
18657
- readonly grantedAt: Schema.DateTimeUtcFromMillis;
18658
- }>>;
18659
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18660
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
19108
+ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18661
19109
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18662
19110
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18663
19111
  readonly subject: Schema.Union<readonly [Schema.Struct<{
@@ -18769,7 +19217,56 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
18769
19217
  }>;
18770
19218
  }>]>;
18771
19219
  readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18772
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never>, false>;
19220
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
19221
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19222
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19223
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
19224
+ limit: Schema.optionalKey<Schema.Int>;
19225
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19226
+ readonly grants: Schema.$Array<Schema.Struct<{
19227
+ readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
19228
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
19229
+ readonly kind: Schema.Literal<"owner">;
19230
+ }>, Schema.Struct<{
19231
+ readonly kind: Schema.Literal<"project">;
19232
+ readonly project: Schema.brand<Schema.String, "ProjectName">;
19233
+ }>, Schema.Struct<{
19234
+ readonly kind: Schema.Literal<"thread">;
19235
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
19236
+ }>, Schema.Struct<{
19237
+ readonly kind: Schema.Literal<"agent">;
19238
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19239
+ }>]>;
19240
+ readonly principal: Schema.Union<readonly [Schema.Struct<{
19241
+ readonly kind: Schema.Literal<"person">;
19242
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19243
+ }>, Schema.Struct<{
19244
+ readonly kind: Schema.Literal<"agent">;
19245
+ readonly owner: Schema.brand<Schema.String, "OwnerName">;
19246
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19247
+ }>, Schema.Struct<{
19248
+ readonly kind: Schema.Literal<"agent">;
19249
+ readonly agent: Schema.Struct<{
19250
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19251
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19252
+ }>;
19253
+ }>]>;
19254
+ readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
19255
+ readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
19256
+ readonly kind: Schema.Literal<"person">;
19257
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19258
+ }>, Schema.Struct<{
19259
+ readonly kind: Schema.Literal<"agent">;
19260
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19261
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19262
+ }>, Schema.Struct<{
19263
+ readonly kind: Schema.Literal<"ref0">;
19264
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
19265
+ }>]>;
19266
+ readonly grantedAt: Schema.DateTimeUtcFromMillis;
19267
+ }>>;
19268
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
19269
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
18773
19270
  /**
18774
19271
  * An organization's grants (layer 1): any person lists those they may see; an admin gives one or
18775
19272
  * takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
@@ -18777,13 +19274,10 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
18777
19274
  * `OrganizationNotFound`.
18778
19275
  */
18779
19276
  declare class GrantsGroup extends GrantsGroup_base {}
18780
- declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
19277
+ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
18781
19278
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18782
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18783
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18784
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18785
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18786
- }>>, Schema.toCodecJson<Schema.Struct<{
19279
+ agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
19280
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
18787
19281
  readonly agent: Schema.Struct<{
18788
19282
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18789
19283
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -18791,7 +19285,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18791
19285
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18792
19286
  readonly generation: Schema.Int;
18793
19287
  readonly turnedOff: Schema.Boolean;
18794
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
19288
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
19289
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
18795
19290
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18796
19291
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18797
19292
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
@@ -18817,10 +19312,13 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18817
19312
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18818
19313
  readonly generation: Schema.Int;
18819
19314
  readonly turnedOff: Schema.Boolean;
18820
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
19315
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18821
19316
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18822
- agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18823
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
19317
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
19318
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19319
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19320
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19321
+ }>>, Schema.toCodecJson<Schema.Struct<{
18824
19322
  readonly agent: Schema.Struct<{
18825
19323
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18826
19324
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -18828,8 +19326,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18828
19326
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18829
19327
  readonly generation: Schema.Int;
18830
19328
  readonly turnedOff: Schema.Boolean;
18831
- readonly addedAt: Schema.DateTimeUtcFromMillis;
18832
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
19329
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18833
19330
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18834
19331
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18835
19332
  after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
@@ -18854,15 +19351,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18854
19351
  * its machines' host grants by the agent's ID.
18855
19352
  */
18856
19353
  declare class AgentsGroup extends AgentsGroup_base {}
18857
- declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
19354
+ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
18858
19355
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18859
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18860
- readonly agent: Schema.Struct<{
18861
- readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18862
- readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18863
- }>;
18864
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18865
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19356
+ attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
19357
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18866
19358
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18867
19359
  }>>, Schema.toCodecJson<Schema.Struct<{
18868
19360
  readonly agent: Schema.Struct<{
@@ -18875,10 +19367,15 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
18875
19367
  }>;
18876
19368
  readonly generation: Schema.Int;
18877
19369
  readonly authorized: Schema.Boolean;
18878
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
19370
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
18879
19371
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18880
- attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18881
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
19372
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
19373
+ readonly agent: Schema.Struct<{
19374
+ readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19375
+ readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
19376
+ }>;
19377
+ readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
19378
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18882
19379
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18883
19380
  }>>, Schema.toCodecJson<Schema.Struct<{
18884
19381
  readonly agent: Schema.Struct<{
@@ -18891,7 +19388,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
18891
19388
  }>;
18892
19389
  readonly generation: Schema.Int;
18893
19390
  readonly authorized: Schema.Boolean;
18894
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never>, false>;
19391
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
18895
19392
  /**
18896
19393
  * A member's own agent working in an organization (layer 1): its person authorizes an attachment
18897
19394
  * of it there, by its credential's ID, or takes that back. The Worker checks the attachment is
@@ -18899,34 +19396,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
18899
19396
  * decides. People only, by approval.
18900
19397
  */
18901
19398
  declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
18902
- declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18903
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18904
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18905
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18906
- limit: Schema.optionalKey<Schema.Int>;
18907
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18908
- readonly disables: Schema.$Array<Schema.Struct<{
18909
- readonly agent: Schema.Struct<{
18910
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18911
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18912
- }>;
18913
- readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18914
- readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
18915
- readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
18916
- readonly kind: Schema.Literal<"person">;
18917
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18918
- }>, Schema.Struct<{
18919
- readonly kind: Schema.Literal<"agent">;
18920
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18921
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18922
- }>, Schema.Struct<{
18923
- readonly kind: Schema.Literal<"ref0">;
18924
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18925
- }>]>;
18926
- readonly disabledAt: Schema.DateTimeUtcFromMillis;
18927
- }>>;
18928
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18929
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
19399
+ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18930
19400
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18931
19401
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18932
19402
  readonly agent: Schema.Struct<{
@@ -18958,7 +19428,34 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
18958
19428
  }>;
18959
19429
  readonly targetGeneration: Schema.Int;
18960
19430
  readonly turnedOff: Schema.Boolean;
18961
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
19431
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
19432
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19433
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19434
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19435
+ limit: Schema.optionalKey<Schema.Int>;
19436
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19437
+ readonly disables: Schema.$Array<Schema.Struct<{
19438
+ readonly agent: Schema.Struct<{
19439
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19440
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19441
+ }>;
19442
+ readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
19443
+ readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
19444
+ readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
19445
+ readonly kind: Schema.Literal<"person">;
19446
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19447
+ }>, Schema.Struct<{
19448
+ readonly kind: Schema.Literal<"agent">;
19449
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19450
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19451
+ }>, Schema.Struct<{
19452
+ readonly kind: Schema.Literal<"ref0">;
19453
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
19454
+ }>]>;
19455
+ readonly disabledAt: Schema.DateTimeUtcFromMillis;
19456
+ }>>;
19457
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19458
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
18962
19459
  /**
18963
19460
  * Agents of other owners an organization's admin turns off there (layer 1), such as a member's
18964
19461
  * own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
@@ -19526,6 +20023,9 @@ declare const CheckStartAnswer: Schema.Union<readonly [Schema.Struct<{
19526
20023
  readonly why: Schema.String;
19527
20024
  }>]>;
19528
20025
  type CheckStartAnswer = typeof CheckStartAnswer.Type;
20026
+ /** An answer's key: `yes`, `no`, or an ask's own, such as `close`. */
20027
+ declare const AnswerKey: Schema.brand<Schema.String, "AnswerKey">;
20028
+ type AnswerKey = typeof AnswerKey.Type;
19529
20029
  //#endregion
19530
20030
  //#region src/workflows.d.ts
19531
20031
  /**
@@ -21703,6 +22203,60 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
21703
22203
  }>;
21704
22204
  } & {
21705
22205
  readonly seq: Schema.Int;
22206
+ }>, Schema.Struct<{
22207
+ readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
22208
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
22209
+ readonly writer: Schema.Union<readonly [Schema.Literal<"directory">, Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
22210
+ readonly writerSeq: Schema.Int;
22211
+ readonly at: Schema.DateTimeUtcFromMillis;
22212
+ readonly schemaVersion: Schema.Literal<1>;
22213
+ readonly actor: Schema.Union<readonly [Schema.Struct<{
22214
+ readonly kind: Schema.Literal<"person">;
22215
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
22216
+ }>, Schema.Struct<{
22217
+ readonly kind: Schema.Literal<"agent">;
22218
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
22219
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
22220
+ }>, Schema.Struct<{
22221
+ readonly kind: Schema.Literal<"ref0">;
22222
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
22223
+ }>]>;
22224
+ readonly token: Schema.optionalKey<Schema.Struct<{
22225
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
22226
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
22227
+ }>>;
22228
+ readonly draftedBy: Schema.optionalKey<Schema.Struct<{
22229
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
22230
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
22231
+ }>>;
22232
+ readonly cause: Schema.optionalKey<Schema.Struct<{
22233
+ readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
22234
+ readonly event: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
22235
+ }>>;
22236
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
22237
+ readonly refs: Schema.$Array<Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">]>>;
22238
+ readonly source: Schema.optionalKey<Schema.Struct<{
22239
+ readonly system: Schema.String;
22240
+ readonly deliveryId: Schema.String;
22241
+ }>>;
22242
+ readonly trace: Schema.optionalKey<Schema.String>;
22243
+ readonly kind: Schema.Literal<"identity_token.issued">;
22244
+ readonly data: Schema.Struct<{
22245
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
22246
+ readonly agent: Schema.Struct<{
22247
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
22248
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
22249
+ }>;
22250
+ readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
22251
+ readonly jti: Schema.brand<Schema.String, "IdentityTokenId">;
22252
+ readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
22253
+ readonly issuer: Schema.brand<Schema.String, "ApiOrigin">;
22254
+ readonly keyId: Schema.brand<Schema.String, "SigningKeyId">;
22255
+ readonly issuedAt: Schema.DateTimeUtcFromMillis;
22256
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
22257
+ }>;
22258
+ } & {
22259
+ readonly seq: Schema.Int;
21706
22260
  }>, Schema.Struct<{
21707
22261
  readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
21708
22262
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
@@ -28669,11 +29223,20 @@ type ThreadStage = typeof ThreadStage.Type;
28669
29223
  /** A project, `owner/project`. */
28670
29224
  declare const WrittenProject: Schema.brand<Schema.String, "WrittenProject">;
28671
29225
  type WrittenProject = typeof WrittenProject.Type;
29226
+ /** A thread, `owner/project#number`, or an org thread, `owner#number`. */
29227
+ declare const WrittenThread: Schema.brand<Schema.String, "WrittenThread">;
29228
+ type WrittenThread = typeof WrittenThread.Type;
28672
29229
  /** A written project's parts, as an endpoint's path takes them. */
28673
29230
  declare const projectParts: (written: WrittenProject) => {
28674
29231
  owner: string;
28675
29232
  project: string;
28676
29233
  };
29234
+ /** A written thread's parts, as an endpoint's path takes them: no project for an org thread. */
29235
+ declare const threadParts: (written: WrittenThread) => {
29236
+ owner: string;
29237
+ project: string | undefined;
29238
+ number: string;
29239
+ };
28677
29240
  /** An action a run's code asks for, at its place in the run. */
28678
29241
  declare const WorkflowAction: Schema.Struct<{
28679
29242
  readonly place: Schema.Struct<{
@@ -29206,5 +29769,5 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
29206
29769
  }>]>;
29207
29770
  type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
29208
29771
  //#endregion
29209
- export { MirrorEntry as $, WorkflowAskClosed as $t, ConnectionCallAnswer as A, WorkflowPreview as An, ScopeAction as At, EventRunInput as B, commandLine as Bn, StatementView as Bt, ConnectAgent as C, WorkflowOwn as Cn, SandboxExec as Ct, ConnectOptions as D, WorkflowPasskeyRead as Dn, SandboxPush as Dt, ConnectFolderOption as E, WorkflowPasskeyEnded as En, SandboxOpenAnswer as Et, ConsentAsked as F, WorkflowStartState as Fn, SignInDestination as Ft, GetIssueInput as G, isRef0Path as Gn, TrackThread as Gt, ForkAnswer as H, encodeSecret as Hn, ThreadStage as Ht, ConsentClient as I, WorkflowText as In, SignedIn as It, LiveTicket as J, repoNameKey as Jn, Welcome as Jt, Harness as K, liveSocketUrl as Kn, TypedApprovalCode as Kt, ConsentProject as L, WorkflowThreadStart as Ln, SocketUrl as Lt, ConnectionKind as M, WorkflowPullRequestOpen as Mn, SentryOrg as Mt, ConnectionName as N, WorkflowRequestRefusal as Nn, SentryRegion as Nt, ConnectableAgent as O, WorkflowPasskeyState as On, SandboxPushAnswer as Ot, ConnectionView as P, WorkflowStartEnded as Pn, SentryToken as Pt, MirrorChoice as Q, WorkflowAsk as Qt, CredentialView as R, WorkflowTrigger as Rn, StartActor as Rt, ClientGranted as S, WorkflowFilters as Sn, RequestFolder as St, ConnectFolderChoices as T, WorkflowPasskeyAsked as Tn, SandboxOpen as Tt, ForkCreate as U, hookTokenPrefix as Un, TrackClosed as Ut, FoldersConnected as V, connectEndpoint as Vn, ThreadId as Vt, GateOwn as W, hookUrl as Wn, TrackSession as Wt, LiveTrackName as X, WorkflowActionAnswer as Xt, LiveTicketRequest as Y, surfaceOf as Yn, WorkflowAction as Yt, MachineConnected as Z, WorkflowAnswerer as Zt, CheckOwn as _, WorkflowCheckStatesAnswer as _n, ReadEvent as _t, Api as a, WorkflowCallRefused as an, OwnerTrackMessage as at, CheckTreeEntry as b, WorkflowConnections as bn, RepoUrl as bt, ApprovalId as c, WorkflowCheckRefusal as cn, PasskeyCreationOptions as ct, ApprovalView as d, WorkflowCheckResultsAnswer as dn, PasskeyRequestOptions as dt, WorkflowCall as en, MirrorView as et, AttachmentFailed as f, WorkflowCheckRun as fn, PreviewEcho as ft, CheckOn as g, WorkflowCheckStates as gn, RanOf as gt, ChangeAuthor as h, WorkflowCheckStartAnswer as hn, ProjectTrackMessage as ht, AgentView as i, WorkflowCallRefusal as in, OwnerThreadView as it, ConnectionChanged as j, WorkflowPullRequestAnswer as jn, SecretHash as jt, ConnectionCall as k, WorkflowPermissions as kn, SandboxSize as kt, ApprovalPreview as l, WorkflowCheckRefused as ln, PasskeyFrom as lt, Authorization as m, WorkflowCheckStart as mn, ProjectName as mt, AgentPermissionChoice as n, WorkflowCallEnded as nn, OwnerName as nt, ApiOrigin as o, WorkflowCalledState as on, PasskeyAsserted as ot, AttachmentRequestView as p, WorkflowCheckRunEnded as pn, PreviewUnavailable as pt, ImportFailure as q, projectParts as qn, VersionFile as qt, AgentPermissionSetting as r, WorkflowCallInput as rn, OwnerThreadPage as rt, ApprovalAnswer as s, WorkflowCalledStateAnswer as sn, PasskeyCreated as st, AgentHandle as t, WorkflowCallAnswer as tn, OwnerId as tt, ApprovalState as u, WorkflowCheckResults as un, PasskeyRefusal as ut, CheckRunError as v, WorkflowCheckWhere as vn, Ref0Owned as vt, ConnectChosen as w, WorkflowPasskeyAsk as wn, SandboxExecAnswer as wt, ClientAccess as x, WorkflowEvent as xn, RepoView as xt, CheckRunParams as y, WorkflowComment as yn, RepoName as yt, EndpointName as z, WrittenProject as zn, StartRun as zt };
29210
- //# sourceMappingURL=index-B4mIKRqo.d.mts.map
29772
+ export { MirrorChoice as $, WorkflowAnswerer as $t, ConnectionCall as A, WorkflowPasskeyState as An, SandboxPushAnswer as At, EndpointName as B, WorkflowTrigger as Bn, StartActor as Bt, ClientGranted as C, WorkflowEvent as Cn, RepoView as Ct, ConnectFolderOption as D, WorkflowPasskeyAsked as Dn, SandboxOpen as Dt, ConnectFolderChoices as E, WorkflowPasskeyAsk as En, SandboxExecAnswer as Et, ConnectionView as F, WorkflowRequestRefusal as Fn, SentryRegion as Ft, GateOwn as G, hookTokenPrefix as Gn, TrackClosed as Gt, FoldersConnected as H, commandLine as Hn, StatementView as Ht, ConsentAsked as I, WorkflowStartEnded as In, SentryToken as It, ImportFailure as J, liveSocketUrl as Jn, TypedApprovalCode as Jt, GetIssueInput as K, hookUrl as Kn, TrackSession as Kt, ConsentClient as L, WorkflowStartState as Ln, SignInDestination as Lt, ConnectionChanged as M, WorkflowPreview as Mn, ScopeAction as Mt, ConnectionKind as N, WorkflowPullRequestAnswer as Nn, SecretHash as Nt, ConnectOptions as O, WorkflowPasskeyEnded as On, SandboxOpenAnswer as Ot, ConnectionName as P, WorkflowPullRequestOpen as Pn, SentryOrg as Pt, MachineConnected as Q, threadParts as Qn, WorkflowActionAnswer as Qt, ConsentProject as R, WorkflowText as Rn, SignedIn as Rt, ClientAccess as S, WorkflowConnections as Sn, RepoUrl as St, ConnectChosen as T, WorkflowOwn as Tn, SandboxExec as Tt, ForkAnswer as U, connectEndpoint as Un, ThreadId as Ut, EventRunInput as V, WrittenProject as Vn, StartRun as Vt, ForkCreate as W, encodeSecret as Wn, ThreadStage as Wt, LiveTicketRequest as X, repoNameKey as Xn, Welcome as Xt, LiveTicket as Y, projectParts as Yn, VersionFile as Yt, LiveTrackName as Z, surfaceOf as Zn, WorkflowAction as Zt, CheckOn as _, WorkflowCheckStartAnswer as _n, ProjectTrackMessage as _t, AnswerKey as a, WorkflowCallInput as an, OwnerThreadPage as at, CheckRunParams as b, WorkflowCheckWhere as bn, Ref0Owned as bt, ApprovalAnswer as c, WorkflowCalledState as cn, PasskeyAsserted as ct, ApprovalState as d, WorkflowCheckRefused as dn, PasskeyFrom as dt, WorkflowAsk as en, MirrorEntry as et, ApprovalView as f, WorkflowCheckResults as fn, PasskeyRefusal as ft, ChangeAuthor as g, WorkflowCheckStart as gn, ProjectName as gt, Authorization as h, WorkflowCheckRunEnded as hn, PreviewUnavailable as ht, AgentView as i, WorkflowCallEnded as in, OwnerName as it, ConnectionCallAnswer as j, WorkflowPermissions as jn, SandboxSize as jt, ConnectableAgent as k, WorkflowPasskeyRead as kn, SandboxPush as kt, ApprovalId as l, WorkflowCalledStateAnswer as ln, PasskeyCreated as lt, AttachmentRequestView as m, WorkflowCheckRun as mn, PreviewEcho as mt, AgentPermissionChoice as n, WorkflowCall as nn, NamedDecision as nt, Api as o, WorkflowCallRefusal as on, OwnerThreadView as ot, AttachmentFailed as p, WorkflowCheckResultsAnswer as pn, PasskeyRequestOptions as pt, Harness as q, isRef0Path as qn, TrackThread as qt, AgentPermissionSetting as r, WorkflowCallAnswer as rn, OwnerId as rt, ApiOrigin as s, WorkflowCallRefused as sn, OwnerTrackMessage as st, AgentHandle as t, WorkflowAskClosed as tn, MirrorView as tt, ApprovalPreview as u, WorkflowCheckRefusal as un, PasskeyCreationOptions as ut, CheckOwn as v, WorkflowCheckStates as vn, RanOf as vt, ConnectAgent as w, WorkflowFilters as wn, RequestFolder as wt, CheckTreeEntry as x, WorkflowComment as xn, RepoName as xt, CheckRunError as y, WorkflowCheckStatesAnswer as yn, ReadEvent as yt, CredentialView as z, WorkflowThreadStart as zn, SocketUrl as zt };
29773
+ //# sourceMappingURL=index-BSPC_jQm.d.mts.map