@ref0/sdk 0.8.0 → 0.9.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.
|
@@ -2207,7 +2207,19 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
|
|
|
2207
2207
|
* what it came to with the approval's secret. Its person answers on their own page, by its code.
|
|
2208
2208
|
*/
|
|
2209
2209
|
declare class TerminalApprovalsGroup extends TerminalApprovalsGroup_base {}
|
|
2210
|
-
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2210
|
+
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
2211
|
+
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">]>;
|
|
2212
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2213
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2214
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2215
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2216
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2217
|
+
readonly credential: Schema.Struct<{
|
|
2218
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2219
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2220
|
+
}>;
|
|
2221
|
+
readonly childrenRevoked: Schema.Int;
|
|
2222
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
|
|
2211
2223
|
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">]>;
|
|
2212
2224
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2213
2225
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -2224,19 +2236,7 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
|
|
|
2224
2236
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
2225
2237
|
}>>;
|
|
2226
2238
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2227
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never
|
|
2228
|
-
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">]>;
|
|
2229
|
-
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2230
|
-
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2231
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2232
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2233
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2234
|
-
readonly credential: Schema.Struct<{
|
|
2235
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2236
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2237
|
-
}>;
|
|
2238
|
-
readonly childrenRevoked: Schema.Int;
|
|
2239
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never>, false>;
|
|
2239
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
2240
2240
|
/**
|
|
2241
2241
|
* An agent's live attachments, by approval: listed, every one to an admin and their own to anyone
|
|
2242
2242
|
* else; and one of the caller's own disconnected, revoking its credential, which the Worker checks
|
|
@@ -2370,7 +2370,24 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2370
2370
|
* confirming it saved the grant, or aborting, with its collecting secret.
|
|
2371
2371
|
*/
|
|
2372
2372
|
declare class MachineAttachmentsGroup extends MachineAttachmentsGroup_base {}
|
|
2373
|
-
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2373
|
+
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
|
|
2374
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2375
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2376
|
+
readonly state: Schema.Literal<"waiting">;
|
|
2377
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2378
|
+
}>, Schema.Struct<{
|
|
2379
|
+
readonly state: Schema.Literal<"approved">;
|
|
2380
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2381
|
+
}>, Schema.Struct<{
|
|
2382
|
+
readonly state: Schema.Literal<"refused">;
|
|
2383
|
+
}>, Schema.Struct<{
|
|
2384
|
+
readonly state: Schema.Literal<"expired">;
|
|
2385
|
+
}>, Schema.Struct<{
|
|
2386
|
+
readonly status: Schema.Int;
|
|
2387
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2388
|
+
readonly state: Schema.Literal<"ran">;
|
|
2389
|
+
readonly endpoint: Schema.String;
|
|
2390
|
+
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/approvals", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2374
2391
|
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
2375
2392
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2376
2393
|
readonly says: Schema.String;
|
|
@@ -2623,7 +2640,98 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2623
2640
|
readonly state: Schema.String;
|
|
2624
2641
|
}>>;
|
|
2625
2642
|
}>>;
|
|
2626
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2643
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2644
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2645
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2646
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2647
|
+
readonly folders: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2648
|
+
readonly path: Schema.String;
|
|
2649
|
+
readonly excluded: Schema.Literal<true>;
|
|
2650
|
+
}>, Schema.Struct<{
|
|
2651
|
+
readonly path: Schema.String;
|
|
2652
|
+
readonly agent: Schema.Union<readonly [Schema.Struct<{
|
|
2653
|
+
readonly kind: Schema.Literal<"existing">;
|
|
2654
|
+
readonly agent: Schema.Struct<{
|
|
2655
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2656
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2657
|
+
}>;
|
|
2658
|
+
}>, Schema.Struct<{
|
|
2659
|
+
readonly kind: Schema.Literal<"new">;
|
|
2660
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2661
|
+
}>]>;
|
|
2662
|
+
}>]>>>;
|
|
2663
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2664
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2665
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2666
|
+
readonly challenge: Schema.String;
|
|
2667
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2668
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2669
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2670
|
+
readonly id: Schema.String;
|
|
2671
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2672
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2673
|
+
}>>>;
|
|
2674
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2675
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2676
|
+
}>, Schema.Struct<{
|
|
2677
|
+
readonly request: Schema.Struct<{
|
|
2678
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2679
|
+
readonly machineName: Schema.String;
|
|
2680
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2681
|
+
readonly path: Schema.String;
|
|
2682
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2683
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2684
|
+
}>>;
|
|
2685
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2686
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2687
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2688
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2689
|
+
readonly port: Schema.Int;
|
|
2690
|
+
readonly state: Schema.String;
|
|
2691
|
+
}>>;
|
|
2692
|
+
}>;
|
|
2693
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
2694
|
+
readonly agent: Schema.Struct<{
|
|
2695
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2696
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2697
|
+
}>;
|
|
2698
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2699
|
+
}>>;
|
|
2700
|
+
readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2701
|
+
readonly path: Schema.String;
|
|
2702
|
+
readonly excluded: Schema.Literal<true>;
|
|
2703
|
+
}>, Schema.Struct<{
|
|
2704
|
+
readonly path: Schema.String;
|
|
2705
|
+
readonly connect: Schema.Struct<{
|
|
2706
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2707
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2708
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2709
|
+
}>>;
|
|
2710
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2711
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2712
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2713
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2714
|
+
}>>;
|
|
2715
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2716
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2717
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
2718
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2719
|
+
}>>;
|
|
2720
|
+
}>;
|
|
2721
|
+
}>]>>;
|
|
2722
|
+
readonly passkey: Schema.Struct<{
|
|
2723
|
+
readonly challenge: Schema.String;
|
|
2724
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2725
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2726
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2727
|
+
readonly id: Schema.String;
|
|
2728
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2729
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2730
|
+
}>>>;
|
|
2731
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2732
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2733
|
+
}>;
|
|
2734
|
+
}>]>>, 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<{
|
|
2627
2735
|
readonly code: Schema.String;
|
|
2628
2736
|
}>, Schema.Struct<{
|
|
2629
2737
|
readonly link: Schema.String;
|
|
@@ -2854,115 +2962,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2854
2962
|
readonly port: Schema.Int;
|
|
2855
2963
|
readonly state: Schema.String;
|
|
2856
2964
|
}>>;
|
|
2857
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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<{
|
|
2965
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
2966
2966
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2967
2967
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2968
2968
|
readonly answer: Schema.Literal<"yes">;
|
|
@@ -3076,74 +3076,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3076
3076
|
readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
|
|
3077
3077
|
}>>;
|
|
3078
3078
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3079
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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<{
|
|
3115
|
-
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3116
|
-
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3117
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3118
|
-
readonly turns: Schema.Int;
|
|
3119
|
-
readonly unknownTurns: Schema.Int;
|
|
3120
|
-
readonly models: Schema.$Array<Schema.Struct<{
|
|
3121
|
-
readonly model: Schema.String;
|
|
3122
|
-
readonly input: Schema.Int;
|
|
3123
|
-
readonly output: Schema.Int;
|
|
3124
|
-
readonly cacheWrite: Schema.Int;
|
|
3125
|
-
readonly cacheRead: Schema.Int;
|
|
3126
|
-
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3127
|
-
}>>;
|
|
3128
|
-
readonly cost: Schema.Finite;
|
|
3129
|
-
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3130
|
-
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3131
|
-
readonly harnesses: Schema.$Array<Schema.Struct<{
|
|
3132
|
-
readonly turns: Schema.Int;
|
|
3133
|
-
readonly unknownTurns: Schema.Int;
|
|
3134
|
-
readonly models: Schema.$Array<Schema.Struct<{
|
|
3135
|
-
readonly model: Schema.String;
|
|
3136
|
-
readonly input: Schema.Int;
|
|
3137
|
-
readonly output: Schema.Int;
|
|
3138
|
-
readonly cacheWrite: Schema.Int;
|
|
3139
|
-
readonly cacheRead: Schema.Int;
|
|
3140
|
-
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3141
|
-
}>>;
|
|
3142
|
-
readonly cost: Schema.Finite;
|
|
3143
|
-
readonly harness: Schema.String;
|
|
3144
|
-
}>>;
|
|
3145
|
-
readonly pricesAsOf: Schema.String;
|
|
3146
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3079
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3147
3080
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3148
3081
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3149
3082
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -3184,7 +3117,74 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3184
3117
|
readonly bytes: Schema.Int;
|
|
3185
3118
|
}>>>;
|
|
3186
3119
|
}>>;
|
|
3187
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never
|
|
3120
|
+
}>>, 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<{
|
|
3121
|
+
readonly mirrors: Schema.$Array<Schema.Struct<{
|
|
3122
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3123
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3124
|
+
readonly ownerName: Schema.brand<Schema.String, "OwnerName">;
|
|
3125
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
3126
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
3127
|
+
readonly kind: Schema.Literal<"none">;
|
|
3128
|
+
}>, Schema.Struct<{
|
|
3129
|
+
readonly kind: Schema.Literal<"github">;
|
|
3130
|
+
readonly branch: Schema.String;
|
|
3131
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
3132
|
+
readonly state: Schema.Literal<"on">;
|
|
3133
|
+
}>, Schema.Struct<{
|
|
3134
|
+
readonly state: Schema.Literal<"paused">;
|
|
3135
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
3136
|
+
readonly why: Schema.Literal<"diverged">;
|
|
3137
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
3138
|
+
}>, Schema.Struct<{
|
|
3139
|
+
readonly why: Schema.Literal<"refused">;
|
|
3140
|
+
readonly said: Schema.String;
|
|
3141
|
+
}>, Schema.Struct<{
|
|
3142
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
3143
|
+
}>]>;
|
|
3144
|
+
}>, Schema.Struct<{
|
|
3145
|
+
readonly state: Schema.Literal<"off">;
|
|
3146
|
+
}>]>;
|
|
3147
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
3148
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3149
|
+
}>]>;
|
|
3150
|
+
}>>;
|
|
3151
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3152
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3153
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3154
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3155
|
+
readonly turns: Schema.Int;
|
|
3156
|
+
readonly unknownTurns: Schema.Int;
|
|
3157
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3158
|
+
readonly model: Schema.String;
|
|
3159
|
+
readonly input: Schema.Int;
|
|
3160
|
+
readonly output: Schema.Int;
|
|
3161
|
+
readonly cacheWrite: Schema.Int;
|
|
3162
|
+
readonly cacheRead: Schema.Int;
|
|
3163
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3164
|
+
}>>;
|
|
3165
|
+
readonly cost: Schema.Finite;
|
|
3166
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3167
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3168
|
+
readonly harnesses: Schema.$Array<Schema.Struct<{
|
|
3169
|
+
readonly turns: Schema.Int;
|
|
3170
|
+
readonly unknownTurns: Schema.Int;
|
|
3171
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3172
|
+
readonly model: Schema.String;
|
|
3173
|
+
readonly input: Schema.Int;
|
|
3174
|
+
readonly output: Schema.Int;
|
|
3175
|
+
readonly cacheWrite: Schema.Int;
|
|
3176
|
+
readonly cacheRead: Schema.Int;
|
|
3177
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3178
|
+
}>>;
|
|
3179
|
+
readonly cost: Schema.Finite;
|
|
3180
|
+
readonly harness: Schema.String;
|
|
3181
|
+
}>>;
|
|
3182
|
+
readonly pricesAsOf: Schema.String;
|
|
3183
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3184
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3185
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3186
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3187
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
3188
3188
|
declare class MeGroup extends MeGroup_base {}
|
|
3189
3189
|
declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
|
|
3190
3190
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
@@ -12680,239 +12680,18 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
|
|
|
12680
12680
|
* the stage as filters. A project the reader can't see answers as one that isn't there.
|
|
12681
12681
|
*/
|
|
12682
12682
|
declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
|
|
12683
|
-
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"
|
|
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">]>;
|
|
12685
|
-
}>>, 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<{
|
|
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">]>;
|
|
12707
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
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">>;
|
|
12727
|
-
}>>, 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<{
|
|
12683
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
12766
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">]>;
|
|
12767
12685
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12686
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12768
12687
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12769
|
-
readonly
|
|
12770
|
-
readonly version: Schema.Int
|
|
12771
|
-
readonly
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
readonly
|
|
12775
|
-
|
|
12776
|
-
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
12777
|
-
}>;
|
|
12778
|
-
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
12779
|
-
readonly sequence: Schema.Int;
|
|
12780
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12781
|
-
}>>;
|
|
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
|
-
}>>;
|
|
12797
|
-
}>>;
|
|
12798
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">]>;
|
|
12800
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
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<{
|
|
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">]>;
|
|
12805
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12806
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
12807
|
-
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
12808
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12809
|
-
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
12810
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12811
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
12812
|
-
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
12813
|
-
readonly head: Schema.Struct<{
|
|
12814
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12815
|
-
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
12816
|
-
readonly branch: Schema.String;
|
|
12817
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12818
|
-
readonly generation: Schema.Int;
|
|
12819
|
-
}>;
|
|
12820
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
12821
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
12822
|
-
readonly agent: Schema.Struct<{
|
|
12823
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12824
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12825
|
-
}>;
|
|
12826
|
-
}>, Schema.Struct<{
|
|
12827
|
-
readonly workflow: Schema.Struct<{
|
|
12828
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
12829
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
12830
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
12831
|
-
readonly step: Schema.Struct<{
|
|
12832
|
-
readonly name: Schema.String;
|
|
12833
|
-
readonly count: Schema.Int;
|
|
12834
|
-
readonly attempt: Schema.Int;
|
|
12835
|
-
}>;
|
|
12836
|
-
}>;
|
|
12837
|
-
}>]>;
|
|
12838
|
-
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
12839
|
-
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
12840
|
-
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
12841
|
-
readonly repair: Schema.Boolean;
|
|
12842
|
-
readonly current: Schema.Struct<{
|
|
12843
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12844
|
-
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
12845
|
-
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
12846
|
-
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
12847
|
-
readonly intentRevision: Schema.Int;
|
|
12848
|
-
readonly generation: Schema.Int;
|
|
12849
|
-
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
12850
|
-
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
12851
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
12852
|
-
}>;
|
|
12853
|
-
readonly threadNumber: Schema.Int;
|
|
12854
|
-
}>>;
|
|
12855
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">]>;
|
|
12857
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12858
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12859
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
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
|
-
}>;
|
|
12876
|
-
}>, Schema.Struct<{
|
|
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"]>;
|
|
12901
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
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<{
|
|
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">]>;
|
|
12906
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12907
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12908
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12909
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12910
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12911
|
-
readonly state: Schema.Literals<readonly ["pending", "answered", "failed"]>;
|
|
12912
|
-
readonly why: Schema.NullOr<Schema.String>;
|
|
12913
|
-
readonly needs: Schema.$Array<Schema.Struct<{
|
|
12914
|
-
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
12915
|
-
readonly kind: Schema.Literal<"checks">;
|
|
12688
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
12689
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
12690
|
+
readonly state: Schema.Literals<readonly ["pending", "answered", "failed"]>;
|
|
12691
|
+
readonly why: Schema.NullOr<Schema.String>;
|
|
12692
|
+
readonly needs: Schema.$Array<Schema.Struct<{
|
|
12693
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
12694
|
+
readonly kind: Schema.Literal<"checks">;
|
|
12916
12695
|
}>, Schema.Struct<{
|
|
12917
12696
|
readonly kind: Schema.Literal<"check">;
|
|
12918
12697
|
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
@@ -13513,81 +13292,110 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13513
13292
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13514
13293
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13515
13294
|
}>]>>>;
|
|
13516
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13295
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13517
13296
|
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
13297
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
readonly
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
readonly kind: Schema.Literal<"
|
|
13525
|
-
readonly name: Schema.brand<Schema.String, "
|
|
13526
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13527
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13528
|
-
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13529
|
-
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
13530
|
-
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
13531
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
13532
|
-
}>, Schema.Struct<{
|
|
13533
|
-
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13534
|
-
}>]>;
|
|
13535
|
-
}>>;
|
|
13536
|
-
}>, Schema.Struct<{
|
|
13537
|
-
readonly kind: Schema.Literal<"review">;
|
|
13538
|
-
}>, Schema.Struct<{
|
|
13539
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
13540
|
-
}>, Schema.Struct<{
|
|
13541
|
-
readonly kind: Schema.Literal<"admin">;
|
|
13298
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13299
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13300
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13301
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13302
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13303
|
+
readonly kind: Schema.Literal<"project">;
|
|
13304
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13542
13305
|
}>, Schema.Struct<{
|
|
13543
|
-
readonly kind: Schema.Literal<"
|
|
13544
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13306
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13545
13307
|
}>]>;
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
readonly
|
|
13550
|
-
|
|
13551
|
-
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13552
|
-
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13553
|
-
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13554
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
|
|
13308
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13309
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13310
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13311
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13312
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
|
|
13555
13313
|
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">]>;
|
|
13556
13314
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13557
|
-
|
|
13558
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13559
|
-
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13315
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13560
13316
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
readonly
|
|
13565
|
-
readonly
|
|
13566
|
-
readonly
|
|
13567
|
-
readonly
|
|
13568
|
-
|
|
13317
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13318
|
+
line: Schema.Int;
|
|
13319
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13320
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13321
|
+
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13322
|
+
readonly line: Schema.Int;
|
|
13323
|
+
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13324
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13325
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13326
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13327
|
+
readonly threadNumber: Schema.Int;
|
|
13328
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13329
|
+
readonly turn: Schema.Int;
|
|
13330
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13331
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
13332
|
+
}>>;
|
|
13333
|
+
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13334
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13335
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13336
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13337
|
+
readonly step: Schema.Struct<{
|
|
13338
|
+
readonly name: Schema.String;
|
|
13339
|
+
readonly count: Schema.Int;
|
|
13340
|
+
readonly attempt: Schema.Int;
|
|
13341
|
+
}>;
|
|
13342
|
+
}>>;
|
|
13343
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13344
|
+
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">]>;
|
|
13345
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13346
|
+
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13347
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
13348
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13349
|
+
readonly repos: Schema.$Array<Schema.Struct<{
|
|
13350
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13351
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13352
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13353
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13354
|
+
readonly kind: Schema.Literal<"project">;
|
|
13355
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13356
|
+
}>, Schema.Struct<{
|
|
13357
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13358
|
+
}>]>;
|
|
13359
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13360
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13361
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13362
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13363
|
+
}>>;
|
|
13364
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13365
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13569
13366
|
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
13367
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13571
13368
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13572
|
-
readonly
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
readonly
|
|
13369
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13370
|
+
readonly version: Schema.Int;
|
|
13371
|
+
readonly baseline: Schema.Struct<{
|
|
13372
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13373
|
+
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
13374
|
+
readonly sequence: Schema.Int;
|
|
13375
|
+
readonly depth: Schema.Int;
|
|
13376
|
+
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13576
13377
|
}>;
|
|
13577
|
-
readonly
|
|
13578
|
-
readonly
|
|
13579
|
-
readonly commit: Schema.
|
|
13580
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13378
|
+
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
13379
|
+
readonly sequence: Schema.Int;
|
|
13380
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13581
13381
|
}>>;
|
|
13582
|
-
readonly
|
|
13583
|
-
readonly
|
|
13584
|
-
readonly
|
|
13585
|
-
readonly
|
|
13586
|
-
readonly
|
|
13587
|
-
readonly
|
|
13588
|
-
|
|
13382
|
+
readonly packs: Schema.$Array<Schema.Struct<{
|
|
13383
|
+
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
13384
|
+
readonly key: Schema.String;
|
|
13385
|
+
readonly sha256: Schema.String;
|
|
13386
|
+
readonly bytes: Schema.Int;
|
|
13387
|
+
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
13388
|
+
readonly first: Schema.Int;
|
|
13389
|
+
readonly last: Schema.Int;
|
|
13390
|
+
}>>;
|
|
13391
|
+
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
13392
|
+
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
13393
|
+
readonly roots: Schema.$Array<Schema.Struct<{
|
|
13394
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13395
|
+
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13396
|
+
}>>;
|
|
13589
13397
|
}>>;
|
|
13590
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13398
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13591
13399
|
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
13400
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13593
13401
|
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -13613,144 +13421,336 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13613
13421
|
}>]>;
|
|
13614
13422
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13615
13423
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13616
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13424
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13617
13425
|
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">]>;
|
|
13618
13426
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13619
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13620
|
-
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
13621
13427
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13622
|
-
|
|
13623
|
-
}>>, Schema.toCodecJson<
|
|
13624
|
-
readonly
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
readonly
|
|
13628
|
-
|
|
13629
|
-
readonly
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
readonly
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13428
|
+
key: Schema.String;
|
|
13429
|
+
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13430
|
+
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">]>;
|
|
13431
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13432
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13433
|
+
readonly active: Schema.Struct<{
|
|
13434
|
+
readonly revision: Schema.Int;
|
|
13435
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13436
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13437
|
+
}>;
|
|
13438
|
+
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13439
|
+
readonly revision: Schema.Int;
|
|
13440
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13441
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13442
|
+
}>>;
|
|
13443
|
+
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13444
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13445
|
+
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13446
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13447
|
+
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
13448
|
+
readonly gate: Schema.Int;
|
|
13449
|
+
readonly since: Schema.Int;
|
|
13450
|
+
}>>;
|
|
13451
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13452
|
+
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">]>;
|
|
13453
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13454
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13455
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13456
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13457
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13458
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
13459
|
+
readonly head: Schema.Struct<{
|
|
13460
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13461
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
13462
|
+
readonly branch: Schema.String;
|
|
13463
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13464
|
+
readonly generation: Schema.Int;
|
|
13465
|
+
}>;
|
|
13466
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
13467
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13468
|
+
readonly agent: Schema.Struct<{
|
|
13469
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13470
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13471
|
+
}>;
|
|
13472
|
+
}>, Schema.Struct<{
|
|
13473
|
+
readonly workflow: Schema.Struct<{
|
|
13474
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13475
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13476
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13477
|
+
readonly step: Schema.Struct<{
|
|
13478
|
+
readonly name: Schema.String;
|
|
13479
|
+
readonly count: Schema.Int;
|
|
13480
|
+
readonly attempt: Schema.Int;
|
|
13481
|
+
}>;
|
|
13482
|
+
}>;
|
|
13483
|
+
}>]>;
|
|
13484
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
13485
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
13486
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
13487
|
+
readonly repair: Schema.Boolean;
|
|
13488
|
+
readonly current: Schema.Struct<{
|
|
13489
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
13490
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
13491
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13492
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
13493
|
+
readonly intentRevision: Schema.Int;
|
|
13494
|
+
readonly generation: Schema.Int;
|
|
13495
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
13496
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
13497
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13498
|
+
}>;
|
|
13499
|
+
readonly threadNumber: Schema.Int;
|
|
13500
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
13647
13501
|
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
13502
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13649
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13650
13503
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13651
|
-
|
|
13652
|
-
line: Schema.Int;
|
|
13504
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "merged", "closed"]>>;
|
|
13653
13505
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13654
|
-
readonly
|
|
13655
|
-
|
|
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<{
|
|
13506
|
+
readonly pullRequests: Schema.$Array<Schema.Struct<{
|
|
13507
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13660
13508
|
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13661
|
-
readonly
|
|
13662
|
-
readonly
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
readonly
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13509
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
13510
|
+
readonly head: Schema.Struct<{
|
|
13511
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13512
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
13513
|
+
readonly branch: Schema.String;
|
|
13514
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13515
|
+
readonly generation: Schema.Int;
|
|
13516
|
+
}>;
|
|
13517
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
13518
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13519
|
+
readonly agent: Schema.Struct<{
|
|
13520
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13521
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13522
|
+
}>;
|
|
13523
|
+
}>, Schema.Struct<{
|
|
13524
|
+
readonly workflow: Schema.Struct<{
|
|
13525
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13526
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13527
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13528
|
+
readonly step: Schema.Struct<{
|
|
13529
|
+
readonly name: Schema.String;
|
|
13530
|
+
readonly count: Schema.Int;
|
|
13531
|
+
readonly attempt: Schema.Int;
|
|
13532
|
+
}>;
|
|
13533
|
+
}>;
|
|
13534
|
+
}>]>;
|
|
13535
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
13536
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
13537
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
13538
|
+
readonly repair: Schema.Boolean;
|
|
13539
|
+
readonly current: Schema.Struct<{
|
|
13540
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
13541
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
13542
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13543
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
13544
|
+
readonly intentRevision: Schema.Int;
|
|
13545
|
+
readonly generation: Schema.Int;
|
|
13546
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
13547
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
13548
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13675
13549
|
}>;
|
|
13550
|
+
readonly threadNumber: Schema.Int;
|
|
13676
13551
|
}>>;
|
|
13677
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never
|
|
13678
|
-
/**
|
|
13679
|
-
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
13680
|
-
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
13681
|
-
*/
|
|
13682
|
-
declare class ReposGroup extends ReposGroup_base {}
|
|
13683
|
-
declare const PlansGroup_base: HttpApiGroup.HttpApiGroup<"plans", HttpApiEndpoint.HttpApiEndpoint<"comment", "POST", "/v1/projects/:owner/:project/threads/:number/plans/:version/comments", Schema.toCodecStringTree<Schema.Struct<{
|
|
13552
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13684
13553
|
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">]>;
|
|
13685
|
-
project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
13686
|
-
} & {
|
|
13687
|
-
number: Schema.Int;
|
|
13688
|
-
version: Schema.Int;
|
|
13689
13554
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13690
|
-
readonly
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13694
|
-
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
readonly
|
|
13555
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13556
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13557
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13558
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13559
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13560
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13561
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13562
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13563
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13564
|
+
readonly kind: Schema.Literal<"project">;
|
|
13565
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13700
13566
|
}>, Schema.Struct<{
|
|
13701
|
-
readonly kind: Schema.Literal<"
|
|
13567
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13702
13568
|
}>]>;
|
|
13703
|
-
readonly
|
|
13569
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13570
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13571
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13572
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13573
|
+
}>>, 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<{
|
|
13574
|
+
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">]>;
|
|
13575
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13576
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13577
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13578
|
+
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13704
13579
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13705
13580
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13706
13581
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13707
|
-
readonly
|
|
13708
|
-
readonly
|
|
13709
|
-
readonly
|
|
13710
|
-
readonly
|
|
13711
|
-
readonly kind: Schema.Literal<"
|
|
13712
|
-
readonly
|
|
13582
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13583
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13584
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13585
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13586
|
+
readonly kind: Schema.Literal<"project">;
|
|
13587
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13588
|
+
}>, Schema.Struct<{
|
|
13589
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13713
13590
|
}>]>;
|
|
13714
|
-
readonly
|
|
13715
|
-
|
|
13716
|
-
|
|
13591
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13592
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13593
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13594
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13595
|
+
}>>, 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<{
|
|
13596
|
+
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">]>;
|
|
13597
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13598
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13599
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13600
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
13601
|
+
readonly kind: Schema.Literal<"checks">;
|
|
13717
13602
|
}>, Schema.Struct<{
|
|
13718
|
-
readonly kind: Schema.Literal<"
|
|
13719
|
-
readonly
|
|
13720
|
-
readonly
|
|
13603
|
+
readonly kind: Schema.Literal<"check">;
|
|
13604
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13605
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13606
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13607
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13608
|
+
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
13609
|
+
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
13610
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
13611
|
+
}>, Schema.Struct<{
|
|
13612
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13613
|
+
}>]>;
|
|
13614
|
+
}>>;
|
|
13721
13615
|
}>, Schema.Struct<{
|
|
13722
|
-
readonly kind: Schema.Literal<"
|
|
13723
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13616
|
+
readonly kind: Schema.Literal<"review">;
|
|
13724
13617
|
}>, Schema.Struct<{
|
|
13725
|
-
readonly kind: Schema.Literal<"
|
|
13726
|
-
}>]>;
|
|
13727
|
-
readonly text: Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">;
|
|
13728
|
-
readonly author: Schema.Union<readonly [Schema.Struct<{
|
|
13729
|
-
readonly kind: Schema.Literal<"person">;
|
|
13730
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13618
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
13731
13619
|
}>, Schema.Struct<{
|
|
13732
|
-
readonly kind: Schema.Literal<"
|
|
13733
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13734
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13620
|
+
readonly kind: Schema.Literal<"admin">;
|
|
13735
13621
|
}>, Schema.Struct<{
|
|
13736
|
-
readonly kind: Schema.Literal<"
|
|
13737
|
-
readonly
|
|
13622
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13623
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13738
13624
|
}>]>;
|
|
13739
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13740
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ThreadNotFound | typeof ProjectNotReady | typeof PlanTextRefused | typeof PlanVersionNotFound | typeof CommentRecipientNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"comments", "GET", "/v1/projects/:owner/:project/threads/:number/plans/:version/comments", Schema.toCodecStringTree<Schema.Struct<{
|
|
13741
|
-
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">]>;
|
|
13742
|
-
project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
13743
|
-
} & {
|
|
13744
|
-
number: Schema.Int;
|
|
13745
|
-
version: Schema.Int;
|
|
13746
13625
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
readonly
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13626
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13627
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13628
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13629
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13630
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13631
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13632
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13633
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"removeNeeds", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs/remove", Schema.toCodecStringTree<Schema.Struct<{
|
|
13634
|
+
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">]>;
|
|
13635
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13636
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13637
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13638
|
+
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13639
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13640
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13641
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13642
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13643
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13644
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13645
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13646
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13647
|
+
}>>, 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<{
|
|
13648
|
+
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">]>;
|
|
13649
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13650
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13651
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
13652
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13653
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13654
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13655
|
+
readonly kind: Schema.Literal<"none">;
|
|
13656
|
+
}>, Schema.Struct<{
|
|
13657
|
+
readonly kind: Schema.Literal<"github">;
|
|
13658
|
+
readonly branch: Schema.String;
|
|
13659
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13660
|
+
readonly state: Schema.Literal<"on">;
|
|
13661
|
+
}>, Schema.Struct<{
|
|
13662
|
+
readonly state: Schema.Literal<"paused">;
|
|
13663
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13664
|
+
readonly why: Schema.Literal<"diverged">;
|
|
13665
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13666
|
+
}>, Schema.Struct<{
|
|
13667
|
+
readonly why: Schema.Literal<"refused">;
|
|
13668
|
+
readonly said: Schema.String;
|
|
13669
|
+
}>, Schema.Struct<{
|
|
13670
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
13671
|
+
}>]>;
|
|
13672
|
+
}>, Schema.Struct<{
|
|
13673
|
+
readonly state: Schema.Literal<"off">;
|
|
13674
|
+
}>]>;
|
|
13675
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13676
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13677
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never>, false>;
|
|
13678
|
+
/**
|
|
13679
|
+
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
13680
|
+
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
13681
|
+
*/
|
|
13682
|
+
declare class ReposGroup extends ReposGroup_base {}
|
|
13683
|
+
declare const PlansGroup_base: HttpApiGroup.HttpApiGroup<"plans", HttpApiEndpoint.HttpApiEndpoint<"comment", "POST", "/v1/projects/:owner/:project/threads/:number/plans/:version/comments", Schema.toCodecStringTree<Schema.Struct<{
|
|
13684
|
+
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">]>;
|
|
13685
|
+
project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
13686
|
+
} & {
|
|
13687
|
+
number: Schema.Int;
|
|
13688
|
+
version: Schema.Int;
|
|
13689
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13690
|
+
readonly to: Schema.Union<readonly [Schema.Struct<{
|
|
13691
|
+
readonly kind: Schema.Literal<"person">;
|
|
13692
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13693
|
+
}>, Schema.Struct<{
|
|
13694
|
+
readonly kind: Schema.Literal<"agent">;
|
|
13695
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13696
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13697
|
+
}>, Schema.Struct<{
|
|
13698
|
+
readonly kind: Schema.Literal<"session">;
|
|
13699
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13700
|
+
}>, Schema.Struct<{
|
|
13701
|
+
readonly kind: Schema.Literal<"thread">;
|
|
13702
|
+
}>]>;
|
|
13703
|
+
readonly text: Schema.String;
|
|
13704
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13705
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13706
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13707
|
+
readonly comment: Schema.brand<Schema.TemplateLiteral<readonly ["comment_", Schema.String]>, "CommentId">;
|
|
13708
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13709
|
+
readonly number: Schema.Int;
|
|
13710
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
13711
|
+
readonly kind: Schema.Literal<"plan">;
|
|
13712
|
+
readonly version: Schema.Int;
|
|
13713
|
+
}>]>;
|
|
13714
|
+
readonly to: Schema.Union<readonly [Schema.Struct<{
|
|
13715
|
+
readonly kind: Schema.Literal<"person">;
|
|
13716
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13717
|
+
}>, Schema.Struct<{
|
|
13718
|
+
readonly kind: Schema.Literal<"agent">;
|
|
13719
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13720
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13721
|
+
}>, Schema.Struct<{
|
|
13722
|
+
readonly kind: Schema.Literal<"session">;
|
|
13723
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13724
|
+
}>, Schema.Struct<{
|
|
13725
|
+
readonly kind: Schema.Literal<"thread">;
|
|
13726
|
+
}>]>;
|
|
13727
|
+
readonly text: Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">;
|
|
13728
|
+
readonly author: Schema.Union<readonly [Schema.Struct<{
|
|
13729
|
+
readonly kind: Schema.Literal<"person">;
|
|
13730
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
13731
|
+
}>, Schema.Struct<{
|
|
13732
|
+
readonly kind: Schema.Literal<"agent">;
|
|
13733
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13734
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13735
|
+
}>, Schema.Struct<{
|
|
13736
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
13737
|
+
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")[]>;
|
|
13738
|
+
}>]>;
|
|
13739
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13740
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ThreadNotFound | typeof ProjectNotReady | typeof PlanTextRefused | typeof PlanVersionNotFound | typeof CommentRecipientNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"comments", "GET", "/v1/projects/:owner/:project/threads/:number/plans/:version/comments", Schema.toCodecStringTree<Schema.Struct<{
|
|
13741
|
+
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">]>;
|
|
13742
|
+
project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
13743
|
+
} & {
|
|
13744
|
+
number: Schema.Int;
|
|
13745
|
+
version: Schema.Int;
|
|
13746
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13747
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["comment_", Schema.String]>, "CommentId">>;
|
|
13748
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
13749
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13750
|
+
readonly comments: Schema.$Array<Schema.Struct<{
|
|
13751
|
+
readonly comment: Schema.brand<Schema.TemplateLiteral<readonly ["comment_", Schema.String]>, "CommentId">;
|
|
13752
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13753
|
+
readonly number: Schema.Int;
|
|
13754
13754
|
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
13755
13755
|
readonly kind: Schema.Literal<"plan">;
|
|
13756
13756
|
readonly version: Schema.Int;
|
|
@@ -17301,23 +17301,418 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17301
17301
|
* person.
|
|
17302
17302
|
*/
|
|
17303
17303
|
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17304
|
-
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17304
|
+
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17305
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">]>;
|
|
17306
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">>;
|
|
17318
17307
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17319
|
-
|
|
17320
|
-
|
|
17308
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17309
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
17310
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17311
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17312
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17313
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17314
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17315
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17316
|
+
readonly rerun: Schema.Int;
|
|
17317
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17318
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17319
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17320
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17321
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17322
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17323
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17324
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17325
|
+
readonly kind: Schema.Literal<"person">;
|
|
17326
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17327
|
+
}>, Schema.Struct<{
|
|
17328
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17329
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17330
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17331
|
+
}>, Schema.Struct<{
|
|
17332
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17333
|
+
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")[]>;
|
|
17334
|
+
}>]>;
|
|
17335
|
+
readonly request: Schema.String;
|
|
17336
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17337
|
+
}>>;
|
|
17338
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17339
|
+
readonly attachment: Schema.Struct<{
|
|
17340
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17341
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17342
|
+
}>;
|
|
17343
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17344
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17345
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17346
|
+
}>>;
|
|
17347
|
+
}>>;
|
|
17348
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17349
|
+
readonly requests: Schema.Int;
|
|
17350
|
+
readonly omitted: Schema.Int;
|
|
17351
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17352
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17353
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17354
|
+
readonly step: Schema.String;
|
|
17355
|
+
readonly count: Schema.Int;
|
|
17356
|
+
readonly attempt: Schema.Int;
|
|
17357
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17358
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17359
|
+
readonly recovery: Schema.String;
|
|
17360
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17361
|
+
readonly url: Schema.String;
|
|
17362
|
+
}>>;
|
|
17363
|
+
readonly refusalsOmitted: Schema.Int;
|
|
17364
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17365
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17366
|
+
readonly step: Schema.String;
|
|
17367
|
+
readonly count: Schema.Int;
|
|
17368
|
+
readonly attempt: Schema.Int;
|
|
17369
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17370
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17371
|
+
readonly recovery: Schema.String;
|
|
17372
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17373
|
+
readonly url: Schema.String;
|
|
17374
|
+
}>>;
|
|
17375
|
+
readonly reportedOmitted: Schema.Int;
|
|
17376
|
+
}>>;
|
|
17377
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17378
|
+
readonly browses: Schema.Int;
|
|
17379
|
+
readonly closing: Schema.Int;
|
|
17380
|
+
readonly unconfirmed: Schema.Int;
|
|
17381
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17382
|
+
readonly unresolved: Schema.Int;
|
|
17383
|
+
readonly presumedExpired: Schema.Int;
|
|
17384
|
+
readonly browserMs: Schema.Int;
|
|
17385
|
+
readonly estimated: Schema.Boolean;
|
|
17386
|
+
}>>;
|
|
17387
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17388
|
+
}>, Schema.Struct<{
|
|
17389
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17390
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17391
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17392
|
+
readonly rerun: Schema.Int;
|
|
17393
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17394
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17395
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17396
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17397
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17398
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17399
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17400
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17401
|
+
readonly kind: Schema.Literal<"person">;
|
|
17402
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17403
|
+
}>, Schema.Struct<{
|
|
17404
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17405
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17406
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17407
|
+
}>, Schema.Struct<{
|
|
17408
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17409
|
+
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")[]>;
|
|
17410
|
+
}>]>;
|
|
17411
|
+
readonly request: Schema.String;
|
|
17412
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17413
|
+
}>>;
|
|
17414
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17415
|
+
readonly attachment: Schema.Struct<{
|
|
17416
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17417
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17418
|
+
}>;
|
|
17419
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17420
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17421
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17422
|
+
}>>;
|
|
17423
|
+
}>>;
|
|
17424
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17425
|
+
readonly requests: Schema.Int;
|
|
17426
|
+
readonly omitted: Schema.Int;
|
|
17427
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17428
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17429
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17430
|
+
readonly step: Schema.String;
|
|
17431
|
+
readonly count: Schema.Int;
|
|
17432
|
+
readonly attempt: Schema.Int;
|
|
17433
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17434
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17435
|
+
readonly recovery: Schema.String;
|
|
17436
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17437
|
+
readonly url: Schema.String;
|
|
17438
|
+
}>>;
|
|
17439
|
+
readonly refusalsOmitted: Schema.Int;
|
|
17440
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17441
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17442
|
+
readonly step: Schema.String;
|
|
17443
|
+
readonly count: Schema.Int;
|
|
17444
|
+
readonly attempt: Schema.Int;
|
|
17445
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17446
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17447
|
+
readonly recovery: Schema.String;
|
|
17448
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17449
|
+
readonly url: Schema.String;
|
|
17450
|
+
}>>;
|
|
17451
|
+
readonly reportedOmitted: Schema.Int;
|
|
17452
|
+
}>>;
|
|
17453
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17454
|
+
readonly browses: Schema.Int;
|
|
17455
|
+
readonly closing: Schema.Int;
|
|
17456
|
+
readonly unconfirmed: Schema.Int;
|
|
17457
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17458
|
+
readonly unresolved: Schema.Int;
|
|
17459
|
+
readonly presumedExpired: Schema.Int;
|
|
17460
|
+
readonly browserMs: Schema.Int;
|
|
17461
|
+
readonly estimated: Schema.Boolean;
|
|
17462
|
+
}>>;
|
|
17463
|
+
readonly state: Schema.Literal<"ended">;
|
|
17464
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17465
|
+
}>, Schema.Struct<{
|
|
17466
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17467
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17468
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17469
|
+
readonly rerun: Schema.Int;
|
|
17470
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17471
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17472
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17473
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17474
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17475
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17476
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17477
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17478
|
+
readonly kind: Schema.Literal<"person">;
|
|
17479
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17480
|
+
}>, Schema.Struct<{
|
|
17481
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17482
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17483
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17484
|
+
}>, Schema.Struct<{
|
|
17485
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
17486
|
+
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")[]>;
|
|
17487
|
+
}>]>;
|
|
17488
|
+
readonly request: Schema.String;
|
|
17489
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17490
|
+
}>>;
|
|
17491
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17492
|
+
readonly attachment: Schema.Struct<{
|
|
17493
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17494
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17495
|
+
}>;
|
|
17496
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17497
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17498
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17499
|
+
}>>;
|
|
17500
|
+
}>>;
|
|
17501
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17502
|
+
readonly requests: Schema.Int;
|
|
17503
|
+
readonly omitted: Schema.Int;
|
|
17504
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17505
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17506
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17507
|
+
readonly step: Schema.String;
|
|
17508
|
+
readonly count: Schema.Int;
|
|
17509
|
+
readonly attempt: Schema.Int;
|
|
17510
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17511
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17512
|
+
readonly recovery: Schema.String;
|
|
17513
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17514
|
+
readonly url: Schema.String;
|
|
17515
|
+
}>>;
|
|
17516
|
+
readonly refusalsOmitted: Schema.Int;
|
|
17517
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17518
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17519
|
+
readonly step: Schema.String;
|
|
17520
|
+
readonly count: Schema.Int;
|
|
17521
|
+
readonly attempt: Schema.Int;
|
|
17522
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17523
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17524
|
+
readonly recovery: Schema.String;
|
|
17525
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17526
|
+
readonly url: Schema.String;
|
|
17527
|
+
}>>;
|
|
17528
|
+
readonly reportedOmitted: Schema.Int;
|
|
17529
|
+
}>>;
|
|
17530
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17531
|
+
readonly browses: Schema.Int;
|
|
17532
|
+
readonly closing: Schema.Int;
|
|
17533
|
+
readonly unconfirmed: Schema.Int;
|
|
17534
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17535
|
+
readonly unresolved: Schema.Int;
|
|
17536
|
+
readonly presumedExpired: Schema.Int;
|
|
17537
|
+
readonly browserMs: Schema.Int;
|
|
17538
|
+
readonly estimated: Schema.Boolean;
|
|
17539
|
+
}>>;
|
|
17540
|
+
readonly state: Schema.Literal<"ended">;
|
|
17541
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17542
|
+
}>]>>;
|
|
17543
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17544
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17545
|
+
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">]>;
|
|
17546
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17547
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17548
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17549
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17550
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17551
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
17552
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
17553
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17554
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17555
|
+
readonly code: Schema.Struct<{
|
|
17556
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17557
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17558
|
+
}>;
|
|
17559
|
+
readonly timeoutSeconds: Schema.Int;
|
|
17560
|
+
readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17561
|
+
readonly compiled: Schema.Struct<{
|
|
17562
|
+
readonly entry: Schema.Struct<{
|
|
17563
|
+
readonly name: Schema.String;
|
|
17564
|
+
readonly module: Schema.String;
|
|
17565
|
+
readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17566
|
+
readonly files: Schema.$Array<Schema.String>;
|
|
17567
|
+
readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
17568
|
+
readonly sourceMap: Schema.optionalKey<Schema.String>;
|
|
17569
|
+
readonly reaches: Schema.optionalKey<Schema.Struct<{
|
|
17570
|
+
readonly tree: Schema.Boolean;
|
|
17571
|
+
readonly browser: Schema.Boolean;
|
|
17572
|
+
}>>;
|
|
17573
|
+
readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
17574
|
+
readonly name: Schema.String;
|
|
17575
|
+
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17576
|
+
readonly pin: Schema.String;
|
|
17577
|
+
readonly format: Schema.Int;
|
|
17578
|
+
}>>>;
|
|
17579
|
+
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17580
|
+
}>;
|
|
17581
|
+
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
17582
|
+
}>;
|
|
17583
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
17584
|
+
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">]>;
|
|
17585
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17586
|
+
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
17587
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17588
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17589
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
|
|
17590
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17591
|
+
readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
17592
|
+
readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
|
|
17593
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
17594
|
+
readonly eventId: Schema.Int;
|
|
17595
|
+
readonly timestamp: Schema.Finite;
|
|
17596
|
+
readonly type: Schema.String;
|
|
17597
|
+
readonly stepName: Schema.optionalKey<Schema.String>;
|
|
17598
|
+
readonly attempt: Schema.optionalKey<Schema.Int>;
|
|
17599
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
17600
|
+
readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
|
|
17601
|
+
readonly eventType: Schema.optionalKey<Schema.String>;
|
|
17602
|
+
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
17603
|
+
readonly name: Schema.String;
|
|
17604
|
+
readonly message: Schema.String;
|
|
17605
|
+
}>>;
|
|
17606
|
+
}>>;
|
|
17607
|
+
readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17608
|
+
readonly kind: Schema.Literal<"session">;
|
|
17609
|
+
readonly id: Schema.String;
|
|
17610
|
+
readonly at: Schema.Finite;
|
|
17611
|
+
readonly sandbox: Schema.String;
|
|
17612
|
+
readonly step: Schema.String;
|
|
17613
|
+
readonly attempt: Schema.Int;
|
|
17614
|
+
readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
|
|
17615
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
17616
|
+
readonly restoreMs: Schema.Finite;
|
|
17617
|
+
}>, Schema.Struct<{
|
|
17618
|
+
readonly kind: Schema.Literal<"command">;
|
|
17619
|
+
readonly id: Schema.String;
|
|
17620
|
+
readonly parent: Schema.String;
|
|
17621
|
+
readonly at: Schema.Finite;
|
|
17622
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
17623
|
+
readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
|
|
17624
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
17625
|
+
readonly durationMs: Schema.Finite;
|
|
17626
|
+
readonly stdoutCut: Schema.Boolean;
|
|
17627
|
+
readonly stderrCut: Schema.Boolean;
|
|
17628
|
+
}>, Schema.Struct<{
|
|
17629
|
+
readonly kind: Schema.Literal<"untraced">;
|
|
17630
|
+
readonly id: Schema.String;
|
|
17631
|
+
readonly parent: Schema.String;
|
|
17632
|
+
readonly at: Schema.Finite;
|
|
17633
|
+
readonly commands: Schema.Int;
|
|
17634
|
+
}>, Schema.Struct<{
|
|
17635
|
+
readonly kind: Schema.Literal<"serve">;
|
|
17636
|
+
readonly id: Schema.String;
|
|
17637
|
+
readonly parent: Schema.String;
|
|
17638
|
+
readonly at: Schema.Finite;
|
|
17639
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
17640
|
+
readonly port: Schema.Int;
|
|
17641
|
+
readonly host: Schema.String;
|
|
17642
|
+
readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
|
|
17643
|
+
readonly readyMs: Schema.optionalKey<Schema.Finite>;
|
|
17644
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
17645
|
+
readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
|
|
17646
|
+
}>, Schema.Struct<{
|
|
17647
|
+
readonly kind: Schema.Literal<"route">;
|
|
17648
|
+
readonly id: Schema.String;
|
|
17649
|
+
readonly parent: Schema.String;
|
|
17650
|
+
readonly at: Schema.Finite;
|
|
17651
|
+
readonly method: Schema.String;
|
|
17652
|
+
readonly path: Schema.String;
|
|
17653
|
+
readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
|
|
17654
|
+
readonly status: Schema.optionalKey<Schema.Int>;
|
|
17655
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
17656
|
+
readonly durationMs: Schema.Finite;
|
|
17657
|
+
readonly bytes: Schema.Int;
|
|
17658
|
+
}>, Schema.Struct<{
|
|
17659
|
+
readonly kind: Schema.Literal<"routes omitted">;
|
|
17660
|
+
readonly id: Schema.String;
|
|
17661
|
+
readonly parent: Schema.String;
|
|
17662
|
+
readonly at: Schema.Finite;
|
|
17663
|
+
readonly requests: Schema.Int;
|
|
17664
|
+
}>, Schema.Struct<{
|
|
17665
|
+
readonly kind: Schema.Literal<"route refusal">;
|
|
17666
|
+
readonly id: Schema.String;
|
|
17667
|
+
readonly parent: Schema.String;
|
|
17668
|
+
readonly at: Schema.Finite;
|
|
17669
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17670
|
+
readonly why: Schema.String;
|
|
17671
|
+
readonly url: Schema.String;
|
|
17672
|
+
}>, Schema.Struct<{
|
|
17673
|
+
readonly kind: Schema.Literal<"browser">;
|
|
17674
|
+
readonly id: Schema.String;
|
|
17675
|
+
readonly parent: Schema.String;
|
|
17676
|
+
readonly at: Schema.Finite;
|
|
17677
|
+
readonly browserSession: Schema.optionalKey<Schema.String>;
|
|
17678
|
+
readonly acquireMs: Schema.optionalKey<Schema.Finite>;
|
|
17679
|
+
readonly connects: Schema.Int;
|
|
17680
|
+
readonly closedAt: Schema.optionalKey<Schema.Finite>;
|
|
17681
|
+
readonly outcome: Schema.Literals<readonly ["closed", "unconfirmed", "unresolved", "failed", "unavailable"]>;
|
|
17682
|
+
readonly reported: Schema.Int;
|
|
17683
|
+
}>, Schema.Struct<{
|
|
17684
|
+
readonly kind: Schema.Literal<"build">;
|
|
17685
|
+
readonly id: Schema.String;
|
|
17686
|
+
readonly at: Schema.Finite;
|
|
17687
|
+
readonly build: Schema.Int;
|
|
17688
|
+
readonly key: Schema.String;
|
|
17689
|
+
readonly state: Schema.Literals<readonly ["queued", "starting", "building", "ready", "failed", "full", "unbegun"]>;
|
|
17690
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
17691
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
17692
|
+
}>, Schema.Struct<{
|
|
17693
|
+
readonly kind: Schema.Literal<"setup">;
|
|
17694
|
+
readonly id: Schema.String;
|
|
17695
|
+
readonly parent: Schema.String;
|
|
17696
|
+
readonly at: Schema.Finite;
|
|
17697
|
+
readonly argv: Schema.$Array<Schema.String>;
|
|
17698
|
+
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
17699
|
+
readonly durationMs: Schema.Finite;
|
|
17700
|
+
}>]>>;
|
|
17701
|
+
readonly logs: Schema.$Array<Schema.Struct<{
|
|
17702
|
+
readonly at: Schema.Finite;
|
|
17703
|
+
readonly level: Schema.String;
|
|
17704
|
+
readonly message: Schema.String;
|
|
17705
|
+
readonly span: Schema.optionalKey<Schema.String>;
|
|
17706
|
+
}>>;
|
|
17707
|
+
readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
|
|
17708
|
+
readonly more: Schema.Boolean;
|
|
17709
|
+
}>>, 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<{
|
|
17710
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17711
|
+
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">]>;
|
|
17712
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17713
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17714
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17715
|
+
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17321
17716
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17322
17717
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17323
17718
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -17385,13 +17780,31 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17385
17780
|
}>>;
|
|
17386
17781
|
}>>;
|
|
17387
17782
|
}>;
|
|
17388
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof
|
|
17783
|
+
}>]>>, 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<{
|
|
17389
17784
|
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17390
17785
|
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
17786
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17392
17787
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17393
17788
|
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17394
|
-
}>>, never, never, Schema.toCodecJson<Schema.
|
|
17789
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17790
|
+
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17791
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17792
|
+
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">]>;
|
|
17793
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17794
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17795
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17796
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17797
|
+
readonly kind: Schema.Literal<"main">;
|
|
17798
|
+
}>, Schema.Struct<{
|
|
17799
|
+
readonly kind: Schema.Literal<"thread">;
|
|
17800
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17801
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17802
|
+
}>]>;
|
|
17803
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17804
|
+
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17805
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17806
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17807
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17395
17808
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17396
17809
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17397
17810
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -17459,294 +17872,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17459
17872
|
}>>;
|
|
17460
17873
|
}>>;
|
|
17461
17874
|
}>;
|
|
17462
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof
|
|
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">;
|
|
17493
|
-
}>, Schema.Struct<{
|
|
17494
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17495
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17496
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17497
|
-
}>, Schema.Struct<{
|
|
17498
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17499
|
-
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")[]>;
|
|
17500
|
-
}>]>;
|
|
17501
|
-
readonly request: Schema.String;
|
|
17502
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17503
|
-
}>>;
|
|
17504
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17505
|
-
readonly attachment: Schema.Struct<{
|
|
17506
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17507
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17508
|
-
}>;
|
|
17509
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17510
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17511
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17512
|
-
}>>;
|
|
17513
|
-
}>>;
|
|
17514
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17515
|
-
readonly requests: Schema.Int;
|
|
17516
|
-
readonly omitted: Schema.Int;
|
|
17517
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17518
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17519
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17520
|
-
readonly step: Schema.String;
|
|
17521
|
-
readonly count: Schema.Int;
|
|
17522
|
-
readonly attempt: Schema.Int;
|
|
17523
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17524
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17525
|
-
readonly recovery: Schema.String;
|
|
17526
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17527
|
-
readonly url: Schema.String;
|
|
17528
|
-
}>>;
|
|
17529
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17530
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17531
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17532
|
-
readonly step: Schema.String;
|
|
17533
|
-
readonly count: Schema.Int;
|
|
17534
|
-
readonly attempt: Schema.Int;
|
|
17535
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17536
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17537
|
-
readonly recovery: Schema.String;
|
|
17538
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17539
|
-
readonly url: Schema.String;
|
|
17540
|
-
}>>;
|
|
17541
|
-
readonly reportedOmitted: Schema.Int;
|
|
17542
|
-
}>>;
|
|
17543
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17544
|
-
readonly browses: Schema.Int;
|
|
17545
|
-
readonly closing: Schema.Int;
|
|
17546
|
-
readonly unconfirmed: Schema.Int;
|
|
17547
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17548
|
-
readonly unresolved: Schema.Int;
|
|
17549
|
-
readonly presumedExpired: Schema.Int;
|
|
17550
|
-
readonly browserMs: Schema.Int;
|
|
17551
|
-
readonly estimated: Schema.Boolean;
|
|
17552
|
-
}>>;
|
|
17553
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17554
|
-
}>, Schema.Struct<{
|
|
17555
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17556
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17557
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17558
|
-
readonly rerun: Schema.Int;
|
|
17559
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17560
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17561
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17562
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17563
|
-
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17564
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17565
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17566
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17567
|
-
readonly kind: Schema.Literal<"person">;
|
|
17568
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17569
|
-
}>, Schema.Struct<{
|
|
17570
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17571
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17572
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17573
|
-
}>, Schema.Struct<{
|
|
17574
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17575
|
-
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")[]>;
|
|
17576
|
-
}>]>;
|
|
17577
|
-
readonly request: Schema.String;
|
|
17578
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17579
|
-
}>>;
|
|
17580
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17581
|
-
readonly attachment: Schema.Struct<{
|
|
17582
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17583
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17584
|
-
}>;
|
|
17585
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17586
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17587
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17588
|
-
}>>;
|
|
17589
|
-
}>>;
|
|
17590
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17591
|
-
readonly requests: Schema.Int;
|
|
17592
|
-
readonly omitted: Schema.Int;
|
|
17593
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17594
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17595
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17596
|
-
readonly step: Schema.String;
|
|
17597
|
-
readonly count: Schema.Int;
|
|
17598
|
-
readonly attempt: Schema.Int;
|
|
17599
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17600
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17601
|
-
readonly recovery: Schema.String;
|
|
17602
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17603
|
-
readonly url: Schema.String;
|
|
17604
|
-
}>>;
|
|
17605
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17606
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17607
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17608
|
-
readonly step: Schema.String;
|
|
17609
|
-
readonly count: Schema.Int;
|
|
17610
|
-
readonly attempt: Schema.Int;
|
|
17611
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17612
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17613
|
-
readonly recovery: Schema.String;
|
|
17614
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17615
|
-
readonly url: Schema.String;
|
|
17616
|
-
}>>;
|
|
17617
|
-
readonly reportedOmitted: Schema.Int;
|
|
17618
|
-
}>>;
|
|
17619
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17620
|
-
readonly browses: Schema.Int;
|
|
17621
|
-
readonly closing: Schema.Int;
|
|
17622
|
-
readonly unconfirmed: Schema.Int;
|
|
17623
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17624
|
-
readonly unresolved: Schema.Int;
|
|
17625
|
-
readonly presumedExpired: Schema.Int;
|
|
17626
|
-
readonly browserMs: Schema.Int;
|
|
17627
|
-
readonly estimated: Schema.Boolean;
|
|
17628
|
-
}>>;
|
|
17629
|
-
readonly state: Schema.Literal<"ended">;
|
|
17630
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17631
|
-
}>, Schema.Struct<{
|
|
17632
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17633
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17634
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17635
|
-
readonly rerun: Schema.Int;
|
|
17636
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17637
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17638
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17639
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17640
|
-
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17641
|
-
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17642
|
-
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17643
|
-
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17644
|
-
readonly kind: Schema.Literal<"person">;
|
|
17645
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17646
|
-
}>, Schema.Struct<{
|
|
17647
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17648
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17649
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17650
|
-
}>, Schema.Struct<{
|
|
17651
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17652
|
-
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")[]>;
|
|
17653
|
-
}>]>;
|
|
17654
|
-
readonly request: Schema.String;
|
|
17655
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17656
|
-
}>>;
|
|
17657
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17658
|
-
readonly attachment: Schema.Struct<{
|
|
17659
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17660
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17661
|
-
}>;
|
|
17662
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17663
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17664
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17665
|
-
}>>;
|
|
17666
|
-
}>>;
|
|
17667
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17668
|
-
readonly requests: Schema.Int;
|
|
17669
|
-
readonly omitted: Schema.Int;
|
|
17670
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17671
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17672
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17673
|
-
readonly step: Schema.String;
|
|
17674
|
-
readonly count: Schema.Int;
|
|
17675
|
-
readonly attempt: Schema.Int;
|
|
17676
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17677
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17678
|
-
readonly recovery: Schema.String;
|
|
17679
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17680
|
-
readonly url: Schema.String;
|
|
17681
|
-
}>>;
|
|
17682
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17683
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17684
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17685
|
-
readonly step: Schema.String;
|
|
17686
|
-
readonly count: Schema.Int;
|
|
17687
|
-
readonly attempt: Schema.Int;
|
|
17688
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17689
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17690
|
-
readonly recovery: Schema.String;
|
|
17691
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17692
|
-
readonly url: Schema.String;
|
|
17693
|
-
}>>;
|
|
17694
|
-
readonly reportedOmitted: Schema.Int;
|
|
17695
|
-
}>>;
|
|
17696
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
17697
|
-
readonly browses: Schema.Int;
|
|
17698
|
-
readonly closing: Schema.Int;
|
|
17699
|
-
readonly unconfirmed: Schema.Int;
|
|
17700
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
17701
|
-
readonly unresolved: Schema.Int;
|
|
17702
|
-
readonly presumedExpired: Schema.Int;
|
|
17703
|
-
readonly browserMs: Schema.Int;
|
|
17704
|
-
readonly estimated: Schema.Boolean;
|
|
17705
|
-
}>>;
|
|
17706
|
-
readonly state: Schema.Literal<"ended">;
|
|
17707
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17708
|
-
}>]>>;
|
|
17709
|
-
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17710
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17711
|
-
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">]>;
|
|
17712
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17713
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17714
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17715
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17716
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17717
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
17718
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
17719
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17720
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17721
|
-
readonly code: Schema.Struct<{
|
|
17722
|
-
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17723
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17724
|
-
}>;
|
|
17725
|
-
readonly timeoutSeconds: Schema.Int;
|
|
17726
|
-
readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17727
|
-
readonly compiled: Schema.Struct<{
|
|
17728
|
-
readonly entry: Schema.Struct<{
|
|
17729
|
-
readonly name: Schema.String;
|
|
17730
|
-
readonly module: Schema.String;
|
|
17731
|
-
readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17732
|
-
readonly files: Schema.$Array<Schema.String>;
|
|
17733
|
-
readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
17734
|
-
readonly sourceMap: Schema.optionalKey<Schema.String>;
|
|
17735
|
-
readonly reaches: Schema.optionalKey<Schema.Struct<{
|
|
17736
|
-
readonly tree: Schema.Boolean;
|
|
17737
|
-
readonly browser: Schema.Boolean;
|
|
17738
|
-
}>>;
|
|
17739
|
-
readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
17740
|
-
readonly name: Schema.String;
|
|
17741
|
-
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17742
|
-
readonly pin: Schema.String;
|
|
17743
|
-
readonly format: Schema.Int;
|
|
17744
|
-
}>>>;
|
|
17745
|
-
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17746
|
-
}>;
|
|
17747
|
-
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
17748
|
-
}>;
|
|
17749
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17875
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17750
17876
|
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">]>;
|
|
17751
17877
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17752
17878
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -17947,211 +18073,85 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17947
18073
|
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17948
18074
|
readonly kind: Schema.Literal<"person">;
|
|
17949
18075
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17950
|
-
}>, Schema.Struct<{
|
|
17951
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17952
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17953
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17954
|
-
}>, Schema.Struct<{
|
|
17955
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
17956
|
-
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")[]>;
|
|
17957
|
-
}>]>;
|
|
17958
|
-
readonly request: Schema.String;
|
|
17959
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
17960
|
-
}>>;
|
|
17961
|
-
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
17962
|
-
readonly attachment: Schema.Struct<{
|
|
17963
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17964
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
17965
|
-
}>;
|
|
17966
|
-
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
17967
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17968
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17969
|
-
}>>;
|
|
17970
|
-
}>>;
|
|
17971
|
-
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
17972
|
-
readonly requests: Schema.Int;
|
|
17973
|
-
readonly omitted: Schema.Int;
|
|
17974
|
-
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
17975
|
-
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
17976
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17977
|
-
readonly step: Schema.String;
|
|
17978
|
-
readonly count: Schema.Int;
|
|
17979
|
-
readonly attempt: Schema.Int;
|
|
17980
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17981
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17982
|
-
readonly recovery: Schema.String;
|
|
17983
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17984
|
-
readonly url: Schema.String;
|
|
17985
|
-
}>>;
|
|
17986
|
-
readonly refusalsOmitted: Schema.Int;
|
|
17987
|
-
readonly reported: Schema.$Array<Schema.Struct<{
|
|
17988
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17989
|
-
readonly step: Schema.String;
|
|
17990
|
-
readonly count: Schema.Int;
|
|
17991
|
-
readonly attempt: Schema.Int;
|
|
17992
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
17993
|
-
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
17994
|
-
readonly recovery: Schema.String;
|
|
17995
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
17996
|
-
readonly url: Schema.String;
|
|
17997
|
-
}>>;
|
|
17998
|
-
readonly reportedOmitted: Schema.Int;
|
|
17999
|
-
}>>;
|
|
18000
|
-
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18001
|
-
readonly browses: Schema.Int;
|
|
18002
|
-
readonly closing: Schema.Int;
|
|
18003
|
-
readonly unconfirmed: Schema.Int;
|
|
18004
|
-
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18005
|
-
readonly unresolved: Schema.Int;
|
|
18006
|
-
readonly presumedExpired: Schema.Int;
|
|
18007
|
-
readonly browserMs: Schema.Int;
|
|
18008
|
-
readonly estimated: Schema.Boolean;
|
|
18009
|
-
}>>;
|
|
18010
|
-
readonly state: Schema.Literal<"ended">;
|
|
18011
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18012
|
-
}>]>;
|
|
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
|
|
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">]>;
|
|
18030
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18031
|
-
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
18032
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18033
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18034
|
-
readonly cursor: Schema.optionalKey<Schema.brand<Schema.String, "TraceCursor">>;
|
|
18035
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18036
|
-
readonly run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
18037
|
-
readonly eventsKept: Schema.Literals<readonly ["collecting", "complete", "incomplete"]>;
|
|
18038
|
-
readonly events: Schema.$Array<Schema.Struct<{
|
|
18039
|
-
readonly eventId: Schema.Int;
|
|
18040
|
-
readonly timestamp: Schema.Finite;
|
|
18041
|
-
readonly type: Schema.String;
|
|
18042
|
-
readonly stepName: Schema.optionalKey<Schema.String>;
|
|
18043
|
-
readonly attempt: Schema.optionalKey<Schema.Int>;
|
|
18044
|
-
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
18045
|
-
readonly retryDelayMs: Schema.optionalKey<Schema.Finite>;
|
|
18046
|
-
readonly eventType: Schema.optionalKey<Schema.String>;
|
|
18047
|
-
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
18048
|
-
readonly name: Schema.String;
|
|
18049
|
-
readonly message: Schema.String;
|
|
18050
|
-
}>>;
|
|
18051
|
-
}>>;
|
|
18052
|
-
readonly spans: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18053
|
-
readonly kind: Schema.Literal<"session">;
|
|
18054
|
-
readonly id: Schema.String;
|
|
18055
|
-
readonly at: Schema.Finite;
|
|
18056
|
-
readonly sandbox: Schema.String;
|
|
18057
|
-
readonly step: Schema.String;
|
|
18058
|
-
readonly attempt: Schema.Int;
|
|
18059
|
-
readonly from: Schema.Literals<readonly ["snapshot", "image"]>;
|
|
18060
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
18061
|
-
readonly restoreMs: Schema.Finite;
|
|
18062
|
-
}>, Schema.Struct<{
|
|
18063
|
-
readonly kind: Schema.Literal<"command">;
|
|
18064
|
-
readonly id: Schema.String;
|
|
18065
|
-
readonly parent: Schema.String;
|
|
18066
|
-
readonly at: Schema.Finite;
|
|
18067
|
-
readonly argv: Schema.$Array<Schema.String>;
|
|
18068
|
-
readonly outcome: Schema.Literals<readonly ["exited", "timeout", "stopped", "lost"]>;
|
|
18069
|
-
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18070
|
-
readonly durationMs: Schema.Finite;
|
|
18071
|
-
readonly stdoutCut: Schema.Boolean;
|
|
18072
|
-
readonly stderrCut: Schema.Boolean;
|
|
18073
|
-
}>, Schema.Struct<{
|
|
18074
|
-
readonly kind: Schema.Literal<"untraced">;
|
|
18075
|
-
readonly id: Schema.String;
|
|
18076
|
-
readonly parent: Schema.String;
|
|
18077
|
-
readonly at: Schema.Finite;
|
|
18078
|
-
readonly commands: Schema.Int;
|
|
18079
|
-
}>, Schema.Struct<{
|
|
18080
|
-
readonly kind: Schema.Literal<"serve">;
|
|
18081
|
-
readonly id: Schema.String;
|
|
18082
|
-
readonly parent: Schema.String;
|
|
18083
|
-
readonly at: Schema.Finite;
|
|
18084
|
-
readonly argv: Schema.$Array<Schema.String>;
|
|
18085
|
-
readonly port: Schema.Int;
|
|
18086
|
-
readonly host: Schema.String;
|
|
18087
|
-
readonly outcome: Schema.Literals<readonly ["ready", "occupied", "exited", "not ready", "stopped", "unavailable"]>;
|
|
18088
|
-
readonly readyMs: Schema.optionalKey<Schema.Finite>;
|
|
18089
|
-
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18090
|
-
readonly log: Schema.Literals<readonly ["captured", "unavailable"]>;
|
|
18091
|
-
}>, Schema.Struct<{
|
|
18092
|
-
readonly kind: Schema.Literal<"route">;
|
|
18093
|
-
readonly id: Schema.String;
|
|
18094
|
-
readonly parent: Schema.String;
|
|
18095
|
-
readonly at: Schema.Finite;
|
|
18096
|
-
readonly method: Schema.String;
|
|
18097
|
-
readonly path: Schema.String;
|
|
18098
|
-
readonly outcome: Schema.Literals<readonly ["complete", "refused", "failed", "cancelled", "interrupted"]>;
|
|
18099
|
-
readonly status: Schema.optionalKey<Schema.Int>;
|
|
18100
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
18101
|
-
readonly durationMs: Schema.Finite;
|
|
18102
|
-
readonly bytes: Schema.Int;
|
|
18103
|
-
}>, Schema.Struct<{
|
|
18104
|
-
readonly kind: Schema.Literal<"routes omitted">;
|
|
18105
|
-
readonly id: Schema.String;
|
|
18106
|
-
readonly parent: Schema.String;
|
|
18107
|
-
readonly at: Schema.Finite;
|
|
18108
|
-
readonly requests: Schema.Int;
|
|
18109
|
-
}>, Schema.Struct<{
|
|
18110
|
-
readonly kind: Schema.Literal<"route refusal">;
|
|
18111
|
-
readonly id: Schema.String;
|
|
18112
|
-
readonly parent: Schema.String;
|
|
18113
|
-
readonly at: Schema.Finite;
|
|
18114
|
-
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18115
|
-
readonly why: Schema.String;
|
|
18116
|
-
readonly url: Schema.String;
|
|
18117
|
-
}>, Schema.Struct<{
|
|
18118
|
-
readonly kind: Schema.Literal<"browser">;
|
|
18119
|
-
readonly id: Schema.String;
|
|
18120
|
-
readonly parent: Schema.String;
|
|
18121
|
-
readonly at: Schema.Finite;
|
|
18122
|
-
readonly browserSession: Schema.optionalKey<Schema.String>;
|
|
18123
|
-
readonly acquireMs: Schema.optionalKey<Schema.Finite>;
|
|
18124
|
-
readonly connects: Schema.Int;
|
|
18125
|
-
readonly closedAt: Schema.optionalKey<Schema.Finite>;
|
|
18126
|
-
readonly outcome: Schema.Literals<readonly ["closed", "unconfirmed", "unresolved", "failed", "unavailable"]>;
|
|
18127
|
-
readonly reported: Schema.Int;
|
|
18128
|
-
}>, Schema.Struct<{
|
|
18129
|
-
readonly kind: Schema.Literal<"build">;
|
|
18130
|
-
readonly id: Schema.String;
|
|
18131
|
-
readonly at: Schema.Finite;
|
|
18132
|
-
readonly build: Schema.Int;
|
|
18133
|
-
readonly key: Schema.String;
|
|
18134
|
-
readonly state: Schema.Literals<readonly ["queued", "starting", "building", "ready", "failed", "full", "unbegun"]>;
|
|
18135
|
-
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
18136
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
18137
|
-
}>, Schema.Struct<{
|
|
18138
|
-
readonly kind: Schema.Literal<"setup">;
|
|
18139
|
-
readonly id: Schema.String;
|
|
18140
|
-
readonly parent: Schema.String;
|
|
18141
|
-
readonly at: Schema.Finite;
|
|
18142
|
-
readonly argv: Schema.$Array<Schema.String>;
|
|
18143
|
-
readonly exitCode: Schema.optionalKey<Schema.Int>;
|
|
18144
|
-
readonly durationMs: Schema.Finite;
|
|
18145
|
-
}>]>>;
|
|
18146
|
-
readonly logs: Schema.$Array<Schema.Struct<{
|
|
18147
|
-
readonly at: Schema.Finite;
|
|
18148
|
-
readonly level: Schema.String;
|
|
18149
|
-
readonly message: Schema.String;
|
|
18150
|
-
readonly span: Schema.optionalKey<Schema.String>;
|
|
18151
|
-
}>>;
|
|
18152
|
-
readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
|
|
18153
|
-
readonly more: Schema.Boolean;
|
|
18154
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never>, false>;
|
|
18076
|
+
}>, Schema.Struct<{
|
|
18077
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18078
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18079
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18080
|
+
}>, Schema.Struct<{
|
|
18081
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18082
|
+
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")[]>;
|
|
18083
|
+
}>]>;
|
|
18084
|
+
readonly request: Schema.String;
|
|
18085
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
18086
|
+
}>>;
|
|
18087
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
18088
|
+
readonly attachment: Schema.Struct<{
|
|
18089
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18090
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18091
|
+
}>;
|
|
18092
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
18093
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18094
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18095
|
+
}>>;
|
|
18096
|
+
}>>;
|
|
18097
|
+
readonly routes: Schema.optionalKey<Schema.Struct<{
|
|
18098
|
+
readonly requests: Schema.Int;
|
|
18099
|
+
readonly omitted: Schema.Int;
|
|
18100
|
+
readonly trace: Schema.Literals<readonly ["pending", "kept", "failed"]>;
|
|
18101
|
+
readonly refusals: Schema.$Array<Schema.Struct<{
|
|
18102
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18103
|
+
readonly step: Schema.String;
|
|
18104
|
+
readonly count: Schema.Int;
|
|
18105
|
+
readonly attempt: Schema.Int;
|
|
18106
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18107
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
18108
|
+
readonly recovery: Schema.String;
|
|
18109
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18110
|
+
readonly url: Schema.String;
|
|
18111
|
+
}>>;
|
|
18112
|
+
readonly refusalsOmitted: Schema.Int;
|
|
18113
|
+
readonly reported: Schema.$Array<Schema.Struct<{
|
|
18114
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18115
|
+
readonly step: Schema.String;
|
|
18116
|
+
readonly count: Schema.Int;
|
|
18117
|
+
readonly attempt: Schema.Int;
|
|
18118
|
+
readonly provenance: Schema.Literals<readonly ["observed", "reported"]>;
|
|
18119
|
+
readonly why: Schema.Literals<readonly ["scheme", "https", "host", "port", "websocket", "webrtc", "deadline", "ended", "not yours", "closed", "browse closed", "fenced", "not open", "not served", "stopped", "unreachable", "too many", "unavailable"]>;
|
|
18120
|
+
readonly recovery: Schema.String;
|
|
18121
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["sbxsession_", Schema.String]>, "SandboxSessionId">;
|
|
18122
|
+
readonly url: Schema.String;
|
|
18123
|
+
}>>;
|
|
18124
|
+
readonly reportedOmitted: Schema.Int;
|
|
18125
|
+
}>>;
|
|
18126
|
+
readonly browsers: Schema.optionalKey<Schema.Struct<{
|
|
18127
|
+
readonly browses: Schema.Int;
|
|
18128
|
+
readonly closing: Schema.Int;
|
|
18129
|
+
readonly unconfirmed: Schema.Int;
|
|
18130
|
+
readonly lastError: Schema.optionalKey<Schema.String>;
|
|
18131
|
+
readonly unresolved: Schema.Int;
|
|
18132
|
+
readonly presumedExpired: Schema.Int;
|
|
18133
|
+
readonly browserMs: Schema.Int;
|
|
18134
|
+
readonly estimated: Schema.Boolean;
|
|
18135
|
+
}>>;
|
|
18136
|
+
readonly state: Schema.Literal<"ended">;
|
|
18137
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18138
|
+
}>]>;
|
|
18139
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
|
|
18140
|
+
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">]>;
|
|
18141
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18142
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18143
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18144
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18145
|
+
}>, Schema.Struct<{
|
|
18146
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18147
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18148
|
+
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18149
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18150
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18151
|
+
}>, Schema.Struct<{
|
|
18152
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18153
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18154
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never>, false>;
|
|
18155
18155
|
/**
|
|
18156
18156
|
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
18157
18157
|
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
@@ -18163,23 +18163,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18163
18163
|
* in.
|
|
18164
18164
|
*/
|
|
18165
18165
|
declare class RunsGroup extends RunsGroup_base {}
|
|
18166
|
-
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
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">]>;
|
|
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
|
-
}>>;
|
|
18177
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18178
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
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<{
|
|
18166
|
+
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"asked", "POST", "/v1/owners/:owner/client-grants/asked", Schema.toCodecStringTree<Schema.Struct<{
|
|
18183
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">]>;
|
|
18184
18168
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18185
18169
|
readonly request: Schema.String;
|
|
@@ -18195,7 +18179,23 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18195
18179
|
readonly request: Schema.String;
|
|
18196
18180
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18197
18181
|
readonly redirect: Schema.String;
|
|
18198
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18182
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
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">]>;
|
|
18184
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18185
|
+
readonly client: Schema.String;
|
|
18186
|
+
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
18187
|
+
readonly create: Schema.optionalKey<Schema.Boolean>;
|
|
18188
|
+
readonly access: Schema.Literals<readonly ["read", "act"]>;
|
|
18189
|
+
readonly projects: Schema.NonEmptyArray<Schema.Struct<{
|
|
18190
|
+
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">]>;
|
|
18191
|
+
readonly project: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">, Schema.brand<Schema.String, "ProjectName">]>;
|
|
18192
|
+
}>>;
|
|
18193
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18194
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18195
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18196
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18197
|
+
readonly client: Schema.String;
|
|
18198
|
+
}>>, 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<{
|
|
18199
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">]>;
|
|
18200
18200
|
grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18201
18201
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -18211,26 +18211,7 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18211
18211
|
* consented, hands the client its code.
|
|
18212
18212
|
*/
|
|
18213
18213
|
declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
|
|
18214
|
-
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18215
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18216
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18217
|
-
}>>, 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<{
|
|
18225
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18226
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18227
|
-
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
18228
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18229
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18230
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18231
|
-
}>>;
|
|
18232
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18233
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18214
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18234
18215
|
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
18216
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18236
18217
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -18246,7 +18227,59 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18246
18227
|
}>;
|
|
18247
18228
|
}>]>;
|
|
18248
18229
|
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<"
|
|
18230
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18231
|
+
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">]>;
|
|
18232
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18233
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18234
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18235
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18236
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
18237
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
18238
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
18239
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18240
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18241
|
+
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"]>;
|
|
18242
|
+
readonly quantity: Schema.Finite;
|
|
18243
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18244
|
+
}>>;
|
|
18245
|
+
}>>;
|
|
18246
|
+
readonly work: Schema.$Array<Schema.Struct<{
|
|
18247
|
+
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18248
|
+
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18249
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18250
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18251
|
+
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"]>;
|
|
18252
|
+
readonly quantity: Schema.Finite;
|
|
18253
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18254
|
+
}>>;
|
|
18255
|
+
}>>;
|
|
18256
|
+
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18257
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18258
|
+
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18259
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18260
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18261
|
+
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18262
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18263
|
+
readonly bytes: Schema.Int;
|
|
18264
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18265
|
+
}>>;
|
|
18266
|
+
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18267
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18268
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18269
|
+
readonly counts: Schema.Int;
|
|
18270
|
+
readonly bytes: Schema.Int;
|
|
18271
|
+
}>>>;
|
|
18272
|
+
}>>;
|
|
18273
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18274
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18275
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18276
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
18277
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18278
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18279
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18280
|
+
}>>;
|
|
18281
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18282
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
|
|
18250
18283
|
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">]>;
|
|
18251
18284
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18252
18285
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18421,56 +18454,40 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18421
18454
|
}>>;
|
|
18422
18455
|
}>;
|
|
18423
18456
|
readonly pricesAsOf: Schema.String;
|
|
18424
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18425
|
-
|
|
18457
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18458
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18459
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18426
18460
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
readonly
|
|
18431
|
-
readonly
|
|
18432
|
-
readonly
|
|
18433
|
-
|
|
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>;
|
|
18461
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18462
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18463
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18464
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18465
|
+
readonly displayName: Schema.String;
|
|
18466
|
+
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18467
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never>, false>;
|
|
18468
18468
|
/**
|
|
18469
18469
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18470
18470
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
18471
18471
|
*/
|
|
18472
18472
|
declare class OrganizationsGroup extends OrganizationsGroup_base {}
|
|
18473
|
-
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18473
|
+
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18474
|
+
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">]>;
|
|
18475
|
+
member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18476
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18477
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18478
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18479
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18480
|
+
readonly kind: Schema.Literal<"person">;
|
|
18481
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18482
|
+
}>, Schema.Struct<{
|
|
18483
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18484
|
+
readonly agent: Schema.Struct<{
|
|
18485
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18486
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18487
|
+
}>;
|
|
18488
|
+
}>]>;
|
|
18489
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18490
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
18474
18491
|
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">]>;
|
|
18475
18492
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18476
18493
|
cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
@@ -18509,56 +18526,18 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18509
18526
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18510
18527
|
}>;
|
|
18511
18528
|
}>]>;
|
|
18512
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18513
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18514
|
-
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">]>;
|
|
18515
|
-
member: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18516
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18517
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18518
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18519
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18520
|
-
readonly kind: Schema.Literal<"person">;
|
|
18521
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18522
|
-
}>, Schema.Struct<{
|
|
18523
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18524
|
-
readonly agent: Schema.Struct<{
|
|
18525
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18526
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18527
|
-
}>;
|
|
18528
|
-
}>]>;
|
|
18529
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18529
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18530
18530
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18531
18531
|
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
18532
18532
|
declare class MembersGroup extends MembersGroup_base {}
|
|
18533
|
-
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18534
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18535
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18536
|
-
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18537
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18538
|
-
readonly organization: Schema.Struct<{
|
|
18539
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18540
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18541
|
-
}>;
|
|
18542
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18543
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18544
|
-
}>>;
|
|
18545
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18546
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18533
|
+
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
|
|
18547
18534
|
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
|
-
|
|
18549
|
-
|
|
18550
|
-
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
18551
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18535
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18536
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18552
18537
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18553
18538
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18554
18539
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18555
|
-
|
|
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<{
|
|
18540
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18562
18541
|
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
18542
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18564
18543
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
@@ -18577,14 +18556,20 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18577
18556
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18578
18557
|
}>>;
|
|
18579
18558
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18580
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
18587
|
-
|
|
18559
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18560
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18561
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18562
|
+
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18563
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18564
|
+
readonly organization: Schema.Struct<{
|
|
18565
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18566
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18567
|
+
}>;
|
|
18568
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18569
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18570
|
+
}>>;
|
|
18571
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18572
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
18588
18573
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18589
18574
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18590
18575
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -18602,7 +18587,22 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18602
18587
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18603
18588
|
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18604
18589
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18605
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never
|
|
18590
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18591
|
+
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">]>;
|
|
18592
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18593
|
+
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">]>;
|
|
18594
|
+
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
18595
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18596
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18597
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18598
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18599
|
+
readonly invitee: Schema.Struct<{
|
|
18600
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18601
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18602
|
+
}>;
|
|
18603
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18604
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18605
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never>, false>;
|
|
18606
18606
|
/**
|
|
18607
18607
|
* Invitations: an organization's admins send, list and withdraw them; the person invited lists
|
|
18608
18608
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
@@ -18664,7 +18664,56 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18664
18664
|
}>;
|
|
18665
18665
|
}>]>;
|
|
18666
18666
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18667
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18667
|
+
}>>, 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<{
|
|
18668
|
+
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">]>;
|
|
18669
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18670
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18671
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
18672
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18673
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18674
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18675
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18676
|
+
readonly kind: Schema.Literal<"owner">;
|
|
18677
|
+
}>, Schema.Struct<{
|
|
18678
|
+
readonly kind: Schema.Literal<"project">;
|
|
18679
|
+
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18680
|
+
}>, Schema.Struct<{
|
|
18681
|
+
readonly kind: Schema.Literal<"thread">;
|
|
18682
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18683
|
+
}>, Schema.Struct<{
|
|
18684
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18685
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18686
|
+
}>]>;
|
|
18687
|
+
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18688
|
+
readonly kind: Schema.Literal<"person">;
|
|
18689
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18690
|
+
}>, Schema.Struct<{
|
|
18691
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18692
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18693
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18694
|
+
}>, Schema.Struct<{
|
|
18695
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18696
|
+
readonly agent: Schema.Struct<{
|
|
18697
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18698
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18699
|
+
}>;
|
|
18700
|
+
}>]>;
|
|
18701
|
+
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18702
|
+
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18703
|
+
readonly kind: Schema.Literal<"person">;
|
|
18704
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18705
|
+
}>, Schema.Struct<{
|
|
18706
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18707
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18708
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18709
|
+
}>, Schema.Struct<{
|
|
18710
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18711
|
+
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")[]>;
|
|
18712
|
+
}>]>;
|
|
18713
|
+
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18714
|
+
}>>;
|
|
18715
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18716
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"set", "PUT", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18668
18717
|
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">]>;
|
|
18669
18718
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18670
18719
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18720,56 +18769,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18720
18769
|
}>;
|
|
18721
18770
|
}>]>;
|
|
18722
18771
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18723
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never
|
|
18724
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18725
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18726
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18727
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
18728
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18729
|
-
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18730
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18731
|
-
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18732
|
-
readonly kind: Schema.Literal<"owner">;
|
|
18733
|
-
}>, Schema.Struct<{
|
|
18734
|
-
readonly kind: Schema.Literal<"project">;
|
|
18735
|
-
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18736
|
-
}>, Schema.Struct<{
|
|
18737
|
-
readonly kind: Schema.Literal<"thread">;
|
|
18738
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18739
|
-
}>, Schema.Struct<{
|
|
18740
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18741
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18742
|
-
}>]>;
|
|
18743
|
-
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18744
|
-
readonly kind: Schema.Literal<"person">;
|
|
18745
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18746
|
-
}>, Schema.Struct<{
|
|
18747
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18748
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18749
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18750
|
-
}>, Schema.Struct<{
|
|
18751
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18752
|
-
readonly agent: Schema.Struct<{
|
|
18753
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18754
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18755
|
-
}>;
|
|
18756
|
-
}>]>;
|
|
18757
|
-
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18758
|
-
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18759
|
-
readonly kind: Schema.Literal<"person">;
|
|
18760
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18761
|
-
}>, Schema.Struct<{
|
|
18762
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18763
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18764
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18765
|
-
}>, Schema.Struct<{
|
|
18766
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
18767
|
-
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
18768
|
-
}>]>;
|
|
18769
|
-
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18770
|
-
}>>;
|
|
18771
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18772
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18772
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never>, false>;
|
|
18773
18773
|
/**
|
|
18774
18774
|
* An organization's grants (layer 1): any person lists those they may see; an admin gives one or
|
|
18775
18775
|
* takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
|
|
@@ -18777,13 +18777,10 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18777
18777
|
* `OrganizationNotFound`.
|
|
18778
18778
|
*/
|
|
18779
18779
|
declare class GrantsGroup extends GrantsGroup_base {}
|
|
18780
|
-
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18780
|
+
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
|
|
18781
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">]>;
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18785
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18786
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18782
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18783
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18787
18784
|
readonly agent: Schema.Struct<{
|
|
18788
18785
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18789
18786
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18791,10 +18788,30 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18791
18788
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18792
18789
|
readonly generation: Schema.Int;
|
|
18793
18790
|
readonly turnedOff: Schema.Boolean;
|
|
18794
|
-
|
|
18791
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18792
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18793
|
+
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">]>;
|
|
18794
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18795
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18796
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
18797
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18798
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
18799
|
+
readonly agent: Schema.Struct<{
|
|
18800
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18801
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18802
|
+
}>;
|
|
18803
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18804
|
+
readonly generation: Schema.Int;
|
|
18805
|
+
readonly turnedOff: Schema.Boolean;
|
|
18806
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18807
|
+
}>>;
|
|
18808
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18809
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
18795
18810
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18796
18811
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18797
|
-
}>>, never, never,
|
|
18812
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18813
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18814
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18798
18815
|
readonly agent: Schema.Struct<{
|
|
18799
18816
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18800
18817
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18802,8 +18819,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18802
18819
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18803
18820
|
readonly generation: Schema.Int;
|
|
18804
18821
|
readonly turnedOff: Schema.Boolean;
|
|
18805
|
-
|
|
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<{
|
|
18822
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/owners/:owner/agents/:agent/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
18807
18823
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18808
18824
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18809
18825
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18816,10 +18832,11 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18816
18832
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18817
18833
|
readonly generation: Schema.Int;
|
|
18818
18834
|
readonly turnedOff: Schema.Boolean;
|
|
18819
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18835
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18820
18836
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18821
|
-
|
|
18822
|
-
|
|
18837
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18838
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18839
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18823
18840
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18824
18841
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18825
18842
|
readonly agent: Schema.Struct<{
|
|
@@ -18829,24 +18846,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18829
18846
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18830
18847
|
readonly generation: Schema.Int;
|
|
18831
18848
|
readonly turnedOff: Schema.Boolean;
|
|
18832
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
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>;
|
|
18849
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18850
18850
|
/**
|
|
18851
18851
|
* An owner's agents (layer 1): an organization's members, or a person themselves, read them and
|
|
18852
18852
|
* turn one off everywhere, or on again; an organization's admin adds one, and only an admin turns
|
|
@@ -18854,15 +18854,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18854
18854
|
* its machines' host grants by the agent's ID.
|
|
18855
18855
|
*/
|
|
18856
18856
|
declare class AgentsGroup extends AgentsGroup_base {}
|
|
18857
|
-
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18857
|
+
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
18858
18858
|
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">]>;
|
|
18859
|
-
|
|
18860
|
-
|
|
18861
|
-
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">]>;
|
|
18862
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18863
|
-
}>;
|
|
18864
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18865
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18859
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18860
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18866
18861
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18867
18862
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18868
18863
|
readonly agent: Schema.Struct<{
|
|
@@ -18875,10 +18870,15 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18875
18870
|
}>;
|
|
18876
18871
|
readonly generation: Schema.Int;
|
|
18877
18872
|
readonly authorized: Schema.Boolean;
|
|
18878
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18873
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18879
18874
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18880
|
-
|
|
18881
|
-
|
|
18875
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18876
|
+
readonly agent: Schema.Struct<{
|
|
18877
|
+
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">]>;
|
|
18878
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18879
|
+
}>;
|
|
18880
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18881
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18882
18882
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18883
18883
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18884
18884
|
readonly agent: Schema.Struct<{
|
|
@@ -18891,7 +18891,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18891
18891
|
}>;
|
|
18892
18892
|
readonly generation: Schema.Int;
|
|
18893
18893
|
readonly authorized: Schema.Boolean;
|
|
18894
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18894
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18895
18895
|
/**
|
|
18896
18896
|
* A member's own agent working in an organization (layer 1): its person authorizes an attachment
|
|
18897
18897
|
* of it there, by its credential's ID, or takes that back. The Worker checks the attachment is
|
|
@@ -18899,23 +18899,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18899
18899
|
* decides. People only, by approval.
|
|
18900
18900
|
*/
|
|
18901
18901
|
declare class AuthorizationsGroup extends AuthorizationsGroup_base {}
|
|
18902
|
-
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18903
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18904
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18905
|
-
readonly agent: Schema.Struct<{
|
|
18906
|
-
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">]>;
|
|
18907
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18908
|
-
}>;
|
|
18909
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18910
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18911
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18912
|
-
readonly agent: Schema.Struct<{
|
|
18913
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18914
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18915
|
-
}>;
|
|
18916
|
-
readonly targetGeneration: Schema.Int;
|
|
18917
|
-
readonly turnedOff: Schema.Boolean;
|
|
18918
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18902
|
+
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18919
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">]>;
|
|
18920
18904
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18921
18905
|
readonly agent: Schema.Struct<{
|
|
@@ -18958,7 +18942,23 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
18958
18942
|
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
18959
18943
|
}>>;
|
|
18960
18944
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
18961
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never
|
|
18945
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18946
|
+
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">]>;
|
|
18947
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18948
|
+
readonly agent: Schema.Struct<{
|
|
18949
|
+
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">]>;
|
|
18950
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18951
|
+
}>;
|
|
18952
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18953
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18954
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18955
|
+
readonly agent: Schema.Struct<{
|
|
18956
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18957
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18958
|
+
}>;
|
|
18959
|
+
readonly targetGeneration: Schema.Int;
|
|
18960
|
+
readonly turnedOff: Schema.Boolean;
|
|
18961
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18962
18962
|
/**
|
|
18963
18963
|
* Agents of other owners an organization's admin turns off there (layer 1), such as a member's
|
|
18964
18964
|
* own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
|
|
@@ -29207,4 +29207,4 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
29207
29207
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
29208
29208
|
//#endregion
|
|
29209
29209
|
export { MirrorEntry as $, WorkflowAskClosed as $t, ConnectionCallAnswer as A, WorkflowPreview as An, ScopeAction as At, EventRunInput as B, commandLine as Bn, StatementView as Bt, ConnectAgent as C, WorkflowOwn as Cn, SandboxExec as Ct, ConnectOptions as D, WorkflowPasskeyRead as Dn, SandboxPush as Dt, ConnectFolderOption as E, WorkflowPasskeyEnded as En, SandboxOpenAnswer as Et, ConsentAsked as F, WorkflowStartState as Fn, SignInDestination as Ft, GetIssueInput as G, isRef0Path as Gn, TrackThread as Gt, ForkAnswer as H, encodeSecret as Hn, ThreadStage as Ht, ConsentClient as I, WorkflowText as In, SignedIn as It, LiveTicket as J, repoNameKey as Jn, Welcome as Jt, Harness as K, liveSocketUrl as Kn, TypedApprovalCode as Kt, ConsentProject as L, WorkflowThreadStart as Ln, SocketUrl as Lt, ConnectionKind as M, WorkflowPullRequestOpen as Mn, SentryOrg as Mt, ConnectionName as N, WorkflowRequestRefusal as Nn, SentryRegion as Nt, ConnectableAgent as O, WorkflowPasskeyState as On, SandboxPushAnswer as Ot, ConnectionView as P, WorkflowStartEnded as Pn, SentryToken as Pt, MirrorChoice as Q, WorkflowAsk as Qt, CredentialView as R, WorkflowTrigger as Rn, StartActor as Rt, ClientGranted as S, WorkflowFilters as Sn, RequestFolder as St, ConnectFolderChoices as T, WorkflowPasskeyAsked as Tn, SandboxOpen as Tt, ForkCreate as U, hookTokenPrefix as Un, TrackClosed as Ut, FoldersConnected as V, connectEndpoint as Vn, ThreadId as Vt, GateOwn as W, hookUrl as Wn, TrackSession as Wt, LiveTrackName as X, WorkflowActionAnswer as Xt, LiveTicketRequest as Y, surfaceOf as Yn, WorkflowAction as Yt, MachineConnected as Z, WorkflowAnswerer as Zt, CheckOwn as _, WorkflowCheckStatesAnswer as _n, ReadEvent as _t, Api as a, WorkflowCallRefused as an, OwnerTrackMessage as at, CheckTreeEntry as b, WorkflowConnections as bn, RepoUrl as bt, ApprovalId as c, WorkflowCheckRefusal as cn, PasskeyCreationOptions as ct, ApprovalView as d, WorkflowCheckResultsAnswer as dn, PasskeyRequestOptions as dt, WorkflowCall as en, MirrorView as et, AttachmentFailed as f, WorkflowCheckRun as fn, PreviewEcho as ft, CheckOn as g, WorkflowCheckStates as gn, RanOf as gt, ChangeAuthor as h, WorkflowCheckStartAnswer as hn, ProjectTrackMessage as ht, AgentView as i, WorkflowCallRefusal as in, OwnerThreadView as it, ConnectionChanged as j, WorkflowPullRequestAnswer as jn, SecretHash as jt, ConnectionCall as k, WorkflowPermissions as kn, SandboxSize as kt, ApprovalPreview as l, WorkflowCheckRefused as ln, PasskeyFrom as lt, Authorization as m, WorkflowCheckStart as mn, ProjectName as mt, AgentPermissionChoice as n, WorkflowCallEnded as nn, OwnerName as nt, ApiOrigin as o, WorkflowCalledState as on, PasskeyAsserted as ot, AttachmentRequestView as p, WorkflowCheckRunEnded as pn, PreviewUnavailable as pt, ImportFailure as q, projectParts as qn, VersionFile as qt, AgentPermissionSetting as r, WorkflowCallInput as rn, OwnerThreadPage as rt, ApprovalAnswer as s, WorkflowCalledStateAnswer as sn, PasskeyCreated as st, AgentHandle as t, WorkflowCallAnswer as tn, OwnerId as tt, ApprovalState as u, WorkflowCheckResults as un, PasskeyRefusal as ut, CheckRunError as v, WorkflowCheckWhere as vn, Ref0Owned as vt, ConnectChosen as w, WorkflowPasskeyAsk as wn, SandboxExecAnswer as wt, ClientAccess as x, WorkflowEvent as xn, RepoView as xt, CheckRunParams as y, WorkflowComment as yn, RepoName as yt, EndpointName as z, WrittenProject as zn, StartRun as zt };
|
|
29210
|
-
//# sourceMappingURL=index-
|
|
29210
|
+
//# sourceMappingURL=index-Db86z11q.d.mts.map
|