@ref0/sdk 0.5.0 → 0.7.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.
- package/README.md +2 -2
- package/dist/{browse-DBqoeS-u.d.mts → browse-CLwrVDwR.d.mts} +6 -6
- package/dist/browser.d.mts +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +258 -75
- package/dist/{index-Dns8tCkT.d.mts → index-Vb8-1Zk-.d.mts} +1174 -887
- package/dist/index.d.mts +12 -7
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
|
@@ -423,6 +423,8 @@ declare const ApprovalState: Schema.Union<readonly [Schema.Struct<{
|
|
|
423
423
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
424
424
|
}>, Schema.Struct<{
|
|
425
425
|
readonly state: Schema.Literal<"approved">;
|
|
426
|
+
/** A machine's answering browser may forget its saved answer once the terminal kept it. */
|
|
427
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
426
428
|
}>, Schema.Struct<{
|
|
427
429
|
readonly state: Schema.Literal<"refused">;
|
|
428
430
|
}>, Schema.Struct<{
|
|
@@ -434,6 +436,36 @@ declare const ApprovalState: Schema.Union<readonly [Schema.Struct<{
|
|
|
434
436
|
readonly endpoint: Schema.String;
|
|
435
437
|
}>]>;
|
|
436
438
|
type ApprovalState = typeof ApprovalState.Type;
|
|
439
|
+
/** Only the answering browser receives a machine's answer code; state reads never carry it. */
|
|
440
|
+
declare const ApprovalAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
441
|
+
readonly state: Schema.Literal<"approved">;
|
|
442
|
+
/** A machine's answering browser may forget its saved answer once the terminal kept it. */
|
|
443
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
444
|
+
readonly answerCode: Schema.String;
|
|
445
|
+
}>, Schema.Struct<{
|
|
446
|
+
readonly status: Schema.Int;
|
|
447
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
448
|
+
readonly state: Schema.Literal<"ran">;
|
|
449
|
+
readonly endpoint: Schema.String;
|
|
450
|
+
readonly answerCode: Schema.String;
|
|
451
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
452
|
+
readonly state: Schema.Literal<"waiting">;
|
|
453
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
454
|
+
}>, Schema.Struct<{
|
|
455
|
+
readonly state: Schema.Literal<"approved">;
|
|
456
|
+
/** A machine's answering browser may forget its saved answer once the terminal kept it. */
|
|
457
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
458
|
+
}>, Schema.Struct<{
|
|
459
|
+
readonly state: Schema.Literal<"refused">;
|
|
460
|
+
}>, Schema.Struct<{
|
|
461
|
+
readonly state: Schema.Literal<"expired">;
|
|
462
|
+
}>, Schema.Struct<{
|
|
463
|
+
readonly status: Schema.Int;
|
|
464
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
465
|
+
readonly state: Schema.Literal<"ran">;
|
|
466
|
+
readonly endpoint: Schema.String;
|
|
467
|
+
}>]>]>;
|
|
468
|
+
type ApprovalAnswer = typeof ApprovalAnswer.Type;
|
|
437
469
|
declare const ApprovalNotFound_base: Schema.Class<ApprovalNotFound, Schema.TaggedStruct<"ApprovalNotFound", {
|
|
438
470
|
readonly nextStep: Schema.String;
|
|
439
471
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -1029,16 +1061,30 @@ declare const AskRecipientNotFound_base: Schema.Class<AskRecipientNotFound, Sche
|
|
|
1029
1061
|
* doesn't say, so an ask never says what exists elsewhere.
|
|
1030
1062
|
*/
|
|
1031
1063
|
declare class AskRecipientNotFound extends AskRecipientNotFound_base {}
|
|
1064
|
+
declare const RequestFolder: Schema.Struct<{
|
|
1065
|
+
readonly path: Schema.String;
|
|
1066
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
1067
|
+
readonly secretHash: Schema.brand<Schema.String, "SecretHash">;
|
|
1068
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
1069
|
+
}>;
|
|
1070
|
+
type RequestFolder = typeof RequestFolder.Type;
|
|
1032
1071
|
/** An attachment request, as its person reads it once they type its code. */
|
|
1033
1072
|
declare const AttachmentRequestView: Schema.Struct<{
|
|
1034
1073
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
1035
1074
|
/** The machine's own word for itself, never fact. */
|
|
1036
1075
|
readonly machineName: Schema.String;
|
|
1037
|
-
|
|
1038
|
-
|
|
1076
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
1077
|
+
readonly path: Schema.String;
|
|
1078
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
1079
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
1080
|
+
}>>;
|
|
1039
1081
|
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
1040
1082
|
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
1041
1083
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
1084
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
1085
|
+
readonly port: Schema.Int;
|
|
1086
|
+
readonly state: Schema.String;
|
|
1087
|
+
}>>;
|
|
1042
1088
|
}>;
|
|
1043
1089
|
type AttachmentRequestView = typeof AttachmentRequestView.Type;
|
|
1044
1090
|
/**
|
|
@@ -1080,10 +1126,137 @@ declare const ConnectChosen: Schema.Struct<{
|
|
|
1080
1126
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
1081
1127
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
1082
1128
|
}>>;
|
|
1129
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1130
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1131
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
1132
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1133
|
+
}>>;
|
|
1083
1134
|
}>;
|
|
1084
1135
|
type ConnectChosen = typeof ConnectChosen.Type;
|
|
1136
|
+
declare const ConnectFolderChoices: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1137
|
+
readonly path: Schema.String;
|
|
1138
|
+
readonly excluded: Schema.Literal<true>;
|
|
1139
|
+
}>, Schema.Struct<{
|
|
1140
|
+
readonly path: Schema.String;
|
|
1141
|
+
readonly agent: Schema.Union<readonly [Schema.Struct<{
|
|
1142
|
+
readonly kind: Schema.Literal<"existing">;
|
|
1143
|
+
readonly agent: Schema.Struct<{
|
|
1144
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1145
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
1146
|
+
}>;
|
|
1147
|
+
}>, Schema.Struct<{
|
|
1148
|
+
readonly kind: Schema.Literal<"new">;
|
|
1149
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
1150
|
+
}>]>;
|
|
1151
|
+
}>]>>;
|
|
1152
|
+
declare const ConnectFolderOption: Schema.Union<readonly [Schema.Struct<{
|
|
1153
|
+
readonly path: Schema.String;
|
|
1154
|
+
readonly excluded: Schema.Literal<true>;
|
|
1155
|
+
}>, Schema.Struct<{
|
|
1156
|
+
readonly path: Schema.String;
|
|
1157
|
+
readonly connect: Schema.Struct<{
|
|
1158
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
1159
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1160
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
1161
|
+
}>>;
|
|
1162
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
1163
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
1164
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
1165
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
1166
|
+
}>>;
|
|
1167
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1168
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1169
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
1170
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1171
|
+
}>>;
|
|
1172
|
+
}>;
|
|
1173
|
+
}>]>;
|
|
1174
|
+
/** Defaults and explicit choices both resolve the entire request and sign one challenge. */
|
|
1175
|
+
declare const ConnectOptions: Schema.Struct<{
|
|
1176
|
+
readonly request: Schema.Struct<{
|
|
1177
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
1178
|
+
/** The machine's own word for itself, never fact. */
|
|
1179
|
+
readonly machineName: Schema.String;
|
|
1180
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
1181
|
+
readonly path: Schema.String;
|
|
1182
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
1183
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
1184
|
+
}>>;
|
|
1185
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
1186
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
1187
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
1188
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
1189
|
+
readonly port: Schema.Int;
|
|
1190
|
+
readonly state: Schema.String;
|
|
1191
|
+
}>>;
|
|
1192
|
+
}>;
|
|
1193
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
1194
|
+
readonly agent: Schema.Struct<{
|
|
1195
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1196
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
1197
|
+
}>;
|
|
1198
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
1199
|
+
}>>;
|
|
1200
|
+
readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1201
|
+
readonly path: Schema.String;
|
|
1202
|
+
readonly excluded: Schema.Literal<true>;
|
|
1203
|
+
}>, Schema.Struct<{
|
|
1204
|
+
readonly path: Schema.String;
|
|
1205
|
+
readonly connect: Schema.Struct<{
|
|
1206
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
1207
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1208
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
1209
|
+
}>>;
|
|
1210
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
1211
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
1212
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
1213
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
1214
|
+
}>>;
|
|
1215
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1216
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1217
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
1218
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1219
|
+
}>>;
|
|
1220
|
+
}>;
|
|
1221
|
+
}>]>>;
|
|
1222
|
+
readonly passkey: Schema.Struct<{
|
|
1223
|
+
readonly challenge: Schema.String;
|
|
1224
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
1225
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
1226
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1227
|
+
readonly id: Schema.String;
|
|
1228
|
+
readonly type: Schema.Literal<"public-key">;
|
|
1229
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
1230
|
+
}>>>;
|
|
1231
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
1232
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
1233
|
+
}>;
|
|
1234
|
+
}>;
|
|
1235
|
+
type ConnectOptions = typeof ConnectOptions.Type;
|
|
1085
1236
|
/** The endpoint an attachment's approval names: no `/v1` endpoint, and never a terminal's ask. */
|
|
1086
1237
|
declare const connectEndpoint = "attachments.connect";
|
|
1238
|
+
declare const FoldersConnected: Schema.Struct<{
|
|
1239
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
1240
|
+
readonly agent: Schema.Struct<{
|
|
1241
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1242
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
1243
|
+
}>;
|
|
1244
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
1245
|
+
readonly credential: Schema.Struct<{
|
|
1246
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
1247
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1248
|
+
}>;
|
|
1249
|
+
readonly agentCreated: Schema.Boolean;
|
|
1250
|
+
readonly path: Schema.String;
|
|
1251
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1252
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1253
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
1254
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1255
|
+
}>>;
|
|
1256
|
+
}>>;
|
|
1257
|
+
readonly excluded: Schema.$Array<Schema.String>;
|
|
1258
|
+
}>;
|
|
1259
|
+
type FoldersConnected = typeof FoldersConnected.Type;
|
|
1087
1260
|
declare const AttachmentNotFound_base: Schema.Class<AttachmentNotFound, Schema.TaggedStruct<"AttachmentNotFound", {
|
|
1088
1261
|
readonly nextStep: Schema.String;
|
|
1089
1262
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -1144,6 +1317,52 @@ type ApprovalId = typeof ApprovalId.Type;
|
|
|
1144
1317
|
*/
|
|
1145
1318
|
declare const ConnectionId: Schema.brand<Schema.TemplateLiteral<readonly ["connection_", Schema.String]>, "ConnectionId">;
|
|
1146
1319
|
type ConnectionId = typeof ConnectionId.Type;
|
|
1320
|
+
declare const RepoNotReady_base: Schema.Class<RepoNotReady, Schema.TaggedStruct<"RepoNotReady", {
|
|
1321
|
+
readonly nextStep: Schema.String;
|
|
1322
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1323
|
+
/** A repo whose baseline isn't readable yet: Git is told to try again in a few seconds. */
|
|
1324
|
+
declare class RepoNotReady extends RepoNotReady_base {}
|
|
1325
|
+
/** An owner's name, a person's or an organization's. One set of names for both, as on GitHub. */
|
|
1326
|
+
declare const OwnerName: Schema.brand<Schema.String, "OwnerName">;
|
|
1327
|
+
type OwnerName = typeof OwnerName.Type;
|
|
1328
|
+
/** A project's name. It shares one set of names with its owner's repos. */
|
|
1329
|
+
declare const ProjectName: Schema.brand<Schema.String, "ProjectName">;
|
|
1330
|
+
type ProjectName = typeof ProjectName.Type;
|
|
1331
|
+
declare const RepoName: Schema.brand<Schema.String, "RepoName">;
|
|
1332
|
+
type RepoName = typeof RepoName.Type;
|
|
1333
|
+
/** An agent's handle: unique within its owner, renamable, and always shown with whose it is. */
|
|
1334
|
+
declare const AgentHandle: Schema.brand<Schema.String, "AgentHandle">;
|
|
1335
|
+
type AgentHandle = typeof AgentHandle.Type;
|
|
1336
|
+
//#endregion
|
|
1337
|
+
//#region src/routes.d.ts
|
|
1338
|
+
/**
|
|
1339
|
+
* ref0's one origin, as a client is given it: `http` or `https`, a host and maybe a port, and no
|
|
1340
|
+
* credentials, path, query or fragment. That pattern alone lets through a host or port no URL has,
|
|
1341
|
+
* such as `https://1.2.3.999`, `https://[1::2::3]` or `https://ref0.test:99999`, so the platform's own URL parser must take
|
|
1342
|
+
* it too. It's kept as written, case and any default port too: every path here is appended to it
|
|
1343
|
+
* as it is.
|
|
1344
|
+
*/
|
|
1345
|
+
declare const ApiOrigin: Schema.brand<Schema.String, "ApiOrigin">;
|
|
1346
|
+
type ApiOrigin = typeof ApiOrigin.Type;
|
|
1347
|
+
/**
|
|
1348
|
+
* 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.
|
|
1350
|
+
*/
|
|
1351
|
+
declare const isRef0Path: (pathname: string) => boolean;
|
|
1352
|
+
declare const NoFork_base: Schema.Class<NoFork, Schema.TaggedStruct<"NoFork", {
|
|
1353
|
+
readonly nextStep: Schema.String;
|
|
1354
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1355
|
+
/** No fork of this repo for that session: it hasn't asked for one. */
|
|
1356
|
+
declare class NoFork extends NoFork_base {}
|
|
1357
|
+
declare const NoBase_base: Schema.Class<NoBase, Schema.TaggedStruct<"NoBase", {
|
|
1358
|
+
readonly why: Schema.Literals<readonly ["main empty", "held by a run"]>;
|
|
1359
|
+
readonly nextStep: Schema.String;
|
|
1360
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1361
|
+
/**
|
|
1362
|
+
* No base to fetch: `main` has no commit yet, or the pin of the thread below is in a workflow
|
|
1363
|
+
* run's fork, which has no session's path to fetch from.
|
|
1364
|
+
*/
|
|
1365
|
+
declare class NoBase extends NoBase_base {}
|
|
1147
1366
|
declare const PullRequestNotFound_base: Schema.Class<PullRequestNotFound, Schema.TaggedStruct<"PullRequestNotFound", {
|
|
1148
1367
|
readonly nextStep: Schema.String;
|
|
1149
1368
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -1408,11 +1627,6 @@ declare const AuthorizationNotFound_base: Schema.Class<AuthorizationNotFound, Sc
|
|
|
1408
1627
|
}>, import("effect/Cause").YieldableError>;
|
|
1409
1628
|
/** No such authorization: the attachment was never authorized here. */
|
|
1410
1629
|
declare class AuthorizationNotFound extends AuthorizationNotFound_base {}
|
|
1411
|
-
declare const RepoNotReady_base: Schema.Class<RepoNotReady, Schema.TaggedStruct<"RepoNotReady", {
|
|
1412
|
-
readonly nextStep: Schema.String;
|
|
1413
|
-
}>, import("effect/Cause").YieldableError>;
|
|
1414
|
-
/** A repo whose baseline isn't readable yet: Git is told to try again in a few seconds. */
|
|
1415
|
-
declare class RepoNotReady extends RepoNotReady_base {}
|
|
1416
1630
|
declare const IntentSourceNotFound_base: Schema.Class<IntentSourceNotFound, Schema.TaggedStruct<"IntentSourceNotFound", {
|
|
1417
1631
|
readonly nextStep: Schema.String;
|
|
1418
1632
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -1433,17 +1647,6 @@ declare const CommentRecipientNotFound_base: Schema.Class<CommentRecipientNotFou
|
|
|
1433
1647
|
}>, import("effect/Cause").YieldableError>;
|
|
1434
1648
|
/** A session a comment is to that isn't one of this thread's. */
|
|
1435
1649
|
declare class CommentRecipientNotFound extends CommentRecipientNotFound_base {}
|
|
1436
|
-
/** An owner's name, a person's or an organization's. One set of names for both, as on GitHub. */
|
|
1437
|
-
declare const OwnerName: Schema.brand<Schema.String, "OwnerName">;
|
|
1438
|
-
type OwnerName = typeof OwnerName.Type;
|
|
1439
|
-
/** A project's name. It shares one set of names with its owner's repos. */
|
|
1440
|
-
declare const ProjectName: Schema.brand<Schema.String, "ProjectName">;
|
|
1441
|
-
type ProjectName = typeof ProjectName.Type;
|
|
1442
|
-
declare const RepoName: Schema.brand<Schema.String, "RepoName">;
|
|
1443
|
-
type RepoName = typeof RepoName.Type;
|
|
1444
|
-
/** An agent's handle: unique within its owner, renamable, and always shown with whose it is. */
|
|
1445
|
-
declare const AgentHandle: Schema.brand<Schema.String, "AgentHandle">;
|
|
1446
|
-
type AgentHandle = typeof AgentHandle.Type;
|
|
1447
1650
|
//#endregion
|
|
1448
1651
|
//#region src/repos.d.ts
|
|
1449
1652
|
/**
|
|
@@ -1890,7 +2093,15 @@ declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEnd
|
|
|
1890
2093
|
}>]>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof AuthorityUnavailable>, SignedIn, never>, false>;
|
|
1891
2094
|
/** Where a signed-in person stands, and naming their owner when their GitHub login couldn't. */
|
|
1892
2095
|
declare class WelcomeGroup extends WelcomeGroup_base {}
|
|
1893
|
-
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2096
|
+
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2097
|
+
readonly passkeys: Schema.$Array<Schema.Struct<{
|
|
2098
|
+
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2099
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
2100
|
+
readonly createdAt: Schema.String;
|
|
2101
|
+
readonly backedUp: Schema.Boolean;
|
|
2102
|
+
}>>;
|
|
2103
|
+
readonly approvesHere: Schema.Boolean;
|
|
2104
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1894
2105
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
1895
2106
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
1896
2107
|
readonly rp: Schema.Struct<{
|
|
@@ -1943,15 +2154,7 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
1943
2154
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
1944
2155
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
1945
2156
|
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
1946
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never
|
|
1947
|
-
readonly passkeys: Schema.$Array<Schema.Struct<{
|
|
1948
|
-
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
1949
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
1950
|
-
readonly createdAt: Schema.String;
|
|
1951
|
-
readonly backedUp: Schema.Boolean;
|
|
1952
|
-
}>>;
|
|
1953
|
-
readonly approvesHere: Schema.Boolean;
|
|
1954
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
2157
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never>, false>;
|
|
1955
2158
|
/**
|
|
1956
2159
|
* A person's passkeys: listing them, and enrolling the first, which signing in asks for straight
|
|
1957
2160
|
* away and a browser session does on its own, once. Every passkey after is an approval.
|
|
@@ -1964,6 +2167,7 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
|
|
|
1964
2167
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
1965
2168
|
}>, Schema.Struct<{
|
|
1966
2169
|
readonly state: Schema.Literal<"approved">;
|
|
2170
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
1967
2171
|
}>, Schema.Struct<{
|
|
1968
2172
|
readonly state: Schema.Literal<"refused">;
|
|
1969
2173
|
}>, Schema.Struct<{
|
|
@@ -2039,20 +2243,31 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2039
2243
|
}>, Schema.Struct<{
|
|
2040
2244
|
readonly state: Schema.Literal<"connected">;
|
|
2041
2245
|
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
2042
|
-
readonly
|
|
2043
|
-
readonly
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
readonly
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
readonly
|
|
2053
|
-
readonly
|
|
2054
|
-
readonly
|
|
2246
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2247
|
+
readonly agent: Schema.Struct<{
|
|
2248
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2249
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2250
|
+
}>;
|
|
2251
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2252
|
+
readonly credential: Schema.Struct<{
|
|
2253
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2254
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2255
|
+
}>;
|
|
2256
|
+
readonly agentCreated: Schema.Boolean;
|
|
2257
|
+
readonly path: Schema.String;
|
|
2258
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
2259
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2260
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2261
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2262
|
+
readonly state: Schema.Literals<readonly ["pending", "authorized", "refused"]>;
|
|
2263
|
+
}>>;
|
|
2264
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2265
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2266
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
2267
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2268
|
+
}>>;
|
|
2055
2269
|
}>>;
|
|
2270
|
+
readonly excluded: Schema.$Array<Schema.String>;
|
|
2056
2271
|
}>, Schema.Struct<{
|
|
2057
2272
|
readonly state: Schema.Literal<"refused">;
|
|
2058
2273
|
}>, Schema.Struct<{
|
|
@@ -2061,30 +2276,43 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2061
2276
|
readonly state: Schema.Literal<"expired">;
|
|
2062
2277
|
}>, Schema.Struct<{
|
|
2063
2278
|
readonly state: Schema.Literal<"failed">;
|
|
2064
|
-
readonly reason: Schema.Literals<readonly ["agent not found", "agent turned off", "agent changed", "handle taken", "session ended", "recovered"
|
|
2279
|
+
readonly reason: Schema.Literals<readonly ["agent not found", "agent turned off", "agent changed", "handle taken", "session ended", "recovered"]>;
|
|
2065
2280
|
readonly nextStep: Schema.String;
|
|
2066
|
-
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"collect", "
|
|
2281
|
+
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"collect", "POST", "/v1/attachments/requests/:approval/result", Schema.toCodecStringTree<Schema.Struct<{
|
|
2067
2282
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2068
|
-
}>>, never,
|
|
2283
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2284
|
+
readonly answerCode: Schema.optionalKey<Schema.String>;
|
|
2285
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2069
2286
|
readonly state: Schema.Literal<"waiting">;
|
|
2070
2287
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2071
2288
|
}>, Schema.Struct<{
|
|
2072
2289
|
readonly state: Schema.Literal<"connected">;
|
|
2073
2290
|
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
2074
|
-
readonly
|
|
2075
|
-
readonly
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
readonly
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
readonly
|
|
2085
|
-
readonly
|
|
2086
|
-
readonly
|
|
2291
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2292
|
+
readonly agent: Schema.Struct<{
|
|
2293
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2294
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2295
|
+
}>;
|
|
2296
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2297
|
+
readonly credential: Schema.Struct<{
|
|
2298
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2299
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2300
|
+
}>;
|
|
2301
|
+
readonly agentCreated: Schema.Boolean;
|
|
2302
|
+
readonly path: Schema.String;
|
|
2303
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
2304
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2305
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2306
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2307
|
+
readonly state: Schema.Literals<readonly ["pending", "authorized", "refused"]>;
|
|
2308
|
+
}>>;
|
|
2309
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2310
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2311
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
2312
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2313
|
+
}>>;
|
|
2087
2314
|
}>>;
|
|
2315
|
+
readonly excluded: Schema.$Array<Schema.String>;
|
|
2088
2316
|
}>, Schema.Struct<{
|
|
2089
2317
|
readonly state: Schema.Literal<"refused">;
|
|
2090
2318
|
}>, Schema.Struct<{
|
|
@@ -2093,21 +2321,32 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2093
2321
|
readonly state: Schema.Literal<"expired">;
|
|
2094
2322
|
}>, Schema.Struct<{
|
|
2095
2323
|
readonly state: Schema.Literal<"failed">;
|
|
2096
|
-
readonly reason: Schema.Literals<readonly ["agent not found", "agent turned off", "agent changed", "handle taken", "session ended", "recovered"
|
|
2324
|
+
readonly reason: Schema.Literals<readonly ["agent not found", "agent turned off", "agent changed", "handle taken", "session ended", "recovered"]>;
|
|
2097
2325
|
readonly nextStep: Schema.String;
|
|
2098
2326
|
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"confirm", "POST", "/v1/attachments/requests/:approval/collected", Schema.toCodecStringTree<Schema.Struct<{
|
|
2099
2327
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2100
|
-
}>>, never,
|
|
2328
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2329
|
+
readonly grants: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2330
|
+
readonly answerCode: Schema.optionalKey<Schema.String>;
|
|
2331
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2101
2332
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2102
2333
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2103
2334
|
readonly confirmed: Schema.Boolean;
|
|
2104
2335
|
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"request", "POST", "/v1/attachments/requests", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2105
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
2106
2336
|
readonly machine: Schema.brand<Schema.TemplateLiteral<readonly ["machine_", Schema.String]>, "MachineId">;
|
|
2107
2337
|
readonly machineName: Schema.String;
|
|
2108
|
-
readonly
|
|
2109
|
-
|
|
2338
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2339
|
+
readonly path: Schema.String;
|
|
2340
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2341
|
+
readonly secretHash: Schema.brand<Schema.String, "SecretHash">;
|
|
2342
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2343
|
+
}>>;
|
|
2110
2344
|
readonly collectHash: Schema.brand<Schema.String, "SecretHash">;
|
|
2345
|
+
readonly linkHash: Schema.brand<Schema.String, "SecretHash">;
|
|
2346
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2347
|
+
readonly port: Schema.Int;
|
|
2348
|
+
readonly state: Schema.String;
|
|
2349
|
+
}>>;
|
|
2111
2350
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2112
2351
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2113
2352
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -2361,17 +2600,135 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2361
2600
|
readonly requests: Schema.$Array<Schema.Struct<{
|
|
2362
2601
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2363
2602
|
readonly machineName: Schema.String;
|
|
2364
|
-
readonly
|
|
2603
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2604
|
+
readonly path: Schema.String;
|
|
2605
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2606
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2607
|
+
}>>;
|
|
2365
2608
|
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2366
2609
|
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2367
2610
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2611
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2612
|
+
readonly port: Schema.Int;
|
|
2613
|
+
readonly state: Schema.String;
|
|
2614
|
+
}>>;
|
|
2368
2615
|
}>>;
|
|
2369
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2370
|
-
readonly
|
|
2371
|
-
}>>, Schema.
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2616
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
|
|
2617
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2618
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2619
|
+
readonly state: Schema.Literal<"waiting">;
|
|
2620
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2621
|
+
}>, Schema.Struct<{
|
|
2622
|
+
readonly state: Schema.Literal<"approved">;
|
|
2623
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2624
|
+
}>, Schema.Struct<{
|
|
2625
|
+
readonly state: Schema.Literal<"refused">;
|
|
2626
|
+
}>, Schema.Struct<{
|
|
2627
|
+
readonly state: Schema.Literal<"expired">;
|
|
2628
|
+
}>, Schema.Struct<{
|
|
2629
|
+
readonly status: Schema.Int;
|
|
2630
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2631
|
+
readonly state: Schema.Literal<"ran">;
|
|
2632
|
+
readonly endpoint: Schema.String;
|
|
2633
|
+
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2634
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2635
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2636
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2637
|
+
readonly folders: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2638
|
+
readonly path: Schema.String;
|
|
2639
|
+
readonly excluded: Schema.Literal<true>;
|
|
2640
|
+
}>, Schema.Struct<{
|
|
2641
|
+
readonly path: Schema.String;
|
|
2642
|
+
readonly agent: Schema.Union<readonly [Schema.Struct<{
|
|
2643
|
+
readonly kind: Schema.Literal<"existing">;
|
|
2644
|
+
readonly agent: Schema.Struct<{
|
|
2645
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2646
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2647
|
+
}>;
|
|
2648
|
+
}>, Schema.Struct<{
|
|
2649
|
+
readonly kind: Schema.Literal<"new">;
|
|
2650
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2651
|
+
}>]>;
|
|
2652
|
+
}>]>>>;
|
|
2653
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2654
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2655
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2656
|
+
readonly challenge: Schema.String;
|
|
2657
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2658
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2659
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2660
|
+
readonly id: Schema.String;
|
|
2661
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2662
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2663
|
+
}>>>;
|
|
2664
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2665
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2666
|
+
}>, Schema.Struct<{
|
|
2667
|
+
readonly request: Schema.Struct<{
|
|
2668
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2669
|
+
readonly machineName: Schema.String;
|
|
2670
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2671
|
+
readonly path: Schema.String;
|
|
2672
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2673
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2674
|
+
}>>;
|
|
2675
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2676
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2677
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2678
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2679
|
+
readonly port: Schema.Int;
|
|
2680
|
+
readonly state: Schema.String;
|
|
2681
|
+
}>>;
|
|
2682
|
+
}>;
|
|
2683
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
2684
|
+
readonly agent: Schema.Struct<{
|
|
2685
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2686
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2687
|
+
}>;
|
|
2688
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2689
|
+
}>>;
|
|
2690
|
+
readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2691
|
+
readonly path: Schema.String;
|
|
2692
|
+
readonly excluded: Schema.Literal<true>;
|
|
2693
|
+
}>, Schema.Struct<{
|
|
2694
|
+
readonly path: Schema.String;
|
|
2695
|
+
readonly connect: Schema.Struct<{
|
|
2696
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2697
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2698
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2699
|
+
}>>;
|
|
2700
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2701
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2702
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2703
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2704
|
+
}>>;
|
|
2705
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2706
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2707
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
2708
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2709
|
+
}>>;
|
|
2710
|
+
}>;
|
|
2711
|
+
}>]>>;
|
|
2712
|
+
readonly passkey: Schema.Struct<{
|
|
2713
|
+
readonly challenge: Schema.String;
|
|
2714
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2715
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2716
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2717
|
+
readonly id: Schema.String;
|
|
2718
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2719
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2720
|
+
}>>>;
|
|
2721
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2722
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2723
|
+
}>;
|
|
2724
|
+
}>]>>, 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<{
|
|
2725
|
+
readonly code: Schema.String;
|
|
2726
|
+
}>, Schema.Struct<{
|
|
2727
|
+
readonly link: Schema.String;
|
|
2728
|
+
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2729
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2730
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2731
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2375
2732
|
readonly says: Schema.String;
|
|
2376
2733
|
readonly fields: Schema.$Array<Schema.Struct<{
|
|
2377
2734
|
readonly name: Schema.String;
|
|
@@ -2583,102 +2940,19 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2583
2940
|
}>, Schema.Struct<{
|
|
2584
2941
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2585
2942
|
readonly machineName: Schema.String;
|
|
2586
|
-
readonly
|
|
2943
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2944
|
+
readonly path: Schema.String;
|
|
2945
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2946
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2947
|
+
}>>;
|
|
2587
2948
|
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2588
2949
|
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2589
2950
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
readonly state: Schema.Literal<"waiting">;
|
|
2594
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2595
|
-
}>, Schema.Struct<{
|
|
2596
|
-
readonly state: Schema.Literal<"approved">;
|
|
2597
|
-
}>, Schema.Struct<{
|
|
2598
|
-
readonly state: Schema.Literal<"refused">;
|
|
2599
|
-
}>, Schema.Struct<{
|
|
2600
|
-
readonly state: Schema.Literal<"expired">;
|
|
2601
|
-
}>, Schema.Struct<{
|
|
2602
|
-
readonly status: Schema.Int;
|
|
2603
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2604
|
-
readonly state: Schema.Literal<"ran">;
|
|
2605
|
-
readonly endpoint: Schema.String;
|
|
2606
|
-
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2607
|
-
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2608
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2609
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
2610
|
-
readonly agent: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2611
|
-
readonly kind: Schema.Literal<"existing">;
|
|
2612
|
-
readonly agent: Schema.Struct<{
|
|
2613
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2614
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2615
|
-
}>;
|
|
2616
|
-
}>, Schema.Struct<{
|
|
2617
|
-
readonly kind: Schema.Literal<"new">;
|
|
2618
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2619
|
-
}>]>>;
|
|
2620
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2621
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2622
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2623
|
-
readonly challenge: Schema.String;
|
|
2624
|
-
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2625
|
-
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2626
|
-
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2627
|
-
readonly id: Schema.String;
|
|
2628
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2629
|
-
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2630
|
-
}>>>;
|
|
2631
|
-
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2632
|
-
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2633
|
-
}>, Schema.Union<readonly [Schema.Struct<{
|
|
2634
|
-
readonly request: Schema.Struct<{
|
|
2635
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2636
|
-
readonly machineName: Schema.String;
|
|
2637
|
-
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["claude-code", "codex"]>>;
|
|
2638
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2639
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2640
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2641
|
-
}>;
|
|
2642
|
-
readonly agents: Schema.$Array<Schema.Struct<{
|
|
2643
|
-
readonly agent: Schema.Struct<{
|
|
2644
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2645
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2646
|
-
}>;
|
|
2647
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2951
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2952
|
+
readonly port: Schema.Int;
|
|
2953
|
+
readonly state: Schema.String;
|
|
2648
2954
|
}>>;
|
|
2649
|
-
}>, Schema.Struct<{
|
|
2650
|
-
readonly request: Schema.Struct<{
|
|
2651
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2652
|
-
readonly machineName: Schema.String;
|
|
2653
|
-
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["claude-code", "codex"]>>;
|
|
2654
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2655
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2656
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2657
|
-
}>;
|
|
2658
|
-
readonly connect: Schema.Struct<{
|
|
2659
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2660
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2661
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2662
|
-
}>>;
|
|
2663
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2664
|
-
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2665
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2666
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2667
|
-
}>>;
|
|
2668
|
-
}>;
|
|
2669
|
-
readonly passkey: Schema.Struct<{
|
|
2670
|
-
readonly challenge: Schema.String;
|
|
2671
|
-
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2672
|
-
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2673
|
-
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2674
|
-
readonly id: Schema.String;
|
|
2675
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2676
|
-
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2677
|
-
}>>>;
|
|
2678
|
-
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2679
|
-
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2680
|
-
}>;
|
|
2681
|
-
}>]>]>>, 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<{
|
|
2955
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
2682
2956
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2683
2957
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2684
2958
|
readonly answer: Schema.Literal<"yes">;
|
|
@@ -2727,10 +3001,21 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2727
3001
|
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2728
3002
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2729
3003
|
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
3004
|
+
readonly state: Schema.Literal<"approved">;
|
|
3005
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3006
|
+
readonly answerCode: Schema.String;
|
|
3007
|
+
}>, Schema.Struct<{
|
|
3008
|
+
readonly status: Schema.Int;
|
|
3009
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3010
|
+
readonly state: Schema.Literal<"ran">;
|
|
3011
|
+
readonly endpoint: Schema.String;
|
|
3012
|
+
readonly answerCode: Schema.String;
|
|
3013
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
2730
3014
|
readonly state: Schema.Literal<"waiting">;
|
|
2731
3015
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2732
3016
|
}>, Schema.Struct<{
|
|
2733
3017
|
readonly state: Schema.Literal<"approved">;
|
|
3018
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2734
3019
|
}>, Schema.Struct<{
|
|
2735
3020
|
readonly state: Schema.Literal<"refused">;
|
|
2736
3021
|
}>, Schema.Struct<{
|
|
@@ -2740,7 +3025,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2740
3025
|
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2741
3026
|
readonly state: Schema.Literal<"ran">;
|
|
2742
3027
|
readonly endpoint: Schema.String;
|
|
2743
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never>, false>;
|
|
3028
|
+
}>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never>, false>;
|
|
2744
3029
|
/**
|
|
2745
3030
|
* A person's side of approvals, in an approving browser: what waits for them, finding a
|
|
2746
3031
|
* terminal's request or a machine's attachment request by its code, and answering one, with
|
|
@@ -2781,42 +3066,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
2781
3066
|
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"]>;
|
|
2782
3067
|
}>>;
|
|
2783
3068
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
2784
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2785
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2786
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2787
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
2788
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2789
|
-
readonly mirrors: Schema.$Array<Schema.Struct<{
|
|
2790
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
2791
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2792
|
-
readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
|
|
2793
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
2794
|
-
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
2795
|
-
readonly kind: Schema.Literal<"none">;
|
|
2796
|
-
}>, Schema.Struct<{
|
|
2797
|
-
readonly kind: Schema.Literal<"github">;
|
|
2798
|
-
readonly branch: Schema.String;
|
|
2799
|
-
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
2800
|
-
readonly state: Schema.Literal<"on">;
|
|
2801
|
-
}>, Schema.Struct<{
|
|
2802
|
-
readonly state: Schema.Literal<"paused">;
|
|
2803
|
-
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
2804
|
-
readonly why: Schema.Literal<"diverged">;
|
|
2805
|
-
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
2806
|
-
}>, Schema.Struct<{
|
|
2807
|
-
readonly why: Schema.Literal<"refused">;
|
|
2808
|
-
readonly said: Schema.String;
|
|
2809
|
-
}>, Schema.Struct<{
|
|
2810
|
-
readonly why: Schema.Literal<"unauthorized">;
|
|
2811
|
-
}>]>;
|
|
2812
|
-
}>, Schema.Struct<{
|
|
2813
|
-
readonly state: Schema.Literal<"off">;
|
|
2814
|
-
}>]>;
|
|
2815
|
-
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
2816
|
-
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
2817
|
-
}>]>;
|
|
2818
|
-
}>>;
|
|
2819
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3069
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2820
3070
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
2821
3071
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
2822
3072
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -2889,7 +3139,42 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
2889
3139
|
readonly bytes: Schema.Int;
|
|
2890
3140
|
}>>>;
|
|
2891
3141
|
}>>;
|
|
2892
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never
|
|
3142
|
+
}>>, 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<{
|
|
3143
|
+
readonly mirrors: Schema.$Array<Schema.Struct<{
|
|
3144
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3145
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3146
|
+
readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
|
|
3147
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
3148
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
3149
|
+
readonly kind: Schema.Literal<"none">;
|
|
3150
|
+
}>, Schema.Struct<{
|
|
3151
|
+
readonly kind: Schema.Literal<"github">;
|
|
3152
|
+
readonly branch: Schema.String;
|
|
3153
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
3154
|
+
readonly state: Schema.Literal<"on">;
|
|
3155
|
+
}>, Schema.Struct<{
|
|
3156
|
+
readonly state: Schema.Literal<"paused">;
|
|
3157
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
3158
|
+
readonly why: Schema.Literal<"diverged">;
|
|
3159
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
3160
|
+
}>, Schema.Struct<{
|
|
3161
|
+
readonly why: Schema.Literal<"refused">;
|
|
3162
|
+
readonly said: Schema.String;
|
|
3163
|
+
}>, Schema.Struct<{
|
|
3164
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
3165
|
+
}>]>;
|
|
3166
|
+
}>, Schema.Struct<{
|
|
3167
|
+
readonly state: Schema.Literal<"off">;
|
|
3168
|
+
}>]>;
|
|
3169
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
3170
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3171
|
+
}>]>;
|
|
3172
|
+
}>>;
|
|
3173
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3174
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3175
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3176
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3177
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
2893
3178
|
declare class MeGroup extends MeGroup_base {}
|
|
2894
3179
|
declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
|
|
2895
3180
|
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">]>;
|
|
@@ -4343,10 +4628,21 @@ declare const OrgThreadsGroup_base: HttpApiGroup.HttpApiGroup<"orgThreads", Http
|
|
|
4343
4628
|
* endpoint but the list, which is the owner's, `ownerThreads.list`.
|
|
4344
4629
|
*/
|
|
4345
4630
|
declare class OrgThreadsGroup extends OrgThreadsGroup_base {}
|
|
4346
|
-
declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4631
|
+
declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiEndpoint.HttpApiEndpoint<"base", "GET", "/v1/sessions/:session/repos/:repo/base", Schema.toCodecStringTree<Schema.Struct<{
|
|
4347
4632
|
session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
4348
|
-
|
|
4349
|
-
|
|
4633
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
4634
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4635
|
+
readonly on: Schema.Union<readonly [Schema.Literal<"main">, Schema.Struct<{
|
|
4636
|
+
readonly thread: Schema.Int;
|
|
4637
|
+
}>]>;
|
|
4638
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
4639
|
+
readonly path: Schema.String;
|
|
4640
|
+
readonly url: Schema.String;
|
|
4641
|
+
readonly ref: Schema.Literal<"refs/heads/main">;
|
|
4642
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof RepoNotReady | typeof NoFork | typeof NoBase>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"blockers", "GET", "/v1/sessions/:session/blockers", Schema.toCodecStringTree<Schema.Struct<{
|
|
4643
|
+
session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
4644
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
4645
|
+
wait: Schema.optionalKey<Schema.Int>;
|
|
4350
4646
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4351
4647
|
readonly thread: Schema.Int;
|
|
4352
4648
|
readonly blockers: Schema.$Array<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
@@ -4801,6 +5097,7 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
4801
5097
|
readonly generation: Schema.Int;
|
|
4802
5098
|
readonly counter: Schema.Int;
|
|
4803
5099
|
}>;
|
|
5100
|
+
readonly reserved: Schema.optionalKey<Schema.Int>;
|
|
4804
5101
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4805
5102
|
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
4806
5103
|
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -4822,6 +5119,7 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
4822
5119
|
readonly mayRepeat: Schema.Boolean;
|
|
4823
5120
|
}>>;
|
|
4824
5121
|
readonly left: Schema.Int;
|
|
5122
|
+
readonly reservedKept: Schema.Boolean;
|
|
4825
5123
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof TakeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"tasks", "PUT", "/v1/sessions/:session/tasks", Schema.toCodecStringTree<Schema.Struct<{
|
|
4826
5124
|
session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
4827
5125
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -12372,127 +12670,114 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
|
|
|
12372
12670
|
* the stage as filters. A project the reader can't see answers as one that isn't there.
|
|
12373
12671
|
*/
|
|
12374
12672
|
declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
|
|
12375
|
-
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"
|
|
12376
|
-
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">]>;
|
|
12377
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12378
|
-
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12379
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
12380
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12381
|
-
readonly repos: Schema.$Array<Schema.Struct<{
|
|
12382
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12383
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12384
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12385
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12386
|
-
readonly kind: Schema.Literal<"project">;
|
|
12387
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12388
|
-
}>, Schema.Struct<{
|
|
12389
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12390
|
-
}>]>;
|
|
12391
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12392
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12393
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12394
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12395
|
-
}>>;
|
|
12396
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12397
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
12673
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
12398
12674
|
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">]>;
|
|
12399
12675
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12400
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12401
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12402
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12403
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12404
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12405
|
-
readonly kind: Schema.Literal<"project">;
|
|
12406
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12407
|
-
}>, Schema.Struct<{
|
|
12408
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12409
|
-
}>]>;
|
|
12410
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12411
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12412
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12413
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12414
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
12415
|
-
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">]>;
|
|
12416
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
12417
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12418
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
12419
12676
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12420
|
-
|
|
12421
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
12422
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12423
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12424
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12425
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12426
|
-
readonly kind: Schema.Literal<"project">;
|
|
12427
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12428
|
-
}>, Schema.Struct<{
|
|
12429
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12430
|
-
}>]>;
|
|
12431
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12432
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12433
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12434
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12435
|
-
}>>, 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<{
|
|
12677
|
+
key: Schema.String;
|
|
12678
|
+
}>>, 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<{
|
|
12436
12679
|
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">]>;
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
12440
|
-
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
12680
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12681
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12441
12682
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
readonly
|
|
12446
|
-
readonly
|
|
12447
|
-
readonly
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
readonly
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
}
|
|
12683
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
12684
|
+
line: Schema.Int;
|
|
12685
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12686
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12687
|
+
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
12688
|
+
readonly line: Schema.Int;
|
|
12689
|
+
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
12690
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
12691
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
12692
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12693
|
+
readonly threadNumber: Schema.Int;
|
|
12694
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12695
|
+
readonly turn: Schema.Int;
|
|
12696
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
12697
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
12698
|
+
}>>;
|
|
12699
|
+
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
12700
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12701
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12702
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12703
|
+
readonly step: Schema.Struct<{
|
|
12704
|
+
readonly name: Schema.String;
|
|
12705
|
+
readonly count: Schema.Int;
|
|
12706
|
+
readonly attempt: Schema.Int;
|
|
12707
|
+
}>;
|
|
12708
|
+
}>>;
|
|
12709
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
12458
12710
|
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">]>;
|
|
12459
12711
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12460
12712
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12461
|
-
readonly
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
readonly
|
|
12465
|
-
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
12466
|
-
readonly sequence: Schema.Int;
|
|
12467
|
-
readonly depth: Schema.Int;
|
|
12468
|
-
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
12713
|
+
readonly active: Schema.Struct<{
|
|
12714
|
+
readonly revision: Schema.Int;
|
|
12715
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12716
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
12469
12717
|
}>;
|
|
12470
|
-
readonly
|
|
12471
|
-
readonly
|
|
12472
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid"
|
|
12718
|
+
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
12719
|
+
readonly revision: Schema.Int;
|
|
12720
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12721
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
12473
12722
|
}>>;
|
|
12474
|
-
readonly
|
|
12475
|
-
readonly
|
|
12476
|
-
readonly
|
|
12477
|
-
readonly
|
|
12478
|
-
readonly
|
|
12479
|
-
readonly
|
|
12480
|
-
|
|
12481
|
-
readonly last: Schema.Int;
|
|
12482
|
-
}>>;
|
|
12483
|
-
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
12484
|
-
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
12485
|
-
readonly roots: Schema.$Array<Schema.Struct<{
|
|
12486
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12487
|
-
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
12488
|
-
}>>;
|
|
12723
|
+
readonly holding: Schema.$Array<Schema.Struct<{
|
|
12724
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12725
|
+
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
12726
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12727
|
+
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
12728
|
+
readonly gate: Schema.Int;
|
|
12729
|
+
readonly since: Schema.Int;
|
|
12489
12730
|
}>>;
|
|
12490
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound
|
|
12731
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
12491
12732
|
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">]>;
|
|
12492
12733
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12734
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12735
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12736
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12737
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12738
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
12739
|
+
readonly head: Schema.Struct<{
|
|
12740
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12741
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
12742
|
+
readonly branch: Schema.String;
|
|
12743
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12744
|
+
readonly generation: Schema.Int;
|
|
12745
|
+
}>;
|
|
12746
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12747
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12748
|
+
readonly agent: Schema.Struct<{
|
|
12749
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12750
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12751
|
+
}>;
|
|
12752
|
+
}>, Schema.Struct<{
|
|
12753
|
+
readonly workflow: Schema.Struct<{
|
|
12754
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12755
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12756
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12757
|
+
readonly step: Schema.Struct<{
|
|
12758
|
+
readonly name: Schema.String;
|
|
12759
|
+
readonly count: Schema.Int;
|
|
12760
|
+
readonly attempt: Schema.Int;
|
|
12761
|
+
}>;
|
|
12762
|
+
}>;
|
|
12763
|
+
}>]>;
|
|
12764
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
12765
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
12766
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
12767
|
+
readonly repair: Schema.Boolean;
|
|
12768
|
+
readonly current: Schema.Struct<{
|
|
12769
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12770
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
12771
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12772
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
12773
|
+
readonly intentRevision: Schema.Int;
|
|
12774
|
+
readonly generation: Schema.Int;
|
|
12775
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
12776
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
12777
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12778
|
+
}>;
|
|
12779
|
+
readonly threadNumber: Schema.Int;
|
|
12780
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
12496
12781
|
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">]>;
|
|
12497
12782
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12498
12783
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -12544,59 +12829,49 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
12544
12829
|
}>;
|
|
12545
12830
|
readonly threadNumber: Schema.Int;
|
|
12546
12831
|
}>>;
|
|
12547
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
12832
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
12548
12833
|
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">]>;
|
|
12549
12834
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12550
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12551
12835
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12552
|
-
readonly
|
|
12553
|
-
readonly
|
|
12554
|
-
readonly
|
|
12555
|
-
readonly
|
|
12556
|
-
readonly
|
|
12557
|
-
readonly
|
|
12558
|
-
readonly branch: Schema.String;
|
|
12559
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12560
|
-
readonly generation: Schema.Int;
|
|
12561
|
-
}>;
|
|
12562
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12563
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12564
|
-
readonly agent: Schema.Struct<{
|
|
12565
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12566
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12567
|
-
}>;
|
|
12836
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12837
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12838
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12839
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12840
|
+
readonly kind: Schema.Literal<"project">;
|
|
12841
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12568
12842
|
}>, Schema.Struct<{
|
|
12569
|
-
readonly
|
|
12570
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12571
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12572
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12573
|
-
readonly step: Schema.Struct<{
|
|
12574
|
-
readonly name: Schema.String;
|
|
12575
|
-
readonly count: Schema.Int;
|
|
12576
|
-
readonly attempt: Schema.Int;
|
|
12577
|
-
}>;
|
|
12578
|
-
}>;
|
|
12843
|
+
readonly kind: Schema.Literal<"owner">;
|
|
12579
12844
|
}>]>;
|
|
12580
|
-
readonly
|
|
12581
|
-
readonly
|
|
12582
|
-
readonly
|
|
12583
|
-
readonly
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
readonly
|
|
12592
|
-
readonly
|
|
12593
|
-
readonly
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12845
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12846
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12847
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12848
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12849
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
12850
|
+
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">]>;
|
|
12851
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12852
|
+
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12853
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
12854
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12855
|
+
readonly repos: Schema.$Array<Schema.Struct<{
|
|
12856
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12857
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12858
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12859
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12860
|
+
readonly kind: Schema.Literal<"project">;
|
|
12861
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12862
|
+
}>, Schema.Struct<{
|
|
12863
|
+
readonly kind: Schema.Literal<"owner">;
|
|
12864
|
+
}>]>;
|
|
12865
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12866
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12867
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12868
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12869
|
+
}>>;
|
|
12870
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12871
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
12872
|
+
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">]>;
|
|
12873
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12874
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12600
12875
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12601
12876
|
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12602
12877
|
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
@@ -13181,6 +13456,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13181
13456
|
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13182
13457
|
}>]>;
|
|
13183
13458
|
readonly state: Schema.Literals<readonly ["asked", "yes", "no", "expired", "refused", "revoked"]>;
|
|
13459
|
+
readonly why: Schema.optionalKey<Schema.Literals<readonly ["target", "self"]>>;
|
|
13184
13460
|
readonly asked: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
13185
13461
|
readonly by: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
13186
13462
|
readonly at: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
@@ -13204,7 +13480,109 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13204
13480
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13205
13481
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13206
13482
|
}>]>>>;
|
|
13207
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13483
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13484
|
+
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">]>;
|
|
13485
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13486
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13487
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13488
|
+
readonly version: Schema.Int;
|
|
13489
|
+
readonly baseline: Schema.Struct<{
|
|
13490
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13491
|
+
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
13492
|
+
readonly sequence: Schema.Int;
|
|
13493
|
+
readonly depth: Schema.Int;
|
|
13494
|
+
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13495
|
+
}>;
|
|
13496
|
+
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
13497
|
+
readonly sequence: Schema.Int;
|
|
13498
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13499
|
+
}>>;
|
|
13500
|
+
readonly packs: Schema.$Array<Schema.Struct<{
|
|
13501
|
+
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
13502
|
+
readonly key: Schema.String;
|
|
13503
|
+
readonly sha256: Schema.String;
|
|
13504
|
+
readonly bytes: Schema.Int;
|
|
13505
|
+
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
13506
|
+
readonly first: Schema.Int;
|
|
13507
|
+
readonly last: Schema.Int;
|
|
13508
|
+
}>>;
|
|
13509
|
+
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
13510
|
+
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
13511
|
+
readonly roots: Schema.$Array<Schema.Struct<{
|
|
13512
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13513
|
+
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13514
|
+
}>>;
|
|
13515
|
+
}>>;
|
|
13516
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", 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
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13520
|
+
readonly kind: Schema.Literal<"none">;
|
|
13521
|
+
}>, Schema.Struct<{
|
|
13522
|
+
readonly kind: Schema.Literal<"github">;
|
|
13523
|
+
readonly branch: Schema.String;
|
|
13524
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13525
|
+
readonly state: Schema.Literal<"on">;
|
|
13526
|
+
}>, Schema.Struct<{
|
|
13527
|
+
readonly state: Schema.Literal<"paused">;
|
|
13528
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13529
|
+
readonly why: Schema.Literal<"diverged">;
|
|
13530
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13531
|
+
}>, Schema.Struct<{
|
|
13532
|
+
readonly why: Schema.Literal<"refused">;
|
|
13533
|
+
readonly said: Schema.String;
|
|
13534
|
+
}>, Schema.Struct<{
|
|
13535
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
13536
|
+
}>]>;
|
|
13537
|
+
}>, Schema.Struct<{
|
|
13538
|
+
readonly state: Schema.Literal<"off">;
|
|
13539
|
+
}>]>;
|
|
13540
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13541
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13542
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13543
|
+
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">]>;
|
|
13544
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13545
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13546
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13547
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13548
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13549
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13550
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13551
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13552
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13553
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13554
|
+
readonly kind: Schema.Literal<"project">;
|
|
13555
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13556
|
+
}>, Schema.Struct<{
|
|
13557
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13558
|
+
}>]>;
|
|
13559
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13560
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13561
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13562
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13563
|
+
}>>, 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<{
|
|
13564
|
+
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">]>;
|
|
13565
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13566
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13567
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13568
|
+
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13569
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13570
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13571
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13572
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13573
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13574
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13575
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13576
|
+
readonly kind: Schema.Literal<"project">;
|
|
13577
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13578
|
+
}>, Schema.Struct<{
|
|
13579
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13580
|
+
}>]>;
|
|
13581
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13582
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13583
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13584
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13585
|
+
}>>, 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<{
|
|
13208
13586
|
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">]>;
|
|
13209
13587
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13210
13588
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -13256,55 +13634,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13256
13634
|
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13257
13635
|
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13258
13636
|
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13259
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13260
|
-
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">]>;
|
|
13261
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13262
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13263
|
-
readonly active: Schema.Struct<{
|
|
13264
|
-
readonly revision: Schema.Int;
|
|
13265
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13266
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13267
|
-
}>;
|
|
13268
|
-
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13269
|
-
readonly revision: Schema.Int;
|
|
13270
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13271
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13272
|
-
}>>;
|
|
13273
|
-
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13274
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13275
|
-
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13276
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13277
|
-
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
13278
|
-
readonly gate: Schema.Int;
|
|
13279
|
-
readonly since: Schema.Int;
|
|
13280
|
-
}>>;
|
|
13281
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13282
|
-
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">]>;
|
|
13283
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13284
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13285
|
-
readonly kind: Schema.Literal<"none">;
|
|
13286
|
-
}>, Schema.Struct<{
|
|
13287
|
-
readonly kind: Schema.Literal<"github">;
|
|
13288
|
-
readonly branch: Schema.String;
|
|
13289
|
-
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13290
|
-
readonly state: Schema.Literal<"on">;
|
|
13291
|
-
}>, Schema.Struct<{
|
|
13292
|
-
readonly state: Schema.Literal<"paused">;
|
|
13293
|
-
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13294
|
-
readonly why: Schema.Literal<"diverged">;
|
|
13295
|
-
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13296
|
-
}>, Schema.Struct<{
|
|
13297
|
-
readonly why: Schema.Literal<"refused">;
|
|
13298
|
-
readonly said: Schema.String;
|
|
13299
|
-
}>, Schema.Struct<{
|
|
13300
|
-
readonly why: Schema.Literal<"unauthorized">;
|
|
13301
|
-
}>]>;
|
|
13302
|
-
}>, Schema.Struct<{
|
|
13303
|
-
readonly state: Schema.Literal<"off">;
|
|
13304
|
-
}>]>;
|
|
13305
|
-
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13306
|
-
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13307
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13637
|
+
}>>, 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<{
|
|
13308
13638
|
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">]>;
|
|
13309
13639
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13310
13640
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13334,38 +13664,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13334
13664
|
}>]>;
|
|
13335
13665
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13336
13666
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13337
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never
|
|
13338
|
-
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">]>;
|
|
13339
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13340
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13341
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13342
|
-
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13343
|
-
line: Schema.Int;
|
|
13344
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13345
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13346
|
-
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13347
|
-
readonly line: Schema.Int;
|
|
13348
|
-
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13349
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13350
|
-
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13351
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13352
|
-
readonly threadNumber: Schema.Int;
|
|
13353
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13354
|
-
readonly turn: Schema.Int;
|
|
13355
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13356
|
-
readonly model: Schema.optionalKey<Schema.String>;
|
|
13357
|
-
}>>;
|
|
13358
|
-
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13359
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13360
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13361
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13362
|
-
readonly step: Schema.Struct<{
|
|
13363
|
-
readonly name: Schema.String;
|
|
13364
|
-
readonly count: Schema.Int;
|
|
13365
|
-
readonly attempt: Schema.Int;
|
|
13366
|
-
}>;
|
|
13367
|
-
}>>;
|
|
13368
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
|
|
13667
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never>, false>;
|
|
13369
13668
|
/**
|
|
13370
13669
|
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
13371
13670
|
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
@@ -16992,183 +17291,25 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
16992
17291
|
* person.
|
|
16993
17292
|
*/
|
|
16994
17293
|
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
16995
|
-
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17294
|
+
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
17295
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
16996
17296
|
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">]>;
|
|
16997
17297
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
16998
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
16999
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17000
|
-
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17001
|
-
readonly kind: Schema.Literal<"main">;
|
|
17002
|
-
}>, Schema.Struct<{
|
|
17003
|
-
readonly kind: Schema.Literal<"thread">;
|
|
17004
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17005
|
-
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17006
|
-
}>]>;
|
|
17007
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17008
|
-
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17009
17298
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17010
|
-
|
|
17011
|
-
}>>, Schema.toCodecJson<Schema.
|
|
17299
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17300
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17301
|
+
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17302
|
+
}>>, 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<{
|
|
17303
|
+
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">]>;
|
|
17304
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17305
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17306
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17307
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
17308
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17309
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17012
17310
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17013
17311
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17014
|
-
readonly
|
|
17015
|
-
readonly rerun: Schema.Int;
|
|
17016
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17017
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17018
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17019
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17020
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17021
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17022
|
-
}>, Schema.Struct<{
|
|
17023
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17024
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17025
|
-
readonly rerun: Schema.Int;
|
|
17026
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17027
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17028
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17029
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17030
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17031
|
-
readonly state: Schema.Literal<"ended">;
|
|
17032
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17033
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17034
|
-
}>, Schema.Struct<{
|
|
17035
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17036
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17037
|
-
readonly rerun: Schema.Int;
|
|
17038
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17039
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17040
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17041
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17042
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17043
|
-
readonly state: Schema.Literal<"ended">;
|
|
17044
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17045
|
-
}>]>>;
|
|
17046
|
-
}>, Schema.Struct<{
|
|
17047
|
-
readonly waiting: Schema.Struct<{
|
|
17048
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17049
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17050
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17051
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17052
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17053
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17054
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17055
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17056
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17057
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17058
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17059
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17060
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17061
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17062
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17063
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17064
|
-
readonly kind: Schema.Literal<"person">;
|
|
17065
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17066
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17067
|
-
}>, Schema.Struct<{
|
|
17068
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17069
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17070
|
-
}>, Schema.Struct<{
|
|
17071
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17072
|
-
readonly permission: Schema.String;
|
|
17073
|
-
}>]>>;
|
|
17074
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17075
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17076
|
-
}>>;
|
|
17077
|
-
}>>;
|
|
17078
|
-
}>;
|
|
17079
|
-
}>]>>, 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<{
|
|
17080
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17081
|
-
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">]>;
|
|
17082
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17083
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17084
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17085
|
-
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17086
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17087
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17088
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17089
|
-
readonly rerun: Schema.Int;
|
|
17090
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17091
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17092
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17093
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17094
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17095
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17096
|
-
}>, Schema.Struct<{
|
|
17097
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17098
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17099
|
-
readonly rerun: Schema.Int;
|
|
17100
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17101
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17102
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17103
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17104
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17105
|
-
readonly state: Schema.Literal<"ended">;
|
|
17106
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17107
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17108
|
-
}>, Schema.Struct<{
|
|
17109
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17110
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17111
|
-
readonly rerun: Schema.Int;
|
|
17112
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17113
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17114
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17115
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17116
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17117
|
-
readonly state: Schema.Literal<"ended">;
|
|
17118
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17119
|
-
}>]>>;
|
|
17120
|
-
}>, Schema.Struct<{
|
|
17121
|
-
readonly waiting: Schema.Struct<{
|
|
17122
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17123
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17124
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17125
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17126
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17127
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17128
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17129
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17130
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17131
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17132
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17133
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17134
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17135
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17136
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17137
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17138
|
-
readonly kind: Schema.Literal<"person">;
|
|
17139
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17140
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17141
|
-
}>, Schema.Struct<{
|
|
17142
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17143
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17144
|
-
}>, Schema.Struct<{
|
|
17145
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17146
|
-
readonly permission: Schema.String;
|
|
17147
|
-
}>]>>;
|
|
17148
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17149
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17150
|
-
}>>;
|
|
17151
|
-
}>>;
|
|
17152
|
-
}>;
|
|
17153
|
-
}>]>>, 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<{
|
|
17154
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17155
|
-
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">]>;
|
|
17156
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17157
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17158
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17159
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17160
|
-
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17161
|
-
}>>, 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<{
|
|
17162
|
-
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">]>;
|
|
17163
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17164
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17165
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17166
|
-
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
17167
|
-
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17168
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17169
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17170
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17171
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17312
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17172
17313
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17173
17314
|
readonly rerun: Schema.Int;
|
|
17174
17315
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
@@ -17701,22 +17842,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17701
17842
|
readonly state: Schema.Literal<"ended">;
|
|
17702
17843
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17703
17844
|
}>]>;
|
|
17704
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
17705
|
-
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">]>;
|
|
17706
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17707
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17708
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17709
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17710
|
-
}>, Schema.Struct<{
|
|
17711
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17712
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
17713
|
-
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17714
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17715
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17716
|
-
}>, Schema.Struct<{
|
|
17717
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17718
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
17719
|
-
}>]>>, 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<{
|
|
17845
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
17720
17846
|
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">]>;
|
|
17721
17847
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17722
17848
|
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
@@ -17842,7 +17968,180 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17842
17968
|
}>>;
|
|
17843
17969
|
readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
|
|
17844
17970
|
readonly more: Schema.Boolean;
|
|
17845
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never
|
|
17971
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
|
|
17972
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17973
|
+
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">]>;
|
|
17974
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17975
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17976
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17977
|
+
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17978
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17979
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17980
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17981
|
+
readonly rerun: Schema.Int;
|
|
17982
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17983
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17984
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17985
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17986
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17987
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17988
|
+
}>, Schema.Struct<{
|
|
17989
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17990
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17991
|
+
readonly rerun: Schema.Int;
|
|
17992
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17993
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17994
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17995
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17996
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17997
|
+
readonly state: Schema.Literal<"ended">;
|
|
17998
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17999
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18000
|
+
}>, Schema.Struct<{
|
|
18001
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18002
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18003
|
+
readonly rerun: Schema.Int;
|
|
18004
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18005
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18006
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18007
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18008
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18009
|
+
readonly state: Schema.Literal<"ended">;
|
|
18010
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18011
|
+
}>]>>;
|
|
18012
|
+
}>, Schema.Struct<{
|
|
18013
|
+
readonly waiting: Schema.Struct<{
|
|
18014
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18015
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18016
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18017
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18018
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18019
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18020
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18021
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18022
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18023
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
18024
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18025
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18026
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18027
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18028
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
18029
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18030
|
+
readonly kind: Schema.Literal<"person">;
|
|
18031
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18032
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18033
|
+
}>, Schema.Struct<{
|
|
18034
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18035
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18036
|
+
}>, Schema.Struct<{
|
|
18037
|
+
readonly kind: Schema.Literal<"holders">;
|
|
18038
|
+
readonly permission: Schema.String;
|
|
18039
|
+
}>]>>;
|
|
18040
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
18041
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18042
|
+
}>>;
|
|
18043
|
+
}>>;
|
|
18044
|
+
}>;
|
|
18045
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
|
|
18046
|
+
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">]>;
|
|
18047
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18048
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18049
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18050
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18051
|
+
}>, Schema.Struct<{
|
|
18052
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18053
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18054
|
+
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18055
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18056
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18057
|
+
}>, Schema.Struct<{
|
|
18058
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18059
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18060
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
18061
|
+
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">]>;
|
|
18062
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18063
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18064
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18065
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
18066
|
+
readonly kind: Schema.Literal<"main">;
|
|
18067
|
+
}>, Schema.Struct<{
|
|
18068
|
+
readonly kind: Schema.Literal<"thread">;
|
|
18069
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18070
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
18071
|
+
}>]>;
|
|
18072
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18073
|
+
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18074
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18075
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18076
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18077
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18078
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18079
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18080
|
+
readonly rerun: Schema.Int;
|
|
18081
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18082
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18083
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18084
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18085
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18086
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
18087
|
+
}>, Schema.Struct<{
|
|
18088
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18089
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18090
|
+
readonly rerun: Schema.Int;
|
|
18091
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18092
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18093
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18094
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18095
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18096
|
+
readonly state: Schema.Literal<"ended">;
|
|
18097
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18098
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18099
|
+
}>, Schema.Struct<{
|
|
18100
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18101
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18102
|
+
readonly rerun: Schema.Int;
|
|
18103
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18104
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18105
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18106
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18107
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18108
|
+
readonly state: Schema.Literal<"ended">;
|
|
18109
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18110
|
+
}>]>>;
|
|
18111
|
+
}>, Schema.Struct<{
|
|
18112
|
+
readonly waiting: Schema.Struct<{
|
|
18113
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18114
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18115
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18116
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18117
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18118
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18119
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18120
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18121
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18122
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
18123
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18124
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18125
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18126
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18127
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
18128
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18129
|
+
readonly kind: Schema.Literal<"person">;
|
|
18130
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18131
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18132
|
+
}>, Schema.Struct<{
|
|
18133
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18134
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18135
|
+
}>, Schema.Struct<{
|
|
18136
|
+
readonly kind: Schema.Literal<"holders">;
|
|
18137
|
+
readonly permission: Schema.String;
|
|
18138
|
+
}>]>>;
|
|
18139
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
18140
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18141
|
+
}>>;
|
|
18142
|
+
}>>;
|
|
18143
|
+
}>;
|
|
18144
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never>, false>;
|
|
17846
18145
|
/**
|
|
17847
18146
|
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
17848
18147
|
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
@@ -17854,23 +18153,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17854
18153
|
* in.
|
|
17855
18154
|
*/
|
|
17856
18155
|
declare class RunsGroup extends RunsGroup_base {}
|
|
17857
|
-
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17858
|
-
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">]>;
|
|
17859
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17860
|
-
readonly client: Schema.String;
|
|
17861
|
-
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
17862
|
-
readonly create: Schema.optionalKey<Schema.Boolean>;
|
|
17863
|
-
readonly access: Schema.Literals<readonly ["read", "act"]>;
|
|
17864
|
-
readonly projects: Schema.NonEmptyArray<Schema.Struct<{
|
|
17865
|
-
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">]>;
|
|
17866
|
-
readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
17867
|
-
}>>;
|
|
17868
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17869
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17870
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17871
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17872
|
-
readonly client: Schema.String;
|
|
17873
|
-
}>>, 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<{
|
|
18156
|
+
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
|
|
17874
18157
|
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">]>;
|
|
17875
18158
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17876
18159
|
readonly request: Schema.String;
|
|
@@ -17886,7 +18169,23 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
17886
18169
|
readonly request: Schema.String;
|
|
17887
18170
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17888
18171
|
readonly redirect: Schema.String;
|
|
17889
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18172
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18173
|
+
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">]>;
|
|
18174
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18175
|
+
readonly client: Schema.String;
|
|
18176
|
+
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
18177
|
+
readonly create: Schema.optionalKey<Schema.Boolean>;
|
|
18178
|
+
readonly access: Schema.Literals<readonly ["read", "act"]>;
|
|
18179
|
+
readonly projects: Schema.NonEmptyArray<Schema.Struct<{
|
|
18180
|
+
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">]>;
|
|
18181
|
+
readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
18182
|
+
}>>;
|
|
18183
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18184
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18185
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18186
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18187
|
+
readonly client: Schema.String;
|
|
18188
|
+
}>>, 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<{
|
|
17890
18189
|
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">]>;
|
|
17891
18190
|
grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17892
18191
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -17902,17 +18201,50 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
17902
18201
|
* consented, hands the client its code.
|
|
17903
18202
|
*/
|
|
17904
18203
|
declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
|
|
17905
|
-
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17906
|
-
readonly
|
|
17907
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18204
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18205
|
+
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">]>;
|
|
17908
18206
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17909
|
-
|
|
17910
|
-
|
|
17911
|
-
|
|
17912
|
-
readonly
|
|
17913
|
-
readonly
|
|
17914
|
-
readonly
|
|
17915
|
-
|
|
18207
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18208
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18209
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18210
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
18211
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
18212
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
18213
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18214
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18215
|
+
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"]>;
|
|
18216
|
+
readonly quantity: Schema.Finite;
|
|
18217
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18218
|
+
}>>;
|
|
18219
|
+
}>>;
|
|
18220
|
+
readonly work: Schema.$Array<Schema.Struct<{
|
|
18221
|
+
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18222
|
+
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18223
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18224
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18225
|
+
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"]>;
|
|
18226
|
+
readonly quantity: Schema.Finite;
|
|
18227
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18228
|
+
}>>;
|
|
18229
|
+
}>>;
|
|
18230
|
+
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18231
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18232
|
+
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18233
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18234
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18235
|
+
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18236
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18237
|
+
readonly bytes: Schema.Int;
|
|
18238
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18239
|
+
}>>;
|
|
18240
|
+
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18241
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18242
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18243
|
+
readonly counts: Schema.Int;
|
|
18244
|
+
readonly bytes: Schema.Int;
|
|
18245
|
+
}>>>;
|
|
18246
|
+
}>>;
|
|
18247
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
17916
18248
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
17917
18249
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17918
18250
|
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
@@ -17921,23 +18253,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
17921
18253
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
17922
18254
|
}>>;
|
|
17923
18255
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
17924
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
17925
|
-
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">]>;
|
|
17926
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
17927
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17928
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17929
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
17930
|
-
readonly kind: Schema.Literal<"person">;
|
|
17931
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17932
|
-
}>, Schema.Struct<{
|
|
17933
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17934
|
-
readonly agent: Schema.Struct<{
|
|
17935
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17936
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17937
|
-
}>;
|
|
17938
|
-
}>]>;
|
|
17939
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
17940
|
-
}>>, 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<{
|
|
18256
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
|
|
17941
18257
|
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">]>;
|
|
17942
18258
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17943
18259
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18112,50 +18428,33 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18112
18428
|
}>>;
|
|
18113
18429
|
}>;
|
|
18114
18430
|
readonly pricesAsOf: Schema.String;
|
|
18115
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18431
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18116
18432
|
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">]>;
|
|
18433
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18434
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18435
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18436
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18437
|
+
readonly kind: Schema.Literal<"person">;
|
|
18438
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18439
|
+
}>, Schema.Struct<{
|
|
18440
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18441
|
+
readonly agent: Schema.Struct<{
|
|
18442
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18443
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18444
|
+
}>;
|
|
18445
|
+
}>]>;
|
|
18446
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18447
|
+
}>>, 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<{
|
|
18448
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18449
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18117
18450
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
readonly
|
|
18122
|
-
readonly
|
|
18123
|
-
readonly
|
|
18124
|
-
|
|
18125
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18126
|
-
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"]>;
|
|
18127
|
-
readonly quantity: Schema.Finite;
|
|
18128
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18129
|
-
}>>;
|
|
18130
|
-
}>>;
|
|
18131
|
-
readonly work: Schema.$Array<Schema.Struct<{
|
|
18132
|
-
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18133
|
-
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18134
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18135
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18136
|
-
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"]>;
|
|
18137
|
-
readonly quantity: Schema.Finite;
|
|
18138
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18139
|
-
}>>;
|
|
18140
|
-
}>>;
|
|
18141
|
-
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18142
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18143
|
-
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18144
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18145
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18146
|
-
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18147
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18148
|
-
readonly bytes: Schema.Int;
|
|
18149
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18150
|
-
}>>;
|
|
18151
|
-
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18152
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18153
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18154
|
-
readonly counts: Schema.Int;
|
|
18155
|
-
readonly bytes: Schema.Int;
|
|
18156
|
-
}>>>;
|
|
18157
|
-
}>>;
|
|
18158
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18451
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18452
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18453
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18454
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18455
|
+
readonly displayName: Schema.String;
|
|
18456
|
+
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18457
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never>, false>;
|
|
18159
18458
|
/**
|
|
18160
18459
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18161
18460
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
@@ -18219,37 +18518,9 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18219
18518
|
}>]>;
|
|
18220
18519
|
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18221
18520
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18222
|
-
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
18223
|
-
declare class MembersGroup extends MembersGroup_base {}
|
|
18224
|
-
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18225
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18226
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18227
|
-
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18228
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18229
|
-
readonly organization: Schema.Struct<{
|
|
18230
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18231
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18232
|
-
}>;
|
|
18233
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18234
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18235
|
-
}>>;
|
|
18236
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18237
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18238
|
-
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">]>;
|
|
18239
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18240
|
-
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">]>;
|
|
18241
|
-
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
18242
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18243
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18244
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18245
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18246
|
-
readonly invitee: Schema.Struct<{
|
|
18247
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18248
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18249
|
-
}>;
|
|
18250
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18251
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18252
|
-
}>>, 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<{
|
|
18521
|
+
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
18522
|
+
declare class MembersGroup extends MembersGroup_base {}
|
|
18523
|
+
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18253
18524
|
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">]>;
|
|
18254
18525
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18255
18526
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
@@ -18268,14 +18539,29 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18268
18539
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18269
18540
|
}>>;
|
|
18270
18541
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18271
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18272
|
-
|
|
18542
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18543
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18544
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18545
|
+
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18546
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18547
|
+
readonly organization: Schema.Struct<{
|
|
18548
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18549
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18550
|
+
}>;
|
|
18551
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18552
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18553
|
+
}>>;
|
|
18554
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18555
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
18273
18556
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18274
18557
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18275
18558
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18276
18559
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18277
18560
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18278
|
-
|
|
18561
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18562
|
+
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18563
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18564
|
+
}>>, 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<{
|
|
18279
18565
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18280
18566
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18281
18567
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -18284,22 +18570,84 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18284
18570
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18285
18571
|
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18286
18572
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18287
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18573
|
+
}>>, 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<{
|
|
18574
|
+
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">]>;
|
|
18288
18575
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18289
18576
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18290
18577
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18291
18578
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18292
18579
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18293
|
-
|
|
18294
|
-
readonly
|
|
18580
|
+
}>>, 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<{
|
|
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">]>;
|
|
18582
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18583
|
+
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">]>;
|
|
18584
|
+
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
18585
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18586
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18587
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18588
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18589
|
+
readonly invitee: Schema.Struct<{
|
|
18590
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18591
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18592
|
+
}>;
|
|
18295
18593
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18296
|
-
|
|
18594
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18595
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never>, false>;
|
|
18297
18596
|
/**
|
|
18298
18597
|
* Invitations: an organization's admins send, list and withdraw them; the person invited lists
|
|
18299
18598
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
18300
18599
|
*/
|
|
18301
18600
|
declare class InvitationsGroup extends InvitationsGroup_base {}
|
|
18302
|
-
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18601
|
+
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18602
|
+
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">]>;
|
|
18603
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18604
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18605
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
18606
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18607
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18608
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18609
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18610
|
+
readonly kind: Schema.Literal<"owner">;
|
|
18611
|
+
}>, Schema.Struct<{
|
|
18612
|
+
readonly kind: Schema.Literal<"project">;
|
|
18613
|
+
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18614
|
+
}>, Schema.Struct<{
|
|
18615
|
+
readonly kind: Schema.Literal<"thread">;
|
|
18616
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18617
|
+
}>, Schema.Struct<{
|
|
18618
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18619
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18620
|
+
}>]>;
|
|
18621
|
+
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18622
|
+
readonly kind: Schema.Literal<"person">;
|
|
18623
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18624
|
+
}>, Schema.Struct<{
|
|
18625
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18626
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18627
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18628
|
+
}>, Schema.Struct<{
|
|
18629
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18630
|
+
readonly agent: Schema.Struct<{
|
|
18631
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18632
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18633
|
+
}>;
|
|
18634
|
+
}>]>;
|
|
18635
|
+
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18636
|
+
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18637
|
+
readonly kind: Schema.Literal<"person">;
|
|
18638
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18639
|
+
}>, Schema.Struct<{
|
|
18640
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18641
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18642
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18643
|
+
}>, Schema.Struct<{
|
|
18644
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18645
|
+
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")[]>;
|
|
18646
|
+
}>]>;
|
|
18647
|
+
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18648
|
+
}>>;
|
|
18649
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18650
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18303
18651
|
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">]>;
|
|
18304
18652
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18305
18653
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18411,56 +18759,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18411
18759
|
}>;
|
|
18412
18760
|
}>]>;
|
|
18413
18761
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18414
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never
|
|
18415
|
-
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">]>;
|
|
18416
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18417
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18418
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18419
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18420
|
-
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18421
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18422
|
-
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18423
|
-
readonly kind: Schema.Literal<"owner">;
|
|
18424
|
-
}>, Schema.Struct<{
|
|
18425
|
-
readonly kind: Schema.Literal<"project">;
|
|
18426
|
-
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18427
|
-
}>, Schema.Struct<{
|
|
18428
|
-
readonly kind: Schema.Literal<"thread">;
|
|
18429
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18430
|
-
}>, Schema.Struct<{
|
|
18431
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18432
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18433
|
-
}>]>;
|
|
18434
|
-
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18435
|
-
readonly kind: Schema.Literal<"person">;
|
|
18436
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18437
|
-
}>, Schema.Struct<{
|
|
18438
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18439
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18440
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18441
|
-
}>, Schema.Struct<{
|
|
18442
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18443
|
-
readonly agent: Schema.Struct<{
|
|
18444
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18445
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18446
|
-
}>;
|
|
18447
|
-
}>]>;
|
|
18448
|
-
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18449
|
-
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18450
|
-
readonly kind: Schema.Literal<"person">;
|
|
18451
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18452
|
-
}>, Schema.Struct<{
|
|
18453
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18454
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18455
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18456
|
-
}>, Schema.Struct<{
|
|
18457
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18458
|
-
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")[]>;
|
|
18459
|
-
}>]>;
|
|
18460
|
-
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18461
|
-
}>>;
|
|
18462
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18463
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18762
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never>, false>;
|
|
18464
18763
|
/**
|
|
18465
18764
|
* An organization's grants (layer 1): any person lists those they may see; an admin gives one or
|
|
18466
18765
|
* takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
|
|
@@ -18468,13 +18767,10 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18468
18767
|
* `OrganizationNotFound`.
|
|
18469
18768
|
*/
|
|
18470
18769
|
declare class GrantsGroup extends GrantsGroup_base {}
|
|
18471
|
-
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18770
|
+
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
|
|
18472
18771
|
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">]>;
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18476
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18477
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18772
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18773
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18478
18774
|
readonly agent: Schema.Struct<{
|
|
18479
18775
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18480
18776
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18482,10 +18778,29 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18482
18778
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18483
18779
|
readonly generation: Schema.Int;
|
|
18484
18780
|
readonly turnedOff: Schema.Boolean;
|
|
18485
|
-
|
|
18781
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18782
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18486
18783
|
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">]>;
|
|
18487
|
-
|
|
18488
|
-
|
|
18784
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18785
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18786
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
18787
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18788
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
18789
|
+
readonly agent: Schema.Struct<{
|
|
18790
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18791
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18792
|
+
}>;
|
|
18793
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18794
|
+
readonly generation: Schema.Int;
|
|
18795
|
+
readonly turnedOff: Schema.Boolean;
|
|
18796
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18797
|
+
}>>;
|
|
18798
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18799
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18800
|
+
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">]>;
|
|
18801
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18802
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18803
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18489
18804
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18490
18805
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18491
18806
|
readonly agent: Schema.Struct<{
|
|
@@ -18495,7 +18810,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18495
18810
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18496
18811
|
readonly generation: Schema.Int;
|
|
18497
18812
|
readonly turnedOff: Schema.Boolean;
|
|
18498
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18813
|
+
}>>, 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<{
|
|
18499
18814
|
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">]>;
|
|
18500
18815
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18501
18816
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18508,10 +18823,12 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18508
18823
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18509
18824
|
readonly generation: Schema.Int;
|
|
18510
18825
|
readonly turnedOff: Schema.Boolean;
|
|
18511
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18826
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/owners/:owner/agents/:agent/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
18512
18827
|
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">]>;
|
|
18513
18828
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18514
|
-
}>>, never, never,
|
|
18829
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18830
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18831
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18515
18832
|
readonly agent: Schema.Struct<{
|
|
18516
18833
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18517
18834
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18519,25 +18836,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18519
18836
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18520
18837
|
readonly generation: Schema.Int;
|
|
18521
18838
|
readonly turnedOff: Schema.Boolean;
|
|
18522
|
-
|
|
18523
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18524
|
-
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">]>;
|
|
18525
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18526
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18527
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18528
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18529
|
-
readonly agents: Schema.$Array<Schema.Struct<{
|
|
18530
|
-
readonly agent: Schema.Struct<{
|
|
18531
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18532
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18533
|
-
}>;
|
|
18534
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18535
|
-
readonly generation: Schema.Int;
|
|
18536
|
-
readonly turnedOff: Schema.Boolean;
|
|
18537
|
-
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18538
|
-
}>>;
|
|
18539
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18540
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18839
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18541
18840
|
/**
|
|
18542
18841
|
* An owner's agents (layer 1): an organization's members, or a person themselves, read them and
|
|
18543
18842
|
* turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
|
|
@@ -18590,7 +18889,34 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18590
18889
|
* decides. People only, by approval.
|
|
18591
18890
|
*/
|
|
18592
18891
|
declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
|
|
18593
|
-
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18892
|
+
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18893
|
+
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">]>;
|
|
18894
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18895
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18896
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
18897
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18898
|
+
readonly disables: Schema.$Array<Schema.Struct<{
|
|
18899
|
+
readonly agent: Schema.Struct<{
|
|
18900
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18901
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18902
|
+
}>;
|
|
18903
|
+
readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18904
|
+
readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
|
|
18905
|
+
readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
|
|
18906
|
+
readonly kind: Schema.Literal<"person">;
|
|
18907
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18908
|
+
}>, Schema.Struct<{
|
|
18909
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18910
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18911
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18912
|
+
}>, Schema.Struct<{
|
|
18913
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18914
|
+
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")[]>;
|
|
18915
|
+
}>]>;
|
|
18916
|
+
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
18917
|
+
}>>;
|
|
18918
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18919
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18594
18920
|
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">]>;
|
|
18595
18921
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18596
18922
|
readonly agent: Schema.Struct<{
|
|
@@ -18622,34 +18948,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
18622
18948
|
}>;
|
|
18623
18949
|
readonly targetGeneration: Schema.Int;
|
|
18624
18950
|
readonly turnedOff: Schema.Boolean;
|
|
18625
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never
|
|
18626
|
-
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">]>;
|
|
18627
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18628
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18629
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18630
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18631
|
-
readonly disables: Schema.$Array<Schema.Struct<{
|
|
18632
|
-
readonly agent: Schema.Struct<{
|
|
18633
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18634
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18635
|
-
}>;
|
|
18636
|
-
readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18637
|
-
readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
|
|
18638
|
-
readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
|
|
18639
|
-
readonly kind: Schema.Literal<"person">;
|
|
18640
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18641
|
-
}>, Schema.Struct<{
|
|
18642
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18643
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18644
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18645
|
-
}>, Schema.Struct<{
|
|
18646
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18647
|
-
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")[]>;
|
|
18648
|
-
}>]>;
|
|
18649
|
-
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
18650
|
-
}>>;
|
|
18651
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18652
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18951
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18653
18952
|
/**
|
|
18654
18953
|
* Agents of other owners an organization's admin turns off there (layer 1), such as a member's
|
|
18655
18954
|
* own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
|
|
@@ -19965,7 +20264,7 @@ interface GateOwn {
|
|
|
19965
20264
|
* `[]` for a check other code calls or people run by hand. Whether any other start may make a new
|
|
19966
20265
|
* run is its start rule's.
|
|
19967
20266
|
*/
|
|
19968
|
-
declare const CheckOn: Schema.$Array<Schema.Literals<readonly ["change", "tip"
|
|
20267
|
+
declare const CheckOn: Schema.$Array<Schema.Literals<readonly ["change", "tip"]>>;
|
|
19969
20268
|
type CheckOn = typeof CheckOn.Type;
|
|
19970
20269
|
/** A sandbox's size, each Cloudflare's instance type: `standard-1` unless its file says. */
|
|
19971
20270
|
declare const SandboxSize: Schema.Literals<readonly ["standard-1", "standard-2", "standard-4"]>;
|
|
@@ -27115,22 +27414,6 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
27115
27414
|
readonly kind: Schema.String;
|
|
27116
27415
|
}>]>;
|
|
27117
27416
|
type ReadEvent = typeof ReadEvent.Type;
|
|
27118
|
-
//#endregion
|
|
27119
|
-
//#region src/routes.d.ts
|
|
27120
|
-
/**
|
|
27121
|
-
* ref0's one origin, as a client is given it: `http` or `https`, a host and maybe a port, and no
|
|
27122
|
-
* credentials, path, query or fragment. That pattern alone lets through a host or port no URL has,
|
|
27123
|
-
* such as `https://1.2.3.999`, `https://[1::2::3]` or `https://ref0.test:99999`, so the platform's own URL parser must take
|
|
27124
|
-
* it too. It's kept as written, case and any default port too: every path here is appended to it
|
|
27125
|
-
* as it is.
|
|
27126
|
-
*/
|
|
27127
|
-
declare const ApiOrigin: Schema.brand<Schema.String, "ApiOrigin">;
|
|
27128
|
-
type ApiOrigin = typeof ApiOrigin.Type;
|
|
27129
|
-
/**
|
|
27130
|
-
* Whether a path is Worker "server"'s to answer, not a page's: the API's, signing in's, a
|
|
27131
|
-
* connection's webhook, or OAuth's metadata.
|
|
27132
|
-
*/
|
|
27133
|
-
declare const isRef0Path: (pathname: string) => boolean;
|
|
27134
27417
|
/**
|
|
27135
27418
|
* A track as its socket's URL names it: `session:<session>`, `owner:<owner>`, and so on. Any
|
|
27136
27419
|
* string crosses the wire as one; `trackFromName` says whether it names a track.
|
|
@@ -27196,7 +27479,9 @@ type LiveTicket = typeof LiveTicket.Type;
|
|
|
27196
27479
|
* Who a passkey request asks: the accountable person; a person, by their name; or anyone holding
|
|
27197
27480
|
* one of the repo's permissions, the first of whom to answer decides. Until a permission's holders
|
|
27198
27481
|
* are kept, they're its owner's admins. A workflow run's `passkey.run` asks its run's accountable
|
|
27199
|
-
* person; a gate's `passkey.check` asks the person behind the run that meets its need.
|
|
27482
|
+
* person; a gate's `passkey.check` asks the person behind the run that meets its need. A person or
|
|
27483
|
+
* a permission is someone else, a second pair of eyes, so the person `'accountable'` would ask
|
|
27484
|
+
* never answers it: a request with nobody else to ask is refused.
|
|
27200
27485
|
*/
|
|
27201
27486
|
declare const PasskeyFrom: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
27202
27487
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
@@ -28711,6 +28996,8 @@ type WorkflowPasskeyAsk = typeof WorkflowPasskeyAsk.Type;
|
|
|
28711
28996
|
* - `undeclared`: the workflow's `permissions.ask` doesn't name this kind of `from`, or the
|
|
28712
28997
|
* statement isn't one of its code's templates.
|
|
28713
28998
|
* - `target`: no such person, or one who can't see where the workflow lives.
|
|
28999
|
+
* - `self`: `from` names the run's accountable person, or a permission they alone hold. A yes from
|
|
29000
|
+
* someone else is a second pair of eyes only when it isn't theirs: `'accountable'` asks them.
|
|
28714
29001
|
* - `budget`: the run has asked as much as its `asks` budget allows, or its workflow as many as a
|
|
28715
29002
|
* day allows.
|
|
28716
29003
|
* - `length`: the statement is longer than one may be.
|
|
@@ -28721,7 +29008,7 @@ type WorkflowPasskeyAsk = typeof WorkflowPasskeyAsk.Type;
|
|
|
28721
29008
|
* - `agent`: `from` names an agent, such as one that answered an ask, and an agent has no passkey.
|
|
28722
29009
|
* The SDK refuses it before asking ref0.
|
|
28723
29010
|
*/
|
|
28724
|
-
declare const PasskeyRefusal: Schema.Literals<readonly ["undeclared", "target", "budget", "length", "secret", "ended", "changed", "invalid", "agent"]>;
|
|
29011
|
+
declare const PasskeyRefusal: Schema.Literals<readonly ["undeclared", "target", "self", "budget", "length", "secret", "ended", "changed", "invalid", "agent"]>;
|
|
28725
29012
|
type PasskeyRefusal = typeof PasskeyRefusal.Type;
|
|
28726
29013
|
/** ref0's answer to a `passkey.run`'s ask: the request, or why not. A refusal is never thrown. */
|
|
28727
29014
|
declare const WorkflowPasskeyAsked: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -28729,7 +29016,7 @@ declare const WorkflowPasskeyAsked: Schema.Union<readonly [Schema.Struct<{
|
|
|
28729
29016
|
readonly request: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
28730
29017
|
}>, Schema.Struct<{
|
|
28731
29018
|
readonly kind: Schema.Literal<"refused">;
|
|
28732
|
-
readonly why: Schema.Literals<readonly ["undeclared", "target", "budget", "length", "secret", "ended", "changed", "invalid", "agent"]>;
|
|
29019
|
+
readonly why: Schema.Literals<readonly ["undeclared", "target", "self", "budget", "length", "secret", "ended", "changed", "invalid", "agent"]>;
|
|
28733
29020
|
}>]>;
|
|
28734
29021
|
type WorkflowPasskeyAsked = typeof WorkflowPasskeyAsked.Type;
|
|
28735
29022
|
/** A run's read of one of its requests. */
|
|
@@ -28909,5 +29196,5 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
28909
29196
|
}>]>;
|
|
28910
29197
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
28911
29198
|
//#endregion
|
|
28912
|
-
export {
|
|
28913
|
-
//# sourceMappingURL=index-
|
|
29199
|
+
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 };
|
|
29200
|
+
//# sourceMappingURL=index-Vb8-1Zk-.d.mts.map
|