@ref0/sdk 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1355,13 +1355,10 @@ declare const NoFork_base: Schema.Class<NoFork, Schema.TaggedStruct<"NoFork", {
1355
1355
  /** No fork of this repo for that session: it hasn't asked for one. */
1356
1356
  declare class NoFork extends NoFork_base {}
1357
1357
  declare const NoBase_base: Schema.Class<NoBase, Schema.TaggedStruct<"NoBase", {
1358
- readonly why: Schema.Literals<readonly ["main empty", "held by a run"]>;
1358
+ readonly why: Schema.Literal<"main empty">;
1359
1359
  readonly nextStep: Schema.String;
1360
1360
  }>, import("effect/Cause").YieldableError>;
1361
- /**
1362
- * No base to fetch: `main` has no commit yet, or the pin of the thread below is in a workflow
1363
- * run's fork, which has no session's path to fetch from.
1364
- */
1361
+ /** No base to fetch: `main` has no commit yet. */
1365
1362
  declare class NoBase extends NoBase_base {}
1366
1363
  declare const PullRequestNotFound_base: Schema.Class<PullRequestNotFound, Schema.TaggedStruct<"PullRequestNotFound", {
1367
1364
  readonly nextStep: Schema.String;
@@ -2068,6 +2065,19 @@ declare const ApprovalSecret_base: HttpApiMiddleware.ServiceClass<ApprovalSecret
2068
2065
  * secret is all it has. Not required of every client: only the one that made it supplies it.
2069
2066
  */
2070
2067
  declare class ApprovalSecret extends ApprovalSecret_base {}
2068
+ declare const MachineNameRefusal_base: HttpApiMiddleware.ServiceClass<MachineNameRefusal, "ref0/contracts/MachineNameRefusal", {
2069
+ requires: never;
2070
+ provides: never;
2071
+ error: typeof CommandRefused;
2072
+ clientError: never;
2073
+ requiredForClient: false;
2074
+ security: never;
2075
+ }, HttpApiMiddleware.HttpApiMiddleware<never, typeof CommandRefused, never>>;
2076
+ /**
2077
+ * A machine's request whose name its contract refuses, answered as `CommandRefused`, which says
2078
+ * what to change. Any other part that fails its contract is answered with Effect's empty 400.
2079
+ */
2080
+ declare class MachineNameRefusal extends MachineNameRefusal_base {}
2071
2081
  declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/welcome", never, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2072
2082
  readonly state: Schema.Literals<readonly ["ready", "setting up"]>;
2073
2083
  readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
@@ -2353,7 +2363,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
2353
2363
  readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2354
2364
  readonly code: Schema.String;
2355
2365
  readonly expiresAt: Schema.DateTimeUtcFromString;
2356
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof CommandRefused | typeof SlowDown>, never, never>, false>;
2366
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof CommandRefused | typeof SlowDown>, MachineNameRefusal, never>, false>;
2357
2367
  /**
2358
2368
  * Connecting a machine, the machine's side: asking, with no credential, to connect to one owner's
2359
2369
  * agent, whose terminal shows the code their person types; then collecting what came of it,
@@ -2613,115 +2623,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
2613
2623
  readonly state: Schema.String;
2614
2624
  }>>;
2615
2625
  }>>;
2616
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
2617
- approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2618
- }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2619
- readonly state: Schema.Literal<"waiting">;
2620
- readonly expiresAt: Schema.DateTimeUtcFromString;
2621
- }>, Schema.Struct<{
2622
- readonly state: Schema.Literal<"approved">;
2623
- readonly collected: Schema.optionalKey<Schema.Literal<true>>;
2624
- }>, Schema.Struct<{
2625
- readonly state: Schema.Literal<"refused">;
2626
- }>, Schema.Struct<{
2627
- readonly state: Schema.Literal<"expired">;
2628
- }>, Schema.Struct<{
2629
- readonly status: Schema.Int;
2630
- readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2631
- readonly state: Schema.Literal<"ran">;
2632
- readonly endpoint: Schema.String;
2633
- }>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
2634
- approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2635
- }>>, never, Schema.toCodecJson<Schema.Struct<{
2636
- readonly code: Schema.optionalKey<Schema.String>;
2637
- readonly folders: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2638
- readonly path: Schema.String;
2639
- readonly excluded: Schema.Literal<true>;
2640
- }>, Schema.Struct<{
2641
- readonly path: Schema.String;
2642
- readonly agent: Schema.Union<readonly [Schema.Struct<{
2643
- readonly kind: Schema.Literal<"existing">;
2644
- readonly agent: Schema.Struct<{
2645
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2646
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2647
- }>;
2648
- }>, Schema.Struct<{
2649
- readonly kind: Schema.Literal<"new">;
2650
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
2651
- }>]>;
2652
- }>]>>>;
2653
- }>>, Schema.toCodecStringTree<Schema.Struct<{
2654
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2655
- }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2656
- readonly challenge: Schema.String;
2657
- readonly timeout: Schema.optionalKey<Schema.Int>;
2658
- readonly rpId: Schema.optionalKey<Schema.String>;
2659
- readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2660
- readonly id: Schema.String;
2661
- readonly type: Schema.Literal<"public-key">;
2662
- readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
2663
- }>>>;
2664
- readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
2665
- readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2666
- }>, Schema.Struct<{
2667
- readonly request: Schema.Struct<{
2668
- readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2669
- readonly machineName: Schema.String;
2670
- readonly folders: Schema.$Array<Schema.Struct<{
2671
- readonly path: Schema.String;
2672
- readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
2673
- readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
2674
- }>>;
2675
- readonly askedFrom: Schema.optionalKey<Schema.String>;
2676
- readonly askedAt: Schema.DateTimeUtcFromString;
2677
- readonly expiresAt: Schema.DateTimeUtcFromString;
2678
- readonly callback: Schema.optionalKey<Schema.Struct<{
2679
- readonly port: Schema.Int;
2680
- readonly state: Schema.String;
2681
- }>>;
2682
- }>;
2683
- readonly agents: Schema.$Array<Schema.Struct<{
2684
- readonly agent: Schema.Struct<{
2685
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2686
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2687
- }>;
2688
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
2689
- }>>;
2690
- readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2691
- readonly path: Schema.String;
2692
- readonly excluded: Schema.Literal<true>;
2693
- }>, Schema.Struct<{
2694
- readonly path: Schema.String;
2695
- readonly connect: Schema.Struct<{
2696
- readonly agent: Schema.optionalKey<Schema.Struct<{
2697
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2698
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2699
- }>>;
2700
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
2701
- readonly organizations: Schema.$Array<Schema.Struct<{
2702
- readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
2703
- readonly name: Schema.brand<Schema.String, "OwnerName">;
2704
- }>>;
2705
- readonly replacement: Schema.optionalKey<Schema.Struct<{
2706
- readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2707
- readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
2708
- readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
2709
- }>>;
2710
- }>;
2711
- }>]>>;
2712
- readonly passkey: Schema.Struct<{
2713
- readonly challenge: Schema.String;
2714
- readonly timeout: Schema.optionalKey<Schema.Int>;
2715
- readonly rpId: Schema.optionalKey<Schema.String>;
2716
- readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2717
- readonly id: Schema.String;
2718
- readonly type: Schema.Literal<"public-key">;
2719
- readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
2720
- }>>>;
2721
- readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
2722
- readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2723
- }>;
2724
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"find", "POST", "/v1/approvals/find", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2626
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"find", "POST", "/v1/approvals/find", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2725
2627
  readonly code: Schema.String;
2726
2628
  }>, Schema.Struct<{
2727
2629
  readonly link: Schema.String;
@@ -2952,7 +2854,115 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
2952
2854
  readonly port: Schema.Int;
2953
2855
  readonly state: Schema.String;
2954
2856
  }>>;
2955
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
2857
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
2858
+ approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2859
+ }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2860
+ readonly state: Schema.Literal<"waiting">;
2861
+ readonly expiresAt: Schema.DateTimeUtcFromString;
2862
+ }>, Schema.Struct<{
2863
+ readonly state: Schema.Literal<"approved">;
2864
+ readonly collected: Schema.optionalKey<Schema.Literal<true>>;
2865
+ }>, Schema.Struct<{
2866
+ readonly state: Schema.Literal<"refused">;
2867
+ }>, Schema.Struct<{
2868
+ readonly state: Schema.Literal<"expired">;
2869
+ }>, Schema.Struct<{
2870
+ readonly status: Schema.Int;
2871
+ readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2872
+ readonly state: Schema.Literal<"ran">;
2873
+ readonly endpoint: Schema.String;
2874
+ }>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
2875
+ approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2876
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2877
+ readonly code: Schema.optionalKey<Schema.String>;
2878
+ readonly folders: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2879
+ readonly path: Schema.String;
2880
+ readonly excluded: Schema.Literal<true>;
2881
+ }>, Schema.Struct<{
2882
+ readonly path: Schema.String;
2883
+ readonly agent: Schema.Union<readonly [Schema.Struct<{
2884
+ readonly kind: Schema.Literal<"existing">;
2885
+ readonly agent: Schema.Struct<{
2886
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2887
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2888
+ }>;
2889
+ }>, Schema.Struct<{
2890
+ readonly kind: Schema.Literal<"new">;
2891
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
2892
+ }>]>;
2893
+ }>]>>>;
2894
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2895
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
2896
+ }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2897
+ readonly challenge: Schema.String;
2898
+ readonly timeout: Schema.optionalKey<Schema.Int>;
2899
+ readonly rpId: Schema.optionalKey<Schema.String>;
2900
+ readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2901
+ readonly id: Schema.String;
2902
+ readonly type: Schema.Literal<"public-key">;
2903
+ readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
2904
+ }>>>;
2905
+ readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
2906
+ readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2907
+ }>, Schema.Struct<{
2908
+ readonly request: Schema.Struct<{
2909
+ readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2910
+ readonly machineName: Schema.String;
2911
+ readonly folders: Schema.$Array<Schema.Struct<{
2912
+ readonly path: Schema.String;
2913
+ readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
2914
+ readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
2915
+ }>>;
2916
+ readonly askedFrom: Schema.optionalKey<Schema.String>;
2917
+ readonly askedAt: Schema.DateTimeUtcFromString;
2918
+ readonly expiresAt: Schema.DateTimeUtcFromString;
2919
+ readonly callback: Schema.optionalKey<Schema.Struct<{
2920
+ readonly port: Schema.Int;
2921
+ readonly state: Schema.String;
2922
+ }>>;
2923
+ }>;
2924
+ readonly agents: Schema.$Array<Schema.Struct<{
2925
+ readonly agent: Schema.Struct<{
2926
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2927
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2928
+ }>;
2929
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
2930
+ }>>;
2931
+ readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2932
+ readonly path: Schema.String;
2933
+ readonly excluded: Schema.Literal<true>;
2934
+ }>, Schema.Struct<{
2935
+ readonly path: Schema.String;
2936
+ readonly connect: Schema.Struct<{
2937
+ readonly agent: Schema.optionalKey<Schema.Struct<{
2938
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
2939
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
2940
+ }>>;
2941
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
2942
+ readonly organizations: Schema.$Array<Schema.Struct<{
2943
+ readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
2944
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
2945
+ }>>;
2946
+ readonly replacement: Schema.optionalKey<Schema.Struct<{
2947
+ readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
2948
+ readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
2949
+ readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
2950
+ }>>;
2951
+ }>;
2952
+ }>]>>;
2953
+ readonly passkey: Schema.Struct<{
2954
+ readonly challenge: Schema.String;
2955
+ readonly timeout: Schema.optionalKey<Schema.Int>;
2956
+ readonly rpId: Schema.optionalKey<Schema.String>;
2957
+ readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2958
+ readonly id: Schema.String;
2959
+ readonly type: Schema.Literal<"public-key">;
2960
+ readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
2961
+ }>>>;
2962
+ readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
2963
+ readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
2964
+ }>;
2965
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
2956
2966
  approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
2957
2967
  }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2958
2968
  readonly answer: Schema.Literal<"yes">;
@@ -3066,7 +3076,42 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3066
3076
  readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
3067
3077
  }>>;
3068
3078
  readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
3069
- }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
3079
+ }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
3080
+ readonly mirrors: Schema.$Array<Schema.Struct<{
3081
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3082
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
3083
+ readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
3084
+ readonly name: Schema.brand<Schema.String, "RepoName">;
3085
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
3086
+ readonly kind: Schema.Literal<"none">;
3087
+ }>, Schema.Struct<{
3088
+ readonly kind: Schema.Literal<"github">;
3089
+ readonly branch: Schema.String;
3090
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
3091
+ readonly state: Schema.Literal<"on">;
3092
+ }>, Schema.Struct<{
3093
+ readonly state: Schema.Literal<"paused">;
3094
+ readonly paused: Schema.Union<readonly [Schema.Struct<{
3095
+ readonly why: Schema.Literal<"diverged">;
3096
+ readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3097
+ }>, Schema.Struct<{
3098
+ readonly why: Schema.Literal<"refused">;
3099
+ readonly said: Schema.String;
3100
+ }>, Schema.Struct<{
3101
+ readonly why: Schema.Literal<"unauthorized">;
3102
+ }>]>;
3103
+ }>, Schema.Struct<{
3104
+ readonly state: Schema.Literal<"off">;
3105
+ }>]>;
3106
+ readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3107
+ readonly nextStep: Schema.optionalKey<Schema.String>;
3108
+ }>]>;
3109
+ }>>;
3110
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
3111
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
3112
+ }>>, Schema.toCodecJson<Schema.Struct<{
3113
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
3114
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
3070
3115
  from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3071
3116
  to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
3072
3117
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -3139,42 +3184,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
3139
3184
  readonly bytes: Schema.Int;
3140
3185
  }>>>;
3141
3186
  }>>;
3142
- }>>, 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<{
3143
- readonly mirrors: Schema.$Array<Schema.Struct<{
3144
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
3145
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
3146
- readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
3147
- readonly name: Schema.brand<Schema.String, "RepoName">;
3148
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
3149
- readonly kind: Schema.Literal<"none">;
3150
- }>, Schema.Struct<{
3151
- readonly kind: Schema.Literal<"github">;
3152
- readonly branch: Schema.String;
3153
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
3154
- readonly state: Schema.Literal<"on">;
3155
- }>, Schema.Struct<{
3156
- readonly state: Schema.Literal<"paused">;
3157
- readonly paused: Schema.Union<readonly [Schema.Struct<{
3158
- readonly why: Schema.Literal<"diverged">;
3159
- readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3160
- }>, Schema.Struct<{
3161
- readonly why: Schema.Literal<"refused">;
3162
- readonly said: Schema.String;
3163
- }>, Schema.Struct<{
3164
- readonly why: Schema.Literal<"unauthorized">;
3165
- }>]>;
3166
- }>, Schema.Struct<{
3167
- readonly state: Schema.Literal<"off">;
3168
- }>]>;
3169
- readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
3170
- readonly nextStep: Schema.optionalKey<Schema.String>;
3171
- }>]>;
3172
- }>>;
3173
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
3174
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
3175
- }>>, Schema.toCodecJson<Schema.Struct<{
3176
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
3177
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
3187
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never>, false>;
3178
3188
  declare class MeGroup extends MeGroup_base {}
3179
3189
  declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
3180
3190
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
@@ -12670,114 +12680,127 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
12670
12680
  * the stage as filters. A project the reader can't see answers as one that isn't there.
12671
12681
  */
12672
12682
  declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
12673
- declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
12683
+ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
12674
12684
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12675
- repo: Schema.brand<Schema.String, "RepoName">;
12676
12685
  }>>, Schema.toCodecStringTree<Schema.Struct<{
12677
- key: Schema.String;
12678
- }>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
12686
+ after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
12687
+ limit: Schema.optionalKey<Schema.Int>;
12688
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12689
+ readonly repos: Schema.$Array<Schema.Struct<{
12690
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12691
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12692
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12693
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
12694
+ readonly kind: Schema.Literal<"project">;
12695
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
12696
+ }>, Schema.Struct<{
12697
+ readonly kind: Schema.Literal<"owner">;
12698
+ }>]>;
12699
+ readonly name: Schema.brand<Schema.String, "RepoName">;
12700
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12701
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12702
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
12703
+ }>>;
12704
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
12705
+ }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
12679
12706
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12680
12707
  repo: Schema.brand<Schema.String, "RepoName">;
12681
- commit: Schema.brand<Schema.String, "CommitOid">;
12708
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
12709
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12710
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12711
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12712
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
12713
+ readonly kind: Schema.Literal<"project">;
12714
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
12715
+ }>, Schema.Struct<{
12716
+ readonly kind: Schema.Literal<"owner">;
12717
+ }>]>;
12718
+ readonly name: Schema.brand<Schema.String, "RepoName">;
12719
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12720
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12721
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
12722
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
12723
+ 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">]>;
12724
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
12725
+ readonly name: Schema.brand<Schema.String, "RepoName">;
12726
+ readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
12682
12727
  }>>, Schema.toCodecStringTree<Schema.Struct<{
12683
- path: Schema.brand<Schema.String, "RepoPath">;
12684
- line: Schema.Int;
12685
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12686
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
12687
- readonly path: Schema.brand<Schema.String, "RepoPath">;
12688
- readonly line: Schema.Int;
12689
- readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
12690
- readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
12691
- readonly turns: Schema.$Array<Schema.Struct<{
12692
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
12693
- readonly threadNumber: Schema.Int;
12694
- readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
12695
- readonly turn: Schema.Int;
12696
- readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
12697
- readonly model: Schema.optionalKey<Schema.String>;
12698
- }>>;
12699
- readonly workflow: Schema.optionalKey<Schema.Struct<{
12700
- readonly name: Schema.brand<Schema.String, "WorkflowName">;
12701
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
12702
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
12703
- readonly step: Schema.Struct<{
12704
- readonly name: Schema.String;
12705
- readonly count: Schema.Int;
12706
- readonly attempt: Schema.Int;
12707
- }>;
12708
- }>>;
12709
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
12728
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
12729
+ }>>, Schema.toCodecJson<Schema.Struct<{
12730
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12731
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12732
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12733
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
12734
+ readonly kind: Schema.Literal<"project">;
12735
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
12736
+ }>, Schema.Struct<{
12737
+ readonly kind: Schema.Literal<"owner">;
12738
+ }>]>;
12739
+ readonly name: Schema.brand<Schema.String, "RepoName">;
12740
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12741
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12742
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
12743
+ }>>, 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<{
12744
+ 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">]>;
12745
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
12746
+ readonly name: Schema.brand<Schema.String, "RepoName">;
12747
+ readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
12748
+ readonly url: Schema.brand<Schema.String, "RepoUrl">;
12749
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
12750
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
12751
+ }>>, Schema.toCodecJson<Schema.Struct<{
12752
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12753
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12754
+ readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12755
+ readonly scope: Schema.Union<readonly [Schema.Struct<{
12756
+ readonly kind: Schema.Literal<"project">;
12757
+ readonly name: Schema.brand<Schema.String, "ProjectName">;
12758
+ }>, Schema.Struct<{
12759
+ readonly kind: Schema.Literal<"owner">;
12760
+ }>]>;
12761
+ readonly name: Schema.brand<Schema.String, "RepoName">;
12762
+ readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12763
+ readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12764
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
12765
+ }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
12710
12766
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12711
12767
  repo: Schema.brand<Schema.String, "RepoName">;
12712
12768
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
12713
- readonly active: Schema.Struct<{
12714
- readonly revision: Schema.Int;
12715
- readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
12716
- readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
12769
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12770
+ readonly version: Schema.Int;
12771
+ readonly baseline: Schema.Struct<{
12772
+ readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
12773
+ readonly tip: Schema.brand<Schema.String, "CommitOid">;
12774
+ readonly sequence: Schema.Int;
12775
+ readonly depth: Schema.Int;
12776
+ readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
12717
12777
  }>;
12718
- readonly pending: Schema.optionalKey<Schema.Struct<{
12719
- readonly revision: Schema.Int;
12720
- readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
12721
- readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
12778
+ readonly main: Schema.optionalKey<Schema.Struct<{
12779
+ readonly sequence: Schema.Int;
12780
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
12722
12781
  }>>;
12723
- readonly holding: Schema.$Array<Schema.Struct<{
12724
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12725
- readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
12726
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
12727
- readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
12728
- readonly gate: Schema.Int;
12729
- readonly since: Schema.Int;
12782
+ readonly packs: Schema.$Array<Schema.Struct<{
12783
+ readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
12784
+ readonly key: Schema.String;
12785
+ readonly sha256: Schema.String;
12786
+ readonly bytes: Schema.Int;
12787
+ readonly merges: Schema.optionalKey<Schema.Struct<{
12788
+ readonly first: Schema.Int;
12789
+ readonly last: Schema.Int;
12790
+ }>>;
12791
+ readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
12792
+ readonly depth: Schema.optionalKey<Schema.Int>;
12793
+ readonly roots: Schema.$Array<Schema.Struct<{
12794
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
12795
+ readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
12796
+ }>>;
12730
12797
  }>>;
12731
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
12798
+ }>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
12732
12799
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12733
12800
  repo: Schema.brand<Schema.String, "RepoName">;
12734
- pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
12735
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
12736
- readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
12737
- readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
12738
- readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
12739
- readonly head: Schema.Struct<{
12740
- readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
12741
- readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
12742
- readonly branch: Schema.String;
12743
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
12744
- readonly generation: Schema.Int;
12745
- }>;
12746
- readonly openedBy: Schema.Union<readonly [Schema.Struct<{
12747
- readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
12748
- readonly agent: Schema.Struct<{
12749
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12750
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
12751
- }>;
12752
- }>, Schema.Struct<{
12753
- readonly workflow: Schema.Struct<{
12754
- readonly name: Schema.brand<Schema.String, "WorkflowName">;
12755
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
12756
- readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
12757
- readonly step: Schema.Struct<{
12758
- readonly name: Schema.String;
12759
- readonly count: Schema.Int;
12760
- readonly attempt: Schema.Int;
12761
- }>;
12762
- }>;
12763
- }>]>;
12764
- readonly openedAt: Schema.DateTimeUtcFromMillis;
12765
- readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
12766
- readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
12767
- readonly repair: Schema.Boolean;
12768
- readonly current: Schema.Struct<{
12769
- readonly version: Schema.brand<Schema.Int, "VersionNumber">;
12770
- readonly head: Schema.brand<Schema.String, "CommitOid">;
12771
- readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
12772
- readonly planVersion: Schema.NullOr<Schema.Int>;
12773
- readonly intentRevision: Schema.Int;
12774
- readonly generation: Schema.Int;
12775
- readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
12776
- readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
12777
- readonly createdAt: Schema.DateTimeUtcFromMillis;
12778
- }>;
12779
- readonly threadNumber: Schema.Int;
12780
- }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
12801
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
12802
+ key: Schema.String;
12803
+ }>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
12781
12804
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12782
12805
  repo: Schema.brand<Schema.String, "RepoName">;
12783
12806
  }>>, Schema.toCodecStringTree<Schema.Struct<{
@@ -12829,46 +12852,56 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
12829
12852
  }>;
12830
12853
  readonly threadNumber: Schema.Int;
12831
12854
  }>>;
12832
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
12855
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
12833
12856
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12834
12857
  repo: Schema.brand<Schema.String, "RepoName">;
12858
+ pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
12835
12859
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
12836
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12837
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12838
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12839
- readonly scope: Schema.Union<readonly [Schema.Struct<{
12840
- readonly kind: Schema.Literal<"project">;
12841
- readonly name: Schema.brand<Schema.String, "ProjectName">;
12860
+ readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
12861
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
12862
+ readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
12863
+ readonly head: Schema.Struct<{
12864
+ readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
12865
+ readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
12866
+ readonly branch: Schema.String;
12867
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
12868
+ readonly generation: Schema.Int;
12869
+ }>;
12870
+ readonly openedBy: Schema.Union<readonly [Schema.Struct<{
12871
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
12872
+ readonly agent: Schema.Struct<{
12873
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12874
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
12875
+ }>;
12842
12876
  }>, Schema.Struct<{
12843
- readonly kind: Schema.Literal<"owner">;
12844
- }>]>;
12845
- readonly name: Schema.brand<Schema.String, "RepoName">;
12846
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12847
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12848
- readonly createdAt: Schema.DateTimeUtcFromMillis;
12849
- }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
12850
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12851
- }>>, Schema.toCodecStringTree<Schema.Struct<{
12852
- after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
12853
- limit: Schema.optionalKey<Schema.Int>;
12854
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12855
- readonly repos: Schema.$Array<Schema.Struct<{
12856
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
12857
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
12858
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
12859
- readonly scope: Schema.Union<readonly [Schema.Struct<{
12860
- readonly kind: Schema.Literal<"project">;
12861
- readonly name: Schema.brand<Schema.String, "ProjectName">;
12862
- }>, Schema.Struct<{
12863
- readonly kind: Schema.Literal<"owner">;
12864
- }>]>;
12865
- readonly name: Schema.brand<Schema.String, "RepoName">;
12866
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
12867
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
12877
+ readonly workflow: Schema.Struct<{
12878
+ readonly name: Schema.brand<Schema.String, "WorkflowName">;
12879
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
12880
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
12881
+ readonly step: Schema.Struct<{
12882
+ readonly name: Schema.String;
12883
+ readonly count: Schema.Int;
12884
+ readonly attempt: Schema.Int;
12885
+ }>;
12886
+ }>;
12887
+ }>]>;
12888
+ readonly openedAt: Schema.DateTimeUtcFromMillis;
12889
+ readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
12890
+ readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
12891
+ readonly repair: Schema.Boolean;
12892
+ readonly current: Schema.Struct<{
12893
+ readonly version: Schema.brand<Schema.Int, "VersionNumber">;
12894
+ readonly head: Schema.brand<Schema.String, "CommitOid">;
12895
+ readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
12896
+ readonly planVersion: Schema.NullOr<Schema.Int>;
12897
+ readonly intentRevision: Schema.Int;
12898
+ readonly generation: Schema.Int;
12899
+ readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
12900
+ readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
12868
12901
  readonly createdAt: Schema.DateTimeUtcFromMillis;
12869
- }>>;
12870
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
12871
- }>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
12902
+ }>;
12903
+ readonly threadNumber: Schema.Int;
12904
+ }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
12872
12905
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
12873
12906
  repo: Schema.brand<Schema.String, "RepoName">;
12874
12907
  pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
@@ -13480,109 +13513,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13480
13513
  readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
13481
13514
  readonly at: Schema.DateTimeUtcFromMillis;
13482
13515
  }>]>>>;
13483
- }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
13484
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13485
- repo: Schema.brand<Schema.String, "RepoName">;
13486
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13487
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13488
- readonly version: Schema.Int;
13489
- readonly baseline: Schema.Struct<{
13490
- readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
13491
- readonly tip: Schema.brand<Schema.String, "CommitOid">;
13492
- readonly sequence: Schema.Int;
13493
- readonly depth: Schema.Int;
13494
- readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13495
- }>;
13496
- readonly main: Schema.optionalKey<Schema.Struct<{
13497
- readonly sequence: Schema.Int;
13498
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
13499
- }>>;
13500
- readonly packs: Schema.$Array<Schema.Struct<{
13501
- readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
13502
- readonly key: Schema.String;
13503
- readonly sha256: Schema.String;
13504
- readonly bytes: Schema.Int;
13505
- readonly merges: Schema.optionalKey<Schema.Struct<{
13506
- readonly first: Schema.Int;
13507
- readonly last: Schema.Int;
13508
- }>>;
13509
- readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
13510
- readonly depth: Schema.optionalKey<Schema.Int>;
13511
- readonly roots: Schema.$Array<Schema.Struct<{
13512
- readonly commit: Schema.brand<Schema.String, "CommitOid">;
13513
- readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
13514
- }>>;
13515
- }>>;
13516
- }>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13517
- 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">]>;
13518
- repo: Schema.brand<Schema.String, "RepoName">;
13519
- }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
13520
- readonly kind: Schema.Literal<"none">;
13521
- }>, Schema.Struct<{
13522
- readonly kind: Schema.Literal<"github">;
13523
- readonly branch: Schema.String;
13524
- readonly mirror: Schema.Union<readonly [Schema.Struct<{
13525
- readonly state: Schema.Literal<"on">;
13526
- }>, Schema.Struct<{
13527
- readonly state: Schema.Literal<"paused">;
13528
- readonly paused: Schema.Union<readonly [Schema.Struct<{
13529
- readonly why: Schema.Literal<"diverged">;
13530
- readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13531
- }>, Schema.Struct<{
13532
- readonly why: Schema.Literal<"refused">;
13533
- readonly said: Schema.String;
13534
- }>, Schema.Struct<{
13535
- readonly why: Schema.Literal<"unauthorized">;
13536
- }>]>;
13537
- }>, Schema.Struct<{
13538
- readonly state: Schema.Literal<"off">;
13539
- }>]>;
13540
- readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13541
- readonly nextStep: Schema.optionalKey<Schema.String>;
13542
- }>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
13543
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13544
- }>>, never, Schema.toCodecJson<Schema.Struct<{
13545
- readonly name: Schema.brand<Schema.String, "RepoName">;
13546
- readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
13547
- }>>, Schema.toCodecStringTree<Schema.Struct<{
13548
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13549
- }>>, Schema.toCodecJson<Schema.Struct<{
13550
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13551
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13552
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13553
- readonly scope: Schema.Union<readonly [Schema.Struct<{
13554
- readonly kind: Schema.Literal<"project">;
13555
- readonly name: Schema.brand<Schema.String, "ProjectName">;
13556
- }>, Schema.Struct<{
13557
- readonly kind: Schema.Literal<"owner">;
13558
- }>]>;
13559
- readonly name: Schema.brand<Schema.String, "RepoName">;
13560
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13561
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13562
- readonly createdAt: Schema.DateTimeUtcFromMillis;
13563
- }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
13564
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13565
- }>>, never, Schema.toCodecJson<Schema.Struct<{
13566
- readonly name: Schema.brand<Schema.String, "RepoName">;
13567
- readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
13568
- readonly url: Schema.brand<Schema.String, "RepoUrl">;
13569
- }>>, Schema.toCodecStringTree<Schema.Struct<{
13570
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
13571
- }>>, Schema.toCodecJson<Schema.Struct<{
13572
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13573
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
13574
- readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
13575
- readonly scope: Schema.Union<readonly [Schema.Struct<{
13576
- readonly kind: Schema.Literal<"project">;
13577
- readonly name: Schema.brand<Schema.String, "ProjectName">;
13578
- }>, Schema.Struct<{
13579
- readonly kind: Schema.Literal<"owner">;
13580
- }>]>;
13581
- readonly name: Schema.brand<Schema.String, "RepoName">;
13582
- readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
13583
- readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
13584
- readonly createdAt: Schema.DateTimeUtcFromMillis;
13585
- }>>, 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<{
13516
+ }>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
13586
13517
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
13587
13518
  repo: Schema.brand<Schema.String, "RepoName">;
13588
13519
  pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
@@ -13634,7 +13565,55 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13634
13565
  readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
13635
13566
  readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
13636
13567
  readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
13637
- }>>, 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<{
13568
+ }>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
13569
+ 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">]>;
13570
+ repo: Schema.brand<Schema.String, "RepoName">;
13571
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13572
+ readonly active: Schema.Struct<{
13573
+ readonly revision: Schema.Int;
13574
+ readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13575
+ readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13576
+ }>;
13577
+ readonly pending: Schema.optionalKey<Schema.Struct<{
13578
+ readonly revision: Schema.Int;
13579
+ readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13580
+ readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
13581
+ }>>;
13582
+ readonly holding: Schema.$Array<Schema.Struct<{
13583
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
13584
+ readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
13585
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13586
+ readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
13587
+ readonly gate: Schema.Int;
13588
+ readonly since: Schema.Int;
13589
+ }>>;
13590
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13591
+ 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">]>;
13592
+ repo: Schema.brand<Schema.String, "RepoName">;
13593
+ }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
13594
+ readonly kind: Schema.Literal<"none">;
13595
+ }>, Schema.Struct<{
13596
+ readonly kind: Schema.Literal<"github">;
13597
+ readonly branch: Schema.String;
13598
+ readonly mirror: Schema.Union<readonly [Schema.Struct<{
13599
+ readonly state: Schema.Literal<"on">;
13600
+ }>, Schema.Struct<{
13601
+ readonly state: Schema.Literal<"paused">;
13602
+ readonly paused: Schema.Union<readonly [Schema.Struct<{
13603
+ readonly why: Schema.Literal<"diverged">;
13604
+ readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13605
+ }>, Schema.Struct<{
13606
+ readonly why: Schema.Literal<"refused">;
13607
+ readonly said: Schema.String;
13608
+ }>, Schema.Struct<{
13609
+ readonly why: Schema.Literal<"unauthorized">;
13610
+ }>]>;
13611
+ }>, Schema.Struct<{
13612
+ readonly state: Schema.Literal<"off">;
13613
+ }>]>;
13614
+ readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13615
+ readonly nextStep: Schema.optionalKey<Schema.String>;
13616
+ }>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
13638
13617
  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">]>;
13639
13618
  repo: Schema.brand<Schema.String, "RepoName">;
13640
13619
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -13664,7 +13643,38 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
13664
13643
  }>]>;
13665
13644
  readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
13666
13645
  readonly nextStep: Schema.optionalKey<Schema.String>;
13667
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never>, false>;
13646
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
13647
+ 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">]>;
13648
+ repo: Schema.brand<Schema.String, "RepoName">;
13649
+ commit: Schema.brand<Schema.String, "CommitOid">;
13650
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
13651
+ path: Schema.brand<Schema.String, "RepoPath">;
13652
+ line: Schema.Int;
13653
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
13654
+ readonly commit: Schema.brand<Schema.String, "CommitOid">;
13655
+ readonly path: Schema.brand<Schema.String, "RepoPath">;
13656
+ readonly line: Schema.Int;
13657
+ readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
13658
+ readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
13659
+ readonly turns: Schema.$Array<Schema.Struct<{
13660
+ readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
13661
+ readonly threadNumber: Schema.Int;
13662
+ readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
13663
+ readonly turn: Schema.Int;
13664
+ readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
13665
+ readonly model: Schema.optionalKey<Schema.String>;
13666
+ }>>;
13667
+ readonly workflow: Schema.optionalKey<Schema.Struct<{
13668
+ readonly name: Schema.brand<Schema.String, "WorkflowName">;
13669
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
13670
+ readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
13671
+ readonly step: Schema.Struct<{
13672
+ readonly name: Schema.String;
13673
+ readonly count: Schema.Int;
13674
+ readonly attempt: Schema.Int;
13675
+ }>;
13676
+ }>>;
13677
+ }>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
13668
13678
  /**
13669
13679
  * An owner's repos, as each reader may see them: a repo shows only to whoever can see its
13670
13680
  * project. Adding one is a person's approved command, which reaches `/v1` with approvals.
@@ -17291,37 +17301,195 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
17291
17301
  * person.
17292
17302
  */
17293
17303
  declare class WorkflowsGroup extends WorkflowsGroup_base {}
17294
- declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
17295
- start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17296
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17297
- repo: Schema.brand<Schema.String, "RepoName">;
17298
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17299
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17300
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17301
- readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
17302
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
17304
+ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
17303
17305
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17304
17306
  repo: Schema.brand<Schema.String, "RepoName">;
17307
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
17308
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
17309
+ readonly on: Schema.Union<readonly [Schema.Struct<{
17310
+ readonly kind: Schema.Literal<"main">;
17311
+ }>, Schema.Struct<{
17312
+ readonly kind: Schema.Literal<"thread">;
17313
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
17314
+ readonly branch: Schema.optionalKey<Schema.String>;
17315
+ }>]>;
17316
+ readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17317
+ readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17305
17318
  }>>, Schema.toCodecStringTree<Schema.Struct<{
17306
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17307
- readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
17308
- readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17309
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17319
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
17320
+ }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
17310
17321
  readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17311
17322
  readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17312
- readonly check: Schema.brand<Schema.String, "CheckName">;
17313
17323
  readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17314
17324
  readonly rerun: Schema.Int;
17315
17325
  readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17316
- readonly tree: Schema.brand<Schema.String, "TreeOid">;
17317
- readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
17318
- readonly createdAt: Schema.DateTimeUtcFromMillis;
17319
- readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
17320
- readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
17321
- readonly starters: Schema.$Array<Schema.Struct<{
17322
- readonly actor: Schema.Union<readonly [Schema.Struct<{
17323
- readonly kind: Schema.Literal<"person">;
17324
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17326
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17327
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17328
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
17329
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17330
+ readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
17331
+ }>, Schema.Struct<{
17332
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17333
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17334
+ readonly rerun: Schema.Int;
17335
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17336
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17337
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17338
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
17339
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17340
+ readonly state: Schema.Literal<"ended">;
17341
+ readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
17342
+ readonly reused: Schema.optionalKey<Schema.Literal<true>>;
17343
+ }>, Schema.Struct<{
17344
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17345
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17346
+ readonly rerun: Schema.Int;
17347
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17348
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17349
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17350
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
17351
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17352
+ readonly state: Schema.Literal<"ended">;
17353
+ readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
17354
+ }>]>>;
17355
+ }>, Schema.Struct<{
17356
+ readonly waiting: Schema.Struct<{
17357
+ readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17358
+ readonly check: Schema.brand<Schema.String, "CheckName">;
17359
+ readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17360
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
17361
+ readonly waitingSince: Schema.DateTimeUtcFromString;
17362
+ readonly endsAt: Schema.DateTimeUtcFromString;
17363
+ readonly runs: Schema.$Array<Schema.Struct<{
17364
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17365
+ readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
17366
+ readonly title: Schema.optionalKey<Schema.String>;
17367
+ readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
17368
+ readonly leaves: Schema.$Array<Schema.Struct<{
17369
+ readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
17370
+ readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
17371
+ readonly since: Schema.DateTimeUtcFromString;
17372
+ readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17373
+ readonly kind: Schema.Literal<"person">;
17374
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17375
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
17376
+ }>, Schema.Struct<{
17377
+ readonly kind: Schema.Literal<"agent">;
17378
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
17379
+ }>, Schema.Struct<{
17380
+ readonly kind: Schema.Literal<"holders">;
17381
+ readonly permission: Schema.String;
17382
+ }>]>>;
17383
+ readonly what: Schema.optionalKey<Schema.String>;
17384
+ readonly answer: Schema.optionalKey<Schema.String>;
17385
+ }>>;
17386
+ }>>;
17387
+ }>;
17388
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
17389
+ start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17390
+ 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">]>;
17391
+ repo: Schema.brand<Schema.String, "RepoName">;
17392
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17393
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17394
+ }>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
17395
+ readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17396
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17397
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17398
+ readonly rerun: Schema.Int;
17399
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17400
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17401
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17402
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
17403
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17404
+ readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
17405
+ }>, Schema.Struct<{
17406
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17407
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17408
+ readonly rerun: Schema.Int;
17409
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17410
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17411
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17412
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
17413
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17414
+ readonly state: Schema.Literal<"ended">;
17415
+ readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
17416
+ readonly reused: Schema.optionalKey<Schema.Literal<true>>;
17417
+ }>, Schema.Struct<{
17418
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17419
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17420
+ readonly rerun: Schema.Int;
17421
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17422
+ readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17423
+ readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17424
+ readonly readsMoved: Schema.optionalKey<Schema.String>;
17425
+ readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17426
+ readonly state: Schema.Literal<"ended">;
17427
+ readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
17428
+ }>]>>;
17429
+ }>, Schema.Struct<{
17430
+ readonly waiting: Schema.Struct<{
17431
+ readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17432
+ readonly check: Schema.brand<Schema.String, "CheckName">;
17433
+ readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17434
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
17435
+ readonly waitingSince: Schema.DateTimeUtcFromString;
17436
+ readonly endsAt: Schema.DateTimeUtcFromString;
17437
+ readonly runs: Schema.$Array<Schema.Struct<{
17438
+ readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
17439
+ readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
17440
+ readonly title: Schema.optionalKey<Schema.String>;
17441
+ readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
17442
+ readonly leaves: Schema.$Array<Schema.Struct<{
17443
+ readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
17444
+ readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
17445
+ readonly since: Schema.DateTimeUtcFromString;
17446
+ readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17447
+ readonly kind: Schema.Literal<"person">;
17448
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17449
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
17450
+ }>, Schema.Struct<{
17451
+ readonly kind: Schema.Literal<"agent">;
17452
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
17453
+ }>, Schema.Struct<{
17454
+ readonly kind: Schema.Literal<"holders">;
17455
+ readonly permission: Schema.String;
17456
+ }>]>>;
17457
+ readonly what: Schema.optionalKey<Schema.String>;
17458
+ readonly answer: Schema.optionalKey<Schema.String>;
17459
+ }>>;
17460
+ }>>;
17461
+ }>;
17462
+ }>]>>, 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<{
17463
+ start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
17464
+ 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">]>;
17465
+ repo: Schema.brand<Schema.String, "RepoName">;
17466
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17467
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17468
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17469
+ readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
17470
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
17471
+ 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">]>;
17472
+ repo: Schema.brand<Schema.String, "RepoName">;
17473
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
17474
+ readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17475
+ readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
17476
+ readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17477
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
17478
+ readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17479
+ readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17480
+ readonly check: Schema.brand<Schema.String, "CheckName">;
17481
+ readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17482
+ readonly rerun: Schema.Int;
17483
+ readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17484
+ readonly tree: Schema.brand<Schema.String, "TreeOid">;
17485
+ readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
17486
+ readonly createdAt: Schema.DateTimeUtcFromMillis;
17487
+ readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
17488
+ readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
17489
+ readonly starters: Schema.$Array<Schema.Struct<{
17490
+ readonly actor: Schema.Union<readonly [Schema.Struct<{
17491
+ readonly kind: Schema.Literal<"person">;
17492
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
17325
17493
  }>, Schema.Struct<{
17326
17494
  readonly kind: Schema.Literal<"agent">;
17327
17495
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -17842,7 +18010,22 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
17842
18010
  readonly state: Schema.Literal<"ended">;
17843
18011
  readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
17844
18012
  }>]>;
17845
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
18013
+ }>>, 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<{
18014
+ 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">]>;
18015
+ repo: Schema.brand<Schema.String, "RepoName">;
18016
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18017
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18018
+ readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18019
+ }>, Schema.Struct<{
18020
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18021
+ readonly person: Schema.brand<Schema.String, "OwnerName">;
18022
+ }>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18023
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18024
+ readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18025
+ }>, Schema.Struct<{
18026
+ readonly check: Schema.brand<Schema.String, "CheckKey">;
18027
+ readonly person: Schema.brand<Schema.String, "OwnerName">;
18028
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
17846
18029
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
17847
18030
  repo: Schema.brand<Schema.String, "RepoName">;
17848
18031
  run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
@@ -17968,192 +18151,35 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
17968
18151
  }>>;
17969
18152
  readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
17970
18153
  readonly more: Schema.Boolean;
17971
- }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
17972
- start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18154
+ }>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never>, false>;
18155
+ /**
18156
+ * A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
18157
+ * `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
18158
+ * outside a session runs by their approval; an agent's from its session, by its own token. What
18159
+ * a local run of a check runs, and its report, of an identity an open version of a thread needs,
18160
+ * each by whoever may start runs on that thread, the report from the attachment it ran on; and an
18161
+ * admin's restore of a signer a miss revoked. And one run's trace, a check run's or a workflow
18162
+ * run's of the repo's project, a page at a time, for whoever sees the scope it was first started
18163
+ * in.
18164
+ */
18165
+ declare class RunsGroup extends RunsGroup_base {}
18166
+ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
17973
18167
  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">]>;
17974
- repo: Schema.brand<Schema.String, "RepoName">;
17975
- }>>, Schema.toCodecStringTree<Schema.Struct<{
17976
- readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
17977
- }>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
17978
- readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17979
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17980
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17981
- readonly rerun: Schema.Int;
17982
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17983
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17984
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17985
- readonly readsMoved: Schema.optionalKey<Schema.String>;
17986
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17987
- readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
17988
- }>, Schema.Struct<{
17989
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
17990
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
17991
- readonly rerun: Schema.Int;
17992
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17993
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
17994
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
17995
- readonly readsMoved: Schema.optionalKey<Schema.String>;
17996
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
17997
- readonly state: Schema.Literal<"ended">;
17998
- readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
17999
- readonly reused: Schema.optionalKey<Schema.Literal<true>>;
18000
- }>, Schema.Struct<{
18001
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18002
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18003
- readonly rerun: Schema.Int;
18004
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18005
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
18006
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18007
- readonly readsMoved: Schema.optionalKey<Schema.String>;
18008
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
18009
- readonly state: Schema.Literal<"ended">;
18010
- readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
18011
- }>]>>;
18012
- }>, Schema.Struct<{
18013
- readonly waiting: Schema.Struct<{
18014
- readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18015
- readonly check: Schema.brand<Schema.String, "CheckName">;
18016
- readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18017
- readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
18018
- readonly waitingSince: Schema.DateTimeUtcFromString;
18019
- readonly endsAt: Schema.DateTimeUtcFromString;
18020
- readonly runs: Schema.$Array<Schema.Struct<{
18021
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
18022
- readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
18023
- readonly title: Schema.optionalKey<Schema.String>;
18024
- readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
18025
- readonly leaves: Schema.$Array<Schema.Struct<{
18026
- readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
18027
- readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
18028
- readonly since: Schema.DateTimeUtcFromString;
18029
- readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
18030
- readonly kind: Schema.Literal<"person">;
18031
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18032
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18033
- }>, Schema.Struct<{
18034
- readonly kind: Schema.Literal<"agent">;
18035
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18036
- }>, Schema.Struct<{
18037
- readonly kind: Schema.Literal<"holders">;
18038
- readonly permission: Schema.String;
18039
- }>]>>;
18040
- readonly what: Schema.optionalKey<Schema.String>;
18041
- readonly answer: Schema.optionalKey<Schema.String>;
18042
- }>>;
18043
- }>>;
18044
- }>;
18045
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
18046
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18047
- repo: Schema.brand<Schema.String, "RepoName">;
18048
- }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18049
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18050
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18051
- }>, Schema.Struct<{
18052
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18053
- readonly person: Schema.brand<Schema.String, "OwnerName">;
18054
- }>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18055
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18056
- readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18057
- }>, Schema.Struct<{
18058
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18059
- readonly person: Schema.brand<Schema.String, "OwnerName">;
18060
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
18061
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18062
- repo: Schema.brand<Schema.String, "RepoName">;
18063
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18064
- readonly check: Schema.brand<Schema.String, "CheckKey">;
18065
- readonly on: Schema.Union<readonly [Schema.Struct<{
18066
- readonly kind: Schema.Literal<"main">;
18067
- }>, Schema.Struct<{
18068
- readonly kind: Schema.Literal<"thread">;
18069
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18070
- readonly branch: Schema.optionalKey<Schema.String>;
18071
- }>]>;
18072
- readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18073
- readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18168
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18169
+ readonly client: Schema.String;
18170
+ readonly agent: Schema.brand<Schema.String, "AgentHandle">;
18171
+ readonly create: Schema.optionalKey<Schema.Boolean>;
18172
+ readonly access: Schema.Literals<readonly ["read", "act"]>;
18173
+ readonly projects: Schema.NonEmptyArray<Schema.Struct<{
18174
+ 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">]>;
18175
+ readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
18176
+ }>>;
18074
18177
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18075
18178
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18076
- }>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
18077
- readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
18078
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18079
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18080
- readonly rerun: Schema.Int;
18081
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18082
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
18083
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18084
- readonly readsMoved: Schema.optionalKey<Schema.String>;
18085
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
18086
- readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
18087
- }>, Schema.Struct<{
18088
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18089
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18090
- readonly rerun: Schema.Int;
18091
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18092
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
18093
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18094
- readonly readsMoved: Schema.optionalKey<Schema.String>;
18095
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
18096
- readonly state: Schema.Literal<"ended">;
18097
- readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
18098
- readonly reused: Schema.optionalKey<Schema.Literal<true>>;
18099
- }>, Schema.Struct<{
18100
- readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
18101
- readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18102
- readonly rerun: Schema.Int;
18103
- readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18104
- readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
18105
- readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
18106
- readonly readsMoved: Schema.optionalKey<Schema.String>;
18107
- readonly reuseSkipped: Schema.optionalKey<Schema.String>;
18108
- readonly state: Schema.Literal<"ended">;
18109
- readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
18110
- }>]>>;
18111
- }>, Schema.Struct<{
18112
- readonly waiting: Schema.Struct<{
18113
- readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
18114
- readonly check: Schema.brand<Schema.String, "CheckName">;
18115
- readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18116
- readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
18117
- readonly waitingSince: Schema.DateTimeUtcFromString;
18118
- readonly endsAt: Schema.DateTimeUtcFromString;
18119
- readonly runs: Schema.$Array<Schema.Struct<{
18120
- readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
18121
- readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
18122
- readonly title: Schema.optionalKey<Schema.String>;
18123
- readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
18124
- readonly leaves: Schema.$Array<Schema.Struct<{
18125
- readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
18126
- readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
18127
- readonly since: Schema.DateTimeUtcFromString;
18128
- readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
18129
- readonly kind: Schema.Literal<"person">;
18130
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18131
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18132
- }>, Schema.Struct<{
18133
- readonly kind: Schema.Literal<"agent">;
18134
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18135
- }>, Schema.Struct<{
18136
- readonly kind: Schema.Literal<"holders">;
18137
- readonly permission: Schema.String;
18138
- }>]>>;
18139
- readonly what: Schema.optionalKey<Schema.String>;
18140
- readonly answer: Schema.optionalKey<Schema.String>;
18141
- }>>;
18142
- }>>;
18143
- }>;
18144
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never>, false>;
18145
- /**
18146
- * A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
18147
- * `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
18148
- * outside a session runs by their approval; an agent's from its session, by its own token. What
18149
- * a local run of a check runs, and its report, of an identity an open version of a thread needs,
18150
- * each by whoever may start runs on that thread, the report from the attachment it ran on; and an
18151
- * admin's restore of a signer a miss revoked. And one run's trace, a check run's or a workflow
18152
- * run's of the repo's project, a page at a time, for whoever sees the scope it was first started
18153
- * in.
18154
- */
18155
- declare class RunsGroup extends RunsGroup_base {}
18156
- declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
18179
+ }>>, Schema.toCodecJson<Schema.Struct<{
18180
+ readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18181
+ readonly client: Schema.String;
18182
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
18157
18183
  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">]>;
18158
18184
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18159
18185
  readonly request: Schema.String;
@@ -18169,23 +18195,7 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
18169
18195
  readonly request: Schema.String;
18170
18196
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18171
18197
  readonly redirect: Schema.String;
18172
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
18173
- 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">]>;
18174
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18175
- readonly client: Schema.String;
18176
- readonly agent: Schema.brand<Schema.String, "AgentHandle">;
18177
- readonly create: Schema.optionalKey<Schema.Boolean>;
18178
- readonly access: Schema.Literals<readonly ["read", "act"]>;
18179
- readonly projects: Schema.NonEmptyArray<Schema.Struct<{
18180
- 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">]>;
18181
- readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
18182
- }>>;
18183
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18184
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18185
- }>>, Schema.toCodecJson<Schema.Struct<{
18186
- readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18187
- readonly client: Schema.String;
18188
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"finish", "POST", "/v1/owners/:owner/client-grants/:grant/finish", Schema.toCodecStringTree<Schema.Struct<{
18198
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"finish", "POST", "/v1/owners/:owner/client-grants/:grant/finish", Schema.toCodecStringTree<Schema.Struct<{
18189
18199
  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">]>;
18190
18200
  grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
18191
18201
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -18201,50 +18211,17 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
18201
18211
  * consented, hands the client its code.
18202
18212
  */
18203
18213
  declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
18204
- declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
18205
- 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">]>;
18214
+ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
18215
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18216
+ readonly displayName: Schema.optionalKey<Schema.String>;
18206
18217
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18207
- from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18208
- to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18209
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18210
- readonly from: Schema.brand<Schema.String, "UtcDay">;
18211
- readonly to: Schema.brand<Schema.String, "UtcDay">;
18212
- readonly days: Schema.$Array<Schema.Struct<{
18213
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18214
- readonly lines: Schema.$Array<Schema.Struct<{
18215
- 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"]>;
18216
- readonly quantity: Schema.Finite;
18217
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18218
- }>>;
18219
- }>>;
18220
- readonly work: Schema.$Array<Schema.Struct<{
18221
- readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18222
- readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18223
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18224
- readonly lines: Schema.$Array<Schema.Struct<{
18225
- 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"]>;
18226
- readonly quantity: Schema.Finite;
18227
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18228
- }>>;
18229
- }>>;
18230
- readonly kept: Schema.optionalKey<Schema.Struct<{
18231
- readonly day: Schema.brand<Schema.String, "UtcDay">;
18232
- readonly counts: Schema.$Array<Schema.Struct<{
18233
- readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18234
- readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18235
- readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18236
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18237
- readonly bytes: Schema.Int;
18238
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18239
- }>>;
18240
- readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18241
- readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18242
- readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18243
- readonly counts: Schema.Int;
18244
- readonly bytes: Schema.Int;
18245
- }>>>;
18246
- }>>;
18247
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18218
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18219
+ }>>, Schema.toCodecJson<Schema.Struct<{
18220
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18221
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18222
+ readonly displayName: Schema.String;
18223
+ readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
18224
+ }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
18248
18225
  cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18249
18226
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18250
18227
  readonly organizations: Schema.$Array<Schema.Struct<{
@@ -18253,7 +18230,23 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18253
18230
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18254
18231
  }>>;
18255
18232
  readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
18256
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
18233
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18234
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18235
+ }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18236
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18237
+ }>>, Schema.toCodecJson<Schema.Struct<{
18238
+ readonly member: Schema.Union<readonly [Schema.Struct<{
18239
+ readonly kind: Schema.Literal<"person">;
18240
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18241
+ }>, Schema.Struct<{
18242
+ readonly kind: Schema.Literal<"agent">;
18243
+ readonly agent: Schema.Struct<{
18244
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18245
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18246
+ }>;
18247
+ }>]>;
18248
+ readonly why: Schema.Literals<readonly ["removed", "left"]>;
18249
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
18257
18250
  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">]>;
18258
18251
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18259
18252
  from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
@@ -18428,33 +18421,50 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
18428
18421
  }>>;
18429
18422
  }>;
18430
18423
  readonly pricesAsOf: Schema.String;
18431
- }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
18424
+ }>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
18432
18425
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18433
- }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18434
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18435
- }>>, Schema.toCodecJson<Schema.Struct<{
18436
- readonly member: Schema.Union<readonly [Schema.Struct<{
18437
- readonly kind: Schema.Literal<"person">;
18438
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18439
- }>, Schema.Struct<{
18440
- readonly kind: Schema.Literal<"agent">;
18441
- readonly agent: Schema.Struct<{
18442
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18443
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18444
- }>;
18445
- }>]>;
18446
- readonly why: Schema.Literals<readonly ["removed", "left"]>;
18447
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
18448
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18449
- readonly displayName: Schema.optionalKey<Schema.String>;
18450
18426
  }>>, Schema.toCodecStringTree<Schema.Struct<{
18451
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18452
- }>>, Schema.toCodecJson<Schema.Struct<{
18453
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18454
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18455
- readonly displayName: Schema.String;
18456
- readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
18457
- }>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never>, false>;
18427
+ from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18428
+ to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
18429
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18430
+ readonly from: Schema.brand<Schema.String, "UtcDay">;
18431
+ readonly to: Schema.brand<Schema.String, "UtcDay">;
18432
+ readonly days: Schema.$Array<Schema.Struct<{
18433
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18434
+ readonly lines: Schema.$Array<Schema.Struct<{
18435
+ readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18436
+ readonly quantity: Schema.Finite;
18437
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18438
+ }>>;
18439
+ }>>;
18440
+ readonly work: Schema.$Array<Schema.Struct<{
18441
+ readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
18442
+ readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
18443
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18444
+ readonly lines: Schema.$Array<Schema.Struct<{
18445
+ readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
18446
+ readonly quantity: Schema.Finite;
18447
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18448
+ }>>;
18449
+ }>>;
18450
+ readonly kept: Schema.optionalKey<Schema.Struct<{
18451
+ readonly day: Schema.brand<Schema.String, "UtcDay">;
18452
+ readonly counts: Schema.$Array<Schema.Struct<{
18453
+ readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
18454
+ readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
18455
+ readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
18456
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18457
+ readonly bytes: Schema.Int;
18458
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18459
+ }>>;
18460
+ readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
18461
+ readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
18462
+ readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
18463
+ readonly counts: Schema.Int;
18464
+ readonly bytes: Schema.Int;
18465
+ }>>>;
18466
+ }>>;
18467
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
18458
18468
  /**
18459
18469
  * Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
18460
18470
  * usage. Every change is a person's, by approval; agents never change members.
@@ -18520,48 +18530,61 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
18520
18530
  }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
18521
18531
  /** An organization's members: any member lists them; an admin changes a role or removes one. */
18522
18532
  declare class MembersGroup extends MembersGroup_base {}
18523
- declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18524
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18525
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18533
+ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
18526
18534
  cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18527
18535
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18528
18536
  readonly invitations: Schema.$Array<Schema.Struct<{
18529
18537
  readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18530
- readonly invitee: Schema.Struct<{
18531
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18538
+ readonly organization: Schema.Struct<{
18539
+ readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18532
18540
  readonly name: Schema.brand<Schema.String, "OwnerName">;
18533
18541
  }>;
18534
18542
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18535
- readonly sentBy: Schema.Struct<{
18536
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18537
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18538
- }>;
18539
18543
  readonly expiresAt: Schema.DateTimeUtcFromMillis;
18540
18544
  }>>;
18541
18545
  readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18542
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
18546
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18547
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18548
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18549
+ readonly invitee: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18550
+ readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
18551
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18552
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18553
+ }>>, Schema.toCodecJson<Schema.Struct<{
18554
+ readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18555
+ readonly invitee: Schema.Struct<{
18556
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18557
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18558
+ }>;
18559
+ readonly role: Schema.Literals<readonly ["admin", "member"]>;
18560
+ readonly expiresAt: Schema.DateTimeUtcFromMillis;
18561
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18562
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18563
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18543
18564
  cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18544
18565
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18545
18566
  readonly invitations: Schema.$Array<Schema.Struct<{
18546
18567
  readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18547
- readonly organization: Schema.Struct<{
18548
- readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18568
+ readonly invitee: Schema.Struct<{
18569
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18549
18570
  readonly name: Schema.brand<Schema.String, "OwnerName">;
18550
18571
  }>;
18551
18572
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18573
+ readonly sentBy: Schema.Struct<{
18574
+ readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18575
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18576
+ }>;
18552
18577
  readonly expiresAt: Schema.DateTimeUtcFromMillis;
18553
18578
  }>>;
18554
18579
  readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
18555
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
18580
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
18581
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18556
18582
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18557
18583
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18558
18584
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18559
18585
  }>>, Schema.toCodecJson<Schema.Struct<{
18560
18586
  readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18561
- readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18562
- readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
18563
- readonly role: Schema.Literals<readonly ["admin", "member"]>;
18564
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
18587
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
18565
18588
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18566
18589
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18567
18590
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
@@ -18570,84 +18593,22 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
18570
18593
  readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18571
18594
  readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
18572
18595
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18573
- }>>, 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<{
18574
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18596
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
18575
18597
  invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18576
18598
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
18577
18599
  'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18578
18600
  }>>, Schema.toCodecJson<Schema.Struct<{
18579
18601
  readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18580
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
18581
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18582
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18583
- 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">]>;
18584
- readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
18585
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18586
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18587
- }>>, Schema.toCodecJson<Schema.Struct<{
18588
- readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
18589
- readonly invitee: Schema.Struct<{
18590
- readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18591
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18592
- }>;
18602
+ readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
18603
+ readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
18593
18604
  readonly role: Schema.Literals<readonly ["admin", "member"]>;
18594
- readonly expiresAt: Schema.DateTimeUtcFromMillis;
18595
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never>, false>;
18605
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never>, false>;
18596
18606
  /**
18597
18607
  * Invitations: an organization's admins send, list and withdraw them; the person invited lists
18598
18608
  * theirs and accepts or declines one, which is found from their own list, never the client.
18599
18609
  */
18600
18610
  declare class InvitationsGroup extends InvitationsGroup_base {}
18601
- declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18602
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18603
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18604
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18605
- limit: Schema.optionalKey<Schema.Int>;
18606
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18607
- readonly grants: Schema.$Array<Schema.Struct<{
18608
- readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
18609
- readonly subject: Schema.Union<readonly [Schema.Struct<{
18610
- readonly kind: Schema.Literal<"owner">;
18611
- }>, Schema.Struct<{
18612
- readonly kind: Schema.Literal<"project">;
18613
- readonly project: Schema.brand<Schema.String, "ProjectName">;
18614
- }>, Schema.Struct<{
18615
- readonly kind: Schema.Literal<"thread">;
18616
- readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18617
- }>, Schema.Struct<{
18618
- readonly kind: Schema.Literal<"agent">;
18619
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18620
- }>]>;
18621
- readonly principal: Schema.Union<readonly [Schema.Struct<{
18622
- readonly kind: Schema.Literal<"person">;
18623
- readonly name: Schema.brand<Schema.String, "OwnerName">;
18624
- }>, Schema.Struct<{
18625
- readonly kind: Schema.Literal<"agent">;
18626
- readonly owner: Schema.brand<Schema.String, "OwnerName">;
18627
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18628
- }>, Schema.Struct<{
18629
- readonly kind: Schema.Literal<"agent">;
18630
- readonly agent: Schema.Struct<{
18631
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18632
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18633
- }>;
18634
- }>]>;
18635
- readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18636
- readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
18637
- readonly kind: Schema.Literal<"person">;
18638
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18639
- }>, Schema.Struct<{
18640
- readonly kind: Schema.Literal<"agent">;
18641
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18642
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18643
- }>, Schema.Struct<{
18644
- readonly kind: Schema.Literal<"ref0">;
18645
- readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18646
- }>]>;
18647
- readonly grantedAt: Schema.DateTimeUtcFromMillis;
18648
- }>>;
18649
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18650
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18611
+ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18651
18612
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18652
18613
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18653
18614
  readonly subject: Schema.Union<readonly [Schema.Struct<{
@@ -18759,7 +18720,56 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
18759
18720
  }>;
18760
18721
  }>]>;
18761
18722
  readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18762
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never>, false>;
18723
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
18724
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18725
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18726
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18727
+ limit: Schema.optionalKey<Schema.Int>;
18728
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18729
+ readonly grants: Schema.$Array<Schema.Struct<{
18730
+ readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
18731
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
18732
+ readonly kind: Schema.Literal<"owner">;
18733
+ }>, Schema.Struct<{
18734
+ readonly kind: Schema.Literal<"project">;
18735
+ readonly project: Schema.brand<Schema.String, "ProjectName">;
18736
+ }>, Schema.Struct<{
18737
+ readonly kind: Schema.Literal<"thread">;
18738
+ readonly thread: Schema.brand<Schema.String, "WrittenThread">;
18739
+ }>, Schema.Struct<{
18740
+ readonly kind: Schema.Literal<"agent">;
18741
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18742
+ }>]>;
18743
+ readonly principal: Schema.Union<readonly [Schema.Struct<{
18744
+ readonly kind: Schema.Literal<"person">;
18745
+ readonly name: Schema.brand<Schema.String, "OwnerName">;
18746
+ }>, Schema.Struct<{
18747
+ readonly kind: Schema.Literal<"agent">;
18748
+ readonly owner: Schema.brand<Schema.String, "OwnerName">;
18749
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18750
+ }>, Schema.Struct<{
18751
+ readonly kind: Schema.Literal<"agent">;
18752
+ readonly agent: Schema.Struct<{
18753
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18754
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18755
+ }>;
18756
+ }>]>;
18757
+ readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
18758
+ readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
18759
+ readonly kind: Schema.Literal<"person">;
18760
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18761
+ }>, Schema.Struct<{
18762
+ readonly kind: Schema.Literal<"agent">;
18763
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18764
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18765
+ }>, Schema.Struct<{
18766
+ readonly kind: Schema.Literal<"ref0">;
18767
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18768
+ }>]>;
18769
+ readonly grantedAt: Schema.DateTimeUtcFromMillis;
18770
+ }>>;
18771
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
18772
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
18763
18773
  /**
18764
18774
  * An organization's grants (layer 1): any person lists those they may see; an admin gives one or
18765
18775
  * takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
@@ -18767,10 +18777,13 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
18767
18777
  * `OrganizationNotFound`.
18768
18778
  */
18769
18779
  declare class GrantsGroup extends GrantsGroup_base {}
18770
- declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
18780
+ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18771
18781
  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">]>;
18772
- agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18773
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
18782
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
18783
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18784
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18785
+ 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18786
+ }>>, Schema.toCodecJson<Schema.Struct<{
18774
18787
  readonly agent: Schema.Struct<{
18775
18788
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18776
18789
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -18778,31 +18791,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18778
18791
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18779
18792
  readonly generation: Schema.Int;
18780
18793
  readonly turnedOff: Schema.Boolean;
18781
- readonly addedAt: Schema.DateTimeUtcFromMillis;
18782
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18783
- 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">]>;
18784
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18785
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18786
- limit: Schema.optionalKey<Schema.Int>;
18787
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18788
- readonly agents: Schema.$Array<Schema.Struct<{
18789
- readonly agent: Schema.Struct<{
18790
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18791
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18792
- }>;
18793
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18794
- readonly generation: Schema.Int;
18795
- readonly turnedOff: Schema.Boolean;
18796
- readonly addedAt: Schema.DateTimeUtcFromMillis;
18797
- }>>;
18798
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18799
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18794
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
18800
18795
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18801
- }>>, never, Schema.toCodecJson<Schema.Struct<{
18802
- readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18803
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18804
- 'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
18805
- }>>, Schema.toCodecJson<Schema.Struct<{
18796
+ agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18797
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
18806
18798
  readonly agent: Schema.Struct<{
18807
18799
  readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18808
18800
  readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
@@ -18810,7 +18802,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18810
18802
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18811
18803
  readonly generation: Schema.Int;
18812
18804
  readonly turnedOff: Schema.Boolean;
18813
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
18805
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
18806
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
18814
18807
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18815
18808
  agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
18816
18809
  }>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
@@ -18836,7 +18829,24 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
18836
18829
  readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18837
18830
  readonly generation: Schema.Int;
18838
18831
  readonly turnedOff: Schema.Boolean;
18839
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
18832
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
18833
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18834
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18835
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18836
+ limit: Schema.optionalKey<Schema.Int>;
18837
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18838
+ readonly agents: Schema.$Array<Schema.Struct<{
18839
+ readonly agent: Schema.Struct<{
18840
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18841
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18842
+ }>;
18843
+ readonly handle: Schema.brand<Schema.String, "AgentHandle">;
18844
+ readonly generation: Schema.Int;
18845
+ readonly turnedOff: Schema.Boolean;
18846
+ readonly addedAt: Schema.DateTimeUtcFromMillis;
18847
+ }>>;
18848
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18849
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
18840
18850
  /**
18841
18851
  * An owner's agents (layer 1): an organization's members, or a person themselves, read them and
18842
18852
  * turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
@@ -18889,34 +18899,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
18889
18899
  * decides. People only, by approval.
18890
18900
  */
18891
18901
  declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
18892
- declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18893
- owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18894
- }>>, Schema.toCodecStringTree<Schema.Struct<{
18895
- after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18896
- limit: Schema.optionalKey<Schema.Int>;
18897
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18898
- readonly disables: Schema.$Array<Schema.Struct<{
18899
- readonly agent: Schema.Struct<{
18900
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18901
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18902
- }>;
18903
- readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18904
- readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
18905
- readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
18906
- readonly kind: Schema.Literal<"person">;
18907
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18908
- }>, Schema.Struct<{
18909
- readonly kind: Schema.Literal<"agent">;
18910
- readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18911
- readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18912
- }>, Schema.Struct<{
18913
- readonly kind: Schema.Literal<"ref0">;
18914
- 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")[]>;
18915
- }>]>;
18916
- readonly disabledAt: Schema.DateTimeUtcFromMillis;
18917
- }>>;
18918
- readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18919
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18902
+ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18920
18903
  owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18921
18904
  }>>, never, Schema.toCodecJson<Schema.Struct<{
18922
18905
  readonly agent: Schema.Struct<{
@@ -18948,7 +18931,34 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
18948
18931
  }>;
18949
18932
  readonly targetGeneration: Schema.Int;
18950
18933
  readonly turnedOff: Schema.Boolean;
18951
- }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
18934
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
18935
+ owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
18936
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
18937
+ after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18938
+ limit: Schema.optionalKey<Schema.Int>;
18939
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
18940
+ readonly disables: Schema.$Array<Schema.Struct<{
18941
+ readonly agent: Schema.Struct<{
18942
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18943
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18944
+ }>;
18945
+ readonly owner: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
18946
+ readonly handle: Schema.optionalKey<Schema.brand<Schema.String, "AgentHandle">>;
18947
+ readonly disabledBy: Schema.Union<readonly [Schema.Struct<{
18948
+ readonly kind: Schema.Literal<"person">;
18949
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
18950
+ }>, Schema.Struct<{
18951
+ readonly kind: Schema.Literal<"agent">;
18952
+ readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
18953
+ readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
18954
+ }>, Schema.Struct<{
18955
+ readonly kind: Schema.Literal<"ref0">;
18956
+ readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
18957
+ }>]>;
18958
+ readonly disabledAt: Schema.DateTimeUtcFromMillis;
18959
+ }>>;
18960
+ readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
18961
+ }>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
18952
18962
  /**
18953
18963
  * Agents of other owners an organization's admin turns off there (layer 1), such as a member's
18954
18964
  * own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
@@ -29197,4 +29207,4 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
29197
29207
  type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
29198
29208
  //#endregion
29199
29209
  export { MirrorEntry as $, WorkflowAskClosed as $t, ConnectionCallAnswer as A, WorkflowPreview as An, ScopeAction as At, EventRunInput as B, commandLine as Bn, StatementView as Bt, ConnectAgent as C, WorkflowOwn as Cn, SandboxExec as Ct, ConnectOptions as D, WorkflowPasskeyRead as Dn, SandboxPush as Dt, ConnectFolderOption as E, WorkflowPasskeyEnded as En, SandboxOpenAnswer as Et, ConsentAsked as F, WorkflowStartState as Fn, SignInDestination as Ft, GetIssueInput as G, isRef0Path as Gn, TrackThread as Gt, ForkAnswer as H, encodeSecret as Hn, ThreadStage as Ht, ConsentClient as I, WorkflowText as In, SignedIn as It, LiveTicket as J, repoNameKey as Jn, Welcome as Jt, Harness as K, liveSocketUrl as Kn, TypedApprovalCode as Kt, ConsentProject as L, WorkflowThreadStart as Ln, SocketUrl as Lt, ConnectionKind as M, WorkflowPullRequestOpen as Mn, SentryOrg as Mt, ConnectionName as N, WorkflowRequestRefusal as Nn, SentryRegion as Nt, ConnectableAgent as O, WorkflowPasskeyState as On, SandboxPushAnswer as Ot, ConnectionView as P, WorkflowStartEnded as Pn, SentryToken as Pt, MirrorChoice as Q, WorkflowAsk as Qt, CredentialView as R, WorkflowTrigger as Rn, StartActor as Rt, ClientGranted as S, WorkflowFilters as Sn, RequestFolder as St, ConnectFolderChoices as T, WorkflowPasskeyAsked as Tn, SandboxOpen as Tt, ForkCreate as U, hookTokenPrefix as Un, TrackClosed as Ut, FoldersConnected as V, connectEndpoint as Vn, ThreadId as Vt, GateOwn as W, hookUrl as Wn, TrackSession as Wt, LiveTrackName as X, WorkflowActionAnswer as Xt, LiveTicketRequest as Y, surfaceOf as Yn, WorkflowAction as Yt, MachineConnected as Z, WorkflowAnswerer as Zt, CheckOwn as _, WorkflowCheckStatesAnswer as _n, ReadEvent as _t, Api as a, WorkflowCallRefused as an, OwnerTrackMessage as at, CheckTreeEntry as b, WorkflowConnections as bn, RepoUrl as bt, ApprovalId as c, WorkflowCheckRefusal as cn, PasskeyCreationOptions as ct, ApprovalView as d, WorkflowCheckResultsAnswer as dn, PasskeyRequestOptions as dt, WorkflowCall as en, MirrorView as et, AttachmentFailed as f, WorkflowCheckRun as fn, PreviewEcho as ft, CheckOn as g, WorkflowCheckStates as gn, RanOf as gt, ChangeAuthor as h, WorkflowCheckStartAnswer as hn, ProjectTrackMessage as ht, AgentView as i, WorkflowCallRefusal as in, OwnerThreadView as it, ConnectionChanged as j, WorkflowPullRequestAnswer as jn, SecretHash as jt, ConnectionCall as k, WorkflowPermissions as kn, SandboxSize as kt, ApprovalPreview as l, WorkflowCheckRefused as ln, PasskeyFrom as lt, Authorization as m, WorkflowCheckStart as mn, ProjectName as mt, AgentPermissionChoice as n, WorkflowCallEnded as nn, OwnerName as nt, ApiOrigin as o, WorkflowCalledState as on, PasskeyAsserted as ot, AttachmentRequestView as p, WorkflowCheckRunEnded as pn, PreviewUnavailable as pt, ImportFailure as q, projectParts as qn, VersionFile as qt, AgentPermissionSetting as r, WorkflowCallInput as rn, OwnerThreadPage as rt, ApprovalAnswer as s, WorkflowCalledStateAnswer as sn, PasskeyCreated as st, AgentHandle as t, WorkflowCallAnswer as tn, OwnerId as tt, ApprovalState as u, WorkflowCheckResults as un, PasskeyRefusal as ut, CheckRunError as v, WorkflowCheckWhere as vn, Ref0Owned as vt, ConnectChosen as w, WorkflowPasskeyAsk as wn, SandboxExecAnswer as wt, ClientAccess as x, WorkflowEvent as xn, RepoView as xt, CheckRunParams as y, WorkflowComment as yn, RepoName as yt, EndpointName as z, WrittenProject as zn, StartRun as zt };
29200
- //# sourceMappingURL=index-Vb8-1Zk-.d.mts.map
29210
+ //# sourceMappingURL=index-Bm4HWooV.d.mts.map