@ref0/sdk 0.11.0 → 0.12.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.
|
@@ -1244,7 +1244,7 @@ declare const ConnectChosen: Schema.Struct<{
|
|
|
1244
1244
|
}>>;
|
|
1245
1245
|
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1246
1246
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1247
|
-
readonly state: Schema.Literals<readonly ["replaces", "
|
|
1247
|
+
readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
|
|
1248
1248
|
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1249
1249
|
}>>;
|
|
1250
1250
|
}>;
|
|
@@ -1282,7 +1282,7 @@ declare const ConnectFolderOption: Schema.Union<readonly [Schema.Struct<{
|
|
|
1282
1282
|
}>>;
|
|
1283
1283
|
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1284
1284
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1285
|
-
readonly state: Schema.Literals<readonly ["replaces", "
|
|
1285
|
+
readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
|
|
1286
1286
|
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1287
1287
|
}>>;
|
|
1288
1288
|
}>;
|
|
@@ -1330,7 +1330,7 @@ declare const ConnectOptions: Schema.Struct<{
|
|
|
1330
1330
|
}>>;
|
|
1331
1331
|
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1332
1332
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1333
|
-
readonly state: Schema.Literals<readonly ["replaces", "
|
|
1333
|
+
readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
|
|
1334
1334
|
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1335
1335
|
}>>;
|
|
1336
1336
|
}>;
|
|
@@ -1366,7 +1366,7 @@ declare const FoldersConnected: Schema.Struct<{
|
|
|
1366
1366
|
readonly path: Schema.String;
|
|
1367
1367
|
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
1368
1368
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
1369
|
-
readonly state: Schema.Literals<readonly ["replaces", "
|
|
1369
|
+
readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
|
|
1370
1370
|
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
1371
1371
|
}>>;
|
|
1372
1372
|
}>>;
|
|
@@ -2250,29 +2250,15 @@ declare const WelcomeGroup_base: HttpApiGroup.HttpApiGroup<"welcome", HttpApiEnd
|
|
|
2250
2250
|
}>]>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof AuthorityUnavailable>, SignedIn, never>, false>;
|
|
2251
2251
|
/** Where a signed-in person stands, and naming their owner when their GitHub login couldn't. */
|
|
2252
2252
|
declare class WelcomeGroup extends WelcomeGroup_base {}
|
|
2253
|
-
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2254
|
-
readonly
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
readonly
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
|
|
2263
|
-
readonly publicKey: Schema.optional<Schema.String>;
|
|
2264
|
-
}>;
|
|
2265
|
-
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2266
|
-
readonly clientExtensionResults: Schema.Struct<{
|
|
2267
|
-
readonly credProps: Schema.optionalKey<Schema.Struct<{
|
|
2268
|
-
readonly rk: Schema.optionalKey<Schema.Boolean>;
|
|
2269
|
-
}>>;
|
|
2270
|
-
}>;
|
|
2271
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2272
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2273
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2274
|
-
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2275
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2253
|
+
declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/me/passkeys", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2254
|
+
readonly passkeys: Schema.$Array<Schema.Struct<{
|
|
2255
|
+
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2256
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
2257
|
+
readonly createdAt: Schema.String;
|
|
2258
|
+
readonly backedUp: Schema.Boolean;
|
|
2259
|
+
}>>;
|
|
2260
|
+
readonly approvesHere: Schema.Boolean;
|
|
2261
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"firstOptions", "POST", "/v1/me/passkeys/first/options", never, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2276
2262
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2277
2263
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2278
2264
|
readonly rp: Schema.Struct<{
|
|
@@ -2303,15 +2289,29 @@ declare const PasskeysGroup_base: HttpApiGroup.HttpApiGroup<"passkeys", HttpApiE
|
|
|
2303
2289
|
}>>;
|
|
2304
2290
|
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2305
2291
|
readonly attestation: Schema.optionalKey<Schema.Literals<readonly ["direct", "enterprise", "indirect", "none"]>>;
|
|
2306
|
-
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2307
|
-
readonly
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
readonly
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2292
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enrolFirst", "POST", "/v1/me/passkeys/first", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2293
|
+
readonly id: Schema.String;
|
|
2294
|
+
readonly rawId: Schema.String;
|
|
2295
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2296
|
+
readonly response: Schema.Struct<{
|
|
2297
|
+
readonly clientDataJSON: Schema.String;
|
|
2298
|
+
readonly attestationObject: Schema.String;
|
|
2299
|
+
readonly authenticatorData: Schema.optional<Schema.String>;
|
|
2300
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.Literals<readonly ["ble", "cable", "hybrid", "internal", "nfc", "smart-card", "usb"]>>>;
|
|
2301
|
+
readonly publicKeyAlgorithm: Schema.optional<Schema.Int>;
|
|
2302
|
+
readonly publicKey: Schema.optional<Schema.String>;
|
|
2303
|
+
}>;
|
|
2304
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2305
|
+
readonly clientExtensionResults: Schema.Struct<{
|
|
2306
|
+
readonly credProps: Schema.optionalKey<Schema.Struct<{
|
|
2307
|
+
readonly rk: Schema.optionalKey<Schema.Boolean>;
|
|
2308
|
+
}>>;
|
|
2309
|
+
}>;
|
|
2310
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2311
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2312
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2313
|
+
readonly passkey: Schema.brand<Schema.TemplateLiteral<readonly ["passkey_", Schema.String]>, "PasskeyId">;
|
|
2314
|
+
}>>, Schema.toCodecJson<typeof AuthorityUnavailable | typeof PasskeyRefused>, Authorization, never>, false>;
|
|
2315
2315
|
/**
|
|
2316
2316
|
* A person's passkeys: listing them, and enrolling the first, which signing in asks for straight
|
|
2317
2317
|
* away and a browser session does on its own, once. Every passkey after is an approval.
|
|
@@ -2354,7 +2354,19 @@ declare const TerminalApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"terminalAp
|
|
|
2354
2354
|
* what it came to with the approval's secret. Its person answers on their own page, by its code.
|
|
2355
2355
|
*/
|
|
2356
2356
|
declare class TerminalApprovalsGroup extends TerminalApprovalsGroup_base {}
|
|
2357
|
-
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2357
|
+
declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/agents/:agent/attachments/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
2358
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2359
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2360
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2361
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2362
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2363
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2364
|
+
readonly credential: Schema.Struct<{
|
|
2365
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2366
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2367
|
+
}>;
|
|
2368
|
+
readonly childrenRevoked: Schema.Int;
|
|
2369
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents/:agent/attachments", Schema.toCodecStringTree<Schema.Struct<{
|
|
2358
2370
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2359
2371
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2360
2372
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -2371,19 +2383,7 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"attachments", Ht
|
|
|
2371
2383
|
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
2372
2384
|
}>>;
|
|
2373
2385
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2374
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never
|
|
2375
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
2376
|
-
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
2377
|
-
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2378
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2379
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2380
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
2381
|
-
readonly credential: Schema.Struct<{
|
|
2382
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2383
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2384
|
-
}>;
|
|
2385
|
-
readonly childrenRevoked: Schema.Int;
|
|
2386
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof AttachmentNotFound>, Authorization, never>, false>;
|
|
2386
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
2387
2387
|
/**
|
|
2388
2388
|
* An agent's live attachments, by approval: listed, every one to an admin and their own to anyone
|
|
2389
2389
|
* else; and one of the caller's own disconnected, revoking its credential, which the Worker checks
|
|
@@ -2420,7 +2420,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2420
2420
|
}>>;
|
|
2421
2421
|
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2422
2422
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2423
|
-
readonly state: Schema.Literals<readonly ["replaces", "
|
|
2423
|
+
readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
|
|
2424
2424
|
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2425
2425
|
}>>;
|
|
2426
2426
|
}>>;
|
|
@@ -2465,7 +2465,7 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2465
2465
|
}>>;
|
|
2466
2466
|
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2467
2467
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2468
|
-
readonly state: Schema.Literals<readonly ["replaces", "
|
|
2468
|
+
readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
|
|
2469
2469
|
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2470
2470
|
}>>;
|
|
2471
2471
|
}>>;
|
|
@@ -2517,311 +2517,374 @@ declare const MachineAttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"machineAt
|
|
|
2517
2517
|
* confirming it saved the grant, or aborting, with its collecting secret.
|
|
2518
2518
|
*/
|
|
2519
2519
|
declare class MachineAttachmentsGroup extends MachineAttachmentsGroup_base {}
|
|
2520
|
-
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
readonly
|
|
2530
|
-
readonly
|
|
2531
|
-
readonly
|
|
2532
|
-
readonly
|
|
2533
|
-
readonly
|
|
2534
|
-
}>;
|
|
2535
|
-
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
2536
|
-
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
2537
|
-
}>;
|
|
2538
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
2539
|
-
readonly preview: Schema.optionalKey<Schema.Struct<{
|
|
2540
|
-
readonly kind: Schema.Literals<readonly ["workflow", "attached workflow"]>;
|
|
2541
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2542
|
-
}>>;
|
|
2543
|
-
readonly statement: Schema.optionalKey<Schema.Struct<{
|
|
2544
|
-
readonly hash: Schema.String;
|
|
2545
|
-
}>>;
|
|
2546
|
-
}>, Schema.Struct<{
|
|
2547
|
-
readonly answer: Schema.Literal<"no">;
|
|
2548
|
-
readonly permission: Schema.Literal<"deny">;
|
|
2549
|
-
readonly assertion: Schema.Struct<{
|
|
2550
|
-
readonly id: Schema.String;
|
|
2551
|
-
readonly rawId: Schema.String;
|
|
2552
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2553
|
-
readonly response: Schema.Struct<{
|
|
2554
|
-
readonly clientDataJSON: Schema.String;
|
|
2555
|
-
readonly authenticatorData: Schema.String;
|
|
2556
|
-
readonly signature: Schema.String;
|
|
2557
|
-
readonly userHandle: Schema.optional<Schema.String>;
|
|
2520
|
+
declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/approvals", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2521
|
+
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
2522
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2523
|
+
readonly says: Schema.String;
|
|
2524
|
+
readonly fields: Schema.$Array<Schema.Struct<{
|
|
2525
|
+
readonly name: Schema.String;
|
|
2526
|
+
readonly value: Schema.String;
|
|
2527
|
+
readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
|
|
2528
|
+
}>>;
|
|
2529
|
+
readonly command: Schema.Struct<{
|
|
2530
|
+
readonly endpoint: Schema.String;
|
|
2531
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2532
|
+
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2533
|
+
readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2558
2534
|
}>;
|
|
2559
|
-
readonly
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
}>, Schema.Struct<{
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
readonly state: Schema.Literal<"waiting">;
|
|
2580
|
-
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2581
|
-
}>, Schema.Struct<{
|
|
2582
|
-
readonly state: Schema.Literal<"approved">;
|
|
2583
|
-
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
2584
|
-
}>, Schema.Struct<{
|
|
2585
|
-
readonly state: Schema.Literal<"refused">;
|
|
2586
|
-
}>, Schema.Struct<{
|
|
2587
|
-
readonly state: Schema.Literal<"expired">;
|
|
2588
|
-
}>, Schema.Struct<{
|
|
2589
|
-
readonly status: Schema.Int;
|
|
2590
|
-
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2591
|
-
readonly state: Schema.Literal<"ran">;
|
|
2592
|
-
readonly endpoint: Schema.String;
|
|
2593
|
-
}>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"find", "POST", "/v1/approvals/find", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2594
|
-
readonly code: Schema.String;
|
|
2595
|
-
}>, Schema.Struct<{
|
|
2596
|
-
readonly link: Schema.String;
|
|
2597
|
-
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2598
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
2599
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2600
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2601
|
-
readonly says: Schema.String;
|
|
2602
|
-
readonly fields: Schema.$Array<Schema.Struct<{
|
|
2603
|
-
readonly name: Schema.String;
|
|
2604
|
-
readonly value: Schema.String;
|
|
2605
|
-
readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
|
|
2606
|
-
}>>;
|
|
2607
|
-
readonly command: Schema.Struct<{
|
|
2608
|
-
readonly endpoint: Schema.String;
|
|
2609
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2610
|
-
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2611
|
-
readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2612
|
-
}>;
|
|
2613
|
-
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
2614
|
-
readonly kind: Schema.Literal<"terminal">;
|
|
2615
|
-
}>, Schema.Struct<{
|
|
2616
|
-
readonly kind: Schema.Literal<"page">;
|
|
2617
|
-
}>, Schema.Struct<{
|
|
2618
|
-
readonly kind: Schema.Literal<"agent">;
|
|
2619
|
-
readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2620
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2621
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
2622
|
-
readonly attachment: Schema.optionalKey<Schema.Struct<{
|
|
2623
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2624
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2535
|
+
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
2536
|
+
readonly kind: Schema.Literal<"terminal">;
|
|
2537
|
+
}>, Schema.Struct<{
|
|
2538
|
+
readonly kind: Schema.Literal<"page">;
|
|
2539
|
+
}>, Schema.Struct<{
|
|
2540
|
+
readonly kind: Schema.Literal<"agent">;
|
|
2541
|
+
readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2542
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
2543
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
2544
|
+
readonly attachment: Schema.optionalKey<Schema.Struct<{
|
|
2545
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2546
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2547
|
+
}>>;
|
|
2548
|
+
}>]>;
|
|
2549
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2550
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2551
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2552
|
+
readonly agentPermission: Schema.optionalKey<Schema.Struct<{
|
|
2553
|
+
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"]>;
|
|
2554
|
+
readonly mayAllow: Schema.Boolean;
|
|
2625
2555
|
}>>;
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
readonly
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
readonly
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
readonly
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2666
|
-
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2667
|
-
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2668
|
-
}>>;
|
|
2669
|
-
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2670
|
-
readonly cron: Schema.String;
|
|
2671
|
-
readonly timezone: Schema.String;
|
|
2672
|
-
}>>;
|
|
2673
|
-
}>;
|
|
2674
|
-
readonly permissions: Schema.Struct<{
|
|
2675
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2676
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2677
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2678
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2679
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2680
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2681
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2682
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2683
|
-
readonly budgets: Schema.Struct<{
|
|
2684
|
-
readonly requests: Schema.Int;
|
|
2685
|
-
readonly asks: Schema.Int;
|
|
2686
|
-
readonly threads: Schema.Int;
|
|
2687
|
-
readonly calls: Schema.Int;
|
|
2688
|
-
readonly forks: Schema.Int;
|
|
2689
|
-
readonly pushes: Schema.Int;
|
|
2690
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2556
|
+
readonly preview: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2557
|
+
readonly kind: Schema.Literal<"workflow">;
|
|
2558
|
+
readonly repo: Schema.String;
|
|
2559
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2560
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2561
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2562
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2563
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2564
|
+
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
2565
|
+
readonly where: Schema.Struct<{
|
|
2566
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2567
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2568
|
+
}>>;
|
|
2569
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2570
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2571
|
+
}>>;
|
|
2572
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2573
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2574
|
+
}>>;
|
|
2575
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2576
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2577
|
+
}>>;
|
|
2578
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2579
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2580
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2581
|
+
}>>;
|
|
2582
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2583
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2584
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2585
|
+
}>>;
|
|
2586
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2587
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2588
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2589
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2590
|
+
}>>;
|
|
2591
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2592
|
+
readonly cron: Schema.String;
|
|
2593
|
+
readonly timezone: Schema.String;
|
|
2594
|
+
}>>;
|
|
2691
2595
|
}>;
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
readonly calls: Schema.Int;
|
|
2711
|
-
readonly forks: Schema.Int;
|
|
2712
|
-
readonly pushes: Schema.Int;
|
|
2713
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2596
|
+
readonly permissions: Schema.Struct<{
|
|
2597
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2598
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2599
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2600
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2601
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2602
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2603
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2604
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2605
|
+
readonly budgets: Schema.Struct<{
|
|
2606
|
+
readonly requests: Schema.Int;
|
|
2607
|
+
readonly asks: Schema.Int;
|
|
2608
|
+
readonly threads: Schema.Int;
|
|
2609
|
+
readonly calls: Schema.Int;
|
|
2610
|
+
readonly forks: Schema.Int;
|
|
2611
|
+
readonly pushes: Schema.Int;
|
|
2612
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2613
|
+
}>;
|
|
2714
2614
|
}>;
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2738
|
-
}>>;
|
|
2739
|
-
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2740
|
-
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2741
|
-
}>>;
|
|
2742
|
-
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2743
|
-
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2744
|
-
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2745
|
-
}>>;
|
|
2746
|
-
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2747
|
-
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2748
|
-
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2749
|
-
}>>;
|
|
2750
|
-
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2751
|
-
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2752
|
-
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2753
|
-
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2754
|
-
}>>;
|
|
2755
|
-
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2756
|
-
readonly cron: Schema.String;
|
|
2757
|
-
readonly timezone: Schema.String;
|
|
2758
|
-
}>>;
|
|
2759
|
-
}>;
|
|
2760
|
-
readonly permissions: Schema.Struct<{
|
|
2761
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2762
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2763
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2764
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2765
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2766
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2767
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2768
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2769
|
-
readonly budgets: Schema.Struct<{
|
|
2770
|
-
readonly requests: Schema.Int;
|
|
2771
|
-
readonly asks: Schema.Int;
|
|
2772
|
-
readonly threads: Schema.Int;
|
|
2773
|
-
readonly calls: Schema.Int;
|
|
2774
|
-
readonly forks: Schema.Int;
|
|
2775
|
-
readonly pushes: Schema.Int;
|
|
2776
|
-
readonly sandboxMinutes: Schema.Int;
|
|
2615
|
+
}>, Schema.Struct<{
|
|
2616
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2617
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2618
|
+
readonly called: Schema.Literal<true>;
|
|
2619
|
+
readonly permissions: Schema.Struct<{
|
|
2620
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2621
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2622
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2623
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2624
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2625
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2626
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2627
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2628
|
+
readonly budgets: Schema.Struct<{
|
|
2629
|
+
readonly requests: Schema.Int;
|
|
2630
|
+
readonly asks: Schema.Int;
|
|
2631
|
+
readonly threads: Schema.Int;
|
|
2632
|
+
readonly calls: Schema.Int;
|
|
2633
|
+
readonly forks: Schema.Int;
|
|
2634
|
+
readonly pushes: Schema.Int;
|
|
2635
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2636
|
+
}>;
|
|
2777
2637
|
}>;
|
|
2778
|
-
}>;
|
|
2638
|
+
}>]>;
|
|
2639
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
2640
|
+
readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
|
|
2641
|
+
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
2779
2642
|
}>, Schema.Struct<{
|
|
2780
|
-
readonly
|
|
2781
|
-
readonly
|
|
2782
|
-
readonly
|
|
2783
|
-
readonly
|
|
2784
|
-
|
|
2785
|
-
readonly
|
|
2786
|
-
readonly
|
|
2787
|
-
readonly
|
|
2788
|
-
readonly
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
readonly
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
readonly
|
|
2799
|
-
|
|
2643
|
+
readonly kind: Schema.Literal<"attached workflow">;
|
|
2644
|
+
readonly thread: Schema.String;
|
|
2645
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2646
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
2647
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
2648
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2649
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2650
|
+
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
2651
|
+
readonly where: Schema.Struct<{
|
|
2652
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
2653
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2654
|
+
}>>;
|
|
2655
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
2656
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2657
|
+
}>>;
|
|
2658
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
2659
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
2660
|
+
}>>;
|
|
2661
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
2662
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
2663
|
+
}>>;
|
|
2664
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
2665
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
2666
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
2667
|
+
}>>;
|
|
2668
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
2669
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
2670
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
2671
|
+
}>>;
|
|
2672
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
2673
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
2674
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
2675
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
2676
|
+
}>>;
|
|
2677
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
2678
|
+
readonly cron: Schema.String;
|
|
2679
|
+
readonly timezone: Schema.String;
|
|
2680
|
+
}>>;
|
|
2800
2681
|
}>;
|
|
2801
|
-
|
|
2682
|
+
readonly permissions: Schema.Struct<{
|
|
2683
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2684
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2685
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2686
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2687
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2688
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2689
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2690
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2691
|
+
readonly budgets: Schema.Struct<{
|
|
2692
|
+
readonly requests: Schema.Int;
|
|
2693
|
+
readonly asks: Schema.Int;
|
|
2694
|
+
readonly threads: Schema.Int;
|
|
2695
|
+
readonly calls: Schema.Int;
|
|
2696
|
+
readonly forks: Schema.Int;
|
|
2697
|
+
readonly pushes: Schema.Int;
|
|
2698
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2699
|
+
}>;
|
|
2700
|
+
}>;
|
|
2701
|
+
}>, Schema.Struct<{
|
|
2702
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2703
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
2704
|
+
readonly called: Schema.Literal<true>;
|
|
2705
|
+
readonly permissions: Schema.Struct<{
|
|
2706
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
2707
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
2708
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
2709
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
2710
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
2711
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
2712
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
2713
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2714
|
+
readonly budgets: Schema.Struct<{
|
|
2715
|
+
readonly requests: Schema.Int;
|
|
2716
|
+
readonly asks: Schema.Int;
|
|
2717
|
+
readonly threads: Schema.Int;
|
|
2718
|
+
readonly calls: Schema.Int;
|
|
2719
|
+
readonly forks: Schema.Int;
|
|
2720
|
+
readonly pushes: Schema.Int;
|
|
2721
|
+
readonly sandboxMinutes: Schema.Int;
|
|
2722
|
+
}>;
|
|
2723
|
+
}>;
|
|
2724
|
+
}>]>;
|
|
2725
|
+
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
2726
|
+
readonly source: Schema.String;
|
|
2727
|
+
}>, Schema.Struct<{
|
|
2728
|
+
readonly kind: Schema.Literal<"unavailable">;
|
|
2729
|
+
readonly nextStep: Schema.String;
|
|
2730
|
+
}>]>>;
|
|
2731
|
+
}>>;
|
|
2732
|
+
readonly statements: Schema.$Array<Schema.Struct<{
|
|
2733
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2734
|
+
readonly statement: Schema.Struct<{
|
|
2735
|
+
readonly strings: Schema.$Array<Schema.String>;
|
|
2736
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
2737
|
+
}>;
|
|
2738
|
+
readonly hash: Schema.String;
|
|
2739
|
+
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
2740
|
+
readonly kind: Schema.Literal<"workflow">;
|
|
2741
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
2742
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
2743
|
+
}>, Schema.Struct<{
|
|
2744
|
+
readonly kind: Schema.Literal<"gate">;
|
|
2745
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
2746
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
2747
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
2748
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
2802
2749
|
}>]>;
|
|
2803
|
-
readonly
|
|
2804
|
-
readonly
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
readonly
|
|
2808
|
-
|
|
2809
|
-
}>, Schema.Struct<{
|
|
2810
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2811
|
-
readonly machineName: Schema.String;
|
|
2812
|
-
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2813
|
-
readonly path: Schema.String;
|
|
2814
|
-
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2815
|
-
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2750
|
+
readonly home: Schema.String;
|
|
2751
|
+
readonly from: Schema.Union<readonly [Schema.Literals<readonly ["accountable", "person"]>, Schema.Struct<{
|
|
2752
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
2753
|
+
}>]>;
|
|
2754
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2755
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2816
2756
|
}>>;
|
|
2817
|
-
readonly
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2757
|
+
readonly requests: Schema.$Array<Schema.Struct<{
|
|
2758
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2759
|
+
readonly machineName: Schema.String;
|
|
2760
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
2761
|
+
readonly path: Schema.String;
|
|
2762
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
2763
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
2764
|
+
}>>;
|
|
2765
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
2766
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
2767
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
2768
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
2769
|
+
readonly port: Schema.Int;
|
|
2770
|
+
readonly state: Schema.String;
|
|
2771
|
+
}>>;
|
|
2772
|
+
}>>;
|
|
2773
|
+
readonly decisions: Schema.$Array<Schema.Struct<{
|
|
2774
|
+
readonly decision: Schema.brand<Schema.TemplateLiteral<readonly ["decision_", Schema.String]>, "DecisionId">;
|
|
2775
|
+
readonly kind: Schema.Literals<readonly ["ask", "gate"]>;
|
|
2776
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
2777
|
+
readonly kind: Schema.Literal<"thread">;
|
|
2778
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
2779
|
+
}>, Schema.Struct<{
|
|
2780
|
+
readonly kind: Schema.Literal<"version">;
|
|
2781
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
2782
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
2783
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
2784
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
2785
|
+
}>]>;
|
|
2786
|
+
readonly question: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
2787
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
2788
|
+
readonly key: Schema.brand<Schema.String, "AnswerKey">;
|
|
2789
|
+
readonly label: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
2790
|
+
readonly detail: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
2791
|
+
}>>;
|
|
2792
|
+
readonly lean: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
2793
|
+
readonly deciders: Schema.$Array<Schema.Struct<{
|
|
2794
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
2795
|
+
readonly kind: Schema.Literal<"person">;
|
|
2796
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2797
|
+
}>, Schema.Struct<{
|
|
2798
|
+
readonly kind: Schema.Literal<"agent">;
|
|
2799
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2800
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2801
|
+
}>, Schema.Struct<{
|
|
2802
|
+
readonly kind: Schema.Literal<"check">;
|
|
2803
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
2804
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
2805
|
+
}>, Schema.Struct<{
|
|
2806
|
+
readonly kind: Schema.Literal<"role">;
|
|
2807
|
+
readonly role: Schema.Literal<"admin">;
|
|
2808
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2809
|
+
}>, Schema.Struct<{
|
|
2810
|
+
readonly kind: Schema.Literal<"permission">;
|
|
2811
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
2812
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
2813
|
+
}>, Schema.Struct<{
|
|
2814
|
+
readonly kind: Schema.Literal<"override">;
|
|
2815
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
2816
|
+
readonly kind: Schema.Literal<"check">;
|
|
2817
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
2818
|
+
}>, Schema.Struct<{
|
|
2819
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
2820
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
2821
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
2822
|
+
}>]>;
|
|
2823
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
2824
|
+
readonly kind: Schema.Literal<"person">;
|
|
2825
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2826
|
+
}>, Schema.Struct<{
|
|
2827
|
+
readonly kind: Schema.Literal<"role">;
|
|
2828
|
+
readonly role: Schema.Literal<"admin">;
|
|
2829
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2830
|
+
}>]>;
|
|
2831
|
+
}>]>;
|
|
2832
|
+
readonly required: Schema.Boolean;
|
|
2833
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
2834
|
+
}>>;
|
|
2835
|
+
readonly deadline: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
2836
|
+
readonly state: Schema.Literals<readonly ["open", "closed"]>;
|
|
2837
|
+
readonly answers: Schema.$Array<Schema.Struct<{
|
|
2838
|
+
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
2839
|
+
readonly kind: Schema.Literal<"person">;
|
|
2840
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2841
|
+
}>, Schema.Struct<{
|
|
2842
|
+
readonly kind: Schema.Literal<"agent">;
|
|
2843
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
2844
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2845
|
+
}>, Schema.Struct<{
|
|
2846
|
+
readonly kind: Schema.Literal<"check">;
|
|
2847
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
2848
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
2849
|
+
}>, Schema.Struct<{
|
|
2850
|
+
readonly kind: Schema.Literal<"role">;
|
|
2851
|
+
readonly role: Schema.Literal<"admin">;
|
|
2852
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2853
|
+
}>, Schema.Struct<{
|
|
2854
|
+
readonly kind: Schema.Literal<"permission">;
|
|
2855
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
2856
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
2857
|
+
}>, Schema.Struct<{
|
|
2858
|
+
readonly kind: Schema.Literal<"override">;
|
|
2859
|
+
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
2860
|
+
readonly kind: Schema.Literal<"check">;
|
|
2861
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
2862
|
+
}>, Schema.Struct<{
|
|
2863
|
+
readonly kind: Schema.Literal<"not-run">;
|
|
2864
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
2865
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
2866
|
+
}>]>;
|
|
2867
|
+
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
2868
|
+
readonly kind: Schema.Literal<"person">;
|
|
2869
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
2870
|
+
}>, Schema.Struct<{
|
|
2871
|
+
readonly kind: Schema.Literal<"role">;
|
|
2872
|
+
readonly role: Schema.Literal<"admin">;
|
|
2873
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
2874
|
+
}>]>;
|
|
2875
|
+
}>]>;
|
|
2876
|
+
readonly answer: Schema.brand<Schema.String, "AnswerKey">;
|
|
2877
|
+
readonly reason: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
2878
|
+
readonly at: Schema.DateTimeUtcFromMillis;
|
|
2879
|
+
}>>;
|
|
2880
|
+
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
2881
|
+
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
2882
|
+
readonly names: Schema.Struct<{
|
|
2883
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
2884
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
2885
|
+
}>;
|
|
2823
2886
|
}>>;
|
|
2824
|
-
}
|
|
2887
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/approvals/:approval", Schema.toCodecStringTree<Schema.Struct<{
|
|
2825
2888
|
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
2826
2889
|
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2827
2890
|
readonly state: Schema.Literal<"waiting">;
|
|
@@ -2912,7 +2975,7 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2912
2975
|
}>>;
|
|
2913
2976
|
readonly replacement: Schema.optionalKey<Schema.Struct<{
|
|
2914
2977
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2915
|
-
readonly state: Schema.Literals<readonly ["replaces", "
|
|
2978
|
+
readonly state: Schema.Literals<readonly ["replaces", "skipped"]>;
|
|
2916
2979
|
readonly attachedAt: Schema.optionalKey<Schema.DateTimeUtcFromString>;
|
|
2917
2980
|
}>>;
|
|
2918
2981
|
}>;
|
|
@@ -2929,374 +2992,311 @@ declare const ApprovalsGroup_base: HttpApiGroup.HttpApiGroup<"approvals", HttpAp
|
|
|
2929
2992
|
readonly userVerification: Schema.optionalKey<Schema.Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
2930
2993
|
readonly hints: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["hybrid", "security-key", "client-device"]>>>;
|
|
2931
2994
|
}>;
|
|
2932
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof PasskeyRefused | typeof AttachmentFailed | typeof ApprovalNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2933
|
-
readonly
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
readonly
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
readonly
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
readonly agentPermission: Schema.optionalKey<Schema.Struct<{
|
|
2965
|
-
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"]>;
|
|
2966
|
-
readonly mayAllow: Schema.Boolean;
|
|
2995
|
+
}>]>>, 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<{
|
|
2996
|
+
readonly code: Schema.String;
|
|
2997
|
+
}>, Schema.Struct<{
|
|
2998
|
+
readonly link: Schema.String;
|
|
2999
|
+
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3000
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3001
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
3002
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
3003
|
+
readonly says: Schema.String;
|
|
3004
|
+
readonly fields: Schema.$Array<Schema.Struct<{
|
|
3005
|
+
readonly name: Schema.String;
|
|
3006
|
+
readonly value: Schema.String;
|
|
3007
|
+
readonly part: Schema.Literals<readonly ["path", "query", "payload"]>;
|
|
3008
|
+
}>>;
|
|
3009
|
+
readonly command: Schema.Struct<{
|
|
3010
|
+
readonly endpoint: Schema.String;
|
|
3011
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3012
|
+
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
3013
|
+
readonly payload: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3014
|
+
}>;
|
|
3015
|
+
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
3016
|
+
readonly kind: Schema.Literal<"terminal">;
|
|
3017
|
+
}>, Schema.Struct<{
|
|
3018
|
+
readonly kind: Schema.Literal<"page">;
|
|
3019
|
+
}>, Schema.Struct<{
|
|
3020
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3021
|
+
readonly agent: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
3022
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
3023
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
3024
|
+
readonly attachment: Schema.optionalKey<Schema.Struct<{
|
|
3025
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3026
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
2967
3027
|
}>>;
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
readonly
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
readonly
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
readonly
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
readonly
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
readonly
|
|
3013
|
-
readonly
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
readonly
|
|
3033
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3034
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3035
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3036
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3037
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3038
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3039
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3040
|
-
readonly budgets: Schema.Struct<{
|
|
3041
|
-
readonly requests: Schema.Int;
|
|
3042
|
-
readonly asks: Schema.Int;
|
|
3043
|
-
readonly threads: Schema.Int;
|
|
3044
|
-
readonly calls: Schema.Int;
|
|
3045
|
-
readonly forks: Schema.Int;
|
|
3046
|
-
readonly pushes: Schema.Int;
|
|
3047
|
-
readonly sandboxMinutes: Schema.Int;
|
|
3048
|
-
}>;
|
|
3028
|
+
}>]>;
|
|
3029
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
3030
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
3031
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
3032
|
+
readonly agentPermission: Schema.optionalKey<Schema.Struct<{
|
|
3033
|
+
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"]>;
|
|
3034
|
+
readonly mayAllow: Schema.Boolean;
|
|
3035
|
+
}>>;
|
|
3036
|
+
readonly preview: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3037
|
+
readonly kind: Schema.Literal<"workflow">;
|
|
3038
|
+
readonly repo: Schema.String;
|
|
3039
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
3040
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
3041
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
3042
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3043
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3044
|
+
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
3045
|
+
readonly where: Schema.Struct<{
|
|
3046
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
3047
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3048
|
+
}>>;
|
|
3049
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
3050
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3051
|
+
}>>;
|
|
3052
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
3053
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
3054
|
+
}>>;
|
|
3055
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
3056
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
3057
|
+
}>>;
|
|
3058
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
3059
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
3060
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
3061
|
+
}>>;
|
|
3062
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
3063
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
3064
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
3065
|
+
}>>;
|
|
3066
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
3067
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
3068
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
3069
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
3070
|
+
}>>;
|
|
3071
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
3072
|
+
readonly cron: Schema.String;
|
|
3073
|
+
readonly timezone: Schema.String;
|
|
3074
|
+
}>>;
|
|
3075
|
+
}>;
|
|
3076
|
+
readonly permissions: Schema.Struct<{
|
|
3077
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3078
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3079
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3080
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3081
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3082
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3083
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3084
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3085
|
+
readonly budgets: Schema.Struct<{
|
|
3086
|
+
readonly requests: Schema.Int;
|
|
3087
|
+
readonly asks: Schema.Int;
|
|
3088
|
+
readonly threads: Schema.Int;
|
|
3089
|
+
readonly calls: Schema.Int;
|
|
3090
|
+
readonly forks: Schema.Int;
|
|
3091
|
+
readonly pushes: Schema.Int;
|
|
3092
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3049
3093
|
}>;
|
|
3050
|
-
}
|
|
3051
|
-
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
3052
|
-
readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
|
|
3053
|
-
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
3094
|
+
}>;
|
|
3054
3095
|
}>, Schema.Struct<{
|
|
3055
|
-
readonly
|
|
3056
|
-
readonly
|
|
3057
|
-
readonly
|
|
3058
|
-
readonly
|
|
3059
|
-
|
|
3060
|
-
readonly
|
|
3061
|
-
readonly
|
|
3062
|
-
readonly
|
|
3063
|
-
readonly
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
readonly
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
readonly
|
|
3074
|
-
|
|
3075
|
-
}>>;
|
|
3076
|
-
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
3077
|
-
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
3078
|
-
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
3079
|
-
}>>;
|
|
3080
|
-
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
3081
|
-
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
3082
|
-
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
3083
|
-
}>>;
|
|
3084
|
-
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
3085
|
-
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
3086
|
-
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
3087
|
-
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
3088
|
-
}>>;
|
|
3089
|
-
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
3090
|
-
readonly cron: Schema.String;
|
|
3091
|
-
readonly timezone: Schema.String;
|
|
3092
|
-
}>>;
|
|
3093
|
-
}>;
|
|
3094
|
-
readonly permissions: Schema.Struct<{
|
|
3095
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3096
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3097
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3098
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3099
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3100
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3101
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3102
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3103
|
-
readonly budgets: Schema.Struct<{
|
|
3104
|
-
readonly requests: Schema.Int;
|
|
3105
|
-
readonly asks: Schema.Int;
|
|
3106
|
-
readonly threads: Schema.Int;
|
|
3107
|
-
readonly calls: Schema.Int;
|
|
3108
|
-
readonly forks: Schema.Int;
|
|
3109
|
-
readonly pushes: Schema.Int;
|
|
3110
|
-
readonly sandboxMinutes: Schema.Int;
|
|
3111
|
-
}>;
|
|
3112
|
-
}>;
|
|
3113
|
-
}>, Schema.Struct<{
|
|
3114
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
3115
|
-
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3116
|
-
readonly called: Schema.Literal<true>;
|
|
3117
|
-
readonly permissions: Schema.Struct<{
|
|
3118
|
-
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3119
|
-
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3120
|
-
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3121
|
-
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3122
|
-
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3123
|
-
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3124
|
-
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3125
|
-
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3126
|
-
readonly budgets: Schema.Struct<{
|
|
3127
|
-
readonly requests: Schema.Int;
|
|
3128
|
-
readonly asks: Schema.Int;
|
|
3129
|
-
readonly threads: Schema.Int;
|
|
3130
|
-
readonly calls: Schema.Int;
|
|
3131
|
-
readonly forks: Schema.Int;
|
|
3132
|
-
readonly pushes: Schema.Int;
|
|
3133
|
-
readonly sandboxMinutes: Schema.Int;
|
|
3134
|
-
}>;
|
|
3096
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3097
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3098
|
+
readonly called: Schema.Literal<true>;
|
|
3099
|
+
readonly permissions: Schema.Struct<{
|
|
3100
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3101
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3102
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3103
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3104
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3105
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3106
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3107
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3108
|
+
readonly budgets: Schema.Struct<{
|
|
3109
|
+
readonly requests: Schema.Int;
|
|
3110
|
+
readonly asks: Schema.Int;
|
|
3111
|
+
readonly threads: Schema.Int;
|
|
3112
|
+
readonly calls: Schema.Int;
|
|
3113
|
+
readonly forks: Schema.Int;
|
|
3114
|
+
readonly pushes: Schema.Int;
|
|
3115
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3135
3116
|
}>;
|
|
3136
|
-
}
|
|
3137
|
-
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
3138
|
-
readonly source: Schema.String;
|
|
3139
|
-
}>, Schema.Struct<{
|
|
3140
|
-
readonly kind: Schema.Literal<"unavailable">;
|
|
3141
|
-
readonly nextStep: Schema.String;
|
|
3142
|
-
}>]>>;
|
|
3143
|
-
}>>;
|
|
3144
|
-
readonly statements: Schema.$Array<Schema.Struct<{
|
|
3145
|
-
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
3146
|
-
readonly statement: Schema.Struct<{
|
|
3147
|
-
readonly strings: Schema.$Array<Schema.String>;
|
|
3148
|
-
readonly values: Schema.$Array<Schema.String>;
|
|
3149
|
-
}>;
|
|
3150
|
-
readonly hash: Schema.String;
|
|
3151
|
-
readonly asker: Schema.Union<readonly [Schema.Struct<{
|
|
3152
|
-
readonly kind: Schema.Literal<"workflow">;
|
|
3153
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
3154
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
3155
|
-
}>, Schema.Struct<{
|
|
3156
|
-
readonly kind: Schema.Literal<"gate">;
|
|
3157
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
3158
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
3159
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
3160
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
3161
|
-
}>]>;
|
|
3162
|
-
readonly home: Schema.String;
|
|
3163
|
-
readonly from: Schema.Union<readonly [Schema.Literals<readonly ["accountable", "person"]>, Schema.Struct<{
|
|
3164
|
-
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
3117
|
+
}>;
|
|
3165
3118
|
}>]>;
|
|
3166
|
-
readonly
|
|
3167
|
-
readonly
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
readonly
|
|
3171
|
-
readonly
|
|
3172
|
-
readonly
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
readonly
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3119
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
3120
|
+
readonly why: Schema.optionalKey<Schema.Literals<readonly ["asked", "failures", "refused", "too big", "approver gone", "imported", "not approved", "activation failed"]>>;
|
|
3121
|
+
readonly accountable: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">>;
|
|
3122
|
+
}>, Schema.Struct<{
|
|
3123
|
+
readonly kind: Schema.Literal<"attached workflow">;
|
|
3124
|
+
readonly thread: Schema.String;
|
|
3125
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
3126
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
3127
|
+
readonly manifest: Schema.Union<readonly [Schema.Struct<{
|
|
3128
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3129
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3130
|
+
readonly on: Schema.$Array<Schema.Literals<readonly ["pull_request.merged", "main.moved", "tip_run.failed", "queue.stopped", "check.finished", "thread.stage.moved", "thread.closed", "occurrence.repeated", "schedule", "signal.received"]>>;
|
|
3131
|
+
readonly where: Schema.Struct<{
|
|
3132
|
+
readonly 'pull_request.merged': Schema.optionalKey<Schema.Struct<{
|
|
3133
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3134
|
+
}>>;
|
|
3135
|
+
readonly 'main.moved': Schema.optionalKey<Schema.Struct<{
|
|
3136
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3137
|
+
}>>;
|
|
3138
|
+
readonly 'tip_run.failed': Schema.optionalKey<Schema.Struct<{
|
|
3139
|
+
readonly outcome: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["failed", "failing on main", "main too big", "repair failed"]>>>;
|
|
3140
|
+
}>>;
|
|
3141
|
+
readonly 'queue.stopped': Schema.optionalKey<Schema.Struct<{
|
|
3142
|
+
readonly why: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["nothing to search", "can't judge", "main too big"]>>>;
|
|
3143
|
+
}>>;
|
|
3144
|
+
readonly 'check.finished': Schema.optionalKey<Schema.Struct<{
|
|
3145
|
+
readonly check: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "CheckKey">>>;
|
|
3146
|
+
readonly conclusion: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["success", "failure", "neutral"]>>>;
|
|
3147
|
+
}>>;
|
|
3148
|
+
readonly 'thread.stage.moved': Schema.optionalKey<Schema.Struct<{
|
|
3149
|
+
readonly to: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["planning", "active", "settled", "closed"]>>>;
|
|
3150
|
+
readonly self: Schema.optionalKey<Schema.Boolean>;
|
|
3151
|
+
}>>;
|
|
3152
|
+
readonly 'signal.received': Schema.optionalKey<Schema.Struct<{
|
|
3153
|
+
readonly connection: Schema.$Array<Schema.brand<Schema.String, "ConnectionName">>;
|
|
3154
|
+
readonly kind: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKind">>>;
|
|
3155
|
+
readonly key: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "SignalKey">>>;
|
|
3156
|
+
}>>;
|
|
3157
|
+
readonly schedule: Schema.optionalKey<Schema.Struct<{
|
|
3158
|
+
readonly cron: Schema.String;
|
|
3159
|
+
readonly timezone: Schema.String;
|
|
3160
|
+
}>>;
|
|
3161
|
+
}>;
|
|
3162
|
+
readonly permissions: Schema.Struct<{
|
|
3163
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3164
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3165
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3166
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3167
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3168
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3169
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3170
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3171
|
+
readonly budgets: Schema.Struct<{
|
|
3172
|
+
readonly requests: Schema.Int;
|
|
3173
|
+
readonly asks: Schema.Int;
|
|
3174
|
+
readonly threads: Schema.Int;
|
|
3175
|
+
readonly calls: Schema.Int;
|
|
3176
|
+
readonly forks: Schema.Int;
|
|
3177
|
+
readonly pushes: Schema.Int;
|
|
3178
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3179
|
+
}>;
|
|
3180
|
+
}>;
|
|
3191
3181
|
}>, Schema.Struct<{
|
|
3192
|
-
readonly
|
|
3193
|
-
readonly
|
|
3194
|
-
readonly
|
|
3195
|
-
readonly
|
|
3196
|
-
|
|
3182
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3183
|
+
readonly calls: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>>;
|
|
3184
|
+
readonly called: Schema.Literal<true>;
|
|
3185
|
+
readonly permissions: Schema.Struct<{
|
|
3186
|
+
readonly comment: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["session", "thread", "own thread", "accountable"]>>>;
|
|
3187
|
+
readonly ask: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["agent", "accountable", "person", "permission"]>>>;
|
|
3188
|
+
readonly threads: Schema.optionalKey<Schema.Literal<"start">>;
|
|
3189
|
+
readonly checks: Schema.optionalKey<Schema.Literal<"run">>;
|
|
3190
|
+
readonly code: Schema.optionalKey<Schema.Literal<"write">>;
|
|
3191
|
+
readonly needs: Schema.optionalKey<Schema.Literal<"add">>;
|
|
3192
|
+
readonly connections: Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "ConnectionName">, Schema.$Array<Schema.brand<Schema.String, "ConnectionMethod">>>>;
|
|
3193
|
+
readonly egress: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3194
|
+
readonly budgets: Schema.Struct<{
|
|
3195
|
+
readonly requests: Schema.Int;
|
|
3196
|
+
readonly asks: Schema.Int;
|
|
3197
|
+
readonly threads: Schema.Int;
|
|
3198
|
+
readonly calls: Schema.Int;
|
|
3199
|
+
readonly forks: Schema.Int;
|
|
3200
|
+
readonly pushes: Schema.Int;
|
|
3201
|
+
readonly sandboxMinutes: Schema.Int;
|
|
3202
|
+
}>;
|
|
3203
|
+
}>;
|
|
3197
3204
|
}>]>;
|
|
3198
|
-
readonly
|
|
3199
|
-
readonly
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
3234
|
-
}>]>;
|
|
3235
|
-
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
3236
|
-
readonly kind: Schema.Literal<"person">;
|
|
3237
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3238
|
-
}>, Schema.Struct<{
|
|
3239
|
-
readonly kind: Schema.Literal<"role">;
|
|
3240
|
-
readonly role: Schema.Literal<"admin">;
|
|
3241
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3242
|
-
}>]>;
|
|
3243
|
-
}>]>;
|
|
3244
|
-
readonly required: Schema.Boolean;
|
|
3245
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
3246
|
-
}>>;
|
|
3247
|
-
readonly deadline: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3248
|
-
readonly state: Schema.Literals<readonly ["open", "closed"]>;
|
|
3249
|
-
readonly answers: Schema.$Array<Schema.Struct<{
|
|
3250
|
-
readonly decider: Schema.Union<readonly [Schema.Struct<{
|
|
3251
|
-
readonly kind: Schema.Literal<"person">;
|
|
3252
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3253
|
-
}>, Schema.Struct<{
|
|
3254
|
-
readonly kind: Schema.Literal<"agent">;
|
|
3255
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
3256
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3257
|
-
}>, Schema.Struct<{
|
|
3258
|
-
readonly kind: Schema.Literal<"check">;
|
|
3259
|
-
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
3260
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
3261
|
-
}>, Schema.Struct<{
|
|
3262
|
-
readonly kind: Schema.Literal<"role">;
|
|
3263
|
-
readonly role: Schema.Literal<"admin">;
|
|
3264
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3265
|
-
}>, Schema.Struct<{
|
|
3266
|
-
readonly kind: Schema.Literal<"permission">;
|
|
3267
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3268
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
3269
|
-
}>, Schema.Struct<{
|
|
3270
|
-
readonly kind: Schema.Literal<"override">;
|
|
3271
|
-
readonly of: Schema.Union<readonly [Schema.Struct<{
|
|
3272
|
-
readonly kind: Schema.Literal<"check">;
|
|
3273
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
3274
|
-
}>, Schema.Struct<{
|
|
3275
|
-
readonly kind: Schema.Literal<"not-run">;
|
|
3276
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
3277
|
-
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
3278
|
-
}>]>;
|
|
3279
|
-
readonly by: Schema.Union<readonly [Schema.Struct<{
|
|
3280
|
-
readonly kind: Schema.Literal<"person">;
|
|
3281
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
3282
|
-
}>, Schema.Struct<{
|
|
3283
|
-
readonly kind: Schema.Literal<"role">;
|
|
3284
|
-
readonly role: Schema.Literal<"admin">;
|
|
3285
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
3286
|
-
}>]>;
|
|
3287
|
-
}>]>;
|
|
3288
|
-
readonly answer: Schema.brand<Schema.String, "AnswerKey">;
|
|
3289
|
-
readonly reason: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["text_", Schema.String]>, "TextId">>;
|
|
3290
|
-
readonly at: Schema.DateTimeUtcFromMillis;
|
|
3291
|
-
}>>;
|
|
3292
|
-
readonly result: Schema.optionalKey<Schema.brand<Schema.String, "AnswerKey">>;
|
|
3293
|
-
readonly closedWhy: Schema.optionalKey<Schema.Literals<readonly ["decided", "expired", "withdrawn", "superseded"]>>;
|
|
3294
|
-
readonly names: Schema.Struct<{
|
|
3295
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
3296
|
-
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.String, "WrittenPullRequest">>;
|
|
3205
|
+
readonly agent: Schema.brand<Schema.String, "AgentHandle">;
|
|
3206
|
+
readonly source: Schema.String;
|
|
3207
|
+
}>, Schema.Struct<{
|
|
3208
|
+
readonly kind: Schema.Literal<"unavailable">;
|
|
3209
|
+
readonly nextStep: Schema.String;
|
|
3210
|
+
}>]>>;
|
|
3211
|
+
}>, Schema.Struct<{
|
|
3212
|
+
readonly approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
3213
|
+
readonly machineName: Schema.String;
|
|
3214
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
3215
|
+
readonly path: Schema.String;
|
|
3216
|
+
readonly harness: Schema.Literals<readonly ["claude-code", "codex"]>;
|
|
3217
|
+
readonly replaces: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
3218
|
+
}>>;
|
|
3219
|
+
readonly askedFrom: Schema.optionalKey<Schema.String>;
|
|
3220
|
+
readonly askedAt: Schema.DateTimeUtcFromString;
|
|
3221
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
3222
|
+
readonly callback: Schema.optionalKey<Schema.Struct<{
|
|
3223
|
+
readonly port: Schema.Int;
|
|
3224
|
+
readonly state: Schema.String;
|
|
3225
|
+
}>>;
|
|
3226
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalNotFound | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"answer", "POST", "/v1/approvals/:approval/answer", Schema.toCodecStringTree<Schema.Struct<{
|
|
3227
|
+
approval: Schema.brand<Schema.TemplateLiteral<readonly ["approval_", Schema.String]>, "ApprovalId">;
|
|
3228
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
3229
|
+
readonly answer: Schema.Literal<"yes">;
|
|
3230
|
+
readonly permission: Schema.optionalKey<Schema.Literal<"allow">>;
|
|
3231
|
+
readonly assertion: Schema.Struct<{
|
|
3232
|
+
readonly id: Schema.String;
|
|
3233
|
+
readonly rawId: Schema.String;
|
|
3234
|
+
readonly type: Schema.Literal<"public-key">;
|
|
3235
|
+
readonly response: Schema.Struct<{
|
|
3236
|
+
readonly clientDataJSON: Schema.String;
|
|
3237
|
+
readonly authenticatorData: Schema.String;
|
|
3238
|
+
readonly signature: Schema.String;
|
|
3239
|
+
readonly userHandle: Schema.optional<Schema.String>;
|
|
3297
3240
|
}>;
|
|
3241
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
3242
|
+
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
3243
|
+
}>;
|
|
3244
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
3245
|
+
readonly preview: Schema.optionalKey<Schema.Struct<{
|
|
3246
|
+
readonly kind: Schema.Literals<readonly ["workflow", "attached workflow"]>;
|
|
3247
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
3298
3248
|
}>>;
|
|
3299
|
-
|
|
3249
|
+
readonly statement: Schema.optionalKey<Schema.Struct<{
|
|
3250
|
+
readonly hash: Schema.String;
|
|
3251
|
+
}>>;
|
|
3252
|
+
}>, Schema.Struct<{
|
|
3253
|
+
readonly answer: Schema.Literal<"no">;
|
|
3254
|
+
readonly permission: Schema.Literal<"deny">;
|
|
3255
|
+
readonly assertion: Schema.Struct<{
|
|
3256
|
+
readonly id: Schema.String;
|
|
3257
|
+
readonly rawId: Schema.String;
|
|
3258
|
+
readonly type: Schema.Literal<"public-key">;
|
|
3259
|
+
readonly response: Schema.Struct<{
|
|
3260
|
+
readonly clientDataJSON: Schema.String;
|
|
3261
|
+
readonly authenticatorData: Schema.String;
|
|
3262
|
+
readonly signature: Schema.String;
|
|
3263
|
+
readonly userHandle: Schema.optional<Schema.String>;
|
|
3264
|
+
}>;
|
|
3265
|
+
readonly authenticatorAttachment: Schema.optional<Schema.Literals<readonly ["platform", "cross-platform"]>>;
|
|
3266
|
+
readonly clientExtensionResults: Schema.Struct<{}>;
|
|
3267
|
+
}>;
|
|
3268
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
3269
|
+
}>, Schema.Struct<{
|
|
3270
|
+
readonly answer: Schema.Literal<"no">;
|
|
3271
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
3272
|
+
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3273
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
3274
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
3275
|
+
readonly state: Schema.Literal<"approved">;
|
|
3276
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3277
|
+
readonly answerCode: Schema.String;
|
|
3278
|
+
}>, Schema.Struct<{
|
|
3279
|
+
readonly status: Schema.Int;
|
|
3280
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3281
|
+
readonly state: Schema.Literal<"ran">;
|
|
3282
|
+
readonly endpoint: Schema.String;
|
|
3283
|
+
readonly answerCode: Schema.String;
|
|
3284
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3285
|
+
readonly state: Schema.Literal<"waiting">;
|
|
3286
|
+
readonly expiresAt: Schema.DateTimeUtcFromString;
|
|
3287
|
+
}>, Schema.Struct<{
|
|
3288
|
+
readonly state: Schema.Literal<"approved">;
|
|
3289
|
+
readonly collected: Schema.optionalKey<Schema.Literal<true>>;
|
|
3290
|
+
}>, Schema.Struct<{
|
|
3291
|
+
readonly state: Schema.Literal<"refused">;
|
|
3292
|
+
}>, Schema.Struct<{
|
|
3293
|
+
readonly state: Schema.Literal<"expired">;
|
|
3294
|
+
}>, Schema.Struct<{
|
|
3295
|
+
readonly status: Schema.Int;
|
|
3296
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3297
|
+
readonly state: Schema.Literal<"ran">;
|
|
3298
|
+
readonly endpoint: Schema.String;
|
|
3299
|
+
}>]>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ApprovalStale | typeof PreviewNotReady | typeof PasskeyRefused | typeof ApprovalNotFound>, Authorization, never>, false>;
|
|
3300
3300
|
/**
|
|
3301
3301
|
* A person's side of approvals, in an approving browser: what waits for them, finding a
|
|
3302
3302
|
* terminal's request or a machine's attachment request by its code, and answering one, with
|
|
@@ -3337,53 +3337,7 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3337
3337
|
readonly action: Schema.Literals<readonly ["project:read", "project:write", "thread:start", "thread:write", "session:start", "session:change", "agent:attach", "approval:start", "git:read", "git:push", "approval:ask", "repo:add", "project:create", "thread:watch", "check:run"]>;
|
|
3338
3338
|
}>>;
|
|
3339
3339
|
readonly expiresAt: Schema.optionalKey<Schema.DateTimeUtcFromMillis>;
|
|
3340
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3341
|
-
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
3342
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3343
|
-
readonly token: Schema.brand<Schema.String, "IdentityToken">;
|
|
3344
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3345
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof SessionHasEnded | typeof SlowDown | typeof IdentityAudienceRefused | typeof IdentityTokenNotReady>, Authorization | IdentityAudienceRefusal, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3346
|
-
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3347
|
-
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3348
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3349
|
-
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3350
|
-
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3351
|
-
readonly days: Schema.$Array<Schema.Struct<{
|
|
3352
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3353
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3354
|
-
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"]>;
|
|
3355
|
-
readonly quantity: Schema.Finite;
|
|
3356
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3357
|
-
}>>;
|
|
3358
|
-
}>>;
|
|
3359
|
-
readonly work: Schema.$Array<Schema.Struct<{
|
|
3360
|
-
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
3361
|
-
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
3362
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3363
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3364
|
-
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"]>;
|
|
3365
|
-
readonly quantity: Schema.Finite;
|
|
3366
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3367
|
-
}>>;
|
|
3368
|
-
}>>;
|
|
3369
|
-
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
3370
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3371
|
-
readonly counts: Schema.$Array<Schema.Struct<{
|
|
3372
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3373
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3374
|
-
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
3375
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3376
|
-
readonly bytes: Schema.Int;
|
|
3377
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3378
|
-
}>>;
|
|
3379
|
-
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3380
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3381
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3382
|
-
readonly counts: Schema.Int;
|
|
3383
|
-
readonly bytes: Schema.Int;
|
|
3384
|
-
}>>>;
|
|
3385
|
-
}>>;
|
|
3386
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3340
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirrors", "GET", "/v1/me/mirrors", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3387
3341
|
readonly mirrors: Schema.$Array<Schema.Struct<{
|
|
3388
3342
|
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3389
3343
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
@@ -3446,11 +3400,57 @@ declare const MeGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.Http
|
|
|
3446
3400
|
readonly cacheRead: Schema.Int;
|
|
3447
3401
|
readonly cost: Schema.optionalKey<Schema.Finite>;
|
|
3448
3402
|
}>>;
|
|
3449
|
-
readonly cost: Schema.Finite;
|
|
3450
|
-
readonly harness: Schema.String;
|
|
3403
|
+
readonly cost: Schema.Finite;
|
|
3404
|
+
readonly harness: Schema.String;
|
|
3405
|
+
}>>;
|
|
3406
|
+
readonly pricesAsOf: Schema.String;
|
|
3407
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/me/meters", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3408
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3409
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
3410
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3411
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
3412
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
3413
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
3414
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3415
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3416
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
3417
|
+
readonly quantity: Schema.Finite;
|
|
3418
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3419
|
+
}>>;
|
|
3420
|
+
}>>;
|
|
3421
|
+
readonly work: Schema.$Array<Schema.Struct<{
|
|
3422
|
+
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
3423
|
+
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
3424
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3425
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
3426
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
3427
|
+
readonly quantity: Schema.Finite;
|
|
3428
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3429
|
+
}>>;
|
|
3451
3430
|
}>>;
|
|
3452
|
-
readonly
|
|
3453
|
-
|
|
3431
|
+
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
3432
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
3433
|
+
readonly counts: Schema.$Array<Schema.Struct<{
|
|
3434
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
3435
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
3436
|
+
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
3437
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3438
|
+
readonly bytes: Schema.Int;
|
|
3439
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3440
|
+
}>>;
|
|
3441
|
+
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3442
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
3443
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
3444
|
+
readonly counts: Schema.Int;
|
|
3445
|
+
readonly bytes: Schema.Int;
|
|
3446
|
+
}>>>;
|
|
3447
|
+
}>>;
|
|
3448
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"identityToken", "POST", "/v1/me/identity-token", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3449
|
+
readonly audience: Schema.brand<Schema.String, "IdentityAudience">;
|
|
3450
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3451
|
+
readonly token: Schema.brand<Schema.String, "IdentityToken">;
|
|
3452
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3453
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof SessionHasEnded | typeof SlowDown | typeof IdentityAudienceRefused | typeof IdentityTokenNotReady>, Authorization | IdentityAudienceRefusal, never>, false>;
|
|
3454
3454
|
declare class MeGroup extends MeGroup_base {}
|
|
3455
3455
|
declare const ThreadsGroup_base: HttpApiGroup.HttpApiGroup<"threads", HttpApiEndpoint.HttpApiEndpoint<"ask", "POST", "/v1/projects/:owner/:project/threads/:number/asks", Schema.toCodecStringTree<Schema.Struct<{
|
|
3456
3456
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
@@ -13000,52 +13000,81 @@ declare const OwnerThreadsGroup_base: HttpApiGroup.HttpApiGroup<"ownerThreads",
|
|
|
13000
13000
|
* the stage as filters. A project the reader can't see answers as one that isn't there.
|
|
13001
13001
|
*/
|
|
13002
13002
|
declare class OwnerThreadsGroup extends OwnerThreadsGroup_base {}
|
|
13003
|
-
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"
|
|
13003
|
+
declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13004
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13005
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13006
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13007
|
+
readonly active: Schema.Struct<{
|
|
13008
|
+
readonly revision: Schema.Int;
|
|
13009
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13010
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13011
|
+
}>;
|
|
13012
|
+
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13013
|
+
readonly revision: Schema.Int;
|
|
13014
|
+
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13015
|
+
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13016
|
+
}>>;
|
|
13017
|
+
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13018
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13019
|
+
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13020
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13021
|
+
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
13022
|
+
readonly gate: Schema.Int;
|
|
13023
|
+
readonly since: Schema.Int;
|
|
13024
|
+
}>>;
|
|
13025
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13004
13026
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13005
13027
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13006
13028
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13007
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13008
|
-
readonly
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
readonly
|
|
13013
|
-
readonly
|
|
13014
|
-
readonly
|
|
13015
|
-
readonly
|
|
13016
|
-
readonly
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
readonly kind: Schema.Literal<"review">;
|
|
13025
|
-
}>, Schema.Struct<{
|
|
13026
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
13027
|
-
}>, Schema.Struct<{
|
|
13028
|
-
readonly kind: Schema.Literal<"admin">;
|
|
13029
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13030
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13031
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13032
|
+
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
13033
|
+
readonly head: Schema.Struct<{
|
|
13034
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13035
|
+
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
13036
|
+
readonly branch: Schema.String;
|
|
13037
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13038
|
+
readonly generation: Schema.Int;
|
|
13039
|
+
}>;
|
|
13040
|
+
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
13041
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13042
|
+
readonly agent: Schema.Struct<{
|
|
13043
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13044
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
13045
|
+
}>;
|
|
13029
13046
|
}>, Schema.Struct<{
|
|
13030
|
-
readonly
|
|
13031
|
-
|
|
13047
|
+
readonly workflow: Schema.Struct<{
|
|
13048
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13049
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13050
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13051
|
+
readonly step: Schema.Struct<{
|
|
13052
|
+
readonly name: Schema.String;
|
|
13053
|
+
readonly count: Schema.Int;
|
|
13054
|
+
readonly attempt: Schema.Int;
|
|
13055
|
+
}>;
|
|
13056
|
+
}>;
|
|
13032
13057
|
}>]>;
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
readonly
|
|
13037
|
-
readonly
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
|
|
13058
|
+
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
13059
|
+
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
13060
|
+
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
13061
|
+
readonly repair: Schema.Boolean;
|
|
13062
|
+
readonly current: Schema.Struct<{
|
|
13063
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
13064
|
+
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
13065
|
+
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13066
|
+
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
13067
|
+
readonly intentRevision: Schema.Int;
|
|
13068
|
+
readonly generation: Schema.Int;
|
|
13069
|
+
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
13070
|
+
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
13071
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13072
|
+
}>;
|
|
13073
|
+
readonly threadNumber: Schema.Int;
|
|
13074
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/repos/:owner/:repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
13042
13075
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13046
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13047
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13048
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13076
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13077
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13049
13078
|
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13050
13079
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13051
13080
|
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
@@ -13059,7 +13088,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13059
13088
|
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13060
13089
|
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13061
13090
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13062
|
-
}>>, Schema.toCodecJson<typeof
|
|
13091
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"gate", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest/gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13063
13092
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13064
13093
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13065
13094
|
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
@@ -13822,29 +13851,70 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13822
13851
|
readonly failed: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
13823
13852
|
readonly at: Schema.DateTimeUtcFromMillis;
|
|
13824
13853
|
}>]>>>;
|
|
13825
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13854
|
+
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13826
13855
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13827
13856
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13828
13857
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13829
13858
|
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13830
|
-
readonly
|
|
13831
|
-
readonly
|
|
13832
|
-
|
|
13833
|
-
readonly
|
|
13834
|
-
readonly
|
|
13859
|
+
readonly version: Schema.Int;
|
|
13860
|
+
readonly baseline: Schema.Struct<{
|
|
13861
|
+
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
13862
|
+
readonly tip: Schema.brand<Schema.String, "CommitOid">;
|
|
13863
|
+
readonly sequence: Schema.Int;
|
|
13864
|
+
readonly depth: Schema.Int;
|
|
13865
|
+
readonly boundary: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13866
|
+
}>;
|
|
13867
|
+
readonly main: Schema.optionalKey<Schema.Struct<{
|
|
13868
|
+
readonly sequence: Schema.Int;
|
|
13869
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13870
|
+
}>>;
|
|
13871
|
+
readonly packs: Schema.$Array<Schema.Struct<{
|
|
13872
|
+
readonly kind: Schema.Literals<readonly ["base", "baseline", "deepen", "merge", "rollup"]>;
|
|
13873
|
+
readonly key: Schema.String;
|
|
13874
|
+
readonly sha256: Schema.String;
|
|
13875
|
+
readonly bytes: Schema.Int;
|
|
13876
|
+
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
13877
|
+
readonly first: Schema.Int;
|
|
13878
|
+
readonly last: Schema.Int;
|
|
13879
|
+
}>>;
|
|
13880
|
+
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
13881
|
+
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
13882
|
+
readonly roots: Schema.$Array<Schema.Struct<{
|
|
13883
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13884
|
+
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13885
|
+
}>>;
|
|
13886
|
+
}>>;
|
|
13887
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mirror", "GET", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
13888
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13889
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13890
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13891
|
+
readonly kind: Schema.Literal<"none">;
|
|
13892
|
+
}>, Schema.Struct<{
|
|
13893
|
+
readonly kind: Schema.Literal<"github">;
|
|
13894
|
+
readonly branch: Schema.String;
|
|
13895
|
+
readonly mirror: Schema.Union<readonly [Schema.Struct<{
|
|
13896
|
+
readonly state: Schema.Literal<"on">;
|
|
13835
13897
|
}>, Schema.Struct<{
|
|
13836
|
-
readonly
|
|
13898
|
+
readonly state: Schema.Literal<"paused">;
|
|
13899
|
+
readonly paused: Schema.Union<readonly [Schema.Struct<{
|
|
13900
|
+
readonly why: Schema.Literal<"diverged">;
|
|
13901
|
+
readonly github: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13902
|
+
}>, Schema.Struct<{
|
|
13903
|
+
readonly why: Schema.Literal<"refused">;
|
|
13904
|
+
readonly said: Schema.String;
|
|
13905
|
+
}>, Schema.Struct<{
|
|
13906
|
+
readonly why: Schema.Literal<"unauthorized">;
|
|
13907
|
+
}>]>;
|
|
13908
|
+
}>, Schema.Struct<{
|
|
13909
|
+
readonly state: Schema.Literal<"off">;
|
|
13837
13910
|
}>]>;
|
|
13838
|
-
readonly
|
|
13839
|
-
readonly
|
|
13840
|
-
|
|
13841
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13842
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
13911
|
+
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13912
|
+
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13913
|
+
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13843
13914
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13844
13915
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13845
13916
|
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13846
13917
|
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13847
|
-
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13848
13918
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13849
13919
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13850
13920
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -13861,96 +13931,88 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13861
13931
|
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13862
13932
|
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13863
13933
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13864
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13865
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13866
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13867
|
-
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13868
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13869
|
-
path: Schema.brand<Schema.String, "RepoPath">;
|
|
13870
|
-
line: Schema.Int;
|
|
13871
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13872
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13873
|
-
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
13874
|
-
readonly line: Schema.Int;
|
|
13875
|
-
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
13876
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13877
|
-
readonly turns: Schema.$Array<Schema.Struct<{
|
|
13878
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13879
|
-
readonly threadNumber: Schema.Int;
|
|
13880
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
13881
|
-
readonly turn: Schema.Int;
|
|
13882
|
-
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
13883
|
-
readonly model: Schema.optionalKey<Schema.String>;
|
|
13884
|
-
}>>;
|
|
13885
|
-
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
13886
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
13887
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
13888
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
13889
|
-
readonly step: Schema.Struct<{
|
|
13890
|
-
readonly name: Schema.String;
|
|
13891
|
-
readonly count: Schema.Int;
|
|
13892
|
-
readonly attempt: Schema.Int;
|
|
13893
|
-
}>;
|
|
13894
|
-
}>>;
|
|
13895
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
13934
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", "/v1/owners/:owner/repos/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
13896
13935
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13936
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13937
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13938
|
+
readonly project: Schema.optionalKey<Schema.brand<Schema.String, "ProjectName">>;
|
|
13939
|
+
readonly url: Schema.brand<Schema.String, "RepoUrl">;
|
|
13897
13940
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
readonly
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
readonly
|
|
13905
|
-
readonly
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13915
|
-
}>>;
|
|
13916
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
13917
|
-
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"manifest", "GET", "/v1/repos/:owner/:repo/history/manifest", Schema.toCodecStringTree<Schema.Struct<{
|
|
13941
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13942
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13943
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13944
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
13945
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
13946
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
13947
|
+
readonly kind: Schema.Literal<"project">;
|
|
13948
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
13949
|
+
}>, Schema.Struct<{
|
|
13950
|
+
readonly kind: Schema.Literal<"owner">;
|
|
13951
|
+
}>]>;
|
|
13952
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
13953
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
13954
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
13955
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
13956
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof ProjectNotFound | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"addNeed", "POST", "/v1/repos/:owner/:repo/pulls/:pullRequest/needs", Schema.toCodecStringTree<Schema.Struct<{
|
|
13918
13957
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13919
13958
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
readonly
|
|
13923
|
-
|
|
13924
|
-
|
|
13925
|
-
readonly
|
|
13926
|
-
readonly
|
|
13927
|
-
readonly
|
|
13928
|
-
readonly
|
|
13929
|
-
|
|
13930
|
-
|
|
13931
|
-
|
|
13932
|
-
|
|
13933
|
-
|
|
13934
|
-
|
|
13935
|
-
|
|
13936
|
-
readonly key: Schema.String;
|
|
13937
|
-
readonly sha256: Schema.String;
|
|
13938
|
-
readonly bytes: Schema.Int;
|
|
13939
|
-
readonly merges: Schema.optionalKey<Schema.Struct<{
|
|
13940
|
-
readonly first: Schema.Int;
|
|
13941
|
-
readonly last: Schema.Int;
|
|
13942
|
-
}>>;
|
|
13943
|
-
readonly baseline: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">>;
|
|
13944
|
-
readonly depth: Schema.optionalKey<Schema.Int>;
|
|
13945
|
-
readonly roots: Schema.$Array<Schema.Struct<{
|
|
13946
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
13947
|
-
readonly parents: Schema.$Array<Schema.brand<Schema.String, "CommitOid">>;
|
|
13959
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13960
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13961
|
+
readonly need: Schema.Union<readonly [Schema.Struct<{
|
|
13962
|
+
readonly kind: Schema.Literal<"checks">;
|
|
13963
|
+
}>, Schema.Struct<{
|
|
13964
|
+
readonly kind: Schema.Literal<"check">;
|
|
13965
|
+
readonly name: Schema.brand<Schema.String, "CheckName">;
|
|
13966
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13967
|
+
readonly source: Schema.optionalKey<Schema.Literal<"project">>;
|
|
13968
|
+
readonly local: Schema.optionalKey<Schema.Literal<true>>;
|
|
13969
|
+
readonly passkey: Schema.optionalKey<Schema.Struct<{
|
|
13970
|
+
readonly from: Schema.Union<readonly [Schema.Literal<"accountable">, Schema.Struct<{
|
|
13971
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
13972
|
+
}>, Schema.Struct<{
|
|
13973
|
+
readonly permission: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13974
|
+
}>]>;
|
|
13948
13975
|
}>>;
|
|
13949
|
-
}
|
|
13950
|
-
|
|
13976
|
+
}>, Schema.Struct<{
|
|
13977
|
+
readonly kind: Schema.Literal<"review">;
|
|
13978
|
+
}>, Schema.Struct<{
|
|
13979
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
13980
|
+
}>, Schema.Struct<{
|
|
13981
|
+
readonly kind: Schema.Literal<"admin">;
|
|
13982
|
+
}>, Schema.Struct<{
|
|
13983
|
+
readonly kind: Schema.Literal<"permission">;
|
|
13984
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
13985
|
+
}>]>;
|
|
13986
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13987
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
13988
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
13989
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
13990
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
13991
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
13992
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
13993
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
13994
|
+
}>>, 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<{
|
|
13951
13995
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13952
13996
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13953
|
-
|
|
13997
|
+
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
13998
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13999
|
+
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
14000
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14001
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
14002
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
14003
|
+
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
14004
|
+
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
14005
|
+
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
14006
|
+
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
14007
|
+
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
14008
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof PullRequestNotFound | typeof ProjectNotReady | typeof RepoNotFound | typeof NeedRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"setMirror", "PUT", "/v1/repos/:owner/:repo/mirror", Schema.toCodecStringTree<Schema.Struct<{
|
|
14009
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14010
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14011
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14012
|
+
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
14013
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14014
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
14015
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
13954
14016
|
readonly kind: Schema.Literal<"none">;
|
|
13955
14017
|
}>, Schema.Struct<{
|
|
13956
14018
|
readonly kind: Schema.Literal<"github">;
|
|
@@ -13973,83 +14035,7 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
13973
14035
|
}>]>;
|
|
13974
14036
|
readonly lastMirrored: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13975
14037
|
readonly nextStep: Schema.optionalKey<Schema.String>;
|
|
13976
|
-
}>]>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
13977
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13978
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13979
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
13980
|
-
key: Schema.String;
|
|
13981
|
-
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"projectGate", "GET", "/v1/repos/:owner/:repo/project-gate", Schema.toCodecStringTree<Schema.Struct<{
|
|
13982
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
13983
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
13984
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13985
|
-
readonly active: Schema.Struct<{
|
|
13986
|
-
readonly revision: Schema.Int;
|
|
13987
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13988
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13989
|
-
}>;
|
|
13990
|
-
readonly pending: Schema.optionalKey<Schema.Struct<{
|
|
13991
|
-
readonly revision: Schema.Int;
|
|
13992
|
-
readonly commit: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
13993
|
-
readonly repo: Schema.NullOr<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
13994
|
-
}>>;
|
|
13995
|
-
readonly holding: Schema.$Array<Schema.Struct<{
|
|
13996
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
13997
|
-
readonly latch: Schema.brand<Schema.TemplateLiteral<readonly ["latch_", Schema.String]>, "LatchId">;
|
|
13998
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
13999
|
-
readonly version: Schema.brand<Schema.TemplateLiteral<readonly ["version_", Schema.String]>, "VersionId">;
|
|
14000
|
-
readonly gate: Schema.Int;
|
|
14001
|
-
readonly since: Schema.Int;
|
|
14002
|
-
}>>;
|
|
14003
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pull", "GET", "/v1/repos/:owner/:repo/pulls/:pullRequest", Schema.toCodecStringTree<Schema.Struct<{
|
|
14004
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14005
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14006
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14007
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14008
|
-
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14009
|
-
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
14010
|
-
readonly state: Schema.Literals<readonly ["open", "merged", "closed"]>;
|
|
14011
|
-
readonly head: Schema.Struct<{
|
|
14012
|
-
readonly gitRepository: Schema.brand<Schema.TemplateLiteral<readonly ["gitrepo_", Schema.String]>, "GitRepositoryId">;
|
|
14013
|
-
readonly fork: Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">;
|
|
14014
|
-
readonly branch: Schema.String;
|
|
14015
|
-
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14016
|
-
readonly generation: Schema.Int;
|
|
14017
|
-
}>;
|
|
14018
|
-
readonly openedBy: Schema.Union<readonly [Schema.Struct<{
|
|
14019
|
-
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
14020
|
-
readonly agent: Schema.Struct<{
|
|
14021
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14022
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
14023
|
-
}>;
|
|
14024
|
-
}>, Schema.Struct<{
|
|
14025
|
-
readonly workflow: Schema.Struct<{
|
|
14026
|
-
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
14027
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
14028
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
14029
|
-
readonly step: Schema.Struct<{
|
|
14030
|
-
readonly name: Schema.String;
|
|
14031
|
-
readonly count: Schema.Int;
|
|
14032
|
-
readonly attempt: Schema.Int;
|
|
14033
|
-
}>;
|
|
14034
|
-
}>;
|
|
14035
|
-
}>]>;
|
|
14036
|
-
readonly openedAt: Schema.DateTimeUtcFromMillis;
|
|
14037
|
-
readonly closedAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>;
|
|
14038
|
-
readonly closedWhy: Schema.NullOr<Schema.Literals<readonly ["closed", "thread closed", "fork deleted"]>>;
|
|
14039
|
-
readonly repair: Schema.Boolean;
|
|
14040
|
-
readonly current: Schema.Struct<{
|
|
14041
|
-
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
14042
|
-
readonly head: Schema.brand<Schema.String, "CommitOid">;
|
|
14043
|
-
readonly base: Schema.NullOr<Schema.brand<Schema.String, "CommitOid">>;
|
|
14044
|
-
readonly planVersion: Schema.NullOr<Schema.Int>;
|
|
14045
|
-
readonly intentRevision: Schema.Int;
|
|
14046
|
-
readonly generation: Schema.Int;
|
|
14047
|
-
readonly state: Schema.Literals<readonly ["preparing", "evaluating", "gating", "waiting", "queued", "publishing", "merged", "superseded", "stale", "conflicted"]>;
|
|
14048
|
-
readonly why: Schema.Literals<readonly ["opened", "push", "head set", "main moved", ".ref0/ changed", "outcomes changed", "intent changed", "needs changed", "project gate changed"]>;
|
|
14049
|
-
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14050
|
-
}>;
|
|
14051
|
-
readonly threadNumber: Schema.Int;
|
|
14052
|
-
}>>, Schema.toCodecJson<typeof PullRequestNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
14038
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof RepoNotFound | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof NotMirrored>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pulls", "GET", "/v1/repos/:owner/:repo/pulls", Schema.toCodecStringTree<Schema.Struct<{
|
|
14053
14039
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14054
14040
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14055
14041
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -14101,51 +14087,65 @@ declare const ReposGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndpoin
|
|
|
14101
14087
|
}>;
|
|
14102
14088
|
readonly threadNumber: Schema.Int;
|
|
14103
14089
|
}>>;
|
|
14104
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
14090
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/repos", Schema.toCodecStringTree<Schema.Struct<{
|
|
14091
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14092
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14093
|
+
after: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
14094
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
14095
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14096
|
+
readonly repos: Schema.$Array<Schema.Struct<{
|
|
14097
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
14098
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
14099
|
+
readonly project: Schema.brand<Schema.TemplateLiteral<readonly ["project_", Schema.String]>, "ProjectId">;
|
|
14100
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
14101
|
+
readonly kind: Schema.Literal<"project">;
|
|
14102
|
+
readonly name: Schema.brand<Schema.String, "ProjectName">;
|
|
14103
|
+
}>, Schema.Struct<{
|
|
14104
|
+
readonly kind: Schema.Literal<"owner">;
|
|
14105
|
+
}>]>;
|
|
14106
|
+
readonly name: Schema.brand<Schema.String, "RepoName">;
|
|
14107
|
+
readonly visibility: Schema.Literals<readonly ["private", "internal", "public"]>;
|
|
14108
|
+
readonly state: Schema.Literals<readonly ["creating", "importing", "ready", "failed"]>;
|
|
14109
|
+
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
14110
|
+
}>>;
|
|
14111
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
14112
|
+
}>>, never, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"pack", "GET", "/v1/repos/:owner/:repo/history/packs", Schema.toCodecStringTree<Schema.Struct<{
|
|
14105
14113
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14106
14114
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14107
|
-
pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
14108
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14109
|
-
readonly sources: Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
14110
14115
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14111
|
-
|
|
14112
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
14113
|
-
readonly pullRequest: Schema.optionalKey<Schema.brand<Schema.Int, "PullRequestNumber">>;
|
|
14114
|
-
readonly outcome: Schema.Literals<readonly ["added", "removed", "unchanged"]>;
|
|
14115
|
-
readonly version: Schema.optionalKey<Schema.brand<Schema.Int, "VersionNumber">>;
|
|
14116
|
-
readonly source: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>;
|
|
14117
|
-
readonly removed: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.TemplateLiteral<readonly ["needsource_", Schema.String]>, "NeedSourceId">>>;
|
|
14118
|
-
}>>, 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<{
|
|
14116
|
+
key: Schema.String;
|
|
14117
|
+
}>>, never, never, HttpApiSchema.StreamUint8Array, Schema.toCodecJson<typeof RepoNotFound | typeof HistoryPackNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"line", "GET", "/v1/repos/:owner/:repo/commits/:commit/lines", Schema.toCodecStringTree<Schema.Struct<{
|
|
14119
14118
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
14120
14119
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
14121
|
-
|
|
14122
|
-
readonly state: Schema.Literals<readonly ["on", "off"]>;
|
|
14120
|
+
commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14123
14121
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
readonly
|
|
14129
|
-
readonly
|
|
14130
|
-
readonly
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
readonly
|
|
14134
|
-
readonly
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
readonly
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
}
|
|
14122
|
+
path: Schema.brand<Schema.String, "RepoPath">;
|
|
14123
|
+
line: Schema.Int;
|
|
14124
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14125
|
+
readonly commit: Schema.brand<Schema.String, "CommitOid">;
|
|
14126
|
+
readonly path: Schema.brand<Schema.String, "RepoPath">;
|
|
14127
|
+
readonly line: Schema.Int;
|
|
14128
|
+
readonly from: Schema.Literals<readonly ["session", "workflow", "main", "unknown"]>;
|
|
14129
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
14130
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
14131
|
+
readonly thread: Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">;
|
|
14132
|
+
readonly threadNumber: Schema.Int;
|
|
14133
|
+
readonly session: Schema.brand<Schema.TemplateLiteral<readonly ["session_", Schema.String]>, "SessionId">;
|
|
14134
|
+
readonly turn: Schema.Int;
|
|
14135
|
+
readonly authorship: Schema.Literals<readonly ["ai", "human", "mixed", "unknown"]>;
|
|
14136
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
14137
|
+
}>>;
|
|
14138
|
+
readonly workflow: Schema.optionalKey<Schema.Struct<{
|
|
14139
|
+
readonly name: Schema.brand<Schema.String, "WorkflowName">;
|
|
14140
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">;
|
|
14141
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
14142
|
+
readonly step: Schema.Struct<{
|
|
14143
|
+
readonly name: Schema.String;
|
|
14144
|
+
readonly count: Schema.Int;
|
|
14145
|
+
readonly attempt: Schema.Int;
|
|
14146
|
+
}>;
|
|
14147
|
+
}>>;
|
|
14148
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never>, false>;
|
|
14149
14149
|
/**
|
|
14150
14150
|
* An owner's repos, as each reader may see them: a repo shows only to whoever can see its
|
|
14151
14151
|
* project. Adding one is a person's approved command, which reaches `/v1` with approvals.
|
|
@@ -17526,31 +17526,7 @@ declare const AgentPermissionsGroup_base: HttpApiGroup.HttpApiGroup<"agentPermis
|
|
|
17526
17526
|
* the person's approval, answered with their passkey in an approving browser.
|
|
17527
17527
|
*/
|
|
17528
17528
|
declare class AgentPermissionsGroup extends AgentPermissionsGroup_base {}
|
|
17529
|
-
declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17530
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17531
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17532
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17533
|
-
readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
|
|
17534
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17535
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17536
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17537
|
-
readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17538
|
-
readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17539
|
-
readonly coversUnread: Schema.Boolean;
|
|
17540
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17541
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17542
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17543
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17544
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17545
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17546
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17547
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17548
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17549
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17550
|
-
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17551
|
-
readonly changed: Schema.Boolean;
|
|
17552
|
-
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17553
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/workflows", Schema.toCodecStringTree<Schema.Struct<{
|
|
17529
|
+
declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/workflows", Schema.toCodecStringTree<Schema.Struct<{
|
|
17554
17530
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17555
17531
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17556
17532
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -17719,7 +17695,31 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17719
17695
|
readonly thread: Schema.optionalKey<Schema.Int>;
|
|
17720
17696
|
readonly suspended: Schema.optionalKey<Schema.Literal<true>>;
|
|
17721
17697
|
}>>;
|
|
17722
|
-
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
17698
|
+
}>>, Schema.toCodecJson<typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/repos/:owner/:repo/workflows/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17699
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17700
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17701
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17702
|
+
readonly workflows: Schema.Union<readonly [Schema.Literal<"all">, Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>]>;
|
|
17703
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17704
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17705
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17706
|
+
readonly disabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17707
|
+
readonly alreadyDisabled: Schema.$Array<Schema.brand<Schema.String, "WorkflowName">>;
|
|
17708
|
+
readonly coversUnread: Schema.Boolean;
|
|
17709
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/v1/repos/:owner/:repo/workflows/enable", Schema.toCodecStringTree<Schema.Struct<{
|
|
17710
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17711
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17712
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17713
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17714
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17715
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17716
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17717
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
17718
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17719
|
+
readonly version: Schema.brand<Schema.String, "WorkflowVersion">;
|
|
17720
|
+
readonly changed: Schema.Boolean;
|
|
17721
|
+
readonly accountable: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17722
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFound | typeof NotPermitted | typeof DeliveryOutsideWindow | typeof ProjectNotReady | typeof RepoNotFound | typeof WorkflowNotFound | typeof WorkflowVersionMoved | typeof WorkflowsBeingRead | typeof WorkflowHasNoVersion>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"runs", "GET", "/v1/repos/:owner/:repo/workflows/:workflow/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17723
17723
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17724
17724
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17725
17725
|
workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
@@ -17798,23 +17798,124 @@ declare const WorkflowsGroup_base: HttpApiGroup.HttpApiGroup<"workflows", HttpAp
|
|
|
17798
17798
|
* person.
|
|
17799
17799
|
*/
|
|
17800
17800
|
declare class WorkflowsGroup extends WorkflowsGroup_base {}
|
|
17801
|
-
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"
|
|
17802
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17801
|
+
declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
17803
17802
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17804
17803
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17804
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17805
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
17806
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
17807
|
+
readonly kind: Schema.Literal<"main">;
|
|
17808
|
+
}>, Schema.Struct<{
|
|
17809
|
+
readonly kind: Schema.Literal<"thread">;
|
|
17810
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17811
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
17812
|
+
}>]>;
|
|
17813
|
+
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17814
|
+
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17805
17815
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
17806
|
-
|
|
17807
|
-
}>>,
|
|
17808
|
-
readonly
|
|
17809
|
-
|
|
17816
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
17817
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
17818
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [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.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
17828
|
+
}>, Schema.Struct<{
|
|
17829
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17830
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17831
|
+
readonly rerun: Schema.Int;
|
|
17832
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17833
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17834
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17835
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17836
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17837
|
+
readonly state: Schema.Literal<"ended">;
|
|
17838
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17839
|
+
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
17840
|
+
}>, Schema.Struct<{
|
|
17841
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17842
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17843
|
+
readonly rerun: Schema.Int;
|
|
17844
|
+
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17845
|
+
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
17846
|
+
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
17847
|
+
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
17848
|
+
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
17849
|
+
readonly state: Schema.Literal<"ended">;
|
|
17850
|
+
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
17851
|
+
}>]>>;
|
|
17852
|
+
}>, Schema.Struct<{
|
|
17853
|
+
readonly waiting: Schema.Struct<{
|
|
17854
|
+
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
17855
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17856
|
+
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
17857
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
17858
|
+
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
17859
|
+
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
17860
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
17861
|
+
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
17862
|
+
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
17863
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
17864
|
+
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
17865
|
+
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
17866
|
+
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
17867
|
+
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
17868
|
+
readonly since: Schema.DateTimeUtcFromString;
|
|
17869
|
+
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
17870
|
+
readonly kind: Schema.Literal<"person">;
|
|
17871
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
17872
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
17873
|
+
}>, Schema.Struct<{
|
|
17874
|
+
readonly kind: Schema.Literal<"agent">;
|
|
17875
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
17876
|
+
}>, Schema.Struct<{
|
|
17877
|
+
readonly kind: Schema.Literal<"holders">;
|
|
17878
|
+
readonly permission: Schema.String;
|
|
17879
|
+
}>]>>;
|
|
17880
|
+
readonly what: Schema.optionalKey<Schema.String>;
|
|
17881
|
+
readonly answer: Schema.optionalKey<Schema.String>;
|
|
17882
|
+
}>>;
|
|
17883
|
+
}>>;
|
|
17884
|
+
}>;
|
|
17885
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof RunUnavailable | typeof CheckNotFound | typeof NoThreadHead>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
17810
17886
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
17811
17887
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
17812
|
-
}>>, Schema.
|
|
17813
|
-
readonly
|
|
17814
|
-
readonly
|
|
17815
|
-
readonly
|
|
17816
|
-
|
|
17817
|
-
|
|
17888
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17889
|
+
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17890
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
17891
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17892
|
+
readonly code: Schema.Struct<{
|
|
17893
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
17894
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
17895
|
+
}>;
|
|
17896
|
+
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17897
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
17898
|
+
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
17899
|
+
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
17900
|
+
readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17901
|
+
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
17902
|
+
readonly kind: Schema.Literal<"review">;
|
|
17903
|
+
}>, Schema.Struct<{
|
|
17904
|
+
readonly kind: Schema.Literal<"accountable">;
|
|
17905
|
+
}>, Schema.Struct<{
|
|
17906
|
+
readonly kind: Schema.Literal<"admin">;
|
|
17907
|
+
}>, Schema.Struct<{
|
|
17908
|
+
readonly kind: Schema.Literal<"permission">;
|
|
17909
|
+
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
17910
|
+
}>]>>>;
|
|
17911
|
+
}>, Schema.Struct<{
|
|
17912
|
+
readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
|
|
17913
|
+
readonly why: Schema.optionalKey<Schema.String>;
|
|
17914
|
+
}>]>;
|
|
17915
|
+
readonly outputsHash: Schema.String;
|
|
17916
|
+
readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
17917
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17918
|
+
readonly run: Schema.Union<readonly [Schema.Struct<{
|
|
17818
17919
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
17819
17920
|
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
17820
17921
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -18044,81 +18145,31 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18044
18145
|
}>>;
|
|
18045
18146
|
readonly state: Schema.Literal<"ended">;
|
|
18046
18147
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18047
|
-
}>]
|
|
18048
|
-
|
|
18049
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
18148
|
+
}>]>;
|
|
18149
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"restoreSigner", "POST", "/v1/repos/:owner/:repo/checks/signers/restore", Schema.toCodecStringTree<Schema.Struct<{
|
|
18050
18150
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18051
18151
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18052
|
-
}>>, Schema.
|
|
18053
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18152
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18054
18153
|
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
|
-
readonly
|
|
18058
|
-
readonly
|
|
18059
|
-
|
|
18060
|
-
readonly
|
|
18061
|
-
|
|
18062
|
-
|
|
18063
|
-
|
|
18064
|
-
readonly
|
|
18065
|
-
|
|
18066
|
-
readonly compiled: Schema.Struct<{
|
|
18067
|
-
readonly entry: Schema.Struct<{
|
|
18068
|
-
readonly name: Schema.String;
|
|
18069
|
-
readonly module: Schema.String;
|
|
18070
|
-
readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18071
|
-
readonly files: Schema.$Array<Schema.String>;
|
|
18072
|
-
readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
18073
|
-
readonly sourceMap: Schema.optionalKey<Schema.String>;
|
|
18074
|
-
readonly reaches: Schema.optionalKey<Schema.Struct<{
|
|
18075
|
-
readonly tree: Schema.Boolean;
|
|
18076
|
-
readonly browser: Schema.Boolean;
|
|
18077
|
-
}>>;
|
|
18078
|
-
readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18079
|
-
readonly name: Schema.String;
|
|
18080
|
-
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18081
|
-
readonly pin: Schema.String;
|
|
18082
|
-
readonly format: Schema.Int;
|
|
18083
|
-
}>>>;
|
|
18084
|
-
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18085
|
-
}>;
|
|
18086
|
-
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
18087
|
-
}>;
|
|
18088
|
-
}>>, 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<{
|
|
18154
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18155
|
+
}>, Schema.Struct<{
|
|
18156
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18157
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18158
|
+
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18159
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18160
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18161
|
+
}>, Schema.Struct<{
|
|
18162
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18163
|
+
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18164
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
18089
18165
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18090
18166
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18091
|
-
}>>,
|
|
18092
|
-
readonly
|
|
18093
|
-
readonly
|
|
18094
|
-
readonly
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18098
|
-
}>;
|
|
18099
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18100
|
-
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18101
|
-
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
18102
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18103
|
-
readonly output: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18104
|
-
readonly needs: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18105
|
-
readonly kind: Schema.Literal<"review">;
|
|
18106
|
-
}>, Schema.Struct<{
|
|
18107
|
-
readonly kind: Schema.Literal<"accountable">;
|
|
18108
|
-
}>, Schema.Struct<{
|
|
18109
|
-
readonly kind: Schema.Literal<"admin">;
|
|
18110
|
-
}>, Schema.Struct<{
|
|
18111
|
-
readonly kind: Schema.Literal<"permission">;
|
|
18112
|
-
readonly name: Schema.brand<Schema.String, "RepoPermissionName">;
|
|
18113
|
-
}>]>>>;
|
|
18114
|
-
}>, Schema.Struct<{
|
|
18115
|
-
readonly error: Schema.Literals<readonly ["threw", "invalid output", "timeout"]>;
|
|
18116
|
-
readonly why: Schema.optionalKey<Schema.String>;
|
|
18117
|
-
}>]>;
|
|
18118
|
-
readonly outputsHash: Schema.String;
|
|
18119
|
-
readonly attachment: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">>;
|
|
18120
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18121
|
-
readonly run: Schema.Union<readonly [Schema.Struct<{
|
|
18167
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18168
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18169
|
+
readonly check: Schema.optionalKey<Schema.brand<Schema.String, "CheckKey">>;
|
|
18170
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18171
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18172
|
+
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18122
18173
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18123
18174
|
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18124
18175
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -18348,39 +18399,23 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18348
18399
|
}>>;
|
|
18349
18400
|
readonly state: Schema.Literal<"ended">;
|
|
18350
18401
|
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18351
|
-
}>]
|
|
18352
|
-
|
|
18402
|
+
}>]>>;
|
|
18403
|
+
readonly before: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18404
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/v1/repos/:owner/:repo/runs/waiting/:start/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
18405
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18353
18406
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18354
18407
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18355
|
-
}>>,
|
|
18356
|
-
readonly
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
}>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18362
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18363
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18364
|
-
}>, Schema.Struct<{
|
|
18365
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18366
|
-
readonly person: Schema.brand<Schema.String, "OwnerName">;
|
|
18367
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof RepoNotFound | typeof SignerNotRevoked>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/v1/repos/:owner/:repo/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
18408
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18409
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18410
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18411
|
+
readonly cancelled: Schema.Literals<readonly ["start", "yours"]>;
|
|
18412
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof StartNotFound | typeof StartPast | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"waiting", "GET", "/v1/repos/:owner/:repo/runs/waiting/:start", Schema.toCodecStringTree<Schema.Struct<{
|
|
18413
|
+
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18368
18414
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18369
18415
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18370
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18371
|
-
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18372
|
-
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
18373
|
-
readonly kind: Schema.Literal<"main">;
|
|
18374
|
-
}>, Schema.Struct<{
|
|
18375
|
-
readonly kind: Schema.Literal<"thread">;
|
|
18376
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18377
|
-
readonly branch: Schema.optionalKey<Schema.String>;
|
|
18378
|
-
}>]>;
|
|
18379
|
-
readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18380
|
-
readonly rerun: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18381
18416
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18382
|
-
|
|
18383
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18417
|
+
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18418
|
+
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18384
18419
|
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18385
18420
|
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18386
18421
|
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -18448,7 +18483,46 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18448
18483
|
}>>;
|
|
18449
18484
|
}>>;
|
|
18450
18485
|
}>;
|
|
18451
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof
|
|
18486
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"local", "GET", "/v1/repos/:owner/:repo/runs/local", Schema.toCodecStringTree<Schema.Struct<{
|
|
18487
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18488
|
+
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18489
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18490
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
18491
|
+
readonly check: Schema.brand<Schema.String, "CheckKey">;
|
|
18492
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18493
|
+
readonly pullRequest: Schema.brand<Schema.Int, "PullRequestNumber">;
|
|
18494
|
+
readonly version: Schema.brand<Schema.Int, "VersionNumber">;
|
|
18495
|
+
readonly tree: Schema.brand<Schema.String, "TreeOid">;
|
|
18496
|
+
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18497
|
+
readonly code: Schema.Struct<{
|
|
18498
|
+
readonly version: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18499
|
+
readonly origin: Schema.Literals<readonly ["main", "thread", "project"]>;
|
|
18500
|
+
}>;
|
|
18501
|
+
readonly timeoutSeconds: Schema.Int;
|
|
18502
|
+
readonly runs: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18503
|
+
readonly compiled: Schema.Struct<{
|
|
18504
|
+
readonly entry: Schema.Struct<{
|
|
18505
|
+
readonly name: Schema.String;
|
|
18506
|
+
readonly module: Schema.String;
|
|
18507
|
+
readonly manifest: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18508
|
+
readonly files: Schema.$Array<Schema.String>;
|
|
18509
|
+
readonly templates: Schema.optionalKey<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
18510
|
+
readonly sourceMap: Schema.optionalKey<Schema.String>;
|
|
18511
|
+
readonly reaches: Schema.optionalKey<Schema.Struct<{
|
|
18512
|
+
readonly tree: Schema.Boolean;
|
|
18513
|
+
readonly browser: Schema.Boolean;
|
|
18514
|
+
}>>;
|
|
18515
|
+
readonly sandboxes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18516
|
+
readonly name: Schema.String;
|
|
18517
|
+
readonly manifest: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18518
|
+
readonly pin: Schema.String;
|
|
18519
|
+
readonly format: Schema.Int;
|
|
18520
|
+
}>>>;
|
|
18521
|
+
readonly codeHash: Schema.brand<Schema.String, "CheckCodeVersion">;
|
|
18522
|
+
}>;
|
|
18523
|
+
readonly modules: Schema.$Record<Schema.String, Schema.String>;
|
|
18524
|
+
}>;
|
|
18525
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RunUnavailable | typeof LocalRunRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"trace", "GET", "/v1/repos/:owner/:repo/runs/:run/trace", Schema.toCodecStringTree<Schema.Struct<{
|
|
18452
18526
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18453
18527
|
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18454
18528
|
run: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">, Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">]>;
|
|
@@ -18574,81 +18648,7 @@ declare const RunsGroup_base: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.
|
|
|
18574
18648
|
}>>;
|
|
18575
18649
|
readonly cursor: Schema.brand<Schema.String, "TraceCursor">;
|
|
18576
18650
|
readonly more: Schema.Boolean;
|
|
18577
|
-
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never
|
|
18578
|
-
start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18579
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18580
|
-
repo: Schema.brand<Schema.String, "RepoName">;
|
|
18581
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18582
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.String, "WrittenThread">>;
|
|
18583
|
-
}>>, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
18584
|
-
readonly runs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
18585
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18586
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18587
|
-
readonly rerun: Schema.Int;
|
|
18588
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18589
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18590
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18591
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18592
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18593
|
-
readonly state: Schema.Literals<readonly ["waiting", "pending", "starting", "created", "running"]>;
|
|
18594
|
-
}>, Schema.Struct<{
|
|
18595
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18596
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18597
|
-
readonly rerun: Schema.Int;
|
|
18598
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18599
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18600
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18601
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18602
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18603
|
-
readonly state: Schema.Literal<"ended">;
|
|
18604
|
-
readonly conclusion: Schema.Literals<readonly ["success", "failure", "neutral"]>;
|
|
18605
|
-
readonly reused: Schema.optionalKey<Schema.Literal<true>>;
|
|
18606
|
-
}>, Schema.Struct<{
|
|
18607
|
-
readonly run: Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">;
|
|
18608
|
-
readonly params: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18609
|
-
readonly rerun: Schema.Int;
|
|
18610
|
-
readonly rerunOf: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18611
|
-
readonly got: Schema.Literals<readonly ["new", "joined", "answered"]>;
|
|
18612
|
-
readonly reusedFrom: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["checkrun_", Schema.String]>, "CheckRunId">>;
|
|
18613
|
-
readonly readsMoved: Schema.optionalKey<Schema.String>;
|
|
18614
|
-
readonly reuseSkipped: Schema.optionalKey<Schema.String>;
|
|
18615
|
-
readonly state: Schema.Literal<"ended">;
|
|
18616
|
-
readonly error: Schema.Literals<readonly ["timeout", "threw", "invalid output", "unavailable", "expired", "cancelled"]>;
|
|
18617
|
-
}>]>>;
|
|
18618
|
-
}>, Schema.Struct<{
|
|
18619
|
-
readonly waiting: Schema.Struct<{
|
|
18620
|
-
readonly start: Schema.brand<Schema.TemplateLiteral<readonly ["startwait_", Schema.String]>, "StartWaitId">;
|
|
18621
|
-
readonly check: Schema.brand<Schema.String, "CheckName">;
|
|
18622
|
-
readonly params: Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18623
|
-
readonly thread: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["thread_", Schema.String]>, "ThreadId">>;
|
|
18624
|
-
readonly waitingSince: Schema.DateTimeUtcFromString;
|
|
18625
|
-
readonly endsAt: Schema.DateTimeUtcFromString;
|
|
18626
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
18627
|
-
readonly workflow: Schema.brand<Schema.String, "WorkflowName">;
|
|
18628
|
-
readonly run: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["workflowrun_", Schema.String]>, "WorkflowRunId">>;
|
|
18629
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
18630
|
-
readonly state: Schema.Literals<readonly ["starting", "going", "allowed", "refused", "failed"]>;
|
|
18631
|
-
readonly leaves: Schema.$Array<Schema.Struct<{
|
|
18632
|
-
readonly kind: Schema.Literals<readonly ["ask", "passkey"]>;
|
|
18633
|
-
readonly state: Schema.Literals<readonly ["waiting", "answered", "ended"]>;
|
|
18634
|
-
readonly since: Schema.DateTimeUtcFromString;
|
|
18635
|
-
readonly who: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
18636
|
-
readonly kind: Schema.Literal<"person">;
|
|
18637
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18638
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "OwnerName">>;
|
|
18639
|
-
}>, Schema.Struct<{
|
|
18640
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18641
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
18642
|
-
}>, Schema.Struct<{
|
|
18643
|
-
readonly kind: Schema.Literal<"holders">;
|
|
18644
|
-
readonly permission: Schema.String;
|
|
18645
|
-
}>]>>;
|
|
18646
|
-
readonly what: Schema.optionalKey<Schema.String>;
|
|
18647
|
-
readonly answer: Schema.optionalKey<Schema.String>;
|
|
18648
|
-
}>>;
|
|
18649
|
-
}>>;
|
|
18650
|
-
}>;
|
|
18651
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof ThreadNotFound | typeof RepoNotFound | typeof RequestChanged | typeof RunsBusy | typeof RunRefused | typeof StartNotFound | typeof RunUnavailable>, Authorization, never>, false>;
|
|
18651
|
+
}>>, Schema.toCodecJson<typeof ThreadNotFound | typeof RepoNotFound | typeof RunNotFound | typeof InvalidCursor | typeof TraceUnavailable>, Authorization, never>, false>;
|
|
18652
18652
|
/**
|
|
18653
18653
|
* A repo's check runs: starting them, on `main` or a thread's head, for whoever's token reaches
|
|
18654
18654
|
* `check:run` there, and listing them, one scope at a time, for whoever sees it. A person's start
|
|
@@ -18676,15 +18676,6 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18676
18676
|
readonly request: Schema.String;
|
|
18677
18677
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18678
18678
|
readonly redirect: Schema.String;
|
|
18679
|
-
}>>, 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<{
|
|
18680
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18681
|
-
grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18682
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18683
|
-
readonly request: Schema.String;
|
|
18684
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18685
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18686
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18687
|
-
readonly redirect: Schema.String;
|
|
18688
18679
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"grant", "POST", "/v1/owners/:owner/client-grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
18689
18680
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18690
18681
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -18701,24 +18692,23 @@ declare const ClientGrantsGroup_base: HttpApiGroup.HttpApiGroup<"clientGrants",
|
|
|
18701
18692
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18702
18693
|
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18703
18694
|
readonly client: Schema.String;
|
|
18704
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never
|
|
18695
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof CommandRefused | typeof ApprovalNeeded | typeof SlowDown | typeof ConsentRefused>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"finish", "POST", "/v1/owners/:owner/client-grants/:grant/finish", Schema.toCodecStringTree<Schema.Struct<{
|
|
18696
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18697
|
+
grant: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
18698
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
18699
|
+
readonly request: Schema.String;
|
|
18700
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18701
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18702
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18703
|
+
readonly redirect: Schema.String;
|
|
18704
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof ConsentRefused>, Authorization, never>, false>;
|
|
18705
18705
|
/**
|
|
18706
18706
|
* Client grants (layer 4, PR 11a): an outside MCP client's consent on `/connect/app`. Granting
|
|
18707
18707
|
* runs by the person's approval, answered with their passkey; finishing, from the browser that
|
|
18708
18708
|
* consented, hands the client its code.
|
|
18709
18709
|
*/
|
|
18710
18710
|
declare class ClientGrantsGroup extends ClientGrantsGroup_base {}
|
|
18711
|
-
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18712
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18713
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18714
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18715
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18716
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18717
|
-
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18718
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18719
|
-
readonly displayName: Schema.String;
|
|
18720
|
-
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18721
|
-
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18711
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"leave", "DELETE", "/v1/me/organizations/:owner", Schema.toCodecStringTree<Schema.Struct<{
|
|
18722
18712
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18723
18713
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18724
18714
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
@@ -18734,50 +18724,17 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18734
18724
|
}>;
|
|
18735
18725
|
}>]>;
|
|
18736
18726
|
readonly why: Schema.Literals<readonly ["removed", "left"]>;
|
|
18737
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
18738
|
-
|
|
18727
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/v1/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18728
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18729
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
18739
18730
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
readonly
|
|
18744
|
-
readonly
|
|
18745
|
-
readonly
|
|
18746
|
-
|
|
18747
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18748
|
-
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"]>;
|
|
18749
|
-
readonly quantity: Schema.Finite;
|
|
18750
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18751
|
-
}>>;
|
|
18752
|
-
}>>;
|
|
18753
|
-
readonly work: Schema.$Array<Schema.Struct<{
|
|
18754
|
-
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18755
|
-
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18756
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18757
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18758
|
-
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"]>;
|
|
18759
|
-
readonly quantity: Schema.Finite;
|
|
18760
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18761
|
-
}>>;
|
|
18762
|
-
}>>;
|
|
18763
|
-
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18764
|
-
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18765
|
-
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18766
|
-
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18767
|
-
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18768
|
-
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18769
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18770
|
-
readonly bytes: Schema.Int;
|
|
18771
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18772
|
-
}>>;
|
|
18773
|
-
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18774
|
-
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18775
|
-
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18776
|
-
readonly counts: Schema.Int;
|
|
18777
|
-
readonly bytes: Schema.Int;
|
|
18778
|
-
}>>>;
|
|
18779
|
-
}>>;
|
|
18780
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18731
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
18732
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
18733
|
+
readonly owner: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
18734
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
18735
|
+
readonly displayName: Schema.String;
|
|
18736
|
+
readonly state: Schema.Literals<readonly ["initializing", "ready"]>;
|
|
18737
|
+
}>>, Schema.toCodecJson<typeof NameTaken | typeof NameReserved | typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"mine", "GET", "/v1/me/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18781
18738
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">>;
|
|
18782
18739
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18783
18740
|
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
@@ -18959,36 +18916,58 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations"
|
|
|
18959
18916
|
readonly cost: Schema.Finite;
|
|
18960
18917
|
readonly threads: Schema.Int;
|
|
18961
18918
|
}>>;
|
|
18962
|
-
}>;
|
|
18963
|
-
readonly pricesAsOf: Schema.String;
|
|
18964
|
-
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never
|
|
18919
|
+
}>;
|
|
18920
|
+
readonly pricesAsOf: Schema.String;
|
|
18921
|
+
}>]>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"meters", "GET", "/v1/owners/:owner/meters", Schema.toCodecStringTree<Schema.Struct<{
|
|
18922
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18923
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18924
|
+
from: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18925
|
+
to: Schema.optionalKey<Schema.brand<Schema.String, "UtcDay">>;
|
|
18926
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18927
|
+
readonly from: Schema.brand<Schema.String, "UtcDay">;
|
|
18928
|
+
readonly to: Schema.brand<Schema.String, "UtcDay">;
|
|
18929
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
18930
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18931
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18932
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
18933
|
+
readonly quantity: Schema.Finite;
|
|
18934
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18935
|
+
}>>;
|
|
18936
|
+
}>>;
|
|
18937
|
+
readonly work: Schema.$Array<Schema.Struct<{
|
|
18938
|
+
readonly work: Schema.optionalKey<Schema.Literals<readonly ["sandbox", "check run", "merge queue", "snapshot build"]>>;
|
|
18939
|
+
readonly repo: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">>;
|
|
18940
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18941
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
18942
|
+
readonly meter: Schema.Literals<readonly ["containers.vcpu_seconds", "containers.memory_gib_seconds", "containers.disk_gb_seconds", "containers.egress_gb", "browser.seconds", "artifacts.bytes", "r2.bytes"]>;
|
|
18943
|
+
readonly quantity: Schema.Finite;
|
|
18944
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18945
|
+
}>>;
|
|
18946
|
+
}>>;
|
|
18947
|
+
readonly kept: Schema.optionalKey<Schema.Struct<{
|
|
18948
|
+
readonly day: Schema.brand<Schema.String, "UtcDay">;
|
|
18949
|
+
readonly counts: Schema.$Array<Schema.Struct<{
|
|
18950
|
+
readonly repo: Schema.brand<Schema.TemplateLiteral<readonly ["repo_", Schema.String]>, "RepoId">;
|
|
18951
|
+
readonly name: Schema.optionalKey<Schema.brand<Schema.String, "RepoName">>;
|
|
18952
|
+
readonly fork: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["fork_", Schema.String]>, "ForkId">>;
|
|
18953
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18954
|
+
readonly bytes: Schema.Int;
|
|
18955
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18956
|
+
}>>;
|
|
18957
|
+
readonly others: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
18958
|
+
readonly store: Schema.Literals<readonly ["artifacts", "r2"]>;
|
|
18959
|
+
readonly known: Schema.Literals<readonly ["measured", "estimated"]>;
|
|
18960
|
+
readonly counts: Schema.Int;
|
|
18961
|
+
readonly bytes: Schema.Int;
|
|
18962
|
+
}>>>;
|
|
18963
|
+
}>>;
|
|
18964
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof UsageRangeRefused | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
18965
18965
|
/**
|
|
18966
18966
|
* Organizations (layer 1): making one, the person's own list of theirs, leaving one, and its
|
|
18967
18967
|
* usage. Every change is a person's, by approval; agents never change members.
|
|
18968
18968
|
*/
|
|
18969
18969
|
declare class OrganizationsGroup extends OrganizationsGroup_base {}
|
|
18970
|
-
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"
|
|
18971
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18972
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
18973
|
-
cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
18974
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
18975
|
-
readonly members: Schema.$Array<Schema.Struct<{
|
|
18976
|
-
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
18977
|
-
readonly kind: Schema.Literal<"person">;
|
|
18978
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
18979
|
-
}>, Schema.Struct<{
|
|
18980
|
-
readonly kind: Schema.Literal<"agent">;
|
|
18981
|
-
readonly agent: Schema.Struct<{
|
|
18982
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
18983
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
18984
|
-
}>;
|
|
18985
|
-
}>]>;
|
|
18986
|
-
readonly name: Schema.String;
|
|
18987
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
18988
|
-
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
18989
|
-
}>>;
|
|
18990
|
-
readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
18991
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18970
|
+
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/members/:member", Schema.toCodecStringTree<Schema.Struct<{
|
|
18992
18971
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
18993
18972
|
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">]>;
|
|
18994
18973
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -19024,7 +19003,28 @@ declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEnd
|
|
|
19024
19003
|
}>;
|
|
19025
19004
|
}>]>;
|
|
19026
19005
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19027
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never
|
|
19006
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof LastAdmin | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
19007
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19008
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19009
|
+
cursor: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
19010
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19011
|
+
readonly members: Schema.$Array<Schema.Struct<{
|
|
19012
|
+
readonly member: Schema.Union<readonly [Schema.Struct<{
|
|
19013
|
+
readonly kind: Schema.Literal<"person">;
|
|
19014
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19015
|
+
}>, Schema.Struct<{
|
|
19016
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19017
|
+
readonly agent: Schema.Struct<{
|
|
19018
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19019
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19020
|
+
}>;
|
|
19021
|
+
}>]>;
|
|
19022
|
+
readonly name: Schema.String;
|
|
19023
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19024
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19025
|
+
}>>;
|
|
19026
|
+
readonly next: Schema.optionalKey<Schema.brand<Schema.String, "MemberCursor">>;
|
|
19027
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19028
19028
|
/** An organization's members: any member lists them; an admin changes a role or removes one. */
|
|
19029
19029
|
declare class MembersGroup extends MembersGroup_base {}
|
|
19030
19030
|
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/v1/me/invitations/:invitation/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -19045,7 +19045,29 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
19045
19045
|
readonly organization: Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">;
|
|
19046
19046
|
readonly answer: Schema.Literals<readonly ["accept", "decline"]>;
|
|
19047
19047
|
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19048
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19048
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"withdraw", "DELETE", "/v1/owners/:owner/invitations/:invitation", Schema.toCodecStringTree<Schema.Struct<{
|
|
19049
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19050
|
+
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19051
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19052
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19053
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19054
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19055
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19056
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19057
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19058
|
+
readonly invitee: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19059
|
+
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
19060
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19061
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19062
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19063
|
+
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19064
|
+
readonly invitee: Schema.Struct<{
|
|
19065
|
+
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19066
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19067
|
+
}>;
|
|
19068
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19069
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19070
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AlreadyMember | typeof InvitationOpen | typeof OrganizationNotFound | typeof PersonNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19049
19071
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19050
19072
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19051
19073
|
cursor: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
@@ -19077,84 +19099,13 @@ declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", Ht
|
|
|
19077
19099
|
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19078
19100
|
}>>;
|
|
19079
19101
|
readonly next: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">>;
|
|
19080
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never
|
|
19081
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19082
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19083
|
-
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">]>;
|
|
19084
|
-
readonly role: Schema.optionalKey<Schema.Literals<readonly ["admin", "member"]>>;
|
|
19085
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19086
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19087
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19088
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19089
|
-
readonly invitee: Schema.Struct<{
|
|
19090
|
-
readonly person: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19091
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19092
|
-
}>;
|
|
19093
|
-
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
19094
|
-
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
19095
|
-
}>>, 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<{
|
|
19096
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19097
|
-
invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19098
|
-
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19099
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19100
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19101
|
-
readonly invitation: Schema.brand<Schema.TemplateLiteral<readonly ["invitation_", Schema.String]>, "InvitationId">;
|
|
19102
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof InvitationNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19102
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable>, Authorization, never>, false>;
|
|
19103
19103
|
/**
|
|
19104
19104
|
* Invitations: an organization's admins send, list and withdraw them; the person invited lists
|
|
19105
19105
|
* theirs and accepts or declines one, which is found from their own list, never the client.
|
|
19106
19106
|
*/
|
|
19107
19107
|
declare class InvitationsGroup extends InvitationsGroup_base {}
|
|
19108
|
-
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19109
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19110
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19111
|
-
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19112
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
19113
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19114
|
-
readonly grants: Schema.$Array<Schema.Struct<{
|
|
19115
|
-
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
19116
|
-
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
19117
|
-
readonly kind: Schema.Literal<"owner">;
|
|
19118
|
-
}>, Schema.Struct<{
|
|
19119
|
-
readonly kind: Schema.Literal<"project">;
|
|
19120
|
-
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
19121
|
-
}>, Schema.Struct<{
|
|
19122
|
-
readonly kind: Schema.Literal<"thread">;
|
|
19123
|
-
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
19124
|
-
}>, Schema.Struct<{
|
|
19125
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19126
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19127
|
-
}>]>;
|
|
19128
|
-
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
19129
|
-
readonly kind: Schema.Literal<"person">;
|
|
19130
|
-
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19131
|
-
}>, Schema.Struct<{
|
|
19132
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19133
|
-
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
19134
|
-
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19135
|
-
}>, Schema.Struct<{
|
|
19136
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19137
|
-
readonly agent: Schema.Struct<{
|
|
19138
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19139
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19140
|
-
}>;
|
|
19141
|
-
}>]>;
|
|
19142
|
-
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
19143
|
-
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
19144
|
-
readonly kind: Schema.Literal<"person">;
|
|
19145
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19146
|
-
}>, Schema.Struct<{
|
|
19147
|
-
readonly kind: Schema.Literal<"agent">;
|
|
19148
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19149
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19150
|
-
}>, Schema.Struct<{
|
|
19151
|
-
readonly kind: Schema.Literal<"ref0">;
|
|
19152
|
-
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")[]>;
|
|
19153
|
-
}>]>;
|
|
19154
|
-
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
19155
|
-
}>>;
|
|
19156
|
-
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19157
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
19108
|
+
declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
19158
19109
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19159
19110
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19160
19111
|
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -19266,7 +19217,56 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
19266
19217
|
}>;
|
|
19267
19218
|
}>]>;
|
|
19268
19219
|
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
19269
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never
|
|
19220
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof MemberNotFound | typeof OrganizationNotFound | typeof SubjectNotFound | typeof RoleNotFitting>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/grants", Schema.toCodecStringTree<Schema.Struct<{
|
|
19221
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19222
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19223
|
+
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19224
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
19225
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19226
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
19227
|
+
readonly grant: Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">;
|
|
19228
|
+
readonly subject: Schema.Union<readonly [Schema.Struct<{
|
|
19229
|
+
readonly kind: Schema.Literal<"owner">;
|
|
19230
|
+
}>, Schema.Struct<{
|
|
19231
|
+
readonly kind: Schema.Literal<"project">;
|
|
19232
|
+
readonly project: Schema.brand<Schema.String, "ProjectName">;
|
|
19233
|
+
}>, Schema.Struct<{
|
|
19234
|
+
readonly kind: Schema.Literal<"thread">;
|
|
19235
|
+
readonly thread: Schema.brand<Schema.String, "WrittenThread">;
|
|
19236
|
+
}>, Schema.Struct<{
|
|
19237
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19238
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19239
|
+
}>]>;
|
|
19240
|
+
readonly principal: Schema.Union<readonly [Schema.Struct<{
|
|
19241
|
+
readonly kind: Schema.Literal<"person">;
|
|
19242
|
+
readonly name: Schema.brand<Schema.String, "OwnerName">;
|
|
19243
|
+
}>, Schema.Struct<{
|
|
19244
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19245
|
+
readonly owner: Schema.brand<Schema.String, "OwnerName">;
|
|
19246
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19247
|
+
}>, Schema.Struct<{
|
|
19248
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19249
|
+
readonly agent: Schema.Struct<{
|
|
19250
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19251
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19252
|
+
}>;
|
|
19253
|
+
}>]>;
|
|
19254
|
+
readonly role: Schema.Literals<readonly ["read", "write", "attach", "manage"]>;
|
|
19255
|
+
readonly grantedBy: Schema.Union<readonly [Schema.Struct<{
|
|
19256
|
+
readonly kind: Schema.Literal<"person">;
|
|
19257
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">;
|
|
19258
|
+
}>, Schema.Struct<{
|
|
19259
|
+
readonly kind: Schema.Literal<"agent">;
|
|
19260
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19261
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19262
|
+
}>, Schema.Struct<{
|
|
19263
|
+
readonly kind: Schema.Literal<"ref0">;
|
|
19264
|
+
readonly id: Schema.Literals<("ref0:attachments" | "ref0:barrier" | "ref0:blockers" | "ref0:checks" | "ref0:gate" | "ref0:hooks" | "ref0:importer" | "ref0:invitations" | "ref0:listings" | "ref0:mirror" | "ref0:needs" | "ref0:oauth" | "ref0:owners" | "ref0:plans" | "ref0:prepare" | "ref0:project-gate" | "ref0:pushes" | "ref0:queue" | "ref0:rebuilder" | "ref0:sessions" | "ref0:sign-in" | "ref0:stages" | "ref0:sweeper" | "ref0:usage" | "ref0:warm-up" | "ref0:workflows")[]>;
|
|
19265
|
+
}>]>;
|
|
19266
|
+
readonly grantedAt: Schema.DateTimeUtcFromMillis;
|
|
19267
|
+
}>>;
|
|
19268
|
+
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["event_", Schema.String]>, "EventId">>;
|
|
19269
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19270
19270
|
/**
|
|
19271
19271
|
* An organization's grants (layer 1): any person lists those they may see; an admin gives one or
|
|
19272
19272
|
* takes one back, by approval, naming it in the body, `DELETE` too. People only: agents never
|
|
@@ -19274,13 +19274,10 @@ declare const GrantsGroup_base: HttpApiGroup.HttpApiGroup<"grants", HttpApiEndpo
|
|
|
19274
19274
|
* `OrganizationNotFound`.
|
|
19275
19275
|
*/
|
|
19276
19276
|
declare class GrantsGroup extends GrantsGroup_base {}
|
|
19277
|
-
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19277
|
+
declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/v1/owners/:owner/agents/:agent", Schema.toCodecStringTree<Schema.Struct<{
|
|
19278
19278
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19282
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19283
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19279
|
+
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19280
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19284
19281
|
readonly agent: Schema.Struct<{
|
|
19285
19282
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19286
19283
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -19288,7 +19285,8 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19288
19285
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19289
19286
|
readonly generation: Schema.Int;
|
|
19290
19287
|
readonly turnedOff: Schema.Boolean;
|
|
19291
|
-
|
|
19288
|
+
readonly addedAt: Schema.DateTimeUtcFromMillis;
|
|
19289
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/v1/owners/:owner/agents/:agent/disable", Schema.toCodecStringTree<Schema.Struct<{
|
|
19292
19290
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19293
19291
|
agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19294
19292
|
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -19314,10 +19312,13 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19314
19312
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19315
19313
|
readonly generation: Schema.Int;
|
|
19316
19314
|
readonly turnedOff: Schema.Boolean;
|
|
19317
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
19315
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19318
19316
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19319
|
-
|
|
19320
|
-
|
|
19317
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19318
|
+
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19319
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19320
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19321
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19321
19322
|
readonly agent: Schema.Struct<{
|
|
19322
19323
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19323
19324
|
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
@@ -19325,8 +19326,7 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19325
19326
|
readonly handle: Schema.brand<Schema.String, "AgentHandle">;
|
|
19326
19327
|
readonly generation: Schema.Int;
|
|
19327
19328
|
readonly turnedOff: Schema.Boolean;
|
|
19328
|
-
|
|
19329
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19329
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof HandleTaken | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agents", Schema.toCodecStringTree<Schema.Struct<{
|
|
19330
19330
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19331
19331
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19332
19332
|
after: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
@@ -19351,15 +19351,10 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"agents", HttpApiEndpo
|
|
|
19351
19351
|
* its machines' host grants by the agent's ID.
|
|
19352
19352
|
*/
|
|
19353
19353
|
declare class AgentsGroup extends AgentsGroup_base {}
|
|
19354
|
-
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"
|
|
19354
|
+
declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorizations", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/v1/owners/:owner/authorizations/:attachment", Schema.toCodecStringTree<Schema.Struct<{
|
|
19355
19355
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
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">]>;
|
|
19359
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19360
|
-
}>;
|
|
19361
|
-
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19362
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19356
|
+
attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19357
|
+
}>>, never, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19363
19358
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19364
19359
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19365
19360
|
readonly agent: Schema.Struct<{
|
|
@@ -19372,10 +19367,15 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
19372
19367
|
}>;
|
|
19373
19368
|
readonly generation: Schema.Int;
|
|
19374
19369
|
readonly authorized: Schema.Boolean;
|
|
19375
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19370
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound | typeof AuthorizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/v1/owners/:owner/authorizations", Schema.toCodecStringTree<Schema.Struct<{
|
|
19376
19371
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19377
|
-
|
|
19378
|
-
|
|
19372
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19373
|
+
readonly agent: Schema.Struct<{
|
|
19374
|
+
readonly owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19375
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19376
|
+
}>;
|
|
19377
|
+
readonly attachment: Schema.brand<Schema.TemplateLiteral<readonly ["token_", Schema.String]>, "TokenId">;
|
|
19378
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19379
19379
|
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19380
19380
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19381
19381
|
readonly agent: Schema.Struct<{
|
|
@@ -19388,7 +19388,7 @@ declare const AuthorizationsGroup_base: HttpApiGroup.HttpApiGroup<"authorization
|
|
|
19388
19388
|
}>;
|
|
19389
19389
|
readonly generation: Schema.Int;
|
|
19390
19390
|
readonly authorized: Schema.Boolean;
|
|
19391
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof
|
|
19391
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof AgentTurnedOff | typeof DeliveryOutsideWindow | typeof AttachmentNotFound | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19392
19392
|
/**
|
|
19393
19393
|
* A member's own agent working in an organization (layer 1): its person authorizes an attachment
|
|
19394
19394
|
* of it there, by its credential's ID, or takes that back. The Worker checks the attachment is
|
|
@@ -19412,6 +19412,22 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
19412
19412
|
}>;
|
|
19413
19413
|
readonly targetGeneration: Schema.Int;
|
|
19414
19414
|
readonly turnedOff: Schema.Boolean;
|
|
19415
|
+
}>>, 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<{
|
|
19416
|
+
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19417
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19418
|
+
readonly agent: Schema.Struct<{
|
|
19419
|
+
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">]>;
|
|
19420
|
+
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19421
|
+
}>;
|
|
19422
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19423
|
+
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19424
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19425
|
+
readonly agent: Schema.Struct<{
|
|
19426
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19427
|
+
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19428
|
+
}>;
|
|
19429
|
+
readonly targetGeneration: Schema.Int;
|
|
19430
|
+
readonly turnedOff: Schema.Boolean;
|
|
19415
19431
|
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/v1/owners/:owner/agent-disables", Schema.toCodecStringTree<Schema.Struct<{
|
|
19416
19432
|
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19417
19433
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -19439,23 +19455,7 @@ declare const AgentDisablesGroup_base: HttpApiGroup.HttpApiGroup<"agentDisables"
|
|
|
19439
19455
|
readonly disabledAt: Schema.DateTimeUtcFromMillis;
|
|
19440
19456
|
}>>;
|
|
19441
19457
|
readonly nextAfter: Schema.optionalKey<Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">>;
|
|
19442
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never
|
|
19443
|
-
owner: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>, Schema.brand<Schema.String, "OwnerName">]>;
|
|
19444
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
19445
|
-
readonly agent: Schema.Struct<{
|
|
19446
|
-
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">]>;
|
|
19447
|
-
readonly agent: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">, Schema.brand<Schema.String, "AgentHandle">]>;
|
|
19448
|
-
}>;
|
|
19449
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
19450
|
-
'idempotency-key': Schema.brand<Schema.TemplateLiteral<readonly ["request_", Schema.String]>, "RequestId">;
|
|
19451
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
19452
|
-
readonly agent: Schema.Struct<{
|
|
19453
|
-
readonly owner: Schema.Union<readonly [Schema.brand<Schema.TemplateLiteral<readonly ["person_", Schema.String]>, "PersonId">, Schema.brand<Schema.TemplateLiteral<readonly ["org_", Schema.String]>, "OrgId">]>;
|
|
19454
|
-
readonly id: Schema.brand<Schema.TemplateLiteral<readonly ["agent_", Schema.String]>, "AgentId">;
|
|
19455
|
-
}>;
|
|
19456
|
-
readonly targetGeneration: Schema.Int;
|
|
19457
|
-
readonly turnedOff: Schema.Boolean;
|
|
19458
|
-
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof AgentNotFound | typeof DeliveryOutsideWindow | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19458
|
+
}>>, Schema.toCodecJson<typeof NotPermitted | typeof AuthorityUnavailable | typeof OrganizationNotFound>, Authorization, never>, false>;
|
|
19459
19459
|
/**
|
|
19460
19460
|
* Agents of other owners an organization's admin turns off there (layer 1), such as a member's
|
|
19461
19461
|
* own, named in the body, `DELETE` too, since a handle alone can't tell `pip/claude` from
|
|
@@ -29770,4 +29770,4 @@ declare const SandboxExecAnswer: Schema.Union<readonly [Schema.Struct<{
|
|
|
29770
29770
|
type SandboxExecAnswer = typeof SandboxExecAnswer.Type;
|
|
29771
29771
|
//#endregion
|
|
29772
29772
|
export { MirrorChoice as $, WorkflowAnswerer as $t, ConnectionCall as A, WorkflowPasskeyState as An, SandboxPushAnswer as At, EndpointName as B, WorkflowTrigger as Bn, StartActor as Bt, ClientGranted as C, WorkflowEvent as Cn, RepoView as Ct, ConnectFolderOption as D, WorkflowPasskeyAsked as Dn, SandboxOpen as Dt, ConnectFolderChoices as E, WorkflowPasskeyAsk as En, SandboxExecAnswer as Et, ConnectionView as F, WorkflowRequestRefusal as Fn, SentryRegion as Ft, GateOwn as G, hookTokenPrefix as Gn, TrackClosed as Gt, FoldersConnected as H, commandLine as Hn, StatementView as Ht, ConsentAsked as I, WorkflowStartEnded as In, SentryToken as It, ImportFailure as J, liveSocketUrl as Jn, TypedApprovalCode as Jt, GetIssueInput as K, hookUrl as Kn, TrackSession as Kt, ConsentClient as L, WorkflowStartState as Ln, SignInDestination as Lt, ConnectionChanged as M, WorkflowPreview as Mn, ScopeAction as Mt, ConnectionKind as N, WorkflowPullRequestAnswer as Nn, SecretHash as Nt, ConnectOptions as O, WorkflowPasskeyEnded as On, SandboxOpenAnswer as Ot, ConnectionName as P, WorkflowPullRequestOpen as Pn, SentryOrg as Pt, MachineConnected as Q, threadParts as Qn, WorkflowActionAnswer as Qt, ConsentProject as R, WorkflowText as Rn, SignedIn as Rt, ClientAccess as S, WorkflowConnections as Sn, RepoUrl as St, ConnectChosen as T, WorkflowOwn as Tn, SandboxExec as Tt, ForkAnswer as U, connectEndpoint as Un, ThreadId as Ut, EventRunInput as V, WrittenProject as Vn, StartRun as Vt, ForkCreate as W, encodeSecret as Wn, ThreadStage as Wt, LiveTicketRequest as X, repoNameKey as Xn, Welcome as Xt, LiveTicket as Y, projectParts as Yn, VersionFile as Yt, LiveTrackName as Z, surfaceOf as Zn, WorkflowAction as Zt, CheckOn as _, WorkflowCheckStartAnswer as _n, ProjectTrackMessage as _t, AnswerKey as a, WorkflowCallInput as an, OwnerThreadPage as at, CheckRunParams as b, WorkflowCheckWhere as bn, Ref0Owned as bt, ApprovalAnswer as c, WorkflowCalledState as cn, PasskeyAsserted as ct, ApprovalState as d, WorkflowCheckRefused as dn, PasskeyFrom as dt, WorkflowAsk as en, MirrorEntry as et, ApprovalView as f, WorkflowCheckResults as fn, PasskeyRefusal as ft, ChangeAuthor as g, WorkflowCheckStart as gn, ProjectName as gt, Authorization as h, WorkflowCheckRunEnded as hn, PreviewUnavailable as ht, AgentView as i, WorkflowCallEnded as in, OwnerName as it, ConnectionCallAnswer as j, WorkflowPermissions as jn, SandboxSize as jt, ConnectableAgent as k, WorkflowPasskeyRead as kn, SandboxPush as kt, ApprovalId as l, WorkflowCalledStateAnswer as ln, PasskeyCreated as lt, AttachmentRequestView as m, WorkflowCheckRun as mn, PreviewEcho as mt, AgentPermissionChoice as n, WorkflowCall as nn, NamedDecision as nt, Api as o, WorkflowCallRefusal as on, OwnerThreadView as ot, AttachmentFailed as p, WorkflowCheckResultsAnswer as pn, PasskeyRequestOptions as pt, Harness as q, isRef0Path as qn, TrackThread as qt, AgentPermissionSetting as r, WorkflowCallAnswer as rn, OwnerId as rt, ApiOrigin as s, WorkflowCallRefused as sn, OwnerTrackMessage as st, AgentHandle as t, WorkflowAskClosed as tn, MirrorView as tt, ApprovalPreview as u, WorkflowCheckRefusal as un, PasskeyCreationOptions as ut, CheckOwn as v, WorkflowCheckStates as vn, RanOf as vt, ConnectAgent as w, WorkflowFilters as wn, RequestFolder as wt, CheckTreeEntry as x, WorkflowComment as xn, RepoName as xt, CheckRunError as y, WorkflowCheckStatesAnswer as yn, ReadEvent as yt, CredentialView as z, WorkflowThreadStart as zn, SocketUrl as zt };
|
|
29773
|
-
//# sourceMappingURL=index-
|
|
29773
|
+
//# sourceMappingURL=index-BSPC_jQm.d.mts.map
|