@sanity/client 8.1.0 → 8.3.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 +171 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +438 -101
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +734 -10
- package/dist/index.node.js +409 -59
- package/dist/index.node.js.map +1 -1
- package/dist/media-library.d.ts +1 -1
- package/dist/{types-BODIEY7F.d.ts → types-0x2hPfhJ.d.ts} +735 -11
- package/package.json +1 -2
- package/src/SanityClient.ts +20 -0
- package/src/collaboration/CollaborationCommentsClient.ts +387 -0
- package/src/collaboration/comments.ts +313 -0
- package/src/collaboration/types.ts +303 -0
- package/src/data/dataMethods.ts +7 -1
- package/src/data/listen.ts +20 -5
- package/src/functions/FunctionsClient.ts +52 -9
- package/src/functions/invoke.ts +47 -6
- package/src/types.ts +240 -1
- package/src/util/createVersionId.ts +15 -5
|
@@ -1140,6 +1140,508 @@ declare function _listen<R extends Record<string, Any$1> = Record<string, Any$1>
|
|
|
1140
1140
|
* @public
|
|
1141
1141
|
*/
|
|
1142
1142
|
declare function _listen<R extends Record<string, Any$1> = Record<string, Any$1>, Opts extends ListenOptions | ResumableListenOptions = ListenOptions | ResumableListenOptions>(this: SanityClient$1 | ObservableSanityClient$1, query: string, params?: ListenParams, options?: Opts): Observable<ListenEventFromOptions<R, Opts>>;
|
|
1143
|
+
/** @internal */
|
|
1144
|
+
declare const possibleRequestOptions: readonly ['headers', 'signal', 'tag', 'timeout', 'token'];
|
|
1145
|
+
/**
|
|
1146
|
+
* Request options honored by the collaboration comments methods.
|
|
1147
|
+
*
|
|
1148
|
+
* @alpha
|
|
1149
|
+
*/
|
|
1150
|
+
type CollaborationCommentsRequestOptions = Pick<RequestOptions$1, (typeof possibleRequestOptions)[number]>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Options for collaboration comments write methods.
|
|
1153
|
+
*
|
|
1154
|
+
* @alpha
|
|
1155
|
+
*/
|
|
1156
|
+
type CollaborationCommentsWriteOptions = CollaborationCommentsRequestOptions & {
|
|
1157
|
+
/** Transaction ID to associate the write with */
|
|
1158
|
+
transactionId?: string;
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* Listener options for `collaboration.comments.listen`.
|
|
1162
|
+
*
|
|
1163
|
+
* `includeAllVersions` is left out: comments are stored as `sanity.comment`
|
|
1164
|
+
* documents with no drafts or versions, so it would never make a difference.
|
|
1165
|
+
*
|
|
1166
|
+
* @alpha
|
|
1167
|
+
*/
|
|
1168
|
+
type CollaborationCommentsListenOptions = Omit<ListenOptions, 'includeAllVersions'> | Omit<ResumableListenOptions, 'includeAllVersions'>;
|
|
1169
|
+
/**
|
|
1170
|
+
* Status of a comment thread. Replies always share the status of their parent comment.
|
|
1171
|
+
*
|
|
1172
|
+
* @alpha
|
|
1173
|
+
*/
|
|
1174
|
+
type CollaborationCommentStatus = 'open' | 'resolved';
|
|
1175
|
+
/**
|
|
1176
|
+
* Emoji short names that can be used as comment reactions.
|
|
1177
|
+
*
|
|
1178
|
+
* @alpha
|
|
1179
|
+
*/
|
|
1180
|
+
type CollaborationCommentReactionShortName = ':-1:' | ':+1:' | ':eyes:' | ':heart:' | ':heavy_plus_sign:' | ':rocket:';
|
|
1181
|
+
/**
|
|
1182
|
+
* A single Portable Text block, as used in comment messages and content snapshots.
|
|
1183
|
+
*
|
|
1184
|
+
* @alpha
|
|
1185
|
+
*/
|
|
1186
|
+
interface CollaborationCommentPortableTextBlock {
|
|
1187
|
+
_type: string;
|
|
1188
|
+
children: Array<{
|
|
1189
|
+
_type: string;
|
|
1190
|
+
[key: string]: Any$1;
|
|
1191
|
+
}>;
|
|
1192
|
+
[key: string]: Any$1;
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Comment message, as an array of Portable Text blocks.
|
|
1196
|
+
*
|
|
1197
|
+
* @alpha
|
|
1198
|
+
*/
|
|
1199
|
+
type CollaborationCommentMessage = CollaborationCommentPortableTextBlock[];
|
|
1200
|
+
/**
|
|
1201
|
+
* The text an inline comment was anchored to, resolved by the API when the
|
|
1202
|
+
* comment was created.
|
|
1203
|
+
*
|
|
1204
|
+
* Holds one entry per Portable Text block the selection spans, keyed by the
|
|
1205
|
+
* block it came from. `text` is the plain text of that block with the selected
|
|
1206
|
+
* part wrapped in the marker characters `\uF000` (start) and `\uF001` (end).
|
|
1207
|
+
*
|
|
1208
|
+
* @alpha
|
|
1209
|
+
*/
|
|
1210
|
+
interface CollaborationCommentSelection {
|
|
1211
|
+
type: 'text';
|
|
1212
|
+
value: {
|
|
1213
|
+
_key: string;
|
|
1214
|
+
text: string;
|
|
1215
|
+
}[];
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* A comment document, as stored by the Comments API.
|
|
1219
|
+
*
|
|
1220
|
+
* @alpha
|
|
1221
|
+
*/
|
|
1222
|
+
interface CollaborationCommentDocument extends SanityDocument$1 {
|
|
1223
|
+
_type: 'sanity.comment';
|
|
1224
|
+
_system?: {
|
|
1225
|
+
/** ID of the user that created the comment */
|
|
1226
|
+
createdBy?: string;
|
|
1227
|
+
};
|
|
1228
|
+
/** ID shared by a top-level comment and all of its replies */
|
|
1229
|
+
threadId?: string;
|
|
1230
|
+
/** Set on replies, pointing to the comment being replied to */
|
|
1231
|
+
parentCommentId?: string;
|
|
1232
|
+
message: CollaborationCommentMessage;
|
|
1233
|
+
reactions: {
|
|
1234
|
+
_key: string;
|
|
1235
|
+
shortName: CollaborationCommentReactionShortName;
|
|
1236
|
+
userId: string;
|
|
1237
|
+
addedAt: string;
|
|
1238
|
+
}[];
|
|
1239
|
+
/** Arbitrary metadata stored with the comment by the creating application */
|
|
1240
|
+
context?: Record<string, unknown>;
|
|
1241
|
+
target: {
|
|
1242
|
+
/** Global document reference (`resourceType:resourceId:documentId`, using the published document ID) */
|
|
1243
|
+
document: {
|
|
1244
|
+
_ref: `${string}:${string}:${string}`;
|
|
1245
|
+
_type: 'globalDocumentReference';
|
|
1246
|
+
_weak: true;
|
|
1247
|
+
};
|
|
1248
|
+
documentType: string;
|
|
1249
|
+
/** The exact document ID the comment was created against, e.g. a draft or version ID */
|
|
1250
|
+
sourceDocumentId: string;
|
|
1251
|
+
documentRevisionId?: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* Set for field and inline comments. `field` is the `path` the comment was
|
|
1254
|
+
* created with; `selection` is set for inline comments only.
|
|
1255
|
+
*/
|
|
1256
|
+
path?: {
|
|
1257
|
+
field: string;
|
|
1258
|
+
selection?: CollaborationCommentSelection;
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
/**
|
|
1262
|
+
* Copy of the commented content, as it looked when the comment was created.
|
|
1263
|
+
* Set for inline comments only, and holds just the selected fragment of each
|
|
1264
|
+
* Portable Text block the selection spans.
|
|
1265
|
+
*/
|
|
1266
|
+
contentSnapshot?: CollaborationCommentPortableTextBlock[];
|
|
1267
|
+
status: CollaborationCommentStatus;
|
|
1268
|
+
/** Set when the message has been updated after creation */
|
|
1269
|
+
lastEditedAt?: string;
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Inline text selection within a Portable Text field.
|
|
1273
|
+
* Each endpoint pairs the `_key` of a Portable Text block with a character
|
|
1274
|
+
* offset into that block's plain text.
|
|
1275
|
+
*
|
|
1276
|
+
* @alpha
|
|
1277
|
+
*/
|
|
1278
|
+
interface CollaborationCommentRange {
|
|
1279
|
+
start: {
|
|
1280
|
+
_key: string;
|
|
1281
|
+
offset: number;
|
|
1282
|
+
};
|
|
1283
|
+
end: {
|
|
1284
|
+
_key: string;
|
|
1285
|
+
offset: number;
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Portable Text covering a comment `range`. Callers can send just the blocks
|
|
1290
|
+
* from the `range` start `_key` through end `_key`, or the full field.
|
|
1291
|
+
*
|
|
1292
|
+
* @alpha
|
|
1293
|
+
*/
|
|
1294
|
+
type CollaborationCommentFieldValue = Array<{
|
|
1295
|
+
_type: string;
|
|
1296
|
+
_key: string;
|
|
1297
|
+
[key: string]: Any$1;
|
|
1298
|
+
}>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Target for a top-level comment. Inline selections require both `path` and
|
|
1301
|
+
* `range`; field-level comments may set `path` alone.
|
|
1302
|
+
*
|
|
1303
|
+
* The created comment stores this in a different shape: `path` becomes
|
|
1304
|
+
* `target.path.field`, and `range` is resolved against the document into
|
|
1305
|
+
* `target.path.selection` and `contentSnapshot` rather than being stored.
|
|
1306
|
+
*
|
|
1307
|
+
* An optional `fieldValue` is Portable Text covering the `range`. When set,
|
|
1308
|
+
* the `range` is resolved from those blocks instead of from the live document.
|
|
1309
|
+
*
|
|
1310
|
+
* @alpha
|
|
1311
|
+
*/
|
|
1312
|
+
type CollaborationCommentTarget = {
|
|
1313
|
+
documentId: string;
|
|
1314
|
+
documentType: string;
|
|
1315
|
+
documentRevisionId?: string;
|
|
1316
|
+
} & ({
|
|
1317
|
+
/** Path to the field containing the inline comment selection */
|
|
1318
|
+
path: string;
|
|
1319
|
+
range: CollaborationCommentRange;
|
|
1320
|
+
/**
|
|
1321
|
+
* Portable Text covering the `range`. When set, the `range` is resolved
|
|
1322
|
+
* from these blocks instead of from the live document.
|
|
1323
|
+
*/
|
|
1324
|
+
fieldValue?: CollaborationCommentFieldValue;
|
|
1325
|
+
} | {
|
|
1326
|
+
/** Path to the commented field */
|
|
1327
|
+
path?: string;
|
|
1328
|
+
range?: never;
|
|
1329
|
+
fieldValue?: never;
|
|
1330
|
+
});
|
|
1331
|
+
/**
|
|
1332
|
+
* Comment to create with `collaboration.comments.create`.
|
|
1333
|
+
*
|
|
1334
|
+
* A top-level comment requires `target`; a reply requires `parentCommentId` (never both).
|
|
1335
|
+
* Replies inherit `target`, `status`, and `threadId` from the parent comment.
|
|
1336
|
+
*
|
|
1337
|
+
* ### Examples
|
|
1338
|
+
*
|
|
1339
|
+
* #### Top-level comment
|
|
1340
|
+
* ```ts
|
|
1341
|
+
* // `message` is an array of Portable Text blocks
|
|
1342
|
+
* await client.collaboration.comments.create({
|
|
1343
|
+
* message,
|
|
1344
|
+
* target: {documentId: 'doc-1', documentType: 'article'},
|
|
1345
|
+
* })
|
|
1346
|
+
* ```
|
|
1347
|
+
*
|
|
1348
|
+
* #### Inline comment
|
|
1349
|
+
* ```ts
|
|
1350
|
+
* await client.collaboration.comments.create({
|
|
1351
|
+
* message,
|
|
1352
|
+
* target: {
|
|
1353
|
+
* documentId: 'doc-1',
|
|
1354
|
+
* documentType: 'article',
|
|
1355
|
+
* path: 'body',
|
|
1356
|
+
* range: {start: {_key: 'block-1', offset: 0}, end: {_key: 'block-1', offset: 5}},
|
|
1357
|
+
* },
|
|
1358
|
+
* })
|
|
1359
|
+
* ```
|
|
1360
|
+
*
|
|
1361
|
+
* #### Reply
|
|
1362
|
+
* ```ts
|
|
1363
|
+
* await client.collaboration.comments.create({
|
|
1364
|
+
* message,
|
|
1365
|
+
* parentCommentId: 'comment-1',
|
|
1366
|
+
* })
|
|
1367
|
+
* ```
|
|
1368
|
+
*
|
|
1369
|
+
* @alpha
|
|
1370
|
+
*/
|
|
1371
|
+
type CollaborationCommentCreate = {
|
|
1372
|
+
/** Provide to control the ID of the created comment document */
|
|
1373
|
+
_id?: string;
|
|
1374
|
+
message: CollaborationCommentMessage;
|
|
1375
|
+
context?: Record<string, unknown>;
|
|
1376
|
+
} & ({
|
|
1377
|
+
target: CollaborationCommentTarget;
|
|
1378
|
+
threadId?: string;
|
|
1379
|
+
parentCommentId?: never;
|
|
1380
|
+
} | {
|
|
1381
|
+
parentCommentId: string;
|
|
1382
|
+
target?: never;
|
|
1383
|
+
threadId?: never;
|
|
1384
|
+
});
|
|
1385
|
+
/**
|
|
1386
|
+
* Fields that can be updated on an existing comment.
|
|
1387
|
+
*
|
|
1388
|
+
* A `range` re-anchors the comment within the field it already targets.
|
|
1389
|
+
* Pass `null` to remove the selection and leave a field-level comment.
|
|
1390
|
+
* An optional `fieldValue` is Portable Text covering that `range`; when set,
|
|
1391
|
+
* the `range` is resolved from those blocks instead of from the live document.
|
|
1392
|
+
* `fieldValue` cannot be sent alone or together with `range: null`.
|
|
1393
|
+
*
|
|
1394
|
+
* @alpha
|
|
1395
|
+
*/
|
|
1396
|
+
type CollaborationCommentUpdate = {
|
|
1397
|
+
/** Replaces the current message */
|
|
1398
|
+
message?: CollaborationCommentMessage;
|
|
1399
|
+
/** Cascades to the comment's replies */
|
|
1400
|
+
status?: CollaborationCommentStatus;
|
|
1401
|
+
} & ({
|
|
1402
|
+
range: CollaborationCommentRange;
|
|
1403
|
+
/**
|
|
1404
|
+
* Portable Text covering the `range`. When set, the `range` is resolved
|
|
1405
|
+
* from these blocks instead of from the live document.
|
|
1406
|
+
*/
|
|
1407
|
+
fieldValue?: CollaborationCommentFieldValue;
|
|
1408
|
+
} | {
|
|
1409
|
+
range: null;
|
|
1410
|
+
fieldValue?: never;
|
|
1411
|
+
} | {
|
|
1412
|
+
range?: undefined;
|
|
1413
|
+
fieldValue?: never;
|
|
1414
|
+
});
|
|
1415
|
+
/**
|
|
1416
|
+
* Comments on the configured organization resource.
|
|
1417
|
+
*
|
|
1418
|
+
* Requires `collaboration.organizationId`, plus either `resource` or `projectId` and `dataset`.
|
|
1419
|
+
*
|
|
1420
|
+
* @alpha
|
|
1421
|
+
*/
|
|
1422
|
+
declare class ObservableCollaborationCommentsClient {
|
|
1423
|
+
#private;
|
|
1424
|
+
constructor(client: ObservableSanityClient$1, httpRequest: HttpRequest);
|
|
1425
|
+
/**
|
|
1426
|
+
* Create a comment or reply on the configured resource.
|
|
1427
|
+
*
|
|
1428
|
+
* A top-level comment requires `target`; a reply requires `parentCommentId` (never both).
|
|
1429
|
+
* Replies inherit `target`, `status`, and `threadId` from the parent comment.
|
|
1430
|
+
*
|
|
1431
|
+
* @param body - Comment to create
|
|
1432
|
+
* @param options - Optional request options
|
|
1433
|
+
* @returns The created comment
|
|
1434
|
+
*/
|
|
1435
|
+
create(body: CollaborationCommentCreate, options?: CollaborationCommentsWriteOptions): Observable<CollaborationCommentDocument>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Update an existing comment.
|
|
1438
|
+
*
|
|
1439
|
+
* Updating `status` cascades to the comment's replies.
|
|
1440
|
+
*
|
|
1441
|
+
* @param id - Comment document ID
|
|
1442
|
+
* @param body - Fields to update
|
|
1443
|
+
* @param options - Optional request options
|
|
1444
|
+
* @returns The updated comment
|
|
1445
|
+
*/
|
|
1446
|
+
update(id: string, body: CollaborationCommentUpdate, options?: CollaborationCommentsWriteOptions): Observable<CollaborationCommentDocument>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Delete a comment and its replies.
|
|
1449
|
+
*
|
|
1450
|
+
* @param id - Comment document ID
|
|
1451
|
+
* @param options - Optional request options
|
|
1452
|
+
* @returns Mutation result, where `documentIds` covers the comment and every deleted reply
|
|
1453
|
+
*/
|
|
1454
|
+
delete(id: string, options?: CollaborationCommentsWriteOptions): Observable<MultipleMutationResult>;
|
|
1455
|
+
/**
|
|
1456
|
+
* Add the current user's reaction to a comment.
|
|
1457
|
+
*
|
|
1458
|
+
* @param id - Comment document ID
|
|
1459
|
+
* @param shortName - Emoji short name, for example `:+1:`
|
|
1460
|
+
* @param options - Optional request options
|
|
1461
|
+
* @returns The comment, with the reaction applied
|
|
1462
|
+
*/
|
|
1463
|
+
addReaction(id: string, shortName: CollaborationCommentReactionShortName, options?: CollaborationCommentsWriteOptions): Observable<CollaborationCommentDocument>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Remove the current user's reaction from a comment.
|
|
1466
|
+
*
|
|
1467
|
+
* @param id - Comment document ID
|
|
1468
|
+
* @param shortName - Emoji short name, for example `:+1:`
|
|
1469
|
+
* @param options - Optional request options
|
|
1470
|
+
* @returns The comment, with the reaction removed
|
|
1471
|
+
*/
|
|
1472
|
+
removeReaction(id: string, shortName: CollaborationCommentReactionShortName, options?: CollaborationCommentsWriteOptions): Observable<CollaborationCommentDocument>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Build the global document reference used by `target.document._ref`, for use in
|
|
1475
|
+
* queries and listeners.
|
|
1476
|
+
*
|
|
1477
|
+
* The reference is built from the configured `resource` and the published ID of
|
|
1478
|
+
* the given document ID, since comment references always use published IDs.
|
|
1479
|
+
*
|
|
1480
|
+
* @example
|
|
1481
|
+
* ```ts
|
|
1482
|
+
* client.collaboration.comments.listen(
|
|
1483
|
+
* '*[_type == "sanity.comment" && target.document._ref == $ref]',
|
|
1484
|
+
* {ref: client.collaboration.comments.getTargetDocumentRef('doc-1')},
|
|
1485
|
+
* )
|
|
1486
|
+
* ```
|
|
1487
|
+
*
|
|
1488
|
+
* @param documentId - Document ID, in published, draft or version form
|
|
1489
|
+
* @returns Global document reference, of the form `resourceType:resourceId:documentId`
|
|
1490
|
+
*/
|
|
1491
|
+
getTargetDocumentRef(documentId: string): CollaborationCommentDocument['target']['document']['_ref'];
|
|
1492
|
+
/**
|
|
1493
|
+
* Fetch comments on the configured resource.
|
|
1494
|
+
*
|
|
1495
|
+
* Takes the same `query` and `params` as `client.fetch`, and switches from a
|
|
1496
|
+
* GET to a POST for queries too large for the request URL in the same way,
|
|
1497
|
+
* but queries the comments endpoint, which accepts none of the query options
|
|
1498
|
+
* `client.fetch` does (`perspective`, `useCdn`, `filterResponse`,
|
|
1499
|
+
* `resultSourceMap`, stega).
|
|
1500
|
+
*
|
|
1501
|
+
* The query runs against the organization store, which is not scoped to
|
|
1502
|
+
* comments, so filter on `_type == "sanity.comment"`.
|
|
1503
|
+
*
|
|
1504
|
+
* @param query - GROQ-query to perform
|
|
1505
|
+
* @param params - Optional query parameters
|
|
1506
|
+
* @param options - Optional request options
|
|
1507
|
+
*/
|
|
1508
|
+
fetch<R = unknown>(query: string, params?: QueryParams, options?: CollaborationCommentsRequestOptions): Observable<R>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Listen for changes to comments on the configured resource.
|
|
1511
|
+
*
|
|
1512
|
+
* Mirrors `client.listen(query, params)`, and emits mutation events.
|
|
1513
|
+
*
|
|
1514
|
+
* @param query - GROQ-filter to listen to changes for
|
|
1515
|
+
* @param params - Optional query parameters
|
|
1516
|
+
*/
|
|
1517
|
+
listen(query: string, params?: QueryParams): Observable<MutationEvent<CollaborationCommentDocument>>;
|
|
1518
|
+
/**
|
|
1519
|
+
* Listen for changes to comments on the configured resource.
|
|
1520
|
+
*
|
|
1521
|
+
* Mirrors `client.listen(query, params, options)`.
|
|
1522
|
+
*
|
|
1523
|
+
* @param query - GROQ-filter to listen to changes for
|
|
1524
|
+
* @param params - Optional query parameters
|
|
1525
|
+
* @param options - The same listener options `client.listen` takes, forwarded
|
|
1526
|
+
* to the organization store's listener
|
|
1527
|
+
*/
|
|
1528
|
+
listen<Opts extends CollaborationCommentsListenOptions>(query: string, params: QueryParams | undefined, options: Opts): Observable<ListenEventFromOptions<CollaborationCommentDocument, Opts>>;
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* Comments on the configured organization resource.
|
|
1532
|
+
*
|
|
1533
|
+
* Requires `collaboration.organizationId`, plus either `resource` or `projectId` and `dataset`.
|
|
1534
|
+
*
|
|
1535
|
+
* @alpha
|
|
1536
|
+
*/
|
|
1537
|
+
declare class CollaborationCommentsClient {
|
|
1538
|
+
#private;
|
|
1539
|
+
constructor(client: SanityClient$1, httpRequest: HttpRequest);
|
|
1540
|
+
/**
|
|
1541
|
+
* Create a comment or reply on the configured resource.
|
|
1542
|
+
*
|
|
1543
|
+
* A top-level comment requires `target`; a reply requires `parentCommentId` (never both).
|
|
1544
|
+
* Replies inherit `target`, `status`, and `threadId` from the parent comment.
|
|
1545
|
+
*
|
|
1546
|
+
* @param body - Comment to create
|
|
1547
|
+
* @param options - Optional request options
|
|
1548
|
+
* @returns The created comment
|
|
1549
|
+
*/
|
|
1550
|
+
create(body: CollaborationCommentCreate, options?: CollaborationCommentsWriteOptions): Promise<CollaborationCommentDocument>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Update an existing comment.
|
|
1553
|
+
*
|
|
1554
|
+
* Updating `status` cascades to the comment's replies.
|
|
1555
|
+
*
|
|
1556
|
+
* @param id - Comment document ID
|
|
1557
|
+
* @param body - Fields to update
|
|
1558
|
+
* @param options - Optional request options
|
|
1559
|
+
* @returns The updated comment
|
|
1560
|
+
*/
|
|
1561
|
+
update(id: string, body: CollaborationCommentUpdate, options?: CollaborationCommentsWriteOptions): Promise<CollaborationCommentDocument>;
|
|
1562
|
+
/**
|
|
1563
|
+
* Delete a comment and its replies.
|
|
1564
|
+
*
|
|
1565
|
+
* @param id - Comment document ID
|
|
1566
|
+
* @param options - Optional request options
|
|
1567
|
+
* @returns Mutation result, where `documentIds` covers the comment and every deleted reply
|
|
1568
|
+
*/
|
|
1569
|
+
delete(id: string, options?: CollaborationCommentsWriteOptions): Promise<MultipleMutationResult>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Add the current user's reaction to a comment.
|
|
1572
|
+
*
|
|
1573
|
+
* @param id - Comment document ID
|
|
1574
|
+
* @param shortName - Emoji short name, for example `:+1:`
|
|
1575
|
+
* @param options - Optional request options
|
|
1576
|
+
* @returns The comment, with the reaction applied
|
|
1577
|
+
*/
|
|
1578
|
+
addReaction(id: string, shortName: CollaborationCommentReactionShortName, options?: CollaborationCommentsWriteOptions): Promise<CollaborationCommentDocument>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Remove the current user's reaction from a comment.
|
|
1581
|
+
*
|
|
1582
|
+
* @param id - Comment document ID
|
|
1583
|
+
* @param shortName - Emoji short name, for example `:+1:`
|
|
1584
|
+
* @param options - Optional request options
|
|
1585
|
+
* @returns The comment, with the reaction removed
|
|
1586
|
+
*/
|
|
1587
|
+
removeReaction(id: string, shortName: CollaborationCommentReactionShortName, options?: CollaborationCommentsWriteOptions): Promise<CollaborationCommentDocument>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Build the global document reference used by `target.document._ref`, for use in
|
|
1590
|
+
* queries and listeners.
|
|
1591
|
+
*
|
|
1592
|
+
* The reference is built from the configured `resource` and the published ID of
|
|
1593
|
+
* the given document ID, since comment references always use published IDs.
|
|
1594
|
+
*
|
|
1595
|
+
* @example
|
|
1596
|
+
* ```ts
|
|
1597
|
+
* const comments = await client.collaboration.comments.fetch(
|
|
1598
|
+
* '*[_type == "sanity.comment" && target.document._ref == $ref]',
|
|
1599
|
+
* {ref: client.collaboration.comments.getTargetDocumentRef('doc-1')},
|
|
1600
|
+
* )
|
|
1601
|
+
* ```
|
|
1602
|
+
*
|
|
1603
|
+
* @param documentId - Document ID, in published, draft or version form
|
|
1604
|
+
* @returns Global document reference, of the form `resourceType:resourceId:documentId`
|
|
1605
|
+
*/
|
|
1606
|
+
getTargetDocumentRef(documentId: string): CollaborationCommentDocument['target']['document']['_ref'];
|
|
1607
|
+
/**
|
|
1608
|
+
* Fetch comments on the configured resource.
|
|
1609
|
+
*
|
|
1610
|
+
* Takes the same `query` and `params` as `client.fetch`, and switches from a
|
|
1611
|
+
* GET to a POST for queries too large for the request URL in the same way,
|
|
1612
|
+
* but queries the comments endpoint, which accepts none of the query options
|
|
1613
|
+
* `client.fetch` does (`perspective`, `useCdn`, `filterResponse`,
|
|
1614
|
+
* `resultSourceMap`, stega).
|
|
1615
|
+
*
|
|
1616
|
+
* The query runs against the organization store, which is not scoped to
|
|
1617
|
+
* comments, so filter on `_type == "sanity.comment"`.
|
|
1618
|
+
*
|
|
1619
|
+
* @param query - GROQ-query to perform
|
|
1620
|
+
* @param params - Optional query parameters
|
|
1621
|
+
* @param options - Optional request options
|
|
1622
|
+
*/
|
|
1623
|
+
fetch<R = unknown>(query: string, params?: QueryParams, options?: CollaborationCommentsRequestOptions): Promise<R>;
|
|
1624
|
+
/**
|
|
1625
|
+
* Listen for changes to comments on the configured resource.
|
|
1626
|
+
*
|
|
1627
|
+
* Mirrors `client.listen(query, params)`, and emits mutation events.
|
|
1628
|
+
*
|
|
1629
|
+
* @param query - GROQ-filter to listen to changes for
|
|
1630
|
+
* @param params - Optional query parameters
|
|
1631
|
+
*/
|
|
1632
|
+
listen(query: string, params?: QueryParams): Observable<MutationEvent<CollaborationCommentDocument>>;
|
|
1633
|
+
/**
|
|
1634
|
+
* Listen for changes to comments on the configured resource.
|
|
1635
|
+
*
|
|
1636
|
+
* Mirrors `client.listen(query, params, options)`.
|
|
1637
|
+
*
|
|
1638
|
+
* @param query - GROQ-filter to listen to changes for
|
|
1639
|
+
* @param params - Optional query parameters
|
|
1640
|
+
* @param options - The same listener options `client.listen` takes, forwarded
|
|
1641
|
+
* to the organization store's listener
|
|
1642
|
+
*/
|
|
1643
|
+
listen<Opts extends CollaborationCommentsListenOptions>(query: string, params: QueryParams | undefined, options: Opts): Observable<ListenEventFromOptions<CollaborationCommentDocument, Opts>>;
|
|
1644
|
+
}
|
|
1143
1645
|
/**
|
|
1144
1646
|
* @public
|
|
1145
1647
|
*/
|
|
@@ -1635,6 +2137,17 @@ interface InvokeFunctionRequest {
|
|
|
1635
2137
|
signal?: AbortSignal;
|
|
1636
2138
|
}
|
|
1637
2139
|
/** @public */
|
|
2140
|
+
interface InvokeFunctionOptions {
|
|
2141
|
+
/**
|
|
2142
|
+
* Wait for the function to finish and resolve with its return value.
|
|
2143
|
+
*
|
|
2144
|
+
* Defaults to `false`: the invocation is started, the request resolves as soon
|
|
2145
|
+
* as it is accepted, and the value is always `undefined`. Only function types
|
|
2146
|
+
* that support running inline can be invoked synchronously.
|
|
2147
|
+
*/
|
|
2148
|
+
sync?: boolean;
|
|
2149
|
+
}
|
|
2150
|
+
/** @public */
|
|
1638
2151
|
declare class ObservableFunctionsClient {
|
|
1639
2152
|
#private;
|
|
1640
2153
|
constructor(client: ObservableSanityClient$1, httpRequest: HttpRequest);
|
|
@@ -1642,12 +2155,21 @@ declare class ObservableFunctionsClient {
|
|
|
1642
2155
|
* Invoke a deployed function by its blueprint name.
|
|
1643
2156
|
*
|
|
1644
2157
|
* The name is resolved within the stack given by `stackId` on the request or
|
|
1645
|
-
* the client config.
|
|
2158
|
+
* the client config. Starts the invocation and emits `undefined` as soon as
|
|
2159
|
+
* it is accepted; pass `{sync: true}` to wait for the function's return value
|
|
2160
|
+
* instead.
|
|
1646
2161
|
*
|
|
1647
2162
|
* @param functionName - name of the function, as declared in the blueprint
|
|
1648
2163
|
* @param request - payload and request options
|
|
2164
|
+
* @param options - invocation options
|
|
1649
2165
|
*/
|
|
1650
|
-
invoke
|
|
2166
|
+
invoke(functionName: string, request?: InvokeFunctionRequest, options?: InvokeFunctionOptions & {
|
|
2167
|
+
sync?: false;
|
|
2168
|
+
}): Observable<undefined>;
|
|
2169
|
+
invoke<R = unknown>(functionName: string, request: InvokeFunctionRequest | undefined, options: InvokeFunctionOptions & {
|
|
2170
|
+
sync: true;
|
|
2171
|
+
}): Observable<R>;
|
|
2172
|
+
invoke<R = unknown>(functionName: string, request?: InvokeFunctionRequest, options?: InvokeFunctionOptions): Observable<R | undefined>;
|
|
1651
2173
|
}
|
|
1652
2174
|
/** @public */
|
|
1653
2175
|
declare class FunctionsClient {
|
|
@@ -1658,20 +2180,30 @@ declare class FunctionsClient {
|
|
|
1658
2180
|
*
|
|
1659
2181
|
* The name is resolved within the stack given by `stackId` on the request or
|
|
1660
2182
|
* the client config, which costs one extra request per call. Rejects if the
|
|
1661
|
-
* stack has no function by that name, or if the name resolves to
|
|
1662
|
-
*
|
|
2183
|
+
* stack has no function by that name, or if the name resolves to a function
|
|
2184
|
+
* type that cannot be invoked the way it was asked for.
|
|
1663
2185
|
*
|
|
1664
2186
|
* The lookup is scoped to `projectId`, or to `organizationId` when one is set
|
|
1665
2187
|
* for a stack deployed at organization scope.
|
|
1666
2188
|
*
|
|
1667
|
-
* The
|
|
1668
|
-
*
|
|
1669
|
-
*
|
|
2189
|
+
* The invocation is started by default: the promise resolves with `undefined`
|
|
2190
|
+
* as soon as the call is accepted, without waiting for the function to run.
|
|
2191
|
+
* Pass `{sync: true}` to keep the request open until the function finishes
|
|
2192
|
+
* and resolve with its return value — long-running functions may then need an
|
|
2193
|
+
* explicit `timeout`. Only `sanity.function.pubsub` functions can be invoked
|
|
2194
|
+
* synchronously.
|
|
1670
2195
|
*
|
|
1671
2196
|
* @param functionName - name of the function, as declared in the blueprint
|
|
1672
2197
|
* @param request - payload and request options
|
|
2198
|
+
* @param options - invocation options
|
|
1673
2199
|
*/
|
|
1674
|
-
invoke
|
|
2200
|
+
invoke(functionName: string, request?: InvokeFunctionRequest, options?: InvokeFunctionOptions & {
|
|
2201
|
+
sync?: false;
|
|
2202
|
+
}): Promise<undefined>;
|
|
2203
|
+
invoke<R = unknown>(functionName: string, request: InvokeFunctionRequest | undefined, options: InvokeFunctionOptions & {
|
|
2204
|
+
sync: true;
|
|
2205
|
+
}): Promise<R>;
|
|
2206
|
+
invoke<R = unknown>(functionName: string, request?: InvokeFunctionRequest, options?: InvokeFunctionOptions): Promise<R | undefined>;
|
|
1675
2207
|
}
|
|
1676
2208
|
/** @internal */
|
|
1677
2209
|
declare class ObservableMediaLibraryVideoClient {
|
|
@@ -2267,6 +2799,10 @@ declare class ObservableSanityClient$1 {
|
|
|
2267
2799
|
agent: {
|
|
2268
2800
|
action: ObservableAgentsActionClient;
|
|
2269
2801
|
};
|
|
2802
|
+
collaboration: {
|
|
2803
|
+
/** @alpha */
|
|
2804
|
+
comments: ObservableCollaborationCommentsClient;
|
|
2805
|
+
};
|
|
2270
2806
|
functions: ObservableFunctionsClient;
|
|
2271
2807
|
releases: ObservableReleasesClient;
|
|
2272
2808
|
/**
|
|
@@ -2897,6 +3433,10 @@ declare class SanityClient$1 {
|
|
|
2897
3433
|
agent: {
|
|
2898
3434
|
action: AgentActionsClient;
|
|
2899
3435
|
};
|
|
3436
|
+
collaboration: {
|
|
3437
|
+
/** @alpha */
|
|
3438
|
+
comments: CollaborationCommentsClient;
|
|
3439
|
+
};
|
|
2900
3440
|
functions: FunctionsClient;
|
|
2901
3441
|
releases: ReleasesClient;
|
|
2902
3442
|
/**
|
|
@@ -4025,6 +4565,16 @@ interface ClientConfig$1 {
|
|
|
4025
4565
|
* ID of the organization owning the blueprints stack
|
|
4026
4566
|
*/
|
|
4027
4567
|
organizationId?: string;
|
|
4568
|
+
/**
|
|
4569
|
+
* Organization-scoped configuration for collaboration APIs.
|
|
4570
|
+
*
|
|
4571
|
+
* Currently this is used by `collaboration.comments` methods.
|
|
4572
|
+
*
|
|
4573
|
+
* @alpha
|
|
4574
|
+
*/
|
|
4575
|
+
collaboration?: {
|
|
4576
|
+
organizationId?: string;
|
|
4577
|
+
};
|
|
4028
4578
|
}
|
|
4029
4579
|
/** @public */
|
|
4030
4580
|
interface InitializedClientConfig$1 extends ClientConfig$1 {
|
|
@@ -4506,8 +5056,13 @@ type ReleaseAction = CreateReleaseAction | EditReleaseAction | PublishReleaseAct
|
|
|
4506
5056
|
type VariantDefinitionAction = CreateVariantDefinitionAction | EditVariantDefinitionAction | DeleteVariantDefinitionAction;
|
|
4507
5057
|
/** @public */
|
|
4508
5058
|
type VersionAction = CreateVersionAction | DiscardVersionAction | ReplaceVersionAction | UnpublishVersionAction;
|
|
5059
|
+
/**
|
|
5060
|
+
* @public
|
|
5061
|
+
* @beta
|
|
5062
|
+
*/
|
|
5063
|
+
type VariantAction = CreateVariantAction | EditVariantAction | DeleteVariantAction | PublishVariantAction | UnpublishVariantAction;
|
|
4509
5064
|
/** @public */
|
|
4510
|
-
type Action = CreateAction | ReplaceDraftAction | EditAction | DeleteAction | DiscardAction | PublishAction | UnpublishAction | VersionAction | ReleaseAction | VariantDefinitionAction;
|
|
5065
|
+
type Action = CreateAction | ReplaceDraftAction | EditAction | DeleteAction | DiscardAction | PublishAction | UnpublishAction | VersionAction | VariantAction | ReleaseAction | VariantDefinitionAction;
|
|
4511
5066
|
/** @public */
|
|
4512
5067
|
type ImportReleaseAction = {
|
|
4513
5068
|
actionType: 'sanity.action.release.import';
|
|
@@ -4646,6 +5201,175 @@ interface UnpublishVersionAction {
|
|
|
4646
5201
|
versionId: string;
|
|
4647
5202
|
publishedId: string;
|
|
4648
5203
|
}
|
|
5204
|
+
/**
|
|
5205
|
+
* Creates a variant of a document, either by supplying the full document
|
|
5206
|
+
* content, or the base ID of a document to copy.
|
|
5207
|
+
*
|
|
5208
|
+
* @public
|
|
5209
|
+
* @beta
|
|
5210
|
+
*/
|
|
5211
|
+
type CreateVariantAction = {
|
|
5212
|
+
actionType: 'sanity.action.document.variant.create';
|
|
5213
|
+
/**
|
|
5214
|
+
* ID of the document group to create a variant in. Must be a published
|
|
5215
|
+
* document ID, without a `drafts.` or `versions.` prefix.
|
|
5216
|
+
*/
|
|
5217
|
+
publishedId: string;
|
|
5218
|
+
/**
|
|
5219
|
+
* Name of the variant definition this document belongs to, as in
|
|
5220
|
+
* `_.variants.{variantName}`. Must be a bare name, not a full document ID.
|
|
5221
|
+
*/
|
|
5222
|
+
variantId: string;
|
|
5223
|
+
/**
|
|
5224
|
+
* Source bundle: `'drafts'`, or a release id.
|
|
5225
|
+
*
|
|
5226
|
+
* Defaults to the published bundle.
|
|
5227
|
+
*/
|
|
5228
|
+
bundleId?: 'drafts' | (string & {});
|
|
5229
|
+
} & ({
|
|
5230
|
+
/**
|
|
5231
|
+
* The full document content. Requires a `_type` property.
|
|
5232
|
+
*/
|
|
5233
|
+
document: SanityDocumentStub;
|
|
5234
|
+
baseId?: never;
|
|
5235
|
+
ifBaseRevisionId?: never;
|
|
5236
|
+
} | {
|
|
5237
|
+
/**
|
|
5238
|
+
* ID of an existing document to copy the content from.
|
|
5239
|
+
*/
|
|
5240
|
+
baseId: string;
|
|
5241
|
+
/**
|
|
5242
|
+
* When set, the action fails unless the current revision of the base
|
|
5243
|
+
* document matches this value.
|
|
5244
|
+
*/
|
|
5245
|
+
ifBaseRevisionId?: string;
|
|
5246
|
+
document?: never;
|
|
5247
|
+
});
|
|
5248
|
+
/**
|
|
5249
|
+
* Modifies a variant version of a document by applying a patch.
|
|
5250
|
+
*
|
|
5251
|
+
* If no such variant document exists it is first created, by copying the
|
|
5252
|
+
* variant's published sibling, or the published document if the variant was
|
|
5253
|
+
* never published.
|
|
5254
|
+
*
|
|
5255
|
+
* @public
|
|
5256
|
+
* @beta
|
|
5257
|
+
*/
|
|
5258
|
+
interface EditVariantAction {
|
|
5259
|
+
actionType: 'sanity.action.document.variant.edit';
|
|
5260
|
+
/**
|
|
5261
|
+
* ID of the document group the variant belongs to. Must be a published
|
|
5262
|
+
* document ID, without a `drafts.` or `versions.` prefix.
|
|
5263
|
+
*/
|
|
5264
|
+
publishedId: string;
|
|
5265
|
+
/**
|
|
5266
|
+
* Name of the variant definition this document belongs to, as in
|
|
5267
|
+
* `_.variants.{variantName}`. Must be a bare name, not a full document ID.
|
|
5268
|
+
*/
|
|
5269
|
+
variantId: string;
|
|
5270
|
+
/**
|
|
5271
|
+
* Source bundle: `'drafts'`, or a release id.
|
|
5272
|
+
*
|
|
5273
|
+
* Defaults to the published bundle.
|
|
5274
|
+
*/
|
|
5275
|
+
bundleId?: 'drafts' | (string & {});
|
|
5276
|
+
/**
|
|
5277
|
+
* Patch operations to apply.
|
|
5278
|
+
*/
|
|
5279
|
+
patch: PatchOperations;
|
|
5280
|
+
}
|
|
5281
|
+
/**
|
|
5282
|
+
* Deletes a variant of a document.
|
|
5283
|
+
*
|
|
5284
|
+
* @public
|
|
5285
|
+
* @beta
|
|
5286
|
+
*/
|
|
5287
|
+
interface DeleteVariantAction {
|
|
5288
|
+
actionType: 'sanity.action.document.variant.delete';
|
|
5289
|
+
/**
|
|
5290
|
+
* ID of the document group the variant belongs to. Must be a published
|
|
5291
|
+
* document ID, without a `drafts.` or `versions.` prefix.
|
|
5292
|
+
*/
|
|
5293
|
+
publishedId: string;
|
|
5294
|
+
/**
|
|
5295
|
+
* Name of the variant definition this document belongs to, as in
|
|
5296
|
+
* `_.variants.{variantName}`. Must be a bare name, not a full document ID.
|
|
5297
|
+
*/
|
|
5298
|
+
variantId: string;
|
|
5299
|
+
/**
|
|
5300
|
+
* Source bundle: `'drafts'`, or a release id.
|
|
5301
|
+
*
|
|
5302
|
+
* Defaults to the published bundle.
|
|
5303
|
+
*/
|
|
5304
|
+
bundleId?: 'drafts' | (string & {});
|
|
5305
|
+
/**
|
|
5306
|
+
* Delete document history.
|
|
5307
|
+
*/
|
|
5308
|
+
purge?: boolean;
|
|
5309
|
+
}
|
|
5310
|
+
/**
|
|
5311
|
+
* Publishes a variant version of a document, replacing the published variant
|
|
5312
|
+
* and removing the source variant document.
|
|
5313
|
+
*
|
|
5314
|
+
* @public
|
|
5315
|
+
* @beta
|
|
5316
|
+
*/
|
|
5317
|
+
interface PublishVariantAction {
|
|
5318
|
+
actionType: 'sanity.action.document.variant.publish';
|
|
5319
|
+
/**
|
|
5320
|
+
* ID of the document group the variant belongs to. Must be a published
|
|
5321
|
+
* document ID, without a `drafts.` or `versions.` prefix.
|
|
5322
|
+
*/
|
|
5323
|
+
publishedId: string;
|
|
5324
|
+
/**
|
|
5325
|
+
* Name of the variant definition this document belongs to, as in
|
|
5326
|
+
* `_.variants.{variantName}`. Must be a bare name, not a full document ID.
|
|
5327
|
+
*/
|
|
5328
|
+
variantId: string;
|
|
5329
|
+
/**
|
|
5330
|
+
* Bundle to publish from: `'drafts'`, or a release id.
|
|
5331
|
+
*/
|
|
5332
|
+
bundleId: 'drafts' | (string & {});
|
|
5333
|
+
/**
|
|
5334
|
+
* When set, publishing fails unless the current revision of the source
|
|
5335
|
+
* variant document matches this value.
|
|
5336
|
+
*/
|
|
5337
|
+
ifVersionRevisionId?: string;
|
|
5338
|
+
/**
|
|
5339
|
+
* When set, publishing fails unless the current revision of the published
|
|
5340
|
+
* variant document matches this value.
|
|
5341
|
+
*/
|
|
5342
|
+
ifPublishedVariantRevisionId?: string;
|
|
5343
|
+
}
|
|
5344
|
+
/**
|
|
5345
|
+
* Unpublishes a variant version of a document.
|
|
5346
|
+
*
|
|
5347
|
+
* By default the published variant is removed and preserved as a draft
|
|
5348
|
+
* variant. When a release id is given as the `bundleId`, the deletion is
|
|
5349
|
+
* instead staged in that release, and takes effect when it is published.
|
|
5350
|
+
*
|
|
5351
|
+
* @public
|
|
5352
|
+
* @beta
|
|
5353
|
+
*/
|
|
5354
|
+
interface UnpublishVariantAction {
|
|
5355
|
+
actionType: 'sanity.action.document.variant.unpublish';
|
|
5356
|
+
/**
|
|
5357
|
+
* ID of the document group the variant belongs to. Must be a published
|
|
5358
|
+
* document ID, without a `drafts.` or `versions.` prefix.
|
|
5359
|
+
*/
|
|
5360
|
+
publishedId: string;
|
|
5361
|
+
/**
|
|
5362
|
+
* Name of the variant definition this document belongs to, as in
|
|
5363
|
+
* `_.variants.{variantName}`. Must be a bare name, not a full document ID.
|
|
5364
|
+
*/
|
|
5365
|
+
variantId: string;
|
|
5366
|
+
/**
|
|
5367
|
+
* The content release in which to stage the unpublish.
|
|
5368
|
+
*
|
|
5369
|
+
* By default, the currently published document is unpublished immediately.
|
|
5370
|
+
*/
|
|
5371
|
+
bundleId?: string;
|
|
5372
|
+
}
|
|
4649
5373
|
/**
|
|
4650
5374
|
* Creates a new `system.variant` definition document.
|
|
4651
5375
|
*
|
|
@@ -5736,5 +6460,5 @@ interface MediaLibraryAssetDocument {
|
|
|
5736
6460
|
parent?: SanityReference | null;
|
|
5737
6461
|
rootDirectory?: Any$1;
|
|
5738
6462
|
}
|
|
5739
|
-
export {
|
|
5740
|
-
//# sourceMappingURL=types-
|
|
6463
|
+
export { DisconnectEvent as $, UploadClientConfig as $n, CollaborationCommentMessage as $r, QueryWithoutParams as $t, ContentSourceMapMappings as A, AgentActionTarget as Ai, SanityReference as An, ObservableProjectsClient as Ar, MediaLibraryAssetVersion as At, CreateVersionAction as B, TransactionAllDocumentIdsMutationOptions as Bn, ObservablePatchBuilder as Br, MutationSelection as Bt, ContentSourceMap$1 as C, PatchDocument as Ci, SanityDocument$1 as Cn, GenerateTarget as Cr, LiveEventGoAway as Ct, ContentSourceMapDocuments$1 as D, AgentActionParams as Di, SanityProject as Dn, SanityClient$1 as Dr, LiveEventWelcome as Dt, ContentSourceMapDocumentValueSource as E, AgentActionParam as Ei, SanityImagePalette as En, ObservableSanityClient$1 as Er, LiveEventRestart as Et, ContentSourceMapValueMapping as F, StackablePerspective as Fn, InvokeFunctionOptions as Fr, Mutation as Ft, DatasetResponse as G, UnarchiveReleaseAction as Gn, ObservablePatch as Gr, PatchOperations as Gt, DatasetAclMode as H, TransactionFirstDocumentIdMutationOptions as Hn, PatchBuilder as Hr, OpenEvent as Ht, CreateAction as I, StillImageFormat as In, InvokeFunctionRequest as Ir, MutationError as It, DeleteReleaseAction as J, UnpublishAction as Jn, CollaborationCommentsClient as Jr, PublishReleaseAction as Jt, DatasetsResponse as K, UnfilteredResponseQueryOptions as Kn, Patch as Kr, PatchSelection as Kt, CreateReleaseAction as L, StoryboardTransformOptions as Ln, DatasetsClient as Lr, MutationErrorItem as Lt, ContentSourceMapRemoteDocument as M, DocumentAgentActionParam as Mi, ScheduleReleaseAction as Mn, MediaLibraryVideoClient as Mr, MediaLibraryVideoPlaybackTransformations as Mt, ContentSourceMapSource as N, FieldAgentActionParam as Ni, SingleActionResult as Nn, ObservableMediaLibraryVideoClient as Nr, MultipleActionResult as Nt, ContentSourceMapLiteralSource as O, AgentActionPath as Oi, SanityProjectMember as On, ObservableUsersClient as Or, MediaLibraryAssetDocument as Ot, ContentSourceMapUnknownSource as P, GroqAgentActionParam as Pi, SingleMutationResult as Pn, InvokeFunctionEvent as Pr, MultipleMutationResult as Pt, DiscardVersionAction as Q, UploadBody as Qn, CollaborationCommentFieldValue as Qr, QueryParseError as Qt, CreateVariantAction as R, SyncTag as Rn, ObservableDatasetsClient as Rr, MutationEvent as Rt, ClientVariantConditions as S, PromptRequest as Si, SanityAssetDocument as Sn, GenerateOperation as Sr, LiveEvent as St, ContentSourceMapDocumentBase as T, PatchTarget as Ti, SanityImageAssetDocument as Tn, GenerateTargetInclude as Tr, LiveEventReconnect as Tt, DatasetCreateOptions as U, TransactionFirstDocumentMutationOptions as Un, Transaction as Ur, PartialExcept as Ut, CurrentSanityUser as V, TransactionAllDocumentsMutationOptions as Vn, ObservableTransaction as Vr, MutationSelectionQueryParams as Vt, DatasetEditOptions as W, TransactionMutationOptions as Wn, BasePatch as Wr, PatchMutationOperation as Wt, DeleteVariantDefinitionAction as X, UnpublishVersionAction as Xn, CollaborationCommentCreate as Xr, QueryOptions as Xt, DeleteVariantAction as Y, UnpublishVariantAction as Yn, ObservableCollaborationCommentsClient as Yr, PublishVariantAction as Yt, DiscardAction as Z, UnscheduleReleaseAction as Zn, CollaborationCommentDocument as Zr, QueryParams as Zt, ChannelErrorEvent as _, TransformDocument as _i, Requester as _n, VideoSubtitleInfoPublic as _r, InsertPatch as _t, AllDocumentsMutationOptions as a, CollaborationCommentTarget as ai, ReleaseCardinality as an, VersionAction as ar, EditableReleaseDocument as at, ClientReturn$1 as b, TransformTargetDocument as bi, ResumableListenEventNames as bn, WelcomeEvent as br, ListenOptions as bt, Any$1 as c, CollaborationCommentsRequestOptions as ci, ReleaseState as cn, VideoPlaybackInfoItemPublic as cr, ErrorProps as ct, AssetMetadataType as d, AssetsClient as di, ReplaceVersionAction as dn, VideoPlaybackInfoSigned as dr, FirstDocumentMutationOptions as dt, CollaborationCommentPortableTextBlock as ei, RawQueryResponse$1 as en, UploadEvent as er, EXPERIMENTAL_API_WARNING as et, AttributeSet as f, ObservableAssetsClient as fi, RequestHandler as fn, VideoPlaybackTokens as fr, FitMode as ft, BaseMutationOptions as g, ImageDescriptionOperation as gi, RequestUrlOptions as gn, VideoSubtitleInfo as gr, InitializedClientConfig$1 as gt, BaseActionOptions as h, TranslateTargetInclude as hi, RequestOptions$1 as hn, VideoRenditionInfoSigned as hr, ImportReleaseAction as ht, AllDocumentIdsMutationOptions as i, CollaborationCommentStatus as ii, ReleaseAction as in, VariantDefinitionAction as ir, EditVariantDefinitionAction as it, ContentSourceMapPaths as j, ConstantAgentActionParam as ji, SanityUser as jn, ProjectsClient as jr, MediaLibraryPlaybackInfoOptions as jt, ContentSourceMapMapping as k, AgentActionPathSegment as ki, SanityQueries as kn, UsersClient as kr, MediaLibraryAssetInstanceIdentifier as kt, ApiError as l, CollaborationCommentsWriteOptions as li, ReleaseType as ln, VideoPlaybackInfoItemSigned as lr, FilteredResponseQueryOptions as lt, AuthProviderResponse as m, TranslateTarget as mi, RequestObservableOptions as mn, VideoRenditionInfoPublic as mr, IdentifiedSanityDocumentStub as mt, ActionError as n, CollaborationCommentReactionShortName as ni, RawRequestOptions as nn, UploadResponseEvent as nr, EditReleaseAction as nt, AnimatedImageFormat as o, CollaborationCommentUpdate as oi, ReleaseDocument as on, VideoPlaybackInfo as or, EmbeddingsSettings as ot, AuthProvider as p, TranslateDocument as pi, RequestHandlerOptions as pn, VideoRenditionInfo as pr, HttpRequest as pt, DeleteAction as q, UnfilteredResponseWithoutQuery as qn, LiveClient as qr, PublishAction as qt, ActionErrorItem as r, CollaborationCommentSelection as ri, ReconnectEvent as rn, VariantAction as rr, EditVariantAction as rt, AnimatedTransformOptions as s, CollaborationCommentsListenOptions as si, ReleaseId as sn, VideoPlaybackInfoItem as sr, EmbeddingsSettingsBody as st, Action as t, CollaborationCommentRange as ti, RawQuerylessQueryResponse as tn, UploadProgressEvent as tr, EditAction as tt, ArchiveReleaseAction as u, _listen as ui, ReplaceDraftAction as un, VideoPlaybackInfoPublic as ur, FirstDocumentIdMutationOptions as ut, ClientConfig$1 as v, TransformOperation as vi, ResetEvent as vn, VideoSubtitleInfoSigned as vr, ListenEvent as vt, ContentSourceMapDocument as w, PatchOperation as wi, SanityDocumentStub as wn, GenerateTargetDocument as wr, LiveEventMessage as wt, ClientVariant as x, TransformTargetInclude as xi, ResumableListenOptions as xn, GenerateInstruction as xr, ListenParams as xt, ClientPerspective$1 as y, TransformTarget as yi, ResponseQueryOptions as yn, WelcomeBackEvent as yr, ListenEventName as yt, CreateVariantDefinitionAction as z, ThumbnailTransformOptions as zn, BaseTransaction as zr, MutationOperation as zt };
|
|
6464
|
+
//# sourceMappingURL=types-0x2hPfhJ.d.ts.map
|