@ref0/sdk 0.7.0 → 0.9.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.
|
@@ -1355,13 +1355,10 @@ declare const NoFork_base: Schema.Class<NoFork, Schema.TaggedStruct<"NoFork", {
|
|
|
1355
1355
|
/** No fork of this repo for that session: it hasn't asked for one. */
|
|
1356
1356
|
declare class NoFork extends NoFork_base {}
|
|
1357
1357
|
declare const NoBase_base: Schema.Class<NoBase, Schema.TaggedStruct<"NoBase", {
|
|
1358
|
-
readonly why: Schema.
|
|
1358
|
+
readonly why: Schema.Literal<"main empty">;
|
|
1359
1359
|
readonly nextStep: Schema.String;
|
|
1360
1360
|
}>, import("effect/Cause").YieldableError>;
|
|
1361
|
-
/**
|
|
1362
|
-
* No base to fetch: `main` has no commit yet, or the pin of the thread below is in a workflow
|
|
1363
|
-
* run's fork, which has no session's path to fetch from.
|
|
1364
|
-
*/
|
|
1361
|
+
/** No base to fetch: `main` has no commit yet. */
|
|
1365
1362
|
declare class NoBase extends NoBase_base {}
|
|
1366
1363
|
declare const PullRequestNotFound_base: Schema.Class<PullRequestNotFound, Schema.TaggedStruct<"PullRequestNotFound", {
|
|
1367
1364
|
readonly nextStep: Schema.String;
|
|
@@ -2068,6 +2065,19 @@ declare const ApprovalSecret_base: HttpApiMiddleware.ServiceClass<ApprovalSecret
|
|
|
2068
2065
|
* secret is all it has. Not required of every client: only the one that made it supplies it.
|
|
2069
2066
|
*/
|
|
2070
2067
|
declare class ApprovalSecret extends ApprovalSecret_base {}
|
|
2068
|
+
declare const MachineNameRefusal_base: HttpApiMiddleware.ServiceClass<MachineNameRefusal, "ref0/contracts/MachineNameRefusal", {
|
|
2069
|
+
requires: never;
|
|
2070
|
+
provides: never;
|
|
2071
|
+
error: typeof CommandRefused;
|
|
2072
|
+
clientError: never;
|
|
2073
|
+
requiredForClient: false;
|
|
2074
|
+
security: never;
|
|
2075
|
+
}, HttpApiMiddleware.HttpApiMiddleware<never, typeof CommandRefused, never>>;
|
|
2076
|
+
/**
|
|
2077
|
+
* A machine's request whose name its contract refuses, answered as `CommandRefused`, which says
|
|
2078
|
+
* what to change. Any other part that fails its contract is answered with Effect's empty 400.
|
|
2079
|
+
*/
|
|
2080
|
+
declare class MachineNameRefusal extends MachineNameRefusal_base {}
|
|
2071
2081
|
declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/welcome", never, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2072
2082
|
readonly state: Schema.Literals<readonly ["ready", "setting up"]>;
|
|
2073
2083
|
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
@@ -2197,7 +2207,19 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
|
|
|
2197
2207
|
* what it came to with the approval's secret. Its person answers on their own page, by its code.
|
|
2198
2208
|
*/
|
|
2199
2209
|
declare class TerminalApprovalsGroup extends TerminalApprovalsGroup_base {}
|
|
2200
|
-
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2210
|
+
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
2211
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2212
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2213
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2214
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2215
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2216
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2217
|
+
readonly credential: Schema.Struct<{
|
|
2218
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2219
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2220
|
+
}>;
|
|
2221
|
+
readonly childrenRevoked: Schema.Int;
|
|
2222
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
|
|
2201
2223
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2202
2224
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2203
2225
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -2214,19 +2236,7 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
|
|
|
2214
2236
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
2215
2237
|
}>>;
|
|
2216
2238
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2217
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never
|
|
2218
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2219
|
-
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2220
|
-
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2221
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2222
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2223
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2224
|
-
readonly credential: Schema.Struct<{
|
|
2225
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2226
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2227
|
-
}>;
|
|
2228
|
-
readonly childrenRevoked: Schema.Int;
|
|
2229
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never>, false>;
|
|
2239
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
2230
2240
|
/**
|
|
2231
2241
|
* An agent's live attachments, by approval: listed, every one to an admin and their own to anyone
|
|
2232
2242
|
* else; and one of the caller's own disconnected, revoking its credential, which the Worker checks
|
|
@@ -2353,14 +2363,31 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2353
2363
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2354
2364
|
readonly code: Schema.String;
|
|
2355
2365
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2356
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof CommandRefused | typeof SlowDown>,
|
|
2366
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof CommandRefused | typeof SlowDown>, MachineNameRefusal, never>, false>;
|
|
2357
2367
|
/**
|
|
2358
2368
|
* Connecting a machine, the machine's side: asking, with no credential, to connect to one owner's
|
|
2359
2369
|
* agent, whose terminal shows the code their person types; then collecting what came of it,
|
|
2360
2370
|
* confirming it saved the grant, or aborting, with its collecting secret.
|
|
2361
2371
|
*/
|
|
2362
2372
|
declare class MachineAttachmentsGroup extends MachineAttachmentsGroup_base {}
|
|
2363
|
-
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2373
|
+
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
|
|
2374
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2375
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2376
|
+
readonly state: Schema.Literal<"waiting">;
|
|
2377
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2378
|
+
}>, Schema.Struct<{
|
|
2379
|
+
readonly state: Schema.Literal<"approved">;
|
|
2380
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2381
|
+
}>, Schema.Struct<{
|
|
2382
|
+
readonly state: Schema.Literal<"refused">;
|
|
2383
|
+
}>, Schema.Struct<{
|
|
2384
|
+
readonly state: Schema.Literal<"expired">;
|
|
2385
|
+
}>, Schema.Struct<{
|
|
2386
|
+
readonly status: Schema.Int;
|
|
2387
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2388
|
+
readonly state: Schema.Literal<"ran">;
|
|
2389
|
+
readonly endpoint: Schema.String;
|
|
2390
|
+
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/approvals", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2364
2391
|
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
2365
2392
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2366
2393
|
readonly says: Schema.String;
|
|
@@ -2613,24 +2640,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2613
2640
|
readonly state: Schema.String;
|
|
2614
2641
|
}>>;
|
|
2615
2642
|
}>>;
|
|
2616
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2617
|
-
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2618
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2619
|
-
readonly state: Schema.Literal<"waiting">;
|
|
2620
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2621
|
-
}>, Schema.Struct<{
|
|
2622
|
-
readonly state: Schema.Literal<"approved">;
|
|
2623
|
-
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2624
|
-
}>, Schema.Struct<{
|
|
2625
|
-
readonly state: Schema.Literal<"refused">;
|
|
2626
|
-
}>, Schema.Struct<{
|
|
2627
|
-
readonly state: Schema.Literal<"expired">;
|
|
2628
|
-
}>, Schema.Struct<{
|
|
2629
|
-
readonly status: Schema.Int;
|
|
2630
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2631
|
-
readonly state: Schema.Literal<"ran">;
|
|
2632
|
-
readonly endpoint: Schema.String;
|
|
2633
|
-
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2643
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2634
2644
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2635
2645
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2636
2646
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
@@ -3066,39 +3076,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3066
3076
|
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"]>;
|
|
3067
3077
|
}>>;
|
|
3068
3078
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3069
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3070
|
-
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3071
|
-
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3072
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3073
|
-
readonly turns: Schema.Int;
|
|
3074
|
-
readonly unknownTurns: Schema.Int;
|
|
3075
|
-
readonly models: Schema.$Array<Schema.Struct<{
|
|
3076
|
-
readonly model: Schema.String;
|
|
3077
|
-
readonly input: Schema.Int;
|
|
3078
|
-
readonly output: Schema.Int;
|
|
3079
|
-
readonly cacheWrite: Schema.Int;
|
|
3080
|
-
readonly cacheRead: Schema.Int;
|
|
3081
|
-
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3082
|
-
}>>;
|
|
3083
|
-
readonly cost: Schema.Finite;
|
|
3084
|
-
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3085
|
-
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3086
|
-
readonly harnesses: Schema.$Array<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 harness: Schema.String;
|
|
3099
|
-
}>>;
|
|
3100
|
-
readonly pricesAsOf: Schema.String;
|
|
3101
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3079
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3102
3080
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3103
3081
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3104
3082
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -3170,7 +3148,39 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3170
3148
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3171
3149
|
}>]>;
|
|
3172
3150
|
}>>;
|
|
3173
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3151
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3152
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3153
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3154
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3155
|
+
readonly turns: Schema.Int;
|
|
3156
|
+
readonly unknownTurns: Schema.Int;
|
|
3157
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3158
|
+
readonly model: Schema.String;
|
|
3159
|
+
readonly input: Schema.Int;
|
|
3160
|
+
readonly output: Schema.Int;
|
|
3161
|
+
readonly cacheWrite: Schema.Int;
|
|
3162
|
+
readonly cacheRead: Schema.Int;
|
|
3163
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3164
|
+
}>>;
|
|
3165
|
+
readonly cost: Schema.Finite;
|
|
3166
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3167
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3168
|
+
readonly harnesses: Schema.$Array<Schema.Struct<{
|
|
3169
|
+
readonly turns: Schema.Int;
|
|
3170
|
+
readonly unknownTurns: Schema.Int;
|
|
3171
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3172
|
+
readonly model: Schema.String;
|
|
3173
|
+
readonly input: Schema.Int;
|
|
3174
|
+
readonly output: Schema.Int;
|
|
3175
|
+
readonly cacheWrite: Schema.Int;
|
|
3176
|
+
readonly cacheRead: Schema.Int;
|
|
3177
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3178
|
+
}>>;
|
|
3179
|
+
readonly cost: Schema.Finite;
|
|
3180
|
+
readonly harness: Schema.String;
|
|
3181
|
+
}>>;
|
|
3182
|
+
readonly pricesAsOf: Schema.String;
|
|
3183
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3174
3184
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3175
3185
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3176
3186
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
@@ -12670,216 +12680,18 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
|
|
|
12670
12680
|
* the stage as filters. A project the reader can't see answers as one that isn't there.
|
|
12671
12681
|
*/
|
|
12672
12682
|
declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
|
|
12673
|
-
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"
|
|
12674
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12675
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12676
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12677
|
-
key: Schema.String;
|
|
12678
|
-
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
|
|
12679
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12680
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12681
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12682
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12683
|
-
path: Schema.brand<Schema.String, "RepoPath">;
|
|
12684
|
-
line: Schema.Int;
|
|
12685
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12686
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12687
|
-
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
12688
|
-
readonly line: Schema.Int;
|
|
12689
|
-
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
12690
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
12691
|
-
readonly turns: Schema.$Array<Schema.Struct<{
|
|
12692
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12693
|
-
readonly threadNumber: Schema.Int;
|
|
12694
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12695
|
-
readonly turn: Schema.Int;
|
|
12696
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
12697
|
-
readonly model: Schema.optionalKey<Schema.String>;
|
|
12698
|
-
}>>;
|
|
12699
|
-
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
12700
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12701
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12702
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12703
|
-
readonly step: Schema.Struct<{
|
|
12704
|
-
readonly name: Schema.String;
|
|
12705
|
-
readonly count: Schema.Int;
|
|
12706
|
-
readonly attempt: Schema.Int;
|
|
12707
|
-
}>;
|
|
12708
|
-
}>>;
|
|
12709
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
12710
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12711
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12712
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12713
|
-
readonly active: Schema.Struct<{
|
|
12714
|
-
readonly revision: Schema.Int;
|
|
12715
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12716
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
12717
|
-
}>;
|
|
12718
|
-
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
12719
|
-
readonly revision: Schema.Int;
|
|
12720
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12721
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
12722
|
-
}>>;
|
|
12723
|
-
readonly holding: Schema.$Array<Schema.Struct<{
|
|
12724
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12725
|
-
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
12726
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12727
|
-
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
12728
|
-
readonly gate: Schema.Int;
|
|
12729
|
-
readonly since: Schema.Int;
|
|
12730
|
-
}>>;
|
|
12731
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
12683
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
12732
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">]>;
|
|
12733
12685
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12734
12686
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12735
12687
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12736
12688
|
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12737
|
-
readonly
|
|
12738
|
-
readonly state: Schema.Literals<readonly ["
|
|
12739
|
-
readonly
|
|
12740
|
-
|
|
12741
|
-
readonly
|
|
12742
|
-
|
|
12743
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12744
|
-
readonly generation: Schema.Int;
|
|
12745
|
-
}>;
|
|
12746
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12747
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12748
|
-
readonly agent: Schema.Struct<{
|
|
12749
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12750
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12751
|
-
}>;
|
|
12752
|
-
}>, Schema.Struct<{
|
|
12753
|
-
readonly workflow: Schema.Struct<{
|
|
12754
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12755
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12756
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12757
|
-
readonly step: Schema.Struct<{
|
|
12758
|
-
readonly name: Schema.String;
|
|
12759
|
-
readonly count: Schema.Int;
|
|
12760
|
-
readonly attempt: Schema.Int;
|
|
12761
|
-
}>;
|
|
12762
|
-
}>;
|
|
12763
|
-
}>]>;
|
|
12764
|
-
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
12765
|
-
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
12766
|
-
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
12767
|
-
readonly repair: Schema.Boolean;
|
|
12768
|
-
readonly current: Schema.Struct<{
|
|
12769
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12770
|
-
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
12771
|
-
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12772
|
-
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
12773
|
-
readonly intentRevision: Schema.Int;
|
|
12774
|
-
readonly generation: Schema.Int;
|
|
12775
|
-
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
12776
|
-
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
12777
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12778
|
-
}>;
|
|
12779
|
-
readonly threadNumber: Schema.Int;
|
|
12780
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
12781
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12782
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12783
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12784
|
-
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
12785
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12786
|
-
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
12787
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12788
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12789
|
-
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
12790
|
-
readonly head: Schema.Struct<{
|
|
12791
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12792
|
-
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
12793
|
-
readonly branch: Schema.String;
|
|
12794
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12795
|
-
readonly generation: Schema.Int;
|
|
12796
|
-
}>;
|
|
12797
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12798
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12799
|
-
readonly agent: Schema.Struct<{
|
|
12800
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12801
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12802
|
-
}>;
|
|
12803
|
-
}>, Schema.Struct<{
|
|
12804
|
-
readonly workflow: Schema.Struct<{
|
|
12805
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12806
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12807
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12808
|
-
readonly step: Schema.Struct<{
|
|
12809
|
-
readonly name: Schema.String;
|
|
12810
|
-
readonly count: Schema.Int;
|
|
12811
|
-
readonly attempt: Schema.Int;
|
|
12812
|
-
}>;
|
|
12813
|
-
}>;
|
|
12814
|
-
}>]>;
|
|
12815
|
-
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
12816
|
-
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
12817
|
-
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
12818
|
-
readonly repair: Schema.Boolean;
|
|
12819
|
-
readonly current: Schema.Struct<{
|
|
12820
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12821
|
-
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
12822
|
-
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12823
|
-
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
12824
|
-
readonly intentRevision: Schema.Int;
|
|
12825
|
-
readonly generation: Schema.Int;
|
|
12826
|
-
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
12827
|
-
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
12828
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12829
|
-
}>;
|
|
12830
|
-
readonly threadNumber: Schema.Int;
|
|
12831
|
-
}>>;
|
|
12832
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
12833
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12834
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12835
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12836
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12837
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12838
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12839
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12840
|
-
readonly kind: Schema.Literal<"project">;
|
|
12841
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12842
|
-
}>, Schema.Struct<{
|
|
12843
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12844
|
-
}>]>;
|
|
12845
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12846
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12847
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12848
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12849
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
12850
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12851
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12852
|
-
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12853
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
12854
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12855
|
-
readonly repos: Schema.$Array<Schema.Struct<{
|
|
12856
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12857
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12858
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
12859
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
12860
|
-
readonly kind: Schema.Literal<"project">;
|
|
12861
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
12862
|
-
}>, Schema.Struct<{
|
|
12863
|
-
readonly kind: Schema.Literal<"owner">;
|
|
12864
|
-
}>]>;
|
|
12865
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
12866
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
12867
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
12868
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12869
|
-
}>>;
|
|
12870
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
12871
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
12872
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12873
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12874
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12875
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12876
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12877
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12878
|
-
readonly state: Schema.Literals<readonly ["pending", "answered", "failed"]>;
|
|
12879
|
-
readonly why: Schema.NullOr<Schema.String>;
|
|
12880
|
-
readonly needs: Schema.$Array<Schema.Struct<{
|
|
12881
|
-
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
12882
|
-
readonly kind: Schema.Literal<"checks">;
|
|
12689
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12690
|
+
readonly state: Schema.Literals<readonly ["pending", "answered", "failed"]>;
|
|
12691
|
+
readonly why: Schema.NullOr<Schema.String>;
|
|
12692
|
+
readonly needs: Schema.$Array<Schema.Struct<{
|
|
12693
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
12694
|
+
readonly kind: Schema.Literal<"checks">;
|
|
12883
12695
|
}>, Schema.Struct<{
|
|
12884
12696
|
readonly kind: Schema.Literal<"check">;
|
|
12885
12697
|
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
@@ -13480,7 +13292,77 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13480
13292
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13481
13293
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13482
13294
|
}>]>>>;
|
|
13483
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13295
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13296
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13297
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13298
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13299
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13300
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13301
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13302
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13303
|
+
readonly kind: Schema.Literal<"project">;
|
|
13304
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13305
|
+
}>, Schema.Struct<{
|
|
13306
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13307
|
+
}>]>;
|
|
13308
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13309
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13310
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13311
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13312
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
|
|
13313
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13314
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13315
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13316
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13317
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13318
|
+
line: Schema.Int;
|
|
13319
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13320
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13321
|
+
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13322
|
+
readonly line: Schema.Int;
|
|
13323
|
+
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13324
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13325
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13326
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13327
|
+
readonly threadNumber: Schema.Int;
|
|
13328
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13329
|
+
readonly turn: Schema.Int;
|
|
13330
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13331
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
13332
|
+
}>>;
|
|
13333
|
+
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13334
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13335
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13336
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13337
|
+
readonly step: Schema.Struct<{
|
|
13338
|
+
readonly name: Schema.String;
|
|
13339
|
+
readonly count: Schema.Int;
|
|
13340
|
+
readonly attempt: Schema.Int;
|
|
13341
|
+
}>;
|
|
13342
|
+
}>>;
|
|
13343
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13344
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13345
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13346
|
+
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13347
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
13348
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13349
|
+
readonly repos: Schema.$Array<Schema.Struct<{
|
|
13350
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13351
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13352
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13353
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13354
|
+
readonly kind: Schema.Literal<"project">;
|
|
13355
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13356
|
+
}>, Schema.Struct<{
|
|
13357
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13358
|
+
}>]>;
|
|
13359
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13360
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13361
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13362
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13363
|
+
}>>;
|
|
13364
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13365
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13484
13366
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13485
13367
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13486
13368
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13539,80 +13421,208 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13539
13421
|
}>]>;
|
|
13540
13422
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13541
13423
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13542
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13424
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13543
13425
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13544
|
-
|
|
13545
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13546
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13426
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13547
13427
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13548
|
-
|
|
13549
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13550
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13551
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13552
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13553
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13554
|
-
readonly kind: Schema.Literal<"project">;
|
|
13555
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13556
|
-
}>, Schema.Struct<{
|
|
13557
|
-
readonly kind: Schema.Literal<"owner">;
|
|
13558
|
-
}>]>;
|
|
13559
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13560
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13561
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13562
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13563
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
13428
|
+
key: Schema.String;
|
|
13429
|
+
}>>, 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<{
|
|
13564
13430
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
readonly
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
}
|
|
13572
|
-
readonly
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
readonly
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
}>>, Schema.toCodecJson<typeof
|
|
13431
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13432
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13433
|
+
readonly active: Schema.Struct<{
|
|
13434
|
+
readonly revision: Schema.Int;
|
|
13435
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13436
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13437
|
+
}>;
|
|
13438
|
+
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13439
|
+
readonly revision: Schema.Int;
|
|
13440
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13441
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13442
|
+
}>>;
|
|
13443
|
+
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13444
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13445
|
+
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13446
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13447
|
+
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
13448
|
+
readonly gate: Schema.Int;
|
|
13449
|
+
readonly since: Schema.Int;
|
|
13450
|
+
}>>;
|
|
13451
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13586
13452
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13587
13453
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13588
13454
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13589
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13590
|
-
readonly
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
readonly
|
|
13595
|
-
readonly
|
|
13596
|
-
readonly
|
|
13597
|
-
readonly
|
|
13598
|
-
readonly
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
readonly kind: Schema.Literal<"review">;
|
|
13607
|
-
}>, Schema.Struct<{
|
|
13608
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
13609
|
-
}>, Schema.Struct<{
|
|
13610
|
-
readonly kind: Schema.Literal<"admin">;
|
|
13455
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13456
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13457
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13458
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
13459
|
+
readonly head: Schema.Struct<{
|
|
13460
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13461
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
13462
|
+
readonly branch: Schema.String;
|
|
13463
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13464
|
+
readonly generation: Schema.Int;
|
|
13465
|
+
}>;
|
|
13466
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
13467
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13468
|
+
readonly agent: Schema.Struct<{
|
|
13469
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13470
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13471
|
+
}>;
|
|
13611
13472
|
}>, Schema.Struct<{
|
|
13612
|
-
readonly
|
|
13613
|
-
|
|
13473
|
+
readonly workflow: Schema.Struct<{
|
|
13474
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13475
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13476
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13477
|
+
readonly step: Schema.Struct<{
|
|
13478
|
+
readonly name: Schema.String;
|
|
13479
|
+
readonly count: Schema.Int;
|
|
13480
|
+
readonly attempt: Schema.Int;
|
|
13481
|
+
}>;
|
|
13482
|
+
}>;
|
|
13614
13483
|
}>]>;
|
|
13615
|
-
|
|
13484
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
13485
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
13486
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
13487
|
+
readonly repair: Schema.Boolean;
|
|
13488
|
+
readonly current: Schema.Struct<{
|
|
13489
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
13490
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
13491
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13492
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
13493
|
+
readonly intentRevision: Schema.Int;
|
|
13494
|
+
readonly generation: Schema.Int;
|
|
13495
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
13496
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
13497
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13498
|
+
}>;
|
|
13499
|
+
readonly threadNumber: Schema.Int;
|
|
13500
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
13501
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13502
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13503
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13504
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
13505
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13506
|
+
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
13507
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13508
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13509
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
13510
|
+
readonly head: Schema.Struct<{
|
|
13511
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13512
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
13513
|
+
readonly branch: Schema.String;
|
|
13514
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13515
|
+
readonly generation: Schema.Int;
|
|
13516
|
+
}>;
|
|
13517
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
13518
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13519
|
+
readonly agent: Schema.Struct<{
|
|
13520
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13521
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13522
|
+
}>;
|
|
13523
|
+
}>, Schema.Struct<{
|
|
13524
|
+
readonly workflow: Schema.Struct<{
|
|
13525
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13526
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13527
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13528
|
+
readonly step: Schema.Struct<{
|
|
13529
|
+
readonly name: Schema.String;
|
|
13530
|
+
readonly count: Schema.Int;
|
|
13531
|
+
readonly attempt: Schema.Int;
|
|
13532
|
+
}>;
|
|
13533
|
+
}>;
|
|
13534
|
+
}>]>;
|
|
13535
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
13536
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
13537
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
13538
|
+
readonly repair: Schema.Boolean;
|
|
13539
|
+
readonly current: Schema.Struct<{
|
|
13540
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
13541
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
13542
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13543
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
13544
|
+
readonly intentRevision: Schema.Int;
|
|
13545
|
+
readonly generation: Schema.Int;
|
|
13546
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
13547
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
13548
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13549
|
+
}>;
|
|
13550
|
+
readonly threadNumber: Schema.Int;
|
|
13551
|
+
}>>;
|
|
13552
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13553
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13554
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13555
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13556
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13557
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13558
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13559
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13560
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13561
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13562
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13563
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13564
|
+
readonly kind: Schema.Literal<"project">;
|
|
13565
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13566
|
+
}>, Schema.Struct<{
|
|
13567
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13568
|
+
}>]>;
|
|
13569
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13570
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13571
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13572
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13573
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
13574
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13575
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13576
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13577
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13578
|
+
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13579
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13580
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13581
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13582
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13583
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13584
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13585
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13586
|
+
readonly kind: Schema.Literal<"project">;
|
|
13587
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13588
|
+
}>, Schema.Struct<{
|
|
13589
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13590
|
+
}>]>;
|
|
13591
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13592
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13593
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13594
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13595
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13596
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13597
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13598
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13599
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13600
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
13601
|
+
readonly kind: Schema.Literal<"checks">;
|
|
13602
|
+
}>, Schema.Struct<{
|
|
13603
|
+
readonly kind: Schema.Literal<"check">;
|
|
13604
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13605
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13606
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13607
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13608
|
+
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
13609
|
+
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
13610
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
13611
|
+
}>, Schema.Struct<{
|
|
13612
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13613
|
+
}>]>;
|
|
13614
|
+
}>>;
|
|
13615
|
+
}>, Schema.Struct<{
|
|
13616
|
+
readonly kind: Schema.Literal<"review">;
|
|
13617
|
+
}>, Schema.Struct<{
|
|
13618
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
13619
|
+
}>, Schema.Struct<{
|
|
13620
|
+
readonly kind: Schema.Literal<"admin">;
|
|
13621
|
+
}>, Schema.Struct<{
|
|
13622
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13623
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13624
|
+
}>]>;
|
|
13625
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13616
13626
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13617
13627
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13618
13628
|
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
@@ -17291,15 +17301,7 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17291
17301
|
* person.
|
|
17292
17302
|
*/
|
|
17293
17303
|
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17294
|
-
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17295
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17296
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17297
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17298
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17299
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17300
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17301
|
-
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17302
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17304
|
+
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17303
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">]>;
|
|
17304
17306
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17305
17307
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -17578,342 +17580,78 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17578
17580
|
}>;
|
|
17579
17581
|
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
17580
17582
|
}>;
|
|
17581
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
17583
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
17582
17584
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17583
17585
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17584
|
-
|
|
17585
|
-
|
|
17586
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread"
|
|
17587
|
-
readonly
|
|
17588
|
-
|
|
17589
|
-
|
|
17590
|
-
|
|
17591
|
-
|
|
17592
|
-
|
|
17593
|
-
|
|
17594
|
-
|
|
17595
|
-
readonly
|
|
17596
|
-
readonly
|
|
17597
|
-
readonly
|
|
17598
|
-
|
|
17599
|
-
|
|
17600
|
-
|
|
17601
|
-
|
|
17602
|
-
readonly
|
|
17603
|
-
}
|
|
17604
|
-
|
|
17605
|
-
|
|
17606
|
-
|
|
17586
|
+
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
17587
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17588
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17589
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
|
|
17590
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17591
|
+
readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
17592
|
+
readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
|
|
17593
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
17594
|
+
readonly eventId: Schema.Int;
|
|
17595
|
+
readonly timestamp: Schema.Finite;
|
|
17596
|
+
readonly type: Schema.String;
|
|
17597
|
+
readonly stepName: Schema.optionalKey<Schema.String>;
|
|
17598
|
+
readonly attempt: Schema.optionalKey<Schema.Int>;
|
|
17599
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
17600
|
+
readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
|
|
17601
|
+
readonly eventType: Schema.optionalKey<Schema.String>;
|
|
17602
|
+
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
17603
|
+
readonly name: Schema.String;
|
|
17604
|
+
readonly message: Schema.String;
|
|
17605
|
+
}>>;
|
|
17606
|
+
}>>;
|
|
17607
|
+
readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17608
|
+
readonly kind: Schema.Literal<"session">;
|
|
17609
|
+
readonly id: Schema.String;
|
|
17610
|
+
readonly at: Schema.Finite;
|
|
17611
|
+
readonly sandbox: Schema.String;
|
|
17612
|
+
readonly step: Schema.String;
|
|
17613
|
+
readonly attempt: Schema.Int;
|
|
17614
|
+
readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
|
|
17615
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
17616
|
+
readonly restoreMs: Schema.Finite;
|
|
17607
17617
|
}>, Schema.Struct<{
|
|
17608
|
-
readonly
|
|
17609
|
-
readonly
|
|
17610
|
-
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
readonly
|
|
17616
|
-
readonly
|
|
17617
|
-
readonly
|
|
17618
|
-
|
|
17619
|
-
readonly
|
|
17620
|
-
readonly
|
|
17621
|
-
readonly
|
|
17622
|
-
readonly
|
|
17623
|
-
readonly
|
|
17624
|
-
|
|
17625
|
-
readonly
|
|
17626
|
-
|
|
17627
|
-
|
|
17628
|
-
|
|
17629
|
-
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
|
|
17636
|
-
|
|
17637
|
-
|
|
17638
|
-
|
|
17639
|
-
|
|
17640
|
-
readonly
|
|
17641
|
-
|
|
17642
|
-
|
|
17643
|
-
|
|
17644
|
-
|
|
17645
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17646
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17647
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17648
|
-
}>>;
|
|
17649
|
-
}>>;
|
|
17650
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17651
|
-
readonly requests: Schema.Int;
|
|
17652
|
-
readonly omitted: Schema.Int;
|
|
17653
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17654
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17655
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17656
|
-
readonly step: Schema.String;
|
|
17657
|
-
readonly count: Schema.Int;
|
|
17658
|
-
readonly attempt: Schema.Int;
|
|
17659
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17660
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17661
|
-
readonly recovery: Schema.String;
|
|
17662
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17663
|
-
readonly url: Schema.String;
|
|
17664
|
-
}>>;
|
|
17665
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17666
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17667
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17668
|
-
readonly step: Schema.String;
|
|
17669
|
-
readonly count: Schema.Int;
|
|
17670
|
-
readonly attempt: Schema.Int;
|
|
17671
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17672
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17673
|
-
readonly recovery: Schema.String;
|
|
17674
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17675
|
-
readonly url: Schema.String;
|
|
17676
|
-
}>>;
|
|
17677
|
-
readonly reportedOmitted: Schema.Int;
|
|
17678
|
-
}>>;
|
|
17679
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17680
|
-
readonly browses: Schema.Int;
|
|
17681
|
-
readonly closing: Schema.Int;
|
|
17682
|
-
readonly unconfirmed: Schema.Int;
|
|
17683
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17684
|
-
readonly unresolved: Schema.Int;
|
|
17685
|
-
readonly presumedExpired: Schema.Int;
|
|
17686
|
-
readonly browserMs: Schema.Int;
|
|
17687
|
-
readonly estimated: Schema.Boolean;
|
|
17688
|
-
}>>;
|
|
17689
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17690
|
-
}>, Schema.Struct<{
|
|
17691
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17692
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17693
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17694
|
-
readonly rerun: Schema.Int;
|
|
17695
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17696
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17697
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17698
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17699
|
-
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17700
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17701
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17702
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17703
|
-
readonly kind: Schema.Literal<"person">;
|
|
17704
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17705
|
-
}>, Schema.Struct<{
|
|
17706
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17707
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17708
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17709
|
-
}>, Schema.Struct<{
|
|
17710
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17711
|
-
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")[]>;
|
|
17712
|
-
}>]>;
|
|
17713
|
-
readonly request: Schema.String;
|
|
17714
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17715
|
-
}>>;
|
|
17716
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17717
|
-
readonly attachment: Schema.Struct<{
|
|
17718
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17719
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17720
|
-
}>;
|
|
17721
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17722
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17723
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17724
|
-
}>>;
|
|
17725
|
-
}>>;
|
|
17726
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17727
|
-
readonly requests: Schema.Int;
|
|
17728
|
-
readonly omitted: Schema.Int;
|
|
17729
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17730
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17731
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17732
|
-
readonly step: Schema.String;
|
|
17733
|
-
readonly count: Schema.Int;
|
|
17734
|
-
readonly attempt: Schema.Int;
|
|
17735
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17736
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17737
|
-
readonly recovery: Schema.String;
|
|
17738
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17739
|
-
readonly url: Schema.String;
|
|
17740
|
-
}>>;
|
|
17741
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17742
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17743
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17744
|
-
readonly step: Schema.String;
|
|
17745
|
-
readonly count: Schema.Int;
|
|
17746
|
-
readonly attempt: Schema.Int;
|
|
17747
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17748
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17749
|
-
readonly recovery: Schema.String;
|
|
17750
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17751
|
-
readonly url: Schema.String;
|
|
17752
|
-
}>>;
|
|
17753
|
-
readonly reportedOmitted: Schema.Int;
|
|
17754
|
-
}>>;
|
|
17755
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17756
|
-
readonly browses: Schema.Int;
|
|
17757
|
-
readonly closing: Schema.Int;
|
|
17758
|
-
readonly unconfirmed: Schema.Int;
|
|
17759
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17760
|
-
readonly unresolved: Schema.Int;
|
|
17761
|
-
readonly presumedExpired: Schema.Int;
|
|
17762
|
-
readonly browserMs: Schema.Int;
|
|
17763
|
-
readonly estimated: Schema.Boolean;
|
|
17764
|
-
}>>;
|
|
17765
|
-
readonly state: Schema.Literal<"ended">;
|
|
17766
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17767
|
-
}>, Schema.Struct<{
|
|
17768
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17769
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17770
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17771
|
-
readonly rerun: Schema.Int;
|
|
17772
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17773
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17774
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17775
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17776
|
-
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17777
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17778
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17779
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17780
|
-
readonly kind: Schema.Literal<"person">;
|
|
17781
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17782
|
-
}>, Schema.Struct<{
|
|
17783
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17784
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17785
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17786
|
-
}>, Schema.Struct<{
|
|
17787
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17788
|
-
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")[]>;
|
|
17789
|
-
}>]>;
|
|
17790
|
-
readonly request: Schema.String;
|
|
17791
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17792
|
-
}>>;
|
|
17793
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17794
|
-
readonly attachment: Schema.Struct<{
|
|
17795
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17796
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17797
|
-
}>;
|
|
17798
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17799
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17800
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17801
|
-
}>>;
|
|
17802
|
-
}>>;
|
|
17803
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17804
|
-
readonly requests: Schema.Int;
|
|
17805
|
-
readonly omitted: Schema.Int;
|
|
17806
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17807
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17808
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17809
|
-
readonly step: Schema.String;
|
|
17810
|
-
readonly count: Schema.Int;
|
|
17811
|
-
readonly attempt: Schema.Int;
|
|
17812
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17813
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17814
|
-
readonly recovery: Schema.String;
|
|
17815
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17816
|
-
readonly url: Schema.String;
|
|
17817
|
-
}>>;
|
|
17818
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17819
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17820
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17821
|
-
readonly step: Schema.String;
|
|
17822
|
-
readonly count: Schema.Int;
|
|
17823
|
-
readonly attempt: Schema.Int;
|
|
17824
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17825
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17826
|
-
readonly recovery: Schema.String;
|
|
17827
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17828
|
-
readonly url: Schema.String;
|
|
17829
|
-
}>>;
|
|
17830
|
-
readonly reportedOmitted: Schema.Int;
|
|
17831
|
-
}>>;
|
|
17832
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17833
|
-
readonly browses: Schema.Int;
|
|
17834
|
-
readonly closing: Schema.Int;
|
|
17835
|
-
readonly unconfirmed: Schema.Int;
|
|
17836
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17837
|
-
readonly unresolved: Schema.Int;
|
|
17838
|
-
readonly presumedExpired: Schema.Int;
|
|
17839
|
-
readonly browserMs: Schema.Int;
|
|
17840
|
-
readonly estimated: Schema.Boolean;
|
|
17841
|
-
}>>;
|
|
17842
|
-
readonly state: Schema.Literal<"ended">;
|
|
17843
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17844
|
-
}>]>;
|
|
17845
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
17846
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17847
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17848
|
-
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
17849
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17850
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17851
|
-
readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
|
|
17852
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17853
|
-
readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
17854
|
-
readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
|
|
17855
|
-
readonly events: Schema.$Array<Schema.Struct<{
|
|
17856
|
-
readonly eventId: Schema.Int;
|
|
17857
|
-
readonly timestamp: Schema.Finite;
|
|
17858
|
-
readonly type: Schema.String;
|
|
17859
|
-
readonly stepName: Schema.optionalKey<Schema.String>;
|
|
17860
|
-
readonly attempt: Schema.optionalKey<Schema.Int>;
|
|
17861
|
-
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
17862
|
-
readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
|
|
17863
|
-
readonly eventType: Schema.optionalKey<Schema.String>;
|
|
17864
|
-
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
17865
|
-
readonly name: Schema.String;
|
|
17866
|
-
readonly message: Schema.String;
|
|
17867
|
-
}>>;
|
|
17868
|
-
}>>;
|
|
17869
|
-
readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17870
|
-
readonly kind: Schema.Literal<"session">;
|
|
17871
|
-
readonly id: Schema.String;
|
|
17872
|
-
readonly at: Schema.Finite;
|
|
17873
|
-
readonly sandbox: Schema.String;
|
|
17874
|
-
readonly step: Schema.String;
|
|
17875
|
-
readonly attempt: Schema.Int;
|
|
17876
|
-
readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
|
|
17877
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
17878
|
-
readonly restoreMs: Schema.Finite;
|
|
17879
|
-
}>, Schema.Struct<{
|
|
17880
|
-
readonly kind: Schema.Literal<"command">;
|
|
17881
|
-
readonly id: Schema.String;
|
|
17882
|
-
readonly parent: Schema.String;
|
|
17883
|
-
readonly at: Schema.Finite;
|
|
17884
|
-
readonly argv: Schema.$Array<Schema.String>;
|
|
17885
|
-
readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
|
|
17886
|
-
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
17887
|
-
readonly durationMs: Schema.Finite;
|
|
17888
|
-
readonly stdoutCut: Schema.Boolean;
|
|
17889
|
-
readonly stderrCut: Schema.Boolean;
|
|
17890
|
-
}>, Schema.Struct<{
|
|
17891
|
-
readonly kind: Schema.Literal<"untraced">;
|
|
17892
|
-
readonly id: Schema.String;
|
|
17893
|
-
readonly parent: Schema.String;
|
|
17894
|
-
readonly at: Schema.Finite;
|
|
17895
|
-
readonly commands: Schema.Int;
|
|
17896
|
-
}>, Schema.Struct<{
|
|
17897
|
-
readonly kind: Schema.Literal<"serve">;
|
|
17898
|
-
readonly id: Schema.String;
|
|
17899
|
-
readonly parent: Schema.String;
|
|
17900
|
-
readonly at: Schema.Finite;
|
|
17901
|
-
readonly argv: Schema.$Array<Schema.String>;
|
|
17902
|
-
readonly port: Schema.Int;
|
|
17903
|
-
readonly host: Schema.String;
|
|
17904
|
-
readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
|
|
17905
|
-
readonly readyMs: Schema.optionalKey<Schema.Finite>;
|
|
17906
|
-
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
17907
|
-
readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
|
|
17908
|
-
}>, Schema.Struct<{
|
|
17909
|
-
readonly kind: Schema.Literal<"route">;
|
|
17910
|
-
readonly id: Schema.String;
|
|
17911
|
-
readonly parent: Schema.String;
|
|
17912
|
-
readonly at: Schema.Finite;
|
|
17913
|
-
readonly method: Schema.String;
|
|
17914
|
-
readonly path: Schema.String;
|
|
17915
|
-
readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
|
|
17916
|
-
readonly status: Schema.optionalKey<Schema.Int>;
|
|
17618
|
+
readonly kind: Schema.Literal<"command">;
|
|
17619
|
+
readonly id: Schema.String;
|
|
17620
|
+
readonly parent: Schema.String;
|
|
17621
|
+
readonly at: Schema.Finite;
|
|
17622
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
17623
|
+
readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
|
|
17624
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
17625
|
+
readonly durationMs: Schema.Finite;
|
|
17626
|
+
readonly stdoutCut: Schema.Boolean;
|
|
17627
|
+
readonly stderrCut: Schema.Boolean;
|
|
17628
|
+
}>, Schema.Struct<{
|
|
17629
|
+
readonly kind: Schema.Literal<"untraced">;
|
|
17630
|
+
readonly id: Schema.String;
|
|
17631
|
+
readonly parent: Schema.String;
|
|
17632
|
+
readonly at: Schema.Finite;
|
|
17633
|
+
readonly commands: Schema.Int;
|
|
17634
|
+
}>, Schema.Struct<{
|
|
17635
|
+
readonly kind: Schema.Literal<"serve">;
|
|
17636
|
+
readonly id: Schema.String;
|
|
17637
|
+
readonly parent: Schema.String;
|
|
17638
|
+
readonly at: Schema.Finite;
|
|
17639
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
17640
|
+
readonly port: Schema.Int;
|
|
17641
|
+
readonly host: Schema.String;
|
|
17642
|
+
readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
|
|
17643
|
+
readonly readyMs: Schema.optionalKey<Schema.Finite>;
|
|
17644
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
17645
|
+
readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
|
|
17646
|
+
}>, Schema.Struct<{
|
|
17647
|
+
readonly kind: Schema.Literal<"route">;
|
|
17648
|
+
readonly id: Schema.String;
|
|
17649
|
+
readonly parent: Schema.String;
|
|
17650
|
+
readonly at: Schema.Finite;
|
|
17651
|
+
readonly method: Schema.String;
|
|
17652
|
+
readonly path: Schema.String;
|
|
17653
|
+
readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
|
|
17654
|
+
readonly status: Schema.optionalKey<Schema.Int>;
|
|
17917
17655
|
readonly why: Schema.optionalKey<Schema.String>;
|
|
17918
17656
|
readonly durationMs: Schema.Finite;
|
|
17919
17657
|
readonly bytes: Schema.Int;
|
|
@@ -18042,22 +17780,15 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18042
17780
|
}>>;
|
|
18043
17781
|
}>>;
|
|
18044
17782
|
}>;
|
|
18045
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
17783
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
17784
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18046
17785
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18047
17786
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18048
|
-
}>>,
|
|
18049
|
-
readonly
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
|
|
18053
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18054
|
-
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18055
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18056
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18057
|
-
}>, Schema.Struct<{
|
|
18058
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18059
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18060
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17787
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17788
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17789
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17790
|
+
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17791
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
18061
17792
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18062
17793
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18063
17794
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -18140,8 +17871,287 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18140
17871
|
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18141
17872
|
}>>;
|
|
18142
17873
|
}>>;
|
|
18143
|
-
}>;
|
|
18144
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never
|
|
17874
|
+
}>;
|
|
17875
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17876
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17877
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17878
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17879
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17880
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17881
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17882
|
+
readonly code: Schema.Struct<{
|
|
17883
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17884
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17885
|
+
}>;
|
|
17886
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17887
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17888
|
+
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
17889
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17890
|
+
readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17891
|
+
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17892
|
+
readonly kind: Schema.Literal<"review">;
|
|
17893
|
+
}>, Schema.Struct<{
|
|
17894
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
17895
|
+
}>, Schema.Struct<{
|
|
17896
|
+
readonly kind: Schema.Literal<"admin">;
|
|
17897
|
+
}>, Schema.Struct<{
|
|
17898
|
+
readonly kind: Schema.Literal<"permission">;
|
|
17899
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
17900
|
+
}>]>>>;
|
|
17901
|
+
}>, Schema.Struct<{
|
|
17902
|
+
readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
|
|
17903
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
17904
|
+
}>]>;
|
|
17905
|
+
readonly outputsHash: Schema.String;
|
|
17906
|
+
readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
17907
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17908
|
+
readonly run: Schema.Union<readonly [Schema.Struct<{
|
|
17909
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17910
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17911
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17912
|
+
readonly rerun: Schema.Int;
|
|
17913
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17914
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17915
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17916
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17917
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17918
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17919
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17920
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17921
|
+
readonly kind: Schema.Literal<"person">;
|
|
17922
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17923
|
+
}>, Schema.Struct<{
|
|
17924
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17925
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17926
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17927
|
+
}>, Schema.Struct<{
|
|
17928
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17929
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
17930
|
+
}>]>;
|
|
17931
|
+
readonly request: Schema.String;
|
|
17932
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17933
|
+
}>>;
|
|
17934
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17935
|
+
readonly attachment: Schema.Struct<{
|
|
17936
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17937
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17938
|
+
}>;
|
|
17939
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17940
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17941
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17942
|
+
}>>;
|
|
17943
|
+
}>>;
|
|
17944
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17945
|
+
readonly requests: Schema.Int;
|
|
17946
|
+
readonly omitted: Schema.Int;
|
|
17947
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17948
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17949
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17950
|
+
readonly step: Schema.String;
|
|
17951
|
+
readonly count: Schema.Int;
|
|
17952
|
+
readonly attempt: Schema.Int;
|
|
17953
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17954
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17955
|
+
readonly recovery: Schema.String;
|
|
17956
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17957
|
+
readonly url: Schema.String;
|
|
17958
|
+
}>>;
|
|
17959
|
+
readonly refusalsOmitted: Schema.Int;
|
|
17960
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17961
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17962
|
+
readonly step: Schema.String;
|
|
17963
|
+
readonly count: Schema.Int;
|
|
17964
|
+
readonly attempt: Schema.Int;
|
|
17965
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17966
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17967
|
+
readonly recovery: Schema.String;
|
|
17968
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17969
|
+
readonly url: Schema.String;
|
|
17970
|
+
}>>;
|
|
17971
|
+
readonly reportedOmitted: Schema.Int;
|
|
17972
|
+
}>>;
|
|
17973
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17974
|
+
readonly browses: Schema.Int;
|
|
17975
|
+
readonly closing: Schema.Int;
|
|
17976
|
+
readonly unconfirmed: Schema.Int;
|
|
17977
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17978
|
+
readonly unresolved: Schema.Int;
|
|
17979
|
+
readonly presumedExpired: Schema.Int;
|
|
17980
|
+
readonly browserMs: Schema.Int;
|
|
17981
|
+
readonly estimated: Schema.Boolean;
|
|
17982
|
+
}>>;
|
|
17983
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17984
|
+
}>, Schema.Struct<{
|
|
17985
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17986
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17987
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17988
|
+
readonly rerun: Schema.Int;
|
|
17989
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17990
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17991
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17992
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17993
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17994
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17995
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17996
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17997
|
+
readonly kind: Schema.Literal<"person">;
|
|
17998
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17999
|
+
}>, Schema.Struct<{
|
|
18000
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18001
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18002
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18003
|
+
}>, Schema.Struct<{
|
|
18004
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18005
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
18006
|
+
}>]>;
|
|
18007
|
+
readonly request: Schema.String;
|
|
18008
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
18009
|
+
}>>;
|
|
18010
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
18011
|
+
readonly attachment: Schema.Struct<{
|
|
18012
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18013
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18014
|
+
}>;
|
|
18015
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
18016
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18017
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18018
|
+
}>>;
|
|
18019
|
+
}>>;
|
|
18020
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
18021
|
+
readonly requests: Schema.Int;
|
|
18022
|
+
readonly omitted: Schema.Int;
|
|
18023
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
18024
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
18025
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18026
|
+
readonly step: Schema.String;
|
|
18027
|
+
readonly count: Schema.Int;
|
|
18028
|
+
readonly attempt: Schema.Int;
|
|
18029
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18030
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
18031
|
+
readonly recovery: Schema.String;
|
|
18032
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18033
|
+
readonly url: Schema.String;
|
|
18034
|
+
}>>;
|
|
18035
|
+
readonly refusalsOmitted: Schema.Int;
|
|
18036
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18037
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18038
|
+
readonly step: Schema.String;
|
|
18039
|
+
readonly count: Schema.Int;
|
|
18040
|
+
readonly attempt: Schema.Int;
|
|
18041
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18042
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
18043
|
+
readonly recovery: Schema.String;
|
|
18044
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18045
|
+
readonly url: Schema.String;
|
|
18046
|
+
}>>;
|
|
18047
|
+
readonly reportedOmitted: Schema.Int;
|
|
18048
|
+
}>>;
|
|
18049
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18050
|
+
readonly browses: Schema.Int;
|
|
18051
|
+
readonly closing: Schema.Int;
|
|
18052
|
+
readonly unconfirmed: Schema.Int;
|
|
18053
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18054
|
+
readonly unresolved: Schema.Int;
|
|
18055
|
+
readonly presumedExpired: Schema.Int;
|
|
18056
|
+
readonly browserMs: Schema.Int;
|
|
18057
|
+
readonly estimated: Schema.Boolean;
|
|
18058
|
+
}>>;
|
|
18059
|
+
readonly state: Schema.Literal<"ended">;
|
|
18060
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18061
|
+
}>, Schema.Struct<{
|
|
18062
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18063
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18064
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18065
|
+
readonly rerun: Schema.Int;
|
|
18066
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18067
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18068
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18069
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
18070
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
18071
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
18072
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
18073
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
18074
|
+
readonly kind: Schema.Literal<"person">;
|
|
18075
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18076
|
+
}>, Schema.Struct<{
|
|
18077
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18078
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18079
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18080
|
+
}>, Schema.Struct<{
|
|
18081
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18082
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
18083
|
+
}>]>;
|
|
18084
|
+
readonly request: Schema.String;
|
|
18085
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
18086
|
+
}>>;
|
|
18087
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
18088
|
+
readonly attachment: Schema.Struct<{
|
|
18089
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18090
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18091
|
+
}>;
|
|
18092
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
18093
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18094
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18095
|
+
}>>;
|
|
18096
|
+
}>>;
|
|
18097
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
18098
|
+
readonly requests: Schema.Int;
|
|
18099
|
+
readonly omitted: Schema.Int;
|
|
18100
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
18101
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
18102
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18103
|
+
readonly step: Schema.String;
|
|
18104
|
+
readonly count: Schema.Int;
|
|
18105
|
+
readonly attempt: Schema.Int;
|
|
18106
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18107
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
18108
|
+
readonly recovery: Schema.String;
|
|
18109
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18110
|
+
readonly url: Schema.String;
|
|
18111
|
+
}>>;
|
|
18112
|
+
readonly refusalsOmitted: Schema.Int;
|
|
18113
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18114
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18115
|
+
readonly step: Schema.String;
|
|
18116
|
+
readonly count: Schema.Int;
|
|
18117
|
+
readonly attempt: Schema.Int;
|
|
18118
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18119
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
18120
|
+
readonly recovery: Schema.String;
|
|
18121
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18122
|
+
readonly url: Schema.String;
|
|
18123
|
+
}>>;
|
|
18124
|
+
readonly reportedOmitted: Schema.Int;
|
|
18125
|
+
}>>;
|
|
18126
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18127
|
+
readonly browses: Schema.Int;
|
|
18128
|
+
readonly closing: Schema.Int;
|
|
18129
|
+
readonly unconfirmed: Schema.Int;
|
|
18130
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18131
|
+
readonly unresolved: Schema.Int;
|
|
18132
|
+
readonly presumedExpired: Schema.Int;
|
|
18133
|
+
readonly browserMs: Schema.Int;
|
|
18134
|
+
readonly estimated: Schema.Boolean;
|
|
18135
|
+
}>>;
|
|
18136
|
+
readonly state: Schema.Literal<"ended">;
|
|
18137
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18138
|
+
}>]>;
|
|
18139
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
|
|
18140
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18141
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18142
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18143
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18144
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18145
|
+
}>, Schema.Struct<{
|
|
18146
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18147
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18148
|
+
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18149
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18150
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18151
|
+
}>, Schema.Struct<{
|
|
18152
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18153
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18154
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never>, false>;
|
|
18145
18155
|
/**
|
|
18146
18156
|
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
18147
18157
|
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
@@ -18201,7 +18211,23 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18201
18211
|
* consented, hands the client its code.
|
|
18202
18212
|
*/
|
|
18203
18213
|
declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
|
|
18204
|
-
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18214
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18215
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18216
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18217
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18218
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18219
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18220
|
+
readonly kind: Schema.Literal<"person">;
|
|
18221
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18222
|
+
}>, Schema.Struct<{
|
|
18223
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18224
|
+
readonly agent: Schema.Struct<{
|
|
18225
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18226
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18227
|
+
}>;
|
|
18228
|
+
}>]>;
|
|
18229
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18230
|
+
}>>, 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<{
|
|
18205
18231
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18206
18232
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18207
18233
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18428,23 +18454,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18428
18454
|
}>>;
|
|
18429
18455
|
}>;
|
|
18430
18456
|
readonly pricesAsOf: Schema.String;
|
|
18431
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18432
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18433
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18434
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18435
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18436
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18437
|
-
readonly kind: Schema.Literal<"person">;
|
|
18438
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18439
|
-
}>, Schema.Struct<{
|
|
18440
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18441
|
-
readonly agent: Schema.Struct<{
|
|
18442
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18443
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18444
|
-
}>;
|
|
18445
|
-
}>]>;
|
|
18446
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18447
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18457
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18448
18458
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18449
18459
|
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18450
18460
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18460,7 +18470,24 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18460
18470
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
18461
18471
|
*/
|
|
18462
18472
|
declare class OrganizationsGroup extends OrganizationsGroup_base {}
|
|
18463
|
-
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18473
|
+
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18474
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18475
|
+
member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18476
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18477
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18478
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18479
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18480
|
+
readonly kind: Schema.Literal<"person">;
|
|
18481
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18482
|
+
}>, Schema.Struct<{
|
|
18483
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18484
|
+
readonly agent: Schema.Struct<{
|
|
18485
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18486
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18487
|
+
}>;
|
|
18488
|
+
}>]>;
|
|
18489
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18490
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
18464
18491
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18465
18492
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18466
18493
|
cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
@@ -18500,27 +18527,17 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18500
18527
|
}>;
|
|
18501
18528
|
}>]>;
|
|
18502
18529
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18503
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never
|
|
18530
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18531
|
+
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
18532
|
+
declare class MembersGroup extends MembersGroup_base {}
|
|
18533
|
+
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
|
|
18504
18534
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18505
|
-
|
|
18535
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18506
18536
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18507
18537
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18508
18538
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18509
|
-
readonly
|
|
18510
|
-
|
|
18511
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18512
|
-
}>, Schema.Struct<{
|
|
18513
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18514
|
-
readonly agent: Schema.Struct<{
|
|
18515
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18516
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18517
|
-
}>;
|
|
18518
|
-
}>]>;
|
|
18519
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18520
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18521
|
-
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
18522
|
-
declare class MembersGroup extends MembersGroup_base {}
|
|
18523
|
-
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18539
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18540
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18524
18541
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18525
18542
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18526
18543
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
@@ -18570,14 +18587,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18570
18587
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18571
18588
|
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18572
18589
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18573
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18574
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18575
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18576
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18577
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18578
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18579
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18580
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18590
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18581
18591
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18582
18592
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18583
18593
|
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">]>;
|
|
@@ -18598,56 +18608,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18598
18608
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
18599
18609
|
*/
|
|
18600
18610
|
declare class InvitationsGroup extends InvitationsGroup_base {}
|
|
18601
|
-
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18602
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18603
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18604
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18605
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18606
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18607
|
-
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18608
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18609
|
-
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18610
|
-
readonly kind: Schema.Literal<"owner">;
|
|
18611
|
-
}>, Schema.Struct<{
|
|
18612
|
-
readonly kind: Schema.Literal<"project">;
|
|
18613
|
-
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18614
|
-
}>, Schema.Struct<{
|
|
18615
|
-
readonly kind: Schema.Literal<"thread">;
|
|
18616
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18617
|
-
}>, Schema.Struct<{
|
|
18618
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18619
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18620
|
-
}>]>;
|
|
18621
|
-
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18622
|
-
readonly kind: Schema.Literal<"person">;
|
|
18623
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18624
|
-
}>, Schema.Struct<{
|
|
18625
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18626
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18627
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18628
|
-
}>, Schema.Struct<{
|
|
18629
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18630
|
-
readonly agent: Schema.Struct<{
|
|
18631
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18632
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18633
|
-
}>;
|
|
18634
|
-
}>]>;
|
|
18635
|
-
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18636
|
-
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18637
|
-
readonly kind: Schema.Literal<"person">;
|
|
18638
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18639
|
-
}>, Schema.Struct<{
|
|
18640
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18641
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18642
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18643
|
-
}>, Schema.Struct<{
|
|
18644
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18645
|
-
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
18646
|
-
}>]>;
|
|
18647
|
-
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18648
|
-
}>>;
|
|
18649
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18650
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18611
|
+
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18651
18612
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18652
18613
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18653
18614
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18703,7 +18664,56 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18703
18664
|
}>;
|
|
18704
18665
|
}>]>;
|
|
18705
18666
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18706
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18667
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18668
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18669
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18670
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18671
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
18672
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18673
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18674
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18675
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18676
|
+
readonly kind: Schema.Literal<"owner">;
|
|
18677
|
+
}>, Schema.Struct<{
|
|
18678
|
+
readonly kind: Schema.Literal<"project">;
|
|
18679
|
+
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18680
|
+
}>, Schema.Struct<{
|
|
18681
|
+
readonly kind: Schema.Literal<"thread">;
|
|
18682
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18683
|
+
}>, Schema.Struct<{
|
|
18684
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18685
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18686
|
+
}>]>;
|
|
18687
|
+
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18688
|
+
readonly kind: Schema.Literal<"person">;
|
|
18689
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18690
|
+
}>, Schema.Struct<{
|
|
18691
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18692
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18693
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18694
|
+
}>, Schema.Struct<{
|
|
18695
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18696
|
+
readonly agent: Schema.Struct<{
|
|
18697
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18698
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18699
|
+
}>;
|
|
18700
|
+
}>]>;
|
|
18701
|
+
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18702
|
+
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18703
|
+
readonly kind: Schema.Literal<"person">;
|
|
18704
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18705
|
+
}>, Schema.Struct<{
|
|
18706
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18707
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18708
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18709
|
+
}>, Schema.Struct<{
|
|
18710
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18711
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
18712
|
+
}>]>;
|
|
18713
|
+
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18714
|
+
}>>;
|
|
18715
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18716
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"set", "PUT", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18707
18717
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18708
18718
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18709
18719
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18796,11 +18806,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18796
18806
|
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18797
18807
|
}>>;
|
|
18798
18808
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18799
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18809
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
18800
18810
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18801
|
-
|
|
18802
|
-
|
|
18803
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18811
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18812
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18804
18813
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18805
18814
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18806
18815
|
readonly agent: Schema.Struct<{
|
|
@@ -18810,7 +18819,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18810
18819
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18811
18820
|
readonly generation: Schema.Int;
|
|
18812
18821
|
readonly turnedOff: Schema.Boolean;
|
|
18813
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18822
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/owners/:owner/agents/:agent/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
18814
18823
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18815
18824
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18816
18825
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18823,10 +18832,11 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18823
18832
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18824
18833
|
readonly generation: Schema.Int;
|
|
18825
18834
|
readonly turnedOff: Schema.Boolean;
|
|
18826
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18835
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18827
18836
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18828
|
-
|
|
18829
|
-
|
|
18837
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18838
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18839
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18830
18840
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18831
18841
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18832
18842
|
readonly agent: Schema.Struct<{
|
|
@@ -18836,7 +18846,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18836
18846
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18837
18847
|
readonly generation: Schema.Int;
|
|
18838
18848
|
readonly turnedOff: Schema.Boolean;
|
|
18839
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18849
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18840
18850
|
/**
|
|
18841
18851
|
* An owner's agents (layer 1): an organization's members, or a person themselves, read them and
|
|
18842
18852
|
* turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
|
|
@@ -18844,15 +18854,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18844
18854
|
* its machines' host grants by the agent's ID.
|
|
18845
18855
|
*/
|
|
18846
18856
|
declare class AgentsGroup extends AgentsGroup_base {}
|
|
18847
|
-
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18857
|
+
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
18848
18858
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18849
|
-
|
|
18850
|
-
|
|
18851
|
-
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">]>;
|
|
18852
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18853
|
-
}>;
|
|
18854
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18855
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18859
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18860
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18856
18861
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18857
18862
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18858
18863
|
readonly agent: Schema.Struct<{
|
|
@@ -18865,10 +18870,15 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18865
18870
|
}>;
|
|
18866
18871
|
readonly generation: Schema.Int;
|
|
18867
18872
|
readonly authorized: Schema.Boolean;
|
|
18868
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18873
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18869
18874
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18870
|
-
|
|
18871
|
-
|
|
18875
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18876
|
+
readonly agent: Schema.Struct<{
|
|
18877
|
+
readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18878
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18879
|
+
}>;
|
|
18880
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18881
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18872
18882
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18873
18883
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18874
18884
|
readonly agent: Schema.Struct<{
|
|
@@ -18881,7 +18891,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18881
18891
|
}>;
|
|
18882
18892
|
readonly generation: Schema.Int;
|
|
18883
18893
|
readonly authorized: Schema.Boolean;
|
|
18884
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18894
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18885
18895
|
/**
|
|
18886
18896
|
* A member's own agent working in an organization (layer 1): its person authorizes an attachment
|
|
18887
18897
|
* of it there, by its credential's ID, or takes that back. The Worker checks the attachment is
|
|
@@ -18889,7 +18899,23 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18889
18899
|
* decides. People only, by approval.
|
|
18890
18900
|
*/
|
|
18891
18901
|
declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
|
|
18892
|
-
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18902
|
+
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18903
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18904
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18905
|
+
readonly agent: Schema.Struct<{
|
|
18906
|
+
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">]>;
|
|
18907
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18908
|
+
}>;
|
|
18909
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18910
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18911
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18912
|
+
readonly agent: Schema.Struct<{
|
|
18913
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18914
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18915
|
+
}>;
|
|
18916
|
+
readonly targetGeneration: Schema.Int;
|
|
18917
|
+
readonly turnedOff: Schema.Boolean;
|
|
18918
|
+
}>>, 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<{
|
|
18893
18919
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18894
18920
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18895
18921
|
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
@@ -18932,22 +18958,6 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
18932
18958
|
}>;
|
|
18933
18959
|
readonly targetGeneration: Schema.Int;
|
|
18934
18960
|
readonly turnedOff: Schema.Boolean;
|
|
18935
|
-
}>>, 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<{
|
|
18936
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18937
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18938
|
-
readonly agent: Schema.Struct<{
|
|
18939
|
-
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">]>;
|
|
18940
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18941
|
-
}>;
|
|
18942
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18943
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18944
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18945
|
-
readonly agent: Schema.Struct<{
|
|
18946
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18947
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18948
|
-
}>;
|
|
18949
|
-
readonly targetGeneration: Schema.Int;
|
|
18950
|
-
readonly turnedOff: Schema.Boolean;
|
|
18951
18961
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18952
18962
|
/**
|
|
18953
18963
|
* Agents of other owners an organization's admin turns off there (layer 1), such as a member's
|
|
@@ -29197,4 +29207,4 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
29197
29207
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
29198
29208
|
//#endregion
|
|
29199
29209
|
export { MirrorEntry as $, WorkflowAskClosed as $t, ConnectionCallAnswer as A, WorkflowPreview as An, ScopeAction as At, EventRunInput as B, commandLine as Bn, StatementView as Bt, ConnectAgent as C, WorkflowOwn as Cn, SandboxExec as Ct, ConnectOptions as D, WorkflowPasskeyRead as Dn, SandboxPush as Dt, ConnectFolderOption as E, WorkflowPasskeyEnded as En, SandboxOpenAnswer as Et, ConsentAsked as F, WorkflowStartState as Fn, SignInDestination as Ft, GetIssueInput as G, isRef0Path as Gn, TrackThread as Gt, ForkAnswer as H, encodeSecret as Hn, ThreadStage as Ht, ConsentClient as I, WorkflowText as In, SignedIn as It, LiveTicket as J, repoNameKey as Jn, Welcome as Jt, Harness as K, liveSocketUrl as Kn, TypedApprovalCode as Kt, ConsentProject as L, WorkflowThreadStart as Ln, SocketUrl as Lt, ConnectionKind as M, WorkflowPullRequestOpen as Mn, SentryOrg as Mt, ConnectionName as N, WorkflowRequestRefusal as Nn, SentryRegion as Nt, ConnectableAgent as O, WorkflowPasskeyState as On, SandboxPushAnswer as Ot, ConnectionView as P, WorkflowStartEnded as Pn, SentryToken as Pt, MirrorChoice as Q, WorkflowAsk as Qt, CredentialView as R, WorkflowTrigger as Rn, StartActor as Rt, ClientGranted as S, WorkflowFilters as Sn, RequestFolder as St, ConnectFolderChoices as T, WorkflowPasskeyAsked as Tn, SandboxOpen as Tt, ForkCreate as U, hookTokenPrefix as Un, TrackClosed as Ut, FoldersConnected as V, connectEndpoint as Vn, ThreadId as Vt, GateOwn as W, hookUrl as Wn, TrackSession as Wt, LiveTrackName as X, WorkflowActionAnswer as Xt, LiveTicketRequest as Y, surfaceOf as Yn, WorkflowAction as Yt, MachineConnected as Z, WorkflowAnswerer as Zt, CheckOwn as _, WorkflowCheckStatesAnswer as _n, ReadEvent as _t, Api as a, WorkflowCallRefused as an, OwnerTrackMessage as at, CheckTreeEntry as b, WorkflowConnections as bn, RepoUrl as bt, ApprovalId as c, WorkflowCheckRefusal as cn, PasskeyCreationOptions as ct, ApprovalView as d, WorkflowCheckResultsAnswer as dn, PasskeyRequestOptions as dt, WorkflowCall as en, MirrorView as et, AttachmentFailed as f, WorkflowCheckRun as fn, PreviewEcho as ft, CheckOn as g, WorkflowCheckStates as gn, RanOf as gt, ChangeAuthor as h, WorkflowCheckStartAnswer as hn, ProjectTrackMessage as ht, AgentView as i, WorkflowCallRefusal as in, OwnerThreadView as it, ConnectionChanged as j, WorkflowPullRequestAnswer as jn, SecretHash as jt, ConnectionCall as k, WorkflowPermissions as kn, SandboxSize as kt, ApprovalPreview as l, WorkflowCheckRefused as ln, PasskeyFrom as lt, Authorization as m, WorkflowCheckStart as mn, ProjectName as mt, AgentPermissionChoice as n, WorkflowCallEnded as nn, OwnerName as nt, ApiOrigin as o, WorkflowCalledState as on, PasskeyAsserted as ot, AttachmentRequestView as p, WorkflowCheckRunEnded as pn, PreviewUnavailable as pt, ImportFailure as q, projectParts as qn, VersionFile as qt, AgentPermissionSetting as r, WorkflowCallInput as rn, OwnerThreadPage as rt, ApprovalAnswer as s, WorkflowCalledStateAnswer as sn, PasskeyCreated as st, AgentHandle as t, WorkflowCallAnswer as tn, OwnerId as tt, ApprovalState as u, WorkflowCheckResults as un, PasskeyRefusal as ut, CheckRunError as v, WorkflowCheckWhere as vn, Ref0Owned as vt, ConnectChosen as w, WorkflowPasskeyAsk as wn, SandboxExecAnswer as wt, ClientAccess as x, WorkflowEvent as xn, RepoView as xt, CheckRunParams as y, WorkflowComment as yn, RepoName as yt, EndpointName as z, WrittenProject as zn, StartRun as zt };
|
|
29200
|
-
//# sourceMappingURL=index-
|
|
29210
|
+
//# sourceMappingURL=index-Db86z11q.d.mts.map
|