@ref0/sdk 0.6.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-DHgV6DTF.d.mts → browse-CLwrVDwR.d.mts} +2 -2
- package/dist/browser.d.mts +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +123 -56
- package/dist/{index-CJGX88qF.d.mts → index-Vb8-1Zk-.d.mts} +1180 -965
- 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<{
|
|
@@ -437,6 +439,8 @@ type ApprovalState = typeof ApprovalState.Type;
|
|
|
437
439
|
/** Only the answering browser receives a machine's answer code; state reads never carry it. */
|
|
438
440
|
declare const ApprovalAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
439
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>>;
|
|
440
444
|
readonly answerCode: Schema.String;
|
|
441
445
|
}>, Schema.Struct<{
|
|
442
446
|
readonly status: Schema.Int;
|
|
@@ -449,6 +453,8 @@ declare const ApprovalAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
449
453
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
450
454
|
}>, Schema.Struct<{
|
|
451
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>>;
|
|
452
458
|
}>, Schema.Struct<{
|
|
453
459
|
readonly state: Schema.Literal<"refused">;
|
|
454
460
|
}>, Schema.Struct<{
|
|
@@ -1055,16 +1061,30 @@ declare const AskRecipientNotFound_base: Schema.Class<AskRecipientNotFound, Sche
|
|
|
1055
1061
|
* doesn't say, so an ask never says what exists elsewhere.
|
|
1056
1062
|
*/
|
|
1057
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;
|
|
1058
1071
|
/** An attachment request, as its person reads it once they type its code. */
|
|
1059
1072
|
declare const AttachmentRequestView: Schema.Struct<{
|
|
1060
1073
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
1061
1074
|
/** The machine's own word for itself, never fact. */
|
|
1062
1075
|
readonly machineName: Schema.String;
|
|
1063
|
-
|
|
1064
|
-
|
|
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
|
+
}>>;
|
|
1065
1081
|
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
1066
1082
|
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
1067
1083
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
1084
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
1085
|
+
readonly port: Schema.Int;
|
|
1086
|
+
readonly state: Schema.String;
|
|
1087
|
+
}>>;
|
|
1068
1088
|
}>;
|
|
1069
1089
|
type AttachmentRequestView = typeof AttachmentRequestView.Type;
|
|
1070
1090
|
/**
|
|
@@ -1106,10 +1126,137 @@ declare const ConnectChosen: Schema.Struct<{
|
|
|
1106
1126
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
1107
1127
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
1108
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
|
+
}>>;
|
|
1109
1134
|
}>;
|
|
1110
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;
|
|
1111
1236
|
/** The endpoint an attachment's approval names: no `/v1` endpoint, and never a terminal's ask. */
|
|
1112
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;
|
|
1113
1260
|
declare const AttachmentNotFound_base: Schema.Class<AttachmentNotFound, Schema.TaggedStruct<"AttachmentNotFound", {
|
|
1114
1261
|
readonly nextStep: Schema.String;
|
|
1115
1262
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -1946,7 +2093,15 @@ declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEnd
|
|
|
1946
2093
|
}>]>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof AuthorityUnavailable>, SignedIn, never>, false>;
|
|
1947
2094
|
/** Where a signed-in person stands, and naming their owner when their GitHub login couldn't. */
|
|
1948
2095
|
declare class WelcomeGroup extends WelcomeGroup_base {}
|
|
1949
|
-
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<{
|
|
1950
2105
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
1951
2106
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
1952
2107
|
readonly rp: Schema.Struct<{
|
|
@@ -1977,15 +2132,7 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
1977
2132
|
}>>;
|
|
1978
2133
|
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
1979
2134
|
readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
|
|
1980
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1981
|
-
readonly passkeys: Schema.$Array<Schema.Struct<{
|
|
1982
|
-
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
1983
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
1984
|
-
readonly createdAt: Schema.String;
|
|
1985
|
-
readonly backedUp: Schema.Boolean;
|
|
1986
|
-
}>>;
|
|
1987
|
-
readonly approvesHere: Schema.Boolean;
|
|
1988
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2135
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1989
2136
|
readonly id: Schema.String;
|
|
1990
2137
|
readonly rawId: Schema.String;
|
|
1991
2138
|
readonly type: Schema.Literal<"public-key">;
|
|
@@ -2020,6 +2167,7 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
|
|
|
2020
2167
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2021
2168
|
}>, Schema.Struct<{
|
|
2022
2169
|
readonly state: Schema.Literal<"approved">;
|
|
2170
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2023
2171
|
}>, Schema.Struct<{
|
|
2024
2172
|
readonly state: Schema.Literal<"refused">;
|
|
2025
2173
|
}>, Schema.Struct<{
|
|
@@ -2095,20 +2243,31 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2095
2243
|
}>, Schema.Struct<{
|
|
2096
2244
|
readonly state: Schema.Literal<"connected">;
|
|
2097
2245
|
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
2098
|
-
readonly
|
|
2099
|
-
readonly
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
readonly
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
readonly
|
|
2109
|
-
readonly
|
|
2110
|
-
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
|
+
}>>;
|
|
2111
2269
|
}>>;
|
|
2270
|
+
readonly excluded: Schema.$Array<Schema.String>;
|
|
2112
2271
|
}>, Schema.Struct<{
|
|
2113
2272
|
readonly state: Schema.Literal<"refused">;
|
|
2114
2273
|
}>, Schema.Struct<{
|
|
@@ -2117,7 +2276,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2117
2276
|
readonly state: Schema.Literal<"expired">;
|
|
2118
2277
|
}>, Schema.Struct<{
|
|
2119
2278
|
readonly state: Schema.Literal<"failed">;
|
|
2120
|
-
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"]>;
|
|
2121
2280
|
readonly nextStep: Schema.String;
|
|
2122
2281
|
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"collect", "POST", "/v1/attachments/requests/:approval/result", Schema.toCodecStringTree<Schema.Struct<{
|
|
2123
2282
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
@@ -2129,20 +2288,31 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2129
2288
|
}>, Schema.Struct<{
|
|
2130
2289
|
readonly state: Schema.Literal<"connected">;
|
|
2131
2290
|
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
2132
|
-
readonly
|
|
2133
|
-
readonly
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
readonly
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
readonly
|
|
2143
|
-
readonly
|
|
2144
|
-
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
|
+
}>>;
|
|
2145
2314
|
}>>;
|
|
2315
|
+
readonly excluded: Schema.$Array<Schema.String>;
|
|
2146
2316
|
}>, Schema.Struct<{
|
|
2147
2317
|
readonly state: Schema.Literal<"refused">;
|
|
2148
2318
|
}>, Schema.Struct<{
|
|
@@ -2151,11 +2321,12 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2151
2321
|
readonly state: Schema.Literal<"expired">;
|
|
2152
2322
|
}>, Schema.Struct<{
|
|
2153
2323
|
readonly state: Schema.Literal<"failed">;
|
|
2154
|
-
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"]>;
|
|
2155
2325
|
readonly nextStep: Schema.String;
|
|
2156
2326
|
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"confirm", "POST", "/v1/attachments/requests/:approval/collected", Schema.toCodecStringTree<Schema.Struct<{
|
|
2157
2327
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2158
2328
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2329
|
+
readonly grants: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2159
2330
|
readonly answerCode: Schema.optionalKey<Schema.String>;
|
|
2160
2331
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2161
2332
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -2164,8 +2335,12 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2164
2335
|
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"request", "POST", "/v1/attachments/requests", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2165
2336
|
readonly machine: Schema.brand<Schema.TemplateLiteral<readonly ["machine_", Schema.String]>, "MachineId">;
|
|
2166
2337
|
readonly machineName: Schema.String;
|
|
2167
|
-
readonly
|
|
2168
|
-
|
|
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
|
+
}>>;
|
|
2169
2344
|
readonly collectHash: Schema.brand<Schema.String, "SecretHash">;
|
|
2170
2345
|
readonly linkHash: Schema.brand<Schema.String, "SecretHash">;
|
|
2171
2346
|
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
@@ -2425,12 +2600,128 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2425
2600
|
readonly requests: Schema.$Array<Schema.Struct<{
|
|
2426
2601
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2427
2602
|
readonly machineName: Schema.String;
|
|
2428
|
-
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
|
+
}>>;
|
|
2608
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2609
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2610
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2611
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2612
|
+
readonly port: Schema.Int;
|
|
2613
|
+
readonly state: Schema.String;
|
|
2614
|
+
}>>;
|
|
2615
|
+
}>>;
|
|
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
|
+
}>>;
|
|
2429
2675
|
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2430
2676
|
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2431
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">;
|
|
2432
2689
|
}>>;
|
|
2433
|
-
|
|
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<{
|
|
2434
2725
|
readonly code: Schema.String;
|
|
2435
2726
|
}>, Schema.Struct<{
|
|
2436
2727
|
readonly link: Schema.String;
|
|
@@ -2649,102 +2940,19 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2649
2940
|
}>, Schema.Struct<{
|
|
2650
2941
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2651
2942
|
readonly machineName: Schema.String;
|
|
2652
|
-
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
|
+
}>>;
|
|
2653
2948
|
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2654
2949
|
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2655
2950
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
readonly state: Schema.Literal<"waiting">;
|
|
2660
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2661
|
-
}>, Schema.Struct<{
|
|
2662
|
-
readonly state: Schema.Literal<"approved">;
|
|
2663
|
-
}>, Schema.Struct<{
|
|
2664
|
-
readonly state: Schema.Literal<"refused">;
|
|
2665
|
-
}>, Schema.Struct<{
|
|
2666
|
-
readonly state: Schema.Literal<"expired">;
|
|
2667
|
-
}>, Schema.Struct<{
|
|
2668
|
-
readonly status: Schema.Int;
|
|
2669
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2670
|
-
readonly state: Schema.Literal<"ran">;
|
|
2671
|
-
readonly endpoint: Schema.String;
|
|
2672
|
-
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2673
|
-
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2674
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2675
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
2676
|
-
readonly agent: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2677
|
-
readonly kind: Schema.Literal<"existing">;
|
|
2678
|
-
readonly agent: Schema.Struct<{
|
|
2679
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2680
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2681
|
-
}>;
|
|
2682
|
-
}>, Schema.Struct<{
|
|
2683
|
-
readonly kind: Schema.Literal<"new">;
|
|
2684
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2685
|
-
}>]>>;
|
|
2686
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2687
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2688
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2689
|
-
readonly challenge: Schema.String;
|
|
2690
|
-
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2691
|
-
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2692
|
-
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2693
|
-
readonly id: Schema.String;
|
|
2694
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2695
|
-
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2696
|
-
}>>>;
|
|
2697
|
-
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2698
|
-
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2699
|
-
}>, Schema.Union<readonly [Schema.Struct<{
|
|
2700
|
-
readonly request: Schema.Struct<{
|
|
2701
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2702
|
-
readonly machineName: Schema.String;
|
|
2703
|
-
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["claude-code", "codex"]>>;
|
|
2704
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2705
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2706
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2707
|
-
}>;
|
|
2708
|
-
readonly agents: Schema.$Array<Schema.Struct<{
|
|
2709
|
-
readonly agent: Schema.Struct<{
|
|
2710
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2711
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2712
|
-
}>;
|
|
2713
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2951
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2952
|
+
readonly port: Schema.Int;
|
|
2953
|
+
readonly state: Schema.String;
|
|
2714
2954
|
}>>;
|
|
2715
|
-
}>, Schema.Struct<{
|
|
2716
|
-
readonly request: Schema.Struct<{
|
|
2717
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2718
|
-
readonly machineName: Schema.String;
|
|
2719
|
-
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["claude-code", "codex"]>>;
|
|
2720
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2721
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2722
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2723
|
-
}>;
|
|
2724
|
-
readonly connect: Schema.Struct<{
|
|
2725
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2726
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2727
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2728
|
-
}>>;
|
|
2729
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2730
|
-
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2731
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2732
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2733
|
-
}>>;
|
|
2734
|
-
}>;
|
|
2735
|
-
readonly passkey: Schema.Struct<{
|
|
2736
|
-
readonly challenge: Schema.String;
|
|
2737
|
-
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2738
|
-
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2739
|
-
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2740
|
-
readonly id: Schema.String;
|
|
2741
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2742
|
-
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2743
|
-
}>>>;
|
|
2744
|
-
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2745
|
-
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2746
|
-
}>;
|
|
2747
|
-
}>]>]>>, 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<{
|
|
2748
2956
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2749
2957
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2750
2958
|
readonly answer: Schema.Literal<"yes">;
|
|
@@ -2794,6 +3002,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2794
3002
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2795
3003
|
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2796
3004
|
readonly state: Schema.Literal<"approved">;
|
|
3005
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2797
3006
|
readonly answerCode: Schema.String;
|
|
2798
3007
|
}>, Schema.Struct<{
|
|
2799
3008
|
readonly status: Schema.Int;
|
|
@@ -2806,6 +3015,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2806
3015
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2807
3016
|
}>, Schema.Struct<{
|
|
2808
3017
|
readonly state: Schema.Literal<"approved">;
|
|
3018
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2809
3019
|
}>, Schema.Struct<{
|
|
2810
3020
|
readonly state: Schema.Literal<"refused">;
|
|
2811
3021
|
}>, Schema.Struct<{
|
|
@@ -2856,42 +3066,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
2856
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"]>;
|
|
2857
3067
|
}>>;
|
|
2858
3068
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
2859
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2860
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2861
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2862
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
2863
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2864
|
-
readonly mirrors: Schema.$Array<Schema.Struct<{
|
|
2865
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
2866
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2867
|
-
readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
|
|
2868
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
2869
|
-
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
2870
|
-
readonly kind: Schema.Literal<"none">;
|
|
2871
|
-
}>, Schema.Struct<{
|
|
2872
|
-
readonly kind: Schema.Literal<"github">;
|
|
2873
|
-
readonly branch: Schema.String;
|
|
2874
|
-
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
2875
|
-
readonly state: Schema.Literal<"on">;
|
|
2876
|
-
}>, Schema.Struct<{
|
|
2877
|
-
readonly state: Schema.Literal<"paused">;
|
|
2878
|
-
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
2879
|
-
readonly why: Schema.Literal<"diverged">;
|
|
2880
|
-
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
2881
|
-
}>, Schema.Struct<{
|
|
2882
|
-
readonly why: Schema.Literal<"refused">;
|
|
2883
|
-
readonly said: Schema.String;
|
|
2884
|
-
}>, Schema.Struct<{
|
|
2885
|
-
readonly why: Schema.Literal<"unauthorized">;
|
|
2886
|
-
}>]>;
|
|
2887
|
-
}>, Schema.Struct<{
|
|
2888
|
-
readonly state: Schema.Literal<"off">;
|
|
2889
|
-
}>]>;
|
|
2890
|
-
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
2891
|
-
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
2892
|
-
}>]>;
|
|
2893
|
-
}>>;
|
|
2894
|
-
}>>, 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<{
|
|
2895
3070
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
2896
3071
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
2897
3072
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -2964,7 +3139,42 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
2964
3139
|
readonly bytes: Schema.Int;
|
|
2965
3140
|
}>>>;
|
|
2966
3141
|
}>>;
|
|
2967
|
-
}>>, 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>;
|
|
2968
3178
|
declare class MeGroup extends MeGroup_base {}
|
|
2969
3179
|
declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
|
|
2970
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">]>;
|
|
@@ -12460,127 +12670,114 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
|
|
|
12460
12670
|
* the stage as filters. A project the reader can't see answers as one that isn't there.
|
|
12461
12671
|
*/
|
|
12462
12672
|
declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
|
|
12463
|
-
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"
|
|
12673
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
12464
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">]>;
|
|
12675
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12465
12676
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12466
|
-
|
|
12467
|
-
|
|
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<{
|
|
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">]>;
|
|
12680
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12681
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12682
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12683
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
12684
|
+
line: Schema.Int;
|
|
12468
12685
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12469
|
-
readonly
|
|
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<{
|
|
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">]>;
|
|
12711
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12712
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
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">>;
|
|
12717
|
+
}>;
|
|
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">>;
|
|
12722
|
+
}>>;
|
|
12723
|
+
readonly holding: Schema.$Array<Schema.Struct<{
|
|
12470
12724
|
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12471
|
-
readonly
|
|
12472
|
-
readonly
|
|
12473
|
-
readonly
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
}>, Schema.Struct<{
|
|
12477
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12478
|
-
}>]>;
|
|
12479
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12480
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12481
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12482
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
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;
|
|
12483
12730
|
}>>;
|
|
12484
|
-
|
|
12485
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
12731
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
12486
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">]>;
|
|
12487
12733
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12734
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12488
12735
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12489
|
-
readonly
|
|
12490
|
-
readonly
|
|
12491
|
-
readonly
|
|
12492
|
-
readonly
|
|
12493
|
-
readonly
|
|
12494
|
-
readonly
|
|
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
|
+
}>;
|
|
12495
12752
|
}>, Schema.Struct<{
|
|
12496
|
-
readonly
|
|
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
|
+
}>;
|
|
12497
12763
|
}>]>;
|
|
12498
|
-
readonly
|
|
12499
|
-
readonly
|
|
12500
|
-
readonly
|
|
12501
|
-
readonly
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12513
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12514
|
-
readonly kind: Schema.Literal<"project">;
|
|
12515
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12516
|
-
}>, Schema.Struct<{
|
|
12517
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12518
|
-
}>]>;
|
|
12519
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12520
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12521
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12522
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12523
|
-
}>>, 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<{
|
|
12524
|
-
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">]>;
|
|
12525
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
12526
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12527
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
12528
|
-
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
12529
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12530
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
12531
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
12532
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12533
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12534
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12535
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12536
|
-
readonly kind: Schema.Literal<"project">;
|
|
12537
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12538
|
-
}>, Schema.Struct<{
|
|
12539
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12540
|
-
}>]>;
|
|
12541
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12542
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12543
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12544
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12545
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
12546
|
-
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">]>;
|
|
12547
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12548
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12549
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12550
|
-
readonly version: Schema.Int;
|
|
12551
|
-
readonly baseline: Schema.Struct<{
|
|
12552
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12553
|
-
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
12554
|
-
readonly sequence: Schema.Int;
|
|
12555
|
-
readonly depth: Schema.Int;
|
|
12556
|
-
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
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;
|
|
12557
12778
|
}>;
|
|
12558
|
-
readonly
|
|
12559
|
-
|
|
12560
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12561
|
-
}>>;
|
|
12562
|
-
readonly packs: Schema.$Array<Schema.Struct<{
|
|
12563
|
-
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
12564
|
-
readonly key: Schema.String;
|
|
12565
|
-
readonly sha256: Schema.String;
|
|
12566
|
-
readonly bytes: Schema.Int;
|
|
12567
|
-
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
12568
|
-
readonly first: Schema.Int;
|
|
12569
|
-
readonly last: Schema.Int;
|
|
12570
|
-
}>>;
|
|
12571
|
-
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
12572
|
-
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
12573
|
-
readonly roots: Schema.$Array<Schema.Struct<{
|
|
12574
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12575
|
-
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
12576
|
-
}>>;
|
|
12577
|
-
}>>;
|
|
12578
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
12579
|
-
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">]>;
|
|
12580
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12581
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12582
|
-
key: Schema.String;
|
|
12583
|
-
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
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<{
|
|
12584
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">]>;
|
|
12585
12782
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12586
12783
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -12632,56 +12829,46 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
12632
12829
|
}>;
|
|
12633
12830
|
readonly threadNumber: Schema.Int;
|
|
12634
12831
|
}>>;
|
|
12635
|
-
}>>, 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<{
|
|
12636
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">]>;
|
|
12637
12834
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12638
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12639
12835
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12640
|
-
readonly
|
|
12641
|
-
readonly
|
|
12642
|
-
readonly
|
|
12643
|
-
readonly
|
|
12644
|
-
readonly
|
|
12645
|
-
readonly
|
|
12646
|
-
readonly branch: Schema.String;
|
|
12647
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12648
|
-
readonly generation: Schema.Int;
|
|
12649
|
-
}>;
|
|
12650
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12651
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12652
|
-
readonly agent: Schema.Struct<{
|
|
12653
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12654
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12655
|
-
}>;
|
|
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">;
|
|
12656
12842
|
}>, Schema.Struct<{
|
|
12657
|
-
readonly
|
|
12658
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12659
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12660
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12661
|
-
readonly step: Schema.Struct<{
|
|
12662
|
-
readonly name: Schema.String;
|
|
12663
|
-
readonly count: Schema.Int;
|
|
12664
|
-
readonly attempt: Schema.Int;
|
|
12665
|
-
}>;
|
|
12666
|
-
}>;
|
|
12843
|
+
readonly kind: Schema.Literal<"owner">;
|
|
12667
12844
|
}>]>;
|
|
12668
|
-
readonly
|
|
12669
|
-
readonly
|
|
12670
|
-
readonly
|
|
12671
|
-
readonly
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
readonly
|
|
12680
|
-
readonly
|
|
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"]>;
|
|
12681
12868
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12682
|
-
}
|
|
12683
|
-
readonly
|
|
12684
|
-
}>>,
|
|
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<{
|
|
12685
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">]>;
|
|
12686
12873
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12687
12874
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -13269,6 +13456,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13269
13456
|
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13270
13457
|
}>]>;
|
|
13271
13458
|
readonly state: Schema.Literals<readonly ["asked", "yes", "no", "expired", "refused", "revoked"]>;
|
|
13459
|
+
readonly why: Schema.optionalKey<Schema.Literals<readonly ["target", "self"]>>;
|
|
13272
13460
|
readonly asked: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
13273
13461
|
readonly by: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
13274
13462
|
readonly at: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
@@ -13292,50 +13480,138 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13292
13480
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13293
13481
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13294
13482
|
}>]>>>;
|
|
13295
|
-
}>>, 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<{
|
|
13296
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">]>;
|
|
13297
13485
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
readonly
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
readonly
|
|
13304
|
-
readonly
|
|
13305
|
-
readonly
|
|
13306
|
-
readonly
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13313
|
-
|
|
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;
|
|
13314
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">;
|
|
13315
13526
|
}>, Schema.Struct<{
|
|
13316
|
-
readonly
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
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
|
+
}>]>;
|
|
13321
13537
|
}>, Schema.Struct<{
|
|
13322
|
-
readonly
|
|
13323
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13538
|
+
readonly state: Schema.Literal<"off">;
|
|
13324
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">>;
|
|
13325
13547
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13326
13548
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13327
13549
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13328
|
-
readonly
|
|
13329
|
-
readonly
|
|
13330
|
-
readonly
|
|
13331
|
-
readonly
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
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<{
|
|
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">]>;
|
|
13587
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13336
13588
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13337
13589
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13338
|
-
readonly
|
|
13590
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
13591
|
+
readonly kind: Schema.Literal<"checks">;
|
|
13592
|
+
}>, Schema.Struct<{
|
|
13593
|
+
readonly kind: Schema.Literal<"check">;
|
|
13594
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13595
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13596
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13597
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13598
|
+
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
13599
|
+
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
13600
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
13601
|
+
}>, Schema.Struct<{
|
|
13602
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13603
|
+
}>]>;
|
|
13604
|
+
}>>;
|
|
13605
|
+
}>, Schema.Struct<{
|
|
13606
|
+
readonly kind: Schema.Literal<"review">;
|
|
13607
|
+
}>, Schema.Struct<{
|
|
13608
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
13609
|
+
}>, Schema.Struct<{
|
|
13610
|
+
readonly kind: Schema.Literal<"admin">;
|
|
13611
|
+
}>, Schema.Struct<{
|
|
13612
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13613
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13614
|
+
}>]>;
|
|
13339
13615
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13340
13616
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13341
13617
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13344,55 +13620,21 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13344
13620
|
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13345
13621
|
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13346
13622
|
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13347
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13348
|
-
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">]>;
|
|
13349
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13350
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13351
|
-
readonly active: Schema.Struct<{
|
|
13352
|
-
readonly revision: Schema.Int;
|
|
13353
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13354
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13355
|
-
}>;
|
|
13356
|
-
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13357
|
-
readonly revision: Schema.Int;
|
|
13358
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13359
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13360
|
-
}>>;
|
|
13361
|
-
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13362
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13363
|
-
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13364
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13365
|
-
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
13366
|
-
readonly gate: Schema.Int;
|
|
13367
|
-
readonly since: Schema.Int;
|
|
13368
|
-
}>>;
|
|
13369
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13623
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
|
|
13370
13624
|
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">]>;
|
|
13371
13625
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
readonly
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
}>, Schema.Struct<{
|
|
13385
|
-
readonly why: Schema.Literal<"refused">;
|
|
13386
|
-
readonly said: Schema.String;
|
|
13387
|
-
}>, Schema.Struct<{
|
|
13388
|
-
readonly why: Schema.Literal<"unauthorized">;
|
|
13389
|
-
}>]>;
|
|
13390
|
-
}>, Schema.Struct<{
|
|
13391
|
-
readonly state: Schema.Literal<"off">;
|
|
13392
|
-
}>]>;
|
|
13393
|
-
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13394
|
-
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13395
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13626
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13627
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13628
|
+
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13629
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13630
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13631
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13632
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13633
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13634
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13635
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13636
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
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<{
|
|
13396
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">]>;
|
|
13397
13639
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13398
13640
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13422,38 +13664,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13422
13664
|
}>]>;
|
|
13423
13665
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13424
13666
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13425
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never
|
|
13426
|
-
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">]>;
|
|
13427
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13428
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13429
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13430
|
-
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13431
|
-
line: Schema.Int;
|
|
13432
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13433
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13434
|
-
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13435
|
-
readonly line: Schema.Int;
|
|
13436
|
-
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13437
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13438
|
-
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13439
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13440
|
-
readonly threadNumber: Schema.Int;
|
|
13441
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13442
|
-
readonly turn: Schema.Int;
|
|
13443
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13444
|
-
readonly model: Schema.optionalKey<Schema.String>;
|
|
13445
|
-
}>>;
|
|
13446
|
-
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13447
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13448
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13449
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13450
|
-
readonly step: Schema.Struct<{
|
|
13451
|
-
readonly name: Schema.String;
|
|
13452
|
-
readonly count: Schema.Int;
|
|
13453
|
-
readonly attempt: Schema.Int;
|
|
13454
|
-
}>;
|
|
13455
|
-
}>>;
|
|
13456
|
-
}>>, 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>;
|
|
13457
13668
|
/**
|
|
13458
13669
|
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
13459
13670
|
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
@@ -17080,259 +17291,101 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17080
17291
|
* person.
|
|
17081
17292
|
*/
|
|
17082
17293
|
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17083
|
-
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">;
|
|
17084
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">]>;
|
|
17085
17297
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17086
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17087
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17088
|
-
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17089
|
-
readonly kind: Schema.Literal<"main">;
|
|
17090
|
-
}>, Schema.Struct<{
|
|
17091
|
-
readonly kind: Schema.Literal<"thread">;
|
|
17092
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17093
|
-
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17094
|
-
}>]>;
|
|
17095
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17096
|
-
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17097
17298
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17098
|
-
|
|
17099
|
-
}>>, 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<{
|
|
17100
17310
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17101
17311
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17312
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17102
17313
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17103
17314
|
readonly rerun: Schema.Int;
|
|
17104
17315
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17105
|
-
readonly
|
|
17106
|
-
readonly
|
|
17107
|
-
readonly
|
|
17108
|
-
readonly
|
|
17316
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17317
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17318
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17319
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17320
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17321
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17322
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17323
|
+
readonly kind: Schema.Literal<"person">;
|
|
17324
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17325
|
+
}>, Schema.Struct<{
|
|
17326
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17327
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17328
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17329
|
+
}>, Schema.Struct<{
|
|
17330
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17331
|
+
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")[]>;
|
|
17332
|
+
}>]>;
|
|
17333
|
+
readonly request: Schema.String;
|
|
17334
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17335
|
+
}>>;
|
|
17336
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17337
|
+
readonly attachment: Schema.Struct<{
|
|
17338
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17339
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17340
|
+
}>;
|
|
17341
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17342
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17343
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17344
|
+
}>>;
|
|
17345
|
+
}>>;
|
|
17346
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17347
|
+
readonly requests: Schema.Int;
|
|
17348
|
+
readonly omitted: Schema.Int;
|
|
17349
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17350
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17351
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17352
|
+
readonly step: Schema.String;
|
|
17353
|
+
readonly count: Schema.Int;
|
|
17354
|
+
readonly attempt: Schema.Int;
|
|
17355
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17356
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17357
|
+
readonly recovery: Schema.String;
|
|
17358
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17359
|
+
readonly url: Schema.String;
|
|
17360
|
+
}>>;
|
|
17361
|
+
readonly refusalsOmitted: Schema.Int;
|
|
17362
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17363
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17364
|
+
readonly step: Schema.String;
|
|
17365
|
+
readonly count: Schema.Int;
|
|
17366
|
+
readonly attempt: Schema.Int;
|
|
17367
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17368
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17369
|
+
readonly recovery: Schema.String;
|
|
17370
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17371
|
+
readonly url: Schema.String;
|
|
17372
|
+
}>>;
|
|
17373
|
+
readonly reportedOmitted: Schema.Int;
|
|
17374
|
+
}>>;
|
|
17375
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17376
|
+
readonly browses: Schema.Int;
|
|
17377
|
+
readonly closing: Schema.Int;
|
|
17378
|
+
readonly unconfirmed: Schema.Int;
|
|
17379
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17380
|
+
readonly unresolved: Schema.Int;
|
|
17381
|
+
readonly presumedExpired: Schema.Int;
|
|
17382
|
+
readonly browserMs: Schema.Int;
|
|
17383
|
+
readonly estimated: Schema.Boolean;
|
|
17384
|
+
}>>;
|
|
17109
17385
|
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17110
17386
|
}>, Schema.Struct<{
|
|
17111
17387
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17112
|
-
readonly
|
|
17113
|
-
readonly rerun: Schema.Int;
|
|
17114
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17115
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17116
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17117
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17118
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17119
|
-
readonly state: Schema.Literal<"ended">;
|
|
17120
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17121
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17122
|
-
}>, Schema.Struct<{
|
|
17123
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17124
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17125
|
-
readonly rerun: Schema.Int;
|
|
17126
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17127
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17128
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17129
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17130
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17131
|
-
readonly state: Schema.Literal<"ended">;
|
|
17132
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17133
|
-
}>]>>;
|
|
17134
|
-
}>, Schema.Struct<{
|
|
17135
|
-
readonly waiting: Schema.Struct<{
|
|
17136
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17137
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17138
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17139
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17140
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17141
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17142
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17143
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17144
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17145
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17146
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17147
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17148
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17149
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17150
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17151
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17152
|
-
readonly kind: Schema.Literal<"person">;
|
|
17153
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17154
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17155
|
-
}>, Schema.Struct<{
|
|
17156
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17157
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17158
|
-
}>, Schema.Struct<{
|
|
17159
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17160
|
-
readonly permission: Schema.String;
|
|
17161
|
-
}>]>>;
|
|
17162
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17163
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17164
|
-
}>>;
|
|
17165
|
-
}>>;
|
|
17166
|
-
}>;
|
|
17167
|
-
}>]>>, 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<{
|
|
17168
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17169
|
-
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">]>;
|
|
17170
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17171
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17172
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17173
|
-
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17174
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17175
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17176
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17177
|
-
readonly rerun: Schema.Int;
|
|
17178
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17179
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17180
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17181
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17182
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17183
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17184
|
-
}>, Schema.Struct<{
|
|
17185
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17186
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17187
|
-
readonly rerun: Schema.Int;
|
|
17188
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17189
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17190
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17191
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17192
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17193
|
-
readonly state: Schema.Literal<"ended">;
|
|
17194
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17195
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17196
|
-
}>, Schema.Struct<{
|
|
17197
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17198
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17199
|
-
readonly rerun: Schema.Int;
|
|
17200
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17201
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17202
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17203
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17204
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17205
|
-
readonly state: Schema.Literal<"ended">;
|
|
17206
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17207
|
-
}>]>>;
|
|
17208
|
-
}>, Schema.Struct<{
|
|
17209
|
-
readonly waiting: Schema.Struct<{
|
|
17210
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17211
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17212
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17213
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17214
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17215
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17216
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17217
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17218
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17219
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17220
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17221
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17222
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17223
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17224
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17225
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17226
|
-
readonly kind: Schema.Literal<"person">;
|
|
17227
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17228
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17229
|
-
}>, Schema.Struct<{
|
|
17230
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17231
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17232
|
-
}>, Schema.Struct<{
|
|
17233
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17234
|
-
readonly permission: Schema.String;
|
|
17235
|
-
}>]>>;
|
|
17236
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17237
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17238
|
-
}>>;
|
|
17239
|
-
}>>;
|
|
17240
|
-
}>;
|
|
17241
|
-
}>]>>, 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<{
|
|
17242
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17243
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17244
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17245
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17246
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17247
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17248
|
-
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17249
|
-
}>>, 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<{
|
|
17250
|
-
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">]>;
|
|
17251
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17252
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17253
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17254
|
-
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
17255
|
-
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17256
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17257
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17258
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17259
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17260
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17261
|
-
readonly rerun: Schema.Int;
|
|
17262
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17263
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17264
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17265
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17266
|
-
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17267
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17268
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17269
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17270
|
-
readonly kind: Schema.Literal<"person">;
|
|
17271
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17272
|
-
}>, Schema.Struct<{
|
|
17273
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17274
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17275
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17276
|
-
}>, Schema.Struct<{
|
|
17277
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17278
|
-
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")[]>;
|
|
17279
|
-
}>]>;
|
|
17280
|
-
readonly request: Schema.String;
|
|
17281
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17282
|
-
}>>;
|
|
17283
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17284
|
-
readonly attachment: Schema.Struct<{
|
|
17285
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17286
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17287
|
-
}>;
|
|
17288
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17289
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17290
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17291
|
-
}>>;
|
|
17292
|
-
}>>;
|
|
17293
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17294
|
-
readonly requests: Schema.Int;
|
|
17295
|
-
readonly omitted: Schema.Int;
|
|
17296
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17297
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17298
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17299
|
-
readonly step: Schema.String;
|
|
17300
|
-
readonly count: Schema.Int;
|
|
17301
|
-
readonly attempt: Schema.Int;
|
|
17302
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17303
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17304
|
-
readonly recovery: Schema.String;
|
|
17305
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17306
|
-
readonly url: Schema.String;
|
|
17307
|
-
}>>;
|
|
17308
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17309
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17310
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17311
|
-
readonly step: Schema.String;
|
|
17312
|
-
readonly count: Schema.Int;
|
|
17313
|
-
readonly attempt: Schema.Int;
|
|
17314
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17315
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17316
|
-
readonly recovery: Schema.String;
|
|
17317
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17318
|
-
readonly url: Schema.String;
|
|
17319
|
-
}>>;
|
|
17320
|
-
readonly reportedOmitted: Schema.Int;
|
|
17321
|
-
}>>;
|
|
17322
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17323
|
-
readonly browses: Schema.Int;
|
|
17324
|
-
readonly closing: Schema.Int;
|
|
17325
|
-
readonly unconfirmed: Schema.Int;
|
|
17326
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17327
|
-
readonly unresolved: Schema.Int;
|
|
17328
|
-
readonly presumedExpired: Schema.Int;
|
|
17329
|
-
readonly browserMs: Schema.Int;
|
|
17330
|
-
readonly estimated: Schema.Boolean;
|
|
17331
|
-
}>>;
|
|
17332
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17333
|
-
}>, Schema.Struct<{
|
|
17334
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17335
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17388
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17336
17389
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17337
17390
|
readonly rerun: Schema.Int;
|
|
17338
17391
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
@@ -17789,22 +17842,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17789
17842
|
readonly state: Schema.Literal<"ended">;
|
|
17790
17843
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17791
17844
|
}>]>;
|
|
17792
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
17793
|
-
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">]>;
|
|
17794
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17795
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17796
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17797
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17798
|
-
}>, Schema.Struct<{
|
|
17799
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17800
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
17801
|
-
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17802
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17803
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17804
|
-
}>, Schema.Struct<{
|
|
17805
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17806
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
17807
|
-
}>]>>, 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<{
|
|
17808
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">]>;
|
|
17809
17847
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17810
17848
|
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
@@ -17930,36 +17968,193 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17930
17968
|
}>>;
|
|
17931
17969
|
readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
|
|
17932
17970
|
readonly more: Schema.Boolean;
|
|
17933
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never
|
|
17934
|
-
|
|
17935
|
-
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
17936
|
-
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
17937
|
-
* outside a session runs by their approval; an agent's from its session, by its own token. What
|
|
17938
|
-
* a local run of a check runs, and its report, of an identity an open version of a thread needs,
|
|
17939
|
-
* each by whoever may start runs on that thread, the report from the attachment it ran on; and an
|
|
17940
|
-
* admin's restore of a signer a miss revoked. And one run's trace, a check run's or a workflow
|
|
17941
|
-
* run's of the repo's project, a page at a time, for whoever sees the scope it was first started
|
|
17942
|
-
* in.
|
|
17943
|
-
*/
|
|
17944
|
-
declare class RunsGroup extends RunsGroup_base {}
|
|
17945
|
-
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">;
|
|
17946
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">]>;
|
|
17947
|
-
|
|
17948
|
-
readonly client: Schema.String;
|
|
17949
|
-
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
17950
|
-
readonly create: Schema.optionalKey<Schema.Boolean>;
|
|
17951
|
-
readonly access: Schema.Literals<readonly ["read", "act"]>;
|
|
17952
|
-
readonly projects: Schema.NonEmptyArray<Schema.Struct<{
|
|
17953
|
-
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">]>;
|
|
17954
|
-
readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
17955
|
-
}>>;
|
|
17974
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17956
17975
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17957
|
-
|
|
17958
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17959
|
-
readonly
|
|
17960
|
-
|
|
17961
|
-
|
|
17962
|
-
|
|
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>;
|
|
18145
|
+
/**
|
|
18146
|
+
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
18147
|
+
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
18148
|
+
* outside a session runs by their approval; an agent's from its session, by its own token. What
|
|
18149
|
+
* a local run of a check runs, and its report, of an identity an open version of a thread needs,
|
|
18150
|
+
* each by whoever may start runs on that thread, the report from the attachment it ran on; and an
|
|
18151
|
+
* admin's restore of a signer a miss revoked. And one run's trace, a check run's or a workflow
|
|
18152
|
+
* run's of the repo's project, a page at a time, for whoever sees the scope it was first started
|
|
18153
|
+
* in.
|
|
18154
|
+
*/
|
|
18155
|
+
declare class RunsGroup extends RunsGroup_base {}
|
|
18156
|
+
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">]>;
|
|
17963
18158
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17964
18159
|
readonly request: Schema.String;
|
|
17965
18160
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -17974,7 +18169,23 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
17974
18169
|
readonly request: Schema.String;
|
|
17975
18170
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17976
18171
|
readonly redirect: Schema.String;
|
|
17977
|
-
}>>, 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<{
|
|
17978
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">]>;
|
|
17979
18190
|
grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17980
18191
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -17990,17 +18201,50 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
17990
18201
|
* consented, hands the client its code.
|
|
17991
18202
|
*/
|
|
17992
18203
|
declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
|
|
17993
|
-
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17994
|
-
readonly
|
|
17995
|
-
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">]>;
|
|
17996
18206
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
readonly
|
|
18001
|
-
readonly
|
|
18002
|
-
readonly
|
|
18003
|
-
|
|
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<{
|
|
18004
18248
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18005
18249
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18006
18250
|
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
@@ -18009,23 +18253,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18009
18253
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18010
18254
|
}>>;
|
|
18011
18255
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18012
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18013
|
-
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">]>;
|
|
18014
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18015
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18016
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18017
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18018
|
-
readonly kind: Schema.Literal<"person">;
|
|
18019
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18020
|
-
}>, Schema.Struct<{
|
|
18021
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18022
|
-
readonly agent: Schema.Struct<{
|
|
18023
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18024
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18025
|
-
}>;
|
|
18026
|
-
}>]>;
|
|
18027
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18028
|
-
}>>, 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<{
|
|
18029
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">]>;
|
|
18030
18258
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18031
18259
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18200,50 +18428,33 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18200
18428
|
}>>;
|
|
18201
18429
|
}>;
|
|
18202
18430
|
readonly pricesAsOf: Schema.String;
|
|
18203
|
-
}>]>>, 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<{
|
|
18204
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>;
|
|
18205
18450
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18206
|
-
|
|
18207
|
-
|
|
18208
|
-
|
|
18209
|
-
readonly
|
|
18210
|
-
readonly
|
|
18211
|
-
readonly
|
|
18212
|
-
|
|
18213
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18214
|
-
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"]>;
|
|
18215
|
-
readonly quantity: Schema.Finite;
|
|
18216
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18217
|
-
}>>;
|
|
18218
|
-
}>>;
|
|
18219
|
-
readonly work: Schema.$Array<Schema.Struct<{
|
|
18220
|
-
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18221
|
-
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18222
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18223
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18224
|
-
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"]>;
|
|
18225
|
-
readonly quantity: Schema.Finite;
|
|
18226
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18227
|
-
}>>;
|
|
18228
|
-
}>>;
|
|
18229
|
-
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18230
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18231
|
-
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18232
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18233
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18234
|
-
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18235
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18236
|
-
readonly bytes: Schema.Int;
|
|
18237
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18238
|
-
}>>;
|
|
18239
|
-
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18240
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18241
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18242
|
-
readonly counts: Schema.Int;
|
|
18243
|
-
readonly bytes: Schema.Int;
|
|
18244
|
-
}>>>;
|
|
18245
|
-
}>>;
|
|
18246
|
-
}>>, 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>;
|
|
18247
18458
|
/**
|
|
18248
18459
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18249
18460
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
@@ -18291,53 +18502,25 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18291
18502
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18292
18503
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18293
18504
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18294
|
-
member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18295
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18296
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18297
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18298
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18299
|
-
readonly kind: Schema.Literal<"person">;
|
|
18300
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18301
|
-
}>, Schema.Struct<{
|
|
18302
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18303
|
-
readonly agent: Schema.Struct<{
|
|
18304
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18305
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18306
|
-
}>;
|
|
18307
|
-
}>]>;
|
|
18308
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18309
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18310
|
-
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
18311
|
-
declare class MembersGroup extends MembersGroup_base {}
|
|
18312
|
-
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18313
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18314
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18315
|
-
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18316
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18317
|
-
readonly organization: Schema.Struct<{
|
|
18318
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18319
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18320
|
-
}>;
|
|
18321
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18322
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18323
|
-
}>>;
|
|
18324
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18325
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18326
|
-
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">]>;
|
|
18327
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18328
|
-
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">]>;
|
|
18329
|
-
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
18330
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18331
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18332
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18333
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18334
|
-
readonly invitee: Schema.Struct<{
|
|
18335
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18336
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18337
|
-
}>;
|
|
18338
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18339
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18340
|
-
}>>, 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<{
|
|
18505
|
+
member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18506
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18507
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18508
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18509
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18510
|
+
readonly kind: Schema.Literal<"person">;
|
|
18511
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18512
|
+
}>, Schema.Struct<{
|
|
18513
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18514
|
+
readonly agent: Schema.Struct<{
|
|
18515
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18516
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18517
|
+
}>;
|
|
18518
|
+
}>]>;
|
|
18519
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18520
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
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<{
|
|
18341
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">]>;
|
|
18342
18525
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18343
18526
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
@@ -18356,14 +18539,29 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18356
18539
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18357
18540
|
}>>;
|
|
18358
18541
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18359
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18360
|
-
|
|
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<{
|
|
18361
18556
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18362
18557
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18363
18558
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18364
18559
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18365
18560
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18366
|
-
|
|
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<{
|
|
18367
18565
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18368
18566
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18369
18567
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -18372,22 +18570,84 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18372
18570
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18373
18571
|
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18374
18572
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18375
|
-
}>>, 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">]>;
|
|
18376
18575
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18377
18576
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18378
18577
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18379
18578
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18380
18579
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18381
|
-
|
|
18382
|
-
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
|
+
}>;
|
|
18383
18593
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18384
|
-
|
|
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>;
|
|
18385
18596
|
/**
|
|
18386
18597
|
* Invitations: an organization's admins send, list and withdraw them; the person invited lists
|
|
18387
18598
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
18388
18599
|
*/
|
|
18389
18600
|
declare class InvitationsGroup extends InvitationsGroup_base {}
|
|
18390
|
-
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<{
|
|
18391
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">]>;
|
|
18392
18652
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18393
18653
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18499,56 +18759,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18499
18759
|
}>;
|
|
18500
18760
|
}>]>;
|
|
18501
18761
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18502
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never
|
|
18503
|
-
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">]>;
|
|
18504
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18505
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18506
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18507
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18508
|
-
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18509
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18510
|
-
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18511
|
-
readonly kind: Schema.Literal<"owner">;
|
|
18512
|
-
}>, Schema.Struct<{
|
|
18513
|
-
readonly kind: Schema.Literal<"project">;
|
|
18514
|
-
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18515
|
-
}>, Schema.Struct<{
|
|
18516
|
-
readonly kind: Schema.Literal<"thread">;
|
|
18517
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18518
|
-
}>, Schema.Struct<{
|
|
18519
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18520
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18521
|
-
}>]>;
|
|
18522
|
-
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18523
|
-
readonly kind: Schema.Literal<"person">;
|
|
18524
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18525
|
-
}>, Schema.Struct<{
|
|
18526
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18527
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18528
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18529
|
-
}>, Schema.Struct<{
|
|
18530
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18531
|
-
readonly agent: Schema.Struct<{
|
|
18532
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18533
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18534
|
-
}>;
|
|
18535
|
-
}>]>;
|
|
18536
|
-
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18537
|
-
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18538
|
-
readonly kind: Schema.Literal<"person">;
|
|
18539
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18540
|
-
}>, Schema.Struct<{
|
|
18541
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18542
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18543
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18544
|
-
}>, Schema.Struct<{
|
|
18545
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18546
|
-
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")[]>;
|
|
18547
|
-
}>]>;
|
|
18548
|
-
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18549
|
-
}>>;
|
|
18550
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18551
|
-
}>>, 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>;
|
|
18552
18763
|
/**
|
|
18553
18764
|
* An organization's grants (layer 1): any person lists those they may see; an admin gives one or
|
|
18554
18765
|
* takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
|
|
@@ -18556,13 +18767,10 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18556
18767
|
* `OrganizationNotFound`.
|
|
18557
18768
|
*/
|
|
18558
18769
|
declare class GrantsGroup extends GrantsGroup_base {}
|
|
18559
|
-
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<{
|
|
18560
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">]>;
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18564
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18565
|
-
}>>, 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<{
|
|
18566
18774
|
readonly agent: Schema.Struct<{
|
|
18567
18775
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18568
18776
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18570,10 +18778,29 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18570
18778
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18571
18779
|
readonly generation: Schema.Int;
|
|
18572
18780
|
readonly turnedOff: Schema.Boolean;
|
|
18573
|
-
|
|
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<{
|
|
18574
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">]>;
|
|
18575
|
-
|
|
18576
|
-
|
|
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<{
|
|
18577
18804
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18578
18805
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18579
18806
|
readonly agent: Schema.Struct<{
|
|
@@ -18583,7 +18810,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18583
18810
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18584
18811
|
readonly generation: Schema.Int;
|
|
18585
18812
|
readonly turnedOff: Schema.Boolean;
|
|
18586
|
-
}>>, 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<{
|
|
18587
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">]>;
|
|
18588
18815
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18589
18816
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18596,10 +18823,12 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18596
18823
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18597
18824
|
readonly generation: Schema.Int;
|
|
18598
18825
|
readonly turnedOff: Schema.Boolean;
|
|
18599
|
-
}>>, 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<{
|
|
18600
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">]>;
|
|
18601
18828
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18602
|
-
}>>, 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<{
|
|
18603
18832
|
readonly agent: Schema.Struct<{
|
|
18604
18833
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18605
18834
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18607,25 +18836,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18607
18836
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18608
18837
|
readonly generation: Schema.Int;
|
|
18609
18838
|
readonly turnedOff: Schema.Boolean;
|
|
18610
|
-
|
|
18611
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18612
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18613
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18614
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18615
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18616
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18617
|
-
readonly agents: Schema.$Array<Schema.Struct<{
|
|
18618
|
-
readonly agent: Schema.Struct<{
|
|
18619
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18620
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18621
|
-
}>;
|
|
18622
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18623
|
-
readonly generation: Schema.Int;
|
|
18624
|
-
readonly turnedOff: Schema.Boolean;
|
|
18625
|
-
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18626
|
-
}>>;
|
|
18627
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18628
|
-
}>>, 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>;
|
|
18629
18840
|
/**
|
|
18630
18841
|
* An owner's agents (layer 1): an organization's members, or a person themselves, read them and
|
|
18631
18842
|
* turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
|
|
@@ -18678,7 +18889,34 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18678
18889
|
* decides. People only, by approval.
|
|
18679
18890
|
*/
|
|
18680
18891
|
declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
|
|
18681
|
-
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<{
|
|
18682
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">]>;
|
|
18683
18921
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18684
18922
|
readonly agent: Schema.Struct<{
|
|
@@ -18710,34 +18948,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
18710
18948
|
}>;
|
|
18711
18949
|
readonly targetGeneration: Schema.Int;
|
|
18712
18950
|
readonly turnedOff: Schema.Boolean;
|
|
18713
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never
|
|
18714
|
-
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">]>;
|
|
18715
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18716
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18717
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18718
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18719
|
-
readonly disables: Schema.$Array<Schema.Struct<{
|
|
18720
|
-
readonly agent: Schema.Struct<{
|
|
18721
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18722
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18723
|
-
}>;
|
|
18724
|
-
readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18725
|
-
readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
|
|
18726
|
-
readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
|
|
18727
|
-
readonly kind: Schema.Literal<"person">;
|
|
18728
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18729
|
-
}>, Schema.Struct<{
|
|
18730
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18731
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18732
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18733
|
-
}>, Schema.Struct<{
|
|
18734
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18735
|
-
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")[]>;
|
|
18736
|
-
}>]>;
|
|
18737
|
-
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
18738
|
-
}>>;
|
|
18739
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18740
|
-
}>>, 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>;
|
|
18741
18952
|
/**
|
|
18742
18953
|
* Agents of other owners an organization's admin turns off there (layer 1), such as a member's
|
|
18743
18954
|
* own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
|
|
@@ -27268,7 +27479,9 @@ type LiveTicket = typeof LiveTicket.Type;
|
|
|
27268
27479
|
* Who a passkey request asks: the accountable person; a person, by their name; or anyone holding
|
|
27269
27480
|
* one of the repo's permissions, the first of whom to answer decides. Until a permission's holders
|
|
27270
27481
|
* are kept, they're its owner's admins. A workflow run's `passkey.run` asks its run's accountable
|
|
27271
|
-
* 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.
|
|
27272
27485
|
*/
|
|
27273
27486
|
declare const PasskeyFrom: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
27274
27487
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
@@ -28783,6 +28996,8 @@ type WorkflowPasskeyAsk = typeof WorkflowPasskeyAsk.Type;
|
|
|
28783
28996
|
* - `undeclared`: the workflow's `permissions.ask` doesn't name this kind of `from`, or the
|
|
28784
28997
|
* statement isn't one of its code's templates.
|
|
28785
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.
|
|
28786
29001
|
* - `budget`: the run has asked as much as its `asks` budget allows, or its workflow as many as a
|
|
28787
29002
|
* day allows.
|
|
28788
29003
|
* - `length`: the statement is longer than one may be.
|
|
@@ -28793,7 +29008,7 @@ type WorkflowPasskeyAsk = typeof WorkflowPasskeyAsk.Type;
|
|
|
28793
29008
|
* - `agent`: `from` names an agent, such as one that answered an ask, and an agent has no passkey.
|
|
28794
29009
|
* The SDK refuses it before asking ref0.
|
|
28795
29010
|
*/
|
|
28796
|
-
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"]>;
|
|
28797
29012
|
type PasskeyRefusal = typeof PasskeyRefusal.Type;
|
|
28798
29013
|
/** ref0's answer to a `passkey.run`'s ask: the request, or why not. A refusal is never thrown. */
|
|
28799
29014
|
declare const WorkflowPasskeyAsked: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -28801,7 +29016,7 @@ declare const WorkflowPasskeyAsked: Schema.Union<readonly [Schema.Struct<{
|
|
|
28801
29016
|
readonly request: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
28802
29017
|
}>, Schema.Struct<{
|
|
28803
29018
|
readonly kind: Schema.Literal<"refused">;
|
|
28804
|
-
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"]>;
|
|
28805
29020
|
}>]>;
|
|
28806
29021
|
type WorkflowPasskeyAsked = typeof WorkflowPasskeyAsked.Type;
|
|
28807
29022
|
/** A run's read of one of its requests. */
|
|
@@ -28981,5 +29196,5 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
28981
29196
|
}>]>;
|
|
28982
29197
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
28983
29198
|
//#endregion
|
|
28984
|
-
export {
|
|
28985
|
-
//# 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
|