@ref0/sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2103,15 +2103,7 @@ declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEnd
|
|
|
2103
2103
|
}>]>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof AuthorityUnavailable>, SignedIn, never>, false>;
|
|
2104
2104
|
/** Where a signed-in person stands, and naming their owner when their GitHub login couldn't. */
|
|
2105
2105
|
declare class WelcomeGroup extends WelcomeGroup_base {}
|
|
2106
|
-
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2107
|
-
readonly passkeys: Schema.$Array<Schema.Struct<{
|
|
2108
|
-
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2109
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
2110
|
-
readonly createdAt: Schema.String;
|
|
2111
|
-
readonly backedUp: Schema.Boolean;
|
|
2112
|
-
}>>;
|
|
2113
|
-
readonly approvesHere: Schema.Boolean;
|
|
2114
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2106
|
+
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2115
2107
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2116
2108
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2117
2109
|
readonly rp: Schema.Struct<{
|
|
@@ -2142,7 +2134,15 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
2142
2134
|
}>>;
|
|
2143
2135
|
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2144
2136
|
readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
|
|
2145
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2137
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2138
|
+
readonly passkeys: Schema.$Array<Schema.Struct<{
|
|
2139
|
+
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2140
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
2141
|
+
readonly createdAt: Schema.String;
|
|
2142
|
+
readonly backedUp: Schema.Boolean;
|
|
2143
|
+
}>>;
|
|
2144
|
+
readonly approvesHere: Schema.Boolean;
|
|
2145
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2146
2146
|
readonly id: Schema.String;
|
|
2147
2147
|
readonly rawId: Schema.String;
|
|
2148
2148
|
readonly type: Schema.Literal<"public-key">;
|
|
@@ -2207,19 +2207,7 @@ 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<"
|
|
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<{
|
|
2210
|
+
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
|
|
2223
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">]>;
|
|
2224
2212
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2225
2213
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -2236,7 +2224,19 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
|
|
|
2236
2224
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
2237
2225
|
}>>;
|
|
2238
2226
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2239
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never
|
|
2227
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
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>;
|
|
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,24 +2370,7 @@ 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<"
|
|
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<{
|
|
2373
|
+
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/approvals", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2391
2374
|
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
2392
2375
|
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2393
2376
|
readonly says: Schema.String;
|
|
@@ -2640,98 +2623,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2640
2623
|
readonly state: Schema.String;
|
|
2641
2624
|
}>>;
|
|
2642
2625
|
}>>;
|
|
2643
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
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<{
|
|
2626
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"find", "POST", "/v1/approvals/find", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2735
2627
|
readonly code: Schema.String;
|
|
2736
2628
|
}>, Schema.Struct<{
|
|
2737
2629
|
readonly link: Schema.String;
|
|
@@ -2962,7 +2854,115 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2962
2854
|
readonly port: Schema.Int;
|
|
2963
2855
|
readonly state: Schema.String;
|
|
2964
2856
|
}>>;
|
|
2965
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2857
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
|
|
2858
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2859
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2860
|
+
readonly state: Schema.Literal<"waiting">;
|
|
2861
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2862
|
+
}>, Schema.Struct<{
|
|
2863
|
+
readonly state: Schema.Literal<"approved">;
|
|
2864
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2865
|
+
}>, Schema.Struct<{
|
|
2866
|
+
readonly state: Schema.Literal<"refused">;
|
|
2867
|
+
}>, Schema.Struct<{
|
|
2868
|
+
readonly state: Schema.Literal<"expired">;
|
|
2869
|
+
}>, Schema.Struct<{
|
|
2870
|
+
readonly status: Schema.Int;
|
|
2871
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2872
|
+
readonly state: Schema.Literal<"ran">;
|
|
2873
|
+
readonly endpoint: Schema.String;
|
|
2874
|
+
}>]>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/v1/approvals/:approval/options", Schema.toCodecStringTree<Schema.Struct<{
|
|
2875
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2876
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2877
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2878
|
+
readonly folders: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2879
|
+
readonly path: Schema.String;
|
|
2880
|
+
readonly excluded: Schema.Literal<true>;
|
|
2881
|
+
}>, Schema.Struct<{
|
|
2882
|
+
readonly path: Schema.String;
|
|
2883
|
+
readonly agent: Schema.Union<readonly [Schema.Struct<{
|
|
2884
|
+
readonly kind: Schema.Literal<"existing">;
|
|
2885
|
+
readonly agent: Schema.Struct<{
|
|
2886
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2887
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2888
|
+
}>;
|
|
2889
|
+
}>, Schema.Struct<{
|
|
2890
|
+
readonly kind: Schema.Literal<"new">;
|
|
2891
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2892
|
+
}>]>;
|
|
2893
|
+
}>]>>>;
|
|
2894
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2895
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2896
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2897
|
+
readonly challenge: Schema.String;
|
|
2898
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2899
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2900
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2901
|
+
readonly id: Schema.String;
|
|
2902
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2903
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2904
|
+
}>>>;
|
|
2905
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2906
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2907
|
+
}>, Schema.Struct<{
|
|
2908
|
+
readonly request: Schema.Struct<{
|
|
2909
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2910
|
+
readonly machineName: Schema.String;
|
|
2911
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2912
|
+
readonly path: Schema.String;
|
|
2913
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2914
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2915
|
+
}>>;
|
|
2916
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2917
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2918
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2919
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2920
|
+
readonly port: Schema.Int;
|
|
2921
|
+
readonly state: Schema.String;
|
|
2922
|
+
}>>;
|
|
2923
|
+
}>;
|
|
2924
|
+
readonly agents: Schema.$Array<Schema.Struct<{
|
|
2925
|
+
readonly agent: Schema.Struct<{
|
|
2926
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2927
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2928
|
+
}>;
|
|
2929
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2930
|
+
}>>;
|
|
2931
|
+
readonly folders: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2932
|
+
readonly path: Schema.String;
|
|
2933
|
+
readonly excluded: Schema.Literal<true>;
|
|
2934
|
+
}>, Schema.Struct<{
|
|
2935
|
+
readonly path: Schema.String;
|
|
2936
|
+
readonly connect: Schema.Struct<{
|
|
2937
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2938
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2939
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2940
|
+
}>>;
|
|
2941
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2942
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
2943
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
2944
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
2945
|
+
}>>;
|
|
2946
|
+
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2947
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2948
|
+
readonly state: Schema.Literals<readonly ["replaces", "revoked", "skipped"]>;
|
|
2949
|
+
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2950
|
+
}>>;
|
|
2951
|
+
}>;
|
|
2952
|
+
}>]>>;
|
|
2953
|
+
readonly passkey: Schema.Struct<{
|
|
2954
|
+
readonly challenge: Schema.String;
|
|
2955
|
+
readonly timeout: Schema.optionalKey<Schema.Int>;
|
|
2956
|
+
readonly rpId: Schema.optionalKey<Schema.String>;
|
|
2957
|
+
readonly allowCredentials: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2958
|
+
readonly id: Schema.String;
|
|
2959
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2960
|
+
readonly transports: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2961
|
+
}>>>;
|
|
2962
|
+
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2963
|
+
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2964
|
+
}>;
|
|
2965
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
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,14 +3076,50 @@ 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<"
|
|
3079
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"renew", "POST", "/v1/me/renew", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3080
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3081
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
3082
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3083
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/me/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3080
3084
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3081
3085
|
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3082
3086
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3083
|
-
readonly
|
|
3084
|
-
readonly
|
|
3085
|
-
readonly
|
|
3086
|
-
readonly
|
|
3087
|
+
readonly turns: Schema.Int;
|
|
3088
|
+
readonly unknownTurns: Schema.Int;
|
|
3089
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3090
|
+
readonly model: Schema.String;
|
|
3091
|
+
readonly input: Schema.Int;
|
|
3092
|
+
readonly output: Schema.Int;
|
|
3093
|
+
readonly cacheWrite: Schema.Int;
|
|
3094
|
+
readonly cacheRead: Schema.Int;
|
|
3095
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3096
|
+
}>>;
|
|
3097
|
+
readonly cost: Schema.Finite;
|
|
3098
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3099
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3100
|
+
readonly harnesses: Schema.$Array<Schema.Struct<{
|
|
3101
|
+
readonly turns: Schema.Int;
|
|
3102
|
+
readonly unknownTurns: Schema.Int;
|
|
3103
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
3104
|
+
readonly model: Schema.String;
|
|
3105
|
+
readonly input: Schema.Int;
|
|
3106
|
+
readonly output: Schema.Int;
|
|
3107
|
+
readonly cacheWrite: Schema.Int;
|
|
3108
|
+
readonly cacheRead: Schema.Int;
|
|
3109
|
+
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3110
|
+
}>>;
|
|
3111
|
+
readonly cost: Schema.Finite;
|
|
3112
|
+
readonly harness: Schema.String;
|
|
3113
|
+
}>>;
|
|
3114
|
+
readonly pricesAsOf: Schema.String;
|
|
3115
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3116
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3117
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3118
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3119
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3120
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3121
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
3122
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3087
3123
|
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3088
3124
|
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"]>;
|
|
3089
3125
|
readonly quantity: Schema.Finite;
|
|
@@ -3148,42 +3184,6 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3148
3184
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
3149
3185
|
}>]>;
|
|
3150
3186
|
}>>;
|
|
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
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<{
|
|
@@ -12680,107 +12680,328 @@ 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<"
|
|
12683
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
12684
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
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
readonly
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
readonly
|
|
12694
|
-
readonly kind: Schema.Literal<"
|
|
12695
|
-
|
|
12696
|
-
readonly kind: Schema.Literal<"check">;
|
|
12697
|
-
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
12698
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
12699
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
12700
|
-
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
12701
|
-
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
12702
|
-
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
12703
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
12704
|
-
}>, Schema.Struct<{
|
|
12705
|
-
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
12706
|
-
}>]>;
|
|
12707
|
-
}>>;
|
|
12708
|
-
}>, Schema.Struct<{
|
|
12709
|
-
readonly kind: Schema.Literal<"review">;
|
|
12710
|
-
}>, Schema.Struct<{
|
|
12711
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
12712
|
-
}>, Schema.Struct<{
|
|
12713
|
-
readonly kind: Schema.Literal<"admin">;
|
|
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">;
|
|
12714
12696
|
}>, Schema.Struct<{
|
|
12715
|
-
readonly kind: Schema.Literal<"
|
|
12716
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
12697
|
+
readonly kind: Schema.Literal<"owner">;
|
|
12717
12698
|
}>]>;
|
|
12718
|
-
readonly
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
}>, Schema.Struct<{
|
|
12723
|
-
readonly kind: Schema.Literal<"floor">;
|
|
12724
|
-
}>, Schema.Struct<{
|
|
12725
|
-
readonly kind: Schema.Literal<"project gate">;
|
|
12726
|
-
readonly line: Schema.optionalKey<Schema.Int>;
|
|
12727
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
12728
|
-
}>, Schema.Struct<{
|
|
12729
|
-
readonly kind: Schema.Literal<"added">;
|
|
12730
|
-
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
12731
|
-
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
12732
|
-
readonly kind: Schema.Literal<"person">;
|
|
12733
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
12734
|
-
}>, Schema.Struct<{
|
|
12735
|
-
readonly kind: Schema.Literal<"agent">;
|
|
12736
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12737
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12738
|
-
}>, Schema.Struct<{
|
|
12739
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
12740
|
-
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")[]>;
|
|
12741
|
-
}>]>;
|
|
12742
|
-
readonly through: Schema.Literals<readonly ["thread", "person", "finding", "workflow"]>;
|
|
12743
|
-
readonly at: Schema.Int;
|
|
12744
|
-
readonly finding: Schema.optionalKey<Schema.Struct<{
|
|
12745
|
-
readonly review: Schema.brand<Schema.TemplateLiteral<readonly ["review_", Schema.String]>, "ReviewId">;
|
|
12746
|
-
readonly finding: Schema.Int;
|
|
12747
|
-
}>>;
|
|
12748
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
12749
|
-
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
12750
|
-
}>, Schema.Struct<{
|
|
12751
|
-
readonly kind: Schema.Literal<"result">;
|
|
12752
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
12753
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
12754
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
12755
|
-
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
12756
|
-
}>, Schema.Struct<{
|
|
12757
|
-
readonly kind: Schema.Literal<"tip">;
|
|
12758
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["tiprun_", Schema.String]>, "TipRunId">;
|
|
12759
|
-
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
12760
|
-
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckName">>;
|
|
12761
|
-
readonly checkRun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
12762
|
-
}>]>>;
|
|
12763
|
-
}>>;
|
|
12764
|
-
readonly reads: Schema.$Array<Schema.Struct<{
|
|
12765
|
-
readonly side: Schema.Literals<readonly ["before", "after"]>;
|
|
12766
|
-
readonly path: Schema.String;
|
|
12767
|
-
readonly object: Schema.NullOr<Schema.String>;
|
|
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;
|
|
12768
12703
|
}>>;
|
|
12769
|
-
readonly
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
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<{
|
|
12766
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
12767
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
12768
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12769
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
12770
|
+
readonly version: Schema.Int;
|
|
12771
|
+
readonly baseline: Schema.Struct<{
|
|
12772
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
12773
|
+
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
12774
|
+
readonly sequence: Schema.Int;
|
|
12775
|
+
readonly depth: Schema.Int;
|
|
12776
|
+
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
12777
|
+
}>;
|
|
12778
|
+
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
12779
|
+
readonly sequence: Schema.Int;
|
|
12780
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
12779
12781
|
}>>;
|
|
12780
|
-
readonly
|
|
12781
|
-
readonly
|
|
12782
|
-
readonly
|
|
12783
|
-
readonly
|
|
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">;
|
|
12916
|
+
}>, Schema.Struct<{
|
|
12917
|
+
readonly kind: Schema.Literal<"check">;
|
|
12918
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
12919
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
12920
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
12921
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
12922
|
+
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
12923
|
+
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
12924
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
12925
|
+
}>, Schema.Struct<{
|
|
12926
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
12927
|
+
}>]>;
|
|
12928
|
+
}>>;
|
|
12929
|
+
}>, Schema.Struct<{
|
|
12930
|
+
readonly kind: Schema.Literal<"review">;
|
|
12931
|
+
}>, Schema.Struct<{
|
|
12932
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
12933
|
+
}>, Schema.Struct<{
|
|
12934
|
+
readonly kind: Schema.Literal<"admin">;
|
|
12935
|
+
}>, Schema.Struct<{
|
|
12936
|
+
readonly kind: Schema.Literal<"permission">;
|
|
12937
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
12938
|
+
}>]>;
|
|
12939
|
+
readonly from: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
12940
|
+
readonly kind: Schema.Literal<"gate">;
|
|
12941
|
+
readonly line: Schema.optionalKey<Schema.Int>;
|
|
12942
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
12943
|
+
}>, Schema.Struct<{
|
|
12944
|
+
readonly kind: Schema.Literal<"floor">;
|
|
12945
|
+
}>, Schema.Struct<{
|
|
12946
|
+
readonly kind: Schema.Literal<"project gate">;
|
|
12947
|
+
readonly line: Schema.optionalKey<Schema.Int>;
|
|
12948
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
12949
|
+
}>, Schema.Struct<{
|
|
12950
|
+
readonly kind: Schema.Literal<"added">;
|
|
12951
|
+
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
12952
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
12953
|
+
readonly kind: Schema.Literal<"person">;
|
|
12954
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
12955
|
+
}>, Schema.Struct<{
|
|
12956
|
+
readonly kind: Schema.Literal<"agent">;
|
|
12957
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
12958
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
12959
|
+
}>, Schema.Struct<{
|
|
12960
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
12961
|
+
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")[]>;
|
|
12962
|
+
}>]>;
|
|
12963
|
+
readonly through: Schema.Literals<readonly ["thread", "person", "finding", "workflow"]>;
|
|
12964
|
+
readonly at: Schema.Int;
|
|
12965
|
+
readonly finding: Schema.optionalKey<Schema.Struct<{
|
|
12966
|
+
readonly review: Schema.brand<Schema.TemplateLiteral<readonly ["review_", Schema.String]>, "ReviewId">;
|
|
12967
|
+
readonly finding: Schema.Int;
|
|
12968
|
+
}>>;
|
|
12969
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
12970
|
+
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
12971
|
+
}>, Schema.Struct<{
|
|
12972
|
+
readonly kind: Schema.Literal<"result">;
|
|
12973
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
12974
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
12975
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
12976
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
12977
|
+
}>, Schema.Struct<{
|
|
12978
|
+
readonly kind: Schema.Literal<"tip">;
|
|
12979
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["tiprun_", Schema.String]>, "TipRunId">;
|
|
12980
|
+
readonly source: Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">;
|
|
12981
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckName">>;
|
|
12982
|
+
readonly checkRun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
12983
|
+
}>]>>;
|
|
12984
|
+
}>>;
|
|
12985
|
+
readonly reads: Schema.$Array<Schema.Struct<{
|
|
12986
|
+
readonly side: Schema.Literals<readonly ["before", "after"]>;
|
|
12987
|
+
readonly path: Schema.String;
|
|
12988
|
+
readonly object: Schema.NullOr<Schema.String>;
|
|
12989
|
+
}>>;
|
|
12990
|
+
readonly projectRevision: Schema.optionalKey<Schema.Int>;
|
|
12991
|
+
readonly projectGate: Schema.optionalKey<Schema.Struct<{
|
|
12992
|
+
readonly revision: Schema.Int;
|
|
12993
|
+
readonly state: Schema.Literals<readonly ["pending", "answered", "failed"]>;
|
|
12994
|
+
readonly why: Schema.NullOr<Schema.String>;
|
|
12995
|
+
readonly reads: Schema.$Array<Schema.Struct<{
|
|
12996
|
+
readonly side: Schema.Literals<readonly ["before", "after"]>;
|
|
12997
|
+
readonly path: Schema.String;
|
|
12998
|
+
readonly object: Schema.NullOr<Schema.String>;
|
|
12999
|
+
}>>;
|
|
13000
|
+
}>>;
|
|
13001
|
+
readonly inPlace: Schema.optionalKey<Schema.Struct<{
|
|
13002
|
+
readonly main: Schema.brand<Schema.String, "CommitOid">;
|
|
13003
|
+
readonly ref0: Schema.NullOr<Schema.String>;
|
|
13004
|
+
readonly state: Schema.Literals<readonly ["pending", "held", "grew"]>;
|
|
12784
13005
|
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
12785
13006
|
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
12786
13007
|
readonly kind: Schema.Literal<"checks">;
|
|
@@ -13292,110 +13513,81 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13292
13513
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13293
13514
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13294
13515
|
}>]>>>;
|
|
13295
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13516
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13296
13517
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13297
13518
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
readonly
|
|
13301
|
-
|
|
13302
|
-
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13303
|
-
readonly kind: Schema.Literal<"project">;
|
|
13304
|
-
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13519
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13520
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13521
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
13522
|
+
readonly kind: Schema.Literal<"checks">;
|
|
13305
13523
|
}>, Schema.Struct<{
|
|
13306
|
-
readonly kind: Schema.Literal<"
|
|
13524
|
+
readonly kind: Schema.Literal<"check">;
|
|
13525
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
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">;
|
|
13542
|
+
}>, Schema.Struct<{
|
|
13543
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13544
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13307
13545
|
}>]>;
|
|
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<{
|
|
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">]>;
|
|
13314
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13315
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13316
13546
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
readonly
|
|
13321
|
-
readonly
|
|
13322
|
-
readonly
|
|
13323
|
-
readonly
|
|
13324
|
-
|
|
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<{
|
|
13547
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13548
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13549
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13550
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
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<{
|
|
13344
13555
|
owner: Schema.Union<readonly [Schema.Union<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
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13557
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13558
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13559
|
+
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13345
13560
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13346
|
-
|
|
13347
|
-
|
|
13348
|
-
|
|
13349
|
-
readonly
|
|
13350
|
-
|
|
13351
|
-
|
|
13352
|
-
|
|
13353
|
-
|
|
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<{
|
|
13561
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13562
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13563
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13564
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13565
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13566
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13567
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13568
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13366
13569
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13367
13570
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13368
13571
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13369
|
-
readonly
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
readonly
|
|
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">>;
|
|
13572
|
+
readonly active: Schema.Struct<{
|
|
13573
|
+
readonly revision: Schema.Int;
|
|
13574
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13575
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13377
13576
|
}>;
|
|
13378
|
-
readonly
|
|
13379
|
-
readonly
|
|
13380
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid"
|
|
13577
|
+
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13578
|
+
readonly revision: Schema.Int;
|
|
13579
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13580
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13381
13581
|
}>>;
|
|
13382
|
-
readonly
|
|
13383
|
-
readonly
|
|
13384
|
-
readonly
|
|
13385
|
-
readonly
|
|
13386
|
-
readonly
|
|
13387
|
-
readonly
|
|
13388
|
-
|
|
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
|
-
}>>;
|
|
13582
|
+
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13583
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13584
|
+
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13585
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13586
|
+
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
13587
|
+
readonly gate: Schema.Int;
|
|
13588
|
+
readonly since: Schema.Int;
|
|
13397
13589
|
}>>;
|
|
13398
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound
|
|
13590
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13399
13591
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13400
13592
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13401
13593
|
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -13421,260 +13613,68 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13421
13613
|
}>]>;
|
|
13422
13614
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13423
13615
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13424
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13616
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13425
13617
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13426
13618
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13619
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13620
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
13427
13621
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13428
|
-
key: Schema.String
|
|
13429
|
-
}>>,
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
readonly
|
|
13434
|
-
|
|
13435
|
-
readonly
|
|
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
|
-
}>;
|
|
13622
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13623
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13624
|
+
readonly kind: Schema.Literal<"none">;
|
|
13625
|
+
}>, Schema.Struct<{
|
|
13626
|
+
readonly kind: Schema.Literal<"github">;
|
|
13627
|
+
readonly branch: Schema.String;
|
|
13628
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13629
|
+
readonly state: Schema.Literal<"on">;
|
|
13472
13630
|
}>, Schema.Struct<{
|
|
13473
|
-
readonly
|
|
13474
|
-
|
|
13475
|
-
readonly
|
|
13476
|
-
readonly
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
}>;
|
|
13631
|
+
readonly state: Schema.Literal<"paused">;
|
|
13632
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13633
|
+
readonly why: Schema.Literal<"diverged">;
|
|
13634
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13635
|
+
}>, Schema.Struct<{
|
|
13636
|
+
readonly why: Schema.Literal<"refused">;
|
|
13637
|
+
readonly said: Schema.String;
|
|
13638
|
+
}>, Schema.Struct<{
|
|
13639
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
13640
|
+
}>]>;
|
|
13641
|
+
}>, Schema.Struct<{
|
|
13642
|
+
readonly state: Schema.Literal<"off">;
|
|
13483
13643
|
}>]>;
|
|
13484
|
-
readonly
|
|
13485
|
-
readonly
|
|
13486
|
-
|
|
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<{
|
|
13644
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13645
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13646
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
|
|
13501
13647
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13502
13648
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13649
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13503
13650
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13504
|
-
|
|
13651
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13652
|
+
line: Schema.Int;
|
|
13505
13653
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13506
|
-
readonly
|
|
13507
|
-
|
|
13654
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13655
|
+
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13656
|
+
readonly line: Schema.Int;
|
|
13657
|
+
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13658
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13659
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13508
13660
|
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
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;
|
|
13549
|
-
}>;
|
|
13550
13661
|
readonly threadNumber: Schema.Int;
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
readonly
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
readonly kind: Schema.Literal<"owner">;
|
|
13568
|
-
}>]>;
|
|
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">;
|
|
13579
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13580
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13581
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
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">;
|
|
13590
|
-
}>]>;
|
|
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">;
|
|
13602
|
-
}>, Schema.Struct<{
|
|
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
|
-
}>>;
|
|
13615
|
-
}>, Schema.Struct<{
|
|
13616
|
-
readonly kind: Schema.Literal<"review">;
|
|
13617
|
-
}>, Schema.Struct<{
|
|
13618
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
13619
|
-
}>, Schema.Struct<{
|
|
13620
|
-
readonly kind: Schema.Literal<"admin">;
|
|
13621
|
-
}>, Schema.Struct<{
|
|
13622
|
-
readonly kind: Schema.Literal<"permission">;
|
|
13623
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13624
|
-
}>]>;
|
|
13625
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
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>;
|
|
13662
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13663
|
+
readonly turn: Schema.Int;
|
|
13664
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13665
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
13666
|
+
}>>;
|
|
13667
|
+
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13668
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13669
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13670
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13671
|
+
readonly step: Schema.Struct<{
|
|
13672
|
+
readonly name: Schema.String;
|
|
13673
|
+
readonly count: Schema.Int;
|
|
13674
|
+
readonly attempt: Schema.Int;
|
|
13675
|
+
}>;
|
|
13676
|
+
}>>;
|
|
13677
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
|
|
13678
13678
|
/**
|
|
13679
13679
|
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
13680
13680
|
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
@@ -17301,122 +17301,288 @@ 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<"start", "POST", "/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">>;
|
|
17307
17318
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17311
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17319
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17320
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17312
17321
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17313
17322
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17314
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17315
17323
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17316
17324
|
readonly rerun: Schema.Int;
|
|
17317
17325
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17318
|
-
readonly
|
|
17319
|
-
readonly
|
|
17320
|
-
readonly
|
|
17321
|
-
readonly
|
|
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
|
-
}>>;
|
|
17326
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17327
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17328
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17329
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17387
17330
|
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17388
17331
|
}>, Schema.Struct<{
|
|
17389
17332
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17390
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17391
17333
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17392
17334
|
readonly rerun: Schema.Int;
|
|
17393
17335
|
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17394
|
-
readonly
|
|
17395
|
-
readonly
|
|
17396
|
-
readonly
|
|
17397
|
-
readonly
|
|
17398
|
-
readonly
|
|
17399
|
-
readonly
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
|
|
17336
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17337
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17338
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17339
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17340
|
+
readonly state: Schema.Literal<"ended">;
|
|
17341
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17342
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17343
|
+
}>, Schema.Struct<{
|
|
17344
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17345
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17346
|
+
readonly rerun: Schema.Int;
|
|
17347
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17348
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17349
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17350
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17351
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17352
|
+
readonly state: Schema.Literal<"ended">;
|
|
17353
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17354
|
+
}>]>>;
|
|
17355
|
+
}>, Schema.Struct<{
|
|
17356
|
+
readonly waiting: Schema.Struct<{
|
|
17357
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17358
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17359
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17360
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17361
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17362
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17363
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17364
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17365
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17366
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
17367
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17368
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17369
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17370
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17371
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
17372
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17373
|
+
readonly kind: Schema.Literal<"person">;
|
|
17374
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17375
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17376
|
+
}>, Schema.Struct<{
|
|
17377
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17378
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17379
|
+
}>, Schema.Struct<{
|
|
17380
|
+
readonly kind: Schema.Literal<"holders">;
|
|
17381
|
+
readonly permission: Schema.String;
|
|
17382
|
+
}>]>>;
|
|
17383
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
17384
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17385
|
+
}>>;
|
|
17386
|
+
}>>;
|
|
17387
|
+
}>;
|
|
17388
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
|
|
17389
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17390
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17391
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17392
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17393
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17394
|
+
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17395
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17396
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17397
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17398
|
+
readonly rerun: Schema.Int;
|
|
17399
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17400
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17401
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17402
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17403
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17404
|
+
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17405
|
+
}>, Schema.Struct<{
|
|
17406
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17407
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17408
|
+
readonly rerun: Schema.Int;
|
|
17409
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17410
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17411
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17412
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17413
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17414
|
+
readonly state: Schema.Literal<"ended">;
|
|
17415
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17416
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17417
|
+
}>, Schema.Struct<{
|
|
17418
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17419
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17420
|
+
readonly rerun: Schema.Int;
|
|
17421
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17422
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17423
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17424
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17425
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17426
|
+
readonly state: Schema.Literal<"ended">;
|
|
17427
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17428
|
+
}>]>>;
|
|
17429
|
+
}>, Schema.Struct<{
|
|
17430
|
+
readonly waiting: Schema.Struct<{
|
|
17431
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17432
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17433
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17434
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17435
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17436
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17437
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17438
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17439
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17440
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
17441
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17442
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17443
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17444
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17445
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
17446
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17447
|
+
readonly kind: Schema.Literal<"person">;
|
|
17448
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17449
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17450
|
+
}>, Schema.Struct<{
|
|
17451
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17452
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17453
|
+
}>, Schema.Struct<{
|
|
17454
|
+
readonly kind: Schema.Literal<"holders">;
|
|
17455
|
+
readonly permission: Schema.String;
|
|
17456
|
+
}>]>>;
|
|
17457
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
17458
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17459
|
+
}>>;
|
|
17460
|
+
}>>;
|
|
17461
|
+
}>;
|
|
17462
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
17463
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17464
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17465
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17466
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17467
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17468
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17469
|
+
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
17470
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17471
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17472
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17473
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17474
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
17475
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
17476
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17477
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
17478
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17479
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17480
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17481
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17482
|
+
readonly rerun: Schema.Int;
|
|
17483
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17484
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17485
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17486
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
17487
|
+
readonly startedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17488
|
+
readonly endedAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
17489
|
+
readonly starters: Schema.$Array<Schema.Struct<{
|
|
17490
|
+
readonly actor: Schema.Union<readonly [Schema.Struct<{
|
|
17491
|
+
readonly kind: Schema.Literal<"person">;
|
|
17492
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
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<{
|
|
17420
17586
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
17421
17587
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
17422
17588
|
}>>;
|
|
@@ -17570,309 +17736,17 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
17570
17736
|
readonly tree: Schema.Boolean;
|
|
17571
17737
|
readonly browser: Schema.Boolean;
|
|
17572
17738
|
}>>;
|
|
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<{
|
|
17716
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17717
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17718
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17719
|
-
readonly rerun: Schema.Int;
|
|
17720
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17721
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17722
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17723
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17724
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17725
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17726
|
-
}>, Schema.Struct<{
|
|
17727
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17728
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17729
|
-
readonly rerun: Schema.Int;
|
|
17730
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17731
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17732
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17733
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17734
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17735
|
-
readonly state: Schema.Literal<"ended">;
|
|
17736
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17737
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17738
|
-
}>, Schema.Struct<{
|
|
17739
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17740
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17741
|
-
readonly rerun: Schema.Int;
|
|
17742
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17743
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17744
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17745
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17746
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17747
|
-
readonly state: Schema.Literal<"ended">;
|
|
17748
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17749
|
-
}>]>>;
|
|
17750
|
-
}>, Schema.Struct<{
|
|
17751
|
-
readonly waiting: Schema.Struct<{
|
|
17752
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17753
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17754
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17755
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17756
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17757
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17758
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17759
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17760
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17761
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17762
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17763
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17764
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17765
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17766
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17767
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17768
|
-
readonly kind: Schema.Literal<"person">;
|
|
17769
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17770
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17771
|
-
}>, Schema.Struct<{
|
|
17772
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17773
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17774
|
-
}>, Schema.Struct<{
|
|
17775
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17776
|
-
readonly permission: Schema.String;
|
|
17777
|
-
}>]>>;
|
|
17778
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17779
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17780
|
-
}>>;
|
|
17781
|
-
}>>;
|
|
17782
|
-
}>;
|
|
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<{
|
|
17784
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
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">]>;
|
|
17786
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17787
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17788
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
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<{
|
|
17808
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17809
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17810
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17811
|
-
readonly rerun: Schema.Int;
|
|
17812
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17813
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17814
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17815
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17816
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17817
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17818
|
-
}>, Schema.Struct<{
|
|
17819
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17820
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17821
|
-
readonly rerun: Schema.Int;
|
|
17822
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17823
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17824
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17825
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17826
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17827
|
-
readonly state: Schema.Literal<"ended">;
|
|
17828
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17829
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17830
|
-
}>, Schema.Struct<{
|
|
17831
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17832
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17833
|
-
readonly rerun: Schema.Int;
|
|
17834
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17835
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17836
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17837
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17838
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17839
|
-
readonly state: Schema.Literal<"ended">;
|
|
17840
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17841
|
-
}>]>>;
|
|
17842
|
-
}>, Schema.Struct<{
|
|
17843
|
-
readonly waiting: Schema.Struct<{
|
|
17844
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17845
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17846
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17847
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17848
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17849
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17850
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17851
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17852
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17853
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
17854
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17855
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17856
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17857
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17858
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
17859
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17860
|
-
readonly kind: Schema.Literal<"person">;
|
|
17861
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17862
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17863
|
-
}>, Schema.Struct<{
|
|
17864
|
-
readonly kind: Schema.Literal<"agent">;
|
|
17865
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17866
|
-
}>, Schema.Struct<{
|
|
17867
|
-
readonly kind: Schema.Literal<"holders">;
|
|
17868
|
-
readonly permission: Schema.String;
|
|
17869
|
-
}>]>>;
|
|
17870
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
17871
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17872
|
-
}>>;
|
|
17873
|
-
}>>;
|
|
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>;
|
|
17874
17748
|
}>;
|
|
17875
|
-
}
|
|
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<{
|
|
17876
17750
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17877
17751
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17878
17752
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -18151,7 +18025,133 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18151
18025
|
}>, Schema.Struct<{
|
|
18152
18026
|
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18153
18027
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18154
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never
|
|
18028
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
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>;
|
|
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 request: Schema.String;
|
|
18170
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18171
|
-
readonly client: Schema.String;
|
|
18172
|
-
readonly origin: Schema.String;
|
|
18173
|
-
readonly returnsTo: Schema.String;
|
|
18174
|
-
readonly says: Schema.optionalKey<Schema.String>;
|
|
18175
|
-
readonly expiresAt: Schema.String;
|
|
18176
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/owners/:owner/client-grants/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18177
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18178
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18179
|
-
readonly request: Schema.String;
|
|
18180
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18181
|
-
readonly redirect: Schema.String;
|
|
18182
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18166
|
+
declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants", HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", 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 client: Schema.String;
|
|
@@ -18195,7 +18179,23 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18195
18179
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18196
18180
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18197
18181
|
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<"
|
|
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<{
|
|
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 request: Schema.String;
|
|
18186
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18187
|
+
readonly client: Schema.String;
|
|
18188
|
+
readonly origin: Schema.String;
|
|
18189
|
+
readonly returnsTo: Schema.String;
|
|
18190
|
+
readonly says: Schema.optionalKey<Schema.String>;
|
|
18191
|
+
readonly expiresAt: Schema.String;
|
|
18192
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/owners/:owner/client-grants/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18193
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18194
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18195
|
+
readonly request: Schema.String;
|
|
18196
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18197
|
+
readonly redirect: Schema.String;
|
|
18198
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"finish", "POST", "/v1/owners/:owner/client-grants/:grant/finish", Schema.toCodecStringTree<Schema.Struct<{
|
|
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,23 +18211,26 @@ 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
|
-
|
|
18216
|
-
}>>, never, never, Schema.
|
|
18214
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18215
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18216
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18217
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
18218
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18219
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18220
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18221
|
+
}>>;
|
|
18222
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18223
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18224
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18225
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18226
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18217
18227
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18218
18228
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18219
|
-
readonly
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
|
|
18224
|
-
readonly agent: Schema.Struct<{
|
|
18225
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18226
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18227
|
-
}>;
|
|
18228
|
-
}>]>;
|
|
18229
|
-
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
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<{
|
|
18229
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18230
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18231
|
+
readonly displayName: Schema.String;
|
|
18232
|
+
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18233
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18231
18234
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18232
18235
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18233
18236
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18270,16 +18273,23 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18270
18273
|
readonly bytes: Schema.Int;
|
|
18271
18274
|
}>>>;
|
|
18272
18275
|
}>>;
|
|
18273
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18274
|
-
|
|
18275
|
-
}>>, never, never, Schema.
|
|
18276
|
-
|
|
18277
|
-
|
|
18278
|
-
|
|
18279
|
-
readonly
|
|
18280
|
-
|
|
18281
|
-
|
|
18282
|
-
|
|
18276
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18277
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18278
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18279
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18280
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18281
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18282
|
+
readonly kind: Schema.Literal<"person">;
|
|
18283
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18284
|
+
}>, Schema.Struct<{
|
|
18285
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18286
|
+
readonly agent: Schema.Struct<{
|
|
18287
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18288
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18289
|
+
}>;
|
|
18290
|
+
}>]>;
|
|
18291
|
+
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18292
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"usage", "GET", "/v1/owners/:owner/usage", Schema.toCodecStringTree<Schema.Struct<{
|
|
18283
18293
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18284
18294
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18285
18295
|
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
@@ -18454,40 +18464,13 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18454
18464
|
}>>;
|
|
18455
18465
|
}>;
|
|
18456
18466
|
readonly pricesAsOf: Schema.String;
|
|
18457
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never
|
|
18458
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18459
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18460
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
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>;
|
|
18467
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18468
18468
|
/**
|
|
18469
18469
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18470
18470
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
18471
18471
|
*/
|
|
18472
18472
|
declare class OrganizationsGroup extends OrganizationsGroup_base {}
|
|
18473
|
-
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"
|
|
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<{
|
|
18473
|
+
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
18491
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">]>;
|
|
18492
18475
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18493
18476
|
cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
@@ -18526,59 +18509,82 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
18526
18509
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18527
18510
|
}>;
|
|
18528
18511
|
}>]>;
|
|
18529
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
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"]>;
|
|
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
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18535
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18536
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18537
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18538
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18539
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
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<{
|
|
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">]>;
|
|
18542
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18533
|
+
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"received", "GET", "/v1/me/invitations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18543
18534
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18544
18535
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18545
18536
|
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18546
18537
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18547
|
-
readonly
|
|
18548
|
-
readonly
|
|
18538
|
+
readonly organization: Schema.Struct<{
|
|
18539
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18549
18540
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18550
18541
|
}>;
|
|
18551
18542
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18552
|
-
readonly sentBy: Schema.Struct<{
|
|
18553
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18554
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18555
|
-
}>;
|
|
18556
18543
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18557
18544
|
}>>;
|
|
18558
18545
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18559
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable
|
|
18546
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18547
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18548
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18560
18549
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18561
18550
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18562
18551
|
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
18563
18552
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18564
|
-
readonly
|
|
18565
|
-
readonly
|
|
18553
|
+
readonly invitee: Schema.Struct<{
|
|
18554
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18566
18555
|
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18567
18556
|
}>;
|
|
18568
18557
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18558
|
+
readonly sentBy: Schema.Struct<{
|
|
18559
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18560
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18561
|
+
}>;
|
|
18569
18562
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18570
18563
|
}>>;
|
|
18571
18564
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
18572
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18565
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
18566
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18567
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18568
|
+
readonly invitee: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18569
|
+
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
18570
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18571
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18572
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18573
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18574
|
+
readonly invitee: Schema.Struct<{
|
|
18575
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18576
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18577
|
+
}>;
|
|
18578
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18579
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
18580
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
|
|
18581
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18573
18582
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18574
18583
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18575
18584
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18576
18585
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18577
18586
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18578
|
-
|
|
18579
|
-
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18580
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18581
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18587
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
18582
18588
|
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18583
18589
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18584
18590
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -18587,28 +18593,71 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
18587
18593
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18588
18594
|
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18589
18595
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18590
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18591
|
-
|
|
18592
|
-
}>>, never, Schema.
|
|
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
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"decline", "POST", "/v1/me/invitations/:invitation/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
18597
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18598
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18596
18599
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18597
18600
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18598
18601
|
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
18599
|
-
readonly
|
|
18600
|
-
|
|
18601
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18602
|
-
}>;
|
|
18602
|
+
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18603
|
+
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
18603
18604
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18604
|
-
|
|
18605
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never>, false>;
|
|
18605
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never>, false>;
|
|
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.
|
|
18609
18609
|
*/
|
|
18610
18610
|
declare class InvitationsGroup extends InvitationsGroup_base {}
|
|
18611
|
-
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18611
|
+
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18612
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18613
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18614
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18615
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
18616
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18617
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
18618
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
18619
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
18620
|
+
readonly kind: Schema.Literal<"owner">;
|
|
18621
|
+
}>, Schema.Struct<{
|
|
18622
|
+
readonly kind: Schema.Literal<"project">;
|
|
18623
|
+
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
18624
|
+
}>, Schema.Struct<{
|
|
18625
|
+
readonly kind: Schema.Literal<"thread">;
|
|
18626
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18627
|
+
}>, Schema.Struct<{
|
|
18628
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18629
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18630
|
+
}>]>;
|
|
18631
|
+
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
18632
|
+
readonly kind: Schema.Literal<"person">;
|
|
18633
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18634
|
+
}>, Schema.Struct<{
|
|
18635
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18636
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
18637
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18638
|
+
}>, Schema.Struct<{
|
|
18639
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18640
|
+
readonly agent: Schema.Struct<{
|
|
18641
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18642
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18643
|
+
}>;
|
|
18644
|
+
}>]>;
|
|
18645
|
+
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
18646
|
+
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
18647
|
+
readonly kind: Schema.Literal<"person">;
|
|
18648
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18649
|
+
}>, Schema.Struct<{
|
|
18650
|
+
readonly kind: Schema.Literal<"agent">;
|
|
18651
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18652
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18653
|
+
}>, Schema.Struct<{
|
|
18654
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
18655
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
18656
|
+
}>]>;
|
|
18657
|
+
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
18658
|
+
}>>;
|
|
18659
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
18660
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18612
18661
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18613
18662
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18614
18663
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18664,56 +18713,7 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
18664
18713
|
}>;
|
|
18665
18714
|
}>]>;
|
|
18666
18715
|
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<"
|
|
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<{
|
|
18716
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"set", "PUT", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18717
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">]>;
|
|
18718
18718
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18719
18719
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -18777,10 +18777,13 @@ 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<"add", "POST", "/v1/owners/:owner/agents", 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
|
-
|
|
18782
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18783
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18784
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18785
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18786
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18784
18787
|
readonly agent: Schema.Struct<{
|
|
18785
18788
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18786
18789
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18788,25 +18791,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18788
18791
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18789
18792
|
readonly generation: Schema.Int;
|
|
18790
18793
|
readonly turnedOff: Schema.Boolean;
|
|
18791
|
-
|
|
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<{
|
|
18794
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
18810
18795
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18811
18796
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18812
18797
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -18832,13 +18817,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18832
18817
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18833
18818
|
readonly generation: Schema.Int;
|
|
18834
18819
|
readonly turnedOff: Schema.Boolean;
|
|
18835
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18820
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
|
|
18836
18821
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18837
|
-
|
|
18838
|
-
|
|
18839
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18840
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18841
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18822
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
18823
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18842
18824
|
readonly agent: Schema.Struct<{
|
|
18843
18825
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18844
18826
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -18846,7 +18828,25 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
18846
18828
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18847
18829
|
readonly generation: Schema.Int;
|
|
18848
18830
|
readonly turnedOff: Schema.Boolean;
|
|
18849
|
-
|
|
18831
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18832
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
18833
|
+
owner: Schema.Union<readonly [Schema.Union<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>;
|
|
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,10 +18854,15 @@ 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<"add", "POST", "/v1/owners/:owner/authorizations", 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
|
-
|
|
18859
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18860
|
+
readonly agent: Schema.Struct<{
|
|
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<{
|
|
18861
18866
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18862
18867
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18863
18868
|
readonly agent: Schema.Struct<{
|
|
@@ -18870,15 +18875,10 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
18870
18875
|
}>;
|
|
18871
18876
|
readonly generation: Schema.Int;
|
|
18872
18877
|
readonly authorized: Schema.Boolean;
|
|
18873
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
18878
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
18874
18879
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18875
|
-
|
|
18876
|
-
|
|
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<{
|
|
18880
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18881
|
+
}>>, never, never, 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 DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, 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<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
18902
|
+
declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
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
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18921
18905
|
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
@@ -18958,6 +18942,22 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
18958
18942
|
}>;
|
|
18959
18943
|
readonly targetGeneration: Schema.Int;
|
|
18960
18944
|
readonly turnedOff: Schema.Boolean;
|
|
18945
|
+
}>>, 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<{
|
|
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
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
|
|
@@ -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-B4mIKRqo.d.mts.map
|