@andesine/sdk 0.6.0 → 0.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.
@@ -1,4 +1,4 @@
1
- import { N as ContentSchemaMetadata, R as EntryFragment, _n as operations, gn as components, mt as PublishedCollection, yt as PublishedEntryContent, z as EntryProperty } from "./schema-CrquN_J6.js";
1
+ import { N as ContentSchemaMetadata, R as EntryFragment, _n as operations, gn as components, mt as PublishedCollection, yt as PublishedEntryContent, z as EntryProperty } from "./schema-CMpGUItd.js";
2
2
  //#region src/workspace.d.ts
3
3
  /**
4
4
  * Type-only description of one workspace and content source.
@@ -237,20 +237,6 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
237
237
  * });
238
238
  */
239
239
  importURL: Operation<"assets.importURL", Workspace>;
240
- /**
241
- * Attach an asset
242
- *
243
- * Attaches a ready image to an entry. This does not insert an image node into the document.
244
- *
245
- * Required API key permissions: entries. Write permissions also grant read access for the same resource.
246
- *
247
- * @example
248
- * await client.assets.attach({
249
- * "assetID": "ast_example",
250
- * "entryID": "ent_example"
251
- * });
252
- */
253
- attach: Operation<"assets.attach", Workspace>;
254
240
  /**
255
241
  * Register an image upload
256
242
  *
@@ -299,7 +285,7 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
299
285
  /**
300
286
  * Get credential identity
301
287
  *
302
- * Returns the authenticated user for OAuth or browser credentials, or the key and workspace IDs for an API key. Does not require a workspace selection and does not count toward API usage.
288
+ * Returns the authenticated user for OAuth or browser credentials, or the key and workspace IDs and the permissions of an API key. Does not require a workspace selection and does not count toward API usage.
303
289
  */
304
290
  getIdentity: Operation<"auth.getIdentity", Workspace>;
305
291
  };
@@ -318,7 +304,7 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
318
304
  /**
319
305
  * Create an entry
320
306
  *
321
- * Creates an entry and its initial document. The name defaults to Untitled. Creation selects an available sibling name with a numeric suffix when needed. Names are trimmed and NFC-normalized. Derived URL slugs must be unique across sibling entries and collections, including case and punctuation variants. Names cannot contain a slash or equal a single dot or two dots. A collection schema can set the initial content.
307
+ * Creates an entry and its initial document, in the collection given by collectionID, collectionPath, or collectionSlugPath (the top level by default). The name defaults to Untitled, or comes from the title of the supplied document or mdx. fields sets property values and fragment MDX by field name or key. path places the entry at a full name path and creates missing parent collections; a name already used there is a conflict. A repeated request with the same Idempotency-Key header returns the first result for 24 hours. Creation selects an available sibling name with a numeric suffix when needed. Names are trimmed and NFC-normalized. Derived URL slugs must be unique across sibling entries and collections, including case and punctuation variants. Names cannot contain a slash or equal a single dot or two dots. A collection schema sets the initial content without a document; a document must match it.
322
308
  *
323
309
  * Required API key permissions: entries. Write permissions also grant read access for the same resource.
324
310
  *
@@ -358,9 +344,9 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
358
344
  */
359
345
  delete: Operation<"entries.delete", Workspace>;
360
346
  /**
361
- * Rename an entry
347
+ * Update an entry
362
348
  *
363
- * Updates the entry name. Rejects names already used by a sibling entry or collection. An active schema migration can block this action.
349
+ * Renames the entry, replaces its content with document or mdx, or edits it with operations (with name, also renames). document and mdx need expectedHash, the hash of the content they replace (from entries.get); a different current hash returns CONTENT_HASH_MISMATCH. Operations anchor on block IDs, unique text, and field keys from entries.get with contentFormat blocks; expectedHash is optional for them, and a missing or ambiguous anchor returns CONTENT_OPERATION_INVALID. Only the changed blocks change, so live edits elsewhere are kept. Current content without a version is first saved as an auto version. version also saves the new content as a named version. Rejects names already used by a sibling entry or collection. expectedName applies the update only when the entry still has that name. An active schema migration can block this action. A repeated request with the same Idempotency-Key header returns the first result for 24 hours.
364
350
  *
365
351
  * Required API key permissions: entries. Write permissions also grant read access for the same resource.
366
352
  *
@@ -371,6 +357,62 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
371
357
  * });
372
358
  */
373
359
  update: Operation<"entries.update", Workspace>;
360
+ /**
361
+ * Update entries
362
+ *
363
+ * Writes content of many entries in one workspace lock, with the items of entries.update; a name without content is written as the title. All items are checked before any content changes, and all or none apply. Error messages name the failing item by index. Each entry can appear once. A repeated request with the same Idempotency-Key header returns the first result for 24 hours.
364
+ *
365
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
366
+ *
367
+ * @example
368
+ * await client.entries.bulkUpdate({
369
+ * "items": [
370
+ * {
371
+ * "id": "ent_example",
372
+ * "operations": [
373
+ * {
374
+ * "type": "replaceText",
375
+ * "find": "v1",
376
+ * "replace": "v2"
377
+ * }
378
+ * ]
379
+ * }
380
+ * ]
381
+ * });
382
+ */
383
+ bulkUpdate: Operation<"entries.bulkUpdate", Workspace>;
384
+ /**
385
+ * Move an entry
386
+ *
387
+ * Moves the entry to another collection or position. Without order, it keeps its position in the same collection and goes last in a new one. Rejects names already used in the new collection. A move that changes the schema can start a schema migration, which needs confirmedDataLoss when it can remove content.
388
+ *
389
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
390
+ *
391
+ * @example
392
+ * await client.entries.move({
393
+ * "id": "ent_example",
394
+ * "collectionID": "coll_example"
395
+ * });
396
+ */
397
+ move: Operation<"entries.move", Workspace>;
398
+ /**
399
+ * Move entries
400
+ *
401
+ * Moves many entries in one workspace lock, with the items of entries.move; all or none apply. Moves that need a schema migration aren't supported; move those entries with entries.move. Error messages name the failing item by index. Each entry can appear once.
402
+ *
403
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
404
+ *
405
+ * @example
406
+ * await client.entries.bulkMove({
407
+ * "items": [
408
+ * {
409
+ * "id": "ent_example",
410
+ * "collectionPath": "/Guides"
411
+ * }
412
+ * ]
413
+ * });
414
+ */
415
+ bulkMove: Operation<"entries.bulkMove", Workspace>;
374
416
  /**
375
417
  * Get an entry
376
418
  *
@@ -409,7 +451,7 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
409
451
  /**
410
452
  * Verify a session token
411
453
  *
412
- * Verifies a session token from the extension frontend and returns its member. Tokens of other extensions, expired tokens, and tokens of an earlier extension generation fail with NOT_FOUND.
454
+ * Verifies a session token from the extension frontend and returns its member. Tokens of other extensions, expired tokens, and tokens of an earlier extension generation fail with NOT_FOUND. checks evaluates collection and entry actions for the member, in collections the extension can read (restricted collections included), so the backend can authorize the member's request.
413
455
  */
414
456
  verifySession: Operation<"extensions.verifySession", Workspace>;
415
457
  /**
@@ -430,6 +472,30 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
430
472
  * Returns the extension's configuration, including secret fields, and its revision. Unset fields use their defaults.
431
473
  */
432
474
  getSelfConfiguration: Operation<"extensions.getSelfConfiguration", Workspace>;
475
+ /**
476
+ * List managed publishable keys
477
+ *
478
+ * Lists the publishable keys that the extension manages. Requires the publishable-keys permission.
479
+ */
480
+ listSelfPublishableKeys: Operation<"extensions.listSelfPublishableKeys", Workspace>;
481
+ /**
482
+ * Create a managed publishable key
483
+ *
484
+ * Creates a publishable key that the extension manages: read:publishing, and ai-answers with answers. Its collections must be readable by the extension. Members see it in API settings and can only delete it. It stops working while the extension is disabled or revoked; losing the permission or read:publishing, or uninstalling, deletes it, and losing ai-answers removes that permission. Up to 10 keys per installation. Requires the publishable-keys permission.
485
+ */
486
+ createSelfPublishableKey: Operation<"extensions.createSelfPublishableKey", Workspace>;
487
+ /**
488
+ * Update a managed publishable key
489
+ *
490
+ * Changes the name, collections, origins, or AI answers of a key that the extension manages. Requires the publishable-keys permission.
491
+ */
492
+ updateSelfPublishableKey: Operation<"extensions.updateSelfPublishableKey", Workspace>;
493
+ /**
494
+ * Delete a managed publishable key
495
+ *
496
+ * Deletes a key that the extension manages, if it exists. Requires the publishable-keys permission.
497
+ */
498
+ deleteSelfPublishableKey: Operation<"extensions.deleteSelfPublishableKey", Workspace>;
433
499
  /**
434
500
  * Get a storage entry
435
501
  *
@@ -454,6 +520,14 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
454
520
  * Lists the extension's storage entries in key order, optionally with a key prefix. A page ends early when its values reach 192 KiB.
455
521
  */
456
522
  listSelfStorageEntries: Operation<"extensions.listSelfStorageEntries", Workspace>;
523
+ /**
524
+ * List custom elements
525
+ *
526
+ * The custom elements that the workspace's active extensions draw in the editor, e.g. Tabs: their props, whether they have content, which child blocks their content accepts, and the elements that belong inside them. Write them in MDX as <Name prop="value">content</Name>. The editor guides edits by these rules and offers a clean-up; the API doesn't enforce them.
527
+ *
528
+ * Required API key permissions: read:entries. Write permissions also grant read access for the same resource.
529
+ */
530
+ listElements: Operation<"extensions.listElements", Workspace>;
457
531
  };
458
532
  collections: {
459
533
  /**
@@ -512,6 +586,33 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
512
586
  * });
513
587
  */
514
588
  update: Operation<"collections.update", Workspace>;
589
+ /**
590
+ * Move a collection
591
+ *
592
+ * Moves the collection to another parent or position. Without a new parent, it stays in its parent. Without index, it keeps its position in the same parent and goes last in a new one. Rejects names already used in the new parent. A move that changes the schema can start a schema migration, which needs confirmedDataLoss when it can remove content.
593
+ *
594
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
595
+ *
596
+ * @example
597
+ * await client.collections.move({
598
+ * "id": "coll_example",
599
+ * "newParentID": "coll_parent"
600
+ * });
601
+ */
602
+ move: Operation<"collections.move", Workspace>;
603
+ /**
604
+ * Get a collection
605
+ *
606
+ * Returns one collection by collectionID, collectionPath, or collectionSlugPath, with its name, path, and ancestors.
607
+ *
608
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
609
+ *
610
+ * @example
611
+ * await client.collections.get({
612
+ * "collectionID": "coll_example"
613
+ * });
614
+ */
615
+ get: Operation<"collections.get", Workspace>;
515
616
  /**
516
617
  * List collections
517
618
  *
@@ -1359,6 +1460,20 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
1359
1460
  * });
1360
1461
  */
1361
1462
  getChannelContent: Operation<"publishing.getChannelContent", Workspace>;
1463
+ /**
1464
+ * Rename a publishing channel
1465
+ *
1466
+ * Changes the display name of a publishing channel. The channel code, which content reads and webhooks use, doesn't change.
1467
+ *
1468
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1469
+ *
1470
+ * @example
1471
+ * await client.publishing.updateChannel({
1472
+ * "code": "preview",
1473
+ * "name": "Staging"
1474
+ * });
1475
+ */
1476
+ updateChannel: Operation<"publishing.updateChannel", Workspace>;
1362
1477
  /**
1363
1478
  * Delete a publishing channel
1364
1479
  *
@@ -1385,7 +1500,7 @@ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
1385
1500
  /**
1386
1501
  * Create an entry version
1387
1502
  *
1388
- * Saves a version of the current entry content. Optionally assigns a name.
1503
+ * Saves a version of the current entry content, or of supplied document (ProseMirror JSON) or mdx, which must match the editor and the entry's collection schema. Never changes the current content. Optionally assigns a name. Publish the version with publishing.publishEntry. A repeated request with the same Idempotency-Key header returns the first result for 24 hours.
1389
1504
  *
1390
1505
  * Required API key permissions: versions. Write permissions also grant read access for the same resource.
1391
1506
  *
@@ -1593,4 +1708,4 @@ interface ClientOptions {
1593
1708
  declare const createClient: <Workspace extends WorkspaceTypeMap = WorkspaceTypeMap>(config?: ClientOptions) => AndesineClient<Workspace>;
1594
1709
  //#endregion
1595
1710
  export { WorkspaceCollection as _, ContentPaginationOptions as a, WorkspaceTypeMap as b, APIErrorData as c, OperationError as d, OperationInput as f, SchemaContent as g, ContentListOutput as h, ContentClient as i, APIResponse as l, RequestOptions as m, ClientOptions as n, APIErrorBody as o, OperationOutput as p, createClient as r, APIErrorCode as s, AndesineClient as t, NotModifiedResponse as u, WorkspaceEntry as v, WorkspaceSchema as y };
1596
- //# sourceMappingURL=client-C8wt7f3o.d.ts.map
1711
+ //# sourceMappingURL=client-QR7crUNC.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ClientOptions, t as AndesineClient } from "./client-C8wt7f3o.js";
1
+ import { n as ClientOptions, t as AndesineClient } from "./client-QR7crUNC.js";
2
2
  //#region src/extensions/jwt.d.ts
3
3
  interface ExtensionPrivateKey extends JsonWebKey {
4
4
  kid?: string;
@@ -15,6 +15,10 @@ interface ExtensionBackendOptions {
15
15
  /** Options for the API clients; the backend sets the base URL and the credential. */
16
16
  client?: Omit<ClientOptions, "baseURL" | "apiKey" | "accessToken">;
17
17
  }
18
+ interface VerifySessionOptions {
19
+ /** Member actions to check in collections the extension can read; results are in `checks`. */
20
+ checks?: SessionCheck[];
21
+ }
18
22
  interface ExtensionSessionContext extends VerifiedSession {
19
23
  /** The installation's `ext_` ID. */
20
24
  extensionID: string;
@@ -42,7 +46,7 @@ interface ExtensionBackend {
42
46
  * @throws ExtensionSessionError for missing headers, an untrusted instance, or an invalid token.
43
47
  * @throws AndesineAPIError for other API failures.
44
48
  */
45
- verifySession(headers: HeaderSource): Promise<ExtensionSessionContext>;
49
+ verifySession(headers: HeaderSource, options?: VerifySessionOptions): Promise<ExtensionSessionContext>;
46
50
  /**
47
51
  * Confirms a webhook body by fetching its delivery; respond with 2xx once handled, or it retries.
48
52
  * @throws ExtensionNotificationError for an invalid body, an untrusted instance, or no delivery.
@@ -51,6 +55,7 @@ interface ExtensionBackend {
51
55
  receive(body: unknown): Promise<ExtensionDeliveryContext>;
52
56
  }
53
57
  type VerifiedSession = Awaited<ReturnType<AndesineClient["extensions"]["verifySession"]>>;
58
+ type SessionCheck = NonNullable<Parameters<AndesineClient["extensions"]["verifySession"]>[0]["checks"]>[number];
54
59
  type ReceivedDelivery = Awaited<ReturnType<AndesineClient["extensions"]["getSelfDelivery"]>>;
55
60
  type HeaderSource = Headers | Record<string, string | string[] | undefined>;
56
61
  type ExtensionSessionErrorCode = "MISSING_SESSION" | "UNTRUSTED_INSTANCE" | "INVALID_SESSION";
@@ -75,5 +80,5 @@ declare class ExtensionNotificationError extends Error {
75
80
  */
76
81
  declare const createExtensionBackend: (options: ExtensionBackendOptions) => ExtensionBackend;
77
82
  //#endregion
78
- export { type ExtensionBackend, type ExtensionBackendOptions, type ExtensionDeliveryContext, ExtensionNotificationError, type ExtensionNotificationErrorCode, type ExtensionPrivateKey, type ExtensionSessionContext, ExtensionSessionError, type ExtensionSessionErrorCode, createExtensionBackend };
83
+ export { type ExtensionBackend, type ExtensionBackendOptions, type ExtensionDeliveryContext, ExtensionNotificationError, type ExtensionNotificationErrorCode, type ExtensionPrivateKey, type ExtensionSessionContext, ExtensionSessionError, type ExtensionSessionErrorCode, type VerifySessionOptions, createExtensionBackend };
79
84
  //# sourceMappingURL=extensions.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { n as AndesineAPIError } from "./answer-stream-7N_gLhVS.js";
2
- import { t as createClient } from "./client-DioqVOxl.js";
2
+ import { t as createClient } from "./client-CyhWWH37.js";
3
3
  //#region src/extensions/jwt.ts
4
4
  const TOKEN_LIFETIME = 300;
5
5
  const RENEWAL_MARGIN = 60;
@@ -165,7 +165,7 @@ const createExtensionBackend = (options) => {
165
165
  };
166
166
  return {
167
167
  createClient: createBackendClient,
168
- async verifySession(headers) {
168
+ async verifySession(headers, sessionOptions = {}) {
169
169
  const token = /^Bearer\s+(\S+)$/i.exec(getHeader(headers, "Authorization") ?? "")?.[1];
170
170
  const extensionID = getHeader(headers, "Andesine-Extension");
171
171
  const instance = getHeader(headers, "Andesine-Instance");
@@ -175,7 +175,10 @@ const createExtensionBackend = (options) => {
175
175
  const client = createBackendClient(audience, extensionID);
176
176
  try {
177
177
  return {
178
- ...await client.extensions.verifySession({ token }),
178
+ ...await client.extensions.verifySession({
179
+ token,
180
+ checks: sessionOptions.checks
181
+ }),
179
182
  extensionID,
180
183
  instance: audience,
181
184
  client
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.js","names":[],"sources":["../src/extensions/jwt.ts","../src/extensions.ts"],"sourcesContent":["interface ExtensionPrivateKey extends JsonWebKey {\n kid?: string;\n}\ninterface ExtensionTokenClaims {\n /** The instance API URL. */\n audience: string;\n /** The installation's `ext_` ID; null for app-level tokens. */\n subject: string | null;\n}\ninterface ExtensionSigner {\n sign(claims: ExtensionTokenClaims): Promise<string>;\n}\ninterface CachedToken {\n token: string;\n expiresAt: number;\n}\n\n// Andesine accepts tokens up to 300 seconds old; cached tokens renew a minute before that.\nconst TOKEN_LIFETIME = 300;\nconst RENEWAL_MARGIN = 60;\nconst MAX_CACHED_TOKENS = 1_000;\nconst ALGORITHMS = {\n \"Ed25519\": {\n alg: \"EdDSA\",\n importParams: { name: \"Ed25519\" },\n signParams: { name: \"Ed25519\" }\n },\n \"P-256\": {\n alg: \"ES256\",\n importParams: { name: \"ECDSA\", namedCurve: \"P-256\" },\n signParams: { name: \"ECDSA\", hash: \"SHA-256\" }\n }\n} as const;\n\nconst encodeBase64URL = (bytes: Uint8Array): string => {\n return btoa(String.fromCharCode(...bytes))\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=+$/, \"\");\n};\nconst encodeJSON = (value: object): string => {\n return encodeBase64URL(new TextEncoder().encode(JSON.stringify(value)));\n};\n// Errors never include the key, which can come from an environment variable.\nconst parsePrivateKey = (input: string | ExtensionPrivateKey): ExtensionPrivateKey => {\n if (typeof input !== \"string\") return input;\n\n try {\n return JSON.parse(input) as ExtensionPrivateKey;\n } catch {\n throw new TypeError(\"privateKey must be a JSON Web Key\");\n }\n};\n/** Signs extension JWTs with a private Ed25519 or P-256 JWK; caches them per audience/subject. */\nconst createExtensionSigner = (\n name: string,\n privateKey: string | ExtensionPrivateKey\n): ExtensionSigner => {\n const jwk = parsePrivateKey(privateKey);\n const algorithm = ALGORITHMS[jwk.crv as keyof typeof ALGORITHMS];\n const cache = new Map<string, CachedToken>();\n\n let key: Promise<CryptoKey> | null = null;\n\n if (!algorithm || !jwk.d || !jwk.kid) {\n throw new TypeError(\"privateKey must be a private Ed25519 or P-256 JWK with a kid\");\n }\n\n // Imported on first use, so an invalid key fails the first request, not module loading.\n const getKey = (): Promise<CryptoKey> => {\n key ??= crypto.subtle.importKey(\n \"jwk\",\n { kty: jwk.kty, crv: jwk.crv, x: jwk.x, y: jwk.y, d: jwk.d },\n algorithm.importParams,\n false,\n [\"sign\"]\n );\n\n return key;\n };\n\n return {\n async sign({ audience, subject }) {\n const now = Math.floor(Date.now() / 1000);\n const cacheKey = `${audience} ${subject ?? \"\"}`;\n const cached = cache.get(cacheKey);\n\n if (cached && cached.expiresAt - RENEWAL_MARGIN > now) return cached.token;\n\n const header = encodeJSON({ alg: algorithm.alg, kid: jwk.kid, typ: \"JWT\" });\n const payload = encodeJSON({\n iss: name,\n ...(subject && { sub: subject }),\n aud: audience,\n iat: now,\n exp: now + TOKEN_LIFETIME\n });\n const signature = await crypto.subtle.sign(\n algorithm.signParams,\n await getKey(),\n new TextEncoder().encode(`${header}.${payload}`)\n );\n const token = `${header}.${payload}.${encodeBase64URL(new Uint8Array(signature))}`;\n\n if (cache.size >= MAX_CACHED_TOKENS) cache.clear();\n\n cache.set(cacheKey, { token, expiresAt: now + TOKEN_LIFETIME });\n\n return token;\n }\n };\n};\n\nexport { createExtensionSigner };\nexport type { ExtensionPrivateKey, ExtensionSigner };\n","import { createClient, type AndesineClient, type ClientOptions } from \"./client\";\nimport { AndesineAPIError } from \"./error\";\nimport { createExtensionSigner, type ExtensionPrivateKey } from \"./extensions/jwt\";\n\ninterface ExtensionBackendOptions {\n /** The extension's registry name, e.g. `acme/publish`. */\n name: string;\n /** Private Ed25519 or P-256 JWK (string or object) with the registry `kid`; keep it secret. */\n privateKey: string | ExtensionPrivateKey;\n /** API URLs of the trusted Andesine instances, e.g. `https://api.andesine.app`. */\n trustedInstances: string[];\n /** Options for the API clients; the backend sets the base URL and the credential. */\n client?: Omit<ClientOptions, \"baseURL\" | \"apiKey\" | \"accessToken\">;\n}\ninterface ExtensionSessionContext extends VerifiedSession {\n /** The installation's `ext_` ID. */\n extensionID: string;\n /** The instance API URL. */\n instance: string;\n /** An API client for the installation, with the extension's permissions. */\n client: AndesineClient;\n}\ninterface ExtensionDeliveryContext extends ReceivedDelivery {\n /** The installation's `ext_` ID. */\n extensionID: string;\n /** The instance API URL. */\n instance: string;\n /** An API client for the installation, with the extension's permissions. */\n client: AndesineClient;\n}\ninterface ExtensionBackend {\n /**\n * API client for an installation; without `extensionID`, it can only list installations.\n * @throws TypeError if the instance is not trusted.\n */\n createClient(instance: string, extensionID?: string): AndesineClient;\n /**\n * Verifies the session headers that the frontend's `backend.fetch` sends.\n * @throws ExtensionSessionError for missing headers, an untrusted instance, or an invalid token.\n * @throws AndesineAPIError for other API failures.\n */\n verifySession(headers: HeaderSource): Promise<ExtensionSessionContext>;\n /**\n * Confirms a webhook body by fetching its delivery; respond with 2xx once handled, or it retries.\n * @throws ExtensionNotificationError for an invalid body, an untrusted instance, or no delivery.\n * @throws AndesineAPIError for other API failures.\n */\n receive(body: unknown): Promise<ExtensionDeliveryContext>;\n}\n\ntype VerifiedSession = Awaited<ReturnType<AndesineClient[\"extensions\"][\"verifySession\"]>>;\ntype ReceivedDelivery = Awaited<ReturnType<AndesineClient[\"extensions\"][\"getSelfDelivery\"]>>;\ntype HeaderSource = Headers | Record<string, string | string[] | undefined>;\ntype ExtensionSessionErrorCode = \"MISSING_SESSION\" | \"UNTRUSTED_INSTANCE\" | \"INVALID_SESSION\";\ntype ExtensionNotificationErrorCode =\n \"INVALID_NOTIFICATION\" | \"UNTRUSTED_INSTANCE\" | \"UNKNOWN_DELIVERY\";\n\nclass ExtensionSessionError extends Error {\n constructor(readonly code: ExtensionSessionErrorCode) {\n super(`Extension session verification failed: ${code}`);\n }\n}\n\nclass ExtensionNotificationError extends Error {\n constructor(readonly code: ExtensionNotificationErrorCode) {\n super(`Extension notification failed: ${code}`);\n }\n}\n\nconst isRejection = (error: unknown): boolean => {\n return error instanceof AndesineAPIError && [401, 403, 404].includes(error.status);\n};\nconst parseJSON = (text: string): unknown => {\n try {\n return JSON.parse(text);\n } catch {\n return null;\n }\n};\nconst getString = (value: object, key: string): string | null => {\n const field = (value as Record<string, unknown>)[key];\n\n return typeof field === \"string\" && field ? field : null;\n};\nconst normalizeInstance = (instance: string): string | null => {\n try {\n const url = new URL(instance);\n const isHTTP = url.protocol === \"https:\" || url.protocol === \"http:\";\n\n return isHTTP ? `${url.origin}${url.pathname}`.replace(/\\/+$/, \"\") : null;\n } catch {\n return null;\n }\n};\nconst getHeader = (headers: HeaderSource, name: string): string | null => {\n if (headers instanceof Headers) return headers.get(name);\n\n const value = headers[name.toLowerCase()];\n\n return (Array.isArray(value) ? value[0] : value) ?? null;\n};\n/**\n * Creates the backend helpers, which sign and cache extension JWTs for trusted instances only.\n * @example\n * const extension = createExtensionBackend({\n * name: \"acme/publish\",\n * privateKey: process.env.ANDESINE_EXTENSION_KEY!,\n * trustedInstances: [\"https://api.andesine.app\"]\n * });\n * const session = await extension.verifySession(request.headers);\n */\nconst createExtensionBackend = (options: ExtensionBackendOptions): ExtensionBackend => {\n const signer = createExtensionSigner(options.name, options.privateKey);\n const trusted = new Set(options.trustedInstances.map(normalizeInstance));\n const fetcher = options.client?.fetch ?? globalThis.fetch;\n const getTrustedInstance = (instance: string): string | null => {\n const normalized = normalizeInstance(instance);\n\n return normalized && trusted.has(normalized) ? normalized : null;\n };\n const createBackendClient = (instance: string, extensionID?: string): AndesineClient => {\n const audience = getTrustedInstance(instance);\n\n if (!audience) throw new TypeError(\"The instance is not trusted\");\n\n return createClient({\n ...options.client,\n baseURL: audience,\n apiKey: \"\",\n fetch: async (input, init) => {\n const request = new Request(input, init);\n const token = await signer.sign({ audience, subject: extensionID ?? null });\n\n request.headers.set(\"Authorization\", `Bearer ${token}`);\n\n return fetcher(request);\n }\n });\n };\n\n return {\n createClient: createBackendClient,\n async verifySession(headers) {\n const token = /^Bearer\\s+(\\S+)$/i.exec(getHeader(headers, \"Authorization\") ?? \"\")?.[1];\n const extensionID = getHeader(headers, \"Andesine-Extension\");\n const instance = getHeader(headers, \"Andesine-Instance\");\n\n if (!token || !extensionID || !instance) throw new ExtensionSessionError(\"MISSING_SESSION\");\n\n const audience = getTrustedInstance(instance);\n\n if (!audience) throw new ExtensionSessionError(\"UNTRUSTED_INSTANCE\");\n\n const client = createBackendClient(audience, extensionID);\n\n try {\n const session = await client.extensions.verifySession({ token });\n\n return { ...session, extensionID, instance: audience, client };\n } catch (error) {\n if (isRejection(error)) throw new ExtensionSessionError(\"INVALID_SESSION\");\n\n throw error;\n }\n },\n async receive(body) {\n const notification = typeof body === \"string\" ? parseJSON(body) : body;\n const isObject = typeof notification === \"object\" && notification !== null;\n const deliveryID = isObject ? getString(notification, \"deliveryID\") : null;\n const extensionID = isObject ? getString(notification, \"extensionID\") : null;\n const instance = isObject ? getString(notification, \"instance\") : null;\n\n if (!deliveryID || !extensionID || !instance) {\n throw new ExtensionNotificationError(\"INVALID_NOTIFICATION\");\n }\n\n const audience = getTrustedInstance(instance);\n\n if (!audience) throw new ExtensionNotificationError(\"UNTRUSTED_INSTANCE\");\n\n const client = createBackendClient(audience, extensionID);\n\n try {\n const delivery = await client.extensions.getSelfDelivery({ deliveryID });\n\n return { ...delivery, extensionID, instance: audience, client };\n } catch (error) {\n if (isRejection(error)) throw new ExtensionNotificationError(\"UNKNOWN_DELIVERY\");\n\n throw error;\n }\n }\n };\n};\n\nexport { createExtensionBackend, ExtensionNotificationError, ExtensionSessionError };\nexport type {\n ExtensionBackend,\n ExtensionBackendOptions,\n ExtensionDeliveryContext,\n ExtensionNotificationErrorCode,\n ExtensionPrivateKey,\n ExtensionSessionContext,\n ExtensionSessionErrorCode\n};\n"],"mappings":";;;AAkBA,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,oBAAoB;AAC1B,MAAM,aAAa;CACjB,WAAW;EACT,KAAK;EACL,cAAc,EAAE,MAAM,UAAU;EAChC,YAAY,EAAE,MAAM,UAAU;CAChC;CACA,SAAS;EACP,KAAK;EACL,cAAc;GAAE,MAAM;GAAS,YAAY;EAAQ;EACnD,YAAY;GAAE,MAAM;GAAS,MAAM;EAAU;CAC/C;AACF;AAEA,MAAM,mBA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E5C,IAAI,CAAC,UAAU,MAAM,IAAI,sBAAsB,oBAAoB;GAEnE,MAAM,SAAS,oBAAoB,UAAU,WAAW;GAExD,IAAI;IAGF,OAAO;KAAE,GAAG,MAFU,OAAO,WAAW,cAAc,EAAE,MAAM,CAAC;KAE1C;KAAa,UAAU;KAAU;IAAO;GAC/D,SAAS,OAAO;IACd,IAAI,YAAY,KAAK,GAAG,MAAM,IAAI,sBAAsB,iBAAiB;IAEzE,MAAM;GACR;EACF;EACA,MAAM,QAAQ,MAAM;GAClB,MAAM,eAAe,OAAO,SAAS,WAAW,UAAU,IAAI,IAAI;GAClE,MAAM,WAAW,OAAO,iBAAiB,YAAY,iBAAiB;GACtE,MAAM,aAAa,WAAW,UAAU,cAAc,YAAY,IAAI;GACtE,MAAM,cAAc,WAAW,UAAU,cAAc,aAAa,IAAI;GACxE,MAAM,WAAW,WAAW,UAAU,cAAc,UAAU,IAAI;GAElE,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,UAClC,MAAM,IAAI,2BAA2B,sBAAsB;GAG7D,MAAM,WAAW,mBAAmB,QAAQ;GAE5C,IAAI,CAAC,UAAU,MAAM,IAAI,2BAA2B,oBAAoB;GAExE,MAAM,SAAS,oBAAoB,UAAU,WAAW;GAExD,IAAI;IAGF,OAAO;KAAE,GAAG,MAFW,OAAO,WAAW,gBAAgB,EAAE,WAAW,CAAC;KAEjD;KAAa,UAAU;KAAU;IAAO;GAChE,SAAS,OAAO;IACd,IAAI,YAAY,KAAK,GAAG,MAAM,IAAI,2BAA2B,kBAAkB;IAE/E,MAAM;GACR;EACF;CACF;AACF"}
1
+ {"version":3,"file":"extensions.js","names":[],"sources":["../src/extensions/jwt.ts","../src/extensions.ts"],"sourcesContent":["interface ExtensionPrivateKey extends JsonWebKey {\n kid?: string;\n}\ninterface ExtensionTokenClaims {\n /** The instance API URL. */\n audience: string;\n /** The installation's `ext_` ID; null for app-level tokens. */\n subject: string | null;\n}\ninterface ExtensionSigner {\n sign(claims: ExtensionTokenClaims): Promise<string>;\n}\ninterface CachedToken {\n token: string;\n expiresAt: number;\n}\n\n// Andesine accepts tokens up to 300 seconds old; cached tokens renew a minute before that.\nconst TOKEN_LIFETIME = 300;\nconst RENEWAL_MARGIN = 60;\nconst MAX_CACHED_TOKENS = 1_000;\nconst ALGORITHMS = {\n \"Ed25519\": {\n alg: \"EdDSA\",\n importParams: { name: \"Ed25519\" },\n signParams: { name: \"Ed25519\" }\n },\n \"P-256\": {\n alg: \"ES256\",\n importParams: { name: \"ECDSA\", namedCurve: \"P-256\" },\n signParams: { name: \"ECDSA\", hash: \"SHA-256\" }\n }\n} as const;\n\nconst encodeBase64URL = (bytes: Uint8Array): string => {\n return btoa(String.fromCharCode(...bytes))\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=+$/, \"\");\n};\nconst encodeJSON = (value: object): string => {\n return encodeBase64URL(new TextEncoder().encode(JSON.stringify(value)));\n};\n// Errors never include the key, which can come from an environment variable.\nconst parsePrivateKey = (input: string | ExtensionPrivateKey): ExtensionPrivateKey => {\n if (typeof input !== \"string\") return input;\n\n try {\n return JSON.parse(input) as ExtensionPrivateKey;\n } catch {\n throw new TypeError(\"privateKey must be a JSON Web Key\");\n }\n};\n/** Signs extension JWTs with a private Ed25519 or P-256 JWK; caches them per audience/subject. */\nconst createExtensionSigner = (\n name: string,\n privateKey: string | ExtensionPrivateKey\n): ExtensionSigner => {\n const jwk = parsePrivateKey(privateKey);\n const algorithm = ALGORITHMS[jwk.crv as keyof typeof ALGORITHMS];\n const cache = new Map<string, CachedToken>();\n\n let key: Promise<CryptoKey> | null = null;\n\n if (!algorithm || !jwk.d || !jwk.kid) {\n throw new TypeError(\"privateKey must be a private Ed25519 or P-256 JWK with a kid\");\n }\n\n // Imported on first use, so an invalid key fails the first request, not module loading.\n const getKey = (): Promise<CryptoKey> => {\n key ??= crypto.subtle.importKey(\n \"jwk\",\n { kty: jwk.kty, crv: jwk.crv, x: jwk.x, y: jwk.y, d: jwk.d },\n algorithm.importParams,\n false,\n [\"sign\"]\n );\n\n return key;\n };\n\n return {\n async sign({ audience, subject }) {\n const now = Math.floor(Date.now() / 1000);\n const cacheKey = `${audience} ${subject ?? \"\"}`;\n const cached = cache.get(cacheKey);\n\n if (cached && cached.expiresAt - RENEWAL_MARGIN > now) return cached.token;\n\n const header = encodeJSON({ alg: algorithm.alg, kid: jwk.kid, typ: \"JWT\" });\n const payload = encodeJSON({\n iss: name,\n ...(subject && { sub: subject }),\n aud: audience,\n iat: now,\n exp: now + TOKEN_LIFETIME\n });\n const signature = await crypto.subtle.sign(\n algorithm.signParams,\n await getKey(),\n new TextEncoder().encode(`${header}.${payload}`)\n );\n const token = `${header}.${payload}.${encodeBase64URL(new Uint8Array(signature))}`;\n\n if (cache.size >= MAX_CACHED_TOKENS) cache.clear();\n\n cache.set(cacheKey, { token, expiresAt: now + TOKEN_LIFETIME });\n\n return token;\n }\n };\n};\n\nexport { createExtensionSigner };\nexport type { ExtensionPrivateKey, ExtensionSigner };\n","import { createClient, type AndesineClient, type ClientOptions } from \"./client\";\nimport { AndesineAPIError } from \"./error\";\nimport { createExtensionSigner, type ExtensionPrivateKey } from \"./extensions/jwt\";\n\ninterface ExtensionBackendOptions {\n /** The extension's registry name, e.g. `acme/publish`. */\n name: string;\n /** Private Ed25519 or P-256 JWK (string or object) with the registry `kid`; keep it secret. */\n privateKey: string | ExtensionPrivateKey;\n /** API URLs of the trusted Andesine instances, e.g. `https://api.andesine.app`. */\n trustedInstances: string[];\n /** Options for the API clients; the backend sets the base URL and the credential. */\n client?: Omit<ClientOptions, \"baseURL\" | \"apiKey\" | \"accessToken\">;\n}\ninterface VerifySessionOptions {\n /** Member actions to check in collections the extension can read; results are in `checks`. */\n checks?: SessionCheck[];\n}\ninterface ExtensionSessionContext extends VerifiedSession {\n /** The installation's `ext_` ID. */\n extensionID: string;\n /** The instance API URL. */\n instance: string;\n /** An API client for the installation, with the extension's permissions. */\n client: AndesineClient;\n}\ninterface ExtensionDeliveryContext extends ReceivedDelivery {\n /** The installation's `ext_` ID. */\n extensionID: string;\n /** The instance API URL. */\n instance: string;\n /** An API client for the installation, with the extension's permissions. */\n client: AndesineClient;\n}\ninterface ExtensionBackend {\n /**\n * API client for an installation; without `extensionID`, it can only list installations.\n * @throws TypeError if the instance is not trusted.\n */\n createClient(instance: string, extensionID?: string): AndesineClient;\n /**\n * Verifies the session headers that the frontend's `backend.fetch` sends.\n * @throws ExtensionSessionError for missing headers, an untrusted instance, or an invalid token.\n * @throws AndesineAPIError for other API failures.\n */\n verifySession(\n headers: HeaderSource,\n options?: VerifySessionOptions\n ): Promise<ExtensionSessionContext>;\n /**\n * Confirms a webhook body by fetching its delivery; respond with 2xx once handled, or it retries.\n * @throws ExtensionNotificationError for an invalid body, an untrusted instance, or no delivery.\n * @throws AndesineAPIError for other API failures.\n */\n receive(body: unknown): Promise<ExtensionDeliveryContext>;\n}\n\ntype VerifiedSession = Awaited<ReturnType<AndesineClient[\"extensions\"][\"verifySession\"]>>;\ntype SessionCheck = NonNullable<\n Parameters<AndesineClient[\"extensions\"][\"verifySession\"]>[0][\"checks\"]\n>[number];\ntype ReceivedDelivery = Awaited<ReturnType<AndesineClient[\"extensions\"][\"getSelfDelivery\"]>>;\ntype HeaderSource = Headers | Record<string, string | string[] | undefined>;\ntype ExtensionSessionErrorCode = \"MISSING_SESSION\" | \"UNTRUSTED_INSTANCE\" | \"INVALID_SESSION\";\ntype ExtensionNotificationErrorCode =\n \"INVALID_NOTIFICATION\" | \"UNTRUSTED_INSTANCE\" | \"UNKNOWN_DELIVERY\";\n\nclass ExtensionSessionError extends Error {\n constructor(readonly code: ExtensionSessionErrorCode) {\n super(`Extension session verification failed: ${code}`);\n }\n}\n\nclass ExtensionNotificationError extends Error {\n constructor(readonly code: ExtensionNotificationErrorCode) {\n super(`Extension notification failed: ${code}`);\n }\n}\n\nconst isRejection = (error: unknown): boolean => {\n return error instanceof AndesineAPIError && [401, 403, 404].includes(error.status);\n};\nconst parseJSON = (text: string): unknown => {\n try {\n return JSON.parse(text);\n } catch {\n return null;\n }\n};\nconst getString = (value: object, key: string): string | null => {\n const field = (value as Record<string, unknown>)[key];\n\n return typeof field === \"string\" && field ? field : null;\n};\nconst normalizeInstance = (instance: string): string | null => {\n try {\n const url = new URL(instance);\n const isHTTP = url.protocol === \"https:\" || url.protocol === \"http:\";\n\n return isHTTP ? `${url.origin}${url.pathname}`.replace(/\\/+$/, \"\") : null;\n } catch {\n return null;\n }\n};\nconst getHeader = (headers: HeaderSource, name: string): string | null => {\n if (headers instanceof Headers) return headers.get(name);\n\n const value = headers[name.toLowerCase()];\n\n return (Array.isArray(value) ? value[0] : value) ?? null;\n};\n/**\n * Creates the backend helpers, which sign and cache extension JWTs for trusted instances only.\n * @example\n * const extension = createExtensionBackend({\n * name: \"acme/publish\",\n * privateKey: process.env.ANDESINE_EXTENSION_KEY!,\n * trustedInstances: [\"https://api.andesine.app\"]\n * });\n * const session = await extension.verifySession(request.headers);\n */\nconst createExtensionBackend = (options: ExtensionBackendOptions): ExtensionBackend => {\n const signer = createExtensionSigner(options.name, options.privateKey);\n const trusted = new Set(options.trustedInstances.map(normalizeInstance));\n const fetcher = options.client?.fetch ?? globalThis.fetch;\n const getTrustedInstance = (instance: string): string | null => {\n const normalized = normalizeInstance(instance);\n\n return normalized && trusted.has(normalized) ? normalized : null;\n };\n const createBackendClient = (instance: string, extensionID?: string): AndesineClient => {\n const audience = getTrustedInstance(instance);\n\n if (!audience) throw new TypeError(\"The instance is not trusted\");\n\n return createClient({\n ...options.client,\n baseURL: audience,\n apiKey: \"\",\n fetch: async (input, init) => {\n const request = new Request(input, init);\n const token = await signer.sign({ audience, subject: extensionID ?? null });\n\n request.headers.set(\"Authorization\", `Bearer ${token}`);\n\n return fetcher(request);\n }\n });\n };\n\n return {\n createClient: createBackendClient,\n async verifySession(headers, sessionOptions = {}) {\n const token = /^Bearer\\s+(\\S+)$/i.exec(getHeader(headers, \"Authorization\") ?? \"\")?.[1];\n const extensionID = getHeader(headers, \"Andesine-Extension\");\n const instance = getHeader(headers, \"Andesine-Instance\");\n\n if (!token || !extensionID || !instance) throw new ExtensionSessionError(\"MISSING_SESSION\");\n\n const audience = getTrustedInstance(instance);\n\n if (!audience) throw new ExtensionSessionError(\"UNTRUSTED_INSTANCE\");\n\n const client = createBackendClient(audience, extensionID);\n\n try {\n const session = await client.extensions.verifySession({\n token,\n checks: sessionOptions.checks\n });\n\n return { ...session, extensionID, instance: audience, client };\n } catch (error) {\n if (isRejection(error)) throw new ExtensionSessionError(\"INVALID_SESSION\");\n\n throw error;\n }\n },\n async receive(body) {\n const notification = typeof body === \"string\" ? parseJSON(body) : body;\n const isObject = typeof notification === \"object\" && notification !== null;\n const deliveryID = isObject ? getString(notification, \"deliveryID\") : null;\n const extensionID = isObject ? getString(notification, \"extensionID\") : null;\n const instance = isObject ? getString(notification, \"instance\") : null;\n\n if (!deliveryID || !extensionID || !instance) {\n throw new ExtensionNotificationError(\"INVALID_NOTIFICATION\");\n }\n\n const audience = getTrustedInstance(instance);\n\n if (!audience) throw new ExtensionNotificationError(\"UNTRUSTED_INSTANCE\");\n\n const client = createBackendClient(audience, extensionID);\n\n try {\n const delivery = await client.extensions.getSelfDelivery({ deliveryID });\n\n return { ...delivery, extensionID, instance: audience, client };\n } catch (error) {\n if (isRejection(error)) throw new ExtensionNotificationError(\"UNKNOWN_DELIVERY\");\n\n throw error;\n }\n }\n };\n};\n\nexport { createExtensionBackend, ExtensionNotificationError, ExtensionSessionError };\nexport type {\n ExtensionBackend,\n ExtensionBackendOptions,\n ExtensionDeliveryContext,\n ExtensionNotificationErrorCode,\n ExtensionPrivateKey,\n ExtensionSessionContext,\n ExtensionSessionErrorCode,\n VerifySessionOptions\n};\n"],"mappings":";;;AAkBA,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,oBAAoB;AAC1B,MAAM,aAAa;CACjB,WAAW;EACT,KAAK;EACL,cAAc,EAAE,MAAM,U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{ $ as InvitePendingErrorData, $t as TextPropertyFilter, A as ContentNodeInput, At as ResolvedSchemaField, B as EntryPropertyKind, Bt as SchemaFragment, C as Collection, Ct as PublishedVersion, D as ContentMarkInput, Dt as PublishingSnapshotErrorData, E as ContentMark, Et as PublishingChannelListItem, F as DatePropertyFilter, Ft as SchemaDefinition, G as EntryVersion, Gt as SchemaProperty, H as EntryPublication, Ht as SchemaMigrationContentLossEntry, I as EffectiveCollectionSchema, It as SchemaDraftDefinition, J as ForbiddenErrorData, Jt as SchemaVersion, K as EntryVersionSummary, Kt as SchemaPropertyValue, L as Entry, Lt as SchemaField, M as ContentSchemaIssue, Mt as Role, N as ContentSchemaMetadata, Nt as SchemaApplicationResult, O as ContentNameConflictErrorData, Ot as RateLimitErrorData, P as ContentSchemaMismatchErrorData, Pt as SchemaBlockType, Q as InviteDeliveryResult, Qt as SearchResults, R as EntryFragment, Rt as SchemaFieldKeyConflictErrorData, S as ChannelContentStatus, St as PublishedTree, T as ComparisonOperator, Tt as PublishingChannelCode, U as EntryPublicationChannel, Ut as SchemaMigrationErrorData, V as EntryPropertyValue, Vt as SchemaMigration, W as EntrySummary, Wt as SchemaMigrationStatus, X as InstanceInfo, Xt as SearchPropertyValue, Y as Identity, Yt as SchemaVersionSummary, Z as Invite, Zt as SearchResult, _ as BaseRole, _t as PublishedEntriesResult, a as Asset, an as UserProfile, at as NumberPropertyFilter, b as ChannelContentCollection, bt as PublishedEntrySummary, c as AssetConflictErrorData, cn as VersionReason, ct as PropertyFilter, d as AssetSearchResult, dn as WebhookEndpoint, dt as PublishedAnswerEvent, en as TypeMetadata, et as InviteStatus, f as AssetStatus, fn as WebhookEvent, ft as PublishedAnswerSource, g as AssetVariant, gt as PublishedContent, h as AssetValidationErrorData, hn as WorkspaceListItem, ht as PublishedCollectionSummary, i as AnswerSource, in as UnpublishedEntriesResult, it as MembershipInviteResult, j as ContentSchemaInvalidErrorData, jt as RevertPublishingChangesResult, k as ContentNode, kt as ResolvedSchemaDefinition, l as AssetFile, ln as WebhookAttempt, lt as PublishEntryTarget, m as AssetUploadRegistration, mn as WebhookRun, mt as PublishedCollection, n as AnswerEvent, nn as TypeMetadataEntry, nt as Membership, o as AssetAnalysis, on as ValidationErrorData, ot as Pagination, p as AssetStorageErrorData, pn as WebhookEventName, pt as PublishedAsset, q as ErrorData, qt as SchemaRevision, r as AnswerHistoryMessage, rn as TypeMetadataTree, rt as MembershipExistsErrorData, s as AssetAnalysisStatus, sn as ValidationIssue, st as Permission, t as Answer, tn as TypeMetadataCollection, tt as LocalCollectionSchema, u as AssetFileFormat, un as WebhookDelivery, ut as PublishedAnswer, v as BooleanPropertyFilter, vt as PublishedEntry, w as CollectionSchema, wt as PublishingChannel, x as ChannelContentEntry, xt as PublishedSearchResult, y as ChannelContent, yt as PublishedEntryContent, z as EntryProperty, zt as SchemaFieldSource } from "./schema-CrquN_J6.js";
2
- import { c as APIErrorData, d as OperationError, f as OperationInput, p as OperationOutput, s as APIErrorCode } from "./client-C8wt7f3o.js";
1
+ import { $ as InvitePendingErrorData, $t as TextPropertyFilter, A as ContentNodeInput, At as ResolvedSchemaField, B as EntryPropertyKind, Bt as SchemaFragment, C as Collection, Ct as PublishedVersion, D as ContentMarkInput, Dt as PublishingSnapshotErrorData, E as ContentMark, Et as PublishingChannelListItem, F as DatePropertyFilter, Ft as SchemaDefinition, G as EntryVersion, Gt as SchemaProperty, H as EntryPublication, Ht as SchemaMigrationContentLossEntry, I as EffectiveCollectionSchema, It as SchemaDraftDefinition, J as ForbiddenErrorData, Jt as SchemaVersion, K as EntryVersionSummary, Kt as SchemaPropertyValue, L as Entry, Lt as SchemaField, M as ContentSchemaIssue, Mt as Role, N as ContentSchemaMetadata, Nt as SchemaApplicationResult, O as ContentNameConflictErrorData, Ot as RateLimitErrorData, P as ContentSchemaMismatchErrorData, Pt as SchemaBlockType, Q as InviteDeliveryResult, Qt as SearchResults, R as EntryFragment, Rt as SchemaFieldKeyConflictErrorData, S as ChannelContentStatus, St as PublishedTree, T as ComparisonOperator, Tt as PublishingChannelCode, U as EntryPublicationChannel, Ut as SchemaMigrationErrorData, V as EntryPropertyValue, Vt as SchemaMigration, W as EntrySummary, Wt as SchemaMigrationStatus, X as InstanceInfo, Xt as SearchPropertyValue, Y as Identity, Yt as SchemaVersionSummary, Z as Invite, Zt as SearchResult, _ as BaseRole, _t as PublishedEntriesResult, a as Asset, an as UserProfile, at as NumberPropertyFilter, b as ChannelContentCollection, bt as PublishedEntrySummary, c as AssetConflictErrorData, cn as VersionReason, ct as PropertyFilter, d as AssetSearchResult, dn as WebhookEndpoint, dt as PublishedAnswerEvent, en as TypeMetadata, et as InviteStatus, f as AssetStatus, fn as WebhookEvent, ft as PublishedAnswerSource, g as AssetVariant, gt as PublishedContent, h as AssetValidationErrorData, hn as WorkspaceListItem, ht as PublishedCollectionSummary, i as AnswerSource, in as UnpublishedEntriesResult, it as MembershipInviteResult, j as ContentSchemaInvalidErrorData, jt as RevertPublishingChangesResult, k as ContentNode, kt as ResolvedSchemaDefinition, l as AssetFile, ln as WebhookAttempt, lt as PublishEntryTarget, m as AssetUploadRegistration, mn as WebhookRun, mt as PublishedCollection, n as AnswerEvent, nn as TypeMetadataEntry, nt as Membership, o as AssetAnalysis, on as ValidationErrorData, ot as Pagination, p as AssetStorageErrorData, pn as WebhookEventName, pt as PublishedAsset, q as ErrorData, qt as SchemaRevision, r as AnswerHistoryMessage, rn as TypeMetadataTree, rt as MembershipExistsErrorData, s as AssetAnalysisStatus, sn as ValidationIssue, st as Permission, t as Answer, tn as TypeMetadataCollection, tt as LocalCollectionSchema, u as AssetFileFormat, un as WebhookDelivery, ut as PublishedAnswer, v as BooleanPropertyFilter, vt as PublishedEntry, w as CollectionSchema, wt as PublishingChannel, x as ChannelContentEntry, xt as PublishedSearchResult, y as ChannelContent, yt as PublishedEntryContent, z as EntryProperty, zt as SchemaFieldSource } from "./schema-CMpGUItd.js";
2
+ import { c as APIErrorData, d as OperationError, f as OperationInput, p as OperationOutput, s as APIErrorCode } from "./client-QR7crUNC.js";
3
3
  //#region src/content-url.d.ts
4
4
  /** A decoded canonical path, optionally with a decoded heading anchor. */
5
5
  interface ContentLocation {
@@ -88,11 +88,8 @@ declare class AndesineStreamProtocolError extends Error {
88
88
  constructor(code: "INVALID_STREAM" | "INCOMPLETE_STREAM", response: Response, message: string, options?: ErrorOptions);
89
89
  }
90
90
  declare namespace types_d_exports {
91
- export { Answer, AnswerEvent, AnswerHistoryMessage, AnswerSource, Asset, AssetAnalysis, AssetAnalysisStatus, AssetConflictErrorData, AssetFile, AssetFileFormat, AssetSearchResult, AssetStatus, AssetStorageErrorData, AssetUploadRegistration, AssetValidationErrorData, AssetVariant, AssetsAttachError, AssetsAttachInput, AssetsAttachOutput, AssetsGetError, AssetsGetInput, AssetsGetOutput, AssetsImportURLError, AssetsImportURLInput, AssetsImportURLOutput, AssetsRegisterError, AssetsRegisterInput, AssetsRegisterOutput, AssetsSearchError, AssetsSearchInput, AssetsSearchOutput, AssetsUploadError, AssetsUploadInput, AssetsUploadOutput, AuthGetIdentityError, AuthGetIdentityInput, AuthGetIdentityOutput, BaseRole, BooleanPropertyFilter, ChannelContent, ChannelContentCollection, ChannelContentEntry, ChannelContentStatus, Collection, CollectionSchema, CollectionsBulkDeleteError, CollectionsBulkDeleteInput, CollectionsBulkDeleteOutput, CollectionsCreateError, CollectionsCreateInput, CollectionsCreateOutput, CollectionsDeleteError, CollectionsDeleteInput, CollectionsDeleteOutput, CollectionsListError, CollectionsListInput, CollectionsListOutput, CollectionsUpdateError, CollectionsUpdateInput, CollectionsUpdateOutput, ComparisonOperator, ContentGetAssetError, ContentGetAssetInput, ContentGetAssetOutput, ContentGetError, ContentGetInput, ContentGetOutput, ContentGetSchemaError, ContentGetSchemaInput, ContentGetSchemaOutput, ContentGetTreeError, ContentGetTreeInput, ContentGetTreeOutput, ContentListCollectionsError, ContentListCollectionsInput, ContentListCollectionsOutput, ContentListEntriesError, ContentListEntriesInput, ContentListEntriesOutput, ContentMark, ContentMarkInput, ContentNameConflictErrorData, ContentNode, ContentNodeInput, ContentSchemaInvalidErrorData, ContentSchemaIssue, ContentSchemaMetadata, ContentSchemaMismatchErrorData, DatePropertyFilter, EffectiveCollectionSchema, EntriesBulkDeleteError, EntriesBulkDeleteInput, EntriesBulkDeleteOutput, EntriesCreateError, EntriesCreateInput, EntriesCreateOutput, EntriesDeleteError, EntriesDeleteInput, EntriesDeleteOutput, EntriesGetError, EntriesGetInput, EntriesGetOutput, EntriesListError, EntriesListInput, EntriesListOutput, EntriesUpdateError, EntriesUpdateInput, EntriesUpdateOutput, Entry, EntryFragment, EntryProperty, EntryPropertyKind, EntryPropertyValue, EntryPublication, EntryPublicationChannel, EntrySummary, EntryVersion, EntryVersionSummary, ErrorData, ExtensionsDeleteSelfStorageEntryError, ExtensionsDeleteSelfStorageEntryInput, ExtensionsDeleteSelfStorageEntryOutput, ExtensionsGetSelfConfigurationError, ExtensionsGetSelfConfigurationInput, ExtensionsGetSelfConfigurationOutput, ExtensionsGetSelfDeliveryError, ExtensionsGetSelfDeliveryInput, ExtensionsGetSelfDeliveryOutput, ExtensionsGetSelfError, ExtensionsGetSelfInput, ExtensionsGetSelfOutput, ExtensionsGetSelfStorageEntryError, ExtensionsGetSelfStorageEntryInput, ExtensionsGetSelfStorageEntryOutput, ExtensionsListInstallationsError, ExtensionsListInstallationsInput, ExtensionsListInstallationsOutput, ExtensionsListSelfStorageEntriesError, ExtensionsListSelfStorageEntriesInput, ExtensionsListSelfStorageEntriesOutput, ExtensionsSetSelfStorageEntryError, ExtensionsSetSelfStorageEntryInput, ExtensionsSetSelfStorageEntryOutput, ExtensionsVerifySessionError, ExtensionsVerifySessionInput, ExtensionsVerifySessionOutput, ForbiddenErrorData, Identity, InstanceGetError, InstanceGetInput, InstanceGetOutput, InstanceInfo, Invite, InviteDeliveryResult, InvitePendingErrorData, InviteStatus, LocalCollectionSchema, Membership, MembershipExistsErrorData, MembershipInviteResult, MembershipsInviteError, MembershipsInviteInput, MembershipsInviteOutput, MembershipsListError, MembershipsListInput, MembershipsListInvitesError, MembershipsListInvitesInput, MembershipsListInvitesOutput, MembershipsListOutput, MembershipsRemoveError, MembershipsRemoveInput, MembershipsRemoveOutput, MembershipsResendInviteError, MembershipsResendInviteInput, MembershipsResendInviteOutput, MembershipsRevokeInviteError, MembershipsRevokeInviteInput, MembershipsRevokeInviteOutput, MembershipsUpdateError, MembershipsUpdateInput, MembershipsUpdateOutput, NumberPropertyFilter, Pagination, Permission, PropertyFilter, PublishEntryTarget, PublishedAnswer, PublishedAnswerEvent, PublishedAnswerSource, PublishedAsset, PublishedCollection, PublishedCollectionSummary, PublishedContent, PublishedEntriesResult, PublishedEntry, PublishedEntryContent, PublishedEntrySummary, PublishedSearchResult, PublishedTree, PublishedVersion, PublishingBulkPublishCollectionsError, PublishingBulkPublishCollectionsInput, PublishingBulkPublishCollectionsOutput, PublishingBulkPublishEntriesError, PublishingBulkPublishEntriesInput, PublishingBulkPublishEntriesOutput, PublishingBulkSetCollectionsError, PublishingBulkSetCollectionsInput, PublishingBulkSetCollectionsOutput, PublishingBulkUnpublishCollectionsError, PublishingBulkUnpublishCollectionsInput, PublishingBulkUnpublishCollectionsOutput, PublishingBulkUnpublishEntriesError, PublishingBulkUnpublishEntriesInput, PublishingBulkUnpublishEntriesOutput, PublishingChannel, PublishingChannelCode, PublishingChannelListItem, PublishingCreateChannelError, PublishingCreateChannelInput, PublishingCreateChannelOutput, PublishingDeleteChannelError, PublishingDeleteChannelInput, PublishingDeleteChannelOutput, PublishingGetChannelContentError, PublishingGetChannelContentInput, PublishingGetChannelContentOutput, PublishingGetEntryVersionError, PublishingGetEntryVersionInput, PublishingGetEntryVersionOutput, PublishingListChannelsError, PublishingListChannelsInput, PublishingListChannelsOutput, PublishingListEntryPublicationsError, PublishingListEntryPublicationsInput, PublishingListEntryPublicationsOutput, PublishingPublishCollectionError, PublishingPublishCollectionInput, PublishingPublishCollectionOutput, PublishingPublishEntryError, PublishingPublishEntryInput, PublishingPublishEntryOutput, PublishingRevertChangesError, PublishingRevertChangesInput, PublishingRevertChangesOutput, PublishingSetCollectionError, PublishingSetCollectionInput, PublishingSetCollectionOutput, PublishingSnapshotErrorData, PublishingUnpublishCollectionError, PublishingUnpublishCollectionInput, PublishingUnpublishCollectionOutput, PublishingUnpublishEntryError, PublishingUnpublishEntryInput, PublishingUnpublishEntryOutput, RateLimitErrorData, ResolvedSchemaDefinition, ResolvedSchemaField, RevertPublishingChangesResult, Role, RolesCreateError, RolesCreateInput, RolesCreateOutput, RolesDeleteError, RolesDeleteInput, RolesDeleteOutput, RolesListError, RolesListInput, RolesListOutput, RolesUpdateError, RolesUpdateInput, RolesUpdateOutput, SchemaApplicationResult, SchemaBlockType, SchemaDefinition, SchemaDraftDefinition, SchemaField, SchemaFieldKeyConflictErrorData, SchemaFieldSource, SchemaFragment, SchemaMigration, SchemaMigrationContentLossEntry, SchemaMigrationErrorData, SchemaMigrationStatus, SchemaMigrationsGetActiveError, SchemaMigrationsGetActiveInput, SchemaMigrationsGetActiveOutput, SchemaMigrationsGetError, SchemaMigrationsGetInput, SchemaMigrationsGetOutput, SchemaMigrationsListContentLossEntriesError, SchemaMigrationsListContentLossEntriesInput, SchemaMigrationsListContentLossEntriesOutput, SchemaProperty, SchemaPropertyValue, SchemaRevision, SchemaVersion, SchemaVersionSummary, SchemaVersionsGetError, SchemaVersionsGetInput, SchemaVersionsGetOutput, SchemaVersionsListError, SchemaVersionsListInput, SchemaVersionsListOutput, SchemaVersionsRevertError, SchemaVersionsRevertInput, SchemaVersionsRevertOutput, SchemaVersionsUpdateError, SchemaVersionsUpdateInput, SchemaVersionsUpdateOutput, SchemasApplyError, SchemasApplyInput, SchemasApplyOutput, SchemasCreateError, SchemasCreateInput, SchemasCreateOutput, SchemasDeleteError, SchemasDeleteInput, SchemasDeleteOutput, SchemasGetError, SchemasGetInput, SchemasGetOutput, SchemasGetRevisionError, SchemasGetRevisionInput, SchemasGetRevisionOutput, SearchAskCurrentError, SearchAskCurrentInput, SearchAskCurrentOutput, SearchAskCurrentStreamError, SearchAskCurrentStreamInput, SearchAskCurrentStreamOutput, SearchAskPublishedError, SearchAskPublishedInput, SearchAskPublishedOutput, SearchAskPublishedStreamError, SearchAskPublishedStreamInput, SearchAskPublishedStreamOutput, SearchCurrentError, SearchCurrentInput, SearchCurrentOutput, SearchPropertyValue, SearchPublishedError, SearchPublishedInput, SearchPublishedOutput, SearchResult, SearchResults, TextPropertyFilter, TypeMetadata, TypeMetadataCollection, TypeMetadataEntry, TypeMetadataGetCurrentError, TypeMetadataGetCurrentInput, TypeMetadataGetCurrentOutput, TypeMetadataGetPublishedError, TypeMetadataGetPublishedInput, TypeMetadataGetPublishedOutput, TypeMetadataTree, UnpublishedEntriesResult, UserProfile, ValidationErrorData, ValidationIssue, VersionReason, VersionsCreateError, VersionsCreateInput, VersionsCreateOutput, VersionsGetError, VersionsGetInput, VersionsGetOutput, VersionsListError, VersionsListInput, VersionsListOutput, VersionsRevertError, VersionsRevertInput, VersionsRevertOutput, VersionsUpdateError, VersionsUpdateInput, VersionsUpdateOutput, WebhookAttempt, WebhookDelivery, WebhookEndpoint, WebhookEvent, WebhookEventName, WebhookRun, WebhooksBulkDeleteError, WebhooksBulkDeleteInput, WebhooksBulkDeleteOutput, WebhooksBulkRedeliverError, WebhooksBulkRedeliverInput, WebhooksBulkRedeliverOutput, WebhooksBulkSetEnabledError, WebhooksBulkSetEnabledInput, WebhooksBulkSetEnabledOutput, WebhooksCreateError, WebhooksCreateInput, WebhooksCreateOutput, WebhooksDeleteError, WebhooksDeleteInput, WebhooksDeleteOutput, WebhooksGetDeliveryError, WebhooksGetDeliveryInput, WebhooksGetDeliveryOutput, WebhooksGetError, WebhooksGetInput, WebhooksGetOutput, WebhooksListAttemptsError, WebhooksListAttemptsInput, WebhooksListAttemptsOutput, WebhooksListDeliveriesError, WebhooksListDeliveriesInput, WebhooksListDeliveriesOutput, WebhooksListError, WebhooksListInput, WebhooksListOutput, WebhooksListRunsError, WebhooksListRunsInput, WebhooksListRunsOutput, WebhooksRedeliverError, WebhooksRedeliverInput, WebhooksRedeliverOutput, WebhooksRotateSecretError, WebhooksRotateSecretInput, WebhooksRotateSecretOutput, WebhooksSendTestError, WebhooksSendTestInput, WebhooksSendTestOutput, WebhooksUpdateError, WebhooksUpdateInput, WebhooksUpdateOutput, WorkspaceListItem, WorkspacesListError, WorkspacesListInput, WorkspacesListOutput };
91
+ export { Answer, AnswerEvent, AnswerHistoryMessage, AnswerSource, Asset, AssetAnalysis, AssetAnalysisStatus, AssetConflictErrorData, AssetFile, AssetFileFormat, AssetSearchResult, AssetStatus, AssetStorageErrorData, AssetUploadRegistration, AssetValidationErrorData, AssetVariant, AssetsGetError, AssetsGetInput, AssetsGetOutput, AssetsImportURLError, AssetsImportURLInput, AssetsImportURLOutput, AssetsRegisterError, AssetsRegisterInput, AssetsRegisterOutput, AssetsSearchError, AssetsSearchInput, AssetsSearchOutput, AssetsUploadError, AssetsUploadInput, AssetsUploadOutput, AuthGetIdentityError, AuthGetIdentityInput, AuthGetIdentityOutput, BaseRole, BooleanPropertyFilter, ChannelContent, ChannelContentCollection, ChannelContentEntry, ChannelContentStatus, Collection, CollectionSchema, CollectionsBulkDeleteError, CollectionsBulkDeleteInput, CollectionsBulkDeleteOutput, CollectionsCreateError, CollectionsCreateInput, CollectionsCreateOutput, CollectionsDeleteError, CollectionsDeleteInput, CollectionsDeleteOutput, CollectionsGetError, CollectionsGetInput, CollectionsGetOutput, CollectionsListError, CollectionsListInput, CollectionsListOutput, CollectionsMoveError, CollectionsMoveInput, CollectionsMoveOutput, CollectionsUpdateError, CollectionsUpdateInput, CollectionsUpdateOutput, ComparisonOperator, ContentGetAssetError, ContentGetAssetInput, ContentGetAssetOutput, ContentGetError, ContentGetInput, ContentGetOutput, ContentGetSchemaError, ContentGetSchemaInput, ContentGetSchemaOutput, ContentGetTreeError, ContentGetTreeInput, ContentGetTreeOutput, ContentListCollectionsError, ContentListCollectionsInput, ContentListCollectionsOutput, ContentListEntriesError, ContentListEntriesInput, ContentListEntriesOutput, ContentMark, ContentMarkInput, ContentNameConflictErrorData, ContentNode, ContentNodeInput, ContentSchemaInvalidErrorData, ContentSchemaIssue, ContentSchemaMetadata, ContentSchemaMismatchErrorData, DatePropertyFilter, EffectiveCollectionSchema, EntriesBulkDeleteError, EntriesBulkDeleteInput, EntriesBulkDeleteOutput, EntriesBulkMoveError, EntriesBulkMoveInput, EntriesBulkMoveOutput, EntriesBulkUpdateError, EntriesBulkUpdateInput, EntriesBulkUpdateOutput, EntriesCreateError, EntriesCreateInput, EntriesCreateOutput, EntriesDeleteError, EntriesDeleteInput, EntriesDeleteOutput, EntriesGetError, EntriesGetInput, EntriesGetOutput, EntriesListError, EntriesListInput, EntriesListOutput, EntriesMoveError, EntriesMoveInput, EntriesMoveOutput, EntriesUpdateError, EntriesUpdateInput, EntriesUpdateOutput, Entry, EntryFragment, EntryProperty, EntryPropertyKind, EntryPropertyValue, EntryPublication, EntryPublicationChannel, EntrySummary, EntryVersion, EntryVersionSummary, ErrorData, ExtensionsCreateSelfPublishableKeyError, ExtensionsCreateSelfPublishableKeyInput, ExtensionsCreateSelfPublishableKeyOutput, ExtensionsDeleteSelfPublishableKeyError, ExtensionsDeleteSelfPublishableKeyInput, ExtensionsDeleteSelfPublishableKeyOutput, ExtensionsDeleteSelfStorageEntryError, ExtensionsDeleteSelfStorageEntryInput, ExtensionsDeleteSelfStorageEntryOutput, ExtensionsGetSelfConfigurationError, ExtensionsGetSelfConfigurationInput, ExtensionsGetSelfConfigurationOutput, ExtensionsGetSelfDeliveryError, ExtensionsGetSelfDeliveryInput, ExtensionsGetSelfDeliveryOutput, ExtensionsGetSelfError, ExtensionsGetSelfInput, ExtensionsGetSelfOutput, ExtensionsGetSelfStorageEntryError, ExtensionsGetSelfStorageEntryInput, ExtensionsGetSelfStorageEntryOutput, ExtensionsListElementsError, ExtensionsListElementsInput, ExtensionsListElementsOutput, ExtensionsListInstallationsError, ExtensionsListInstallationsInput, ExtensionsListInstallationsOutput, ExtensionsListSelfPublishableKeysError, ExtensionsListSelfPublishableKeysInput, ExtensionsListSelfPublishableKeysOutput, ExtensionsListSelfStorageEntriesError, ExtensionsListSelfStorageEntriesInput, ExtensionsListSelfStorageEntriesOutput, ExtensionsSetSelfStorageEntryError, ExtensionsSetSelfStorageEntryInput, ExtensionsSetSelfStorageEntryOutput, ExtensionsUpdateSelfPublishableKeyError, ExtensionsUpdateSelfPublishableKeyInput, ExtensionsUpdateSelfPublishableKeyOutput, ExtensionsVerifySessionError, ExtensionsVerifySessionInput, ExtensionsVerifySessionOutput, ForbiddenErrorData, Identity, InstanceGetError, InstanceGetInput, InstanceGetOutput, InstanceInfo, Invite, InviteDeliveryResult, InvitePendingErrorData, InviteStatus, LocalCollectionSchema, Membership, MembershipExistsErrorData, MembershipInviteResult, MembershipsInviteError, MembershipsInviteInput, MembershipsInviteOutput, MembershipsListError, MembershipsListInput, MembershipsListInvitesError, MembershipsListInvitesInput, MembershipsListInvitesOutput, MembershipsListOutput, MembershipsRemoveError, MembershipsRemoveInput, MembershipsRemoveOutput, MembershipsResendInviteError, MembershipsResendInviteInput, MembershipsResendInviteOutput, MembershipsRevokeInviteError, MembershipsRevokeInviteInput, MembershipsRevokeInviteOutput, MembershipsUpdateError, MembershipsUpdateInput, MembershipsUpdateOutput, NumberPropertyFilter, Pagination, Permission, PropertyFilter, PublishEntryTarget, PublishedAnswer, PublishedAnswerEvent, PublishedAnswerSource, PublishedAsset, PublishedCollection, PublishedCollectionSummary, PublishedContent, PublishedEntriesResult, PublishedEntry, PublishedEntryContent, PublishedEntrySummary, PublishedSearchResult, PublishedTree, PublishedVersion, PublishingBulkPublishCollectionsError, PublishingBulkPublishCollectionsInput, PublishingBulkPublishCollectionsOutput, PublishingBulkPublishEntriesError, PublishingBulkPublishEntriesInput, PublishingBulkPublishEntriesOutput, PublishingBulkSetCollectionsError, PublishingBulkSetCollectionsInput, PublishingBulkSetCollectionsOutput, PublishingBulkUnpublishCollectionsError, PublishingBulkUnpublishCollectionsInput, PublishingBulkUnpublishCollectionsOutput, PublishingBulkUnpublishEntriesError, PublishingBulkUnpublishEntriesInput, PublishingBulkUnpublishEntriesOutput, PublishingChannel, PublishingChannelCode, PublishingChannelListItem, PublishingCreateChannelError, PublishingCreateChannelInput, PublishingCreateChannelOutput, PublishingDeleteChannelError, PublishingDeleteChannelInput, PublishingDeleteChannelOutput, PublishingGetChannelContentError, PublishingGetChannelContentInput, PublishingGetChannelContentOutput, PublishingGetEntryVersionError, PublishingGetEntryVersionInput, PublishingGetEntryVersionOutput, PublishingListChannelsError, PublishingListChannelsInput, PublishingListChannelsOutput, PublishingListEntryPublicationsError, PublishingListEntryPublicationsInput, PublishingListEntryPublicationsOutput, PublishingPublishCollectionError, PublishingPublishCollectionInput, PublishingPublishCollectionOutput, PublishingPublishEntryError, PublishingPublishEntryInput, PublishingPublishEntryOutput, PublishingRevertChangesError, PublishingRevertChangesInput, PublishingRevertChangesOutput, PublishingSetCollectionError, PublishingSetCollectionInput, PublishingSetCollectionOutput, PublishingSnapshotErrorData, PublishingUnpublishCollectionError, PublishingUnpublishCollectionInput, PublishingUnpublishCollectionOutput, PublishingUnpublishEntryError, PublishingUnpublishEntryInput, PublishingUnpublishEntryOutput, PublishingUpdateChannelError, PublishingUpdateChannelInput, PublishingUpdateChannelOutput, RateLimitErrorData, ResolvedSchemaDefinition, ResolvedSchemaField, RevertPublishingChangesResult, Role, RolesCreateError, RolesCreateInput, RolesCreateOutput, RolesDeleteError, RolesDeleteInput, RolesDeleteOutput, RolesListError, RolesListInput, RolesListOutput, RolesUpdateError, RolesUpdateInput, RolesUpdateOutput, SchemaApplicationResult, SchemaBlockType, SchemaDefinition, SchemaDraftDefinition, SchemaField, SchemaFieldKeyConflictErrorData, SchemaFieldSource, SchemaFragment, SchemaMigration, SchemaMigrationContentLossEntry, SchemaMigrationErrorData, SchemaMigrationStatus, SchemaMigrationsGetActiveError, SchemaMigrationsGetActiveInput, SchemaMigrationsGetActiveOutput, SchemaMigrationsGetError, SchemaMigrationsGetInput, SchemaMigrationsGetOutput, SchemaMigrationsListContentLossEntriesError, SchemaMigrationsListContentLossEntriesInput, SchemaMigrationsListContentLossEntriesOutput, SchemaProperty, SchemaPropertyValue, SchemaRevision, SchemaVersion, SchemaVersionSummary, SchemaVersionsGetError, SchemaVersionsGetInput, SchemaVersionsGetOutput, SchemaVersionsListError, SchemaVersionsListInput, SchemaVersionsListOutput, SchemaVersionsRevertError, SchemaVersionsRevertInput, SchemaVersionsRevertOutput, SchemaVersionsUpdateError, SchemaVersionsUpdateInput, SchemaVersionsUpdateOutput, SchemasApplyError, SchemasApplyInput, SchemasApplyOutput, SchemasCreateError, SchemasCreateInput, SchemasCreateOutput, SchemasDeleteError, SchemasDeleteInput, SchemasDeleteOutput, SchemasGetError, SchemasGetInput, SchemasGetOutput, SchemasGetRevisionError, SchemasGetRevisionInput, SchemasGetRevisionOutput, SearchAskCurrentError, SearchAskCurrentInput, SearchAskCurrentOutput, SearchAskCurrentStreamError, SearchAskCurrentStreamInput, SearchAskCurrentStreamOutput, SearchAskPublishedError, SearchAskPublishedInput, SearchAskPublishedOutput, SearchAskPublishedStreamError, SearchAskPublishedStreamInput, SearchAskPublishedStreamOutput, SearchCurrentError, SearchCurrentInput, SearchCurrentOutput, SearchPropertyValue, SearchPublishedError, SearchPublishedInput, SearchPublishedOutput, SearchResult, SearchResults, TextPropertyFilter, TypeMetadata, TypeMetadataCollection, TypeMetadataEntry, TypeMetadataGetCurrentError, TypeMetadataGetCurrentInput, TypeMetadataGetCurrentOutput, TypeMetadataGetPublishedError, TypeMetadataGetPublishedInput, TypeMetadataGetPublishedOutput, TypeMetadataTree, UnpublishedEntriesResult, UserProfile, ValidationErrorData, ValidationIssue, VersionReason, VersionsCreateError, VersionsCreateInput, VersionsCreateOutput, VersionsGetError, VersionsGetInput, VersionsGetOutput, VersionsListError, VersionsListInput, VersionsListOutput, VersionsRevertError, VersionsRevertInput, VersionsRevertOutput, VersionsUpdateError, VersionsUpdateInput, VersionsUpdateOutput, WebhookAttempt, WebhookDelivery, WebhookEndpoint, WebhookEvent, WebhookEventName, WebhookRun, WebhooksBulkDeleteError, WebhooksBulkDeleteInput, WebhooksBulkDeleteOutput, WebhooksBulkRedeliverError, WebhooksBulkRedeliverInput, WebhooksBulkRedeliverOutput, WebhooksBulkSetEnabledError, WebhooksBulkSetEnabledInput, WebhooksBulkSetEnabledOutput, WebhooksCreateError, WebhooksCreateInput, WebhooksCreateOutput, WebhooksDeleteError, WebhooksDeleteInput, WebhooksDeleteOutput, WebhooksGetDeliveryError, WebhooksGetDeliveryInput, WebhooksGetDeliveryOutput, WebhooksGetError, WebhooksGetInput, WebhooksGetOutput, WebhooksListAttemptsError, WebhooksListAttemptsInput, WebhooksListAttemptsOutput, WebhooksListDeliveriesError, WebhooksListDeliveriesInput, WebhooksListDeliveriesOutput, WebhooksListError, WebhooksListInput, WebhooksListOutput, WebhooksListRunsError, WebhooksListRunsInput, WebhooksListRunsOutput, WebhooksRedeliverError, WebhooksRedeliverInput, WebhooksRedeliverOutput, WebhooksRotateSecretError, WebhooksRotateSecretInput, WebhooksRotateSecretOutput, WebhooksSendTestError, WebhooksSendTestInput, WebhooksSendTestOutput, WebhooksUpdateError, WebhooksUpdateInput, WebhooksUpdateOutput, WorkspaceListItem, WorkspacesListError, WorkspacesListInput, WorkspacesListOutput };
92
92
  }
93
- type AssetsAttachError = OperationError<"assets.attach">;
94
- type AssetsAttachInput = OperationInput<"assets.attach">;
95
- type AssetsAttachOutput = OperationOutput<"assets.attach">;
96
93
  type AssetsGetError = OperationError<"assets.get">;
97
94
  type AssetsGetInput = OperationInput<"assets.get">;
98
95
  type AssetsGetOutput = OperationOutput<"assets.get">;
@@ -120,9 +117,15 @@ type CollectionsCreateOutput = OperationOutput<"collections.create">;
120
117
  type CollectionsDeleteError = OperationError<"collections.delete">;
121
118
  type CollectionsDeleteInput = OperationInput<"collections.delete">;
122
119
  type CollectionsDeleteOutput = OperationOutput<"collections.delete">;
120
+ type CollectionsGetError = OperationError<"collections.get">;
121
+ type CollectionsGetInput = OperationInput<"collections.get">;
122
+ type CollectionsGetOutput = OperationOutput<"collections.get">;
123
123
  type CollectionsListError = OperationError<"collections.list">;
124
124
  type CollectionsListInput = OperationInput<"collections.list">;
125
125
  type CollectionsListOutput = OperationOutput<"collections.list">;
126
+ type CollectionsMoveError = OperationError<"collections.move">;
127
+ type CollectionsMoveInput = OperationInput<"collections.move">;
128
+ type CollectionsMoveOutput = OperationOutput<"collections.move">;
126
129
  type CollectionsUpdateError = OperationError<"collections.update">;
127
130
  type CollectionsUpdateInput = OperationInput<"collections.update">;
128
131
  type CollectionsUpdateOutput = OperationOutput<"collections.update">;
@@ -147,6 +150,12 @@ type ContentListEntriesOutput = OperationOutput<"content.listEntries">;
147
150
  type EntriesBulkDeleteError = OperationError<"entries.bulkDelete">;
148
151
  type EntriesBulkDeleteInput = OperationInput<"entries.bulkDelete">;
149
152
  type EntriesBulkDeleteOutput = OperationOutput<"entries.bulkDelete">;
153
+ type EntriesBulkMoveError = OperationError<"entries.bulkMove">;
154
+ type EntriesBulkMoveInput = OperationInput<"entries.bulkMove">;
155
+ type EntriesBulkMoveOutput = OperationOutput<"entries.bulkMove">;
156
+ type EntriesBulkUpdateError = OperationError<"entries.bulkUpdate">;
157
+ type EntriesBulkUpdateInput = OperationInput<"entries.bulkUpdate">;
158
+ type EntriesBulkUpdateOutput = OperationOutput<"entries.bulkUpdate">;
150
159
  type EntriesCreateError = OperationError<"entries.create">;
151
160
  type EntriesCreateInput = OperationInput<"entries.create">;
152
161
  type EntriesCreateOutput = OperationOutput<"entries.create">;
@@ -159,9 +168,18 @@ type EntriesGetOutput = OperationOutput<"entries.get">;
159
168
  type EntriesListError = OperationError<"entries.list">;
160
169
  type EntriesListInput = OperationInput<"entries.list">;
161
170
  type EntriesListOutput = OperationOutput<"entries.list">;
171
+ type EntriesMoveError = OperationError<"entries.move">;
172
+ type EntriesMoveInput = OperationInput<"entries.move">;
173
+ type EntriesMoveOutput = OperationOutput<"entries.move">;
162
174
  type EntriesUpdateError = OperationError<"entries.update">;
163
175
  type EntriesUpdateInput = OperationInput<"entries.update">;
164
176
  type EntriesUpdateOutput = OperationOutput<"entries.update">;
177
+ type ExtensionsCreateSelfPublishableKeyError = OperationError<"extensions.createSelfPublishableKey">;
178
+ type ExtensionsCreateSelfPublishableKeyInput = OperationInput<"extensions.createSelfPublishableKey">;
179
+ type ExtensionsCreateSelfPublishableKeyOutput = OperationOutput<"extensions.createSelfPublishableKey">;
180
+ type ExtensionsDeleteSelfPublishableKeyError = OperationError<"extensions.deleteSelfPublishableKey">;
181
+ type ExtensionsDeleteSelfPublishableKeyInput = OperationInput<"extensions.deleteSelfPublishableKey">;
182
+ type ExtensionsDeleteSelfPublishableKeyOutput = OperationOutput<"extensions.deleteSelfPublishableKey">;
165
183
  type ExtensionsDeleteSelfStorageEntryError = OperationError<"extensions.deleteSelfStorageEntry">;
166
184
  type ExtensionsDeleteSelfStorageEntryInput = OperationInput<"extensions.deleteSelfStorageEntry">;
167
185
  type ExtensionsDeleteSelfStorageEntryOutput = OperationOutput<"extensions.deleteSelfStorageEntry">;
@@ -177,15 +195,24 @@ type ExtensionsGetSelfOutput = OperationOutput<"extensions.getSelf">;
177
195
  type ExtensionsGetSelfStorageEntryError = OperationError<"extensions.getSelfStorageEntry">;
178
196
  type ExtensionsGetSelfStorageEntryInput = OperationInput<"extensions.getSelfStorageEntry">;
179
197
  type ExtensionsGetSelfStorageEntryOutput = OperationOutput<"extensions.getSelfStorageEntry">;
198
+ type ExtensionsListElementsError = OperationError<"extensions.listElements">;
199
+ type ExtensionsListElementsInput = OperationInput<"extensions.listElements">;
200
+ type ExtensionsListElementsOutput = OperationOutput<"extensions.listElements">;
180
201
  type ExtensionsListInstallationsError = OperationError<"extensions.listInstallations">;
181
202
  type ExtensionsListInstallationsInput = OperationInput<"extensions.listInstallations">;
182
203
  type ExtensionsListInstallationsOutput = OperationOutput<"extensions.listInstallations">;
204
+ type ExtensionsListSelfPublishableKeysError = OperationError<"extensions.listSelfPublishableKeys">;
205
+ type ExtensionsListSelfPublishableKeysInput = OperationInput<"extensions.listSelfPublishableKeys">;
206
+ type ExtensionsListSelfPublishableKeysOutput = OperationOutput<"extensions.listSelfPublishableKeys">;
183
207
  type ExtensionsListSelfStorageEntriesError = OperationError<"extensions.listSelfStorageEntries">;
184
208
  type ExtensionsListSelfStorageEntriesInput = OperationInput<"extensions.listSelfStorageEntries">;
185
209
  type ExtensionsListSelfStorageEntriesOutput = OperationOutput<"extensions.listSelfStorageEntries">;
186
210
  type ExtensionsSetSelfStorageEntryError = OperationError<"extensions.setSelfStorageEntry">;
187
211
  type ExtensionsSetSelfStorageEntryInput = OperationInput<"extensions.setSelfStorageEntry">;
188
212
  type ExtensionsSetSelfStorageEntryOutput = OperationOutput<"extensions.setSelfStorageEntry">;
213
+ type ExtensionsUpdateSelfPublishableKeyError = OperationError<"extensions.updateSelfPublishableKey">;
214
+ type ExtensionsUpdateSelfPublishableKeyInput = OperationInput<"extensions.updateSelfPublishableKey">;
215
+ type ExtensionsUpdateSelfPublishableKeyOutput = OperationOutput<"extensions.updateSelfPublishableKey">;
189
216
  type ExtensionsVerifySessionError = OperationError<"extensions.verifySession">;
190
217
  type ExtensionsVerifySessionInput = OperationInput<"extensions.verifySession">;
191
218
  type ExtensionsVerifySessionOutput = OperationOutput<"extensions.verifySession">;
@@ -264,6 +291,9 @@ type PublishingUnpublishCollectionOutput = OperationOutput<"publishing.unpublish
264
291
  type PublishingUnpublishEntryError = OperationError<"publishing.unpublishEntry">;
265
292
  type PublishingUnpublishEntryInput = OperationInput<"publishing.unpublishEntry">;
266
293
  type PublishingUnpublishEntryOutput = OperationOutput<"publishing.unpublishEntry">;
294
+ type PublishingUpdateChannelError = OperationError<"publishing.updateChannel">;
295
+ type PublishingUpdateChannelInput = OperationInput<"publishing.updateChannel">;
296
+ type PublishingUpdateChannelOutput = OperationOutput<"publishing.updateChannel">;
267
297
  type RolesCreateError = OperationError<"roles.create">;
268
298
  type RolesCreateInput = OperationInput<"roles.create">;
269
299
  type RolesCreateOutput = OperationOutput<"roles.create">;
@@ -469,5 +499,5 @@ type StructuredContent<T extends StructuredContentSource> = T extends unknown ?
469
499
  */
470
500
  declare const toStructuredContent: <T extends StructuredContentSource>(page: T) => StructuredContent<T>;
471
501
  //#endregion
472
- export { ContentGetTreeError as $, toContentURL as $a, WebhooksBulkDeleteError as $i, PublishingListEntryPublicationsError as $n, SchemasApplyError as $r, InstanceGetError as $t, CollectionsBulkDeleteInput as A, WebhooksListRunsInput as Aa, SearchPublishedInput as Ai, PublishingBulkSetCollectionsInput as An, RolesUpdateInput as Ar, ExtensionsGetSelfConfigurationInput as At, CollectionsListOutput as B, WebhooksSendTestOutput as Ba, VersionsCreateOutput as Bi, PublishingCreateChannelOutput as Bn, SchemaMigrationsListContentLossEntriesOutput as Br, ExtensionsGetSelfStorageEntryOutput as Bt, AssetsUploadError as C, WebhooksListDeliveriesError as Ca, SearchAskPublishedStreamError as Ci, PublishingBulkPublishCollectionsError as Cn, RolesDeleteError as Cr, EntriesUpdateError as Ct, AuthGetIdentityInput as D, WebhooksListInput as Da, SearchCurrentInput as Di, PublishingBulkPublishEntriesInput as Dn, RolesListInput as Dr, ExtensionsDeleteSelfStorageEntryInput as Dt, AuthGetIdentityError as E, WebhooksListError as Ea, SearchCurrentError as Ei, PublishingBulkPublishEntriesError as En, RolesListError as Er, ExtensionsDeleteSelfStorageEntryError as Et, CollectionsDeleteError as F, WebhooksRotateSecretError as Fa, TypeMetadataGetPublishedError as Fi, PublishingBulkUnpublishEntriesError as Fn, SchemaMigrationsGetError as Fr, ExtensionsGetSelfError as Ft, ContentGetAssetInput as G, WorkspacesListInput as Ga, VersionsListInput as Gi, PublishingGetChannelContentInput as Gn, SchemaVersionsListInput as Gr, ExtensionsListSelfStorageEntriesInput as Gt, CollectionsUpdateInput as H, WebhooksUpdateInput as Ha, VersionsGetInput as Hi, PublishingDeleteChannelInput as Hn, SchemaVersionsGetInput as Hr, ExtensionsListInstallationsInput as Ht, CollectionsDeleteInput as I, WebhooksRotateSecretInput as Ia, TypeMetadataGetPublishedInput as Ii, PublishingBulkUnpublishEntriesInput as In, SchemaMigrationsGetInput as Ir, ExtensionsGetSelfInput as It, ContentGetInput as J, AndesineAPIError as Ja, VersionsRevertInput as Ji, PublishingGetEntryVersionInput as Jn, SchemaVersionsRevertInput as Jr, ExtensionsSetSelfStorageEntryInput as Jt, ContentGetAssetOutput as K, WorkspacesListOutput as Ka, VersionsListOutput as Ki, PublishingGetChannelContentOutput as Kn, SchemaVersionsListOutput as Kr, ExtensionsListSelfStorageEntriesOutput as Kt, CollectionsDeleteOutput as L, WebhooksRotateSecretOutput as La, TypeMetadataGetPublishedOutput as Li, PublishingBulkUnpublishEntriesOutput as Ln, SchemaMigrationsGetOutput as Lr, ExtensionsGetSelfOutput as Lt, CollectionsCreateError as M, WebhooksRedeliverError as Ma, TypeMetadataGetCurrentError as Mi, PublishingBulkUnpublishCollectionsError as Mn, SchemaMigrationsGetActiveError as Mr, ExtensionsGetSelfDeliveryError as Mt, CollectionsCreateInput as N, WebhooksRedeliverInput as Na, TypeMetadataGetCurrentInput as Ni, PublishingBulkUnpublishCollectionsInput as Nn, SchemaMigrationsGetActiveInput as Nr, ExtensionsGetSelfDeliveryInput as Nt, AuthGetIdentityOutput as O, WebhooksListOutput as Oa, SearchCurrentOutput as Oi, PublishingBulkPublishEntriesOutput as On, RolesListOutput as Or, ExtensionsDeleteSelfStorageEntryOutput as Ot, CollectionsCreateOutput as P, WebhooksRedeliverOutput as Pa, TypeMetadataGetCurrentOutput as Pi, PublishingBulkUnpublishCollectionsOutput as Pn, SchemaMigrationsGetActiveOutput as Pr, ExtensionsGetSelfDeliveryOutput as Pt, ContentGetSchemaOutput as Q, ContentURLOptions as Qa, VersionsUpdateOutput as Qi, PublishingListChannelsOutput as Qn, SchemaVersionsUpdateOutput as Qr, ExtensionsVerifySessionOutput as Qt, CollectionsListError as R, WebhooksSendTestError as Ra, VersionsCreateError as Ri, PublishingCreateChannelError as Rn, SchemaMigrationsListContentLossEntriesError as Rr, ExtensionsGetSelfStorageEntryError as Rt, AssetsSearchOutput as S, WebhooksListAttemptsOutput as Sa, SearchAskPublishedOutput as Si, MembershipsUpdateOutput as Sn, RolesCreateOutput as Sr, EntriesListOutput as St, AssetsUploadOutput as T, WebhooksListDeliveriesOutput as Ta, SearchAskPublishedStreamOutput as Ti, PublishingBulkPublishCollectionsOutput as Tn, RolesDeleteOutput as Tr, EntriesUpdateOutput as Tt, CollectionsUpdateOutput as U, WebhooksUpdateOutput as Ua, VersionsGetOutput as Ui, PublishingDeleteChannelOutput as Un, SchemaVersionsGetOutput as Ur, ExtensionsListInstallationsOutput as Ut, CollectionsUpdateError as V, WebhooksUpdateError as Va, VersionsGetError as Vi, PublishingDeleteChannelError as Vn, SchemaVersionsGetError as Vr, ExtensionsListInstallationsError as Vt, ContentGetAssetError as W, WorkspacesListError as Wa, VersionsListError as Wi, PublishingGetChannelContentError as Wn, SchemaVersionsListError as Wr, ExtensionsListSelfStorageEntriesError as Wt, ContentGetSchemaError as X, AndesineStreamProtocolError as Xa, VersionsUpdateError as Xi, PublishingListChannelsError as Xn, SchemaVersionsUpdateError as Xr, ExtensionsVerifySessionError as Xt, ContentGetOutput as Y, AndesineStreamError as Ya, VersionsRevertOutput as Yi, PublishingGetEntryVersionOutput as Yn, SchemaVersionsRevertOutput as Yr, ExtensionsSetSelfStorageEntryOutput as Yt, ContentGetSchemaInput as Z, ContentLocation as Za, VersionsUpdateInput as Zi, PublishingListChannelsInput as Zn, SchemaVersionsUpdateInput as Zr, ExtensionsVerifySessionInput as Zt, AssetsRegisterError as _, WebhooksGetError as _a, SearchAskCurrentStreamError as _i, MembershipsRevokeInviteError as _n, PublishingUnpublishEntryError as _r, EntriesGetError as _t, PaginateOptions as a, WebhooksBulkSetEnabledError as aa, SchemasDeleteError as ai, MembershipsListError as an, PublishingPublishEntryError as ar, ContentListEntriesError as at, AssetsSearchError as b, WebhooksListAttemptsError as ba, SearchAskPublishedError as bi, MembershipsUpdateError as bn, RolesCreateError as br, EntriesListError as bt, AssetsAttachError as c, WebhooksCreateError as ca, SchemasGetError as ci, MembershipsListInvitesInput as cn, PublishingRevertChangesError as cr, EntriesBulkDeleteError as ct, AssetsGetError as d, WebhooksDeleteError as da, SchemasGetRevisionError as di, MembershipsRemoveError as dn, PublishingSetCollectionError as dr, EntriesCreateError as dt, WebhooksBulkDeleteInput as ea, SchemasApplyInput as ei, InstanceGetInput as en, PublishingListEntryPublicationsInput as er, ContentGetTreeInput as et, AssetsGetInput as f, WebhooksDeleteInput as fa, SchemasGetRevisionInput as fi, MembershipsRemoveInput as fn, PublishingSetCollectionInput as fr, EntriesCreateInput as ft, AssetsImportURLOutput as g, WebhooksGetDeliveryOutput as ga, SearchAskCurrentOutput as gi, MembershipsResendInviteOutput as gn, PublishingUnpublishCollectionOutput as gr, EntriesDeleteOutput as gt, AssetsImportURLInput as h, WebhooksGetDeliveryInput as ha, SearchAskCurrentInput as hi, MembershipsResendInviteInput as hn, PublishingUnpublishCollectionInput as hr, EntriesDeleteInput as ht, Page as i, WebhooksBulkRedeliverOutput as ia, SchemasCreateOutput as ii, MembershipsInviteOutput as in, PublishingPublishCollectionOutput as ir, ContentListCollectionsOutput as it, CollectionsBulkDeleteOutput as j, WebhooksListRunsOutput as ja, SearchPublishedOutput as ji, PublishingBulkSetCollectionsOutput as jn, RolesUpdateOutput as jr, ExtensionsGetSelfConfigurationOutput as jt, CollectionsBulkDeleteError as k, WebhooksListRunsError as ka, SearchPublishedError as ki, PublishingBulkSetCollectionsError as kn, RolesUpdateError as kr, ExtensionsGetSelfConfigurationError as kt, AssetsAttachInput as l, WebhooksCreateInput as la, SchemasGetInput as li, MembershipsListInvitesOutput as ln, PublishingRevertChangesInput as lr, EntriesBulkDeleteInput as lt, AssetsImportURLError as m, WebhooksGetDeliveryError as ma, SearchAskCurrentError as mi, MembershipsResendInviteError as mn, PublishingUnpublishCollectionError as mr, EntriesDeleteError as mt, StructuredContentSource as n, WebhooksBulkRedeliverError as na, SchemasCreateError as ni, MembershipsInviteError as nn, PublishingPublishCollectionError as nr, ContentListCollectionsError as nt, paginate as o, WebhooksBulkSetEnabledInput as oa, SchemasDeleteInput as oi, MembershipsListInput as on, PublishingPublishEntryInput as or, ContentListEntriesInput as ot, AssetsGetOutput as p, WebhooksDeleteOutput as pa, SchemasGetRevisionOutput as pi, MembershipsRemoveOutput as pn, PublishingSetCollectionOutput as pr, EntriesCreateOutput as pt, ContentGetError as q, types_d_exports as qa, VersionsRevertError as qi, PublishingGetEntryVersionError as qn, SchemaVersionsRevertError as qr, ExtensionsSetSelfStorageEntryError as qt, toStructuredContent as r, WebhooksBulkRedeliverInput as ra, SchemasCreateInput as ri, MembershipsInviteInput as rn, PublishingPublishCollectionInput as rr, ContentListCollectionsInput as rt, paginatePages as s, WebhooksBulkSetEnabledOutput as sa, SchemasDeleteOutput as si, MembershipsListInvitesError as sn, PublishingPublishEntryOutput as sr, ContentListEntriesOutput as st, StructuredContent as t, WebhooksBulkDeleteOutput as ta, SchemasApplyOutput as ti, InstanceGetOutput as tn, PublishingListEntryPublicationsOutput as tr, ContentGetTreeOutput as tt, AssetsAttachOutput as u, WebhooksCreateOutput as ua, SchemasGetOutput as ui, MembershipsListOutput as un, PublishingRevertChangesOutput as ur, EntriesBulkDeleteOutput as ut, AssetsRegisterInput as v, WebhooksGetInput as va, SearchAskCurrentStreamInput as vi, MembershipsRevokeInviteInput as vn, PublishingUnpublishEntryInput as vr, EntriesGetInput as vt, AssetsUploadInput as w, WebhooksListDeliveriesInput as wa, SearchAskPublishedStreamInput as wi, PublishingBulkPublishCollectionsInput as wn, RolesDeleteInput as wr, EntriesUpdateInput as wt, AssetsSearchInput as x, WebhooksListAttemptsInput as xa, SearchAskPublishedInput as xi, MembershipsUpdateInput as xn, RolesCreateInput as xr, EntriesListInput as xt, AssetsRegisterOutput as y, WebhooksGetOutput as ya, SearchAskCurrentStreamOutput as yi, MembershipsRevokeInviteOutput as yn, PublishingUnpublishEntryOutput as yr, EntriesGetOutput as yt, CollectionsListInput as z, WebhooksSendTestInput as za, VersionsCreateInput as zi, PublishingCreateChannelInput as zn, SchemaMigrationsListContentLossEntriesInput as zr, ExtensionsGetSelfStorageEntryInput as zt };
473
- //# sourceMappingURL=index-B5qefVRv.d.ts.map
502
+ export { ContentGetSchemaError as $, WebhooksListDeliveriesError as $a, SearchAskPublishedStreamError as $i, PublishingBulkPublishEntriesError as $n, RolesDeleteError as $r, ExtensionsGetSelfError as $t, CollectionsCreateInput as A, WebhooksBulkDeleteInput as Aa, SchemasApplyInput as Ai, MembershipsInviteInput as An, PublishingPublishCollectionInput as Ar, EntriesListInput as At, CollectionsListOutput as B, WebhooksCreateOutput as Ba, SchemasGetOutput as Bi, MembershipsRemoveOutput as Bn, PublishingSetCollectionOutput as Br, ExtensionsCreateSelfPublishableKeyOutput as Bt, AuthGetIdentityError as C, VersionsRevertError as Ca, SchemaVersionsRevertError as Ci, ExtensionsVerifySessionError as Cn, types_d_exports as Co, PublishingListChannelsError as Cr, EntriesDeleteError as Ct, CollectionsBulkDeleteInput as D, VersionsUpdateInput as Da, SchemaVersionsUpdateInput as Di, InstanceGetInput as Dn, ContentLocation as Do, PublishingListEntryPublicationsInput as Dr, EntriesGetInput as Dt, CollectionsBulkDeleteError as E, VersionsUpdateError as Ea, SchemaVersionsUpdateError as Ei, InstanceGetError as En, AndesineStreamProtocolError as Eo, PublishingListEntryPublicationsError as Er, EntriesGetError as Et, CollectionsGetError as F, WebhooksBulkSetEnabledError as Fa, SchemasDeleteError as Fi, MembershipsListInvitesInput as Fn, PublishingRevertChangesError as Fr, EntriesUpdateError as Ft, CollectionsUpdateInput as G, WebhooksGetDeliveryInput as Ga, SearchAskCurrentInput as Gi, MembershipsRevokeInviteInput as Gn, PublishingUnpublishEntryInput as Gr, ExtensionsDeleteSelfStorageEntryInput as Gt, CollectionsMoveInput as H, WebhooksDeleteInput as Ha, SchemasGetRevisionInput as Hi, MembershipsResendInviteInput as Hn, PublishingUnpublishCollectionInput as Hr, ExtensionsDeleteSelfPublishableKeyInput as Ht, CollectionsGetInput as I, WebhooksBulkSetEnabledInput as Ia, SchemasDeleteInput as Ii, MembershipsListInvitesOutput as In, PublishingRevertChangesInput as Ir, EntriesUpdateInput as It, ContentGetAssetInput as J, WebhooksGetInput as Ja, SearchAskCurrentStreamInput as Ji, MembershipsUpdateInput as Jn, PublishingUpdateChannelInput as Jr, ExtensionsGetSelfConfigurationInput as Jt, CollectionsUpdateOutput as K, WebhooksGetDeliveryOutput as Ka, SearchAskCurrentOutput as Ki, MembershipsRevokeInviteOutput as Kn, PublishingUnpublishEntryOutput as Kr, ExtensionsDeleteSelfStorageEntryOutput as Kt, CollectionsGetOutput as L, WebhooksBulkSetEnabledOutput as La, SchemasDeleteOutput as Li, MembershipsListOutput as Ln, PublishingRevertChangesOutput as Lr, EntriesUpdateOutput as Lt, CollectionsDeleteError as M, WebhooksBulkRedeliverError as Ma, SchemasCreateError as Mi, MembershipsListError as Mn, PublishingPublishEntryError as Mr, EntriesMoveError as Mt, CollectionsDeleteInput as N, WebhooksBulkRedeliverInput as Na, SchemasCreateInput as Ni, MembershipsListInput as Nn, PublishingPublishEntryInput as Nr, EntriesMoveInput as Nt, CollectionsBulkDeleteOutput as O, VersionsUpdateOutput as Oa, SchemaVersionsUpdateOutput as Oi, InstanceGetOutput as On, ContentURLOptions as Oo, PublishingListEntryPublicationsOutput as Or, EntriesGetOutput as Ot, CollectionsDeleteOutput as P, WebhooksBulkRedeliverOutput as Pa, SchemasCreateOutput as Pi, MembershipsListInvitesError as Pn, PublishingPublishEntryOutput as Pr, EntriesMoveOutput as Pt, ContentGetOutput as Q, WebhooksListAttemptsOutput as Qa, SearchAskPublishedOutput as Qi, PublishingBulkPublishCollectionsOutput as Qn, RolesCreateOutput as Qr, ExtensionsGetSelfDeliveryOutput as Qt, CollectionsListError as R, WebhooksCreateError as Ra, SchemasGetError as Ri, MembershipsRemoveError as Rn, PublishingSetCollectionError as Rr, ExtensionsCreateSelfPublishableKeyError as Rt, AssetsUploadOutput as S, VersionsListOutput as Sa, SchemaVersionsListOutput as Si, ExtensionsUpdateSelfPublishableKeyOutput as Sn, WorkspacesListOutput as So, PublishingGetEntryVersionOutput as Sr, EntriesCreateOutput as St, AuthGetIdentityOutput as T, VersionsRevertOutput as Ta, SchemaVersionsRevertOutput as Ti, ExtensionsVerifySessionOutput as Tn, AndesineStreamError as To, PublishingListChannelsOutput as Tr, EntriesDeleteOutput as Tt, CollectionsMoveOutput as U, WebhooksDeleteOutput as Ua, SchemasGetRevisionOutput as Ui, MembershipsResendInviteOutput as Un, PublishingUnpublishCollectionOutput as Ur, ExtensionsDeleteSelfPublishableKeyOutput as Ut, CollectionsMoveError as V, WebhooksDeleteError as Va, SchemasGetRevisionError as Vi, MembershipsResendInviteError as Vn, PublishingUnpublishCollectionError as Vr, ExtensionsDeleteSelfPublishableKeyError as Vt, CollectionsUpdateError as W, WebhooksGetDeliveryError as Wa, SearchAskCurrentError as Wi, MembershipsRevokeInviteError as Wn, PublishingUnpublishEntryError as Wr, ExtensionsDeleteSelfStorageEntryError as Wt, ContentGetError as X, WebhooksListAttemptsError as Xa, SearchAskPublishedError as Xi, PublishingBulkPublishCollectionsError as Xn, RolesCreateError as Xr, ExtensionsGetSelfDeliveryError as Xt, ContentGetAssetOutput as Y, WebhooksGetOutput as Ya, SearchAskCurrentStreamOutput as Yi, MembershipsUpdateOutput as Yn, PublishingUpdateChannelOutput as Yr, ExtensionsGetSelfConfigurationOutput as Yt, ContentGetInput as Z, WebhooksListAttemptsInput as Za, SearchAskPublishedInput as Zi, PublishingBulkPublishCollectionsInput as Zn, RolesCreateInput as Zr, ExtensionsGetSelfDeliveryInput as Zt, AssetsSearchError as _, VersionsGetError as _a, SchemaVersionsGetError as _i, ExtensionsSetSelfStorageEntryError as _n, WebhooksUpdateError as _o, PublishingGetChannelContentError as _r, EntriesBulkUpdateError as _t, PaginateOptions as a, SearchPublishedError as aa, RolesUpdateError as ai, ExtensionsListElementsError as an, WebhooksListRunsError as ao, PublishingBulkUnpublishCollectionsError as ar, ContentListCollectionsError as at, AssetsUploadError as b, VersionsListError as ba, SchemaVersionsListError as bi, ExtensionsUpdateSelfPublishableKeyError as bn, WorkspacesListError as bo, PublishingGetEntryVersionError as br, EntriesCreateError as bt, AssetsGetError as c, TypeMetadataGetCurrentError as ca, SchemaMigrationsGetActiveError as ci, ExtensionsListInstallationsError as cn, WebhooksRedeliverError as co, PublishingBulkUnpublishEntriesError as cr, ContentListEntriesError as ct, AssetsImportURLError as d, TypeMetadataGetPublishedError as da, SchemaMigrationsGetError as di, ExtensionsListSelfPublishableKeysError as dn, WebhooksRotateSecretError as do, PublishingCreateChannelError as dr, EntriesBulkDeleteError as dt, SearchAskPublishedStreamInput as ea, RolesDeleteInput as ei, ExtensionsGetSelfInput as en, WebhooksListDeliveriesInput as eo, PublishingBulkPublishEntriesInput as er, ContentGetSchemaInput as et, AssetsImportURLInput as f, TypeMetadataGetPublishedInput as fa, SchemaMigrationsGetInput as fi, ExtensionsListSelfPublishableKeysInput as fn, WebhooksRotateSecretInput as fo, PublishingCreateChannelInput as fr, EntriesBulkDeleteInput as ft, AssetsRegisterOutput as g, VersionsCreateOutput as ga, SchemaMigrationsListContentLossEntriesOutput as gi, ExtensionsListSelfStorageEntriesOutput as gn, WebhooksSendTestOutput as go, PublishingDeleteChannelOutput as gr, EntriesBulkMoveOutput as gt, AssetsRegisterInput as h, VersionsCreateInput as ha, SchemaMigrationsListContentLossEntriesInput as hi, ExtensionsListSelfStorageEntriesInput as hn, WebhooksSendTestInput as ho, PublishingDeleteChannelInput as hr, EntriesBulkMoveInput as ht, Page as i, SearchCurrentOutput as ia, RolesListOutput as ii, ExtensionsGetSelfStorageEntryOutput as in, WebhooksListOutput as io, PublishingBulkSetCollectionsOutput as ir, ContentGetTreeOutput as it, CollectionsCreateOutput as j, WebhooksBulkDeleteOutput as ja, SchemasApplyOutput as ji, MembershipsInviteOutput as jn, PublishingPublishCollectionOutput as jr, EntriesListOutput as jt, CollectionsCreateError as k, WebhooksBulkDeleteError as ka, SchemasApplyError as ki, MembershipsInviteError as kn, toContentURL as ko, PublishingPublishCollectionError as kr, EntriesListError as kt, AssetsGetInput as l, TypeMetadataGetCurrentInput as la, SchemaMigrationsGetActiveInput as li, ExtensionsListInstallationsInput as ln, WebhooksRedeliverInput as lo, PublishingBulkUnpublishEntriesInput as lr, ContentListEntriesInput as lt, AssetsRegisterError as m, VersionsCreateError as ma, SchemaMigrationsListContentLossEntriesError as mi, ExtensionsListSelfStorageEntriesError as mn, WebhooksSendTestError as mo, PublishingDeleteChannelError as mr, EntriesBulkMoveError as mt, StructuredContentSource as n, SearchCurrentError as na, RolesListError as ni, ExtensionsGetSelfStorageEntryError as nn, WebhooksListError as no, PublishingBulkSetCollectionsError as nr, ContentGetTreeError as nt, paginate as o, SearchPublishedInput as oa, RolesUpdateInput as oi, ExtensionsListElementsInput as on, WebhooksListRunsInput as oo, PublishingBulkUnpublishCollectionsInput as or, ContentListCollectionsInput as ot, AssetsImportURLOutput as p, TypeMetadataGetPublishedOutput as pa, SchemaMigrationsGetOutput as pi, ExtensionsListSelfPublishableKeysOutput as pn, WebhooksRotateSecretOutput as po, PublishingCreateChannelOutput as pr, EntriesBulkDeleteOutput as pt, ContentGetAssetError as q, WebhooksGetError as qa, SearchAskCurrentStreamError as qi, MembershipsUpdateError as qn, PublishingUpdateChannelError as qr, ExtensionsGetSelfConfigurationError as qt, toStructuredContent as r, SearchCurrentInput as ra, RolesListInput as ri, ExtensionsGetSelfStorageEntryInput as rn, WebhooksListInput as ro, PublishingBulkSetCollectionsInput as rr, ContentGetTreeInput as rt, paginatePages as s, SearchPublishedOutput as sa, RolesUpdateOutput as si, ExtensionsListElementsOutput as sn, WebhooksListRunsOutput as so, PublishingBulkUnpublishCollectionsOutput as sr, ContentListCollectionsOutput as st, StructuredContent as t, SearchAskPublishedStreamOutput as ta, RolesDeleteOutput as ti, ExtensionsGetSelfOutput as tn, WebhooksListDeliveriesOutput as to, PublishingBulkPublishEntriesOutput as tr, ContentGetSchemaOutput as tt, AssetsGetOutput as u, TypeMetadataGetCurrentOutput as ua, SchemaMigrationsGetActiveOutput as ui, ExtensionsListInstallationsOutput as un, WebhooksRedeliverOutput as uo, PublishingBulkUnpublishEntriesOutput as ur, ContentListEntriesOutput as ut, AssetsSearchInput as v, VersionsGetInput as va, SchemaVersionsGetInput as vi, ExtensionsSetSelfStorageEntryInput as vn, WebhooksUpdateInput as vo, PublishingGetChannelContentInput as vr, EntriesBulkUpdateInput as vt, AuthGetIdentityInput as w, VersionsRevertInput as wa, SchemaVersionsRevertInput as wi, ExtensionsVerifySessionInput as wn, AndesineAPIError as wo, PublishingListChannelsInput as wr, EntriesDeleteInput as wt, AssetsUploadInput as x, VersionsListInput as xa, SchemaVersionsListInput as xi, ExtensionsUpdateSelfPublishableKeyInput as xn, WorkspacesListInput as xo, PublishingGetEntryVersionInput as xr, EntriesCreateInput as xt, AssetsSearchOutput as y, VersionsGetOutput as ya, SchemaVersionsGetOutput as yi, ExtensionsSetSelfStorageEntryOutput as yn, WebhooksUpdateOutput as yo, PublishingGetChannelContentOutput as yr, EntriesBulkUpdateOutput as yt, CollectionsListInput as z, WebhooksCreateInput as za, SchemasGetInput as zi, MembershipsRemoveInput as zn, PublishingSetCollectionInput as zr, ExtensionsCreateSelfPublishableKeyInput as zt };
503
+ //# sourceMappingURL=index-DcU5xEPe.d.ts.map