@standards/schema 1.0.0-alpha.433 → 1.0.0-alpha.434
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.
- package/dist/api/index.d.mts +29 -1
- package/dist/api/index.d.ts +29 -1
- package/dist/api/index.js +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/{index-CiAuyPuA.d.ts → index-D15KKwMX.d.ts} +1897 -1876
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{record-operation-HTySlhCF.js → record-operation-BD-PNlxO.js} +1 -1
- package/dist/{record-operation-B49h1Oc-.mjs → record-operation-DgUS4cZk.mjs} +1 -1
- package/dist/{record-query-Bki3Qcvc.d.mts → record-query-DE5b14Ac.d.mts} +1412 -1391
- package/dist/validation/all.d.mts +1 -1
- package/dist/validation/all.d.ts +1 -1
- package/openapi.json +40 -0
- package/package.json +2 -2
|
@@ -2420,1959 +2420,1960 @@ export interface PresetNode {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
/** Max depth allowed for preset.structure to keep instantiation predictable. */
|
|
2422
2422
|
export declare const MAX_PRESET_DEPTH = 5;
|
|
2423
|
-
|
|
2424
|
-
export
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
/** One beneficiary of a private resource: its effective role and every source that grants it. */
|
|
2433
|
-
export declare function accessGrantSchema<const Role extends Values, const Source extends Values>(roles: Role, sources: Source): z$2.ZodObject<{
|
|
2434
|
-
actorId: z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>;
|
|
2435
|
-
role: z$2.ZodEnum<{ [k in Role[number]]: k; } extends (infer T) ? { [k in keyof T]: T[k]; } : never>;
|
|
2436
|
-
sources: z$2.ZodArray<z$2.ZodEnum<{ [k in Source[number]]: k; } extends (infer T_1) ? { [k in keyof T_1]: T_1[k]; } : never>>;
|
|
2437
|
-
}, z$2.core.$strip>;
|
|
2438
|
-
/** Who can reach a record beyond its owner (`GET /records/:object/:id/access`). */
|
|
2439
|
-
export declare const recordAudienceSchema: z$2.ZodObject<{
|
|
2440
|
-
recordId: z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>;
|
|
2441
|
-
visibility: z$2.ZodEnum<{
|
|
2442
|
-
private: "private";
|
|
2443
|
-
workspace: "workspace";
|
|
2444
|
-
}>;
|
|
2445
|
-
ownedBy: z$2.ZodNullable<z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>>;
|
|
2446
|
-
viewerAccess: z$2.ZodEnum<{
|
|
2447
|
-
editor: "editor";
|
|
2448
|
-
owner: "owner";
|
|
2449
|
-
reader: "reader";
|
|
2450
|
-
runner: "runner";
|
|
2451
|
-
workspace: "workspace";
|
|
2423
|
+
export declare const DOCUMENT_KINDS: readonly ["file", "folder"];
|
|
2424
|
+
export type DocumentKind = (typeof DOCUMENT_KINDS)[number];
|
|
2425
|
+
export declare const documentSchema: z$2.ZodObject<{
|
|
2426
|
+
id: z$2.ZodString;
|
|
2427
|
+
tenantId: z$2.ZodString;
|
|
2428
|
+
title: z$2.ZodString;
|
|
2429
|
+
kind: z$2.ZodEnum<{
|
|
2430
|
+
file: "file";
|
|
2431
|
+
folder: "folder";
|
|
2452
2432
|
}>;
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
}>>;
|
|
2463
|
-
}, z$2.core.$strip>>;
|
|
2433
|
+
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
2434
|
+
description: z$2.ZodOptional<z$2.ZodString>;
|
|
2435
|
+
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
2436
|
+
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2437
|
+
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2438
|
+
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
2439
|
+
position: z$2.ZodNumber;
|
|
2440
|
+
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2441
|
+
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2464
2442
|
}, z$2.core.$strip>;
|
|
2465
|
-
|
|
2466
|
-
export declare const
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2443
|
+
export type Document = z$2.output<typeof documentSchema>;
|
|
2444
|
+
export declare const documentWithSubCountSchema: z$2.ZodObject<{
|
|
2445
|
+
id: z$2.ZodString;
|
|
2446
|
+
tenantId: z$2.ZodString;
|
|
2447
|
+
title: z$2.ZodString;
|
|
2448
|
+
kind: z$2.ZodEnum<{
|
|
2449
|
+
file: "file";
|
|
2450
|
+
folder: "folder";
|
|
2471
2451
|
}>;
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2452
|
+
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
2453
|
+
description: z$2.ZodOptional<z$2.ZodString>;
|
|
2454
|
+
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
2455
|
+
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2456
|
+
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2457
|
+
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
2458
|
+
position: z$2.ZodNumber;
|
|
2459
|
+
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2460
|
+
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2461
|
+
subCount: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2462
|
+
}, z$2.core.$strip>;
|
|
2463
|
+
export type DocumentWithSubCount = z$2.output<typeof documentWithSubCountSchema>;
|
|
2464
|
+
/**
|
|
2465
|
+
* One hit of a drive-wide name search: a folder or a file of the record's
|
|
2466
|
+
* drive whose title contains the query, with the path that places it. The
|
|
2467
|
+
* walk is the agent tool's (`listRecordDrive` in query mode); this is what
|
|
2468
|
+
* the open-drive loupe reads (#3217).
|
|
2469
|
+
*/
|
|
2470
|
+
export declare const recordDriveSearchHitSchema: z$2.ZodObject<{
|
|
2471
|
+
id: z$2.ZodString;
|
|
2472
|
+
kind: z$2.ZodEnum<{
|
|
2473
|
+
file: "file";
|
|
2474
|
+
folder: "folder";
|
|
2479
2475
|
}>;
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2476
|
+
title: z$2.ZodString;
|
|
2477
|
+
path: z$2.ZodString;
|
|
2478
|
+
parentId: z$2.ZodNullable<z$2.ZodString>;
|
|
2479
|
+
depth: z$2.ZodNumber;
|
|
2480
|
+
}, z$2.core.$strip>;
|
|
2481
|
+
export type RecordDriveSearchHit = z$2.output<typeof recordDriveSearchHitSchema>;
|
|
2482
|
+
export declare const recordDriveSearchResultSchema: z$2.ZodObject<{
|
|
2483
|
+
recordId: z$2.ZodString;
|
|
2484
|
+
hits: z$2.ZodArray<z$2.ZodObject<{
|
|
2485
|
+
id: z$2.ZodString;
|
|
2486
|
+
kind: z$2.ZodEnum<{
|
|
2487
|
+
file: "file";
|
|
2488
|
+
folder: "folder";
|
|
2484
2489
|
}>;
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2490
|
+
title: z$2.ZodString;
|
|
2491
|
+
path: z$2.ZodString;
|
|
2492
|
+
parentId: z$2.ZodNullable<z$2.ZodString>;
|
|
2493
|
+
depth: z$2.ZodNumber;
|
|
2494
|
+
}, z$2.core.$strip>>;
|
|
2495
|
+
truncated: z$2.ZodOptional<z$2.ZodObject<{
|
|
2496
|
+
maxEntries: z$2.ZodNumber;
|
|
2497
|
+
returnedEntries: z$2.ZodNumber;
|
|
2488
2498
|
}, z$2.core.$strip>>;
|
|
2489
2499
|
}, z$2.core.$strip>;
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2500
|
+
export type RecordDriveSearchResult = z$2.output<typeof recordDriveSearchResultSchema>;
|
|
2501
|
+
/**
|
|
2502
|
+
* Text-extraction lifecycle for a single file within a document pack.
|
|
2503
|
+
* `unsupported` is terminal and is not a failure: the file's type has no text
|
|
2504
|
+
* to extract (an Outlook `.msg`, a `.docx`, a `.zip`), so nothing is queued.
|
|
2505
|
+
*/
|
|
2506
|
+
export declare const FILE_OCR_STATUSES: readonly ["pending", "processing", "completed", "failed", "unsupported"];
|
|
2507
|
+
export type FileOcrStatus = (typeof FILE_OCR_STATUSES)[number];
|
|
2508
|
+
/**
|
|
2509
|
+
* A single anonymous file belonging to a document pack.
|
|
2510
|
+
* Unlike the slot-based model, files carry no slot name — order within the
|
|
2511
|
+
* pack is `position` only, and `name` is provenance (originalName), never a
|
|
2512
|
+
* label rendered in the UI.
|
|
2513
|
+
*/
|
|
2514
|
+
export declare const documentFileSchema: z$2.ZodObject<{
|
|
2515
|
+
id: z$2.ZodString;
|
|
2516
|
+
documentId: z$2.ZodString;
|
|
2517
|
+
position: z$2.ZodNumber;
|
|
2518
|
+
name: z$2.ZodString;
|
|
2519
|
+
mimeType: z$2.ZodString;
|
|
2520
|
+
size: z$2.ZodNumber;
|
|
2521
|
+
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2522
|
+
completed: "completed";
|
|
2523
|
+
failed: "failed";
|
|
2524
|
+
pending: "pending";
|
|
2525
|
+
processing: "processing";
|
|
2526
|
+
unsupported: "unsupported";
|
|
2527
|
+
}>>;
|
|
2528
|
+
ocrText: z$2.ZodNullable<z$2.ZodString>;
|
|
2529
|
+
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2530
|
+
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
2531
|
+
}, z$2.core.$strip>;
|
|
2532
|
+
export type DocumentFile = z$2.output<typeof documentFileSchema>;
|
|
2533
|
+
/** What an attach did: a new pack, a file appended to a named pack, or the pack already holding the file linked. */
|
|
2534
|
+
export declare const ATTACH_FILE_ACTIONS: readonly ["created", "appended", "linked-existing"];
|
|
2535
|
+
export type AttachFileAction = (typeof ATTACH_FILE_ACTIONS)[number];
|
|
2536
|
+
/** What attaching a file to a record's document attribute answers: the pack, the file in it, and what happened. */
|
|
2537
|
+
export declare const attachedRecordDocumentSchema: z$2.ZodObject<{
|
|
2538
|
+
document: z$2.ZodObject<{
|
|
2539
|
+
id: z$2.ZodString;
|
|
2540
|
+
tenantId: z$2.ZodString;
|
|
2541
|
+
title: z$2.ZodString;
|
|
2542
|
+
kind: z$2.ZodEnum<{
|
|
2543
|
+
file: "file";
|
|
2544
|
+
folder: "folder";
|
|
2510
2545
|
}>;
|
|
2511
|
-
|
|
2512
|
-
|
|
2546
|
+
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
2547
|
+
description: z$2.ZodOptional<z$2.ZodString>;
|
|
2548
|
+
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
2549
|
+
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2550
|
+
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2551
|
+
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
2552
|
+
position: z$2.ZodNumber;
|
|
2553
|
+
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2554
|
+
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2555
|
+
}, z$2.core.$strip>;
|
|
2556
|
+
file: z$2.ZodObject<{
|
|
2557
|
+
id: z$2.ZodString;
|
|
2558
|
+
documentId: z$2.ZodString;
|
|
2559
|
+
position: z$2.ZodNumber;
|
|
2560
|
+
name: z$2.ZodString;
|
|
2561
|
+
mimeType: z$2.ZodString;
|
|
2562
|
+
size: z$2.ZodNumber;
|
|
2563
|
+
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2564
|
+
completed: "completed";
|
|
2565
|
+
failed: "failed";
|
|
2566
|
+
pending: "pending";
|
|
2567
|
+
processing: "processing";
|
|
2568
|
+
unsupported: "unsupported";
|
|
2513
2569
|
}>>;
|
|
2514
|
-
|
|
2570
|
+
ocrText: z$2.ZodNullable<z$2.ZodString>;
|
|
2571
|
+
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2572
|
+
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
2573
|
+
}, z$2.core.$strip>;
|
|
2574
|
+
action: z$2.ZodEnum<{
|
|
2575
|
+
appended: "appended";
|
|
2576
|
+
created: "created";
|
|
2577
|
+
"linked-existing": "linked-existing";
|
|
2578
|
+
}>;
|
|
2515
2579
|
}, z$2.core.$strip>;
|
|
2516
|
-
/**
|
|
2517
|
-
export declare const
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
readonly actions: readonly ["created"];
|
|
2531
|
-
readonly conditions: readonly ["text", "issueAuthor", "prAuthor"];
|
|
2532
|
-
};
|
|
2533
|
-
readonly push: {
|
|
2534
|
-
readonly events: readonly ["push"];
|
|
2535
|
-
readonly actions: readonly ["pushed"];
|
|
2536
|
-
readonly conditions: readonly ["branch", "changedPaths", "forced"];
|
|
2537
|
-
};
|
|
2538
|
-
readonly workflow: {
|
|
2539
|
-
readonly events: readonly ["workflow_run"];
|
|
2540
|
-
readonly actions: readonly ["completed"];
|
|
2541
|
-
readonly conditions: readonly ["workflowName", "conclusion", "branch", "originEvent"];
|
|
2542
|
-
};
|
|
2543
|
-
readonly check: {
|
|
2544
|
-
readonly events: readonly ["check_suite", "check_run"];
|
|
2545
|
-
readonly actions: readonly ["completed"];
|
|
2546
|
-
readonly conditions: readonly ["checkApp", "checkName", "conclusion"];
|
|
2547
|
-
};
|
|
2548
|
-
};
|
|
2549
|
-
export declare const SLACK_TRIGGER_CATALOG: {
|
|
2550
|
-
readonly mention: {
|
|
2551
|
-
readonly events: readonly ["app_mention"];
|
|
2552
|
-
readonly conditions: readonly ["text"];
|
|
2553
|
-
};
|
|
2554
|
-
readonly message: {
|
|
2555
|
-
readonly events: readonly ["message"];
|
|
2556
|
-
readonly conditions: readonly ["position", "text", "hasFile"];
|
|
2557
|
-
};
|
|
2558
|
-
readonly dm: {
|
|
2559
|
-
readonly events: readonly ["message"];
|
|
2560
|
-
readonly conditions: readonly ["text", "hasFile"];
|
|
2561
|
-
};
|
|
2562
|
-
readonly reaction: {
|
|
2563
|
-
readonly events: readonly ["reaction_added"];
|
|
2564
|
-
readonly conditions: readonly ["messageAuthor"];
|
|
2565
|
-
};
|
|
2566
|
-
};
|
|
2567
|
-
export declare const githubConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2568
|
-
field: z$2.ZodLiteral<"text">;
|
|
2569
|
-
operator: z$2.ZodEnum<{
|
|
2570
|
-
contains: "contains";
|
|
2571
|
-
starts_with: "starts_with";
|
|
2572
|
-
}>;
|
|
2573
|
-
value: z$2.ZodString;
|
|
2574
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2575
|
-
field: z$2.ZodLiteral<"label">;
|
|
2576
|
-
value: z$2.ZodString;
|
|
2577
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2578
|
-
field: z$2.ZodLiteral<"issueLabels">;
|
|
2579
|
-
operator: z$2.ZodDefault<z$2.ZodEnum<{
|
|
2580
|
-
all: "all";
|
|
2581
|
-
any: "any";
|
|
2580
|
+
/** A pack file as a drive row lists it: everything but its OCR text, which only reads need. */
|
|
2581
|
+
export declare const driveFileSchema: z$2.ZodObject<{
|
|
2582
|
+
id: z$2.ZodString;
|
|
2583
|
+
documentId: z$2.ZodString;
|
|
2584
|
+
position: z$2.ZodNumber;
|
|
2585
|
+
name: z$2.ZodString;
|
|
2586
|
+
mimeType: z$2.ZodString;
|
|
2587
|
+
size: z$2.ZodNumber;
|
|
2588
|
+
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2589
|
+
completed: "completed";
|
|
2590
|
+
failed: "failed";
|
|
2591
|
+
pending: "pending";
|
|
2592
|
+
processing: "processing";
|
|
2593
|
+
unsupported: "unsupported";
|
|
2582
2594
|
}>>;
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
value: z$2.ZodString;
|
|
2590
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2591
|
-
field: z$2.ZodLiteral<"branch">;
|
|
2592
|
-
value: z$2.ZodString;
|
|
2593
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2594
|
-
field: z$2.ZodLiteral<"draft">;
|
|
2595
|
-
value: z$2.ZodBoolean;
|
|
2596
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2597
|
-
field: z$2.ZodLiteral<"changedPaths">;
|
|
2598
|
-
value: z$2.ZodString;
|
|
2599
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2600
|
-
field: z$2.ZodLiteral<"forced">;
|
|
2601
|
-
value: z$2.ZodBoolean;
|
|
2602
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2603
|
-
field: z$2.ZodLiteral<"prAuthor">;
|
|
2604
|
-
value: z$2.ZodString;
|
|
2605
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2606
|
-
field: z$2.ZodLiteral<"issueAuthor">;
|
|
2607
|
-
value: z$2.ZodString;
|
|
2608
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2609
|
-
field: z$2.ZodLiteral<"reviewState">;
|
|
2610
|
-
value: z$2.ZodEnum<{
|
|
2611
|
-
approved: "approved";
|
|
2612
|
-
changes_requested: "changes_requested";
|
|
2613
|
-
commented: "commented";
|
|
2614
|
-
}>;
|
|
2615
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2616
|
-
field: z$2.ZodLiteral<"workflowName">;
|
|
2617
|
-
value: z$2.ZodString;
|
|
2618
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2619
|
-
field: z$2.ZodLiteral<"checkApp">;
|
|
2620
|
-
value: z$2.ZodString;
|
|
2621
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2622
|
-
field: z$2.ZodLiteral<"checkName">;
|
|
2623
|
-
value: z$2.ZodString;
|
|
2624
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2625
|
-
field: z$2.ZodLiteral<"conclusion">;
|
|
2626
|
-
value: z$2.ZodString;
|
|
2627
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2628
|
-
field: z$2.ZodLiteral<"originEvent">;
|
|
2629
|
-
value: z$2.ZodString;
|
|
2630
|
-
}, z$2.core.$strict>], "field">;
|
|
2631
|
-
export declare const slackConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2632
|
-
field: z$2.ZodLiteral<"text">;
|
|
2633
|
-
operator: z$2.ZodEnum<{
|
|
2634
|
-
contains: "contains";
|
|
2635
|
-
starts_with: "starts_with";
|
|
2636
|
-
}>;
|
|
2637
|
-
value: z$2.ZodString;
|
|
2638
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2639
|
-
field: z$2.ZodLiteral<"position">;
|
|
2640
|
-
value: z$2.ZodEnum<{
|
|
2641
|
-
reply: "reply";
|
|
2642
|
-
top_level: "top_level";
|
|
2643
|
-
}>;
|
|
2644
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2645
|
-
field: z$2.ZodLiteral<"hasFile">;
|
|
2646
|
-
value: z$2.ZodBoolean;
|
|
2647
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2648
|
-
field: z$2.ZodLiteral<"messageAuthor">;
|
|
2649
|
-
value: z$2.ZodString;
|
|
2650
|
-
}, z$2.core.$strict>], "field">;
|
|
2651
|
-
export type GithubCondition = z$2.output<typeof githubConditionSchema>;
|
|
2652
|
-
export type SlackCondition = z$2.output<typeof slackConditionSchema>;
|
|
2653
|
-
export type GithubTriggerFamily = keyof typeof GITHUB_TRIGGER_CATALOG;
|
|
2654
|
-
export type SlackTriggerOn = keyof typeof SLACK_TRIGGER_CATALOG;
|
|
2655
|
-
/** Every GitHub family, in the catalogue's order. */
|
|
2656
|
-
export declare const GITHUB_TRIGGER_FAMILIES: [GithubTriggerFamily, ...GithubTriggerFamily[]];
|
|
2657
|
-
/** Every Slack event a trigger listens to, in the catalogue's order. */
|
|
2658
|
-
export declare const SLACK_TRIGGER_EVENTS: [SlackTriggerOn, ...SlackTriggerOn[]];
|
|
2659
|
-
export type GithubTriggerAction<F extends GithubTriggerFamily = GithubTriggerFamily> = (typeof GITHUB_TRIGGER_CATALOG)[F]["actions"][number];
|
|
2660
|
-
export type GithubTriggerSender = "human" | "me" | "any" | {
|
|
2661
|
-
logins: string[];
|
|
2662
|
-
};
|
|
2663
|
-
export type SlackTriggerSender = "human" | "me" | "any" | {
|
|
2664
|
-
users: string[];
|
|
2595
|
+
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2596
|
+
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
2597
|
+
}, z$2.core.$strip>;
|
|
2598
|
+
export type DriveFile = z$2.output<typeof driveFileSchema>;
|
|
2599
|
+
export type DocumentWithFiles = Document & {
|
|
2600
|
+
files: DocumentFile[];
|
|
2665
2601
|
};
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
reactions?: never;
|
|
2686
|
-
}); }[SlackTriggerOn];
|
|
2687
|
-
export type ConnectorTriggerMatch = GithubTriggerMatch | SlackTriggerMatch;
|
|
2688
|
-
/** The suffix of `owner/*`: every repository of that owner, installed now or later. */
|
|
2689
|
-
export declare const REPOSITORY_WILDCARD = "/*";
|
|
2690
|
-
/** Whether a stored repository (`owner/repo` or `owner/*`) covers a full name. Case-insensitive. */
|
|
2691
|
-
export declare function matchesRepositoryPattern(pattern: string, fullName: string): boolean;
|
|
2692
|
-
/** The refinements establish the family/condition/action correlation of the output union. */
|
|
2693
|
-
export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
|
|
2694
|
-
family: z$2.ZodEnum<{
|
|
2695
|
-
check: "check";
|
|
2696
|
-
comment: "comment";
|
|
2697
|
-
pull_request: "pull_request";
|
|
2698
|
-
push: "push";
|
|
2699
|
-
review: "review";
|
|
2700
|
-
workflow: "workflow";
|
|
2602
|
+
/**
|
|
2603
|
+
* One row of a record's drive at a given level: the document with its sub
|
|
2604
|
+
* count and its pack files (#4332). A drive-only attachment, one that exists
|
|
2605
|
+
* only as a reference edge and is named nowhere in `record.values`, has no
|
|
2606
|
+
* other source for its files, and without them its row menu cannot offer
|
|
2607
|
+
* Download. A folder has no pack: its `files` is always `[]`.
|
|
2608
|
+
*
|
|
2609
|
+
* A root-level child also names where it sits on the record: the document
|
|
2610
|
+
* attribute whose edge holds it (`attachments` for a plain drive item) and
|
|
2611
|
+
* that edge's qualified properties. A nested child has no edge of its own and
|
|
2612
|
+
* carries neither.
|
|
2613
|
+
*/
|
|
2614
|
+
export declare const recordDriveChildSchema: z$2.ZodObject<{
|
|
2615
|
+
id: z$2.ZodString;
|
|
2616
|
+
tenantId: z$2.ZodString;
|
|
2617
|
+
title: z$2.ZodString;
|
|
2618
|
+
kind: z$2.ZodEnum<{
|
|
2619
|
+
file: "file";
|
|
2620
|
+
folder: "folder";
|
|
2701
2621
|
}>;
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
any: "any";
|
|
2622
|
+
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
2623
|
+
description: z$2.ZodOptional<z$2.ZodString>;
|
|
2624
|
+
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
2625
|
+
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2626
|
+
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2627
|
+
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
2628
|
+
position: z$2.ZodNumber;
|
|
2629
|
+
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2630
|
+
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2631
|
+
subCount: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2632
|
+
files: z$2.ZodArray<z$2.ZodObject<{
|
|
2633
|
+
id: z$2.ZodString;
|
|
2634
|
+
documentId: z$2.ZodString;
|
|
2635
|
+
position: z$2.ZodNumber;
|
|
2636
|
+
name: z$2.ZodString;
|
|
2637
|
+
mimeType: z$2.ZodString;
|
|
2638
|
+
size: z$2.ZodNumber;
|
|
2639
|
+
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2640
|
+
completed: "completed";
|
|
2641
|
+
failed: "failed";
|
|
2642
|
+
pending: "pending";
|
|
2643
|
+
processing: "processing";
|
|
2644
|
+
unsupported: "unsupported";
|
|
2726
2645
|
}>>;
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2735
|
-
field: z$2.ZodLiteral<"branch">;
|
|
2736
|
-
value: z$2.ZodString;
|
|
2737
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2738
|
-
field: z$2.ZodLiteral<"draft">;
|
|
2739
|
-
value: z$2.ZodBoolean;
|
|
2740
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2741
|
-
field: z$2.ZodLiteral<"changedPaths">;
|
|
2742
|
-
value: z$2.ZodString;
|
|
2743
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2744
|
-
field: z$2.ZodLiteral<"forced">;
|
|
2745
|
-
value: z$2.ZodBoolean;
|
|
2746
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2747
|
-
field: z$2.ZodLiteral<"prAuthor">;
|
|
2748
|
-
value: z$2.ZodString;
|
|
2749
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2750
|
-
field: z$2.ZodLiteral<"issueAuthor">;
|
|
2751
|
-
value: z$2.ZodString;
|
|
2752
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2753
|
-
field: z$2.ZodLiteral<"reviewState">;
|
|
2754
|
-
value: z$2.ZodEnum<{
|
|
2755
|
-
approved: "approved";
|
|
2756
|
-
changes_requested: "changes_requested";
|
|
2757
|
-
commented: "commented";
|
|
2758
|
-
}>;
|
|
2759
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2760
|
-
field: z$2.ZodLiteral<"workflowName">;
|
|
2761
|
-
value: z$2.ZodString;
|
|
2762
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2763
|
-
field: z$2.ZodLiteral<"checkApp">;
|
|
2764
|
-
value: z$2.ZodString;
|
|
2765
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2766
|
-
field: z$2.ZodLiteral<"checkName">;
|
|
2767
|
-
value: z$2.ZodString;
|
|
2768
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2769
|
-
field: z$2.ZodLiteral<"conclusion">;
|
|
2770
|
-
value: z$2.ZodString;
|
|
2771
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2772
|
-
field: z$2.ZodLiteral<"originEvent">;
|
|
2773
|
-
value: z$2.ZodString;
|
|
2774
|
-
}, z$2.core.$strict>], "field">>>;
|
|
2775
|
-
}, z$2.core.$strict>, z$2.ZodTransform<{
|
|
2776
|
-
family: "check";
|
|
2777
|
-
actions: "completed"[];
|
|
2778
|
-
repositories: string[];
|
|
2779
|
-
sender: GithubTriggerSender;
|
|
2780
|
-
conditions: ({
|
|
2781
|
-
field: "checkApp";
|
|
2782
|
-
value: string;
|
|
2783
|
-
} | {
|
|
2784
|
-
field: "checkName";
|
|
2785
|
-
value: string;
|
|
2786
|
-
} | {
|
|
2787
|
-
field: "conclusion";
|
|
2788
|
-
value: string;
|
|
2789
|
-
})[];
|
|
2790
|
-
} | {
|
|
2791
|
-
family: "comment";
|
|
2792
|
-
actions: "created"[];
|
|
2793
|
-
repositories: string[];
|
|
2794
|
-
sender: GithubTriggerSender;
|
|
2795
|
-
conditions: ({
|
|
2796
|
-
field: "text";
|
|
2797
|
-
operator: "contains" | "starts_with";
|
|
2798
|
-
value: string;
|
|
2799
|
-
} | {
|
|
2800
|
-
field: "issueAuthor";
|
|
2801
|
-
value: string;
|
|
2802
|
-
} | {
|
|
2803
|
-
field: "prAuthor";
|
|
2804
|
-
value: string;
|
|
2805
|
-
})[];
|
|
2806
|
-
} | {
|
|
2807
|
-
family: "pull_request";
|
|
2808
|
-
actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
|
|
2809
|
-
repositories: string[];
|
|
2810
|
-
sender: GithubTriggerSender;
|
|
2811
|
-
conditions: ({
|
|
2812
|
-
field: "baseBranch";
|
|
2813
|
-
value: string;
|
|
2814
|
-
} | {
|
|
2815
|
-
field: "changedPaths";
|
|
2816
|
-
value: string;
|
|
2817
|
-
} | {
|
|
2818
|
-
field: "headBranch";
|
|
2819
|
-
value: string;
|
|
2820
|
-
} | {
|
|
2821
|
-
field: "label";
|
|
2822
|
-
value: string;
|
|
2823
|
-
} | {
|
|
2824
|
-
field: "prAuthor";
|
|
2825
|
-
value: string;
|
|
2826
|
-
} | {
|
|
2827
|
-
field: "draft";
|
|
2828
|
-
value: boolean;
|
|
2829
|
-
} | {
|
|
2830
|
-
field: "issueLabels";
|
|
2831
|
-
operator: "all" | "any";
|
|
2832
|
-
value: string[];
|
|
2833
|
-
})[];
|
|
2834
|
-
} | {
|
|
2835
|
-
family: "push";
|
|
2836
|
-
actions: "pushed"[];
|
|
2837
|
-
repositories: string[];
|
|
2838
|
-
sender: GithubTriggerSender;
|
|
2839
|
-
conditions: ({
|
|
2840
|
-
field: "branch";
|
|
2841
|
-
value: string;
|
|
2842
|
-
} | {
|
|
2843
|
-
field: "changedPaths";
|
|
2844
|
-
value: string;
|
|
2845
|
-
} | {
|
|
2846
|
-
field: "forced";
|
|
2847
|
-
value: boolean;
|
|
2848
|
-
})[];
|
|
2849
|
-
} | {
|
|
2850
|
-
family: "review";
|
|
2851
|
-
actions: "submitted"[];
|
|
2852
|
-
repositories: string[];
|
|
2853
|
-
sender: GithubTriggerSender;
|
|
2854
|
-
conditions: ({
|
|
2855
|
-
field: "prAuthor";
|
|
2856
|
-
value: string;
|
|
2857
|
-
} | {
|
|
2858
|
-
field: "reviewState";
|
|
2859
|
-
value: "approved" | "changes_requested" | "commented";
|
|
2860
|
-
})[];
|
|
2861
|
-
} | {
|
|
2862
|
-
family: "workflow";
|
|
2863
|
-
actions: "completed"[];
|
|
2864
|
-
repositories: string[];
|
|
2865
|
-
sender: GithubTriggerSender;
|
|
2866
|
-
conditions: ({
|
|
2867
|
-
field: "branch";
|
|
2868
|
-
value: string;
|
|
2869
|
-
} | {
|
|
2870
|
-
field: "conclusion";
|
|
2871
|
-
value: string;
|
|
2872
|
-
} | {
|
|
2873
|
-
field: "originEvent";
|
|
2874
|
-
value: string;
|
|
2875
|
-
} | {
|
|
2876
|
-
field: "workflowName";
|
|
2877
|
-
value: string;
|
|
2878
|
-
})[];
|
|
2879
|
-
}, {
|
|
2880
|
-
family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
|
|
2881
|
-
actions: string[];
|
|
2882
|
-
repositories: string[];
|
|
2883
|
-
sender: "any" | "human" | "me" | {
|
|
2884
|
-
logins: string[];
|
|
2885
|
-
};
|
|
2886
|
-
conditions: ({
|
|
2887
|
-
field: "text";
|
|
2888
|
-
operator: "contains" | "starts_with";
|
|
2889
|
-
value: string;
|
|
2890
|
-
} | {
|
|
2891
|
-
field: "baseBranch";
|
|
2892
|
-
value: string;
|
|
2893
|
-
} | {
|
|
2894
|
-
field: "branch";
|
|
2895
|
-
value: string;
|
|
2896
|
-
} | {
|
|
2897
|
-
field: "changedPaths";
|
|
2898
|
-
value: string;
|
|
2899
|
-
} | {
|
|
2900
|
-
field: "checkApp";
|
|
2901
|
-
value: string;
|
|
2902
|
-
} | {
|
|
2903
|
-
field: "checkName";
|
|
2904
|
-
value: string;
|
|
2905
|
-
} | {
|
|
2906
|
-
field: "conclusion";
|
|
2907
|
-
value: string;
|
|
2908
|
-
} | {
|
|
2909
|
-
field: "headBranch";
|
|
2910
|
-
value: string;
|
|
2911
|
-
} | {
|
|
2912
|
-
field: "issueAuthor";
|
|
2913
|
-
value: string;
|
|
2914
|
-
} | {
|
|
2915
|
-
field: "label";
|
|
2916
|
-
value: string;
|
|
2917
|
-
} | {
|
|
2918
|
-
field: "originEvent";
|
|
2919
|
-
value: string;
|
|
2920
|
-
} | {
|
|
2921
|
-
field: "prAuthor";
|
|
2922
|
-
value: string;
|
|
2923
|
-
} | {
|
|
2924
|
-
field: "workflowName";
|
|
2925
|
-
value: string;
|
|
2926
|
-
} | {
|
|
2927
|
-
field: "draft";
|
|
2928
|
-
value: boolean;
|
|
2929
|
-
} | {
|
|
2930
|
-
field: "forced";
|
|
2931
|
-
value: boolean;
|
|
2932
|
-
} | {
|
|
2933
|
-
field: "issueLabels";
|
|
2934
|
-
operator: "all" | "any";
|
|
2935
|
-
value: string[];
|
|
2936
|
-
} | {
|
|
2937
|
-
field: "reviewState";
|
|
2938
|
-
value: "approved" | "changes_requested" | "commented";
|
|
2939
|
-
})[];
|
|
2940
|
-
}>>;
|
|
2941
|
-
export declare const slackTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
|
|
2942
|
-
on: z$2.ZodEnum<{
|
|
2943
|
-
dm: "dm";
|
|
2944
|
-
mention: "mention";
|
|
2945
|
-
message: "message";
|
|
2946
|
-
reaction: "reaction";
|
|
2947
|
-
}>;
|
|
2948
|
-
channels: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
2949
|
-
reactions: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
2950
|
-
sender: z$2.ZodDefault<z$2.ZodUnion<readonly [z$2.ZodEnum<{
|
|
2951
|
-
any: "any";
|
|
2952
|
-
human: "human";
|
|
2953
|
-
me: "me";
|
|
2954
|
-
}>, z$2.ZodObject<{
|
|
2955
|
-
users: z$2.ZodArray<z$2.ZodString>;
|
|
2956
|
-
}, z$2.core.$strict>]>>;
|
|
2957
|
-
conditions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2958
|
-
field: z$2.ZodLiteral<"text">;
|
|
2959
|
-
operator: z$2.ZodEnum<{
|
|
2960
|
-
contains: "contains";
|
|
2961
|
-
starts_with: "starts_with";
|
|
2962
|
-
}>;
|
|
2963
|
-
value: z$2.ZodString;
|
|
2964
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2965
|
-
field: z$2.ZodLiteral<"position">;
|
|
2966
|
-
value: z$2.ZodEnum<{
|
|
2967
|
-
reply: "reply";
|
|
2968
|
-
top_level: "top_level";
|
|
2969
|
-
}>;
|
|
2970
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2971
|
-
field: z$2.ZodLiteral<"hasFile">;
|
|
2972
|
-
value: z$2.ZodBoolean;
|
|
2973
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2974
|
-
field: z$2.ZodLiteral<"messageAuthor">;
|
|
2975
|
-
value: z$2.ZodString;
|
|
2976
|
-
}, z$2.core.$strict>], "field">>>;
|
|
2977
|
-
}, z$2.core.$strict>, z$2.ZodTransform<({
|
|
2978
|
-
on: "dm";
|
|
2979
|
-
channels: string[];
|
|
2980
|
-
sender: SlackTriggerSender;
|
|
2981
|
-
conditions: ({
|
|
2982
|
-
field: "text";
|
|
2983
|
-
operator: "contains" | "starts_with";
|
|
2984
|
-
value: string;
|
|
2985
|
-
} | {
|
|
2986
|
-
field: "hasFile";
|
|
2987
|
-
value: boolean;
|
|
2988
|
-
})[];
|
|
2989
|
-
} & {
|
|
2990
|
-
reactions?: never;
|
|
2991
|
-
}) | ({
|
|
2992
|
-
on: "mention";
|
|
2993
|
-
channels: string[];
|
|
2994
|
-
sender: SlackTriggerSender;
|
|
2995
|
-
conditions: {
|
|
2996
|
-
field: "text";
|
|
2997
|
-
operator: "contains" | "starts_with";
|
|
2998
|
-
value: string;
|
|
2999
|
-
}[];
|
|
3000
|
-
} & {
|
|
3001
|
-
reactions?: never;
|
|
3002
|
-
}) | ({
|
|
3003
|
-
on: "message";
|
|
3004
|
-
channels: string[];
|
|
3005
|
-
sender: SlackTriggerSender;
|
|
3006
|
-
conditions: ({
|
|
3007
|
-
field: "text";
|
|
3008
|
-
operator: "contains" | "starts_with";
|
|
3009
|
-
value: string;
|
|
3010
|
-
} | {
|
|
3011
|
-
field: "hasFile";
|
|
3012
|
-
value: boolean;
|
|
3013
|
-
} | {
|
|
3014
|
-
field: "position";
|
|
3015
|
-
value: "reply" | "top_level";
|
|
3016
|
-
})[];
|
|
3017
|
-
} & {
|
|
3018
|
-
reactions?: never;
|
|
3019
|
-
}) | ({
|
|
3020
|
-
on: "reaction";
|
|
3021
|
-
channels: string[];
|
|
3022
|
-
sender: SlackTriggerSender;
|
|
3023
|
-
conditions: {
|
|
3024
|
-
field: "messageAuthor";
|
|
3025
|
-
value: string;
|
|
3026
|
-
}[];
|
|
3027
|
-
} & {
|
|
3028
|
-
reactions?: string[];
|
|
3029
|
-
}), {
|
|
3030
|
-
on: "dm" | "mention" | "message" | "reaction";
|
|
3031
|
-
channels: string[];
|
|
3032
|
-
reactions?: string[] | undefined;
|
|
3033
|
-
sender: "any" | "human" | "me" | {
|
|
3034
|
-
users: string[];
|
|
3035
|
-
};
|
|
3036
|
-
conditions: ({
|
|
3037
|
-
field: "text";
|
|
3038
|
-
operator: "contains" | "starts_with";
|
|
3039
|
-
value: string;
|
|
3040
|
-
} | {
|
|
3041
|
-
field: "messageAuthor";
|
|
3042
|
-
value: string;
|
|
3043
|
-
} | {
|
|
3044
|
-
field: "hasFile";
|
|
3045
|
-
value: boolean;
|
|
3046
|
-
} | {
|
|
3047
|
-
field: "position";
|
|
3048
|
-
value: "reply" | "top_level";
|
|
3049
|
-
})[];
|
|
3050
|
-
}>>;
|
|
3051
|
-
export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.ZodPipe<z$2.ZodObject<{
|
|
3052
|
-
family: z$2.ZodEnum<{
|
|
3053
|
-
check: "check";
|
|
3054
|
-
comment: "comment";
|
|
3055
|
-
pull_request: "pull_request";
|
|
3056
|
-
push: "push";
|
|
3057
|
-
review: "review";
|
|
3058
|
-
workflow: "workflow";
|
|
3059
|
-
}>;
|
|
3060
|
-
actions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3061
|
-
repositories: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3062
|
-
sender: z$2.ZodDefault<z$2.ZodUnion<readonly [z$2.ZodEnum<{
|
|
3063
|
-
any: "any";
|
|
3064
|
-
human: "human";
|
|
3065
|
-
me: "me";
|
|
3066
|
-
}>, z$2.ZodObject<{
|
|
3067
|
-
logins: z$2.ZodArray<z$2.ZodString>;
|
|
3068
|
-
}, z$2.core.$strict>]>>;
|
|
3069
|
-
conditions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
3070
|
-
field: z$2.ZodLiteral<"text">;
|
|
3071
|
-
operator: z$2.ZodEnum<{
|
|
3072
|
-
contains: "contains";
|
|
3073
|
-
starts_with: "starts_with";
|
|
3074
|
-
}>;
|
|
3075
|
-
value: z$2.ZodString;
|
|
3076
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3077
|
-
field: z$2.ZodLiteral<"label">;
|
|
3078
|
-
value: z$2.ZodString;
|
|
3079
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3080
|
-
field: z$2.ZodLiteral<"issueLabels">;
|
|
3081
|
-
operator: z$2.ZodDefault<z$2.ZodEnum<{
|
|
3082
|
-
all: "all";
|
|
3083
|
-
any: "any";
|
|
3084
|
-
}>>;
|
|
3085
|
-
value: z$2.ZodArray<z$2.ZodString>;
|
|
3086
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3087
|
-
field: z$2.ZodLiteral<"baseBranch">;
|
|
3088
|
-
value: z$2.ZodString;
|
|
3089
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3090
|
-
field: z$2.ZodLiteral<"headBranch">;
|
|
3091
|
-
value: z$2.ZodString;
|
|
3092
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3093
|
-
field: z$2.ZodLiteral<"branch">;
|
|
3094
|
-
value: z$2.ZodString;
|
|
3095
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3096
|
-
field: z$2.ZodLiteral<"draft">;
|
|
3097
|
-
value: z$2.ZodBoolean;
|
|
3098
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3099
|
-
field: z$2.ZodLiteral<"changedPaths">;
|
|
3100
|
-
value: z$2.ZodString;
|
|
3101
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3102
|
-
field: z$2.ZodLiteral<"forced">;
|
|
3103
|
-
value: z$2.ZodBoolean;
|
|
3104
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3105
|
-
field: z$2.ZodLiteral<"prAuthor">;
|
|
3106
|
-
value: z$2.ZodString;
|
|
3107
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3108
|
-
field: z$2.ZodLiteral<"issueAuthor">;
|
|
3109
|
-
value: z$2.ZodString;
|
|
3110
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3111
|
-
field: z$2.ZodLiteral<"reviewState">;
|
|
3112
|
-
value: z$2.ZodEnum<{
|
|
3113
|
-
approved: "approved";
|
|
3114
|
-
changes_requested: "changes_requested";
|
|
3115
|
-
commented: "commented";
|
|
3116
|
-
}>;
|
|
3117
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3118
|
-
field: z$2.ZodLiteral<"workflowName">;
|
|
3119
|
-
value: z$2.ZodString;
|
|
3120
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3121
|
-
field: z$2.ZodLiteral<"checkApp">;
|
|
3122
|
-
value: z$2.ZodString;
|
|
3123
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3124
|
-
field: z$2.ZodLiteral<"checkName">;
|
|
3125
|
-
value: z$2.ZodString;
|
|
3126
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3127
|
-
field: z$2.ZodLiteral<"conclusion">;
|
|
3128
|
-
value: z$2.ZodString;
|
|
3129
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3130
|
-
field: z$2.ZodLiteral<"originEvent">;
|
|
3131
|
-
value: z$2.ZodString;
|
|
3132
|
-
}, z$2.core.$strict>], "field">>>;
|
|
3133
|
-
}, z$2.core.$strict>, z$2.ZodTransform<{
|
|
3134
|
-
family: "check";
|
|
3135
|
-
actions: "completed"[];
|
|
3136
|
-
repositories: string[];
|
|
3137
|
-
sender: GithubTriggerSender;
|
|
3138
|
-
conditions: ({
|
|
3139
|
-
field: "checkApp";
|
|
3140
|
-
value: string;
|
|
3141
|
-
} | {
|
|
3142
|
-
field: "checkName";
|
|
3143
|
-
value: string;
|
|
3144
|
-
} | {
|
|
3145
|
-
field: "conclusion";
|
|
3146
|
-
value: string;
|
|
3147
|
-
})[];
|
|
3148
|
-
} | {
|
|
3149
|
-
family: "comment";
|
|
3150
|
-
actions: "created"[];
|
|
3151
|
-
repositories: string[];
|
|
3152
|
-
sender: GithubTriggerSender;
|
|
3153
|
-
conditions: ({
|
|
3154
|
-
field: "text";
|
|
3155
|
-
operator: "contains" | "starts_with";
|
|
3156
|
-
value: string;
|
|
3157
|
-
} | {
|
|
3158
|
-
field: "issueAuthor";
|
|
3159
|
-
value: string;
|
|
3160
|
-
} | {
|
|
3161
|
-
field: "prAuthor";
|
|
3162
|
-
value: string;
|
|
3163
|
-
})[];
|
|
3164
|
-
} | {
|
|
3165
|
-
family: "pull_request";
|
|
3166
|
-
actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
|
|
3167
|
-
repositories: string[];
|
|
3168
|
-
sender: GithubTriggerSender;
|
|
3169
|
-
conditions: ({
|
|
3170
|
-
field: "baseBranch";
|
|
3171
|
-
value: string;
|
|
3172
|
-
} | {
|
|
3173
|
-
field: "changedPaths";
|
|
3174
|
-
value: string;
|
|
3175
|
-
} | {
|
|
3176
|
-
field: "headBranch";
|
|
3177
|
-
value: string;
|
|
3178
|
-
} | {
|
|
3179
|
-
field: "label";
|
|
3180
|
-
value: string;
|
|
3181
|
-
} | {
|
|
3182
|
-
field: "prAuthor";
|
|
3183
|
-
value: string;
|
|
3184
|
-
} | {
|
|
3185
|
-
field: "draft";
|
|
3186
|
-
value: boolean;
|
|
3187
|
-
} | {
|
|
3188
|
-
field: "issueLabels";
|
|
3189
|
-
operator: "all" | "any";
|
|
3190
|
-
value: string[];
|
|
3191
|
-
})[];
|
|
3192
|
-
} | {
|
|
3193
|
-
family: "push";
|
|
3194
|
-
actions: "pushed"[];
|
|
3195
|
-
repositories: string[];
|
|
3196
|
-
sender: GithubTriggerSender;
|
|
3197
|
-
conditions: ({
|
|
3198
|
-
field: "branch";
|
|
3199
|
-
value: string;
|
|
3200
|
-
} | {
|
|
3201
|
-
field: "changedPaths";
|
|
3202
|
-
value: string;
|
|
3203
|
-
} | {
|
|
3204
|
-
field: "forced";
|
|
3205
|
-
value: boolean;
|
|
3206
|
-
})[];
|
|
3207
|
-
} | {
|
|
3208
|
-
family: "review";
|
|
3209
|
-
actions: "submitted"[];
|
|
3210
|
-
repositories: string[];
|
|
3211
|
-
sender: GithubTriggerSender;
|
|
3212
|
-
conditions: ({
|
|
3213
|
-
field: "prAuthor";
|
|
3214
|
-
value: string;
|
|
3215
|
-
} | {
|
|
3216
|
-
field: "reviewState";
|
|
3217
|
-
value: "approved" | "changes_requested" | "commented";
|
|
3218
|
-
})[];
|
|
3219
|
-
} | {
|
|
3220
|
-
family: "workflow";
|
|
3221
|
-
actions: "completed"[];
|
|
3222
|
-
repositories: string[];
|
|
3223
|
-
sender: GithubTriggerSender;
|
|
3224
|
-
conditions: ({
|
|
3225
|
-
field: "branch";
|
|
3226
|
-
value: string;
|
|
3227
|
-
} | {
|
|
3228
|
-
field: "conclusion";
|
|
3229
|
-
value: string;
|
|
3230
|
-
} | {
|
|
3231
|
-
field: "originEvent";
|
|
3232
|
-
value: string;
|
|
3233
|
-
} | {
|
|
3234
|
-
field: "workflowName";
|
|
3235
|
-
value: string;
|
|
3236
|
-
})[];
|
|
3237
|
-
}, {
|
|
3238
|
-
family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
|
|
3239
|
-
actions: string[];
|
|
3240
|
-
repositories: string[];
|
|
3241
|
-
sender: "any" | "human" | "me" | {
|
|
3242
|
-
logins: string[];
|
|
3243
|
-
};
|
|
3244
|
-
conditions: ({
|
|
3245
|
-
field: "text";
|
|
3246
|
-
operator: "contains" | "starts_with";
|
|
3247
|
-
value: string;
|
|
3248
|
-
} | {
|
|
3249
|
-
field: "baseBranch";
|
|
3250
|
-
value: string;
|
|
3251
|
-
} | {
|
|
3252
|
-
field: "branch";
|
|
3253
|
-
value: string;
|
|
3254
|
-
} | {
|
|
3255
|
-
field: "changedPaths";
|
|
3256
|
-
value: string;
|
|
3257
|
-
} | {
|
|
3258
|
-
field: "checkApp";
|
|
3259
|
-
value: string;
|
|
3260
|
-
} | {
|
|
3261
|
-
field: "checkName";
|
|
3262
|
-
value: string;
|
|
3263
|
-
} | {
|
|
3264
|
-
field: "conclusion";
|
|
3265
|
-
value: string;
|
|
3266
|
-
} | {
|
|
3267
|
-
field: "headBranch";
|
|
3268
|
-
value: string;
|
|
3269
|
-
} | {
|
|
3270
|
-
field: "issueAuthor";
|
|
3271
|
-
value: string;
|
|
3272
|
-
} | {
|
|
3273
|
-
field: "label";
|
|
3274
|
-
value: string;
|
|
3275
|
-
} | {
|
|
3276
|
-
field: "originEvent";
|
|
3277
|
-
value: string;
|
|
3278
|
-
} | {
|
|
3279
|
-
field: "prAuthor";
|
|
3280
|
-
value: string;
|
|
3281
|
-
} | {
|
|
3282
|
-
field: "workflowName";
|
|
3283
|
-
value: string;
|
|
3284
|
-
} | {
|
|
3285
|
-
field: "draft";
|
|
3286
|
-
value: boolean;
|
|
3287
|
-
} | {
|
|
3288
|
-
field: "forced";
|
|
3289
|
-
value: boolean;
|
|
3290
|
-
} | {
|
|
3291
|
-
field: "issueLabels";
|
|
3292
|
-
operator: "all" | "any";
|
|
3293
|
-
value: string[];
|
|
3294
|
-
} | {
|
|
3295
|
-
field: "reviewState";
|
|
3296
|
-
value: "approved" | "changes_requested" | "commented";
|
|
3297
|
-
})[];
|
|
3298
|
-
}>>, z$2.ZodPipe<z$2.ZodObject<{
|
|
3299
|
-
on: z$2.ZodEnum<{
|
|
3300
|
-
dm: "dm";
|
|
3301
|
-
mention: "mention";
|
|
3302
|
-
message: "message";
|
|
3303
|
-
reaction: "reaction";
|
|
3304
|
-
}>;
|
|
3305
|
-
channels: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3306
|
-
reactions: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3307
|
-
sender: z$2.ZodDefault<z$2.ZodUnion<readonly [z$2.ZodEnum<{
|
|
3308
|
-
any: "any";
|
|
3309
|
-
human: "human";
|
|
3310
|
-
me: "me";
|
|
3311
|
-
}>, z$2.ZodObject<{
|
|
3312
|
-
users: z$2.ZodArray<z$2.ZodString>;
|
|
3313
|
-
}, z$2.core.$strict>]>>;
|
|
3314
|
-
conditions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
3315
|
-
field: z$2.ZodLiteral<"text">;
|
|
3316
|
-
operator: z$2.ZodEnum<{
|
|
3317
|
-
contains: "contains";
|
|
3318
|
-
starts_with: "starts_with";
|
|
3319
|
-
}>;
|
|
3320
|
-
value: z$2.ZodString;
|
|
3321
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3322
|
-
field: z$2.ZodLiteral<"position">;
|
|
3323
|
-
value: z$2.ZodEnum<{
|
|
3324
|
-
reply: "reply";
|
|
3325
|
-
top_level: "top_level";
|
|
3326
|
-
}>;
|
|
3327
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3328
|
-
field: z$2.ZodLiteral<"hasFile">;
|
|
3329
|
-
value: z$2.ZodBoolean;
|
|
3330
|
-
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3331
|
-
field: z$2.ZodLiteral<"messageAuthor">;
|
|
3332
|
-
value: z$2.ZodString;
|
|
3333
|
-
}, z$2.core.$strict>], "field">>>;
|
|
3334
|
-
}, z$2.core.$strict>, z$2.ZodTransform<({
|
|
3335
|
-
on: "dm";
|
|
3336
|
-
channels: string[];
|
|
3337
|
-
sender: SlackTriggerSender;
|
|
3338
|
-
conditions: ({
|
|
3339
|
-
field: "text";
|
|
3340
|
-
operator: "contains" | "starts_with";
|
|
3341
|
-
value: string;
|
|
3342
|
-
} | {
|
|
3343
|
-
field: "hasFile";
|
|
3344
|
-
value: boolean;
|
|
3345
|
-
})[];
|
|
3346
|
-
} & {
|
|
3347
|
-
reactions?: never;
|
|
3348
|
-
}) | ({
|
|
3349
|
-
on: "mention";
|
|
3350
|
-
channels: string[];
|
|
3351
|
-
sender: SlackTriggerSender;
|
|
3352
|
-
conditions: {
|
|
3353
|
-
field: "text";
|
|
3354
|
-
operator: "contains" | "starts_with";
|
|
3355
|
-
value: string;
|
|
3356
|
-
}[];
|
|
3357
|
-
} & {
|
|
3358
|
-
reactions?: never;
|
|
3359
|
-
}) | ({
|
|
3360
|
-
on: "message";
|
|
3361
|
-
channels: string[];
|
|
3362
|
-
sender: SlackTriggerSender;
|
|
3363
|
-
conditions: ({
|
|
3364
|
-
field: "text";
|
|
3365
|
-
operator: "contains" | "starts_with";
|
|
3366
|
-
value: string;
|
|
3367
|
-
} | {
|
|
3368
|
-
field: "hasFile";
|
|
3369
|
-
value: boolean;
|
|
3370
|
-
} | {
|
|
3371
|
-
field: "position";
|
|
3372
|
-
value: "reply" | "top_level";
|
|
3373
|
-
})[];
|
|
3374
|
-
} & {
|
|
3375
|
-
reactions?: never;
|
|
3376
|
-
}) | ({
|
|
3377
|
-
on: "reaction";
|
|
3378
|
-
channels: string[];
|
|
3379
|
-
sender: SlackTriggerSender;
|
|
3380
|
-
conditions: {
|
|
3381
|
-
field: "messageAuthor";
|
|
3382
|
-
value: string;
|
|
3383
|
-
}[];
|
|
3384
|
-
} & {
|
|
3385
|
-
reactions?: string[];
|
|
3386
|
-
}), {
|
|
3387
|
-
on: "dm" | "mention" | "message" | "reaction";
|
|
3388
|
-
channels: string[];
|
|
3389
|
-
reactions?: string[] | undefined;
|
|
3390
|
-
sender: "any" | "human" | "me" | {
|
|
3391
|
-
users: string[];
|
|
3392
|
-
};
|
|
3393
|
-
conditions: ({
|
|
3394
|
-
field: "text";
|
|
3395
|
-
operator: "contains" | "starts_with";
|
|
3396
|
-
value: string;
|
|
3397
|
-
} | {
|
|
3398
|
-
field: "messageAuthor";
|
|
3399
|
-
value: string;
|
|
3400
|
-
} | {
|
|
3401
|
-
field: "hasFile";
|
|
3402
|
-
value: boolean;
|
|
3403
|
-
} | {
|
|
3404
|
-
field: "position";
|
|
3405
|
-
value: "reply" | "top_level";
|
|
3406
|
-
})[];
|
|
3407
|
-
}>>]>;
|
|
3408
|
-
/** Immutable identity shared by transport admission, coalescing and retries. */
|
|
3409
|
-
export interface ConnectorEventIdentity {
|
|
3410
|
-
connectionId: string;
|
|
3411
|
-
/** Provider delivery identity, not the Standards outbox id. */
|
|
3412
|
-
sourceEventId: string;
|
|
3413
|
-
/** Same Slack message delivered as message/app_mention has the same identity. */
|
|
3414
|
-
semanticEventId: string;
|
|
3415
|
-
/** ISO timestamp of the original admission, unchanged on retry. */
|
|
3416
|
-
receivedAt: string;
|
|
3417
|
-
/**
|
|
3418
|
-
* Provider payload kept in the tenant outbox. A fired run reads it pruned of
|
|
3419
|
-
* credentials, rendering and repeats, every id kept (#5234), never verbatim.
|
|
3420
|
-
*/
|
|
3421
|
-
payload: Record<string, unknown>;
|
|
3422
|
-
}
|
|
3423
|
-
/** Facts enriched by the worker; missing data never satisfies a condition. */
|
|
3424
|
-
export interface GithubEventFacts {
|
|
3425
|
-
text?: string;
|
|
3426
|
-
label?: string;
|
|
3427
|
-
issueLabels?: string[];
|
|
3428
|
-
baseBranch?: string;
|
|
3429
|
-
headBranch?: string;
|
|
3430
|
-
branch?: string;
|
|
3431
|
-
draft?: boolean;
|
|
3432
|
-
changedPaths?: string[];
|
|
3433
|
-
forced?: boolean;
|
|
3434
|
-
prAuthor?: string;
|
|
3435
|
-
issueAuthor?: string;
|
|
3436
|
-
reviewState?: "approved" | "changes_requested" | "commented";
|
|
3437
|
-
workflowName?: string;
|
|
3438
|
-
checkApp?: string;
|
|
3439
|
-
checkName?: string;
|
|
3440
|
-
conclusion?: string;
|
|
3441
|
-
originEvent?: string;
|
|
3442
|
-
}
|
|
3443
|
-
export type NormalizedGithubEvent = ConnectorEventIdentity & {
|
|
3444
|
-
provider: "github";
|
|
3445
|
-
installationId: string;
|
|
3446
|
-
eventName: string;
|
|
3447
|
-
repository?: string;
|
|
3448
|
-
number?: number;
|
|
3449
|
-
threadKey?: string;
|
|
3450
|
-
/**
|
|
3451
|
-
* The repository a pull request's head lives in (machines and links §2):
|
|
3452
|
-
* `repository` itself unless the PR comes from a fork. Set on events that
|
|
3453
|
-
* concern a pull request, with `facts.headBranch` and `defaultBranch`.
|
|
3454
|
-
*/
|
|
3455
|
-
headRepository?: string;
|
|
3456
|
-
/** The base repository's default branch, on events that concern a pull request. */
|
|
3457
|
-
defaultBranch?: string;
|
|
3458
|
-
sender: {
|
|
3459
|
-
login: string;
|
|
3460
|
-
isBot: boolean;
|
|
3461
|
-
performedViaAppId?: string;
|
|
3462
|
-
};
|
|
3463
|
-
title?: string;
|
|
3464
|
-
url?: string;
|
|
3465
|
-
facts: GithubEventFacts;
|
|
3466
|
-
} & { [F in GithubTriggerFamily]: {
|
|
3467
|
-
family: F;
|
|
3468
|
-
action: GithubTriggerAction<F>;
|
|
3469
|
-
}; }[GithubTriggerFamily];
|
|
3470
|
-
export interface NormalizedSlackEvent extends ConnectorEventIdentity {
|
|
3471
|
-
provider: "slack";
|
|
3472
|
-
teamId: string;
|
|
3473
|
-
/** A mentioned channel message can match both mention and message triggers. */
|
|
3474
|
-
kinds: SlackTriggerOn[];
|
|
3475
|
-
channel: string;
|
|
3476
|
-
ts: string;
|
|
3477
|
-
threadTs?: string;
|
|
3478
|
-
threadKey?: string;
|
|
3479
|
-
sender: {
|
|
3480
|
-
userId: string;
|
|
3481
|
-
isBot: boolean;
|
|
3482
|
-
isOurApp: boolean;
|
|
3483
|
-
name?: string;
|
|
3484
|
-
email?: string;
|
|
3485
|
-
};
|
|
3486
|
-
text?: string;
|
|
3487
|
-
position?: "top_level" | "reply";
|
|
3488
|
-
hasFile?: boolean;
|
|
3489
|
-
reaction?: string;
|
|
3490
|
-
messageAuthor?: string;
|
|
3491
|
-
files?: {
|
|
3492
|
-
id: string;
|
|
3493
|
-
name?: string;
|
|
3494
|
-
urlPrivate?: string;
|
|
3495
|
-
}[];
|
|
3496
|
-
history?: {
|
|
3497
|
-
ts: string;
|
|
3498
|
-
userId?: string;
|
|
3499
|
-
text: string;
|
|
3500
|
-
}[];
|
|
3501
|
-
}
|
|
3502
|
-
export type NormalizedConnectorEvent = NormalizedGithubEvent | NormalizedSlackEvent;
|
|
2646
|
+
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2647
|
+
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
2648
|
+
}, z$2.core.$strip>>;
|
|
2649
|
+
attributeName: z$2.ZodOptional<z$2.ZodString>;
|
|
2650
|
+
properties: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
|
|
2651
|
+
}, z$2.core.$strip>;
|
|
2652
|
+
export type RecordDriveChild = z$2.output<typeof recordDriveChildSchema>;
|
|
3503
2653
|
/**
|
|
3504
|
-
*
|
|
3505
|
-
*
|
|
2654
|
+
* The orders a drive level is listed in. Every mode puts folders before
|
|
2655
|
+
* files, then sorts on its key, then on `id`:
|
|
2656
|
+
* - `manual`: `position` (the drag order);
|
|
2657
|
+
* - `name-asc` / `name-desc`: the title, numeric and case- and
|
|
2658
|
+
* accent-insensitive ("File 2" before "file 10", "Éa" equal to "ea");
|
|
2659
|
+
* - `date-desc` / `date-asc`: a file's `createdAt` (the date it was added)
|
|
2660
|
+
* to the millisecond, so a rename never moves it; folders keep `name-asc`'s
|
|
2661
|
+
* order in both directions.
|
|
2662
|
+
* The `id` tiebreak is ascending in every mode.
|
|
3506
2663
|
*/
|
|
3507
|
-
export declare const
|
|
3508
|
-
export type
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
export type ReferenceRefusalReason = "bare_uuid" | "unknown_kind" | "malformed" | "legacy_mention";
|
|
3514
|
-
export type ParsedReference = {
|
|
3515
|
-
ok: true;
|
|
3516
|
-
ref: Reference;
|
|
3517
|
-
} | {
|
|
3518
|
-
ok: false;
|
|
3519
|
-
reason: ReferenceRefusalReason;
|
|
3520
|
-
expected: string;
|
|
3521
|
-
};
|
|
3522
|
-
export declare function parseReference(raw: string): ParsedReference;
|
|
3523
|
-
export declare function formatReference(ref: Reference): string;
|
|
3524
|
-
export declare function isWildcard(ref: Reference): boolean;
|
|
3525
|
-
/** Built-in external connector providers. Mirrors the runtime's
|
|
3526
|
-
* `ConnectorProvider`: mail and calendar are separate keys per vendor, because
|
|
3527
|
-
* the scopes differ and a user may connect one without the other. */
|
|
3528
|
-
export declare const CONNECTOR_PROVIDER_IDS: readonly ["gmail", "outlook", "google-calendar", "outlook-calendar", "github", "slack"];
|
|
3529
|
-
export type ConnectorProviderId = (typeof CONNECTOR_PROVIDER_IDS)[number];
|
|
3530
|
-
/** Providers that sync a mailbox. */
|
|
3531
|
-
export type EmailConnectorProviderId = Extract<ConnectorProviderId, "gmail" | "outlook">;
|
|
3532
|
-
/** Providers that sync a calendar. */
|
|
3533
|
-
export type CalendarConnectorProviderId = Extract<ConnectorProviderId, "google-calendar" | "outlook-calendar">;
|
|
3534
|
-
/** Connection lifecycle status, mirrored from `connector_connections.status`. */
|
|
3535
|
-
export declare const CONNECTION_STATUS_IDS: readonly ["active", "reauth_required", "error", "disconnected"];
|
|
3536
|
-
export type ConnectionStatusId = (typeof CONNECTION_STATUS_IDS)[number];
|
|
3537
|
-
/** What a connection may do on its provider; each maps to a scope tier per provider. */
|
|
3538
|
-
export type ConnectorCapability = "read" | "modify" | "send";
|
|
3539
|
-
/** Derived from the scopes the provider actually granted, never from what was requested. */
|
|
3540
|
-
export declare const connectionCapabilitiesSchema: z$2.ZodObject<{
|
|
3541
|
-
canRead: z$2.ZodBoolean;
|
|
3542
|
-
canModify: z$2.ZodBoolean;
|
|
3543
|
-
canSend: z$2.ZodBoolean;
|
|
3544
|
-
}, z$2.core.$strip>;
|
|
3545
|
-
export type ConnectionCapabilities = z$2.output<typeof connectionCapabilitiesSchema>;
|
|
3546
|
-
/** What to ask for so a re-consent keeps what the connection already holds: the held flags beyond `read`, in capability order. */
|
|
3547
|
-
export declare function requestedCapabilities(held: ConnectionCapabilities): Exclude<ConnectorCapability, "read">[];
|
|
2664
|
+
export declare const DOCUMENT_SORT_MODES: readonly ["manual", "name-asc", "name-desc", "date-desc", "date-asc"];
|
|
2665
|
+
export type DocumentSortMode = (typeof DOCUMENT_SORT_MODES)[number];
|
|
2666
|
+
/** Rows in a page of a drive level when the caller names no `limit`. */
|
|
2667
|
+
export declare const RECORD_DRIVE_PAGE_DEFAULT_LIMIT = 100;
|
|
2668
|
+
/** The most rows one page of a drive level holds; a larger `limit` is clamped. */
|
|
2669
|
+
export declare const RECORD_DRIVE_PAGE_MAX_LIMIT = 500;
|
|
3548
2670
|
/**
|
|
3549
|
-
*
|
|
3550
|
-
*
|
|
3551
|
-
* `processed` counts the items the current walk has stored so far, across every
|
|
3552
|
-
* continuation job; once the walk ends it keeps the final count. `total` is what
|
|
3553
|
-
* the provider says the walk will cover, captured when the walk starts: exact or
|
|
3554
|
-
* an estimate (Gmail's `resultSizeEstimate`), so `processed` may end above or
|
|
3555
|
-
* below it. It is `null` when the provider offers no total (calendars), so a
|
|
3556
|
-
* bar stays indeterminate rather than inventing a 100%. A connection that has
|
|
3557
|
-
* never walked reads `{ processed: 0, total: null, backfilling: false }`.
|
|
2671
|
+
* The longest drive page cursor read back. An issued cursor carries one title
|
|
2672
|
+
* (at most 255 characters) plus a few short fields; anything longer is crafted.
|
|
3558
2673
|
*/
|
|
3559
|
-
export declare const
|
|
3560
|
-
processed: z$2.ZodNumber;
|
|
3561
|
-
total: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3562
|
-
backfilling: z$2.ZodBoolean;
|
|
3563
|
-
}, z$2.core.$strip>;
|
|
3564
|
-
export type ConnectionSyncProgress = z$2.output<typeof connectionSyncProgressSchema>;
|
|
2674
|
+
export declare const RECORD_DRIVE_CURSOR_MAX_LENGTH = 2048;
|
|
3565
2675
|
/**
|
|
3566
|
-
*
|
|
3567
|
-
*
|
|
2676
|
+
* One page of a record's drive level (#4985), in its sort mode's order.
|
|
2677
|
+
* `nextCursor` resumes strictly after the page's last row, and is `null` on
|
|
2678
|
+
* the last page. A cursor is opaque and only valid for the mode that issued it.
|
|
3568
2679
|
*/
|
|
3569
|
-
export declare const
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
}>;
|
|
3590
|
-
lastSyncedAt: z$2.ZodNullable<z$2.ZodString>;
|
|
3591
|
-
createdAt: z$2.ZodString;
|
|
3592
|
-
capabilities: z$2.ZodObject<{
|
|
3593
|
-
canRead: z$2.ZodBoolean;
|
|
3594
|
-
canModify: z$2.ZodBoolean;
|
|
3595
|
-
canSend: z$2.ZodBoolean;
|
|
3596
|
-
}, z$2.core.$strip>;
|
|
3597
|
-
syncProgress: z$2.ZodObject<{
|
|
3598
|
-
processed: z$2.ZodNumber;
|
|
3599
|
-
total: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3600
|
-
backfilling: z$2.ZodBoolean;
|
|
3601
|
-
}, z$2.core.$strip>;
|
|
3602
|
-
usedBy: z$2.ZodOptional<z$2.ZodObject<{
|
|
3603
|
-
visible: z$2.ZodArray<z$2.ZodObject<{
|
|
2680
|
+
export declare const recordDriveChildrenPageSchema: z$2.ZodObject<{
|
|
2681
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
2682
|
+
id: z$2.ZodString;
|
|
2683
|
+
tenantId: z$2.ZodString;
|
|
2684
|
+
title: z$2.ZodString;
|
|
2685
|
+
kind: z$2.ZodEnum<{
|
|
2686
|
+
file: "file";
|
|
2687
|
+
folder: "folder";
|
|
2688
|
+
}>;
|
|
2689
|
+
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
2690
|
+
description: z$2.ZodOptional<z$2.ZodString>;
|
|
2691
|
+
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
2692
|
+
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2693
|
+
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
2694
|
+
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
2695
|
+
position: z$2.ZodNumber;
|
|
2696
|
+
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2697
|
+
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
2698
|
+
subCount: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2699
|
+
files: z$2.ZodArray<z$2.ZodObject<{
|
|
3604
2700
|
id: z$2.ZodString;
|
|
2701
|
+
documentId: z$2.ZodString;
|
|
2702
|
+
position: z$2.ZodNumber;
|
|
3605
2703
|
name: z$2.ZodString;
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
2704
|
+
mimeType: z$2.ZodString;
|
|
2705
|
+
size: z$2.ZodNumber;
|
|
2706
|
+
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2707
|
+
completed: "completed";
|
|
2708
|
+
failed: "failed";
|
|
2709
|
+
pending: "pending";
|
|
2710
|
+
processing: "processing";
|
|
2711
|
+
unsupported: "unsupported";
|
|
2712
|
+
}>>;
|
|
2713
|
+
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2714
|
+
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
2715
|
+
}, z$2.core.$strip>>;
|
|
2716
|
+
attributeName: z$2.ZodOptional<z$2.ZodString>;
|
|
2717
|
+
properties: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
|
|
2718
|
+
}, z$2.core.$strip>>;
|
|
2719
|
+
nextCursor: z$2.ZodNullable<z$2.ZodString>;
|
|
2720
|
+
}, z$2.core.$strip>;
|
|
2721
|
+
export type RecordDriveChildrenPage = z$2.output<typeof recordDriveChildrenPageSchema>;
|
|
2722
|
+
export interface CreateDocument {
|
|
2723
|
+
title: string;
|
|
2724
|
+
kind?: DocumentKind;
|
|
2725
|
+
parentId?: Uuid | null;
|
|
2726
|
+
description?: string;
|
|
2727
|
+
position?: number;
|
|
3628
2728
|
}
|
|
3629
2729
|
/**
|
|
3630
|
-
*
|
|
3631
|
-
*
|
|
2730
|
+
* Reference to a record attribute that should atomically attach a freshly
|
|
2731
|
+
* created Document. Passed alongside `CreateDocument` to make creation
|
|
2732
|
+
* link-aware end-to-end (client → REST → service → repo).
|
|
2733
|
+
*
|
|
2734
|
+
* The server requires this — orphan Documents are not creatable through the
|
|
2735
|
+
* REST API.
|
|
3632
2736
|
*/
|
|
3633
|
-
export
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
}, z$2.core.$strip>;
|
|
3651
|
-
export type ConnectorProvidersResult = z$2.output<typeof connectorProvidersResultSchema>;
|
|
3652
|
-
/** Input to attach a Microsoft shared mailbox to an existing Outlook connection. */
|
|
3653
|
-
export interface AddSharedMailboxInput {
|
|
3654
|
-
/** Shared mailbox SMTP address (e.g. contact@company.com). */
|
|
3655
|
-
address: string;
|
|
3656
|
-
/** Visibility of the synced emails: tenant (default UX) or only the adding actor. */
|
|
3657
|
-
scope: ConnectorScope;
|
|
2737
|
+
export interface CreateDocumentLink {
|
|
2738
|
+
objectName: string;
|
|
2739
|
+
sourceRecordId: string;
|
|
2740
|
+
attributeName: string;
|
|
2741
|
+
}
|
|
2742
|
+
export interface UpdateDocument {
|
|
2743
|
+
title?: string;
|
|
2744
|
+
parentId?: Uuid | null;
|
|
2745
|
+
position?: number;
|
|
2746
|
+
}
|
|
2747
|
+
export interface DocumentListOptions {
|
|
2748
|
+
limit?: number;
|
|
2749
|
+
offset?: number;
|
|
2750
|
+
}
|
|
2751
|
+
export interface RecordDocuments {
|
|
2752
|
+
/** Documents grouped by attribute name (includes system 'attachments' attribute) */
|
|
2753
|
+
byAttribute: Record<string, DocumentWithFiles[]>;
|
|
3658
2754
|
}
|
|
3659
|
-
/** How a connector's consent ended, as the app's surfaces read it. */
|
|
3660
|
-
export type ConnectorCallbackStatusValue = "connected" | "error";
|
|
3661
|
-
/** The unified verbs an agent calls on typed references. */
|
|
3662
|
-
export declare const VERB_NAMES: readonly ["search", "query", "read", "write", "delete", "organize", "copy", "send"];
|
|
3663
|
-
export type VerbName = (typeof VERB_NAMES)[number];
|
|
3664
|
-
/** The one verb by which an agent reaches a person, a session or a draft. */
|
|
3665
|
-
export declare const SEND_VERB_NAME = "send";
|
|
3666
|
-
/** The verb that moves bytes between the sandbox, a mailbox and Standards' own files. */
|
|
3667
|
-
export declare const COPY_VERB_NAME = "copy";
|
|
3668
|
-
/** Record, document and file tools: always loaded, bounded by data permissions. */
|
|
3669
|
-
export declare const CORE_RECORD_TOOL_NAMES: readonly ["search", "query", "read", "write", "delete", "organize", "copy", "send", "edit_content"];
|
|
3670
|
-
/** Core: always loaded, never removable (D2). */
|
|
3671
|
-
export declare const CORE_TOOL_NAMES: readonly ["search", "query", "read", "write", "delete", "organize", "copy", "send", "edit_content", "compact_context", "request_work_mode", "write_todos"];
|
|
3672
2755
|
/**
|
|
3673
|
-
*
|
|
3674
|
-
*
|
|
2756
|
+
* One record that holds documents, with how much sits at its drive root and
|
|
2757
|
+
* when it last moved. The wire shape of `GET /documents/record-owners`.
|
|
3675
2758
|
*/
|
|
3676
|
-
export declare const
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
}
|
|
3697
|
-
export
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
}
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
2759
|
+
export declare const documentRecordOwnerSchema: z$2.ZodObject<{
|
|
2760
|
+
recordId: z$2.ZodString;
|
|
2761
|
+
objectName: z$2.ZodString;
|
|
2762
|
+
label: z$2.ZodString;
|
|
2763
|
+
itemCount: z$2.ZodNumber;
|
|
2764
|
+
fileCount: z$2.ZodNumber;
|
|
2765
|
+
lastActivityAt: z$2.ZodString;
|
|
2766
|
+
}, z$2.core.$strip>;
|
|
2767
|
+
export type DocumentRecordOwner = z$2.output<typeof documentRecordOwnerSchema>;
|
|
2768
|
+
/** One page of {@link DocumentRecordOwner}s; `nextOffset: null` is the last page. */
|
|
2769
|
+
export declare const documentRecordOwnerPageSchema: z$2.ZodObject<{
|
|
2770
|
+
data: z$2.ZodArray<z$2.ZodObject<{
|
|
2771
|
+
recordId: z$2.ZodString;
|
|
2772
|
+
objectName: z$2.ZodString;
|
|
2773
|
+
label: z$2.ZodString;
|
|
2774
|
+
itemCount: z$2.ZodNumber;
|
|
2775
|
+
fileCount: z$2.ZodNumber;
|
|
2776
|
+
lastActivityAt: z$2.ZodString;
|
|
2777
|
+
}, z$2.core.$strip>>;
|
|
2778
|
+
nextOffset: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2779
|
+
}, z$2.core.$strip>;
|
|
2780
|
+
export type DocumentRecordOwnerPage = z$2.output<typeof documentRecordOwnerPageSchema>;
|
|
2781
|
+
/** What the reading actor may do with a resource (spec §6.6); records never produce `runner`. */
|
|
2782
|
+
export declare const viewerAccessSchema: z$2.ZodEnum<{
|
|
2783
|
+
editor: "editor";
|
|
2784
|
+
owner: "owner";
|
|
2785
|
+
reader: "reader";
|
|
2786
|
+
runner: "runner";
|
|
2787
|
+
workspace: "workspace";
|
|
2788
|
+
}>;
|
|
2789
|
+
type Values = readonly [string, ...string[]];
|
|
2790
|
+
/** One beneficiary of a private resource: its effective role and every source that grants it. */
|
|
2791
|
+
export declare function accessGrantSchema<const Role extends Values, const Source extends Values>(roles: Role, sources: Source): z$2.ZodObject<{
|
|
2792
|
+
actorId: z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>;
|
|
2793
|
+
role: z$2.ZodEnum<{ [k in Role[number]]: k; } extends (infer T) ? { [k in keyof T]: T[k]; } : never>;
|
|
2794
|
+
sources: z$2.ZodArray<z$2.ZodEnum<{ [k in Source[number]]: k; } extends (infer T_1) ? { [k in keyof T_1]: T_1[k]; } : never>>;
|
|
2795
|
+
}, z$2.core.$strip>;
|
|
2796
|
+
/** Who can reach a record beyond its owner (`GET /records/:object/:id/access`). */
|
|
2797
|
+
export declare const recordAudienceSchema: z$2.ZodObject<{
|
|
2798
|
+
recordId: z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>;
|
|
2799
|
+
visibility: z$2.ZodEnum<{
|
|
2800
|
+
private: "private";
|
|
2801
|
+
workspace: "workspace";
|
|
2802
|
+
}>;
|
|
2803
|
+
ownedBy: z$2.ZodNullable<z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>>;
|
|
2804
|
+
viewerAccess: z$2.ZodEnum<{
|
|
2805
|
+
editor: "editor";
|
|
2806
|
+
owner: "owner";
|
|
2807
|
+
reader: "reader";
|
|
2808
|
+
runner: "runner";
|
|
2809
|
+
workspace: "workspace";
|
|
2810
|
+
}>;
|
|
2811
|
+
grants: z$2.ZodArray<z$2.ZodObject<{
|
|
2812
|
+
actorId: z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>;
|
|
2813
|
+
role: z$2.ZodEnum<{
|
|
2814
|
+
editor: "editor";
|
|
2815
|
+
reader: "reader";
|
|
2816
|
+
}>;
|
|
2817
|
+
sources: z$2.ZodArray<z$2.ZodEnum<{
|
|
2818
|
+
manual: "manual";
|
|
2819
|
+
meeting_attendee: "meeting_attendee";
|
|
2820
|
+
}>>;
|
|
2821
|
+
}, z$2.core.$strip>>;
|
|
2822
|
+
}, z$2.core.$strip>;
|
|
2823
|
+
/** Who may run commands on a device beyond its owner (`GET /devices/:id/access`). */
|
|
2824
|
+
export declare const deviceAudienceSchema: z$2.ZodObject<{
|
|
2825
|
+
deviceId: z$2.ZodString;
|
|
2826
|
+
visibility: z$2.ZodEnum<{
|
|
2827
|
+
private: "private";
|
|
2828
|
+
workspace: "workspace";
|
|
2829
|
+
}>;
|
|
2830
|
+
ownedBy: z$2.ZodNullable<z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>>;
|
|
2831
|
+
viewerAccess: z$2.ZodEnum<{
|
|
2832
|
+
editor: "editor";
|
|
2833
|
+
owner: "owner";
|
|
2834
|
+
reader: "reader";
|
|
2835
|
+
runner: "runner";
|
|
2836
|
+
workspace: "workspace";
|
|
2837
|
+
}>;
|
|
2838
|
+
grants: z$2.ZodArray<z$2.ZodObject<{
|
|
2839
|
+
actorId: z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>;
|
|
2840
|
+
role: z$2.ZodEnum<{
|
|
2841
|
+
runner: "runner";
|
|
2842
|
+
}>;
|
|
2843
|
+
sources: z$2.ZodArray<z$2.ZodEnum<{
|
|
2844
|
+
manual: "manual";
|
|
2845
|
+
}>>;
|
|
2846
|
+
}, z$2.core.$strip>>;
|
|
2847
|
+
}, z$2.core.$strip>;
|
|
2848
|
+
/** Who can reach a private page beyond its owner (`GET /pages/:id/access`). */
|
|
2849
|
+
export declare const pageAudienceSchema: z$2.ZodObject<{
|
|
2850
|
+
pageId: z$2.ZodString;
|
|
2851
|
+
visibility: z$2.ZodEnum<{
|
|
2852
|
+
private: "private";
|
|
2853
|
+
workspace: "workspace";
|
|
2854
|
+
}>;
|
|
2855
|
+
ownedBy: z$2.ZodNullable<z$2.ZodString>;
|
|
2856
|
+
viewerAccess: z$2.ZodEnum<{
|
|
2857
|
+
editor: "editor";
|
|
2858
|
+
owner: "owner";
|
|
2859
|
+
reader: "reader";
|
|
2860
|
+
runner: "runner";
|
|
2861
|
+
workspace: "workspace";
|
|
2862
|
+
}>;
|
|
2863
|
+
grants: z$2.ZodArray<z$2.ZodObject<{
|
|
2864
|
+
actorId: z$2.ZodType<string, string, z$2.core.$ZodTypeInternals<string, string>>;
|
|
2865
|
+
role: z$2.ZodEnum<{
|
|
2866
|
+
editor: "editor";
|
|
2867
|
+
reader: "reader";
|
|
2868
|
+
}>;
|
|
2869
|
+
sources: z$2.ZodArray<z$2.ZodEnum<{
|
|
2870
|
+
manual: "manual";
|
|
2871
|
+
}>>;
|
|
2872
|
+
}, z$2.core.$strip>>;
|
|
2873
|
+
}, z$2.core.$strip>;
|
|
2874
|
+
/** Canonical normalized actions and legal condition fields (trigger catalogue F). */
|
|
2875
|
+
export declare const GITHUB_TRIGGER_CATALOG: {
|
|
2876
|
+
readonly pull_request: {
|
|
2877
|
+
readonly events: readonly ["pull_request"];
|
|
2878
|
+
readonly actions: readonly ["opened", "ready_for_review", "synchronize", "merged", "closed", "labeled"];
|
|
2879
|
+
readonly conditions: readonly ["baseBranch", "headBranch", "draft", "label", "issueLabels", "changedPaths", "prAuthor"];
|
|
3759
2880
|
};
|
|
3760
|
-
readonly
|
|
3761
|
-
readonly
|
|
3762
|
-
readonly
|
|
2881
|
+
readonly review: {
|
|
2882
|
+
readonly events: readonly ["pull_request_review"];
|
|
2883
|
+
readonly actions: readonly ["submitted"];
|
|
2884
|
+
readonly conditions: readonly ["reviewState", "prAuthor"];
|
|
3763
2885
|
};
|
|
3764
|
-
readonly
|
|
3765
|
-
readonly
|
|
3766
|
-
readonly
|
|
2886
|
+
readonly comment: {
|
|
2887
|
+
readonly events: readonly ["issue_comment", "pull_request_review_comment"];
|
|
2888
|
+
readonly actions: readonly ["created"];
|
|
2889
|
+
readonly conditions: readonly ["text", "issueAuthor", "prAuthor"];
|
|
3767
2890
|
};
|
|
3768
|
-
readonly
|
|
3769
|
-
readonly
|
|
3770
|
-
readonly
|
|
2891
|
+
readonly push: {
|
|
2892
|
+
readonly events: readonly ["push"];
|
|
2893
|
+
readonly actions: readonly ["pushed"];
|
|
2894
|
+
readonly conditions: readonly ["branch", "changedPaths", "forced"];
|
|
3771
2895
|
};
|
|
3772
|
-
readonly
|
|
3773
|
-
readonly
|
|
3774
|
-
readonly
|
|
2896
|
+
readonly workflow: {
|
|
2897
|
+
readonly events: readonly ["workflow_run"];
|
|
2898
|
+
readonly actions: readonly ["completed"];
|
|
2899
|
+
readonly conditions: readonly ["workflowName", "conclusion", "branch", "originEvent"];
|
|
3775
2900
|
};
|
|
3776
|
-
readonly
|
|
3777
|
-
readonly
|
|
3778
|
-
readonly
|
|
2901
|
+
readonly check: {
|
|
2902
|
+
readonly events: readonly ["check_suite", "check_run"];
|
|
2903
|
+
readonly actions: readonly ["completed"];
|
|
2904
|
+
readonly conditions: readonly ["checkApp", "checkName", "conclusion"];
|
|
3779
2905
|
};
|
|
3780
2906
|
};
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
readonly
|
|
3785
|
-
readonly capabilities: readonly [];
|
|
3786
|
-
readonly tools: readonly ["exec_command", "publish_artifact", "sandbox_validate_payload"];
|
|
3787
|
-
};
|
|
3788
|
-
readonly web: {
|
|
3789
|
-
readonly kinds: readonly [];
|
|
3790
|
-
readonly capabilities: readonly [];
|
|
3791
|
-
readonly tools: readonly ["read_webpage", "web_search"];
|
|
3792
|
-
};
|
|
3793
|
-
readonly image: {
|
|
3794
|
-
readonly kinds: readonly [];
|
|
3795
|
-
readonly capabilities: readonly [];
|
|
3796
|
-
readonly tools: readonly ["generate_image"];
|
|
3797
|
-
};
|
|
3798
|
-
readonly memory: {
|
|
3799
|
-
readonly kinds: readonly ["memory"];
|
|
3800
|
-
readonly capabilities: readonly [];
|
|
3801
|
-
readonly tools: readonly ["propose_memory"];
|
|
3802
|
-
};
|
|
3803
|
-
readonly bulk: {
|
|
3804
|
-
readonly kinds: readonly [];
|
|
3805
|
-
readonly capabilities: readonly ["bulk"];
|
|
3806
|
-
readonly tools: readonly [];
|
|
3807
|
-
};
|
|
3808
|
-
readonly activity: {
|
|
3809
|
-
readonly kinds: readonly [];
|
|
3810
|
-
readonly capabilities: readonly ["activity"];
|
|
3811
|
-
readonly tools: readonly [];
|
|
3812
|
-
};
|
|
3813
|
-
readonly orchestration: {
|
|
3814
|
-
readonly kinds: readonly [];
|
|
3815
|
-
readonly capabilities: readonly [];
|
|
3816
|
-
readonly tools: readonly ["spawn_agent"];
|
|
3817
|
-
};
|
|
3818
|
-
readonly host: {
|
|
3819
|
-
readonly kinds: readonly [];
|
|
3820
|
-
readonly capabilities: readonly [];
|
|
3821
|
-
readonly tools: readonly [];
|
|
3822
|
-
};
|
|
3823
|
-
readonly "cloud-browser": {
|
|
3824
|
-
readonly kinds: readonly [];
|
|
3825
|
-
readonly capabilities: readonly [];
|
|
3826
|
-
readonly tools: readonly ["browser_launch"];
|
|
3827
|
-
};
|
|
3828
|
-
readonly "agent-config": {
|
|
3829
|
-
readonly kinds: readonly [];
|
|
3830
|
-
readonly capabilities: readonly [];
|
|
3831
|
-
readonly tools: readonly ["get_agents", "upsert_agent"];
|
|
3832
|
-
};
|
|
3833
|
-
readonly mcp: {
|
|
3834
|
-
readonly kinds: readonly [];
|
|
3835
|
-
readonly capabilities: readonly [];
|
|
3836
|
-
readonly tools: readonly [];
|
|
2907
|
+
export declare const SLACK_TRIGGER_CATALOG: {
|
|
2908
|
+
readonly mention: {
|
|
2909
|
+
readonly events: readonly ["app_mention"];
|
|
2910
|
+
readonly conditions: readonly ["text"];
|
|
3837
2911
|
};
|
|
3838
|
-
readonly
|
|
3839
|
-
readonly
|
|
3840
|
-
readonly
|
|
3841
|
-
readonly tools: readonly [];
|
|
2912
|
+
readonly message: {
|
|
2913
|
+
readonly events: readonly ["message"];
|
|
2914
|
+
readonly conditions: readonly ["position", "text", "hasFile"];
|
|
3842
2915
|
};
|
|
3843
|
-
readonly
|
|
3844
|
-
readonly
|
|
3845
|
-
readonly
|
|
3846
|
-
readonly tools: readonly [];
|
|
2916
|
+
readonly dm: {
|
|
2917
|
+
readonly events: readonly ["message"];
|
|
2918
|
+
readonly conditions: readonly ["text", "hasFile"];
|
|
3847
2919
|
};
|
|
3848
|
-
readonly
|
|
3849
|
-
readonly
|
|
3850
|
-
readonly
|
|
3851
|
-
readonly tools: readonly [];
|
|
2920
|
+
readonly reaction: {
|
|
2921
|
+
readonly events: readonly ["reaction_added"];
|
|
2922
|
+
readonly conditions: readonly ["messageAuthor"];
|
|
3852
2923
|
};
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
2924
|
+
};
|
|
2925
|
+
export declare const githubConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2926
|
+
field: z$2.ZodLiteral<"text">;
|
|
2927
|
+
operator: z$2.ZodEnum<{
|
|
2928
|
+
contains: "contains";
|
|
2929
|
+
starts_with: "starts_with";
|
|
2930
|
+
}>;
|
|
2931
|
+
value: z$2.ZodString;
|
|
2932
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2933
|
+
field: z$2.ZodLiteral<"label">;
|
|
2934
|
+
value: z$2.ZodString;
|
|
2935
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2936
|
+
field: z$2.ZodLiteral<"issueLabels">;
|
|
2937
|
+
operator: z$2.ZodDefault<z$2.ZodEnum<{
|
|
2938
|
+
all: "all";
|
|
2939
|
+
any: "any";
|
|
2940
|
+
}>>;
|
|
2941
|
+
value: z$2.ZodArray<z$2.ZodString>;
|
|
2942
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2943
|
+
field: z$2.ZodLiteral<"baseBranch">;
|
|
2944
|
+
value: z$2.ZodString;
|
|
2945
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2946
|
+
field: z$2.ZodLiteral<"headBranch">;
|
|
2947
|
+
value: z$2.ZodString;
|
|
2948
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2949
|
+
field: z$2.ZodLiteral<"branch">;
|
|
2950
|
+
value: z$2.ZodString;
|
|
2951
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2952
|
+
field: z$2.ZodLiteral<"draft">;
|
|
2953
|
+
value: z$2.ZodBoolean;
|
|
2954
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2955
|
+
field: z$2.ZodLiteral<"changedPaths">;
|
|
2956
|
+
value: z$2.ZodString;
|
|
2957
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2958
|
+
field: z$2.ZodLiteral<"forced">;
|
|
2959
|
+
value: z$2.ZodBoolean;
|
|
2960
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2961
|
+
field: z$2.ZodLiteral<"prAuthor">;
|
|
2962
|
+
value: z$2.ZodString;
|
|
2963
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2964
|
+
field: z$2.ZodLiteral<"issueAuthor">;
|
|
2965
|
+
value: z$2.ZodString;
|
|
2966
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2967
|
+
field: z$2.ZodLiteral<"reviewState">;
|
|
2968
|
+
value: z$2.ZodEnum<{
|
|
2969
|
+
approved: "approved";
|
|
2970
|
+
changes_requested: "changes_requested";
|
|
2971
|
+
commented: "commented";
|
|
2972
|
+
}>;
|
|
2973
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2974
|
+
field: z$2.ZodLiteral<"workflowName">;
|
|
2975
|
+
value: z$2.ZodString;
|
|
2976
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2977
|
+
field: z$2.ZodLiteral<"checkApp">;
|
|
2978
|
+
value: z$2.ZodString;
|
|
2979
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2980
|
+
field: z$2.ZodLiteral<"checkName">;
|
|
2981
|
+
value: z$2.ZodString;
|
|
2982
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2983
|
+
field: z$2.ZodLiteral<"conclusion">;
|
|
2984
|
+
value: z$2.ZodString;
|
|
2985
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2986
|
+
field: z$2.ZodLiteral<"originEvent">;
|
|
2987
|
+
value: z$2.ZodString;
|
|
2988
|
+
}, z$2.core.$strict>], "field">;
|
|
2989
|
+
export declare const slackConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2990
|
+
field: z$2.ZodLiteral<"text">;
|
|
2991
|
+
operator: z$2.ZodEnum<{
|
|
2992
|
+
contains: "contains";
|
|
2993
|
+
starts_with: "starts_with";
|
|
2994
|
+
}>;
|
|
2995
|
+
value: z$2.ZodString;
|
|
2996
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
2997
|
+
field: z$2.ZodLiteral<"position">;
|
|
2998
|
+
value: z$2.ZodEnum<{
|
|
2999
|
+
reply: "reply";
|
|
3000
|
+
top_level: "top_level";
|
|
3001
|
+
}>;
|
|
3002
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3003
|
+
field: z$2.ZodLiteral<"hasFile">;
|
|
3004
|
+
value: z$2.ZodBoolean;
|
|
3005
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3006
|
+
field: z$2.ZodLiteral<"messageAuthor">;
|
|
3007
|
+
value: z$2.ZodString;
|
|
3008
|
+
}, z$2.core.$strict>], "field">;
|
|
3009
|
+
export type GithubCondition = z$2.output<typeof githubConditionSchema>;
|
|
3010
|
+
export type SlackCondition = z$2.output<typeof slackConditionSchema>;
|
|
3011
|
+
export type GithubTriggerFamily = keyof typeof GITHUB_TRIGGER_CATALOG;
|
|
3012
|
+
export type SlackTriggerOn = keyof typeof SLACK_TRIGGER_CATALOG;
|
|
3013
|
+
/** Every GitHub family, in the catalogue's order. */
|
|
3014
|
+
export declare const GITHUB_TRIGGER_FAMILIES: [GithubTriggerFamily, ...GithubTriggerFamily[]];
|
|
3015
|
+
/** Every Slack event a trigger listens to, in the catalogue's order. */
|
|
3016
|
+
export declare const SLACK_TRIGGER_EVENTS: [SlackTriggerOn, ...SlackTriggerOn[]];
|
|
3017
|
+
export type GithubTriggerAction<F extends GithubTriggerFamily = GithubTriggerFamily> = (typeof GITHUB_TRIGGER_CATALOG)[F]["actions"][number];
|
|
3018
|
+
export type GithubTriggerSender = "human" | "me" | "any" | {
|
|
3019
|
+
logins: string[];
|
|
3020
|
+
};
|
|
3021
|
+
export type SlackTriggerSender = "human" | "me" | "any" | {
|
|
3022
|
+
users: string[];
|
|
3023
|
+
};
|
|
3024
|
+
export type GithubTriggerMatch = { [F in GithubTriggerFamily]: {
|
|
3025
|
+
family: F;
|
|
3026
|
+
actions: GithubTriggerAction<F>[];
|
|
3027
|
+
repositories: string[];
|
|
3028
|
+
sender: GithubTriggerSender;
|
|
3029
|
+
conditions: Extract<GithubCondition, {
|
|
3030
|
+
field: (typeof GITHUB_TRIGGER_CATALOG)[F]["conditions"][number];
|
|
3031
|
+
}>[];
|
|
3032
|
+
}; }[GithubTriggerFamily];
|
|
3033
|
+
export type SlackTriggerMatch = { [O in SlackTriggerOn]: {
|
|
3034
|
+
on: O;
|
|
3035
|
+
channels: string[];
|
|
3036
|
+
sender: SlackTriggerSender;
|
|
3037
|
+
conditions: Extract<SlackCondition, {
|
|
3038
|
+
field: (typeof SLACK_TRIGGER_CATALOG)[O]["conditions"][number];
|
|
3039
|
+
}>[];
|
|
3040
|
+
} & (O extends "reaction" ? {
|
|
3041
|
+
reactions?: string[];
|
|
3042
|
+
} : {
|
|
3043
|
+
reactions?: never;
|
|
3044
|
+
}); }[SlackTriggerOn];
|
|
3045
|
+
export type ConnectorTriggerMatch = GithubTriggerMatch | SlackTriggerMatch;
|
|
3046
|
+
/** The suffix of `owner/*`: every repository of that owner, installed now or later. */
|
|
3047
|
+
export declare const REPOSITORY_WILDCARD = "/*";
|
|
3048
|
+
/** Whether a stored repository (`owner/repo` or `owner/*`) covers a full name. Case-insensitive. */
|
|
3049
|
+
export declare function matchesRepositoryPattern(pattern: string, fullName: string): boolean;
|
|
3050
|
+
/** The refinements establish the family/condition/action correlation of the output union. */
|
|
3051
|
+
export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
|
|
3052
|
+
family: z$2.ZodEnum<{
|
|
3053
|
+
check: "check";
|
|
3054
|
+
comment: "comment";
|
|
3055
|
+
pull_request: "pull_request";
|
|
3056
|
+
push: "push";
|
|
3057
|
+
review: "review";
|
|
3058
|
+
workflow: "workflow";
|
|
3059
|
+
}>;
|
|
3060
|
+
actions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3061
|
+
repositories: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3062
|
+
sender: z$2.ZodDefault<z$2.ZodUnion<readonly [z$2.ZodEnum<{
|
|
3063
|
+
any: "any";
|
|
3064
|
+
human: "human";
|
|
3065
|
+
me: "me";
|
|
3066
|
+
}>, z$2.ZodObject<{
|
|
3067
|
+
logins: z$2.ZodArray<z$2.ZodString>;
|
|
3068
|
+
}, z$2.core.$strict>]>>;
|
|
3069
|
+
conditions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
3070
|
+
field: z$2.ZodLiteral<"text">;
|
|
3071
|
+
operator: z$2.ZodEnum<{
|
|
3072
|
+
contains: "contains";
|
|
3073
|
+
starts_with: "starts_with";
|
|
3074
|
+
}>;
|
|
3075
|
+
value: z$2.ZodString;
|
|
3076
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3077
|
+
field: z$2.ZodLiteral<"label">;
|
|
3078
|
+
value: z$2.ZodString;
|
|
3079
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3080
|
+
field: z$2.ZodLiteral<"issueLabels">;
|
|
3081
|
+
operator: z$2.ZodDefault<z$2.ZodEnum<{
|
|
3082
|
+
all: "all";
|
|
3083
|
+
any: "any";
|
|
3084
|
+
}>>;
|
|
3085
|
+
value: z$2.ZodArray<z$2.ZodString>;
|
|
3086
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3087
|
+
field: z$2.ZodLiteral<"baseBranch">;
|
|
3088
|
+
value: z$2.ZodString;
|
|
3089
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3090
|
+
field: z$2.ZodLiteral<"headBranch">;
|
|
3091
|
+
value: z$2.ZodString;
|
|
3092
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3093
|
+
field: z$2.ZodLiteral<"branch">;
|
|
3094
|
+
value: z$2.ZodString;
|
|
3095
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3096
|
+
field: z$2.ZodLiteral<"draft">;
|
|
3097
|
+
value: z$2.ZodBoolean;
|
|
3098
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3099
|
+
field: z$2.ZodLiteral<"changedPaths">;
|
|
3100
|
+
value: z$2.ZodString;
|
|
3101
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3102
|
+
field: z$2.ZodLiteral<"forced">;
|
|
3103
|
+
value: z$2.ZodBoolean;
|
|
3104
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3105
|
+
field: z$2.ZodLiteral<"prAuthor">;
|
|
3106
|
+
value: z$2.ZodString;
|
|
3107
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3108
|
+
field: z$2.ZodLiteral<"issueAuthor">;
|
|
3109
|
+
value: z$2.ZodString;
|
|
3110
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3111
|
+
field: z$2.ZodLiteral<"reviewState">;
|
|
3112
|
+
value: z$2.ZodEnum<{
|
|
3113
|
+
approved: "approved";
|
|
3114
|
+
changes_requested: "changes_requested";
|
|
3115
|
+
commented: "commented";
|
|
3116
|
+
}>;
|
|
3117
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3118
|
+
field: z$2.ZodLiteral<"workflowName">;
|
|
3119
|
+
value: z$2.ZodString;
|
|
3120
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3121
|
+
field: z$2.ZodLiteral<"checkApp">;
|
|
3122
|
+
value: z$2.ZodString;
|
|
3123
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3124
|
+
field: z$2.ZodLiteral<"checkName">;
|
|
3125
|
+
value: z$2.ZodString;
|
|
3126
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3127
|
+
field: z$2.ZodLiteral<"conclusion">;
|
|
3128
|
+
value: z$2.ZodString;
|
|
3129
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3130
|
+
field: z$2.ZodLiteral<"originEvent">;
|
|
3131
|
+
value: z$2.ZodString;
|
|
3132
|
+
}, z$2.core.$strict>], "field">>>;
|
|
3133
|
+
}, z$2.core.$strict>, z$2.ZodTransform<{
|
|
3134
|
+
family: "check";
|
|
3135
|
+
actions: "completed"[];
|
|
3136
|
+
repositories: string[];
|
|
3137
|
+
sender: GithubTriggerSender;
|
|
3138
|
+
conditions: ({
|
|
3139
|
+
field: "checkApp";
|
|
3140
|
+
value: string;
|
|
3141
|
+
} | {
|
|
3142
|
+
field: "checkName";
|
|
3143
|
+
value: string;
|
|
3144
|
+
} | {
|
|
3145
|
+
field: "conclusion";
|
|
3146
|
+
value: string;
|
|
3147
|
+
})[];
|
|
3148
|
+
} | {
|
|
3149
|
+
family: "comment";
|
|
3150
|
+
actions: "created"[];
|
|
3151
|
+
repositories: string[];
|
|
3152
|
+
sender: GithubTriggerSender;
|
|
3153
|
+
conditions: ({
|
|
3154
|
+
field: "text";
|
|
3155
|
+
operator: "contains" | "starts_with";
|
|
3156
|
+
value: string;
|
|
3157
|
+
} | {
|
|
3158
|
+
field: "issueAuthor";
|
|
3159
|
+
value: string;
|
|
3160
|
+
} | {
|
|
3161
|
+
field: "prAuthor";
|
|
3162
|
+
value: string;
|
|
3163
|
+
})[];
|
|
3164
|
+
} | {
|
|
3165
|
+
family: "pull_request";
|
|
3166
|
+
actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
|
|
3167
|
+
repositories: string[];
|
|
3168
|
+
sender: GithubTriggerSender;
|
|
3169
|
+
conditions: ({
|
|
3170
|
+
field: "baseBranch";
|
|
3171
|
+
value: string;
|
|
3172
|
+
} | {
|
|
3173
|
+
field: "changedPaths";
|
|
3174
|
+
value: string;
|
|
3175
|
+
} | {
|
|
3176
|
+
field: "headBranch";
|
|
3177
|
+
value: string;
|
|
3178
|
+
} | {
|
|
3179
|
+
field: "label";
|
|
3180
|
+
value: string;
|
|
3181
|
+
} | {
|
|
3182
|
+
field: "prAuthor";
|
|
3183
|
+
value: string;
|
|
3184
|
+
} | {
|
|
3185
|
+
field: "draft";
|
|
3186
|
+
value: boolean;
|
|
3187
|
+
} | {
|
|
3188
|
+
field: "issueLabels";
|
|
3189
|
+
operator: "all" | "any";
|
|
3190
|
+
value: string[];
|
|
3191
|
+
})[];
|
|
3192
|
+
} | {
|
|
3193
|
+
family: "push";
|
|
3194
|
+
actions: "pushed"[];
|
|
3195
|
+
repositories: string[];
|
|
3196
|
+
sender: GithubTriggerSender;
|
|
3197
|
+
conditions: ({
|
|
3198
|
+
field: "branch";
|
|
3199
|
+
value: string;
|
|
3200
|
+
} | {
|
|
3201
|
+
field: "changedPaths";
|
|
3202
|
+
value: string;
|
|
3203
|
+
} | {
|
|
3204
|
+
field: "forced";
|
|
3205
|
+
value: boolean;
|
|
3206
|
+
})[];
|
|
3207
|
+
} | {
|
|
3208
|
+
family: "review";
|
|
3209
|
+
actions: "submitted"[];
|
|
3210
|
+
repositories: string[];
|
|
3211
|
+
sender: GithubTriggerSender;
|
|
3212
|
+
conditions: ({
|
|
3213
|
+
field: "prAuthor";
|
|
3214
|
+
value: string;
|
|
3215
|
+
} | {
|
|
3216
|
+
field: "reviewState";
|
|
3217
|
+
value: "approved" | "changes_requested" | "commented";
|
|
3218
|
+
})[];
|
|
3219
|
+
} | {
|
|
3220
|
+
family: "workflow";
|
|
3221
|
+
actions: "completed"[];
|
|
3222
|
+
repositories: string[];
|
|
3223
|
+
sender: GithubTriggerSender;
|
|
3224
|
+
conditions: ({
|
|
3225
|
+
field: "branch";
|
|
3226
|
+
value: string;
|
|
3227
|
+
} | {
|
|
3228
|
+
field: "conclusion";
|
|
3229
|
+
value: string;
|
|
3230
|
+
} | {
|
|
3231
|
+
field: "originEvent";
|
|
3232
|
+
value: string;
|
|
3233
|
+
} | {
|
|
3234
|
+
field: "workflowName";
|
|
3235
|
+
value: string;
|
|
3236
|
+
})[];
|
|
3237
|
+
}, {
|
|
3238
|
+
family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
|
|
3239
|
+
actions: string[];
|
|
3240
|
+
repositories: string[];
|
|
3241
|
+
sender: "any" | "human" | "me" | {
|
|
3242
|
+
logins: string[];
|
|
3857
3243
|
};
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3244
|
+
conditions: ({
|
|
3245
|
+
field: "text";
|
|
3246
|
+
operator: "contains" | "starts_with";
|
|
3247
|
+
value: string;
|
|
3248
|
+
} | {
|
|
3249
|
+
field: "baseBranch";
|
|
3250
|
+
value: string;
|
|
3251
|
+
} | {
|
|
3252
|
+
field: "branch";
|
|
3253
|
+
value: string;
|
|
3254
|
+
} | {
|
|
3255
|
+
field: "changedPaths";
|
|
3256
|
+
value: string;
|
|
3257
|
+
} | {
|
|
3258
|
+
field: "checkApp";
|
|
3259
|
+
value: string;
|
|
3260
|
+
} | {
|
|
3261
|
+
field: "checkName";
|
|
3262
|
+
value: string;
|
|
3263
|
+
} | {
|
|
3264
|
+
field: "conclusion";
|
|
3265
|
+
value: string;
|
|
3266
|
+
} | {
|
|
3267
|
+
field: "headBranch";
|
|
3268
|
+
value: string;
|
|
3269
|
+
} | {
|
|
3270
|
+
field: "issueAuthor";
|
|
3271
|
+
value: string;
|
|
3272
|
+
} | {
|
|
3273
|
+
field: "label";
|
|
3274
|
+
value: string;
|
|
3275
|
+
} | {
|
|
3276
|
+
field: "originEvent";
|
|
3277
|
+
value: string;
|
|
3278
|
+
} | {
|
|
3279
|
+
field: "prAuthor";
|
|
3280
|
+
value: string;
|
|
3281
|
+
} | {
|
|
3282
|
+
field: "workflowName";
|
|
3283
|
+
value: string;
|
|
3284
|
+
} | {
|
|
3285
|
+
field: "draft";
|
|
3286
|
+
value: boolean;
|
|
3287
|
+
} | {
|
|
3288
|
+
field: "forced";
|
|
3289
|
+
value: boolean;
|
|
3290
|
+
} | {
|
|
3291
|
+
field: "issueLabels";
|
|
3292
|
+
operator: "all" | "any";
|
|
3293
|
+
value: string[];
|
|
3294
|
+
} | {
|
|
3295
|
+
field: "reviewState";
|
|
3296
|
+
value: "approved" | "changes_requested" | "commented";
|
|
3297
|
+
})[];
|
|
3298
|
+
}>>;
|
|
3299
|
+
export declare const slackTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
|
|
3300
|
+
on: z$2.ZodEnum<{
|
|
3301
|
+
dm: "dm";
|
|
3302
|
+
mention: "mention";
|
|
3303
|
+
message: "message";
|
|
3304
|
+
reaction: "reaction";
|
|
3305
|
+
}>;
|
|
3306
|
+
channels: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3307
|
+
reactions: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3308
|
+
sender: z$2.ZodDefault<z$2.ZodUnion<readonly [z$2.ZodEnum<{
|
|
3309
|
+
any: "any";
|
|
3310
|
+
human: "human";
|
|
3311
|
+
me: "me";
|
|
3312
|
+
}>, z$2.ZodObject<{
|
|
3313
|
+
users: z$2.ZodArray<z$2.ZodString>;
|
|
3314
|
+
}, z$2.core.$strict>]>>;
|
|
3315
|
+
conditions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
3316
|
+
field: z$2.ZodLiteral<"text">;
|
|
3317
|
+
operator: z$2.ZodEnum<{
|
|
3318
|
+
contains: "contains";
|
|
3319
|
+
starts_with: "starts_with";
|
|
3320
|
+
}>;
|
|
3321
|
+
value: z$2.ZodString;
|
|
3322
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3323
|
+
field: z$2.ZodLiteral<"position">;
|
|
3324
|
+
value: z$2.ZodEnum<{
|
|
3325
|
+
reply: "reply";
|
|
3326
|
+
top_level: "top_level";
|
|
3327
|
+
}>;
|
|
3328
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3329
|
+
field: z$2.ZodLiteral<"hasFile">;
|
|
3330
|
+
value: z$2.ZodBoolean;
|
|
3331
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3332
|
+
field: z$2.ZodLiteral<"messageAuthor">;
|
|
3333
|
+
value: z$2.ZodString;
|
|
3334
|
+
}, z$2.core.$strict>], "field">>>;
|
|
3335
|
+
}, z$2.core.$strict>, z$2.ZodTransform<({
|
|
3336
|
+
on: "dm";
|
|
3337
|
+
channels: string[];
|
|
3338
|
+
sender: SlackTriggerSender;
|
|
3339
|
+
conditions: ({
|
|
3340
|
+
field: "text";
|
|
3341
|
+
operator: "contains" | "starts_with";
|
|
3342
|
+
value: string;
|
|
3343
|
+
} | {
|
|
3344
|
+
field: "hasFile";
|
|
3345
|
+
value: boolean;
|
|
3346
|
+
})[];
|
|
3347
|
+
} & {
|
|
3348
|
+
reactions?: never;
|
|
3349
|
+
}) | ({
|
|
3350
|
+
on: "mention";
|
|
3351
|
+
channels: string[];
|
|
3352
|
+
sender: SlackTriggerSender;
|
|
3353
|
+
conditions: {
|
|
3354
|
+
field: "text";
|
|
3355
|
+
operator: "contains" | "starts_with";
|
|
3356
|
+
value: string;
|
|
3357
|
+
}[];
|
|
3358
|
+
} & {
|
|
3359
|
+
reactions?: never;
|
|
3360
|
+
}) | ({
|
|
3361
|
+
on: "message";
|
|
3362
|
+
channels: string[];
|
|
3363
|
+
sender: SlackTriggerSender;
|
|
3364
|
+
conditions: ({
|
|
3365
|
+
field: "text";
|
|
3366
|
+
operator: "contains" | "starts_with";
|
|
3367
|
+
value: string;
|
|
3368
|
+
} | {
|
|
3369
|
+
field: "hasFile";
|
|
3370
|
+
value: boolean;
|
|
3371
|
+
} | {
|
|
3372
|
+
field: "position";
|
|
3373
|
+
value: "reply" | "top_level";
|
|
3374
|
+
})[];
|
|
3375
|
+
} & {
|
|
3376
|
+
reactions?: never;
|
|
3377
|
+
}) | ({
|
|
3378
|
+
on: "reaction";
|
|
3379
|
+
channels: string[];
|
|
3380
|
+
sender: SlackTriggerSender;
|
|
3381
|
+
conditions: {
|
|
3382
|
+
field: "messageAuthor";
|
|
3383
|
+
value: string;
|
|
3384
|
+
}[];
|
|
3385
|
+
} & {
|
|
3386
|
+
reactions?: string[];
|
|
3387
|
+
}), {
|
|
3388
|
+
on: "dm" | "mention" | "message" | "reaction";
|
|
3389
|
+
channels: string[];
|
|
3390
|
+
reactions?: string[] | undefined;
|
|
3391
|
+
sender: "any" | "human" | "me" | {
|
|
3392
|
+
users: string[];
|
|
3862
3393
|
};
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3394
|
+
conditions: ({
|
|
3395
|
+
field: "text";
|
|
3396
|
+
operator: "contains" | "starts_with";
|
|
3397
|
+
value: string;
|
|
3398
|
+
} | {
|
|
3399
|
+
field: "messageAuthor";
|
|
3400
|
+
value: string;
|
|
3401
|
+
} | {
|
|
3402
|
+
field: "hasFile";
|
|
3403
|
+
value: boolean;
|
|
3404
|
+
} | {
|
|
3405
|
+
field: "position";
|
|
3406
|
+
value: "reply" | "top_level";
|
|
3407
|
+
})[];
|
|
3408
|
+
}>>;
|
|
3409
|
+
export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.ZodPipe<z$2.ZodObject<{
|
|
3410
|
+
family: z$2.ZodEnum<{
|
|
3411
|
+
check: "check";
|
|
3412
|
+
comment: "comment";
|
|
3413
|
+
pull_request: "pull_request";
|
|
3414
|
+
push: "push";
|
|
3415
|
+
review: "review";
|
|
3416
|
+
workflow: "workflow";
|
|
3417
|
+
}>;
|
|
3418
|
+
actions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3419
|
+
repositories: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3420
|
+
sender: z$2.ZodDefault<z$2.ZodUnion<readonly [z$2.ZodEnum<{
|
|
3421
|
+
any: "any";
|
|
3422
|
+
human: "human";
|
|
3423
|
+
me: "me";
|
|
3424
|
+
}>, z$2.ZodObject<{
|
|
3425
|
+
logins: z$2.ZodArray<z$2.ZodString>;
|
|
3426
|
+
}, z$2.core.$strict>]>>;
|
|
3427
|
+
conditions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
3428
|
+
field: z$2.ZodLiteral<"text">;
|
|
3429
|
+
operator: z$2.ZodEnum<{
|
|
3430
|
+
contains: "contains";
|
|
3431
|
+
starts_with: "starts_with";
|
|
3432
|
+
}>;
|
|
3433
|
+
value: z$2.ZodString;
|
|
3434
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3435
|
+
field: z$2.ZodLiteral<"label">;
|
|
3436
|
+
value: z$2.ZodString;
|
|
3437
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3438
|
+
field: z$2.ZodLiteral<"issueLabels">;
|
|
3439
|
+
operator: z$2.ZodDefault<z$2.ZodEnum<{
|
|
3440
|
+
all: "all";
|
|
3441
|
+
any: "any";
|
|
3442
|
+
}>>;
|
|
3443
|
+
value: z$2.ZodArray<z$2.ZodString>;
|
|
3444
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3445
|
+
field: z$2.ZodLiteral<"baseBranch">;
|
|
3446
|
+
value: z$2.ZodString;
|
|
3447
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3448
|
+
field: z$2.ZodLiteral<"headBranch">;
|
|
3449
|
+
value: z$2.ZodString;
|
|
3450
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3451
|
+
field: z$2.ZodLiteral<"branch">;
|
|
3452
|
+
value: z$2.ZodString;
|
|
3453
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3454
|
+
field: z$2.ZodLiteral<"draft">;
|
|
3455
|
+
value: z$2.ZodBoolean;
|
|
3456
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3457
|
+
field: z$2.ZodLiteral<"changedPaths">;
|
|
3458
|
+
value: z$2.ZodString;
|
|
3459
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3460
|
+
field: z$2.ZodLiteral<"forced">;
|
|
3461
|
+
value: z$2.ZodBoolean;
|
|
3462
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3463
|
+
field: z$2.ZodLiteral<"prAuthor">;
|
|
3464
|
+
value: z$2.ZodString;
|
|
3465
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3466
|
+
field: z$2.ZodLiteral<"issueAuthor">;
|
|
3467
|
+
value: z$2.ZodString;
|
|
3468
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3469
|
+
field: z$2.ZodLiteral<"reviewState">;
|
|
3470
|
+
value: z$2.ZodEnum<{
|
|
3471
|
+
approved: "approved";
|
|
3472
|
+
changes_requested: "changes_requested";
|
|
3473
|
+
commented: "commented";
|
|
3474
|
+
}>;
|
|
3475
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3476
|
+
field: z$2.ZodLiteral<"workflowName">;
|
|
3477
|
+
value: z$2.ZodString;
|
|
3478
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3479
|
+
field: z$2.ZodLiteral<"checkApp">;
|
|
3480
|
+
value: z$2.ZodString;
|
|
3481
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3482
|
+
field: z$2.ZodLiteral<"checkName">;
|
|
3483
|
+
value: z$2.ZodString;
|
|
3484
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3485
|
+
field: z$2.ZodLiteral<"conclusion">;
|
|
3486
|
+
value: z$2.ZodString;
|
|
3487
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3488
|
+
field: z$2.ZodLiteral<"originEvent">;
|
|
3489
|
+
value: z$2.ZodString;
|
|
3490
|
+
}, z$2.core.$strict>], "field">>>;
|
|
3491
|
+
}, z$2.core.$strict>, z$2.ZodTransform<{
|
|
3492
|
+
family: "check";
|
|
3493
|
+
actions: "completed"[];
|
|
3494
|
+
repositories: string[];
|
|
3495
|
+
sender: GithubTriggerSender;
|
|
3496
|
+
conditions: ({
|
|
3497
|
+
field: "checkApp";
|
|
3498
|
+
value: string;
|
|
3499
|
+
} | {
|
|
3500
|
+
field: "checkName";
|
|
3501
|
+
value: string;
|
|
3502
|
+
} | {
|
|
3503
|
+
field: "conclusion";
|
|
3504
|
+
value: string;
|
|
3505
|
+
})[];
|
|
3506
|
+
} | {
|
|
3507
|
+
family: "comment";
|
|
3508
|
+
actions: "created"[];
|
|
3509
|
+
repositories: string[];
|
|
3510
|
+
sender: GithubTriggerSender;
|
|
3511
|
+
conditions: ({
|
|
3512
|
+
field: "text";
|
|
3513
|
+
operator: "contains" | "starts_with";
|
|
3514
|
+
value: string;
|
|
3515
|
+
} | {
|
|
3516
|
+
field: "issueAuthor";
|
|
3517
|
+
value: string;
|
|
3518
|
+
} | {
|
|
3519
|
+
field: "prAuthor";
|
|
3520
|
+
value: string;
|
|
3521
|
+
})[];
|
|
3522
|
+
} | {
|
|
3523
|
+
family: "pull_request";
|
|
3524
|
+
actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
|
|
3525
|
+
repositories: string[];
|
|
3526
|
+
sender: GithubTriggerSender;
|
|
3527
|
+
conditions: ({
|
|
3528
|
+
field: "baseBranch";
|
|
3529
|
+
value: string;
|
|
3530
|
+
} | {
|
|
3531
|
+
field: "changedPaths";
|
|
3532
|
+
value: string;
|
|
3533
|
+
} | {
|
|
3534
|
+
field: "headBranch";
|
|
3535
|
+
value: string;
|
|
3536
|
+
} | {
|
|
3537
|
+
field: "label";
|
|
3538
|
+
value: string;
|
|
3539
|
+
} | {
|
|
3540
|
+
field: "prAuthor";
|
|
3541
|
+
value: string;
|
|
3542
|
+
} | {
|
|
3543
|
+
field: "draft";
|
|
3544
|
+
value: boolean;
|
|
3545
|
+
} | {
|
|
3546
|
+
field: "issueLabels";
|
|
3547
|
+
operator: "all" | "any";
|
|
3548
|
+
value: string[];
|
|
3549
|
+
})[];
|
|
3550
|
+
} | {
|
|
3551
|
+
family: "push";
|
|
3552
|
+
actions: "pushed"[];
|
|
3553
|
+
repositories: string[];
|
|
3554
|
+
sender: GithubTriggerSender;
|
|
3555
|
+
conditions: ({
|
|
3556
|
+
field: "branch";
|
|
3557
|
+
value: string;
|
|
3558
|
+
} | {
|
|
3559
|
+
field: "changedPaths";
|
|
3560
|
+
value: string;
|
|
3561
|
+
} | {
|
|
3562
|
+
field: "forced";
|
|
3563
|
+
value: boolean;
|
|
3564
|
+
})[];
|
|
3565
|
+
} | {
|
|
3566
|
+
family: "review";
|
|
3567
|
+
actions: "submitted"[];
|
|
3568
|
+
repositories: string[];
|
|
3569
|
+
sender: GithubTriggerSender;
|
|
3570
|
+
conditions: ({
|
|
3571
|
+
field: "prAuthor";
|
|
3572
|
+
value: string;
|
|
3573
|
+
} | {
|
|
3574
|
+
field: "reviewState";
|
|
3575
|
+
value: "approved" | "changes_requested" | "commented";
|
|
3576
|
+
})[];
|
|
3577
|
+
} | {
|
|
3578
|
+
family: "workflow";
|
|
3579
|
+
actions: "completed"[];
|
|
3580
|
+
repositories: string[];
|
|
3581
|
+
sender: GithubTriggerSender;
|
|
3582
|
+
conditions: ({
|
|
3583
|
+
field: "branch";
|
|
3584
|
+
value: string;
|
|
3585
|
+
} | {
|
|
3586
|
+
field: "conclusion";
|
|
3587
|
+
value: string;
|
|
3588
|
+
} | {
|
|
3589
|
+
field: "originEvent";
|
|
3590
|
+
value: string;
|
|
3591
|
+
} | {
|
|
3592
|
+
field: "workflowName";
|
|
3593
|
+
value: string;
|
|
3594
|
+
})[];
|
|
3595
|
+
}, {
|
|
3596
|
+
family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
|
|
3597
|
+
actions: string[];
|
|
3598
|
+
repositories: string[];
|
|
3599
|
+
sender: "any" | "human" | "me" | {
|
|
3600
|
+
logins: string[];
|
|
3867
3601
|
};
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3602
|
+
conditions: ({
|
|
3603
|
+
field: "text";
|
|
3604
|
+
operator: "contains" | "starts_with";
|
|
3605
|
+
value: string;
|
|
3606
|
+
} | {
|
|
3607
|
+
field: "baseBranch";
|
|
3608
|
+
value: string;
|
|
3609
|
+
} | {
|
|
3610
|
+
field: "branch";
|
|
3611
|
+
value: string;
|
|
3612
|
+
} | {
|
|
3613
|
+
field: "changedPaths";
|
|
3614
|
+
value: string;
|
|
3615
|
+
} | {
|
|
3616
|
+
field: "checkApp";
|
|
3617
|
+
value: string;
|
|
3618
|
+
} | {
|
|
3619
|
+
field: "checkName";
|
|
3620
|
+
value: string;
|
|
3621
|
+
} | {
|
|
3622
|
+
field: "conclusion";
|
|
3623
|
+
value: string;
|
|
3624
|
+
} | {
|
|
3625
|
+
field: "headBranch";
|
|
3626
|
+
value: string;
|
|
3627
|
+
} | {
|
|
3628
|
+
field: "issueAuthor";
|
|
3629
|
+
value: string;
|
|
3630
|
+
} | {
|
|
3631
|
+
field: "label";
|
|
3632
|
+
value: string;
|
|
3633
|
+
} | {
|
|
3634
|
+
field: "originEvent";
|
|
3635
|
+
value: string;
|
|
3636
|
+
} | {
|
|
3637
|
+
field: "prAuthor";
|
|
3638
|
+
value: string;
|
|
3639
|
+
} | {
|
|
3640
|
+
field: "workflowName";
|
|
3641
|
+
value: string;
|
|
3642
|
+
} | {
|
|
3643
|
+
field: "draft";
|
|
3644
|
+
value: boolean;
|
|
3645
|
+
} | {
|
|
3646
|
+
field: "forced";
|
|
3647
|
+
value: boolean;
|
|
3648
|
+
} | {
|
|
3649
|
+
field: "issueLabels";
|
|
3650
|
+
operator: "all" | "any";
|
|
3651
|
+
value: string[];
|
|
3652
|
+
} | {
|
|
3653
|
+
field: "reviewState";
|
|
3654
|
+
value: "approved" | "changes_requested" | "commented";
|
|
3655
|
+
})[];
|
|
3656
|
+
}>>, z$2.ZodPipe<z$2.ZodObject<{
|
|
3657
|
+
on: z$2.ZodEnum<{
|
|
3658
|
+
dm: "dm";
|
|
3659
|
+
mention: "mention";
|
|
3660
|
+
message: "message";
|
|
3661
|
+
reaction: "reaction";
|
|
3662
|
+
}>;
|
|
3663
|
+
channels: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
3664
|
+
reactions: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3665
|
+
sender: z$2.ZodDefault<z$2.ZodUnion<readonly [z$2.ZodEnum<{
|
|
3666
|
+
any: "any";
|
|
3667
|
+
human: "human";
|
|
3668
|
+
me: "me";
|
|
3669
|
+
}>, z$2.ZodObject<{
|
|
3670
|
+
users: z$2.ZodArray<z$2.ZodString>;
|
|
3671
|
+
}, z$2.core.$strict>]>>;
|
|
3672
|
+
conditions: z$2.ZodDefault<z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
3673
|
+
field: z$2.ZodLiteral<"text">;
|
|
3674
|
+
operator: z$2.ZodEnum<{
|
|
3675
|
+
contains: "contains";
|
|
3676
|
+
starts_with: "starts_with";
|
|
3677
|
+
}>;
|
|
3678
|
+
value: z$2.ZodString;
|
|
3679
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3680
|
+
field: z$2.ZodLiteral<"position">;
|
|
3681
|
+
value: z$2.ZodEnum<{
|
|
3682
|
+
reply: "reply";
|
|
3683
|
+
top_level: "top_level";
|
|
3684
|
+
}>;
|
|
3685
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3686
|
+
field: z$2.ZodLiteral<"hasFile">;
|
|
3687
|
+
value: z$2.ZodBoolean;
|
|
3688
|
+
}, z$2.core.$strict>, z$2.ZodObject<{
|
|
3689
|
+
field: z$2.ZodLiteral<"messageAuthor">;
|
|
3690
|
+
value: z$2.ZodString;
|
|
3691
|
+
}, z$2.core.$strict>], "field">>>;
|
|
3692
|
+
}, z$2.core.$strict>, z$2.ZodTransform<({
|
|
3693
|
+
on: "dm";
|
|
3694
|
+
channels: string[];
|
|
3695
|
+
sender: SlackTriggerSender;
|
|
3696
|
+
conditions: ({
|
|
3697
|
+
field: "text";
|
|
3698
|
+
operator: "contains" | "starts_with";
|
|
3699
|
+
value: string;
|
|
3700
|
+
} | {
|
|
3701
|
+
field: "hasFile";
|
|
3702
|
+
value: boolean;
|
|
3703
|
+
})[];
|
|
3704
|
+
} & {
|
|
3705
|
+
reactions?: never;
|
|
3706
|
+
}) | ({
|
|
3707
|
+
on: "mention";
|
|
3708
|
+
channels: string[];
|
|
3709
|
+
sender: SlackTriggerSender;
|
|
3710
|
+
conditions: {
|
|
3711
|
+
field: "text";
|
|
3712
|
+
operator: "contains" | "starts_with";
|
|
3713
|
+
value: string;
|
|
3714
|
+
}[];
|
|
3715
|
+
} & {
|
|
3716
|
+
reactions?: never;
|
|
3717
|
+
}) | ({
|
|
3718
|
+
on: "message";
|
|
3719
|
+
channels: string[];
|
|
3720
|
+
sender: SlackTriggerSender;
|
|
3721
|
+
conditions: ({
|
|
3722
|
+
field: "text";
|
|
3723
|
+
operator: "contains" | "starts_with";
|
|
3724
|
+
value: string;
|
|
3725
|
+
} | {
|
|
3726
|
+
field: "hasFile";
|
|
3727
|
+
value: boolean;
|
|
3728
|
+
} | {
|
|
3729
|
+
field: "position";
|
|
3730
|
+
value: "reply" | "top_level";
|
|
3731
|
+
})[];
|
|
3732
|
+
} & {
|
|
3733
|
+
reactions?: never;
|
|
3734
|
+
}) | ({
|
|
3735
|
+
on: "reaction";
|
|
3736
|
+
channels: string[];
|
|
3737
|
+
sender: SlackTriggerSender;
|
|
3738
|
+
conditions: {
|
|
3739
|
+
field: "messageAuthor";
|
|
3740
|
+
value: string;
|
|
3741
|
+
}[];
|
|
3742
|
+
} & {
|
|
3743
|
+
reactions?: string[];
|
|
3744
|
+
}), {
|
|
3745
|
+
on: "dm" | "mention" | "message" | "reaction";
|
|
3746
|
+
channels: string[];
|
|
3747
|
+
reactions?: string[] | undefined;
|
|
3748
|
+
sender: "any" | "human" | "me" | {
|
|
3749
|
+
users: string[];
|
|
3872
3750
|
};
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3751
|
+
conditions: ({
|
|
3752
|
+
field: "text";
|
|
3753
|
+
operator: "contains" | "starts_with";
|
|
3754
|
+
value: string;
|
|
3755
|
+
} | {
|
|
3756
|
+
field: "messageAuthor";
|
|
3757
|
+
value: string;
|
|
3758
|
+
} | {
|
|
3759
|
+
field: "hasFile";
|
|
3760
|
+
value: boolean;
|
|
3761
|
+
} | {
|
|
3762
|
+
field: "position";
|
|
3763
|
+
value: "reply" | "top_level";
|
|
3764
|
+
})[];
|
|
3765
|
+
}>>]>;
|
|
3766
|
+
/** Immutable identity shared by transport admission, coalescing and retries. */
|
|
3767
|
+
export interface ConnectorEventIdentity {
|
|
3768
|
+
connectionId: string;
|
|
3769
|
+
/** Provider delivery identity, not the Standards outbox id. */
|
|
3770
|
+
sourceEventId: string;
|
|
3771
|
+
/** Same Slack message delivered as message/app_mention has the same identity. */
|
|
3772
|
+
semanticEventId: string;
|
|
3773
|
+
/** ISO timestamp of the original admission, unchanged on retry. */
|
|
3774
|
+
receivedAt: string;
|
|
3775
|
+
/**
|
|
3776
|
+
* Provider payload kept in the tenant outbox. A fired run reads it pruned of
|
|
3777
|
+
* credentials, rendering and repeats, every id kept (#5234), never verbatim.
|
|
3778
|
+
*/
|
|
3779
|
+
payload: Record<string, unknown>;
|
|
3780
|
+
}
|
|
3781
|
+
/** Facts enriched by the worker; missing data never satisfies a condition. */
|
|
3782
|
+
export interface GithubEventFacts {
|
|
3783
|
+
text?: string;
|
|
3784
|
+
label?: string;
|
|
3785
|
+
issueLabels?: string[];
|
|
3786
|
+
baseBranch?: string;
|
|
3787
|
+
headBranch?: string;
|
|
3788
|
+
branch?: string;
|
|
3789
|
+
draft?: boolean;
|
|
3790
|
+
changedPaths?: string[];
|
|
3791
|
+
forced?: boolean;
|
|
3792
|
+
prAuthor?: string;
|
|
3793
|
+
issueAuthor?: string;
|
|
3794
|
+
reviewState?: "approved" | "changes_requested" | "commented";
|
|
3795
|
+
workflowName?: string;
|
|
3796
|
+
checkApp?: string;
|
|
3797
|
+
checkName?: string;
|
|
3798
|
+
conclusion?: string;
|
|
3799
|
+
originEvent?: string;
|
|
3800
|
+
}
|
|
3801
|
+
export type NormalizedGithubEvent = ConnectorEventIdentity & {
|
|
3802
|
+
provider: "github";
|
|
3803
|
+
installationId: string;
|
|
3804
|
+
eventName: string;
|
|
3805
|
+
repository?: string;
|
|
3806
|
+
number?: number;
|
|
3807
|
+
threadKey?: string;
|
|
3808
|
+
/**
|
|
3809
|
+
* The repository a pull request's head lives in (machines and links §2):
|
|
3810
|
+
* `repository` itself unless the PR comes from a fork. Set on events that
|
|
3811
|
+
* concern a pull request, with `facts.headBranch` and `defaultBranch`.
|
|
3812
|
+
*/
|
|
3813
|
+
headRepository?: string;
|
|
3814
|
+
/** The base repository's default branch, on events that concern a pull request. */
|
|
3815
|
+
defaultBranch?: string;
|
|
3816
|
+
sender: {
|
|
3817
|
+
login: string;
|
|
3818
|
+
isBot: boolean;
|
|
3819
|
+
performedViaAppId?: string;
|
|
3877
3820
|
};
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3821
|
+
title?: string;
|
|
3822
|
+
url?: string;
|
|
3823
|
+
facts: GithubEventFacts;
|
|
3824
|
+
} & { [F in GithubTriggerFamily]: {
|
|
3825
|
+
family: F;
|
|
3826
|
+
action: GithubTriggerAction<F>;
|
|
3827
|
+
}; }[GithubTriggerFamily];
|
|
3828
|
+
export interface NormalizedSlackEvent extends ConnectorEventIdentity {
|
|
3829
|
+
provider: "slack";
|
|
3830
|
+
teamId: string;
|
|
3831
|
+
/** A mentioned channel message can match both mention and message triggers. */
|
|
3832
|
+
kinds: SlackTriggerOn[];
|
|
3833
|
+
channel: string;
|
|
3834
|
+
ts: string;
|
|
3835
|
+
threadTs?: string;
|
|
3836
|
+
threadKey?: string;
|
|
3837
|
+
sender: {
|
|
3838
|
+
userId: string;
|
|
3839
|
+
isBot: boolean;
|
|
3840
|
+
isOurApp: boolean;
|
|
3841
|
+
name?: string;
|
|
3842
|
+
email?: string;
|
|
3882
3843
|
};
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3844
|
+
text?: string;
|
|
3845
|
+
position?: "top_level" | "reply";
|
|
3846
|
+
hasFile?: boolean;
|
|
3847
|
+
reaction?: string;
|
|
3848
|
+
messageAuthor?: string;
|
|
3849
|
+
files?: {
|
|
3850
|
+
id: string;
|
|
3851
|
+
name?: string;
|
|
3852
|
+
urlPrivate?: string;
|
|
3853
|
+
}[];
|
|
3854
|
+
history?: {
|
|
3855
|
+
ts: string;
|
|
3856
|
+
userId?: string;
|
|
3857
|
+
text: string;
|
|
3858
|
+
}[];
|
|
3859
|
+
}
|
|
3860
|
+
export type NormalizedConnectorEvent = NormalizedGithubEvent | NormalizedSlackEvent;
|
|
3896
3861
|
/**
|
|
3897
|
-
*
|
|
3898
|
-
*
|
|
3862
|
+
* Typed agent references: `<kind>:<id>`. The one parser shared by the runtime
|
|
3863
|
+
* verbs and the UI tool views; it never guesses a kind from a bare id.
|
|
3899
3864
|
*/
|
|
3900
|
-
export
|
|
3901
|
-
|
|
3902
|
-
export
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
readonly "calendar.read": readonly ["google-calendar", "outlook-calendar"];
|
|
3865
|
+
export declare const REFERENCE_KINDS: readonly ["record", "document", "file", "email", "thread", "event", "memory", "skill", "schema", "user", "guide", "bundle", "draft", "decision", "session", "catalog", "wake"];
|
|
3866
|
+
export type ReferenceKind = (typeof REFERENCE_KINDS)[number];
|
|
3867
|
+
export type Reference = {
|
|
3868
|
+
kind: ReferenceKind;
|
|
3869
|
+
id: string;
|
|
3906
3870
|
};
|
|
3907
|
-
|
|
3908
|
-
export
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
* 2026-10-04): every built-in, removable. `host` joins only where the host
|
|
3912
|
-
* provides tools, and an unattended definition created without
|
|
3913
|
-
* `agents:manage` drops what D13 gates (the runtime's create path decides
|
|
3914
|
-
* both). Canonical order.
|
|
3915
|
-
*/
|
|
3916
|
-
export declare const DEFAULT_AGENT_TOOL_GROUPS: readonly ["activity", "bulk", "image", "memory", "orchestration", "sandbox", "web"];
|
|
3917
|
-
/**
|
|
3918
|
-
* What a code-defined agent (`agent()` builder, blueprints) holds when it
|
|
3919
|
-
* lists no `toolGroups`: memory only. System agents sync on boot, so a wider
|
|
3920
|
-
* default would grant them more silently — scheduled ones past D13 included.
|
|
3921
|
-
*/
|
|
3922
|
-
export declare const DEFAULT_BLUEPRINT_TOOL_GROUPS: readonly ["memory"];
|
|
3923
|
-
/**
|
|
3924
|
-
* D13: whether adding `grant` to something that runs with nobody present (a
|
|
3925
|
-
* routine, an enabled schedule or trigger) needs `agents:manage` — `sandbox`,
|
|
3926
|
-
* `host`, `cloud-browser` and every resource grant.
|
|
3927
|
-
*/
|
|
3928
|
-
export declare function needsManageWhenUnattended(grant: string): boolean;
|
|
3929
|
-
export type ParsedToolGroupGrant = {
|
|
3930
|
-
type: "native";
|
|
3931
|
-
group: NativeToolGroup;
|
|
3871
|
+
export type ReferenceRefusalReason = "bare_uuid" | "unknown_kind" | "malformed" | "legacy_mention";
|
|
3872
|
+
export type ParsedReference = {
|
|
3873
|
+
ok: true;
|
|
3874
|
+
ref: Reference;
|
|
3932
3875
|
} | {
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3876
|
+
ok: false;
|
|
3877
|
+
reason: ReferenceRefusalReason;
|
|
3878
|
+
expected: string;
|
|
3936
3879
|
};
|
|
3937
|
-
export declare function
|
|
3938
|
-
export declare function
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
export
|
|
3945
|
-
/**
|
|
3946
|
-
export
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
export
|
|
3952
|
-
|
|
3953
|
-
export type
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
export type ToolGrantReason = "private_on_workspace_definition" | "private_of_viewer" | "not_creator" | "needs_manage" | "harness" | "needs_person" | "scope_missing" | "requires_sandbox" | "disconnected" | "reauth_required" | "error" | "offline" | "revoked" | "not_authorized" | "inactive_on_automatic_runs" | "stops_without_person" | "never_prepared";
|
|
3960
|
-
export type ToolSummaryRisk = "read" | "mutation" | "destructive" | "outward" | "internal" | "conditional";
|
|
3961
|
-
export interface ToolSummary {
|
|
3962
|
-
name: string;
|
|
3963
|
-
/** MCP and host tools only: the tool's own title. */
|
|
3964
|
-
title?: string;
|
|
3965
|
-
/** MCP and host tools only. */
|
|
3966
|
-
description?: string;
|
|
3967
|
-
risk: ToolSummaryRisk;
|
|
3968
|
-
/** Asks a person before running in a manual session. */
|
|
3969
|
-
approval: boolean;
|
|
3970
|
-
}
|
|
3971
|
-
export interface DeviceGrantDetail {
|
|
3972
|
-
platform: "darwin" | "linux" | "win32";
|
|
3973
|
-
status: "online" | "offline" | "revoked";
|
|
3974
|
-
agentExecutionAuthorized: boolean;
|
|
3975
|
-
}
|
|
3976
|
-
/** What a grant switches on inside the verbs: kinds on `search`/`read`, capabilities on the rest. */
|
|
3977
|
-
export interface ToolGrantEnables {
|
|
3978
|
-
kinds: ReferenceKind[];
|
|
3979
|
-
capabilities: VerbCapability[];
|
|
3980
|
-
}
|
|
3981
|
-
export interface NativeToolGroupEntry {
|
|
3982
|
-
name: NativeToolGroup;
|
|
3983
|
-
granted: boolean;
|
|
3984
|
-
grantable: boolean;
|
|
3985
|
-
reason?: ToolGrantReason;
|
|
3986
|
-
/** The kinds and capabilities the group enables on the verbs. */
|
|
3987
|
-
enables: ToolGrantEnables;
|
|
3988
|
-
tools: ToolSummary[];
|
|
3989
|
-
}
|
|
3990
|
-
export interface ResourceGrantEntry {
|
|
3991
|
-
id: string;
|
|
3992
|
-
label: string;
|
|
3993
|
-
visibility: ResourceVisibility;
|
|
3994
|
-
granted: boolean;
|
|
3995
|
-
grantable: boolean;
|
|
3996
|
-
usable: boolean;
|
|
3997
|
-
/** Why it is not grantable, else why it is not usable. */
|
|
3998
|
-
reason?: ToolGrantReason;
|
|
3999
|
-
/** Informational flags (`inactive_on_automatic_runs`, `stops_without_person`). */
|
|
4000
|
-
notes?: ToolGrantReason[];
|
|
4001
|
-
/**
|
|
4002
|
-
* Number of definitions holding this resource: those visible to the caller
|
|
4003
|
-
* plus the hidden ones. Absent when none.
|
|
4004
|
-
*/
|
|
4005
|
-
usedBy?: number;
|
|
4006
|
-
device?: DeviceGrantDetail;
|
|
4007
|
-
/** The kinds and capabilities the grant enables on the verbs. */
|
|
4008
|
-
enables: ToolGrantEnables;
|
|
4009
|
-
tools: ToolSummary[];
|
|
4010
|
-
}
|
|
4011
|
-
export interface ResourceKindEntry {
|
|
4012
|
-
kind: ResourceGrantKind;
|
|
4013
|
-
resources: ResourceGrantEntry[];
|
|
4014
|
-
}
|
|
4015
|
-
/** `GET /agents/definitions/:id/tool-catalog`, for the caller. */
|
|
4016
|
-
export type AgentToolCatalog = z$1.output<typeof agentToolCatalogSchema>;
|
|
4017
|
-
/** The definitions that lose a grant when a resource is deleted. */
|
|
4018
|
-
export type ResourceUsedBy = z$1.output<typeof resourceUsedBySchema>;
|
|
4019
|
-
export declare const DOCUMENT_KINDS: readonly ["file", "folder"];
|
|
4020
|
-
export type DocumentKind = (typeof DOCUMENT_KINDS)[number];
|
|
4021
|
-
export declare const documentSchema: z$2.ZodObject<{
|
|
4022
|
-
id: z$2.ZodString;
|
|
4023
|
-
tenantId: z$2.ZodString;
|
|
4024
|
-
title: z$2.ZodString;
|
|
4025
|
-
kind: z$2.ZodEnum<{
|
|
4026
|
-
file: "file";
|
|
4027
|
-
folder: "folder";
|
|
4028
|
-
}>;
|
|
4029
|
-
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
4030
|
-
description: z$2.ZodOptional<z$2.ZodString>;
|
|
4031
|
-
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
4032
|
-
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
4033
|
-
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
4034
|
-
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
4035
|
-
position: z$2.ZodNumber;
|
|
4036
|
-
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
4037
|
-
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
3880
|
+
export declare function parseReference(raw: string): ParsedReference;
|
|
3881
|
+
export declare function formatReference(ref: Reference): string;
|
|
3882
|
+
export declare function isWildcard(ref: Reference): boolean;
|
|
3883
|
+
/** Built-in external connector providers. Mirrors the runtime's
|
|
3884
|
+
* `ConnectorProvider`: mail and calendar are separate keys per vendor, because
|
|
3885
|
+
* the scopes differ and a user may connect one without the other. */
|
|
3886
|
+
export declare const CONNECTOR_PROVIDER_IDS: readonly ["gmail", "outlook", "google-calendar", "outlook-calendar", "github", "slack"];
|
|
3887
|
+
export type ConnectorProviderId = (typeof CONNECTOR_PROVIDER_IDS)[number];
|
|
3888
|
+
/** Providers that sync a mailbox. */
|
|
3889
|
+
export type EmailConnectorProviderId = Extract<ConnectorProviderId, "gmail" | "outlook">;
|
|
3890
|
+
/** Providers that sync a calendar. */
|
|
3891
|
+
export type CalendarConnectorProviderId = Extract<ConnectorProviderId, "google-calendar" | "outlook-calendar">;
|
|
3892
|
+
/** Connection lifecycle status, mirrored from `connector_connections.status`. */
|
|
3893
|
+
export declare const CONNECTION_STATUS_IDS: readonly ["active", "reauth_required", "error", "disconnected"];
|
|
3894
|
+
export type ConnectionStatusId = (typeof CONNECTION_STATUS_IDS)[number];
|
|
3895
|
+
/** What a connection may do on its provider; each maps to a scope tier per provider. */
|
|
3896
|
+
export type ConnectorCapability = "read" | "modify" | "send";
|
|
3897
|
+
/** Derived from the scopes the provider actually granted, never from what was requested. */
|
|
3898
|
+
export declare const connectionCapabilitiesSchema: z$2.ZodObject<{
|
|
3899
|
+
canRead: z$2.ZodBoolean;
|
|
3900
|
+
canModify: z$2.ZodBoolean;
|
|
3901
|
+
canSend: z$2.ZodBoolean;
|
|
4038
3902
|
}, z$2.core.$strip>;
|
|
4039
|
-
export type
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
subCount: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3903
|
+
export type ConnectionCapabilities = z$2.output<typeof connectionCapabilitiesSchema>;
|
|
3904
|
+
/** What to ask for so a re-consent keeps what the connection already holds: the held flags beyond `read`, in capability order. */
|
|
3905
|
+
export declare function requestedCapabilities(held: ConnectionCapabilities): Exclude<ConnectorCapability, "read">[];
|
|
3906
|
+
/**
|
|
3907
|
+
* How far a connection's full-history walk (backfill) has gone.
|
|
3908
|
+
*
|
|
3909
|
+
* `processed` counts the items the current walk has stored so far, across every
|
|
3910
|
+
* continuation job; once the walk ends it keeps the final count. `total` is what
|
|
3911
|
+
* the provider says the walk will cover, captured when the walk starts: exact or
|
|
3912
|
+
* an estimate (Gmail's `resultSizeEstimate`), so `processed` may end above or
|
|
3913
|
+
* below it. It is `null` when the provider offers no total (calendars), so a
|
|
3914
|
+
* bar stays indeterminate rather than inventing a 100%. A connection that has
|
|
3915
|
+
* never walked reads `{ processed: 0, total: null, backfilling: false }`.
|
|
3916
|
+
*/
|
|
3917
|
+
export declare const connectionSyncProgressSchema: z$2.ZodObject<{
|
|
3918
|
+
processed: z$2.ZodNumber;
|
|
3919
|
+
total: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3920
|
+
backfilling: z$2.ZodBoolean;
|
|
4058
3921
|
}, z$2.core.$strip>;
|
|
4059
|
-
export type
|
|
3922
|
+
export type ConnectionSyncProgress = z$2.output<typeof connectionSyncProgressSchema>;
|
|
4060
3923
|
/**
|
|
4061
|
-
*
|
|
4062
|
-
*
|
|
4063
|
-
* walk is the agent tool's (`listRecordDrive` in query mode); this is what
|
|
4064
|
-
* the open-drive loupe reads (#3217).
|
|
3924
|
+
* Token-free projection of a connection for client/UI consumption.
|
|
3925
|
+
* Access/refresh tokens NEVER cross this boundary.
|
|
4065
3926
|
*/
|
|
4066
|
-
export declare const
|
|
3927
|
+
export declare const connectionViewSchema: z$2.ZodObject<{
|
|
4067
3928
|
id: z$2.ZodString;
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
3929
|
+
provider: z$2.ZodEnum<{
|
|
3930
|
+
github: "github";
|
|
3931
|
+
gmail: "gmail";
|
|
3932
|
+
"google-calendar": "google-calendar";
|
|
3933
|
+
outlook: "outlook";
|
|
3934
|
+
"outlook-calendar": "outlook-calendar";
|
|
3935
|
+
slack: "slack";
|
|
4071
3936
|
}>;
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
3937
|
+
ownerActorId: z$2.ZodNullable<z$2.ZodString>;
|
|
3938
|
+
parentConnectionId: z$2.ZodNullable<z$2.ZodString>;
|
|
3939
|
+
connectedByActorId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
3940
|
+
externalAccountId: z$2.ZodString;
|
|
3941
|
+
displayName: z$2.ZodOptional<z$2.ZodString>;
|
|
3942
|
+
status: z$2.ZodEnum<{
|
|
3943
|
+
active: "active";
|
|
3944
|
+
disconnected: "disconnected";
|
|
3945
|
+
error: "error";
|
|
3946
|
+
reauth_required: "reauth_required";
|
|
3947
|
+
}>;
|
|
3948
|
+
lastSyncedAt: z$2.ZodNullable<z$2.ZodString>;
|
|
3949
|
+
createdAt: z$2.ZodString;
|
|
3950
|
+
capabilities: z$2.ZodObject<{
|
|
3951
|
+
canRead: z$2.ZodBoolean;
|
|
3952
|
+
canModify: z$2.ZodBoolean;
|
|
3953
|
+
canSend: z$2.ZodBoolean;
|
|
3954
|
+
}, z$2.core.$strip>;
|
|
3955
|
+
syncProgress: z$2.ZodObject<{
|
|
3956
|
+
processed: z$2.ZodNumber;
|
|
3957
|
+
total: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3958
|
+
backfilling: z$2.ZodBoolean;
|
|
3959
|
+
}, z$2.core.$strip>;
|
|
3960
|
+
usedBy: z$2.ZodOptional<z$2.ZodObject<{
|
|
3961
|
+
visible: z$2.ZodArray<z$2.ZodObject<{
|
|
3962
|
+
id: z$2.ZodString;
|
|
3963
|
+
name: z$2.ZodString;
|
|
3964
|
+
}, z$2.core.$strip>>;
|
|
3965
|
+
hiddenCount: z$2.ZodNumber;
|
|
4094
3966
|
}, z$2.core.$strip>>;
|
|
4095
3967
|
}, z$2.core.$strip>;
|
|
4096
|
-
export type
|
|
4097
|
-
/**
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
3968
|
+
export type ConnectionView = z$2.output<typeof connectionViewSchema>;
|
|
3969
|
+
/** Scope a connection is created under. Implied by the originating settings section. */
|
|
3970
|
+
export declare const CONNECTOR_SCOPES: readonly ["actor", "tenant"];
|
|
3971
|
+
export type ConnectorScope = (typeof CONNECTOR_SCOPES)[number];
|
|
3972
|
+
/** Input to start an OAuth authorization flow. */
|
|
3973
|
+
export interface StartConnectorAuthInput {
|
|
3974
|
+
provider: ConnectorProviderId;
|
|
3975
|
+
scope: ConnectorScope;
|
|
3976
|
+
/** Page the callback 302s back to, on a configured allowed origin. Exactly one of this or `mode`. */
|
|
3977
|
+
returnUrl?: string;
|
|
3978
|
+
mode?: "desktop";
|
|
3979
|
+
/** Beyond `read`, which is always requested. */
|
|
3980
|
+
capabilities?: Exclude<ConnectorCapability, "read">[];
|
|
3981
|
+
/**
|
|
3982
|
+
* The account a reconnect names (its address): the provider offers it first.
|
|
3983
|
+
* A hint only: the person may still choose another account.
|
|
3984
|
+
*/
|
|
3985
|
+
loginHint?: string;
|
|
3986
|
+
}
|
|
4104
3987
|
/**
|
|
4105
|
-
*
|
|
4106
|
-
*
|
|
4107
|
-
* pack is `position` only, and `name` is provenance (originalName), never a
|
|
4108
|
-
* label rendered in the UI.
|
|
3988
|
+
* Providers this deployment holds OAuth credentials for. A provider absent from
|
|
3989
|
+
* the list cannot start an authorization flow, so its card is not offered.
|
|
4109
3990
|
*/
|
|
4110
|
-
export declare const
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
completed: "completed";
|
|
4119
|
-
failed: "failed";
|
|
4120
|
-
pending: "pending";
|
|
4121
|
-
processing: "processing";
|
|
4122
|
-
unsupported: "unsupported";
|
|
3991
|
+
export declare const connectorProvidersResultSchema: z$2.ZodObject<{
|
|
3992
|
+
providers: z$2.ZodArray<z$2.ZodEnum<{
|
|
3993
|
+
github: "github";
|
|
3994
|
+
gmail: "gmail";
|
|
3995
|
+
"google-calendar": "google-calendar";
|
|
3996
|
+
outlook: "outlook";
|
|
3997
|
+
"outlook-calendar": "outlook-calendar";
|
|
3998
|
+
slack: "slack";
|
|
4123
3999
|
}>>;
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
export type AttachFileAction = (typeof ATTACH_FILE_ACTIONS)[number];
|
|
4132
|
-
/** What attaching a file to a record's document attribute answers: the pack, the file in it, and what happened. */
|
|
4133
|
-
export declare const attachedRecordDocumentSchema: z$2.ZodObject<{
|
|
4134
|
-
document: z$2.ZodObject<{
|
|
4135
|
-
id: z$2.ZodString;
|
|
4136
|
-
tenantId: z$2.ZodString;
|
|
4137
|
-
title: z$2.ZodString;
|
|
4138
|
-
kind: z$2.ZodEnum<{
|
|
4139
|
-
file: "file";
|
|
4140
|
-
folder: "folder";
|
|
4141
|
-
}>;
|
|
4142
|
-
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
4143
|
-
description: z$2.ZodOptional<z$2.ZodString>;
|
|
4144
|
-
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
4145
|
-
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
4146
|
-
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
4147
|
-
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
4148
|
-
position: z$2.ZodNumber;
|
|
4149
|
-
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
4150
|
-
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
4151
|
-
}, z$2.core.$strip>;
|
|
4152
|
-
file: z$2.ZodObject<{
|
|
4153
|
-
id: z$2.ZodString;
|
|
4154
|
-
documentId: z$2.ZodString;
|
|
4155
|
-
position: z$2.ZodNumber;
|
|
4156
|
-
name: z$2.ZodString;
|
|
4157
|
-
mimeType: z$2.ZodString;
|
|
4158
|
-
size: z$2.ZodNumber;
|
|
4159
|
-
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
4160
|
-
completed: "completed";
|
|
4161
|
-
failed: "failed";
|
|
4162
|
-
pending: "pending";
|
|
4163
|
-
processing: "processing";
|
|
4164
|
-
unsupported: "unsupported";
|
|
4165
|
-
}>>;
|
|
4166
|
-
ocrText: z$2.ZodNullable<z$2.ZodString>;
|
|
4167
|
-
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
4168
|
-
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
4169
|
-
}, z$2.core.$strip>;
|
|
4170
|
-
action: z$2.ZodEnum<{
|
|
4171
|
-
appended: "appended";
|
|
4172
|
-
created: "created";
|
|
4173
|
-
"linked-existing": "linked-existing";
|
|
4174
|
-
}>;
|
|
4175
|
-
}, z$2.core.$strip>;
|
|
4176
|
-
/** A pack file as a drive row lists it: everything but its OCR text, which only reads need. */
|
|
4177
|
-
export declare const driveFileSchema: z$2.ZodObject<{
|
|
4178
|
-
id: z$2.ZodString;
|
|
4179
|
-
documentId: z$2.ZodString;
|
|
4180
|
-
position: z$2.ZodNumber;
|
|
4181
|
-
name: z$2.ZodString;
|
|
4182
|
-
mimeType: z$2.ZodString;
|
|
4183
|
-
size: z$2.ZodNumber;
|
|
4184
|
-
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
4185
|
-
completed: "completed";
|
|
4186
|
-
failed: "failed";
|
|
4187
|
-
pending: "pending";
|
|
4188
|
-
processing: "processing";
|
|
4189
|
-
unsupported: "unsupported";
|
|
4000
|
+
mailTriageProviders: z$2.ZodArray<z$2.ZodEnum<{
|
|
4001
|
+
github: "github";
|
|
4002
|
+
gmail: "gmail";
|
|
4003
|
+
"google-calendar": "google-calendar";
|
|
4004
|
+
outlook: "outlook";
|
|
4005
|
+
"outlook-calendar": "outlook-calendar";
|
|
4006
|
+
slack: "slack";
|
|
4190
4007
|
}>>;
|
|
4191
|
-
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
4192
|
-
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
4193
4008
|
}, z$2.core.$strip>;
|
|
4194
|
-
export type
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4009
|
+
export type ConnectorProvidersResult = z$2.output<typeof connectorProvidersResultSchema>;
|
|
4010
|
+
/** Input to attach a Microsoft shared mailbox to an existing Outlook connection. */
|
|
4011
|
+
export interface AddSharedMailboxInput {
|
|
4012
|
+
/** Shared mailbox SMTP address (e.g. contact@company.com). */
|
|
4013
|
+
address: string;
|
|
4014
|
+
/** Visibility of the synced emails: tenant (default UX) or only the adding actor. */
|
|
4015
|
+
scope: ConnectorScope;
|
|
4016
|
+
}
|
|
4017
|
+
/** How a connector's consent ended, as the app's surfaces read it. */
|
|
4018
|
+
export type ConnectorCallbackStatusValue = "connected" | "error";
|
|
4019
|
+
/** The unified verbs an agent calls on typed references. */
|
|
4020
|
+
export declare const VERB_NAMES: readonly ["search", "query", "read", "write", "delete", "organize", "copy", "send"];
|
|
4021
|
+
export type VerbName = (typeof VERB_NAMES)[number];
|
|
4022
|
+
/** The one verb by which an agent reaches a person, a session or a draft. */
|
|
4023
|
+
export declare const SEND_VERB_NAME = "send";
|
|
4024
|
+
/** The verb that moves bytes between the sandbox, a mailbox and Standards' own files. */
|
|
4025
|
+
export declare const COPY_VERB_NAME = "copy";
|
|
4026
|
+
/** Record, document and file tools: always loaded, bounded by data permissions. */
|
|
4027
|
+
export declare const CORE_RECORD_TOOL_NAMES: readonly ["search", "query", "read", "write", "delete", "organize", "copy", "send", "edit_content"];
|
|
4028
|
+
/** Core: always loaded, never removable (D2). */
|
|
4029
|
+
export declare const CORE_TOOL_NAMES: readonly ["search", "query", "read", "write", "delete", "organize", "copy", "send", "edit_content", "compact_context", "request_work_mode", "write_todos"];
|
|
4198
4030
|
/**
|
|
4199
|
-
*
|
|
4200
|
-
*
|
|
4201
|
-
* only as a reference edge and is named nowhere in `record.values`, has no
|
|
4202
|
-
* other source for its files, and without them its row menu cannot offer
|
|
4203
|
-
* Download. A folder has no pack: its `files` is always `[]`.
|
|
4204
|
-
*
|
|
4205
|
-
* A root-level child also names where it sits on the record: the document
|
|
4206
|
-
* attribute whose edge holds it (`attachments` for a plain drive item) and
|
|
4207
|
-
* that edge's qualified properties. A nested child has no edge of its own and
|
|
4208
|
-
* carries neither.
|
|
4031
|
+
* The one browser tool: it opens a cloud browser that `agent-browser` drives
|
|
4032
|
+
* through `exec_command`, so a browser grant always comes with the sandbox.
|
|
4209
4033
|
*/
|
|
4210
|
-
export declare const
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
}
|
|
4248
|
-
|
|
4034
|
+
export declare const BROWSER_TOOL_NAMES: readonly ["browser_launch"];
|
|
4035
|
+
/** Capabilities a grant switches on inside the verbs. */
|
|
4036
|
+
export type VerbCapability = "bulk" | "activity" | "transcript" | "copy_email";
|
|
4037
|
+
/** Reference kinds available without any grant (`user` is gated by `userDirectory`, not a grant). */
|
|
4038
|
+
export declare const ALWAYS_KINDS: readonly ReferenceKind[];
|
|
4039
|
+
/** What a grant enables: the kinds and capabilities on the verbs, plus its non-verb tools. */
|
|
4040
|
+
export type GrantEnables = {
|
|
4041
|
+
kinds: readonly ReferenceKind[];
|
|
4042
|
+
capabilities: readonly VerbCapability[];
|
|
4043
|
+
tools: readonly string[];
|
|
4044
|
+
};
|
|
4045
|
+
/** A closed allowlist, written per verb: allowed actions, kinds, includes, batch size, aggregation. */
|
|
4046
|
+
export type VerbAllowlist = { [V in VerbName]?: {
|
|
4047
|
+
actions?: readonly string[];
|
|
4048
|
+
kinds?: readonly ReferenceKind[];
|
|
4049
|
+
includes?: readonly string[];
|
|
4050
|
+
batch?: number;
|
|
4051
|
+
aggregate?: boolean;
|
|
4052
|
+
/** `send` only: who the verb may reach. Absent means every target. */
|
|
4053
|
+
targets?: readonly ("person" | "session" | "draft")[];
|
|
4054
|
+
}; };
|
|
4055
|
+
export declare const NATIVE_TOOL_GROUP_CATALOG: {
|
|
4056
|
+
readonly sandbox: {
|
|
4057
|
+
readonly icon: "terminal";
|
|
4058
|
+
readonly tools: readonly ["exec_command", "publish_artifact", "sandbox_validate_payload"];
|
|
4059
|
+
};
|
|
4060
|
+
readonly web: {
|
|
4061
|
+
readonly icon: "globe";
|
|
4062
|
+
readonly tools: readonly ["read_webpage", "web_search"];
|
|
4063
|
+
};
|
|
4064
|
+
readonly image: {
|
|
4065
|
+
readonly icon: "image";
|
|
4066
|
+
readonly tools: readonly ["generate_image"];
|
|
4067
|
+
};
|
|
4068
|
+
readonly memory: {
|
|
4069
|
+
readonly icon: "book-open";
|
|
4070
|
+
readonly tools: readonly ["propose_memory"];
|
|
4071
|
+
};
|
|
4072
|
+
readonly bulk: {
|
|
4073
|
+
readonly icon: "layers-two";
|
|
4074
|
+
readonly tools: readonly [];
|
|
4075
|
+
};
|
|
4076
|
+
readonly activity: {
|
|
4077
|
+
readonly icon: "activity";
|
|
4078
|
+
readonly tools: readonly [];
|
|
4079
|
+
};
|
|
4080
|
+
readonly orchestration: {
|
|
4081
|
+
readonly icon: "git-branch";
|
|
4082
|
+
readonly tools: readonly ["spawn_agent"];
|
|
4083
|
+
};
|
|
4084
|
+
readonly host: {
|
|
4085
|
+
readonly icon: "wrench";
|
|
4086
|
+
readonly tools: readonly [];
|
|
4087
|
+
};
|
|
4088
|
+
readonly "cloud-browser": {
|
|
4089
|
+
readonly icon: "globe";
|
|
4090
|
+
readonly tools: readonly ["browser_launch"];
|
|
4091
|
+
};
|
|
4092
|
+
readonly "agent-config": {
|
|
4093
|
+
readonly icon: "sparkles";
|
|
4094
|
+
readonly tools: readonly ["get_agents", "upsert_agent"];
|
|
4095
|
+
};
|
|
4096
|
+
};
|
|
4097
|
+
export declare const RESOURCE_KIND_CATALOG: {
|
|
4098
|
+
readonly mcp: {
|
|
4099
|
+
readonly icon: "puzzle";
|
|
4100
|
+
readonly tools: readonly [];
|
|
4101
|
+
};
|
|
4102
|
+
readonly "email.read": {
|
|
4103
|
+
readonly icon: "envelope";
|
|
4104
|
+
readonly tools: readonly [];
|
|
4105
|
+
};
|
|
4106
|
+
readonly "email.send": {
|
|
4107
|
+
readonly icon: "send";
|
|
4108
|
+
readonly tools: readonly [];
|
|
4109
|
+
};
|
|
4110
|
+
readonly "calendar.read": {
|
|
4111
|
+
readonly icon: "calendar";
|
|
4112
|
+
readonly tools: readonly [];
|
|
4113
|
+
};
|
|
4114
|
+
readonly github: {
|
|
4115
|
+
readonly icon: "brand-github";
|
|
4116
|
+
readonly tools: readonly [];
|
|
4117
|
+
};
|
|
4118
|
+
readonly "slack.read": {
|
|
4119
|
+
readonly icon: "brand-slack";
|
|
4120
|
+
readonly tools: readonly ["slack_read", "slack_find", "slack_download_file"];
|
|
4121
|
+
};
|
|
4122
|
+
readonly "slack.write": {
|
|
4123
|
+
readonly icon: "brand-slack";
|
|
4124
|
+
readonly tools: readonly ["slack_send", "slack_react"];
|
|
4125
|
+
};
|
|
4126
|
+
readonly device: {
|
|
4127
|
+
readonly icon: "desktop";
|
|
4128
|
+
readonly tools: readonly ["exec_command"];
|
|
4129
|
+
};
|
|
4130
|
+
readonly "browser-profile": {
|
|
4131
|
+
readonly icon: "globe";
|
|
4132
|
+
readonly tools: readonly ["browser_launch"];
|
|
4133
|
+
};
|
|
4134
|
+
readonly login: {
|
|
4135
|
+
readonly icon: "key";
|
|
4136
|
+
readonly tools: readonly [];
|
|
4137
|
+
};
|
|
4138
|
+
};
|
|
4139
|
+
/** The single source of which grant enables which kinds, capabilities and tools. */
|
|
4140
|
+
export declare const GRANT_ENABLES: {
|
|
4141
|
+
readonly sandbox: {
|
|
4142
|
+
readonly kinds: readonly [];
|
|
4143
|
+
readonly capabilities: readonly [];
|
|
4144
|
+
readonly tools: readonly ["exec_command", "publish_artifact", "sandbox_validate_payload"];
|
|
4145
|
+
};
|
|
4146
|
+
readonly web: {
|
|
4147
|
+
readonly kinds: readonly [];
|
|
4148
|
+
readonly capabilities: readonly [];
|
|
4149
|
+
readonly tools: readonly ["read_webpage", "web_search"];
|
|
4150
|
+
};
|
|
4151
|
+
readonly image: {
|
|
4152
|
+
readonly kinds: readonly [];
|
|
4153
|
+
readonly capabilities: readonly [];
|
|
4154
|
+
readonly tools: readonly ["generate_image"];
|
|
4155
|
+
};
|
|
4156
|
+
readonly memory: {
|
|
4157
|
+
readonly kinds: readonly ["memory"];
|
|
4158
|
+
readonly capabilities: readonly [];
|
|
4159
|
+
readonly tools: readonly ["propose_memory"];
|
|
4160
|
+
};
|
|
4161
|
+
readonly bulk: {
|
|
4162
|
+
readonly kinds: readonly [];
|
|
4163
|
+
readonly capabilities: readonly ["bulk"];
|
|
4164
|
+
readonly tools: readonly [];
|
|
4165
|
+
};
|
|
4166
|
+
readonly activity: {
|
|
4167
|
+
readonly kinds: readonly [];
|
|
4168
|
+
readonly capabilities: readonly ["activity"];
|
|
4169
|
+
readonly tools: readonly [];
|
|
4170
|
+
};
|
|
4171
|
+
readonly orchestration: {
|
|
4172
|
+
readonly kinds: readonly [];
|
|
4173
|
+
readonly capabilities: readonly [];
|
|
4174
|
+
readonly tools: readonly ["spawn_agent"];
|
|
4175
|
+
};
|
|
4176
|
+
readonly host: {
|
|
4177
|
+
readonly kinds: readonly [];
|
|
4178
|
+
readonly capabilities: readonly [];
|
|
4179
|
+
readonly tools: readonly [];
|
|
4180
|
+
};
|
|
4181
|
+
readonly "cloud-browser": {
|
|
4182
|
+
readonly kinds: readonly [];
|
|
4183
|
+
readonly capabilities: readonly [];
|
|
4184
|
+
readonly tools: readonly ["browser_launch"];
|
|
4185
|
+
};
|
|
4186
|
+
readonly "agent-config": {
|
|
4187
|
+
readonly kinds: readonly [];
|
|
4188
|
+
readonly capabilities: readonly [];
|
|
4189
|
+
readonly tools: readonly ["get_agents", "upsert_agent"];
|
|
4190
|
+
};
|
|
4191
|
+
readonly mcp: {
|
|
4192
|
+
readonly kinds: readonly [];
|
|
4193
|
+
readonly capabilities: readonly [];
|
|
4194
|
+
readonly tools: readonly [];
|
|
4195
|
+
};
|
|
4196
|
+
readonly "email.read": {
|
|
4197
|
+
readonly kinds: readonly ["email", "thread"];
|
|
4198
|
+
readonly capabilities: readonly ["copy_email"];
|
|
4199
|
+
readonly tools: readonly [];
|
|
4200
|
+
};
|
|
4201
|
+
readonly "email.send": {
|
|
4202
|
+
readonly kinds: readonly ["email", "thread", "draft"];
|
|
4203
|
+
readonly capabilities: readonly ["copy_email"];
|
|
4204
|
+
readonly tools: readonly [];
|
|
4205
|
+
};
|
|
4206
|
+
readonly "calendar.read": {
|
|
4207
|
+
readonly kinds: readonly ["event"];
|
|
4208
|
+
readonly capabilities: readonly ["transcript"];
|
|
4209
|
+
readonly tools: readonly [];
|
|
4210
|
+
};
|
|
4211
|
+
readonly github: {
|
|
4212
|
+
readonly kinds: readonly [];
|
|
4213
|
+
readonly capabilities: readonly [];
|
|
4214
|
+
readonly tools: readonly [];
|
|
4215
|
+
};
|
|
4216
|
+
readonly "slack.read": {
|
|
4217
|
+
readonly kinds: readonly [];
|
|
4218
|
+
readonly capabilities: readonly [];
|
|
4219
|
+
readonly tools: readonly ["slack_read", "slack_find", "slack_download_file"];
|
|
4220
|
+
};
|
|
4221
|
+
readonly "slack.write": {
|
|
4222
|
+
readonly kinds: readonly [];
|
|
4223
|
+
readonly capabilities: readonly [];
|
|
4224
|
+
readonly tools: readonly ["slack_send", "slack_react"];
|
|
4225
|
+
};
|
|
4226
|
+
readonly device: {
|
|
4227
|
+
readonly kinds: readonly [];
|
|
4228
|
+
readonly capabilities: readonly [];
|
|
4229
|
+
readonly tools: readonly ["exec_command"];
|
|
4230
|
+
};
|
|
4231
|
+
readonly "browser-profile": {
|
|
4232
|
+
readonly kinds: readonly [];
|
|
4233
|
+
readonly capabilities: readonly [];
|
|
4234
|
+
readonly tools: readonly ["browser_launch"];
|
|
4235
|
+
};
|
|
4236
|
+
readonly login: {
|
|
4237
|
+
readonly kinds: readonly [];
|
|
4238
|
+
readonly capabilities: readonly [];
|
|
4239
|
+
readonly tools: readonly [];
|
|
4240
|
+
};
|
|
4241
|
+
};
|
|
4242
|
+
/** Tools of the work-mode and interactive surfaces: architect mode, setup, default-chat loading. `agent-config` is also a grant, for a routine that proposes. */
|
|
4243
|
+
export declare const SURFACE_TOOL_NAMES: {
|
|
4244
|
+
readonly schema: readonly ["discard_architect_draft", "draft_schema", "get_architect_draft", "get_schema_history", "request_design_review", "search_icons"];
|
|
4245
|
+
readonly "agent-config": readonly ["get_agents", "upsert_agent"];
|
|
4246
|
+
readonly setup: readonly ["request_setup"];
|
|
4247
|
+
readonly internal: readonly ["load_toolset"];
|
|
4248
|
+
};
|
|
4249
|
+
type GroupToolName = (typeof NATIVE_TOOL_GROUP_CATALOG)[NativeToolGroup]["tools"][number];
|
|
4250
|
+
type KindToolName = (typeof RESOURCE_KIND_CATALOG)[ResourceGrantKind]["tools"][number];
|
|
4251
|
+
/** Every tool id the product names for people (§7.1). MCP and host tools are open-ended and not listed. */
|
|
4252
|
+
export type CatalogToolName = (typeof CORE_TOOL_NAMES)[number] | GroupToolName | KindToolName;
|
|
4253
|
+
export declare const ALL_CATALOG_TOOL_NAMES: readonly CatalogToolName[];
|
|
4249
4254
|
/**
|
|
4250
|
-
* The
|
|
4251
|
-
*
|
|
4252
|
-
* - `manual`: `position` (the drag order);
|
|
4253
|
-
* - `name-asc` / `name-desc`: the title, numeric and case- and
|
|
4254
|
-
* accent-insensitive ("File 2" before "file 10", "Éa" equal to "ea");
|
|
4255
|
-
* - `date-desc` / `date-asc`: `updatedAt ?? createdAt` to the millisecond,
|
|
4256
|
-
* a row with neither last in both directions.
|
|
4257
|
-
* The `id` tiebreak is ascending in every mode.
|
|
4255
|
+
* The grant kinds of a connected account, one account each: reading a mailbox
|
|
4256
|
+
* or a calendar, and sending from a mailbox (`email.send`, behind an approval).
|
|
4258
4257
|
*/
|
|
4259
|
-
export
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4258
|
+
export type ConnectionGrantKind = Extract<ResourceGrantKind, "email.read" | "email.send" | "calendar.read">;
|
|
4259
|
+
/** The providers each connection kind reads: a calendar connection is not a mailbox, and the reverse. */
|
|
4260
|
+
export declare const CONNECTION_GRANT_PROVIDERS: {
|
|
4261
|
+
readonly "email.read": readonly ["gmail", "outlook"];
|
|
4262
|
+
readonly "email.send": readonly ["gmail", "outlook"];
|
|
4263
|
+
readonly "calendar.read": readonly ["google-calendar", "outlook-calendar"];
|
|
4264
|
+
};
|
|
4265
|
+
/** Every grant on a connection: used for catalogue usage and deletion expansion. */
|
|
4266
|
+
export declare function connectionGrantKindsOf(provider: ConnectorProviderId): readonly ResourceGrantKind[];
|
|
4265
4267
|
/**
|
|
4266
|
-
*
|
|
4267
|
-
*
|
|
4268
|
+
* What an agent or routine created in the product starts with (D12, amended
|
|
4269
|
+
* 2026-10-04): every built-in, removable. `host` joins only where the host
|
|
4270
|
+
* provides tools, and an unattended definition created without
|
|
4271
|
+
* `agents:manage` drops what D13 gates (the runtime's create path decides
|
|
4272
|
+
* both). Canonical order.
|
|
4268
4273
|
*/
|
|
4269
|
-
export declare const
|
|
4274
|
+
export declare const DEFAULT_AGENT_TOOL_GROUPS: readonly ["activity", "bulk", "image", "memory", "orchestration", "sandbox", "web"];
|
|
4270
4275
|
/**
|
|
4271
|
-
*
|
|
4272
|
-
* `
|
|
4273
|
-
*
|
|
4276
|
+
* What a code-defined agent (`agent()` builder, blueprints) holds when it
|
|
4277
|
+
* lists no `toolGroups`: memory only. System agents sync on boot, so a wider
|
|
4278
|
+
* default would grant them more silently — scheduled ones past D13 included.
|
|
4274
4279
|
*/
|
|
4275
|
-
export declare const
|
|
4276
|
-
items: z$2.ZodArray<z$2.ZodObject<{
|
|
4277
|
-
id: z$2.ZodString;
|
|
4278
|
-
tenantId: z$2.ZodString;
|
|
4279
|
-
title: z$2.ZodString;
|
|
4280
|
-
kind: z$2.ZodEnum<{
|
|
4281
|
-
file: "file";
|
|
4282
|
-
folder: "folder";
|
|
4283
|
-
}>;
|
|
4284
|
-
parentId: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
4285
|
-
description: z$2.ZodOptional<z$2.ZodString>;
|
|
4286
|
-
contentHash: z$2.ZodOptional<z$2.ZodString>;
|
|
4287
|
-
createdBy: z$2.ZodOptional<z$2.ZodString>;
|
|
4288
|
-
updatedBy: z$2.ZodOptional<z$2.ZodString>;
|
|
4289
|
-
deletedAt: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>>;
|
|
4290
|
-
position: z$2.ZodNumber;
|
|
4291
|
-
createdAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
4292
|
-
updatedAt: z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>;
|
|
4293
|
-
subCount: z$2.ZodNullable<z$2.ZodNumber>;
|
|
4294
|
-
files: z$2.ZodArray<z$2.ZodObject<{
|
|
4295
|
-
id: z$2.ZodString;
|
|
4296
|
-
documentId: z$2.ZodString;
|
|
4297
|
-
position: z$2.ZodNumber;
|
|
4298
|
-
name: z$2.ZodString;
|
|
4299
|
-
mimeType: z$2.ZodString;
|
|
4300
|
-
size: z$2.ZodNumber;
|
|
4301
|
-
ocrStatus: z$2.ZodNullable<z$2.ZodEnum<{
|
|
4302
|
-
completed: "completed";
|
|
4303
|
-
failed: "failed";
|
|
4304
|
-
pending: "pending";
|
|
4305
|
-
processing: "processing";
|
|
4306
|
-
unsupported: "unsupported";
|
|
4307
|
-
}>>;
|
|
4308
|
-
ocrConfidence: z$2.ZodNullable<z$2.ZodNumber>;
|
|
4309
|
-
processedAt: z$2.ZodNullable<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
4310
|
-
}, z$2.core.$strip>>;
|
|
4311
|
-
attributeName: z$2.ZodOptional<z$2.ZodString>;
|
|
4312
|
-
properties: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
|
|
4313
|
-
}, z$2.core.$strip>>;
|
|
4314
|
-
nextCursor: z$2.ZodNullable<z$2.ZodString>;
|
|
4315
|
-
}, z$2.core.$strip>;
|
|
4316
|
-
export type RecordDriveChildrenPage = z$2.output<typeof recordDriveChildrenPageSchema>;
|
|
4317
|
-
export interface CreateDocument {
|
|
4318
|
-
title: string;
|
|
4319
|
-
kind?: DocumentKind;
|
|
4320
|
-
parentId?: Uuid | null;
|
|
4321
|
-
description?: string;
|
|
4322
|
-
position?: number;
|
|
4323
|
-
}
|
|
4280
|
+
export declare const DEFAULT_BLUEPRINT_TOOL_GROUPS: readonly ["memory"];
|
|
4324
4281
|
/**
|
|
4325
|
-
*
|
|
4326
|
-
*
|
|
4327
|
-
*
|
|
4328
|
-
*
|
|
4329
|
-
* The server requires this — orphan Documents are not creatable through the
|
|
4330
|
-
* REST API.
|
|
4282
|
+
* D13: whether adding `grant` to something that runs with nobody present (a
|
|
4283
|
+
* routine, an enabled schedule or trigger) needs `agents:manage` — `sandbox`,
|
|
4284
|
+
* `host`, `cloud-browser` and every resource grant.
|
|
4331
4285
|
*/
|
|
4332
|
-
export
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4286
|
+
export declare function needsManageWhenUnattended(grant: string): boolean;
|
|
4287
|
+
export type ParsedToolGroupGrant = {
|
|
4288
|
+
type: "native";
|
|
4289
|
+
group: NativeToolGroup;
|
|
4290
|
+
} | {
|
|
4291
|
+
type: "resource";
|
|
4292
|
+
kind: ResourceGrantKind;
|
|
4293
|
+
id: string;
|
|
4294
|
+
};
|
|
4295
|
+
export declare function isNativeToolGroup(value: string): value is NativeToolGroup;
|
|
4296
|
+
export declare function parseToolGroupGrant(value: string): ParsedToolGroupGrant | null;
|
|
4297
|
+
/** The kind of a resource grant; `null` for a native group or a malformed grant. */
|
|
4298
|
+
export declare function grantKindOf(grant: string): ResourceGrantKind | null;
|
|
4299
|
+
export declare function isResourceGrant(value: string): value is ResourceGrant;
|
|
4300
|
+
export declare function resourceGrant(kind: ResourceGrantKind, id: string): ResourceGrant;
|
|
4301
|
+
/** Deduplicated, sorted by UTF-16 code unit (the JS default sort): the stored form of every grant list. */
|
|
4302
|
+
export declare function canonicalToolGroups<T extends string>(grants: readonly T[]): T[];
|
|
4303
|
+
/** Native tool groups an agent may be granted, in catalogue order. */
|
|
4304
|
+
export declare const NATIVE_TOOL_GROUPS: readonly ["sandbox", "web", "image", "memory", "bulk", "activity", "orchestration", "host", "cloud-browser", "agent-config"];
|
|
4305
|
+
export type NativeToolGroup = (typeof NATIVE_TOOL_GROUPS)[number];
|
|
4306
|
+
/** The tool that starts the session's cloud browser — read by the runtime and the chat. */
|
|
4307
|
+
export declare const BROWSER_LAUNCH_TOOL_NAME = "browser_launch";
|
|
4308
|
+
/** Resource kinds granted one resource at a time (`kind:id`). Write kinds arrive with their tools. */
|
|
4309
|
+
export declare const RESOURCE_GRANT_KINDS: readonly ["mcp", "email.read", "email.send", "calendar.read", "github", "slack.read", "slack.write", "device", "browser-profile", "login"];
|
|
4310
|
+
export type ResourceGrantKind = (typeof RESOURCE_GRANT_KINDS)[number];
|
|
4311
|
+
export type ResourceGrant = `${ResourceGrantKind}:${string}`;
|
|
4312
|
+
export type ToolGroupGrant = NativeToolGroup | ResourceGrant;
|
|
4313
|
+
/** Where a session's effective tool grants come from. */
|
|
4314
|
+
export declare const AGENT_SESSION_ORIGINS: readonly ["definition", "default", "child", "inline"];
|
|
4315
|
+
export type AgentSessionOrigin = (typeof AGENT_SESSION_ORIGINS)[number];
|
|
4316
|
+
/** Why a catalogue row cannot be granted or used; translated by `agentTools.reasons`. */
|
|
4317
|
+
export type ToolGrantReason = "private_on_workspace_definition" | "private_of_viewer" | "not_creator" | "needs_manage" | "harness" | "needs_person" | "scope_missing" | "requires_sandbox" | "disconnected" | "reauth_required" | "error" | "offline" | "revoked" | "not_authorized" | "inactive_on_automatic_runs" | "stops_without_person" | "never_prepared";
|
|
4318
|
+
export type ToolSummaryRisk = "read" | "mutation" | "destructive" | "outward" | "internal" | "conditional";
|
|
4319
|
+
export interface ToolSummary {
|
|
4320
|
+
name: string;
|
|
4321
|
+
/** MCP and host tools only: the tool's own title. */
|
|
4338
4322
|
title?: string;
|
|
4339
|
-
|
|
4340
|
-
|
|
4323
|
+
/** MCP and host tools only. */
|
|
4324
|
+
description?: string;
|
|
4325
|
+
risk: ToolSummaryRisk;
|
|
4326
|
+
/** Asks a person before running in a manual session. */
|
|
4327
|
+
approval: boolean;
|
|
4341
4328
|
}
|
|
4342
|
-
export interface
|
|
4343
|
-
|
|
4344
|
-
|
|
4329
|
+
export interface DeviceGrantDetail {
|
|
4330
|
+
platform: "darwin" | "linux" | "win32";
|
|
4331
|
+
status: "online" | "offline" | "revoked";
|
|
4332
|
+
agentExecutionAuthorized: boolean;
|
|
4345
4333
|
}
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4334
|
+
/** What a grant switches on inside the verbs: kinds on `search`/`read`, capabilities on the rest. */
|
|
4335
|
+
export interface ToolGrantEnables {
|
|
4336
|
+
kinds: ReferenceKind[];
|
|
4337
|
+
capabilities: VerbCapability[];
|
|
4349
4338
|
}
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4339
|
+
export interface NativeToolGroupEntry {
|
|
4340
|
+
name: NativeToolGroup;
|
|
4341
|
+
granted: boolean;
|
|
4342
|
+
grantable: boolean;
|
|
4343
|
+
reason?: ToolGrantReason;
|
|
4344
|
+
/** The kinds and capabilities the group enables on the verbs. */
|
|
4345
|
+
enables: ToolGrantEnables;
|
|
4346
|
+
tools: ToolSummary[];
|
|
4347
|
+
}
|
|
4348
|
+
export interface ResourceGrantEntry {
|
|
4349
|
+
id: string;
|
|
4350
|
+
label: string;
|
|
4351
|
+
visibility: ResourceVisibility;
|
|
4352
|
+
granted: boolean;
|
|
4353
|
+
grantable: boolean;
|
|
4354
|
+
usable: boolean;
|
|
4355
|
+
/** Why it is not grantable, else why it is not usable. */
|
|
4356
|
+
reason?: ToolGrantReason;
|
|
4357
|
+
/** Informational flags (`inactive_on_automatic_runs`, `stops_without_person`). */
|
|
4358
|
+
notes?: ToolGrantReason[];
|
|
4359
|
+
/**
|
|
4360
|
+
* Number of definitions holding this resource: those visible to the caller
|
|
4361
|
+
* plus the hidden ones. Absent when none.
|
|
4362
|
+
*/
|
|
4363
|
+
usedBy?: number;
|
|
4364
|
+
device?: DeviceGrantDetail;
|
|
4365
|
+
/** The kinds and capabilities the grant enables on the verbs. */
|
|
4366
|
+
enables: ToolGrantEnables;
|
|
4367
|
+
tools: ToolSummary[];
|
|
4368
|
+
}
|
|
4369
|
+
export interface ResourceKindEntry {
|
|
4370
|
+
kind: ResourceGrantKind;
|
|
4371
|
+
resources: ResourceGrantEntry[];
|
|
4372
|
+
}
|
|
4373
|
+
/** `GET /agents/definitions/:id/tool-catalog`, for the caller. */
|
|
4374
|
+
export type AgentToolCatalog = z$1.output<typeof agentToolCatalogSchema>;
|
|
4375
|
+
/** The definitions that lose a grant when a resource is deleted. */
|
|
4376
|
+
export type ResourceUsedBy = z$1.output<typeof resourceUsedBySchema>;
|
|
4376
4377
|
/**
|
|
4377
4378
|
* Storage provider type
|
|
4378
4379
|
*/
|
|
@@ -7599,6 +7600,11 @@ export interface ObjectDefinition {
|
|
|
7599
7600
|
documentLayout?: DocumentLayout;
|
|
7600
7601
|
/** Records of this object may have a parent record of the same object (a tree). */
|
|
7601
7602
|
hierarchical?: boolean;
|
|
7603
|
+
/**
|
|
7604
|
+
* The order a record's drive rests in for anyone who never chose one on
|
|
7605
|
+
* that object and tab. Absent, the drive rests in `manual`.
|
|
7606
|
+
*/
|
|
7607
|
+
defaultDriveSort?: DocumentSortMode;
|
|
7602
7608
|
}
|
|
7603
7609
|
/**
|
|
7604
7610
|
* Links an attribute to an object
|
|
@@ -8089,6 +8095,13 @@ export declare const objectDefinitionOutputSchema: z$2.ZodObject<{
|
|
|
8089
8095
|
metadata: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
|
|
8090
8096
|
documentLayout: z$2.ZodOptional<z$2.ZodType<DocumentLayout, DocumentLayout, z$2.core.$ZodTypeInternals<DocumentLayout, DocumentLayout>>>;
|
|
8091
8097
|
hierarchical: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
8098
|
+
defaultDriveSort: z$2.ZodOptional<z$2.ZodEnum<{
|
|
8099
|
+
"date-asc": "date-asc";
|
|
8100
|
+
"date-desc": "date-desc";
|
|
8101
|
+
manual: "manual";
|
|
8102
|
+
"name-asc": "name-asc";
|
|
8103
|
+
"name-desc": "name-desc";
|
|
8104
|
+
}>>;
|
|
8092
8105
|
}, z$2.core.$strip>;
|
|
8093
8106
|
export declare const schemaGroupSchema: z$2.ZodObject<{
|
|
8094
8107
|
kind: z$2.ZodLiteral<"bundle">;
|
|
@@ -12064,6 +12077,8 @@ export interface CreateCustomObjectInput {
|
|
|
12064
12077
|
image?: ObjectImage;
|
|
12065
12078
|
/** Its records may have a parent of this object. */
|
|
12066
12079
|
hierarchical?: boolean;
|
|
12080
|
+
/** The order its records' drives rest in until a person chooses one. */
|
|
12081
|
+
defaultDriveSort?: DocumentSortMode;
|
|
12067
12082
|
attributes?: (Attribute | {
|
|
12068
12083
|
build: () => Attribute;
|
|
12069
12084
|
})[];
|
|
@@ -12081,6 +12096,8 @@ export interface UpdateObjectInput {
|
|
|
12081
12096
|
labelExpression?: string;
|
|
12082
12097
|
embeddingExpression?: string;
|
|
12083
12098
|
hierarchical?: boolean;
|
|
12099
|
+
/** The order its records' drives rest in until a person chooses one. */
|
|
12100
|
+
defaultDriveSort?: DocumentSortMode;
|
|
12084
12101
|
metadata?: Record<string, unknown>;
|
|
12085
12102
|
}
|
|
12086
12103
|
export type RelationOption = z$1.output<typeof relationOptionSchema>;
|
|
@@ -15557,6 +15574,8 @@ export interface DBObject extends Timestamps {
|
|
|
15557
15574
|
documentLayout?: DocumentLayout;
|
|
15558
15575
|
/** Records of this object may have a parent record of the same object. Stored in `metadata`. */
|
|
15559
15576
|
hierarchical?: boolean;
|
|
15577
|
+
/** The order its records' drives rest in until a person chooses one. Stored in `metadata`. */
|
|
15578
|
+
defaultDriveSort?: DocumentSortMode;
|
|
15560
15579
|
}
|
|
15561
15580
|
/**
|
|
15562
15581
|
* Data for creating a new object.
|
|
@@ -15576,6 +15595,7 @@ export interface CreateDBObject {
|
|
|
15576
15595
|
metadata?: Record<string, unknown>;
|
|
15577
15596
|
documentLayout?: DocumentLayout;
|
|
15578
15597
|
hierarchical?: boolean;
|
|
15598
|
+
defaultDriveSort?: DocumentSortMode;
|
|
15579
15599
|
}
|
|
15580
15600
|
export interface UpdateDBObject {
|
|
15581
15601
|
label?: string;
|
|
@@ -15591,6 +15611,7 @@ export interface UpdateDBObject {
|
|
|
15591
15611
|
metadata?: Record<string, unknown>;
|
|
15592
15612
|
documentLayout?: DocumentLayout;
|
|
15593
15613
|
hierarchical?: boolean;
|
|
15614
|
+
defaultDriveSort?: DocumentSortMode;
|
|
15594
15615
|
}
|
|
15595
15616
|
/**
|
|
15596
15617
|
* Data for upserting an object.
|