@ref0/sdk 0.12.1 → 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.
|
@@ -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;
|
|
@@ -2494,6 +2574,12 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2494
2574
|
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof AttachmentNotFound>, ApprovalSecret, never> | HttpApiEndpoint.HttpApiEndpoint<"request", "POST", "/v1/attachments/requests", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2495
2575
|
readonly machine: Schema.brand<Schema.TemplateLiteral<readonly ["machine_", Schema.String]>, "MachineId">;
|
|
2496
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>>;
|
|
2497
2583
|
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2498
2584
|
readonly path: Schema.String;
|
|
2499
2585
|
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
@@ -2512,11 +2598,12 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2512
2598
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2513
2599
|
readonly code: Schema.String;
|
|
2514
2600
|
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2515
|
-
}>>, 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>;
|
|
2516
2602
|
/**
|
|
2517
2603
|
* Connecting a machine, the machine's side: asking, with no credential, to connect to one owner's
|
|
2518
|
-
* agent, whose terminal shows the code their person types
|
|
2519
|
-
* 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.
|
|
2520
2607
|
*/
|
|
2521
2608
|
declare class MachineAttachmentsGroup extends MachineAttachmentsGroup_base {}
|
|
2522
2609
|
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/approvals", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -3339,12 +3426,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3339
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"]>;
|
|
3340
3427
|
}>>;
|
|
3341
3428
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3342
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3343
|
-
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
3344
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3345
|
-
readonly token: Schema.brand<Schema.String, "IdentityToken">;
|
|
3346
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3347
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof SessionHasEnded | typeof SlowDown | typeof IdentityAudienceRefused | typeof IdentityTokenNotReady>, Authorization | IdentityAudienceRefusal, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3429
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3348
3430
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3349
3431
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3350
3432
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -3416,10 +3498,6 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3416
3498
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3417
3499
|
}>]>;
|
|
3418
3500
|
}>>;
|
|
3419
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3420
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3421
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3422
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3423
3501
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3424
3502
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3425
3503
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -3452,7 +3530,16 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3452
3530
|
readonly harness: Schema.String;
|
|
3453
3531
|
}>>;
|
|
3454
3532
|
readonly pricesAsOf: Schema.String;
|
|
3455
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never
|
|
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<{
|
|
3534
|
+
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
3535
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3536
|
+
readonly token: Schema.brand<Schema.String, "IdentityToken">;
|
|
3537
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
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>;
|
|
3456
3543
|
declare class MeGroup extends MeGroup_base {}
|
|
3457
3544
|
declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
|
|
3458
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">]>;
|
|
@@ -5422,6 +5509,27 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5422
5509
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
5423
5510
|
}>>;
|
|
5424
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;
|
|
5425
5533
|
readonly tokens: Schema.Union<readonly [Schema.Struct<{
|
|
5426
5534
|
readonly known: Schema.Literal<"read">;
|
|
5427
5535
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -5434,6 +5542,21 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5434
5542
|
}>, Schema.Struct<{
|
|
5435
5543
|
readonly known: Schema.Literal<"unknown">;
|
|
5436
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
|
+
}>>;
|
|
5437
5560
|
readonly stoppedAfterMs: Schema.optionalKey<Schema.Int>;
|
|
5438
5561
|
}>;
|
|
5439
5562
|
}>>;
|
|
@@ -5454,6 +5577,27 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5454
5577
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
5455
5578
|
}>>;
|
|
5456
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;
|
|
5457
5601
|
readonly tokens: Schema.Union<readonly [Schema.Struct<{
|
|
5458
5602
|
readonly known: Schema.Literal<"read">;
|
|
5459
5603
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -5466,6 +5610,21 @@ declare const SessionsGroup_base: HttpApiGroup.HttpApiGroup<"sessions", HttpApiE
|
|
|
5466
5610
|
}>, Schema.Struct<{
|
|
5467
5611
|
readonly known: Schema.Literal<"unknown">;
|
|
5468
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
|
+
}>>;
|
|
5469
5628
|
readonly stoppedAfterMs: Schema.optionalKey<Schema.Int>;
|
|
5470
5629
|
}>;
|
|
5471
5630
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -6349,6 +6508,9 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
|
|
|
6349
6508
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
6350
6509
|
}>>;
|
|
6351
6510
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
6511
|
+
readonly cnf: Schema.optionalKey<Schema.Struct<{
|
|
6512
|
+
readonly jkt: Schema.brand<Schema.String, "KeyThumbprint">;
|
|
6513
|
+
}>>;
|
|
6352
6514
|
}>;
|
|
6353
6515
|
} & {
|
|
6354
6516
|
readonly seq: Schema.Int;
|
|
@@ -11328,6 +11490,27 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
|
|
|
11328
11490
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
11329
11491
|
}>>;
|
|
11330
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;
|
|
11331
11514
|
readonly tokens: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
11332
11515
|
readonly known: Schema.Literal<"read">;
|
|
11333
11516
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -11340,6 +11523,21 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpo
|
|
|
11340
11523
|
}>, Schema.Struct<{
|
|
11341
11524
|
readonly known: Schema.Literal<"unknown">;
|
|
11342
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
|
+
}>>;
|
|
11343
11541
|
}>>;
|
|
11344
11542
|
readonly tasks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11345
11543
|
readonly text: Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">;
|
|
@@ -13024,50 +13222,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13024
13222
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13025
13223
|
}>>;
|
|
13026
13224
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13027
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13028
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13029
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13030
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13031
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13032
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13033
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13034
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13035
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13036
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13037
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13038
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13039
|
-
readonly kind: Schema.Literal<"project">;
|
|
13040
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13041
|
-
}>, Schema.Struct<{
|
|
13042
|
-
readonly kind: Schema.Literal<"owner">;
|
|
13043
|
-
}>]>;
|
|
13044
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13045
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13046
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13047
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13048
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
13049
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13050
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13051
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13052
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13053
|
-
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13054
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13055
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13056
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13057
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13058
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13059
|
-
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13060
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13061
|
-
readonly kind: Schema.Literal<"project">;
|
|
13062
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13063
|
-
}>, Schema.Struct<{
|
|
13064
|
-
readonly kind: Schema.Literal<"owner">;
|
|
13065
|
-
}>]>;
|
|
13066
|
-
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13067
|
-
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13068
|
-
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13069
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13070
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13225
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13071
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">]>;
|
|
13072
13227
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13073
13228
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13179,37 +13334,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13179
13334
|
}>]>;
|
|
13180
13335
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13181
13336
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13182
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13183
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13184
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13185
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13186
|
-
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
13187
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13188
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13189
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13190
|
-
readonly kind: Schema.Literal<"none">;
|
|
13191
|
-
}>, Schema.Struct<{
|
|
13192
|
-
readonly kind: Schema.Literal<"github">;
|
|
13193
|
-
readonly branch: Schema.String;
|
|
13194
|
-
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13195
|
-
readonly state: Schema.Literal<"on">;
|
|
13196
|
-
}>, Schema.Struct<{
|
|
13197
|
-
readonly state: Schema.Literal<"paused">;
|
|
13198
|
-
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13199
|
-
readonly why: Schema.Literal<"diverged">;
|
|
13200
|
-
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13201
|
-
}>, Schema.Struct<{
|
|
13202
|
-
readonly why: Schema.Literal<"refused">;
|
|
13203
|
-
readonly said: Schema.String;
|
|
13204
|
-
}>, Schema.Struct<{
|
|
13205
|
-
readonly why: Schema.Literal<"unauthorized">;
|
|
13206
|
-
}>]>;
|
|
13207
|
-
}>, Schema.Struct<{
|
|
13208
|
-
readonly state: Schema.Literal<"off">;
|
|
13209
|
-
}>]>;
|
|
13210
|
-
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13211
|
-
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13212
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13337
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13213
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">]>;
|
|
13214
13339
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13215
13340
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -14095,7 +14220,50 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
14095
14220
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
14096
14221
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
14097
14222
|
}>]>>>;
|
|
14098
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
14223
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">]>;
|
|
14225
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14226
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
14227
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
14228
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14229
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
14230
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
14231
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
14232
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14233
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
14234
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
14235
|
+
readonly kind: Schema.Literal<"project">;
|
|
14236
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
14237
|
+
}>, Schema.Struct<{
|
|
14238
|
+
readonly kind: Schema.Literal<"owner">;
|
|
14239
|
+
}>]>;
|
|
14240
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
14241
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
14242
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
14243
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14244
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
14245
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14246
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14247
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
14248
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
14249
|
+
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
14250
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14251
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
14252
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
14253
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
14254
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14255
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
14256
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
14257
|
+
readonly kind: Schema.Literal<"project">;
|
|
14258
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
14259
|
+
}>, Schema.Struct<{
|
|
14260
|
+
readonly kind: Schema.Literal<"owner">;
|
|
14261
|
+
}>]>;
|
|
14262
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
14263
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
14264
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
14265
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14266
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
|
|
14099
14267
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14100
14268
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14101
14269
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -14147,25 +14315,55 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
14147
14315
|
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
14148
14316
|
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
14149
14317
|
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
14150
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never
|
|
14151
|
-
/**
|
|
14152
|
-
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
14153
|
-
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
14154
|
-
*/
|
|
14155
|
-
declare class ReposGroup extends ReposGroup_base {}
|
|
14156
|
-
declare const PlansGroup_base: HttpApiGroup.HttpApiGroup<"plans", HttpApiEndpoint.HttpApiEndpoint<"comment", "POST", "/v1/projects/:owner/:project/threads/:number/plans/:version/comments", Schema.toCodecStringTree<Schema.Struct<{
|
|
14318
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
14157
14319
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14158
|
-
|
|
14159
|
-
} & {
|
|
14160
|
-
number: Schema.Int;
|
|
14161
|
-
version: Schema.Int;
|
|
14320
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14162
14321
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14163
|
-
readonly
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14322
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
14323
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14324
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
14325
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
14326
|
+
readonly kind: Schema.Literal<"none">;
|
|
14327
|
+
}>, Schema.Struct<{
|
|
14328
|
+
readonly kind: Schema.Literal<"github">;
|
|
14329
|
+
readonly branch: Schema.String;
|
|
14330
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
14331
|
+
readonly state: Schema.Literal<"on">;
|
|
14332
|
+
}>, Schema.Struct<{
|
|
14333
|
+
readonly state: Schema.Literal<"paused">;
|
|
14334
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
14335
|
+
readonly why: Schema.Literal<"diverged">;
|
|
14336
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
14337
|
+
}>, Schema.Struct<{
|
|
14338
|
+
readonly why: Schema.Literal<"refused">;
|
|
14339
|
+
readonly said: Schema.String;
|
|
14340
|
+
}>, Schema.Struct<{
|
|
14341
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
14342
|
+
}>]>;
|
|
14343
|
+
}>, Schema.Struct<{
|
|
14344
|
+
readonly state: Schema.Literal<"off">;
|
|
14345
|
+
}>]>;
|
|
14346
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
14347
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
14348
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never>, false>;
|
|
14349
|
+
/**
|
|
14350
|
+
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
14351
|
+
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
14352
|
+
*/
|
|
14353
|
+
declare class ReposGroup extends ReposGroup_base {}
|
|
14354
|
+
declare const PlansGroup_base: HttpApiGroup.HttpApiGroup<"plans", HttpApiEndpoint.HttpApiEndpoint<"comment", "POST", "/v1/projects/:owner/:project/threads/:number/plans/:version/comments", Schema.toCodecStringTree<Schema.Struct<{
|
|
14355
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14356
|
+
project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
14357
|
+
} & {
|
|
14358
|
+
number: Schema.Int;
|
|
14359
|
+
version: Schema.Int;
|
|
14360
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14361
|
+
readonly to: Schema.Union<readonly [Schema.Struct<{
|
|
14362
|
+
readonly kind: Schema.Literal<"person">;
|
|
14363
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
14364
|
+
}>, Schema.Struct<{
|
|
14365
|
+
readonly kind: Schema.Literal<"agent">;
|
|
14366
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
14169
14367
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14170
14368
|
}>, Schema.Struct<{
|
|
14171
14369
|
readonly kind: Schema.Literal<"session">;
|
|
@@ -17800,106 +17998,7 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17800
17998
|
* person.
|
|
17801
17999
|
*/
|
|
17802
18000
|
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17803
|
-
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17804
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17805
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17806
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17807
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17808
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17809
|
-
}>, Schema.Struct<{
|
|
17810
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17811
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
17812
|
-
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17813
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17814
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17815
|
-
}>, Schema.Struct<{
|
|
17816
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17817
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
17818
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17819
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17820
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17821
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17822
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17823
|
-
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17824
|
-
readonly kind: Schema.Literal<"main">;
|
|
17825
|
-
}>, Schema.Struct<{
|
|
17826
|
-
readonly kind: Schema.Literal<"thread">;
|
|
17827
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17828
|
-
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17829
|
-
}>]>;
|
|
17830
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17831
|
-
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17832
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17833
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17834
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17835
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17836
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17837
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17838
|
-
readonly rerun: Schema.Int;
|
|
17839
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17840
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17841
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17842
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17843
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17844
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17845
|
-
}>, Schema.Struct<{
|
|
17846
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17847
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17848
|
-
readonly rerun: Schema.Int;
|
|
17849
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17850
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17851
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17852
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17853
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17854
|
-
readonly state: Schema.Literal<"ended">;
|
|
17855
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17856
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17857
|
-
}>, Schema.Struct<{
|
|
17858
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17859
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17860
|
-
readonly rerun: Schema.Int;
|
|
17861
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17862
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17863
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17864
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17865
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17866
|
-
readonly state: Schema.Literal<"ended">;
|
|
17867
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17868
|
-
}>]>>;
|
|
17869
|
-
}>, Schema.Struct<{
|
|
17870
|
-
readonly waiting: Schema.Struct<{
|
|
17871
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17872
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17873
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17874
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17875
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17876
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17877
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17878
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17879
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17880
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17881
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17882
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17883
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17884
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17885
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17886
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17887
|
-
readonly kind: Schema.Literal<"person">;
|
|
17888
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17889
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17890
|
-
}>, Schema.Struct<{
|
|
17891
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17892
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17893
|
-
}>, Schema.Struct<{
|
|
17894
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17895
|
-
readonly permission: Schema.String;
|
|
17896
|
-
}>]>>;
|
|
17897
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17898
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17899
|
-
}>>;
|
|
17900
|
-
}>>;
|
|
17901
|
-
}>;
|
|
17902
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
18001
|
+
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17903
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">]>;
|
|
17904
18003
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17905
18004
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18304,7 +18403,96 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18304
18403
|
}>;
|
|
18305
18404
|
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
18306
18405
|
}>;
|
|
18307
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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">;
|
|
18433
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18434
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18435
|
+
}>, Schema.Struct<{
|
|
18436
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18437
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18438
|
+
readonly rerun: Schema.Int;
|
|
18439
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
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
|
+
}>>;
|
|
18478
|
+
}>>;
|
|
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<{
|
|
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">]>;
|
|
18482
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18483
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18484
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18485
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18486
|
+
}>, Schema.Struct<{
|
|
18487
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18488
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18489
|
+
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18490
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18491
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18492
|
+
}>, Schema.Struct<{
|
|
18493
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18494
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
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<{
|
|
18308
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">]>;
|
|
18309
18497
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18310
18498
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -18568,13 +18756,31 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18568
18756
|
readonly state: Schema.Literal<"ended">;
|
|
18569
18757
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18570
18758
|
}>]>;
|
|
18571
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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<{
|
|
18572
18760
|
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18573
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">]>;
|
|
18574
18762
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18575
18763
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18576
18764
|
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18577
|
-
}>>, never, never, Schema.toCodecJson<Schema.
|
|
18765
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18766
|
+
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
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<{
|
|
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">]>;
|
|
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">>;
|
|
18781
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18782
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18783
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18578
18784
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18579
18785
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18580
18786
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -18642,15 +18848,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18642
18848
|
}>>;
|
|
18643
18849
|
}>>;
|
|
18644
18850
|
}>;
|
|
18645
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof
|
|
18646
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18647
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18648
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18649
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18650
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18651
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18652
|
-
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
18653
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never>, false>;
|
|
18851
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never>, false>;
|
|
18654
18852
|
/**
|
|
18655
18853
|
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
18656
18854
|
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
@@ -18662,7 +18860,23 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18662
18860
|
* in.
|
|
18663
18861
|
*/
|
|
18664
18862
|
declare class RunsGroup extends RunsGroup_base {}
|
|
18665
|
-
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18863
|
+
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
|
|
18864
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18865
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18866
|
+
readonly request: Schema.String;
|
|
18867
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18868
|
+
readonly client: Schema.String;
|
|
18869
|
+
readonly origin: Schema.String;
|
|
18870
|
+
readonly returnsTo: Schema.String;
|
|
18871
|
+
readonly says: Schema.optionalKey<Schema.String>;
|
|
18872
|
+
readonly expiresAt: Schema.String;
|
|
18873
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/owners/:owner/client-grants/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18874
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18875
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18876
|
+
readonly request: Schema.String;
|
|
18877
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18878
|
+
readonly redirect: Schema.String;
|
|
18879
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18666
18880
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18667
18881
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18668
18882
|
readonly client: Schema.String;
|
|
@@ -18687,22 +18901,6 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18687
18901
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18688
18902
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18689
18903
|
readonly redirect: Schema.String;
|
|
18690
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
|
|
18691
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18692
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18693
|
-
readonly request: Schema.String;
|
|
18694
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18695
|
-
readonly client: Schema.String;
|
|
18696
|
-
readonly origin: Schema.String;
|
|
18697
|
-
readonly returnsTo: Schema.String;
|
|
18698
|
-
readonly says: Schema.optionalKey<Schema.String>;
|
|
18699
|
-
readonly expiresAt: Schema.String;
|
|
18700
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/owners/:owner/client-grants/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18701
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18702
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18703
|
-
readonly request: Schema.String;
|
|
18704
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18705
|
-
readonly redirect: Schema.String;
|
|
18706
18904
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never>, false>;
|
|
18707
18905
|
/**
|
|
18708
18906
|
* Client grants (layer 4, PR 11a): an outside MCP client's consent on `/connect/app`. Granting
|
|
@@ -18719,33 +18917,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18719
18917
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18720
18918
|
}>>;
|
|
18721
18919
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18722
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18723
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18724
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18725
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18726
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18727
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18728
|
-
readonly kind: Schema.Literal<"person">;
|
|
18729
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18730
|
-
}>, Schema.Struct<{
|
|
18731
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18732
|
-
readonly agent: Schema.Struct<{
|
|
18733
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18734
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18735
|
-
}>;
|
|
18736
|
-
}>]>;
|
|
18737
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18738
|
-
}>>, 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<{
|
|
18739
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18740
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18741
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18742
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18743
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18744
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18745
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18746
|
-
readonly displayName: Schema.String;
|
|
18747
|
-
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18748
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18920
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18749
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">]>;
|
|
18750
18922
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18751
18923
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18963,7 +19135,33 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18963
19135
|
}>>;
|
|
18964
19136
|
}>;
|
|
18965
19137
|
readonly pricesAsOf: Schema.String;
|
|
18966
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never
|
|
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<{
|
|
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>;
|
|
19157
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
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>;
|
|
18967
19165
|
/**
|
|
18968
19166
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18969
19167
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
@@ -18990,12 +19188,10 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18990
19188
|
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18991
19189
|
}>>;
|
|
18992
19190
|
readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
18993
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19191
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18994
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">]>;
|
|
18995
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">]>;
|
|
18996
|
-
}>>, never, Schema.
|
|
18997
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18998
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19194
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18999
19195
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19000
19196
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19001
19197
|
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -19008,11 +19204,13 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
19008
19204
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19009
19205
|
}>;
|
|
19010
19206
|
}>]>;
|
|
19011
|
-
readonly
|
|
19012
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19207
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
19208
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setRole", "PATCH", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
19013
19209
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19014
19210
|
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">]>;
|
|
19015
|
-
}>>, never,
|
|
19211
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19212
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19213
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19016
19214
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19017
19215
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19018
19216
|
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -19025,7 +19223,7 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
19025
19223
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19026
19224
|
}>;
|
|
19027
19225
|
}>]>;
|
|
19028
|
-
readonly
|
|
19226
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19029
19227
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19030
19228
|
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
19031
19229
|
declare class MembersGroup extends MembersGroup_base {}
|
|
@@ -19042,25 +19240,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
19042
19240
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19043
19241
|
}>>;
|
|
19044
19242
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19045
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19046
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19047
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19048
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19049
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19050
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19051
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19052
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19053
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19054
|
-
}>>, 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<{
|
|
19055
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19056
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19057
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19058
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19059
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19060
|
-
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19061
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19062
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19063
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19243
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19064
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">]>;
|
|
19065
19245
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19066
19246
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
@@ -19079,7 +19259,32 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
19079
19259
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19080
19260
|
}>>;
|
|
19081
19261
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19082
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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">]>;
|
|
19264
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19265
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19266
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19267
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19268
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
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<{
|
|
19270
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19271
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19272
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19273
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19274
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19275
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19276
|
+
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19277
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
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<{
|
|
19279
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19280
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19281
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19282
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19283
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
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<{
|
|
19083
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">]>;
|
|
19084
19289
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19085
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">]>;
|
|
@@ -19094,14 +19299,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
19094
19299
|
}>;
|
|
19095
19300
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19096
19301
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19097
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never
|
|
19098
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19099
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19100
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19101
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19102
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19103
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19104
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19302
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never>, false>;
|
|
19105
19303
|
/**
|
|
19106
19304
|
* Invitations: an organization's admins send, list and withdraw them; the person invited lists
|
|
19107
19305
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
@@ -19276,21 +19474,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
19276
19474
|
* `OrganizationNotFound`.
|
|
19277
19475
|
*/
|
|
19278
19476
|
declare class GrantsGroup extends GrantsGroup_base {}
|
|
19279
|
-
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19280
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19281
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19282
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19283
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19284
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19285
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19286
|
-
readonly agent: Schema.Struct<{
|
|
19287
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19288
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19289
|
-
}>;
|
|
19290
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19291
|
-
readonly generation: Schema.Int;
|
|
19292
|
-
readonly turnedOff: Schema.Boolean;
|
|
19293
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19477
|
+
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19294
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">]>;
|
|
19295
19479
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19296
19480
|
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
@@ -19319,7 +19503,21 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19319
19503
|
readonly generation: Schema.Int;
|
|
19320
19504
|
readonly turnedOff: Schema.Boolean;
|
|
19321
19505
|
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19322
|
-
}>>, 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<{
|
|
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">]>;
|
|
19508
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19509
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19510
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19511
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19512
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19513
|
+
readonly agent: Schema.Struct<{
|
|
19514
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19515
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19516
|
+
}>;
|
|
19517
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19518
|
+
readonly generation: Schema.Int;
|
|
19519
|
+
readonly turnedOff: Schema.Boolean;
|
|
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<{
|
|
19323
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">]>;
|
|
19324
19522
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19325
19523
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -19353,15 +19551,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19353
19551
|
* its machines' host grants by the agent's ID.
|
|
19354
19552
|
*/
|
|
19355
19553
|
declare class AgentsGroup extends AgentsGroup_base {}
|
|
19356
|
-
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19554
|
+
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
19357
19555
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19361
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19362
|
-
}>;
|
|
19363
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19364
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19556
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19557
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19365
19558
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19366
19559
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19367
19560
|
readonly agent: Schema.Struct<{
|
|
@@ -19374,10 +19567,15 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
19374
19567
|
}>;
|
|
19375
19568
|
readonly generation: Schema.Int;
|
|
19376
19569
|
readonly authorized: Schema.Boolean;
|
|
19377
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19570
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19378
19571
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19379
|
-
|
|
19380
|
-
|
|
19572
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19573
|
+
readonly agent: Schema.Struct<{
|
|
19574
|
+
readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19575
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19576
|
+
}>;
|
|
19577
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19578
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19381
19579
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19382
19580
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19383
19581
|
readonly agent: Schema.Struct<{
|
|
@@ -19390,7 +19588,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
19390
19588
|
}>;
|
|
19391
19589
|
readonly generation: Schema.Int;
|
|
19392
19590
|
readonly authorized: Schema.Boolean;
|
|
19393
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19591
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19394
19592
|
/**
|
|
19395
19593
|
* A member's own agent working in an organization (layer 1): its person authorizes an attachment
|
|
19396
19594
|
* of it there, by its credential's ID, or takes that back. The Worker checks the attachment is
|
|
@@ -19425,7 +19623,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
19425
19623
|
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
19426
19624
|
}>>;
|
|
19427
19625
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19428
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19626
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
19429
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">]>;
|
|
19430
19628
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19431
19629
|
readonly agent: Schema.Struct<{
|
|
@@ -19441,7 +19639,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
19441
19639
|
}>;
|
|
19442
19640
|
readonly targetGeneration: Schema.Int;
|
|
19443
19641
|
readonly turnedOff: Schema.Boolean;
|
|
19444
|
-
}>>, 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<{
|
|
19445
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">]>;
|
|
19446
19644
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19447
19645
|
readonly agent: Schema.Struct<{
|
|
@@ -21652,6 +21850,9 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
21652
21850
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
21653
21851
|
}>>;
|
|
21654
21852
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
21853
|
+
readonly cnf: Schema.optionalKey<Schema.Struct<{
|
|
21854
|
+
readonly jkt: Schema.brand<Schema.String, "KeyThumbprint">;
|
|
21855
|
+
}>>;
|
|
21655
21856
|
}>;
|
|
21656
21857
|
} & {
|
|
21657
21858
|
readonly seq: Schema.Int;
|
|
@@ -26631,6 +26832,27 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
26631
26832
|
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
26632
26833
|
}>>;
|
|
26633
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;
|
|
26634
26856
|
readonly tokens: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
26635
26857
|
readonly known: Schema.Literal<"read">;
|
|
26636
26858
|
readonly models: Schema.$Array<Schema.Struct<{
|
|
@@ -26643,6 +26865,21 @@ declare const ReadEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.St
|
|
|
26643
26865
|
}>, Schema.Struct<{
|
|
26644
26866
|
readonly known: Schema.Literal<"unknown">;
|
|
26645
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
|
+
}>>;
|
|
26646
26883
|
}>>;
|
|
26647
26884
|
readonly tasks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
26648
26885
|
readonly text: Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">;
|
|
@@ -29771,5 +30008,5 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
29771
30008
|
}>]>;
|
|
29772
30009
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
29773
30010
|
//#endregion
|
|
29774
|
-
export {
|
|
29775
|
-
//# 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
|