@ref0/sdk 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -992,6 +992,122 @@ declare const PreviewNotReady_base: Schema.Class<PreviewNotReady, Schema.TaggedS
|
|
|
992
992
|
}>, import("effect/Cause").YieldableError>;
|
|
993
993
|
/** ref0 couldn't check what the person saw just now. Nothing ran: answer again. */
|
|
994
994
|
declare class PreviewNotReady extends PreviewNotReady_base {}
|
|
995
|
+
/** A decision as `/v1` answers it: as it stands, and where it is, in words. */
|
|
996
|
+
declare const NamedDecision: Schema.Struct<{
|
|
997
|
+
readonly decision: Schema.brand<Schema.TemplateLiteral<readonly ["decision_", Schema.String]>, "DecisionId">;
|
|
998
|
+
readonly kind: Schema.Literals<readonly ["ask", "gate"]>;
|
|
999
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
1000
|
+
readonly kind: Schema.Literal<"thread">;
|
|
1001
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
1002
|
+
}>, Schema.Struct<{
|
|
1003
|
+
readonly kind: Schema.Literal<"version">;
|
|
1004
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
1005
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
1006
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
1007
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
1008
|
+
}>]>;
|
|
1009
|
+
readonly question: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
1010
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
1011
|
+
readonly key: Schema.brand<Schema.String, "AnswerKey">;
|
|
1012
|
+
readonly label: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
1013
|
+
readonly detail: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
1014
|
+
}>>;
|
|
1015
|
+
readonly lean: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
1016
|
+
readonly deciders: Schema.$Array<Schema.Struct<{
|
|
1017
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
1018
|
+
readonly kind: Schema.Literal<"person">;
|
|
1019
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
1020
|
+
}>, Schema.Struct<{
|
|
1021
|
+
readonly kind: Schema.Literal<"agent">;
|
|
1022
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
1023
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1024
|
+
}>, Schema.Struct<{
|
|
1025
|
+
readonly kind: Schema.Literal<"check">;
|
|
1026
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
1027
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
1028
|
+
}>, Schema.Struct<{
|
|
1029
|
+
readonly kind: Schema.Literal<"role">;
|
|
1030
|
+
readonly role: Schema.Literal<"admin">;
|
|
1031
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1032
|
+
}>, Schema.Struct<{
|
|
1033
|
+
readonly kind: Schema.Literal<"permission">;
|
|
1034
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
1035
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
1036
|
+
}>, Schema.Struct<{
|
|
1037
|
+
readonly kind: Schema.Literal<"override">;
|
|
1038
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
1039
|
+
readonly kind: Schema.Literal<"check">;
|
|
1040
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
1041
|
+
}>, Schema.Struct<{
|
|
1042
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
1043
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
1044
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
1045
|
+
}>]>;
|
|
1046
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
1047
|
+
readonly kind: Schema.Literal<"person">;
|
|
1048
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
1049
|
+
}>, Schema.Struct<{
|
|
1050
|
+
readonly kind: Schema.Literal<"role">;
|
|
1051
|
+
readonly role: Schema.Literal<"admin">;
|
|
1052
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1053
|
+
}>]>;
|
|
1054
|
+
}>]>;
|
|
1055
|
+
readonly required: Schema.Boolean;
|
|
1056
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
1057
|
+
}>>;
|
|
1058
|
+
readonly deadline: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
1059
|
+
readonly state: Schema.Literals<readonly ["open", "closed"]>;
|
|
1060
|
+
readonly answers: Schema.$Array<Schema.Struct<{
|
|
1061
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
1062
|
+
readonly kind: Schema.Literal<"person">;
|
|
1063
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
1064
|
+
}>, Schema.Struct<{
|
|
1065
|
+
readonly kind: Schema.Literal<"agent">;
|
|
1066
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
1067
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1068
|
+
}>, Schema.Struct<{
|
|
1069
|
+
readonly kind: Schema.Literal<"check">;
|
|
1070
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
1071
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
1072
|
+
}>, Schema.Struct<{
|
|
1073
|
+
readonly kind: Schema.Literal<"role">;
|
|
1074
|
+
readonly role: Schema.Literal<"admin">;
|
|
1075
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1076
|
+
}>, Schema.Struct<{
|
|
1077
|
+
readonly kind: Schema.Literal<"permission">;
|
|
1078
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
1079
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
1080
|
+
}>, Schema.Struct<{
|
|
1081
|
+
readonly kind: Schema.Literal<"override">;
|
|
1082
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
1083
|
+
readonly kind: Schema.Literal<"check">;
|
|
1084
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
1085
|
+
}>, Schema.Struct<{
|
|
1086
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
1087
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
1088
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
1089
|
+
}>]>;
|
|
1090
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
1091
|
+
readonly kind: Schema.Literal<"person">;
|
|
1092
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
1093
|
+
}>, Schema.Struct<{
|
|
1094
|
+
readonly kind: Schema.Literal<"role">;
|
|
1095
|
+
readonly role: Schema.Literal<"admin">;
|
|
1096
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
1097
|
+
}>]>;
|
|
1098
|
+
}>]>;
|
|
1099
|
+
readonly answer: Schema.brand<Schema.String, "AnswerKey">;
|
|
1100
|
+
readonly reason: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
1101
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
1102
|
+
}>>;
|
|
1103
|
+
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
1104
|
+
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
1105
|
+
readonly names: Schema.Struct<{
|
|
1106
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
1107
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
1108
|
+
}>;
|
|
1109
|
+
}>;
|
|
1110
|
+
type NamedDecision = typeof NamedDecision.Type;
|
|
995
1111
|
declare const PlanTextRefused_base: Schema.Class<PlanTextRefused, Schema.TaggedStruct<"PlanTextRefused", {
|
|
996
1112
|
/** Where it is in the plan, such as `outcomes[3]`. */
|
|
997
1113
|
readonly where: Schema.String;
|
|
@@ -1295,6 +1411,22 @@ declare const StaleSeq_base: Schema.Class<StaleSeq, Schema.TaggedStruct<"StaleSe
|
|
|
1295
1411
|
}>, import("effect/Cause").YieldableError>;
|
|
1296
1412
|
/** A list older than the one kept, or the same one again: it changes nothing. */
|
|
1297
1413
|
declare class StaleSeq extends StaleSeq_base {}
|
|
1414
|
+
declare const IdentityAudienceRefused_base: Schema.Class<IdentityAudienceRefused, Schema.TaggedStruct<"IdentityAudienceRefused", {
|
|
1415
|
+
readonly nextStep: Schema.String;
|
|
1416
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1417
|
+
/**
|
|
1418
|
+
* The audience isn't one ref0 signs for: missing, given twice, or not an HTTPS origin as
|
|
1419
|
+
* `IdentityAudience` says. The refused text is never echoed.
|
|
1420
|
+
*/
|
|
1421
|
+
declare class IdentityAudienceRefused extends IdentityAudienceRefused_base {}
|
|
1422
|
+
declare const IdentityTokenNotReady_base: Schema.Class<IdentityTokenNotReady, Schema.TaggedStruct<"IdentityTokenNotReady", {
|
|
1423
|
+
readonly nextStep: Schema.String;
|
|
1424
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1425
|
+
/**
|
|
1426
|
+
* Less than a whole second is left before the session, a parent or the credential expires, or
|
|
1427
|
+
* the token would expire before it's recorded: the next prompt renews or replaces the session.
|
|
1428
|
+
*/
|
|
1429
|
+
declare class IdentityTokenNotReady extends IdentityTokenNotReady_base {}
|
|
1298
1430
|
//#endregion
|
|
1299
1431
|
//#region src/ids.d.ts
|
|
1300
1432
|
/** A person. A person is an owner, so this is also their owner ID. */
|
|
@@ -1346,7 +1478,7 @@ declare const ApiOrigin: Schema.brand<Schema.String, "ApiOrigin">;
|
|
|
1346
1478
|
type ApiOrigin = typeof ApiOrigin.Type;
|
|
1347
1479
|
/**
|
|
1348
1480
|
* Whether a path is Worker "server"'s to answer, not a page's: the API's, signing in's, a
|
|
1349
|
-
* connection's webhook,
|
|
1481
|
+
* connection's webhook, OAuth's metadata, or identity tokens' published documents.
|
|
1350
1482
|
*/
|
|
1351
1483
|
declare const isRef0Path: (pathname: string) => boolean;
|
|
1352
1484
|
declare const NoFork_base: Schema.Class<NoFork, Schema.TaggedStruct<"NoFork", {
|
|
@@ -1995,7 +2127,9 @@ declare const Caller_base: Context.ServiceClass<Caller, "ref0/contracts/Caller",
|
|
|
1995
2127
|
* from. Every endpoint needs a credential, except a terminal asking for an approval, which has
|
|
1996
2128
|
* none to give; who's acting comes from it, never from the request.
|
|
1997
2129
|
* Every request that changes something carries an `Idempotency-Key`, a delivery ID its client
|
|
1998
|
-
* made: a retry with the same key gets the first answer, for 24 hours.
|
|
2130
|
+
* made: a retry with the same key gets the first answer, for 24 hours. Asking for an identity
|
|
2131
|
+
* token is the one exception: each request makes a new token, and ref0 keeps none to answer a
|
|
2132
|
+
* retry with, so a retry gets another token, as `identity-tokens.ts` says.
|
|
1999
2133
|
*/
|
|
2000
2134
|
/** Who's acting on a request: what `Authorize` found its credential to be. */
|
|
2001
2135
|
declare class Caller extends Caller_base {}
|
|
@@ -2078,6 +2212,19 @@ declare const MachineNameRefusal_base: HttpApiMiddleware.ServiceClass<MachineNam
|
|
|
2078
2212
|
* what to change. Any other part that fails its contract is answered with Effect's empty 400.
|
|
2079
2213
|
*/
|
|
2080
2214
|
declare class MachineNameRefusal extends MachineNameRefusal_base {}
|
|
2215
|
+
declare const IdentityAudienceRefusal_base: HttpApiMiddleware.ServiceClass<IdentityAudienceRefusal, "ref0/contracts/IdentityAudienceRefusal", {
|
|
2216
|
+
requires: never;
|
|
2217
|
+
provides: never;
|
|
2218
|
+
error: typeof IdentityAudienceRefused;
|
|
2219
|
+
clientError: never;
|
|
2220
|
+
requiredForClient: false;
|
|
2221
|
+
security: never;
|
|
2222
|
+
}, HttpApiMiddleware.HttpApiMiddleware<never, typeof IdentityAudienceRefused, never>>;
|
|
2223
|
+
/**
|
|
2224
|
+
* An identity token's request whose audience its contract refuses, missing or not an HTTPS
|
|
2225
|
+
* origin, answered as `IdentityAudienceRefused`, which never echoes what was sent.
|
|
2226
|
+
*/
|
|
2227
|
+
declare class IdentityAudienceRefusal extends IdentityAudienceRefusal_base {}
|
|
2081
2228
|
declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/welcome", never, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2082
2229
|
readonly state: Schema.Literals<readonly ["ready", "setting up"]>;
|
|
2083
2230
|
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
@@ -2103,15 +2250,29 @@ declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEnd
|
|
|
2103
2250
|
}>]>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof AuthorityUnavailable>, SignedIn, never>, false>;
|
|
2104
2251
|
/** Where a signed-in person stands, and naming their owner when their GitHub login couldn't. */
|
|
2105
2252
|
declare class WelcomeGroup extends WelcomeGroup_base {}
|
|
2106
|
-
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2107
|
-
readonly
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
readonly
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2253
|
+
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2254
|
+
readonly id: Schema.String;
|
|
2255
|
+
readonly rawId: Schema.String;
|
|
2256
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2257
|
+
readonly response: Schema.Struct<{
|
|
2258
|
+
readonly clientDataJSON: Schema.String;
|
|
2259
|
+
readonly attestationObject: Schema.String;
|
|
2260
|
+
readonly authenticatorData: Schema.optional<Schema.String>;
|
|
2261
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2262
|
+
readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
|
|
2263
|
+
readonly publicKey: Schema.optional<Schema.String>;
|
|
2264
|
+
}>;
|
|
2265
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2266
|
+
readonly clientExtensionResults: Schema.Struct<{
|
|
2267
|
+
readonly credProps: Schema.optionalKey<Schema.Struct<{
|
|
2268
|
+
readonly rk: Schema.optionalKey<Schema.Boolean>;
|
|
2269
|
+
}>>;
|
|
2270
|
+
}>;
|
|
2271
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2272
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2273
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2274
|
+
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2275
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2115
2276
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2116
2277
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2117
2278
|
readonly rp: Schema.Struct<{
|
|
@@ -2142,29 +2303,15 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
2142
2303
|
}>>;
|
|
2143
2304
|
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2144
2305
|
readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
|
|
2145
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2146
|
-
readonly
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
readonly
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
|
|
2155
|
-
readonly publicKey: Schema.optional<Schema.String>;
|
|
2156
|
-
}>;
|
|
2157
|
-
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2158
|
-
readonly clientExtensionResults: Schema.Struct<{
|
|
2159
|
-
readonly credProps: Schema.optionalKey<Schema.Struct<{
|
|
2160
|
-
readonly rk: Schema.optionalKey<Schema.Boolean>;
|
|
2161
|
-
}>>;
|
|
2162
|
-
}>;
|
|
2163
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2164
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2165
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2166
|
-
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2167
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never>, false>;
|
|
2306
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2307
|
+
readonly passkeys: Schema.$Array<Schema.Struct<{
|
|
2308
|
+
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2309
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
2310
|
+
readonly createdAt: Schema.String;
|
|
2311
|
+
readonly backedUp: Schema.Boolean;
|
|
2312
|
+
}>>;
|
|
2313
|
+
readonly approvesHere: Schema.Boolean;
|
|
2314
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
2168
2315
|
/**
|
|
2169
2316
|
* A person's passkeys: listing them, and enrolling the first, which signing in asks for straight
|
|
2170
2317
|
* away and a browser session does on its own, once. Every passkey after is an approval.
|
|
@@ -2207,19 +2354,7 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
|
|
|
2207
2354
|
* what it came to with the approval's secret. Its person answers on their own page, by its code.
|
|
2208
2355
|
*/
|
|
2209
2356
|
declare class TerminalApprovalsGroup extends TerminalApprovalsGroup_base {}
|
|
2210
|
-
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2211
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2212
|
-
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2213
|
-
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2214
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2215
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2216
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2217
|
-
readonly credential: Schema.Struct<{
|
|
2218
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2219
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2220
|
-
}>;
|
|
2221
|
-
readonly childrenRevoked: Schema.Int;
|
|
2222
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
|
|
2357
|
+
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
|
|
2223
2358
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2224
2359
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2225
2360
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -2236,7 +2371,19 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
|
|
|
2236
2371
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
2237
2372
|
}>>;
|
|
2238
2373
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2239
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never
|
|
2374
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
2375
|
+
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">]>;
|
|
2376
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2377
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2378
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2379
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2380
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2381
|
+
readonly credential: Schema.Struct<{
|
|
2382
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2383
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2384
|
+
}>;
|
|
2385
|
+
readonly childrenRevoked: Schema.Int;
|
|
2386
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never>, false>;
|
|
2240
2387
|
/**
|
|
2241
2388
|
* An agent's live attachments, by approval: listed, every one to an admin and their own to anyone
|
|
2242
2389
|
* else; and one of the caller's own disconnected, revoking its credential, which the Worker checks
|
|
@@ -2370,16 +2517,72 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2370
2517
|
* confirming it saved the grant, or aborting, with its collecting secret.
|
|
2371
2518
|
*/
|
|
2372
2519
|
declare class MachineAttachmentsGroup extends MachineAttachmentsGroup_base {}
|
|
2373
|
-
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2520
|
+
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
2374
2521
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2375
|
-
}>>, never,
|
|
2376
|
-
readonly
|
|
2377
|
-
readonly
|
|
2522
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2523
|
+
readonly answer: Schema.Literal<"yes">;
|
|
2524
|
+
readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
|
|
2525
|
+
readonly assertion: Schema.Struct<{
|
|
2526
|
+
readonly id: Schema.String;
|
|
2527
|
+
readonly rawId: Schema.String;
|
|
2528
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2529
|
+
readonly response: Schema.Struct<{
|
|
2530
|
+
readonly clientDataJSON: Schema.String;
|
|
2531
|
+
readonly authenticatorData: Schema.String;
|
|
2532
|
+
readonly signature: Schema.String;
|
|
2533
|
+
readonly userHandle: Schema.optional<Schema.String>;
|
|
2534
|
+
}>;
|
|
2535
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2536
|
+
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
2537
|
+
}>;
|
|
2538
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2539
|
+
readonly preview: Schema.optionalKey<Schema.Struct<{
|
|
2540
|
+
readonly kind: Schema.Literals<readonly ["workflow", "attached workflow"]>;
|
|
2541
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2542
|
+
}>>;
|
|
2543
|
+
readonly statement: Schema.optionalKey<Schema.Struct<{
|
|
2544
|
+
readonly hash: Schema.String;
|
|
2545
|
+
}>>;
|
|
2546
|
+
}>, Schema.Struct<{
|
|
2547
|
+
readonly answer: Schema.Literal<"no">;
|
|
2548
|
+
readonly permission: Schema.Literal<"deny">;
|
|
2549
|
+
readonly assertion: Schema.Struct<{
|
|
2550
|
+
readonly id: Schema.String;
|
|
2551
|
+
readonly rawId: Schema.String;
|
|
2552
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2553
|
+
readonly response: Schema.Struct<{
|
|
2554
|
+
readonly clientDataJSON: Schema.String;
|
|
2555
|
+
readonly authenticatorData: Schema.String;
|
|
2556
|
+
readonly signature: Schema.String;
|
|
2557
|
+
readonly userHandle: Schema.optional<Schema.String>;
|
|
2558
|
+
}>;
|
|
2559
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2560
|
+
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
2561
|
+
}>;
|
|
2562
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2378
2563
|
}>, Schema.Struct<{
|
|
2564
|
+
readonly answer: Schema.Literal<"no">;
|
|
2565
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2566
|
+
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2567
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2568
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2379
2569
|
readonly state: Schema.Literal<"approved">;
|
|
2380
2570
|
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2571
|
+
readonly answerCode: Schema.String;
|
|
2381
2572
|
}>, Schema.Struct<{
|
|
2382
|
-
readonly
|
|
2573
|
+
readonly status: Schema.Int;
|
|
2574
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2575
|
+
readonly state: Schema.Literal<"ran">;
|
|
2576
|
+
readonly endpoint: Schema.String;
|
|
2577
|
+
readonly answerCode: Schema.String;
|
|
2578
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
2579
|
+
readonly state: Schema.Literal<"waiting">;
|
|
2580
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2581
|
+
}>, Schema.Struct<{
|
|
2582
|
+
readonly state: Schema.Literal<"approved">;
|
|
2583
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2584
|
+
}>, Schema.Struct<{
|
|
2585
|
+
readonly state: Schema.Literal<"refused">;
|
|
2383
2586
|
}>, Schema.Struct<{
|
|
2384
2587
|
readonly state: Schema.Literal<"expired">;
|
|
2385
2588
|
}>, Schema.Struct<{
|
|
@@ -2387,49 +2590,388 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2387
2590
|
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2388
2591
|
readonly state: Schema.Literal<"ran">;
|
|
2389
2592
|
readonly endpoint: Schema.String;
|
|
2390
|
-
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2391
|
-
readonly
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2593
|
+
}>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"find", "POST", "/v1/approvals/find", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2594
|
+
readonly code: Schema.String;
|
|
2595
|
+
}>, Schema.Struct<{
|
|
2596
|
+
readonly link: Schema.String;
|
|
2597
|
+
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2598
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2599
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2600
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2601
|
+
readonly says: Schema.String;
|
|
2602
|
+
readonly fields: Schema.$Array<Schema.Struct<{
|
|
2603
|
+
readonly name: Schema.String;
|
|
2604
|
+
readonly value: Schema.String;
|
|
2605
|
+
readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
|
|
2606
|
+
}>>;
|
|
2607
|
+
readonly command: Schema.Struct<{
|
|
2608
|
+
readonly endpoint: Schema.String;
|
|
2609
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2610
|
+
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2611
|
+
readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2612
|
+
}>;
|
|
2613
|
+
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
2614
|
+
readonly kind: Schema.Literal<"terminal">;
|
|
2615
|
+
}>, Schema.Struct<{
|
|
2616
|
+
readonly kind: Schema.Literal<"page">;
|
|
2617
|
+
}>, Schema.Struct<{
|
|
2618
|
+
readonly kind: Schema.Literal<"agent">;
|
|
2619
|
+
readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2620
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2621
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
2622
|
+
readonly attachment: Schema.optionalKey<Schema.Struct<{
|
|
2623
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2624
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2398
2625
|
}>>;
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
readonly
|
|
2406
|
-
|
|
2626
|
+
}>]>;
|
|
2627
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2628
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2629
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2630
|
+
readonly agentPermission: Schema.optionalKey<Schema.Struct<{
|
|
2631
|
+
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"]>;
|
|
2632
|
+
readonly mayAllow: Schema.Boolean;
|
|
2633
|
+
}>>;
|
|
2634
|
+
readonly preview: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2635
|
+
readonly kind: Schema.Literal<"workflow">;
|
|
2636
|
+
readonly repo: Schema.String;
|
|
2637
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2638
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2639
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2640
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2641
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2642
|
+
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
2643
|
+
readonly where: Schema.Struct<{
|
|
2644
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2645
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2646
|
+
}>>;
|
|
2647
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2648
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2649
|
+
}>>;
|
|
2650
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2651
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2652
|
+
}>>;
|
|
2653
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2654
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2655
|
+
}>>;
|
|
2656
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2657
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2658
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2659
|
+
}>>;
|
|
2660
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2661
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2662
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2663
|
+
}>>;
|
|
2664
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2665
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2666
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2667
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2668
|
+
}>>;
|
|
2669
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2670
|
+
readonly cron: Schema.String;
|
|
2671
|
+
readonly timezone: Schema.String;
|
|
2672
|
+
}>>;
|
|
2673
|
+
}>;
|
|
2674
|
+
readonly permissions: Schema.Struct<{
|
|
2675
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2676
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2677
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2678
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2679
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2680
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2681
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2682
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2683
|
+
readonly budgets: Schema.Struct<{
|
|
2684
|
+
readonly requests: Schema.Int;
|
|
2685
|
+
readonly asks: Schema.Int;
|
|
2686
|
+
readonly threads: Schema.Int;
|
|
2687
|
+
readonly calls: Schema.Int;
|
|
2688
|
+
readonly forks: Schema.Int;
|
|
2689
|
+
readonly pushes: Schema.Int;
|
|
2690
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2691
|
+
}>;
|
|
2692
|
+
}>;
|
|
2407
2693
|
}>, Schema.Struct<{
|
|
2408
|
-
readonly
|
|
2694
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2695
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2696
|
+
readonly called: Schema.Literal<true>;
|
|
2697
|
+
readonly permissions: Schema.Struct<{
|
|
2698
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2699
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2700
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2701
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2702
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2703
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2704
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2705
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2706
|
+
readonly budgets: Schema.Struct<{
|
|
2707
|
+
readonly requests: Schema.Int;
|
|
2708
|
+
readonly asks: Schema.Int;
|
|
2709
|
+
readonly threads: Schema.Int;
|
|
2710
|
+
readonly calls: Schema.Int;
|
|
2711
|
+
readonly forks: Schema.Int;
|
|
2712
|
+
readonly pushes: Schema.Int;
|
|
2713
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2714
|
+
}>;
|
|
2715
|
+
}>;
|
|
2716
|
+
}>]>;
|
|
2717
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
2718
|
+
readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
|
|
2719
|
+
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
2720
|
+
}>, Schema.Struct<{
|
|
2721
|
+
readonly kind: Schema.Literal<"attached workflow">;
|
|
2722
|
+
readonly thread: Schema.String;
|
|
2723
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2724
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2725
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2726
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2727
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2728
|
+
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
2729
|
+
readonly where: Schema.Struct<{
|
|
2730
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2731
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2732
|
+
}>>;
|
|
2733
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2734
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2735
|
+
}>>;
|
|
2736
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2737
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2738
|
+
}>>;
|
|
2739
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2740
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2741
|
+
}>>;
|
|
2742
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2743
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2744
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2745
|
+
}>>;
|
|
2746
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2747
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2748
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2749
|
+
}>>;
|
|
2750
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2751
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2752
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2753
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2754
|
+
}>>;
|
|
2755
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2756
|
+
readonly cron: Schema.String;
|
|
2757
|
+
readonly timezone: Schema.String;
|
|
2758
|
+
}>>;
|
|
2759
|
+
}>;
|
|
2760
|
+
readonly permissions: Schema.Struct<{
|
|
2761
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2762
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2763
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2764
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2765
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2766
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2767
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2768
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2769
|
+
readonly budgets: Schema.Struct<{
|
|
2770
|
+
readonly requests: Schema.Int;
|
|
2771
|
+
readonly asks: Schema.Int;
|
|
2772
|
+
readonly threads: Schema.Int;
|
|
2773
|
+
readonly calls: Schema.Int;
|
|
2774
|
+
readonly forks: Schema.Int;
|
|
2775
|
+
readonly pushes: Schema.Int;
|
|
2776
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2777
|
+
}>;
|
|
2778
|
+
}>;
|
|
2409
2779
|
}>, Schema.Struct<{
|
|
2410
|
-
readonly
|
|
2411
|
-
readonly
|
|
2412
|
-
readonly
|
|
2413
|
-
readonly
|
|
2414
|
-
|
|
2415
|
-
readonly
|
|
2416
|
-
readonly
|
|
2417
|
-
|
|
2780
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2781
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2782
|
+
readonly called: Schema.Literal<true>;
|
|
2783
|
+
readonly permissions: Schema.Struct<{
|
|
2784
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2785
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2786
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2787
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2788
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2789
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2790
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2791
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2792
|
+
readonly budgets: Schema.Struct<{
|
|
2793
|
+
readonly requests: Schema.Int;
|
|
2794
|
+
readonly asks: Schema.Int;
|
|
2795
|
+
readonly threads: Schema.Int;
|
|
2796
|
+
readonly calls: Schema.Int;
|
|
2797
|
+
readonly forks: Schema.Int;
|
|
2798
|
+
readonly pushes: Schema.Int;
|
|
2799
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2800
|
+
}>;
|
|
2801
|
+
}>;
|
|
2418
2802
|
}>]>;
|
|
2419
|
-
readonly
|
|
2420
|
-
readonly
|
|
2421
|
-
|
|
2422
|
-
readonly
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2803
|
+
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
2804
|
+
readonly source: Schema.String;
|
|
2805
|
+
}>, Schema.Struct<{
|
|
2806
|
+
readonly kind: Schema.Literal<"unavailable">;
|
|
2807
|
+
readonly nextStep: Schema.String;
|
|
2808
|
+
}>]>>;
|
|
2809
|
+
}>, Schema.Struct<{
|
|
2810
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2811
|
+
readonly machineName: Schema.String;
|
|
2812
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2813
|
+
readonly path: Schema.String;
|
|
2814
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2815
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2816
|
+
}>>;
|
|
2817
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2818
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2819
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2820
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2821
|
+
readonly port: Schema.Int;
|
|
2822
|
+
readonly state: Schema.String;
|
|
2823
|
+
}>>;
|
|
2824
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
|
|
2825
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2826
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2827
|
+
readonly state: Schema.Literal<"waiting">;
|
|
2828
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2829
|
+
}>, Schema.Struct<{
|
|
2830
|
+
readonly state: Schema.Literal<"approved">;
|
|
2831
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2832
|
+
}>, Schema.Struct<{
|
|
2833
|
+
readonly state: Schema.Literal<"refused">;
|
|
2834
|
+
}>, Schema.Struct<{
|
|
2835
|
+
readonly state: Schema.Literal<"expired">;
|
|
2836
|
+
}>, Schema.Struct<{
|
|
2837
|
+
readonly status: Schema.Int;
|
|
2838
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2839
|
+
readonly state: Schema.Literal<"ran">;
|
|
2840
|
+
readonly endpoint: Schema.String;
|
|
2841
|
+
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2842
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2843
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2844
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2845
|
+
readonly folders: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2846
|
+
readonly path: Schema.String;
|
|
2847
|
+
readonly excluded: Schema.Literal<true>;
|
|
2848
|
+
}>, Schema.Struct<{
|
|
2849
|
+
readonly path: Schema.String;
|
|
2850
|
+
readonly agent: Schema.Union<readonly [Schema.Struct<{
|
|
2851
|
+
readonly kind: Schema.Literal<"existing">;
|
|
2852
|
+
readonly agent: Schema.Struct<{
|
|
2853
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2854
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2855
|
+
}>;
|
|
2856
|
+
}>, Schema.Struct<{
|
|
2857
|
+
readonly kind: Schema.Literal<"new">;
|
|
2858
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2859
|
+
}>]>;
|
|
2860
|
+
}>]>>>;
|
|
2861
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2862
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2863
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2864
|
+
readonly challenge: Schema.String;
|
|
2865
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2866
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2867
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2868
|
+
readonly id: Schema.String;
|
|
2869
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2870
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2871
|
+
}>>>;
|
|
2872
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2873
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2874
|
+
}>, Schema.Struct<{
|
|
2875
|
+
readonly request: Schema.Struct<{
|
|
2876
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2877
|
+
readonly machineName: Schema.String;
|
|
2878
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2879
|
+
readonly path: Schema.String;
|
|
2880
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2881
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2882
|
+
}>>;
|
|
2883
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2884
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2885
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2886
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2887
|
+
readonly port: Schema.Int;
|
|
2888
|
+
readonly state: Schema.String;
|
|
2889
|
+
}>>;
|
|
2890
|
+
}>;
|
|
2891
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
2892
|
+
readonly agent: Schema.Struct<{
|
|
2893
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2894
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2895
|
+
}>;
|
|
2896
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2897
|
+
}>>;
|
|
2898
|
+
readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2899
|
+
readonly path: Schema.String;
|
|
2900
|
+
readonly excluded: Schema.Literal<true>;
|
|
2901
|
+
}>, Schema.Struct<{
|
|
2902
|
+
readonly path: Schema.String;
|
|
2903
|
+
readonly connect: Schema.Struct<{
|
|
2904
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2905
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2906
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2907
|
+
}>>;
|
|
2908
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2909
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2910
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2911
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2912
|
+
}>>;
|
|
2913
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2914
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2915
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
2916
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2917
|
+
}>>;
|
|
2918
|
+
}>;
|
|
2919
|
+
}>]>>;
|
|
2920
|
+
readonly passkey: Schema.Struct<{
|
|
2921
|
+
readonly challenge: Schema.String;
|
|
2922
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2923
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2924
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2925
|
+
readonly id: Schema.String;
|
|
2926
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2927
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2928
|
+
}>>>;
|
|
2929
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2930
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2931
|
+
}>;
|
|
2932
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/approvals", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2933
|
+
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
2934
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2935
|
+
readonly says: Schema.String;
|
|
2936
|
+
readonly fields: Schema.$Array<Schema.Struct<{
|
|
2937
|
+
readonly name: Schema.String;
|
|
2938
|
+
readonly value: Schema.String;
|
|
2939
|
+
readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
|
|
2940
|
+
}>>;
|
|
2941
|
+
readonly command: Schema.Struct<{
|
|
2942
|
+
readonly endpoint: Schema.String;
|
|
2943
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2944
|
+
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2945
|
+
readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2946
|
+
}>;
|
|
2947
|
+
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
2948
|
+
readonly kind: Schema.Literal<"terminal">;
|
|
2949
|
+
}>, Schema.Struct<{
|
|
2950
|
+
readonly kind: Schema.Literal<"page">;
|
|
2951
|
+
}>, Schema.Struct<{
|
|
2952
|
+
readonly kind: Schema.Literal<"agent">;
|
|
2953
|
+
readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2954
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2955
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
2956
|
+
readonly attachment: Schema.optionalKey<Schema.Struct<{
|
|
2957
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2958
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2959
|
+
}>>;
|
|
2960
|
+
}>]>;
|
|
2961
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2962
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2963
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2964
|
+
readonly agentPermission: Schema.optionalKey<Schema.Struct<{
|
|
2965
|
+
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"]>;
|
|
2966
|
+
readonly mayAllow: Schema.Boolean;
|
|
2967
|
+
}>>;
|
|
2968
|
+
readonly preview: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2969
|
+
readonly kind: Schema.Literal<"workflow">;
|
|
2970
|
+
readonly repo: Schema.String;
|
|
2971
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2972
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2973
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2974
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2433
2975
|
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2434
2976
|
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
2435
2977
|
readonly where: Schema.Struct<{
|
|
@@ -2640,402 +3182,121 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2640
3182
|
readonly state: Schema.String;
|
|
2641
3183
|
}>>;
|
|
2642
3184
|
}>>;
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
readonly excluded: Schema.Literal<true>;
|
|
2650
|
-
}>, Schema.Struct<{
|
|
2651
|
-
readonly path: Schema.String;
|
|
2652
|
-
readonly agent: Schema.Union<readonly [Schema.Struct<{
|
|
2653
|
-
readonly kind: Schema.Literal<"existing">;
|
|
2654
|
-
readonly agent: Schema.Struct<{
|
|
2655
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2656
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2657
|
-
}>;
|
|
3185
|
+
readonly decisions: Schema.$Array<Schema.Struct<{
|
|
3186
|
+
readonly decision: Schema.brand<Schema.TemplateLiteral<readonly ["decision_", Schema.String]>, "DecisionId">;
|
|
3187
|
+
readonly kind: Schema.Literals<readonly ["ask", "gate"]>;
|
|
3188
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
3189
|
+
readonly kind: Schema.Literal<"thread">;
|
|
3190
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
2658
3191
|
}>, Schema.Struct<{
|
|
2659
|
-
readonly kind: Schema.Literal<"
|
|
2660
|
-
readonly
|
|
3192
|
+
readonly kind: Schema.Literal<"version">;
|
|
3193
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
3194
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3195
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
3196
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
2661
3197
|
}>]>;
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2668
|
-
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2669
|
-
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2670
|
-
readonly id: Schema.String;
|
|
2671
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2672
|
-
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2673
|
-
}>>>;
|
|
2674
|
-
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2675
|
-
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2676
|
-
}>, Schema.Struct<{
|
|
2677
|
-
readonly request: Schema.Struct<{
|
|
2678
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2679
|
-
readonly machineName: Schema.String;
|
|
2680
|
-
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2681
|
-
readonly path: Schema.String;
|
|
2682
|
-
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2683
|
-
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2684
|
-
}>>;
|
|
2685
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2686
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2687
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2688
|
-
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2689
|
-
readonly port: Schema.Int;
|
|
2690
|
-
readonly state: Schema.String;
|
|
3198
|
+
readonly question: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
3199
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
3200
|
+
readonly key: Schema.brand<Schema.String, "AnswerKey">;
|
|
3201
|
+
readonly label: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
3202
|
+
readonly detail: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
2691
3203
|
}>>;
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
}>>;
|
|
2700
|
-
readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2701
|
-
readonly path: Schema.String;
|
|
2702
|
-
readonly excluded: Schema.Literal<true>;
|
|
2703
|
-
}>, Schema.Struct<{
|
|
2704
|
-
readonly path: Schema.String;
|
|
2705
|
-
readonly connect: Schema.Struct<{
|
|
2706
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2707
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3204
|
+
readonly lean: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
3205
|
+
readonly deciders: Schema.$Array<Schema.Struct<{
|
|
3206
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
3207
|
+
readonly kind: Schema.Literal<"person">;
|
|
3208
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3209
|
+
}>, Schema.Struct<{
|
|
3210
|
+
readonly kind: Schema.Literal<"agent">;
|
|
2708
3211
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
readonly
|
|
2713
|
-
readonly
|
|
2714
|
-
}
|
|
2715
|
-
|
|
2716
|
-
readonly
|
|
2717
|
-
readonly
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
readonly fields: Schema.$Array<Schema.Struct<{
|
|
2744
|
-
readonly name: Schema.String;
|
|
2745
|
-
readonly value: Schema.String;
|
|
2746
|
-
readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
|
|
2747
|
-
}>>;
|
|
2748
|
-
readonly command: Schema.Struct<{
|
|
2749
|
-
readonly endpoint: Schema.String;
|
|
2750
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2751
|
-
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2752
|
-
readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2753
|
-
}>;
|
|
2754
|
-
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
2755
|
-
readonly kind: Schema.Literal<"terminal">;
|
|
2756
|
-
}>, Schema.Struct<{
|
|
2757
|
-
readonly kind: Schema.Literal<"page">;
|
|
2758
|
-
}>, Schema.Struct<{
|
|
2759
|
-
readonly kind: Schema.Literal<"agent">;
|
|
2760
|
-
readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2761
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2762
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
2763
|
-
readonly attachment: Schema.optionalKey<Schema.Struct<{
|
|
2764
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2765
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
3212
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3213
|
+
}>, Schema.Struct<{
|
|
3214
|
+
readonly kind: Schema.Literal<"check">;
|
|
3215
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
3216
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
3217
|
+
}>, Schema.Struct<{
|
|
3218
|
+
readonly kind: Schema.Literal<"role">;
|
|
3219
|
+
readonly role: Schema.Literal<"admin">;
|
|
3220
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3221
|
+
}>, Schema.Struct<{
|
|
3222
|
+
readonly kind: Schema.Literal<"permission">;
|
|
3223
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3224
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
3225
|
+
}>, Schema.Struct<{
|
|
3226
|
+
readonly kind: Schema.Literal<"override">;
|
|
3227
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
3228
|
+
readonly kind: Schema.Literal<"check">;
|
|
3229
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
3230
|
+
}>, Schema.Struct<{
|
|
3231
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
3232
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
3233
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
3234
|
+
}>]>;
|
|
3235
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
3236
|
+
readonly kind: Schema.Literal<"person">;
|
|
3237
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3238
|
+
}>, Schema.Struct<{
|
|
3239
|
+
readonly kind: Schema.Literal<"role">;
|
|
3240
|
+
readonly role: Schema.Literal<"admin">;
|
|
3241
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3242
|
+
}>]>;
|
|
3243
|
+
}>]>;
|
|
3244
|
+
readonly required: Schema.Boolean;
|
|
3245
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
2766
3246
|
}>>;
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
readonly
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
readonly
|
|
2792
|
-
readonly
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
readonly
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
readonly
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
readonly
|
|
2816
|
-
|
|
2817
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2818
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2819
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2820
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2821
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2822
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2823
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2824
|
-
readonly budgets: Schema.Struct<{
|
|
2825
|
-
readonly requests: Schema.Int;
|
|
2826
|
-
readonly asks: Schema.Int;
|
|
2827
|
-
readonly threads: Schema.Int;
|
|
2828
|
-
readonly calls: Schema.Int;
|
|
2829
|
-
readonly forks: Schema.Int;
|
|
2830
|
-
readonly pushes: Schema.Int;
|
|
2831
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2832
|
-
}>;
|
|
2833
|
-
}>;
|
|
2834
|
-
}>, Schema.Struct<{
|
|
2835
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2836
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2837
|
-
readonly called: Schema.Literal<true>;
|
|
2838
|
-
readonly permissions: Schema.Struct<{
|
|
2839
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2840
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2841
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2842
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2843
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2844
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2845
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2846
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2847
|
-
readonly budgets: Schema.Struct<{
|
|
2848
|
-
readonly requests: Schema.Int;
|
|
2849
|
-
readonly asks: Schema.Int;
|
|
2850
|
-
readonly threads: Schema.Int;
|
|
2851
|
-
readonly calls: Schema.Int;
|
|
2852
|
-
readonly forks: Schema.Int;
|
|
2853
|
-
readonly pushes: Schema.Int;
|
|
2854
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2855
|
-
}>;
|
|
2856
|
-
}>;
|
|
2857
|
-
}>]>;
|
|
2858
|
-
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
2859
|
-
readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
|
|
2860
|
-
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
2861
|
-
}>, Schema.Struct<{
|
|
2862
|
-
readonly kind: Schema.Literal<"attached workflow">;
|
|
2863
|
-
readonly thread: Schema.String;
|
|
2864
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2865
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2866
|
-
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2867
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2868
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2869
|
-
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
2870
|
-
readonly where: Schema.Struct<{
|
|
2871
|
-
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2872
|
-
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2873
|
-
}>>;
|
|
2874
|
-
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2875
|
-
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2876
|
-
}>>;
|
|
2877
|
-
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2878
|
-
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2879
|
-
}>>;
|
|
2880
|
-
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2881
|
-
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2882
|
-
}>>;
|
|
2883
|
-
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2884
|
-
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2885
|
-
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2886
|
-
}>>;
|
|
2887
|
-
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2888
|
-
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2889
|
-
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2890
|
-
}>>;
|
|
2891
|
-
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2892
|
-
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2893
|
-
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2894
|
-
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2895
|
-
}>>;
|
|
2896
|
-
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2897
|
-
readonly cron: Schema.String;
|
|
2898
|
-
readonly timezone: Schema.String;
|
|
2899
|
-
}>>;
|
|
2900
|
-
}>;
|
|
2901
|
-
readonly permissions: Schema.Struct<{
|
|
2902
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2903
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2904
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2905
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2906
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2907
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2908
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2909
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2910
|
-
readonly budgets: Schema.Struct<{
|
|
2911
|
-
readonly requests: Schema.Int;
|
|
2912
|
-
readonly asks: Schema.Int;
|
|
2913
|
-
readonly threads: Schema.Int;
|
|
2914
|
-
readonly calls: Schema.Int;
|
|
2915
|
-
readonly forks: Schema.Int;
|
|
2916
|
-
readonly pushes: Schema.Int;
|
|
2917
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2918
|
-
}>;
|
|
2919
|
-
}>;
|
|
2920
|
-
}>, Schema.Struct<{
|
|
2921
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2922
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2923
|
-
readonly called: Schema.Literal<true>;
|
|
2924
|
-
readonly permissions: Schema.Struct<{
|
|
2925
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2926
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2927
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2928
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2929
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2930
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2931
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2932
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2933
|
-
readonly budgets: Schema.Struct<{
|
|
2934
|
-
readonly requests: Schema.Int;
|
|
2935
|
-
readonly asks: Schema.Int;
|
|
2936
|
-
readonly threads: Schema.Int;
|
|
2937
|
-
readonly calls: Schema.Int;
|
|
2938
|
-
readonly forks: Schema.Int;
|
|
2939
|
-
readonly pushes: Schema.Int;
|
|
2940
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2941
|
-
}>;
|
|
2942
|
-
}>;
|
|
2943
|
-
}>]>;
|
|
2944
|
-
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
2945
|
-
readonly source: Schema.String;
|
|
2946
|
-
}>, Schema.Struct<{
|
|
2947
|
-
readonly kind: Schema.Literal<"unavailable">;
|
|
2948
|
-
readonly nextStep: Schema.String;
|
|
2949
|
-
}>]>>;
|
|
2950
|
-
}>, Schema.Struct<{
|
|
2951
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2952
|
-
readonly machineName: Schema.String;
|
|
2953
|
-
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2954
|
-
readonly path: Schema.String;
|
|
2955
|
-
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2956
|
-
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2957
|
-
}>>;
|
|
2958
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2959
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2960
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2961
|
-
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2962
|
-
readonly port: Schema.Int;
|
|
2963
|
-
readonly state: Schema.String;
|
|
2964
|
-
}>>;
|
|
2965
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
2966
|
-
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2967
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2968
|
-
readonly answer: Schema.Literal<"yes">;
|
|
2969
|
-
readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
|
|
2970
|
-
readonly assertion: Schema.Struct<{
|
|
2971
|
-
readonly id: Schema.String;
|
|
2972
|
-
readonly rawId: Schema.String;
|
|
2973
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2974
|
-
readonly response: Schema.Struct<{
|
|
2975
|
-
readonly clientDataJSON: Schema.String;
|
|
2976
|
-
readonly authenticatorData: Schema.String;
|
|
2977
|
-
readonly signature: Schema.String;
|
|
2978
|
-
readonly userHandle: Schema.optional<Schema.String>;
|
|
2979
|
-
}>;
|
|
2980
|
-
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2981
|
-
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
2982
|
-
}>;
|
|
2983
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
2984
|
-
readonly preview: Schema.optionalKey<Schema.Struct<{
|
|
2985
|
-
readonly kind: Schema.Literals<readonly ["workflow", "attached workflow"]>;
|
|
2986
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2987
|
-
}>>;
|
|
2988
|
-
readonly statement: Schema.optionalKey<Schema.Struct<{
|
|
2989
|
-
readonly hash: Schema.String;
|
|
2990
|
-
}>>;
|
|
2991
|
-
}>, Schema.Struct<{
|
|
2992
|
-
readonly answer: Schema.Literal<"no">;
|
|
2993
|
-
readonly permission: Schema.Literal<"deny">;
|
|
2994
|
-
readonly assertion: Schema.Struct<{
|
|
2995
|
-
readonly id: Schema.String;
|
|
2996
|
-
readonly rawId: Schema.String;
|
|
2997
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2998
|
-
readonly response: Schema.Struct<{
|
|
2999
|
-
readonly clientDataJSON: Schema.String;
|
|
3000
|
-
readonly authenticatorData: Schema.String;
|
|
3001
|
-
readonly signature: Schema.String;
|
|
3002
|
-
readonly userHandle: Schema.optional<Schema.String>;
|
|
3247
|
+
readonly deadline: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3248
|
+
readonly state: Schema.Literals<readonly ["open", "closed"]>;
|
|
3249
|
+
readonly answers: Schema.$Array<Schema.Struct<{
|
|
3250
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
3251
|
+
readonly kind: Schema.Literal<"person">;
|
|
3252
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3253
|
+
}>, Schema.Struct<{
|
|
3254
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3255
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
3256
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3257
|
+
}>, Schema.Struct<{
|
|
3258
|
+
readonly kind: Schema.Literal<"check">;
|
|
3259
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
3260
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
3261
|
+
}>, Schema.Struct<{
|
|
3262
|
+
readonly kind: Schema.Literal<"role">;
|
|
3263
|
+
readonly role: Schema.Literal<"admin">;
|
|
3264
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3265
|
+
}>, Schema.Struct<{
|
|
3266
|
+
readonly kind: Schema.Literal<"permission">;
|
|
3267
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3268
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
3269
|
+
}>, Schema.Struct<{
|
|
3270
|
+
readonly kind: Schema.Literal<"override">;
|
|
3271
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
3272
|
+
readonly kind: Schema.Literal<"check">;
|
|
3273
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
3274
|
+
}>, Schema.Struct<{
|
|
3275
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
3276
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
3277
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
3278
|
+
}>]>;
|
|
3279
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
3280
|
+
readonly kind: Schema.Literal<"person">;
|
|
3281
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3282
|
+
}>, Schema.Struct<{
|
|
3283
|
+
readonly kind: Schema.Literal<"role">;
|
|
3284
|
+
readonly role: Schema.Literal<"admin">;
|
|
3285
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3286
|
+
}>]>;
|
|
3287
|
+
}>]>;
|
|
3288
|
+
readonly answer: Schema.brand<Schema.String, "AnswerKey">;
|
|
3289
|
+
readonly reason: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
3290
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
3291
|
+
}>>;
|
|
3292
|
+
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
3293
|
+
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
3294
|
+
readonly names: Schema.Struct<{
|
|
3295
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
3296
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
3003
3297
|
}>;
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
}>;
|
|
3007
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
3008
|
-
}>, Schema.Struct<{
|
|
3009
|
-
readonly answer: Schema.Literal<"no">;
|
|
3010
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
3011
|
-
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3012
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3013
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
3014
|
-
readonly state: Schema.Literal<"approved">;
|
|
3015
|
-
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3016
|
-
readonly answerCode: Schema.String;
|
|
3017
|
-
}>, Schema.Struct<{
|
|
3018
|
-
readonly status: Schema.Int;
|
|
3019
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3020
|
-
readonly state: Schema.Literal<"ran">;
|
|
3021
|
-
readonly endpoint: Schema.String;
|
|
3022
|
-
readonly answerCode: Schema.String;
|
|
3023
|
-
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3024
|
-
readonly state: Schema.Literal<"waiting">;
|
|
3025
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
3026
|
-
}>, Schema.Struct<{
|
|
3027
|
-
readonly state: Schema.Literal<"approved">;
|
|
3028
|
-
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3029
|
-
}>, Schema.Struct<{
|
|
3030
|
-
readonly state: Schema.Literal<"refused">;
|
|
3031
|
-
}>, Schema.Struct<{
|
|
3032
|
-
readonly state: Schema.Literal<"expired">;
|
|
3033
|
-
}>, Schema.Struct<{
|
|
3034
|
-
readonly status: Schema.Int;
|
|
3035
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3036
|
-
readonly state: Schema.Literal<"ran">;
|
|
3037
|
-
readonly endpoint: Schema.String;
|
|
3038
|
-
}>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never>, false>;
|
|
3298
|
+
}>>;
|
|
3299
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
3039
3300
|
/**
|
|
3040
3301
|
* A person's side of approvals, in an approving browser: what waits for them, finding a
|
|
3041
3302
|
* terminal's request or a machine's attachment request by its code, and answering one, with
|
|
@@ -3076,7 +3337,12 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3076
3337
|
readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
|
|
3077
3338
|
}>>;
|
|
3078
3339
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3079
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3340
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"identityToken", "POST", "/v1/me/identity-token", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3341
|
+
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
3342
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3343
|
+
readonly token: Schema.brand<Schema.String, "IdentityToken">;
|
|
3344
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3345
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof SessionHasEnded | typeof SlowDown | typeof IdentityAudienceRefused | typeof IdentityTokenNotReady>, Authorization | IdentityAudienceRefusal, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3080
3346
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3081
3347
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3082
3348
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -3148,6 +3414,10 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3148
3414
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3149
3415
|
}>]>;
|
|
3150
3416
|
}>>;
|
|
3417
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3418
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3419
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3420
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3151
3421
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3152
3422
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3153
3423
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -3180,11 +3450,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3180
3450
|
readonly harness: Schema.String;
|
|
3181
3451
|
}>>;
|
|
3182
3452
|
readonly pricesAsOf: Schema.String;
|
|
3183
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never
|
|
3184
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3185
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3186
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3187
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
3453
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never>, false>;
|
|
3188
3454
|
declare class MeGroup extends MeGroup_base {}
|
|
3189
3455
|
declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
|
|
3190
3456
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
@@ -6634,6 +6900,60 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
|
|
|
6634
6900
|
}>;
|
|
6635
6901
|
} & {
|
|
6636
6902
|
readonly seq: Schema.Int;
|
|
6903
|
+
}>, Schema.Struct<{
|
|
6904
|
+
readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
|
|
6905
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
6906
|
+
readonly writer: Schema.Union<readonly [Schema.Literal<"directory">, Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
|
|
6907
|
+
readonly writerSeq: Schema.Int;
|
|
6908
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
6909
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
6910
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
6911
|
+
readonly kind: Schema.Literal<"person">;
|
|
6912
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
6913
|
+
}>, Schema.Struct<{
|
|
6914
|
+
readonly kind: Schema.Literal<"agent">;
|
|
6915
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
6916
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
6917
|
+
}>, Schema.Struct<{
|
|
6918
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
6919
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
6920
|
+
}>]>;
|
|
6921
|
+
readonly token: Schema.optionalKey<Schema.Struct<{
|
|
6922
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
6923
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
6924
|
+
}>>;
|
|
6925
|
+
readonly draftedBy: Schema.optionalKey<Schema.Struct<{
|
|
6926
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
6927
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
6928
|
+
}>>;
|
|
6929
|
+
readonly cause: Schema.optionalKey<Schema.Struct<{
|
|
6930
|
+
readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
|
|
6931
|
+
readonly event: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
6932
|
+
}>>;
|
|
6933
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
6934
|
+
readonly refs: Schema.$Array<Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">]>>;
|
|
6935
|
+
readonly source: Schema.optionalKey<Schema.Struct<{
|
|
6936
|
+
readonly system: Schema.String;
|
|
6937
|
+
readonly deliveryId: Schema.String;
|
|
6938
|
+
}>>;
|
|
6939
|
+
readonly trace: Schema.optionalKey<Schema.String>;
|
|
6940
|
+
readonly kind: Schema.Literal<"identity_token.issued">;
|
|
6941
|
+
readonly data: Schema.Struct<{
|
|
6942
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
6943
|
+
readonly agent: Schema.Struct<{
|
|
6944
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
6945
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
6946
|
+
}>;
|
|
6947
|
+
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
6948
|
+
readonly jti: Schema.brand<Schema.String, "IdentityTokenId">;
|
|
6949
|
+
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
6950
|
+
readonly issuer: Schema.brand<Schema.String, "ApiOrigin">;
|
|
6951
|
+
readonly keyId: Schema.brand<Schema.String, "SigningKeyId">;
|
|
6952
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
6953
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
6954
|
+
}>;
|
|
6955
|
+
} & {
|
|
6956
|
+
readonly seq: Schema.Int;
|
|
6637
6957
|
}>, Schema.Struct<{
|
|
6638
6958
|
readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
|
|
6639
6959
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
@@ -12680,7 +13000,66 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
|
|
|
12680
13000
|
* the stage as filters. A project the reader can't see answers as one that isn't there.
|
|
12681
13001
|
*/
|
|
12682
13002
|
declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
|
|
12683
|
-
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"
|
|
13003
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13004
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13005
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13006
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13007
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13008
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
13009
|
+
readonly kind: Schema.Literal<"checks">;
|
|
13010
|
+
}>, Schema.Struct<{
|
|
13011
|
+
readonly kind: Schema.Literal<"check">;
|
|
13012
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13013
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13014
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13015
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13016
|
+
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
13017
|
+
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
13018
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
13019
|
+
}>, Schema.Struct<{
|
|
13020
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13021
|
+
}>]>;
|
|
13022
|
+
}>>;
|
|
13023
|
+
}>, Schema.Struct<{
|
|
13024
|
+
readonly kind: Schema.Literal<"review">;
|
|
13025
|
+
}>, Schema.Struct<{
|
|
13026
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
13027
|
+
}>, Schema.Struct<{
|
|
13028
|
+
readonly kind: Schema.Literal<"admin">;
|
|
13029
|
+
}>, Schema.Struct<{
|
|
13030
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13031
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13032
|
+
}>]>;
|
|
13033
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13034
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13035
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13036
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13037
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13038
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13039
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13040
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13041
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13042
|
+
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">]>;
|
|
13043
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13044
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13045
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13046
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13047
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13048
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13049
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13050
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13051
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13052
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13053
|
+
readonly kind: Schema.Literal<"project">;
|
|
13054
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13055
|
+
}>, Schema.Struct<{
|
|
13056
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13057
|
+
}>]>;
|
|
13058
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13059
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13060
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13061
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13062
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
12684
13063
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12685
13064
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12686
13065
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -12702,33 +13081,171 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
12702
13081
|
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
12703
13082
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
12704
13083
|
}>, Schema.Struct<{
|
|
12705
|
-
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13084
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13085
|
+
}>]>;
|
|
13086
|
+
}>>;
|
|
13087
|
+
}>, Schema.Struct<{
|
|
13088
|
+
readonly kind: Schema.Literal<"review">;
|
|
13089
|
+
}>, Schema.Struct<{
|
|
13090
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
13091
|
+
}>, Schema.Struct<{
|
|
13092
|
+
readonly kind: Schema.Literal<"admin">;
|
|
13093
|
+
}>, Schema.Struct<{
|
|
13094
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13095
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13096
|
+
}>]>;
|
|
13097
|
+
readonly from: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
13098
|
+
readonly kind: Schema.Literal<"gate">;
|
|
13099
|
+
readonly line: Schema.optionalKey<Schema.Int>;
|
|
13100
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
13101
|
+
}>, Schema.Struct<{
|
|
13102
|
+
readonly kind: Schema.Literal<"floor">;
|
|
13103
|
+
}>, Schema.Struct<{
|
|
13104
|
+
readonly kind: Schema.Literal<"project gate">;
|
|
13105
|
+
readonly line: Schema.optionalKey<Schema.Int>;
|
|
13106
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
13107
|
+
}>, Schema.Struct<{
|
|
13108
|
+
readonly kind: Schema.Literal<"added">;
|
|
13109
|
+
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
13110
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
13111
|
+
readonly kind: Schema.Literal<"person">;
|
|
13112
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13113
|
+
}>, Schema.Struct<{
|
|
13114
|
+
readonly kind: Schema.Literal<"agent">;
|
|
13115
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13116
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13117
|
+
}>, Schema.Struct<{
|
|
13118
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
13119
|
+
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")[]>;
|
|
13120
|
+
}>]>;
|
|
13121
|
+
readonly through: Schema.Literals<readonly ["thread", "person", "finding", "workflow"]>;
|
|
13122
|
+
readonly at: Schema.Int;
|
|
13123
|
+
readonly finding: Schema.optionalKey<Schema.Struct<{
|
|
13124
|
+
readonly review: Schema.brand<Schema.TemplateLiteral<readonly ["review_", Schema.String]>, "ReviewId">;
|
|
13125
|
+
readonly finding: Schema.Int;
|
|
13126
|
+
}>>;
|
|
13127
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
13128
|
+
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
13129
|
+
}>, Schema.Struct<{
|
|
13130
|
+
readonly kind: Schema.Literal<"result">;
|
|
13131
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
13132
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13133
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13134
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13135
|
+
}>, Schema.Struct<{
|
|
13136
|
+
readonly kind: Schema.Literal<"tip">;
|
|
13137
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["tiprun_", Schema.String]>, "TipRunId">;
|
|
13138
|
+
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
13139
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckName">>;
|
|
13140
|
+
readonly checkRun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
13141
|
+
}>]>>;
|
|
13142
|
+
readonly standing: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
13143
|
+
readonly state: Schema.Literal<"met">;
|
|
13144
|
+
readonly by: Schema.$Array<Schema.Struct<{
|
|
13145
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
13146
|
+
readonly kind: Schema.Literal<"person">;
|
|
13147
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13148
|
+
}>, Schema.Struct<{
|
|
13149
|
+
readonly kind: Schema.Literal<"agent">;
|
|
13150
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13151
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13152
|
+
}>, Schema.Struct<{
|
|
13153
|
+
readonly kind: Schema.Literal<"check">;
|
|
13154
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13155
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13156
|
+
}>, Schema.Struct<{
|
|
13157
|
+
readonly kind: Schema.Literal<"role">;
|
|
13158
|
+
readonly role: Schema.Literal<"admin">;
|
|
13159
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13160
|
+
}>, Schema.Struct<{
|
|
13161
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13162
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13163
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13164
|
+
}>, Schema.Struct<{
|
|
13165
|
+
readonly kind: Schema.Literal<"override">;
|
|
13166
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
13167
|
+
readonly kind: Schema.Literal<"check">;
|
|
13168
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13169
|
+
}>, Schema.Struct<{
|
|
13170
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
13171
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
13172
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13173
|
+
}>]>;
|
|
13174
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
13175
|
+
readonly kind: Schema.Literal<"person">;
|
|
13176
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13177
|
+
}>, Schema.Struct<{
|
|
13178
|
+
readonly kind: Schema.Literal<"role">;
|
|
13179
|
+
readonly role: Schema.Literal<"admin">;
|
|
13180
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13181
|
+
}>]>;
|
|
13182
|
+
}>]>;
|
|
13183
|
+
readonly by: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
13184
|
+
readonly overridden: Schema.optionalKey<Schema.Literal<true>>;
|
|
13185
|
+
}>>;
|
|
13186
|
+
}>, Schema.Struct<{
|
|
13187
|
+
readonly state: Schema.Literal<"met">;
|
|
13188
|
+
readonly as: Schema.Literals<readonly ["no checks", "on the tip"]>;
|
|
13189
|
+
}>, Schema.Struct<{
|
|
13190
|
+
readonly state: Schema.Literal<"waiting">;
|
|
13191
|
+
readonly on: Schema.$Array<Schema.Struct<{
|
|
13192
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
13193
|
+
readonly kind: Schema.Literal<"person">;
|
|
13194
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13195
|
+
}>, Schema.Struct<{
|
|
13196
|
+
readonly kind: Schema.Literal<"agent">;
|
|
13197
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13198
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13199
|
+
}>, Schema.Struct<{
|
|
13200
|
+
readonly kind: Schema.Literal<"check">;
|
|
13201
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13202
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13203
|
+
}>, Schema.Struct<{
|
|
13204
|
+
readonly kind: Schema.Literal<"role">;
|
|
13205
|
+
readonly role: Schema.Literal<"admin">;
|
|
13206
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13207
|
+
}>, Schema.Struct<{
|
|
13208
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13209
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13210
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13211
|
+
}>, Schema.Struct<{
|
|
13212
|
+
readonly kind: Schema.Literal<"override">;
|
|
13213
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
13214
|
+
readonly kind: Schema.Literal<"check">;
|
|
13215
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13216
|
+
}>, Schema.Struct<{
|
|
13217
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
13218
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
13219
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13220
|
+
}>]>;
|
|
13221
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
13222
|
+
readonly kind: Schema.Literal<"person">;
|
|
13223
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13224
|
+
}>, Schema.Struct<{
|
|
13225
|
+
readonly kind: Schema.Literal<"role">;
|
|
13226
|
+
readonly role: Schema.Literal<"admin">;
|
|
13227
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13228
|
+
}>]>;
|
|
12706
13229
|
}>]>;
|
|
13230
|
+
readonly overrides: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
13231
|
+
readonly of: Schema.Literals<readonly ["failed run", "not run"]>;
|
|
13232
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
13233
|
+
readonly kind: Schema.Literal<"person">;
|
|
13234
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13235
|
+
}>, Schema.Struct<{
|
|
13236
|
+
readonly kind: Schema.Literal<"role">;
|
|
13237
|
+
readonly role: Schema.Literal<"admin">;
|
|
13238
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13239
|
+
}>]>;
|
|
13240
|
+
}>>>;
|
|
12707
13241
|
}>>;
|
|
13242
|
+
readonly all: Schema.Boolean;
|
|
12708
13243
|
}>, Schema.Struct<{
|
|
12709
|
-
readonly
|
|
12710
|
-
|
|
12711
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
12712
|
-
}>, Schema.Struct<{
|
|
12713
|
-
readonly kind: Schema.Literal<"admin">;
|
|
12714
|
-
}>, Schema.Struct<{
|
|
12715
|
-
readonly kind: Schema.Literal<"permission">;
|
|
12716
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
12717
|
-
}>]>;
|
|
12718
|
-
readonly from: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
12719
|
-
readonly kind: Schema.Literal<"gate">;
|
|
12720
|
-
readonly line: Schema.optionalKey<Schema.Int>;
|
|
12721
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
12722
|
-
}>, Schema.Struct<{
|
|
12723
|
-
readonly kind: Schema.Literal<"floor">;
|
|
12724
|
-
}>, Schema.Struct<{
|
|
12725
|
-
readonly kind: Schema.Literal<"project gate">;
|
|
12726
|
-
readonly line: Schema.optionalKey<Schema.Int>;
|
|
12727
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
13244
|
+
readonly state: Schema.Literal<"waiting">;
|
|
13245
|
+
readonly for: Schema.Literal<"checks read">;
|
|
12728
13246
|
}>, Schema.Struct<{
|
|
12729
|
-
readonly
|
|
12730
|
-
readonly
|
|
12731
|
-
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
13247
|
+
readonly state: Schema.Literal<"refused">;
|
|
13248
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
12732
13249
|
readonly kind: Schema.Literal<"person">;
|
|
12733
13250
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
12734
13251
|
}>, Schema.Struct<{
|
|
@@ -12736,31 +13253,44 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
12736
13253
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12737
13254
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12738
13255
|
}>, Schema.Struct<{
|
|
12739
|
-
readonly kind: Schema.Literal<"
|
|
12740
|
-
readonly
|
|
13256
|
+
readonly kind: Schema.Literal<"check">;
|
|
13257
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13258
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13259
|
+
}>, Schema.Struct<{
|
|
13260
|
+
readonly kind: Schema.Literal<"role">;
|
|
13261
|
+
readonly role: Schema.Literal<"admin">;
|
|
13262
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13263
|
+
}>, Schema.Struct<{
|
|
13264
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13265
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13266
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13267
|
+
}>, Schema.Struct<{
|
|
13268
|
+
readonly kind: Schema.Literal<"override">;
|
|
13269
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
13270
|
+
readonly kind: Schema.Literal<"check">;
|
|
13271
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13272
|
+
}>, Schema.Struct<{
|
|
13273
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
13274
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
13275
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13276
|
+
}>]>;
|
|
13277
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
13278
|
+
readonly kind: Schema.Literal<"person">;
|
|
13279
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13280
|
+
}>, Schema.Struct<{
|
|
13281
|
+
readonly kind: Schema.Literal<"role">;
|
|
13282
|
+
readonly role: Schema.Literal<"admin">;
|
|
13283
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13284
|
+
}>]>;
|
|
12741
13285
|
}>]>;
|
|
12742
|
-
readonly
|
|
12743
|
-
readonly at: Schema.Int;
|
|
12744
|
-
readonly finding: Schema.optionalKey<Schema.Struct<{
|
|
12745
|
-
readonly review: Schema.brand<Schema.TemplateLiteral<readonly ["review_", Schema.String]>, "ReviewId">;
|
|
12746
|
-
readonly finding: Schema.Int;
|
|
12747
|
-
}>>;
|
|
12748
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
12749
|
-
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
12750
|
-
}>, Schema.Struct<{
|
|
12751
|
-
readonly kind: Schema.Literal<"result">;
|
|
12752
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
12753
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
12754
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
12755
|
-
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
12756
|
-
}>, Schema.Struct<{
|
|
12757
|
-
readonly kind: Schema.Literal<"tip">;
|
|
12758
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["tiprun_", Schema.String]>, "TipRunId">;
|
|
12759
|
-
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
12760
|
-
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckName">>;
|
|
12761
|
-
readonly checkRun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
13286
|
+
readonly by: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
12762
13287
|
}>]>>;
|
|
12763
13288
|
}>>;
|
|
13289
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13290
|
+
readonly names: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
13291
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13292
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
13293
|
+
}>>>;
|
|
12764
13294
|
readonly reads: Schema.$Array<Schema.Struct<{
|
|
12765
13295
|
readonly side: Schema.Literals<readonly ["before", "after"]>;
|
|
12766
13296
|
readonly path: Schema.String;
|
|
@@ -13309,7 +13839,29 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13309
13839
|
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13310
13840
|
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13311
13841
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13312
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13842
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
13843
|
+
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">]>;
|
|
13844
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13845
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13846
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13847
|
+
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13848
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13849
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13850
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13851
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13852
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13853
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13854
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13855
|
+
readonly kind: Schema.Literal<"project">;
|
|
13856
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13857
|
+
}>, Schema.Struct<{
|
|
13858
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13859
|
+
}>]>;
|
|
13860
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13861
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13862
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13863
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13864
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
|
|
13313
13865
|
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">]>;
|
|
13314
13866
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13315
13867
|
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
@@ -13549,88 +14101,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13549
14101
|
}>;
|
|
13550
14102
|
readonly threadNumber: Schema.Int;
|
|
13551
14103
|
}>>;
|
|
13552
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13553
|
-
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">]>;
|
|
13554
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13555
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13556
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13557
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13558
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13559
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13560
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13561
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13562
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13563
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13564
|
-
readonly kind: Schema.Literal<"project">;
|
|
13565
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13566
|
-
}>, Schema.Struct<{
|
|
13567
|
-
readonly kind: Schema.Literal<"owner">;
|
|
13568
|
-
}>]>;
|
|
13569
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13570
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13571
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13572
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13573
|
-
}>>, 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<{
|
|
13574
|
-
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">]>;
|
|
13575
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13576
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13577
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13578
|
-
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13579
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13580
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13581
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13582
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13583
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13584
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13585
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13586
|
-
readonly kind: Schema.Literal<"project">;
|
|
13587
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13588
|
-
}>, Schema.Struct<{
|
|
13589
|
-
readonly kind: Schema.Literal<"owner">;
|
|
13590
|
-
}>]>;
|
|
13591
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13592
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13593
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13594
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13595
|
-
}>>, 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<{
|
|
13596
|
-
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">]>;
|
|
13597
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13598
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13599
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13600
|
-
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
13601
|
-
readonly kind: Schema.Literal<"checks">;
|
|
13602
|
-
}>, Schema.Struct<{
|
|
13603
|
-
readonly kind: Schema.Literal<"check">;
|
|
13604
|
-
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13605
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13606
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13607
|
-
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13608
|
-
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
13609
|
-
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
13610
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
13611
|
-
}>, Schema.Struct<{
|
|
13612
|
-
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13613
|
-
}>]>;
|
|
13614
|
-
}>>;
|
|
13615
|
-
}>, Schema.Struct<{
|
|
13616
|
-
readonly kind: Schema.Literal<"review">;
|
|
13617
|
-
}>, Schema.Struct<{
|
|
13618
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
13619
|
-
}>, Schema.Struct<{
|
|
13620
|
-
readonly kind: Schema.Literal<"admin">;
|
|
13621
|
-
}>, Schema.Struct<{
|
|
13622
|
-
readonly kind: Schema.Literal<"permission">;
|
|
13623
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13624
|
-
}>]>;
|
|
13625
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13626
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13627
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13628
|
-
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13629
|
-
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13630
|
-
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13631
|
-
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13632
|
-
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13633
|
-
}>>, 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<{
|
|
14104
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
|
|
13634
14105
|
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">]>;
|
|
13635
14106
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13636
14107
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -16401,7 +16872,11 @@ declare const DecisionsGroup_base: HttpApiGroup.HttpApiGroup<"decisions", HttpAp
|
|
|
16401
16872
|
}>>;
|
|
16402
16873
|
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
16403
16874
|
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
16404
|
-
|
|
16875
|
+
readonly names: Schema.Struct<{
|
|
16876
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
16877
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
16878
|
+
}>;
|
|
16879
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof PlanTextRefused | typeof DecisionNotFound | typeof AnswerRefused | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/projects/:owner/:project/decisions/:decision", Schema.toCodecStringTree<Schema.Struct<{
|
|
16405
16880
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
16406
16881
|
project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
16407
16882
|
} & {
|
|
@@ -16517,6 +16992,10 @@ declare const DecisionsGroup_base: HttpApiGroup.HttpApiGroup<"decisions", HttpAp
|
|
|
16517
16992
|
}>>;
|
|
16518
16993
|
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
16519
16994
|
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
16995
|
+
readonly names: Schema.Struct<{
|
|
16996
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
16997
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
16998
|
+
}>;
|
|
16520
16999
|
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady | typeof DecisionNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/projects/:owner/:project/decisions/", Schema.toCodecStringTree<Schema.Struct<{
|
|
16521
17000
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
16522
17001
|
project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
@@ -16630,6 +17109,11 @@ declare const DecisionsGroup_base: HttpApiGroup.HttpApiGroup<"decisions", HttpAp
|
|
|
16630
17109
|
}>>;
|
|
16631
17110
|
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
16632
17111
|
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
17112
|
+
readonly names: Schema.Struct<{
|
|
17113
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17114
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
17115
|
+
}>;
|
|
17116
|
+
readonly waitsOn: Schema.Literals<readonly ["you", "your person"]>;
|
|
16633
17117
|
}>>;
|
|
16634
17118
|
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady>, Authorization, never>, false>;
|
|
16635
17119
|
declare class DecisionsGroup extends DecisionsGroup_base {}
|
|
@@ -16751,7 +17235,11 @@ declare const OrgDecisionsGroup_base: HttpApiGroup.HttpApiGroup<"orgDecisions",
|
|
|
16751
17235
|
}>>;
|
|
16752
17236
|
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
16753
17237
|
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
16754
|
-
|
|
17238
|
+
readonly names: Schema.Struct<{
|
|
17239
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17240
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
17241
|
+
}>;
|
|
17242
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof PlanTextRefused | typeof DecisionNotFound | typeof AnswerRefused | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/decisions/:decision", Schema.toCodecStringTree<Schema.Struct<{
|
|
16755
17243
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
16756
17244
|
} & {
|
|
16757
17245
|
decision: Schema.brand<Schema.TemplateLiteral<readonly ["decision_", Schema.String]>, "DecisionId">;
|
|
@@ -16866,6 +17354,10 @@ declare const OrgDecisionsGroup_base: HttpApiGroup.HttpApiGroup<"orgDecisions",
|
|
|
16866
17354
|
}>>;
|
|
16867
17355
|
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
16868
17356
|
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
17357
|
+
readonly names: Schema.Struct<{
|
|
17358
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17359
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
17360
|
+
}>;
|
|
16869
17361
|
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady | typeof DecisionNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/owners/:owner/decisions/", Schema.toCodecStringTree<Schema.Struct<{
|
|
16870
17362
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
16871
17363
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -16978,6 +17470,11 @@ declare const OrgDecisionsGroup_base: HttpApiGroup.HttpApiGroup<"orgDecisions",
|
|
|
16978
17470
|
}>>;
|
|
16979
17471
|
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
16980
17472
|
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
17473
|
+
readonly names: Schema.Struct<{
|
|
17474
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17475
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
17476
|
+
}>;
|
|
17477
|
+
readonly waitsOn: Schema.Literals<readonly ["you", "your person"]>;
|
|
16981
17478
|
}>>;
|
|
16982
17479
|
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof ProjectNotReady>, Authorization, never>, false>;
|
|
16983
17480
|
/** The decisions in an organization's own scope, on its org threads, as a project's. */
|
|
@@ -17017,19 +17514,43 @@ declare const AgentPermissionsGroup_base: HttpApiGroup.HttpApiGroup<"agentPermis
|
|
|
17017
17514
|
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">]>;
|
|
17018
17515
|
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"]>;
|
|
17019
17516
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17020
|
-
readonly choice: Schema.Literals<readonly ["ask", "allow", "deny"]>;
|
|
17517
|
+
readonly choice: Schema.Literals<readonly ["ask", "allow", "deny"]>;
|
|
17518
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17519
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17520
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17521
|
+
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"]>;
|
|
17522
|
+
readonly choice: Schema.Literals<readonly ["ask", "allow", "deny"]>;
|
|
17523
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never>, false>;
|
|
17524
|
+
/**
|
|
17525
|
+
* An owner's agent permissions, on `/settings`: reading them, and changing one, which runs by
|
|
17526
|
+
* the person's approval, answered with their passkey in an approving browser.
|
|
17527
|
+
*/
|
|
17528
|
+
declare class AgentPermissionsGroup extends AgentPermissionsGroup_base {}
|
|
17529
|
+
declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17530
|
+
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">]>;
|
|
17531
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17532
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17533
|
+
readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
|
|
17534
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17535
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17536
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17537
|
+
readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17538
|
+
readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17539
|
+
readonly coversUnread: Schema.Boolean;
|
|
17540
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17541
|
+
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">]>;
|
|
17542
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17543
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17544
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17545
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17021
17546
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17022
17547
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17023
17548
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17024
|
-
readonly
|
|
17025
|
-
readonly
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
* the person's approval, answered with their passkey in an approving browser.
|
|
17030
|
-
*/
|
|
17031
|
-
declare class AgentPermissionsGroup extends AgentPermissionsGroup_base {}
|
|
17032
|
-
declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/workflows", Schema.toCodecStringTree<Schema.Struct<{
|
|
17549
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17550
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17551
|
+
readonly changed: Schema.Boolean;
|
|
17552
|
+
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17553
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/workflows", Schema.toCodecStringTree<Schema.Struct<{
|
|
17033
17554
|
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">]>;
|
|
17034
17555
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17035
17556
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -17261,55 +17782,343 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17261
17782
|
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17262
17783
|
readonly count: Schema.Int;
|
|
17263
17784
|
}>>;
|
|
17264
|
-
readonly duplicates: Schema.Int;
|
|
17265
|
-
readonly kind: Schema.Literal<"expired">;
|
|
17266
|
-
}>]>>;
|
|
17267
|
-
readonly matchedAt: Schema.DateTimeUtcFromMillis;
|
|
17268
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17269
|
-
readonly parent: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17270
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17271
|
-
}>>;
|
|
17272
|
-
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17273
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never
|
|
17785
|
+
readonly duplicates: Schema.Int;
|
|
17786
|
+
readonly kind: Schema.Literal<"expired">;
|
|
17787
|
+
}>]>>;
|
|
17788
|
+
readonly matchedAt: Schema.DateTimeUtcFromMillis;
|
|
17789
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17790
|
+
readonly parent: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17791
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
17792
|
+
}>>;
|
|
17793
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17794
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
|
|
17795
|
+
/**
|
|
17796
|
+
* A repo's workflows and their workflow runs, for whoever may read the repo. Turning workflows
|
|
17797
|
+
* off is a person's approved command, which reaches `/v1` with approvals; an agent asks its
|
|
17798
|
+
* person.
|
|
17799
|
+
*/
|
|
17800
|
+
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17801
|
+
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
17802
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17803
|
+
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">]>;
|
|
17804
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17805
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17806
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17807
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17808
|
+
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17809
|
+
}>>, 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<{
|
|
17810
|
+
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">]>;
|
|
17811
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17812
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17813
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17814
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
17815
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17816
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17817
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17818
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17819
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17820
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17821
|
+
readonly rerun: Schema.Int;
|
|
17822
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17823
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17824
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17825
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17826
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17827
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17828
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17829
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17830
|
+
readonly kind: Schema.Literal<"person">;
|
|
17831
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17832
|
+
}>, Schema.Struct<{
|
|
17833
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17834
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17835
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17836
|
+
}>, Schema.Struct<{
|
|
17837
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17838
|
+
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")[]>;
|
|
17839
|
+
}>]>;
|
|
17840
|
+
readonly request: Schema.String;
|
|
17841
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17842
|
+
}>>;
|
|
17843
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17844
|
+
readonly attachment: Schema.Struct<{
|
|
17845
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17846
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17847
|
+
}>;
|
|
17848
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17849
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17850
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17851
|
+
}>>;
|
|
17852
|
+
}>>;
|
|
17853
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17854
|
+
readonly requests: Schema.Int;
|
|
17855
|
+
readonly omitted: Schema.Int;
|
|
17856
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17857
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17858
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17859
|
+
readonly step: Schema.String;
|
|
17860
|
+
readonly count: Schema.Int;
|
|
17861
|
+
readonly attempt: Schema.Int;
|
|
17862
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17863
|
+
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"]>;
|
|
17864
|
+
readonly recovery: Schema.String;
|
|
17865
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17866
|
+
readonly url: Schema.String;
|
|
17867
|
+
}>>;
|
|
17868
|
+
readonly refusalsOmitted: Schema.Int;
|
|
17869
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17870
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17871
|
+
readonly step: Schema.String;
|
|
17872
|
+
readonly count: Schema.Int;
|
|
17873
|
+
readonly attempt: Schema.Int;
|
|
17874
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17875
|
+
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"]>;
|
|
17876
|
+
readonly recovery: Schema.String;
|
|
17877
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17878
|
+
readonly url: Schema.String;
|
|
17879
|
+
}>>;
|
|
17880
|
+
readonly reportedOmitted: Schema.Int;
|
|
17881
|
+
}>>;
|
|
17882
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17883
|
+
readonly browses: Schema.Int;
|
|
17884
|
+
readonly closing: Schema.Int;
|
|
17885
|
+
readonly unconfirmed: Schema.Int;
|
|
17886
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17887
|
+
readonly unresolved: Schema.Int;
|
|
17888
|
+
readonly presumedExpired: Schema.Int;
|
|
17889
|
+
readonly browserMs: Schema.Int;
|
|
17890
|
+
readonly estimated: Schema.Boolean;
|
|
17891
|
+
}>>;
|
|
17892
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17893
|
+
}>, Schema.Struct<{
|
|
17894
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17895
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17896
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17897
|
+
readonly rerun: Schema.Int;
|
|
17898
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17899
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17900
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17901
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17902
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17903
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17904
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17905
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17906
|
+
readonly kind: Schema.Literal<"person">;
|
|
17907
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17908
|
+
}>, Schema.Struct<{
|
|
17909
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17910
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17911
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17912
|
+
}>, Schema.Struct<{
|
|
17913
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17914
|
+
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")[]>;
|
|
17915
|
+
}>]>;
|
|
17916
|
+
readonly request: Schema.String;
|
|
17917
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17918
|
+
}>>;
|
|
17919
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17920
|
+
readonly attachment: Schema.Struct<{
|
|
17921
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17922
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17923
|
+
}>;
|
|
17924
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17925
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17926
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17927
|
+
}>>;
|
|
17928
|
+
}>>;
|
|
17929
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17930
|
+
readonly requests: Schema.Int;
|
|
17931
|
+
readonly omitted: Schema.Int;
|
|
17932
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17933
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17934
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17935
|
+
readonly step: Schema.String;
|
|
17936
|
+
readonly count: Schema.Int;
|
|
17937
|
+
readonly attempt: Schema.Int;
|
|
17938
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17939
|
+
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"]>;
|
|
17940
|
+
readonly recovery: Schema.String;
|
|
17941
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17942
|
+
readonly url: Schema.String;
|
|
17943
|
+
}>>;
|
|
17944
|
+
readonly refusalsOmitted: Schema.Int;
|
|
17945
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17946
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17947
|
+
readonly step: Schema.String;
|
|
17948
|
+
readonly count: Schema.Int;
|
|
17949
|
+
readonly attempt: Schema.Int;
|
|
17950
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17951
|
+
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"]>;
|
|
17952
|
+
readonly recovery: Schema.String;
|
|
17953
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17954
|
+
readonly url: Schema.String;
|
|
17955
|
+
}>>;
|
|
17956
|
+
readonly reportedOmitted: Schema.Int;
|
|
17957
|
+
}>>;
|
|
17958
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17959
|
+
readonly browses: Schema.Int;
|
|
17960
|
+
readonly closing: Schema.Int;
|
|
17961
|
+
readonly unconfirmed: Schema.Int;
|
|
17962
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17963
|
+
readonly unresolved: Schema.Int;
|
|
17964
|
+
readonly presumedExpired: Schema.Int;
|
|
17965
|
+
readonly browserMs: Schema.Int;
|
|
17966
|
+
readonly estimated: Schema.Boolean;
|
|
17967
|
+
}>>;
|
|
17968
|
+
readonly state: Schema.Literal<"ended">;
|
|
17969
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17970
|
+
}>, Schema.Struct<{
|
|
17971
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17972
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17973
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17974
|
+
readonly rerun: Schema.Int;
|
|
17975
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17976
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17977
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17978
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17979
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17980
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17981
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17982
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17983
|
+
readonly kind: Schema.Literal<"person">;
|
|
17984
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17985
|
+
}>, Schema.Struct<{
|
|
17986
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17987
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17988
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17989
|
+
}>, Schema.Struct<{
|
|
17990
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17991
|
+
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")[]>;
|
|
17992
|
+
}>]>;
|
|
17993
|
+
readonly request: Schema.String;
|
|
17994
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17995
|
+
}>>;
|
|
17996
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17997
|
+
readonly attachment: Schema.Struct<{
|
|
17998
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17999
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18000
|
+
}>;
|
|
18001
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
18002
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18003
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18004
|
+
}>>;
|
|
18005
|
+
}>>;
|
|
18006
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
18007
|
+
readonly requests: Schema.Int;
|
|
18008
|
+
readonly omitted: Schema.Int;
|
|
18009
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
18010
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
18011
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18012
|
+
readonly step: Schema.String;
|
|
18013
|
+
readonly count: Schema.Int;
|
|
18014
|
+
readonly attempt: Schema.Int;
|
|
18015
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18016
|
+
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"]>;
|
|
18017
|
+
readonly recovery: Schema.String;
|
|
18018
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18019
|
+
readonly url: Schema.String;
|
|
18020
|
+
}>>;
|
|
18021
|
+
readonly refusalsOmitted: Schema.Int;
|
|
18022
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18023
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18024
|
+
readonly step: Schema.String;
|
|
18025
|
+
readonly count: Schema.Int;
|
|
18026
|
+
readonly attempt: Schema.Int;
|
|
18027
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18028
|
+
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"]>;
|
|
18029
|
+
readonly recovery: Schema.String;
|
|
18030
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18031
|
+
readonly url: Schema.String;
|
|
18032
|
+
}>>;
|
|
18033
|
+
readonly reportedOmitted: Schema.Int;
|
|
18034
|
+
}>>;
|
|
18035
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18036
|
+
readonly browses: Schema.Int;
|
|
18037
|
+
readonly closing: Schema.Int;
|
|
18038
|
+
readonly unconfirmed: Schema.Int;
|
|
18039
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18040
|
+
readonly unresolved: Schema.Int;
|
|
18041
|
+
readonly presumedExpired: Schema.Int;
|
|
18042
|
+
readonly browserMs: Schema.Int;
|
|
18043
|
+
readonly estimated: Schema.Boolean;
|
|
18044
|
+
}>>;
|
|
18045
|
+
readonly state: Schema.Literal<"ended">;
|
|
18046
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18047
|
+
}>]>>;
|
|
18048
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18049
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17274
18050
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17275
18051
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17276
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17277
|
-
readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
|
|
17278
18052
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17279
|
-
|
|
17280
|
-
|
|
17281
|
-
|
|
17282
|
-
readonly
|
|
17283
|
-
readonly
|
|
17284
|
-
|
|
18053
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18054
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18055
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18056
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
18057
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
18058
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18059
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18060
|
+
readonly code: Schema.Struct<{
|
|
18061
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18062
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18063
|
+
}>;
|
|
18064
|
+
readonly timeoutSeconds: Schema.Int;
|
|
18065
|
+
readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18066
|
+
readonly compiled: Schema.Struct<{
|
|
18067
|
+
readonly entry: Schema.Struct<{
|
|
18068
|
+
readonly name: Schema.String;
|
|
18069
|
+
readonly module: Schema.String;
|
|
18070
|
+
readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18071
|
+
readonly files: Schema.$Array<Schema.String>;
|
|
18072
|
+
readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
18073
|
+
readonly sourceMap: Schema.optionalKey<Schema.String>;
|
|
18074
|
+
readonly reaches: Schema.optionalKey<Schema.Struct<{
|
|
18075
|
+
readonly tree: Schema.Boolean;
|
|
18076
|
+
readonly browser: Schema.Boolean;
|
|
18077
|
+
}>>;
|
|
18078
|
+
readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18079
|
+
readonly name: Schema.String;
|
|
18080
|
+
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18081
|
+
readonly pin: Schema.String;
|
|
18082
|
+
readonly format: Schema.Int;
|
|
18083
|
+
}>>>;
|
|
18084
|
+
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18085
|
+
}>;
|
|
18086
|
+
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
18087
|
+
}>;
|
|
18088
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17285
18089
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17286
18090
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17287
18091
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17288
|
-
readonly
|
|
17289
|
-
readonly
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
17293
|
-
|
|
17294
|
-
|
|
17295
|
-
readonly
|
|
17296
|
-
readonly
|
|
17297
|
-
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
|
|
17311
|
-
|
|
17312
|
-
|
|
18092
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18093
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18094
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18095
|
+
readonly code: Schema.Struct<{
|
|
18096
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18097
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18098
|
+
}>;
|
|
18099
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18100
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18101
|
+
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
18102
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18103
|
+
readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18104
|
+
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18105
|
+
readonly kind: Schema.Literal<"review">;
|
|
18106
|
+
}>, Schema.Struct<{
|
|
18107
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
18108
|
+
}>, Schema.Struct<{
|
|
18109
|
+
readonly kind: Schema.Literal<"admin">;
|
|
18110
|
+
}>, Schema.Struct<{
|
|
18111
|
+
readonly kind: Schema.Literal<"permission">;
|
|
18112
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
18113
|
+
}>]>>>;
|
|
18114
|
+
}>, Schema.Struct<{
|
|
18115
|
+
readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
|
|
18116
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
18117
|
+
}>]>;
|
|
18118
|
+
readonly outputsHash: Schema.String;
|
|
18119
|
+
readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
18120
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18121
|
+
readonly run: Schema.Union<readonly [Schema.Struct<{
|
|
17313
18122
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17314
18123
|
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17315
18124
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -17539,48 +18348,107 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17539
18348
|
}>>;
|
|
17540
18349
|
readonly state: Schema.Literal<"ended">;
|
|
17541
18350
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17542
|
-
}>]
|
|
17543
|
-
|
|
17544
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
18351
|
+
}>]>;
|
|
18352
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
|
|
17545
18353
|
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">]>;
|
|
17546
18354
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17547
|
-
}>>, Schema.
|
|
17548
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18355
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17549
18356
|
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17550
|
-
|
|
17551
|
-
|
|
17552
|
-
readonly
|
|
17553
|
-
readonly
|
|
17554
|
-
|
|
17555
|
-
readonly
|
|
17556
|
-
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
readonly
|
|
17560
|
-
|
|
17561
|
-
readonly
|
|
17562
|
-
|
|
17563
|
-
|
|
17564
|
-
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
|
|
18357
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18358
|
+
}>, Schema.Struct<{
|
|
18359
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18360
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18361
|
+
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18362
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18363
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18364
|
+
}>, Schema.Struct<{
|
|
18365
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18366
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18367
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
18368
|
+
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">]>;
|
|
18369
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18370
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18371
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18372
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
18373
|
+
readonly kind: Schema.Literal<"main">;
|
|
18374
|
+
}>, Schema.Struct<{
|
|
18375
|
+
readonly kind: Schema.Literal<"thread">;
|
|
18376
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18377
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
18378
|
+
}>]>;
|
|
18379
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18380
|
+
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18381
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18382
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18383
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18384
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18385
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18386
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18387
|
+
readonly rerun: Schema.Int;
|
|
18388
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18389
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18390
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18391
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18392
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18393
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
18394
|
+
}>, Schema.Struct<{
|
|
18395
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18396
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18397
|
+
readonly rerun: Schema.Int;
|
|
18398
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18399
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18400
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18401
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18402
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18403
|
+
readonly state: Schema.Literal<"ended">;
|
|
18404
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18405
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18406
|
+
}>, Schema.Struct<{
|
|
18407
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18408
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18409
|
+
readonly rerun: Schema.Int;
|
|
18410
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18411
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18412
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18413
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18414
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18415
|
+
readonly state: Schema.Literal<"ended">;
|
|
18416
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18417
|
+
}>]>>;
|
|
18418
|
+
}>, Schema.Struct<{
|
|
18419
|
+
readonly waiting: Schema.Struct<{
|
|
18420
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18421
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18422
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18423
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18424
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18425
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18426
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18427
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18428
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18429
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
18430
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18431
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18432
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18433
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18434
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
18435
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18436
|
+
readonly kind: Schema.Literal<"person">;
|
|
18437
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18438
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18439
|
+
}>, Schema.Struct<{
|
|
18440
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18441
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18442
|
+
}>, Schema.Struct<{
|
|
18443
|
+
readonly kind: Schema.Literal<"holders">;
|
|
18444
|
+
readonly permission: Schema.String;
|
|
18445
|
+
}>]>>;
|
|
18446
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
18447
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17572
18448
|
}>>;
|
|
17573
|
-
|
|
17574
|
-
readonly name: Schema.String;
|
|
17575
|
-
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17576
|
-
readonly pin: Schema.String;
|
|
17577
|
-
readonly format: Schema.Int;
|
|
17578
|
-
}>>>;
|
|
17579
|
-
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17580
|
-
}>;
|
|
17581
|
-
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
18449
|
+
}>>;
|
|
17582
18450
|
}>;
|
|
17583
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof
|
|
18451
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
17584
18452
|
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">]>;
|
|
17585
18453
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17586
18454
|
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
@@ -17728,430 +18596,59 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17728
18596
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17729
18597
|
readonly rerun: Schema.Int;
|
|
17730
18598
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17731
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17732
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17733
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17734
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17735
|
-
readonly state: Schema.Literal<"ended">;
|
|
17736
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17737
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17738
|
-
}>, Schema.Struct<{
|
|
17739
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17740
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17741
|
-
readonly rerun: Schema.Int;
|
|
17742
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17743
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17744
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17745
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17746
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17747
|
-
readonly state: Schema.Literal<"ended">;
|
|
17748
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17749
|
-
}>]>>;
|
|
17750
|
-
}>, Schema.Struct<{
|
|
17751
|
-
readonly waiting: Schema.Struct<{
|
|
17752
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17753
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17754
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17755
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17756
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17757
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17758
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17759
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17760
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17761
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17762
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17763
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17764
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17765
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17766
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17767
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17768
|
-
readonly kind: Schema.Literal<"person">;
|
|
17769
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17770
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17771
|
-
}>, Schema.Struct<{
|
|
17772
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17773
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17774
|
-
}>, Schema.Struct<{
|
|
17775
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17776
|
-
readonly permission: Schema.String;
|
|
17777
|
-
}>]>>;
|
|
17778
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17779
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17780
|
-
}>>;
|
|
17781
|
-
}>>;
|
|
17782
|
-
}>;
|
|
17783
|
-
}>]>>, 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<{
|
|
17784
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17785
|
-
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">]>;
|
|
17786
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17787
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17788
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17789
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17790
|
-
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17791
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17792
|
-
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">]>;
|
|
17793
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17794
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17795
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17796
|
-
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17797
|
-
readonly kind: Schema.Literal<"main">;
|
|
17798
|
-
}>, Schema.Struct<{
|
|
17799
|
-
readonly kind: Schema.Literal<"thread">;
|
|
17800
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17801
|
-
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17802
|
-
}>]>;
|
|
17803
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17804
|
-
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17805
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17806
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17807
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17808
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17809
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17810
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17811
|
-
readonly rerun: Schema.Int;
|
|
17812
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17813
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17814
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17815
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17816
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17817
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17818
|
-
}>, Schema.Struct<{
|
|
17819
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17820
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17821
|
-
readonly rerun: Schema.Int;
|
|
17822
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17823
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17824
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17825
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17826
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17827
|
-
readonly state: Schema.Literal<"ended">;
|
|
17828
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17829
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17830
|
-
}>, Schema.Struct<{
|
|
17831
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17832
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17833
|
-
readonly rerun: Schema.Int;
|
|
17834
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17835
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17836
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17837
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17838
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17839
|
-
readonly state: Schema.Literal<"ended">;
|
|
17840
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17841
|
-
}>]>>;
|
|
17842
|
-
}>, Schema.Struct<{
|
|
17843
|
-
readonly waiting: Schema.Struct<{
|
|
17844
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17845
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17846
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17847
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17848
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17849
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17850
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17851
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17852
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17853
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17854
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17855
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17856
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17857
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17858
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17859
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17860
|
-
readonly kind: Schema.Literal<"person">;
|
|
17861
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17862
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17863
|
-
}>, Schema.Struct<{
|
|
17864
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17865
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17866
|
-
}>, Schema.Struct<{
|
|
17867
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17868
|
-
readonly permission: Schema.String;
|
|
17869
|
-
}>]>>;
|
|
17870
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17871
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17872
|
-
}>>;
|
|
17873
|
-
}>>;
|
|
17874
|
-
}>;
|
|
17875
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17876
|
-
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">]>;
|
|
17877
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17878
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17879
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17880
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17881
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17882
|
-
readonly code: Schema.Struct<{
|
|
17883
|
-
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17884
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17885
|
-
}>;
|
|
17886
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17887
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17888
|
-
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
17889
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17890
|
-
readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17891
|
-
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17892
|
-
readonly kind: Schema.Literal<"review">;
|
|
17893
|
-
}>, Schema.Struct<{
|
|
17894
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
17895
|
-
}>, Schema.Struct<{
|
|
17896
|
-
readonly kind: Schema.Literal<"admin">;
|
|
17897
|
-
}>, Schema.Struct<{
|
|
17898
|
-
readonly kind: Schema.Literal<"permission">;
|
|
17899
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
17900
|
-
}>]>>>;
|
|
17901
|
-
}>, Schema.Struct<{
|
|
17902
|
-
readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
|
|
17903
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
17904
|
-
}>]>;
|
|
17905
|
-
readonly outputsHash: Schema.String;
|
|
17906
|
-
readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
17907
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17908
|
-
readonly run: Schema.Union<readonly [Schema.Struct<{
|
|
17909
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17910
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17911
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17912
|
-
readonly rerun: Schema.Int;
|
|
17913
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17914
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17915
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17916
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17917
|
-
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17918
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17919
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17920
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17921
|
-
readonly kind: Schema.Literal<"person">;
|
|
17922
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17923
|
-
}>, Schema.Struct<{
|
|
17924
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17925
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17926
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17927
|
-
}>, Schema.Struct<{
|
|
17928
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17929
|
-
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")[]>;
|
|
17930
|
-
}>]>;
|
|
17931
|
-
readonly request: Schema.String;
|
|
17932
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17933
|
-
}>>;
|
|
17934
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17935
|
-
readonly attachment: Schema.Struct<{
|
|
17936
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17937
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17938
|
-
}>;
|
|
17939
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17940
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17941
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17942
|
-
}>>;
|
|
17943
|
-
}>>;
|
|
17944
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17945
|
-
readonly requests: Schema.Int;
|
|
17946
|
-
readonly omitted: Schema.Int;
|
|
17947
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17948
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17949
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17950
|
-
readonly step: Schema.String;
|
|
17951
|
-
readonly count: Schema.Int;
|
|
17952
|
-
readonly attempt: Schema.Int;
|
|
17953
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17954
|
-
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"]>;
|
|
17955
|
-
readonly recovery: Schema.String;
|
|
17956
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17957
|
-
readonly url: Schema.String;
|
|
17958
|
-
}>>;
|
|
17959
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17960
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17961
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17962
|
-
readonly step: Schema.String;
|
|
17963
|
-
readonly count: Schema.Int;
|
|
17964
|
-
readonly attempt: Schema.Int;
|
|
17965
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17966
|
-
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"]>;
|
|
17967
|
-
readonly recovery: Schema.String;
|
|
17968
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17969
|
-
readonly url: Schema.String;
|
|
17970
|
-
}>>;
|
|
17971
|
-
readonly reportedOmitted: Schema.Int;
|
|
17972
|
-
}>>;
|
|
17973
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17974
|
-
readonly browses: Schema.Int;
|
|
17975
|
-
readonly closing: Schema.Int;
|
|
17976
|
-
readonly unconfirmed: Schema.Int;
|
|
17977
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17978
|
-
readonly unresolved: Schema.Int;
|
|
17979
|
-
readonly presumedExpired: Schema.Int;
|
|
17980
|
-
readonly browserMs: Schema.Int;
|
|
17981
|
-
readonly estimated: Schema.Boolean;
|
|
17982
|
-
}>>;
|
|
17983
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17984
|
-
}>, Schema.Struct<{
|
|
17985
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17986
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17987
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17988
|
-
readonly rerun: Schema.Int;
|
|
17989
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17990
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17991
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17992
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17993
|
-
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17994
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17995
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17996
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17997
|
-
readonly kind: Schema.Literal<"person">;
|
|
17998
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17999
|
-
}>, Schema.Struct<{
|
|
18000
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18001
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18002
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18003
|
-
}>, Schema.Struct<{
|
|
18004
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18005
|
-
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")[]>;
|
|
18006
|
-
}>]>;
|
|
18007
|
-
readonly request: Schema.String;
|
|
18008
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
18009
|
-
}>>;
|
|
18010
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
18011
|
-
readonly attachment: Schema.Struct<{
|
|
18012
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18013
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18014
|
-
}>;
|
|
18015
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
18016
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18017
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18018
|
-
}>>;
|
|
18019
|
-
}>>;
|
|
18020
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
18021
|
-
readonly requests: Schema.Int;
|
|
18022
|
-
readonly omitted: Schema.Int;
|
|
18023
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
18024
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
18025
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18026
|
-
readonly step: Schema.String;
|
|
18027
|
-
readonly count: Schema.Int;
|
|
18028
|
-
readonly attempt: Schema.Int;
|
|
18029
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18030
|
-
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"]>;
|
|
18031
|
-
readonly recovery: Schema.String;
|
|
18032
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18033
|
-
readonly url: Schema.String;
|
|
18034
|
-
}>>;
|
|
18035
|
-
readonly refusalsOmitted: Schema.Int;
|
|
18036
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18037
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18038
|
-
readonly step: Schema.String;
|
|
18039
|
-
readonly count: Schema.Int;
|
|
18040
|
-
readonly attempt: Schema.Int;
|
|
18041
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18042
|
-
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"]>;
|
|
18043
|
-
readonly recovery: Schema.String;
|
|
18044
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18045
|
-
readonly url: Schema.String;
|
|
18046
|
-
}>>;
|
|
18047
|
-
readonly reportedOmitted: Schema.Int;
|
|
18048
|
-
}>>;
|
|
18049
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18050
|
-
readonly browses: Schema.Int;
|
|
18051
|
-
readonly closing: Schema.Int;
|
|
18052
|
-
readonly unconfirmed: Schema.Int;
|
|
18053
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18054
|
-
readonly unresolved: Schema.Int;
|
|
18055
|
-
readonly presumedExpired: Schema.Int;
|
|
18056
|
-
readonly browserMs: Schema.Int;
|
|
18057
|
-
readonly estimated: Schema.Boolean;
|
|
18058
|
-
}>>;
|
|
18599
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18600
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18601
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18602
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18059
18603
|
readonly state: Schema.Literal<"ended">;
|
|
18060
18604
|
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18605
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18061
18606
|
}>, Schema.Struct<{
|
|
18062
18607
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18063
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18064
18608
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18065
18609
|
readonly rerun: Schema.Int;
|
|
18066
18610
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18067
|
-
readonly
|
|
18068
|
-
readonly
|
|
18069
|
-
readonly
|
|
18070
|
-
readonly
|
|
18071
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
18072
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
18073
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
18074
|
-
readonly kind: Schema.Literal<"person">;
|
|
18075
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18076
|
-
}>, Schema.Struct<{
|
|
18077
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18078
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18079
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18080
|
-
}>, Schema.Struct<{
|
|
18081
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18082
|
-
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")[]>;
|
|
18083
|
-
}>]>;
|
|
18084
|
-
readonly request: Schema.String;
|
|
18085
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
18086
|
-
}>>;
|
|
18087
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
18088
|
-
readonly attachment: Schema.Struct<{
|
|
18089
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18090
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18091
|
-
}>;
|
|
18092
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
18093
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18094
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18095
|
-
}>>;
|
|
18096
|
-
}>>;
|
|
18097
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
18098
|
-
readonly requests: Schema.Int;
|
|
18099
|
-
readonly omitted: Schema.Int;
|
|
18100
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
18101
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
18102
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18103
|
-
readonly step: Schema.String;
|
|
18104
|
-
readonly count: Schema.Int;
|
|
18105
|
-
readonly attempt: Schema.Int;
|
|
18106
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18107
|
-
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"]>;
|
|
18108
|
-
readonly recovery: Schema.String;
|
|
18109
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18110
|
-
readonly url: Schema.String;
|
|
18111
|
-
}>>;
|
|
18112
|
-
readonly refusalsOmitted: Schema.Int;
|
|
18113
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18114
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18115
|
-
readonly step: Schema.String;
|
|
18116
|
-
readonly count: Schema.Int;
|
|
18117
|
-
readonly attempt: Schema.Int;
|
|
18118
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18119
|
-
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"]>;
|
|
18120
|
-
readonly recovery: Schema.String;
|
|
18121
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18122
|
-
readonly url: Schema.String;
|
|
18123
|
-
}>>;
|
|
18124
|
-
readonly reportedOmitted: Schema.Int;
|
|
18125
|
-
}>>;
|
|
18126
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18127
|
-
readonly browses: Schema.Int;
|
|
18128
|
-
readonly closing: Schema.Int;
|
|
18129
|
-
readonly unconfirmed: Schema.Int;
|
|
18130
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18131
|
-
readonly unresolved: Schema.Int;
|
|
18132
|
-
readonly presumedExpired: Schema.Int;
|
|
18133
|
-
readonly browserMs: Schema.Int;
|
|
18134
|
-
readonly estimated: Schema.Boolean;
|
|
18135
|
-
}>>;
|
|
18611
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18612
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18613
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18614
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18136
18615
|
readonly state: Schema.Literal<"ended">;
|
|
18137
18616
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18138
|
-
}>]
|
|
18139
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
|
|
18140
|
-
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">]>;
|
|
18141
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18142
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18143
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18144
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18145
|
-
}>, Schema.Struct<{
|
|
18146
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18147
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18148
|
-
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18149
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18150
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18617
|
+
}>]>>;
|
|
18151
18618
|
}>, Schema.Struct<{
|
|
18152
|
-
readonly
|
|
18153
|
-
|
|
18154
|
-
|
|
18619
|
+
readonly waiting: Schema.Struct<{
|
|
18620
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18621
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18622
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18623
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18624
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18625
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18626
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18627
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18628
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18629
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
18630
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18631
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18632
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18633
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18634
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
18635
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18636
|
+
readonly kind: Schema.Literal<"person">;
|
|
18637
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18638
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18639
|
+
}>, Schema.Struct<{
|
|
18640
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18641
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18642
|
+
}>, Schema.Struct<{
|
|
18643
|
+
readonly kind: Schema.Literal<"holders">;
|
|
18644
|
+
readonly permission: Schema.String;
|
|
18645
|
+
}>]>>;
|
|
18646
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
18647
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18648
|
+
}>>;
|
|
18649
|
+
}>>;
|
|
18650
|
+
}>;
|
|
18651
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never>, false>;
|
|
18155
18652
|
/**
|
|
18156
18653
|
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
18157
18654
|
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
@@ -18179,6 +18676,15 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18179
18676
|
readonly request: Schema.String;
|
|
18180
18677
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18181
18678
|
readonly redirect: Schema.String;
|
|
18679
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"finish", "POST", "/v1/owners/:owner/client-grants/:grant/finish", Schema.toCodecStringTree<Schema.Struct<{
|
|
18680
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18681
|
+
grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18682
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18683
|
+
readonly request: Schema.String;
|
|
18684
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18685
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18686
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18687
|
+
readonly redirect: Schema.String;
|
|
18182
18688
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18183
18689
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18184
18690
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -18195,23 +18701,24 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18195
18701
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18196
18702
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18197
18703
|
readonly client: Schema.String;
|
|
18198
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never
|
|
18199
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18200
|
-
grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18201
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18202
|
-
readonly request: Schema.String;
|
|
18203
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18204
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18205
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18206
|
-
readonly redirect: Schema.String;
|
|
18207
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never>, false>;
|
|
18704
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never>, false>;
|
|
18208
18705
|
/**
|
|
18209
18706
|
* Client grants (layer 4, PR 11a): an outside MCP client's consent on `/connect/app`. Granting
|
|
18210
18707
|
* runs by the person's approval, answered with their passkey; finishing, from the browser that
|
|
18211
18708
|
* consented, hands the client its code.
|
|
18212
18709
|
*/
|
|
18213
18710
|
declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
|
|
18214
|
-
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18711
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18712
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18713
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18714
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18715
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18716
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18717
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18718
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18719
|
+
readonly displayName: Schema.String;
|
|
18720
|
+
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18721
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18215
18722
|
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">]>;
|
|
18216
18723
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18217
18724
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -18454,40 +18961,13 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18454
18961
|
}>>;
|
|
18455
18962
|
}>;
|
|
18456
18963
|
readonly pricesAsOf: Schema.String;
|
|
18457
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never
|
|
18458
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18459
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18460
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18461
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18462
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18463
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18464
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18465
|
-
readonly displayName: Schema.String;
|
|
18466
|
-
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18467
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never>, false>;
|
|
18964
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18468
18965
|
/**
|
|
18469
18966
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18470
18967
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
18471
18968
|
*/
|
|
18472
18969
|
declare class OrganizationsGroup extends OrganizationsGroup_base {}
|
|
18473
|
-
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18474
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18475
|
-
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">]>;
|
|
18476
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18477
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18478
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18479
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18480
|
-
readonly kind: Schema.Literal<"person">;
|
|
18481
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18482
|
-
}>, Schema.Struct<{
|
|
18483
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18484
|
-
readonly agent: Schema.Struct<{
|
|
18485
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18486
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18487
|
-
}>;
|
|
18488
|
-
}>]>;
|
|
18489
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18490
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
18970
|
+
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
18491
18971
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18492
18972
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18493
18973
|
cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
@@ -18508,7 +18988,24 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18508
18988
|
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18509
18989
|
}>>;
|
|
18510
18990
|
readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
18511
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18991
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18992
|
+
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">]>;
|
|
18993
|
+
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">]>;
|
|
18994
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18995
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18996
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18997
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18998
|
+
readonly kind: Schema.Literal<"person">;
|
|
18999
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19000
|
+
}>, Schema.Struct<{
|
|
19001
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19002
|
+
readonly agent: Schema.Struct<{
|
|
19003
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19004
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19005
|
+
}>;
|
|
19006
|
+
}>]>;
|
|
19007
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
19008
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setRole", "PATCH", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18512
19009
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18513
19010
|
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">]>;
|
|
18514
19011
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -18530,14 +19027,25 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18530
19027
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18531
19028
|
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
18532
19029
|
declare class MembersGroup extends MembersGroup_base {}
|
|
18533
|
-
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18534
|
-
|
|
19030
|
+
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
19031
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19032
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19033
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19034
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19035
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19036
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19037
|
+
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19038
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19039
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18535
19040
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18536
19041
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18537
19042
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18538
19043
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18539
19044
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18540
|
-
|
|
19045
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19046
|
+
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19047
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19048
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18541
19049
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18542
19050
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18543
19051
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
@@ -18569,25 +19077,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18569
19077
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18570
19078
|
}>>;
|
|
18571
19079
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18572
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18573
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18574
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18575
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18576
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18577
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18578
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18579
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18580
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18581
|
-
}>>, 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<{
|
|
18582
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18583
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18584
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18585
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18586
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18587
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18588
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18589
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18590
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19080
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18591
19081
|
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">]>;
|
|
18592
19082
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18593
19083
|
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">]>;
|
|
@@ -18602,13 +19092,69 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18602
19092
|
}>;
|
|
18603
19093
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18604
19094
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18605
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never
|
|
19095
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
|
|
19096
|
+
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">]>;
|
|
19097
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19098
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19099
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19100
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19101
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19102
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18606
19103
|
/**
|
|
18607
19104
|
* Invitations: an organization's admins send, list and withdraw them; the person invited lists
|
|
18608
19105
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
18609
19106
|
*/
|
|
18610
19107
|
declare class InvitationsGroup extends InvitationsGroup_base {}
|
|
18611
|
-
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19108
|
+
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
19109
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19110
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19111
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19112
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
19113
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19114
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
19115
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
19116
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
19117
|
+
readonly kind: Schema.Literal<"owner">;
|
|
19118
|
+
}>, Schema.Struct<{
|
|
19119
|
+
readonly kind: Schema.Literal<"project">;
|
|
19120
|
+
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
19121
|
+
}>, Schema.Struct<{
|
|
19122
|
+
readonly kind: Schema.Literal<"thread">;
|
|
19123
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
19124
|
+
}>, Schema.Struct<{
|
|
19125
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19126
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19127
|
+
}>]>;
|
|
19128
|
+
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
19129
|
+
readonly kind: Schema.Literal<"person">;
|
|
19130
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19131
|
+
}>, Schema.Struct<{
|
|
19132
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19133
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
19134
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19135
|
+
}>, Schema.Struct<{
|
|
19136
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19137
|
+
readonly agent: Schema.Struct<{
|
|
19138
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19139
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19140
|
+
}>;
|
|
19141
|
+
}>]>;
|
|
19142
|
+
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
19143
|
+
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
19144
|
+
readonly kind: Schema.Literal<"person">;
|
|
19145
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19146
|
+
}>, Schema.Struct<{
|
|
19147
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19148
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19149
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19150
|
+
}>, Schema.Struct<{
|
|
19151
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
19152
|
+
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")[]>;
|
|
19153
|
+
}>]>;
|
|
19154
|
+
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
19155
|
+
}>>;
|
|
19156
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19157
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18612
19158
|
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
19159
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18614
19160
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18664,56 +19210,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18664
19210
|
}>;
|
|
18665
19211
|
}>]>;
|
|
18666
19212
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18667
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18668
|
-
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">]>;
|
|
18669
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18670
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18671
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18672
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18673
|
-
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18674
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18675
|
-
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18676
|
-
readonly kind: Schema.Literal<"owner">;
|
|
18677
|
-
}>, Schema.Struct<{
|
|
18678
|
-
readonly kind: Schema.Literal<"project">;
|
|
18679
|
-
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18680
|
-
}>, Schema.Struct<{
|
|
18681
|
-
readonly kind: Schema.Literal<"thread">;
|
|
18682
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18683
|
-
}>, Schema.Struct<{
|
|
18684
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18685
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18686
|
-
}>]>;
|
|
18687
|
-
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18688
|
-
readonly kind: Schema.Literal<"person">;
|
|
18689
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18690
|
-
}>, Schema.Struct<{
|
|
18691
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18692
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18693
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18694
|
-
}>, Schema.Struct<{
|
|
18695
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18696
|
-
readonly agent: Schema.Struct<{
|
|
18697
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18698
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18699
|
-
}>;
|
|
18700
|
-
}>]>;
|
|
18701
|
-
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18702
|
-
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18703
|
-
readonly kind: Schema.Literal<"person">;
|
|
18704
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18705
|
-
}>, Schema.Struct<{
|
|
18706
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18707
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18708
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18709
|
-
}>, Schema.Struct<{
|
|
18710
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18711
|
-
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")[]>;
|
|
18712
|
-
}>]>;
|
|
18713
|
-
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18714
|
-
}>>;
|
|
18715
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18716
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"set", "PUT", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
19213
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"set", "PUT", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18717
19214
|
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">]>;
|
|
18718
19215
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18719
19216
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18777,10 +19274,13 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18777
19274
|
* `OrganizationNotFound`.
|
|
18778
19275
|
*/
|
|
18779
19276
|
declare class GrantsGroup extends GrantsGroup_base {}
|
|
18780
|
-
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19277
|
+
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18781
19278
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18782
|
-
|
|
18783
|
-
|
|
19279
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19280
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19281
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19282
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19283
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18784
19284
|
readonly agent: Schema.Struct<{
|
|
18785
19285
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18786
19286
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18788,25 +19288,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18788
19288
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18789
19289
|
readonly generation: Schema.Int;
|
|
18790
19290
|
readonly turnedOff: Schema.Boolean;
|
|
18791
|
-
|
|
18792
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18793
|
-
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">]>;
|
|
18794
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18795
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18796
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18797
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18798
|
-
readonly agents: Schema.$Array<Schema.Struct<{
|
|
18799
|
-
readonly agent: Schema.Struct<{
|
|
18800
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18801
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18802
|
-
}>;
|
|
18803
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18804
|
-
readonly generation: Schema.Int;
|
|
18805
|
-
readonly turnedOff: Schema.Boolean;
|
|
18806
|
-
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18807
|
-
}>>;
|
|
18808
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18809
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
19291
|
+
}>>, 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<{
|
|
18810
19292
|
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">]>;
|
|
18811
19293
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18812
19294
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18832,13 +19314,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18832
19314
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18833
19315
|
readonly generation: Schema.Int;
|
|
18834
19316
|
readonly turnedOff: Schema.Boolean;
|
|
18835
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19317
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
|
|
18836
19318
|
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">]>;
|
|
18837
|
-
|
|
18838
|
-
|
|
18839
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18840
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18841
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19319
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19320
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18842
19321
|
readonly agent: Schema.Struct<{
|
|
18843
19322
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18844
19323
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18846,7 +19325,25 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18846
19325
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18847
19326
|
readonly generation: Schema.Int;
|
|
18848
19327
|
readonly turnedOff: Schema.Boolean;
|
|
18849
|
-
|
|
19328
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19329
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19330
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19331
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19332
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19333
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
19334
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19335
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
19336
|
+
readonly agent: Schema.Struct<{
|
|
19337
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19338
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19339
|
+
}>;
|
|
19340
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19341
|
+
readonly generation: Schema.Int;
|
|
19342
|
+
readonly turnedOff: Schema.Boolean;
|
|
19343
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19344
|
+
}>>;
|
|
19345
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19346
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18850
19347
|
/**
|
|
18851
19348
|
* An owner's agents (layer 1): an organization's members, or a person themselves, read them and
|
|
18852
19349
|
* turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
|
|
@@ -18854,10 +19351,15 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18854
19351
|
* its machines' host grants by the agent's ID.
|
|
18855
19352
|
*/
|
|
18856
19353
|
declare class AgentsGroup extends AgentsGroup_base {}
|
|
18857
|
-
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19354
|
+
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18858
19355
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18859
|
-
|
|
18860
|
-
|
|
19356
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19357
|
+
readonly agent: Schema.Struct<{
|
|
19358
|
+
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">]>;
|
|
19359
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19360
|
+
}>;
|
|
19361
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19362
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18861
19363
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18862
19364
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18863
19365
|
readonly agent: Schema.Struct<{
|
|
@@ -18870,15 +19372,10 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18870
19372
|
}>;
|
|
18871
19373
|
readonly generation: Schema.Int;
|
|
18872
19374
|
readonly authorized: Schema.Boolean;
|
|
18873
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19375
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
18874
19376
|
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">]>;
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
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">]>;
|
|
18878
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18879
|
-
}>;
|
|
18880
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18881
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19377
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19378
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18882
19379
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18883
19380
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18884
19381
|
readonly agent: Schema.Struct<{
|
|
@@ -18891,7 +19388,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18891
19388
|
}>;
|
|
18892
19389
|
readonly generation: Schema.Int;
|
|
18893
19390
|
readonly authorized: Schema.Boolean;
|
|
18894
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19391
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never>, false>;
|
|
18895
19392
|
/**
|
|
18896
19393
|
* A member's own agent working in an organization (layer 1): its person authorizes an attachment
|
|
18897
19394
|
* of it there, by its credential's ID, or takes that back. The Worker checks the attachment is
|
|
@@ -18899,7 +19396,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18899
19396
|
* decides. People only, by approval.
|
|
18900
19397
|
*/
|
|
18901
19398
|
declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
|
|
18902
|
-
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19399
|
+
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18903
19400
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18904
19401
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18905
19402
|
readonly agent: Schema.Struct<{
|
|
@@ -18942,7 +19439,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
18942
19439
|
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
18943
19440
|
}>>;
|
|
18944
19441
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18945
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19442
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18946
19443
|
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">]>;
|
|
18947
19444
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18948
19445
|
readonly agent: Schema.Struct<{
|
|
@@ -19526,6 +20023,9 @@ declare const CheckStartAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
19526
20023
|
readonly why: Schema.String;
|
|
19527
20024
|
}>]>;
|
|
19528
20025
|
type CheckStartAnswer = typeof CheckStartAnswer.Type;
|
|
20026
|
+
/** An answer's key: `yes`, `no`, or an ask's own, such as `close`. */
|
|
20027
|
+
declare const AnswerKey: Schema.brand<Schema.String, "AnswerKey">;
|
|
20028
|
+
type AnswerKey = typeof AnswerKey.Type;
|
|
19529
20029
|
//#endregion
|
|
19530
20030
|
//#region src/workflows.d.ts
|
|
19531
20031
|
/**
|
|
@@ -21703,6 +22203,60 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
21703
22203
|
}>;
|
|
21704
22204
|
} & {
|
|
21705
22205
|
readonly seq: Schema.Int;
|
|
22206
|
+
}>, Schema.Struct<{
|
|
22207
|
+
readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
|
|
22208
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
22209
|
+
readonly writer: Schema.Union<readonly [Schema.Literal<"directory">, Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
|
|
22210
|
+
readonly writerSeq: Schema.Int;
|
|
22211
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
22212
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
22213
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
22214
|
+
readonly kind: Schema.Literal<"person">;
|
|
22215
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
22216
|
+
}>, Schema.Struct<{
|
|
22217
|
+
readonly kind: Schema.Literal<"agent">;
|
|
22218
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
22219
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
22220
|
+
}>, Schema.Struct<{
|
|
22221
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
22222
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
22223
|
+
}>]>;
|
|
22224
|
+
readonly token: Schema.optionalKey<Schema.Struct<{
|
|
22225
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
22226
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
22227
|
+
}>>;
|
|
22228
|
+
readonly draftedBy: Schema.optionalKey<Schema.Struct<{
|
|
22229
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
22230
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
22231
|
+
}>>;
|
|
22232
|
+
readonly cause: Schema.optionalKey<Schema.Struct<{
|
|
22233
|
+
readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.TemplateLiteral<readonly ["usage:", Schema.String]>, "UsageLogId">]>;
|
|
22234
|
+
readonly event: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
22235
|
+
}>>;
|
|
22236
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
22237
|
+
readonly refs: Schema.$Array<Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">, Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">]>>;
|
|
22238
|
+
readonly source: Schema.optionalKey<Schema.Struct<{
|
|
22239
|
+
readonly system: Schema.String;
|
|
22240
|
+
readonly deliveryId: Schema.String;
|
|
22241
|
+
}>>;
|
|
22242
|
+
readonly trace: Schema.optionalKey<Schema.String>;
|
|
22243
|
+
readonly kind: Schema.Literal<"identity_token.issued">;
|
|
22244
|
+
readonly data: Schema.Struct<{
|
|
22245
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
22246
|
+
readonly agent: Schema.Struct<{
|
|
22247
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
22248
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
22249
|
+
}>;
|
|
22250
|
+
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
22251
|
+
readonly jti: Schema.brand<Schema.String, "IdentityTokenId">;
|
|
22252
|
+
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
22253
|
+
readonly issuer: Schema.brand<Schema.String, "ApiOrigin">;
|
|
22254
|
+
readonly keyId: Schema.brand<Schema.String, "SigningKeyId">;
|
|
22255
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
22256
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
22257
|
+
}>;
|
|
22258
|
+
} & {
|
|
22259
|
+
readonly seq: Schema.Int;
|
|
21706
22260
|
}>, Schema.Struct<{
|
|
21707
22261
|
readonly log: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">, Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">]>;
|
|
21708
22262
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
@@ -28669,11 +29223,20 @@ type ThreadStage = typeof ThreadStage.Type;
|
|
|
28669
29223
|
/** A project, `owner/project`. */
|
|
28670
29224
|
declare const WrittenProject: Schema.brand<Schema.String, "WrittenProject">;
|
|
28671
29225
|
type WrittenProject = typeof WrittenProject.Type;
|
|
29226
|
+
/** A thread, `owner/project#number`, or an org thread, `owner#number`. */
|
|
29227
|
+
declare const WrittenThread: Schema.brand<Schema.String, "WrittenThread">;
|
|
29228
|
+
type WrittenThread = typeof WrittenThread.Type;
|
|
28672
29229
|
/** A written project's parts, as an endpoint's path takes them. */
|
|
28673
29230
|
declare const projectParts: (written: WrittenProject) => {
|
|
28674
29231
|
owner: string;
|
|
28675
29232
|
project: string;
|
|
28676
29233
|
};
|
|
29234
|
+
/** A written thread's parts, as an endpoint's path takes them: no project for an org thread. */
|
|
29235
|
+
declare const threadParts: (written: WrittenThread) => {
|
|
29236
|
+
owner: string;
|
|
29237
|
+
project: string | undefined;
|
|
29238
|
+
number: string;
|
|
29239
|
+
};
|
|
28677
29240
|
/** An action a run's code asks for, at its place in the run. */
|
|
28678
29241
|
declare const WorkflowAction: Schema.Struct<{
|
|
28679
29242
|
readonly place: Schema.Struct<{
|
|
@@ -29206,5 +29769,5 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
29206
29769
|
}>]>;
|
|
29207
29770
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
29208
29771
|
//#endregion
|
|
29209
|
-
export {
|
|
29210
|
-
//# sourceMappingURL=index-
|
|
29772
|
+
export { MirrorChoice as $, WorkflowAnswerer as $t, ConnectionCall as A, WorkflowPasskeyState as An, SandboxPushAnswer as At, EndpointName as B, WorkflowTrigger as Bn, StartActor as Bt, ClientGranted as C, WorkflowEvent as Cn, RepoView as Ct, ConnectFolderOption as D, WorkflowPasskeyAsked as Dn, SandboxOpen as Dt, ConnectFolderChoices as E, WorkflowPasskeyAsk as En, SandboxExecAnswer as Et, ConnectionView as F, WorkflowRequestRefusal as Fn, SentryRegion as Ft, GateOwn as G, hookTokenPrefix as Gn, TrackClosed as Gt, FoldersConnected as H, commandLine as Hn, StatementView as Ht, ConsentAsked as I, WorkflowStartEnded as In, SentryToken as It, ImportFailure as J, liveSocketUrl as Jn, TypedApprovalCode as Jt, GetIssueInput as K, hookUrl as Kn, TrackSession as Kt, ConsentClient as L, WorkflowStartState as Ln, SignInDestination as Lt, ConnectionChanged as M, WorkflowPreview as Mn, ScopeAction as Mt, ConnectionKind as N, WorkflowPullRequestAnswer as Nn, SecretHash as Nt, ConnectOptions as O, WorkflowPasskeyEnded as On, SandboxOpenAnswer as Ot, ConnectionName as P, WorkflowPullRequestOpen as Pn, SentryOrg as Pt, MachineConnected as Q, threadParts as Qn, WorkflowActionAnswer as Qt, ConsentProject as R, WorkflowText as Rn, SignedIn as Rt, ClientAccess as S, WorkflowConnections as Sn, RepoUrl as St, ConnectChosen as T, WorkflowOwn as Tn, SandboxExec as Tt, ForkAnswer as U, connectEndpoint as Un, ThreadId as Ut, EventRunInput as V, WrittenProject as Vn, StartRun as Vt, ForkCreate as W, encodeSecret as Wn, ThreadStage as Wt, LiveTicketRequest as X, repoNameKey as Xn, Welcome as Xt, LiveTicket as Y, projectParts as Yn, VersionFile as Yt, LiveTrackName as Z, surfaceOf as Zn, WorkflowAction as Zt, CheckOn as _, WorkflowCheckStartAnswer as _n, ProjectTrackMessage as _t, AnswerKey as a, WorkflowCallInput as an, OwnerThreadPage as at, CheckRunParams as b, WorkflowCheckWhere as bn, Ref0Owned as bt, ApprovalAnswer as c, WorkflowCalledState as cn, PasskeyAsserted as ct, ApprovalState as d, WorkflowCheckRefused as dn, PasskeyFrom as dt, WorkflowAsk as en, MirrorEntry as et, ApprovalView as f, WorkflowCheckResults as fn, PasskeyRefusal as ft, ChangeAuthor as g, WorkflowCheckStart as gn, ProjectName as gt, Authorization as h, WorkflowCheckRunEnded as hn, PreviewUnavailable as ht, AgentView as i, WorkflowCallEnded as in, OwnerName as it, ConnectionCallAnswer as j, WorkflowPermissions as jn, SandboxSize as jt, ConnectableAgent as k, WorkflowPasskeyRead as kn, SandboxPush as kt, ApprovalId as l, WorkflowCalledStateAnswer as ln, PasskeyCreated as lt, AttachmentRequestView as m, WorkflowCheckRun as mn, PreviewEcho as mt, AgentPermissionChoice as n, WorkflowCall as nn, NamedDecision as nt, Api as o, WorkflowCallRefusal as on, OwnerThreadView as ot, AttachmentFailed as p, WorkflowCheckResultsAnswer as pn, PasskeyRequestOptions as pt, Harness as q, isRef0Path as qn, TrackThread as qt, AgentPermissionSetting as r, WorkflowCallAnswer as rn, OwnerId as rt, ApiOrigin as s, WorkflowCallRefused as sn, OwnerTrackMessage as st, AgentHandle as t, WorkflowAskClosed as tn, MirrorView as tt, ApprovalPreview as u, WorkflowCheckRefusal as un, PasskeyCreationOptions as ut, CheckOwn as v, WorkflowCheckStates as vn, RanOf as vt, ConnectAgent as w, WorkflowFilters as wn, RequestFolder as wt, CheckTreeEntry as x, WorkflowComment as xn, RepoName as xt, CheckRunError as y, WorkflowCheckStatesAnswer as yn, ReadEvent as yt, CredentialView as z, WorkflowThreadStart as zn, SocketUrl as zt };
|
|
29773
|
+
//# sourceMappingURL=index-Cc-mPnNF.d.mts.map
|