@ref0/sdk 0.8.0 → 0.10.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.
@@ -1,4 +1,4 @@
1
- import { $t as WorkflowAskClosed, A as ConnectionCallAnswer, B as EventRunInput, Cn as WorkflowOwn, Ct as SandboxExec, Dn as WorkflowPasskeyRead, Dt as SandboxPush, En as WorkflowPasskeyEnded, Et as SandboxOpenAnswer, Fn as WorkflowStartState, G as GetIssueInput, H as ForkAnswer$1, Ht as ThreadStage, In as WorkflowText, Ln as WorkflowThreadStart, Mn as WorkflowPullRequestOpen, On as WorkflowPasskeyState, Ot as SandboxPushAnswer, Pn as WorkflowStartEnded, Rn as WorkflowTrigger, Rt as StartActor$1, Sn as WorkflowFilters, Tn as WorkflowPasskeyAsked, Tt as SandboxOpen, U as ForkCreate, Xt as WorkflowActionAnswer, Yt as WorkflowAction, _ as CheckOwn, _n as WorkflowCheckStatesAnswer, an as WorkflowCallRefused, b as CheckTreeEntry, bn as WorkflowConnections, cn as WorkflowCheckRefusal, dn as WorkflowCheckResultsAnswer, en as WorkflowCall, fn as WorkflowCheckRun, g as CheckOn, gn as WorkflowCheckStates, hn as WorkflowCheckStartAnswer, in as WorkflowCallRefusal, jn as WorkflowPullRequestAnswer, k as ConnectionCall, kn as WorkflowPermissions, ln as WorkflowCheckRefused, mn as WorkflowCheckStart, nn as WorkflowCallEnded, on as WorkflowCalledState, pn as WorkflowCheckRunEnded, rn as WorkflowCallInput, sn as WorkflowCalledStateAnswer, tn as WorkflowCallAnswer, un as WorkflowCheckResults, v as CheckRunError, vn as WorkflowCheckWhere, vt as Ref0Owned, wn as WorkflowPasskeyAsk, wt as SandboxExecAnswer, xn as WorkflowEvent, y as CheckRunParams, yn as WorkflowComment, zt as StartRun$1 } from "./index-Bm4HWooV.mjs";
1
+ import { $t as WorkflowAskClosed, A as ConnectionCallAnswer, B as EventRunInput, Cn as WorkflowOwn, Ct as SandboxExec, Dn as WorkflowPasskeyRead, Dt as SandboxPush, En as WorkflowPasskeyEnded, Et as SandboxOpenAnswer, Fn as WorkflowStartState, G as GetIssueInput, H as ForkAnswer$1, Ht as ThreadStage, In as WorkflowText, Ln as WorkflowThreadStart, Mn as WorkflowPullRequestOpen, On as WorkflowPasskeyState, Ot as SandboxPushAnswer, Pn as WorkflowStartEnded, Rn as WorkflowTrigger, Rt as StartActor$1, Sn as WorkflowFilters, Tn as WorkflowPasskeyAsked, Tt as SandboxOpen, U as ForkCreate, Xt as WorkflowActionAnswer, Yt as WorkflowAction, _ as CheckOwn, _n as WorkflowCheckStatesAnswer, an as WorkflowCallRefused, b as CheckTreeEntry, bn as WorkflowConnections, cn as WorkflowCheckRefusal, dn as WorkflowCheckResultsAnswer, en as WorkflowCall, fn as WorkflowCheckRun, g as CheckOn, gn as WorkflowCheckStates, hn as WorkflowCheckStartAnswer, in as WorkflowCallRefusal, jn as WorkflowPullRequestAnswer, k as ConnectionCall, kn as WorkflowPermissions, ln as WorkflowCheckRefused, mn as WorkflowCheckStart, nn as WorkflowCallEnded, on as WorkflowCalledState, pn as WorkflowCheckRunEnded, rn as WorkflowCallInput, sn as WorkflowCalledStateAnswer, tn as WorkflowCallAnswer, un as WorkflowCheckResults, v as CheckRunError, vn as WorkflowCheckWhere, vt as Ref0Owned, wn as WorkflowPasskeyAsk, wt as SandboxExecAnswer, xn as WorkflowEvent, y as CheckRunParams, yn as WorkflowComment, zt as StartRun$1 } from "./index-B4mIKRqo.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/needs.d.ts
4
4
  /**
@@ -671,4 +671,4 @@ interface Browser {
671
671
  }
672
672
  //#endregion
673
673
  export { StartActor as $, ForkOptions as A, WorkflowContext as B, Comment as C, EventWorkflow as D, EventOf as E, StepConfig as F, CalledWorkflow as G, text as H, StepContext as I, TreeEntry as J, JsonValue as K, ThreadStart as L, PullRequestAnswer as M, PullRequestOptions as N, EventWorkflowSpec as O, Ref0Actions as P, Refusal as Q, WaitType as R, CheckRunEnded as S, Duration as T, workflow as U, WorkflowStep as V, CalledRunFailed as W, Allow as X, TreeRead as Y, CalledRun as Z, ActionAnswer as _, CheckRunOptions as a, allow as at, CalledContext as b, CheckRunResult as c, Need as ct, OneOfValues as d, StartContext as et, OutputResult as f, oneOf as g, check as h, CheckResult as i, StartRun as it, NeedAddOptions as j, ForkAnswer as k, CheckSpec as l, Step as m, Check as n, StartOutput as nt, CheckRunReference as o, refuse as ot, OutputSchema as p, Tree as q, CheckContext as r, StartRule as rt, CheckRunRefused as s, CheckNeed as st, Browser as t, StartItem as tt, DurationText as u, CallAnswer as v, ConnectionsOf as w, CalledWorkflowSpec as x, CallEnded as y, WaitedEvent as z };
674
- //# sourceMappingURL=browse-DZcR8vTe.d.mts.map
674
+ //# sourceMappingURL=browse-Cew-0Mo6.d.mts.map
@@ -1,4 +1,4 @@
1
- import { t as Browser } from "./browse-DZcR8vTe.mjs";
1
+ import { t as Browser } from "./browse-Cew-0Mo6.mjs";
2
2
  import { BrowserContext, BrowserContext as BrowserContext$1, BrowserContextOptions, Locator, Page, Page as Page$1, Request, Response } from "@cloudflare/playwright";
3
3
  import { expect as expect$1 } from "@cloudflare/playwright/test";
4
4
  //#region src/browser-stub.d.ts
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as MirrorEntry, An as WorkflowPreview, At as ScopeAction, Bn as commandLine, Bt as StatementView, C as ConnectAgent, D as ConnectOptions, E as ConnectFolderOption, F as ConsentAsked, Ft as SignInDestination, Gn as isRef0Path, Gt as TrackThread, Hn as encodeSecret, Ht as ThreadStage, I as ConsentClient, It as SignedIn, J as LiveTicket, Jn as repoNameKey, Jt as Welcome, K as Harness, Kn as liveSocketUrl, Kt as TypedApprovalCode, L as ConsentProject, Lt as SocketUrl, M as ConnectionKind, Mt as SentryOrg, N as ConnectionName, Nt as SentryRegion, O as ConnectableAgent, P as ConnectionView, Pt as SentryToken, Q as MirrorChoice, R as CredentialView, S as ClientGranted, St as RequestFolder, T as ConnectFolderChoices, Un as hookTokenPrefix, Ut as TrackClosed, V as FoldersConnected, Vn as connectEndpoint, Vt as ThreadId, Wn as hookUrl, Wt as TrackSession, X as LiveTrackName, Y as LiveTicketRequest, Yn as surfaceOf, Z as MachineConnected, _t as ReadEvent, a as Api, at as OwnerTrackMessage, bt as RepoUrl, c as ApprovalId, ct as PasskeyCreationOptions, d as ApprovalView, dt as PasskeyRequestOptions, et as MirrorView, f as AttachmentFailed, ft as PreviewEcho, gt as RanOf, ht as ProjectTrackMessage, i as AgentView, it as OwnerThreadView, j as ConnectionChanged, jt as SecretHash, l as ApprovalPreview, m as Authorization, mt as ProjectName, n as AgentPermissionChoice, nt as OwnerName, o as ApiOrigin, ot as PasskeyAsserted, p as AttachmentRequestView, pt as PreviewUnavailable, q as ImportFailure, qn as projectParts, r as AgentPermissionSetting, rt as OwnerThreadPage, s as ApprovalAnswer, st as PasskeyCreated, t as AgentHandle, tt as OwnerId, u as ApprovalState, w as ConnectChosen, x as ClientAccess, xt as RepoView, yt as RepoName, z as EndpointName, zn as WrittenProject } from "./index-Bm4HWooV.mjs";
1
+ import { $ as MirrorEntry, An as WorkflowPreview, At as ScopeAction, Bn as commandLine, Bt as StatementView, C as ConnectAgent, D as ConnectOptions, E as ConnectFolderOption, F as ConsentAsked, Ft as SignInDestination, Gn as isRef0Path, Gt as TrackThread, Hn as encodeSecret, Ht as ThreadStage, I as ConsentClient, It as SignedIn, J as LiveTicket, Jn as repoNameKey, Jt as Welcome, K as Harness, Kn as liveSocketUrl, Kt as TypedApprovalCode, L as ConsentProject, Lt as SocketUrl, M as ConnectionKind, Mt as SentryOrg, N as ConnectionName, Nt as SentryRegion, O as ConnectableAgent, P as ConnectionView, Pt as SentryToken, Q as MirrorChoice, R as CredentialView, S as ClientGranted, St as RequestFolder, T as ConnectFolderChoices, Un as hookTokenPrefix, Ut as TrackClosed, V as FoldersConnected, Vn as connectEndpoint, Vt as ThreadId, Wn as hookUrl, Wt as TrackSession, X as LiveTrackName, Y as LiveTicketRequest, Yn as surfaceOf, Z as MachineConnected, _t as ReadEvent, a as Api, at as OwnerTrackMessage, bt as RepoUrl, c as ApprovalId, ct as PasskeyCreationOptions, d as ApprovalView, dt as PasskeyRequestOptions, et as MirrorView, f as AttachmentFailed, ft as PreviewEcho, gt as RanOf, ht as ProjectTrackMessage, i as AgentView, it as OwnerThreadView, j as ConnectionChanged, jt as SecretHash, l as ApprovalPreview, m as Authorization, mt as ProjectName, n as AgentPermissionChoice, nt as OwnerName, o as ApiOrigin, ot as PasskeyAsserted, p as AttachmentRequestView, pt as PreviewUnavailable, q as ImportFailure, qn as projectParts, r as AgentPermissionSetting, rt as OwnerThreadPage, s as ApprovalAnswer, st as PasskeyCreated, t as AgentHandle, tt as OwnerId, u as ApprovalState, w as ConnectChosen, x as ClientAccess, xt as RepoView, yt as RepoName, z as EndpointName, zn as WrittenProject } from "./index-B4mIKRqo.mjs";
2
2
  import { Effect, Layer, Option, Redacted, Schema, Stream } from "effect";
3
3
  import { HttpApi, HttpApiClient, HttpApiGroup, HttpApiMiddleware } from "effect/http-api";
4
4
  import { HttpBody, HttpClient } from "effect/http";
@@ -2103,15 +2103,7 @@ declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEnd
2103
2103
  }>]>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof AuthorityUnavailable>, SignedIn, never>, false>;
2104
2104
  /** Where a signed-in person stands, and naming their owner when their GitHub login couldn't. */
2105
2105
  declare class WelcomeGroup extends WelcomeGroup_base {}
2106
- declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2107
- readonly passkeys: Schema.$Array<Schema.Struct<{
2108
- readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
2109
- readonly name: Schema.optionalKey<Schema.String>;
2110
- readonly createdAt: Schema.String;
2111
- readonly backedUp: Schema.Boolean;
2112
- }>>;
2113
- readonly approvesHere: Schema.Boolean;
2114
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
2106
+ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
2115
2107
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2116
2108
  }>>, Schema.toCodecJson<Schema.Struct<{
2117
2109
  readonly rp: Schema.Struct<{
@@ -2142,7 +2134,15 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
2142
2134
  }>>;
2143
2135
  readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2144
2136
  readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
2145
- }>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
2137
+ }>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2138
+ readonly passkeys: Schema.$Array<Schema.Struct<{
2139
+ readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
2140
+ readonly name: Schema.optionalKey<Schema.String>;
2141
+ readonly createdAt: Schema.String;
2142
+ readonly backedUp: Schema.Boolean;
2143
+ }>>;
2144
+ readonly approvesHere: Schema.Boolean;
2145
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
2146
2146
  readonly id: Schema.String;
2147
2147
  readonly rawId: Schema.String;
2148
2148
  readonly type: Schema.Literal<"public-key">;
@@ -3076,38 +3076,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3076
3076
  readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
3077
3077
  }>>;
3078
3078
  readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
3079
- }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3080
- readonly mirrors: Schema.$Array<Schema.Struct<{
3081
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3082
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
3083
- readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
3084
- readonly name: Schema.brand<Schema.String, "RepoName">;
3085
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
3086
- readonly kind: Schema.Literal<"none">;
3087
- }>, Schema.Struct<{
3088
- readonly kind: Schema.Literal<"github">;
3089
- readonly branch: Schema.String;
3090
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
3091
- readonly state: Schema.Literal<"on">;
3092
- }>, Schema.Struct<{
3093
- readonly state: Schema.Literal<"paused">;
3094
- readonly paused: Schema.Union<readonly [Schema.Struct<{
3095
- readonly why: Schema.Literal<"diverged">;
3096
- readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3097
- }>, Schema.Struct<{
3098
- readonly why: Schema.Literal<"refused">;
3099
- readonly said: Schema.String;
3100
- }>, Schema.Struct<{
3101
- readonly why: Schema.Literal<"unauthorized">;
3102
- }>]>;
3103
- }>, Schema.Struct<{
3104
- readonly state: Schema.Literal<"off">;
3105
- }>]>;
3106
- readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3107
- readonly nextStep: Schema.optionalKey<Schema.String>;
3108
- }>]>;
3109
- }>>;
3110
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
3079
+ }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
3111
3080
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
3112
3081
  }>>, Schema.toCodecJson<Schema.Struct<{
3113
3082
  readonly expiresAt: Schema.DateTimeUtcFromMillis;
@@ -3184,7 +3153,38 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3184
3153
  readonly bytes: Schema.Int;
3185
3154
  }>>>;
3186
3155
  }>>;
3187
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never>, false>;
3156
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3157
+ readonly mirrors: Schema.$Array<Schema.Struct<{
3158
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3159
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
3160
+ readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
3161
+ readonly name: Schema.brand<Schema.String, "RepoName">;
3162
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
3163
+ readonly kind: Schema.Literal<"none">;
3164
+ }>, Schema.Struct<{
3165
+ readonly kind: Schema.Literal<"github">;
3166
+ readonly branch: Schema.String;
3167
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
3168
+ readonly state: Schema.Literal<"on">;
3169
+ }>, Schema.Struct<{
3170
+ readonly state: Schema.Literal<"paused">;
3171
+ readonly paused: Schema.Union<readonly [Schema.Struct<{
3172
+ readonly why: Schema.Literal<"diverged">;
3173
+ readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3174
+ }>, Schema.Struct<{
3175
+ readonly why: Schema.Literal<"refused">;
3176
+ readonly said: Schema.String;
3177
+ }>, Schema.Struct<{
3178
+ readonly why: Schema.Literal<"unauthorized">;
3179
+ }>]>;
3180
+ }>, Schema.Struct<{
3181
+ readonly state: Schema.Literal<"off">;
3182
+ }>]>;
3183
+ readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3184
+ readonly nextStep: Schema.optionalKey<Schema.String>;
3185
+ }>]>;
3186
+ }>>;
3187
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
3188
3188
  declare class MeGroup extends MeGroup_base {}
3189
3189
  declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
3190
3190
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
@@ -18211,7 +18211,16 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
18211
18211
  * consented, hands the client its code.
18212
18212
  */
18213
18213
  declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
18214
- declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
18214
+ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18215
+ cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18216
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18217
+ readonly organizations: Schema.$Array<Schema.Struct<{
18218
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18219
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18220
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18221
+ }>>;
18222
+ readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18223
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
18215
18224
  readonly name: Schema.brand<Schema.String, "OwnerName">;
18216
18225
  readonly displayName: Schema.optionalKey<Schema.String>;
18217
18226
  }>>, Schema.toCodecStringTree<Schema.Struct<{
@@ -18221,16 +18230,50 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18221
18230
  readonly name: Schema.brand<Schema.String, "OwnerName">;
18222
18231
  readonly displayName: Schema.String;
18223
18232
  readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
18224
- }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18225
- cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18233
+ }>>, 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<{
18234
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18235
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18236
+ from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18237
+ to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18226
18238
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18227
- readonly organizations: Schema.$Array<Schema.Struct<{
18228
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18229
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18230
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18239
+ readonly from: Schema.brand<Schema.String, "UtcDay">;
18240
+ readonly to: Schema.brand<Schema.String, "UtcDay">;
18241
+ readonly days: Schema.$Array<Schema.Struct<{
18242
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18243
+ readonly lines: Schema.$Array<Schema.Struct<{
18244
+ readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18245
+ readonly quantity: Schema.Finite;
18246
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18247
+ }>>;
18231
18248
  }>>;
18232
- readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18233
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18249
+ readonly work: Schema.$Array<Schema.Struct<{
18250
+ readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18251
+ readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18252
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18253
+ readonly lines: Schema.$Array<Schema.Struct<{
18254
+ readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18255
+ readonly quantity: Schema.Finite;
18256
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18257
+ }>>;
18258
+ }>>;
18259
+ readonly kept: Schema.optionalKey<Schema.Struct<{
18260
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18261
+ readonly counts: Schema.$Array<Schema.Struct<{
18262
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18263
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18264
+ readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18265
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18266
+ readonly bytes: Schema.Int;
18267
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18268
+ }>>;
18269
+ readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18270
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18271
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18272
+ readonly counts: Schema.Int;
18273
+ readonly bytes: Schema.Int;
18274
+ }>>>;
18275
+ }>>;
18276
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18234
18277
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18235
18278
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18236
18279
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
@@ -18421,50 +18464,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18421
18464
  }>>;
18422
18465
  }>;
18423
18466
  readonly pricesAsOf: Schema.String;
18424
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
18425
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18426
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18427
- from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18428
- to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18429
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18430
- readonly from: Schema.brand<Schema.String, "UtcDay">;
18431
- readonly to: Schema.brand<Schema.String, "UtcDay">;
18432
- readonly days: Schema.$Array<Schema.Struct<{
18433
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18434
- readonly lines: Schema.$Array<Schema.Struct<{
18435
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18436
- readonly quantity: Schema.Finite;
18437
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18438
- }>>;
18439
- }>>;
18440
- readonly work: Schema.$Array<Schema.Struct<{
18441
- readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18442
- readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18443
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18444
- readonly lines: Schema.$Array<Schema.Struct<{
18445
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18446
- readonly quantity: Schema.Finite;
18447
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18448
- }>>;
18449
- }>>;
18450
- readonly kept: Schema.optionalKey<Schema.Struct<{
18451
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18452
- readonly counts: Schema.$Array<Schema.Struct<{
18453
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18454
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18455
- readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18456
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18457
- readonly bytes: Schema.Int;
18458
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18459
- }>>;
18460
- readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18461
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18462
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18463
- readonly counts: Schema.Int;
18464
- readonly bytes: Schema.Int;
18465
- }>>>;
18466
- }>>;
18467
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
18467
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
18468
18468
  /**
18469
18469
  * Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
18470
18470
  * usage. Every change is a person's, by approval; agents never change members.
@@ -18543,22 +18543,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
18543
18543
  readonly expiresAt: Schema.DateTimeUtcFromMillis;
18544
18544
  }>>;
18545
18545
  readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18546
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18547
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18548
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18549
- 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">]>;
18550
- readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
18551
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18552
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18553
- }>>, Schema.toCodecJson<Schema.Struct<{
18554
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18555
- readonly invitee: Schema.Struct<{
18556
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18557
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18558
- }>;
18559
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18560
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
18561
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18546
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18562
18547
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18563
18548
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18564
18549
  cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
@@ -18577,7 +18562,22 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
18577
18562
  readonly expiresAt: Schema.DateTimeUtcFromMillis;
18578
18563
  }>>;
18579
18564
  readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18580
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
18565
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18566
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18567
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18568
+ 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">]>;
18569
+ readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
18570
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18571
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18572
+ }>>, Schema.toCodecJson<Schema.Struct<{
18573
+ readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18574
+ readonly invitee: Schema.Struct<{
18575
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18576
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18577
+ }>;
18578
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18579
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
18580
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
18581
18581
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18582
18582
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18583
18583
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
@@ -18608,7 +18608,56 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
18608
18608
  * theirs and accepts or declines one, which is found from their own list, never the client.
18609
18609
  */
18610
18610
  declare class InvitationsGroup extends InvitationsGroup_base {}
18611
- declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18611
+ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18612
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18613
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18614
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18615
+ limit: Schema.optionalKey<Schema.Int>;
18616
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18617
+ readonly grants: Schema.$Array<Schema.Struct<{
18618
+ readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
18619
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
18620
+ readonly kind: Schema.Literal<"owner">;
18621
+ }>, Schema.Struct<{
18622
+ readonly kind: Schema.Literal<"project">;
18623
+ readonly project: Schema.brand<Schema.String, "ProjectName">;
18624
+ }>, Schema.Struct<{
18625
+ readonly kind: Schema.Literal<"thread">;
18626
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18627
+ }>, Schema.Struct<{
18628
+ readonly kind: Schema.Literal<"agent">;
18629
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18630
+ }>]>;
18631
+ readonly principal: Schema.Union<readonly [Schema.Struct<{
18632
+ readonly kind: Schema.Literal<"person">;
18633
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18634
+ }>, Schema.Struct<{
18635
+ readonly kind: Schema.Literal<"agent">;
18636
+ readonly owner: Schema.brand<Schema.String, "OwnerName">;
18637
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18638
+ }>, Schema.Struct<{
18639
+ readonly kind: Schema.Literal<"agent">;
18640
+ readonly agent: Schema.Struct<{
18641
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18642
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18643
+ }>;
18644
+ }>]>;
18645
+ readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18646
+ readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
18647
+ readonly kind: Schema.Literal<"person">;
18648
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18649
+ }>, Schema.Struct<{
18650
+ readonly kind: Schema.Literal<"agent">;
18651
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18652
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18653
+ }>, Schema.Struct<{
18654
+ readonly kind: Schema.Literal<"ref0">;
18655
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18656
+ }>]>;
18657
+ readonly grantedAt: Schema.DateTimeUtcFromMillis;
18658
+ }>>;
18659
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18660
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18612
18661
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18613
18662
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18614
18663
  readonly subject: Schema.Union<readonly [Schema.Struct<{
@@ -18720,56 +18769,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
18720
18769
  }>;
18721
18770
  }>]>;
18722
18771
  readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18723
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18724
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18725
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18726
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18727
- limit: Schema.optionalKey<Schema.Int>;
18728
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18729
- readonly grants: Schema.$Array<Schema.Struct<{
18730
- readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
18731
- readonly subject: Schema.Union<readonly [Schema.Struct<{
18732
- readonly kind: Schema.Literal<"owner">;
18733
- }>, Schema.Struct<{
18734
- readonly kind: Schema.Literal<"project">;
18735
- readonly project: Schema.brand<Schema.String, "ProjectName">;
18736
- }>, Schema.Struct<{
18737
- readonly kind: Schema.Literal<"thread">;
18738
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18739
- }>, Schema.Struct<{
18740
- readonly kind: Schema.Literal<"agent">;
18741
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18742
- }>]>;
18743
- readonly principal: Schema.Union<readonly [Schema.Struct<{
18744
- readonly kind: Schema.Literal<"person">;
18745
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18746
- }>, Schema.Struct<{
18747
- readonly kind: Schema.Literal<"agent">;
18748
- readonly owner: Schema.brand<Schema.String, "OwnerName">;
18749
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18750
- }>, Schema.Struct<{
18751
- readonly kind: Schema.Literal<"agent">;
18752
- readonly agent: Schema.Struct<{
18753
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18754
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18755
- }>;
18756
- }>]>;
18757
- readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18758
- readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
18759
- readonly kind: Schema.Literal<"person">;
18760
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18761
- }>, Schema.Struct<{
18762
- readonly kind: Schema.Literal<"agent">;
18763
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18764
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18765
- }>, Schema.Struct<{
18766
- readonly kind: Schema.Literal<"ref0">;
18767
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18768
- }>]>;
18769
- readonly grantedAt: Schema.DateTimeUtcFromMillis;
18770
- }>>;
18771
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18772
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
18772
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never>, false>;
18773
18773
  /**
18774
18774
  * An organization's grants (layer 1): any person lists those they may see; an admin gives one or
18775
18775
  * takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
@@ -18791,10 +18791,12 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18791
18791
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18792
18792
  readonly generation: Schema.Int;
18793
18793
  readonly turnedOff: Schema.Boolean;
18794
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
18794
+ }>>, 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<{
18795
18795
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18796
18796
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18797
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
18797
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18798
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18799
+ }>>, Schema.toCodecJson<Schema.Struct<{
18798
18800
  readonly agent: Schema.Struct<{
18799
18801
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18800
18802
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -18802,8 +18804,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18802
18804
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18803
18805
  readonly generation: Schema.Int;
18804
18806
  readonly turnedOff: Schema.Boolean;
18805
- readonly addedAt: Schema.DateTimeUtcFromMillis;
18806
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
18807
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/owners/:owner/agents/:agent/enable", Schema.toCodecStringTree<Schema.Struct<{
18807
18808
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18808
18809
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18809
18810
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
@@ -18816,12 +18817,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18816
18817
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18817
18818
  readonly generation: Schema.Int;
18818
18819
  readonly turnedOff: Schema.Boolean;
18819
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/owners/:owner/agents/:agent/enable", Schema.toCodecStringTree<Schema.Struct<{
18820
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
18820
18821
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18821
18822
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18822
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18823
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18824
- }>>, Schema.toCodecJson<Schema.Struct<{
18823
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
18825
18824
  readonly agent: Schema.Struct<{
18826
18825
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18827
18826
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -18829,7 +18828,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18829
18828
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18830
18829
  readonly generation: Schema.Int;
18831
18830
  readonly turnedOff: Schema.Boolean;
18832
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18831
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
18832
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18833
18833
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18834
18834
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18835
18835
  after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
@@ -18899,7 +18899,34 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
18899
18899
  * decides. People only, by approval.
18900
18900
  */
18901
18901
  declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
18902
- declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18902
+ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18903
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18904
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18905
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18906
+ limit: Schema.optionalKey<Schema.Int>;
18907
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18908
+ readonly disables: Schema.$Array<Schema.Struct<{
18909
+ readonly agent: Schema.Struct<{
18910
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18911
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18912
+ }>;
18913
+ readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18914
+ readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
18915
+ readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
18916
+ readonly kind: Schema.Literal<"person">;
18917
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18918
+ }>, Schema.Struct<{
18919
+ readonly kind: Schema.Literal<"agent">;
18920
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18921
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18922
+ }>, Schema.Struct<{
18923
+ readonly kind: Schema.Literal<"ref0">;
18924
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18925
+ }>]>;
18926
+ readonly disabledAt: Schema.DateTimeUtcFromMillis;
18927
+ }>>;
18928
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18929
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18903
18930
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18904
18931
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18905
18932
  readonly agent: Schema.Struct<{
@@ -18931,34 +18958,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
18931
18958
  }>;
18932
18959
  readonly targetGeneration: Schema.Int;
18933
18960
  readonly turnedOff: Schema.Boolean;
18934
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18935
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18936
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18937
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18938
- limit: Schema.optionalKey<Schema.Int>;
18939
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18940
- readonly disables: Schema.$Array<Schema.Struct<{
18941
- readonly agent: Schema.Struct<{
18942
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18943
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18944
- }>;
18945
- readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18946
- readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
18947
- readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
18948
- readonly kind: Schema.Literal<"person">;
18949
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18950
- }>, Schema.Struct<{
18951
- readonly kind: Schema.Literal<"agent">;
18952
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18953
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18954
- }>, Schema.Struct<{
18955
- readonly kind: Schema.Literal<"ref0">;
18956
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18957
- }>]>;
18958
- readonly disabledAt: Schema.DateTimeUtcFromMillis;
18959
- }>>;
18960
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18961
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
18961
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
18962
18962
  /**
18963
18963
  * Agents of other owners an organization's admin turns off there (layer 1), such as a member's
18964
18964
  * own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
@@ -29207,4 +29207,4 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
29207
29207
  type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
29208
29208
  //#endregion
29209
29209
  export { MirrorEntry as $, WorkflowAskClosed as $t, ConnectionCallAnswer as A, WorkflowPreview as An, ScopeAction as At, EventRunInput as B, commandLine as Bn, StatementView as Bt, ConnectAgent as C, WorkflowOwn as Cn, SandboxExec as Ct, ConnectOptions as D, WorkflowPasskeyRead as Dn, SandboxPush as Dt, ConnectFolderOption as E, WorkflowPasskeyEnded as En, SandboxOpenAnswer as Et, ConsentAsked as F, WorkflowStartState as Fn, SignInDestination as Ft, GetIssueInput as G, isRef0Path as Gn, TrackThread as Gt, ForkAnswer as H, encodeSecret as Hn, ThreadStage as Ht, ConsentClient as I, WorkflowText as In, SignedIn as It, LiveTicket as J, repoNameKey as Jn, Welcome as Jt, Harness as K, liveSocketUrl as Kn, TypedApprovalCode as Kt, ConsentProject as L, WorkflowThreadStart as Ln, SocketUrl as Lt, ConnectionKind as M, WorkflowPullRequestOpen as Mn, SentryOrg as Mt, ConnectionName as N, WorkflowRequestRefusal as Nn, SentryRegion as Nt, ConnectableAgent as O, WorkflowPasskeyState as On, SandboxPushAnswer as Ot, ConnectionView as P, WorkflowStartEnded as Pn, SentryToken as Pt, MirrorChoice as Q, WorkflowAsk as Qt, CredentialView as R, WorkflowTrigger as Rn, StartActor as Rt, ClientGranted as S, WorkflowFilters as Sn, RequestFolder as St, ConnectFolderChoices as T, WorkflowPasskeyAsked as Tn, SandboxOpen as Tt, ForkCreate as U, hookTokenPrefix as Un, TrackClosed as Ut, FoldersConnected as V, connectEndpoint as Vn, ThreadId as Vt, GateOwn as W, hookUrl as Wn, TrackSession as Wt, LiveTrackName as X, WorkflowActionAnswer as Xt, LiveTicketRequest as Y, surfaceOf as Yn, WorkflowAction as Yt, MachineConnected as Z, WorkflowAnswerer as Zt, CheckOwn as _, WorkflowCheckStatesAnswer as _n, ReadEvent as _t, Api as a, WorkflowCallRefused as an, OwnerTrackMessage as at, CheckTreeEntry as b, WorkflowConnections as bn, RepoUrl as bt, ApprovalId as c, WorkflowCheckRefusal as cn, PasskeyCreationOptions as ct, ApprovalView as d, WorkflowCheckResultsAnswer as dn, PasskeyRequestOptions as dt, WorkflowCall as en, MirrorView as et, AttachmentFailed as f, WorkflowCheckRun as fn, PreviewEcho as ft, CheckOn as g, WorkflowCheckStates as gn, RanOf as gt, ChangeAuthor as h, WorkflowCheckStartAnswer as hn, ProjectTrackMessage as ht, AgentView as i, WorkflowCallRefusal as in, OwnerThreadView as it, ConnectionChanged as j, WorkflowPullRequestAnswer as jn, SecretHash as jt, ConnectionCall as k, WorkflowPermissions as kn, SandboxSize as kt, ApprovalPreview as l, WorkflowCheckRefused as ln, PasskeyFrom as lt, Authorization as m, WorkflowCheckStart as mn, ProjectName as mt, AgentPermissionChoice as n, WorkflowCallEnded as nn, OwnerName as nt, ApiOrigin as o, WorkflowCalledState as on, PasskeyAsserted as ot, AttachmentRequestView as p, WorkflowCheckRunEnded as pn, PreviewUnavailable as pt, ImportFailure as q, projectParts as qn, VersionFile as qt, AgentPermissionSetting as r, WorkflowCallInput as rn, OwnerThreadPage as rt, ApprovalAnswer as s, WorkflowCalledStateAnswer as sn, PasskeyCreated as st, AgentHandle as t, WorkflowCallAnswer as tn, OwnerId as tt, ApprovalState as u, WorkflowCheckResults as un, PasskeyRefusal as ut, CheckRunError as v, WorkflowCheckWhere as vn, Ref0Owned as vt, ConnectChosen as w, WorkflowPasskeyAsk as wn, SandboxExecAnswer as wt, ClientAccess as x, WorkflowEvent as xn, RepoView as xt, CheckRunParams as y, WorkflowComment as yn, RepoName as yt, EndpointName as z, WrittenProject as zn, StartRun as zt };
29210
- //# sourceMappingURL=index-Bm4HWooV.d.mts.map
29210
+ //# sourceMappingURL=index-B4mIKRqo.d.mts.map
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $t as WorkflowAskClosed, In as WorkflowText, Nn as WorkflowRequestRefusal, Ot as SandboxPushAnswer, Qt as WorkflowAsk, W as GateOwn, Zt as WorkflowAnswerer, h as ChangeAuthor, kt as SandboxSize, lt as PasskeyFrom$1, qt as VersionFile, ut as PasskeyRefusal, vt as Ref0Owned } from "./index-Bm4HWooV.mjs";
2
- import { $ as StartActor, A as ForkOptions, B as WorkflowContext, C as Comment, D as EventWorkflow, E as EventOf, F as StepConfig, G as CalledWorkflow, H as text, I as StepContext, J as TreeEntry, K as JsonValue, L as ThreadStart, M as PullRequestAnswer, N as PullRequestOptions, O as EventWorkflowSpec, P as Ref0Actions, Q as Refusal, R as WaitType, S as CheckRunEnded, T as Duration, U as workflow, V as WorkflowStep, W as CalledRunFailed, X as Allow, Y as TreeRead, Z as CalledRun, _ as ActionAnswer, a as CheckRunOptions, at as allow, b as CalledContext, c as CheckRunResult, ct as Need, d as OneOfValues, et as StartContext, f as OutputResult, g as oneOf, h as check, i as CheckResult, it as StartRun, j as NeedAddOptions, k as ForkAnswer, l as CheckSpec, m as Step, n as Check, nt as StartOutput, o as CheckRunReference, ot as refuse, p as OutputSchema, q as Tree, r as CheckContext, rt as StartRule, s as CheckRunRefused, st as CheckNeed, t as Browser, tt as StartItem, u as DurationText, v as CallAnswer, w as ConnectionsOf, x as CalledWorkflowSpec, y as CallEnded, z as WaitedEvent } from "./browse-DZcR8vTe.mjs";
1
+ import { $t as WorkflowAskClosed, In as WorkflowText, Nn as WorkflowRequestRefusal, Ot as SandboxPushAnswer, Qt as WorkflowAsk, W as GateOwn, Zt as WorkflowAnswerer, h as ChangeAuthor, kt as SandboxSize, lt as PasskeyFrom$1, qt as VersionFile, ut as PasskeyRefusal, vt as Ref0Owned } from "./index-B4mIKRqo.mjs";
2
+ import { $ as StartActor, A as ForkOptions, B as WorkflowContext, C as Comment, D as EventWorkflow, E as EventOf, F as StepConfig, G as CalledWorkflow, H as text, I as StepContext, J as TreeEntry, K as JsonValue, L as ThreadStart, M as PullRequestAnswer, N as PullRequestOptions, O as EventWorkflowSpec, P as Ref0Actions, Q as Refusal, R as WaitType, S as CheckRunEnded, T as Duration, U as workflow, V as WorkflowStep, W as CalledRunFailed, X as Allow, Y as TreeRead, Z as CalledRun, _ as ActionAnswer, a as CheckRunOptions, at as allow, b as CalledContext, c as CheckRunResult, ct as Need, d as OneOfValues, et as StartContext, f as OutputResult, g as oneOf, h as check, i as CheckResult, it as StartRun, j as NeedAddOptions, k as ForkAnswer, l as CheckSpec, m as Step, n as Check, nt as StartOutput, o as CheckRunReference, ot as refuse, p as OutputSchema, q as Tree, r as CheckContext, rt as StartRule, s as CheckRunRefused, st as CheckNeed, t as Browser, tt as StartItem, u as DurationText, v as CallAnswer, w as ConnectionsOf, x as CalledWorkflowSpec, y as CallEnded, z as WaitedEvent } from "./browse-Cew-0Mo6.mjs";
3
3
  //#region src/ask.d.ts
4
4
  /**
5
5
  * `ask`, ref0's leaf that asks someone a question and waits in the run for the answer, as a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ref0/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "What a repo's .ref0/ code imports to run on ref0, and ref0's HTTP client",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {