@ref0/sdk 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browse-SaxCrclF.d.mts → browse-Dios11m0.d.mts} +2 -2
- package/dist/browser.d.mts +1 -1
- package/dist/client.d.mts +60 -6
- package/dist/client.mjs +725 -417
- package/dist/{index-BSPC_jQm.d.mts → index-DRFaIKvW.d.mts} +1343 -1104
- package/dist/index.d.mts +2 -2
- package/package.json +1 -1
|
@@ -604,6 +604,22 @@ declare const WorkflowHasNoVersion_base: Schema.Class<WorkflowHasNoVersion, Sche
|
|
|
604
604
|
* was past the reader's bounds, or ref0 couldn't read `main` for a day.
|
|
605
605
|
*/
|
|
606
606
|
declare class WorkflowHasNoVersion extends WorkflowHasNoVersion_base {}
|
|
607
|
+
declare const RunNotFound_base: Schema.Class<RunNotFound, Schema.TaggedStruct<"RunNotFound", {
|
|
608
|
+
readonly run: Schema.String;
|
|
609
|
+
readonly nextStep: Schema.String;
|
|
610
|
+
}>, import("effect/Cause").YieldableError>;
|
|
611
|
+
/** No run with this ID that the caller may read, here or where it named. */
|
|
612
|
+
declare class RunNotFound extends RunNotFound_base {}
|
|
613
|
+
declare const InvalidCursor_base: Schema.Class<InvalidCursor, Schema.TaggedStruct<"InvalidCursor", {
|
|
614
|
+
readonly nextStep: Schema.String;
|
|
615
|
+
}>, import("effect/Cause").YieldableError>;
|
|
616
|
+
/** The cursor isn't one a page of this run's trace gave. */
|
|
617
|
+
declare class InvalidCursor extends InvalidCursor_base {}
|
|
618
|
+
declare const TraceUnavailable_base: Schema.Class<TraceUnavailable, Schema.TaggedStruct<"TraceUnavailable", {
|
|
619
|
+
readonly nextStep: Schema.String;
|
|
620
|
+
}>, import("effect/Cause").YieldableError>;
|
|
621
|
+
/** ref0 couldn't read the trace's chunks now: nothing was skipped, so ask again. */
|
|
622
|
+
declare class TraceUnavailable extends TraceUnavailable_base {}
|
|
607
623
|
declare const RequestChanged_base: Schema.Class<RequestChanged, Schema.TaggedStruct<"RequestChanged", {
|
|
608
624
|
readonly nextStep: Schema.String;
|
|
609
625
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -665,22 +681,6 @@ declare const SignerNotRevoked_base: Schema.Class<SignerNotRevoked, Schema.Tagge
|
|
|
665
681
|
}>, import("effect/Cause").YieldableError>;
|
|
666
682
|
/** A restore of a signer nothing revoked from answering that check: nothing changed. */
|
|
667
683
|
declare class SignerNotRevoked extends SignerNotRevoked_base {}
|
|
668
|
-
declare const RunNotFound_base: Schema.Class<RunNotFound, Schema.TaggedStruct<"RunNotFound", {
|
|
669
|
-
readonly run: Schema.String;
|
|
670
|
-
readonly nextStep: Schema.String;
|
|
671
|
-
}>, import("effect/Cause").YieldableError>;
|
|
672
|
-
/** No run with this ID that the caller may read, here or where it named. */
|
|
673
|
-
declare class RunNotFound extends RunNotFound_base {}
|
|
674
|
-
declare const InvalidCursor_base: Schema.Class<InvalidCursor, Schema.TaggedStruct<"InvalidCursor", {
|
|
675
|
-
readonly nextStep: Schema.String;
|
|
676
|
-
}>, import("effect/Cause").YieldableError>;
|
|
677
|
-
/** The cursor isn't one a page of this run's trace gave. */
|
|
678
|
-
declare class InvalidCursor extends InvalidCursor_base {}
|
|
679
|
-
declare const TraceUnavailable_base: Schema.Class<TraceUnavailable, Schema.TaggedStruct<"TraceUnavailable", {
|
|
680
|
-
readonly nextStep: Schema.String;
|
|
681
|
-
}>, import("effect/Cause").YieldableError>;
|
|
682
|
-
/** ref0 couldn't read the trace's chunks now: nothing was skipped, so ask again. */
|
|
683
|
-
declare class TraceUnavailable extends TraceUnavailable_base {}
|
|
684
684
|
//#endregion
|
|
685
685
|
//#region src/approval-previews.d.ts
|
|
686
686
|
/**
|
|
@@ -1428,6 +1428,58 @@ declare const IdentityTokenNotReady_base: Schema.Class<IdentityTokenNotReady, Sc
|
|
|
1428
1428
|
*/
|
|
1429
1429
|
declare class IdentityTokenNotReady extends IdentityTokenNotReady_base {}
|
|
1430
1430
|
//#endregion
|
|
1431
|
+
//#region src/proofs.d.ts
|
|
1432
|
+
/**
|
|
1433
|
+
* Proofs of possession: a credential bound to a key, and the proof that comes with each request
|
|
1434
|
+
* made with it, RFC 9449's DPoP. A bound credential, a host grant or a session's token, names its
|
|
1435
|
+
* key's thumbprint as `cnf`, which only ref0's own state says, never a caller. Each request sends
|
|
1436
|
+
* the token as `Authorization: DPoP <token>` and one `DPoP` header: a compact JWS, signed with
|
|
1437
|
+
* ES256 by that key, over the request's method and URL, when it was made, and the token's hash.
|
|
1438
|
+
* There's no server nonce and no replay store: a captured token and proof can be used again on
|
|
1439
|
+
* the same method and path while the proof's time is in the window, and a token alone can't.
|
|
1440
|
+
*/
|
|
1441
|
+
/** A P-256 key's RFC 7638 thumbprint: SHA-256 over its required members, in base64url. */
|
|
1442
|
+
declare const KeyThumbprint: Schema.brand<Schema.String, "KeyThumbprint">;
|
|
1443
|
+
type KeyThumbprint = typeof KeyThumbprint.Type;
|
|
1444
|
+
/**
|
|
1445
|
+
* ref0's origin as a proof names it: HTTPS, or plain HTTP only on loopback, for development. A
|
|
1446
|
+
* client sends a proof, and ref0 takes one, for no other.
|
|
1447
|
+
*/
|
|
1448
|
+
declare const ProofOrigin: Schema.brand<Schema.brand<Schema.String, "ApiOrigin">, "ProofOrigin">;
|
|
1449
|
+
type ProofOrigin = typeof ProofOrigin.Type;
|
|
1450
|
+
/**
|
|
1451
|
+
* A P-256 public key as a JWK: exactly `kty`, `crv`, `x` and `y`, so never a private part, a
|
|
1452
|
+
* key reference or another algorithm's key. Whether its point is on the curve is for Web Crypto
|
|
1453
|
+
* to say, when it imports it.
|
|
1454
|
+
*/
|
|
1455
|
+
declare const PublicJwk: Schema.decodeTo<Schema.Struct<{
|
|
1456
|
+
readonly kty: Schema.Literal<"EC">;
|
|
1457
|
+
readonly crv: Schema.Literal<"P-256">;
|
|
1458
|
+
readonly x: Schema.String;
|
|
1459
|
+
readonly y: Schema.String;
|
|
1460
|
+
}>, Schema.$Record<Schema.String, Schema.Unknown>, never, never>;
|
|
1461
|
+
type PublicJwk = typeof PublicJwk.Type;
|
|
1462
|
+
declare const InvalidDpopProof_base: Schema.Class<InvalidDpopProof, Schema.TaggedStruct<"InvalidDpopProof", {
|
|
1463
|
+
readonly error: Schema.Literal<"invalid_dpop_proof">;
|
|
1464
|
+
readonly nextStep: Schema.String;
|
|
1465
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1466
|
+
/**
|
|
1467
|
+
* A bound credential came with a proof that's missing, malformed, stale, from another key, or
|
|
1468
|
+
* for another request, or came as a bearer token, or a proof came with no `DPoP` credential to
|
|
1469
|
+
* go with it. ref0 answers it before any handler runs, so nothing was done. A machine whose clock
|
|
1470
|
+
* is off signs again once, by the answer's `Date`. Also what a machine answers itself when the key
|
|
1471
|
+
* its credential is bound to is gone, without sending anything.
|
|
1472
|
+
*/
|
|
1473
|
+
declare class InvalidDpopProof extends InvalidDpopProof_base {}
|
|
1474
|
+
declare const KeyStoreUnavailable_base: Schema.Class<KeyStoreUnavailable, Schema.TaggedStruct<"KeyStoreUnavailable", {
|
|
1475
|
+
readonly nextStep: Schema.String;
|
|
1476
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1477
|
+
/**
|
|
1478
|
+
* The key store a request's proof is signed in didn't sign it: locked, unavailable or out of
|
|
1479
|
+
* time. Nothing was sent. A client's own, never an answer of ref0's.
|
|
1480
|
+
*/
|
|
1481
|
+
declare class KeyStoreUnavailable extends KeyStoreUnavailable_base {}
|
|
1482
|
+
//#endregion
|
|
1431
1483
|
//#region src/ids.d.ts
|
|
1432
1484
|
/** A person. A person is an owner, so this is also their owner ID. */
|
|
1433
1485
|
declare const PersonId: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
@@ -2084,6 +2136,9 @@ declare const Caller_base: Context.ServiceClass<Caller, "ref0/contracts/Caller",
|
|
|
2084
2136
|
readonly target?: number;
|
|
2085
2137
|
};
|
|
2086
2138
|
readonly expiresAt?: import("effect/DateTime").Utc;
|
|
2139
|
+
readonly cnf?: {
|
|
2140
|
+
readonly jkt: string & import("effect/Brand").Brand<"KeyThumbprint">;
|
|
2141
|
+
};
|
|
2087
2142
|
readonly scopes: readonly {
|
|
2088
2143
|
readonly kind: "agent" | "owner" | "person" | "project" | "repo" | "session" | "thread";
|
|
2089
2144
|
readonly id: string;
|
|
@@ -2136,20 +2191,24 @@ declare class Caller extends Caller_base {}
|
|
|
2136
2191
|
declare const Authorization_base: HttpApiMiddleware.ServiceClass<Authorization, "ref0/contracts/Authorization", {
|
|
2137
2192
|
requires: never;
|
|
2138
2193
|
provides: Caller;
|
|
2139
|
-
error: readonly [typeof Unauthenticated, typeof SessionHasEnded, typeof AuthorityUnavailable];
|
|
2140
|
-
clientError:
|
|
2194
|
+
error: readonly [typeof Unauthenticated, typeof InvalidDpopProof, typeof SessionHasEnded, typeof AuthorityUnavailable];
|
|
2195
|
+
clientError: KeyStoreUnavailable;
|
|
2141
2196
|
requiredForClient: true;
|
|
2142
2197
|
security: {
|
|
2143
2198
|
readonly bearer: HttpApiSecurity.Http;
|
|
2199
|
+
readonly dpop: HttpApiSecurity.Http;
|
|
2144
2200
|
readonly browserSession: HttpApiSecurity.ApiKey;
|
|
2145
2201
|
};
|
|
2146
2202
|
}, HttpApiMiddleware.HttpApiMiddlewareSecurity<{
|
|
2147
2203
|
readonly bearer: HttpApiSecurity.Http;
|
|
2204
|
+
readonly dpop: HttpApiSecurity.Http;
|
|
2148
2205
|
readonly browserSession: HttpApiSecurity.ApiKey;
|
|
2149
|
-
}, Caller, readonly [typeof Unauthenticated, typeof SessionHasEnded, typeof AuthorityUnavailable], never>>;
|
|
2206
|
+
}, Caller, readonly [typeof Unauthenticated, typeof InvalidDpopProof, typeof SessionHasEnded, typeof AuthorityUnavailable], never>>;
|
|
2150
2207
|
/**
|
|
2151
|
-
* Every endpoint's credential, checked before its handler runs: a bearer token,
|
|
2152
|
-
*
|
|
2208
|
+
* Every endpoint's credential, checked before its handler runs: a bearer token, a token bound to
|
|
2209
|
+
* a key with a proof that key signed (`Authorization: DPoP` and one `DPoP` header), or a browser
|
|
2210
|
+
* session's cookie. A request with a cookie and a token is refused before it gets here. A client
|
|
2211
|
+
* that signs proofs may fail before it sends anything, when its key store doesn't sign.
|
|
2153
2212
|
*/
|
|
2154
2213
|
declare class Authorization extends Authorization_base {}
|
|
2155
2214
|
declare const SignedInPerson_base: Context.ServiceClass<SignedInPerson, "ref0/contracts/SignedInPerson", {
|
|
@@ -2212,6 +2271,27 @@ declare const MachineNameRefusal_base: HttpApiMiddleware.ServiceClass<MachineNam
|
|
|
2212
2271
|
* what to change. Any other part that fails its contract is answered with Effect's empty 400.
|
|
2213
2272
|
*/
|
|
2214
2273
|
declare class MachineNameRefusal extends MachineNameRefusal_base {}
|
|
2274
|
+
declare const ProvedKey_base: Context.ServiceClass<ProvedKey, "ref0/contracts/ProvedKey", {
|
|
2275
|
+
readonly signedBy: Option.Option<KeyThumbprint>;
|
|
2276
|
+
}>;
|
|
2277
|
+
/** The key a request with no credential was signed by, when it came with a proof: its thumbprint. */
|
|
2278
|
+
declare class ProvedKey extends ProvedKey_base {}
|
|
2279
|
+
declare const KeyProof_base: HttpApiMiddleware.ServiceClass<KeyProof, "ref0/contracts/KeyProof", {
|
|
2280
|
+
requires: never;
|
|
2281
|
+
provides: ProvedKey;
|
|
2282
|
+
error: typeof InvalidDpopProof;
|
|
2283
|
+
clientError: KeyStoreUnavailable;
|
|
2284
|
+
requiredForClient: true;
|
|
2285
|
+
security: never;
|
|
2286
|
+
}, HttpApiMiddleware.HttpApiMiddleware<ProvedKey, typeof InvalidDpopProof, never>>;
|
|
2287
|
+
/**
|
|
2288
|
+
* A request with no credential, signed by a key it names, such as a machine's ask to connect: one
|
|
2289
|
+
* `DPoP` header, a proof with no `ath`, since there's no token, checked before the request is
|
|
2290
|
+
* read, which says the key that signed it; or no proof, which says none. Every client supplies
|
|
2291
|
+
* it, as it does `Authorization`, so its key store's failure, before anything is sent, is typed:
|
|
2292
|
+
* one with a key store signs, and every other sends no proof.
|
|
2293
|
+
*/
|
|
2294
|
+
declare class KeyProof extends KeyProof_base {}
|
|
2215
2295
|
declare const IdentityAudienceRefusal_base: HttpApiMiddleware.ServiceClass<IdentityAudienceRefusal, "ref0/contracts/IdentityAudienceRefusal", {
|
|
2216
2296
|
requires: never;
|
|
2217
2297
|
provides: never;
|
|
@@ -2258,7 +2338,29 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
2258
2338
|
readonly backedUp: Schema.Boolean;
|
|
2259
2339
|
}>>;
|
|
2260
2340
|
readonly approvesHere: Schema.Boolean;
|
|
2261
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2341
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2342
|
+
readonly id: Schema.String;
|
|
2343
|
+
readonly rawId: Schema.String;
|
|
2344
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2345
|
+
readonly response: Schema.Struct<{
|
|
2346
|
+
readonly clientDataJSON: Schema.String;
|
|
2347
|
+
readonly attestationObject: Schema.String;
|
|
2348
|
+
readonly authenticatorData: Schema.optional<Schema.String>;
|
|
2349
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2350
|
+
readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
|
|
2351
|
+
readonly publicKey: Schema.optional<Schema.String>;
|
|
2352
|
+
}>;
|
|
2353
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2354
|
+
readonly clientExtensionResults: Schema.Struct<{
|
|
2355
|
+
readonly credProps: Schema.optionalKey<Schema.Struct<{
|
|
2356
|
+
readonly rk: Schema.optionalKey<Schema.Boolean>;
|
|
2357
|
+
}>>;
|
|
2358
|
+
}>;
|
|
2359
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2360
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2361
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2362
|
+
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2363
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2262
2364
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2263
2365
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2264
2366
|
readonly rp: Schema.Struct<{
|
|
@@ -2289,28 +2391,6 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
2289
2391
|
}>>;
|
|
2290
2392
|
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2291
2393
|
readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
|
|
2292
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2293
|
-
readonly id: Schema.String;
|
|
2294
|
-
readonly rawId: Schema.String;
|
|
2295
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2296
|
-
readonly response: Schema.Struct<{
|
|
2297
|
-
readonly clientDataJSON: Schema.String;
|
|
2298
|
-
readonly attestationObject: Schema.String;
|
|
2299
|
-
readonly authenticatorData: Schema.optional<Schema.String>;
|
|
2300
|
-
readonly transports: Schema.optional<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2301
|
-
readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
|
|
2302
|
-
readonly publicKey: Schema.optional<Schema.String>;
|
|
2303
|
-
}>;
|
|
2304
|
-
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2305
|
-
readonly clientExtensionResults: Schema.Struct<{
|
|
2306
|
-
readonly credProps: Schema.optionalKey<Schema.Struct<{
|
|
2307
|
-
readonly rk: Schema.optionalKey<Schema.Boolean>;
|
|
2308
|
-
}>>;
|
|
2309
|
-
}>;
|
|
2310
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2311
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2312
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2313
|
-
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2314
2394
|
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never>, false>;
|
|
2315
2395
|
/**
|
|
2316
2396
|
* A person's passkeys: listing them, and enrolling the first, which signing in asks for straight
|
|
@@ -2354,19 +2434,7 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
|
|
|
2354
2434
|
* what it came to with the approval's secret. Its person answers on their own page, by its code.
|
|
2355
2435
|
*/
|
|
2356
2436
|
declare class TerminalApprovalsGroup extends TerminalApprovalsGroup_base {}
|
|
2357
|
-
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2358
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2359
|
-
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2360
|
-
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2361
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2362
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2363
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2364
|
-
readonly credential: Schema.Struct<{
|
|
2365
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2366
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2367
|
-
}>;
|
|
2368
|
-
readonly childrenRevoked: Schema.Int;
|
|
2369
|
-
}>>, 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<{
|
|
2437
|
+
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
|
|
2370
2438
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2371
2439
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2372
2440
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -2383,7 +2451,19 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
|
|
|
2383
2451
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
2384
2452
|
}>>;
|
|
2385
2453
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2386
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never
|
|
2454
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
2455
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2456
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2457
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2458
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2459
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2460
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2461
|
+
readonly credential: Schema.Struct<{
|
|
2462
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2463
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2464
|
+
}>;
|
|
2465
|
+
readonly childrenRevoked: Schema.Int;
|
|
2466
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never>, false>;
|
|
2387
2467
|
/**
|
|
2388
2468
|
* An agent's live attachments, by approval: listed, every one to an admin and their own to anyone
|
|
2389
2469
|
* else; and one of the caller's own disconnected, revoking its credential, which the Worker checks
|
|
@@ -2397,6 +2477,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2397
2477
|
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2398
2478
|
readonly state: Schema.Literal<"waiting">;
|
|
2399
2479
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2480
|
+
readonly confirmBy: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2400
2481
|
}>, Schema.Struct<{
|
|
2401
2482
|
readonly state: Schema.Literal<"connected">;
|
|
2402
2483
|
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
@@ -2442,6 +2523,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2442
2523
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2443
2524
|
readonly state: Schema.Literal<"waiting">;
|
|
2444
2525
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2526
|
+
readonly confirmBy: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2445
2527
|
}>, Schema.Struct<{
|
|
2446
2528
|
readonly state: Schema.Literal<"connected">;
|
|
2447
2529
|
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
@@ -2492,6 +2574,12 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2492
2574
|
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"request", "POST", "/v1/attachments/requests", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2493
2575
|
readonly machine: Schema.brand<Schema.TemplateLiteral<readonly ["machine_", Schema.String]>, "MachineId">;
|
|
2494
2576
|
readonly machineName: Schema.String;
|
|
2577
|
+
readonly publicKey: Schema.optionalKey<Schema.decodeTo<Schema.Struct<{
|
|
2578
|
+
readonly kty: Schema.Literal<"EC">;
|
|
2579
|
+
readonly crv: Schema.Literal<"P-256">;
|
|
2580
|
+
readonly x: Schema.String;
|
|
2581
|
+
readonly y: Schema.String;
|
|
2582
|
+
}>, Schema.$Record<Schema.String, Schema.Unknown>, never, never>>;
|
|
2495
2583
|
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2496
2584
|
readonly path: Schema.String;
|
|
2497
2585
|
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
@@ -2510,11 +2598,12 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2510
2598
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2511
2599
|
readonly code: Schema.String;
|
|
2512
2600
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2513
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof CommandRefused | typeof SlowDown>, MachineNameRefusal, never>, false>;
|
|
2601
|
+
}>>, Schema.toCodecJson<typeof InvalidDpopProof | typeof NotPermitted | typeof AuthorityUnavailable | typeof CommandRefused | typeof SlowDown>, KeyProof | MachineNameRefusal, never>, false>;
|
|
2514
2602
|
/**
|
|
2515
2603
|
* Connecting a machine, the machine's side: asking, with no credential, to connect to one owner's
|
|
2516
|
-
* agent, whose terminal shows the code their person types
|
|
2517
|
-
* confirming it saved the grant, or aborting, with its collecting
|
|
2604
|
+
* agent, whose terminal shows the code their person types, signed by the machine key it names;
|
|
2605
|
+
* then collecting what came of it, confirming it saved the grant, or aborting, with its collecting
|
|
2606
|
+
* secret, which needs no proof: a grant it collects is bound to the key its ask named.
|
|
2518
2607
|
*/
|
|
2519
2608
|
declare class MachineAttachmentsGroup extends MachineAttachmentsGroup_base {}
|
|
2520
2609
|
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/approvals", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -2901,7 +2990,80 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2901
2990
|
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2902
2991
|
readonly state: Schema.Literal<"ran">;
|
|
2903
2992
|
readonly endpoint: Schema.String;
|
|
2904
|
-
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2993
|
+
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
2994
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2995
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2996
|
+
readonly answer: Schema.Literal<"yes">;
|
|
2997
|
+
readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
|
|
2998
|
+
readonly assertion: Schema.Struct<{
|
|
2999
|
+
readonly id: Schema.String;
|
|
3000
|
+
readonly rawId: Schema.String;
|
|
3001
|
+
readonly type: Schema.Literal<"public-key">;
|
|
3002
|
+
readonly response: Schema.Struct<{
|
|
3003
|
+
readonly clientDataJSON: Schema.String;
|
|
3004
|
+
readonly authenticatorData: Schema.String;
|
|
3005
|
+
readonly signature: Schema.String;
|
|
3006
|
+
readonly userHandle: Schema.optional<Schema.String>;
|
|
3007
|
+
}>;
|
|
3008
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
3009
|
+
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
3010
|
+
}>;
|
|
3011
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
3012
|
+
readonly preview: Schema.optionalKey<Schema.Struct<{
|
|
3013
|
+
readonly kind: Schema.Literals<readonly ["workflow", "attached workflow"]>;
|
|
3014
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
3015
|
+
}>>;
|
|
3016
|
+
readonly statement: Schema.optionalKey<Schema.Struct<{
|
|
3017
|
+
readonly hash: Schema.String;
|
|
3018
|
+
}>>;
|
|
3019
|
+
}>, Schema.Struct<{
|
|
3020
|
+
readonly answer: Schema.Literal<"no">;
|
|
3021
|
+
readonly permission: Schema.Literal<"deny">;
|
|
3022
|
+
readonly assertion: Schema.Struct<{
|
|
3023
|
+
readonly id: Schema.String;
|
|
3024
|
+
readonly rawId: Schema.String;
|
|
3025
|
+
readonly type: Schema.Literal<"public-key">;
|
|
3026
|
+
readonly response: Schema.Struct<{
|
|
3027
|
+
readonly clientDataJSON: Schema.String;
|
|
3028
|
+
readonly authenticatorData: Schema.String;
|
|
3029
|
+
readonly signature: Schema.String;
|
|
3030
|
+
readonly userHandle: Schema.optional<Schema.String>;
|
|
3031
|
+
}>;
|
|
3032
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
3033
|
+
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
3034
|
+
}>;
|
|
3035
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
3036
|
+
}>, Schema.Struct<{
|
|
3037
|
+
readonly answer: Schema.Literal<"no">;
|
|
3038
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
3039
|
+
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3040
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3041
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
3042
|
+
readonly state: Schema.Literal<"approved">;
|
|
3043
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3044
|
+
readonly answerCode: Schema.String;
|
|
3045
|
+
}>, Schema.Struct<{
|
|
3046
|
+
readonly status: Schema.Int;
|
|
3047
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3048
|
+
readonly state: Schema.Literal<"ran">;
|
|
3049
|
+
readonly endpoint: Schema.String;
|
|
3050
|
+
readonly answerCode: Schema.String;
|
|
3051
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3052
|
+
readonly state: Schema.Literal<"waiting">;
|
|
3053
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
3054
|
+
}>, Schema.Struct<{
|
|
3055
|
+
readonly state: Schema.Literal<"approved">;
|
|
3056
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3057
|
+
}>, Schema.Struct<{
|
|
3058
|
+
readonly state: Schema.Literal<"refused">;
|
|
3059
|
+
}>, Schema.Struct<{
|
|
3060
|
+
readonly state: Schema.Literal<"expired">;
|
|
3061
|
+
}>, Schema.Struct<{
|
|
3062
|
+
readonly status: Schema.Int;
|
|
3063
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3064
|
+
readonly state: Schema.Literal<"ran">;
|
|
3065
|
+
readonly endpoint: Schema.String;
|
|
3066
|
+
}>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2905
3067
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2906
3068
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2907
3069
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
@@ -3223,121 +3385,89 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
3223
3385
|
readonly port: Schema.Int;
|
|
3224
3386
|
readonly state: Schema.String;
|
|
3225
3387
|
}>>;
|
|
3226
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
readonly
|
|
3242
|
-
readonly
|
|
3388
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never>, false>;
|
|
3389
|
+
/**
|
|
3390
|
+
* A person's side of approvals, in an approving browser: what waits for them, finding a
|
|
3391
|
+
* terminal's request or a machine's attachment request by its code, and answering one, with
|
|
3392
|
+
* their passkey for a yes. And where an ask stands, for whoever asked: an agent, from the session
|
|
3393
|
+
* it asked in, or a page, from the browser session it asked in, which follows a yes until its
|
|
3394
|
+
* command has run.
|
|
3395
|
+
*/
|
|
3396
|
+
declare class ApprovalsGroup extends ApprovalsGroup_base {}
|
|
3397
|
+
declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/me", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3398
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
3399
|
+
readonly kind: Schema.Literal<"person">;
|
|
3400
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3401
|
+
}>, Schema.Struct<{
|
|
3402
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3403
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
3404
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3405
|
+
}>, Schema.Struct<{
|
|
3406
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
3407
|
+
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")[]>;
|
|
3408
|
+
}>]>;
|
|
3409
|
+
readonly credential: Schema.Struct<{
|
|
3410
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3411
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
3243
3412
|
}>;
|
|
3244
|
-
readonly
|
|
3245
|
-
readonly
|
|
3246
|
-
readonly
|
|
3247
|
-
readonly
|
|
3413
|
+
readonly kind: Schema.Literals<readonly ["browser session", "host grant", "client grant", "session", "step-up", "git"]>;
|
|
3414
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
3415
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3416
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
3248
3417
|
}>>;
|
|
3249
|
-
readonly
|
|
3250
|
-
readonly
|
|
3418
|
+
readonly session: Schema.optionalKey<Schema.Struct<{
|
|
3419
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
3420
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
3421
|
+
readonly depth: Schema.Int;
|
|
3251
3422
|
}>>;
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
readonly permission: Schema.Literal<"deny">;
|
|
3255
|
-
readonly assertion: Schema.Struct<{
|
|
3256
|
-
readonly id: Schema.String;
|
|
3257
|
-
readonly rawId: Schema.String;
|
|
3258
|
-
readonly type: Schema.Literal<"public-key">;
|
|
3259
|
-
readonly response: Schema.Struct<{
|
|
3260
|
-
readonly clientDataJSON: Schema.String;
|
|
3261
|
-
readonly authenticatorData: Schema.String;
|
|
3262
|
-
readonly signature: Schema.String;
|
|
3263
|
-
readonly userHandle: Schema.optional<Schema.String>;
|
|
3264
|
-
}>;
|
|
3265
|
-
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
3266
|
-
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
3267
|
-
}>;
|
|
3268
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
3269
|
-
}>, Schema.Struct<{
|
|
3270
|
-
readonly answer: Schema.Literal<"no">;
|
|
3271
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
3272
|
-
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3273
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3274
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
3275
|
-
readonly state: Schema.Literal<"approved">;
|
|
3276
|
-
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3277
|
-
readonly answerCode: Schema.String;
|
|
3278
|
-
}>, Schema.Struct<{
|
|
3279
|
-
readonly status: Schema.Int;
|
|
3280
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3281
|
-
readonly state: Schema.Literal<"ran">;
|
|
3282
|
-
readonly endpoint: Schema.String;
|
|
3283
|
-
readonly answerCode: Schema.String;
|
|
3284
|
-
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3285
|
-
readonly state: Schema.Literal<"waiting">;
|
|
3286
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
3287
|
-
}>, Schema.Struct<{
|
|
3288
|
-
readonly state: Schema.Literal<"approved">;
|
|
3289
|
-
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3290
|
-
}>, Schema.Struct<{
|
|
3291
|
-
readonly state: Schema.Literal<"refused">;
|
|
3292
|
-
}>, Schema.Struct<{
|
|
3293
|
-
readonly state: Schema.Literal<"expired">;
|
|
3294
|
-
}>, Schema.Struct<{
|
|
3295
|
-
readonly status: Schema.Int;
|
|
3296
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3297
|
-
readonly state: Schema.Literal<"ran">;
|
|
3298
|
-
readonly endpoint: Schema.String;
|
|
3299
|
-
}>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never>, false>;
|
|
3300
|
-
/**
|
|
3301
|
-
* A person's side of approvals, in an approving browser: what waits for them, finding a
|
|
3302
|
-
* terminal's request or a machine's attachment request by its code, and answering one, with
|
|
3303
|
-
* their passkey for a yes. And where an ask stands, for whoever asked: an agent, from the session
|
|
3304
|
-
* it asked in, or a page, from the browser session it asked in, which follows a yes until its
|
|
3305
|
-
* command has run.
|
|
3306
|
-
*/
|
|
3307
|
-
declare class ApprovalsGroup extends ApprovalsGroup_base {}
|
|
3308
|
-
declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/me", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3309
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
3310
|
-
readonly kind: Schema.Literal<"person">;
|
|
3311
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3312
|
-
}>, Schema.Struct<{
|
|
3313
|
-
readonly kind: Schema.Literal<"agent">;
|
|
3314
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
3315
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3316
|
-
}>, Schema.Struct<{
|
|
3317
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
3318
|
-
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")[]>;
|
|
3319
|
-
}>]>;
|
|
3320
|
-
readonly credential: Schema.Struct<{
|
|
3321
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3322
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
3323
|
-
}>;
|
|
3324
|
-
readonly kind: Schema.Literals<readonly ["browser session", "host grant", "client grant", "session", "step-up", "git"]>;
|
|
3325
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
3326
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3327
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
3328
|
-
}>>;
|
|
3329
|
-
readonly session: Schema.optionalKey<Schema.Struct<{
|
|
3330
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
3331
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
3332
|
-
readonly depth: Schema.Int;
|
|
3333
|
-
}>>;
|
|
3334
|
-
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
3335
|
-
readonly kind: Schema.Literals<readonly ["person", "owner", "project", "repo", "thread", "session", "agent"]>;
|
|
3423
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
3424
|
+
readonly kind: Schema.Literals<readonly ["person", "owner", "project", "repo", "thread", "session", "agent"]>;
|
|
3336
3425
|
readonly id: Schema.String;
|
|
3337
3426
|
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"]>;
|
|
3338
3427
|
}>>;
|
|
3339
3428
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3340
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3429
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3430
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3431
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3432
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3433
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3434
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3435
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
3436
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3437
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3438
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
3439
|
+
readonly quantity: Schema.Finite;
|
|
3440
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3441
|
+
}>>;
|
|
3442
|
+
}>>;
|
|
3443
|
+
readonly work: Schema.$Array<Schema.Struct<{
|
|
3444
|
+
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
3445
|
+
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
3446
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3447
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3448
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
3449
|
+
readonly quantity: Schema.Finite;
|
|
3450
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3451
|
+
}>>;
|
|
3452
|
+
}>>;
|
|
3453
|
+
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
3454
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3455
|
+
readonly counts: Schema.$Array<Schema.Struct<{
|
|
3456
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3457
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3458
|
+
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
3459
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3460
|
+
readonly bytes: Schema.Int;
|
|
3461
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3462
|
+
}>>;
|
|
3463
|
+
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3464
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3465
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3466
|
+
readonly counts: Schema.Int;
|
|
3467
|
+
readonly bytes: Schema.Int;
|
|
3468
|
+
}>>>;
|
|
3469
|
+
}>>;
|
|
3470
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3341
3471
|
readonly mirrors: Schema.$Array<Schema.Struct<{
|
|
3342
3472
|
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3343
3473
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
@@ -3368,10 +3498,6 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3368
3498
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3369
3499
|
}>]>;
|
|
3370
3500
|
}>>;
|
|
3371
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3372
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3373
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3374
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3375
3501
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3376
3502
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3377
3503
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -3404,53 +3530,16 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3404
3530
|
readonly harness: Schema.String;
|
|
3405
3531
|
}>>;
|
|
3406
3532
|
readonly pricesAsOf: Schema.String;
|
|
3407
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3408
|
-
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3409
|
-
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3410
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3411
|
-
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3412
|
-
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3413
|
-
readonly days: Schema.$Array<Schema.Struct<{
|
|
3414
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3415
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3416
|
-
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
3417
|
-
readonly quantity: Schema.Finite;
|
|
3418
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3419
|
-
}>>;
|
|
3420
|
-
}>>;
|
|
3421
|
-
readonly work: Schema.$Array<Schema.Struct<{
|
|
3422
|
-
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
3423
|
-
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
3424
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3425
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3426
|
-
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
3427
|
-
readonly quantity: Schema.Finite;
|
|
3428
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3429
|
-
}>>;
|
|
3430
|
-
}>>;
|
|
3431
|
-
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
3432
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3433
|
-
readonly counts: Schema.$Array<Schema.Struct<{
|
|
3434
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3435
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3436
|
-
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
3437
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3438
|
-
readonly bytes: Schema.Int;
|
|
3439
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3440
|
-
}>>;
|
|
3441
|
-
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3442
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3443
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3444
|
-
readonly counts: Schema.Int;
|
|
3445
|
-
readonly bytes: Schema.Int;
|
|
3446
|
-
}>>>;
|
|
3447
|
-
}>>;
|
|
3448
3533
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"identityToken", "POST", "/v1/me/identity-token", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3449
3534
|
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
3450
3535
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3451
3536
|
readonly token: Schema.brand<Schema.String, "IdentityToken">;
|
|
3452
3537
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3453
|
-
}>>, Schema.toCodecJson<typeof
|
|
3538
|
+
}>>, Schema.toCodecJson<typeof IdentityAudienceRefused | typeof IdentityTokenNotReady | typeof NotPermitted | typeof AuthorityUnavailable | typeof SessionHasEnded | typeof SlowDown>, Authorization | IdentityAudienceRefusal, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3539
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3540
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3541
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3542
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
3454
3543
|
declare class MeGroup extends MeGroup_base {}
|
|
3455
3544
|
declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
|
|
3456
3545
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
@@ -5420,6 +5509,27 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5420
5509
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
5421
5510
|
}>>;
|
|
5422
5511
|
readonly more: Schema.Int;
|
|
5512
|
+
readonly toolTime: Schema.Union<readonly [Schema.Struct<{
|
|
5513
|
+
readonly known: Schema.Literal<"timed">;
|
|
5514
|
+
readonly totalMs: Schema.Int;
|
|
5515
|
+
readonly longest: Schema.optionalKey<Schema.Struct<{
|
|
5516
|
+
readonly tool: Schema.String;
|
|
5517
|
+
readonly ms: Schema.Int;
|
|
5518
|
+
}>>;
|
|
5519
|
+
}>, Schema.Struct<{
|
|
5520
|
+
readonly known: Schema.Literal<"unknown">;
|
|
5521
|
+
}>]>;
|
|
5522
|
+
readonly context: Schema.Union<readonly [Schema.Struct<{
|
|
5523
|
+
readonly known: Schema.Literal<"read">;
|
|
5524
|
+
readonly peak: Schema.optionalKey<Schema.Int>;
|
|
5525
|
+
readonly compactions: Schema.$Array<Schema.Struct<{
|
|
5526
|
+
readonly trigger: Schema.optionalKey<Schema.Literals<readonly ["auto", "manual"]>>;
|
|
5527
|
+
readonly afterMs: Schema.optionalKey<Schema.Int>;
|
|
5528
|
+
}>>;
|
|
5529
|
+
}>, Schema.Struct<{
|
|
5530
|
+
readonly known: Schema.Literal<"unknown">;
|
|
5531
|
+
}>]>;
|
|
5532
|
+
readonly moreSubagents: Schema.Int;
|
|
5423
5533
|
readonly tokens: Schema.Union<readonly [Schema.Struct<{
|
|
5424
5534
|
readonly known: Schema.Literal<"read">;
|
|
5425
5535
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -5432,6 +5542,21 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5432
5542
|
}>, Schema.Struct<{
|
|
5433
5543
|
readonly known: Schema.Literal<"unknown">;
|
|
5434
5544
|
}>]>;
|
|
5545
|
+
readonly subagents: Schema.$Array<Schema.Struct<{
|
|
5546
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5547
|
+
readonly tokens: Schema.Union<readonly [Schema.Struct<{
|
|
5548
|
+
readonly known: Schema.Literal<"read">;
|
|
5549
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
5550
|
+
readonly model: Schema.String;
|
|
5551
|
+
readonly input: Schema.Int;
|
|
5552
|
+
readonly output: Schema.Int;
|
|
5553
|
+
readonly cacheWrite: Schema.Int;
|
|
5554
|
+
readonly cacheRead: Schema.Int;
|
|
5555
|
+
}>>;
|
|
5556
|
+
}>, Schema.Struct<{
|
|
5557
|
+
readonly known: Schema.Literal<"unknown">;
|
|
5558
|
+
}>]>;
|
|
5559
|
+
}>>;
|
|
5435
5560
|
readonly stoppedAfterMs: Schema.optionalKey<Schema.Int>;
|
|
5436
5561
|
}>;
|
|
5437
5562
|
}>>;
|
|
@@ -5452,6 +5577,27 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5452
5577
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
5453
5578
|
}>>;
|
|
5454
5579
|
readonly more: Schema.Int;
|
|
5580
|
+
readonly toolTime: Schema.Union<readonly [Schema.Struct<{
|
|
5581
|
+
readonly known: Schema.Literal<"timed">;
|
|
5582
|
+
readonly totalMs: Schema.Int;
|
|
5583
|
+
readonly longest: Schema.optionalKey<Schema.Struct<{
|
|
5584
|
+
readonly tool: Schema.String;
|
|
5585
|
+
readonly ms: Schema.Int;
|
|
5586
|
+
}>>;
|
|
5587
|
+
}>, Schema.Struct<{
|
|
5588
|
+
readonly known: Schema.Literal<"unknown">;
|
|
5589
|
+
}>]>;
|
|
5590
|
+
readonly context: Schema.Union<readonly [Schema.Struct<{
|
|
5591
|
+
readonly known: Schema.Literal<"read">;
|
|
5592
|
+
readonly peak: Schema.optionalKey<Schema.Int>;
|
|
5593
|
+
readonly compactions: Schema.$Array<Schema.Struct<{
|
|
5594
|
+
readonly trigger: Schema.optionalKey<Schema.Literals<readonly ["auto", "manual"]>>;
|
|
5595
|
+
readonly afterMs: Schema.optionalKey<Schema.Int>;
|
|
5596
|
+
}>>;
|
|
5597
|
+
}>, Schema.Struct<{
|
|
5598
|
+
readonly known: Schema.Literal<"unknown">;
|
|
5599
|
+
}>]>;
|
|
5600
|
+
readonly moreSubagents: Schema.Int;
|
|
5455
5601
|
readonly tokens: Schema.Union<readonly [Schema.Struct<{
|
|
5456
5602
|
readonly known: Schema.Literal<"read">;
|
|
5457
5603
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -5464,6 +5610,21 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5464
5610
|
}>, Schema.Struct<{
|
|
5465
5611
|
readonly known: Schema.Literal<"unknown">;
|
|
5466
5612
|
}>]>;
|
|
5613
|
+
readonly subagents: Schema.$Array<Schema.Struct<{
|
|
5614
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5615
|
+
readonly tokens: Schema.Union<readonly [Schema.Struct<{
|
|
5616
|
+
readonly known: Schema.Literal<"read">;
|
|
5617
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
5618
|
+
readonly model: Schema.String;
|
|
5619
|
+
readonly input: Schema.Int;
|
|
5620
|
+
readonly output: Schema.Int;
|
|
5621
|
+
readonly cacheWrite: Schema.Int;
|
|
5622
|
+
readonly cacheRead: Schema.Int;
|
|
5623
|
+
}>>;
|
|
5624
|
+
}>, Schema.Struct<{
|
|
5625
|
+
readonly known: Schema.Literal<"unknown">;
|
|
5626
|
+
}>]>;
|
|
5627
|
+
}>>;
|
|
5467
5628
|
readonly stoppedAfterMs: Schema.optionalKey<Schema.Int>;
|
|
5468
5629
|
}>;
|
|
5469
5630
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -6347,6 +6508,9 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
|
|
|
6347
6508
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
6348
6509
|
}>>;
|
|
6349
6510
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
6511
|
+
readonly cnf: Schema.optionalKey<Schema.Struct<{
|
|
6512
|
+
readonly jkt: Schema.brand<Schema.String, "KeyThumbprint">;
|
|
6513
|
+
}>>;
|
|
6350
6514
|
}>;
|
|
6351
6515
|
} & {
|
|
6352
6516
|
readonly seq: Schema.Int;
|
|
@@ -11326,6 +11490,27 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
|
|
|
11326
11490
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
11327
11491
|
}>>;
|
|
11328
11492
|
readonly more: Schema.Int;
|
|
11493
|
+
readonly toolTime: Schema.Union<readonly [Schema.Struct<{
|
|
11494
|
+
readonly known: Schema.Literal<"timed">;
|
|
11495
|
+
readonly totalMs: Schema.Int;
|
|
11496
|
+
readonly longest: Schema.optionalKey<Schema.Struct<{
|
|
11497
|
+
readonly tool: Schema.String;
|
|
11498
|
+
readonly ms: Schema.Int;
|
|
11499
|
+
}>>;
|
|
11500
|
+
}>, Schema.Struct<{
|
|
11501
|
+
readonly known: Schema.Literal<"unknown">;
|
|
11502
|
+
}>]>;
|
|
11503
|
+
readonly context: Schema.Union<readonly [Schema.Struct<{
|
|
11504
|
+
readonly known: Schema.Literal<"read">;
|
|
11505
|
+
readonly peak: Schema.optionalKey<Schema.Int>;
|
|
11506
|
+
readonly compactions: Schema.$Array<Schema.Struct<{
|
|
11507
|
+
readonly trigger: Schema.optionalKey<Schema.Literals<readonly ["auto", "manual"]>>;
|
|
11508
|
+
readonly afterMs: Schema.optionalKey<Schema.Int>;
|
|
11509
|
+
}>>;
|
|
11510
|
+
}>, Schema.Struct<{
|
|
11511
|
+
readonly known: Schema.Literal<"unknown">;
|
|
11512
|
+
}>]>;
|
|
11513
|
+
readonly moreSubagents: Schema.Int;
|
|
11329
11514
|
readonly tokens: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
11330
11515
|
readonly known: Schema.Literal<"read">;
|
|
11331
11516
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -11338,6 +11523,21 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
|
|
|
11338
11523
|
}>, Schema.Struct<{
|
|
11339
11524
|
readonly known: Schema.Literal<"unknown">;
|
|
11340
11525
|
}>]>>;
|
|
11526
|
+
readonly subagents: Schema.$Array<Schema.Struct<{
|
|
11527
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
11528
|
+
readonly tokens: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
11529
|
+
readonly known: Schema.Literal<"read">;
|
|
11530
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
11531
|
+
readonly model: Schema.String;
|
|
11532
|
+
readonly input: Schema.Int;
|
|
11533
|
+
readonly output: Schema.Int;
|
|
11534
|
+
readonly cacheWrite: Schema.Int;
|
|
11535
|
+
readonly cacheRead: Schema.Int;
|
|
11536
|
+
}>>;
|
|
11537
|
+
}>, Schema.Struct<{
|
|
11538
|
+
readonly known: Schema.Literal<"unknown">;
|
|
11539
|
+
}>]>>;
|
|
11540
|
+
}>>;
|
|
11341
11541
|
}>>;
|
|
11342
11542
|
readonly tasks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11343
11543
|
readonly text: Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">;
|
|
@@ -13000,34 +13200,220 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
|
|
|
13000
13200
|
* the stage as filters. A project the reader can't see answers as one that isn't there.
|
|
13001
13201
|
*/
|
|
13002
13202
|
declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
|
|
13003
|
-
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"
|
|
13203
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13004
13204
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13011
|
-
}>;
|
|
13012
|
-
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13013
|
-
readonly revision: Schema.Int;
|
|
13014
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13015
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13016
|
-
}>>;
|
|
13017
|
-
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13205
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13206
|
+
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13207
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
13208
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13209
|
+
readonly repos: Schema.$Array<Schema.Struct<{
|
|
13018
13210
|
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13019
|
-
readonly
|
|
13020
|
-
readonly
|
|
13021
|
-
readonly
|
|
13022
|
-
|
|
13023
|
-
|
|
13211
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13212
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13213
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13214
|
+
readonly kind: Schema.Literal<"project">;
|
|
13215
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13216
|
+
}>, Schema.Struct<{
|
|
13217
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13218
|
+
}>]>;
|
|
13219
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13220
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13221
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13222
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13024
13223
|
}>>;
|
|
13025
|
-
|
|
13224
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13225
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13026
13226
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13027
13227
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13028
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13029
13228
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13030
|
-
readonly
|
|
13229
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13230
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13231
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13232
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13233
|
+
readonly kind: Schema.Literal<"project">;
|
|
13234
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13235
|
+
}>, Schema.Struct<{
|
|
13236
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13237
|
+
}>]>;
|
|
13238
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13239
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13240
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13241
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13242
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
|
|
13243
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13244
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13245
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13246
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13247
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13248
|
+
line: Schema.Int;
|
|
13249
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13250
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13251
|
+
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13252
|
+
readonly line: Schema.Int;
|
|
13253
|
+
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13254
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13255
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13256
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13257
|
+
readonly threadNumber: Schema.Int;
|
|
13258
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13259
|
+
readonly turn: Schema.Int;
|
|
13260
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13261
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
13262
|
+
}>>;
|
|
13263
|
+
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13264
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13265
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13266
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13267
|
+
readonly step: Schema.Struct<{
|
|
13268
|
+
readonly name: Schema.String;
|
|
13269
|
+
readonly count: Schema.Int;
|
|
13270
|
+
readonly attempt: Schema.Int;
|
|
13271
|
+
}>;
|
|
13272
|
+
}>>;
|
|
13273
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13274
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13275
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13276
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13277
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13278
|
+
readonly version: Schema.Int;
|
|
13279
|
+
readonly baseline: Schema.Struct<{
|
|
13280
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13281
|
+
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
13282
|
+
readonly sequence: Schema.Int;
|
|
13283
|
+
readonly depth: Schema.Int;
|
|
13284
|
+
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13285
|
+
}>;
|
|
13286
|
+
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
13287
|
+
readonly sequence: Schema.Int;
|
|
13288
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13289
|
+
}>>;
|
|
13290
|
+
readonly packs: Schema.$Array<Schema.Struct<{
|
|
13291
|
+
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
13292
|
+
readonly key: Schema.String;
|
|
13293
|
+
readonly sha256: Schema.String;
|
|
13294
|
+
readonly bytes: Schema.Int;
|
|
13295
|
+
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
13296
|
+
readonly first: Schema.Int;
|
|
13297
|
+
readonly last: Schema.Int;
|
|
13298
|
+
}>>;
|
|
13299
|
+
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
13300
|
+
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
13301
|
+
readonly roots: Schema.$Array<Schema.Struct<{
|
|
13302
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13303
|
+
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13304
|
+
}>>;
|
|
13305
|
+
}>>;
|
|
13306
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13307
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13308
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13309
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13310
|
+
key: Schema.String;
|
|
13311
|
+
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13312
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13313
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13314
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13315
|
+
readonly kind: Schema.Literal<"none">;
|
|
13316
|
+
}>, Schema.Struct<{
|
|
13317
|
+
readonly kind: Schema.Literal<"github">;
|
|
13318
|
+
readonly branch: Schema.String;
|
|
13319
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13320
|
+
readonly state: Schema.Literal<"on">;
|
|
13321
|
+
}>, Schema.Struct<{
|
|
13322
|
+
readonly state: Schema.Literal<"paused">;
|
|
13323
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13324
|
+
readonly why: Schema.Literal<"diverged">;
|
|
13325
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13326
|
+
}>, Schema.Struct<{
|
|
13327
|
+
readonly why: Schema.Literal<"refused">;
|
|
13328
|
+
readonly said: Schema.String;
|
|
13329
|
+
}>, Schema.Struct<{
|
|
13330
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
13331
|
+
}>]>;
|
|
13332
|
+
}>, Schema.Struct<{
|
|
13333
|
+
readonly state: Schema.Literal<"off">;
|
|
13334
|
+
}>]>;
|
|
13335
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13336
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13337
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13338
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13339
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13340
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13341
|
+
readonly active: Schema.Struct<{
|
|
13342
|
+
readonly revision: Schema.Int;
|
|
13343
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13344
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13345
|
+
}>;
|
|
13346
|
+
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13347
|
+
readonly revision: Schema.Int;
|
|
13348
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13349
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13350
|
+
}>>;
|
|
13351
|
+
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13352
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13353
|
+
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13354
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13355
|
+
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
13356
|
+
readonly gate: Schema.Int;
|
|
13357
|
+
readonly since: Schema.Int;
|
|
13358
|
+
}>>;
|
|
13359
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
13360
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13361
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13362
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13363
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
13364
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13365
|
+
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
13366
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13367
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13368
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
13369
|
+
readonly head: Schema.Struct<{
|
|
13370
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13371
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
13372
|
+
readonly branch: Schema.String;
|
|
13373
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13374
|
+
readonly generation: Schema.Int;
|
|
13375
|
+
}>;
|
|
13376
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
13377
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13378
|
+
readonly agent: Schema.Struct<{
|
|
13379
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13380
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13381
|
+
}>;
|
|
13382
|
+
}>, Schema.Struct<{
|
|
13383
|
+
readonly workflow: Schema.Struct<{
|
|
13384
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13385
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13386
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13387
|
+
readonly step: Schema.Struct<{
|
|
13388
|
+
readonly name: Schema.String;
|
|
13389
|
+
readonly count: Schema.Int;
|
|
13390
|
+
readonly attempt: Schema.Int;
|
|
13391
|
+
}>;
|
|
13392
|
+
}>;
|
|
13393
|
+
}>]>;
|
|
13394
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
13395
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
13396
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
13397
|
+
readonly repair: Schema.Boolean;
|
|
13398
|
+
readonly current: Schema.Struct<{
|
|
13399
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
13400
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
13401
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13402
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
13403
|
+
readonly intentRevision: Schema.Int;
|
|
13404
|
+
readonly generation: Schema.Int;
|
|
13405
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
13406
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
13407
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13408
|
+
}>;
|
|
13409
|
+
readonly threadNumber: Schema.Int;
|
|
13410
|
+
}>>;
|
|
13411
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13412
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13413
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13414
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13415
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13416
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13031
13417
|
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13032
13418
|
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
13033
13419
|
readonly head: Schema.Struct<{
|
|
@@ -13071,24 +13457,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13071
13457
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13072
13458
|
}>;
|
|
13073
13459
|
readonly threadNumber: Schema.Int;
|
|
13074
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13075
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13076
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13077
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13078
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13079
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13080
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13081
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13082
|
-
readonly kind: Schema.Literal<"project">;
|
|
13083
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13084
|
-
}>, Schema.Struct<{
|
|
13085
|
-
readonly kind: Schema.Literal<"owner">;
|
|
13086
|
-
}>]>;
|
|
13087
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13088
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13089
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13090
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13091
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13460
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13092
13461
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13093
13462
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13094
13463
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -13851,66 +14220,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13851
14220
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13852
14221
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13853
14222
|
}>]>>>;
|
|
13854
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13855
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13856
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13857
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13858
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13859
|
-
readonly version: Schema.Int;
|
|
13860
|
-
readonly baseline: Schema.Struct<{
|
|
13861
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13862
|
-
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
13863
|
-
readonly sequence: Schema.Int;
|
|
13864
|
-
readonly depth: Schema.Int;
|
|
13865
|
-
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13866
|
-
}>;
|
|
13867
|
-
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
13868
|
-
readonly sequence: Schema.Int;
|
|
13869
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13870
|
-
}>>;
|
|
13871
|
-
readonly packs: Schema.$Array<Schema.Struct<{
|
|
13872
|
-
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
13873
|
-
readonly key: Schema.String;
|
|
13874
|
-
readonly sha256: Schema.String;
|
|
13875
|
-
readonly bytes: Schema.Int;
|
|
13876
|
-
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
13877
|
-
readonly first: Schema.Int;
|
|
13878
|
-
readonly last: Schema.Int;
|
|
13879
|
-
}>>;
|
|
13880
|
-
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
13881
|
-
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
13882
|
-
readonly roots: Schema.$Array<Schema.Struct<{
|
|
13883
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13884
|
-
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13885
|
-
}>>;
|
|
13886
|
-
}>>;
|
|
13887
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13888
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13889
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13890
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13891
|
-
readonly kind: Schema.Literal<"none">;
|
|
13892
|
-
}>, Schema.Struct<{
|
|
13893
|
-
readonly kind: Schema.Literal<"github">;
|
|
13894
|
-
readonly branch: Schema.String;
|
|
13895
|
-
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13896
|
-
readonly state: Schema.Literal<"on">;
|
|
13897
|
-
}>, Schema.Struct<{
|
|
13898
|
-
readonly state: Schema.Literal<"paused">;
|
|
13899
|
-
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13900
|
-
readonly why: Schema.Literal<"diverged">;
|
|
13901
|
-
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13902
|
-
}>, Schema.Struct<{
|
|
13903
|
-
readonly why: Schema.Literal<"refused">;
|
|
13904
|
-
readonly said: Schema.String;
|
|
13905
|
-
}>, Schema.Struct<{
|
|
13906
|
-
readonly why: Schema.Literal<"unauthorized">;
|
|
13907
|
-
}>]>;
|
|
13908
|
-
}>, Schema.Struct<{
|
|
13909
|
-
readonly state: Schema.Literal<"off">;
|
|
13910
|
-
}>]>;
|
|
13911
|
-
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13912
|
-
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13913
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
14223
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13914
14224
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13915
14225
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13916
14226
|
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
@@ -14035,117 +14345,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
14035
14345
|
}>]>;
|
|
14036
14346
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
14037
14347
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
14038
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never
|
|
14039
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14040
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14041
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14042
|
-
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
14043
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14044
|
-
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
14045
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14046
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
14047
|
-
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
14048
|
-
readonly head: Schema.Struct<{
|
|
14049
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
14050
|
-
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
14051
|
-
readonly branch: Schema.String;
|
|
14052
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14053
|
-
readonly generation: Schema.Int;
|
|
14054
|
-
}>;
|
|
14055
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
14056
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
14057
|
-
readonly agent: Schema.Struct<{
|
|
14058
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14059
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
14060
|
-
}>;
|
|
14061
|
-
}>, Schema.Struct<{
|
|
14062
|
-
readonly workflow: Schema.Struct<{
|
|
14063
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
14064
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
14065
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
14066
|
-
readonly step: Schema.Struct<{
|
|
14067
|
-
readonly name: Schema.String;
|
|
14068
|
-
readonly count: Schema.Int;
|
|
14069
|
-
readonly attempt: Schema.Int;
|
|
14070
|
-
}>;
|
|
14071
|
-
}>;
|
|
14072
|
-
}>]>;
|
|
14073
|
-
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
14074
|
-
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
14075
|
-
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
14076
|
-
readonly repair: Schema.Boolean;
|
|
14077
|
-
readonly current: Schema.Struct<{
|
|
14078
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
14079
|
-
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
14080
|
-
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
14081
|
-
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
14082
|
-
readonly intentRevision: Schema.Int;
|
|
14083
|
-
readonly generation: Schema.Int;
|
|
14084
|
-
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
14085
|
-
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
14086
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14087
|
-
}>;
|
|
14088
|
-
readonly threadNumber: Schema.Int;
|
|
14089
|
-
}>>;
|
|
14090
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
14091
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14092
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14093
|
-
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
14094
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
14095
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14096
|
-
readonly repos: Schema.$Array<Schema.Struct<{
|
|
14097
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
14098
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14099
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
14100
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
14101
|
-
readonly kind: Schema.Literal<"project">;
|
|
14102
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
14103
|
-
}>, Schema.Struct<{
|
|
14104
|
-
readonly kind: Schema.Literal<"owner">;
|
|
14105
|
-
}>]>;
|
|
14106
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
14107
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
14108
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
14109
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14110
|
-
}>>;
|
|
14111
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
14112
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
14113
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14114
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14115
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14116
|
-
key: Schema.String;
|
|
14117
|
-
}>>, 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<{
|
|
14118
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14119
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14120
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14121
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14122
|
-
path: Schema.brand<Schema.String, "RepoPath">;
|
|
14123
|
-
line: Schema.Int;
|
|
14124
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14125
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14126
|
-
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
14127
|
-
readonly line: Schema.Int;
|
|
14128
|
-
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
14129
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
14130
|
-
readonly turns: Schema.$Array<Schema.Struct<{
|
|
14131
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
14132
|
-
readonly threadNumber: Schema.Int;
|
|
14133
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
14134
|
-
readonly turn: Schema.Int;
|
|
14135
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
14136
|
-
readonly model: Schema.optionalKey<Schema.String>;
|
|
14137
|
-
}>>;
|
|
14138
|
-
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
14139
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
14140
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
14141
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
14142
|
-
readonly step: Schema.Struct<{
|
|
14143
|
-
readonly name: Schema.String;
|
|
14144
|
-
readonly count: Schema.Int;
|
|
14145
|
-
readonly attempt: Schema.Int;
|
|
14146
|
-
}>;
|
|
14147
|
-
}>>;
|
|
14148
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
|
|
14348
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never>, false>;
|
|
14149
14349
|
/**
|
|
14150
14350
|
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
14151
14351
|
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
@@ -17695,31 +17895,7 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17695
17895
|
readonly thread: Schema.optionalKey<Schema.Int>;
|
|
17696
17896
|
readonly suspended: Schema.optionalKey<Schema.Literal<true>>;
|
|
17697
17897
|
}>>;
|
|
17698
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
17699
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17700
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17701
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17702
|
-
readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
|
|
17703
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17704
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17705
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17706
|
-
readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17707
|
-
readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17708
|
-
readonly coversUnread: Schema.Boolean;
|
|
17709
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17710
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17711
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17712
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17713
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17714
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17715
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17716
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17717
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17718
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17719
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17720
|
-
readonly changed: Schema.Boolean;
|
|
17721
|
-
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17722
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17898
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17723
17899
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17724
17900
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17725
17901
|
workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
@@ -17791,133 +17967,124 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17791
17967
|
readonly title: Schema.optionalKey<Schema.String>;
|
|
17792
17968
|
}>>;
|
|
17793
17969
|
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17794
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never
|
|
17970
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17971
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17972
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17973
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17974
|
+
readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
|
|
17975
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17976
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17977
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17978
|
+
readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17979
|
+
readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17980
|
+
readonly coversUnread: Schema.Boolean;
|
|
17981
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17982
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17983
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17984
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17985
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17986
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17987
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17988
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17989
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17990
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17991
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17992
|
+
readonly changed: Schema.Boolean;
|
|
17993
|
+
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17994
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never>, false>;
|
|
17795
17995
|
/**
|
|
17796
17996
|
* A repo's workflows and their workflow runs, for whoever may read the repo. Turning workflows
|
|
17797
17997
|
* off is a person's approved command, which reaches `/v1` with approvals; an agent asks its
|
|
17798
17998
|
* person.
|
|
17799
17999
|
*/
|
|
17800
18000
|
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17801
|
-
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18001
|
+
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17802
18002
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17803
18003
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17804
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17805
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17806
|
-
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17807
|
-
readonly kind: Schema.Literal<"main">;
|
|
17808
|
-
}>, Schema.Struct<{
|
|
17809
|
-
readonly kind: Schema.Literal<"thread">;
|
|
17810
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17811
|
-
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17812
|
-
}>]>;
|
|
17813
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17814
|
-
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17815
18004
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17816
|
-
|
|
17817
|
-
|
|
18005
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18006
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
18007
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18008
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17818
18009
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17819
18010
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18011
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17820
18012
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17821
18013
|
readonly rerun: Schema.Int;
|
|
17822
18014
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17823
|
-
readonly
|
|
17824
|
-
readonly
|
|
17825
|
-
readonly
|
|
17826
|
-
readonly
|
|
18015
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18016
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18017
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
18018
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
18019
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
18020
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
18021
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
18022
|
+
readonly kind: Schema.Literal<"person">;
|
|
18023
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18024
|
+
}>, Schema.Struct<{
|
|
18025
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18026
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18027
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18028
|
+
}>, Schema.Struct<{
|
|
18029
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18030
|
+
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")[]>;
|
|
18031
|
+
}>]>;
|
|
18032
|
+
readonly request: Schema.String;
|
|
18033
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
18034
|
+
}>>;
|
|
18035
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
18036
|
+
readonly attachment: Schema.Struct<{
|
|
18037
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18038
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18039
|
+
}>;
|
|
18040
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
18041
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18042
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18043
|
+
}>>;
|
|
18044
|
+
}>>;
|
|
18045
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
18046
|
+
readonly requests: Schema.Int;
|
|
18047
|
+
readonly omitted: Schema.Int;
|
|
18048
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
18049
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
18050
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18051
|
+
readonly step: Schema.String;
|
|
18052
|
+
readonly count: Schema.Int;
|
|
18053
|
+
readonly attempt: Schema.Int;
|
|
18054
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18055
|
+
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"]>;
|
|
18056
|
+
readonly recovery: Schema.String;
|
|
18057
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18058
|
+
readonly url: Schema.String;
|
|
18059
|
+
}>>;
|
|
18060
|
+
readonly refusalsOmitted: Schema.Int;
|
|
18061
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18062
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18063
|
+
readonly step: Schema.String;
|
|
18064
|
+
readonly count: Schema.Int;
|
|
18065
|
+
readonly attempt: Schema.Int;
|
|
18066
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18067
|
+
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"]>;
|
|
18068
|
+
readonly recovery: Schema.String;
|
|
18069
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18070
|
+
readonly url: Schema.String;
|
|
18071
|
+
}>>;
|
|
18072
|
+
readonly reportedOmitted: Schema.Int;
|
|
18073
|
+
}>>;
|
|
18074
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18075
|
+
readonly browses: Schema.Int;
|
|
18076
|
+
readonly closing: Schema.Int;
|
|
18077
|
+
readonly unconfirmed: Schema.Int;
|
|
18078
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18079
|
+
readonly unresolved: Schema.Int;
|
|
18080
|
+
readonly presumedExpired: Schema.Int;
|
|
18081
|
+
readonly browserMs: Schema.Int;
|
|
18082
|
+
readonly estimated: Schema.Boolean;
|
|
18083
|
+
}>>;
|
|
17827
18084
|
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17828
18085
|
}>, Schema.Struct<{
|
|
17829
18086
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17830
|
-
readonly
|
|
17831
|
-
readonly rerun: Schema.Int;
|
|
17832
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17833
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17834
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17835
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17836
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17837
|
-
readonly state: Schema.Literal<"ended">;
|
|
17838
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17839
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17840
|
-
}>, Schema.Struct<{
|
|
17841
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17842
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17843
|
-
readonly rerun: Schema.Int;
|
|
17844
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17845
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17846
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17847
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17848
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17849
|
-
readonly state: Schema.Literal<"ended">;
|
|
17850
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17851
|
-
}>]>>;
|
|
17852
|
-
}>, Schema.Struct<{
|
|
17853
|
-
readonly waiting: Schema.Struct<{
|
|
17854
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17855
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17856
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17857
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17858
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17859
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17860
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17861
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17862
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17863
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17864
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17865
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17866
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17867
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17868
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17869
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17870
|
-
readonly kind: Schema.Literal<"person">;
|
|
17871
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17872
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17873
|
-
}>, Schema.Struct<{
|
|
17874
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17875
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17876
|
-
}>, Schema.Struct<{
|
|
17877
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17878
|
-
readonly permission: Schema.String;
|
|
17879
|
-
}>]>>;
|
|
17880
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17881
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17882
|
-
}>>;
|
|
17883
|
-
}>>;
|
|
17884
|
-
}>;
|
|
17885
|
-
}>]>>, 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<{
|
|
17886
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17887
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17888
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17889
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17890
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17891
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17892
|
-
readonly code: Schema.Struct<{
|
|
17893
|
-
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17894
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17895
|
-
}>;
|
|
17896
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17897
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17898
|
-
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
17899
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17900
|
-
readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17901
|
-
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17902
|
-
readonly kind: Schema.Literal<"review">;
|
|
17903
|
-
}>, Schema.Struct<{
|
|
17904
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
17905
|
-
}>, Schema.Struct<{
|
|
17906
|
-
readonly kind: Schema.Literal<"admin">;
|
|
17907
|
-
}>, Schema.Struct<{
|
|
17908
|
-
readonly kind: Schema.Literal<"permission">;
|
|
17909
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
17910
|
-
}>]>>>;
|
|
17911
|
-
}>, Schema.Struct<{
|
|
17912
|
-
readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
|
|
17913
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
17914
|
-
}>]>;
|
|
17915
|
-
readonly outputsHash: Schema.String;
|
|
17916
|
-
readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
17917
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17918
|
-
readonly run: Schema.Union<readonly [Schema.Struct<{
|
|
17919
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17920
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18087
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17921
18088
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17922
18089
|
readonly rerun: Schema.Int;
|
|
17923
18090
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
@@ -17990,7 +18157,8 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17990
18157
|
readonly browserMs: Schema.Int;
|
|
17991
18158
|
readonly estimated: Schema.Boolean;
|
|
17992
18159
|
}>>;
|
|
17993
|
-
readonly state: Schema.
|
|
18160
|
+
readonly state: Schema.Literal<"ended">;
|
|
18161
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17994
18162
|
}>, Schema.Struct<{
|
|
17995
18163
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17996
18164
|
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
@@ -18067,86 +18235,249 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18067
18235
|
readonly estimated: Schema.Boolean;
|
|
18068
18236
|
}>>;
|
|
18069
18237
|
readonly state: Schema.Literal<"ended">;
|
|
18238
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18239
|
+
}>]>>;
|
|
18240
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18241
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
18242
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18243
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18244
|
+
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
18245
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18246
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18247
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
|
|
18248
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18249
|
+
readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
18250
|
+
readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
|
|
18251
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
18252
|
+
readonly eventId: Schema.Int;
|
|
18253
|
+
readonly timestamp: Schema.Finite;
|
|
18254
|
+
readonly type: Schema.String;
|
|
18255
|
+
readonly stepName: Schema.optionalKey<Schema.String>;
|
|
18256
|
+
readonly attempt: Schema.optionalKey<Schema.Int>;
|
|
18257
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
18258
|
+
readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
|
|
18259
|
+
readonly eventType: Schema.optionalKey<Schema.String>;
|
|
18260
|
+
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
18261
|
+
readonly name: Schema.String;
|
|
18262
|
+
readonly message: Schema.String;
|
|
18263
|
+
}>>;
|
|
18264
|
+
}>>;
|
|
18265
|
+
readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18266
|
+
readonly kind: Schema.Literal<"session">;
|
|
18267
|
+
readonly id: Schema.String;
|
|
18268
|
+
readonly at: Schema.Finite;
|
|
18269
|
+
readonly sandbox: Schema.String;
|
|
18270
|
+
readonly step: Schema.String;
|
|
18271
|
+
readonly attempt: Schema.Int;
|
|
18272
|
+
readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
|
|
18273
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
18274
|
+
readonly restoreMs: Schema.Finite;
|
|
18275
|
+
}>, Schema.Struct<{
|
|
18276
|
+
readonly kind: Schema.Literal<"command">;
|
|
18277
|
+
readonly id: Schema.String;
|
|
18278
|
+
readonly parent: Schema.String;
|
|
18279
|
+
readonly at: Schema.Finite;
|
|
18280
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
18281
|
+
readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
|
|
18282
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18283
|
+
readonly durationMs: Schema.Finite;
|
|
18284
|
+
readonly stdoutCut: Schema.Boolean;
|
|
18285
|
+
readonly stderrCut: Schema.Boolean;
|
|
18286
|
+
}>, Schema.Struct<{
|
|
18287
|
+
readonly kind: Schema.Literal<"untraced">;
|
|
18288
|
+
readonly id: Schema.String;
|
|
18289
|
+
readonly parent: Schema.String;
|
|
18290
|
+
readonly at: Schema.Finite;
|
|
18291
|
+
readonly commands: Schema.Int;
|
|
18292
|
+
}>, Schema.Struct<{
|
|
18293
|
+
readonly kind: Schema.Literal<"serve">;
|
|
18294
|
+
readonly id: Schema.String;
|
|
18295
|
+
readonly parent: Schema.String;
|
|
18296
|
+
readonly at: Schema.Finite;
|
|
18297
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
18298
|
+
readonly port: Schema.Int;
|
|
18299
|
+
readonly host: Schema.String;
|
|
18300
|
+
readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
|
|
18301
|
+
readonly readyMs: Schema.optionalKey<Schema.Finite>;
|
|
18302
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18303
|
+
readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
|
|
18304
|
+
}>, Schema.Struct<{
|
|
18305
|
+
readonly kind: Schema.Literal<"route">;
|
|
18306
|
+
readonly id: Schema.String;
|
|
18307
|
+
readonly parent: Schema.String;
|
|
18308
|
+
readonly at: Schema.Finite;
|
|
18309
|
+
readonly method: Schema.String;
|
|
18310
|
+
readonly path: Schema.String;
|
|
18311
|
+
readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
|
|
18312
|
+
readonly status: Schema.optionalKey<Schema.Int>;
|
|
18313
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
18314
|
+
readonly durationMs: Schema.Finite;
|
|
18315
|
+
readonly bytes: Schema.Int;
|
|
18316
|
+
}>, Schema.Struct<{
|
|
18317
|
+
readonly kind: Schema.Literal<"routes omitted">;
|
|
18318
|
+
readonly id: Schema.String;
|
|
18319
|
+
readonly parent: Schema.String;
|
|
18320
|
+
readonly at: Schema.Finite;
|
|
18321
|
+
readonly requests: Schema.Int;
|
|
18322
|
+
}>, Schema.Struct<{
|
|
18323
|
+
readonly kind: Schema.Literal<"route refusal">;
|
|
18324
|
+
readonly id: Schema.String;
|
|
18325
|
+
readonly parent: Schema.String;
|
|
18326
|
+
readonly at: Schema.Finite;
|
|
18327
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18328
|
+
readonly why: Schema.String;
|
|
18329
|
+
readonly url: Schema.String;
|
|
18330
|
+
}>, Schema.Struct<{
|
|
18331
|
+
readonly kind: Schema.Literal<"browser">;
|
|
18332
|
+
readonly id: Schema.String;
|
|
18333
|
+
readonly parent: Schema.String;
|
|
18334
|
+
readonly at: Schema.Finite;
|
|
18335
|
+
readonly browserSession: Schema.optionalKey<Schema.String>;
|
|
18336
|
+
readonly acquireMs: Schema.optionalKey<Schema.Finite>;
|
|
18337
|
+
readonly connects: Schema.Int;
|
|
18338
|
+
readonly closedAt: Schema.optionalKey<Schema.Finite>;
|
|
18339
|
+
readonly outcome: Schema.Literals<readonly ["closed", "unconfirmed", "unresolved", "failed", "unavailable"]>;
|
|
18340
|
+
readonly reported: Schema.Int;
|
|
18341
|
+
}>, Schema.Struct<{
|
|
18342
|
+
readonly kind: Schema.Literal<"build">;
|
|
18343
|
+
readonly id: Schema.String;
|
|
18344
|
+
readonly at: Schema.Finite;
|
|
18345
|
+
readonly build: Schema.Int;
|
|
18346
|
+
readonly key: Schema.String;
|
|
18347
|
+
readonly state: Schema.Literals<readonly ["queued", "starting", "building", "ready", "failed", "full", "unbegun"]>;
|
|
18348
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
18349
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
18350
|
+
}>, Schema.Struct<{
|
|
18351
|
+
readonly kind: Schema.Literal<"setup">;
|
|
18352
|
+
readonly id: Schema.String;
|
|
18353
|
+
readonly parent: Schema.String;
|
|
18354
|
+
readonly at: Schema.Finite;
|
|
18355
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
18356
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18357
|
+
readonly durationMs: Schema.Finite;
|
|
18358
|
+
}>]>>;
|
|
18359
|
+
readonly logs: Schema.$Array<Schema.Struct<{
|
|
18360
|
+
readonly at: Schema.Finite;
|
|
18361
|
+
readonly level: Schema.String;
|
|
18362
|
+
readonly message: Schema.String;
|
|
18363
|
+
readonly span: Schema.optionalKey<Schema.String>;
|
|
18364
|
+
}>>;
|
|
18365
|
+
readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
|
|
18366
|
+
readonly more: Schema.Boolean;
|
|
18367
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
18368
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18369
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18370
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18371
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18372
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18373
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18374
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
18375
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
18376
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18377
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18378
|
+
readonly code: Schema.Struct<{
|
|
18379
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18380
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18381
|
+
}>;
|
|
18382
|
+
readonly timeoutSeconds: Schema.Int;
|
|
18383
|
+
readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18384
|
+
readonly compiled: Schema.Struct<{
|
|
18385
|
+
readonly entry: Schema.Struct<{
|
|
18386
|
+
readonly name: Schema.String;
|
|
18387
|
+
readonly module: Schema.String;
|
|
18388
|
+
readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18389
|
+
readonly files: Schema.$Array<Schema.String>;
|
|
18390
|
+
readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
18391
|
+
readonly sourceMap: Schema.optionalKey<Schema.String>;
|
|
18392
|
+
readonly reaches: Schema.optionalKey<Schema.Struct<{
|
|
18393
|
+
readonly tree: Schema.Boolean;
|
|
18394
|
+
readonly browser: Schema.Boolean;
|
|
18395
|
+
}>>;
|
|
18396
|
+
readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18397
|
+
readonly name: Schema.String;
|
|
18398
|
+
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18399
|
+
readonly pin: Schema.String;
|
|
18400
|
+
readonly format: Schema.Int;
|
|
18401
|
+
}>>>;
|
|
18402
|
+
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18403
|
+
}>;
|
|
18404
|
+
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
18405
|
+
}>;
|
|
18406
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
|
|
18407
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18408
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18409
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18410
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18411
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18412
|
+
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18413
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18414
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18415
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18416
|
+
readonly rerun: Schema.Int;
|
|
18417
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18418
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18419
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18420
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18421
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18422
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
18423
|
+
}>, Schema.Struct<{
|
|
18424
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18425
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18426
|
+
readonly rerun: Schema.Int;
|
|
18427
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18428
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18429
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18430
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18431
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18432
|
+
readonly state: Schema.Literal<"ended">;
|
|
18070
18433
|
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18434
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18071
18435
|
}>, Schema.Struct<{
|
|
18072
18436
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18073
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18074
18437
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18075
18438
|
readonly rerun: Schema.Int;
|
|
18076
18439
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18077
|
-
readonly
|
|
18078
|
-
readonly
|
|
18079
|
-
readonly
|
|
18080
|
-
readonly
|
|
18081
|
-
readonly
|
|
18082
|
-
readonly
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18089
|
-
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
readonly
|
|
18095
|
-
readonly
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
readonly
|
|
18100
|
-
readonly
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
18106
|
-
|
|
18107
|
-
|
|
18108
|
-
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
readonly
|
|
18113
|
-
readonly
|
|
18114
|
-
|
|
18115
|
-
readonly attempt: Schema.Int;
|
|
18116
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18117
|
-
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"]>;
|
|
18118
|
-
readonly recovery: Schema.String;
|
|
18119
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18120
|
-
readonly url: Schema.String;
|
|
18121
|
-
}>>;
|
|
18122
|
-
readonly refusalsOmitted: Schema.Int;
|
|
18123
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18124
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18125
|
-
readonly step: Schema.String;
|
|
18126
|
-
readonly count: Schema.Int;
|
|
18127
|
-
readonly attempt: Schema.Int;
|
|
18128
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18129
|
-
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"]>;
|
|
18130
|
-
readonly recovery: Schema.String;
|
|
18131
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18132
|
-
readonly url: Schema.String;
|
|
18133
|
-
}>>;
|
|
18134
|
-
readonly reportedOmitted: Schema.Int;
|
|
18135
|
-
}>>;
|
|
18136
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18137
|
-
readonly browses: Schema.Int;
|
|
18138
|
-
readonly closing: Schema.Int;
|
|
18139
|
-
readonly unconfirmed: Schema.Int;
|
|
18140
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18141
|
-
readonly unresolved: Schema.Int;
|
|
18142
|
-
readonly presumedExpired: Schema.Int;
|
|
18143
|
-
readonly browserMs: Schema.Int;
|
|
18144
|
-
readonly estimated: Schema.Boolean;
|
|
18440
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18441
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18442
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18443
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18444
|
+
readonly state: Schema.Literal<"ended">;
|
|
18445
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18446
|
+
}>]>>;
|
|
18447
|
+
}>, Schema.Struct<{
|
|
18448
|
+
readonly waiting: Schema.Struct<{
|
|
18449
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18450
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18451
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18452
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18453
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18454
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18455
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18456
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18457
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18458
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
18459
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18460
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18461
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18462
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18463
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
18464
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18465
|
+
readonly kind: Schema.Literal<"person">;
|
|
18466
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18467
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18468
|
+
}>, Schema.Struct<{
|
|
18469
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18470
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18471
|
+
}>, Schema.Struct<{
|
|
18472
|
+
readonly kind: Schema.Literal<"holders">;
|
|
18473
|
+
readonly permission: Schema.String;
|
|
18474
|
+
}>]>>;
|
|
18475
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
18476
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18477
|
+
}>>;
|
|
18145
18478
|
}>>;
|
|
18146
|
-
|
|
18147
|
-
|
|
18148
|
-
}>]>;
|
|
18149
|
-
}>>, 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<{
|
|
18479
|
+
}>;
|
|
18480
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
|
|
18150
18481
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18151
18482
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18152
18483
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18161,15 +18492,40 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18161
18492
|
}>, Schema.Struct<{
|
|
18162
18493
|
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18163
18494
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18164
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18495
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
18165
18496
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18166
18497
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18167
|
-
}>>, Schema.
|
|
18168
|
-
readonly
|
|
18169
|
-
readonly
|
|
18170
|
-
readonly
|
|
18171
|
-
|
|
18172
|
-
|
|
18498
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18499
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18500
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18501
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18502
|
+
readonly code: Schema.Struct<{
|
|
18503
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18504
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18505
|
+
}>;
|
|
18506
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18507
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18508
|
+
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
18509
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18510
|
+
readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18511
|
+
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18512
|
+
readonly kind: Schema.Literal<"review">;
|
|
18513
|
+
}>, Schema.Struct<{
|
|
18514
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
18515
|
+
}>, Schema.Struct<{
|
|
18516
|
+
readonly kind: Schema.Literal<"admin">;
|
|
18517
|
+
}>, Schema.Struct<{
|
|
18518
|
+
readonly kind: Schema.Literal<"permission">;
|
|
18519
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
18520
|
+
}>]>>>;
|
|
18521
|
+
}>, Schema.Struct<{
|
|
18522
|
+
readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
|
|
18523
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
18524
|
+
}>]>;
|
|
18525
|
+
readonly outputsHash: Schema.String;
|
|
18526
|
+
readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
18527
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18528
|
+
readonly run: Schema.Union<readonly [Schema.Struct<{
|
|
18173
18529
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18174
18530
|
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18175
18531
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -18399,9 +18755,8 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18399
18755
|
}>>;
|
|
18400
18756
|
readonly state: Schema.Literal<"ended">;
|
|
18401
18757
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18402
|
-
}>]
|
|
18403
|
-
|
|
18404
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
18758
|
+
}>]>;
|
|
18759
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
18405
18760
|
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18406
18761
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18407
18762
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
@@ -18409,13 +18764,23 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18409
18764
|
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18410
18765
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18411
18766
|
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
18412
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18413
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18767
|
+
}>>, 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<{
|
|
18414
18768
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18415
18769
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18770
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18771
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18772
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
18773
|
+
readonly kind: Schema.Literal<"main">;
|
|
18774
|
+
}>, Schema.Struct<{
|
|
18775
|
+
readonly kind: Schema.Literal<"thread">;
|
|
18776
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18777
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
18778
|
+
}>]>;
|
|
18779
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18780
|
+
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18416
18781
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18417
|
-
|
|
18418
|
-
}>>,
|
|
18782
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18783
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18419
18784
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18420
18785
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18421
18786
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -18434,221 +18799,56 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18434
18799
|
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18435
18800
|
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18436
18801
|
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18437
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18438
|
-
readonly state: Schema.Literal<"ended">;
|
|
18439
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18440
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18441
|
-
}>, Schema.Struct<{
|
|
18442
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18443
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18444
|
-
readonly rerun: Schema.Int;
|
|
18445
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18446
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18447
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18448
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18449
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18450
|
-
readonly state: Schema.Literal<"ended">;
|
|
18451
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18452
|
-
}>]>>;
|
|
18453
|
-
}>, Schema.Struct<{
|
|
18454
|
-
readonly waiting: Schema.Struct<{
|
|
18455
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18456
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18457
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18458
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18459
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18460
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18461
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18462
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18463
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18464
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
18465
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18466
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18467
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18468
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18469
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
18470
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18471
|
-
readonly kind: Schema.Literal<"person">;
|
|
18472
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18473
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18474
|
-
}>, Schema.Struct<{
|
|
18475
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18476
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18477
|
-
}>, Schema.Struct<{
|
|
18478
|
-
readonly kind: Schema.Literal<"holders">;
|
|
18479
|
-
readonly permission: Schema.String;
|
|
18480
|
-
}>]>>;
|
|
18481
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
18482
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18483
|
-
}>>;
|
|
18484
|
-
}>>;
|
|
18485
|
-
}>;
|
|
18486
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
18487
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18488
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18489
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18490
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18491
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18492
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18493
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
18494
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
18495
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18496
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18497
|
-
readonly code: Schema.Struct<{
|
|
18498
|
-
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18499
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18500
|
-
}>;
|
|
18501
|
-
readonly timeoutSeconds: Schema.Int;
|
|
18502
|
-
readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18503
|
-
readonly compiled: Schema.Struct<{
|
|
18504
|
-
readonly entry: Schema.Struct<{
|
|
18505
|
-
readonly name: Schema.String;
|
|
18506
|
-
readonly module: Schema.String;
|
|
18507
|
-
readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18508
|
-
readonly files: Schema.$Array<Schema.String>;
|
|
18509
|
-
readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
18510
|
-
readonly sourceMap: Schema.optionalKey<Schema.String>;
|
|
18511
|
-
readonly reaches: Schema.optionalKey<Schema.Struct<{
|
|
18512
|
-
readonly tree: Schema.Boolean;
|
|
18513
|
-
readonly browser: Schema.Boolean;
|
|
18514
|
-
}>>;
|
|
18515
|
-
readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18516
|
-
readonly name: Schema.String;
|
|
18517
|
-
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18518
|
-
readonly pin: Schema.String;
|
|
18519
|
-
readonly format: Schema.Int;
|
|
18520
|
-
}>>>;
|
|
18521
|
-
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18522
|
-
}>;
|
|
18523
|
-
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
18524
|
-
}>;
|
|
18525
|
-
}>>, 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<{
|
|
18526
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18527
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18528
|
-
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
18529
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18530
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18531
|
-
readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
|
|
18532
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18533
|
-
readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
18534
|
-
readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
|
|
18535
|
-
readonly events: Schema.$Array<Schema.Struct<{
|
|
18536
|
-
readonly eventId: Schema.Int;
|
|
18537
|
-
readonly timestamp: Schema.Finite;
|
|
18538
|
-
readonly type: Schema.String;
|
|
18539
|
-
readonly stepName: Schema.optionalKey<Schema.String>;
|
|
18540
|
-
readonly attempt: Schema.optionalKey<Schema.Int>;
|
|
18541
|
-
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
18542
|
-
readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
|
|
18543
|
-
readonly eventType: Schema.optionalKey<Schema.String>;
|
|
18544
|
-
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
18545
|
-
readonly name: Schema.String;
|
|
18546
|
-
readonly message: Schema.String;
|
|
18547
|
-
}>>;
|
|
18548
|
-
}>>;
|
|
18549
|
-
readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18550
|
-
readonly kind: Schema.Literal<"session">;
|
|
18551
|
-
readonly id: Schema.String;
|
|
18552
|
-
readonly at: Schema.Finite;
|
|
18553
|
-
readonly sandbox: Schema.String;
|
|
18554
|
-
readonly step: Schema.String;
|
|
18555
|
-
readonly attempt: Schema.Int;
|
|
18556
|
-
readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
|
|
18557
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
18558
|
-
readonly restoreMs: Schema.Finite;
|
|
18559
|
-
}>, Schema.Struct<{
|
|
18560
|
-
readonly kind: Schema.Literal<"command">;
|
|
18561
|
-
readonly id: Schema.String;
|
|
18562
|
-
readonly parent: Schema.String;
|
|
18563
|
-
readonly at: Schema.Finite;
|
|
18564
|
-
readonly argv: Schema.$Array<Schema.String>;
|
|
18565
|
-
readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
|
|
18566
|
-
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18567
|
-
readonly durationMs: Schema.Finite;
|
|
18568
|
-
readonly stdoutCut: Schema.Boolean;
|
|
18569
|
-
readonly stderrCut: Schema.Boolean;
|
|
18570
|
-
}>, Schema.Struct<{
|
|
18571
|
-
readonly kind: Schema.Literal<"untraced">;
|
|
18572
|
-
readonly id: Schema.String;
|
|
18573
|
-
readonly parent: Schema.String;
|
|
18574
|
-
readonly at: Schema.Finite;
|
|
18575
|
-
readonly commands: Schema.Int;
|
|
18576
|
-
}>, Schema.Struct<{
|
|
18577
|
-
readonly kind: Schema.Literal<"serve">;
|
|
18578
|
-
readonly id: Schema.String;
|
|
18579
|
-
readonly parent: Schema.String;
|
|
18580
|
-
readonly at: Schema.Finite;
|
|
18581
|
-
readonly argv: Schema.$Array<Schema.String>;
|
|
18582
|
-
readonly port: Schema.Int;
|
|
18583
|
-
readonly host: Schema.String;
|
|
18584
|
-
readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
|
|
18585
|
-
readonly readyMs: Schema.optionalKey<Schema.Finite>;
|
|
18586
|
-
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18587
|
-
readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
|
|
18588
|
-
}>, Schema.Struct<{
|
|
18589
|
-
readonly kind: Schema.Literal<"route">;
|
|
18590
|
-
readonly id: Schema.String;
|
|
18591
|
-
readonly parent: Schema.String;
|
|
18592
|
-
readonly at: Schema.Finite;
|
|
18593
|
-
readonly method: Schema.String;
|
|
18594
|
-
readonly path: Schema.String;
|
|
18595
|
-
readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
|
|
18596
|
-
readonly status: Schema.optionalKey<Schema.Int>;
|
|
18597
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
18598
|
-
readonly durationMs: Schema.Finite;
|
|
18599
|
-
readonly bytes: Schema.Int;
|
|
18600
|
-
}>, Schema.Struct<{
|
|
18601
|
-
readonly kind: Schema.Literal<"routes omitted">;
|
|
18602
|
-
readonly id: Schema.String;
|
|
18603
|
-
readonly parent: Schema.String;
|
|
18604
|
-
readonly at: Schema.Finite;
|
|
18605
|
-
readonly requests: Schema.Int;
|
|
18606
|
-
}>, Schema.Struct<{
|
|
18607
|
-
readonly kind: Schema.Literal<"route refusal">;
|
|
18608
|
-
readonly id: Schema.String;
|
|
18609
|
-
readonly parent: Schema.String;
|
|
18610
|
-
readonly at: Schema.Finite;
|
|
18611
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18612
|
-
readonly why: Schema.String;
|
|
18613
|
-
readonly url: Schema.String;
|
|
18614
|
-
}>, Schema.Struct<{
|
|
18615
|
-
readonly kind: Schema.Literal<"browser">;
|
|
18616
|
-
readonly id: Schema.String;
|
|
18617
|
-
readonly parent: Schema.String;
|
|
18618
|
-
readonly at: Schema.Finite;
|
|
18619
|
-
readonly browserSession: Schema.optionalKey<Schema.String>;
|
|
18620
|
-
readonly acquireMs: Schema.optionalKey<Schema.Finite>;
|
|
18621
|
-
readonly connects: Schema.Int;
|
|
18622
|
-
readonly closedAt: Schema.optionalKey<Schema.Finite>;
|
|
18623
|
-
readonly outcome: Schema.Literals<readonly ["closed", "unconfirmed", "unresolved", "failed", "unavailable"]>;
|
|
18624
|
-
readonly reported: Schema.Int;
|
|
18625
|
-
}>, Schema.Struct<{
|
|
18626
|
-
readonly kind: Schema.Literal<"build">;
|
|
18627
|
-
readonly id: Schema.String;
|
|
18628
|
-
readonly at: Schema.Finite;
|
|
18629
|
-
readonly build: Schema.Int;
|
|
18630
|
-
readonly key: Schema.String;
|
|
18631
|
-
readonly state: Schema.Literals<readonly ["queued", "starting", "building", "ready", "failed", "full", "unbegun"]>;
|
|
18632
|
-
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
18633
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
18802
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18803
|
+
readonly state: Schema.Literal<"ended">;
|
|
18804
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18805
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18634
18806
|
}>, Schema.Struct<{
|
|
18635
|
-
readonly
|
|
18636
|
-
readonly
|
|
18637
|
-
readonly
|
|
18638
|
-
readonly
|
|
18639
|
-
readonly
|
|
18640
|
-
readonly
|
|
18641
|
-
readonly
|
|
18807
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18808
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18809
|
+
readonly rerun: Schema.Int;
|
|
18810
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18811
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18812
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18813
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18814
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18815
|
+
readonly state: Schema.Literal<"ended">;
|
|
18816
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18642
18817
|
}>]>>;
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
readonly
|
|
18646
|
-
readonly
|
|
18647
|
-
readonly
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18818
|
+
}>, Schema.Struct<{
|
|
18819
|
+
readonly waiting: Schema.Struct<{
|
|
18820
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18821
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18822
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18823
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18824
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18825
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18826
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18827
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18828
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18829
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
18830
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18831
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18832
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18833
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18834
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
18835
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18836
|
+
readonly kind: Schema.Literal<"person">;
|
|
18837
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18838
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18839
|
+
}>, Schema.Struct<{
|
|
18840
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18841
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18842
|
+
}>, Schema.Struct<{
|
|
18843
|
+
readonly kind: Schema.Literal<"holders">;
|
|
18844
|
+
readonly permission: Schema.String;
|
|
18845
|
+
}>]>>;
|
|
18846
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
18847
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18848
|
+
}>>;
|
|
18849
|
+
}>>;
|
|
18850
|
+
}>;
|
|
18851
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never>, false>;
|
|
18652
18852
|
/**
|
|
18653
18853
|
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
18654
18854
|
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
@@ -18708,33 +18908,7 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18708
18908
|
* consented, hands the client its code.
|
|
18709
18909
|
*/
|
|
18710
18910
|
declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
|
|
18711
|
-
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18712
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18713
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18714
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18715
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18716
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18717
|
-
readonly kind: Schema.Literal<"person">;
|
|
18718
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18719
|
-
}>, Schema.Struct<{
|
|
18720
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18721
|
-
readonly agent: Schema.Struct<{
|
|
18722
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18723
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18724
|
-
}>;
|
|
18725
|
-
}>]>;
|
|
18726
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18727
|
-
}>>, 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<{
|
|
18728
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18729
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18730
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18731
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18732
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18733
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18734
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18735
|
-
readonly displayName: Schema.String;
|
|
18736
|
-
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18737
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18911
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18738
18912
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18739
18913
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18740
18914
|
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
@@ -18743,7 +18917,50 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18743
18917
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18744
18918
|
}>>;
|
|
18745
18919
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18746
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18920
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18921
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18922
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18923
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18924
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18925
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18926
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
18927
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
18928
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
18929
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18930
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18931
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
18932
|
+
readonly quantity: Schema.Finite;
|
|
18933
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18934
|
+
}>>;
|
|
18935
|
+
}>>;
|
|
18936
|
+
readonly work: Schema.$Array<Schema.Struct<{
|
|
18937
|
+
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18938
|
+
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18939
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18940
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18941
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
18942
|
+
readonly quantity: Schema.Finite;
|
|
18943
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18944
|
+
}>>;
|
|
18945
|
+
}>>;
|
|
18946
|
+
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18947
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18948
|
+
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18949
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18950
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18951
|
+
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18952
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18953
|
+
readonly bytes: Schema.Int;
|
|
18954
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18955
|
+
}>>;
|
|
18956
|
+
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18957
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18958
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18959
|
+
readonly counts: Schema.Int;
|
|
18960
|
+
readonly bytes: Schema.Int;
|
|
18961
|
+
}>>>;
|
|
18962
|
+
}>>;
|
|
18963
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
|
|
18747
18964
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18748
18965
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18749
18966
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18918,56 +19135,60 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18918
19135
|
}>>;
|
|
18919
19136
|
}>;
|
|
18920
19137
|
readonly pricesAsOf: Schema.String;
|
|
18921
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19138
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18922
19139
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19140
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19141
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19142
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19143
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
19144
|
+
readonly kind: Schema.Literal<"person">;
|
|
19145
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19146
|
+
}>, Schema.Struct<{
|
|
19147
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19148
|
+
readonly agent: Schema.Struct<{
|
|
19149
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19150
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19151
|
+
}>;
|
|
19152
|
+
}>]>;
|
|
19153
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
19154
|
+
}>>, 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<{
|
|
19155
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19156
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18923
19157
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18924
|
-
|
|
18925
|
-
|
|
18926
|
-
|
|
18927
|
-
readonly
|
|
18928
|
-
readonly
|
|
18929
|
-
readonly
|
|
18930
|
-
|
|
18931
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18932
|
-
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
18933
|
-
readonly quantity: Schema.Finite;
|
|
18934
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18935
|
-
}>>;
|
|
18936
|
-
}>>;
|
|
18937
|
-
readonly work: Schema.$Array<Schema.Struct<{
|
|
18938
|
-
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18939
|
-
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18940
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18941
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18942
|
-
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
18943
|
-
readonly quantity: Schema.Finite;
|
|
18944
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18945
|
-
}>>;
|
|
18946
|
-
}>>;
|
|
18947
|
-
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18948
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18949
|
-
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18950
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18951
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18952
|
-
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18953
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18954
|
-
readonly bytes: Schema.Int;
|
|
18955
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18956
|
-
}>>;
|
|
18957
|
-
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18958
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18959
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18960
|
-
readonly counts: Schema.Int;
|
|
18961
|
-
readonly bytes: Schema.Int;
|
|
18962
|
-
}>>>;
|
|
18963
|
-
}>>;
|
|
18964
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19158
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19159
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19160
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19161
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19162
|
+
readonly displayName: Schema.String;
|
|
19163
|
+
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
19164
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never>, false>;
|
|
18965
19165
|
/**
|
|
18966
19166
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18967
19167
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
18968
19168
|
*/
|
|
18969
19169
|
declare class OrganizationsGroup extends OrganizationsGroup_base {}
|
|
18970
|
-
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19170
|
+
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
19171
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19172
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19173
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
19174
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19175
|
+
readonly members: Schema.$Array<Schema.Struct<{
|
|
19176
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
19177
|
+
readonly kind: Schema.Literal<"person">;
|
|
19178
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19179
|
+
}>, Schema.Struct<{
|
|
19180
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19181
|
+
readonly agent: Schema.Struct<{
|
|
19182
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19183
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19184
|
+
}>;
|
|
19185
|
+
}>]>;
|
|
19186
|
+
readonly name: Schema.String;
|
|
19187
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19188
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19189
|
+
}>>;
|
|
19190
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
19191
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18971
19192
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18972
19193
|
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">]>;
|
|
18973
19194
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -19003,40 +19224,49 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
19003
19224
|
}>;
|
|
19004
19225
|
}>]>;
|
|
19005
19226
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19006
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never
|
|
19227
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19228
|
+
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
19229
|
+
declare class MembersGroup extends MembersGroup_base {}
|
|
19230
|
+
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19231
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19232
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19233
|
+
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
19234
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19235
|
+
readonly organization: Schema.Struct<{
|
|
19236
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19237
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19238
|
+
}>;
|
|
19239
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19240
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19241
|
+
}>>;
|
|
19242
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19243
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19007
19244
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19008
19245
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19009
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.
|
|
19246
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19010
19247
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19011
|
-
readonly
|
|
19012
|
-
readonly
|
|
19013
|
-
|
|
19014
|
-
readonly
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
readonly agent: Schema.Struct<{
|
|
19018
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19019
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19020
|
-
}>;
|
|
19021
|
-
}>]>;
|
|
19022
|
-
readonly name: Schema.String;
|
|
19248
|
+
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
19249
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19250
|
+
readonly invitee: Schema.Struct<{
|
|
19251
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19252
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19253
|
+
}>;
|
|
19023
19254
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19024
|
-
readonly
|
|
19255
|
+
readonly sentBy: Schema.Struct<{
|
|
19256
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19257
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19258
|
+
}>;
|
|
19259
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19025
19260
|
}>>;
|
|
19026
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.
|
|
19027
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never
|
|
19028
|
-
|
|
19029
|
-
declare class MembersGroup extends MembersGroup_base {}
|
|
19030
|
-
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
19261
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19262
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
|
|
19263
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19031
19264
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19032
19265
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19033
19266
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19034
19267
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19035
19268
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19036
|
-
|
|
19037
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19038
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19039
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
19269
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
19040
19270
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19041
19271
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19042
19272
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -19045,14 +19275,16 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
19045
19275
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19046
19276
|
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19047
19277
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19048
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19049
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19278
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
19050
19279
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19051
19280
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19052
19281
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19053
19282
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19054
19283
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19055
|
-
|
|
19284
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19285
|
+
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19286
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19287
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19056
19288
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19057
19289
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19058
19290
|
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">]>;
|
|
@@ -19067,45 +19299,62 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
19067
19299
|
}>;
|
|
19068
19300
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19069
19301
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19070
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never
|
|
19071
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19072
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19073
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19074
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19075
|
-
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
19076
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19077
|
-
readonly invitee: Schema.Struct<{
|
|
19078
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19079
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19080
|
-
}>;
|
|
19081
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19082
|
-
readonly sentBy: Schema.Struct<{
|
|
19083
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19084
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19085
|
-
}>;
|
|
19086
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19087
|
-
}>>;
|
|
19088
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19089
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19090
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19091
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19092
|
-
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
19093
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19094
|
-
readonly organization: Schema.Struct<{
|
|
19095
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19096
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19097
|
-
}>;
|
|
19098
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19099
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19100
|
-
}>>;
|
|
19101
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19102
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
19302
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never>, false>;
|
|
19103
19303
|
/**
|
|
19104
19304
|
* Invitations: an organization's admins send, list and withdraw them; the person invited lists
|
|
19105
19305
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
19106
19306
|
*/
|
|
19107
19307
|
declare class InvitationsGroup extends InvitationsGroup_base {}
|
|
19108
|
-
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19308
|
+
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
19309
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19310
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19311
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19312
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
19313
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19314
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
19315
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
19316
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
19317
|
+
readonly kind: Schema.Literal<"owner">;
|
|
19318
|
+
}>, Schema.Struct<{
|
|
19319
|
+
readonly kind: Schema.Literal<"project">;
|
|
19320
|
+
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
19321
|
+
}>, Schema.Struct<{
|
|
19322
|
+
readonly kind: Schema.Literal<"thread">;
|
|
19323
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
19324
|
+
}>, Schema.Struct<{
|
|
19325
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19326
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19327
|
+
}>]>;
|
|
19328
|
+
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
19329
|
+
readonly kind: Schema.Literal<"person">;
|
|
19330
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19331
|
+
}>, Schema.Struct<{
|
|
19332
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19333
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
19334
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19335
|
+
}>, Schema.Struct<{
|
|
19336
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19337
|
+
readonly agent: Schema.Struct<{
|
|
19338
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19339
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19340
|
+
}>;
|
|
19341
|
+
}>]>;
|
|
19342
|
+
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
19343
|
+
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
19344
|
+
readonly kind: Schema.Literal<"person">;
|
|
19345
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19346
|
+
}>, Schema.Struct<{
|
|
19347
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19348
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19349
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19350
|
+
}>, Schema.Struct<{
|
|
19351
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
19352
|
+
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")[]>;
|
|
19353
|
+
}>]>;
|
|
19354
|
+
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
19355
|
+
}>>;
|
|
19356
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19357
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
19109
19358
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19110
19359
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19111
19360
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -19217,56 +19466,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
19217
19466
|
}>;
|
|
19218
19467
|
}>]>;
|
|
19219
19468
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
19220
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never
|
|
19221
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19222
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19223
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19224
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
19225
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19226
|
-
readonly grants: Schema.$Array<Schema.Struct<{
|
|
19227
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
19228
|
-
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
19229
|
-
readonly kind: Schema.Literal<"owner">;
|
|
19230
|
-
}>, Schema.Struct<{
|
|
19231
|
-
readonly kind: Schema.Literal<"project">;
|
|
19232
|
-
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
19233
|
-
}>, Schema.Struct<{
|
|
19234
|
-
readonly kind: Schema.Literal<"thread">;
|
|
19235
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
19236
|
-
}>, Schema.Struct<{
|
|
19237
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19238
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19239
|
-
}>]>;
|
|
19240
|
-
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
19241
|
-
readonly kind: Schema.Literal<"person">;
|
|
19242
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19243
|
-
}>, Schema.Struct<{
|
|
19244
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19245
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
19246
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19247
|
-
}>, Schema.Struct<{
|
|
19248
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19249
|
-
readonly agent: Schema.Struct<{
|
|
19250
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19251
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19252
|
-
}>;
|
|
19253
|
-
}>]>;
|
|
19254
|
-
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
19255
|
-
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
19256
|
-
readonly kind: Schema.Literal<"person">;
|
|
19257
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19258
|
-
}>, Schema.Struct<{
|
|
19259
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19260
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19261
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19262
|
-
}>, Schema.Struct<{
|
|
19263
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
19264
|
-
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")[]>;
|
|
19265
|
-
}>]>;
|
|
19266
|
-
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
19267
|
-
}>>;
|
|
19268
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19269
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19469
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never>, false>;
|
|
19270
19470
|
/**
|
|
19271
19471
|
* An organization's grants (layer 1): any person lists those they may see; an admin gives one or
|
|
19272
19472
|
* takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
|
|
@@ -19274,7 +19474,24 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
19274
19474
|
* `OrganizationNotFound`.
|
|
19275
19475
|
*/
|
|
19276
19476
|
declare class GrantsGroup extends GrantsGroup_base {}
|
|
19277
|
-
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19477
|
+
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19478
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19479
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19480
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19481
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
19482
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19483
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
19484
|
+
readonly agent: Schema.Struct<{
|
|
19485
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19486
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19487
|
+
}>;
|
|
19488
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19489
|
+
readonly generation: Schema.Int;
|
|
19490
|
+
readonly turnedOff: Schema.Boolean;
|
|
19491
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19492
|
+
}>>;
|
|
19493
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19494
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
|
|
19278
19495
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19279
19496
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19280
19497
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -19286,10 +19503,11 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19286
19503
|
readonly generation: Schema.Int;
|
|
19287
19504
|
readonly turnedOff: Schema.Boolean;
|
|
19288
19505
|
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19289
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19506
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19290
19507
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19291
|
-
|
|
19292
|
-
|
|
19508
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19509
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19510
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19293
19511
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19294
19512
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19295
19513
|
readonly agent: Schema.Struct<{
|
|
@@ -19299,7 +19517,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19299
19517
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19300
19518
|
readonly generation: Schema.Int;
|
|
19301
19519
|
readonly turnedOff: Schema.Boolean;
|
|
19302
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19520
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
19303
19521
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19304
19522
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19305
19523
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -19312,11 +19530,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19312
19530
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19313
19531
|
readonly generation: Schema.Int;
|
|
19314
19532
|
readonly turnedOff: Schema.Boolean;
|
|
19315
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19533
|
+
}>>, 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<{
|
|
19316
19534
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19535
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19536
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19320
19537
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19321
19538
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19322
19539
|
readonly agent: Schema.Struct<{
|
|
@@ -19326,24 +19543,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19326
19543
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19327
19544
|
readonly generation: Schema.Int;
|
|
19328
19545
|
readonly turnedOff: Schema.Boolean;
|
|
19329
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19330
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19331
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19332
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19333
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
19334
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19335
|
-
readonly agents: Schema.$Array<Schema.Struct<{
|
|
19336
|
-
readonly agent: Schema.Struct<{
|
|
19337
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19338
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19339
|
-
}>;
|
|
19340
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19341
|
-
readonly generation: Schema.Int;
|
|
19342
|
-
readonly turnedOff: Schema.Boolean;
|
|
19343
|
-
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19344
|
-
}>>;
|
|
19345
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19346
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19546
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19347
19547
|
/**
|
|
19348
19548
|
* An owner's agents (layer 1): an organization's members, or a person themselves, read them and
|
|
19349
19549
|
* turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
|
|
@@ -19396,7 +19596,34 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
19396
19596
|
* decides. People only, by approval.
|
|
19397
19597
|
*/
|
|
19398
19598
|
declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
|
|
19399
|
-
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19599
|
+
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
19600
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19601
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19602
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19603
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
19604
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19605
|
+
readonly disables: Schema.$Array<Schema.Struct<{
|
|
19606
|
+
readonly agent: Schema.Struct<{
|
|
19607
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19608
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19609
|
+
}>;
|
|
19610
|
+
readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
19611
|
+
readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
|
|
19612
|
+
readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
|
|
19613
|
+
readonly kind: Schema.Literal<"person">;
|
|
19614
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19615
|
+
}>, Schema.Struct<{
|
|
19616
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19617
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19618
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19619
|
+
}>, Schema.Struct<{
|
|
19620
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
19621
|
+
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")[]>;
|
|
19622
|
+
}>]>;
|
|
19623
|
+
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
19624
|
+
}>>;
|
|
19625
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19626
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
19400
19627
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19401
19628
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19402
19629
|
readonly agent: Schema.Struct<{
|
|
@@ -19412,7 +19639,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
19412
19639
|
}>;
|
|
19413
19640
|
readonly targetGeneration: Schema.Int;
|
|
19414
19641
|
readonly turnedOff: Schema.Boolean;
|
|
19415
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19642
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
19416
19643
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19417
19644
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19418
19645
|
readonly agent: Schema.Struct<{
|
|
@@ -19428,34 +19655,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
19428
19655
|
}>;
|
|
19429
19656
|
readonly targetGeneration: Schema.Int;
|
|
19430
19657
|
readonly turnedOff: Schema.Boolean;
|
|
19431
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never
|
|
19432
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19433
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19434
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19435
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
19436
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19437
|
-
readonly disables: Schema.$Array<Schema.Struct<{
|
|
19438
|
-
readonly agent: Schema.Struct<{
|
|
19439
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19440
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19441
|
-
}>;
|
|
19442
|
-
readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
19443
|
-
readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
|
|
19444
|
-
readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
|
|
19445
|
-
readonly kind: Schema.Literal<"person">;
|
|
19446
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19447
|
-
}>, Schema.Struct<{
|
|
19448
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19449
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19450
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19451
|
-
}>, Schema.Struct<{
|
|
19452
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
19453
|
-
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")[]>;
|
|
19454
|
-
}>]>;
|
|
19455
|
-
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
19456
|
-
}>>;
|
|
19457
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19458
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19658
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19459
19659
|
/**
|
|
19460
19660
|
* Agents of other owners an organization's admin turns off there (layer 1), such as a member's
|
|
19461
19661
|
* own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
|
|
@@ -21650,6 +21850,9 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
21650
21850
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
21651
21851
|
}>>;
|
|
21652
21852
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
21853
|
+
readonly cnf: Schema.optionalKey<Schema.Struct<{
|
|
21854
|
+
readonly jkt: Schema.brand<Schema.String, "KeyThumbprint">;
|
|
21855
|
+
}>>;
|
|
21653
21856
|
}>;
|
|
21654
21857
|
} & {
|
|
21655
21858
|
readonly seq: Schema.Int;
|
|
@@ -26629,6 +26832,27 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
26629
26832
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
26630
26833
|
}>>;
|
|
26631
26834
|
readonly more: Schema.Int;
|
|
26835
|
+
readonly toolTime: Schema.Union<readonly [Schema.Struct<{
|
|
26836
|
+
readonly known: Schema.Literal<"timed">;
|
|
26837
|
+
readonly totalMs: Schema.Int;
|
|
26838
|
+
readonly longest: Schema.optionalKey<Schema.Struct<{
|
|
26839
|
+
readonly tool: Schema.String;
|
|
26840
|
+
readonly ms: Schema.Int;
|
|
26841
|
+
}>>;
|
|
26842
|
+
}>, Schema.Struct<{
|
|
26843
|
+
readonly known: Schema.Literal<"unknown">;
|
|
26844
|
+
}>]>;
|
|
26845
|
+
readonly context: Schema.Union<readonly [Schema.Struct<{
|
|
26846
|
+
readonly known: Schema.Literal<"read">;
|
|
26847
|
+
readonly peak: Schema.optionalKey<Schema.Int>;
|
|
26848
|
+
readonly compactions: Schema.$Array<Schema.Struct<{
|
|
26849
|
+
readonly trigger: Schema.optionalKey<Schema.Literals<readonly ["auto", "manual"]>>;
|
|
26850
|
+
readonly afterMs: Schema.optionalKey<Schema.Int>;
|
|
26851
|
+
}>>;
|
|
26852
|
+
}>, Schema.Struct<{
|
|
26853
|
+
readonly known: Schema.Literal<"unknown">;
|
|
26854
|
+
}>]>;
|
|
26855
|
+
readonly moreSubagents: Schema.Int;
|
|
26632
26856
|
readonly tokens: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
26633
26857
|
readonly known: Schema.Literal<"read">;
|
|
26634
26858
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -26641,6 +26865,21 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
26641
26865
|
}>, Schema.Struct<{
|
|
26642
26866
|
readonly known: Schema.Literal<"unknown">;
|
|
26643
26867
|
}>]>>;
|
|
26868
|
+
readonly subagents: Schema.$Array<Schema.Struct<{
|
|
26869
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
26870
|
+
readonly tokens: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
26871
|
+
readonly known: Schema.Literal<"read">;
|
|
26872
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
26873
|
+
readonly model: Schema.String;
|
|
26874
|
+
readonly input: Schema.Int;
|
|
26875
|
+
readonly output: Schema.Int;
|
|
26876
|
+
readonly cacheWrite: Schema.Int;
|
|
26877
|
+
readonly cacheRead: Schema.Int;
|
|
26878
|
+
}>>;
|
|
26879
|
+
}>, Schema.Struct<{
|
|
26880
|
+
readonly known: Schema.Literal<"unknown">;
|
|
26881
|
+
}>]>>;
|
|
26882
|
+
}>>;
|
|
26644
26883
|
}>>;
|
|
26645
26884
|
readonly tasks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
26646
26885
|
readonly text: Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">;
|
|
@@ -29769,5 +30008,5 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
29769
30008
|
}>]>;
|
|
29770
30009
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
29771
30010
|
//#endregion
|
|
29772
|
-
export {
|
|
29773
|
-
//# sourceMappingURL=index-
|
|
30011
|
+
export { LiveTicketRequest as $, liveSocketUrl as $n, TypedApprovalCode as $t, ConnectionCall as A, WorkflowOwn as An, SandboxExec as At, EndpointName as B, WorkflowRequestRefusal as Bn, SentryRegion as Bt, ClientGranted as C, WorkflowCheckStates as Cn, RanOf as Ct, ConnectFolderOption as D, WorkflowConnections as Dn, RepoUrl as Dt, ConnectFolderChoices as E, WorkflowComment as En, RepoName as Et, ConnectionView as F, WorkflowPasskeyState as Fn, SandboxPushAnswer as Ft, GateOwn as G, WorkflowTrigger as Gn, StartActor as Gt, FoldersConnected as H, WorkflowStartState as Hn, SignInDestination as Ht, ConsentAsked as I, WorkflowPermissions as In, SandboxSize as It, ImportFailure as J, connectEndpoint as Jn, ThreadId as Jt, GetIssueInput as K, WrittenProject as Kn, StartRun as Kt, ConsentClient as L, WorkflowPreview as Ln, ScopeAction as Lt, ConnectionChanged as M, WorkflowPasskeyAsked as Mn, SandboxOpen as Mt, ConnectionKind as N, WorkflowPasskeyEnded as Nn, SandboxOpenAnswer as Nt, ConnectOptions as O, WorkflowEvent as On, RepoView as Ot, ConnectionName as P, WorkflowPasskeyRead as Pn, SandboxPush as Pt, LiveTicket as Q, isRef0Path as Qn, TrackThread as Qt, ConsentProject as R, WorkflowPullRequestAnswer as Rn, SecretHash as Rt, ClientAccess as S, WorkflowCheckStartAnswer as Sn, PublicJwk as St, ConnectChosen as T, WorkflowCheckWhere as Tn, Ref0Owned as Tt, ForkAnswer as U, WorkflowText as Un, SignedIn as Ut, EventRunInput as V, WorkflowStartEnded as Vn, SentryToken as Vt, ForkCreate as W, WorkflowThreadStart as Wn, SocketUrl as Wt, KeyProof as X, hookTokenPrefix as Xn, TrackClosed as Xt, InvalidDpopProof as Y, encodeSecret as Yn, ThreadStage as Yt, KeyStoreUnavailable as Z, hookUrl as Zn, TrackSession as Zt, CheckOn as _, WorkflowCheckResults as _n, PreviewEcho as _t, AnswerKey as a, WorkflowAsk as an, NamedDecision as at, CheckRunParams as b, WorkflowCheckRunEnded as bn, ProjectTrackMessage as bt, ApprovalAnswer as c, WorkflowCallAnswer as cn, OwnerThreadPage as ct, ApprovalState as d, WorkflowCallRefusal as dn, PasskeyAsserted as dt, VersionFile as en, projectParts as er, LiveTrackName as et, ApprovalView as f, WorkflowCallRefused as fn, PasskeyCreated as ft, ChangeAuthor as g, WorkflowCheckRefused as gn, PasskeyRequestOptions as gt, Authorization as h, WorkflowCheckRefusal as hn, PasskeyRefusal as ht, AgentView as i, WorkflowAnswerer as in, MirrorView as it, ConnectionCallAnswer as j, WorkflowPasskeyAsk as jn, SandboxExecAnswer as jt, ConnectableAgent as k, WorkflowFilters as kn, RequestFolder as kt, ApprovalId as l, WorkflowCallEnded as ln, OwnerThreadView as lt, AttachmentRequestView as m, WorkflowCalledStateAnswer as mn, PasskeyFrom as mt, AgentPermissionChoice as n, WorkflowAction as nn, surfaceOf as nr, MirrorChoice as nt, Api as o, WorkflowAskClosed as on, OwnerId as ot, AttachmentFailed as p, WorkflowCalledState as pn, PasskeyCreationOptions as pt, Harness as q, commandLine as qn, StatementView as qt, AgentPermissionSetting as r, WorkflowActionAnswer as rn, threadParts as rr, MirrorEntry as rt, ApiOrigin as s, WorkflowCall as sn, OwnerName as st, AgentHandle as t, Welcome as tn, repoNameKey as tr, MachineConnected as tt, ApprovalPreview as u, WorkflowCallInput as un, OwnerTrackMessage as ut, CheckOwn as v, WorkflowCheckResultsAnswer as vn, PreviewUnavailable as vt, ConnectAgent as w, WorkflowCheckStatesAnswer as wn, ReadEvent as wt, CheckTreeEntry as x, WorkflowCheckStart as xn, ProofOrigin as xt, CheckRunError as y, WorkflowCheckRun as yn, ProjectName as yt, CredentialView as z, WorkflowPullRequestOpen as zn, SentryOrg as zt };
|
|
30012
|
+
//# sourceMappingURL=index-DRFaIKvW.d.mts.map
|