@andesine/sdk 0.1.0 → 0.4.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.
@@ -0,0 +1,1982 @@
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, _n as operations, _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, gn as components, 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-BcVop8NH.js";
2
+ //#region src/workspace.d.ts
3
+ /**
4
+ * Type-only description of one workspace and content source.
5
+ * It does not select a workspace, bind a snapshot, or validate a server response.
6
+ * Generated collection/entry keys can include IDs, canonical paths, and slug paths. Unknown keys retain general SDK types.
7
+ */
8
+ interface WorkspaceTypeMap {
9
+ workspaceID?: string;
10
+ source: {
11
+ kind: "current" | "published";
12
+ channel?: string;
13
+ snapshotID?: string;
14
+ };
15
+ collections: Readonly<Record<string, WorkspaceCollection>>;
16
+ schemas: Readonly<Record<string, WorkspaceSchema>>;
17
+ /** Optional exact entry bindings. Omit ID or name/slug path keys when their generation is disabled. */
18
+ entries?: Readonly<Record<string, WorkspaceEntry>>;
19
+ /** Optional published trees keyed by collection selector. Does not affect current reads. */
20
+ tree?: Readonly<Record<string, PublishedCollection>>;
21
+ }
22
+ /** One collection's content variants and known descendant collection selectors. */
23
+ interface WorkspaceCollection {
24
+ id: string | null;
25
+ path: string;
26
+ slugPath: string;
27
+ /** Exact recorded revision IDs; null is schema-free content. An empty tuple uses general content. */
28
+ schemaRevisionIDs: ReadonlyArray<string | null>;
29
+ /** All descendants, not only direct children. Omit when unknown; use [] for a known leaf. */
30
+ descendants?: readonly string[];
31
+ }
32
+ /** Effective fields for one recorded schema revision, including inherited fields. */
33
+ interface WorkspaceSchema {
34
+ hash: string;
35
+ properties: Readonly<Record<string, EntryProperty | undefined>>;
36
+ fragments: Readonly<Record<string, EntryFragment | undefined>>;
37
+ }
38
+ /** An exact entry binding; its revision can be narrower than its collection's revision union. */
39
+ interface WorkspaceEntry {
40
+ collection: string;
41
+ schemaRevisionID: string | null;
42
+ }
43
+ interface ContentShape {
44
+ schema: ContentSchemaMetadata | null;
45
+ properties: Readonly<Record<string, EntryProperty | undefined>>;
46
+ fragments: Readonly<Record<string, EntryFragment | undefined>>;
47
+ }
48
+ type GeneralContent = Pick<PublishedEntryContent, "schema" | "properties" | "fragments">;
49
+ /** Content fields for named revision types. Preserves revision unions and schema-free branches. */
50
+ type SchemaContent<Workspace extends WorkspaceTypeMap, RevisionID extends string | null> = [RevisionID] extends [never] ? GeneralContent : RevisionID extends null ? GeneralContent & {
51
+ schema: null;
52
+ } : RevisionID extends keyof Workspace["schemas"] ? {
53
+ schema: {
54
+ revisionID: RevisionID;
55
+ hash: Workspace["schemas"][RevisionID]["hash"];
56
+ };
57
+ properties: Workspace["schemas"][RevisionID]["properties"];
58
+ fragments: Workspace["schemas"][RevisionID]["fragments"];
59
+ } : GeneralContent;
60
+ //#endregion
61
+ //#region src/workspace-output.d.ts
62
+ type Lookup<Map, Key> = Key extends string ? string extends Key ? undefined : Key extends keyof Map ? Map[Key] : undefined : undefined;
63
+ type Selector$1<Input, Keys extends string> = Input extends unknown ? [Extract<Keys, keyof Input>] extends [never] ? undefined : Input[Extract<Keys, keyof Input>] : never;
64
+ type EntryMap<Workspace> = Workspace extends {
65
+ entries: infer Entries;
66
+ } ? Entries : Record<never, never>;
67
+ type TreeMap<Workspace> = Workspace extends {
68
+ tree: infer Tree;
69
+ } ? Tree : Record<never, never>;
70
+ type ApplyContent<Base, Shape> = Shape extends ContentShape ? Omit<Base, keyof ContentShape> & Shape : Base;
71
+ type CollectionIdentity<Collection> = Collection extends WorkspaceCollection ? {
72
+ collectionID: Collection["id"];
73
+ } : Record<never, never>;
74
+ type EntryContent<Base, Workspace extends WorkspaceTypeMap, Binding> = Binding extends WorkspaceEntry ? ApplyContent<Base, SchemaContent<Workspace, Binding["schemaRevisionID"]>> & (Workspace["source"] extends {
75
+ kind: "published";
76
+ } ? CollectionIdentity<Lookup<Workspace["collections"], Binding["collection"]>> : Record<never, never>) : Base;
77
+ type EntryOutput<Base, Workspace extends WorkspaceTypeMap, Input, ID extends string> = EntryContent<Base, Workspace, Lookup<EntryMap<Workspace>, Selector$1<Input, ID | "path" | "slugPath">>>;
78
+ type Descendants<Workspace extends WorkspaceTypeMap, Collection> = Collection extends {
79
+ descendants: readonly string[];
80
+ } ? Lookup<Workspace["collections"], Collection["descendants"][number]> : undefined;
81
+ type ListCollections<Workspace extends WorkspaceTypeMap, Input, Collection> = "descendants" extends keyof Input ? Input extends {
82
+ descendants?: false | undefined;
83
+ } ? Collection : Collection | Descendants<Workspace, Collection> : Collection;
84
+ type CollectionContent<Base, Workspace extends WorkspaceTypeMap, Collection> = Collection extends WorkspaceCollection ? ApplyContent<Base, SchemaContent<Workspace, Collection["schemaRevisionIDs"][number]>> & {
85
+ collectionID: Collection["id"];
86
+ } : Base;
87
+ /** Apply known collection shapes only to published list content; summaries stay unchanged. */
88
+ type WorkspaceListContent<Base, Workspace extends WorkspaceTypeMap, Input> = Workspace["source"] extends {
89
+ kind: "published";
90
+ } ? CollectionContent<Base, Workspace, ListCollections<Workspace, Input, Lookup<Workspace["collections"], Selector$1<Input, "collectionID" | "collectionPath" | "collectionSlugPath">>>> : Base;
91
+ type TreeOutput<Base, Tree> = Tree extends PublishedCollection ? Omit<Base, "collection"> & {
92
+ collection: Tree;
93
+ } : Base;
94
+ type SchemaOutput<Base, Shape> = Shape extends {
95
+ schema: infer Schema;
96
+ } ? Schema extends null ? null : Omit<NonNullable<Base>, "revisionID" | "hash"> & Schema : Base;
97
+ type EntrySchemaOutput<Base, Workspace extends WorkspaceTypeMap, Binding> = Binding extends WorkspaceEntry ? SchemaOutput<Base, SchemaContent<Workspace, Binding["schemaRevisionID"]>> : Base;
98
+ /** Specialize reads for their matching source; unrelated operations retain their generated types. */
99
+ type WorkspaceOperationOutput<Operation extends string, Base, Workspace extends WorkspaceTypeMap, Input> = Operation extends "entries.get" ? Workspace["source"] extends {
100
+ kind: "current";
101
+ } ? EntryOutput<Base, Workspace, Input, "id"> : Base : Workspace["source"] extends {
102
+ kind: "published";
103
+ } ? Operation extends "content.get" ? EntryOutput<Base, Workspace, Input, "entryID"> : Operation extends "content.getSchema" ? EntrySchemaOutput<Base, Workspace, Lookup<EntryMap<Workspace>, Selector$1<Input, "entryID" | "path" | "slugPath">>> : Operation extends "content.getTree" ? TreeOutput<Base, Lookup<TreeMap<Workspace>, Selector$1<Input, "collectionID" | "collectionPath" | "collectionSlugPath">>> : Base : Base;
104
+ //#endregion
105
+ //#region src/content-list.d.ts
106
+ interface ContentListOperation<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
107
+ <const Input extends OperationInput<"content.listEntries"> = Record<string, never>>(input: Input, options: RequestOptions & {
108
+ response: "full";
109
+ }): Promise<APIResponse<ContentListOutput<Input, Workspace>> | NotModifiedResponse>;
110
+ <const Input extends OperationInput<"content.listEntries"> = Record<string, never>>(input?: Input, options?: RequestOptions & {
111
+ response?: "data";
112
+ }): Promise<ContentListOutput<Input, Workspace>>;
113
+ }
114
+ type FullContent<Input, Workspace extends WorkspaceTypeMap> = WorkspaceListContent<components["schemas"]["PublishedEntryContent"], Workspace, Input>;
115
+ type ContentListOutput<Input, Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> = Omit<RawOperationOutput<"content.listEntries">, "data"> & {
116
+ data: Array<Input extends {
117
+ includeContent: true;
118
+ } ? FullContent<Input, Workspace> : "includeContent" extends keyof Input ? Input extends {
119
+ includeContent?: false | undefined;
120
+ } ? components["schemas"]["PublishedEntrySummary"] : FullContent<Input, Workspace> | components["schemas"]["PublishedEntrySummary"] : components["schemas"]["PublishedEntrySummary"]>;
121
+ };
122
+ //#endregion
123
+ //#region src/selectors.d.ts
124
+ type SelectorValue<T, Key extends string> = Key extends keyof T ? NonNullable<T[Key]> : never;
125
+ type SelectorBranch<T, Keys extends string, Key extends Keys = Keys> = Key extends Keys ? { [Selected in Key]: SelectorValue<T, Selected>; } & { [Other in Exclude<Keys, Key>]?: never; } : never;
126
+ type Selector<T, Keys extends string, Optional extends boolean = false> = T & (SelectorBranch<T, Keys> | (Optional extends true ? { [Key in Keys]?: never; } : never));
127
+ type WithSelectors<Operation extends string, Input> = Operation extends "entries.get" ? Selector<Input, "id" | "path" | "slugPath"> : Operation extends "content.get" | "content.getSchema" ? Selector<Input, "entryID" | "path" | "slugPath"> : "collectionPath" extends keyof Input ? Selector<Input, "collectionID" | "collectionPath" | "collectionSlugPath", Operation extends "content.getTree" | "schemas.get" ? false : true> : Input;
128
+ //#endregion
129
+ //#region src/operation.d.ts
130
+ interface RequestOptions {
131
+ /** Cancel the request or stream, preserving the signal's abort reason. */
132
+ signal?: AbortSignal;
133
+ /** Override the client timeout in milliseconds; 0 disables it. Includes stream consumption. */
134
+ timeout?: number;
135
+ /** Override GET retry attempts. Defaults to the client setting; other methods never retry. */
136
+ retries?: number;
137
+ /** Headers merged over client headers. The configured credential supplies Authorization. */
138
+ headers?: HeadersInit;
139
+ /** Return data by default, or status/headers/data with "full". Required for possible 304s. */
140
+ response?: "data" | "full";
141
+ }
142
+ interface APIResponse<T> {
143
+ status: number;
144
+ headers: Headers;
145
+ data: T;
146
+ notModified: false;
147
+ }
148
+ interface NotModifiedResponse {
149
+ status: 304;
150
+ headers: Headers;
151
+ data: undefined;
152
+ notModified: true;
153
+ }
154
+ interface StandardOperation<K extends keyof operations, Workspace extends WorkspaceTypeMap> {
155
+ <const Input extends OperationInput<K>>(input: Input, options: RequestOptions & {
156
+ response: "full";
157
+ }): Promise<APIResponse<OperationOutput<K, Workspace, Input>> | NotModifiedResponse>;
158
+ <const Input extends OperationInput<K> = OperationInput<K>>(...args: Record<string, never> extends OperationInput<K> ? [input?: Input, options?: RequestOptions & {
159
+ response?: "data";
160
+ }] : [input: Input, options?: RequestOptions & {
161
+ response?: "data";
162
+ }]): Promise<OperationOutput<K, Workspace, Input>>;
163
+ }
164
+ interface StreamOperation<K extends keyof operations> {
165
+ (input: OperationInput<K>, options: RequestOptions & {
166
+ response: "full";
167
+ }): Promise<APIResponse<OperationOutput<K>>>;
168
+ (input: OperationInput<K>, options?: RequestOptions & {
169
+ response?: "data";
170
+ }): Promise<OperationOutput<K>>;
171
+ }
172
+ type StreamContent<K extends keyof operations> = Responses<K>[Extract<keyof Responses<K>, 200>] extends {
173
+ content: {
174
+ "text/event-stream": infer Frames;
175
+ };
176
+ } ? Frames : never;
177
+ type StreamEvent<K extends keyof operations> = Extract<StreamContent<K>, {
178
+ event: "message";
179
+ }> extends {
180
+ data: infer Event;
181
+ } ? Event : never;
182
+ type Operation<K extends keyof operations, Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> = [StreamContent<K>] extends [never] ? K extends "content.listEntries" ? ContentListOperation<Workspace> : StandardOperation<K, Workspace> : StreamOperation<K>;
183
+ type Content<T> = T extends {
184
+ content: infer C;
185
+ } ? C[keyof C] : never;
186
+ type Parameters<T, K extends string> = T extends {
187
+ parameters: infer P;
188
+ } ? K extends keyof P ? [NonNullable<P[K]>] extends [never] ? unknown : NonNullable<P[K]> : unknown : unknown;
189
+ type Body<T> = T extends {
190
+ requestBody?: infer B;
191
+ } ? [Content<NonNullable<B>>] extends [never] ? unknown : Content<NonNullable<B>> : unknown;
192
+ type OperationInput<K extends keyof operations> = WithSelectors<K, Parameters<operations[K], "path"> & Parameters<operations[K], "query"> & Body<operations[K]>>;
193
+ type Responses<K extends keyof operations> = operations[K]["responses"];
194
+ type SuccessContent<K extends keyof operations> = Content<Responses<K>[Extract<keyof Responses<K>, 200 | 201 | 202 | 203 | 206>]>;
195
+ type OperationError<K extends keyof operations> = K extends keyof operations ? Extract<Content<Responses<K>[keyof Responses<K>]>, {
196
+ defined: true;
197
+ code: string;
198
+ }> : never;
199
+ type APIErrorBody = OperationError<keyof operations>;
200
+ type APIErrorCode = APIErrorBody["code"];
201
+ type APIErrorData<C extends APIErrorCode> = Extract<APIErrorBody, {
202
+ code: C;
203
+ }>["data"];
204
+ type RawOperationOutput<K extends keyof operations> = [StreamContent<K>] extends [never] ? [SuccessContent<K>] extends [never] ? void : SuccessContent<K> : AsyncIterableIterator<StreamEvent<K>>;
205
+ type OperationOutput<K extends keyof operations, Workspace extends WorkspaceTypeMap = WorkspaceTypeMap, Input = OperationInput<K>> = K extends "content.listEntries" ? ContentListOutput<Input, Workspace> : WorkspaceOperationOutput<K, RawOperationOutput<K>, Workspace, Input>;
206
+ //#endregion
207
+ //#region src/generated/resources.d.ts
208
+ interface APIResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> {
209
+ assets: {
210
+ /**
211
+ * Search assets
212
+ *
213
+ * Finds workspace images by text or SHA-256 checksum. Semantic search defaults to true and uses 1 AI credit for a text query. Returns up to 50 results.
214
+ *
215
+ * Required API key permissions: read:entries, read:collections. Write permissions also grant read access for the same resource.
216
+ *
217
+ * @example
218
+ * await client.assets.search({
219
+ * "query": "mountains",
220
+ * "limit": 10
221
+ * });
222
+ */
223
+ search: Operation<"assets.search", Workspace>;
224
+ /**
225
+ * Import an image URL
226
+ *
227
+ * Downloads a remote image and starts processing it for the entry. With checkDuplicates, can return an existing image instead. Use assets.get to check processing status.
228
+ *
229
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
230
+ *
231
+ * @example
232
+ * await client.assets.importURL({
233
+ * "assetID": "ast_example",
234
+ * "entryID": "ent_example",
235
+ * "url": "https://example.com/image.png",
236
+ * "checkDuplicates": true
237
+ * });
238
+ */
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
+ /**
255
+ * Register an image upload
256
+ *
257
+ * Reserves an image upload for an entry. Supply the byte count and lowercase SHA-256 checksum of the file. Call assets.upload before expiresAt, then use assets.get to check processing status.
258
+ *
259
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
260
+ *
261
+ * @example
262
+ * await client.assets.register({
263
+ * "assetID": "ast_example",
264
+ * "entryID": "ent_example",
265
+ * "filename": "image.png",
266
+ * "byteSize": 1024,
267
+ * "checksum": "0000000000000000000000000000000000000000000000000000000000000000"
268
+ * });
269
+ */
270
+ register: Operation<"assets.register", Workspace>;
271
+ /**
272
+ * Upload registered image bytes
273
+ *
274
+ * Uploads a file for a registered asset with multipart/form-data. The bytes must match the registered size and checksum. Processing continues after the upload; use assets.get to check status.
275
+ *
276
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
277
+ *
278
+ * @example
279
+ * await client.assets.upload({
280
+ * "assetID": "ast_example",
281
+ * "file": new Blob([imageBytes], { type: "image/png" })
282
+ * });
283
+ */
284
+ upload: Operation<"assets.upload", Workspace>;
285
+ /**
286
+ * Get asset status and details
287
+ *
288
+ * Returns image metadata, processing status, and available files. Supply entryID when checking access through an entry.
289
+ *
290
+ * @example
291
+ * await client.assets.get({
292
+ * "assetID": "ast_example",
293
+ * "entryID": "ent_example"
294
+ * });
295
+ */
296
+ get: Operation<"assets.get", Workspace>;
297
+ };
298
+ auth: {
299
+ /**
300
+ * Get credential identity
301
+ *
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.
303
+ */
304
+ getIdentity: Operation<"auth.getIdentity", Workspace>;
305
+ };
306
+ instance: {
307
+ /**
308
+ * Get instance capabilities and limits
309
+ *
310
+ * Returns configured features and effective limits for the authenticated workspace. These values do not grant permissions or report live service health. No discovery request is made automatically by the SDK.
311
+ *
312
+ * @example
313
+ * await client.instance.get({});
314
+ */
315
+ get: Operation<"instance.get", Workspace>;
316
+ };
317
+ entries: {
318
+ /**
319
+ * Create an entry
320
+ *
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.
322
+ *
323
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
324
+ *
325
+ * @example
326
+ * await client.entries.create({
327
+ * "name": "Getting started",
328
+ * "collectionID": "coll_example"
329
+ * });
330
+ */
331
+ create: Operation<"entries.create", Workspace>;
332
+ /**
333
+ * Delete entries
334
+ *
335
+ * Soft-deletes the selected entries and clears current-entry selections for affected members. An active schema migration can block this action.
336
+ *
337
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
338
+ *
339
+ * @example
340
+ * await client.entries.bulkDelete({
341
+ * "ids": [
342
+ * "ent_example"
343
+ * ]
344
+ * });
345
+ */
346
+ bulkDelete: Operation<"entries.bulkDelete", Workspace>;
347
+ /**
348
+ * Delete an entry
349
+ *
350
+ * Soft-deletes the entry and clears current-entry selections for affected members. An active schema migration can block this action.
351
+ *
352
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
353
+ *
354
+ * @example
355
+ * await client.entries.delete({
356
+ * "id": "ent_example"
357
+ * });
358
+ */
359
+ delete: Operation<"entries.delete", Workspace>;
360
+ /**
361
+ * Rename an entry
362
+ *
363
+ * Updates the entry name. Rejects names already used by a sibling entry or collection. An active schema migration can block this action.
364
+ *
365
+ * Required API key permissions: entries. Write permissions also grant read access for the same resource.
366
+ *
367
+ * @example
368
+ * await client.entries.update({
369
+ * "id": "ent_example",
370
+ * "name": "Installation"
371
+ * });
372
+ */
373
+ update: Operation<"entries.update", Workspace>;
374
+ /**
375
+ * Get an entry
376
+ *
377
+ * Returns current entry details, fragments, properties, and recorded schema metadata. Validates content without changing it. expectedSchemaHash must match the recorded schema; schema-less content cannot match it. Use content.get to read published content.
378
+ *
379
+ * Required API key permissions: read:entries. Write permissions also grant read access for the same resource.
380
+ *
381
+ * @example
382
+ * await client.entries.get({
383
+ * "id": "ent_example"
384
+ * });
385
+ */
386
+ get: Operation<"entries.get", Workspace>;
387
+ /**
388
+ * List entries
389
+ *
390
+ * Lists entries in the selected collection, or all accessible entries when collectionID is omitted. Pass pagination.nextCursor to the next request while pagination.hasMore is true. The limit is 1 to 100 and defaults to 50.
391
+ *
392
+ * Required API key permissions: read:entries. Write permissions also grant read access for the same resource.
393
+ *
394
+ * @example
395
+ * await client.entries.list({
396
+ * "collectionID": "coll_example",
397
+ * "limit": 20
398
+ * });
399
+ */
400
+ list: Operation<"entries.list", Workspace>;
401
+ };
402
+ collections: {
403
+ /**
404
+ * Create a collection
405
+ *
406
+ * Creates a child collection. Without parentID, uses the workspace root. 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. Restricted collections require a session with restricted_collections permission and the Pro plan; API keys cannot create them.
407
+ *
408
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
409
+ *
410
+ * @example
411
+ * await client.collections.create({
412
+ * "name": "Documentation",
413
+ * "parentID": "coll_example"
414
+ * });
415
+ */
416
+ create: Operation<"collections.create", Workspace>;
417
+ /**
418
+ * Delete collection trees
419
+ *
420
+ * Soft-deletes the selected collections, their descendants, and their entries. The workspace root cannot be deleted. An active schema migration can block this action.
421
+ *
422
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
423
+ *
424
+ * @example
425
+ * await client.collections.bulkDelete({
426
+ * "ids": [
427
+ * "coll_example"
428
+ * ]
429
+ * });
430
+ */
431
+ bulkDelete: Operation<"collections.bulkDelete", Workspace>;
432
+ /**
433
+ * Delete a collection tree
434
+ *
435
+ * Soft-deletes the collection, its descendants, and their entries. The workspace root cannot be deleted. An active schema migration can block this action.
436
+ *
437
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
438
+ *
439
+ * @example
440
+ * await client.collections.delete({
441
+ * "id": "coll_example"
442
+ * });
443
+ */
444
+ delete: Operation<"collections.delete", Workspace>;
445
+ /**
446
+ * Rename a collection
447
+ *
448
+ * Updates the collection name. Rejects names already used by a sibling entry or collection. An active schema migration can block this action.
449
+ *
450
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
451
+ *
452
+ * @example
453
+ * await client.collections.update({
454
+ * "id": "coll_example",
455
+ * "name": "Guides"
456
+ * });
457
+ */
458
+ update: Operation<"collections.update", Workspace>;
459
+ /**
460
+ * List collections
461
+ *
462
+ * Lists collections under the selected ancestor. Pass pagination.nextCursor to the next request while pagination.hasMore is true. The limit is 1 to 100.
463
+ *
464
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
465
+ *
466
+ * @example
467
+ * await client.collections.list({
468
+ * "collectionID": "coll_example",
469
+ * "limit": 20
470
+ * });
471
+ */
472
+ list: Operation<"collections.list", Workspace>;
473
+ };
474
+ content: {
475
+ /**
476
+ * List published collections
477
+ *
478
+ * Returns a flat page of collections from a publication snapshot. The default channel is published. On later pages, pass the returned snapshotID and pagination.nextCursor, and omit channel. Optionally select direct children using collectionID, collectionPath, or collectionSlugPath. Results are ordered by ID, not display order.
479
+ *
480
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
481
+ *
482
+ * @example
483
+ * await client.content.listCollections({
484
+ * "channel": "published",
485
+ * "limit": 20
486
+ * });
487
+ */
488
+ listCollections: Operation<"content.listCollections", Workspace>;
489
+ /**
490
+ * List published entries
491
+ *
492
+ * Returns a flat page of entries from a publication snapshot. The default channel is published. On later pages, pass the returned snapshotID and pagination.nextCursor, and omit channel. Select direct children using collectionID, collectionPath, or collectionSlugPath, or include nested entries with descendants: true. descendants requires a collection scope. All property filters must match the assigned version. includeContent: true returns validated full content, properties, fragments, assets, and recorded schema metadata. An invalid full item fails the page. Keep the same scope and filters across pages. Results are ordered by ID, not display order.
493
+ *
494
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
495
+ *
496
+ * @example
497
+ * await client.content.listEntries({
498
+ * "channel": "published",
499
+ * "limit": 20
500
+ * });
501
+ */
502
+ listEntries: Operation<"content.listEntries", Workspace>;
503
+ /**
504
+ * Get a published entry schema
505
+ *
506
+ * Returns the exact recorded effective schema, or null for schema-less content. Uses the same publication access as content.get. Pass its snapshotID for a consistent read; use channel or snapshotID, not both.
507
+ *
508
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
509
+ *
510
+ * @example
511
+ * await client.content.getSchema({
512
+ * "entryID": "ent_example",
513
+ * "channel": "published"
514
+ * });
515
+ */
516
+ getSchema: Operation<"content.getSchema", Workspace>;
517
+ /**
518
+ * Download a published asset
519
+ *
520
+ * Returns binary image data from a publication snapshot. No API key is required. The asset must belong to the entry in that available snapshot. Use the asset URLs returned with published content.
521
+ *
522
+ * @example
523
+ * await client.content.getAsset({
524
+ * "workspaceID": "ws_example",
525
+ * "snapshotID": "snp_example",
526
+ * "entryID": "ent_example",
527
+ * "assetID": "ast_example",
528
+ * "variant": "display"
529
+ * });
530
+ */
531
+ getAsset: Operation<"content.getAsset", Workspace>;
532
+ /**
533
+ * Get published entry content
534
+ *
535
+ * Returns content from a publishing channel or a specific available snapshot. Use channel or snapshotID, never both. The default channel is published. Validates saved content against its recorded schema and returns schema metadata. expectedSchemaHash must match that revision; schema-less content cannot match it. Validation and hash checks run before ETag handling. Supports ETag and If-None-Match; a match returns 304 without a body.
536
+ *
537
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
538
+ *
539
+ * @example
540
+ * await client.content.get({
541
+ * "entryID": "ent_example",
542
+ * "channel": "published"
543
+ * });
544
+ */
545
+ get: Operation<"content.get", Workspace>;
546
+ /**
547
+ * Get a published collection tree
548
+ *
549
+ * Returns a published collection tree and its snapshot ID. Use channel or snapshotID, never both. The default channel is published. Reuse the snapshot ID for consistent content reads. Supports ETag and If-None-Match; a match returns 304 without a body.
550
+ *
551
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
552
+ *
553
+ * @example
554
+ * await client.content.getTree({
555
+ * "collectionID": "coll_example",
556
+ * "channel": "published"
557
+ * });
558
+ */
559
+ getTree: Operation<"content.getTree", Workspace>;
560
+ };
561
+ webhooks: {
562
+ /**
563
+ * List webhooks
564
+ *
565
+ * Required API key permissions: read:webhooks. Write permissions also grant read access for the same resource.
566
+ */
567
+ list: Operation<"webhooks.list", Workspace>;
568
+ /**
569
+ * Create a webhook
570
+ *
571
+ * Creates an enabled webhook unless `enabled` is false and returns the signing secret once. The caller must be able to read every resource type its events send, and restricted content when included.
572
+ *
573
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
574
+ */
575
+ create: Operation<"webhooks.create", Workspace>;
576
+ /**
577
+ * Get a webhook
578
+ *
579
+ * Required API key permissions: read:webhooks. Write permissions also grant read access for the same resource.
580
+ */
581
+ get: Operation<"webhooks.get", Workspace>;
582
+ /**
583
+ * Update a webhook
584
+ *
585
+ * Checks expectedRevision and validates the merged configuration. A URL change cancels pending deliveries and returns a replacement secret once. Scope changes require authority over the previous and new scope.
586
+ *
587
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
588
+ */
589
+ update: Operation<"webhooks.update", Workspace>;
590
+ /**
591
+ * Delete a webhook
592
+ *
593
+ * Cancels pending deliveries and destroys signing keys. Retains history until its original expiry; a deleted endpoint cannot be replayed.
594
+ *
595
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
596
+ */
597
+ delete: Operation<"webhooks.delete", Workspace>;
598
+ /**
599
+ * Enable or disable webhooks
600
+ *
601
+ * Applies the state to every listed webhook in one transaction, checking each expectedRevision. Enabling checks the scope authority and destination of each webhook. Webhooks already in the state are unchanged.
602
+ *
603
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
604
+ */
605
+ bulkSetEnabled: Operation<"webhooks.bulkSetEnabled", Workspace>;
606
+ /**
607
+ * Delete webhooks
608
+ *
609
+ * Deletes every listed webhook in one transaction, checking each expectedRevision. Each deletion cancels pending deliveries and destroys signing keys; history stays until its original expiry.
610
+ *
611
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
612
+ */
613
+ bulkDelete: Operation<"webhooks.bulkDelete", Workspace>;
614
+ /**
615
+ * Rotate a webhook secret
616
+ *
617
+ * Returns a new secret once. Overlap keeps the old secret valid for 24 hours. Immediate rotation retires it at once. Normal rotation conflicts while a previous overlap remains active.
618
+ *
619
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
620
+ */
621
+ rotateSecret: Operation<"webhooks.rotateSecret", Workspace>;
622
+ /**
623
+ * Send a webhook test
624
+ *
625
+ * Schedules one signed synthetic attempt for this endpoint, including when disabled. The event must be selected by the endpoint. It does not enable the endpoint or change content.
626
+ *
627
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
628
+ */
629
+ sendTest: Operation<"webhooks.sendTest", Workspace>;
630
+ /**
631
+ * List webhook deliveries
632
+ *
633
+ * Returns unexpired history, including for a deleted endpoint. Metadata does not include event payloads.
634
+ *
635
+ * Required API key permissions: read:webhooks. Write permissions also grant read access for the same resource.
636
+ */
637
+ listDeliveries: Operation<"webhooks.listDeliveries", Workspace>;
638
+ /**
639
+ * Get a webhook delivery
640
+ *
641
+ * Returns retained delivery metadata and, with content authority, the immutable event payload. Expired deliveries return not found even before physical cleanup.
642
+ *
643
+ * Required API key permissions: read:webhooks. Write permissions also grant read access for the same resource.
644
+ */
645
+ getDelivery: Operation<"webhooks.getDelivery", Workspace>;
646
+ /**
647
+ * List delivery runs
648
+ *
649
+ * Required API key permissions: read:webhooks. Write permissions also grant read access for the same resource.
650
+ */
651
+ listRuns: Operation<"webhooks.listRuns", Workspace>;
652
+ /**
653
+ * List delivery attempts
654
+ *
655
+ * Required API key permissions: read:webhooks. Write permissions also grant read access for the same resource.
656
+ */
657
+ listAttempts: Operation<"webhooks.listAttempts", Workspace>;
658
+ /**
659
+ * Redeliver a webhook event
660
+ *
661
+ * Checks the reviewed destination revision and current scope authority. Reuses the original event ID, payload, and expiry. Returns a conflict if a run is active, or the endpoint is disabled or deleted.
662
+ *
663
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
664
+ */
665
+ redeliver: Operation<"webhooks.redeliver", Workspace>;
666
+ /**
667
+ * Redeliver webhook events
668
+ *
669
+ * Replays every listed delivery in one transaction with the same checks as a single redelivery. Any ineligible delivery fails the whole request. Counts as one request for rate limiting.
670
+ *
671
+ * Required API key permissions: webhooks. Write permissions also grant read access for the same resource.
672
+ */
673
+ bulkRedeliver: Operation<"webhooks.bulkRedeliver", Workspace>;
674
+ };
675
+ roles: {
676
+ /**
677
+ * List roles
678
+ *
679
+ * Returns workspace roles and their permissions.
680
+ *
681
+ * Required API key permissions: read:roles. Write permissions also grant read access for the same resource.
682
+ *
683
+ * @example
684
+ * await client.roles.list({});
685
+ */
686
+ list: Operation<"roles.list", Workspace>;
687
+ /**
688
+ * Create a role
689
+ *
690
+ * Creates a workspace role. Names are unique without regard to case and must contain 1 to 50 characters after trimming. Requires the Pro plan and permission to delegate the selected permissions.
691
+ *
692
+ * Required API key permissions: roles. Write permissions also grant read access for the same resource.
693
+ *
694
+ * @example
695
+ * await client.roles.create({
696
+ * "name": "Editor",
697
+ * "permissions": [
698
+ * "content"
699
+ * ]
700
+ * });
701
+ */
702
+ create: Operation<"roles.create", Workspace>;
703
+ /**
704
+ * Update a role
705
+ *
706
+ * Changes a role name or permissions. Names are unique without regard to case. Requires the Pro plan and permission to delegate the selected permissions. Built-in roles have additional restrictions.
707
+ *
708
+ * Required API key permissions: roles. Write permissions also grant read access for the same resource.
709
+ *
710
+ * @example
711
+ * await client.roles.update({
712
+ * "id": "rl_example",
713
+ * "name": "Content editor"
714
+ * });
715
+ */
716
+ update: Operation<"roles.update", Workspace>;
717
+ /**
718
+ * Delete a role
719
+ *
720
+ * Deletes a custom role and updates its assignments. Built-in roles cannot be deleted. Requires the Pro plan.
721
+ *
722
+ * Required API key permissions: roles. Write permissions also grant read access for the same resource.
723
+ *
724
+ * @example
725
+ * await client.roles.delete({
726
+ * "id": "rl_example"
727
+ * });
728
+ */
729
+ delete: Operation<"roles.delete", Workspace>;
730
+ };
731
+ search: {
732
+ /**
733
+ * Search current content
734
+ *
735
+ * Searches current entry content by text and optional property filters. Up to 20 filters and 50 results are allowed. Semantic search is optional, uses 1 AI credit, and has a separate rate limit.
736
+ *
737
+ * Required API key permissions: read:entries, read:collections. Write permissions also grant read access for the same resource.
738
+ *
739
+ * @example
740
+ * await client.search.current({
741
+ * "query": "installation",
742
+ * "limit": 10
743
+ * });
744
+ */
745
+ current: Operation<"search.current", Workspace>;
746
+ /**
747
+ * Search published content
748
+ *
749
+ * Searches content published to the required channel. Up to 20 filters and 50 results are allowed. Semantic search is optional, uses 1 AI credit, and has a separate rate limit.
750
+ *
751
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
752
+ *
753
+ * @example
754
+ * await client.search.published({
755
+ * "query": "installation",
756
+ * "channel": "published",
757
+ * "limit": 10
758
+ * });
759
+ */
760
+ published: Operation<"search.published", Workspace>;
761
+ /**
762
+ * Ask AI about current content
763
+ *
764
+ * Returns a complete answer with numbered sources. Requires explicit ai-answers permission in addition to content read permissions. Accepts up to 1,000 question characters, 10 history messages of up to 4,000 characters each, and 20 property filters. Uses 3 AI credits and the Ask AI rate limit. Use a secret key on your server, or a publishable key for published content.
765
+ *
766
+ * Required API key permissions: ai-answers, read:entries, read:collections. Write permissions also grant read access for the same resource.
767
+ *
768
+ * @example
769
+ * await client.search.askCurrent({
770
+ * "question": "How do I install Andesine?"
771
+ * });
772
+ */
773
+ askCurrent: Operation<"search.askCurrent", Workspace>;
774
+ /**
775
+ * Ask AI about published content
776
+ *
777
+ * Returns a complete answer with numbered sources. Requires explicit ai-answers permission in addition to content read permissions. Accepts up to 1,000 question characters, 10 history messages of up to 4,000 characters each, and 20 property filters. Uses 3 AI credits and the Ask AI rate limit. Use a secret key on your server, or a publishable key for published content.
778
+ *
779
+ * Required API key permissions: ai-answers, read:publishing. Write permissions also grant read access for the same resource.
780
+ *
781
+ * @example
782
+ * await client.search.askPublished({
783
+ * "question": "How do I install Andesine?",
784
+ * "channel": "published"
785
+ * });
786
+ */
787
+ askPublished: Operation<"search.askPublished", Workspace>;
788
+ /**
789
+ * Stream an AI answer about current content
790
+ *
791
+ * Emits sources, textDelta, and completed events over SSE. Uses the same inputs, permissions, AI credits, and rate limit as complete answers. Stream errors use SSE error frames. Never reconnect automatically.
792
+ *
793
+ * Required API key permissions: ai-answers, read:entries, read:collections. Write permissions also grant read access for the same resource.
794
+ */
795
+ askCurrentStream: Operation<"search.askCurrentStream", Workspace>;
796
+ /**
797
+ * Stream an AI answer about published content
798
+ *
799
+ * Emits sources, textDelta, and completed events over SSE. Uses the same inputs, permissions, AI credits, and rate limit as complete answers. Stream errors use SSE error frames. Never reconnect automatically.
800
+ *
801
+ * Required API key permissions: ai-answers, read:publishing. Write permissions also grant read access for the same resource.
802
+ */
803
+ askPublishedStream: Operation<"search.askPublishedStream", Workspace>;
804
+ };
805
+ schemas: {
806
+ /**
807
+ * Create a local collection schema
808
+ *
809
+ * Creates a local schema draft for the collection. Use schemas.get to inspect local and effective schemas.
810
+ *
811
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
812
+ *
813
+ * @example
814
+ * await client.schemas.create({
815
+ * "collectionID": "coll_example"
816
+ * });
817
+ */
818
+ create: Operation<"schemas.create", Workspace>;
819
+ /**
820
+ * Delete a local schema
821
+ *
822
+ * Removes the local schema and recalculates inherited schemas. This can start a content migration. Review possible content removal before setting confirmedDataLoss. Use schemaMigrations.get with a returned migrationID.
823
+ *
824
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
825
+ *
826
+ * @example
827
+ * await client.schemas.delete({
828
+ * "schemaID": "sch_example",
829
+ * "confirmedDataLoss": false
830
+ * });
831
+ */
832
+ delete: Operation<"schemas.delete", Workspace>;
833
+ /**
834
+ * Get an exact schema revision
835
+ *
836
+ * Returns the recorded effective definition, including inherited fields. Requires read access to the revision's collection. The definition is independent of the currently active schema.
837
+ *
838
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
839
+ *
840
+ * @example
841
+ * await client.schemas.getRevision({
842
+ * "revisionID": "schr_example"
843
+ * });
844
+ */
845
+ getRevision: Operation<"schemas.getRevision", Workspace>;
846
+ /**
847
+ * Get collection schemas
848
+ *
849
+ * Returns local and effective schema details for the collection, including inheritance.
850
+ *
851
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
852
+ *
853
+ * @example
854
+ * await client.schemas.get({
855
+ * "collectionID": "coll_example"
856
+ * });
857
+ */
858
+ get: Operation<"schemas.get", Workspace>;
859
+ /**
860
+ * Apply a schema draft
861
+ *
862
+ * Creates a schema version from the draft and starts any required migration of affected entry content. Review possible content removal before calling: confirmedDataLoss must be true. Use schemaMigrations.get to follow a returned migrationID.
863
+ *
864
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
865
+ *
866
+ * @example
867
+ * await client.schemas.apply({
868
+ * "schemaID": "sch_example",
869
+ * "confirmedDataLoss": true,
870
+ * "name": "Reviewed schema"
871
+ * });
872
+ */
873
+ apply: Operation<"schemas.apply", Workspace>;
874
+ };
875
+ schemaMigrations: {
876
+ /**
877
+ * List entries with migration content loss
878
+ *
879
+ * Lists accessible, non-deleted entries that lost content in a completed migration. Returns an empty page until completion. Use pagination.nextCursor to continue.
880
+ *
881
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
882
+ *
883
+ * @example
884
+ * await client.schemaMigrations.listContentLossEntries({
885
+ * "id": "smg_example",
886
+ * "limit": 20
887
+ * });
888
+ */
889
+ listContentLossEntries: Operation<"schemaMigrations.listContentLossEntries", Workspace>;
890
+ /**
891
+ * Get the active schema migration
892
+ *
893
+ * Returns the active migration for a collection, or null when none is active.
894
+ *
895
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
896
+ *
897
+ * @example
898
+ * await client.schemaMigrations.getActive({
899
+ * "collectionID": "coll_example"
900
+ * });
901
+ */
902
+ getActive: Operation<"schemaMigrations.getActive", Workspace>;
903
+ /**
904
+ * Get schema migration status
905
+ *
906
+ * Returns bounded migration progress and status. Use schemaMigrations.listContentLossEntries for per-entry content loss details. Check status before repeating an operation blocked by this migration.
907
+ *
908
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
909
+ *
910
+ * @example
911
+ * await client.schemaMigrations.get({
912
+ * "id": "smg_example"
913
+ * });
914
+ */
915
+ get: Operation<"schemaMigrations.get", Workspace>;
916
+ };
917
+ schemaVersions: {
918
+ /**
919
+ * List schema versions
920
+ *
921
+ * Lists versions of a local collection schema. Pass pagination.nextCursor to the next request while pagination.hasMore is true. The limit is 1 to 100.
922
+ *
923
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
924
+ *
925
+ * @example
926
+ * await client.schemaVersions.list({
927
+ * "schemaID": "sch_example",
928
+ * "limit": 20
929
+ * });
930
+ */
931
+ list: Operation<"schemaVersions.list", Workspace>;
932
+ /**
933
+ * Get a schema version
934
+ *
935
+ * Returns a saved schema version and its definition.
936
+ *
937
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
938
+ *
939
+ * @example
940
+ * await client.schemaVersions.get({
941
+ * "id": "schv_example"
942
+ * });
943
+ */
944
+ get: Operation<"schemaVersions.get", Workspace>;
945
+ /**
946
+ * Rename a schema version
947
+ *
948
+ * Changes the saved version name. Set name to null to remove the name.
949
+ *
950
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
951
+ *
952
+ * @example
953
+ * await client.schemaVersions.update({
954
+ * "id": "schv_example",
955
+ * "name": "Reviewed schema"
956
+ * });
957
+ */
958
+ update: Operation<"schemaVersions.update", Workspace>;
959
+ /**
960
+ * Restore a schema version
961
+ *
962
+ * Restores the selected definition and starts any required content migration. Review possible content removal before calling: confirmedDataLoss must be true. Use schemaMigrations.get to follow a returned migrationID.
963
+ *
964
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
965
+ *
966
+ * @example
967
+ * await client.schemaVersions.revert({
968
+ * "id": "schv_example",
969
+ * "confirmedDataLoss": true
970
+ * });
971
+ */
972
+ revert: Operation<"schemaVersions.revert", Workspace>;
973
+ };
974
+ memberships: {
975
+ /**
976
+ * List workspace members
977
+ *
978
+ * Lists workspace memberships with role and user details. Use pagination.nextCursor to continue with the same filters; concurrent changes can affect later pages.
979
+ *
980
+ * Required API key permissions: read:memberships. Write permissions also grant read access for the same resource.
981
+ *
982
+ * @example
983
+ * await client.memberships.list({});
984
+ */
985
+ list: Operation<"memberships.list", Workspace>;
986
+ /**
987
+ * Invite a workspace member
988
+ *
989
+ * Creates an invitation and attempts email delivery. Check emailDelivery in the result. Requires the Pro plan and permission to delegate the selected role. Existing membership or pending invitation returns a conflict.
990
+ *
991
+ * Required API key permissions: memberships. Write permissions also grant read access for the same resource.
992
+ *
993
+ * @example
994
+ * await client.memberships.invite({
995
+ * "email": "editor@example.com",
996
+ * "roleID": "rl_example"
997
+ * });
998
+ */
999
+ invite: Operation<"memberships.invite", Workspace>;
1000
+ /**
1001
+ * Change a member role
1002
+ *
1003
+ * Assigns a new role to a member. Requires the Pro plan and permission to delegate that role. Administrator assignments have additional restrictions.
1004
+ *
1005
+ * Required API key permissions: memberships. Write permissions also grant read access for the same resource.
1006
+ *
1007
+ * @example
1008
+ * await client.memberships.update({
1009
+ * "id": "ms_example",
1010
+ * "roleID": "rl_example"
1011
+ * });
1012
+ */
1013
+ update: Operation<"memberships.update", Workspace>;
1014
+ /**
1015
+ * Remove a workspace member
1016
+ *
1017
+ * Removes the membership and its workspace access. Administrator memberships have additional restrictions.
1018
+ *
1019
+ * Required API key permissions: memberships. Write permissions also grant read access for the same resource.
1020
+ *
1021
+ * @example
1022
+ * await client.memberships.remove({
1023
+ * "id": "ms_example"
1024
+ * });
1025
+ */
1026
+ remove: Operation<"memberships.remove", Workspace>;
1027
+ /**
1028
+ * List invitations
1029
+ *
1030
+ * Lists pending, unexpired workspace invitations. Use pagination.nextCursor to continue. Requires the Pro plan.
1031
+ *
1032
+ * Required API key permissions: memberships. Write permissions also grant read access for the same resource.
1033
+ *
1034
+ * @example
1035
+ * await client.memberships.listInvites({});
1036
+ */
1037
+ listInvites: Operation<"memberships.listInvites", Workspace>;
1038
+ /**
1039
+ * Resend an invitation
1040
+ *
1041
+ * Attempts email delivery again for a pending invitation. Check emailDelivery in the result. Requires the Pro plan.
1042
+ *
1043
+ * Required API key permissions: memberships. Write permissions also grant read access for the same resource.
1044
+ *
1045
+ * @example
1046
+ * await client.memberships.resendInvite({
1047
+ * "id": "inv_example"
1048
+ * });
1049
+ */
1050
+ resendInvite: Operation<"memberships.resendInvite", Workspace>;
1051
+ /**
1052
+ * Revoke an invitation
1053
+ *
1054
+ * Revokes a pending invitation so it can no longer be accepted. Requires the Pro plan.
1055
+ *
1056
+ * Required API key permissions: memberships. Write permissions also grant read access for the same resource.
1057
+ *
1058
+ * @example
1059
+ * await client.memberships.revokeInvite({
1060
+ * "id": "inv_example"
1061
+ * });
1062
+ */
1063
+ revokeInvite: Operation<"memberships.revokeInvite", Workspace>;
1064
+ };
1065
+ publishing: {
1066
+ /**
1067
+ * Configure collection publishing
1068
+ *
1069
+ * Enables publishing for a collection, or disables it and unpublishes its tree from all channels. When enabling, publish can also publish the latest entry versions.
1070
+ *
1071
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1072
+ *
1073
+ * @example
1074
+ * await client.publishing.setCollection({
1075
+ * "collectionID": "coll_example",
1076
+ * "enabled": true,
1077
+ * "publish": false
1078
+ * });
1079
+ */
1080
+ setCollection: Operation<"publishing.setCollection", Workspace>;
1081
+ /**
1082
+ * Publish a collection tree
1083
+ *
1084
+ * Publishes the latest entry versions in a publishing-enabled collection tree to the channel. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1085
+ *
1086
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1087
+ *
1088
+ * @example
1089
+ * await client.publishing.publishCollection({
1090
+ * "collectionID": "coll_example",
1091
+ * "channel": "published"
1092
+ * });
1093
+ */
1094
+ publishCollection: Operation<"publishing.publishCollection", Workspace>;
1095
+ /**
1096
+ * Unpublish a collection tree
1097
+ *
1098
+ * Removes publication assignments for a collection tree from the channel. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1099
+ *
1100
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1101
+ *
1102
+ * @example
1103
+ * await client.publishing.unpublishCollection({
1104
+ * "collectionID": "coll_example",
1105
+ * "channel": "published"
1106
+ * });
1107
+ */
1108
+ unpublishCollection: Operation<"publishing.unpublishCollection", Workspace>;
1109
+ /**
1110
+ * Configure publishing for collections
1111
+ *
1112
+ * Enables publishing for the selected collections, or disables it and unpublishes their trees from all channels. When enabling, publish can also publish the latest entry versions.
1113
+ *
1114
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1115
+ *
1116
+ * @example
1117
+ * await client.publishing.bulkSetCollections({
1118
+ * "ids": [
1119
+ * "coll_example"
1120
+ * ],
1121
+ * "enabled": true,
1122
+ * "publish": false
1123
+ * });
1124
+ */
1125
+ bulkSetCollections: Operation<"publishing.bulkSetCollections", Workspace>;
1126
+ /**
1127
+ * Publish collection trees
1128
+ *
1129
+ * Publishes the latest entry versions in the selected publishing-enabled collection trees. At least one ID is required. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1130
+ *
1131
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1132
+ *
1133
+ * @example
1134
+ * await client.publishing.bulkPublishCollections({
1135
+ * "ids": [
1136
+ * "coll_example"
1137
+ * ],
1138
+ * "channel": "published"
1139
+ * });
1140
+ */
1141
+ bulkPublishCollections: Operation<"publishing.bulkPublishCollections", Workspace>;
1142
+ /**
1143
+ * Unpublish collection trees
1144
+ *
1145
+ * Removes publication assignments for the selected collection trees from the channel. At least one ID is required. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1146
+ *
1147
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1148
+ *
1149
+ * @example
1150
+ * await client.publishing.bulkUnpublishCollections({
1151
+ * "ids": [
1152
+ * "coll_example"
1153
+ * ],
1154
+ * "channel": "published"
1155
+ * });
1156
+ */
1157
+ bulkUnpublishCollections: Operation<"publishing.bulkUnpublishCollections", Workspace>;
1158
+ /**
1159
+ * Publish an entry
1160
+ *
1161
+ * Publishes an existing version, or the latest entry content if versionID is omitted. The entry must be in a publishing-enabled collection. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1162
+ *
1163
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1164
+ *
1165
+ * @example
1166
+ * await client.publishing.publishEntry({
1167
+ * "entryID": "ent_example",
1168
+ * "channel": "published"
1169
+ * });
1170
+ */
1171
+ publishEntry: Operation<"publishing.publishEntry", Workspace>;
1172
+ /**
1173
+ * Unpublish an entry
1174
+ *
1175
+ * Removes the entry publication from the channel. Supply versionID to require that version to be assigned; a changed assignment returns a conflict. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1176
+ *
1177
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1178
+ *
1179
+ * @example
1180
+ * await client.publishing.unpublishEntry({
1181
+ * "entryID": "ent_example",
1182
+ * "channel": "published",
1183
+ * "versionID": "ver_example"
1184
+ * });
1185
+ */
1186
+ unpublishEntry: Operation<"publishing.unpublishEntry", Workspace>;
1187
+ /**
1188
+ * Publish entries
1189
+ *
1190
+ * Publishes the selected entries with optional version IDs. Entries must be in publishing-enabled collections. At least one entry is required. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1191
+ *
1192
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1193
+ *
1194
+ * @example
1195
+ * await client.publishing.bulkPublishEntries({
1196
+ * "entries": [
1197
+ * {
1198
+ * "entryID": "ent_example"
1199
+ * }
1200
+ * ],
1201
+ * "channel": "published"
1202
+ * });
1203
+ */
1204
+ bulkPublishEntries: Operation<"publishing.bulkPublishEntries", Workspace>;
1205
+ /**
1206
+ * Unpublish entries
1207
+ *
1208
+ * Removes publication assignments for the selected entries from the channel. At least one ID is required. The default channel is published. Supply expectedSnapshotID from a prior channel read to reject concurrent publication changes.
1209
+ *
1210
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1211
+ *
1212
+ * @example
1213
+ * await client.publishing.bulkUnpublishEntries({
1214
+ * "ids": [
1215
+ * "ent_example"
1216
+ * ],
1217
+ * "channel": "published"
1218
+ * });
1219
+ */
1220
+ bulkUnpublishEntries: Operation<"publishing.bulkUnpublishEntries", Workspace>;
1221
+ /**
1222
+ * Revert pending publishing changes
1223
+ *
1224
+ * Restores selected drafts to the reviewed publication snapshot. This can remove unpublished items and replace draft content. First review publishing.getChannelContent and pass its snapshotID. Use all: true or specific collectionIDs/entryIDs, never both. Requires write access to affected resources in addition to read:publishing.
1225
+ *
1226
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
1227
+ *
1228
+ * @example
1229
+ * await client.publishing.revertChanges({
1230
+ * "collectionID": "coll_example",
1231
+ * "snapshotID": "snp_example",
1232
+ * "entryIDs": [
1233
+ * "ent_example"
1234
+ * ],
1235
+ * "channel": "published"
1236
+ * });
1237
+ */
1238
+ revertChanges: Operation<"publishing.revertChanges", Workspace>;
1239
+ /**
1240
+ * Get a published entry version
1241
+ *
1242
+ * Returns the entry version assigned to a channel, or to an explicit available snapshot, with its recorded schema metadata. Validates content against that revision. expectedSchemaHash must match it; schema-less content cannot match it. The default channel is published.
1243
+ *
1244
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
1245
+ *
1246
+ * @example
1247
+ * await client.publishing.getEntryVersion({
1248
+ * "entryID": "ent_example",
1249
+ * "channel": "published"
1250
+ * });
1251
+ */
1252
+ getEntryVersion: Operation<"publishing.getEntryVersion", Workspace>;
1253
+ /**
1254
+ * List entry publications
1255
+ *
1256
+ * Returns the entry publication assignments across channels.
1257
+ *
1258
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
1259
+ *
1260
+ * @example
1261
+ * await client.publishing.listEntryPublications({
1262
+ * "entryID": "ent_example"
1263
+ * });
1264
+ */
1265
+ listEntryPublications: Operation<"publishing.listEntryPublications", Workspace>;
1266
+ /**
1267
+ * List publishing channels
1268
+ *
1269
+ * Returns workspace publishing channels. Set includeAssignmentCount to include entry assignment counts.
1270
+ *
1271
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
1272
+ *
1273
+ * @example
1274
+ * await client.publishing.listChannels({
1275
+ * "includeAssignmentCount": true
1276
+ * });
1277
+ */
1278
+ listChannels: Operation<"publishing.listChannels", Workspace>;
1279
+ /**
1280
+ * Create a publishing channel
1281
+ *
1282
+ * Creates a publishing channel from its display name and returns the generated channel code.
1283
+ *
1284
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1285
+ *
1286
+ * @example
1287
+ * await client.publishing.createChannel({
1288
+ * "name": "Preview"
1289
+ * });
1290
+ */
1291
+ createChannel: Operation<"publishing.createChannel", Workspace>;
1292
+ /**
1293
+ * Get channel content and pending changes
1294
+ *
1295
+ * Returns publication state and pending changes for a publishing root, with the snapshot ID needed to review and revert changes.
1296
+ *
1297
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
1298
+ *
1299
+ * @example
1300
+ * await client.publishing.getChannelContent({
1301
+ * "channel": "published",
1302
+ * "collectionID": "coll_example"
1303
+ * });
1304
+ */
1305
+ getChannelContent: Operation<"publishing.getChannelContent", Workspace>;
1306
+ /**
1307
+ * Delete a publishing channel
1308
+ *
1309
+ * Deletes a custom channel and its publication assignments. The default published channel cannot be deleted.
1310
+ *
1311
+ * Required API key permissions: publishing. Write permissions also grant read access for the same resource.
1312
+ *
1313
+ * @example
1314
+ * await client.publishing.deleteChannel({
1315
+ * "code": "preview"
1316
+ * });
1317
+ */
1318
+ deleteChannel: Operation<"publishing.deleteChannel", Workspace>;
1319
+ };
1320
+ workspaces: {
1321
+ /**
1322
+ * List available workspaces
1323
+ *
1324
+ * Lists workspaces available to the OAuth user, with current role permissions and plan access. Browser sessions can list workspaces across signed-in accounts. Does not require workspace selection and does not count toward API usage.
1325
+ */
1326
+ list: Operation<"workspaces.list", Workspace>;
1327
+ };
1328
+ versions: {
1329
+ /**
1330
+ * Create an entry version
1331
+ *
1332
+ * Saves a version of the current entry content. Optionally assigns a name.
1333
+ *
1334
+ * Required API key permissions: versions. Write permissions also grant read access for the same resource.
1335
+ *
1336
+ * @example
1337
+ * await client.versions.create({
1338
+ * "entryID": "ent_example",
1339
+ * "name": "Before release"
1340
+ * });
1341
+ */
1342
+ create: Operation<"versions.create", Workspace>;
1343
+ /**
1344
+ * List entry versions
1345
+ *
1346
+ * Lists saved entry versions. Pass pagination.nextCursor to the next request while pagination.hasMore is true. The limit is 1 to 100.
1347
+ *
1348
+ * Required API key permissions: read:versions. Write permissions also grant read access for the same resource.
1349
+ *
1350
+ * @example
1351
+ * await client.versions.list({
1352
+ * "entryID": "ent_example",
1353
+ * "limit": 20
1354
+ * });
1355
+ */
1356
+ list: Operation<"versions.list", Workspace>;
1357
+ /**
1358
+ * Get an entry version
1359
+ *
1360
+ * Returns the saved content and recorded schema metadata of an entry version. Validates against its recorded revision, including historical versions. expectedSchemaHash must match that revision; schema-less content cannot match it.
1361
+ *
1362
+ * Required API key permissions: read:versions. Write permissions also grant read access for the same resource.
1363
+ *
1364
+ * @example
1365
+ * await client.versions.get({
1366
+ * "id": "ver_example"
1367
+ * });
1368
+ */
1369
+ get: Operation<"versions.get", Workspace>;
1370
+ /**
1371
+ * Rename an entry version
1372
+ *
1373
+ * Changes the saved version name. Set name to null to remove the name.
1374
+ *
1375
+ * Required API key permissions: versions. Write permissions also grant read access for the same resource.
1376
+ *
1377
+ * @example
1378
+ * await client.versions.update({
1379
+ * "id": "ver_example",
1380
+ * "name": "Release candidate"
1381
+ * });
1382
+ */
1383
+ update: Operation<"versions.update", Workspace>;
1384
+ /**
1385
+ * Restore an entry version
1386
+ *
1387
+ * Restores saved content to the current entry and returns the resulting version. An active schema migration can block this action.
1388
+ *
1389
+ * Required API key permissions: versions. Write permissions also grant read access for the same resource.
1390
+ *
1391
+ * @example
1392
+ * await client.versions.revert({
1393
+ * "id": "ver_example"
1394
+ * });
1395
+ */
1396
+ revert: Operation<"versions.revert", Workspace>;
1397
+ };
1398
+ typeMetadata: {
1399
+ /**
1400
+ * Get current content type metadata
1401
+ *
1402
+ * Read-only bulk metadata for type generation. Returns one consistent database snapshot of accessible collections and their active effective schemas, including inheritance. Optional entry/tree data requires read:entries in addition to read:collections. Explicit unavailable collection selectors fail. Active schema migrations in the selected collections return a conflict. No entry content is loaded. Schema-free collections use general types without warnings.
1403
+ *
1404
+ * Required API key permissions: read:collections. Write permissions also grant read access for the same resource.
1405
+ *
1406
+ * @example
1407
+ * await client.typeMetadata.getCurrent({
1408
+ * "collections": [
1409
+ * "/Tutorials"
1410
+ * ],
1411
+ * "includeEntries": false
1412
+ * });
1413
+ */
1414
+ getCurrent: Operation<"typeMetadata.getCurrent", Workspace>;
1415
+ /**
1416
+ * Get published content type metadata
1417
+ *
1418
+ * Read-only bulk metadata for type generation. Resolves a channel once (published by default), or reads a retained snapshot. Uses publication paths, names, and exact entry-version schema revisions; never substitutes current schemas. Supports mixed revisions and schema-free entries. Empty collections use general types without warnings. Includes selected subtrees; no selectors means all published collections and root entries. Publication-access rules match content.get. No entry content is loaded. Reuse source.snapshotID for related reads. The fingerprint changes only when returned type metadata changes, not when content-only publication creates a new snapshot.
1419
+ *
1420
+ * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
1421
+ *
1422
+ * @example
1423
+ * await client.typeMetadata.getPublished({
1424
+ * "channel": "published",
1425
+ * "collections": [
1426
+ * "/Tutorials"
1427
+ * ]
1428
+ * });
1429
+ */
1430
+ getPublished: Operation<"typeMetadata.getPublished", Workspace>;
1431
+ };
1432
+ }
1433
+ //#endregion
1434
+ //#region src/content-client.d.ts
1435
+ interface ContentClient<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> extends ContentResources<Workspace> {
1436
+ /**
1437
+ * Iterate published entries, automatically keeping the first page's snapshot.
1438
+ *
1439
+ * @param input - List scope, filters, and page size. Set includeContent to true for full entries.
1440
+ * To resume, supply both cursor and snapshotID, or use a client from atSnapshot().
1441
+ * @param options - Options for each request. The timeout applies to each page separately.
1442
+ * @returns A lazy iterator in API order. Breaking the loop prevents further requests.
1443
+ * @throws API errors without switching to a newer snapshot, including expired snapshots.
1444
+ * @example
1445
+ * for await (const entry of client.content.paginateEntries({
1446
+ * collectionPath: "/Tutorials", includeContent: true
1447
+ * })) console.log(entry.properties);
1448
+ */
1449
+ paginateEntries<const Input extends EntryListInput = Record<string, never>>(input?: Input, options?: ContentPaginationOptions): AsyncGenerator<ContentListOutput<Input, Workspace>["data"][number]>;
1450
+ /**
1451
+ * Iterate entry pages while retaining snapshot metadata and resume cursors.
1452
+ *
1453
+ * The first response selects the snapshot; later requests omit channel and reuse that snapshot.
1454
+ * Scope and filters are reused for every page. An existing atSnapshot() binding is respected.
1455
+ * @param input - List options. Resuming requires cursor and its snapshot, with the same filters.
1456
+ * @param options - Per-page request options, including cancellation and timeout.
1457
+ * @returns Lazy pages with includeContent-dependent item types and snapshot metadata.
1458
+ * @throws API errors or an error for a missing/repeated cursor or changed response snapshot.
1459
+ */
1460
+ paginateEntryPages<const Input extends EntryListInput = Record<string, never>>(input?: Input, options?: ContentPaginationOptions): AsyncGenerator<ContentListOutput<Input, Workspace>>;
1461
+ /**
1462
+ * Iterate published collections using the first page's snapshot for all later pages.
1463
+ *
1464
+ * @param input - Collection scope and page size. To resume, supply cursor and its snapshot.
1465
+ * @param options - Per-page request options. Break the loop to stop requesting pages.
1466
+ * @returns A lazy iterator of collection summaries in API order.
1467
+ * @throws API and pagination errors; unavailable snapshots are never replaced automatically.
1468
+ */
1469
+ paginateCollections(input?: OperationInput<"content.listCollections">, options?: ContentPaginationOptions): AsyncGenerator<OperationOutput<"content.listCollections">["data"][number]>;
1470
+ /**
1471
+ * Iterate collection pages with snapshot metadata and resume cursors.
1472
+ *
1473
+ * @param input - List options. Use the same scope and snapshot when resuming a cursor.
1474
+ * @param options - Options applied to each request, including cancellation and timeout.
1475
+ * @returns Lazy pages pinned to the first response's snapshot or the atSnapshot() binding.
1476
+ * @throws API errors or an error for a missing/repeated cursor or changed response snapshot.
1477
+ */
1478
+ paginateCollectionPages(input?: OperationInput<"content.listCollections">, options?: ContentPaginationOptions): AsyncGenerator<OperationOutput<"content.listCollections">>;
1479
+ }
1480
+ type ContentResources<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> = APIResources<Workspace>["content"];
1481
+ type EntryListInput = OperationInput<"content.listEntries">;
1482
+ type ContentPaginationOptions = RequestOptions & {
1483
+ response?: "data";
1484
+ };
1485
+ //#endregion
1486
+ //#region src/client.d.ts
1487
+ interface AndesineClient<Workspace extends WorkspaceTypeMap = WorkspaceTypeMap> extends APIResources<Workspace> {
1488
+ content: ContentClient<Workspace>;
1489
+ /**
1490
+ * Bind published-content reads and pagination to an existing snapshot.
1491
+ * @param snapshotID - Snapshot ID returned by a published-content response.
1492
+ * @returns Content methods, including snapshot-aware entry and collection iterators.
1493
+ * No request is made until a method is called or an iterator is consumed.
1494
+ * @throws TypeError if a later request supplies a channel or a different snapshot ID.
1495
+ */
1496
+ atSnapshot(snapshotID: string): ContentClient<Workspace>;
1497
+ }
1498
+ interface ClientOptions {
1499
+ /** HTTP(S) API root, including any deployment prefix. Defaults to https://api.andesine.app. */
1500
+ baseURL?: string;
1501
+ /**
1502
+ * Bearer API key. Defaults to process.env.ANDESINE_API_KEY when available, read at creation.
1503
+ * Pass an empty string to disable this fallback. Keep private keys on your server;
1504
+ * the key is omitted on anonymous operations.
1505
+ */
1506
+ apiKey?: string;
1507
+ /** OAuth access token. Disables the API-key environment fallback. Cannot be combined with apiKey.
1508
+ * Supply x-workspace-id through headers for workspace operations. The SDK does not refresh tokens.
1509
+ */
1510
+ accessToken?: string;
1511
+ /** Fetch implementation to use instead of globalThis.fetch. */
1512
+ fetch?: typeof fetch;
1513
+ /** Default headers. Request headers override these; the configured credential supplies Authorization. */
1514
+ headers?: HeadersInit;
1515
+ /** Timeout in milliseconds, including stream consumption. Defaults to 30,000; 0 disables it. */
1516
+ timeout?: number;
1517
+ /** Extra attempts for eligible GET failures. Defaults to 0. Other methods are never retried. */
1518
+ retries?: number;
1519
+ }
1520
+ /**
1521
+ * Create a typed API client for a hosted or self-hosted Andesine instance.
1522
+ *
1523
+ * Methods return response data by default. Use response: "full" for status and headers,
1524
+ * including conditional reads that can return 304. Creation does not make a request.
1525
+ * An optional Workspace type map narrows known content selectors at compile time only.
1526
+ * It does not choose credentials, a workspace, a channel, or a snapshot, or check response schemas.
1527
+ * @param config - Optional API root, credentials, transport, and request defaults.
1528
+ * Defaults to https://api.andesine.app and process.env.ANDESINE_API_KEY when available.
1529
+ * Runtimes without process.env use no default key. No environment files are loaded.
1530
+ * @returns API resources and helpers for published-content snapshots and pagination.
1531
+ * @throws TypeError if both credential options are set, or if baseURL is not HTTP(S) or includes credentials, a query, or a fragment.
1532
+ * Request failures throw AndesineAPIError; abort and timeout reasons are preserved.
1533
+ * @example
1534
+ * const client = createClient();
1535
+ * const page = await client.content.get({ path: "/Docs/Welcome" });
1536
+ */
1537
+ declare const createClient: <Workspace extends WorkspaceTypeMap = WorkspaceTypeMap>(config?: ClientOptions) => AndesineClient<Workspace>;
1538
+ //#endregion
1539
+ //#region src/content-url.d.ts
1540
+ /** A decoded canonical path, optionally with a decoded heading anchor. */
1541
+ interface ContentLocation {
1542
+ path: string;
1543
+ /** Authoritative derived path returned by the API, including ID fallbacks. */
1544
+ slugPath?: string;
1545
+ anchor?: string;
1546
+ }
1547
+ interface ContentURLOptions {
1548
+ /** Use derived slugs (default), or percent-encoded original names. */
1549
+ format?: "slug" | "name";
1550
+ /** Decoded collection prefix to remove, matched on whole segments. Defaults to "/". */
1551
+ rootPath?: string;
1552
+ /**
1553
+ * Destination root: a root-relative URL such as "/docs", or an absolute HTTP(S) URL.
1554
+ * Its pathname is retained as a prefix. Queries, fragments, and credentials are not allowed.
1555
+ * Defaults to "/". Supply this as a URL; its pathname may already be percent-encoded.
1556
+ */
1557
+ baseURL?: string;
1558
+ }
1559
+ /**
1560
+ * Convert a canonical Andesine path or search/citation location to a website URL.
1561
+ *
1562
+ * Uses the API slugPath when supplied, or derives slugs from decoded names.
1563
+ * Set format to "name" to preserve names. Heading anchors are encoded without slug conversion.
1564
+ * This is a pure function: it does not resolve IDs, fetch content, or pin a snapshot.
1565
+ * @param source - An absolute decoded path, or an API location with path, slugPath, and optional anchor.
1566
+ * Collection-ID-relative selectors must first be resolved through the API to a canonical path.
1567
+ * @param options - Source collection root and destination URL prefix.
1568
+ * @returns A root-relative URL by default, or an absolute URL when baseURL is absolute.
1569
+ * The source root itself maps to the destination root without adding a trailing slash.
1570
+ * @throws TypeError for invalid paths, a source outside rootPath, an invalid baseURL,
1571
+ * or a symbol-only name without an API slugPath. Pass the API object for ID fallbacks.
1572
+ * @example
1573
+ * toContentURL({ path: "/Docs/Getting started", anchor: "install" }, {
1574
+ * rootPath: "/Docs", baseURL: "/docs"
1575
+ * }); // "/docs/getting-started#install"
1576
+ */
1577
+ declare const toContentURL: (source: string | ContentLocation, options?: ContentURLOptions) => string;
1578
+ //#endregion
1579
+ //#region src/error.d.ts
1580
+ /** An HTTP API failure with its response, error code, contract data, and suggested next steps. */
1581
+ declare class AndesineAPIError extends Error {
1582
+ readonly defined: boolean;
1583
+ readonly status: number;
1584
+ readonly code: string;
1585
+ readonly data: unknown;
1586
+ readonly response: Response;
1587
+ /**
1588
+ * @param response - Failed Fetch response, retained for status and headers such as Retry-After.
1589
+ * @param body - Parsed error envelope, or the original body for an unrecognized error format.
1590
+ */
1591
+ constructor(response: Response, body: unknown);
1592
+ /**
1593
+ * Check and narrow the code and data of an error declared by the API contract.
1594
+ * @param code - Contract error code to match.
1595
+ * @returns True only when the API marks the error as defined and its code matches.
1596
+ */
1597
+ is<C extends APIErrorCode>(code: C): this is this & {
1598
+ defined: true;
1599
+ code: C;
1600
+ data: APIErrorData<C>;
1601
+ };
1602
+ /** Suggested next steps. Do not use the wording for program logic. */
1603
+ get hints(): string[];
1604
+ }
1605
+ /** An API error frame received after SSE headers. status is the frame status, not HTTP 200. */
1606
+ declare class AndesineStreamError extends AndesineAPIError {
1607
+ readonly status: number;
1608
+ /**
1609
+ * @param response - Original SSE response; response.status retains its actual HTTP status.
1610
+ * @param body - Parsed error frame. Its numeric status overrides the HTTP status on this error.
1611
+ */
1612
+ constructor(response: Response, body: unknown);
1613
+ }
1614
+ /** A local invalid/incomplete stream failure. It does not invent an API error or HTTP status. */
1615
+ declare class AndesineStreamProtocolError extends Error {
1616
+ readonly code: "INVALID_STREAM" | "INCOMPLETE_STREAM";
1617
+ readonly response: Response;
1618
+ /**
1619
+ * @param code - INVALID_STREAM for malformed events; INCOMPLETE_STREAM for missing completion.
1620
+ * @param response - Original SSE response for inspection.
1621
+ * @param message - Description of the protocol failure.
1622
+ * @param options - Optional underlying cause.
1623
+ */
1624
+ constructor(code: "INVALID_STREAM" | "INCOMPLETE_STREAM", response: Response, message: string, options?: ErrorOptions);
1625
+ }
1626
+ declare namespace types_d_exports {
1627
+ 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, 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 };
1628
+ }
1629
+ type AssetsAttachError = OperationError<"assets.attach">;
1630
+ type AssetsAttachInput = OperationInput<"assets.attach">;
1631
+ type AssetsAttachOutput = OperationOutput<"assets.attach">;
1632
+ type AssetsGetError = OperationError<"assets.get">;
1633
+ type AssetsGetInput = OperationInput<"assets.get">;
1634
+ type AssetsGetOutput = OperationOutput<"assets.get">;
1635
+ type AssetsImportURLError = OperationError<"assets.importURL">;
1636
+ type AssetsImportURLInput = OperationInput<"assets.importURL">;
1637
+ type AssetsImportURLOutput = OperationOutput<"assets.importURL">;
1638
+ type AssetsRegisterError = OperationError<"assets.register">;
1639
+ type AssetsRegisterInput = OperationInput<"assets.register">;
1640
+ type AssetsRegisterOutput = OperationOutput<"assets.register">;
1641
+ type AssetsSearchError = OperationError<"assets.search">;
1642
+ type AssetsSearchInput = OperationInput<"assets.search">;
1643
+ type AssetsSearchOutput = OperationOutput<"assets.search">;
1644
+ type AssetsUploadError = OperationError<"assets.upload">;
1645
+ type AssetsUploadInput = OperationInput<"assets.upload">;
1646
+ type AssetsUploadOutput = OperationOutput<"assets.upload">;
1647
+ type AuthGetIdentityError = OperationError<"auth.getIdentity">;
1648
+ type AuthGetIdentityInput = OperationInput<"auth.getIdentity">;
1649
+ type AuthGetIdentityOutput = OperationOutput<"auth.getIdentity">;
1650
+ type CollectionsBulkDeleteError = OperationError<"collections.bulkDelete">;
1651
+ type CollectionsBulkDeleteInput = OperationInput<"collections.bulkDelete">;
1652
+ type CollectionsBulkDeleteOutput = OperationOutput<"collections.bulkDelete">;
1653
+ type CollectionsCreateError = OperationError<"collections.create">;
1654
+ type CollectionsCreateInput = OperationInput<"collections.create">;
1655
+ type CollectionsCreateOutput = OperationOutput<"collections.create">;
1656
+ type CollectionsDeleteError = OperationError<"collections.delete">;
1657
+ type CollectionsDeleteInput = OperationInput<"collections.delete">;
1658
+ type CollectionsDeleteOutput = OperationOutput<"collections.delete">;
1659
+ type CollectionsListError = OperationError<"collections.list">;
1660
+ type CollectionsListInput = OperationInput<"collections.list">;
1661
+ type CollectionsListOutput = OperationOutput<"collections.list">;
1662
+ type CollectionsUpdateError = OperationError<"collections.update">;
1663
+ type CollectionsUpdateInput = OperationInput<"collections.update">;
1664
+ type CollectionsUpdateOutput = OperationOutput<"collections.update">;
1665
+ type ContentGetAssetError = OperationError<"content.getAsset">;
1666
+ type ContentGetAssetInput = OperationInput<"content.getAsset">;
1667
+ type ContentGetAssetOutput = OperationOutput<"content.getAsset">;
1668
+ type ContentGetError = OperationError<"content.get">;
1669
+ type ContentGetInput = OperationInput<"content.get">;
1670
+ type ContentGetOutput = OperationOutput<"content.get">;
1671
+ type ContentGetSchemaError = OperationError<"content.getSchema">;
1672
+ type ContentGetSchemaInput = OperationInput<"content.getSchema">;
1673
+ type ContentGetSchemaOutput = OperationOutput<"content.getSchema">;
1674
+ type ContentGetTreeError = OperationError<"content.getTree">;
1675
+ type ContentGetTreeInput = OperationInput<"content.getTree">;
1676
+ type ContentGetTreeOutput = OperationOutput<"content.getTree">;
1677
+ type ContentListCollectionsError = OperationError<"content.listCollections">;
1678
+ type ContentListCollectionsInput = OperationInput<"content.listCollections">;
1679
+ type ContentListCollectionsOutput = OperationOutput<"content.listCollections">;
1680
+ type ContentListEntriesError = OperationError<"content.listEntries">;
1681
+ type ContentListEntriesInput = OperationInput<"content.listEntries">;
1682
+ type ContentListEntriesOutput = OperationOutput<"content.listEntries">;
1683
+ type EntriesBulkDeleteError = OperationError<"entries.bulkDelete">;
1684
+ type EntriesBulkDeleteInput = OperationInput<"entries.bulkDelete">;
1685
+ type EntriesBulkDeleteOutput = OperationOutput<"entries.bulkDelete">;
1686
+ type EntriesCreateError = OperationError<"entries.create">;
1687
+ type EntriesCreateInput = OperationInput<"entries.create">;
1688
+ type EntriesCreateOutput = OperationOutput<"entries.create">;
1689
+ type EntriesDeleteError = OperationError<"entries.delete">;
1690
+ type EntriesDeleteInput = OperationInput<"entries.delete">;
1691
+ type EntriesDeleteOutput = OperationOutput<"entries.delete">;
1692
+ type EntriesGetError = OperationError<"entries.get">;
1693
+ type EntriesGetInput = OperationInput<"entries.get">;
1694
+ type EntriesGetOutput = OperationOutput<"entries.get">;
1695
+ type EntriesListError = OperationError<"entries.list">;
1696
+ type EntriesListInput = OperationInput<"entries.list">;
1697
+ type EntriesListOutput = OperationOutput<"entries.list">;
1698
+ type EntriesUpdateError = OperationError<"entries.update">;
1699
+ type EntriesUpdateInput = OperationInput<"entries.update">;
1700
+ type EntriesUpdateOutput = OperationOutput<"entries.update">;
1701
+ type InstanceGetError = OperationError<"instance.get">;
1702
+ type InstanceGetInput = OperationInput<"instance.get">;
1703
+ type InstanceGetOutput = OperationOutput<"instance.get">;
1704
+ type MembershipsInviteError = OperationError<"memberships.invite">;
1705
+ type MembershipsInviteInput = OperationInput<"memberships.invite">;
1706
+ type MembershipsInviteOutput = OperationOutput<"memberships.invite">;
1707
+ type MembershipsListError = OperationError<"memberships.list">;
1708
+ type MembershipsListInput = OperationInput<"memberships.list">;
1709
+ type MembershipsListInvitesError = OperationError<"memberships.listInvites">;
1710
+ type MembershipsListInvitesInput = OperationInput<"memberships.listInvites">;
1711
+ type MembershipsListInvitesOutput = OperationOutput<"memberships.listInvites">;
1712
+ type MembershipsListOutput = OperationOutput<"memberships.list">;
1713
+ type MembershipsRemoveError = OperationError<"memberships.remove">;
1714
+ type MembershipsRemoveInput = OperationInput<"memberships.remove">;
1715
+ type MembershipsRemoveOutput = OperationOutput<"memberships.remove">;
1716
+ type MembershipsResendInviteError = OperationError<"memberships.resendInvite">;
1717
+ type MembershipsResendInviteInput = OperationInput<"memberships.resendInvite">;
1718
+ type MembershipsResendInviteOutput = OperationOutput<"memberships.resendInvite">;
1719
+ type MembershipsRevokeInviteError = OperationError<"memberships.revokeInvite">;
1720
+ type MembershipsRevokeInviteInput = OperationInput<"memberships.revokeInvite">;
1721
+ type MembershipsRevokeInviteOutput = OperationOutput<"memberships.revokeInvite">;
1722
+ type MembershipsUpdateError = OperationError<"memberships.update">;
1723
+ type MembershipsUpdateInput = OperationInput<"memberships.update">;
1724
+ type MembershipsUpdateOutput = OperationOutput<"memberships.update">;
1725
+ type PublishingBulkPublishCollectionsError = OperationError<"publishing.bulkPublishCollections">;
1726
+ type PublishingBulkPublishCollectionsInput = OperationInput<"publishing.bulkPublishCollections">;
1727
+ type PublishingBulkPublishCollectionsOutput = OperationOutput<"publishing.bulkPublishCollections">;
1728
+ type PublishingBulkPublishEntriesError = OperationError<"publishing.bulkPublishEntries">;
1729
+ type PublishingBulkPublishEntriesInput = OperationInput<"publishing.bulkPublishEntries">;
1730
+ type PublishingBulkPublishEntriesOutput = OperationOutput<"publishing.bulkPublishEntries">;
1731
+ type PublishingBulkSetCollectionsError = OperationError<"publishing.bulkSetCollections">;
1732
+ type PublishingBulkSetCollectionsInput = OperationInput<"publishing.bulkSetCollections">;
1733
+ type PublishingBulkSetCollectionsOutput = OperationOutput<"publishing.bulkSetCollections">;
1734
+ type PublishingBulkUnpublishCollectionsError = OperationError<"publishing.bulkUnpublishCollections">;
1735
+ type PublishingBulkUnpublishCollectionsInput = OperationInput<"publishing.bulkUnpublishCollections">;
1736
+ type PublishingBulkUnpublishCollectionsOutput = OperationOutput<"publishing.bulkUnpublishCollections">;
1737
+ type PublishingBulkUnpublishEntriesError = OperationError<"publishing.bulkUnpublishEntries">;
1738
+ type PublishingBulkUnpublishEntriesInput = OperationInput<"publishing.bulkUnpublishEntries">;
1739
+ type PublishingBulkUnpublishEntriesOutput = OperationOutput<"publishing.bulkUnpublishEntries">;
1740
+ type PublishingCreateChannelError = OperationError<"publishing.createChannel">;
1741
+ type PublishingCreateChannelInput = OperationInput<"publishing.createChannel">;
1742
+ type PublishingCreateChannelOutput = OperationOutput<"publishing.createChannel">;
1743
+ type PublishingDeleteChannelError = OperationError<"publishing.deleteChannel">;
1744
+ type PublishingDeleteChannelInput = OperationInput<"publishing.deleteChannel">;
1745
+ type PublishingDeleteChannelOutput = OperationOutput<"publishing.deleteChannel">;
1746
+ type PublishingGetChannelContentError = OperationError<"publishing.getChannelContent">;
1747
+ type PublishingGetChannelContentInput = OperationInput<"publishing.getChannelContent">;
1748
+ type PublishingGetChannelContentOutput = OperationOutput<"publishing.getChannelContent">;
1749
+ type PublishingGetEntryVersionError = OperationError<"publishing.getEntryVersion">;
1750
+ type PublishingGetEntryVersionInput = OperationInput<"publishing.getEntryVersion">;
1751
+ type PublishingGetEntryVersionOutput = OperationOutput<"publishing.getEntryVersion">;
1752
+ type PublishingListChannelsError = OperationError<"publishing.listChannels">;
1753
+ type PublishingListChannelsInput = OperationInput<"publishing.listChannels">;
1754
+ type PublishingListChannelsOutput = OperationOutput<"publishing.listChannels">;
1755
+ type PublishingListEntryPublicationsError = OperationError<"publishing.listEntryPublications">;
1756
+ type PublishingListEntryPublicationsInput = OperationInput<"publishing.listEntryPublications">;
1757
+ type PublishingListEntryPublicationsOutput = OperationOutput<"publishing.listEntryPublications">;
1758
+ type PublishingPublishCollectionError = OperationError<"publishing.publishCollection">;
1759
+ type PublishingPublishCollectionInput = OperationInput<"publishing.publishCollection">;
1760
+ type PublishingPublishCollectionOutput = OperationOutput<"publishing.publishCollection">;
1761
+ type PublishingPublishEntryError = OperationError<"publishing.publishEntry">;
1762
+ type PublishingPublishEntryInput = OperationInput<"publishing.publishEntry">;
1763
+ type PublishingPublishEntryOutput = OperationOutput<"publishing.publishEntry">;
1764
+ type PublishingRevertChangesError = OperationError<"publishing.revertChanges">;
1765
+ type PublishingRevertChangesInput = OperationInput<"publishing.revertChanges">;
1766
+ type PublishingRevertChangesOutput = OperationOutput<"publishing.revertChanges">;
1767
+ type PublishingSetCollectionError = OperationError<"publishing.setCollection">;
1768
+ type PublishingSetCollectionInput = OperationInput<"publishing.setCollection">;
1769
+ type PublishingSetCollectionOutput = OperationOutput<"publishing.setCollection">;
1770
+ type PublishingUnpublishCollectionError = OperationError<"publishing.unpublishCollection">;
1771
+ type PublishingUnpublishCollectionInput = OperationInput<"publishing.unpublishCollection">;
1772
+ type PublishingUnpublishCollectionOutput = OperationOutput<"publishing.unpublishCollection">;
1773
+ type PublishingUnpublishEntryError = OperationError<"publishing.unpublishEntry">;
1774
+ type PublishingUnpublishEntryInput = OperationInput<"publishing.unpublishEntry">;
1775
+ type PublishingUnpublishEntryOutput = OperationOutput<"publishing.unpublishEntry">;
1776
+ type RolesCreateError = OperationError<"roles.create">;
1777
+ type RolesCreateInput = OperationInput<"roles.create">;
1778
+ type RolesCreateOutput = OperationOutput<"roles.create">;
1779
+ type RolesDeleteError = OperationError<"roles.delete">;
1780
+ type RolesDeleteInput = OperationInput<"roles.delete">;
1781
+ type RolesDeleteOutput = OperationOutput<"roles.delete">;
1782
+ type RolesListError = OperationError<"roles.list">;
1783
+ type RolesListInput = OperationInput<"roles.list">;
1784
+ type RolesListOutput = OperationOutput<"roles.list">;
1785
+ type RolesUpdateError = OperationError<"roles.update">;
1786
+ type RolesUpdateInput = OperationInput<"roles.update">;
1787
+ type RolesUpdateOutput = OperationOutput<"roles.update">;
1788
+ type SchemaMigrationsGetActiveError = OperationError<"schemaMigrations.getActive">;
1789
+ type SchemaMigrationsGetActiveInput = OperationInput<"schemaMigrations.getActive">;
1790
+ type SchemaMigrationsGetActiveOutput = OperationOutput<"schemaMigrations.getActive">;
1791
+ type SchemaMigrationsGetError = OperationError<"schemaMigrations.get">;
1792
+ type SchemaMigrationsGetInput = OperationInput<"schemaMigrations.get">;
1793
+ type SchemaMigrationsGetOutput = OperationOutput<"schemaMigrations.get">;
1794
+ type SchemaMigrationsListContentLossEntriesError = OperationError<"schemaMigrations.listContentLossEntries">;
1795
+ type SchemaMigrationsListContentLossEntriesInput = OperationInput<"schemaMigrations.listContentLossEntries">;
1796
+ type SchemaMigrationsListContentLossEntriesOutput = OperationOutput<"schemaMigrations.listContentLossEntries">;
1797
+ type SchemaVersionsGetError = OperationError<"schemaVersions.get">;
1798
+ type SchemaVersionsGetInput = OperationInput<"schemaVersions.get">;
1799
+ type SchemaVersionsGetOutput = OperationOutput<"schemaVersions.get">;
1800
+ type SchemaVersionsListError = OperationError<"schemaVersions.list">;
1801
+ type SchemaVersionsListInput = OperationInput<"schemaVersions.list">;
1802
+ type SchemaVersionsListOutput = OperationOutput<"schemaVersions.list">;
1803
+ type SchemaVersionsRevertError = OperationError<"schemaVersions.revert">;
1804
+ type SchemaVersionsRevertInput = OperationInput<"schemaVersions.revert">;
1805
+ type SchemaVersionsRevertOutput = OperationOutput<"schemaVersions.revert">;
1806
+ type SchemaVersionsUpdateError = OperationError<"schemaVersions.update">;
1807
+ type SchemaVersionsUpdateInput = OperationInput<"schemaVersions.update">;
1808
+ type SchemaVersionsUpdateOutput = OperationOutput<"schemaVersions.update">;
1809
+ type SchemasApplyError = OperationError<"schemas.apply">;
1810
+ type SchemasApplyInput = OperationInput<"schemas.apply">;
1811
+ type SchemasApplyOutput = OperationOutput<"schemas.apply">;
1812
+ type SchemasCreateError = OperationError<"schemas.create">;
1813
+ type SchemasCreateInput = OperationInput<"schemas.create">;
1814
+ type SchemasCreateOutput = OperationOutput<"schemas.create">;
1815
+ type SchemasDeleteError = OperationError<"schemas.delete">;
1816
+ type SchemasDeleteInput = OperationInput<"schemas.delete">;
1817
+ type SchemasDeleteOutput = OperationOutput<"schemas.delete">;
1818
+ type SchemasGetError = OperationError<"schemas.get">;
1819
+ type SchemasGetInput = OperationInput<"schemas.get">;
1820
+ type SchemasGetOutput = OperationOutput<"schemas.get">;
1821
+ type SchemasGetRevisionError = OperationError<"schemas.getRevision">;
1822
+ type SchemasGetRevisionInput = OperationInput<"schemas.getRevision">;
1823
+ type SchemasGetRevisionOutput = OperationOutput<"schemas.getRevision">;
1824
+ type SearchAskCurrentError = OperationError<"search.askCurrent">;
1825
+ type SearchAskCurrentInput = OperationInput<"search.askCurrent">;
1826
+ type SearchAskCurrentOutput = OperationOutput<"search.askCurrent">;
1827
+ type SearchAskCurrentStreamError = OperationError<"search.askCurrentStream">;
1828
+ type SearchAskCurrentStreamInput = OperationInput<"search.askCurrentStream">;
1829
+ type SearchAskCurrentStreamOutput = OperationOutput<"search.askCurrentStream">;
1830
+ type SearchAskPublishedError = OperationError<"search.askPublished">;
1831
+ type SearchAskPublishedInput = OperationInput<"search.askPublished">;
1832
+ type SearchAskPublishedOutput = OperationOutput<"search.askPublished">;
1833
+ type SearchAskPublishedStreamError = OperationError<"search.askPublishedStream">;
1834
+ type SearchAskPublishedStreamInput = OperationInput<"search.askPublishedStream">;
1835
+ type SearchAskPublishedStreamOutput = OperationOutput<"search.askPublishedStream">;
1836
+ type SearchCurrentError = OperationError<"search.current">;
1837
+ type SearchCurrentInput = OperationInput<"search.current">;
1838
+ type SearchCurrentOutput = OperationOutput<"search.current">;
1839
+ type SearchPublishedError = OperationError<"search.published">;
1840
+ type SearchPublishedInput = OperationInput<"search.published">;
1841
+ type SearchPublishedOutput = OperationOutput<"search.published">;
1842
+ type TypeMetadataGetCurrentError = OperationError<"typeMetadata.getCurrent">;
1843
+ type TypeMetadataGetCurrentInput = OperationInput<"typeMetadata.getCurrent">;
1844
+ type TypeMetadataGetCurrentOutput = OperationOutput<"typeMetadata.getCurrent">;
1845
+ type TypeMetadataGetPublishedError = OperationError<"typeMetadata.getPublished">;
1846
+ type TypeMetadataGetPublishedInput = OperationInput<"typeMetadata.getPublished">;
1847
+ type TypeMetadataGetPublishedOutput = OperationOutput<"typeMetadata.getPublished">;
1848
+ type VersionsCreateError = OperationError<"versions.create">;
1849
+ type VersionsCreateInput = OperationInput<"versions.create">;
1850
+ type VersionsCreateOutput = OperationOutput<"versions.create">;
1851
+ type VersionsGetError = OperationError<"versions.get">;
1852
+ type VersionsGetInput = OperationInput<"versions.get">;
1853
+ type VersionsGetOutput = OperationOutput<"versions.get">;
1854
+ type VersionsListError = OperationError<"versions.list">;
1855
+ type VersionsListInput = OperationInput<"versions.list">;
1856
+ type VersionsListOutput = OperationOutput<"versions.list">;
1857
+ type VersionsRevertError = OperationError<"versions.revert">;
1858
+ type VersionsRevertInput = OperationInput<"versions.revert">;
1859
+ type VersionsRevertOutput = OperationOutput<"versions.revert">;
1860
+ type VersionsUpdateError = OperationError<"versions.update">;
1861
+ type VersionsUpdateInput = OperationInput<"versions.update">;
1862
+ type VersionsUpdateOutput = OperationOutput<"versions.update">;
1863
+ type WebhooksBulkDeleteError = OperationError<"webhooks.bulkDelete">;
1864
+ type WebhooksBulkDeleteInput = OperationInput<"webhooks.bulkDelete">;
1865
+ type WebhooksBulkDeleteOutput = OperationOutput<"webhooks.bulkDelete">;
1866
+ type WebhooksBulkRedeliverError = OperationError<"webhooks.bulkRedeliver">;
1867
+ type WebhooksBulkRedeliverInput = OperationInput<"webhooks.bulkRedeliver">;
1868
+ type WebhooksBulkRedeliverOutput = OperationOutput<"webhooks.bulkRedeliver">;
1869
+ type WebhooksBulkSetEnabledError = OperationError<"webhooks.bulkSetEnabled">;
1870
+ type WebhooksBulkSetEnabledInput = OperationInput<"webhooks.bulkSetEnabled">;
1871
+ type WebhooksBulkSetEnabledOutput = OperationOutput<"webhooks.bulkSetEnabled">;
1872
+ type WebhooksCreateError = OperationError<"webhooks.create">;
1873
+ type WebhooksCreateInput = OperationInput<"webhooks.create">;
1874
+ type WebhooksCreateOutput = OperationOutput<"webhooks.create">;
1875
+ type WebhooksDeleteError = OperationError<"webhooks.delete">;
1876
+ type WebhooksDeleteInput = OperationInput<"webhooks.delete">;
1877
+ type WebhooksDeleteOutput = OperationOutput<"webhooks.delete">;
1878
+ type WebhooksGetDeliveryError = OperationError<"webhooks.getDelivery">;
1879
+ type WebhooksGetDeliveryInput = OperationInput<"webhooks.getDelivery">;
1880
+ type WebhooksGetDeliveryOutput = OperationOutput<"webhooks.getDelivery">;
1881
+ type WebhooksGetError = OperationError<"webhooks.get">;
1882
+ type WebhooksGetInput = OperationInput<"webhooks.get">;
1883
+ type WebhooksGetOutput = OperationOutput<"webhooks.get">;
1884
+ type WebhooksListAttemptsError = OperationError<"webhooks.listAttempts">;
1885
+ type WebhooksListAttemptsInput = OperationInput<"webhooks.listAttempts">;
1886
+ type WebhooksListAttemptsOutput = OperationOutput<"webhooks.listAttempts">;
1887
+ type WebhooksListDeliveriesError = OperationError<"webhooks.listDeliveries">;
1888
+ type WebhooksListDeliveriesInput = OperationInput<"webhooks.listDeliveries">;
1889
+ type WebhooksListDeliveriesOutput = OperationOutput<"webhooks.listDeliveries">;
1890
+ type WebhooksListError = OperationError<"webhooks.list">;
1891
+ type WebhooksListInput = OperationInput<"webhooks.list">;
1892
+ type WebhooksListOutput = OperationOutput<"webhooks.list">;
1893
+ type WebhooksListRunsError = OperationError<"webhooks.listRuns">;
1894
+ type WebhooksListRunsInput = OperationInput<"webhooks.listRuns">;
1895
+ type WebhooksListRunsOutput = OperationOutput<"webhooks.listRuns">;
1896
+ type WebhooksRedeliverError = OperationError<"webhooks.redeliver">;
1897
+ type WebhooksRedeliverInput = OperationInput<"webhooks.redeliver">;
1898
+ type WebhooksRedeliverOutput = OperationOutput<"webhooks.redeliver">;
1899
+ type WebhooksRotateSecretError = OperationError<"webhooks.rotateSecret">;
1900
+ type WebhooksRotateSecretInput = OperationInput<"webhooks.rotateSecret">;
1901
+ type WebhooksRotateSecretOutput = OperationOutput<"webhooks.rotateSecret">;
1902
+ type WebhooksSendTestError = OperationError<"webhooks.sendTest">;
1903
+ type WebhooksSendTestInput = OperationInput<"webhooks.sendTest">;
1904
+ type WebhooksSendTestOutput = OperationOutput<"webhooks.sendTest">;
1905
+ type WebhooksUpdateError = OperationError<"webhooks.update">;
1906
+ type WebhooksUpdateInput = OperationInput<"webhooks.update">;
1907
+ type WebhooksUpdateOutput = OperationOutput<"webhooks.update">;
1908
+ type WorkspacesListError = OperationError<"workspaces.list">;
1909
+ type WorkspacesListInput = OperationInput<"workspaces.list">;
1910
+ type WorkspacesListOutput = OperationOutput<"workspaces.list">;
1911
+ //#endregion
1912
+ //#region src/paginate.d.ts
1913
+ interface Page<T> {
1914
+ data: T[];
1915
+ pagination: {
1916
+ nextCursor: string | null;
1917
+ hasMore: boolean;
1918
+ };
1919
+ }
1920
+ interface PaginateOptions {
1921
+ /** Start after a saved cursor. The callback must retain its original scope and snapshot. */
1922
+ cursor?: string;
1923
+ }
1924
+ /**
1925
+ * Iterate cursor-paginated pages, retaining their metadata.
1926
+ *
1927
+ * @param getPage - Fetch one page for the supplied cursor. The first cursor is undefined unless supplied.
1928
+ * Keep filters stable. This generic helper does not bind snapshots; use content.paginateEntryPages()
1929
+ * or content.paginateCollectionPages() for automatic published snapshot handling.
1930
+ * @param options - Optional cursor from an earlier page to resume processing.
1931
+ * @returns A lazy iterator that requests the next page only after the previous page is consumed.
1932
+ * Save pagination.nextCursor after processing a page. Break the loop to stop further requests.
1933
+ * @throws Error for a missing or repeated next cursor. Callback failures pass through unchanged.
1934
+ */
1935
+ declare const paginatePages: <P extends Page<unknown>>(getPage: (cursor?: string) => Promise<P>, options?: PaginateOptions) => AsyncGenerator<P>;
1936
+ /**
1937
+ * Iterate items across cursor-paginated pages without collecting them in memory.
1938
+ *
1939
+ * @param getPage - Fetch one page using the cursor. Keep scope and filters stable in this callback.
1940
+ * This generic helper does not bind snapshots; content.paginateEntries() and
1941
+ * content.paginateCollections() do that automatically for published content.
1942
+ * @param options - Optional starting cursor; retain its matching scope and snapshot yourself.
1943
+ * @returns Items in API order. Break the loop to prevent further page requests.
1944
+ * @throws Pagination errors from paginatePages(), or the original callback error.
1945
+ */
1946
+ declare const paginate: <T>(getPage: (cursor?: string) => Promise<Page<T>>, options?: PaginateOptions) => AsyncGenerator<T>;
1947
+ //#endregion
1948
+ //#region src/structured-content.d.ts
1949
+ interface StructuredContentSource {
1950
+ properties: Readonly<Record<string, {
1951
+ readonly value: unknown;
1952
+ } | undefined>>;
1953
+ fragments: Readonly<Record<string, {
1954
+ readonly content: unknown;
1955
+ } | undefined>>;
1956
+ }
1957
+ type PropertyValue<T> = T extends {
1958
+ readonly value: infer Value;
1959
+ } ? Value : undefined;
1960
+ type FragmentContent<T> = T extends {
1961
+ readonly content: infer Content;
1962
+ } ? Content : undefined;
1963
+ type StructuredContent<T extends StructuredContentSource> = T extends unknown ? Omit<T, "properties" | "fragments"> & {
1964
+ properties: { [Key in keyof T["properties"]]: PropertyValue<T["properties"][Key]>; };
1965
+ fragments: { [Key in keyof T["fragments"]]: FragmentContent<T["fragments"][Key]>; };
1966
+ } : never;
1967
+ /**
1968
+ * Unwrap property values and fragment documents for use in application code.
1969
+ *
1970
+ * @param page - Full entry content with properties and fragments, including published list items.
1971
+ * @returns A new object with property.value and fragment.content exposed by key. Other fields,
1972
+ * including schema metadata and assets, are preserved. Nested content is shared, not cloned.
1973
+ * Workspace field types and revision unions are preserved. This helper does not validate content or convert formats.
1974
+ * @example
1975
+ * const tutorial = toStructuredContent(page);
1976
+ * const body = tutorial.fragments.body;
1977
+ * const enabled = tutorial.properties.enabled;
1978
+ */
1979
+ declare const toStructuredContent: <T extends StructuredContentSource>(page: T) => StructuredContent<T>;
1980
+ //#endregion
1981
+ export { ContentGetTreeError as $, WebhooksListError as $i, RolesListError as $n, SearchCurrentError as $r, PublishingBulkPublishEntriesError as $t, CollectionsBulkDeleteInput as A, ContentClient as Aa, WebhooksBulkRedeliverInput as Ai, PublishingPublishCollectionInput as An, SchemasCreateInput as Ar, MembershipsInviteInput as At, CollectionsListOutput as B, RequestOptions as Ba, WebhooksDeleteOutput as Bi, PublishingSetCollectionOutput as Bn, SchemasGetRevisionOutput as Br, MembershipsRemoveOutput as Bt, AssetsUploadError as C, AndesineStreamProtocolError as Ca, VersionsUpdateError as Ci, PublishingListChannelsError as Cn, SchemaVersionsUpdateError as Cr, EntriesUpdateError as Ct, AuthGetIdentityInput as D, AndesineClient as Da, WebhooksBulkDeleteInput as Di, PublishingListEntryPublicationsInput as Dn, SchemasApplyInput as Dr, InstanceGetInput as Dt, AuthGetIdentityError as E, toContentURL as Ea, WebhooksBulkDeleteError as Ei, PublishingListEntryPublicationsError as En, SchemasApplyError as Er, InstanceGetError as Et, CollectionsDeleteError as F, APIResponse as Fa, WebhooksCreateError as Fi, PublishingRevertChangesError as Fn, SchemasGetError as Fr, MembershipsListInvitesInput as Ft, ContentGetAssetInput as G, WorkspaceSchema as Ga, WebhooksGetInput as Gi, PublishingUnpublishEntryInput as Gn, SearchAskCurrentStreamInput as Gr, MembershipsRevokeInviteInput as Gt, CollectionsUpdateInput as H, SchemaContent as Ha, WebhooksGetDeliveryInput as Hi, PublishingUnpublishCollectionInput as Hn, SearchAskCurrentInput as Hr, MembershipsResendInviteInput as Ht, CollectionsDeleteInput as I, NotModifiedResponse as Ia, WebhooksCreateInput as Ii, PublishingRevertChangesInput as In, SchemasGetInput as Ir, MembershipsListInvitesOutput as It, ContentGetInput as J, WebhooksListAttemptsInput as Ji, RolesCreateInput as Jn, SearchAskPublishedInput as Jr, MembershipsUpdateInput as Jt, ContentGetAssetOutput as K, WorkspaceTypeMap as Ka, WebhooksGetOutput as Ki, PublishingUnpublishEntryOutput as Kn, SearchAskCurrentStreamOutput as Kr, MembershipsRevokeInviteOutput as Kt, CollectionsDeleteOutput as L, OperationError as La, WebhooksCreateOutput as Li, PublishingRevertChangesOutput as Ln, SchemasGetOutput as Lr, MembershipsListOutput as Lt, CollectionsCreateError as M, APIErrorBody as Ma, WebhooksBulkSetEnabledError as Mi, PublishingPublishEntryError as Mn, SchemasDeleteError as Mr, MembershipsListError as Mt, CollectionsCreateInput as N, APIErrorCode as Na, WebhooksBulkSetEnabledInput as Ni, PublishingPublishEntryInput as Nn, SchemasDeleteInput as Nr, MembershipsListInput as Nt, AuthGetIdentityOutput as O, ClientOptions as Oa, WebhooksBulkDeleteOutput as Oi, PublishingListEntryPublicationsOutput as On, SchemasApplyOutput as Or, InstanceGetOutput as Ot, CollectionsCreateOutput as P, APIErrorData as Pa, WebhooksBulkSetEnabledOutput as Pi, PublishingPublishEntryOutput as Pn, SchemasDeleteOutput as Pr, MembershipsListInvitesError as Pt, ContentGetSchemaOutput as Q, WebhooksListDeliveriesOutput as Qi, RolesDeleteOutput as Qn, SearchAskPublishedStreamOutput as Qr, PublishingBulkPublishCollectionsOutput as Qt, CollectionsListError as R, OperationInput as Ra, WebhooksDeleteError as Ri, PublishingSetCollectionError as Rn, SchemasGetRevisionError as Rr, MembershipsRemoveError as Rt, AssetsSearchOutput as S, AndesineStreamError as Sa, VersionsRevertOutput as Si, PublishingGetEntryVersionOutput as Sn, SchemaVersionsRevertOutput as Sr, EntriesListOutput as St, AssetsUploadOutput as T, ContentURLOptions as Ta, VersionsUpdateOutput as Ti, PublishingListChannelsOutput as Tn, SchemaVersionsUpdateOutput as Tr, EntriesUpdateOutput as Tt, CollectionsUpdateOutput as U, WorkspaceCollection as Ua, WebhooksGetDeliveryOutput as Ui, PublishingUnpublishCollectionOutput as Un, SearchAskCurrentOutput as Ur, MembershipsResendInviteOutput as Ut, CollectionsUpdateError as V, ContentListOutput as Va, WebhooksGetDeliveryError as Vi, PublishingUnpublishCollectionError as Vn, SearchAskCurrentError as Vr, MembershipsResendInviteError as Vt, ContentGetAssetError as W, WorkspaceEntry as Wa, WebhooksGetError as Wi, PublishingUnpublishEntryError as Wn, SearchAskCurrentStreamError as Wr, MembershipsRevokeInviteError as Wt, ContentGetSchemaError as X, WebhooksListDeliveriesError as Xi, RolesDeleteError as Xn, SearchAskPublishedStreamError as Xr, PublishingBulkPublishCollectionsError as Xt, ContentGetOutput as Y, WebhooksListAttemptsOutput as Yi, RolesCreateOutput as Yn, SearchAskPublishedOutput as Yr, MembershipsUpdateOutput as Yt, ContentGetSchemaInput as Z, WebhooksListDeliveriesInput as Zi, RolesDeleteInput as Zn, SearchAskPublishedStreamInput as Zr, PublishingBulkPublishCollectionsInput as Zt, AssetsRegisterError as _, WorkspacesListError as _a, VersionsListError as _i, PublishingGetChannelContentError as _n, SchemaVersionsListError as _r, EntriesGetError as _t, PaginateOptions as a, WebhooksRedeliverError as aa, TypeMetadataGetCurrentError as ai, PublishingBulkUnpublishCollectionsError as an, SchemaMigrationsGetActiveError as ar, ContentListEntriesError as at, AssetsSearchError as b, types_d_exports as ba, VersionsRevertError as bi, PublishingGetEntryVersionError as bn, SchemaVersionsRevertError as br, EntriesListError as bt, AssetsAttachError as c, WebhooksRotateSecretError as ca, TypeMetadataGetPublishedError as ci, PublishingBulkUnpublishEntriesError as cn, SchemaMigrationsGetError as cr, EntriesBulkDeleteError as ct, AssetsGetError as d, WebhooksSendTestError as da, VersionsCreateError as di, PublishingCreateChannelError as dn, SchemaMigrationsListContentLossEntriesError as dr, EntriesCreateError as dt, WebhooksListInput as ea, SearchCurrentInput as ei, PublishingBulkPublishEntriesInput as en, RolesListInput as er, ContentGetTreeInput as et, AssetsGetInput as f, WebhooksSendTestInput as fa, VersionsCreateInput as fi, PublishingCreateChannelInput as fn, SchemaMigrationsListContentLossEntriesInput as fr, EntriesCreateInput as ft, AssetsImportURLOutput as g, WebhooksUpdateOutput as ga, VersionsGetOutput as gi, PublishingDeleteChannelOutput as gn, SchemaVersionsGetOutput as gr, EntriesDeleteOutput as gt, AssetsImportURLInput as h, WebhooksUpdateInput as ha, VersionsGetInput as hi, PublishingDeleteChannelInput as hn, SchemaVersionsGetInput as hr, EntriesDeleteInput as ht, Page as i, WebhooksListRunsOutput as ia, SearchPublishedOutput as ii, PublishingBulkSetCollectionsOutput as in, RolesUpdateOutput as ir, ContentListCollectionsOutput as it, CollectionsBulkDeleteOutput as j, ContentPaginationOptions as ja, WebhooksBulkRedeliverOutput as ji, PublishingPublishCollectionOutput as jn, SchemasCreateOutput as jr, MembershipsInviteOutput as jt, CollectionsBulkDeleteError as k, createClient as ka, WebhooksBulkRedeliverError as ki, PublishingPublishCollectionError as kn, SchemasCreateError as kr, MembershipsInviteError as kt, AssetsAttachInput as l, WebhooksRotateSecretInput as la, TypeMetadataGetPublishedInput as li, PublishingBulkUnpublishEntriesInput as ln, SchemaMigrationsGetInput as lr, EntriesBulkDeleteInput as lt, AssetsImportURLError as m, WebhooksUpdateError as ma, VersionsGetError as mi, PublishingDeleteChannelError as mn, SchemaVersionsGetError as mr, EntriesDeleteError as mt, StructuredContentSource as n, WebhooksListRunsError as na, SearchPublishedError as ni, PublishingBulkSetCollectionsError as nn, RolesUpdateError as nr, ContentListCollectionsError as nt, paginate as o, WebhooksRedeliverInput as oa, TypeMetadataGetCurrentInput as oi, PublishingBulkUnpublishCollectionsInput as on, SchemaMigrationsGetActiveInput as or, ContentListEntriesInput as ot, AssetsGetOutput as p, WebhooksSendTestOutput as pa, VersionsCreateOutput as pi, PublishingCreateChannelOutput as pn, SchemaMigrationsListContentLossEntriesOutput as pr, EntriesCreateOutput as pt, ContentGetError as q, WebhooksListAttemptsError as qi, RolesCreateError as qn, SearchAskPublishedError as qr, MembershipsUpdateError as qt, toStructuredContent as r, WebhooksListRunsInput as ra, SearchPublishedInput as ri, PublishingBulkSetCollectionsInput as rn, RolesUpdateInput as rr, ContentListCollectionsInput as rt, paginatePages as s, WebhooksRedeliverOutput as sa, TypeMetadataGetCurrentOutput as si, PublishingBulkUnpublishCollectionsOutput as sn, SchemaMigrationsGetActiveOutput as sr, ContentListEntriesOutput as st, StructuredContent as t, WebhooksListOutput as ta, SearchCurrentOutput as ti, PublishingBulkPublishEntriesOutput as tn, RolesListOutput as tr, ContentGetTreeOutput as tt, AssetsAttachOutput as u, WebhooksRotateSecretOutput as ua, TypeMetadataGetPublishedOutput as ui, PublishingBulkUnpublishEntriesOutput as un, SchemaMigrationsGetOutput as ur, EntriesBulkDeleteOutput as ut, AssetsRegisterInput as v, WorkspacesListInput as va, VersionsListInput as vi, PublishingGetChannelContentInput as vn, SchemaVersionsListInput as vr, EntriesGetInput as vt, AssetsUploadInput as w, ContentLocation as wa, VersionsUpdateInput as wi, PublishingListChannelsInput as wn, SchemaVersionsUpdateInput as wr, EntriesUpdateInput as wt, AssetsSearchInput as x, AndesineAPIError as xa, VersionsRevertInput as xi, PublishingGetEntryVersionInput as xn, SchemaVersionsRevertInput as xr, EntriesListInput as xt, AssetsRegisterOutput as y, WorkspacesListOutput as ya, VersionsListOutput as yi, PublishingGetChannelContentOutput as yn, SchemaVersionsListOutput as yr, EntriesGetOutput as yt, CollectionsListInput as z, OperationOutput as za, WebhooksDeleteInput as zi, PublishingSetCollectionInput as zn, SchemasGetRevisionInput as zr, MembershipsRemoveInput as zt };
1982
+ //# sourceMappingURL=index-moj3WP71.d.ts.map