@ref0/sdk 0.12.0 → 0.12.1

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.
@@ -2258,7 +2258,29 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
2258
2258
  readonly backedUp: Schema.Boolean;
2259
2259
  }>>;
2260
2260
  readonly approvesHere: Schema.Boolean;
2261
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
2261
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
2262
+ readonly id: Schema.String;
2263
+ readonly rawId: Schema.String;
2264
+ readonly type: Schema.Literal<"public-key">;
2265
+ readonly response: Schema.Struct<{
2266
+ readonly clientDataJSON: Schema.String;
2267
+ readonly attestationObject: Schema.String;
2268
+ readonly authenticatorData: Schema.optional<Schema.String>;
2269
+ readonly transports: Schema.optional<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
2270
+ readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
2271
+ readonly publicKey: Schema.optional<Schema.String>;
2272
+ }>;
2273
+ readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
2274
+ readonly clientExtensionResults: Schema.Struct<{
2275
+ readonly credProps: Schema.optionalKey<Schema.Struct<{
2276
+ readonly rk: Schema.optionalKey<Schema.Boolean>;
2277
+ }>>;
2278
+ }>;
2279
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2280
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2281
+ }>>, Schema.toCodecJson<Schema.Struct<{
2282
+ readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
2283
+ }>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
2262
2284
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2263
2285
  }>>, Schema.toCodecJson<Schema.Struct<{
2264
2286
  readonly rp: Schema.Struct<{
@@ -2289,28 +2311,6 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
2289
2311
  }>>;
2290
2312
  readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2291
2313
  readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
2292
- }>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
2293
- readonly id: Schema.String;
2294
- readonly rawId: Schema.String;
2295
- readonly type: Schema.Literal<"public-key">;
2296
- readonly response: Schema.Struct<{
2297
- readonly clientDataJSON: Schema.String;
2298
- readonly attestationObject: Schema.String;
2299
- readonly authenticatorData: Schema.optional<Schema.String>;
2300
- readonly transports: Schema.optional<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
2301
- readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
2302
- readonly publicKey: Schema.optional<Schema.String>;
2303
- }>;
2304
- readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
2305
- readonly clientExtensionResults: Schema.Struct<{
2306
- readonly credProps: Schema.optionalKey<Schema.Struct<{
2307
- readonly rk: Schema.optionalKey<Schema.Boolean>;
2308
- }>>;
2309
- }>;
2310
- }>>, Schema.toCodecStringTree<Schema.Struct<{
2311
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2312
- }>>, Schema.toCodecJson<Schema.Struct<{
2313
- readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
2314
2314
  }>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never>, false>;
2315
2315
  /**
2316
2316
  * A person's passkeys: listing them, and enrolling the first, which signing in asks for straight
@@ -2354,19 +2354,7 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
2354
2354
  * what it came to with the approval's secret. Its person answers on their own page, by its code.
2355
2355
  */
2356
2356
  declare class TerminalApprovalsGroup extends TerminalApprovalsGroup_base {}
2357
- declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
2358
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
2359
- agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
2360
- attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2361
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
2362
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2363
- }>>, Schema.toCodecJson<Schema.Struct<{
2364
- readonly credential: Schema.Struct<{
2365
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2366
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2367
- }>;
2368
- readonly childrenRevoked: Schema.Int;
2369
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
2357
+ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
2370
2358
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
2371
2359
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
2372
2360
  }>>, Schema.toCodecStringTree<Schema.Struct<{
@@ -2383,7 +2371,19 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
2383
2371
  readonly person: Schema.brand<Schema.String, "OwnerName">;
2384
2372
  }>>;
2385
2373
  readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
2386
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
2374
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
2375
+ 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">]>;
2376
+ agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
2377
+ attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2378
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
2379
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2380
+ }>>, Schema.toCodecJson<Schema.Struct<{
2381
+ readonly credential: Schema.Struct<{
2382
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
2383
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2384
+ }>;
2385
+ readonly childrenRevoked: Schema.Int;
2386
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never>, false>;
2387
2387
  /**
2388
2388
  * An agent's live attachments, by approval: listed, every one to an admin and their own to anyone
2389
2389
  * else; and one of the caller's own disconnected, revoking its credential, which the Worker checks
@@ -2397,6 +2397,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
2397
2397
  }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2398
2398
  readonly state: Schema.Literal<"waiting">;
2399
2399
  readonly expiresAt: Schema.DateTimeUtcFromString;
2400
+ readonly confirmBy: Schema.optionalKey<Schema.DateTimeUtcFromString>;
2400
2401
  }>, Schema.Struct<{
2401
2402
  readonly state: Schema.Literal<"connected">;
2402
2403
  readonly owner: Schema.brand<Schema.String, "OwnerName">;
@@ -2442,6 +2443,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
2442
2443
  }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2443
2444
  readonly state: Schema.Literal<"waiting">;
2444
2445
  readonly expiresAt: Schema.DateTimeUtcFromString;
2446
+ readonly confirmBy: Schema.optionalKey<Schema.DateTimeUtcFromString>;
2445
2447
  }>, Schema.Struct<{
2446
2448
  readonly state: Schema.Literal<"connected">;
2447
2449
  readonly owner: Schema.brand<Schema.String, "OwnerName">;
@@ -2901,7 +2903,80 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
2901
2903
  readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2902
2904
  readonly state: Schema.Literal<"ran">;
2903
2905
  readonly endpoint: Schema.String;
2904
- }>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
2906
+ }>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
2907
+ approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2908
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2909
+ readonly answer: Schema.Literal<"yes">;
2910
+ readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
2911
+ readonly assertion: Schema.Struct<{
2912
+ readonly id: Schema.String;
2913
+ readonly rawId: Schema.String;
2914
+ readonly type: Schema.Literal<"public-key">;
2915
+ readonly response: Schema.Struct<{
2916
+ readonly clientDataJSON: Schema.String;
2917
+ readonly authenticatorData: Schema.String;
2918
+ readonly signature: Schema.String;
2919
+ readonly userHandle: Schema.optional<Schema.String>;
2920
+ }>;
2921
+ readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
2922
+ readonly clientExtensionResults: Schema.Struct<{}>;
2923
+ }>;
2924
+ readonly code: Schema.optionalKey<Schema.String>;
2925
+ readonly preview: Schema.optionalKey<Schema.Struct<{
2926
+ readonly kind: Schema.Literals<readonly ["workflow", "attached workflow"]>;
2927
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
2928
+ }>>;
2929
+ readonly statement: Schema.optionalKey<Schema.Struct<{
2930
+ readonly hash: Schema.String;
2931
+ }>>;
2932
+ }>, Schema.Struct<{
2933
+ readonly answer: Schema.Literal<"no">;
2934
+ readonly permission: Schema.Literal<"deny">;
2935
+ readonly assertion: Schema.Struct<{
2936
+ readonly id: Schema.String;
2937
+ readonly rawId: Schema.String;
2938
+ readonly type: Schema.Literal<"public-key">;
2939
+ readonly response: Schema.Struct<{
2940
+ readonly clientDataJSON: Schema.String;
2941
+ readonly authenticatorData: Schema.String;
2942
+ readonly signature: Schema.String;
2943
+ readonly userHandle: Schema.optional<Schema.String>;
2944
+ }>;
2945
+ readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
2946
+ readonly clientExtensionResults: Schema.Struct<{}>;
2947
+ }>;
2948
+ readonly code: Schema.optionalKey<Schema.String>;
2949
+ }>, Schema.Struct<{
2950
+ readonly answer: Schema.Literal<"no">;
2951
+ readonly code: Schema.optionalKey<Schema.String>;
2952
+ }>]>>, Schema.toCodecStringTree<Schema.Struct<{
2953
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2954
+ }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2955
+ readonly state: Schema.Literal<"approved">;
2956
+ readonly collected: Schema.optionalKey<Schema.Literal<true>>;
2957
+ readonly answerCode: Schema.String;
2958
+ }>, Schema.Struct<{
2959
+ readonly status: Schema.Int;
2960
+ readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2961
+ readonly state: Schema.Literal<"ran">;
2962
+ readonly endpoint: Schema.String;
2963
+ readonly answerCode: Schema.String;
2964
+ }>, Schema.Union<readonly [Schema.Struct<{
2965
+ readonly state: Schema.Literal<"waiting">;
2966
+ readonly expiresAt: Schema.DateTimeUtcFromString;
2967
+ }>, Schema.Struct<{
2968
+ readonly state: Schema.Literal<"approved">;
2969
+ readonly collected: Schema.optionalKey<Schema.Literal<true>>;
2970
+ }>, Schema.Struct<{
2971
+ readonly state: Schema.Literal<"refused">;
2972
+ }>, Schema.Struct<{
2973
+ readonly state: Schema.Literal<"expired">;
2974
+ }>, Schema.Struct<{
2975
+ readonly status: Schema.Int;
2976
+ readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2977
+ readonly state: Schema.Literal<"ran">;
2978
+ readonly endpoint: Schema.String;
2979
+ }>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
2905
2980
  approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2906
2981
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2907
2982
  readonly code: Schema.optionalKey<Schema.String>;
@@ -3223,80 +3298,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
3223
3298
  readonly port: Schema.Int;
3224
3299
  readonly state: Schema.String;
3225
3300
  }>>;
3226
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
3227
- approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
3228
- }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
3229
- readonly answer: Schema.Literal<"yes">;
3230
- readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
3231
- readonly assertion: Schema.Struct<{
3232
- readonly id: Schema.String;
3233
- readonly rawId: Schema.String;
3234
- readonly type: Schema.Literal<"public-key">;
3235
- readonly response: Schema.Struct<{
3236
- readonly clientDataJSON: Schema.String;
3237
- readonly authenticatorData: Schema.String;
3238
- readonly signature: Schema.String;
3239
- readonly userHandle: Schema.optional<Schema.String>;
3240
- }>;
3241
- readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
3242
- readonly clientExtensionResults: Schema.Struct<{}>;
3243
- }>;
3244
- readonly code: Schema.optionalKey<Schema.String>;
3245
- readonly preview: Schema.optionalKey<Schema.Struct<{
3246
- readonly kind: Schema.Literals<readonly ["workflow", "attached workflow"]>;
3247
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
3248
- }>>;
3249
- readonly statement: Schema.optionalKey<Schema.Struct<{
3250
- readonly hash: Schema.String;
3251
- }>>;
3252
- }>, Schema.Struct<{
3253
- readonly answer: Schema.Literal<"no">;
3254
- readonly permission: Schema.Literal<"deny">;
3255
- readonly assertion: Schema.Struct<{
3256
- readonly id: Schema.String;
3257
- readonly rawId: Schema.String;
3258
- readonly type: Schema.Literal<"public-key">;
3259
- readonly response: Schema.Struct<{
3260
- readonly clientDataJSON: Schema.String;
3261
- readonly authenticatorData: Schema.String;
3262
- readonly signature: Schema.String;
3263
- readonly userHandle: Schema.optional<Schema.String>;
3264
- }>;
3265
- readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
3266
- readonly clientExtensionResults: Schema.Struct<{}>;
3267
- }>;
3268
- readonly code: Schema.optionalKey<Schema.String>;
3269
- }>, Schema.Struct<{
3270
- readonly answer: Schema.Literal<"no">;
3271
- readonly code: Schema.optionalKey<Schema.String>;
3272
- }>]>>, Schema.toCodecStringTree<Schema.Struct<{
3273
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
3274
- }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
3275
- readonly state: Schema.Literal<"approved">;
3276
- readonly collected: Schema.optionalKey<Schema.Literal<true>>;
3277
- readonly answerCode: Schema.String;
3278
- }>, Schema.Struct<{
3279
- readonly status: Schema.Int;
3280
- readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
3281
- readonly state: Schema.Literal<"ran">;
3282
- readonly endpoint: Schema.String;
3283
- readonly answerCode: Schema.String;
3284
- }>, Schema.Union<readonly [Schema.Struct<{
3285
- readonly state: Schema.Literal<"waiting">;
3286
- readonly expiresAt: Schema.DateTimeUtcFromString;
3287
- }>, Schema.Struct<{
3288
- readonly state: Schema.Literal<"approved">;
3289
- readonly collected: Schema.optionalKey<Schema.Literal<true>>;
3290
- }>, Schema.Struct<{
3291
- readonly state: Schema.Literal<"refused">;
3292
- }>, Schema.Struct<{
3293
- readonly state: Schema.Literal<"expired">;
3294
- }>, Schema.Struct<{
3295
- readonly status: Schema.Int;
3296
- readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
3297
- readonly state: Schema.Literal<"ran">;
3298
- readonly endpoint: Schema.String;
3299
- }>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never>, false>;
3301
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never>, false>;
3300
3302
  /**
3301
3303
  * A person's side of approvals, in an approving browser: what waits for them, finding a
3302
3304
  * terminal's request or a machine's attachment request by its code, and answering one, with
@@ -3337,7 +3339,53 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3337
3339
  readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
3338
3340
  }>>;
3339
3341
  readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
3340
- }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3342
+ }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"identityToken", "POST", "/v1/me/identity-token", never, never, Schema.toCodecJson<Schema.Struct<{
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<{
3348
+ from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3349
+ to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3350
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3351
+ readonly from: Schema.brand<Schema.String, "UtcDay">;
3352
+ readonly to: Schema.brand<Schema.String, "UtcDay">;
3353
+ readonly days: Schema.$Array<Schema.Struct<{
3354
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
3355
+ readonly lines: Schema.$Array<Schema.Struct<{
3356
+ 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"]>;
3357
+ readonly quantity: Schema.Finite;
3358
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3359
+ }>>;
3360
+ }>>;
3361
+ readonly work: Schema.$Array<Schema.Struct<{
3362
+ readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
3363
+ readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
3364
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
3365
+ readonly lines: Schema.$Array<Schema.Struct<{
3366
+ 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"]>;
3367
+ readonly quantity: Schema.Finite;
3368
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3369
+ }>>;
3370
+ }>>;
3371
+ readonly kept: Schema.optionalKey<Schema.Struct<{
3372
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
3373
+ readonly counts: Schema.$Array<Schema.Struct<{
3374
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3375
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
3376
+ readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
3377
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
3378
+ readonly bytes: Schema.Int;
3379
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3380
+ }>>;
3381
+ readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
3382
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
3383
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3384
+ readonly counts: Schema.Int;
3385
+ readonly bytes: Schema.Int;
3386
+ }>>>;
3387
+ }>>;
3388
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3341
3389
  readonly mirrors: Schema.$Array<Schema.Struct<{
3342
3390
  readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3343
3391
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
@@ -3404,53 +3452,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3404
3452
  readonly harness: Schema.String;
3405
3453
  }>>;
3406
3454
  readonly pricesAsOf: Schema.String;
3407
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
3408
- from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3409
- to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3410
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3411
- readonly from: Schema.brand<Schema.String, "UtcDay">;
3412
- readonly to: Schema.brand<Schema.String, "UtcDay">;
3413
- readonly days: Schema.$Array<Schema.Struct<{
3414
- readonly day: Schema.brand<Schema.String, "UtcDay">;
3415
- readonly lines: Schema.$Array<Schema.Struct<{
3416
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
3417
- readonly quantity: Schema.Finite;
3418
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3419
- }>>;
3420
- }>>;
3421
- readonly work: Schema.$Array<Schema.Struct<{
3422
- readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
3423
- readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
3424
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
3425
- readonly lines: Schema.$Array<Schema.Struct<{
3426
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
3427
- readonly quantity: Schema.Finite;
3428
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3429
- }>>;
3430
- }>>;
3431
- readonly kept: Schema.optionalKey<Schema.Struct<{
3432
- readonly day: Schema.brand<Schema.String, "UtcDay">;
3433
- readonly counts: Schema.$Array<Schema.Struct<{
3434
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3435
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
3436
- readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
3437
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
3438
- readonly bytes: Schema.Int;
3439
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3440
- }>>;
3441
- readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
3442
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
3443
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
3444
- readonly counts: Schema.Int;
3445
- readonly bytes: Schema.Int;
3446
- }>>>;
3447
- }>>;
3448
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"identityToken", "POST", "/v1/me/identity-token", never, never, Schema.toCodecJson<Schema.Struct<{
3449
- readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
3450
- }>>, never, Schema.toCodecJson<Schema.Struct<{
3451
- readonly token: Schema.brand<Schema.String, "IdentityToken">;
3452
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
3453
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof SessionHasEnded | typeof SlowDown | typeof IdentityAudienceRefused | typeof IdentityTokenNotReady>, Authorization | IdentityAudienceRefusal, never>, false>;
3455
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never>, false>;
3454
3456
  declare class MeGroup extends MeGroup_base {}
3455
3457
  declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
3456
3458
  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">]>;
@@ -13000,78 +13002,72 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
13000
13002
  * the stage as filters. A project the reader can't see answers as one that isn't there.
13001
13003
  */
13002
13004
  declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
13003
- declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
13005
+ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
13004
13006
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13005
- repo: Schema.brand<Schema.String, "RepoName">;
13006
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13007
- readonly active: Schema.Struct<{
13008
- readonly revision: Schema.Int;
13009
- readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13010
- readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13011
- }>;
13012
- readonly pending: Schema.optionalKey<Schema.Struct<{
13013
- readonly revision: Schema.Int;
13014
- readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13015
- readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13016
- }>>;
13017
- readonly holding: Schema.$Array<Schema.Struct<{
13007
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13008
+ after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
13009
+ limit: Schema.optionalKey<Schema.Int>;
13010
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
13011
+ readonly repos: Schema.$Array<Schema.Struct<{
13018
13012
  readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13019
- readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
13020
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13021
- readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
13022
- readonly gate: Schema.Int;
13023
- readonly since: Schema.Int;
13013
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13014
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13015
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
13016
+ readonly kind: Schema.Literal<"project">;
13017
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
13018
+ }>, Schema.Struct<{
13019
+ readonly kind: Schema.Literal<"owner">;
13020
+ }>]>;
13021
+ readonly name: Schema.brand<Schema.String, "RepoName">;
13022
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13023
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13024
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
13024
13025
  }>>;
13025
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
13026
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
13027
+ }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
13026
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">]>;
13027
- repo: Schema.brand<Schema.String, "RepoName">;
13028
- pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13029
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13030
- readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13031
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13032
- readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
13033
- readonly head: Schema.Struct<{
13034
- readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
13035
- readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
13036
- readonly branch: Schema.String;
13037
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
13038
- readonly generation: Schema.Int;
13039
- }>;
13040
- readonly openedBy: Schema.Union<readonly [Schema.Struct<{
13041
- readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
13042
- readonly agent: Schema.Struct<{
13043
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13044
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
13045
- }>;
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">;
13046
13041
  }>, Schema.Struct<{
13047
- readonly workflow: Schema.Struct<{
13048
- readonly name: Schema.brand<Schema.String, "WorkflowName">;
13049
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
13050
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
13051
- readonly step: Schema.Struct<{
13052
- readonly name: Schema.String;
13053
- readonly count: Schema.Int;
13054
- readonly attempt: Schema.Int;
13055
- }>;
13056
- }>;
13042
+ readonly kind: Schema.Literal<"owner">;
13057
13043
  }>]>;
13058
- readonly openedAt: Schema.DateTimeUtcFromMillis;
13059
- readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
13060
- readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
13061
- readonly repair: Schema.Boolean;
13062
- readonly current: Schema.Struct<{
13063
- readonly version: Schema.brand<Schema.Int, "VersionNumber">;
13064
- readonly head: Schema.brand<Schema.String, "CommitOid">;
13065
- readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13066
- readonly planVersion: Schema.NullOr<Schema.Int>;
13067
- readonly intentRevision: Schema.Int;
13068
- readonly generation: Schema.Int;
13069
- readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
13070
- readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
13071
- readonly createdAt: Schema.DateTimeUtcFromMillis;
13072
- }>;
13073
- readonly threadNumber: Schema.Int;
13074
- }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
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<{
13075
13071
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13076
13072
  repo: Schema.brand<Schema.String, "RepoName">;
13077
13073
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -13088,29 +13084,277 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13088
13084
  readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13089
13085
  readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13090
13086
  readonly createdAt: Schema.DateTimeUtcFromMillis;
13091
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
13087
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
13088
+ 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">]>;
13089
+ repo: Schema.brand<Schema.String, "RepoName">;
13090
+ commit: Schema.brand<Schema.String, "CommitOid">;
13091
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13092
+ path: Schema.brand<Schema.String, "RepoPath">;
13093
+ line: Schema.Int;
13094
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
13095
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13096
+ readonly path: Schema.brand<Schema.String, "RepoPath">;
13097
+ readonly line: Schema.Int;
13098
+ readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
13099
+ readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
13100
+ readonly turns: Schema.$Array<Schema.Struct<{
13101
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13102
+ readonly threadNumber: Schema.Int;
13103
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
13104
+ readonly turn: Schema.Int;
13105
+ readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
13106
+ readonly model: Schema.optionalKey<Schema.String>;
13107
+ }>>;
13108
+ readonly workflow: Schema.optionalKey<Schema.Struct<{
13109
+ readonly name: Schema.brand<Schema.String, "WorkflowName">;
13110
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
13111
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
13112
+ readonly step: Schema.Struct<{
13113
+ readonly name: Schema.String;
13114
+ readonly count: Schema.Int;
13115
+ readonly attempt: Schema.Int;
13116
+ }>;
13117
+ }>>;
13118
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
13092
13119
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13093
13120
  repo: Schema.brand<Schema.String, "RepoName">;
13094
- pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13095
13121
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13096
- readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13097
- readonly version: Schema.brand<Schema.Int, "VersionNumber">;
13098
- readonly state: Schema.Literals<readonly ["pending", "answered", "failed"]>;
13099
- readonly why: Schema.NullOr<Schema.String>;
13100
- readonly needs: Schema.$Array<Schema.Struct<{
13101
- readonly need: Schema.Union<readonly [Schema.Struct<{
13102
- readonly kind: Schema.Literal<"checks">;
13122
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13123
+ readonly version: Schema.Int;
13124
+ readonly baseline: Schema.Struct<{
13125
+ readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
13126
+ readonly tip: Schema.brand<Schema.String, "CommitOid">;
13127
+ readonly sequence: Schema.Int;
13128
+ readonly depth: Schema.Int;
13129
+ readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13130
+ }>;
13131
+ readonly main: Schema.optionalKey<Schema.Struct<{
13132
+ readonly sequence: Schema.Int;
13133
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13134
+ }>>;
13135
+ readonly packs: Schema.$Array<Schema.Struct<{
13136
+ readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
13137
+ readonly key: Schema.String;
13138
+ readonly sha256: Schema.String;
13139
+ readonly bytes: Schema.Int;
13140
+ readonly merges: Schema.optionalKey<Schema.Struct<{
13141
+ readonly first: Schema.Int;
13142
+ readonly last: Schema.Int;
13143
+ }>>;
13144
+ readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
13145
+ readonly depth: Schema.optionalKey<Schema.Int>;
13146
+ readonly roots: Schema.$Array<Schema.Struct<{
13147
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13148
+ readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13149
+ }>>;
13150
+ }>>;
13151
+ }>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
13152
+ 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">]>;
13153
+ repo: Schema.brand<Schema.String, "RepoName">;
13154
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13155
+ key: Schema.String;
13156
+ }>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13157
+ 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">]>;
13158
+ repo: Schema.brand<Schema.String, "RepoName">;
13159
+ }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
13160
+ readonly kind: Schema.Literal<"none">;
13161
+ }>, Schema.Struct<{
13162
+ readonly kind: Schema.Literal<"github">;
13163
+ readonly branch: Schema.String;
13164
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
13165
+ readonly state: Schema.Literal<"on">;
13166
+ }>, Schema.Struct<{
13167
+ readonly state: Schema.Literal<"paused">;
13168
+ readonly paused: Schema.Union<readonly [Schema.Struct<{
13169
+ readonly why: Schema.Literal<"diverged">;
13170
+ readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13103
13171
  }>, Schema.Struct<{
13104
- readonly kind: Schema.Literal<"check">;
13105
- readonly name: Schema.brand<Schema.String, "CheckName">;
13106
- readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13107
- readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13108
- readonly local: Schema.optionalKey<Schema.Literal<true>>;
13109
- readonly passkey: Schema.optionalKey<Schema.Struct<{
13110
- readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
13111
- readonly person: Schema.brand<Schema.String, "OwnerName">;
13112
- }>, Schema.Struct<{
13113
- readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
13172
+ readonly why: Schema.Literal<"refused">;
13173
+ readonly said: Schema.String;
13174
+ }>, Schema.Struct<{
13175
+ readonly why: Schema.Literal<"unauthorized">;
13176
+ }>]>;
13177
+ }>, Schema.Struct<{
13178
+ readonly state: Schema.Literal<"off">;
13179
+ }>]>;
13180
+ readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13181
+ readonly nextStep: Schema.optionalKey<Schema.String>;
13182
+ }>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
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<{
13213
+ 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
+ repo: Schema.brand<Schema.String, "RepoName">;
13215
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13216
+ readonly active: Schema.Struct<{
13217
+ readonly revision: Schema.Int;
13218
+ readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13219
+ readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13220
+ }>;
13221
+ readonly pending: Schema.optionalKey<Schema.Struct<{
13222
+ readonly revision: Schema.Int;
13223
+ readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13224
+ readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13225
+ }>>;
13226
+ readonly holding: Schema.$Array<Schema.Struct<{
13227
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13228
+ readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
13229
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13230
+ readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
13231
+ readonly gate: Schema.Int;
13232
+ readonly since: Schema.Int;
13233
+ }>>;
13234
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
13235
+ 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">]>;
13236
+ repo: Schema.brand<Schema.String, "RepoName">;
13237
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13238
+ readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
13239
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
13240
+ readonly pullRequests: Schema.$Array<Schema.Struct<{
13241
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13242
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13243
+ readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
13244
+ readonly head: Schema.Struct<{
13245
+ readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
13246
+ readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
13247
+ readonly branch: Schema.String;
13248
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13249
+ readonly generation: Schema.Int;
13250
+ }>;
13251
+ readonly openedBy: Schema.Union<readonly [Schema.Struct<{
13252
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
13253
+ readonly agent: Schema.Struct<{
13254
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13255
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
13256
+ }>;
13257
+ }>, Schema.Struct<{
13258
+ readonly workflow: Schema.Struct<{
13259
+ readonly name: Schema.brand<Schema.String, "WorkflowName">;
13260
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
13261
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
13262
+ readonly step: Schema.Struct<{
13263
+ readonly name: Schema.String;
13264
+ readonly count: Schema.Int;
13265
+ readonly attempt: Schema.Int;
13266
+ }>;
13267
+ }>;
13268
+ }>]>;
13269
+ readonly openedAt: Schema.DateTimeUtcFromMillis;
13270
+ readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
13271
+ readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
13272
+ readonly repair: Schema.Boolean;
13273
+ readonly current: Schema.Struct<{
13274
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
13275
+ readonly head: Schema.brand<Schema.String, "CommitOid">;
13276
+ readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13277
+ readonly planVersion: Schema.NullOr<Schema.Int>;
13278
+ readonly intentRevision: Schema.Int;
13279
+ readonly generation: Schema.Int;
13280
+ readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
13281
+ readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
13282
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
13283
+ }>;
13284
+ readonly threadNumber: Schema.Int;
13285
+ }>>;
13286
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
13287
+ 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">]>;
13288
+ repo: Schema.brand<Schema.String, "RepoName">;
13289
+ pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13290
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13291
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13292
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13293
+ readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
13294
+ readonly head: Schema.Struct<{
13295
+ readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
13296
+ readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
13297
+ readonly branch: Schema.String;
13298
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13299
+ readonly generation: Schema.Int;
13300
+ }>;
13301
+ readonly openedBy: Schema.Union<readonly [Schema.Struct<{
13302
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
13303
+ readonly agent: Schema.Struct<{
13304
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13305
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
13306
+ }>;
13307
+ }>, Schema.Struct<{
13308
+ readonly workflow: Schema.Struct<{
13309
+ readonly name: Schema.brand<Schema.String, "WorkflowName">;
13310
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
13311
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
13312
+ readonly step: Schema.Struct<{
13313
+ readonly name: Schema.String;
13314
+ readonly count: Schema.Int;
13315
+ readonly attempt: Schema.Int;
13316
+ }>;
13317
+ }>;
13318
+ }>]>;
13319
+ readonly openedAt: Schema.DateTimeUtcFromMillis;
13320
+ readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
13321
+ readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
13322
+ readonly repair: Schema.Boolean;
13323
+ readonly current: Schema.Struct<{
13324
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
13325
+ readonly head: Schema.brand<Schema.String, "CommitOid">;
13326
+ readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13327
+ readonly planVersion: Schema.NullOr<Schema.Int>;
13328
+ readonly intentRevision: Schema.Int;
13329
+ readonly generation: Schema.Int;
13330
+ readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
13331
+ readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
13332
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
13333
+ }>;
13334
+ readonly threadNumber: Schema.Int;
13335
+ }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
13336
+ 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">]>;
13337
+ repo: Schema.brand<Schema.String, "RepoName">;
13338
+ pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13339
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13340
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13341
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
13342
+ readonly state: Schema.Literals<readonly ["pending", "answered", "failed"]>;
13343
+ readonly why: Schema.NullOr<Schema.String>;
13344
+ readonly needs: Schema.$Array<Schema.Struct<{
13345
+ readonly need: Schema.Union<readonly [Schema.Struct<{
13346
+ readonly kind: Schema.Literal<"checks">;
13347
+ }>, Schema.Struct<{
13348
+ readonly kind: Schema.Literal<"check">;
13349
+ readonly name: Schema.brand<Schema.String, "CheckName">;
13350
+ readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13351
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13352
+ readonly local: Schema.optionalKey<Schema.Literal<true>>;
13353
+ readonly passkey: Schema.optionalKey<Schema.Struct<{
13354
+ readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
13355
+ readonly person: Schema.brand<Schema.String, "OwnerName">;
13356
+ }>, Schema.Struct<{
13357
+ readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
13114
13358
  }>]>;
13115
13359
  }>>;
13116
13360
  }>, Schema.Struct<{
@@ -13851,137 +14095,35 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13851
14095
  readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
13852
14096
  readonly at: Schema.DateTimeUtcFromMillis;
13853
14097
  }>]>>>;
13854
- }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
14098
+ }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
13855
14099
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13856
14100
  repo: Schema.brand<Schema.String, "RepoName">;
13857
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13858
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13859
- readonly version: Schema.Int;
13860
- readonly baseline: Schema.Struct<{
13861
- readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
13862
- readonly tip: Schema.brand<Schema.String, "CommitOid">;
13863
- readonly sequence: Schema.Int;
13864
- readonly depth: Schema.Int;
13865
- readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13866
- }>;
13867
- readonly main: Schema.optionalKey<Schema.Struct<{
13868
- readonly sequence: Schema.Int;
13869
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
13870
- }>>;
13871
- readonly packs: Schema.$Array<Schema.Struct<{
13872
- readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
13873
- readonly key: Schema.String;
13874
- readonly sha256: Schema.String;
13875
- readonly bytes: Schema.Int;
13876
- readonly merges: Schema.optionalKey<Schema.Struct<{
13877
- readonly first: Schema.Int;
13878
- readonly last: Schema.Int;
13879
- }>>;
13880
- readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
13881
- readonly depth: Schema.optionalKey<Schema.Int>;
13882
- readonly roots: Schema.$Array<Schema.Struct<{
13883
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
13884
- readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
14101
+ pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
14102
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
14103
+ readonly need: Schema.Union<readonly [Schema.Struct<{
14104
+ readonly kind: Schema.Literal<"checks">;
14105
+ }>, Schema.Struct<{
14106
+ readonly kind: Schema.Literal<"check">;
14107
+ readonly name: Schema.brand<Schema.String, "CheckName">;
14108
+ readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
14109
+ readonly source: Schema.optionalKey<Schema.Literal<"project">>;
14110
+ readonly local: Schema.optionalKey<Schema.Literal<true>>;
14111
+ readonly passkey: Schema.optionalKey<Schema.Struct<{
14112
+ readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
14113
+ readonly person: Schema.brand<Schema.String, "OwnerName">;
14114
+ }>, Schema.Struct<{
14115
+ readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
14116
+ }>]>;
13885
14117
  }>>;
13886
- }>>;
13887
- }>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13888
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13889
- repo: Schema.brand<Schema.String, "RepoName">;
13890
- }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
13891
- readonly kind: Schema.Literal<"none">;
13892
- }>, Schema.Struct<{
13893
- readonly kind: Schema.Literal<"github">;
13894
- readonly branch: Schema.String;
13895
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
13896
- readonly state: Schema.Literal<"on">;
13897
14118
  }>, Schema.Struct<{
13898
- readonly state: Schema.Literal<"paused">;
13899
- readonly paused: Schema.Union<readonly [Schema.Struct<{
13900
- readonly why: Schema.Literal<"diverged">;
13901
- readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13902
- }>, Schema.Struct<{
13903
- readonly why: Schema.Literal<"refused">;
13904
- readonly said: Schema.String;
13905
- }>, Schema.Struct<{
13906
- readonly why: Schema.Literal<"unauthorized">;
13907
- }>]>;
14119
+ readonly kind: Schema.Literal<"review">;
13908
14120
  }>, Schema.Struct<{
13909
- readonly state: Schema.Literal<"off">;
13910
- }>]>;
13911
- readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13912
- readonly nextStep: Schema.optionalKey<Schema.String>;
13913
- }>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
13914
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13915
- }>>, never, Schema.toCodecJson<Schema.Struct<{
13916
- readonly name: Schema.brand<Schema.String, "RepoName">;
13917
- readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
13918
- }>>, Schema.toCodecStringTree<Schema.Struct<{
13919
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13920
- }>>, Schema.toCodecJson<Schema.Struct<{
13921
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13922
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13923
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13924
- readonly scope: Schema.Union<readonly [Schema.Struct<{
13925
- readonly kind: Schema.Literal<"project">;
13926
- readonly name: Schema.brand<Schema.String, "ProjectName">;
13927
- }>, Schema.Struct<{
13928
- readonly kind: Schema.Literal<"owner">;
13929
- }>]>;
13930
- readonly name: Schema.brand<Schema.String, "RepoName">;
13931
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13932
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13933
- readonly createdAt: Schema.DateTimeUtcFromMillis;
13934
- }>>, 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<{
13935
- 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">]>;
13936
- }>>, never, Schema.toCodecJson<Schema.Struct<{
13937
- readonly name: Schema.brand<Schema.String, "RepoName">;
13938
- readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
13939
- readonly url: Schema.brand<Schema.String, "RepoUrl">;
13940
- }>>, Schema.toCodecStringTree<Schema.Struct<{
13941
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13942
- }>>, Schema.toCodecJson<Schema.Struct<{
13943
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13944
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13945
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13946
- readonly scope: Schema.Union<readonly [Schema.Struct<{
13947
- readonly kind: Schema.Literal<"project">;
13948
- readonly name: Schema.brand<Schema.String, "ProjectName">;
13949
- }>, Schema.Struct<{
13950
- readonly kind: Schema.Literal<"owner">;
13951
- }>]>;
13952
- readonly name: Schema.brand<Schema.String, "RepoName">;
13953
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13954
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13955
- readonly createdAt: Schema.DateTimeUtcFromMillis;
13956
- }>>, 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<{
13957
- 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">]>;
13958
- repo: Schema.brand<Schema.String, "RepoName">;
13959
- pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
13960
- }>>, never, Schema.toCodecJson<Schema.Struct<{
13961
- readonly need: Schema.Union<readonly [Schema.Struct<{
13962
- readonly kind: Schema.Literal<"checks">;
13963
- }>, Schema.Struct<{
13964
- readonly kind: Schema.Literal<"check">;
13965
- readonly name: Schema.brand<Schema.String, "CheckName">;
13966
- readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13967
- readonly source: Schema.optionalKey<Schema.Literal<"project">>;
13968
- readonly local: Schema.optionalKey<Schema.Literal<true>>;
13969
- readonly passkey: Schema.optionalKey<Schema.Struct<{
13970
- readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
13971
- readonly person: Schema.brand<Schema.String, "OwnerName">;
13972
- }>, Schema.Struct<{
13973
- readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
13974
- }>]>;
13975
- }>>;
13976
- }>, Schema.Struct<{
13977
- readonly kind: Schema.Literal<"review">;
13978
- }>, Schema.Struct<{
13979
- readonly kind: Schema.Literal<"accountable">;
13980
- }>, Schema.Struct<{
13981
- readonly kind: Schema.Literal<"admin">;
13982
- }>, Schema.Struct<{
13983
- readonly kind: Schema.Literal<"permission">;
13984
- readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
14121
+ readonly kind: Schema.Literal<"accountable">;
14122
+ }>, Schema.Struct<{
14123
+ readonly kind: Schema.Literal<"admin">;
14124
+ }>, Schema.Struct<{
14125
+ readonly kind: Schema.Literal<"permission">;
14126
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
13985
14127
  }>]>;
13986
14128
  }>>, Schema.toCodecStringTree<Schema.Struct<{
13987
14129
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
@@ -14005,147 +14147,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
14005
14147
  readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
14006
14148
  readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
14007
14149
  readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
14008
- }>>, 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<{
14009
- 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">]>;
14010
- repo: Schema.brand<Schema.String, "RepoName">;
14011
- }>>, never, Schema.toCodecJson<Schema.Struct<{
14012
- readonly state: Schema.Literals<readonly ["on", "off"]>;
14013
- }>>, Schema.toCodecStringTree<Schema.Struct<{
14014
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
14015
- }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
14016
- readonly kind: Schema.Literal<"none">;
14017
- }>, Schema.Struct<{
14018
- readonly kind: Schema.Literal<"github">;
14019
- readonly branch: Schema.String;
14020
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
14021
- readonly state: Schema.Literal<"on">;
14022
- }>, Schema.Struct<{
14023
- readonly state: Schema.Literal<"paused">;
14024
- readonly paused: Schema.Union<readonly [Schema.Struct<{
14025
- readonly why: Schema.Literal<"diverged">;
14026
- readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
14027
- }>, Schema.Struct<{
14028
- readonly why: Schema.Literal<"refused">;
14029
- readonly said: Schema.String;
14030
- }>, Schema.Struct<{
14031
- readonly why: Schema.Literal<"unauthorized">;
14032
- }>]>;
14033
- }>, Schema.Struct<{
14034
- readonly state: Schema.Literal<"off">;
14035
- }>]>;
14036
- readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
14037
- readonly nextStep: Schema.optionalKey<Schema.String>;
14038
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
14039
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
14040
- repo: Schema.brand<Schema.String, "RepoName">;
14041
- }>>, Schema.toCodecStringTree<Schema.Struct<{
14042
- readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
14043
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
14044
- readonly pullRequests: Schema.$Array<Schema.Struct<{
14045
- readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
14046
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
14047
- readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
14048
- readonly head: Schema.Struct<{
14049
- readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
14050
- readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
14051
- readonly branch: Schema.String;
14052
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
14053
- readonly generation: Schema.Int;
14054
- }>;
14055
- readonly openedBy: Schema.Union<readonly [Schema.Struct<{
14056
- readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
14057
- readonly agent: Schema.Struct<{
14058
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
14059
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
14060
- }>;
14061
- }>, Schema.Struct<{
14062
- readonly workflow: Schema.Struct<{
14063
- readonly name: Schema.brand<Schema.String, "WorkflowName">;
14064
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
14065
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
14066
- readonly step: Schema.Struct<{
14067
- readonly name: Schema.String;
14068
- readonly count: Schema.Int;
14069
- readonly attempt: Schema.Int;
14070
- }>;
14071
- }>;
14072
- }>]>;
14073
- readonly openedAt: Schema.DateTimeUtcFromMillis;
14074
- readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
14075
- readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
14076
- readonly repair: Schema.Boolean;
14077
- readonly current: Schema.Struct<{
14078
- readonly version: Schema.brand<Schema.Int, "VersionNumber">;
14079
- readonly head: Schema.brand<Schema.String, "CommitOid">;
14080
- readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
14081
- readonly planVersion: Schema.NullOr<Schema.Int>;
14082
- readonly intentRevision: Schema.Int;
14083
- readonly generation: Schema.Int;
14084
- readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
14085
- readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
14086
- readonly createdAt: Schema.DateTimeUtcFromMillis;
14087
- }>;
14088
- readonly threadNumber: Schema.Int;
14089
- }>>;
14090
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
14091
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
14092
- }>>, Schema.toCodecStringTree<Schema.Struct<{
14093
- after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
14094
- limit: Schema.optionalKey<Schema.Int>;
14095
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
14096
- readonly repos: Schema.$Array<Schema.Struct<{
14097
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
14098
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
14099
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
14100
- readonly scope: Schema.Union<readonly [Schema.Struct<{
14101
- readonly kind: Schema.Literal<"project">;
14102
- readonly name: Schema.brand<Schema.String, "ProjectName">;
14103
- }>, Schema.Struct<{
14104
- readonly kind: Schema.Literal<"owner">;
14105
- }>]>;
14106
- readonly name: Schema.brand<Schema.String, "RepoName">;
14107
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
14108
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
14109
- readonly createdAt: Schema.DateTimeUtcFromMillis;
14110
- }>>;
14111
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
14112
- }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
14113
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
14114
- repo: Schema.brand<Schema.String, "RepoName">;
14115
- }>>, Schema.toCodecStringTree<Schema.Struct<{
14116
- key: Schema.String;
14117
- }>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
14118
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
14119
- repo: Schema.brand<Schema.String, "RepoName">;
14120
- commit: Schema.brand<Schema.String, "CommitOid">;
14121
- }>>, Schema.toCodecStringTree<Schema.Struct<{
14122
- path: Schema.brand<Schema.String, "RepoPath">;
14123
- line: Schema.Int;
14124
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
14125
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
14126
- readonly path: Schema.brand<Schema.String, "RepoPath">;
14127
- readonly line: Schema.Int;
14128
- readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
14129
- readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
14130
- readonly turns: Schema.$Array<Schema.Struct<{
14131
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
14132
- readonly threadNumber: Schema.Int;
14133
- readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
14134
- readonly turn: Schema.Int;
14135
- readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
14136
- readonly model: Schema.optionalKey<Schema.String>;
14137
- }>>;
14138
- readonly workflow: Schema.optionalKey<Schema.Struct<{
14139
- readonly name: Schema.brand<Schema.String, "WorkflowName">;
14140
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
14141
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
14142
- readonly step: Schema.Struct<{
14143
- readonly name: Schema.String;
14144
- readonly count: Schema.Int;
14145
- readonly attempt: Schema.Int;
14146
- }>;
14147
- }>>;
14148
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
14150
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never>, false>;
14149
14151
  /**
14150
14152
  * An owner's repos, as each reader may see them: a repo shows only to whoever can see its
14151
14153
  * project. Adding one is a person's approved command, which reaches `/v1` with approvals.
@@ -17695,31 +17697,7 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
17695
17697
  readonly thread: Schema.optionalKey<Schema.Int>;
17696
17698
  readonly suspended: Schema.optionalKey<Schema.Literal<true>>;
17697
17699
  }>>;
17698
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
17699
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17700
- repo: Schema.brand<Schema.String, "RepoName">;
17701
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17702
- readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
17703
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17704
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17705
- }>>, Schema.toCodecJson<Schema.Struct<{
17706
- readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17707
- readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17708
- readonly coversUnread: Schema.Boolean;
17709
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
17710
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17711
- repo: Schema.brand<Schema.String, "RepoName">;
17712
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17713
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17714
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17715
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17716
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17717
- }>>, Schema.toCodecJson<Schema.Struct<{
17718
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17719
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17720
- readonly changed: Schema.Boolean;
17721
- readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17722
- }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
17700
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
17723
17701
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17724
17702
  repo: Schema.brand<Schema.String, "RepoName">;
17725
17703
  workflow: Schema.brand<Schema.String, "WorkflowName">;
@@ -17791,17 +17769,56 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
17791
17769
  readonly title: Schema.optionalKey<Schema.String>;
17792
17770
  }>>;
17793
17771
  readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
17794
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
17772
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
17773
+ 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">]>;
17774
+ repo: Schema.brand<Schema.String, "RepoName">;
17775
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
17776
+ readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
17777
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17778
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17779
+ }>>, Schema.toCodecJson<Schema.Struct<{
17780
+ readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17781
+ readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
17782
+ readonly coversUnread: Schema.Boolean;
17783
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
17784
+ 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">]>;
17785
+ repo: Schema.brand<Schema.String, "RepoName">;
17786
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
17787
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17788
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17789
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17790
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17791
+ }>>, Schema.toCodecJson<Schema.Struct<{
17792
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17793
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
17794
+ readonly changed: Schema.Boolean;
17795
+ readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17796
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never>, false>;
17795
17797
  /**
17796
17798
  * A repo's workflows and their workflow runs, for whoever may read the repo. Turning workflows
17797
17799
  * off is a person's approved command, which reaches `/v1` with approvals; an agent asks its
17798
17800
  * person.
17799
17801
  */
17800
17802
  declare class WorkflowsGroup extends WorkflowsGroup_base {}
17801
- declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
17803
+ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
17802
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">]>;
17803
17805
  repo: Schema.brand<Schema.String, "RepoName">;
17804
- }>>, never, Schema.toCodecJson<Schema.Struct<{
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<{
17805
17822
  readonly check: Schema.brand<Schema.String, "CheckKey">;
17806
17823
  readonly on: Schema.Union<readonly [Schema.Struct<{
17807
17824
  readonly kind: Schema.Literal<"main">;
@@ -17882,40 +17899,15 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
17882
17899
  }>>;
17883
17900
  }>>;
17884
17901
  }>;
17885
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
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<{
17886
17903
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17887
17904
  repo: Schema.brand<Schema.String, "RepoName">;
17888
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17889
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17890
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17891
- readonly check: Schema.brand<Schema.String, "CheckName">;
17892
- readonly code: Schema.Struct<{
17893
- readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
17894
- readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
17895
- }>;
17896
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17897
- readonly tree: Schema.brand<Schema.String, "TreeOid">;
17898
- readonly result: Schema.Union<readonly [Schema.Struct<{
17899
- readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
17900
- readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17901
- readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17902
- readonly kind: Schema.Literal<"review">;
17903
- }>, Schema.Struct<{
17904
- readonly kind: Schema.Literal<"accountable">;
17905
- }>, Schema.Struct<{
17906
- readonly kind: Schema.Literal<"admin">;
17907
- }>, Schema.Struct<{
17908
- readonly kind: Schema.Literal<"permission">;
17909
- readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
17910
- }>]>>>;
17911
- }>, Schema.Struct<{
17912
- readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
17913
- readonly why: Schema.optionalKey<Schema.String>;
17914
- }>]>;
17915
- readonly outputsHash: Schema.String;
17916
- readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
17917
- }>>, never, Schema.toCodecJson<Schema.Struct<{
17918
- readonly run: Schema.Union<readonly [Schema.Struct<{
17905
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17906
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17907
+ readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
17908
+ readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17909
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17910
+ readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17919
17911
  readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17920
17912
  readonly check: Schema.brand<Schema.String, "CheckName">;
17921
17913
  readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -18145,74 +18137,250 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
18145
18137
  }>>;
18146
18138
  readonly state: Schema.Literal<"ended">;
18147
18139
  readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
18148
- }>]>;
18149
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
18140
+ }>]>>;
18141
+ readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18142
+ }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
18150
18143
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18151
18144
  repo: Schema.brand<Schema.String, "RepoName">;
18152
- }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18153
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18154
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18155
- }>, Schema.Struct<{
18156
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18157
- readonly person: Schema.brand<Schema.String, "OwnerName">;
18158
- }>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18159
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18160
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18161
- }>, Schema.Struct<{
18162
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18163
- readonly person: Schema.brand<Schema.String, "OwnerName">;
18164
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
18145
+ run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
18146
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18147
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
18148
+ readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
18149
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18150
+ readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
18151
+ readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
18152
+ readonly events: Schema.$Array<Schema.Struct<{
18153
+ readonly eventId: Schema.Int;
18154
+ readonly timestamp: Schema.Finite;
18155
+ readonly type: Schema.String;
18156
+ readonly stepName: Schema.optionalKey<Schema.String>;
18157
+ readonly attempt: Schema.optionalKey<Schema.Int>;
18158
+ readonly durationMs: Schema.optionalKey<Schema.Finite>;
18159
+ readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
18160
+ readonly eventType: Schema.optionalKey<Schema.String>;
18161
+ readonly error: Schema.optionalKey<Schema.Struct<{
18162
+ readonly name: Schema.String;
18163
+ readonly message: Schema.String;
18164
+ }>>;
18165
+ }>>;
18166
+ readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
18167
+ readonly kind: Schema.Literal<"session">;
18168
+ readonly id: Schema.String;
18169
+ readonly at: Schema.Finite;
18170
+ readonly sandbox: Schema.String;
18171
+ readonly step: Schema.String;
18172
+ readonly attempt: Schema.Int;
18173
+ readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
18174
+ readonly key: Schema.optionalKey<Schema.String>;
18175
+ readonly restoreMs: Schema.Finite;
18176
+ }>, Schema.Struct<{
18177
+ readonly kind: Schema.Literal<"command">;
18178
+ readonly id: Schema.String;
18179
+ readonly parent: Schema.String;
18180
+ readonly at: Schema.Finite;
18181
+ readonly argv: Schema.$Array<Schema.String>;
18182
+ readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
18183
+ readonly exitCode: Schema.optionalKey<Schema.Int>;
18184
+ readonly durationMs: Schema.Finite;
18185
+ readonly stdoutCut: Schema.Boolean;
18186
+ readonly stderrCut: Schema.Boolean;
18187
+ }>, Schema.Struct<{
18188
+ readonly kind: Schema.Literal<"untraced">;
18189
+ readonly id: Schema.String;
18190
+ readonly parent: Schema.String;
18191
+ readonly at: Schema.Finite;
18192
+ readonly commands: Schema.Int;
18193
+ }>, Schema.Struct<{
18194
+ readonly kind: Schema.Literal<"serve">;
18195
+ readonly id: Schema.String;
18196
+ readonly parent: Schema.String;
18197
+ readonly at: Schema.Finite;
18198
+ readonly argv: Schema.$Array<Schema.String>;
18199
+ readonly port: Schema.Int;
18200
+ readonly host: Schema.String;
18201
+ readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
18202
+ readonly readyMs: Schema.optionalKey<Schema.Finite>;
18203
+ readonly exitCode: Schema.optionalKey<Schema.Int>;
18204
+ readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
18205
+ }>, Schema.Struct<{
18206
+ readonly kind: Schema.Literal<"route">;
18207
+ readonly id: Schema.String;
18208
+ readonly parent: Schema.String;
18209
+ readonly at: Schema.Finite;
18210
+ readonly method: Schema.String;
18211
+ readonly path: Schema.String;
18212
+ readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
18213
+ readonly status: Schema.optionalKey<Schema.Int>;
18214
+ readonly why: Schema.optionalKey<Schema.String>;
18215
+ readonly durationMs: Schema.Finite;
18216
+ readonly bytes: Schema.Int;
18217
+ }>, Schema.Struct<{
18218
+ readonly kind: Schema.Literal<"routes omitted">;
18219
+ readonly id: Schema.String;
18220
+ readonly parent: Schema.String;
18221
+ readonly at: Schema.Finite;
18222
+ readonly requests: Schema.Int;
18223
+ }>, Schema.Struct<{
18224
+ readonly kind: Schema.Literal<"route refusal">;
18225
+ readonly id: Schema.String;
18226
+ readonly parent: Schema.String;
18227
+ readonly at: Schema.Finite;
18228
+ readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
18229
+ readonly why: Schema.String;
18230
+ readonly url: Schema.String;
18231
+ }>, Schema.Struct<{
18232
+ readonly kind: Schema.Literal<"browser">;
18233
+ readonly id: Schema.String;
18234
+ readonly parent: Schema.String;
18235
+ readonly at: Schema.Finite;
18236
+ readonly browserSession: Schema.optionalKey<Schema.String>;
18237
+ readonly acquireMs: Schema.optionalKey<Schema.Finite>;
18238
+ readonly connects: Schema.Int;
18239
+ readonly closedAt: Schema.optionalKey<Schema.Finite>;
18240
+ readonly outcome: Schema.Literals<readonly ["closed", "unconfirmed", "unresolved", "failed", "unavailable"]>;
18241
+ readonly reported: Schema.Int;
18242
+ }>, Schema.Struct<{
18243
+ readonly kind: Schema.Literal<"build">;
18244
+ readonly id: Schema.String;
18245
+ readonly at: Schema.Finite;
18246
+ readonly build: Schema.Int;
18247
+ readonly key: Schema.String;
18248
+ readonly state: Schema.Literals<readonly ["queued", "starting", "building", "ready", "failed", "full", "unbegun"]>;
18249
+ readonly durationMs: Schema.optionalKey<Schema.Finite>;
18250
+ readonly why: Schema.optionalKey<Schema.String>;
18251
+ }>, Schema.Struct<{
18252
+ readonly kind: Schema.Literal<"setup">;
18253
+ readonly id: Schema.String;
18254
+ readonly parent: Schema.String;
18255
+ readonly at: Schema.Finite;
18256
+ readonly argv: Schema.$Array<Schema.String>;
18257
+ readonly exitCode: Schema.optionalKey<Schema.Int>;
18258
+ readonly durationMs: Schema.Finite;
18259
+ }>]>>;
18260
+ readonly logs: Schema.$Array<Schema.Struct<{
18261
+ readonly at: Schema.Finite;
18262
+ readonly level: Schema.String;
18263
+ readonly message: Schema.String;
18264
+ readonly span: Schema.optionalKey<Schema.String>;
18265
+ }>>;
18266
+ readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
18267
+ readonly more: Schema.Boolean;
18268
+ }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
18165
18269
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18166
18270
  repo: Schema.brand<Schema.String, "RepoName">;
18167
18271
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18168
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
18169
- readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
18170
- readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18272
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18273
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18171
18274
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18172
- readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
18173
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18174
- readonly check: Schema.brand<Schema.String, "CheckName">;
18175
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18176
- readonly rerun: Schema.Int;
18177
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18178
- readonly tree: Schema.brand<Schema.String, "TreeOid">;
18275
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
18276
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
18277
+ readonly tree: Schema.brand<Schema.String, "TreeOid">;
18278
+ readonly check: Schema.brand<Schema.String, "CheckName">;
18279
+ readonly code: Schema.Struct<{
18280
+ readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
18179
18281
  readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
18180
- readonly createdAt: Schema.DateTimeUtcFromMillis;
18181
- readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
18182
- readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
18183
- readonly starters: Schema.$Array<Schema.Struct<{
18184
- readonly actor: Schema.Union<readonly [Schema.Struct<{
18185
- readonly kind: Schema.Literal<"person">;
18186
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18187
- }>, Schema.Struct<{
18188
- readonly kind: Schema.Literal<"agent">;
18189
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18190
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18191
- }>, Schema.Struct<{
18192
- readonly kind: Schema.Literal<"ref0">;
18193
- 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")[]>;
18194
- }>]>;
18195
- readonly request: Schema.String;
18196
- readonly at: Schema.DateTimeUtcFromMillis;
18197
- }>>;
18198
- readonly local: Schema.optionalKey<Schema.Struct<{
18199
- readonly attachment: Schema.Struct<{
18200
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18201
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18202
- }>;
18203
- readonly agent: Schema.optionalKey<Schema.Struct<{
18204
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18205
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18282
+ }>;
18283
+ readonly timeoutSeconds: Schema.Int;
18284
+ readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18285
+ readonly compiled: Schema.Struct<{
18286
+ readonly entry: Schema.Struct<{
18287
+ readonly name: Schema.String;
18288
+ readonly module: Schema.String;
18289
+ readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18290
+ readonly files: Schema.$Array<Schema.String>;
18291
+ readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
18292
+ readonly sourceMap: Schema.optionalKey<Schema.String>;
18293
+ readonly reaches: Schema.optionalKey<Schema.Struct<{
18294
+ readonly tree: Schema.Boolean;
18295
+ readonly browser: Schema.Boolean;
18206
18296
  }>>;
18207
- }>>;
18208
- readonly routes: Schema.optionalKey<Schema.Struct<{
18209
- readonly requests: Schema.Int;
18210
- readonly omitted: Schema.Int;
18211
- readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
18212
- readonly refusals: Schema.$Array<Schema.Struct<{
18213
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18214
- readonly step: Schema.String;
18215
- readonly count: Schema.Int;
18297
+ readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18298
+ readonly name: Schema.String;
18299
+ readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18300
+ readonly pin: Schema.String;
18301
+ readonly format: Schema.Int;
18302
+ }>>>;
18303
+ readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
18304
+ }>;
18305
+ readonly modules: Schema.$Record<Schema.String, Schema.String>;
18306
+ }>;
18307
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
18308
+ 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
+ repo: Schema.brand<Schema.String, "RepoName">;
18310
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18311
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18312
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18313
+ readonly check: Schema.brand<Schema.String, "CheckName">;
18314
+ readonly code: Schema.Struct<{
18315
+ readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
18316
+ readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
18317
+ }>;
18318
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18319
+ readonly tree: Schema.brand<Schema.String, "TreeOid">;
18320
+ readonly result: Schema.Union<readonly [Schema.Struct<{
18321
+ readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
18322
+ readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18323
+ readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
18324
+ readonly kind: Schema.Literal<"review">;
18325
+ }>, Schema.Struct<{
18326
+ readonly kind: Schema.Literal<"accountable">;
18327
+ }>, Schema.Struct<{
18328
+ readonly kind: Schema.Literal<"admin">;
18329
+ }>, Schema.Struct<{
18330
+ readonly kind: Schema.Literal<"permission">;
18331
+ readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
18332
+ }>]>>>;
18333
+ }>, Schema.Struct<{
18334
+ readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
18335
+ readonly why: Schema.optionalKey<Schema.String>;
18336
+ }>]>;
18337
+ readonly outputsHash: Schema.String;
18338
+ readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
18339
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18340
+ readonly run: Schema.Union<readonly [Schema.Struct<{
18341
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18342
+ readonly check: Schema.brand<Schema.String, "CheckName">;
18343
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18344
+ readonly rerun: Schema.Int;
18345
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18346
+ readonly tree: Schema.brand<Schema.String, "TreeOid">;
18347
+ readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
18348
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
18349
+ readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
18350
+ readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
18351
+ readonly starters: Schema.$Array<Schema.Struct<{
18352
+ readonly actor: Schema.Union<readonly [Schema.Struct<{
18353
+ readonly kind: Schema.Literal<"person">;
18354
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18355
+ }>, Schema.Struct<{
18356
+ readonly kind: Schema.Literal<"agent">;
18357
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18358
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18359
+ }>, Schema.Struct<{
18360
+ readonly kind: Schema.Literal<"ref0">;
18361
+ 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")[]>;
18362
+ }>]>;
18363
+ readonly request: Schema.String;
18364
+ readonly at: Schema.DateTimeUtcFromMillis;
18365
+ }>>;
18366
+ readonly local: Schema.optionalKey<Schema.Struct<{
18367
+ readonly attachment: Schema.Struct<{
18368
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18369
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18370
+ }>;
18371
+ readonly agent: Schema.optionalKey<Schema.Struct<{
18372
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18373
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18374
+ }>>;
18375
+ }>>;
18376
+ readonly routes: Schema.optionalKey<Schema.Struct<{
18377
+ readonly requests: Schema.Int;
18378
+ readonly omitted: Schema.Int;
18379
+ readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
18380
+ readonly refusals: Schema.$Array<Schema.Struct<{
18381
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18382
+ readonly step: Schema.String;
18383
+ readonly count: Schema.Int;
18216
18384
  readonly attempt: Schema.Int;
18217
18385
  readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
18218
18386
  readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
@@ -18399,17 +18567,8 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
18399
18567
  }>>;
18400
18568
  readonly state: Schema.Literal<"ended">;
18401
18569
  readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
18402
- }>]>>;
18403
- readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18404
- }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
18405
- start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18406
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18407
- repo: Schema.brand<Schema.String, "RepoName">;
18408
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18409
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
18410
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18411
- readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
18412
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
18570
+ }>]>;
18571
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
18413
18572
  start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18414
18573
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18415
18574
  repo: Schema.brand<Schema.String, "RepoName">;
@@ -18483,172 +18642,15 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
18483
18642
  }>>;
18484
18643
  }>>;
18485
18644
  }>;
18486
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
18487
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18488
- repo: Schema.brand<Schema.String, "RepoName">;
18489
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18490
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18491
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18492
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18493
- readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
18494
- readonly version: Schema.brand<Schema.Int, "VersionNumber">;
18495
- readonly tree: Schema.brand<Schema.String, "TreeOid">;
18496
- readonly check: Schema.brand<Schema.String, "CheckName">;
18497
- readonly code: Schema.Struct<{
18498
- readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
18499
- readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
18500
- }>;
18501
- readonly timeoutSeconds: Schema.Int;
18502
- readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18503
- readonly compiled: Schema.Struct<{
18504
- readonly entry: Schema.Struct<{
18505
- readonly name: Schema.String;
18506
- readonly module: Schema.String;
18507
- readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18508
- readonly files: Schema.$Array<Schema.String>;
18509
- readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
18510
- readonly sourceMap: Schema.optionalKey<Schema.String>;
18511
- readonly reaches: Schema.optionalKey<Schema.Struct<{
18512
- readonly tree: Schema.Boolean;
18513
- readonly browser: Schema.Boolean;
18514
- }>>;
18515
- readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18516
- readonly name: Schema.String;
18517
- readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18518
- readonly pin: Schema.String;
18519
- readonly format: Schema.Int;
18520
- }>>>;
18521
- readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
18522
- }>;
18523
- readonly modules: Schema.$Record<Schema.String, Schema.String>;
18524
- }>;
18525
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
18645
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
18646
+ start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18526
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">]>;
18527
18648
  repo: Schema.brand<Schema.String, "RepoName">;
18528
- run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
18529
18649
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18530
18650
  readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
18531
- readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
18532
18651
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18533
- readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
18534
- readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
18535
- readonly events: Schema.$Array<Schema.Struct<{
18536
- readonly eventId: Schema.Int;
18537
- readonly timestamp: Schema.Finite;
18538
- readonly type: Schema.String;
18539
- readonly stepName: Schema.optionalKey<Schema.String>;
18540
- readonly attempt: Schema.optionalKey<Schema.Int>;
18541
- readonly durationMs: Schema.optionalKey<Schema.Finite>;
18542
- readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
18543
- readonly eventType: Schema.optionalKey<Schema.String>;
18544
- readonly error: Schema.optionalKey<Schema.Struct<{
18545
- readonly name: Schema.String;
18546
- readonly message: Schema.String;
18547
- }>>;
18548
- }>>;
18549
- readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
18550
- readonly kind: Schema.Literal<"session">;
18551
- readonly id: Schema.String;
18552
- readonly at: Schema.Finite;
18553
- readonly sandbox: Schema.String;
18554
- readonly step: Schema.String;
18555
- readonly attempt: Schema.Int;
18556
- readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
18557
- readonly key: Schema.optionalKey<Schema.String>;
18558
- readonly restoreMs: Schema.Finite;
18559
- }>, Schema.Struct<{
18560
- readonly kind: Schema.Literal<"command">;
18561
- readonly id: Schema.String;
18562
- readonly parent: Schema.String;
18563
- readonly at: Schema.Finite;
18564
- readonly argv: Schema.$Array<Schema.String>;
18565
- readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
18566
- readonly exitCode: Schema.optionalKey<Schema.Int>;
18567
- readonly durationMs: Schema.Finite;
18568
- readonly stdoutCut: Schema.Boolean;
18569
- readonly stderrCut: Schema.Boolean;
18570
- }>, Schema.Struct<{
18571
- readonly kind: Schema.Literal<"untraced">;
18572
- readonly id: Schema.String;
18573
- readonly parent: Schema.String;
18574
- readonly at: Schema.Finite;
18575
- readonly commands: Schema.Int;
18576
- }>, Schema.Struct<{
18577
- readonly kind: Schema.Literal<"serve">;
18578
- readonly id: Schema.String;
18579
- readonly parent: Schema.String;
18580
- readonly at: Schema.Finite;
18581
- readonly argv: Schema.$Array<Schema.String>;
18582
- readonly port: Schema.Int;
18583
- readonly host: Schema.String;
18584
- readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
18585
- readonly readyMs: Schema.optionalKey<Schema.Finite>;
18586
- readonly exitCode: Schema.optionalKey<Schema.Int>;
18587
- readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
18588
- }>, Schema.Struct<{
18589
- readonly kind: Schema.Literal<"route">;
18590
- readonly id: Schema.String;
18591
- readonly parent: Schema.String;
18592
- readonly at: Schema.Finite;
18593
- readonly method: Schema.String;
18594
- readonly path: Schema.String;
18595
- readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
18596
- readonly status: Schema.optionalKey<Schema.Int>;
18597
- readonly why: Schema.optionalKey<Schema.String>;
18598
- readonly durationMs: Schema.Finite;
18599
- readonly bytes: Schema.Int;
18600
- }>, Schema.Struct<{
18601
- readonly kind: Schema.Literal<"routes omitted">;
18602
- readonly id: Schema.String;
18603
- readonly parent: Schema.String;
18604
- readonly at: Schema.Finite;
18605
- readonly requests: Schema.Int;
18606
- }>, Schema.Struct<{
18607
- readonly kind: Schema.Literal<"route refusal">;
18608
- readonly id: Schema.String;
18609
- readonly parent: Schema.String;
18610
- readonly at: Schema.Finite;
18611
- readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
18612
- readonly why: Schema.String;
18613
- readonly url: Schema.String;
18614
- }>, Schema.Struct<{
18615
- readonly kind: Schema.Literal<"browser">;
18616
- readonly id: Schema.String;
18617
- readonly parent: Schema.String;
18618
- readonly at: Schema.Finite;
18619
- readonly browserSession: Schema.optionalKey<Schema.String>;
18620
- readonly acquireMs: Schema.optionalKey<Schema.Finite>;
18621
- readonly connects: Schema.Int;
18622
- readonly closedAt: Schema.optionalKey<Schema.Finite>;
18623
- readonly outcome: Schema.Literals<readonly ["closed", "unconfirmed", "unresolved", "failed", "unavailable"]>;
18624
- readonly reported: Schema.Int;
18625
- }>, Schema.Struct<{
18626
- readonly kind: Schema.Literal<"build">;
18627
- readonly id: Schema.String;
18628
- readonly at: Schema.Finite;
18629
- readonly build: Schema.Int;
18630
- readonly key: Schema.String;
18631
- readonly state: Schema.Literals<readonly ["queued", "starting", "building", "ready", "failed", "full", "unbegun"]>;
18632
- readonly durationMs: Schema.optionalKey<Schema.Finite>;
18633
- readonly why: Schema.optionalKey<Schema.String>;
18634
- }>, Schema.Struct<{
18635
- readonly kind: Schema.Literal<"setup">;
18636
- readonly id: Schema.String;
18637
- readonly parent: Schema.String;
18638
- readonly at: Schema.Finite;
18639
- readonly argv: Schema.$Array<Schema.String>;
18640
- readonly exitCode: Schema.optionalKey<Schema.Int>;
18641
- readonly durationMs: Schema.Finite;
18642
- }>]>>;
18643
- readonly logs: Schema.$Array<Schema.Struct<{
18644
- readonly at: Schema.Finite;
18645
- readonly level: Schema.String;
18646
- readonly message: Schema.String;
18647
- readonly span: Schema.optionalKey<Schema.String>;
18648
- }>>;
18649
- readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
18650
- readonly more: Schema.Boolean;
18651
- }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never>, false>;
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>;
18652
18654
  /**
18653
18655
  * A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
18654
18656
  * `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
@@ -18660,23 +18662,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
18660
18662
  * in.
18661
18663
  */
18662
18664
  declare class RunsGroup extends RunsGroup_base {}
18663
- declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
18664
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18665
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18666
- readonly request: Schema.String;
18667
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18668
- readonly client: Schema.String;
18669
- readonly origin: Schema.String;
18670
- readonly returnsTo: Schema.String;
18671
- readonly says: Schema.optionalKey<Schema.String>;
18672
- readonly expiresAt: Schema.String;
18673
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/owners/:owner/client-grants/decline", Schema.toCodecStringTree<Schema.Struct<{
18674
- 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">]>;
18675
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18676
- readonly request: Schema.String;
18677
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18678
- readonly redirect: Schema.String;
18679
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
18665
+ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
18680
18666
  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">]>;
18681
18667
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18682
18668
  readonly client: Schema.String;
@@ -18701,6 +18687,22 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
18701
18687
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18702
18688
  }>>, Schema.toCodecJson<Schema.Struct<{
18703
18689
  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;
18704
18706
  }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never>, false>;
18705
18707
  /**
18706
18708
  * Client grants (layer 4, PR 11a): an outside MCP client's consent on `/connect/app`. Granting
@@ -18708,7 +18710,16 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
18708
18710
  * consented, hands the client its code.
18709
18711
  */
18710
18712
  declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
18711
- declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18713
+ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18714
+ cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18715
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18716
+ readonly organizations: Schema.$Array<Schema.Struct<{
18717
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18718
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18719
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18720
+ }>>;
18721
+ readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18722
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18712
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">]>;
18713
18724
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18714
18725
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
@@ -18734,16 +18745,50 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18734
18745
  readonly name: Schema.brand<Schema.String, "OwnerName">;
18735
18746
  readonly displayName: Schema.String;
18736
18747
  readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
18737
- }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18738
- cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
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<{
18749
+ 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
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18751
+ from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18752
+ to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18739
18753
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18740
- readonly organizations: Schema.$Array<Schema.Struct<{
18741
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18742
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18743
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18754
+ readonly from: Schema.brand<Schema.String, "UtcDay">;
18755
+ readonly to: Schema.brand<Schema.String, "UtcDay">;
18756
+ readonly days: Schema.$Array<Schema.Struct<{
18757
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18758
+ readonly lines: Schema.$Array<Schema.Struct<{
18759
+ 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"]>;
18760
+ readonly quantity: Schema.Finite;
18761
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18762
+ }>>;
18744
18763
  }>>;
18745
- readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18746
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
18764
+ readonly work: Schema.$Array<Schema.Struct<{
18765
+ readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18766
+ readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18767
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18768
+ readonly lines: Schema.$Array<Schema.Struct<{
18769
+ 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"]>;
18770
+ readonly quantity: Schema.Finite;
18771
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18772
+ }>>;
18773
+ }>>;
18774
+ readonly kept: Schema.optionalKey<Schema.Struct<{
18775
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18776
+ readonly counts: Schema.$Array<Schema.Struct<{
18777
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18778
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18779
+ readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18780
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18781
+ readonly bytes: Schema.Int;
18782
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18783
+ }>>;
18784
+ readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18785
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18786
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18787
+ readonly counts: Schema.Int;
18788
+ readonly bytes: Schema.Int;
18789
+ }>>>;
18790
+ }>>;
18791
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
18747
18792
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18748
18793
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18749
18794
  from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
@@ -18918,59 +18963,39 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18918
18963
  }>>;
18919
18964
  }>;
18920
18965
  readonly pricesAsOf: Schema.String;
18921
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
18922
- 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">]>;
18923
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18924
- from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18925
- to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18926
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18927
- readonly from: Schema.brand<Schema.String, "UtcDay">;
18928
- readonly to: Schema.brand<Schema.String, "UtcDay">;
18929
- readonly days: Schema.$Array<Schema.Struct<{
18930
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18931
- readonly lines: Schema.$Array<Schema.Struct<{
18932
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18933
- readonly quantity: Schema.Finite;
18934
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18935
- }>>;
18936
- }>>;
18937
- readonly work: Schema.$Array<Schema.Struct<{
18938
- readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18939
- readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18940
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18941
- readonly lines: Schema.$Array<Schema.Struct<{
18942
- readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18943
- readonly quantity: Schema.Finite;
18944
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18945
- }>>;
18946
- }>>;
18947
- readonly kept: Schema.optionalKey<Schema.Struct<{
18948
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18949
- readonly counts: Schema.$Array<Schema.Struct<{
18950
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18951
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18952
- readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18953
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18954
- readonly bytes: Schema.Int;
18955
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18956
- }>>;
18957
- readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18958
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18959
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18960
- readonly counts: Schema.Int;
18961
- readonly bytes: Schema.Int;
18962
- }>>>;
18963
- }>>;
18964
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
18966
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
18965
18967
  /**
18966
18968
  * Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
18967
18969
  * usage. Every change is a person's, by approval; agents never change members.
18968
18970
  */
18969
18971
  declare class OrganizationsGroup extends OrganizationsGroup_base {}
18970
- declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
18972
+ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
18973
+ 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">]>;
18974
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18975
+ cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
18976
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18977
+ readonly members: Schema.$Array<Schema.Struct<{
18978
+ readonly member: Schema.Union<readonly [Schema.Struct<{
18979
+ readonly kind: Schema.Literal<"person">;
18980
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18981
+ }>, Schema.Struct<{
18982
+ readonly kind: Schema.Literal<"agent">;
18983
+ readonly agent: Schema.Struct<{
18984
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18985
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18986
+ }>;
18987
+ }>]>;
18988
+ readonly name: Schema.String;
18989
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18990
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
18991
+ }>>;
18992
+ readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
18993
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setRole", "PATCH", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
18971
18994
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18972
18995
  member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18973
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18996
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18997
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18998
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18974
18999
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18975
19000
  }>>, Schema.toCodecJson<Schema.Struct<{
18976
19001
  readonly member: Schema.Union<readonly [Schema.Struct<{
@@ -18983,13 +19008,11 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
18983
19008
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18984
19009
  }>;
18985
19010
  }>]>;
18986
- readonly why: Schema.Literals<readonly ["removed", "left"]>;
18987
- }>>, 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<{
19011
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
19012
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
18988
19013
  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">]>;
18989
19014
  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">]>;
18990
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18991
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18992
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19015
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18993
19016
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18994
19017
  }>>, Schema.toCodecJson<Schema.Struct<{
18995
19018
  readonly member: Schema.Union<readonly [Schema.Struct<{
@@ -19002,32 +19025,24 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
19002
19025
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19003
19026
  }>;
19004
19027
  }>]>;
19005
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
19006
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
19007
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19008
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19009
- cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
19028
+ readonly why: Schema.Literals<readonly ["removed", "left"]>;
19029
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
19030
+ /** An organization's members: any member lists them; an admin changes a role or removes one. */
19031
+ declare class MembersGroup extends MembersGroup_base {}
19032
+ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
19033
+ cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19010
19034
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19011
- readonly members: Schema.$Array<Schema.Struct<{
19012
- readonly member: Schema.Union<readonly [Schema.Struct<{
19013
- readonly kind: Schema.Literal<"person">;
19014
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19015
- }>, Schema.Struct<{
19016
- readonly kind: Schema.Literal<"agent">;
19017
- readonly agent: Schema.Struct<{
19018
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19019
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19020
- }>;
19021
- }>]>;
19022
- readonly name: Schema.String;
19035
+ readonly invitations: Schema.$Array<Schema.Struct<{
19036
+ readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19037
+ readonly organization: Schema.Struct<{
19038
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
19039
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19040
+ }>;
19023
19041
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
19024
- readonly addedAt: Schema.DateTimeUtcFromMillis;
19042
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
19025
19043
  }>>;
19026
- readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
19027
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
19028
- /** An organization's members: any member lists them; an admin changes a role or removes one. */
19029
- declare class MembersGroup extends MembersGroup_base {}
19030
- declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
19044
+ readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19045
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
19031
19046
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19032
19047
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
19033
19048
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
@@ -19045,29 +19060,7 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
19045
19060
  readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
19046
19061
  readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
19047
19062
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
19048
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
19049
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19050
- invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19051
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
19052
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19053
- }>>, Schema.toCodecJson<Schema.Struct<{
19054
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19055
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
19056
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19057
- }>>, never, Schema.toCodecJson<Schema.Struct<{
19058
- 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">]>;
19059
- readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
19060
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19061
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19062
- }>>, Schema.toCodecJson<Schema.Struct<{
19063
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19064
- readonly invitee: Schema.Struct<{
19065
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19066
- readonly name: Schema.brand<Schema.String, "OwnerName">;
19067
- }>;
19068
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
19069
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
19070
- }>>, 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<{
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<{
19071
19064
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19072
19065
  }>>, Schema.toCodecStringTree<Schema.Struct<{
19073
19066
  cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
@@ -19086,26 +19079,84 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
19086
19079
  readonly expiresAt: Schema.DateTimeUtcFromMillis;
19087
19080
  }>>;
19088
19081
  readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19089
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
19090
- cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19091
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19092
- readonly invitations: Schema.$Array<Schema.Struct<{
19093
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19094
- readonly organization: Schema.Struct<{
19095
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
19096
- readonly name: Schema.brand<Schema.String, "OwnerName">;
19097
- }>;
19098
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
19099
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
19100
- }>>;
19101
- readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
19102
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
19082
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
19083
+ 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
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
19085
+ 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">]>;
19086
+ readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
19087
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19088
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19089
+ }>>, Schema.toCodecJson<Schema.Struct<{
19090
+ readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
19091
+ readonly invitee: Schema.Struct<{
19092
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19093
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19094
+ }>;
19095
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
19096
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
19097
+ }>>, 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<{
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>;
19103
19105
  /**
19104
19106
  * Invitations: an organization's admins send, list and withdraw them; the person invited lists
19105
19107
  * theirs and accepts or declines one, which is found from their own list, never the client.
19106
19108
  */
19107
19109
  declare class InvitationsGroup extends InvitationsGroup_base {}
19108
- declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
19110
+ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
19111
+ 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">]>;
19112
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19113
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
19114
+ limit: Schema.optionalKey<Schema.Int>;
19115
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19116
+ readonly grants: Schema.$Array<Schema.Struct<{
19117
+ readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
19118
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
19119
+ readonly kind: Schema.Literal<"owner">;
19120
+ }>, Schema.Struct<{
19121
+ readonly kind: Schema.Literal<"project">;
19122
+ readonly project: Schema.brand<Schema.String, "ProjectName">;
19123
+ }>, Schema.Struct<{
19124
+ readonly kind: Schema.Literal<"thread">;
19125
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
19126
+ }>, Schema.Struct<{
19127
+ readonly kind: Schema.Literal<"agent">;
19128
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19129
+ }>]>;
19130
+ readonly principal: Schema.Union<readonly [Schema.Struct<{
19131
+ readonly kind: Schema.Literal<"person">;
19132
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
19133
+ }>, Schema.Struct<{
19134
+ readonly kind: Schema.Literal<"agent">;
19135
+ readonly owner: Schema.brand<Schema.String, "OwnerName">;
19136
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19137
+ }>, Schema.Struct<{
19138
+ readonly kind: Schema.Literal<"agent">;
19139
+ readonly agent: Schema.Struct<{
19140
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19141
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19142
+ }>;
19143
+ }>]>;
19144
+ readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
19145
+ readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
19146
+ readonly kind: Schema.Literal<"person">;
19147
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19148
+ }>, Schema.Struct<{
19149
+ readonly kind: Schema.Literal<"agent">;
19150
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19151
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19152
+ }>, Schema.Struct<{
19153
+ readonly kind: Schema.Literal<"ref0">;
19154
+ 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")[]>;
19155
+ }>]>;
19156
+ readonly grantedAt: Schema.DateTimeUtcFromMillis;
19157
+ }>>;
19158
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
19159
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
19109
19160
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19110
19161
  }>>, never, Schema.toCodecJson<Schema.Struct<{
19111
19162
  readonly subject: Schema.Union<readonly [Schema.Struct<{
@@ -19217,56 +19268,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
19217
19268
  }>;
19218
19269
  }>]>;
19219
19270
  readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
19220
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
19221
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19222
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19223
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
19224
- limit: Schema.optionalKey<Schema.Int>;
19225
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19226
- readonly grants: Schema.$Array<Schema.Struct<{
19227
- readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
19228
- readonly subject: Schema.Union<readonly [Schema.Struct<{
19229
- readonly kind: Schema.Literal<"owner">;
19230
- }>, Schema.Struct<{
19231
- readonly kind: Schema.Literal<"project">;
19232
- readonly project: Schema.brand<Schema.String, "ProjectName">;
19233
- }>, Schema.Struct<{
19234
- readonly kind: Schema.Literal<"thread">;
19235
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
19236
- }>, Schema.Struct<{
19237
- readonly kind: Schema.Literal<"agent">;
19238
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19239
- }>]>;
19240
- readonly principal: Schema.Union<readonly [Schema.Struct<{
19241
- readonly kind: Schema.Literal<"person">;
19242
- readonly name: Schema.brand<Schema.String, "OwnerName">;
19243
- }>, Schema.Struct<{
19244
- readonly kind: Schema.Literal<"agent">;
19245
- readonly owner: Schema.brand<Schema.String, "OwnerName">;
19246
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19247
- }>, Schema.Struct<{
19248
- readonly kind: Schema.Literal<"agent">;
19249
- readonly agent: Schema.Struct<{
19250
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19251
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19252
- }>;
19253
- }>]>;
19254
- readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
19255
- readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
19256
- readonly kind: Schema.Literal<"person">;
19257
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19258
- }>, Schema.Struct<{
19259
- readonly kind: Schema.Literal<"agent">;
19260
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19261
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19262
- }>, Schema.Struct<{
19263
- readonly kind: Schema.Literal<"ref0">;
19264
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
19265
- }>]>;
19266
- readonly grantedAt: Schema.DateTimeUtcFromMillis;
19267
- }>>;
19268
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
19269
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
19271
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never>, false>;
19270
19272
  /**
19271
19273
  * An organization's grants (layer 1): any person lists those they may see; an admin gives one or
19272
19274
  * takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
@@ -19274,10 +19276,13 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
19274
19276
  * `OrganizationNotFound`.
19275
19277
  */
19276
19278
  declare class GrantsGroup extends GrantsGroup_base {}
19277
- declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
19279
+ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
19278
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">]>;
19279
- agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
19280
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
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<{
19281
19286
  readonly agent: Schema.Struct<{
19282
19287
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19283
19288
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -19285,13 +19290,27 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
19285
19290
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19286
19291
  readonly generation: Schema.Int;
19287
19292
  readonly turnedOff: Schema.Boolean;
19288
- readonly addedAt: Schema.DateTimeUtcFromMillis;
19289
- }>>, 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<{
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<{
19294
+ 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
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19296
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19297
+ limit: Schema.optionalKey<Schema.Int>;
19298
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19299
+ readonly agents: Schema.$Array<Schema.Struct<{
19300
+ readonly agent: Schema.Struct<{
19301
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19302
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19303
+ }>;
19304
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19305
+ readonly generation: Schema.Int;
19306
+ readonly turnedOff: Schema.Boolean;
19307
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
19308
+ }>>;
19309
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19310
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
19290
19311
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19291
19312
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
19292
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
19293
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19294
- }>>, Schema.toCodecJson<Schema.Struct<{
19313
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
19295
19314
  readonly agent: Schema.Struct<{
19296
19315
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19297
19316
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -19299,7 +19318,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
19299
19318
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19300
19319
  readonly generation: Schema.Int;
19301
19320
  readonly turnedOff: Schema.Boolean;
19302
- }>>, 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<{
19321
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
19322
+ }>>, 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<{
19303
19323
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19304
19324
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
19305
19325
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
@@ -19312,11 +19332,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
19312
19332
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19313
19333
  readonly generation: Schema.Int;
19314
19334
  readonly turnedOff: Schema.Boolean;
19315
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
19335
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/owners/:owner/agents/:agent/enable", Schema.toCodecStringTree<Schema.Struct<{
19316
19336
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19317
- }>>, never, Schema.toCodecJson<Schema.Struct<{
19318
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19319
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19337
+ agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
19338
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
19320
19339
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19321
19340
  }>>, Schema.toCodecJson<Schema.Struct<{
19322
19341
  readonly agent: Schema.Struct<{
@@ -19326,24 +19345,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
19326
19345
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19327
19346
  readonly generation: Schema.Int;
19328
19347
  readonly turnedOff: Schema.Boolean;
19329
- }>>, 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<{
19330
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19331
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19332
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19333
- limit: Schema.optionalKey<Schema.Int>;
19334
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19335
- readonly agents: Schema.$Array<Schema.Struct<{
19336
- readonly agent: Schema.Struct<{
19337
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19338
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19339
- }>;
19340
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
19341
- readonly generation: Schema.Int;
19342
- readonly turnedOff: Schema.Boolean;
19343
- readonly addedAt: Schema.DateTimeUtcFromMillis;
19344
- }>>;
19345
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19346
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
19348
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
19347
19349
  /**
19348
19350
  * An owner's agents (layer 1): an organization's members, or a person themselves, read them and
19349
19351
  * turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
@@ -19351,10 +19353,15 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
19351
19353
  * its machines' host grants by the agent's ID.
19352
19354
  */
19353
19355
  declare class AgentsGroup extends AgentsGroup_base {}
19354
- declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
19356
+ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
19355
19357
  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">]>;
19356
- attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
19357
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
19358
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
19359
+ readonly agent: Schema.Struct<{
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<{
19358
19365
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19359
19366
  }>>, Schema.toCodecJson<Schema.Struct<{
19360
19367
  readonly agent: Schema.Struct<{
@@ -19367,15 +19374,10 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
19367
19374
  }>;
19368
19375
  readonly generation: Schema.Int;
19369
19376
  readonly authorized: Schema.Boolean;
19370
- }>>, 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<{
19377
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
19371
19378
  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">]>;
19372
- }>>, never, Schema.toCodecJson<Schema.Struct<{
19373
- readonly agent: Schema.Struct<{
19374
- 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">]>;
19375
- readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
19376
- }>;
19377
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
19378
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19379
+ attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
19380
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
19379
19381
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
19380
19382
  }>>, Schema.toCodecJson<Schema.Struct<{
19381
19383
  readonly agent: Schema.Struct<{
@@ -19388,7 +19390,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
19388
19390
  }>;
19389
19391
  readonly generation: Schema.Int;
19390
19392
  readonly authorized: Schema.Boolean;
19391
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
19393
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never>, false>;
19392
19394
  /**
19393
19395
  * A member's own agent working in an organization (layer 1): its person authorizes an attachment
19394
19396
  * of it there, by its credential's ID, or takes that back. The Worker checks the attachment is
@@ -19396,7 +19398,34 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
19396
19398
  * decides. People only, by approval.
19397
19399
  */
19398
19400
  declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
19399
- declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
19401
+ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
19402
+ 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">]>;
19403
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
19404
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19405
+ limit: Schema.optionalKey<Schema.Int>;
19406
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19407
+ readonly disables: Schema.$Array<Schema.Struct<{
19408
+ readonly agent: Schema.Struct<{
19409
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19410
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19411
+ }>;
19412
+ readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
19413
+ readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
19414
+ readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
19415
+ readonly kind: Schema.Literal<"person">;
19416
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19417
+ }>, Schema.Struct<{
19418
+ readonly kind: Schema.Literal<"agent">;
19419
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19420
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19421
+ }>, Schema.Struct<{
19422
+ readonly kind: Schema.Literal<"ref0">;
19423
+ 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")[]>;
19424
+ }>]>;
19425
+ readonly disabledAt: Schema.DateTimeUtcFromMillis;
19426
+ }>>;
19427
+ 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<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
19400
19429
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19401
19430
  }>>, never, Schema.toCodecJson<Schema.Struct<{
19402
19431
  readonly agent: Schema.Struct<{
@@ -19428,34 +19457,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
19428
19457
  }>;
19429
19458
  readonly targetGeneration: Schema.Int;
19430
19459
  readonly turnedOff: Schema.Boolean;
19431
- }>>, 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<{
19432
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
19433
- }>>, Schema.toCodecStringTree<Schema.Struct<{
19434
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19435
- limit: Schema.optionalKey<Schema.Int>;
19436
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19437
- readonly disables: Schema.$Array<Schema.Struct<{
19438
- readonly agent: Schema.Struct<{
19439
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19440
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19441
- }>;
19442
- readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
19443
- readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
19444
- readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
19445
- readonly kind: Schema.Literal<"person">;
19446
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
19447
- }>, Schema.Struct<{
19448
- readonly kind: Schema.Literal<"agent">;
19449
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
19450
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
19451
- }>, Schema.Struct<{
19452
- readonly kind: Schema.Literal<"ref0">;
19453
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
19454
- }>]>;
19455
- readonly disabledAt: Schema.DateTimeUtcFromMillis;
19456
- }>>;
19457
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
19458
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
19460
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
19459
19461
  /**
19460
19462
  * Agents of other owners an organization's admin turns off there (layer 1), such as a member's
19461
19463
  * own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
@@ -29770,4 +29772,4 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
29770
29772
  type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
29771
29773
  //#endregion
29772
29774
  export { MirrorChoice as $, WorkflowAnswerer as $t, ConnectionCall as A, WorkflowPasskeyState as An, SandboxPushAnswer as At, EndpointName as B, WorkflowTrigger as Bn, StartActor as Bt, ClientGranted as C, WorkflowEvent as Cn, RepoView as Ct, ConnectFolderOption as D, WorkflowPasskeyAsked as Dn, SandboxOpen as Dt, ConnectFolderChoices as E, WorkflowPasskeyAsk as En, SandboxExecAnswer as Et, ConnectionView as F, WorkflowRequestRefusal as Fn, SentryRegion as Ft, GateOwn as G, hookTokenPrefix as Gn, TrackClosed as Gt, FoldersConnected as H, commandLine as Hn, StatementView as Ht, ConsentAsked as I, WorkflowStartEnded as In, SentryToken as It, ImportFailure as J, liveSocketUrl as Jn, TypedApprovalCode as Jt, GetIssueInput as K, hookUrl as Kn, TrackSession as Kt, ConsentClient as L, WorkflowStartState as Ln, SignInDestination as Lt, ConnectionChanged as M, WorkflowPreview as Mn, ScopeAction as Mt, ConnectionKind as N, WorkflowPullRequestAnswer as Nn, SecretHash as Nt, ConnectOptions as O, WorkflowPasskeyEnded as On, SandboxOpenAnswer as Ot, ConnectionName as P, WorkflowPullRequestOpen as Pn, SentryOrg as Pt, MachineConnected as Q, threadParts as Qn, WorkflowActionAnswer as Qt, ConsentProject as R, WorkflowText as Rn, SignedIn as Rt, ClientAccess as S, WorkflowConnections as Sn, RepoUrl as St, ConnectChosen as T, WorkflowOwn as Tn, SandboxExec as Tt, ForkAnswer as U, connectEndpoint as Un, ThreadId as Ut, EventRunInput as V, WrittenProject as Vn, StartRun as Vt, ForkCreate as W, encodeSecret as Wn, ThreadStage as Wt, LiveTicketRequest as X, repoNameKey as Xn, Welcome as Xt, LiveTicket as Y, projectParts as Yn, VersionFile as Yt, LiveTrackName as Z, surfaceOf as Zn, WorkflowAction as Zt, CheckOn as _, WorkflowCheckStartAnswer as _n, ProjectTrackMessage as _t, AnswerKey as a, WorkflowCallInput as an, OwnerThreadPage as at, CheckRunParams as b, WorkflowCheckWhere as bn, Ref0Owned as bt, ApprovalAnswer as c, WorkflowCalledState as cn, PasskeyAsserted as ct, ApprovalState as d, WorkflowCheckRefused as dn, PasskeyFrom as dt, WorkflowAsk as en, MirrorEntry as et, ApprovalView as f, WorkflowCheckResults as fn, PasskeyRefusal as ft, ChangeAuthor as g, WorkflowCheckStart as gn, ProjectName as gt, Authorization as h, WorkflowCheckRunEnded as hn, PreviewUnavailable as ht, AgentView as i, WorkflowCallEnded as in, OwnerName as it, ConnectionCallAnswer as j, WorkflowPermissions as jn, SandboxSize as jt, ConnectableAgent as k, WorkflowPasskeyRead as kn, SandboxPush as kt, ApprovalId as l, WorkflowCalledStateAnswer as ln, PasskeyCreated as lt, AttachmentRequestView as m, WorkflowCheckRun as mn, PreviewEcho as mt, AgentPermissionChoice as n, WorkflowCall as nn, NamedDecision as nt, Api as o, WorkflowCallRefusal as on, OwnerThreadView as ot, AttachmentFailed as p, WorkflowCheckResultsAnswer as pn, PasskeyRequestOptions as pt, Harness as q, isRef0Path as qn, TrackThread as qt, AgentPermissionSetting as r, WorkflowCallAnswer as rn, OwnerId as rt, ApiOrigin as s, WorkflowCallRefused as sn, OwnerTrackMessage as st, AgentHandle as t, WorkflowAskClosed as tn, MirrorView as tt, ApprovalPreview as u, WorkflowCheckRefusal as un, PasskeyCreationOptions as ut, CheckOwn as v, WorkflowCheckStates as vn, RanOf as vt, ConnectAgent as w, WorkflowFilters as wn, RequestFolder as wt, CheckTreeEntry as x, WorkflowComment as xn, RepoName as xt, CheckRunError as y, WorkflowCheckStatesAnswer as yn, ReadEvent as yt, CredentialView as z, WorkflowThreadStart as zn, SocketUrl as zt };
29773
- //# sourceMappingURL=index-BSPC_jQm.d.mts.map
29775
+ //# sourceMappingURL=index-DnaFeYru.d.mts.map