@ref0/sdk 0.10.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,7 +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<"
|
|
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<{
|
|
2107
2276
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2108
2277
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2109
2278
|
readonly rp: Schema.Struct<{
|
|
@@ -2142,29 +2311,7 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
2142
2311
|
readonly backedUp: Schema.Boolean;
|
|
2143
2312
|
}>>;
|
|
2144
2313
|
readonly approvesHere: Schema.Boolean;
|
|
2145
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never
|
|
2146
|
-
readonly id: Schema.String;
|
|
2147
|
-
readonly rawId: Schema.String;
|
|
2148
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2149
|
-
readonly response: Schema.Struct<{
|
|
2150
|
-
readonly clientDataJSON: Schema.String;
|
|
2151
|
-
readonly attestationObject: Schema.String;
|
|
2152
|
-
readonly authenticatorData: Schema.optional<Schema.String>;
|
|
2153
|
-
readonly transports: Schema.optional<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
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>;
|
|
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.
|
|
@@ -2370,260 +2517,80 @@ 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<"
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
readonly
|
|
2383
|
-
readonly
|
|
2384
|
-
readonly
|
|
2385
|
-
readonly
|
|
2386
|
-
readonly
|
|
2520
|
+
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
2521
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
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>;
|
|
2387
2534
|
}>;
|
|
2388
|
-
readonly
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2396
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
2397
|
-
readonly attachment: Schema.optionalKey<Schema.Struct<{
|
|
2398
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2399
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2400
|
-
}>>;
|
|
2401
|
-
}>]>;
|
|
2402
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2403
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2404
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2405
|
-
readonly agentPermission: Schema.optionalKey<Schema.Struct<{
|
|
2406
|
-
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"]>;
|
|
2407
|
-
readonly mayAllow: Schema.Boolean;
|
|
2408
|
-
}>>;
|
|
2409
|
-
readonly preview: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2410
|
-
readonly kind: Schema.Literal<"workflow">;
|
|
2411
|
-
readonly repo: Schema.String;
|
|
2412
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2413
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2414
|
-
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2415
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2416
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2417
|
-
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"]>>;
|
|
2418
|
-
readonly where: Schema.Struct<{
|
|
2419
|
-
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2420
|
-
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2421
|
-
}>>;
|
|
2422
|
-
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2423
|
-
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2424
|
-
}>>;
|
|
2425
|
-
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2426
|
-
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2427
|
-
}>>;
|
|
2428
|
-
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2429
|
-
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2430
|
-
}>>;
|
|
2431
|
-
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2432
|
-
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2433
|
-
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2434
|
-
}>>;
|
|
2435
|
-
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2436
|
-
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2437
|
-
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2438
|
-
}>>;
|
|
2439
|
-
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2440
|
-
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2441
|
-
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2442
|
-
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2443
|
-
}>>;
|
|
2444
|
-
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2445
|
-
readonly cron: Schema.String;
|
|
2446
|
-
readonly timezone: Schema.String;
|
|
2447
|
-
}>>;
|
|
2448
|
-
}>;
|
|
2449
|
-
readonly permissions: Schema.Struct<{
|
|
2450
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2451
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2452
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2453
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2454
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2455
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2456
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2457
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2458
|
-
readonly budgets: Schema.Struct<{
|
|
2459
|
-
readonly requests: Schema.Int;
|
|
2460
|
-
readonly asks: Schema.Int;
|
|
2461
|
-
readonly threads: Schema.Int;
|
|
2462
|
-
readonly calls: Schema.Int;
|
|
2463
|
-
readonly forks: Schema.Int;
|
|
2464
|
-
readonly pushes: Schema.Int;
|
|
2465
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2466
|
-
}>;
|
|
2467
|
-
}>;
|
|
2468
|
-
}>, Schema.Struct<{
|
|
2469
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2470
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2471
|
-
readonly called: Schema.Literal<true>;
|
|
2472
|
-
readonly permissions: Schema.Struct<{
|
|
2473
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2474
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2475
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2476
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2477
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2478
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2479
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2480
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2481
|
-
readonly budgets: Schema.Struct<{
|
|
2482
|
-
readonly requests: Schema.Int;
|
|
2483
|
-
readonly asks: Schema.Int;
|
|
2484
|
-
readonly threads: Schema.Int;
|
|
2485
|
-
readonly calls: Schema.Int;
|
|
2486
|
-
readonly forks: Schema.Int;
|
|
2487
|
-
readonly pushes: Schema.Int;
|
|
2488
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2489
|
-
}>;
|
|
2490
|
-
}>;
|
|
2491
|
-
}>]>;
|
|
2492
|
-
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
2493
|
-
readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
|
|
2494
|
-
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
2495
|
-
}>, Schema.Struct<{
|
|
2496
|
-
readonly kind: Schema.Literal<"attached workflow">;
|
|
2497
|
-
readonly thread: Schema.String;
|
|
2498
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2499
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2500
|
-
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2501
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2502
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2503
|
-
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"]>>;
|
|
2504
|
-
readonly where: Schema.Struct<{
|
|
2505
|
-
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2506
|
-
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2507
|
-
}>>;
|
|
2508
|
-
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2509
|
-
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2510
|
-
}>>;
|
|
2511
|
-
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2512
|
-
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2513
|
-
}>>;
|
|
2514
|
-
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2515
|
-
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2516
|
-
}>>;
|
|
2517
|
-
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2518
|
-
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2519
|
-
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2520
|
-
}>>;
|
|
2521
|
-
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2522
|
-
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2523
|
-
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2524
|
-
}>>;
|
|
2525
|
-
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2526
|
-
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2527
|
-
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2528
|
-
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2529
|
-
}>>;
|
|
2530
|
-
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2531
|
-
readonly cron: Schema.String;
|
|
2532
|
-
readonly timezone: Schema.String;
|
|
2533
|
-
}>>;
|
|
2534
|
-
}>;
|
|
2535
|
-
readonly permissions: Schema.Struct<{
|
|
2536
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2537
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2538
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2539
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2540
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2541
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2542
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2543
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2544
|
-
readonly budgets: Schema.Struct<{
|
|
2545
|
-
readonly requests: Schema.Int;
|
|
2546
|
-
readonly asks: Schema.Int;
|
|
2547
|
-
readonly threads: Schema.Int;
|
|
2548
|
-
readonly calls: Schema.Int;
|
|
2549
|
-
readonly forks: Schema.Int;
|
|
2550
|
-
readonly pushes: Schema.Int;
|
|
2551
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2552
|
-
}>;
|
|
2553
|
-
}>;
|
|
2554
|
-
}>, Schema.Struct<{
|
|
2555
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
2556
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2557
|
-
readonly called: Schema.Literal<true>;
|
|
2558
|
-
readonly permissions: Schema.Struct<{
|
|
2559
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2560
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2561
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2562
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2563
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2564
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2565
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2566
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2567
|
-
readonly budgets: Schema.Struct<{
|
|
2568
|
-
readonly requests: Schema.Int;
|
|
2569
|
-
readonly asks: Schema.Int;
|
|
2570
|
-
readonly threads: Schema.Int;
|
|
2571
|
-
readonly calls: Schema.Int;
|
|
2572
|
-
readonly forks: Schema.Int;
|
|
2573
|
-
readonly pushes: Schema.Int;
|
|
2574
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2575
|
-
}>;
|
|
2576
|
-
}>;
|
|
2577
|
-
}>]>;
|
|
2578
|
-
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
2579
|
-
readonly source: Schema.String;
|
|
2580
|
-
}>, Schema.Struct<{
|
|
2581
|
-
readonly kind: Schema.Literal<"unavailable">;
|
|
2582
|
-
readonly nextStep: Schema.String;
|
|
2583
|
-
}>]>>;
|
|
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">;
|
|
2584
2542
|
}>>;
|
|
2585
|
-
readonly
|
|
2586
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2587
|
-
readonly statement: Schema.Struct<{
|
|
2588
|
-
readonly strings: Schema.$Array<Schema.String>;
|
|
2589
|
-
readonly values: Schema.$Array<Schema.String>;
|
|
2590
|
-
}>;
|
|
2543
|
+
readonly statement: Schema.optionalKey<Schema.Struct<{
|
|
2591
2544
|
readonly hash: Schema.String;
|
|
2592
|
-
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
2593
|
-
readonly kind: Schema.Literal<"workflow">;
|
|
2594
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2595
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
2596
|
-
}>, Schema.Struct<{
|
|
2597
|
-
readonly kind: Schema.Literal<"gate">;
|
|
2598
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
2599
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
2600
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
2601
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
2602
|
-
}>]>;
|
|
2603
|
-
readonly home: Schema.String;
|
|
2604
|
-
readonly from: Schema.Union<readonly [Schema.Literals<readonly ["accountable", "person"]>, Schema.Struct<{
|
|
2605
|
-
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
2606
|
-
}>]>;
|
|
2607
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2608
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2609
|
-
}>>;
|
|
2610
|
-
readonly requests: Schema.$Array<Schema.Struct<{
|
|
2611
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2612
|
-
readonly machineName: Schema.String;
|
|
2613
|
-
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2614
|
-
readonly path: Schema.String;
|
|
2615
|
-
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2616
|
-
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2617
|
-
}>>;
|
|
2618
|
-
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2619
|
-
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2620
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2621
|
-
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2622
|
-
readonly port: Schema.Int;
|
|
2623
|
-
readonly state: Schema.String;
|
|
2624
|
-
}>>;
|
|
2625
2545
|
}>>;
|
|
2626
|
-
}
|
|
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>;
|
|
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<{
|
|
2569
|
+
readonly state: Schema.Literal<"approved">;
|
|
2570
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2571
|
+
readonly answerCode: Schema.String;
|
|
2572
|
+
}>, Schema.Struct<{
|
|
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">;
|
|
2586
|
+
}>, Schema.Struct<{
|
|
2587
|
+
readonly state: Schema.Literal<"expired">;
|
|
2588
|
+
}>, Schema.Struct<{
|
|
2589
|
+
readonly status: Schema.Int;
|
|
2590
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2591
|
+
readonly state: Schema.Literal<"ran">;
|
|
2592
|
+
readonly endpoint: Schema.String;
|
|
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<{
|
|
2627
2594
|
readonly code: Schema.String;
|
|
2628
2595
|
}>, Schema.Struct<{
|
|
2629
2596
|
readonly link: Schema.String;
|
|
@@ -2962,80 +2929,374 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2962
2929
|
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2963
2930
|
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2964
2931
|
}>;
|
|
2965
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
readonly
|
|
2975
|
-
readonly
|
|
2976
|
-
readonly
|
|
2977
|
-
readonly
|
|
2978
|
-
readonly
|
|
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>>;
|
|
2979
2946
|
}>;
|
|
2980
|
-
readonly
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
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>;
|
|
2975
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
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"]>>;
|
|
2977
|
+
readonly where: Schema.Struct<{
|
|
2978
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2979
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2980
|
+
}>>;
|
|
2981
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2982
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2983
|
+
}>>;
|
|
2984
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2985
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2986
|
+
}>>;
|
|
2987
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2988
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2989
|
+
}>>;
|
|
2990
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2991
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2992
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2993
|
+
}>>;
|
|
2994
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2995
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2996
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2997
|
+
}>>;
|
|
2998
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2999
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
3000
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
3001
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
3002
|
+
}>>;
|
|
3003
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
3004
|
+
readonly cron: Schema.String;
|
|
3005
|
+
readonly timezone: Schema.String;
|
|
3006
|
+
}>>;
|
|
3007
|
+
}>;
|
|
3008
|
+
readonly permissions: Schema.Struct<{
|
|
3009
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3010
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3011
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3012
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3013
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3014
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3015
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3016
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3017
|
+
readonly budgets: Schema.Struct<{
|
|
3018
|
+
readonly requests: Schema.Int;
|
|
3019
|
+
readonly asks: Schema.Int;
|
|
3020
|
+
readonly threads: Schema.Int;
|
|
3021
|
+
readonly calls: Schema.Int;
|
|
3022
|
+
readonly forks: Schema.Int;
|
|
3023
|
+
readonly pushes: Schema.Int;
|
|
3024
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3025
|
+
}>;
|
|
3026
|
+
}>;
|
|
3027
|
+
}>, Schema.Struct<{
|
|
3028
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3029
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3030
|
+
readonly called: Schema.Literal<true>;
|
|
3031
|
+
readonly permissions: Schema.Struct<{
|
|
3032
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3033
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3034
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3035
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3036
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3037
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3038
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3039
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3040
|
+
readonly budgets: Schema.Struct<{
|
|
3041
|
+
readonly requests: Schema.Int;
|
|
3042
|
+
readonly asks: Schema.Int;
|
|
3043
|
+
readonly threads: Schema.Int;
|
|
3044
|
+
readonly calls: Schema.Int;
|
|
3045
|
+
readonly forks: Schema.Int;
|
|
3046
|
+
readonly pushes: Schema.Int;
|
|
3047
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3048
|
+
}>;
|
|
3049
|
+
}>;
|
|
3050
|
+
}>]>;
|
|
3051
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
3052
|
+
readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
|
|
3053
|
+
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
3054
|
+
}>, Schema.Struct<{
|
|
3055
|
+
readonly kind: Schema.Literal<"attached workflow">;
|
|
3056
|
+
readonly thread: Schema.String;
|
|
3057
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
3058
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
3059
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
3060
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3061
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3062
|
+
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"]>>;
|
|
3063
|
+
readonly where: Schema.Struct<{
|
|
3064
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
3065
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3066
|
+
}>>;
|
|
3067
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
3068
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3069
|
+
}>>;
|
|
3070
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
3071
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
3072
|
+
}>>;
|
|
3073
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
3074
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
3075
|
+
}>>;
|
|
3076
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
3077
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
3078
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
3079
|
+
}>>;
|
|
3080
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
3081
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
3082
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
3083
|
+
}>>;
|
|
3084
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
3085
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
3086
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
3087
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
3088
|
+
}>>;
|
|
3089
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
3090
|
+
readonly cron: Schema.String;
|
|
3091
|
+
readonly timezone: Schema.String;
|
|
3092
|
+
}>>;
|
|
3093
|
+
}>;
|
|
3094
|
+
readonly permissions: Schema.Struct<{
|
|
3095
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3096
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3097
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3098
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3099
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3100
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3101
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3102
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3103
|
+
readonly budgets: Schema.Struct<{
|
|
3104
|
+
readonly requests: Schema.Int;
|
|
3105
|
+
readonly asks: Schema.Int;
|
|
3106
|
+
readonly threads: Schema.Int;
|
|
3107
|
+
readonly calls: Schema.Int;
|
|
3108
|
+
readonly forks: Schema.Int;
|
|
3109
|
+
readonly pushes: Schema.Int;
|
|
3110
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3111
|
+
}>;
|
|
3112
|
+
}>;
|
|
3113
|
+
}>, Schema.Struct<{
|
|
3114
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3115
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3116
|
+
readonly called: Schema.Literal<true>;
|
|
3117
|
+
readonly permissions: Schema.Struct<{
|
|
3118
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3119
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3120
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3121
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3122
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3123
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3124
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3125
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3126
|
+
readonly budgets: Schema.Struct<{
|
|
3127
|
+
readonly requests: Schema.Int;
|
|
3128
|
+
readonly asks: Schema.Int;
|
|
3129
|
+
readonly threads: Schema.Int;
|
|
3130
|
+
readonly calls: Schema.Int;
|
|
3131
|
+
readonly forks: Schema.Int;
|
|
3132
|
+
readonly pushes: Schema.Int;
|
|
3133
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3134
|
+
}>;
|
|
3135
|
+
}>;
|
|
3136
|
+
}>]>;
|
|
3137
|
+
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
3138
|
+
readonly source: Schema.String;
|
|
3139
|
+
}>, Schema.Struct<{
|
|
3140
|
+
readonly kind: Schema.Literal<"unavailable">;
|
|
3141
|
+
readonly nextStep: Schema.String;
|
|
3142
|
+
}>]>>;
|
|
2987
3143
|
}>>;
|
|
2988
|
-
readonly
|
|
3144
|
+
readonly statements: Schema.$Array<Schema.Struct<{
|
|
3145
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
3146
|
+
readonly statement: Schema.Struct<{
|
|
3147
|
+
readonly strings: Schema.$Array<Schema.String>;
|
|
3148
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
3149
|
+
}>;
|
|
2989
3150
|
readonly hash: Schema.String;
|
|
3151
|
+
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
3152
|
+
readonly kind: Schema.Literal<"workflow">;
|
|
3153
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
3154
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
3155
|
+
}>, Schema.Struct<{
|
|
3156
|
+
readonly kind: Schema.Literal<"gate">;
|
|
3157
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
3158
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
3159
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
3160
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
3161
|
+
}>]>;
|
|
3162
|
+
readonly home: Schema.String;
|
|
3163
|
+
readonly from: Schema.Union<readonly [Schema.Literals<readonly ["accountable", "person"]>, Schema.Struct<{
|
|
3164
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
3165
|
+
}>]>;
|
|
3166
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
3167
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2990
3168
|
}>>;
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3169
|
+
readonly requests: Schema.$Array<Schema.Struct<{
|
|
3170
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
3171
|
+
readonly machineName: Schema.String;
|
|
3172
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
3173
|
+
readonly path: Schema.String;
|
|
3174
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
3175
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
3176
|
+
}>>;
|
|
3177
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
3178
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
3179
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
3180
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
3181
|
+
readonly port: Schema.Int;
|
|
3182
|
+
readonly state: Schema.String;
|
|
3183
|
+
}>>;
|
|
3184
|
+
}>>;
|
|
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">;
|
|
3191
|
+
}>, Schema.Struct<{
|
|
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">;
|
|
3197
|
+
}>]>;
|
|
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">>;
|
|
3203
|
+
}>>;
|
|
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">;
|
|
3211
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
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>;
|
|
3246
|
+
}>>;
|
|
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,43 +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<"
|
|
3080
|
-
|
|
3081
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
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">;
|
|
3082
3344
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3083
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3084
|
-
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3085
|
-
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3086
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3087
|
-
readonly turns: Schema.Int;
|
|
3088
|
-
readonly unknownTurns: Schema.Int;
|
|
3089
|
-
readonly models: Schema.$Array<Schema.Struct<{
|
|
3090
|
-
readonly model: Schema.String;
|
|
3091
|
-
readonly input: Schema.Int;
|
|
3092
|
-
readonly output: Schema.Int;
|
|
3093
|
-
readonly cacheWrite: Schema.Int;
|
|
3094
|
-
readonly cacheRead: Schema.Int;
|
|
3095
|
-
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3096
|
-
}>>;
|
|
3097
|
-
readonly cost: Schema.Finite;
|
|
3098
|
-
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3099
|
-
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3100
|
-
readonly harnesses: Schema.$Array<Schema.Struct<{
|
|
3101
|
-
readonly turns: Schema.Int;
|
|
3102
|
-
readonly unknownTurns: Schema.Int;
|
|
3103
|
-
readonly models: Schema.$Array<Schema.Struct<{
|
|
3104
|
-
readonly model: Schema.String;
|
|
3105
|
-
readonly input: Schema.Int;
|
|
3106
|
-
readonly output: Schema.Int;
|
|
3107
|
-
readonly cacheWrite: Schema.Int;
|
|
3108
|
-
readonly cacheRead: Schema.Int;
|
|
3109
|
-
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3110
|
-
}>>;
|
|
3111
|
-
readonly cost: Schema.Finite;
|
|
3112
|
-
readonly harness: Schema.String;
|
|
3113
|
-
}>>;
|
|
3114
|
-
readonly pricesAsOf: Schema.String;
|
|
3115
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
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<{
|
|
3116
3346
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3117
3347
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3118
3348
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -3184,7 +3414,43 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3184
3414
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3185
3415
|
}>]>;
|
|
3186
3416
|
}>>;
|
|
3187
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never
|
|
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;
|
|
3421
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3422
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3423
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3424
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3425
|
+
readonly turns: Schema.Int;
|
|
3426
|
+
readonly unknownTurns: Schema.Int;
|
|
3427
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3428
|
+
readonly model: Schema.String;
|
|
3429
|
+
readonly input: Schema.Int;
|
|
3430
|
+
readonly output: Schema.Int;
|
|
3431
|
+
readonly cacheWrite: Schema.Int;
|
|
3432
|
+
readonly cacheRead: Schema.Int;
|
|
3433
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3434
|
+
}>>;
|
|
3435
|
+
readonly cost: Schema.Finite;
|
|
3436
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3437
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3438
|
+
readonly harnesses: Schema.$Array<Schema.Struct<{
|
|
3439
|
+
readonly turns: Schema.Int;
|
|
3440
|
+
readonly unknownTurns: Schema.Int;
|
|
3441
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3442
|
+
readonly model: Schema.String;
|
|
3443
|
+
readonly input: Schema.Int;
|
|
3444
|
+
readonly output: Schema.Int;
|
|
3445
|
+
readonly cacheWrite: Schema.Int;
|
|
3446
|
+
readonly cacheRead: Schema.Int;
|
|
3447
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3448
|
+
}>>;
|
|
3449
|
+
readonly cost: Schema.Finite;
|
|
3450
|
+
readonly harness: Schema.String;
|
|
3451
|
+
}>>;
|
|
3452
|
+
readonly pricesAsOf: Schema.String;
|
|
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,72 +13000,49 @@ 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<"
|
|
12684
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12685
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12686
|
-
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12687
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
12688
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12689
|
-
readonly repos: Schema.$Array<Schema.Struct<{
|
|
12690
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12691
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12692
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12693
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12694
|
-
readonly kind: Schema.Literal<"project">;
|
|
12695
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12696
|
-
}>, Schema.Struct<{
|
|
12697
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12698
|
-
}>]>;
|
|
12699
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12700
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12701
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12702
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12703
|
-
}>>;
|
|
12704
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12705
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13003
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
|
|
12706
13004
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12707
13005
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
readonly
|
|
12711
|
-
|
|
12712
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12713
|
-
readonly kind: Schema.Literal<"project">;
|
|
12714
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
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">;
|
|
12715
13010
|
}>, Schema.Struct<{
|
|
12716
|
-
readonly kind: Schema.Literal<"
|
|
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">;
|
|
12717
13032
|
}>]>;
|
|
12718
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12719
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12720
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12721
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12722
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
12723
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12724
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
12725
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12726
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
12727
13033
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12728
13034
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
12729
13035
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
12730
|
-
readonly
|
|
12731
|
-
readonly
|
|
12732
|
-
readonly
|
|
12733
|
-
readonly
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
}>, Schema.Struct<{
|
|
12737
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12738
|
-
}>]>;
|
|
12739
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12740
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12741
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12742
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12743
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
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<{
|
|
12744
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">]>;
|
|
12745
13043
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
12746
13044
|
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12747
13045
|
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
12748
|
-
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
12749
13046
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12750
13047
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
12751
13048
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -12762,146 +13059,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
12762
13059
|
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12763
13060
|
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12764
13061
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12765
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
12766
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12767
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12768
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12769
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12770
|
-
readonly version: Schema.Int;
|
|
12771
|
-
readonly baseline: Schema.Struct<{
|
|
12772
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12773
|
-
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
12774
|
-
readonly sequence: Schema.Int;
|
|
12775
|
-
readonly depth: Schema.Int;
|
|
12776
|
-
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
12777
|
-
}>;
|
|
12778
|
-
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
12779
|
-
readonly sequence: Schema.Int;
|
|
12780
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12781
|
-
}>>;
|
|
12782
|
-
readonly packs: Schema.$Array<Schema.Struct<{
|
|
12783
|
-
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
12784
|
-
readonly key: Schema.String;
|
|
12785
|
-
readonly sha256: Schema.String;
|
|
12786
|
-
readonly bytes: Schema.Int;
|
|
12787
|
-
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
12788
|
-
readonly first: Schema.Int;
|
|
12789
|
-
readonly last: Schema.Int;
|
|
12790
|
-
}>>;
|
|
12791
|
-
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
12792
|
-
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
12793
|
-
readonly roots: Schema.$Array<Schema.Struct<{
|
|
12794
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12795
|
-
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
12796
|
-
}>>;
|
|
12797
|
-
}>>;
|
|
12798
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
12799
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12800
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12801
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12802
|
-
key: Schema.String;
|
|
12803
|
-
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
12804
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12805
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12806
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12807
|
-
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
12808
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12809
|
-
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
12810
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12811
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12812
|
-
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
12813
|
-
readonly head: Schema.Struct<{
|
|
12814
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12815
|
-
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
12816
|
-
readonly branch: Schema.String;
|
|
12817
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12818
|
-
readonly generation: Schema.Int;
|
|
12819
|
-
}>;
|
|
12820
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12821
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12822
|
-
readonly agent: Schema.Struct<{
|
|
12823
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12824
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12825
|
-
}>;
|
|
12826
|
-
}>, Schema.Struct<{
|
|
12827
|
-
readonly workflow: Schema.Struct<{
|
|
12828
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12829
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12830
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12831
|
-
readonly step: Schema.Struct<{
|
|
12832
|
-
readonly name: Schema.String;
|
|
12833
|
-
readonly count: Schema.Int;
|
|
12834
|
-
readonly attempt: Schema.Int;
|
|
12835
|
-
}>;
|
|
12836
|
-
}>;
|
|
12837
|
-
}>]>;
|
|
12838
|
-
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
12839
|
-
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
12840
|
-
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
12841
|
-
readonly repair: Schema.Boolean;
|
|
12842
|
-
readonly current: Schema.Struct<{
|
|
12843
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12844
|
-
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
12845
|
-
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12846
|
-
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
12847
|
-
readonly intentRevision: Schema.Int;
|
|
12848
|
-
readonly generation: Schema.Int;
|
|
12849
|
-
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
12850
|
-
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
12851
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12852
|
-
}>;
|
|
12853
|
-
readonly threadNumber: Schema.Int;
|
|
12854
|
-
}>>;
|
|
12855
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
12856
|
-
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">]>;
|
|
12857
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12858
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12859
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12860
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12861
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12862
|
-
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
12863
|
-
readonly head: Schema.Struct<{
|
|
12864
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12865
|
-
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
12866
|
-
readonly branch: Schema.String;
|
|
12867
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12868
|
-
readonly generation: Schema.Int;
|
|
12869
|
-
}>;
|
|
12870
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12871
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12872
|
-
readonly agent: Schema.Struct<{
|
|
12873
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12874
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12875
|
-
}>;
|
|
12876
|
-
}>, Schema.Struct<{
|
|
12877
|
-
readonly workflow: Schema.Struct<{
|
|
12878
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12879
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12880
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12881
|
-
readonly step: Schema.Struct<{
|
|
12882
|
-
readonly name: Schema.String;
|
|
12883
|
-
readonly count: Schema.Int;
|
|
12884
|
-
readonly attempt: Schema.Int;
|
|
12885
|
-
}>;
|
|
12886
|
-
}>;
|
|
12887
|
-
}>]>;
|
|
12888
|
-
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
12889
|
-
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
12890
|
-
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
12891
|
-
readonly repair: Schema.Boolean;
|
|
12892
|
-
readonly current: Schema.Struct<{
|
|
12893
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12894
|
-
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
12895
|
-
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12896
|
-
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
12897
|
-
readonly intentRevision: Schema.Int;
|
|
12898
|
-
readonly generation: Schema.Int;
|
|
12899
|
-
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
12900
|
-
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
12901
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12902
|
-
}>;
|
|
12903
|
-
readonly threadNumber: Schema.Int;
|
|
12904
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
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<{
|
|
12905
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">]>;
|
|
12906
13064
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12907
13065
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -12923,33 +13081,171 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
12923
13081
|
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
12924
13082
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
12925
13083
|
}>, Schema.Struct<{
|
|
12926
|
-
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
|
+
}>]>;
|
|
12927
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
|
+
}>>>;
|
|
12928
13241
|
}>>;
|
|
13242
|
+
readonly all: Schema.Boolean;
|
|
12929
13243
|
}>, Schema.Struct<{
|
|
12930
|
-
readonly
|
|
12931
|
-
|
|
12932
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
12933
|
-
}>, Schema.Struct<{
|
|
12934
|
-
readonly kind: Schema.Literal<"admin">;
|
|
12935
|
-
}>, Schema.Struct<{
|
|
12936
|
-
readonly kind: Schema.Literal<"permission">;
|
|
12937
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
12938
|
-
}>]>;
|
|
12939
|
-
readonly from: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
12940
|
-
readonly kind: Schema.Literal<"gate">;
|
|
12941
|
-
readonly line: Schema.optionalKey<Schema.Int>;
|
|
12942
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
12943
|
-
}>, Schema.Struct<{
|
|
12944
|
-
readonly kind: Schema.Literal<"floor">;
|
|
12945
|
-
}>, Schema.Struct<{
|
|
12946
|
-
readonly kind: Schema.Literal<"project gate">;
|
|
12947
|
-
readonly line: Schema.optionalKey<Schema.Int>;
|
|
12948
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
13244
|
+
readonly state: Schema.Literal<"waiting">;
|
|
13245
|
+
readonly for: Schema.Literal<"checks read">;
|
|
12949
13246
|
}>, Schema.Struct<{
|
|
12950
|
-
readonly
|
|
12951
|
-
readonly
|
|
12952
|
-
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
13247
|
+
readonly state: Schema.Literal<"refused">;
|
|
13248
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
12953
13249
|
readonly kind: Schema.Literal<"person">;
|
|
12954
13250
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
12955
13251
|
}>, Schema.Struct<{
|
|
@@ -12957,31 +13253,44 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
12957
13253
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12958
13254
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12959
13255
|
}>, Schema.Struct<{
|
|
12960
|
-
readonly kind: Schema.Literal<"
|
|
12961
|
-
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
|
+
}>]>;
|
|
12962
13285
|
}>]>;
|
|
12963
|
-
readonly
|
|
12964
|
-
readonly at: Schema.Int;
|
|
12965
|
-
readonly finding: Schema.optionalKey<Schema.Struct<{
|
|
12966
|
-
readonly review: Schema.brand<Schema.TemplateLiteral<readonly ["review_", Schema.String]>, "ReviewId">;
|
|
12967
|
-
readonly finding: Schema.Int;
|
|
12968
|
-
}>>;
|
|
12969
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
12970
|
-
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
12971
|
-
}>, Schema.Struct<{
|
|
12972
|
-
readonly kind: Schema.Literal<"result">;
|
|
12973
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
12974
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
12975
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
12976
|
-
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
12977
|
-
}>, Schema.Struct<{
|
|
12978
|
-
readonly kind: Schema.Literal<"tip">;
|
|
12979
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["tiprun_", Schema.String]>, "TipRunId">;
|
|
12980
|
-
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
12981
|
-
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckName">>;
|
|
12982
|
-
readonly checkRun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
13286
|
+
readonly by: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
12983
13287
|
}>]>>;
|
|
12984
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
|
+
}>>>;
|
|
12985
13294
|
readonly reads: Schema.$Array<Schema.Struct<{
|
|
12986
13295
|
readonly side: Schema.Literals<readonly ["before", "after"]>;
|
|
12987
13296
|
readonly path: Schema.String;
|
|
@@ -13513,59 +13822,163 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13513
13822
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13514
13823
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13515
13824
|
}>]>>>;
|
|
13516
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13825
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13517
13826
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13518
13827
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13519
|
-
|
|
13828
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13829
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13830
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13831
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13832
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13833
|
+
readonly kind: Schema.Literal<"project">;
|
|
13834
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13835
|
+
}>, Schema.Struct<{
|
|
13836
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13837
|
+
}>]>;
|
|
13838
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13839
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13840
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13841
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
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">]>;
|
|
13520
13844
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13521
|
-
readonly
|
|
13522
|
-
|
|
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">;
|
|
13523
13857
|
}>, Schema.Struct<{
|
|
13524
|
-
readonly kind: Schema.Literal<"
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
|
|
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<{
|
|
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">]>;
|
|
13866
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13867
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13868
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13869
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13870
|
+
line: Schema.Int;
|
|
13871
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13872
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13873
|
+
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13874
|
+
readonly line: Schema.Int;
|
|
13875
|
+
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13876
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13877
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13878
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13879
|
+
readonly threadNumber: Schema.Int;
|
|
13880
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13881
|
+
readonly turn: Schema.Int;
|
|
13882
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13883
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
13884
|
+
}>>;
|
|
13885
|
+
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13886
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13887
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13888
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13889
|
+
readonly step: Schema.Struct<{
|
|
13890
|
+
readonly name: Schema.String;
|
|
13891
|
+
readonly count: Schema.Int;
|
|
13892
|
+
readonly attempt: Schema.Int;
|
|
13893
|
+
}>;
|
|
13894
|
+
}>>;
|
|
13895
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13896
|
+
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">]>;
|
|
13897
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13898
|
+
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13899
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
13900
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13901
|
+
readonly repos: Schema.$Array<Schema.Struct<{
|
|
13902
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13903
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13904
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13905
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13906
|
+
readonly kind: Schema.Literal<"project">;
|
|
13907
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13908
|
+
}>, Schema.Struct<{
|
|
13909
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13910
|
+
}>]>;
|
|
13911
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13912
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13913
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13914
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13915
|
+
}>>;
|
|
13916
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13917
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13918
|
+
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">]>;
|
|
13919
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13920
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13921
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13922
|
+
readonly version: Schema.Int;
|
|
13923
|
+
readonly baseline: Schema.Struct<{
|
|
13924
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13925
|
+
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
13926
|
+
readonly sequence: Schema.Int;
|
|
13927
|
+
readonly depth: Schema.Int;
|
|
13928
|
+
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13929
|
+
}>;
|
|
13930
|
+
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
13931
|
+
readonly sequence: Schema.Int;
|
|
13932
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13933
|
+
}>>;
|
|
13934
|
+
readonly packs: Schema.$Array<Schema.Struct<{
|
|
13935
|
+
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
13936
|
+
readonly key: Schema.String;
|
|
13937
|
+
readonly sha256: Schema.String;
|
|
13938
|
+
readonly bytes: Schema.Int;
|
|
13939
|
+
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
13940
|
+
readonly first: Schema.Int;
|
|
13941
|
+
readonly last: Schema.Int;
|
|
13535
13942
|
}>>;
|
|
13943
|
+
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
13944
|
+
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
13945
|
+
readonly roots: Schema.$Array<Schema.Struct<{
|
|
13946
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13947
|
+
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13948
|
+
}>>;
|
|
13949
|
+
}>>;
|
|
13950
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13951
|
+
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">]>;
|
|
13952
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13953
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13954
|
+
readonly kind: Schema.Literal<"none">;
|
|
13955
|
+
}>, Schema.Struct<{
|
|
13956
|
+
readonly kind: Schema.Literal<"github">;
|
|
13957
|
+
readonly branch: Schema.String;
|
|
13958
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13959
|
+
readonly state: Schema.Literal<"on">;
|
|
13536
13960
|
}>, Schema.Struct<{
|
|
13537
|
-
readonly
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13961
|
+
readonly state: Schema.Literal<"paused">;
|
|
13962
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13963
|
+
readonly why: Schema.Literal<"diverged">;
|
|
13964
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13965
|
+
}>, Schema.Struct<{
|
|
13966
|
+
readonly why: Schema.Literal<"refused">;
|
|
13967
|
+
readonly said: Schema.String;
|
|
13968
|
+
}>, Schema.Struct<{
|
|
13969
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
13970
|
+
}>]>;
|
|
13542
13971
|
}>, Schema.Struct<{
|
|
13543
|
-
readonly
|
|
13544
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13972
|
+
readonly state: Schema.Literal<"off">;
|
|
13545
13973
|
}>]>;
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13549
|
-
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13550
|
-
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13551
|
-
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13552
|
-
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13553
|
-
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13554
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
|
|
13974
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13975
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13976
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13555
13977
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13556
13978
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13557
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13558
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13559
|
-
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13560
13979
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13561
|
-
|
|
13562
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13563
|
-
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13564
|
-
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13565
|
-
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13566
|
-
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13567
|
-
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13568
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13980
|
+
key: Schema.String;
|
|
13981
|
+
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13569
13982
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13570
13983
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13571
13984
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13587,33 +14000,122 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13587
14000
|
readonly gate: Schema.Int;
|
|
13588
14001
|
readonly since: Schema.Int;
|
|
13589
14002
|
}>>;
|
|
13590
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
14003
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13591
14004
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13592
14005
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
readonly
|
|
13597
|
-
readonly
|
|
13598
|
-
readonly
|
|
13599
|
-
readonly
|
|
14006
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14007
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14008
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14009
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
14010
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
14011
|
+
readonly head: Schema.Struct<{
|
|
14012
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
14013
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
14014
|
+
readonly branch: Schema.String;
|
|
14015
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14016
|
+
readonly generation: Schema.Int;
|
|
14017
|
+
}>;
|
|
14018
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
14019
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
14020
|
+
readonly agent: Schema.Struct<{
|
|
14021
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14022
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
14023
|
+
}>;
|
|
13600
14024
|
}>, Schema.Struct<{
|
|
13601
|
-
readonly
|
|
13602
|
-
|
|
13603
|
-
readonly
|
|
13604
|
-
readonly
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
14025
|
+
readonly workflow: Schema.Struct<{
|
|
14026
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
14027
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
14028
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
14029
|
+
readonly step: Schema.Struct<{
|
|
14030
|
+
readonly name: Schema.String;
|
|
14031
|
+
readonly count: Schema.Int;
|
|
14032
|
+
readonly attempt: Schema.Int;
|
|
14033
|
+
}>;
|
|
14034
|
+
}>;
|
|
14035
|
+
}>]>;
|
|
14036
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
14037
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
14038
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
14039
|
+
readonly repair: Schema.Boolean;
|
|
14040
|
+
readonly current: Schema.Struct<{
|
|
14041
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
14042
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
14043
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
14044
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
14045
|
+
readonly intentRevision: Schema.Int;
|
|
14046
|
+
readonly generation: Schema.Int;
|
|
14047
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
14048
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
14049
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14050
|
+
}>;
|
|
14051
|
+
readonly threadNumber: Schema.Int;
|
|
14052
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
14053
|
+
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">]>;
|
|
14054
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14055
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14056
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
14057
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14058
|
+
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
14059
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14060
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
14061
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
14062
|
+
readonly head: Schema.Struct<{
|
|
14063
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
14064
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
14065
|
+
readonly branch: Schema.String;
|
|
14066
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14067
|
+
readonly generation: Schema.Int;
|
|
14068
|
+
}>;
|
|
14069
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
14070
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
14071
|
+
readonly agent: Schema.Struct<{
|
|
14072
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14073
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
14074
|
+
}>;
|
|
13608
14075
|
}>, Schema.Struct<{
|
|
13609
|
-
readonly
|
|
14076
|
+
readonly workflow: Schema.Struct<{
|
|
14077
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
14078
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
14079
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
14080
|
+
readonly step: Schema.Struct<{
|
|
14081
|
+
readonly name: Schema.String;
|
|
14082
|
+
readonly count: Schema.Int;
|
|
14083
|
+
readonly attempt: Schema.Int;
|
|
14084
|
+
}>;
|
|
14085
|
+
}>;
|
|
13610
14086
|
}>]>;
|
|
13611
|
-
|
|
13612
|
-
readonly
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
14087
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
14088
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
14089
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
14090
|
+
readonly repair: Schema.Boolean;
|
|
14091
|
+
readonly current: Schema.Struct<{
|
|
14092
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
14093
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
14094
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
14095
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
14096
|
+
readonly intentRevision: Schema.Int;
|
|
14097
|
+
readonly generation: Schema.Int;
|
|
14098
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
14099
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
14100
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14101
|
+
}>;
|
|
14102
|
+
readonly threadNumber: Schema.Int;
|
|
14103
|
+
}>>;
|
|
14104
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">]>;
|
|
14106
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14107
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14108
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14109
|
+
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
14110
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14111
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
14112
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
14113
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
14114
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
14115
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
14116
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
14117
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
14118
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13617
14119
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13618
14120
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13619
14121
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13643,38 +14145,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13643
14145
|
}>]>;
|
|
13644
14146
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13645
14147
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13646
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never
|
|
13647
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13648
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13649
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13650
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13651
|
-
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13652
|
-
line: Schema.Int;
|
|
13653
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13654
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13655
|
-
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13656
|
-
readonly line: Schema.Int;
|
|
13657
|
-
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13658
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13659
|
-
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13660
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13661
|
-
readonly threadNumber: Schema.Int;
|
|
13662
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13663
|
-
readonly turn: Schema.Int;
|
|
13664
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13665
|
-
readonly model: Schema.optionalKey<Schema.String>;
|
|
13666
|
-
}>>;
|
|
13667
|
-
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13668
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13669
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13670
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13671
|
-
readonly step: Schema.Struct<{
|
|
13672
|
-
readonly name: Schema.String;
|
|
13673
|
-
readonly count: Schema.Int;
|
|
13674
|
-
readonly attempt: Schema.Int;
|
|
13675
|
-
}>;
|
|
13676
|
-
}>>;
|
|
13677
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
|
|
14148
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never>, false>;
|
|
13678
14149
|
/**
|
|
13679
14150
|
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
13680
14151
|
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
@@ -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. */
|
|
@@ -17029,7 +17526,31 @@ declare const AgentPermissionsGroup_base: HttpApiGroup.HttpApiGroup<"agentPermis
|
|
|
17029
17526
|
* the person's approval, answered with their passkey in an approving browser.
|
|
17030
17527
|
*/
|
|
17031
17528
|
declare class AgentPermissionsGroup extends AgentPermissionsGroup_base {}
|
|
17032
|
-
declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpApiEndpoint.HttpApiEndpoint<"
|
|
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">;
|
|
17546
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17547
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17548
|
+
}>>, Schema.toCodecJson<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<{
|
|
@@ -17133,38 +17654,13 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17133
17654
|
readonly failuresInARow: Schema.Int;
|
|
17134
17655
|
readonly lastRun: Schema.optionalKey<Schema.Struct<{
|
|
17135
17656
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
17136
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17137
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17138
|
-
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17139
|
-
readonly trigger: 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"]>;
|
|
17140
|
-
readonly event: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
17141
|
-
readonly state: Schema.Literals<readonly ["pending", "starting", "created", "running", "done", "skipped", "failed", "expired"]>;
|
|
17142
|
-
readonly outcome: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17143
|
-
readonly applied: Schema.Struct<{
|
|
17144
|
-
readonly comment: Schema.Int;
|
|
17145
|
-
readonly ask: Schema.Int;
|
|
17146
|
-
readonly 'thread.start': Schema.Int;
|
|
17147
|
-
}>;
|
|
17148
|
-
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17149
|
-
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17150
|
-
readonly count: Schema.Int;
|
|
17151
|
-
}>>;
|
|
17152
|
-
readonly duplicates: Schema.Int;
|
|
17153
|
-
readonly kind: Schema.Literal<"done">;
|
|
17154
|
-
}>, Schema.Struct<{
|
|
17155
|
-
readonly applied: Schema.Struct<{
|
|
17156
|
-
readonly comment: Schema.Int;
|
|
17157
|
-
readonly ask: Schema.Int;
|
|
17158
|
-
readonly 'thread.start': Schema.Int;
|
|
17159
|
-
}>;
|
|
17160
|
-
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17161
|
-
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17162
|
-
readonly count: Schema.Int;
|
|
17163
|
-
}>>;
|
|
17164
|
-
readonly duplicates: Schema.Int;
|
|
17165
|
-
readonly kind: Schema.Literal<"skipped">;
|
|
17166
|
-
readonly why: Schema.Literals<readonly ["budget", "off", "stopped", "connection removed", "approver gone", "access", "unseen", "parent ended", "start ended"]>;
|
|
17167
|
-
}>, Schema.Struct<{
|
|
17657
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17658
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17659
|
+
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17660
|
+
readonly trigger: 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"]>;
|
|
17661
|
+
readonly event: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
17662
|
+
readonly state: Schema.Literals<readonly ["pending", "starting", "created", "running", "done", "skipped", "failed", "expired"]>;
|
|
17663
|
+
readonly outcome: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17168
17664
|
readonly applied: Schema.Struct<{
|
|
17169
17665
|
readonly comment: Schema.Int;
|
|
17170
17666
|
readonly ask: Schema.Int;
|
|
@@ -17175,8 +17671,7 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17175
17671
|
readonly count: Schema.Int;
|
|
17176
17672
|
}>>;
|
|
17177
17673
|
readonly duplicates: Schema.Int;
|
|
17178
|
-
readonly kind: Schema.Literal<"
|
|
17179
|
-
readonly why: Schema.Literals<readonly ["threw", "invalid output", "timed out", "unavailable", "ended"]>;
|
|
17674
|
+
readonly kind: Schema.Literal<"done">;
|
|
17180
17675
|
}>, Schema.Struct<{
|
|
17181
17676
|
readonly applied: Schema.Struct<{
|
|
17182
17677
|
readonly comment: Schema.Int;
|
|
@@ -17187,279 +17682,123 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17187
17682
|
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17188
17683
|
readonly count: Schema.Int;
|
|
17189
17684
|
}>>;
|
|
17190
|
-
readonly duplicates: Schema.Int;
|
|
17191
|
-
readonly kind: Schema.Literal<"
|
|
17192
|
-
|
|
17193
|
-
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17199
|
-
|
|
17200
|
-
|
|
17201
|
-
|
|
17202
|
-
|
|
17203
|
-
|
|
17204
|
-
|
|
17205
|
-
|
|
17206
|
-
|
|
17207
|
-
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
17211
|
-
|
|
17212
|
-
|
|
17213
|
-
|
|
17214
|
-
|
|
17215
|
-
|
|
17216
|
-
|
|
17217
|
-
|
|
17218
|
-
|
|
17219
|
-
|
|
17220
|
-
|
|
17221
|
-
|
|
17222
|
-
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17223
|
-
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17224
|
-
readonly count: Schema.Int;
|
|
17225
|
-
}>>;
|
|
17226
|
-
readonly duplicates: Schema.Int;
|
|
17227
|
-
readonly kind: Schema.Literal<"done">;
|
|
17228
|
-
}>, Schema.Struct<{
|
|
17229
|
-
readonly applied: Schema.Struct<{
|
|
17230
|
-
readonly comment: Schema.Int;
|
|
17231
|
-
readonly ask: Schema.Int;
|
|
17232
|
-
readonly 'thread.start': Schema.Int;
|
|
17233
|
-
}>;
|
|
17234
|
-
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17235
|
-
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17236
|
-
readonly count: Schema.Int;
|
|
17237
|
-
}>>;
|
|
17238
|
-
readonly duplicates: Schema.Int;
|
|
17239
|
-
readonly kind: Schema.Literal<"skipped">;
|
|
17240
|
-
readonly why: Schema.Literals<readonly ["budget", "off", "stopped", "connection removed", "approver gone", "access", "unseen", "parent ended", "start ended"]>;
|
|
17241
|
-
}>, Schema.Struct<{
|
|
17242
|
-
readonly applied: Schema.Struct<{
|
|
17243
|
-
readonly comment: Schema.Int;
|
|
17244
|
-
readonly ask: Schema.Int;
|
|
17245
|
-
readonly 'thread.start': Schema.Int;
|
|
17246
|
-
}>;
|
|
17247
|
-
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17248
|
-
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17249
|
-
readonly count: Schema.Int;
|
|
17250
|
-
}>>;
|
|
17251
|
-
readonly duplicates: Schema.Int;
|
|
17252
|
-
readonly kind: Schema.Literal<"failed">;
|
|
17253
|
-
readonly why: Schema.Literals<readonly ["threw", "invalid output", "timed out", "unavailable", "ended"]>;
|
|
17254
|
-
}>, Schema.Struct<{
|
|
17255
|
-
readonly applied: Schema.Struct<{
|
|
17256
|
-
readonly comment: Schema.Int;
|
|
17257
|
-
readonly ask: Schema.Int;
|
|
17258
|
-
readonly 'thread.start': Schema.Int;
|
|
17259
|
-
}>;
|
|
17260
|
-
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17261
|
-
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17262
|
-
readonly count: Schema.Int;
|
|
17263
|
-
}>>;
|
|
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> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17274
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17275
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17276
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17277
|
-
readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
|
|
17278
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17279
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17280
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17281
|
-
readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17282
|
-
readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17283
|
-
readonly coversUnread: Schema.Boolean;
|
|
17284
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17285
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17286
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17287
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17288
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17289
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17290
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17291
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17292
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17293
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17294
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17295
|
-
readonly changed: Schema.Boolean;
|
|
17296
|
-
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17297
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never>, false>;
|
|
17298
|
-
/**
|
|
17299
|
-
* A repo's workflows and their workflow runs, for whoever may read the repo. Turning workflows
|
|
17300
|
-
* off is a person's approved command, which reaches `/v1` with approvals; an agent asks its
|
|
17301
|
-
* person.
|
|
17302
|
-
*/
|
|
17303
|
-
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17304
|
-
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17305
|
-
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">]>;
|
|
17306
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17307
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17308
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17309
|
-
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17310
|
-
readonly kind: Schema.Literal<"main">;
|
|
17311
|
-
}>, Schema.Struct<{
|
|
17312
|
-
readonly kind: Schema.Literal<"thread">;
|
|
17313
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17314
|
-
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17315
|
-
}>]>;
|
|
17316
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17317
|
-
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17318
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17319
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17320
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17321
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17322
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17323
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17324
|
-
readonly rerun: Schema.Int;
|
|
17325
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17326
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17327
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17328
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17329
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17330
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17331
|
-
}>, Schema.Struct<{
|
|
17332
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17333
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17334
|
-
readonly rerun: Schema.Int;
|
|
17335
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17336
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17337
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17338
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17339
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17340
|
-
readonly state: Schema.Literal<"ended">;
|
|
17341
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17342
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17343
|
-
}>, Schema.Struct<{
|
|
17344
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17345
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17346
|
-
readonly rerun: Schema.Int;
|
|
17347
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17348
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17349
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17350
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17351
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17352
|
-
readonly state: Schema.Literal<"ended">;
|
|
17353
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17354
|
-
}>]>>;
|
|
17355
|
-
}>, Schema.Struct<{
|
|
17356
|
-
readonly waiting: Schema.Struct<{
|
|
17357
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17358
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17359
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17360
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17361
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17362
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17363
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17364
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17365
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17366
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17367
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17368
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17369
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17370
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17371
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17372
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17373
|
-
readonly kind: Schema.Literal<"person">;
|
|
17374
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17375
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17376
|
-
}>, Schema.Struct<{
|
|
17377
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17378
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17379
|
-
}>, Schema.Struct<{
|
|
17380
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17381
|
-
readonly permission: Schema.String;
|
|
17382
|
-
}>]>>;
|
|
17383
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17384
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17385
|
-
}>>;
|
|
17386
|
-
}>>;
|
|
17387
|
-
}>;
|
|
17388
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
|
|
17389
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17390
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17391
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17392
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17393
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17394
|
-
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17395
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17396
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17397
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17398
|
-
readonly rerun: Schema.Int;
|
|
17399
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17400
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17401
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17402
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17403
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17404
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17405
|
-
}>, Schema.Struct<{
|
|
17406
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17407
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17408
|
-
readonly rerun: Schema.Int;
|
|
17409
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17410
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17411
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17412
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17413
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17414
|
-
readonly state: Schema.Literal<"ended">;
|
|
17415
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17416
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17417
|
-
}>, Schema.Struct<{
|
|
17418
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17419
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17420
|
-
readonly rerun: Schema.Int;
|
|
17421
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17422
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17423
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17424
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17425
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17426
|
-
readonly state: Schema.Literal<"ended">;
|
|
17427
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17428
|
-
}>]>>;
|
|
17429
|
-
}>, Schema.Struct<{
|
|
17430
|
-
readonly waiting: Schema.Struct<{
|
|
17431
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17432
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17433
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17434
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17435
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17436
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17437
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17438
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17439
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17685
|
+
readonly duplicates: Schema.Int;
|
|
17686
|
+
readonly kind: Schema.Literal<"skipped">;
|
|
17687
|
+
readonly why: Schema.Literals<readonly ["budget", "off", "stopped", "connection removed", "approver gone", "access", "unseen", "parent ended", "start ended"]>;
|
|
17688
|
+
}>, Schema.Struct<{
|
|
17689
|
+
readonly applied: Schema.Struct<{
|
|
17690
|
+
readonly comment: Schema.Int;
|
|
17691
|
+
readonly ask: Schema.Int;
|
|
17692
|
+
readonly 'thread.start': Schema.Int;
|
|
17693
|
+
}>;
|
|
17694
|
+
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17695
|
+
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17696
|
+
readonly count: Schema.Int;
|
|
17697
|
+
}>>;
|
|
17698
|
+
readonly duplicates: Schema.Int;
|
|
17699
|
+
readonly kind: Schema.Literal<"failed">;
|
|
17700
|
+
readonly why: Schema.Literals<readonly ["threw", "invalid output", "timed out", "unavailable", "ended"]>;
|
|
17701
|
+
}>, Schema.Struct<{
|
|
17702
|
+
readonly applied: Schema.Struct<{
|
|
17703
|
+
readonly comment: Schema.Int;
|
|
17704
|
+
readonly ask: Schema.Int;
|
|
17705
|
+
readonly 'thread.start': Schema.Int;
|
|
17706
|
+
}>;
|
|
17707
|
+
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17708
|
+
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17709
|
+
readonly count: Schema.Int;
|
|
17710
|
+
}>>;
|
|
17711
|
+
readonly duplicates: Schema.Int;
|
|
17712
|
+
readonly kind: Schema.Literal<"expired">;
|
|
17713
|
+
}>]>>;
|
|
17714
|
+
readonly matchedAt: Schema.DateTimeUtcFromMillis;
|
|
17715
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17716
|
+
readonly parent: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17440
17717
|
readonly title: Schema.optionalKey<Schema.String>;
|
|
17441
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17442
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17443
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17444
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17445
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17446
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17447
|
-
readonly kind: Schema.Literal<"person">;
|
|
17448
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17449
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17450
|
-
}>, Schema.Struct<{
|
|
17451
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17452
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17453
|
-
}>, Schema.Struct<{
|
|
17454
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17455
|
-
readonly permission: Schema.String;
|
|
17456
|
-
}>]>>;
|
|
17457
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17458
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17459
|
-
}>>;
|
|
17460
17718
|
}>>;
|
|
17461
|
-
|
|
17462
|
-
|
|
17719
|
+
readonly thread: Schema.optionalKey<Schema.Int>;
|
|
17720
|
+
readonly suspended: Schema.optionalKey<Schema.Literal<true>>;
|
|
17721
|
+
}>>;
|
|
17722
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17723
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17724
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17725
|
+
workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17726
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17727
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17728
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17729
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17730
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
17731
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17732
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17733
|
+
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17734
|
+
readonly trigger: 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"]>;
|
|
17735
|
+
readonly event: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
17736
|
+
readonly state: Schema.Literals<readonly ["pending", "starting", "created", "running", "done", "skipped", "failed", "expired"]>;
|
|
17737
|
+
readonly outcome: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17738
|
+
readonly applied: Schema.Struct<{
|
|
17739
|
+
readonly comment: Schema.Int;
|
|
17740
|
+
readonly ask: Schema.Int;
|
|
17741
|
+
readonly 'thread.start': Schema.Int;
|
|
17742
|
+
}>;
|
|
17743
|
+
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17744
|
+
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17745
|
+
readonly count: Schema.Int;
|
|
17746
|
+
}>>;
|
|
17747
|
+
readonly duplicates: Schema.Int;
|
|
17748
|
+
readonly kind: Schema.Literal<"done">;
|
|
17749
|
+
}>, Schema.Struct<{
|
|
17750
|
+
readonly applied: Schema.Struct<{
|
|
17751
|
+
readonly comment: Schema.Int;
|
|
17752
|
+
readonly ask: Schema.Int;
|
|
17753
|
+
readonly 'thread.start': Schema.Int;
|
|
17754
|
+
}>;
|
|
17755
|
+
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17756
|
+
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17757
|
+
readonly count: Schema.Int;
|
|
17758
|
+
}>>;
|
|
17759
|
+
readonly duplicates: Schema.Int;
|
|
17760
|
+
readonly kind: Schema.Literal<"skipped">;
|
|
17761
|
+
readonly why: Schema.Literals<readonly ["budget", "off", "stopped", "connection removed", "approver gone", "access", "unseen", "parent ended", "start ended"]>;
|
|
17762
|
+
}>, Schema.Struct<{
|
|
17763
|
+
readonly applied: Schema.Struct<{
|
|
17764
|
+
readonly comment: Schema.Int;
|
|
17765
|
+
readonly ask: Schema.Int;
|
|
17766
|
+
readonly 'thread.start': Schema.Int;
|
|
17767
|
+
}>;
|
|
17768
|
+
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17769
|
+
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17770
|
+
readonly count: Schema.Int;
|
|
17771
|
+
}>>;
|
|
17772
|
+
readonly duplicates: Schema.Int;
|
|
17773
|
+
readonly kind: Schema.Literal<"failed">;
|
|
17774
|
+
readonly why: Schema.Literals<readonly ["threw", "invalid output", "timed out", "unavailable", "ended"]>;
|
|
17775
|
+
}>, Schema.Struct<{
|
|
17776
|
+
readonly applied: Schema.Struct<{
|
|
17777
|
+
readonly comment: Schema.Int;
|
|
17778
|
+
readonly ask: Schema.Int;
|
|
17779
|
+
readonly 'thread.start': Schema.Int;
|
|
17780
|
+
}>;
|
|
17781
|
+
readonly refused: Schema.$Array<Schema.Struct<{
|
|
17782
|
+
readonly why: Schema.Literals<readonly ["undeclared", "ceiling", "target", "answers", "length", "secret", "audience", "budget", "ended", "invalid", "changed", "access", "need", "key"]>;
|
|
17783
|
+
readonly count: Schema.Int;
|
|
17784
|
+
}>>;
|
|
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<{
|
|
17463
17802
|
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17464
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">]>;
|
|
17465
17804
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
@@ -18025,7 +18364,91 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18025
18364
|
}>, Schema.Struct<{
|
|
18026
18365
|
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18027
18366
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18028
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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>;
|
|
18448
|
+
}>>;
|
|
18449
|
+
}>>;
|
|
18450
|
+
}>;
|
|
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<{
|
|
18029
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">]>;
|
|
18030
18453
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18031
18454
|
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
@@ -18151,7 +18574,81 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18151
18574
|
}>>;
|
|
18152
18575
|
readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
|
|
18153
18576
|
readonly more: Schema.Boolean;
|
|
18154
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never
|
|
18577
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
|
|
18578
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18579
|
+
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">]>;
|
|
18580
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18581
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18582
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18583
|
+
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18584
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18585
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18586
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18587
|
+
readonly rerun: Schema.Int;
|
|
18588
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18589
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18590
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18591
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18592
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18593
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
18594
|
+
}>, Schema.Struct<{
|
|
18595
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18596
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18597
|
+
readonly rerun: Schema.Int;
|
|
18598
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
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>;
|
|
18603
|
+
readonly state: Schema.Literal<"ended">;
|
|
18604
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18605
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18606
|
+
}>, Schema.Struct<{
|
|
18607
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18608
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18609
|
+
readonly rerun: Schema.Int;
|
|
18610
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
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>;
|
|
18615
|
+
readonly state: Schema.Literal<"ended">;
|
|
18616
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18617
|
+
}>]>>;
|
|
18618
|
+
}>, Schema.Struct<{
|
|
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
|
|
@@ -18163,23 +18660,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18163
18660
|
* in.
|
|
18164
18661
|
*/
|
|
18165
18662
|
declare class RunsGroup extends RunsGroup_base {}
|
|
18166
|
-
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18167
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18168
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18169
|
-
readonly client: Schema.String;
|
|
18170
|
-
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
18171
|
-
readonly create: Schema.optionalKey<Schema.Boolean>;
|
|
18172
|
-
readonly access: Schema.Literals<readonly ["read", "act"]>;
|
|
18173
|
-
readonly projects: Schema.NonEmptyArray<Schema.Struct<{
|
|
18174
|
-
readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18175
|
-
readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
18176
|
-
}>>;
|
|
18177
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18178
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18179
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18180
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18181
|
-
readonly client: Schema.String;
|
|
18182
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
|
|
18663
|
+
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
|
|
18183
18664
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18184
18665
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18185
18666
|
readonly request: Schema.String;
|
|
@@ -18204,23 +18685,30 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18204
18685
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18205
18686
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18206
18687
|
readonly redirect: Schema.String;
|
|
18207
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never
|
|
18688
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">]>;
|
|
18690
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18691
|
+
readonly client: Schema.String;
|
|
18692
|
+
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
18693
|
+
readonly create: Schema.optionalKey<Schema.Boolean>;
|
|
18694
|
+
readonly access: Schema.Literals<readonly ["read", "act"]>;
|
|
18695
|
+
readonly projects: Schema.NonEmptyArray<Schema.Struct<{
|
|
18696
|
+
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">]>;
|
|
18697
|
+
readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
18698
|
+
}>>;
|
|
18699
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18700
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18701
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18702
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18703
|
+
readonly client: Schema.String;
|
|
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<"
|
|
18215
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18216
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18217
|
-
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
18218
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18219
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18220
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18221
|
-
}>>;
|
|
18222
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18223
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18711
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18224
18712
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18225
18713
|
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18226
18714
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18230,7 +18718,23 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18230
18718
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18231
18719
|
readonly displayName: Schema.String;
|
|
18232
18720
|
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18233
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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<{
|
|
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">]>;
|
|
18723
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18724
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18725
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18726
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18727
|
+
readonly kind: Schema.Literal<"person">;
|
|
18728
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18729
|
+
}>, Schema.Struct<{
|
|
18730
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18731
|
+
readonly agent: Schema.Struct<{
|
|
18732
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18733
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18734
|
+
}>;
|
|
18735
|
+
}>]>;
|
|
18736
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18737
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18234
18738
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18235
18739
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18236
18740
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18273,23 +18777,16 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18273
18777
|
readonly bytes: Schema.Int;
|
|
18274
18778
|
}>>>;
|
|
18275
18779
|
}>>;
|
|
18276
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18277
|
-
|
|
18278
|
-
}>>, never, never, Schema.
|
|
18279
|
-
|
|
18280
|
-
|
|
18281
|
-
|
|
18282
|
-
readonly
|
|
18283
|
-
|
|
18284
|
-
|
|
18285
|
-
|
|
18286
|
-
readonly agent: Schema.Struct<{
|
|
18287
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18288
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18289
|
-
}>;
|
|
18290
|
-
}>]>;
|
|
18291
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18292
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
|
|
18780
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18781
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18782
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18783
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
18784
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18785
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18786
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18787
|
+
}>>;
|
|
18788
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18789
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
|
|
18293
18790
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18294
18791
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18295
18792
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18491,12 +18988,10 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18491
18988
|
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18492
18989
|
}>>;
|
|
18493
18990
|
readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
18494
|
-
}>>, 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<{
|
|
18495
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">]>;
|
|
18496
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">]>;
|
|
18497
|
-
}>>, never, Schema.
|
|
18498
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18499
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18994
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18500
18995
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18501
18996
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18502
18997
|
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18509,11 +19004,13 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18509
19004
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18510
19005
|
}>;
|
|
18511
19006
|
}>]>;
|
|
18512
|
-
readonly
|
|
18513
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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<{
|
|
18514
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">]>;
|
|
18515
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">]>;
|
|
18516
|
-
}>>, never,
|
|
19011
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19012
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19013
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18517
19014
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18518
19015
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18519
19016
|
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18526,43 +19023,61 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18526
19023
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18527
19024
|
}>;
|
|
18528
19025
|
}>]>;
|
|
18529
|
-
readonly
|
|
19026
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
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<"
|
|
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<{
|
|
19040
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19041
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19042
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19043
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19044
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
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<{
|
|
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">]>;
|
|
19050
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18534
19051
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18535
19052
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18536
19053
|
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18537
19054
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18538
|
-
readonly
|
|
18539
|
-
readonly
|
|
19055
|
+
readonly invitee: Schema.Struct<{
|
|
19056
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18540
19057
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18541
19058
|
}>;
|
|
18542
19059
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19060
|
+
readonly sentBy: Schema.Struct<{
|
|
19061
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19062
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19063
|
+
}>;
|
|
18543
19064
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18544
19065
|
}>>;
|
|
18545
19066
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18546
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18547
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18548
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19067
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18549
19068
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18550
19069
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18551
19070
|
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18552
19071
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18553
|
-
readonly
|
|
18554
|
-
readonly
|
|
19072
|
+
readonly organization: Schema.Struct<{
|
|
19073
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18555
19074
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18556
19075
|
}>;
|
|
18557
19076
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18558
|
-
readonly sentBy: Schema.Struct<{
|
|
18559
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18560
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18561
|
-
}>;
|
|
18562
19077
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18563
19078
|
}>>;
|
|
18564
19079
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18565
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable
|
|
19080
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18566
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">]>;
|
|
18567
19082
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18568
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">]>;
|
|
@@ -18584,25 +19099,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18584
19099
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18585
19100
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18586
19101
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18587
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never
|
|
18588
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18589
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18590
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18591
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18592
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18593
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18594
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18595
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18596
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18597
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18598
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18599
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18600
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18601
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18602
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18603
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18604
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18605
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never>, false>;
|
|
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.
|
|
@@ -18899,7 +19396,23 @@ 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<{
|
|
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">]>;
|
|
19401
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19402
|
+
readonly agent: Schema.Struct<{
|
|
19403
|
+
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">]>;
|
|
19404
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19405
|
+
}>;
|
|
19406
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19407
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19408
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19409
|
+
readonly agent: Schema.Struct<{
|
|
19410
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19411
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19412
|
+
}>;
|
|
19413
|
+
readonly targetGeneration: Schema.Int;
|
|
19414
|
+
readonly turnedOff: Schema.Boolean;
|
|
19415
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18903
19416
|
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
19417
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18905
19418
|
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
@@ -18926,23 +19439,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
18926
19439
|
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
18927
19440
|
}>>;
|
|
18928
19441
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18929
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18930
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18931
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18932
|
-
readonly agent: Schema.Struct<{
|
|
18933
|
-
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">]>;
|
|
18934
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18935
|
-
}>;
|
|
18936
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18937
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18938
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18939
|
-
readonly agent: Schema.Struct<{
|
|
18940
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18941
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18942
|
-
}>;
|
|
18943
|
-
readonly targetGeneration: Schema.Int;
|
|
18944
|
-
readonly turnedOff: Schema.Boolean;
|
|
18945
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
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
|