@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
|
@@ -1285,6 +1285,7 @@ interface CollaborationCommentDocument extends SanityDocument$1 {
|
|
|
1285
1285
|
* Each endpoint pairs the `_key` of a Portable Text block with a character
|
|
1286
1286
|
* offset into that block's plain text.
|
|
1287
1287
|
*
|
|
1288
|
+
* @deprecated Use {@link CollaborationCommentAnchor}.
|
|
1288
1289
|
* @alpha
|
|
1289
1290
|
*/
|
|
1290
1291
|
interface CollaborationCommentRange {
|
|
@@ -1298,8 +1299,8 @@ interface CollaborationCommentRange {
|
|
|
1298
1299
|
};
|
|
1299
1300
|
}
|
|
1300
1301
|
/**
|
|
1301
|
-
* Portable Text covering
|
|
1302
|
-
* from the
|
|
1302
|
+
* Portable Text covering an inline comment anchor. Callers can send just the
|
|
1303
|
+
* blocks from the anchor start `_key` through end `_key`, or the full field.
|
|
1303
1304
|
*
|
|
1304
1305
|
* @alpha
|
|
1305
1306
|
*/
|
|
@@ -1308,16 +1309,38 @@ type CollaborationCommentFieldValue = Array<{
|
|
|
1308
1309
|
_key: string;
|
|
1309
1310
|
[key: string]: Any$1;
|
|
1310
1311
|
}>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Where in `path` a comment is anchored.
|
|
1314
|
+
*
|
|
1315
|
+
* For `portable-text`, each endpoint pairs the `_key` of a Portable Text
|
|
1316
|
+
* block with a character offset into that block's plain text. An optional
|
|
1317
|
+
* `fieldValue` is Portable Text covering the anchor. When set, the selection
|
|
1318
|
+
* is resolved from those blocks instead of from the live document.
|
|
1319
|
+
*
|
|
1320
|
+
* @alpha
|
|
1321
|
+
*/
|
|
1322
|
+
type CollaborationCommentAnchor = {
|
|
1323
|
+
type: 'portable-text';
|
|
1324
|
+
start: {
|
|
1325
|
+
_key: string;
|
|
1326
|
+
offset: number;
|
|
1327
|
+
};
|
|
1328
|
+
end: {
|
|
1329
|
+
_key: string;
|
|
1330
|
+
offset: number;
|
|
1331
|
+
};
|
|
1332
|
+
fieldValue?: CollaborationCommentFieldValue;
|
|
1333
|
+
};
|
|
1311
1334
|
/**
|
|
1312
1335
|
* Target for a top-level comment. Inline selections require both `path` and
|
|
1313
|
-
* `
|
|
1336
|
+
* `anchor`; field-level comments may set `path` alone.
|
|
1314
1337
|
*
|
|
1315
1338
|
* The created comment stores this in a different shape: `path` becomes
|
|
1316
|
-
* `target.path.field`, and `
|
|
1339
|
+
* `target.path.field`, and `anchor` is resolved against the document into
|
|
1317
1340
|
* `target.path.selection` and `contentSnapshot` rather than being stored.
|
|
1318
1341
|
*
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1342
|
+
* Deprecated `range` + top-level `fieldValue` are still accepted and converted
|
|
1343
|
+
* to a `portable-text` `anchor` before the request is sent.
|
|
1321
1344
|
*
|
|
1322
1345
|
* @alpha
|
|
1323
1346
|
*/
|
|
@@ -1328,16 +1351,41 @@ type CollaborationCommentTarget = {
|
|
|
1328
1351
|
} & ({
|
|
1329
1352
|
/** Path to the field containing the inline comment selection */
|
|
1330
1353
|
path: string;
|
|
1354
|
+
anchor: CollaborationCommentAnchor;
|
|
1355
|
+
/**
|
|
1356
|
+
* @deprecated Use `anchor`.
|
|
1357
|
+
*/
|
|
1358
|
+
range?: never;
|
|
1359
|
+
/**
|
|
1360
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1361
|
+
*/
|
|
1362
|
+
fieldValue?: never;
|
|
1363
|
+
} | {
|
|
1364
|
+
/** Path to the field containing the inline comment selection */
|
|
1365
|
+
path: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* @deprecated Use `anchor`.
|
|
1368
|
+
*/
|
|
1331
1369
|
range: CollaborationCommentRange;
|
|
1332
1370
|
/**
|
|
1333
|
-
* Portable Text covering the `range`. When set, the
|
|
1371
|
+
* Portable Text covering the `range`. When set, the selection is resolved
|
|
1334
1372
|
* from these blocks instead of from the live document.
|
|
1373
|
+
*
|
|
1374
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1335
1375
|
*/
|
|
1336
1376
|
fieldValue?: CollaborationCommentFieldValue;
|
|
1377
|
+
anchor?: never;
|
|
1337
1378
|
} | {
|
|
1338
1379
|
/** Path to the commented field */
|
|
1339
1380
|
path?: string;
|
|
1381
|
+
anchor?: never;
|
|
1382
|
+
/**
|
|
1383
|
+
* @deprecated Use `anchor`.
|
|
1384
|
+
*/
|
|
1340
1385
|
range?: never;
|
|
1386
|
+
/**
|
|
1387
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1388
|
+
*/
|
|
1341
1389
|
fieldValue?: never;
|
|
1342
1390
|
});
|
|
1343
1391
|
/**
|
|
@@ -1365,7 +1413,11 @@ type CollaborationCommentTarget = {
|
|
|
1365
1413
|
* documentId: 'doc-1',
|
|
1366
1414
|
* documentType: 'article',
|
|
1367
1415
|
* path: 'body',
|
|
1368
|
-
*
|
|
1416
|
+
* anchor: {
|
|
1417
|
+
* type: 'portable-text',
|
|
1418
|
+
* start: {_key: 'block-1', offset: 0},
|
|
1419
|
+
* end: {_key: 'block-1', offset: 5},
|
|
1420
|
+
* },
|
|
1369
1421
|
* },
|
|
1370
1422
|
* })
|
|
1371
1423
|
* ```
|
|
@@ -1397,11 +1449,13 @@ type CollaborationCommentCreate = {
|
|
|
1397
1449
|
/**
|
|
1398
1450
|
* Fields that can be updated on an existing comment.
|
|
1399
1451
|
*
|
|
1400
|
-
*
|
|
1452
|
+
* An `anchor` re-anchors the comment within the field it already targets.
|
|
1401
1453
|
* Pass `null` to remove the selection and leave a field-level comment.
|
|
1402
|
-
* An optional `fieldValue`
|
|
1403
|
-
*
|
|
1404
|
-
*
|
|
1454
|
+
* An optional `fieldValue` on a `portable-text` anchor is resolved from those
|
|
1455
|
+
* blocks instead of from the live document.
|
|
1456
|
+
*
|
|
1457
|
+
* Deprecated `range` + top-level `fieldValue` (and `range: null`) are still
|
|
1458
|
+
* accepted and converted to `anchor` before the request is sent.
|
|
1405
1459
|
*
|
|
1406
1460
|
* @alpha
|
|
1407
1461
|
*/
|
|
@@ -1411,17 +1465,57 @@ type CollaborationCommentUpdate = {
|
|
|
1411
1465
|
/** Cascades to the comment's replies */
|
|
1412
1466
|
status?: CollaborationCommentStatus;
|
|
1413
1467
|
} & ({
|
|
1468
|
+
anchor: CollaborationCommentAnchor;
|
|
1469
|
+
/**
|
|
1470
|
+
* @deprecated Use `anchor`.
|
|
1471
|
+
*/
|
|
1472
|
+
range?: never;
|
|
1473
|
+
/**
|
|
1474
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1475
|
+
*/
|
|
1476
|
+
fieldValue?: never;
|
|
1477
|
+
} | {
|
|
1478
|
+
anchor: null;
|
|
1479
|
+
/**
|
|
1480
|
+
* @deprecated Use `anchor`.
|
|
1481
|
+
*/
|
|
1482
|
+
range?: never;
|
|
1483
|
+
/**
|
|
1484
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1485
|
+
*/
|
|
1486
|
+
fieldValue?: never;
|
|
1487
|
+
} | {
|
|
1488
|
+
/**
|
|
1489
|
+
* @deprecated Use `anchor`.
|
|
1490
|
+
*/
|
|
1414
1491
|
range: CollaborationCommentRange;
|
|
1415
1492
|
/**
|
|
1416
|
-
* Portable Text covering the `range`. When set, the
|
|
1493
|
+
* Portable Text covering the `range`. When set, the selection is resolved
|
|
1417
1494
|
* from these blocks instead of from the live document.
|
|
1495
|
+
*
|
|
1496
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1418
1497
|
*/
|
|
1419
1498
|
fieldValue?: CollaborationCommentFieldValue;
|
|
1499
|
+
anchor?: never;
|
|
1420
1500
|
} | {
|
|
1501
|
+
/**
|
|
1502
|
+
* @deprecated Use `anchor: null`.
|
|
1503
|
+
*/
|
|
1421
1504
|
range: null;
|
|
1505
|
+
/**
|
|
1506
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1507
|
+
*/
|
|
1422
1508
|
fieldValue?: never;
|
|
1509
|
+
anchor?: never;
|
|
1423
1510
|
} | {
|
|
1511
|
+
anchor?: undefined;
|
|
1512
|
+
/**
|
|
1513
|
+
* @deprecated Use `anchor`.
|
|
1514
|
+
*/
|
|
1424
1515
|
range?: undefined;
|
|
1516
|
+
/**
|
|
1517
|
+
* @deprecated Use `anchor.fieldValue`.
|
|
1518
|
+
*/
|
|
1425
1519
|
fieldValue?: never;
|
|
1426
1520
|
});
|
|
1427
1521
|
/**
|
|
@@ -1699,7 +1793,7 @@ interface paths {
|
|
|
1699
1793
|
post?: never;
|
|
1700
1794
|
/**
|
|
1701
1795
|
* Delete a knowledge base
|
|
1702
|
-
* @description Removes the knowledge base and everything it owns: sources, imports,
|
|
1796
|
+
* @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.
|
|
1703
1797
|
*/
|
|
1704
1798
|
delete: operations['deleteKnowledgeBase'];
|
|
1705
1799
|
options?: never;
|
|
@@ -1806,7 +1900,7 @@ interface paths {
|
|
|
1806
1900
|
put?: never;
|
|
1807
1901
|
/**
|
|
1808
1902
|
* Start a file-upload import
|
|
1809
|
-
* @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.
|
|
1903
|
+
* @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.
|
|
1810
1904
|
*/
|
|
1811
1905
|
post: operations['startUpload'];
|
|
1812
1906
|
delete?: never;
|
|
@@ -1890,7 +1984,7 @@ interface paths {
|
|
|
1890
1984
|
put?: never;
|
|
1891
1985
|
/**
|
|
1892
1986
|
* Author a human instruction
|
|
1893
|
-
* @description Creates a standing rule
|
|
1987
|
+
* @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.
|
|
1894
1988
|
*/
|
|
1895
1989
|
post: operations['createInstruction'];
|
|
1896
1990
|
delete?: never;
|
|
@@ -1994,7 +2088,7 @@ interface paths {
|
|
|
1994
2088
|
put?: never;
|
|
1995
2089
|
/**
|
|
1996
2090
|
* Resolve a conflict issue
|
|
1997
|
-
* @description Settles a conflict
|
|
2091
|
+
* @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.
|
|
1998
2092
|
*/
|
|
1999
2093
|
post: operations['resolveIssue'];
|
|
2000
2094
|
delete?: never;
|
|
@@ -2012,7 +2106,7 @@ interface paths {
|
|
|
2012
2106
|
};
|
|
2013
2107
|
/**
|
|
2014
2108
|
* Get a job by id
|
|
2015
|
-
* @description Returns the status of a job, such as a build or
|
|
2109
|
+
* @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.
|
|
2016
2110
|
*/
|
|
2017
2111
|
get: operations['getJob'];
|
|
2018
2112
|
put?: never;
|
|
@@ -2117,7 +2211,7 @@ interface paths {
|
|
|
2117
2211
|
get?: never;
|
|
2118
2212
|
/**
|
|
2119
2213
|
* Record a conversation
|
|
2120
|
-
* @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.
|
|
2214
|
+
* @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.
|
|
2121
2215
|
*/
|
|
2122
2216
|
put: operations['saveConversation'];
|
|
2123
2217
|
post?: never;
|
|
@@ -2168,6 +2262,13 @@ interface components {
|
|
|
2168
2262
|
* @enum {string|null}
|
|
2169
2263
|
*/
|
|
2170
2264
|
toolType: 'call' | 'result' | null;
|
|
2265
|
+
/** @default null */
|
|
2266
|
+
error: string | null;
|
|
2267
|
+
/**
|
|
2268
|
+
* Format: date-time
|
|
2269
|
+
* @default null
|
|
2270
|
+
*/
|
|
2271
|
+
timestamp: string | null;
|
|
2171
2272
|
}[];
|
|
2172
2273
|
modelProvider: string | null;
|
|
2173
2274
|
modelId: string | null;
|
|
@@ -2316,23 +2417,39 @@ interface components {
|
|
|
2316
2417
|
/** @description IssueContent */
|
|
2317
2418
|
content: {
|
|
2318
2419
|
/** @enum {string} */
|
|
2319
|
-
|
|
2420
|
+
severity: 'critical' | 'suggestion';
|
|
2421
|
+
scopePath: string;
|
|
2422
|
+
issue: string;
|
|
2423
|
+
suggestedFix: string;
|
|
2424
|
+
/** @enum {string} */
|
|
2425
|
+
kind: 'conflict';
|
|
2426
|
+
claimKey: string;
|
|
2427
|
+
sides: {
|
|
2428
|
+
claim: string;
|
|
2429
|
+
value?: string;
|
|
2430
|
+
entryPaths?: string[];
|
|
2431
|
+
sourceIds?: string[];
|
|
2432
|
+
/** @description ConflictSpan */
|
|
2433
|
+
span?: {
|
|
2434
|
+
sourceId: string;
|
|
2435
|
+
lineStart: number;
|
|
2436
|
+
lineEnd: number;
|
|
2437
|
+
};
|
|
2438
|
+
/** @enum {string} */
|
|
2439
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
2440
|
+
}[];
|
|
2441
|
+
suggested?: number;
|
|
2442
|
+
} | {
|
|
2320
2443
|
/** @enum {string} */
|
|
2321
2444
|
severity: 'critical' | 'suggestion';
|
|
2322
2445
|
scopePath: string;
|
|
2323
2446
|
issue: string;
|
|
2324
2447
|
suggestedFix: string;
|
|
2448
|
+
/** @enum {string} */
|
|
2449
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
2325
2450
|
citedSourceIds?: string[];
|
|
2326
2451
|
claimKey?: string;
|
|
2327
2452
|
involvedScopes?: string[];
|
|
2328
|
-
currentClaim?: string;
|
|
2329
|
-
alternativeClaim?: string;
|
|
2330
|
-
/** @enum {string} */
|
|
2331
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
2332
|
-
/** @enum {string} */
|
|
2333
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
2334
|
-
/** @enum {string} */
|
|
2335
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
2336
2453
|
};
|
|
2337
2454
|
fingerprint: string;
|
|
2338
2455
|
revisionId: string | null;
|
|
@@ -2359,23 +2476,39 @@ interface components {
|
|
|
2359
2476
|
/** @description IssueContent */
|
|
2360
2477
|
content: {
|
|
2361
2478
|
/** @enum {string} */
|
|
2362
|
-
|
|
2479
|
+
severity: 'critical' | 'suggestion';
|
|
2480
|
+
scopePath: string;
|
|
2481
|
+
issue: string;
|
|
2482
|
+
suggestedFix: string;
|
|
2483
|
+
/** @enum {string} */
|
|
2484
|
+
kind: 'conflict';
|
|
2485
|
+
claimKey: string;
|
|
2486
|
+
sides: {
|
|
2487
|
+
claim: string;
|
|
2488
|
+
value?: string;
|
|
2489
|
+
entryPaths?: string[];
|
|
2490
|
+
sourceIds?: string[];
|
|
2491
|
+
/** @description ConflictSpan */
|
|
2492
|
+
span?: {
|
|
2493
|
+
sourceId: string;
|
|
2494
|
+
lineStart: number;
|
|
2495
|
+
lineEnd: number;
|
|
2496
|
+
};
|
|
2497
|
+
/** @enum {string} */
|
|
2498
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
2499
|
+
}[];
|
|
2500
|
+
suggested?: number;
|
|
2501
|
+
} | {
|
|
2363
2502
|
/** @enum {string} */
|
|
2364
2503
|
severity: 'critical' | 'suggestion';
|
|
2365
2504
|
scopePath: string;
|
|
2366
2505
|
issue: string;
|
|
2367
2506
|
suggestedFix: string;
|
|
2507
|
+
/** @enum {string} */
|
|
2508
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
2368
2509
|
citedSourceIds?: string[];
|
|
2369
2510
|
claimKey?: string;
|
|
2370
2511
|
involvedScopes?: string[];
|
|
2371
|
-
currentClaim?: string;
|
|
2372
|
-
alternativeClaim?: string;
|
|
2373
|
-
/** @enum {string} */
|
|
2374
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
2375
|
-
/** @enum {string} */
|
|
2376
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
2377
|
-
/** @enum {string} */
|
|
2378
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
2379
2512
|
};
|
|
2380
2513
|
fingerprint: string;
|
|
2381
2514
|
revisionId: string | null;
|
|
@@ -2388,8 +2521,7 @@ interface components {
|
|
|
2388
2521
|
/** @enum {string} */
|
|
2389
2522
|
kind: 'user' | 'robot';
|
|
2390
2523
|
} | null;
|
|
2391
|
-
|
|
2392
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
2524
|
+
resolution: number | null;
|
|
2393
2525
|
} | {
|
|
2394
2526
|
_id: string;
|
|
2395
2527
|
_rev: string;
|
|
@@ -2405,23 +2537,39 @@ interface components {
|
|
|
2405
2537
|
/** @description IssueContent */
|
|
2406
2538
|
content: {
|
|
2407
2539
|
/** @enum {string} */
|
|
2408
|
-
|
|
2540
|
+
severity: 'critical' | 'suggestion';
|
|
2541
|
+
scopePath: string;
|
|
2542
|
+
issue: string;
|
|
2543
|
+
suggestedFix: string;
|
|
2544
|
+
/** @enum {string} */
|
|
2545
|
+
kind: 'conflict';
|
|
2546
|
+
claimKey: string;
|
|
2547
|
+
sides: {
|
|
2548
|
+
claim: string;
|
|
2549
|
+
value?: string;
|
|
2550
|
+
entryPaths?: string[];
|
|
2551
|
+
sourceIds?: string[];
|
|
2552
|
+
/** @description ConflictSpan */
|
|
2553
|
+
span?: {
|
|
2554
|
+
sourceId: string;
|
|
2555
|
+
lineStart: number;
|
|
2556
|
+
lineEnd: number;
|
|
2557
|
+
};
|
|
2558
|
+
/** @enum {string} */
|
|
2559
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
2560
|
+
}[];
|
|
2561
|
+
suggested?: number;
|
|
2562
|
+
} | {
|
|
2409
2563
|
/** @enum {string} */
|
|
2410
2564
|
severity: 'critical' | 'suggestion';
|
|
2411
2565
|
scopePath: string;
|
|
2412
2566
|
issue: string;
|
|
2413
2567
|
suggestedFix: string;
|
|
2568
|
+
/** @enum {string} */
|
|
2569
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
2414
2570
|
citedSourceIds?: string[];
|
|
2415
2571
|
claimKey?: string;
|
|
2416
2572
|
involvedScopes?: string[];
|
|
2417
|
-
currentClaim?: string;
|
|
2418
|
-
alternativeClaim?: string;
|
|
2419
|
-
/** @enum {string} */
|
|
2420
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
2421
|
-
/** @enum {string} */
|
|
2422
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
2423
|
-
/** @enum {string} */
|
|
2424
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
2425
2573
|
};
|
|
2426
2574
|
fingerprint: string;
|
|
2427
2575
|
revisionId: string | null;
|
|
@@ -2543,6 +2691,11 @@ interface operations {
|
|
|
2543
2691
|
used: number;
|
|
2544
2692
|
limit: number;
|
|
2545
2693
|
} | null;
|
|
2694
|
+
/** @description PlanRestriction */
|
|
2695
|
+
buildRestriction: {
|
|
2696
|
+
code: string;
|
|
2697
|
+
message: string;
|
|
2698
|
+
} | null;
|
|
2546
2699
|
refreshEnabled: boolean;
|
|
2547
2700
|
/** @enum {string} */
|
|
2548
2701
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -2640,6 +2793,11 @@ interface operations {
|
|
|
2640
2793
|
used: number;
|
|
2641
2794
|
limit: number;
|
|
2642
2795
|
} | null;
|
|
2796
|
+
/** @description PlanRestriction */
|
|
2797
|
+
buildRestriction: {
|
|
2798
|
+
code: string;
|
|
2799
|
+
message: string;
|
|
2800
|
+
} | null;
|
|
2643
2801
|
refreshEnabled: boolean;
|
|
2644
2802
|
/** @enum {string} */
|
|
2645
2803
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -2727,6 +2885,11 @@ interface operations {
|
|
|
2727
2885
|
used: number;
|
|
2728
2886
|
limit: number;
|
|
2729
2887
|
} | null;
|
|
2888
|
+
/** @description PlanRestriction */
|
|
2889
|
+
buildRestriction: {
|
|
2890
|
+
code: string;
|
|
2891
|
+
message: string;
|
|
2892
|
+
} | null;
|
|
2730
2893
|
refreshEnabled: boolean;
|
|
2731
2894
|
/** @enum {string} */
|
|
2732
2895
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -2846,6 +3009,11 @@ interface operations {
|
|
|
2846
3009
|
used: number;
|
|
2847
3010
|
limit: number;
|
|
2848
3011
|
} | null;
|
|
3012
|
+
/** @description PlanRestriction */
|
|
3013
|
+
buildRestriction: {
|
|
3014
|
+
code: string;
|
|
3015
|
+
message: string;
|
|
3016
|
+
} | null;
|
|
2849
3017
|
refreshEnabled: boolean;
|
|
2850
3018
|
/** @enum {string} */
|
|
2851
3019
|
refreshFrequency: 'weekly' | 'monthly';
|
|
@@ -3266,7 +3434,7 @@ interface operations {
|
|
|
3266
3434
|
content: {
|
|
3267
3435
|
'application/json': {
|
|
3268
3436
|
statement: string;
|
|
3269
|
-
scopeSourceIds
|
|
3437
|
+
scopeSourceIds: string[];
|
|
3270
3438
|
rebuildPaths?: string[];
|
|
3271
3439
|
verified?: boolean;
|
|
3272
3440
|
};
|
|
@@ -3289,7 +3457,7 @@ interface operations {
|
|
|
3289
3457
|
/** @enum {string} */
|
|
3290
3458
|
status: 'active' | 'archived';
|
|
3291
3459
|
statement: string;
|
|
3292
|
-
scopeSourceIds: string[]
|
|
3460
|
+
scopeSourceIds: string[];
|
|
3293
3461
|
/** Format: date-time */
|
|
3294
3462
|
archivedAt: string | null;
|
|
3295
3463
|
archivedReason: string | null;
|
|
@@ -3353,7 +3521,7 @@ interface operations {
|
|
|
3353
3521
|
content: {
|
|
3354
3522
|
'application/json': {
|
|
3355
3523
|
statement?: string;
|
|
3356
|
-
scopeSourceIds?: string[]
|
|
3524
|
+
scopeSourceIds?: string[];
|
|
3357
3525
|
};
|
|
3358
3526
|
};
|
|
3359
3527
|
};
|
|
@@ -3372,7 +3540,7 @@ interface operations {
|
|
|
3372
3540
|
/** @enum {string} */
|
|
3373
3541
|
status: 'active' | 'archived';
|
|
3374
3542
|
statement: string;
|
|
3375
|
-
scopeSourceIds: string[]
|
|
3543
|
+
scopeSourceIds: string[];
|
|
3376
3544
|
/** Format: date-time */
|
|
3377
3545
|
archivedAt: string | null;
|
|
3378
3546
|
archivedReason: string | null;
|
|
@@ -3450,28 +3618,43 @@ interface operations {
|
|
|
3450
3618
|
/** @description IssueContent */
|
|
3451
3619
|
content: {
|
|
3452
3620
|
/** @enum {string} */
|
|
3453
|
-
|
|
3621
|
+
severity: 'critical' | 'suggestion';
|
|
3622
|
+
scopePath: string;
|
|
3623
|
+
issue: string;
|
|
3624
|
+
suggestedFix: string;
|
|
3625
|
+
/** @enum {string} */
|
|
3626
|
+
kind: 'conflict';
|
|
3627
|
+
claimKey: string;
|
|
3628
|
+
sides: {
|
|
3629
|
+
claim: string;
|
|
3630
|
+
value?: string;
|
|
3631
|
+
entryPaths?: string[];
|
|
3632
|
+
sourceIds?: string[];
|
|
3633
|
+
/** @description ConflictSpan */
|
|
3634
|
+
span?: {
|
|
3635
|
+
sourceId: string;
|
|
3636
|
+
lineStart: number;
|
|
3637
|
+
lineEnd: number;
|
|
3638
|
+
};
|
|
3639
|
+
/** @enum {string} */
|
|
3640
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
3641
|
+
}[];
|
|
3642
|
+
suggested?: number;
|
|
3643
|
+
} | {
|
|
3454
3644
|
/** @enum {string} */
|
|
3455
3645
|
severity: 'critical' | 'suggestion';
|
|
3456
3646
|
scopePath: string;
|
|
3457
3647
|
issue: string;
|
|
3458
3648
|
suggestedFix: string;
|
|
3649
|
+
/** @enum {string} */
|
|
3650
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
3459
3651
|
citedSourceIds?: string[];
|
|
3460
3652
|
claimKey?: string;
|
|
3461
3653
|
involvedScopes?: string[];
|
|
3462
|
-
currentClaim?: string;
|
|
3463
|
-
alternativeClaim?: string;
|
|
3464
|
-
/** @enum {string} */
|
|
3465
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
3466
|
-
/** @enum {string} */
|
|
3467
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
3468
|
-
/** @enum {string} */
|
|
3469
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
3470
3654
|
};
|
|
3471
3655
|
/** @enum {string} */
|
|
3472
3656
|
status: 'open' | 'accepted' | 'rejected';
|
|
3473
|
-
|
|
3474
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
3657
|
+
resolution: number | null;
|
|
3475
3658
|
/** @description IssueResolvedBy */
|
|
3476
3659
|
resolvedBy: {
|
|
3477
3660
|
id: string;
|
|
@@ -3511,28 +3694,43 @@ interface operations {
|
|
|
3511
3694
|
/** @description IssueContent */
|
|
3512
3695
|
content: {
|
|
3513
3696
|
/** @enum {string} */
|
|
3514
|
-
|
|
3697
|
+
severity: 'critical' | 'suggestion';
|
|
3698
|
+
scopePath: string;
|
|
3699
|
+
issue: string;
|
|
3700
|
+
suggestedFix: string;
|
|
3701
|
+
/** @enum {string} */
|
|
3702
|
+
kind: 'conflict';
|
|
3703
|
+
claimKey: string;
|
|
3704
|
+
sides: {
|
|
3705
|
+
claim: string;
|
|
3706
|
+
value?: string;
|
|
3707
|
+
entryPaths?: string[];
|
|
3708
|
+
sourceIds?: string[];
|
|
3709
|
+
/** @description ConflictSpan */
|
|
3710
|
+
span?: {
|
|
3711
|
+
sourceId: string;
|
|
3712
|
+
lineStart: number;
|
|
3713
|
+
lineEnd: number;
|
|
3714
|
+
};
|
|
3715
|
+
/** @enum {string} */
|
|
3716
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
3717
|
+
}[];
|
|
3718
|
+
suggested?: number;
|
|
3719
|
+
} | {
|
|
3515
3720
|
/** @enum {string} */
|
|
3516
3721
|
severity: 'critical' | 'suggestion';
|
|
3517
3722
|
scopePath: string;
|
|
3518
3723
|
issue: string;
|
|
3519
3724
|
suggestedFix: string;
|
|
3725
|
+
/** @enum {string} */
|
|
3726
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
3520
3727
|
citedSourceIds?: string[];
|
|
3521
3728
|
claimKey?: string;
|
|
3522
3729
|
involvedScopes?: string[];
|
|
3523
|
-
currentClaim?: string;
|
|
3524
|
-
alternativeClaim?: string;
|
|
3525
|
-
/** @enum {string} */
|
|
3526
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
3527
|
-
/** @enum {string} */
|
|
3528
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
3529
|
-
/** @enum {string} */
|
|
3530
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
3531
3730
|
};
|
|
3532
3731
|
/** @enum {string} */
|
|
3533
3732
|
status: 'open' | 'accepted' | 'rejected';
|
|
3534
|
-
|
|
3535
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
3733
|
+
resolution: number | null;
|
|
3536
3734
|
/** @description IssueResolvedBy */
|
|
3537
3735
|
resolvedBy: {
|
|
3538
3736
|
id: string;
|
|
@@ -3561,8 +3759,7 @@ interface operations {
|
|
|
3561
3759
|
requestBody: {
|
|
3562
3760
|
content: {
|
|
3563
3761
|
'application/json': {
|
|
3564
|
-
|
|
3565
|
-
resolution: 'keep_existing' | 'accept_new';
|
|
3762
|
+
resolution: number;
|
|
3566
3763
|
};
|
|
3567
3764
|
};
|
|
3568
3765
|
};
|
|
@@ -3581,28 +3778,43 @@ interface operations {
|
|
|
3581
3778
|
/** @description IssueContent */
|
|
3582
3779
|
content: {
|
|
3583
3780
|
/** @enum {string} */
|
|
3584
|
-
|
|
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
|
+
} | {
|
|
3585
3804
|
/** @enum {string} */
|
|
3586
3805
|
severity: 'critical' | 'suggestion';
|
|
3587
3806
|
scopePath: string;
|
|
3588
3807
|
issue: string;
|
|
3589
3808
|
suggestedFix: string;
|
|
3809
|
+
/** @enum {string} */
|
|
3810
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
3590
3811
|
citedSourceIds?: string[];
|
|
3591
3812
|
claimKey?: string;
|
|
3592
3813
|
involvedScopes?: string[];
|
|
3593
|
-
currentClaim?: string;
|
|
3594
|
-
alternativeClaim?: string;
|
|
3595
|
-
/** @enum {string} */
|
|
3596
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
3597
|
-
/** @enum {string} */
|
|
3598
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
3599
|
-
/** @enum {string} */
|
|
3600
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
3601
3814
|
};
|
|
3602
3815
|
/** @enum {string} */
|
|
3603
3816
|
status: 'open' | 'accepted' | 'rejected';
|
|
3604
|
-
|
|
3605
|
-
resolution: 'keep_existing' | 'accept_new' | null;
|
|
3817
|
+
resolution: number | null;
|
|
3606
3818
|
/** @description IssueResolvedBy */
|
|
3607
3819
|
resolvedBy: {
|
|
3608
3820
|
id: string;
|
|
@@ -3716,6 +3928,7 @@ interface operations {
|
|
|
3716
3928
|
tldr: string | null;
|
|
3717
3929
|
topics: string[] | null;
|
|
3718
3930
|
canonicalUrl: string | null;
|
|
3931
|
+
externalId: string | null;
|
|
3719
3932
|
/** Format: date-time */
|
|
3720
3933
|
fetchedAt: string | null;
|
|
3721
3934
|
/** Format: date-time */
|
|
@@ -3761,6 +3974,7 @@ interface operations {
|
|
|
3761
3974
|
tldr: string | null;
|
|
3762
3975
|
topics: string[] | null;
|
|
3763
3976
|
canonicalUrl: string | null;
|
|
3977
|
+
externalId: string | null;
|
|
3764
3978
|
/** Format: date-time */
|
|
3765
3979
|
fetchedAt: string | null;
|
|
3766
3980
|
/** Format: date-time */
|
|
@@ -3859,6 +4073,8 @@ interface operations {
|
|
|
3859
4073
|
* @enum {string|null}
|
|
3860
4074
|
*/
|
|
3861
4075
|
toolType?: 'call' | 'result' | null;
|
|
4076
|
+
/** @default null */
|
|
4077
|
+
error?: string | null;
|
|
3862
4078
|
}[];
|
|
3863
4079
|
modelProvider?: string;
|
|
3864
4080
|
modelId?: string;
|
|
@@ -3911,6 +4127,13 @@ interface operations {
|
|
|
3911
4127
|
* @enum {string|null}
|
|
3912
4128
|
*/
|
|
3913
4129
|
toolType: 'call' | 'result' | null;
|
|
4130
|
+
/** @default null */
|
|
4131
|
+
error: string | null;
|
|
4132
|
+
/**
|
|
4133
|
+
* Format: date-time
|
|
4134
|
+
* @default null
|
|
4135
|
+
*/
|
|
4136
|
+
timestamp: string | null;
|
|
3914
4137
|
}[];
|
|
3915
4138
|
modelProvider: string | null;
|
|
3916
4139
|
modelId: string | null;
|
|
@@ -3998,6 +4221,13 @@ interface operations {
|
|
|
3998
4221
|
* @enum {string|null}
|
|
3999
4222
|
*/
|
|
4000
4223
|
toolType: 'call' | 'result' | null;
|
|
4224
|
+
/** @default null */
|
|
4225
|
+
error: string | null;
|
|
4226
|
+
/**
|
|
4227
|
+
* Format: date-time
|
|
4228
|
+
* @default null
|
|
4229
|
+
*/
|
|
4230
|
+
timestamp: string | null;
|
|
4001
4231
|
}[];
|
|
4002
4232
|
modelProvider: string | null;
|
|
4003
4233
|
modelId: string | null;
|
|
@@ -4487,22 +4717,37 @@ declare class ContextClient {
|
|
|
4487
4717
|
id: string;
|
|
4488
4718
|
knowledgeBaseId: string;
|
|
4489
4719
|
content: {
|
|
4490
|
-
kind: 'conflict' | 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4491
4720
|
severity: 'critical' | 'suggestion';
|
|
4492
4721
|
scopePath: string;
|
|
4493
4722
|
issue: string;
|
|
4494
4723
|
suggestedFix: string;
|
|
4724
|
+
kind: 'conflict';
|
|
4725
|
+
claimKey: string;
|
|
4726
|
+
sides: {
|
|
4727
|
+
claim: string;
|
|
4728
|
+
value?: string;
|
|
4729
|
+
entryPaths?: string[];
|
|
4730
|
+
sourceIds?: string[];
|
|
4731
|
+
span?: {
|
|
4732
|
+
sourceId: string;
|
|
4733
|
+
lineStart: number;
|
|
4734
|
+
lineEnd: number;
|
|
4735
|
+
};
|
|
4736
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
4737
|
+
}[];
|
|
4738
|
+
suggested?: number;
|
|
4739
|
+
} | {
|
|
4740
|
+
severity: 'critical' | 'suggestion';
|
|
4741
|
+
scopePath: string;
|
|
4742
|
+
issue: string;
|
|
4743
|
+
suggestedFix: string;
|
|
4744
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4495
4745
|
citedSourceIds?: string[];
|
|
4496
4746
|
claimKey?: string;
|
|
4497
4747
|
involvedScopes?: string[];
|
|
4498
|
-
currentClaim?: string;
|
|
4499
|
-
alternativeClaim?: string;
|
|
4500
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
4501
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
4502
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
4503
4748
|
};
|
|
4504
4749
|
status: 'open' | 'accepted' | 'rejected';
|
|
4505
|
-
resolution:
|
|
4750
|
+
resolution: number | null;
|
|
4506
4751
|
resolvedBy: {
|
|
4507
4752
|
id: string;
|
|
4508
4753
|
kind: 'user' | 'robot';
|
|
@@ -4518,22 +4763,37 @@ declare class ContextClient {
|
|
|
4518
4763
|
id: string;
|
|
4519
4764
|
knowledgeBaseId: string;
|
|
4520
4765
|
content: {
|
|
4521
|
-
kind: 'conflict' | 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4522
4766
|
severity: 'critical' | 'suggestion';
|
|
4523
4767
|
scopePath: string;
|
|
4524
4768
|
issue: string;
|
|
4525
4769
|
suggestedFix: string;
|
|
4770
|
+
kind: 'conflict';
|
|
4771
|
+
claimKey: string;
|
|
4772
|
+
sides: {
|
|
4773
|
+
claim: string;
|
|
4774
|
+
value?: string;
|
|
4775
|
+
entryPaths?: string[];
|
|
4776
|
+
sourceIds?: string[];
|
|
4777
|
+
span?: {
|
|
4778
|
+
sourceId: string;
|
|
4779
|
+
lineStart: number;
|
|
4780
|
+
lineEnd: number;
|
|
4781
|
+
};
|
|
4782
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
4783
|
+
}[];
|
|
4784
|
+
suggested?: number;
|
|
4785
|
+
} | {
|
|
4786
|
+
severity: 'critical' | 'suggestion';
|
|
4787
|
+
scopePath: string;
|
|
4788
|
+
issue: string;
|
|
4789
|
+
suggestedFix: string;
|
|
4790
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4526
4791
|
citedSourceIds?: string[];
|
|
4527
4792
|
claimKey?: string;
|
|
4528
4793
|
involvedScopes?: string[];
|
|
4529
|
-
currentClaim?: string;
|
|
4530
|
-
alternativeClaim?: string;
|
|
4531
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
4532
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
4533
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
4534
4794
|
};
|
|
4535
4795
|
status: 'open' | 'accepted' | 'rejected';
|
|
4536
|
-
resolution:
|
|
4796
|
+
resolution: number | null;
|
|
4537
4797
|
resolvedBy: {
|
|
4538
4798
|
id: string;
|
|
4539
4799
|
kind: 'user' | 'robot';
|
|
@@ -4547,22 +4807,37 @@ declare class ContextClient {
|
|
|
4547
4807
|
id: string;
|
|
4548
4808
|
knowledgeBaseId: string;
|
|
4549
4809
|
content: {
|
|
4550
|
-
kind: 'conflict' | 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4551
4810
|
severity: 'critical' | 'suggestion';
|
|
4552
4811
|
scopePath: string;
|
|
4553
4812
|
issue: string;
|
|
4554
4813
|
suggestedFix: string;
|
|
4814
|
+
kind: 'conflict';
|
|
4815
|
+
claimKey: string;
|
|
4816
|
+
sides: {
|
|
4817
|
+
claim: string;
|
|
4818
|
+
value?: string;
|
|
4819
|
+
entryPaths?: string[];
|
|
4820
|
+
sourceIds?: string[];
|
|
4821
|
+
span?: {
|
|
4822
|
+
sourceId: string;
|
|
4823
|
+
lineStart: number;
|
|
4824
|
+
lineEnd: number;
|
|
4825
|
+
};
|
|
4826
|
+
authority?: 'primary' | 'secondary' | 'community';
|
|
4827
|
+
}[];
|
|
4828
|
+
suggested?: number;
|
|
4829
|
+
} | {
|
|
4830
|
+
severity: 'critical' | 'suggestion';
|
|
4831
|
+
scopePath: string;
|
|
4832
|
+
issue: string;
|
|
4833
|
+
suggestedFix: string;
|
|
4834
|
+
kind: 'gap' | 'update_required' | 'add_entry' | 'remove_entry' | 'split_entry' | 'merge_entry';
|
|
4555
4835
|
citedSourceIds?: string[];
|
|
4556
4836
|
claimKey?: string;
|
|
4557
4837
|
involvedScopes?: string[];
|
|
4558
|
-
currentClaim?: string;
|
|
4559
|
-
alternativeClaim?: string;
|
|
4560
|
-
currentAuthority?: 'primary' | 'secondary' | 'community';
|
|
4561
|
-
alternativeAuthority?: 'primary' | 'secondary' | 'community';
|
|
4562
|
-
suggestedResolution?: 'keep_existing' | 'accept_new';
|
|
4563
4838
|
};
|
|
4564
4839
|
status: 'open' | 'accepted' | 'rejected';
|
|
4565
|
-
resolution:
|
|
4840
|
+
resolution: number | null;
|
|
4566
4841
|
resolvedBy: {
|
|
4567
4842
|
id: string;
|
|
4568
4843
|
kind: 'user' | 'robot';
|
|
@@ -4597,7 +4872,7 @@ declare class ContextClient {
|
|
|
4597
4872
|
origin: 'conflict' | 'human';
|
|
4598
4873
|
status: 'active' | 'archived';
|
|
4599
4874
|
statement: string;
|
|
4600
|
-
scopeSourceIds: string[]
|
|
4875
|
+
scopeSourceIds: string[];
|
|
4601
4876
|
archivedAt: string | null;
|
|
4602
4877
|
archivedReason: string | null;
|
|
4603
4878
|
sourceIssueId: string | null;
|
|
@@ -4700,6 +4975,7 @@ declare class ContextClient {
|
|
|
4700
4975
|
tldr: string | null;
|
|
4701
4976
|
topics: string[] | null;
|
|
4702
4977
|
canonicalUrl: string | null;
|
|
4978
|
+
externalId: string | null;
|
|
4703
4979
|
fetchedAt: string | null;
|
|
4704
4980
|
distilledAt: string | null;
|
|
4705
4981
|
createdAt: string;
|
|
@@ -4718,6 +4994,7 @@ declare class ContextClient {
|
|
|
4718
4994
|
tldr: string | null;
|
|
4719
4995
|
topics: string[] | null;
|
|
4720
4996
|
canonicalUrl: string | null;
|
|
4997
|
+
externalId: string | null;
|
|
4721
4998
|
fetchedAt: string | null;
|
|
4722
4999
|
distilledAt: string | null;
|
|
4723
5000
|
createdAt: string;
|
|
@@ -9776,6 +10053,50 @@ declare global {
|
|
|
9776
10053
|
* direct dependency, how many copies of it are installed, and from every subpath export.
|
|
9777
10054
|
*/
|
|
9778
10055
|
interface SanityQueries {}
|
|
10056
|
+
/**
|
|
10057
|
+
* Schema types, keyed first by resource and then read as a union. Empty by default; a
|
|
10058
|
+
* multi-resource `sanity typegen` run registers one entry per configured resource:
|
|
10059
|
+
* ```ts
|
|
10060
|
+
* declare global {
|
|
10061
|
+
* interface SanitySchemasByResource {
|
|
10062
|
+
* 'ppsg7ml5.test': Author | Movie | Slug
|
|
10063
|
+
* }
|
|
10064
|
+
* }
|
|
10065
|
+
* ```
|
|
10066
|
+
* A resource key is the same string the SDK uses for its runtime cache: `projectId.dataset`
|
|
10067
|
+
* for a dataset, with no prefix. Consumers select one document type out of the union by its
|
|
10068
|
+
* `_type`, so the union may include object types that are not documents.
|
|
10069
|
+
*/
|
|
10070
|
+
interface SanitySchemasByResource {}
|
|
10071
|
+
/**
|
|
10072
|
+
* Query result types, keyed by resource and then by GROQ query string. Empty by default; a
|
|
10073
|
+
* multi-resource `sanity typegen` run registers the queries it finds per resource:
|
|
10074
|
+
* ```ts
|
|
10075
|
+
* declare global {
|
|
10076
|
+
* interface SanityQueriesByResource {
|
|
10077
|
+
* 'ppsg7ml5.test': {'*[_type == "post"]': PostsQueryResult}
|
|
10078
|
+
* }
|
|
10079
|
+
* }
|
|
10080
|
+
* ```
|
|
10081
|
+
* The flat `SanityQueries` registry stays as it is. It cannot express two datasets whose
|
|
10082
|
+
* schemas give the same query text different result types, which is what this adds.
|
|
10083
|
+
*/
|
|
10084
|
+
interface SanityQueriesByResource {}
|
|
10085
|
+
/**
|
|
10086
|
+
* Projection result types, keyed by resource, then document type, then projection string.
|
|
10087
|
+
* Empty by default:
|
|
10088
|
+
* ```ts
|
|
10089
|
+
* declare global {
|
|
10090
|
+
* interface SanityProjectionsByResource {
|
|
10091
|
+
* 'ppsg7ml5.test': {author: {'{name}': {name: string | null}}}
|
|
10092
|
+
* }
|
|
10093
|
+
* }
|
|
10094
|
+
* ```
|
|
10095
|
+
* A projection applies to a document the caller identifies by handle, so the same projection
|
|
10096
|
+
* text resolves differently per document type as well as per resource. That is why there is a
|
|
10097
|
+
* document-type level here and not in `SanityQueriesByResource`.
|
|
10098
|
+
*/
|
|
10099
|
+
interface SanityProjectionsByResource {}
|
|
9779
10100
|
}
|
|
9780
10101
|
/**
|
|
9781
10102
|
* The query registry as seen from `@sanity/client`. Inherits every query registered on the global
|
|
@@ -9798,6 +10119,25 @@ declare global {
|
|
|
9798
10119
|
* @public
|
|
9799
10120
|
*/
|
|
9800
10121
|
interface SanityQueries extends globalThis.SanityQueries {}
|
|
10122
|
+
/**
|
|
10123
|
+
* The schema registry as seen from `@sanity/client`. Inherits every resource registered on the
|
|
10124
|
+
* global `SanitySchemasByResource`, and also accepts a module augmentation, the same way
|
|
10125
|
+
* {@link SanityQueries} does.
|
|
10126
|
+
* @public
|
|
10127
|
+
*/
|
|
10128
|
+
interface SanitySchemasByResource extends globalThis.SanitySchemasByResource {}
|
|
10129
|
+
/**
|
|
10130
|
+
* The per-resource query registry as seen from `@sanity/client`. Inherits every resource
|
|
10131
|
+
* registered on the global `SanityQueriesByResource`, and also accepts a module augmentation.
|
|
10132
|
+
* @public
|
|
10133
|
+
*/
|
|
10134
|
+
interface SanityQueriesByResource extends globalThis.SanityQueriesByResource {}
|
|
10135
|
+
/**
|
|
10136
|
+
* The projection registry as seen from `@sanity/client`. Inherits every resource registered on
|
|
10137
|
+
* the global `SanityProjectionsByResource`, and also accepts a module augmentation.
|
|
10138
|
+
* @public
|
|
10139
|
+
*/
|
|
10140
|
+
interface SanityProjectionsByResource extends globalThis.SanityProjectionsByResource {}
|
|
9801
10141
|
/** @public */
|
|
9802
10142
|
type ClientReturn$1<GroqString extends string, Fallback = Any$1> = GroqString extends keyof SanityQueries ? SanityQueries[GroqString] : Fallback;
|
|
9803
10143
|
/**
|
|
@@ -10015,5 +10355,5 @@ interface MediaLibraryAssetDocument {
|
|
|
10015
10355
|
parent?: SanityReference | null;
|
|
10016
10356
|
rootDirectory?: Any$1;
|
|
10017
10357
|
}
|
|
10018
|
-
export { DisconnectEvent as $,
|
|
10019
|
-
//# sourceMappingURL=types-
|
|
10358
|
+
export { DisconnectEvent as $, UnpublishVersionAction as $n, ObservableCollaborationCommentsClient as $r, QueryWithoutParams as $t, ContentSourceMapMappings as A, PatchTarget as Ai, SanityQueries as An, SanityClient$1 as Ar, MediaLibraryAssetVersion as At, CreateVersionAction as B, StoryboardTransformOptions as Bn, DatasetsClient as Br, MutationSelection as Bt, ContentSourceMap$1 as C, TransformOperation as Ci, SanityDocument$1 as Cn, WelcomeEvent as Cr, LiveEventGoAway as Ct, ContentSourceMapDocuments$1 as D, PromptRequest as Di, SanityProject as Dn, GenerateTargetDocument as Dr, LiveEventWelcome as Dt, ContentSourceMapDocumentValueSource as E, TransformTargetInclude as Ei, SanityImagePalette as En, GenerateTarget as Er, LiveEventRestart as Et, ContentSourceMapValueMapping as F, AgentActionTarget as Fi, ScheduleReleaseAction as Fn, MediaLibraryVideoClient as Fr, Mutation as Ft, DatasetResponse as G, TransactionFirstDocumentIdMutationOptions as Gn, PatchBuilder as Gr, PatchOperations as Gt, DatasetAclMode as H, ThumbnailTransformOptions as Hn, BaseTransaction as Hr, OpenEvent as Ht, CreateAction as I, ConstantAgentActionParam as Ii, SingleActionResult as In, ObservableMediaLibraryVideoClient as Ir, MutationError as It, DeleteReleaseAction as J, UnarchiveReleaseAction as Jn, ObservablePatch as Jr, PublishReleaseAction as Jt, DatasetsResponse as K, TransactionFirstDocumentMutationOptions as Kn, Transaction as Kr, PatchSelection as Kt, CreateReleaseAction as L, DocumentAgentActionParam as Li, SingleMutationResult as Ln, InvokeFunctionEvent as Lr, MutationErrorItem as Lt, ContentSourceMapRemoteDocument as M, AgentActionParams as Mi, SanityReference as Mn, UsersClient as Mr, MediaLibraryVideoPlaybackTransformations as Mt, ContentSourceMapSource as N, AgentActionPath as Ni, SanitySchemasByResource as Nn, ObservableProjectsClient as Nr, MultipleActionResult as Nt, ContentSourceMapLiteralSource as O, PatchDocument as Oi, SanityProjectMember as On, GenerateTargetInclude as Or, MediaLibraryAssetDocument as Ot, ContentSourceMapUnknownSource as P, AgentActionPathSegment as Pi, SanityUser as Pn, ProjectsClient as Pr, MultipleMutationResult as Pt, DiscardVersionAction as Q, UnpublishVariantAction as Qn, CollaborationCommentsClient as Qr, QueryParseError as Qt, CreateVariantAction as R, FieldAgentActionParam as Ri, StackablePerspective as Rn, InvokeFunctionOptions as Rr, MutationEvent as Rt, ClientVariantConditions as S, TransformDocument as Si, SanityAssetDocument as Sn, WelcomeBackEvent as Sr, LiveEvent as St, ContentSourceMapDocumentBase as T, TransformTargetDocument as Ti, SanityImageAssetDocument as Tn, GenerateOperation as Tr, LiveEventReconnect as Tt, DatasetCreateOptions as U, TransactionAllDocumentIdsMutationOptions as Un, ObservablePatchBuilder as Ur, PartialExcept as Ut, CurrentSanityUser as V, SyncTag as Vn, ObservableDatasetsClient as Vr, MutationSelectionQueryParams as Vt, DatasetEditOptions as W, TransactionAllDocumentsMutationOptions as Wn, ObservableTransaction as Wr, PatchMutationOperation as Wt, DeleteVariantDefinitionAction as X, UnfilteredResponseWithoutQuery as Xn, LiveClient as Xr, QueryOptions as Xt, DeleteVariantAction as Y, UnfilteredResponseQueryOptions as Yn, Patch as Yr, PublishVariantAction as Yt, DiscardAction as Z, UnpublishAction as Zn, types_d_exports as Zr, QueryParams as Zt, ChannelErrorEvent as _, ObservableAssetsClient as _i, Requester as _n, VideoRenditionInfoPublic as _r, InsertPatch as _t, AllDocumentsMutationOptions as a, CollaborationCommentPortableTextBlock as ai, ReleaseCardinality as an, UploadResponseEvent as ar, EditableReleaseDocument as at, ClientReturn$1 as b, TranslateTargetInclude as bi, ResumableListenEventNames as bn, VideoSubtitleInfoPublic as br, ListenOptions as bt, Any$1 as c, CollaborationCommentSelection as ci, ReleaseState as cn, VersionAction as cr, ErrorProps as ct, AssetMetadataType as d, CollaborationCommentUpdate as di, ReplaceVersionAction as dn, VideoPlaybackInfoItemPublic as dr, FirstDocumentMutationOptions as dt, CollaborationCommentAnchor as ei, RawQueryResponse$1 as en, UnscheduleReleaseAction as er, EXPERIMENTAL_API_WARNING as et, AttributeSet as f, CollaborationCommentsListenOptions as fi, RequestHandler as fn, VideoPlaybackInfoItemSigned as fr, FitMode as ft, BaseMutationOptions as g, AssetsClient as gi, RequestUrlOptions as gn, VideoRenditionInfo as gr, InitializedClientConfig$1 as gt, BaseActionOptions as h, _listen as hi, RequestOptions$1 as hn, VideoPlaybackTokens as hr, ImportReleaseAction as ht, AllDocumentIdsMutationOptions as i, CollaborationCommentMessage as ii, ReleaseAction as in, UploadProgressEvent as ir, EditVariantDefinitionAction as it, ContentSourceMapPaths as j, AgentActionParam as ji, SanityQueriesByResource as jn, ObservableUsersClient as jr, MediaLibraryPlaybackInfoOptions as jt, ContentSourceMapMapping as k, PatchOperation as ki, SanityProjectionsByResource as kn, ObservableSanityClient$1 as kr, MediaLibraryAssetInstanceIdentifier as kt, ApiError as l, CollaborationCommentStatus as li, ReleaseType as ln, VideoPlaybackInfo as lr, FilteredResponseQueryOptions as lt, AuthProviderResponse as m, CollaborationCommentsWriteOptions as mi, RequestObservableOptions as mn, VideoPlaybackInfoSigned as mr, IdentifiedSanityDocumentStub as mt, ActionError as n, CollaborationCommentDocument as ni, RawRequestOptions as nn, UploadClientConfig as nr, EditReleaseAction as nt, AnimatedImageFormat as o, CollaborationCommentRange as oi, ReleaseDocument as on, VariantAction as or, EmbeddingsSettings as ot, AuthProvider as p, CollaborationCommentsRequestOptions as pi, RequestHandlerOptions as pn, VideoPlaybackInfoPublic as pr, HttpRequest as pt, DeleteAction as q, TransactionMutationOptions as qn, BasePatch as qr, PublishAction as qt, ActionErrorItem as r, CollaborationCommentFieldValue as ri, ReconnectEvent as rn, UploadEvent as rr, EditVariantAction as rt, AnimatedTransformOptions as s, CollaborationCommentReactionShortName as si, ReleaseId as sn, VariantDefinitionAction as sr, EmbeddingsSettingsBody as st, Action as t, CollaborationCommentCreate as ti, RawQuerylessQueryResponse as tn, UploadBody as tr, EditAction as tt, ArchiveReleaseAction as u, CollaborationCommentTarget as ui, ReplaceDraftAction as un, VideoPlaybackInfoItem as ur, FirstDocumentIdMutationOptions as ut, ClientConfig$1 as v, TranslateDocument as vi, ResetEvent as vn, VideoRenditionInfoSigned as vr, ListenEvent as vt, ContentSourceMapDocument as w, TransformTarget as wi, SanityDocumentStub as wn, GenerateInstruction as wr, LiveEventMessage as wt, ClientVariant as x, ImageDescriptionOperation as xi, ResumableListenOptions as xn, VideoSubtitleInfoSigned as xr, ListenParams as xt, ClientPerspective$1 as y, TranslateTarget as yi, ResponseQueryOptions as yn, VideoSubtitleInfo as yr, ListenEventName as yt, CreateVariantDefinitionAction as z, GroqAgentActionParam as zi, StillImageFormat as zn, InvokeFunctionRequest as zr, MutationOperation as zt };
|
|
10359
|
+
//# sourceMappingURL=types-Cov8gzNZ.d.ts.map
|