@sanity/client 8.6.2 → 8.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -6
- package/dist/collaboration.d.ts +33 -0
- package/dist/collaboration.js +2 -0
- package/dist/getCommentTargetDocumentRef-B8NuiBjG.js +31 -0
- package/dist/getCommentTargetDocumentRef-B8NuiBjG.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +28 -5
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +450 -110
- package/dist/index.node.js +54 -6
- package/dist/index.node.js.map +1 -1
- package/dist/media-library.d.ts +1 -1
- package/dist/{types-B1XLvey7.d.ts → types-Cov8gzNZ.d.ts} +451 -111
- package/package.json +4 -3
- package/src/collaboration/comments.ts +30 -7
- package/src/collaboration/getCommentTargetDocumentRef.ts +45 -0
- package/src/collaboration/index.ts +1 -0
- package/src/collaboration/types.ts +105 -13
- package/src/context/openapi.json +1011 -698
- package/src/context/types.gen.ts +324 -182
- package/src/types.ts +70 -0
package/dist/index.node.d.ts
CHANGED
|
@@ -1369,6 +1369,7 @@ interface CollaborationCommentDocument extends SanityDocument {
|
|
|
1369
1369
|
* Each endpoint pairs the `_key` of a Portable Text block with a character
|
|
1370
1370
|
* offset into that block's plain text.
|
|
1371
1371
|
*
|
|
1372
|
+
* @deprecated Use {@link CollaborationCommentAnchor}.
|
|
1372
1373
|
* @alpha
|
|
1373
1374
|
*/
|
|
1374
1375
|
interface CollaborationCommentRange {
|
|
@@ -1382,8 +1383,8 @@ interface CollaborationCommentRange {
|
|
|
1382
1383
|
};
|
|
1383
1384
|
}
|
|
1384
1385
|
/**
|
|
1385
|
-
* Portable Text covering
|
|
1386
|
-
* from the
|
|
1386
|
+
* Portable Text covering an inline comment anchor. Callers can send just the
|
|
1387
|
+
* blocks from the anchor start `_key` through end `_key`, or the full field.
|
|
1387
1388
|
*
|
|
1388
1389
|
* @alpha
|
|
1389
1390
|
*/
|
|
@@ -1392,16 +1393,38 @@ type CollaborationCommentFieldValue = Array<{
|
|
|
1392
1393
|
_key: string;
|
|
1393
1394
|
[key: string]: Any;
|
|
1394
1395
|
}>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Where in `path` a comment is anchored.
|
|
1398
|
+
*
|
|
1399
|
+
* For `portable-text`, each endpoint pairs the `_key` of a Portable Text
|
|
1400
|
+
* block with a character offset into that block's plain text. An optional
|
|
1401
|
+
* `fieldValue` is Portable Text covering the anchor. When set, the selection
|
|
1402
|
+
* is resolved from those blocks instead of from the live document.
|
|
1403
|
+
*
|
|
1404
|
+
* @alpha
|
|
1405
|
+
*/
|
|
1406
|
+
type CollaborationCommentAnchor = {
|
|
1407
|
+
type: 'portable-text';
|
|
1408
|
+
start: {
|
|
1409
|
+
_key: string;
|
|
1410
|
+
offset: number;
|
|
1411
|
+
};
|
|
1412
|
+
end: {
|
|
1413
|
+
_key: string;
|
|
1414
|
+
offset: number;
|
|
1415
|
+
};
|
|
1416
|
+
fieldValue?: CollaborationCommentFieldValue;
|
|
1417
|
+
};
|
|
1395
1418
|
/**
|
|
1396
1419
|
* Target for a top-level comment. Inline selections require both `path` and
|
|
1397
|
-
* `
|
|
1420
|
+
* `anchor`; field-level comments may set `path` alone.
|
|
1398
1421
|
*
|
|
1399
1422
|
* The created comment stores this in a different shape: `path` becomes
|
|
1400
|
-
* `target.path.field`, and `
|
|
1423
|
+
* `target.path.field`, and `anchor` is resolved against the document into
|
|
1401
1424
|
* `target.path.selection` and `contentSnapshot` rather than being stored.
|
|
1402
1425
|
*
|
|
1403
|
-
*
|
|
1404
|
-
*
|
|
1426
|
+
* Deprecated `range` + top-level `fieldValue` are still accepted and converted
|
|
1427
|
+
* to a `portable-text` `anchor` before the request is sent.
|
|
1405
1428
|
*
|
|
1406
1429
|
* @alpha
|
|
1407
1430
|
*/
|
|
@@ -1412,16 +1435,41 @@ type CollaborationCommentTarget = {
|
|
|
1412
1435
|
} & ({
|
|
1413
1436
|
/** Path to the field containing the inline comment selection */
|
|
1414
1437
|
path: string;
|
|
1438
|
+
anchor: CollaborationCommentAnchor;
|
|
1439
|
+
/**
|
|
1440
|
+
* @deprecated Use `anchor`.
|
|
1441
|
+
*/
|
|
1442
|
+
range?: never;
|
|
1443
|
+
/**
|
|
1444
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1445
|
+
*/
|
|
1446
|
+
fieldValue?: never;
|
|
1447
|
+
} | {
|
|
1448
|
+
/** Path to the field containing the inline comment selection */
|
|
1449
|
+
path: string;
|
|
1450
|
+
/**
|
|
1451
|
+
* @deprecated Use `anchor`.
|
|
1452
|
+
*/
|
|
1415
1453
|
range: CollaborationCommentRange;
|
|
1416
1454
|
/**
|
|
1417
|
-
* Portable Text covering the `range`. When set, the
|
|
1455
|
+
* Portable Text covering the `range`. When set, the selection is resolved
|
|
1418
1456
|
* from these blocks instead of from the live document.
|
|
1457
|
+
*
|
|
1458
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1419
1459
|
*/
|
|
1420
1460
|
fieldValue?: CollaborationCommentFieldValue;
|
|
1461
|
+
anchor?: never;
|
|
1421
1462
|
} | {
|
|
1422
1463
|
/** Path to the commented field */
|
|
1423
1464
|
path?: string;
|
|
1465
|
+
anchor?: never;
|
|
1466
|
+
/**
|
|
1467
|
+
* @deprecated Use `anchor`.
|
|
1468
|
+
*/
|
|
1424
1469
|
range?: never;
|
|
1470
|
+
/**
|
|
1471
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1472
|
+
*/
|
|
1425
1473
|
fieldValue?: never;
|
|
1426
1474
|
});
|
|
1427
1475
|
/**
|
|
@@ -1449,7 +1497,11 @@ type CollaborationCommentTarget = {
|
|
|
1449
1497
|
* documentId: 'doc-1',
|
|
1450
1498
|
* documentType: 'article',
|
|
1451
1499
|
* path: 'body',
|
|
1452
|
-
*
|
|
1500
|
+
* anchor: {
|
|
1501
|
+
* type: 'portable-text',
|
|
1502
|
+
* start: {_key: 'block-1', offset: 0},
|
|
1503
|
+
* end: {_key: 'block-1', offset: 5},
|
|
1504
|
+
* },
|
|
1453
1505
|
* },
|
|
1454
1506
|
* })
|
|
1455
1507
|
* ```
|
|
@@ -1481,11 +1533,13 @@ type CollaborationCommentCreate = {
|
|
|
1481
1533
|
/**
|
|
1482
1534
|
* Fields that can be updated on an existing comment.
|
|
1483
1535
|
*
|
|
1484
|
-
*
|
|
1536
|
+
* An `anchor` re-anchors the comment within the field it already targets.
|
|
1485
1537
|
* Pass `null` to remove the selection and leave a field-level comment.
|
|
1486
|
-
* An optional `fieldValue`
|
|
1487
|
-
*
|
|
1488
|
-
*
|
|
1538
|
+
* An optional `fieldValue` on a `portable-text` anchor is resolved from those
|
|
1539
|
+
* blocks instead of from the live document.
|
|
1540
|
+
*
|
|
1541
|
+
* Deprecated `range` + top-level `fieldValue` (and `range: null`) are still
|
|
1542
|
+
* accepted and converted to `anchor` before the request is sent.
|
|
1489
1543
|
*
|
|
1490
1544
|
* @alpha
|
|
1491
1545
|
*/
|
|
@@ -1495,17 +1549,57 @@ type CollaborationCommentUpdate = {
|
|
|
1495
1549
|
/** Cascades to the comment's replies */
|
|
1496
1550
|
status?: CollaborationCommentStatus;
|
|
1497
1551
|
} & ({
|
|
1552
|
+
anchor: CollaborationCommentAnchor;
|
|
1553
|
+
/**
|
|
1554
|
+
* @deprecated Use `anchor`.
|
|
1555
|
+
*/
|
|
1556
|
+
range?: never;
|
|
1557
|
+
/**
|
|
1558
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1559
|
+
*/
|
|
1560
|
+
fieldValue?: never;
|
|
1561
|
+
} | {
|
|
1562
|
+
anchor: null;
|
|
1563
|
+
/**
|
|
1564
|
+
* @deprecated Use `anchor`.
|
|
1565
|
+
*/
|
|
1566
|
+
range?: never;
|
|
1567
|
+
/**
|
|
1568
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1569
|
+
*/
|
|
1570
|
+
fieldValue?: never;
|
|
1571
|
+
} | {
|
|
1572
|
+
/**
|
|
1573
|
+
* @deprecated Use `anchor`.
|
|
1574
|
+
*/
|
|
1498
1575
|
range: CollaborationCommentRange;
|
|
1499
1576
|
/**
|
|
1500
|
-
* Portable Text covering the `range`. When set, the
|
|
1577
|
+
* Portable Text covering the `range`. When set, the selection is resolved
|
|
1501
1578
|
* from these blocks instead of from the live document.
|
|
1579
|
+
*
|
|
1580
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1502
1581
|
*/
|
|
1503
1582
|
fieldValue?: CollaborationCommentFieldValue;
|
|
1583
|
+
anchor?: never;
|
|
1504
1584
|
} | {
|
|
1585
|
+
/**
|
|
1586
|
+
* @deprecated Use `anchor: null`.
|
|
1587
|
+
*/
|
|
1505
1588
|
range: null;
|
|
1589
|
+
/**
|
|
1590
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1591
|
+
*/
|
|
1506
1592
|
fieldValue?: never;
|
|
1593
|
+
anchor?: never;
|
|
1507
1594
|
} | {
|
|
1595
|
+
anchor?: undefined;
|
|
1596
|
+
/**
|
|
1597
|
+
* @deprecated Use `anchor`.
|
|
1598
|
+
*/
|
|
1508
1599
|
range?: undefined;
|
|
1600
|
+
/**
|
|
1601
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1602
|
+
*/
|
|
1509
1603
|
fieldValue?: never;
|
|
1510
1604
|
});
|
|
1511
1605
|
/**
|
|
@@ -1783,7 +1877,7 @@ interface paths {
|
|
|
1783
1877
|
post?: never;
|
|
1784
1878
|
/**
|
|
1785
1879
|
* Delete a knowledge base
|
|
1786
|
-
* @description Removes the knowledge base and everything it owns: sources, imports,
|
|
1880
|
+
* @description Removes the knowledge base and everything it owns: sources, imports, revisions, the content documents in the bound dataset, and the stored source files. Returns 409 `buildInFlight` while a build, refresh, apply, or import is running, since that work would write files back after the delete; retry once it finishes.
|
|
1787
1881
|
*/
|
|
1788
1882
|
delete: operations['deleteKnowledgeBase'];
|
|
1789
1883
|
options?: never;
|
|
@@ -1890,7 +1984,7 @@ interface paths {
|
|
|
1890
1984
|
put?: never;
|
|
1891
1985
|
/**
|
|
1892
1986
|
* Start a file-upload import
|
|
1893
|
-
* @description Creates a file-upload import and returns a single-use signed upload URL. PUT the file bytes to it, then call `POST .../imports/uploads/{importId}/complete` to start ingestion. The bytes never pass through this API. Supports the `Idempotency-Key` header.
|
|
1987
|
+
* @description Creates a file-upload import and returns a single-use signed upload URL, valid for one hour. PUT the file bytes to it, then call `POST .../imports/uploads/{importId}/complete` to start ingestion. When `contentType` is set, the PUT must send the same `Content-Type` header; when omitted, the PUT may send any or none. An import that is not completed within 24 hours is deleted. The bytes never pass through this API. Supports the `Idempotency-Key` header.
|
|
1894
1988
|
*/
|
|
1895
1989
|
post: operations['startUpload'];
|
|
1896
1990
|
delete?: never;
|
|
@@ -1974,7 +2068,7 @@ interface paths {
|
|
|
1974
2068
|
put?: never;
|
|
1975
2069
|
/**
|
|
1976
2070
|
* Author a human instruction
|
|
1977
|
-
* @description Creates a standing rule
|
|
2071
|
+
* @description Creates a standing rule for how entries citing its sources are written. Tie it to one or more sources with `scopeSourceIds`; every rule is source-tied. Pass `rebuildPaths` to immediately rebuild those entries under the new rule; the response carries the rebuild job id, or null when the rebuild could not start (the rule is saved either way). Pass `verified` after a completed synchronous contradiction check to skip the background one; if the requested rebuild fails to start, the background check runs anyway so the contradicting pages get filed as issues.
|
|
1978
2072
|
*/
|
|
1979
2073
|
post: operations['createInstruction'];
|
|
1980
2074
|
delete?: never;
|
|
@@ -2078,7 +2172,7 @@ interface paths {
|
|
|
2078
2172
|
put?: never;
|
|
2079
2173
|
/**
|
|
2080
2174
|
* Resolve a conflict issue
|
|
2081
|
-
* @description Settles a conflict
|
|
2175
|
+
* @description Settles a conflict by choosing a side: `resolution` is an index into `content.sides`. Index 0 of a per-entry conflict is the entry's own position, so choosing it keeps the body; any other side rewrites the entry (the returned `jobId` tracks it). Only conflict issues are resolvable, and a dismissed issue must be reopened first. The decision becomes a standing instruction for every future build; `resolvedBy` records who decided.
|
|
2082
2176
|
*/
|
|
2083
2177
|
post: operations['resolveIssue'];
|
|
2084
2178
|
delete?: never;
|
|
@@ -2096,7 +2190,7 @@ interface paths {
|
|
|
2096
2190
|
};
|
|
2097
2191
|
/**
|
|
2098
2192
|
* Get a job by id
|
|
2099
|
-
* @description Returns the status of a job, such as a build or
|
|
2193
|
+
* @description Returns the status of a job, such as a build, an import, or a refresh. Job ids come from the endpoint that queued the work.
|
|
2100
2194
|
*/
|
|
2101
2195
|
get: operations['getJob'];
|
|
2102
2196
|
put?: never;
|
|
@@ -2201,7 +2295,7 @@ interface paths {
|
|
|
2201
2295
|
get?: never;
|
|
2202
2296
|
/**
|
|
2203
2297
|
* Record a conversation
|
|
2204
|
-
* @description Upserts the conversation telemetry for one thread. `threadId` identifies the conversation within your organization — reuse means the same conversation. Messages replace the stored transcript wholesale; `metadata`, `sharing`, and model fields only overwrite when present. Last write per thread wins — retries are safe. `sharing` records your opt-in to share telemetry with Sanity: metadata-only metrics, or full transcripts.
|
|
2298
|
+
* @description Upserts the conversation telemetry for one thread. `threadId` identifies the conversation within your organization — reuse means the same conversation. Messages replace the stored transcript wholesale; `metadata`, `sharing`, and model fields only overwrite when present. `tokenUsage` accumulates: each save reports one generation call and the stored value is the conversation total, added only when the save changes the transcript so retries never double-count. Report a failure as `error` on the message where it happened: a tool result for a failed tool call, an assistant message for a turn that failed instead of answering. The dashboard highlights conversations with a failed turn and counts failed tool calls separately, since agents often recover from one. Last write per thread wins — retries are safe. `sharing` records your opt-in to share telemetry with Sanity: metadata-only metrics, or full transcripts.
|
|
2205
2299
|
*/
|
|
2206
2300
|
put: operations['saveConversation'];
|
|
2207
2301
|
post?: never;
|
|
@@ -2252,6 +2346,13 @@ interface components {
|
|
|
2252
2346
|
* @enum {string|null}
|
|
2253
2347
|
*/
|
|
2254
2348
|
toolType: 'call' | 'result' | null;
|
|
2349
|
+
/** @default null */
|
|
2350
|
+
error: string | null;
|
|
2351
|
+
/**
|
|
2352
|
+
* Format: date-time
|
|
2353
|
+
* @default null
|
|
2354
|
+
*/
|
|
2355
|
+
timestamp: string | null;
|
|
2255
2356
|
}[];
|
|
2256
2357
|
modelProvider: string | null;
|
|
2257
2358
|
modelId: string | null;
|
|
@@ -2400,23 +2501,39 @@ interface components {
|
|
|
2400
2501
|
/** @description IssueContent */
|
|
2401
2502
|
content: {
|
|
2402
2503
|
/** @enum {string} */
|
|
2403
|
-
|
|
2504
|
+
severity: 'critical' | 'suggestion';
|
|
2505
|
+
scopePath: string;
|
|
2506
|
+
issue: string;
|
|
2507
|
+
suggestedFix: string;
|
|
2508
|
+
/** @enum {string} */
|
|
2509
|
+
kind: 'conflict';
|
|
2510
|
+
claimKey: string;
|
|
2511
|
+
sides: {
|
|
2512
|
+
claim: string;
|
|
2513
|
+
value?: string;
|
|
2514
|
+
entryPaths?: string[];
|
|
2515
|
+
sourceIds?: string[];
|
|
2516
|
+
/** @description ConflictSpan */
|
|
2517
|
+
span?: {
|
|
2518
|
+
sourceId: string;
|
|
2519
|
+
lineStart: number;
|
|
2520
|
+
lineEnd: number;
|
|
2521
|
+
};
|
|
2522
|
+
/** @enum {string} */
|
|
2523
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
2524
|
+
}[];
|
|
2525
|
+
suggested?: number;
|
|
2526
|
+
} | {
|
|
2404
2527
|
/** @enum {string} */
|
|
2405
2528
|
severity: 'critical' | 'suggestion';
|
|
2406
2529
|
scopePath: string;
|
|
2407
2530
|
issue: string;
|
|
2408
2531
|
suggestedFix: string;
|
|
2532
|
+
/** @enum {string} */
|
|
2533
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
2409
2534
|
citedSourceIds?: string[];
|
|
2410
2535
|
claimKey?: string;
|
|
2411
2536
|
involvedScopes?: string[];
|
|
2412
|
-
currentClaim?: string;
|
|
2413
|
-
alternativeClaim?: string;
|
|
2414
|
-
/** @enum {string} */
|
|
2415
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
2416
|
-
/** @enum {string} */
|
|
2417
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
2418
|
-
/** @enum {string} */
|
|
2419
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
2420
2537
|
};
|
|
2421
2538
|
fingerprint: string;
|
|
2422
2539
|
revisionId: string | null;
|
|
@@ -2443,23 +2560,39 @@ interface components {
|
|
|
2443
2560
|
/** @description IssueContent */
|
|
2444
2561
|
content: {
|
|
2445
2562
|
/** @enum {string} */
|
|
2446
|
-
|
|
2563
|
+
severity: 'critical' | 'suggestion';
|
|
2564
|
+
scopePath: string;
|
|
2565
|
+
issue: string;
|
|
2566
|
+
suggestedFix: string;
|
|
2567
|
+
/** @enum {string} */
|
|
2568
|
+
kind: 'conflict';
|
|
2569
|
+
claimKey: string;
|
|
2570
|
+
sides: {
|
|
2571
|
+
claim: string;
|
|
2572
|
+
value?: string;
|
|
2573
|
+
entryPaths?: string[];
|
|
2574
|
+
sourceIds?: string[];
|
|
2575
|
+
/** @description ConflictSpan */
|
|
2576
|
+
span?: {
|
|
2577
|
+
sourceId: string;
|
|
2578
|
+
lineStart: number;
|
|
2579
|
+
lineEnd: number;
|
|
2580
|
+
};
|
|
2581
|
+
/** @enum {string} */
|
|
2582
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
2583
|
+
}[];
|
|
2584
|
+
suggested?: number;
|
|
2585
|
+
} | {
|
|
2447
2586
|
/** @enum {string} */
|
|
2448
2587
|
severity: 'critical' | 'suggestion';
|
|
2449
2588
|
scopePath: string;
|
|
2450
2589
|
issue: string;
|
|
2451
2590
|
suggestedFix: string;
|
|
2591
|
+
/** @enum {string} */
|
|
2592
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
2452
2593
|
citedSourceIds?: string[];
|
|
2453
2594
|
claimKey?: string;
|
|
2454
2595
|
involvedScopes?: string[];
|
|
2455
|
-
currentClaim?: string;
|
|
2456
|
-
alternativeClaim?: string;
|
|
2457
|
-
/** @enum {string} */
|
|
2458
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
2459
|
-
/** @enum {string} */
|
|
2460
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
2461
|
-
/** @enum {string} */
|
|
2462
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
2463
2596
|
};
|
|
2464
2597
|
fingerprint: string;
|
|
2465
2598
|
revisionId: string | null;
|
|
@@ -2472,8 +2605,7 @@ interface components {
|
|
|
2472
2605
|
/** @enum {string} */
|
|
2473
2606
|
kind: 'user' | 'robot';
|
|
2474
2607
|
} | null;
|
|
2475
|
-
|
|
2476
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
2608
|
+
resolution: number | null;
|
|
2477
2609
|
} | {
|
|
2478
2610
|
_id: string;
|
|
2479
2611
|
_rev: string;
|
|
@@ -2489,23 +2621,39 @@ interface components {
|
|
|
2489
2621
|
/** @description IssueContent */
|
|
2490
2622
|
content: {
|
|
2491
2623
|
/** @enum {string} */
|
|
2492
|
-
|
|
2624
|
+
severity: 'critical' | 'suggestion';
|
|
2625
|
+
scopePath: string;
|
|
2626
|
+
issue: string;
|
|
2627
|
+
suggestedFix: string;
|
|
2628
|
+
/** @enum {string} */
|
|
2629
|
+
kind: 'conflict';
|
|
2630
|
+
claimKey: string;
|
|
2631
|
+
sides: {
|
|
2632
|
+
claim: string;
|
|
2633
|
+
value?: string;
|
|
2634
|
+
entryPaths?: string[];
|
|
2635
|
+
sourceIds?: string[];
|
|
2636
|
+
/** @description ConflictSpan */
|
|
2637
|
+
span?: {
|
|
2638
|
+
sourceId: string;
|
|
2639
|
+
lineStart: number;
|
|
2640
|
+
lineEnd: number;
|
|
2641
|
+
};
|
|
2642
|
+
/** @enum {string} */
|
|
2643
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
2644
|
+
}[];
|
|
2645
|
+
suggested?: number;
|
|
2646
|
+
} | {
|
|
2493
2647
|
/** @enum {string} */
|
|
2494
2648
|
severity: 'critical' | 'suggestion';
|
|
2495
2649
|
scopePath: string;
|
|
2496
2650
|
issue: string;
|
|
2497
2651
|
suggestedFix: string;
|
|
2652
|
+
/** @enum {string} */
|
|
2653
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
2498
2654
|
citedSourceIds?: string[];
|
|
2499
2655
|
claimKey?: string;
|
|
2500
2656
|
involvedScopes?: string[];
|
|
2501
|
-
currentClaim?: string;
|
|
2502
|
-
alternativeClaim?: string;
|
|
2503
|
-
/** @enum {string} */
|
|
2504
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
2505
|
-
/** @enum {string} */
|
|
2506
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
2507
|
-
/** @enum {string} */
|
|
2508
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
2509
2657
|
};
|
|
2510
2658
|
fingerprint: string;
|
|
2511
2659
|
revisionId: string | null;
|
|
@@ -2627,6 +2775,11 @@ interface operations {
|
|
|
2627
2775
|
used: number;
|
|
2628
2776
|
limit: number;
|
|
2629
2777
|
} | null;
|
|
2778
|
+
/** @description PlanRestriction */
|
|
2779
|
+
buildRestriction: {
|
|
2780
|
+
code: string;
|
|
2781
|
+
message: string;
|
|
2782
|
+
} | null;
|
|
2630
2783
|
refreshEnabled: boolean;
|
|
2631
2784
|
/** @enum {string} */
|
|
2632
2785
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -2724,6 +2877,11 @@ interface operations {
|
|
|
2724
2877
|
used: number;
|
|
2725
2878
|
limit: number;
|
|
2726
2879
|
} | null;
|
|
2880
|
+
/** @description PlanRestriction */
|
|
2881
|
+
buildRestriction: {
|
|
2882
|
+
code: string;
|
|
2883
|
+
message: string;
|
|
2884
|
+
} | null;
|
|
2727
2885
|
refreshEnabled: boolean;
|
|
2728
2886
|
/** @enum {string} */
|
|
2729
2887
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -2811,6 +2969,11 @@ interface operations {
|
|
|
2811
2969
|
used: number;
|
|
2812
2970
|
limit: number;
|
|
2813
2971
|
} | null;
|
|
2972
|
+
/** @description PlanRestriction */
|
|
2973
|
+
buildRestriction: {
|
|
2974
|
+
code: string;
|
|
2975
|
+
message: string;
|
|
2976
|
+
} | null;
|
|
2814
2977
|
refreshEnabled: boolean;
|
|
2815
2978
|
/** @enum {string} */
|
|
2816
2979
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -2930,6 +3093,11 @@ interface operations {
|
|
|
2930
3093
|
used: number;
|
|
2931
3094
|
limit: number;
|
|
2932
3095
|
} | null;
|
|
3096
|
+
/** @description PlanRestriction */
|
|
3097
|
+
buildRestriction: {
|
|
3098
|
+
code: string;
|
|
3099
|
+
message: string;
|
|
3100
|
+
} | null;
|
|
2933
3101
|
refreshEnabled: boolean;
|
|
2934
3102
|
/** @enum {string} */
|
|
2935
3103
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -3350,7 +3518,7 @@ interface operations {
|
|
|
3350
3518
|
content: {
|
|
3351
3519
|
'application/json': {
|
|
3352
3520
|
statement: string;
|
|
3353
|
-
scopeSourceIds
|
|
3521
|
+
scopeSourceIds: string[];
|
|
3354
3522
|
rebuildPaths?: string[];
|
|
3355
3523
|
verified?: boolean;
|
|
3356
3524
|
};
|
|
@@ -3373,7 +3541,7 @@ interface operations {
|
|
|
3373
3541
|
/** @enum {string} */
|
|
3374
3542
|
status: 'active' | 'archived';
|
|
3375
3543
|
statement: string;
|
|
3376
|
-
scopeSourceIds: string[]
|
|
3544
|
+
scopeSourceIds: string[];
|
|
3377
3545
|
/** Format: date-time */
|
|
3378
3546
|
archivedAt: string | null;
|
|
3379
3547
|
archivedReason: string | null;
|
|
@@ -3437,7 +3605,7 @@ interface operations {
|
|
|
3437
3605
|
content: {
|
|
3438
3606
|
'application/json': {
|
|
3439
3607
|
statement?: string;
|
|
3440
|
-
scopeSourceIds?: string[]
|
|
3608
|
+
scopeSourceIds?: string[];
|
|
3441
3609
|
};
|
|
3442
3610
|
};
|
|
3443
3611
|
};
|
|
@@ -3456,7 +3624,7 @@ interface operations {
|
|
|
3456
3624
|
/** @enum {string} */
|
|
3457
3625
|
status: 'active' | 'archived';
|
|
3458
3626
|
statement: string;
|
|
3459
|
-
scopeSourceIds: string[]
|
|
3627
|
+
scopeSourceIds: string[];
|
|
3460
3628
|
/** Format: date-time */
|
|
3461
3629
|
archivedAt: string | null;
|
|
3462
3630
|
archivedReason: string | null;
|
|
@@ -3534,28 +3702,43 @@ interface operations {
|
|
|
3534
3702
|
/** @description IssueContent */
|
|
3535
3703
|
content: {
|
|
3536
3704
|
/** @enum {string} */
|
|
3537
|
-
|
|
3705
|
+
severity: 'critical' | 'suggestion';
|
|
3706
|
+
scopePath: string;
|
|
3707
|
+
issue: string;
|
|
3708
|
+
suggestedFix: string;
|
|
3709
|
+
/** @enum {string} */
|
|
3710
|
+
kind: 'conflict';
|
|
3711
|
+
claimKey: string;
|
|
3712
|
+
sides: {
|
|
3713
|
+
claim: string;
|
|
3714
|
+
value?: string;
|
|
3715
|
+
entryPaths?: string[];
|
|
3716
|
+
sourceIds?: string[];
|
|
3717
|
+
/** @description ConflictSpan */
|
|
3718
|
+
span?: {
|
|
3719
|
+
sourceId: string;
|
|
3720
|
+
lineStart: number;
|
|
3721
|
+
lineEnd: number;
|
|
3722
|
+
};
|
|
3723
|
+
/** @enum {string} */
|
|
3724
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
3725
|
+
}[];
|
|
3726
|
+
suggested?: number;
|
|
3727
|
+
} | {
|
|
3538
3728
|
/** @enum {string} */
|
|
3539
3729
|
severity: 'critical' | 'suggestion';
|
|
3540
3730
|
scopePath: string;
|
|
3541
3731
|
issue: string;
|
|
3542
3732
|
suggestedFix: string;
|
|
3733
|
+
/** @enum {string} */
|
|
3734
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
3543
3735
|
citedSourceIds?: string[];
|
|
3544
3736
|
claimKey?: string;
|
|
3545
3737
|
involvedScopes?: string[];
|
|
3546
|
-
currentClaim?: string;
|
|
3547
|
-
alternativeClaim?: string;
|
|
3548
|
-
/** @enum {string} */
|
|
3549
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
3550
|
-
/** @enum {string} */
|
|
3551
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
3552
|
-
/** @enum {string} */
|
|
3553
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
3554
3738
|
};
|
|
3555
3739
|
/** @enum {string} */
|
|
3556
3740
|
status: 'open' | 'accepted' | 'rejected';
|
|
3557
|
-
|
|
3558
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
3741
|
+
resolution: number | null;
|
|
3559
3742
|
/** @description IssueResolvedBy */
|
|
3560
3743
|
resolvedBy: {
|
|
3561
3744
|
id: string;
|
|
@@ -3595,28 +3778,43 @@ interface operations {
|
|
|
3595
3778
|
/** @description IssueContent */
|
|
3596
3779
|
content: {
|
|
3597
3780
|
/** @enum {string} */
|
|
3598
|
-
|
|
3781
|
+
severity: 'critical' | 'suggestion';
|
|
3782
|
+
scopePath: string;
|
|
3783
|
+
issue: string;
|
|
3784
|
+
suggestedFix: string;
|
|
3785
|
+
/** @enum {string} */
|
|
3786
|
+
kind: 'conflict';
|
|
3787
|
+
claimKey: string;
|
|
3788
|
+
sides: {
|
|
3789
|
+
claim: string;
|
|
3790
|
+
value?: string;
|
|
3791
|
+
entryPaths?: string[];
|
|
3792
|
+
sourceIds?: string[];
|
|
3793
|
+
/** @description ConflictSpan */
|
|
3794
|
+
span?: {
|
|
3795
|
+
sourceId: string;
|
|
3796
|
+
lineStart: number;
|
|
3797
|
+
lineEnd: number;
|
|
3798
|
+
};
|
|
3799
|
+
/** @enum {string} */
|
|
3800
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
3801
|
+
}[];
|
|
3802
|
+
suggested?: number;
|
|
3803
|
+
} | {
|
|
3599
3804
|
/** @enum {string} */
|
|
3600
3805
|
severity: 'critical' | 'suggestion';
|
|
3601
3806
|
scopePath: string;
|
|
3602
3807
|
issue: string;
|
|
3603
3808
|
suggestedFix: string;
|
|
3809
|
+
/** @enum {string} */
|
|
3810
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
3604
3811
|
citedSourceIds?: string[];
|
|
3605
3812
|
claimKey?: string;
|
|
3606
3813
|
involvedScopes?: string[];
|
|
3607
|
-
currentClaim?: string;
|
|
3608
|
-
alternativeClaim?: string;
|
|
3609
|
-
/** @enum {string} */
|
|
3610
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
3611
|
-
/** @enum {string} */
|
|
3612
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
3613
|
-
/** @enum {string} */
|
|
3614
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
3615
3814
|
};
|
|
3616
3815
|
/** @enum {string} */
|
|
3617
3816
|
status: 'open' | 'accepted' | 'rejected';
|
|
3618
|
-
|
|
3619
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
3817
|
+
resolution: number | null;
|
|
3620
3818
|
/** @description IssueResolvedBy */
|
|
3621
3819
|
resolvedBy: {
|
|
3622
3820
|
id: string;
|
|
@@ -3645,8 +3843,7 @@ interface operations {
|
|
|
3645
3843
|
requestBody: {
|
|
3646
3844
|
content: {
|
|
3647
3845
|
'application/json': {
|
|
3648
|
-
|
|
3649
|
-
resolution: 'keep_existing' | 'accept_new';
|
|
3846
|
+
resolution: number;
|
|
3650
3847
|
};
|
|
3651
3848
|
};
|
|
3652
3849
|
};
|
|
@@ -3665,28 +3862,43 @@ interface operations {
|
|
|
3665
3862
|
/** @description IssueContent */
|
|
3666
3863
|
content: {
|
|
3667
3864
|
/** @enum {string} */
|
|
3668
|
-
|
|
3865
|
+
severity: 'critical' | 'suggestion';
|
|
3866
|
+
scopePath: string;
|
|
3867
|
+
issue: string;
|
|
3868
|
+
suggestedFix: string;
|
|
3869
|
+
/** @enum {string} */
|
|
3870
|
+
kind: 'conflict';
|
|
3871
|
+
claimKey: string;
|
|
3872
|
+
sides: {
|
|
3873
|
+
claim: string;
|
|
3874
|
+
value?: string;
|
|
3875
|
+
entryPaths?: string[];
|
|
3876
|
+
sourceIds?: string[];
|
|
3877
|
+
/** @description ConflictSpan */
|
|
3878
|
+
span?: {
|
|
3879
|
+
sourceId: string;
|
|
3880
|
+
lineStart: number;
|
|
3881
|
+
lineEnd: number;
|
|
3882
|
+
};
|
|
3883
|
+
/** @enum {string} */
|
|
3884
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
3885
|
+
}[];
|
|
3886
|
+
suggested?: number;
|
|
3887
|
+
} | {
|
|
3669
3888
|
/** @enum {string} */
|
|
3670
3889
|
severity: 'critical' | 'suggestion';
|
|
3671
3890
|
scopePath: string;
|
|
3672
3891
|
issue: string;
|
|
3673
3892
|
suggestedFix: string;
|
|
3893
|
+
/** @enum {string} */
|
|
3894
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
3674
3895
|
citedSourceIds?: string[];
|
|
3675
3896
|
claimKey?: string;
|
|
3676
3897
|
involvedScopes?: string[];
|
|
3677
|
-
currentClaim?: string;
|
|
3678
|
-
alternativeClaim?: string;
|
|
3679
|
-
/** @enum {string} */
|
|
3680
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
3681
|
-
/** @enum {string} */
|
|
3682
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
3683
|
-
/** @enum {string} */
|
|
3684
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
3685
3898
|
};
|
|
3686
3899
|
/** @enum {string} */
|
|
3687
3900
|
status: 'open' | 'accepted' | 'rejected';
|
|
3688
|
-
|
|
3689
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
3901
|
+
resolution: number | null;
|
|
3690
3902
|
/** @description IssueResolvedBy */
|
|
3691
3903
|
resolvedBy: {
|
|
3692
3904
|
id: string;
|
|
@@ -3800,6 +4012,7 @@ interface operations {
|
|
|
3800
4012
|
tldr: string | null;
|
|
3801
4013
|
topics: string[] | null;
|
|
3802
4014
|
canonicalUrl: string | null;
|
|
4015
|
+
externalId: string | null;
|
|
3803
4016
|
/** Format: date-time */
|
|
3804
4017
|
fetchedAt: string | null;
|
|
3805
4018
|
/** Format: date-time */
|
|
@@ -3845,6 +4058,7 @@ interface operations {
|
|
|
3845
4058
|
tldr: string | null;
|
|
3846
4059
|
topics: string[] | null;
|
|
3847
4060
|
canonicalUrl: string | null;
|
|
4061
|
+
externalId: string | null;
|
|
3848
4062
|
/** Format: date-time */
|
|
3849
4063
|
fetchedAt: string | null;
|
|
3850
4064
|
/** Format: date-time */
|
|
@@ -3943,6 +4157,8 @@ interface operations {
|
|
|
3943
4157
|
* @enum {string|null}
|
|
3944
4158
|
*/
|
|
3945
4159
|
toolType?: 'call' | 'result' | null;
|
|
4160
|
+
/** @default null */
|
|
4161
|
+
error?: string | null;
|
|
3946
4162
|
}[];
|
|
3947
4163
|
modelProvider?: string;
|
|
3948
4164
|
modelId?: string;
|
|
@@ -3995,6 +4211,13 @@ interface operations {
|
|
|
3995
4211
|
* @enum {string|null}
|
|
3996
4212
|
*/
|
|
3997
4213
|
toolType: 'call' | 'result' | null;
|
|
4214
|
+
/** @default null */
|
|
4215
|
+
error: string | null;
|
|
4216
|
+
/**
|
|
4217
|
+
* Format: date-time
|
|
4218
|
+
* @default null
|
|
4219
|
+
*/
|
|
4220
|
+
timestamp: string | null;
|
|
3998
4221
|
}[];
|
|
3999
4222
|
modelProvider: string | null;
|
|
4000
4223
|
modelId: string | null;
|
|
@@ -4082,6 +4305,13 @@ interface operations {
|
|
|
4082
4305
|
* @enum {string|null}
|
|
4083
4306
|
*/
|
|
4084
4307
|
toolType: 'call' | 'result' | null;
|
|
4308
|
+
/** @default null */
|
|
4309
|
+
error: string | null;
|
|
4310
|
+
/**
|
|
4311
|
+
* Format: date-time
|
|
4312
|
+
* @default null
|
|
4313
|
+
*/
|
|
4314
|
+
timestamp: string | null;
|
|
4085
4315
|
}[];
|
|
4086
4316
|
modelProvider: string | null;
|
|
4087
4317
|
modelId: string | null;
|
|
@@ -4571,22 +4801,37 @@ declare class ContextClient {
|
|
|
4571
4801
|
id: string;
|
|
4572
4802
|
knowledgeBaseId: string;
|
|
4573
4803
|
content: {
|
|
4574
|
-
kind: 'conflict' | 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4575
4804
|
severity: 'critical' | 'suggestion';
|
|
4576
4805
|
scopePath: string;
|
|
4577
4806
|
issue: string;
|
|
4578
4807
|
suggestedFix: string;
|
|
4808
|
+
kind: 'conflict';
|
|
4809
|
+
claimKey: string;
|
|
4810
|
+
sides: {
|
|
4811
|
+
claim: string;
|
|
4812
|
+
value?: string;
|
|
4813
|
+
entryPaths?: string[];
|
|
4814
|
+
sourceIds?: string[];
|
|
4815
|
+
span?: {
|
|
4816
|
+
sourceId: string;
|
|
4817
|
+
lineStart: number;
|
|
4818
|
+
lineEnd: number;
|
|
4819
|
+
};
|
|
4820
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
4821
|
+
}[];
|
|
4822
|
+
suggested?: number;
|
|
4823
|
+
} | {
|
|
4824
|
+
severity: 'critical' | 'suggestion';
|
|
4825
|
+
scopePath: string;
|
|
4826
|
+
issue: string;
|
|
4827
|
+
suggestedFix: string;
|
|
4828
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4579
4829
|
citedSourceIds?: string[];
|
|
4580
4830
|
claimKey?: string;
|
|
4581
4831
|
involvedScopes?: string[];
|
|
4582
|
-
currentClaim?: string;
|
|
4583
|
-
alternativeClaim?: string;
|
|
4584
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
4585
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
4586
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
4587
4832
|
};
|
|
4588
4833
|
status: 'open' | 'accepted' | 'rejected';
|
|
4589
|
-
resolution:
|
|
4834
|
+
resolution: number | null;
|
|
4590
4835
|
resolvedBy: {
|
|
4591
4836
|
id: string;
|
|
4592
4837
|
kind: 'user' | 'robot';
|
|
@@ -4602,22 +4847,37 @@ declare class ContextClient {
|
|
|
4602
4847
|
id: string;
|
|
4603
4848
|
knowledgeBaseId: string;
|
|
4604
4849
|
content: {
|
|
4605
|
-
kind: 'conflict' | 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4606
4850
|
severity: 'critical' | 'suggestion';
|
|
4607
4851
|
scopePath: string;
|
|
4608
4852
|
issue: string;
|
|
4609
4853
|
suggestedFix: string;
|
|
4854
|
+
kind: 'conflict';
|
|
4855
|
+
claimKey: string;
|
|
4856
|
+
sides: {
|
|
4857
|
+
claim: string;
|
|
4858
|
+
value?: string;
|
|
4859
|
+
entryPaths?: string[];
|
|
4860
|
+
sourceIds?: string[];
|
|
4861
|
+
span?: {
|
|
4862
|
+
sourceId: string;
|
|
4863
|
+
lineStart: number;
|
|
4864
|
+
lineEnd: number;
|
|
4865
|
+
};
|
|
4866
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
4867
|
+
}[];
|
|
4868
|
+
suggested?: number;
|
|
4869
|
+
} | {
|
|
4870
|
+
severity: 'critical' | 'suggestion';
|
|
4871
|
+
scopePath: string;
|
|
4872
|
+
issue: string;
|
|
4873
|
+
suggestedFix: string;
|
|
4874
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4610
4875
|
citedSourceIds?: string[];
|
|
4611
4876
|
claimKey?: string;
|
|
4612
4877
|
involvedScopes?: string[];
|
|
4613
|
-
currentClaim?: string;
|
|
4614
|
-
alternativeClaim?: string;
|
|
4615
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
4616
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
4617
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
4618
4878
|
};
|
|
4619
4879
|
status: 'open' | 'accepted' | 'rejected';
|
|
4620
|
-
resolution:
|
|
4880
|
+
resolution: number | null;
|
|
4621
4881
|
resolvedBy: {
|
|
4622
4882
|
id: string;
|
|
4623
4883
|
kind: 'user' | 'robot';
|
|
@@ -4631,22 +4891,37 @@ declare class ContextClient {
|
|
|
4631
4891
|
id: string;
|
|
4632
4892
|
knowledgeBaseId: string;
|
|
4633
4893
|
content: {
|
|
4634
|
-
kind: 'conflict' | 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4635
4894
|
severity: 'critical' | 'suggestion';
|
|
4636
4895
|
scopePath: string;
|
|
4637
4896
|
issue: string;
|
|
4638
4897
|
suggestedFix: string;
|
|
4898
|
+
kind: 'conflict';
|
|
4899
|
+
claimKey: string;
|
|
4900
|
+
sides: {
|
|
4901
|
+
claim: string;
|
|
4902
|
+
value?: string;
|
|
4903
|
+
entryPaths?: string[];
|
|
4904
|
+
sourceIds?: string[];
|
|
4905
|
+
span?: {
|
|
4906
|
+
sourceId: string;
|
|
4907
|
+
lineStart: number;
|
|
4908
|
+
lineEnd: number;
|
|
4909
|
+
};
|
|
4910
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
4911
|
+
}[];
|
|
4912
|
+
suggested?: number;
|
|
4913
|
+
} | {
|
|
4914
|
+
severity: 'critical' | 'suggestion';
|
|
4915
|
+
scopePath: string;
|
|
4916
|
+
issue: string;
|
|
4917
|
+
suggestedFix: string;
|
|
4918
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4639
4919
|
citedSourceIds?: string[];
|
|
4640
4920
|
claimKey?: string;
|
|
4641
4921
|
involvedScopes?: string[];
|
|
4642
|
-
currentClaim?: string;
|
|
4643
|
-
alternativeClaim?: string;
|
|
4644
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
4645
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
4646
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
4647
4922
|
};
|
|
4648
4923
|
status: 'open' | 'accepted' | 'rejected';
|
|
4649
|
-
resolution:
|
|
4924
|
+
resolution: number | null;
|
|
4650
4925
|
resolvedBy: {
|
|
4651
4926
|
id: string;
|
|
4652
4927
|
kind: 'user' | 'robot';
|
|
@@ -4681,7 +4956,7 @@ declare class ContextClient {
|
|
|
4681
4956
|
origin: 'conflict' | 'human';
|
|
4682
4957
|
status: 'active' | 'archived';
|
|
4683
4958
|
statement: string;
|
|
4684
|
-
scopeSourceIds: string[]
|
|
4959
|
+
scopeSourceIds: string[];
|
|
4685
4960
|
archivedAt: string | null;
|
|
4686
4961
|
archivedReason: string | null;
|
|
4687
4962
|
sourceIssueId: string | null;
|
|
@@ -4784,6 +5059,7 @@ declare class ContextClient {
|
|
|
4784
5059
|
tldr: string | null;
|
|
4785
5060
|
topics: string[] | null;
|
|
4786
5061
|
canonicalUrl: string | null;
|
|
5062
|
+
externalId: string | null;
|
|
4787
5063
|
fetchedAt: string | null;
|
|
4788
5064
|
distilledAt: string | null;
|
|
4789
5065
|
createdAt: string;
|
|
@@ -4802,6 +5078,7 @@ declare class ContextClient {
|
|
|
4802
5078
|
tldr: string | null;
|
|
4803
5079
|
topics: string[] | null;
|
|
4804
5080
|
canonicalUrl: string | null;
|
|
5081
|
+
externalId: string | null;
|
|
4805
5082
|
fetchedAt: string | null;
|
|
4806
5083
|
distilledAt: string | null;
|
|
4807
5084
|
createdAt: string;
|
|
@@ -9860,6 +10137,50 @@ declare global {
|
|
|
9860
10137
|
* direct dependency, how many copies of it are installed, and from every subpath export.
|
|
9861
10138
|
*/
|
|
9862
10139
|
interface SanityQueries {}
|
|
10140
|
+
/**
|
|
10141
|
+
* Schema types, keyed first by resource and then read as a union. Empty by default; a
|
|
10142
|
+
* multi-resource `sanity typegen` run registers one entry per configured resource:
|
|
10143
|
+
* ```ts
|
|
10144
|
+
* declare global {
|
|
10145
|
+
* interface SanitySchemasByResource {
|
|
10146
|
+
* 'ppsg7ml5.test': Author | Movie | Slug
|
|
10147
|
+
* }
|
|
10148
|
+
* }
|
|
10149
|
+
* ```
|
|
10150
|
+
* A resource key is the same string the SDK uses for its runtime cache: `projectId.dataset`
|
|
10151
|
+
* for a dataset, with no prefix. Consumers select one document type out of the union by its
|
|
10152
|
+
* `_type`, so the union may include object types that are not documents.
|
|
10153
|
+
*/
|
|
10154
|
+
interface SanitySchemasByResource {}
|
|
10155
|
+
/**
|
|
10156
|
+
* Query result types, keyed by resource and then by GROQ query string. Empty by default; a
|
|
10157
|
+
* multi-resource `sanity typegen` run registers the queries it finds per resource:
|
|
10158
|
+
* ```ts
|
|
10159
|
+
* declare global {
|
|
10160
|
+
* interface SanityQueriesByResource {
|
|
10161
|
+
* 'ppsg7ml5.test': {'*[_type == "post"]': PostsQueryResult}
|
|
10162
|
+
* }
|
|
10163
|
+
* }
|
|
10164
|
+
* ```
|
|
10165
|
+
* The flat `SanityQueries` registry stays as it is. It cannot express two datasets whose
|
|
10166
|
+
* schemas give the same query text different result types, which is what this adds.
|
|
10167
|
+
*/
|
|
10168
|
+
interface SanityQueriesByResource {}
|
|
10169
|
+
/**
|
|
10170
|
+
* Projection result types, keyed by resource, then document type, then projection string.
|
|
10171
|
+
* Empty by default:
|
|
10172
|
+
* ```ts
|
|
10173
|
+
* declare global {
|
|
10174
|
+
* interface SanityProjectionsByResource {
|
|
10175
|
+
* 'ppsg7ml5.test': {author: {'{name}': {name: string | null}}}
|
|
10176
|
+
* }
|
|
10177
|
+
* }
|
|
10178
|
+
* ```
|
|
10179
|
+
* A projection applies to a document the caller identifies by handle, so the same projection
|
|
10180
|
+
* text resolves differently per document type as well as per resource. That is why there is a
|
|
10181
|
+
* document-type level here and not in `SanityQueriesByResource`.
|
|
10182
|
+
*/
|
|
10183
|
+
interface SanityProjectionsByResource {}
|
|
9863
10184
|
}
|
|
9864
10185
|
/**
|
|
9865
10186
|
* The query registry as seen from `@sanity/client`. Inherits every query registered on the global
|
|
@@ -9882,6 +10203,25 @@ declare global {
|
|
|
9882
10203
|
* @public
|
|
9883
10204
|
*/
|
|
9884
10205
|
interface SanityQueries extends globalThis.SanityQueries {}
|
|
10206
|
+
/**
|
|
10207
|
+
* The schema registry as seen from `@sanity/client`. Inherits every resource registered on the
|
|
10208
|
+
* global `SanitySchemasByResource`, and also accepts a module augmentation, the same way
|
|
10209
|
+
* {@link SanityQueries} does.
|
|
10210
|
+
* @public
|
|
10211
|
+
*/
|
|
10212
|
+
interface SanitySchemasByResource extends globalThis.SanitySchemasByResource {}
|
|
10213
|
+
/**
|
|
10214
|
+
* The per-resource query registry as seen from `@sanity/client`. Inherits every resource
|
|
10215
|
+
* registered on the global `SanityQueriesByResource`, and also accepts a module augmentation.
|
|
10216
|
+
* @public
|
|
10217
|
+
*/
|
|
10218
|
+
interface SanityQueriesByResource extends globalThis.SanityQueriesByResource {}
|
|
10219
|
+
/**
|
|
10220
|
+
* The projection registry as seen from `@sanity/client`. Inherits every resource registered on
|
|
10221
|
+
* the global `SanityProjectionsByResource`, and also accepts a module augmentation.
|
|
10222
|
+
* @public
|
|
10223
|
+
*/
|
|
10224
|
+
interface SanityProjectionsByResource extends globalThis.SanityProjectionsByResource {}
|
|
9885
10225
|
/** @public */
|
|
9886
10226
|
type ClientReturn<GroqString extends string, Fallback = Any> = GroqString extends keyof SanityQueries ? SanityQueries[GroqString] : Fallback;
|
|
9887
10227
|
/**
|
|
@@ -10277,5 +10617,5 @@ declare const createClient: (config: ClientConfig) => SanityClient;
|
|
|
10277
10617
|
* @deprecated Use the named export `createClient` instead of the `default` export
|
|
10278
10618
|
*/
|
|
10279
10619
|
declare const deprecatedCreateClient: (config: ClientConfig) => SanityClient;
|
|
10280
|
-
export { Action, ActionError, ActionErrorItem, type AgentActionParam, type AgentActionParams, type AgentActionPath, type AgentActionPathSegment, type AgentActionTarget, AllDocumentIdsMutationOptions, AllDocumentsMutationOptions, AnimatedImageFormat, AnimatedTransformOptions, Any, ApiError, ArchiveReleaseAction, AssetMetadataType, type AssetsClient, AttributeSet, AuthProvider, AuthProviderResponse, BaseActionOptions, BaseMutationOptions, BasePatch, BaseTransaction, ChannelError, ChannelErrorEvent, ClientConfig, ClientError, ClientPerspective, ClientReturn, ClientVariant, ClientVariantConditions, type CollaborationCommentCreate, type CollaborationCommentDocument, type CollaborationCommentFieldValue, type CollaborationCommentMessage, type CollaborationCommentPortableTextBlock, type CollaborationCommentRange, type CollaborationCommentReactionShortName, type CollaborationCommentSelection, type CollaborationCommentStatus, type CollaborationCommentTarget, type CollaborationCommentUpdate, type CollaborationCommentsClient, type CollaborationCommentsListenOptions, type CollaborationCommentsRequestOptions, type CollaborationCommentsWriteOptions, ConnectionFailedError, type ConstantAgentActionParam, ContentSourceMap, ContentSourceMapDocument, ContentSourceMapDocumentBase, ContentSourceMapDocumentValueSource, ContentSourceMapDocuments, ContentSourceMapLiteralSource, ContentSourceMapMapping, ContentSourceMapMappings, type ContentSourceMapParsedPath, type ContentSourceMapParsedPathKeyedSegment, ContentSourceMapPaths, ContentSourceMapRemoteDocument, ContentSourceMapSource, ContentSourceMapUnknownSource, ContentSourceMapValueMapping, types_d_exports as Context, CorsOriginError, CreateAction, CreateReleaseAction, CreateVariantAction, CreateVariantDefinitionAction, CreateVersionAction, CurrentSanityUser, DatasetAclMode, DatasetCreateOptions, DatasetEditOptions, DatasetResponse, type DatasetsClient, DatasetsResponse, DeleteAction, DeleteReleaseAction, DeleteVariantAction, DeleteVariantDefinitionAction, DiscardAction, DiscardVersionAction, DisconnectError, DisconnectEvent, type DocumentAgentActionParam, EXPERIMENTAL_API_WARNING, EditAction, EditReleaseAction, EditVariantAction, EditVariantDefinitionAction, EditableReleaseDocument, EmbeddingsSettings, EmbeddingsSettingsBody, ErrorProps, type EventSourceEvent, type EventSourceInstance, type FieldAgentActionParam, type FilterDefault, FilteredResponseQueryOptions, FirstDocumentIdMutationOptions, FirstDocumentMutationOptions, FitMode, type GenerateInstruction, type GenerateOperation, type GenerateTarget, type GenerateTargetDocument, type GenerateTargetInclude, type GroqAgentActionParam, type HttpError, HttpRequest, IdentifiedSanityDocumentStub, type ImageDescriptionOperation, ImportReleaseAction, InitializedClientConfig, type InitializedStegaConfig, InsertPatch, type InvokeFunctionEvent, type InvokeFunctionOptions, type InvokeFunctionRequest, ListenEvent, ListenEventName, ListenOptions, ListenParams, type LiveClient, LiveEvent, LiveEventGoAway, LiveEventMessage, LiveEventReconnect, LiveEventRestart, LiveEventWelcome, type Logger, MediaLibraryAssetDocument, MediaLibraryAssetInstanceIdentifier, MediaLibraryAssetVersion, MediaLibraryPlaybackInfoOptions, type MediaLibraryVideoClient, MediaLibraryVideoPlaybackTransformations, MessageError, MessageParseError, MultipleActionResult, MultipleMutationResult, Mutation, MutationError, MutationErrorItem, MutationEvent, MutationOperation, MutationSelection, MutationSelectionQueryParams, type ObservableAssetsClient, type ObservableCollaborationCommentsClient, type ObservableDatasetsClient, type ObservableMediaLibraryVideoClient, ObservablePatch, ObservablePatchBuilder, type ObservableProjectsClient, ObservableSanityClient, ObservableTransaction, type ObservableUsersClient, OpenEvent, PartialExcept, Patch, PatchBuilder, type PatchDocument, PatchMutationOperation, type PatchOperation, PatchOperations, PatchSelection, type PatchTarget, type ProjectsClient, type PromptRequest, PublishAction, PublishReleaseAction, PublishVariantAction, QueryOptions, QueryParams, QueryParseError, QueryWithoutParams, RawQueryResponse, RawQuerylessQueryResponse, RawRequestOptions, ReconnectEvent, ReleaseAction, ReleaseCardinality, ReleaseDocument, ReleaseId, ReleaseState, ReleaseType, ReplaceDraftAction, ReplaceVersionAction, RequestHandler, RequestHandlerOptions, RequestObservableOptions, RequestOptions, RequestUrlOptions, Requester, ResetEvent, type ResolveStudioUrl, ResponseQueryOptions, ResumableListenEventNames, ResumableListenOptions, SanityAssetDocument, SanityClient, SanityDocument, SanityDocumentStub, SanityImageAssetDocument, SanityImagePalette, SanityProject, SanityProjectMember, SanityQueries, SanityReference, SanityUser, ScheduleReleaseAction, ServerError, type ServerSentEvent, SingleActionResult, SingleMutationResult, StackablePerspective, type StegaConfig, type StegaConfigRequiredKeys, StillImageFormat, StoryboardTransformOptions, type StudioBaseRoute, type StudioBaseUrl, type StudioUrl, SyncTag, ThumbnailTransformOptions, type TimeoutErrorLike, Transaction, TransactionAllDocumentIdsMutationOptions, TransactionAllDocumentsMutationOptions, TransactionFirstDocumentIdMutationOptions, TransactionFirstDocumentMutationOptions, TransactionMutationOptions, type TransformDocument, type TransformOperation, type TransformTarget, type TransformTargetDocument, type TransformTargetInclude, type TranslateDocument, type TranslateTarget, type TranslateTargetInclude, UnarchiveReleaseAction, UnfilteredResponseQueryOptions, UnfilteredResponseWithoutQuery, UnpublishAction, UnpublishVariantAction, UnpublishVersionAction, UnscheduleReleaseAction, UploadBody, UploadClientConfig, UploadEvent, UploadProgressEvent, UploadResponseEvent, type UsersClient, VariantAction, VariantDefinitionAction, VersionAction, VideoPlaybackInfo, VideoPlaybackInfoItem, VideoPlaybackInfoItemPublic, VideoPlaybackInfoItemSigned, VideoPlaybackInfoPublic, VideoPlaybackInfoSigned, VideoPlaybackTokens, VideoRenditionInfo, VideoRenditionInfoPublic, VideoRenditionInfoSigned, VideoSubtitleInfo, VideoSubtitleInfoPublic, VideoSubtitleInfoSigned, WelcomeBackEvent, WelcomeEvent, type _listen, connectEventSource, createClient, deprecatedCreateClient as default, formatQueryParseError, isHttpError, isQueryParseError, isTimeoutError, requester, validateApiPerspective };
|
|
10620
|
+
export { Action, ActionError, ActionErrorItem, type AgentActionParam, type AgentActionParams, type AgentActionPath, type AgentActionPathSegment, type AgentActionTarget, AllDocumentIdsMutationOptions, AllDocumentsMutationOptions, AnimatedImageFormat, AnimatedTransformOptions, Any, ApiError, ArchiveReleaseAction, AssetMetadataType, type AssetsClient, AttributeSet, AuthProvider, AuthProviderResponse, BaseActionOptions, BaseMutationOptions, BasePatch, BaseTransaction, ChannelError, ChannelErrorEvent, ClientConfig, ClientError, ClientPerspective, ClientReturn, ClientVariant, ClientVariantConditions, type CollaborationCommentAnchor, type CollaborationCommentCreate, type CollaborationCommentDocument, type CollaborationCommentFieldValue, type CollaborationCommentMessage, type CollaborationCommentPortableTextBlock, type CollaborationCommentRange, type CollaborationCommentReactionShortName, type CollaborationCommentSelection, type CollaborationCommentStatus, type CollaborationCommentTarget, type CollaborationCommentUpdate, type CollaborationCommentsClient, type CollaborationCommentsListenOptions, type CollaborationCommentsRequestOptions, type CollaborationCommentsWriteOptions, ConnectionFailedError, type ConstantAgentActionParam, ContentSourceMap, ContentSourceMapDocument, ContentSourceMapDocumentBase, ContentSourceMapDocumentValueSource, ContentSourceMapDocuments, ContentSourceMapLiteralSource, ContentSourceMapMapping, ContentSourceMapMappings, type ContentSourceMapParsedPath, type ContentSourceMapParsedPathKeyedSegment, ContentSourceMapPaths, ContentSourceMapRemoteDocument, ContentSourceMapSource, ContentSourceMapUnknownSource, ContentSourceMapValueMapping, types_d_exports as Context, CorsOriginError, CreateAction, CreateReleaseAction, CreateVariantAction, CreateVariantDefinitionAction, CreateVersionAction, CurrentSanityUser, DatasetAclMode, DatasetCreateOptions, DatasetEditOptions, DatasetResponse, type DatasetsClient, DatasetsResponse, DeleteAction, DeleteReleaseAction, DeleteVariantAction, DeleteVariantDefinitionAction, DiscardAction, DiscardVersionAction, DisconnectError, DisconnectEvent, type DocumentAgentActionParam, EXPERIMENTAL_API_WARNING, EditAction, EditReleaseAction, EditVariantAction, EditVariantDefinitionAction, EditableReleaseDocument, EmbeddingsSettings, EmbeddingsSettingsBody, ErrorProps, type EventSourceEvent, type EventSourceInstance, type FieldAgentActionParam, type FilterDefault, FilteredResponseQueryOptions, FirstDocumentIdMutationOptions, FirstDocumentMutationOptions, FitMode, type GenerateInstruction, type GenerateOperation, type GenerateTarget, type GenerateTargetDocument, type GenerateTargetInclude, type GroqAgentActionParam, type HttpError, HttpRequest, IdentifiedSanityDocumentStub, type ImageDescriptionOperation, ImportReleaseAction, InitializedClientConfig, type InitializedStegaConfig, InsertPatch, type InvokeFunctionEvent, type InvokeFunctionOptions, type InvokeFunctionRequest, ListenEvent, ListenEventName, ListenOptions, ListenParams, type LiveClient, LiveEvent, LiveEventGoAway, LiveEventMessage, LiveEventReconnect, LiveEventRestart, LiveEventWelcome, type Logger, MediaLibraryAssetDocument, MediaLibraryAssetInstanceIdentifier, MediaLibraryAssetVersion, MediaLibraryPlaybackInfoOptions, type MediaLibraryVideoClient, MediaLibraryVideoPlaybackTransformations, MessageError, MessageParseError, MultipleActionResult, MultipleMutationResult, Mutation, MutationError, MutationErrorItem, MutationEvent, MutationOperation, MutationSelection, MutationSelectionQueryParams, type ObservableAssetsClient, type ObservableCollaborationCommentsClient, type ObservableDatasetsClient, type ObservableMediaLibraryVideoClient, ObservablePatch, ObservablePatchBuilder, type ObservableProjectsClient, ObservableSanityClient, ObservableTransaction, type ObservableUsersClient, OpenEvent, PartialExcept, Patch, PatchBuilder, type PatchDocument, PatchMutationOperation, type PatchOperation, PatchOperations, PatchSelection, type PatchTarget, type ProjectsClient, type PromptRequest, PublishAction, PublishReleaseAction, PublishVariantAction, QueryOptions, QueryParams, QueryParseError, QueryWithoutParams, RawQueryResponse, RawQuerylessQueryResponse, RawRequestOptions, ReconnectEvent, ReleaseAction, ReleaseCardinality, ReleaseDocument, ReleaseId, ReleaseState, ReleaseType, ReplaceDraftAction, ReplaceVersionAction, RequestHandler, RequestHandlerOptions, RequestObservableOptions, RequestOptions, RequestUrlOptions, Requester, ResetEvent, type ResolveStudioUrl, ResponseQueryOptions, ResumableListenEventNames, ResumableListenOptions, SanityAssetDocument, SanityClient, SanityDocument, SanityDocumentStub, SanityImageAssetDocument, SanityImagePalette, SanityProject, SanityProjectMember, SanityProjectionsByResource, SanityQueries, SanityQueriesByResource, SanityReference, SanitySchemasByResource, SanityUser, ScheduleReleaseAction, ServerError, type ServerSentEvent, SingleActionResult, SingleMutationResult, StackablePerspective, type StegaConfig, type StegaConfigRequiredKeys, StillImageFormat, StoryboardTransformOptions, type StudioBaseRoute, type StudioBaseUrl, type StudioUrl, SyncTag, ThumbnailTransformOptions, type TimeoutErrorLike, Transaction, TransactionAllDocumentIdsMutationOptions, TransactionAllDocumentsMutationOptions, TransactionFirstDocumentIdMutationOptions, TransactionFirstDocumentMutationOptions, TransactionMutationOptions, type TransformDocument, type TransformOperation, type TransformTarget, type TransformTargetDocument, type TransformTargetInclude, type TranslateDocument, type TranslateTarget, type TranslateTargetInclude, UnarchiveReleaseAction, UnfilteredResponseQueryOptions, UnfilteredResponseWithoutQuery, UnpublishAction, UnpublishVariantAction, UnpublishVersionAction, UnscheduleReleaseAction, UploadBody, UploadClientConfig, UploadEvent, UploadProgressEvent, UploadResponseEvent, type UsersClient, VariantAction, VariantDefinitionAction, VersionAction, VideoPlaybackInfo, VideoPlaybackInfoItem, VideoPlaybackInfoItemPublic, VideoPlaybackInfoItemSigned, VideoPlaybackInfoPublic, VideoPlaybackInfoSigned, VideoPlaybackTokens, VideoRenditionInfo, VideoRenditionInfoPublic, VideoRenditionInfoSigned, VideoSubtitleInfo, VideoSubtitleInfoPublic, VideoSubtitleInfoSigned, WelcomeBackEvent, WelcomeEvent, type _listen, connectEventSource, createClient, deprecatedCreateClient as default, formatQueryParseError, isHttpError, isQueryParseError, isTimeoutError, requester, validateApiPerspective };
|
|
10281
10621
|
//# sourceMappingURL=index.node.d.ts.map
|