@standards/schema 1.0.0-alpha.442 → 1.0.0-alpha.443
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/{all-CQpxJzde.js → all-BrGOpgV8.js} +1 -1
- package/dist/{all-BYmKV0dE.mjs → all-Df9IeCkI.mjs} +1 -1
- package/dist/api/index.d.mts +321 -31
- package/dist/api/index.d.ts +321 -31
- package/dist/api/index.js +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/attribute-validators-BJdOkURX.mjs +11 -0
- package/dist/attribute-validators-rgM_bLG1.js +11 -0
- package/dist/{exceptions-uND1wZ9X.d.ts → exceptions-YHdKk5N8.d.ts} +8 -0
- package/dist/{exceptions-lFvB7G4Q.d.mts → exceptions-zQlC2r1F.d.mts} +8 -0
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-CTEU8_BN.d.ts → index-BxDb1xz7.d.ts} +505 -162
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/record-operation-BrYpYAKR.js +2 -0
- package/dist/record-operation-DSjDUW-6.mjs +2 -0
- package/dist/{record-query-BY-r2Ck3.d.mts → record-query-CJVicxN7.d.mts} +505 -162
- package/dist/{utils-PmF7E7_-.d.mts → utils-BZMgedee.d.mts} +1 -1
- package/dist/{utils-Cn0G_X1P.d.ts → utils-CwQlKDYz.d.ts} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/validation/all.d.mts +1 -1
- package/dist/validation/all.d.ts +1 -1
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/openapi.json +779 -54
- package/package.json +2 -2
- package/dist/attribute-validators-BndMvVLT.mjs +0 -11
- package/dist/attribute-validators-CYrBg3Iz.js +0 -11
- package/dist/record-operation-DBY5XtZW.mjs +0 -2
- package/dist/record-operation-Dqvgxmnz.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-
|
|
3
|
-
import { TenantId, Uuid } from "./utils-
|
|
2
|
+
import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-zQlC2r1F.mjs";
|
|
3
|
+
import { TenantId, Uuid } from "./utils-BZMgedee.mjs";
|
|
4
4
|
import * as z$2 from "zod";
|
|
5
5
|
import z, { z as z$1 } from "zod";
|
|
6
6
|
import { ColorId, CountryIso3, CurrencyCode, IconName } from "@standards/constants";
|
|
@@ -386,6 +386,13 @@ export declare const PERMISSION_CATALOG: readonly [{
|
|
|
386
386
|
readonly id: "use";
|
|
387
387
|
readonly add: readonly ["read", "create", "update", "delete"];
|
|
388
388
|
}];
|
|
389
|
+
}, {
|
|
390
|
+
readonly id: "workspace-mailboxes";
|
|
391
|
+
readonly resources: readonly ["workspace-mailboxes"];
|
|
392
|
+
readonly levels: readonly [{
|
|
393
|
+
readonly id: "manage";
|
|
394
|
+
readonly add: readonly ["delete"];
|
|
395
|
+
}];
|
|
389
396
|
}, {
|
|
390
397
|
readonly id: "api-keys";
|
|
391
398
|
readonly resources: readonly ["api-keys"];
|
|
@@ -2325,7 +2332,9 @@ export declare const DECISION_LIST_STATES: readonly [
|
|
|
2325
2332
|
"closed", "answered", "withdrawn", "expired", "unread", "read", "archived"];
|
|
2326
2333
|
export type DecisionListState = (typeof DECISION_LIST_STATES)[number];
|
|
2327
2334
|
/** What a decision can be about (§ 3): its links' target types. */
|
|
2328
|
-
export declare const DECISION_LINK_TARGET_TYPES: readonly ["record", "session", "document", "agent", "routine", "page", "email_thread"
|
|
2335
|
+
export declare const DECISION_LINK_TARGET_TYPES: readonly ["record", "session", "document", "agent", "routine", "page", "email_thread",
|
|
2336
|
+
/** An https address outside Standards: its `targetId` is the URL, opened in a new tab. */
|
|
2337
|
+
"url"];
|
|
2329
2338
|
export type DecisionLinkTargetType = (typeof DECISION_LINK_TARGET_TYPES)[number];
|
|
2330
2339
|
/** One thing a decision is about. `objectName` only on a `record` (its page is addressed by its object). */
|
|
2331
2340
|
export declare const decisionLinkSchema: z$2.ZodObject<{
|
|
@@ -2337,6 +2346,7 @@ export declare const decisionLinkSchema: z$2.ZodObject<{
|
|
|
2337
2346
|
record: "record";
|
|
2338
2347
|
routine: "routine";
|
|
2339
2348
|
session: "session";
|
|
2349
|
+
url: "url";
|
|
2340
2350
|
}>;
|
|
2341
2351
|
targetId: z$2.ZodString;
|
|
2342
2352
|
objectName: z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -2400,6 +2410,12 @@ export declare const DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED = "conne
|
|
|
2400
2410
|
* nothing has synced. `payload.provider` and `payload.account` name it.
|
|
2401
2411
|
*/
|
|
2402
2412
|
export declare const DECISION_TYPE_CONNECTOR_CONNECTION_ERROR = "connector.connection.error";
|
|
2413
|
+
/**
|
|
2414
|
+
* A mailbox whose grant does not cover changing and sending mail refused a
|
|
2415
|
+
* send: it keeps syncing, and its owner reconnects it to send from it.
|
|
2416
|
+
* `payload.provider` and `payload.account` name it.
|
|
2417
|
+
*/
|
|
2418
|
+
export declare const DECISION_TYPE_CONNECTOR_CONNECTION_SEND_NOT_GRANTED = "connector.connection.send_not_granted";
|
|
2403
2419
|
/**
|
|
2404
2420
|
* A person added to a `user` attribute marked `.notifiesOnAssign()` (#5308).
|
|
2405
2421
|
* The subject is the record when one write is announced; several assignments
|
|
@@ -2444,7 +2460,7 @@ export declare const DECISION_TYPE_PERSON = "person.decision";
|
|
|
2444
2460
|
* configuration. Threaded by bundle (`bundle:<name>`), one open at a time.
|
|
2445
2461
|
*/
|
|
2446
2462
|
export declare const DECISION_TYPE_BUNDLE_SETUP = "bundle.setup";
|
|
2447
|
-
export declare const DECISION_TYPES_V1: readonly ["agent.question", "agent.approval", "agent.review", "agent.setup", "agent.routine_run.failed", "agent.message", "connector.connection.reauth_required", "connector.connection.error", "record.assigned", "record.mentioned", "access.granted", "environment.build.failed", "person.decision", "bundle.setup"];
|
|
2463
|
+
export declare const DECISION_TYPES_V1: readonly ["agent.question", "agent.approval", "agent.review", "agent.setup", "agent.routine_run.failed", "agent.message", "connector.connection.reauth_required", "connector.connection.error", "connector.connection.send_not_granted", "record.assigned", "record.mentioned", "access.granted", "environment.build.failed", "person.decision", "bundle.setup"];
|
|
2448
2464
|
export type DecisionV1Type = (typeof DECISION_TYPES_V1)[number];
|
|
2449
2465
|
/** Kinds that await an answer: always delivered in-app (#5448), and the only ones « À trancher » lists. */
|
|
2450
2466
|
export declare const ACTIONABLE_DECISION_KINDS: readonly ["question", "approval", "review", "handoff"];
|
|
@@ -2492,6 +2508,10 @@ export declare const DECISION_TYPE_KINDS: {
|
|
|
2492
2508
|
readonly kind: "handoff";
|
|
2493
2509
|
readonly area: "connectors";
|
|
2494
2510
|
};
|
|
2511
|
+
readonly "connector.connection.send_not_granted": {
|
|
2512
|
+
readonly kind: "handoff";
|
|
2513
|
+
readonly area: "connectors";
|
|
2514
|
+
};
|
|
2495
2515
|
readonly "record.assigned": {
|
|
2496
2516
|
readonly kind: "fyi";
|
|
2497
2517
|
readonly area: "assignment";
|
|
@@ -2566,6 +2586,7 @@ export declare const decisionSchema: z$2.ZodObject<{
|
|
|
2566
2586
|
record: "record";
|
|
2567
2587
|
routine: "routine";
|
|
2568
2588
|
session: "session";
|
|
2589
|
+
url: "url";
|
|
2569
2590
|
}>;
|
|
2570
2591
|
targetId: z$2.ZodString;
|
|
2571
2592
|
objectName: z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -2688,6 +2709,7 @@ export declare const decisionWithRecipientSchema: z$2.ZodObject<{
|
|
|
2688
2709
|
record: "record";
|
|
2689
2710
|
routine: "routine";
|
|
2690
2711
|
session: "session";
|
|
2712
|
+
url: "url";
|
|
2691
2713
|
}>;
|
|
2692
2714
|
targetId: z$2.ZodString;
|
|
2693
2715
|
objectName: z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -2842,6 +2864,7 @@ export declare const decisionListResultSchema: z$2.ZodObject<{
|
|
|
2842
2864
|
record: "record";
|
|
2843
2865
|
routine: "routine";
|
|
2844
2866
|
session: "session";
|
|
2867
|
+
url: "url";
|
|
2845
2868
|
}>;
|
|
2846
2869
|
targetId: z$2.ZodString;
|
|
2847
2870
|
objectName: z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -6306,97 +6329,6 @@ export declare const servedAsIsAttributeSchema: z$2.ZodObject<{
|
|
|
6306
6329
|
user: "user";
|
|
6307
6330
|
}>;
|
|
6308
6331
|
}, z$2.core.$strip>;
|
|
6309
|
-
/** What a sync reports; `applied: false` when the workspace already held this hash. */
|
|
6310
|
-
export declare const syncBundleResultSchema: z$2.ZodObject<{
|
|
6311
|
-
applied: z$2.ZodBoolean;
|
|
6312
|
-
hash: z$2.ZodString;
|
|
6313
|
-
objects: z$2.ZodOptional<z$2.ZodObject<{
|
|
6314
|
-
created: z$2.ZodNumber;
|
|
6315
|
-
updated: z$2.ZodNumber;
|
|
6316
|
-
deleted: z$2.ZodNumber;
|
|
6317
|
-
}, z$2.core.$strip>>;
|
|
6318
|
-
views: z$2.ZodOptional<z$2.ZodObject<{
|
|
6319
|
-
created: z$2.ZodNumber;
|
|
6320
|
-
updated: z$2.ZodNumber;
|
|
6321
|
-
adopted: z$2.ZodNumber;
|
|
6322
|
-
released: z$2.ZodNumber;
|
|
6323
|
-
}, z$2.core.$strip>>;
|
|
6324
|
-
deferredRetypes: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
6325
|
-
object: z$2.ZodString;
|
|
6326
|
-
attribute: z$2.ZodString;
|
|
6327
|
-
to: z$2.ZodEnum<{
|
|
6328
|
-
checkbox: "checkbox";
|
|
6329
|
-
currency: "currency";
|
|
6330
|
-
date: "date";
|
|
6331
|
-
document: "document";
|
|
6332
|
-
formula: "formula";
|
|
6333
|
-
location: "location";
|
|
6334
|
-
multiselect: "multiselect";
|
|
6335
|
-
number: "number";
|
|
6336
|
-
phone: "phone";
|
|
6337
|
-
relation: "relation";
|
|
6338
|
-
richtext: "richtext";
|
|
6339
|
-
rollup: "rollup";
|
|
6340
|
-
select: "select";
|
|
6341
|
-
status: "status";
|
|
6342
|
-
text: "text";
|
|
6343
|
-
user: "user";
|
|
6344
|
-
}>;
|
|
6345
|
-
dependents: z$2.ZodArray<z$2.ZodObject<{
|
|
6346
|
-
kind: z$2.ZodEnum<{
|
|
6347
|
-
content: "content";
|
|
6348
|
-
formula: "formula";
|
|
6349
|
-
page: "page";
|
|
6350
|
-
relation: "relation";
|
|
6351
|
-
rollup: "rollup";
|
|
6352
|
-
trigger: "trigger";
|
|
6353
|
-
view: "view";
|
|
6354
|
-
}>;
|
|
6355
|
-
label: z$2.ZodString;
|
|
6356
|
-
}, z$2.core.$strip>>;
|
|
6357
|
-
hiddenDependents: z$2.ZodNumber;
|
|
6358
|
-
}, z$2.core.$strip>>>;
|
|
6359
|
-
servedAsIs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
6360
|
-
object: z$2.ZodString;
|
|
6361
|
-
attribute: z$2.ZodString;
|
|
6362
|
-
declared: z$2.ZodEnum<{
|
|
6363
|
-
checkbox: "checkbox";
|
|
6364
|
-
currency: "currency";
|
|
6365
|
-
date: "date";
|
|
6366
|
-
document: "document";
|
|
6367
|
-
formula: "formula";
|
|
6368
|
-
location: "location";
|
|
6369
|
-
multiselect: "multiselect";
|
|
6370
|
-
number: "number";
|
|
6371
|
-
phone: "phone";
|
|
6372
|
-
relation: "relation";
|
|
6373
|
-
richtext: "richtext";
|
|
6374
|
-
rollup: "rollup";
|
|
6375
|
-
select: "select";
|
|
6376
|
-
status: "status";
|
|
6377
|
-
text: "text";
|
|
6378
|
-
user: "user";
|
|
6379
|
-
}>;
|
|
6380
|
-
stored: z$2.ZodEnum<{
|
|
6381
|
-
checkbox: "checkbox";
|
|
6382
|
-
currency: "currency";
|
|
6383
|
-
date: "date";
|
|
6384
|
-
document: "document";
|
|
6385
|
-
formula: "formula";
|
|
6386
|
-
location: "location";
|
|
6387
|
-
multiselect: "multiselect";
|
|
6388
|
-
number: "number";
|
|
6389
|
-
phone: "phone";
|
|
6390
|
-
relation: "relation";
|
|
6391
|
-
richtext: "richtext";
|
|
6392
|
-
rollup: "rollup";
|
|
6393
|
-
select: "select";
|
|
6394
|
-
status: "status";
|
|
6395
|
-
text: "text";
|
|
6396
|
-
user: "user";
|
|
6397
|
-
}>;
|
|
6398
|
-
}, z$2.core.$strip>>>;
|
|
6399
|
-
}, z$2.core.$strip>;
|
|
6400
6332
|
export declare const bundlePieceKindSchema: z$2.ZodEnum<{
|
|
6401
6333
|
agent: "agent";
|
|
6402
6334
|
object: "object";
|
|
@@ -6455,6 +6387,7 @@ export declare const bundleUpdatePieceKindSchema: z$2.ZodEnum<{
|
|
|
6455
6387
|
object: "object";
|
|
6456
6388
|
option: "option";
|
|
6457
6389
|
page: "page";
|
|
6390
|
+
skill: "skill";
|
|
6458
6391
|
tab: "tab";
|
|
6459
6392
|
view: "view";
|
|
6460
6393
|
}>;
|
|
@@ -6469,6 +6402,7 @@ export declare const bundleUpdateGroupSchema: z$2.ZodEnum<{
|
|
|
6469
6402
|
conflict: "conflict";
|
|
6470
6403
|
missing: "missing";
|
|
6471
6404
|
notApplied: "notApplied";
|
|
6405
|
+
removed: "removed";
|
|
6472
6406
|
updated: "updated";
|
|
6473
6407
|
}>;
|
|
6474
6408
|
/**
|
|
@@ -6480,18 +6414,28 @@ export declare const bundleUpdateGroupSchema: z$2.ZodEnum<{
|
|
|
6480
6414
|
* refused here), `precondition` (the new type would not offer every value
|
|
6481
6415
|
* stored), `dependents` (something that reads the attribute cannot follow,
|
|
6482
6416
|
* `dependents` and `hiddenDependents`), `conversion` (the type change needs
|
|
6483
|
-
* its values converted, not available yet)
|
|
6417
|
+
* its values converted, not available yet), `usedByBundle` (another installed
|
|
6418
|
+
* bundle uses the one removed), `takeoverOfAdded` (a sync would take over a
|
|
6419
|
+
* piece an added bundle installed).
|
|
6484
6420
|
*/
|
|
6485
6421
|
export declare const bundleUpdateReasonCodeSchema: z$2.ZodEnum<{
|
|
6422
|
+
ambiguousRename: "ambiguousRename";
|
|
6423
|
+
blockedByWorkspace: "blockedByWorkspace";
|
|
6486
6424
|
conversion: "conversion";
|
|
6487
6425
|
dependents: "dependents";
|
|
6426
|
+
heldWith: "heldWith";
|
|
6427
|
+
invalid: "invalid";
|
|
6488
6428
|
lossy: "lossy";
|
|
6489
6429
|
move: "move";
|
|
6490
6430
|
nameTaken: "nameTaken";
|
|
6431
|
+
needsConfirmation: "needsConfirmation";
|
|
6491
6432
|
precondition: "precondition";
|
|
6492
6433
|
refused: "refused";
|
|
6493
6434
|
required: "required";
|
|
6435
|
+
resolved: "resolved";
|
|
6494
6436
|
retype: "retype";
|
|
6437
|
+
takeoverOfAdded: "takeoverOfAdded";
|
|
6438
|
+
usedByBundle: "usedByBundle";
|
|
6495
6439
|
}>;
|
|
6496
6440
|
export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
|
|
6497
6441
|
pieceId: z$2.ZodString;
|
|
@@ -6501,6 +6445,7 @@ export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
|
|
|
6501
6445
|
object: "object";
|
|
6502
6446
|
option: "option";
|
|
6503
6447
|
page: "page";
|
|
6448
|
+
skill: "skill";
|
|
6504
6449
|
tab: "tab";
|
|
6505
6450
|
view: "view";
|
|
6506
6451
|
}>;
|
|
@@ -6509,19 +6454,28 @@ export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
|
|
|
6509
6454
|
conflict: "conflict";
|
|
6510
6455
|
missing: "missing";
|
|
6511
6456
|
notApplied: "notApplied";
|
|
6457
|
+
removed: "removed";
|
|
6512
6458
|
updated: "updated";
|
|
6513
6459
|
}>;
|
|
6514
6460
|
label: z$2.ZodString;
|
|
6515
6461
|
reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6462
|
+
ambiguousRename: "ambiguousRename";
|
|
6463
|
+
blockedByWorkspace: "blockedByWorkspace";
|
|
6516
6464
|
conversion: "conversion";
|
|
6517
6465
|
dependents: "dependents";
|
|
6466
|
+
heldWith: "heldWith";
|
|
6467
|
+
invalid: "invalid";
|
|
6518
6468
|
lossy: "lossy";
|
|
6519
6469
|
move: "move";
|
|
6520
6470
|
nameTaken: "nameTaken";
|
|
6471
|
+
needsConfirmation: "needsConfirmation";
|
|
6521
6472
|
precondition: "precondition";
|
|
6522
6473
|
refused: "refused";
|
|
6523
6474
|
required: "required";
|
|
6475
|
+
resolved: "resolved";
|
|
6524
6476
|
retype: "retype";
|
|
6477
|
+
takeoverOfAdded: "takeoverOfAdded";
|
|
6478
|
+
usedByBundle: "usedByBundle";
|
|
6525
6479
|
}>>;
|
|
6526
6480
|
reasonName: z$2.ZodOptional<z$2.ZodString>;
|
|
6527
6481
|
fromType: z$2.ZodOptional<z$2.ZodEnum<{
|
|
@@ -6574,6 +6528,240 @@ export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
|
|
|
6574
6528
|
}, z$2.core.$strip>>>;
|
|
6575
6529
|
hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
|
|
6576
6530
|
}, z$2.core.$strip>;
|
|
6531
|
+
/**
|
|
6532
|
+
* What uninstalling an added bundle would delete, counted as the system (a
|
|
6533
|
+
* piece another member made private shows in the totals, never by name), and
|
|
6534
|
+
* the fingerprint `bundles.remove` must carry. `blockedBy` names the bundles
|
|
6535
|
+
* that use it: while one does, the uninstall is refused.
|
|
6536
|
+
*/
|
|
6537
|
+
export declare const bundleRemovalPreviewSchema: z$2.ZodObject<{
|
|
6538
|
+
blockedBy: z$2.ZodArray<z$2.ZodString>;
|
|
6539
|
+
objects: z$2.ZodArray<z$2.ZodObject<{
|
|
6540
|
+
name: z$2.ZodString;
|
|
6541
|
+
label: z$2.ZodString;
|
|
6542
|
+
records: z$2.ZodNumber;
|
|
6543
|
+
}, z$2.core.$strip>>;
|
|
6544
|
+
views: z$2.ZodNumber;
|
|
6545
|
+
viewContents: z$2.ZodArray<z$2.ZodObject<{
|
|
6546
|
+
viewLabel: z$2.ZodString;
|
|
6547
|
+
contentLabel: z$2.ZodString;
|
|
6548
|
+
}, z$2.core.$strip>>;
|
|
6549
|
+
hiddenViewContents: z$2.ZodNumber;
|
|
6550
|
+
pages: z$2.ZodNumber;
|
|
6551
|
+
routines: z$2.ZodNumber;
|
|
6552
|
+
agents: z$2.ZodNumber;
|
|
6553
|
+
skills: z$2.ZodNumber;
|
|
6554
|
+
inboundRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6555
|
+
objectLabel: z$2.ZodString;
|
|
6556
|
+
attributeLabel: z$2.ZodString;
|
|
6557
|
+
}, z$2.core.$strip>>;
|
|
6558
|
+
computedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
6559
|
+
objectLabel: z$2.ZodString;
|
|
6560
|
+
attributeLabel: z$2.ZodString;
|
|
6561
|
+
}, z$2.core.$strip>>;
|
|
6562
|
+
prunedRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6563
|
+
objectLabel: z$2.ZodString;
|
|
6564
|
+
attributeLabel: z$2.ZodString;
|
|
6565
|
+
}, z$2.core.$strip>>;
|
|
6566
|
+
emptiedViews: z$2.ZodArray<z$2.ZodObject<{
|
|
6567
|
+
viewLabel: z$2.ZodString;
|
|
6568
|
+
}, z$2.core.$strip>>;
|
|
6569
|
+
citedBy: z$2.ZodArray<z$2.ZodObject<{
|
|
6570
|
+
objectLabel: z$2.ZodString;
|
|
6571
|
+
attributeLabel: z$2.ZodOptional<z$2.ZodString>;
|
|
6572
|
+
viewLabel: z$2.ZodOptional<z$2.ZodString>;
|
|
6573
|
+
}, z$2.core.$strip>>;
|
|
6574
|
+
fingerprint: z$2.ZodString;
|
|
6575
|
+
}, z$2.core.$strip>;
|
|
6576
|
+
/** What a removal takes with it outside the removed objects: one contract for the preview and for a plan's removal rows. */
|
|
6577
|
+
export declare const bundleRemovalCascadeSchema: z$2.ZodObject<{
|
|
6578
|
+
viewContents: z$2.ZodArray<z$2.ZodObject<{
|
|
6579
|
+
viewLabel: z$2.ZodString;
|
|
6580
|
+
contentLabel: z$2.ZodString;
|
|
6581
|
+
}, z$2.core.$strip>>;
|
|
6582
|
+
hiddenViewContents: z$2.ZodNumber;
|
|
6583
|
+
inboundRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6584
|
+
objectLabel: z$2.ZodString;
|
|
6585
|
+
attributeLabel: z$2.ZodString;
|
|
6586
|
+
}, z$2.core.$strip>>;
|
|
6587
|
+
computedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
6588
|
+
objectLabel: z$2.ZodString;
|
|
6589
|
+
attributeLabel: z$2.ZodString;
|
|
6590
|
+
}, z$2.core.$strip>>;
|
|
6591
|
+
prunedRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6592
|
+
objectLabel: z$2.ZodString;
|
|
6593
|
+
attributeLabel: z$2.ZodString;
|
|
6594
|
+
}, z$2.core.$strip>>;
|
|
6595
|
+
emptiedViews: z$2.ZodArray<z$2.ZodObject<{
|
|
6596
|
+
viewLabel: z$2.ZodString;
|
|
6597
|
+
}, z$2.core.$strip>>;
|
|
6598
|
+
}, z$2.core.$strip>;
|
|
6599
|
+
/** One piece an update or a sync would remove; `records` and `cascade` are left out when redacted. */
|
|
6600
|
+
export declare const bundleRemovalRowSchema: z$2.ZodObject<{
|
|
6601
|
+
pieceId: z$2.ZodString;
|
|
6602
|
+
kind: z$2.ZodEnum<{
|
|
6603
|
+
agent: "agent";
|
|
6604
|
+
attribute: "attribute";
|
|
6605
|
+
object: "object";
|
|
6606
|
+
option: "option";
|
|
6607
|
+
page: "page";
|
|
6608
|
+
skill: "skill";
|
|
6609
|
+
tab: "tab";
|
|
6610
|
+
view: "view";
|
|
6611
|
+
}>;
|
|
6612
|
+
label: z$2.ZodString;
|
|
6613
|
+
records: z$2.ZodOptional<z$2.ZodNumber>;
|
|
6614
|
+
cascade: z$2.ZodOptional<z$2.ZodObject<{
|
|
6615
|
+
viewContents: z$2.ZodArray<z$2.ZodObject<{
|
|
6616
|
+
viewLabel: z$2.ZodString;
|
|
6617
|
+
contentLabel: z$2.ZodString;
|
|
6618
|
+
}, z$2.core.$strip>>;
|
|
6619
|
+
hiddenViewContents: z$2.ZodNumber;
|
|
6620
|
+
inboundRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6621
|
+
objectLabel: z$2.ZodString;
|
|
6622
|
+
attributeLabel: z$2.ZodString;
|
|
6623
|
+
}, z$2.core.$strip>>;
|
|
6624
|
+
computedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
6625
|
+
objectLabel: z$2.ZodString;
|
|
6626
|
+
attributeLabel: z$2.ZodString;
|
|
6627
|
+
}, z$2.core.$strip>>;
|
|
6628
|
+
prunedRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6629
|
+
objectLabel: z$2.ZodString;
|
|
6630
|
+
attributeLabel: z$2.ZodString;
|
|
6631
|
+
}, z$2.core.$strip>>;
|
|
6632
|
+
emptiedViews: z$2.ZodArray<z$2.ZodObject<{
|
|
6633
|
+
viewLabel: z$2.ZodString;
|
|
6634
|
+
}, z$2.core.$strip>>;
|
|
6635
|
+
}, z$2.core.$strip>>;
|
|
6636
|
+
}, z$2.core.$strip>;
|
|
6637
|
+
/** What a sync reports; `applied: false` when the workspace already held this hash. */
|
|
6638
|
+
export declare const syncBundleResultSchema: z$2.ZodObject<{
|
|
6639
|
+
applied: z$2.ZodBoolean;
|
|
6640
|
+
hash: z$2.ZodString;
|
|
6641
|
+
objects: z$2.ZodOptional<z$2.ZodObject<{
|
|
6642
|
+
created: z$2.ZodNumber;
|
|
6643
|
+
updated: z$2.ZodNumber;
|
|
6644
|
+
deleted: z$2.ZodNumber;
|
|
6645
|
+
}, z$2.core.$strip>>;
|
|
6646
|
+
views: z$2.ZodOptional<z$2.ZodObject<{
|
|
6647
|
+
created: z$2.ZodNumber;
|
|
6648
|
+
updated: z$2.ZodNumber;
|
|
6649
|
+
adopted: z$2.ZodNumber;
|
|
6650
|
+
released: z$2.ZodNumber;
|
|
6651
|
+
}, z$2.core.$strip>>;
|
|
6652
|
+
deferredRetypes: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
6653
|
+
object: z$2.ZodString;
|
|
6654
|
+
attribute: z$2.ZodString;
|
|
6655
|
+
to: z$2.ZodEnum<{
|
|
6656
|
+
checkbox: "checkbox";
|
|
6657
|
+
currency: "currency";
|
|
6658
|
+
date: "date";
|
|
6659
|
+
document: "document";
|
|
6660
|
+
formula: "formula";
|
|
6661
|
+
location: "location";
|
|
6662
|
+
multiselect: "multiselect";
|
|
6663
|
+
number: "number";
|
|
6664
|
+
phone: "phone";
|
|
6665
|
+
relation: "relation";
|
|
6666
|
+
richtext: "richtext";
|
|
6667
|
+
rollup: "rollup";
|
|
6668
|
+
select: "select";
|
|
6669
|
+
status: "status";
|
|
6670
|
+
text: "text";
|
|
6671
|
+
user: "user";
|
|
6672
|
+
}>;
|
|
6673
|
+
dependents: z$2.ZodArray<z$2.ZodObject<{
|
|
6674
|
+
kind: z$2.ZodEnum<{
|
|
6675
|
+
content: "content";
|
|
6676
|
+
formula: "formula";
|
|
6677
|
+
page: "page";
|
|
6678
|
+
relation: "relation";
|
|
6679
|
+
rollup: "rollup";
|
|
6680
|
+
trigger: "trigger";
|
|
6681
|
+
view: "view";
|
|
6682
|
+
}>;
|
|
6683
|
+
label: z$2.ZodString;
|
|
6684
|
+
}, z$2.core.$strip>>;
|
|
6685
|
+
hiddenDependents: z$2.ZodNumber;
|
|
6686
|
+
}, z$2.core.$strip>>>;
|
|
6687
|
+
servedAsIs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
6688
|
+
object: z$2.ZodString;
|
|
6689
|
+
attribute: z$2.ZodString;
|
|
6690
|
+
declared: z$2.ZodEnum<{
|
|
6691
|
+
checkbox: "checkbox";
|
|
6692
|
+
currency: "currency";
|
|
6693
|
+
date: "date";
|
|
6694
|
+
document: "document";
|
|
6695
|
+
formula: "formula";
|
|
6696
|
+
location: "location";
|
|
6697
|
+
multiselect: "multiselect";
|
|
6698
|
+
number: "number";
|
|
6699
|
+
phone: "phone";
|
|
6700
|
+
relation: "relation";
|
|
6701
|
+
richtext: "richtext";
|
|
6702
|
+
rollup: "rollup";
|
|
6703
|
+
select: "select";
|
|
6704
|
+
status: "status";
|
|
6705
|
+
text: "text";
|
|
6706
|
+
user: "user";
|
|
6707
|
+
}>;
|
|
6708
|
+
stored: z$2.ZodEnum<{
|
|
6709
|
+
checkbox: "checkbox";
|
|
6710
|
+
currency: "currency";
|
|
6711
|
+
date: "date";
|
|
6712
|
+
document: "document";
|
|
6713
|
+
formula: "formula";
|
|
6714
|
+
location: "location";
|
|
6715
|
+
multiselect: "multiselect";
|
|
6716
|
+
number: "number";
|
|
6717
|
+
phone: "phone";
|
|
6718
|
+
relation: "relation";
|
|
6719
|
+
richtext: "richtext";
|
|
6720
|
+
rollup: "rollup";
|
|
6721
|
+
select: "select";
|
|
6722
|
+
status: "status";
|
|
6723
|
+
text: "text";
|
|
6724
|
+
user: "user";
|
|
6725
|
+
}>;
|
|
6726
|
+
}, z$2.core.$strip>>>;
|
|
6727
|
+
pendingRemovals: z$2.ZodArray<z$2.ZodObject<{
|
|
6728
|
+
pieceId: z$2.ZodString;
|
|
6729
|
+
kind: z$2.ZodEnum<{
|
|
6730
|
+
agent: "agent";
|
|
6731
|
+
attribute: "attribute";
|
|
6732
|
+
object: "object";
|
|
6733
|
+
option: "option";
|
|
6734
|
+
page: "page";
|
|
6735
|
+
skill: "skill";
|
|
6736
|
+
tab: "tab";
|
|
6737
|
+
view: "view";
|
|
6738
|
+
}>;
|
|
6739
|
+
label: z$2.ZodString;
|
|
6740
|
+
records: z$2.ZodOptional<z$2.ZodNumber>;
|
|
6741
|
+
cascade: z$2.ZodOptional<z$2.ZodObject<{
|
|
6742
|
+
viewContents: z$2.ZodArray<z$2.ZodObject<{
|
|
6743
|
+
viewLabel: z$2.ZodString;
|
|
6744
|
+
contentLabel: z$2.ZodString;
|
|
6745
|
+
}, z$2.core.$strip>>;
|
|
6746
|
+
hiddenViewContents: z$2.ZodNumber;
|
|
6747
|
+
inboundRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6748
|
+
objectLabel: z$2.ZodString;
|
|
6749
|
+
attributeLabel: z$2.ZodString;
|
|
6750
|
+
}, z$2.core.$strip>>;
|
|
6751
|
+
computedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
6752
|
+
objectLabel: z$2.ZodString;
|
|
6753
|
+
attributeLabel: z$2.ZodString;
|
|
6754
|
+
}, z$2.core.$strip>>;
|
|
6755
|
+
prunedRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6756
|
+
objectLabel: z$2.ZodString;
|
|
6757
|
+
attributeLabel: z$2.ZodString;
|
|
6758
|
+
}, z$2.core.$strip>>;
|
|
6759
|
+
emptiedViews: z$2.ZodArray<z$2.ZodObject<{
|
|
6760
|
+
viewLabel: z$2.ZodString;
|
|
6761
|
+
}, z$2.core.$strip>>;
|
|
6762
|
+
}, z$2.core.$strip>>;
|
|
6763
|
+
}, z$2.core.$strip>>;
|
|
6764
|
+
}, z$2.core.$strip>;
|
|
6577
6765
|
/** What updating an added bundle would do, and the fingerprint `bundles.update` must carry. */
|
|
6578
6766
|
export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
|
|
6579
6767
|
pieces: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -6584,6 +6772,7 @@ export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
|
|
|
6584
6772
|
object: "object";
|
|
6585
6773
|
option: "option";
|
|
6586
6774
|
page: "page";
|
|
6775
|
+
skill: "skill";
|
|
6587
6776
|
tab: "tab";
|
|
6588
6777
|
view: "view";
|
|
6589
6778
|
}>;
|
|
@@ -6592,19 +6781,28 @@ export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
|
|
|
6592
6781
|
conflict: "conflict";
|
|
6593
6782
|
missing: "missing";
|
|
6594
6783
|
notApplied: "notApplied";
|
|
6784
|
+
removed: "removed";
|
|
6595
6785
|
updated: "updated";
|
|
6596
6786
|
}>;
|
|
6597
6787
|
label: z$2.ZodString;
|
|
6598
6788
|
reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6789
|
+
ambiguousRename: "ambiguousRename";
|
|
6790
|
+
blockedByWorkspace: "blockedByWorkspace";
|
|
6599
6791
|
conversion: "conversion";
|
|
6600
6792
|
dependents: "dependents";
|
|
6793
|
+
heldWith: "heldWith";
|
|
6794
|
+
invalid: "invalid";
|
|
6601
6795
|
lossy: "lossy";
|
|
6602
6796
|
move: "move";
|
|
6603
6797
|
nameTaken: "nameTaken";
|
|
6798
|
+
needsConfirmation: "needsConfirmation";
|
|
6604
6799
|
precondition: "precondition";
|
|
6605
6800
|
refused: "refused";
|
|
6606
6801
|
required: "required";
|
|
6802
|
+
resolved: "resolved";
|
|
6607
6803
|
retype: "retype";
|
|
6804
|
+
takeoverOfAdded: "takeoverOfAdded";
|
|
6805
|
+
usedByBundle: "usedByBundle";
|
|
6608
6806
|
}>>;
|
|
6609
6807
|
reasonName: z$2.ZodOptional<z$2.ZodString>;
|
|
6610
6808
|
fromType: z$2.ZodOptional<z$2.ZodEnum<{
|
|
@@ -6657,56 +6855,182 @@ export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
|
|
|
6657
6855
|
}, z$2.core.$strip>>>;
|
|
6658
6856
|
hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
|
|
6659
6857
|
}, z$2.core.$strip>>;
|
|
6858
|
+
removals: z$2.ZodArray<z$2.ZodObject<{
|
|
6859
|
+
pieceId: z$2.ZodString;
|
|
6860
|
+
kind: z$2.ZodEnum<{
|
|
6861
|
+
agent: "agent";
|
|
6862
|
+
attribute: "attribute";
|
|
6863
|
+
object: "object";
|
|
6864
|
+
option: "option";
|
|
6865
|
+
page: "page";
|
|
6866
|
+
skill: "skill";
|
|
6867
|
+
tab: "tab";
|
|
6868
|
+
view: "view";
|
|
6869
|
+
}>;
|
|
6870
|
+
label: z$2.ZodString;
|
|
6871
|
+
records: z$2.ZodOptional<z$2.ZodNumber>;
|
|
6872
|
+
cascade: z$2.ZodOptional<z$2.ZodObject<{
|
|
6873
|
+
viewContents: z$2.ZodArray<z$2.ZodObject<{
|
|
6874
|
+
viewLabel: z$2.ZodString;
|
|
6875
|
+
contentLabel: z$2.ZodString;
|
|
6876
|
+
}, z$2.core.$strip>>;
|
|
6877
|
+
hiddenViewContents: z$2.ZodNumber;
|
|
6878
|
+
inboundRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6879
|
+
objectLabel: z$2.ZodString;
|
|
6880
|
+
attributeLabel: z$2.ZodString;
|
|
6881
|
+
}, z$2.core.$strip>>;
|
|
6882
|
+
computedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
6883
|
+
objectLabel: z$2.ZodString;
|
|
6884
|
+
attributeLabel: z$2.ZodString;
|
|
6885
|
+
}, z$2.core.$strip>>;
|
|
6886
|
+
prunedRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
6887
|
+
objectLabel: z$2.ZodString;
|
|
6888
|
+
attributeLabel: z$2.ZodString;
|
|
6889
|
+
}, z$2.core.$strip>>;
|
|
6890
|
+
emptiedViews: z$2.ZodArray<z$2.ZodObject<{
|
|
6891
|
+
viewLabel: z$2.ZodString;
|
|
6892
|
+
}, z$2.core.$strip>>;
|
|
6893
|
+
}, z$2.core.$strip>>;
|
|
6894
|
+
}, z$2.core.$strip>>;
|
|
6895
|
+
totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
|
|
6660
6896
|
fingerprint: z$2.ZodString;
|
|
6661
6897
|
}, z$2.core.$strip>;
|
|
6662
|
-
/** `bundles.
|
|
6663
|
-
export declare const
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6898
|
+
/** What syncing a bundle would do, and the fingerprint `bundles.sync` must carry to apply it. */
|
|
6899
|
+
export declare const bundleSyncPreviewSchema: z$2.ZodObject<{
|
|
6900
|
+
pieces: z$2.ZodArray<z$2.ZodObject<{
|
|
6901
|
+
pieceId: z$2.ZodString;
|
|
6902
|
+
kind: z$2.ZodEnum<{
|
|
6903
|
+
agent: "agent";
|
|
6904
|
+
attribute: "attribute";
|
|
6905
|
+
object: "object";
|
|
6906
|
+
option: "option";
|
|
6907
|
+
page: "page";
|
|
6908
|
+
skill: "skill";
|
|
6909
|
+
tab: "tab";
|
|
6910
|
+
view: "view";
|
|
6911
|
+
}>;
|
|
6912
|
+
group: z$2.ZodEnum<{
|
|
6913
|
+
added: "added";
|
|
6914
|
+
conflict: "conflict";
|
|
6915
|
+
missing: "missing";
|
|
6916
|
+
notApplied: "notApplied";
|
|
6917
|
+
removed: "removed";
|
|
6918
|
+
updated: "updated";
|
|
6919
|
+
}>;
|
|
6676
6920
|
label: z$2.ZodString;
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6921
|
+
reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6922
|
+
ambiguousRename: "ambiguousRename";
|
|
6923
|
+
blockedByWorkspace: "blockedByWorkspace";
|
|
6924
|
+
conversion: "conversion";
|
|
6925
|
+
dependents: "dependents";
|
|
6926
|
+
heldWith: "heldWith";
|
|
6927
|
+
invalid: "invalid";
|
|
6928
|
+
lossy: "lossy";
|
|
6929
|
+
move: "move";
|
|
6930
|
+
nameTaken: "nameTaken";
|
|
6931
|
+
needsConfirmation: "needsConfirmation";
|
|
6932
|
+
precondition: "precondition";
|
|
6933
|
+
refused: "refused";
|
|
6934
|
+
required: "required";
|
|
6935
|
+
resolved: "resolved";
|
|
6936
|
+
retype: "retype";
|
|
6937
|
+
takeoverOfAdded: "takeoverOfAdded";
|
|
6938
|
+
usedByBundle: "usedByBundle";
|
|
6939
|
+
}>>;
|
|
6940
|
+
reasonName: z$2.ZodOptional<z$2.ZodString>;
|
|
6941
|
+
fromType: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6942
|
+
checkbox: "checkbox";
|
|
6943
|
+
currency: "currency";
|
|
6944
|
+
date: "date";
|
|
6945
|
+
document: "document";
|
|
6946
|
+
formula: "formula";
|
|
6947
|
+
location: "location";
|
|
6948
|
+
multiselect: "multiselect";
|
|
6949
|
+
number: "number";
|
|
6950
|
+
phone: "phone";
|
|
6951
|
+
relation: "relation";
|
|
6952
|
+
richtext: "richtext";
|
|
6953
|
+
rollup: "rollup";
|
|
6954
|
+
select: "select";
|
|
6955
|
+
status: "status";
|
|
6956
|
+
text: "text";
|
|
6957
|
+
user: "user";
|
|
6958
|
+
}>>;
|
|
6959
|
+
toType: z$2.ZodOptional<z$2.ZodEnum<{
|
|
6960
|
+
checkbox: "checkbox";
|
|
6961
|
+
currency: "currency";
|
|
6962
|
+
date: "date";
|
|
6963
|
+
document: "document";
|
|
6964
|
+
formula: "formula";
|
|
6965
|
+
location: "location";
|
|
6966
|
+
multiselect: "multiselect";
|
|
6967
|
+
number: "number";
|
|
6968
|
+
phone: "phone";
|
|
6969
|
+
relation: "relation";
|
|
6970
|
+
richtext: "richtext";
|
|
6971
|
+
rollup: "rollup";
|
|
6972
|
+
select: "select";
|
|
6973
|
+
status: "status";
|
|
6974
|
+
text: "text";
|
|
6975
|
+
user: "user";
|
|
6976
|
+
}>>;
|
|
6977
|
+
dependents: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
6978
|
+
kind: z$2.ZodEnum<{
|
|
6979
|
+
content: "content";
|
|
6980
|
+
formula: "formula";
|
|
6981
|
+
page: "page";
|
|
6982
|
+
relation: "relation";
|
|
6983
|
+
rollup: "rollup";
|
|
6984
|
+
trigger: "trigger";
|
|
6985
|
+
view: "view";
|
|
6986
|
+
}>;
|
|
6987
|
+
label: z$2.ZodString;
|
|
6988
|
+
}, z$2.core.$strip>>>;
|
|
6989
|
+
hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
|
|
6703
6990
|
}, z$2.core.$strip>>;
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6991
|
+
removals: z$2.ZodArray<z$2.ZodObject<{
|
|
6992
|
+
pieceId: z$2.ZodString;
|
|
6993
|
+
kind: z$2.ZodEnum<{
|
|
6994
|
+
agent: "agent";
|
|
6995
|
+
attribute: "attribute";
|
|
6996
|
+
object: "object";
|
|
6997
|
+
option: "option";
|
|
6998
|
+
page: "page";
|
|
6999
|
+
skill: "skill";
|
|
7000
|
+
tab: "tab";
|
|
7001
|
+
view: "view";
|
|
7002
|
+
}>;
|
|
7003
|
+
label: z$2.ZodString;
|
|
7004
|
+
records: z$2.ZodOptional<z$2.ZodNumber>;
|
|
7005
|
+
cascade: z$2.ZodOptional<z$2.ZodObject<{
|
|
7006
|
+
viewContents: z$2.ZodArray<z$2.ZodObject<{
|
|
7007
|
+
viewLabel: z$2.ZodString;
|
|
7008
|
+
contentLabel: z$2.ZodString;
|
|
7009
|
+
}, z$2.core.$strip>>;
|
|
7010
|
+
hiddenViewContents: z$2.ZodNumber;
|
|
7011
|
+
inboundRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
7012
|
+
objectLabel: z$2.ZodString;
|
|
7013
|
+
attributeLabel: z$2.ZodString;
|
|
7014
|
+
}, z$2.core.$strip>>;
|
|
7015
|
+
computedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
7016
|
+
objectLabel: z$2.ZodString;
|
|
7017
|
+
attributeLabel: z$2.ZodString;
|
|
7018
|
+
}, z$2.core.$strip>>;
|
|
7019
|
+
prunedRelations: z$2.ZodArray<z$2.ZodObject<{
|
|
7020
|
+
objectLabel: z$2.ZodString;
|
|
7021
|
+
attributeLabel: z$2.ZodString;
|
|
7022
|
+
}, z$2.core.$strip>>;
|
|
7023
|
+
emptiedViews: z$2.ZodArray<z$2.ZodObject<{
|
|
7024
|
+
viewLabel: z$2.ZodString;
|
|
7025
|
+
}, z$2.core.$strip>>;
|
|
7026
|
+
}, z$2.core.$strip>>;
|
|
6708
7027
|
}, z$2.core.$strip>>;
|
|
6709
7028
|
fingerprint: z$2.ZodString;
|
|
7029
|
+
totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
|
|
7030
|
+
}, z$2.core.$strip>;
|
|
7031
|
+
/** `bundles.update`: how many pieces the update wrote. */
|
|
7032
|
+
export declare const bundleUpdateResultSchema: z$2.ZodObject<{
|
|
7033
|
+
applied: z$2.ZodNumber;
|
|
6710
7034
|
}, z$2.core.$strip>;
|
|
6711
7035
|
/** What adding wrote: one entry per object, view or agent created, under the bundle that declares it. */
|
|
6712
7036
|
export declare const bundleAddResultSchema: z$2.ZodObject<{
|
|
@@ -6795,11 +7119,16 @@ export type AvailableBundleSummary = z$1.output<typeof availableBundleSummarySch
|
|
|
6795
7119
|
* What `PUT /bundles/:name` carries: the built bundle, plus the renames and
|
|
6796
7120
|
* retypes this sync resolves (#4362). `resolutions` travel outside the hash: a
|
|
6797
7121
|
* bundle whose hash is already held is not pushed, and its resolutions with it.
|
|
6798
|
-
*
|
|
7122
|
+
* `fingerprint` and `confirmedRecords` travel outside the hash too. The path
|
|
7123
|
+
* `:name` is authoritative: a body `name`, when present, must equal it.
|
|
6799
7124
|
*/
|
|
6800
7125
|
export type SyncBundleInput = Omit<BuiltBundle, "name"> & {
|
|
6801
7126
|
name?: string;
|
|
6802
7127
|
resolutions?: SchemaSourceResolution[];
|
|
7128
|
+
/** The sync preview's fingerprint, tying the apply to what the admin saw; outside the hash. */
|
|
7129
|
+
fingerprint?: string;
|
|
7130
|
+
/** The record total the admin confirmed for the removals; outside the hash. */
|
|
7131
|
+
confirmedRecords?: number;
|
|
6803
7132
|
};
|
|
6804
7133
|
/** What a sync reports; `applied: false` when the workspace already held this hash. */
|
|
6805
7134
|
export type SyncBundleResult = z$1.output<typeof syncBundleResultSchema>;
|
|
@@ -6816,8 +7145,14 @@ export type BundleUpdateReasonCode = z$1.output<typeof bundleUpdateReasonCodeSch
|
|
|
6816
7145
|
export type BundleUpdatePiece = z$1.output<typeof bundleUpdatePieceSchema>;
|
|
6817
7146
|
/** What updating an added bundle would do, and the fingerprint `bundles.update` must carry. */
|
|
6818
7147
|
export type BundleUpdatePlan = z$1.output<typeof bundleUpdatePlanSchema>;
|
|
7148
|
+
/** What syncing a bundle would do, and the fingerprint `bundles.sync` carries to confirm it. */
|
|
7149
|
+
export type BundleSyncPreview = z$1.output<typeof bundleSyncPreviewSchema>;
|
|
6819
7150
|
/** What uninstalling an added bundle would delete, and the fingerprint `bundles.remove` must carry. */
|
|
6820
7151
|
export type BundleRemovalPreview = z$1.output<typeof bundleRemovalPreviewSchema>;
|
|
7152
|
+
/** What a removal takes with it outside the removed pieces. */
|
|
7153
|
+
export type BundleRemovalCascade = z$1.output<typeof bundleRemovalCascadeSchema>;
|
|
7154
|
+
/** One piece an update or a sync would remove; `records` and `cascade` are absent when redacted. */
|
|
7155
|
+
export type BundleRemovalRow = z$1.output<typeof bundleRemovalRowSchema>;
|
|
6821
7156
|
/** What adding wrote: one entry per object, view or agent created, under the bundle that declares it. */
|
|
6822
7157
|
export type BundleAddResult = z$1.output<typeof bundleAddResultSchema>;
|
|
6823
7158
|
/** Where an added piece came from; stamped on every draft operation it produces. */
|
|
@@ -7209,6 +7544,8 @@ export interface DraftableObject extends Omit<UpdateObjectInput, "metadata" | "l
|
|
|
7209
7544
|
name: string;
|
|
7210
7545
|
label: string;
|
|
7211
7546
|
icon?: string;
|
|
7547
|
+
/** Declared in code (`system: true`): a draft never removes it. Absent on any other object. */
|
|
7548
|
+
system?: true;
|
|
7212
7549
|
}
|
|
7213
7550
|
export interface DraftableAttribute {
|
|
7214
7551
|
id: string;
|
|
@@ -8683,16 +9020,26 @@ export type CalendarConnectorProviderId = Extract<ConnectorProviderId, "google-c
|
|
|
8683
9020
|
/** Connection lifecycle status, mirrored from `connector_connections.status`. */
|
|
8684
9021
|
export declare const CONNECTION_STATUS_IDS: readonly ["active", "reauth_required", "error", "disconnected"];
|
|
8685
9022
|
export type ConnectionStatusId = (typeof CONNECTION_STATUS_IDS)[number];
|
|
8686
|
-
/**
|
|
8687
|
-
|
|
8688
|
-
|
|
9023
|
+
/**
|
|
9024
|
+
* What a consent may be asked for beyond `read`, which is always requested. A
|
|
9025
|
+
* mailbox asks everything in one consent, whatever is named here; a calendar
|
|
9026
|
+
* asks `modify` when the person authorizes writing.
|
|
9027
|
+
*/
|
|
9028
|
+
export type ConnectorCapability = "read" | "modify";
|
|
9029
|
+
/**
|
|
9030
|
+
* Derived from the scopes the provider actually granted, never from what was
|
|
9031
|
+
* requested. `canModify` is changing things at the provider (a mailbox's
|
|
9032
|
+
* triage, a calendar's events). `canSend` is a mailbox sending, read from its
|
|
9033
|
+
* send scopes alone: a grant older than the one consent may send without
|
|
9034
|
+
* `canModify`, or read without either.
|
|
9035
|
+
*/
|
|
8689
9036
|
export declare const connectionCapabilitiesSchema: z$2.ZodObject<{
|
|
8690
9037
|
canRead: z$2.ZodBoolean;
|
|
8691
9038
|
canModify: z$2.ZodBoolean;
|
|
8692
9039
|
canSend: z$2.ZodBoolean;
|
|
8693
9040
|
}, z$2.core.$strip>;
|
|
8694
9041
|
export type ConnectionCapabilities = z$2.output<typeof connectionCapabilitiesSchema>;
|
|
8695
|
-
/** What to ask for so a re-consent keeps what the connection already holds
|
|
9042
|
+
/** What to ask for so a re-consent keeps what the connection already holds beyond `read`. */
|
|
8696
9043
|
export declare function requestedCapabilities(held: ConnectionCapabilities): Exclude<ConnectorCapability, "read">[];
|
|
8697
9044
|
/**
|
|
8698
9045
|
* How far a connection's full-history walk (backfill) has gone.
|
|
@@ -8767,7 +9114,7 @@ export interface StartConnectorAuthInput {
|
|
|
8767
9114
|
/** Page the callback 302s back to, on a configured allowed origin. Exactly one of this or `mode`. */
|
|
8768
9115
|
returnUrl?: string;
|
|
8769
9116
|
mode?: "desktop";
|
|
8770
|
-
/** Beyond `read`, which is always requested. */
|
|
9117
|
+
/** Beyond `read`, which is always requested. A mail provider asks its full set whatever is passed. */
|
|
8771
9118
|
capabilities?: Exclude<ConnectorCapability, "read">[];
|
|
8772
9119
|
/**
|
|
8773
9120
|
* The account a reconnect names (its address): the provider offers it first.
|
|
@@ -8788,14 +9135,6 @@ export declare const connectorProvidersResultSchema: z$2.ZodObject<{
|
|
|
8788
9135
|
"outlook-calendar": "outlook-calendar";
|
|
8789
9136
|
slack: "slack";
|
|
8790
9137
|
}>>;
|
|
8791
|
-
mailTriageProviders: z$2.ZodArray<z$2.ZodEnum<{
|
|
8792
|
-
github: "github";
|
|
8793
|
-
gmail: "gmail";
|
|
8794
|
-
"google-calendar": "google-calendar";
|
|
8795
|
-
outlook: "outlook";
|
|
8796
|
-
"outlook-calendar": "outlook-calendar";
|
|
8797
|
-
slack: "slack";
|
|
8798
|
-
}>>;
|
|
8799
9138
|
}, z$2.core.$strip>;
|
|
8800
9139
|
export type ConnectorProvidersResult = z$2.output<typeof connectorProvidersResultSchema>;
|
|
8801
9140
|
/** Input to attach a Microsoft shared mailbox to an existing Outlook connection. */
|
|
@@ -15946,6 +16285,7 @@ export declare const tenantSettingsSchema: z$2.ZodObject<{
|
|
|
15946
16285
|
memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
|
|
15947
16286
|
findImages: z$2.ZodBoolean;
|
|
15948
16287
|
memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
|
|
16288
|
+
runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
|
|
15949
16289
|
}, z$2.core.$strip>;
|
|
15950
16290
|
export type TenantSettings = z$2.output<typeof tenantSettingsSchema>;
|
|
15951
16291
|
/** `GET /tenant/settings`: the settings plus what the deployment can do. */
|
|
@@ -15960,6 +16300,7 @@ export declare const tenantSettingsResponseSchema: z$2.ZodObject<{
|
|
|
15960
16300
|
memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
|
|
15961
16301
|
findImages: z$2.ZodBoolean;
|
|
15962
16302
|
memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
|
|
16303
|
+
runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
|
|
15963
16304
|
meetingBotConfigured: z$2.ZodBoolean;
|
|
15964
16305
|
meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
|
|
15965
16306
|
logosConfigured: z$2.ZodBoolean;
|
|
@@ -16849,6 +17190,8 @@ export declare const LINK_COOKIE_MAX_AGE_MS: number;
|
|
|
16849
17190
|
export declare const HARNESS_BRIDGE_PORT = 4000;
|
|
16850
17191
|
/** Every kind of machine key, as `GET /machines`' `kind` filter takes it (machines and links §1). */
|
|
16851
17192
|
export declare const MACHINE_KEY_KINDS: readonly ["conversation", "run", "change"];
|
|
17193
|
+
/** The icon a custom object takes when its definition names none: a deterministic catalogue fallback. */
|
|
17194
|
+
export declare const DEFAULT_CUSTOM_OBJECT_ICON: IconName;
|
|
16852
17195
|
/** Configuration for the `agent()` builder factory. */
|
|
16853
17196
|
export interface AgentBuilderConfig {
|
|
16854
17197
|
/** Technical name — stable identity used by the boot sync to match DB rows. */
|
|
@@ -21036,11 +21379,7 @@ export declare const mailboxAccountSchema: z$2.ZodObject<{
|
|
|
21036
21379
|
error: "error";
|
|
21037
21380
|
reauth_required: "reauth_required";
|
|
21038
21381
|
}>;
|
|
21039
|
-
|
|
21040
|
-
canRead: z$2.ZodBoolean;
|
|
21041
|
-
canModify: z$2.ZodBoolean;
|
|
21042
|
-
canSend: z$2.ZodBoolean;
|
|
21043
|
-
}, z$2.core.$strip>;
|
|
21382
|
+
canSend: z$2.ZodBoolean;
|
|
21044
21383
|
}, z$2.core.$strip>;
|
|
21045
21384
|
export type MailboxAccount = z$2.output<typeof mailboxAccountSchema>;
|
|
21046
21385
|
/** How the mailbox lists mail: one row per conversation, or one row per message. */
|
|
@@ -21160,7 +21499,6 @@ export declare const replyDefaultsSchema: z$2.ZodObject<{
|
|
|
21160
21499
|
gmail: "gmail";
|
|
21161
21500
|
outlook: "outlook";
|
|
21162
21501
|
}>;
|
|
21163
|
-
canSend: z$2.ZodBoolean;
|
|
21164
21502
|
parentEmailId: z$2.ZodString;
|
|
21165
21503
|
subject: z$2.ZodString;
|
|
21166
21504
|
selfAddresses: z$2.ZodArray<z$2.ZodString>;
|
|
@@ -21366,7 +21704,6 @@ export declare const mailboxThreadDetailSchema: z$2.ZodObject<{
|
|
|
21366
21704
|
gmail: "gmail";
|
|
21367
21705
|
outlook: "outlook";
|
|
21368
21706
|
}>;
|
|
21369
|
-
canSend: z$2.ZodBoolean;
|
|
21370
21707
|
parentEmailId: z$2.ZodString;
|
|
21371
21708
|
subject: z$2.ZodString;
|
|
21372
21709
|
selfAddresses: z$2.ZodArray<z$2.ZodString>;
|
|
@@ -23121,6 +23458,7 @@ export declare const recordsBulkUpdateResultSchema: z$2.ZodObject<{
|
|
|
23121
23458
|
readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
|
|
23122
23459
|
readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
|
|
23123
23460
|
readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
|
|
23461
|
+
readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
|
|
23124
23462
|
readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
|
|
23125
23463
|
readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
|
|
23126
23464
|
readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
|
|
@@ -23131,6 +23469,7 @@ export declare const recordsBulkUpdateResultSchema: z$2.ZodObject<{
|
|
|
23131
23469
|
readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
|
|
23132
23470
|
readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
|
|
23133
23471
|
readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
|
|
23472
|
+
readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
|
|
23134
23473
|
readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
|
|
23135
23474
|
readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
|
|
23136
23475
|
readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
|
|
@@ -23278,6 +23617,7 @@ export declare const recordsBulkUpdateResultSchema: z$2.ZodObject<{
|
|
|
23278
23617
|
readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
|
|
23279
23618
|
readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
|
|
23280
23619
|
readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
|
|
23620
|
+
readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
|
|
23281
23621
|
readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
|
|
23282
23622
|
readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
|
|
23283
23623
|
readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";
|
|
@@ -23327,6 +23667,7 @@ export declare const recordsBulkDeleteResultSchema: z$2.ZodObject<{
|
|
|
23327
23667
|
readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
|
|
23328
23668
|
readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
|
|
23329
23669
|
readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
|
|
23670
|
+
readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
|
|
23330
23671
|
readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
|
|
23331
23672
|
readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
|
|
23332
23673
|
readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
|
|
@@ -23337,6 +23678,7 @@ export declare const recordsBulkDeleteResultSchema: z$2.ZodObject<{
|
|
|
23337
23678
|
readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
|
|
23338
23679
|
readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
|
|
23339
23680
|
readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
|
|
23681
|
+
readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
|
|
23340
23682
|
readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
|
|
23341
23683
|
readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
|
|
23342
23684
|
readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
|
|
@@ -23484,6 +23826,7 @@ export declare const recordsBulkDeleteResultSchema: z$2.ZodObject<{
|
|
|
23484
23826
|
readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
|
|
23485
23827
|
readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
|
|
23486
23828
|
readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
|
|
23829
|
+
readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
|
|
23487
23830
|
readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
|
|
23488
23831
|
readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
|
|
23489
23832
|
readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";
|
|
@@ -25340,7 +25683,7 @@ export declare function parseNewsIntensity(raw: unknown): NewsIntensity;
|
|
|
25340
25683
|
/** `null` for a kind this version does not know — the entry is kept, without a marker. */
|
|
25341
25684
|
export declare function parseNewsTarget(raw: string): NewsTarget | null;
|
|
25342
25685
|
export declare function formatNewsTarget(target: NewsTarget): string;
|
|
25343
|
-
/** Semver order with prereleases; `null` when either side is not semver. The only version comparison news uses. */
|
|
25686
|
+
/** Semver 2.0.0 order with prereleases, build metadata ignored (§10); `null` when either side is not semver. The only version comparison news uses. */
|
|
25344
25687
|
export declare function compareVersions(a: string, b: string): -1 | 0 | 1 | null;
|
|
25345
25688
|
export declare function isSemver(value: string): boolean;
|
|
25346
25689
|
/**
|