@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.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- import { $ as ContentListCollectionsError, $a as PublishedEntriesResult, $i as AssetVariant, $n as RolesUpdateError, $r as SearchPublishedError, $t as PublishingBulkSetCollectionsError, A as CollectionsCreateInput, Aa as ErrorData, Ai as APIErrorCode, An as PublishingPublishEntryInput, Ao as SchemaVersion, Ar as SchemasDeleteInput, At as MembershipsListInput, B as CollectionsUpdateOutput, Ba as MembershipInviteResult, Bi as AnswerHistoryMessage, Bn as PublishingUnpublishCollectionOutput, Bo as VersionReason, Br as SearchAskCurrentOutput, Bt as MembershipsResendInviteOutput, C as AssetsUploadError, Ca as EntryPropertyKind, Ci as toContentURL, Cn as PublishingListEntryPublicationsError, Co as SchemaMigration, Cr as SchemasApplyError, Ct as InstanceGetError, D as CollectionsBulkDeleteInput, Da as EntrySummary, Di as ContentClient, Dn as PublishingPublishCollectionInput, Do as SchemaProperty, Dr as SchemasCreateInput, Dt as MembershipsInviteInput, E as CollectionsBulkDeleteError, Ea as EntryPublicationChannel, Ei as createClient, En as PublishingPublishCollectionError, Eo as SchemaMigrationStatus, Er as SchemasCreateError, Et as MembershipsInviteError, F as CollectionsListError, Fa as InvitePendingErrorData, Fi as OperationInput, Fn as PublishingSetCollectionError, Fo as TextPropertyFilter, Fr as SchemasGetRevisionError, Ft as MembershipsRemoveError, G as ContentGetInput, Ga as PublishEntryTarget, Gi as AssetConflictErrorData, Gn as RolesCreateInput, Gr as SearchAskPublishedInput, Gt as MembershipsUpdateInput, H as ContentGetAssetInput, Ha as Pagination, Hi as Asset, Hn as PublishingUnpublishEntryInput, Ho as operations, Hr as SearchAskCurrentStreamInput, Ht as MembershipsRevokeInviteInput, I as CollectionsListInput, Ia as InviteStatus, Ii as OperationOutput, In as PublishingSetCollectionInput, Io as UnpublishedEntriesResult, Ir as SchemasGetRevisionInput, It as MembershipsRemoveInput, J as ContentGetSchemaInput, Ja as PublishedAnswerSource, Ji as AssetSearchResult, Jn as RolesDeleteInput, Jr as SearchAskPublishedStreamInput, Jt as PublishingBulkPublishCollectionsInput, K as ContentGetOutput, Ka as PublishedAnswer, Ki as AssetFile, Kn as RolesCreateOutput, Kr as SearchAskPublishedOutput, Kt as MembershipsUpdateOutput, L as CollectionsListOutput, La as LocalCollectionSchema, Li as RequestOptions, Ln as PublishingSetCollectionOutput, Lo as UserProfile, Lr as SchemasGetRevisionOutput, Lt as MembershipsRemoveOutput, M as CollectionsDeleteError, Ma as InstanceInfo, Mi as APIResponse, Mn as PublishingRevertChangesError, Mo as SearchPropertyValue, Mr as SchemasGetError, Mt as MembershipsListInvitesInput, N as CollectionsDeleteInput, Na as Invite, Ni as NotModifiedResponse, Nn as PublishingRevertChangesInput, No as SearchResult, Nr as SchemasGetInput, Nt as MembershipsListInvitesOutput, O as CollectionsBulkDeleteOutput, Oa as EntryVersion, Oi as ContentPaginationOptions, On as PublishingPublishCollectionOutput, Oo as SchemaPropertyValue, Or as SchemasCreateOutput, Ot as MembershipsInviteOutput, P as CollectionsDeleteOutput, Pa as InviteDeliveryResult, Pi as OperationError, Pn as PublishingRevertChangesOutput, Po as SearchResults, Pr as SchemasGetOutput, Pt as MembershipsListOutput, Q as ContentGetTreeOutput, Qa as PublishedContent, Qi as AssetValidationErrorData, Qn as RolesListOutput, Qr as SearchCurrentOutput, Qt as PublishingBulkPublishEntriesOutput, R as CollectionsUpdateError, Ra as Membership, Ri as Answer, Rn as PublishingUnpublishCollectionError, Ro as ValidationErrorData, Rr as SearchAskCurrentError, Rt as MembershipsResendInviteError, S as AssetsSearchOutput, Sa as EntryProperty, Si as ContentURLOptions, Sn as PublishingListChannelsOutput, So as SchemaFragment, Sr as SchemaVersionsUpdateOutput, St as EntriesUpdateOutput, T as AssetsUploadOutput, Ta as EntryPublication, Ti as ClientOptions, Tn as PublishingListEntryPublicationsOutput, To as SchemaMigrationErrorData, Tr as SchemasApplyOutput, Tt as InstanceGetOutput, U as ContentGetAssetOutput, Ua as Permission, Ui as AssetAnalysis, Un as PublishingUnpublishEntryOutput, Uo as paths, Ur as SearchAskCurrentStreamOutput, Ut as MembershipsRevokeInviteOutput, V as ContentGetAssetError, Va as NumberPropertyFilter, Vi as AnswerSource, Vn as PublishingUnpublishEntryError, Vo as components, Vr as SearchAskCurrentStreamError, Vt as MembershipsRevokeInviteError, W as ContentGetError, Wa as PropertyFilter, Wi as AssetAnalysisStatus, Wn as RolesCreateError, Wr as SearchAskPublishedError, Wt as MembershipsUpdateError, X as ContentGetTreeError, Xa as PublishedCollection, Xi as AssetStorageErrorData, Xn as RolesListError, Xr as SearchCurrentError, Xt as PublishingBulkPublishEntriesError, Y as ContentGetSchemaOutput, Ya as PublishedAsset, Yi as AssetStatus, Yn as RolesDeleteOutput, Yr as SearchAskPublishedStreamOutput, Yt as PublishingBulkPublishCollectionsOutput, Z as ContentGetTreeInput, Za as PublishedCollectionSummary, Zi as AssetUploadRegistration, Zn as RolesListInput, Zr as SearchCurrentInput, Zt as PublishingBulkPublishEntriesInput, _ as AssetsRegisterError, _a as ContentSchemaMismatchErrorData, _i as types_d_exports, _n as PublishingGetEntryVersionError, _o as SchemaDefinition, _r as SchemaVersionsRevertError, _t as EntriesListError, a as PaginateOptions, aa as ChannelContentStatus, ai as VersionsGetError, an as PublishingBulkUnpublishEntriesError, ao as PublishedVersion, ar as SchemaMigrationsGetError, at as EntriesBulkDeleteError, b as AssetsSearchError, ba as Entry, bi as AndesineStreamProtocolError, bn as PublishingListChannelsError, bo as SchemaFieldKeyConflictErrorData, br as SchemaVersionsUpdateError, bt as EntriesUpdateError, c as AssetsAttachError, ca as ComparisonOperator, ci as VersionsListError, cn as PublishingCreateChannelError, co as PublishingChannelListItem, cr as SchemaMigrationsListContentLossEntriesError, ct as EntriesCreateError, d as AssetsGetError, da as ContentNameConflictErrorData, di as VersionsRevertError, dn as PublishingDeleteChannelError, do as ResolvedSchemaDefinition, dr as SchemaVersionsGetError, dt as EntriesDeleteError, ea as BaseRole, ei as SearchPublishedInput, en as PublishingBulkSetCollectionsInput, eo as PublishedEntry, er as RolesUpdateInput, et as ContentListCollectionsInput, f as AssetsGetInput, fa as ContentNode, fi as VersionsRevertInput, fn as PublishingDeleteChannelInput, fo as ResolvedSchemaField, fr as SchemaVersionsGetInput, ft as EntriesDeleteInput, g as AssetsImportURLOutput, ga as ContentSchemaMetadata, gi as VersionsUpdateOutput, gn as PublishingGetChannelContentOutput, go as SchemaBlockType, gr as SchemaVersionsListOutput, gt as EntriesGetOutput, h as AssetsImportURLInput, ha as ContentSchemaIssue, hi as VersionsUpdateInput, hn as PublishingGetChannelContentInput, ho as SchemaApplicationResult, hr as SchemaVersionsListInput, ht as EntriesGetInput, i as Page, ia as ChannelContentEntry, ii as VersionsCreateOutput, in as PublishingBulkUnpublishCollectionsOutput, io as PublishedTree, ir as SchemaMigrationsGetActiveOutput, it as ContentListEntriesOutput, j as CollectionsCreateOutput, ja as ForbiddenErrorData, ji as APIErrorData, jn as PublishingPublishEntryOutput, jo as SchemaVersionSummary, jr as SchemasDeleteOutput, jt as MembershipsListInvitesError, k as CollectionsCreateError, ka as EntryVersionSummary, ki as APIErrorBody, kn as PublishingPublishEntryError, ko as SchemaRevision, kr as SchemasDeleteError, kt as MembershipsListError, l as AssetsAttachInput, la as ContentMark, li as VersionsListInput, ln as PublishingCreateChannelInput, lo as PublishingSnapshotErrorData, lr as SchemaMigrationsListContentLossEntriesInput, lt as EntriesCreateInput, m as AssetsImportURLError, ma as ContentSchemaInvalidErrorData, mi as VersionsUpdateError, mn as PublishingGetChannelContentError, mo as Role, mr as SchemaVersionsListError, mt as EntriesGetError, n as StructuredContentSource, na as ChannelContent, ni as VersionsCreateError, nn as PublishingBulkUnpublishCollectionsError, no as PublishedEntrySummary, nr as SchemaMigrationsGetActiveError, nt as ContentListEntriesError, o as paginate, oa as Collection, oi as VersionsGetInput, on as PublishingBulkUnpublishEntriesInput, oo as PublishingChannel, or as SchemaMigrationsGetInput, ot as EntriesBulkDeleteInput, p as AssetsGetOutput, pa as ContentNodeInput, pi as VersionsRevertOutput, pn as PublishingDeleteChannelOutput, po as RevertPublishingChangesResult, pr as SchemaVersionsGetOutput, pt as EntriesDeleteOutput, q as ContentGetSchemaError, qa as PublishedAnswerEvent, qi as AssetFileFormat, qn as RolesDeleteError, qr as SearchAskPublishedStreamError, qt as PublishingBulkPublishCollectionsError, r as toStructuredContent, ra as ChannelContentCollection, ri as VersionsCreateInput, rn as PublishingBulkUnpublishCollectionsInput, ro as PublishedSearchResult, rr as SchemaMigrationsGetActiveInput, rt as ContentListEntriesInput, s as paginatePages, sa as CollectionSchema, si as VersionsGetOutput, sn as PublishingBulkUnpublishEntriesOutput, so as PublishingChannelCode, sr as SchemaMigrationsGetOutput, st as EntriesBulkDeleteOutput, t as StructuredContent, ta as BooleanPropertyFilter, ti as SearchPublishedOutput, tn as PublishingBulkSetCollectionsOutput, to as PublishedEntryContent, tr as RolesUpdateOutput, tt as ContentListCollectionsOutput, u as AssetsAttachOutput, ua as ContentMarkInput, ui as VersionsListOutput, un as PublishingCreateChannelOutput, uo as RateLimitErrorData, ur as SchemaMigrationsListContentLossEntriesOutput, ut as EntriesCreateOutput, v as AssetsRegisterInput, va as DatePropertyFilter, vi as AndesineAPIError, vn as PublishingGetEntryVersionInput, vo as SchemaDraftDefinition, vr as SchemaVersionsRevertInput, vt as EntriesListInput, w as AssetsUploadInput, wa as EntryPropertyValue, wi as AndesineClient, wn as PublishingListEntryPublicationsInput, wo as SchemaMigrationContentLossEntry, wr as SchemasApplyInput, wt as InstanceGetInput, x as AssetsSearchInput, xa as EntryFragment, xi as ContentLocation, xn as PublishingListChannelsInput, xo as SchemaFieldSource, xr as SchemaVersionsUpdateInput, xt as EntriesUpdateInput, y as AssetsRegisterOutput, ya as EffectiveCollectionSchema, yi as AndesineStreamError, yn as PublishingGetEntryVersionOutput, yo as SchemaField, yr as SchemaVersionsRevertOutput, yt as EntriesListOutput, z as CollectionsUpdateInput, za as MembershipExistsErrorData, zi as AnswerEvent, zn as PublishingUnpublishCollectionInput, zo as ValidationIssue, zr as SearchAskCurrentInput, zt as MembershipsResendInviteInput } from "./index-DFEcYmbh.js";
2
- export { type APIErrorBody, type APIErrorCode, type APIErrorData, type APIResponse, type types_d_exports as Andesine, AndesineAPIError, type AndesineClient, AndesineStreamError, AndesineStreamProtocolError, type Answer, type AnswerEvent, type AnswerHistoryMessage, type AnswerSource, type Asset, type AssetAnalysis, type AssetAnalysisStatus, type AssetConflictErrorData, type AssetFile, type AssetFileFormat, type AssetSearchResult, type AssetStatus, type AssetStorageErrorData, type AssetUploadRegistration, type AssetValidationErrorData, type AssetVariant, type AssetsAttachError, type AssetsAttachInput, type AssetsAttachOutput, type AssetsGetError, type AssetsGetInput, type AssetsGetOutput, type AssetsImportURLError, type AssetsImportURLInput, type AssetsImportURLOutput, type AssetsRegisterError, type AssetsRegisterInput, type AssetsRegisterOutput, type AssetsSearchError, type AssetsSearchInput, type AssetsSearchOutput, type AssetsUploadError, type AssetsUploadInput, type AssetsUploadOutput, type BaseRole, type BooleanPropertyFilter, type ChannelContent, type ChannelContentCollection, type ChannelContentEntry, type ChannelContentStatus, type ClientOptions, type Collection, type CollectionSchema, type CollectionsBulkDeleteError, type CollectionsBulkDeleteInput, type CollectionsBulkDeleteOutput, type CollectionsCreateError, type CollectionsCreateInput, type CollectionsCreateOutput, type CollectionsDeleteError, type CollectionsDeleteInput, type CollectionsDeleteOutput, type CollectionsListError, type CollectionsListInput, type CollectionsListOutput, type CollectionsUpdateError, type CollectionsUpdateInput, type CollectionsUpdateOutput, type ComparisonOperator, type ContentClient, type ContentGetAssetError, type ContentGetAssetInput, type ContentGetAssetOutput, type ContentGetError, type ContentGetInput, type ContentGetOutput, type ContentGetSchemaError, type ContentGetSchemaInput, type ContentGetSchemaOutput, type ContentGetTreeError, type ContentGetTreeInput, type ContentGetTreeOutput, type ContentListCollectionsError, type ContentListCollectionsInput, type ContentListCollectionsOutput, type ContentListEntriesError, type ContentListEntriesInput, type ContentListEntriesOutput, type ContentLocation, type ContentMark, type ContentMarkInput, type ContentNameConflictErrorData, type ContentNode, type ContentNodeInput, type ContentPaginationOptions, type ContentSchemaInvalidErrorData, type ContentSchemaIssue, type ContentSchemaMetadata, type ContentSchemaMismatchErrorData, type ContentURLOptions, type DatePropertyFilter, type EffectiveCollectionSchema, type EntriesBulkDeleteError, type EntriesBulkDeleteInput, type EntriesBulkDeleteOutput, type EntriesCreateError, type EntriesCreateInput, type EntriesCreateOutput, type EntriesDeleteError, type EntriesDeleteInput, type EntriesDeleteOutput, type EntriesGetError, type EntriesGetInput, type EntriesGetOutput, type EntriesListError, type EntriesListInput, type EntriesListOutput, type EntriesUpdateError, type EntriesUpdateInput, type EntriesUpdateOutput, type Entry, type EntryFragment, type EntryProperty, type EntryPropertyKind, type EntryPropertyValue, type EntryPublication, type EntryPublicationChannel, type EntrySummary, type EntryVersion, type EntryVersionSummary, type ErrorData, type ForbiddenErrorData, type InstanceGetError, type InstanceGetInput, type InstanceGetOutput, type InstanceInfo, type Invite, type InviteDeliveryResult, type InvitePendingErrorData, type InviteStatus, type LocalCollectionSchema, type Membership, type MembershipExistsErrorData, type MembershipInviteResult, type MembershipsInviteError, type MembershipsInviteInput, type MembershipsInviteOutput, type MembershipsListError, type MembershipsListInput, type MembershipsListInvitesError, type MembershipsListInvitesInput, type MembershipsListInvitesOutput, type MembershipsListOutput, type MembershipsRemoveError, type MembershipsRemoveInput, type MembershipsRemoveOutput, type MembershipsResendInviteError, type MembershipsResendInviteInput, type MembershipsResendInviteOutput, type MembershipsRevokeInviteError, type MembershipsRevokeInviteInput, type MembershipsRevokeInviteOutput, type MembershipsUpdateError, type MembershipsUpdateInput, type MembershipsUpdateOutput, type NotModifiedResponse, type NumberPropertyFilter, type OperationError, type OperationInput, type OperationOutput, type Page, type PaginateOptions, type Pagination, type Permission, type PropertyFilter, type PublishEntryTarget, type PublishedAnswer, type PublishedAnswerEvent, type PublishedAnswerSource, type PublishedAsset, type PublishedCollection, type PublishedCollectionSummary, type PublishedContent, type PublishedEntriesResult, type PublishedEntry, type PublishedEntryContent, type PublishedEntrySummary, type PublishedSearchResult, type PublishedTree, type PublishedVersion, type PublishingBulkPublishCollectionsError, type PublishingBulkPublishCollectionsInput, type PublishingBulkPublishCollectionsOutput, type PublishingBulkPublishEntriesError, type PublishingBulkPublishEntriesInput, type PublishingBulkPublishEntriesOutput, type PublishingBulkSetCollectionsError, type PublishingBulkSetCollectionsInput, type PublishingBulkSetCollectionsOutput, type PublishingBulkUnpublishCollectionsError, type PublishingBulkUnpublishCollectionsInput, type PublishingBulkUnpublishCollectionsOutput, type PublishingBulkUnpublishEntriesError, type PublishingBulkUnpublishEntriesInput, type PublishingBulkUnpublishEntriesOutput, type PublishingChannel, type PublishingChannelCode, type PublishingChannelListItem, type PublishingCreateChannelError, type PublishingCreateChannelInput, type PublishingCreateChannelOutput, type PublishingDeleteChannelError, type PublishingDeleteChannelInput, type PublishingDeleteChannelOutput, type PublishingGetChannelContentError, type PublishingGetChannelContentInput, type PublishingGetChannelContentOutput, type PublishingGetEntryVersionError, type PublishingGetEntryVersionInput, type PublishingGetEntryVersionOutput, type PublishingListChannelsError, type PublishingListChannelsInput, type PublishingListChannelsOutput, type PublishingListEntryPublicationsError, type PublishingListEntryPublicationsInput, type PublishingListEntryPublicationsOutput, type PublishingPublishCollectionError, type PublishingPublishCollectionInput, type PublishingPublishCollectionOutput, type PublishingPublishEntryError, type PublishingPublishEntryInput, type PublishingPublishEntryOutput, type PublishingRevertChangesError, type PublishingRevertChangesInput, type PublishingRevertChangesOutput, type PublishingSetCollectionError, type PublishingSetCollectionInput, type PublishingSetCollectionOutput, type PublishingSnapshotErrorData, type PublishingUnpublishCollectionError, type PublishingUnpublishCollectionInput, type PublishingUnpublishCollectionOutput, type PublishingUnpublishEntryError, type PublishingUnpublishEntryInput, type PublishingUnpublishEntryOutput, type RateLimitErrorData, type RequestOptions, type ResolvedSchemaDefinition, type ResolvedSchemaField, type RevertPublishingChangesResult, type Role, type RolesCreateError, type RolesCreateInput, type RolesCreateOutput, type RolesDeleteError, type RolesDeleteInput, type RolesDeleteOutput, type RolesListError, type RolesListInput, type RolesListOutput, type RolesUpdateError, type RolesUpdateInput, type RolesUpdateOutput, type SchemaApplicationResult, type SchemaBlockType, type SchemaDefinition, type SchemaDraftDefinition, type SchemaField, type SchemaFieldKeyConflictErrorData, type SchemaFieldSource, type SchemaFragment, type SchemaMigration, type SchemaMigrationContentLossEntry, type SchemaMigrationErrorData, type SchemaMigrationStatus, type SchemaMigrationsGetActiveError, type SchemaMigrationsGetActiveInput, type SchemaMigrationsGetActiveOutput, type SchemaMigrationsGetError, type SchemaMigrationsGetInput, type SchemaMigrationsGetOutput, type SchemaMigrationsListContentLossEntriesError, type SchemaMigrationsListContentLossEntriesInput, type SchemaMigrationsListContentLossEntriesOutput, type SchemaProperty, type SchemaPropertyValue, type SchemaRevision, type SchemaVersion, type SchemaVersionSummary, type SchemaVersionsGetError, type SchemaVersionsGetInput, type SchemaVersionsGetOutput, type SchemaVersionsListError, type SchemaVersionsListInput, type SchemaVersionsListOutput, type SchemaVersionsRevertError, type SchemaVersionsRevertInput, type SchemaVersionsRevertOutput, type SchemaVersionsUpdateError, type SchemaVersionsUpdateInput, type SchemaVersionsUpdateOutput, type SchemasApplyError, type SchemasApplyInput, type SchemasApplyOutput, type SchemasCreateError, type SchemasCreateInput, type SchemasCreateOutput, type SchemasDeleteError, type SchemasDeleteInput, type SchemasDeleteOutput, type SchemasGetError, type SchemasGetInput, type SchemasGetOutput, type SchemasGetRevisionError, type SchemasGetRevisionInput, type SchemasGetRevisionOutput, type SearchAskCurrentError, type SearchAskCurrentInput, type SearchAskCurrentOutput, type SearchAskCurrentStreamError, type SearchAskCurrentStreamInput, type SearchAskCurrentStreamOutput, type SearchAskPublishedError, type SearchAskPublishedInput, type SearchAskPublishedOutput, type SearchAskPublishedStreamError, type SearchAskPublishedStreamInput, type SearchAskPublishedStreamOutput, type SearchCurrentError, type SearchCurrentInput, type SearchCurrentOutput, type SearchPropertyValue, type SearchPublishedError, type SearchPublishedInput, type SearchPublishedOutput, type SearchResult, type SearchResults, type StructuredContent, type StructuredContentSource, type TextPropertyFilter, type UnpublishedEntriesResult, type UserProfile, type ValidationErrorData, type ValidationIssue, type VersionReason, type VersionsCreateError, type VersionsCreateInput, type VersionsCreateOutput, type VersionsGetError, type VersionsGetInput, type VersionsGetOutput, type VersionsListError, type VersionsListInput, type VersionsListOutput, type VersionsRevertError, type VersionsRevertInput, type VersionsRevertOutput, type VersionsUpdateError, type VersionsUpdateInput, type VersionsUpdateOutput, type components, createClient, type operations, paginate, paginatePages, type paths, toContentURL, toStructuredContent };
1
+ import { t as toContentSlug } from "./content-slug-C7CgtHmp.js";
2
+ 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, vn as paths, 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";
3
+ import { $ as ContentGetTreeError, $i as WebhooksListError, $n as RolesListError, $r as SearchCurrentError, $t as PublishingBulkPublishEntriesError, A as CollectionsBulkDeleteInput, Aa as ContentClient, Ai as WebhooksBulkRedeliverInput, An as PublishingPublishCollectionInput, Ar as SchemasCreateInput, At as MembershipsInviteInput, B as CollectionsListOutput, Ba as RequestOptions, Bi as WebhooksDeleteOutput, Bn as PublishingSetCollectionOutput, Br as SchemasGetRevisionOutput, Bt as MembershipsRemoveOutput, C as AssetsUploadError, Ca as AndesineStreamProtocolError, Ci as VersionsUpdateError, Cn as PublishingListChannelsError, Cr as SchemaVersionsUpdateError, Ct as EntriesUpdateError, D as AuthGetIdentityInput, Da as AndesineClient, Di as WebhooksBulkDeleteInput, Dn as PublishingListEntryPublicationsInput, Dr as SchemasApplyInput, Dt as InstanceGetInput, E as AuthGetIdentityError, Ea as toContentURL, Ei as WebhooksBulkDeleteError, En as PublishingListEntryPublicationsError, Er as SchemasApplyError, Et as InstanceGetError, F as CollectionsDeleteError, Fa as APIResponse, Fi as WebhooksCreateError, Fn as PublishingRevertChangesError, Fr as SchemasGetError, Ft as MembershipsListInvitesInput, G as ContentGetAssetInput, Ga as WorkspaceSchema, Gi as WebhooksGetInput, Gn as PublishingUnpublishEntryInput, Gr as SearchAskCurrentStreamInput, Gt as MembershipsRevokeInviteInput, H as CollectionsUpdateInput, Ha as SchemaContent, Hi as WebhooksGetDeliveryInput, Hn as PublishingUnpublishCollectionInput, Hr as SearchAskCurrentInput, Ht as MembershipsResendInviteInput, I as CollectionsDeleteInput, Ia as NotModifiedResponse, Ii as WebhooksCreateInput, In as PublishingRevertChangesInput, Ir as SchemasGetInput, It as MembershipsListInvitesOutput, J as ContentGetInput, Ji as WebhooksListAttemptsInput, Jn as RolesCreateInput, Jr as SearchAskPublishedInput, Jt as MembershipsUpdateInput, K as ContentGetAssetOutput, Ka as WorkspaceTypeMap, Ki as WebhooksGetOutput, Kn as PublishingUnpublishEntryOutput, Kr as SearchAskCurrentStreamOutput, Kt as MembershipsRevokeInviteOutput, L as CollectionsDeleteOutput, La as OperationError, Li as WebhooksCreateOutput, Ln as PublishingRevertChangesOutput, Lr as SchemasGetOutput, Lt as MembershipsListOutput, M as CollectionsCreateError, Ma as APIErrorBody, Mi as WebhooksBulkSetEnabledError, Mn as PublishingPublishEntryError, Mr as SchemasDeleteError, Mt as MembershipsListError, N as CollectionsCreateInput, Na as APIErrorCode, Ni as WebhooksBulkSetEnabledInput, Nn as PublishingPublishEntryInput, Nr as SchemasDeleteInput, Nt as MembershipsListInput, O as AuthGetIdentityOutput, Oa as ClientOptions, Oi as WebhooksBulkDeleteOutput, On as PublishingListEntryPublicationsOutput, Or as SchemasApplyOutput, Ot as InstanceGetOutput, P as CollectionsCreateOutput, Pa as APIErrorData, Pi as WebhooksBulkSetEnabledOutput, Pn as PublishingPublishEntryOutput, Pr as SchemasDeleteOutput, Pt as MembershipsListInvitesError, Q as ContentGetSchemaOutput, Qi as WebhooksListDeliveriesOutput, Qn as RolesDeleteOutput, Qr as SearchAskPublishedStreamOutput, Qt as PublishingBulkPublishCollectionsOutput, R as CollectionsListError, Ra as OperationInput, Ri as WebhooksDeleteError, Rn as PublishingSetCollectionError, Rr as SchemasGetRevisionError, Rt as MembershipsRemoveError, S as AssetsSearchOutput, Sa as AndesineStreamError, Si as VersionsRevertOutput, Sn as PublishingGetEntryVersionOutput, Sr as SchemaVersionsRevertOutput, St as EntriesListOutput, T as AssetsUploadOutput, Ta as ContentURLOptions, Ti as VersionsUpdateOutput, Tn as PublishingListChannelsOutput, Tr as SchemaVersionsUpdateOutput, Tt as EntriesUpdateOutput, U as CollectionsUpdateOutput, Ua as WorkspaceCollection, Ui as WebhooksGetDeliveryOutput, Un as PublishingUnpublishCollectionOutput, Ur as SearchAskCurrentOutput, Ut as MembershipsResendInviteOutput, V as CollectionsUpdateError, Va as ContentListOutput, Vi as WebhooksGetDeliveryError, Vn as PublishingUnpublishCollectionError, Vr as SearchAskCurrentError, Vt as MembershipsResendInviteError, W as ContentGetAssetError, Wa as WorkspaceEntry, Wi as WebhooksGetError, Wn as PublishingUnpublishEntryError, Wr as SearchAskCurrentStreamError, Wt as MembershipsRevokeInviteError, X as ContentGetSchemaError, Xi as WebhooksListDeliveriesError, Xn as RolesDeleteError, Xr as SearchAskPublishedStreamError, Xt as PublishingBulkPublishCollectionsError, Y as ContentGetOutput, Yi as WebhooksListAttemptsOutput, Yn as RolesCreateOutput, Yr as SearchAskPublishedOutput, Yt as MembershipsUpdateOutput, Z as ContentGetSchemaInput, Zi as WebhooksListDeliveriesInput, Zn as RolesDeleteInput, Zr as SearchAskPublishedStreamInput, Zt as PublishingBulkPublishCollectionsInput, _ as AssetsRegisterError, _a as WorkspacesListError, _i as VersionsListError, _n as PublishingGetChannelContentError, _r as SchemaVersionsListError, _t as EntriesGetError, a as PaginateOptions, aa as WebhooksRedeliverError, ai as TypeMetadataGetCurrentError, an as PublishingBulkUnpublishCollectionsError, ar as SchemaMigrationsGetActiveError, at as ContentListEntriesError, b as AssetsSearchError, ba as types_d_exports, bi as VersionsRevertError, bn as PublishingGetEntryVersionError, br as SchemaVersionsRevertError, bt as EntriesListError, c as AssetsAttachError, ca as WebhooksRotateSecretError, ci as TypeMetadataGetPublishedError, cn as PublishingBulkUnpublishEntriesError, cr as SchemaMigrationsGetError, ct as EntriesBulkDeleteError, d as AssetsGetError, da as WebhooksSendTestError, di as VersionsCreateError, dn as PublishingCreateChannelError, dr as SchemaMigrationsListContentLossEntriesError, dt as EntriesCreateError, ea as WebhooksListInput, ei as SearchCurrentInput, en as PublishingBulkPublishEntriesInput, er as RolesListInput, et as ContentGetTreeInput, f as AssetsGetInput, fa as WebhooksSendTestInput, fi as VersionsCreateInput, fn as PublishingCreateChannelInput, fr as SchemaMigrationsListContentLossEntriesInput, ft as EntriesCreateInput, g as AssetsImportURLOutput, ga as WebhooksUpdateOutput, gi as VersionsGetOutput, gn as PublishingDeleteChannelOutput, gr as SchemaVersionsGetOutput, gt as EntriesDeleteOutput, h as AssetsImportURLInput, ha as WebhooksUpdateInput, hi as VersionsGetInput, hn as PublishingDeleteChannelInput, hr as SchemaVersionsGetInput, ht as EntriesDeleteInput, i as Page, ia as WebhooksListRunsOutput, ii as SearchPublishedOutput, in as PublishingBulkSetCollectionsOutput, ir as RolesUpdateOutput, it as ContentListCollectionsOutput, j as CollectionsBulkDeleteOutput, ja as ContentPaginationOptions, ji as WebhooksBulkRedeliverOutput, jn as PublishingPublishCollectionOutput, jr as SchemasCreateOutput, jt as MembershipsInviteOutput, k as CollectionsBulkDeleteError, ka as createClient, ki as WebhooksBulkRedeliverError, kn as PublishingPublishCollectionError, kr as SchemasCreateError, kt as MembershipsInviteError, l as AssetsAttachInput, la as WebhooksRotateSecretInput, li as TypeMetadataGetPublishedInput, ln as PublishingBulkUnpublishEntriesInput, lr as SchemaMigrationsGetInput, lt as EntriesBulkDeleteInput, m as AssetsImportURLError, ma as WebhooksUpdateError, mi as VersionsGetError, mn as PublishingDeleteChannelError, mr as SchemaVersionsGetError, mt as EntriesDeleteError, n as StructuredContentSource, na as WebhooksListRunsError, ni as SearchPublishedError, nn as PublishingBulkSetCollectionsError, nr as RolesUpdateError, nt as ContentListCollectionsError, o as paginate, oa as WebhooksRedeliverInput, oi as TypeMetadataGetCurrentInput, on as PublishingBulkUnpublishCollectionsInput, or as SchemaMigrationsGetActiveInput, ot as ContentListEntriesInput, p as AssetsGetOutput, pa as WebhooksSendTestOutput, pi as VersionsCreateOutput, pn as PublishingCreateChannelOutput, pr as SchemaMigrationsListContentLossEntriesOutput, pt as EntriesCreateOutput, q as ContentGetError, qi as WebhooksListAttemptsError, qn as RolesCreateError, qr as SearchAskPublishedError, qt as MembershipsUpdateError, r as toStructuredContent, ra as WebhooksListRunsInput, ri as SearchPublishedInput, rn as PublishingBulkSetCollectionsInput, rr as RolesUpdateInput, rt as ContentListCollectionsInput, s as paginatePages, sa as WebhooksRedeliverOutput, si as TypeMetadataGetCurrentOutput, sn as PublishingBulkUnpublishCollectionsOutput, sr as SchemaMigrationsGetActiveOutput, st as ContentListEntriesOutput, t as StructuredContent, ta as WebhooksListOutput, ti as SearchCurrentOutput, tn as PublishingBulkPublishEntriesOutput, tr as RolesListOutput, tt as ContentGetTreeOutput, u as AssetsAttachOutput, ua as WebhooksRotateSecretOutput, ui as TypeMetadataGetPublishedOutput, un as PublishingBulkUnpublishEntriesOutput, ur as SchemaMigrationsGetOutput, ut as EntriesBulkDeleteOutput, v as AssetsRegisterInput, va as WorkspacesListInput, vi as VersionsListInput, vn as PublishingGetChannelContentInput, vr as SchemaVersionsListInput, vt as EntriesGetInput, w as AssetsUploadInput, wa as ContentLocation, wi as VersionsUpdateInput, wn as PublishingListChannelsInput, wr as SchemaVersionsUpdateInput, wt as EntriesUpdateInput, x as AssetsSearchInput, xa as AndesineAPIError, xi as VersionsRevertInput, xn as PublishingGetEntryVersionInput, xr as SchemaVersionsRevertInput, xt as EntriesListInput, y as AssetsRegisterOutput, ya as WorkspacesListOutput, yi as VersionsListOutput, yn as PublishingGetChannelContentOutput, yr as SchemaVersionsListOutput, yt as EntriesGetOutput, z as CollectionsListInput, za as OperationOutput, zi as WebhooksDeleteInput, zn as PublishingSetCollectionInput, zr as SchemasGetRevisionInput, zt as MembershipsRemoveInput } from "./index-moj3WP71.js";
4
+ export { type APIErrorBody, type APIErrorCode, type APIErrorData, type APIResponse, type types_d_exports as Andesine, AndesineAPIError, type AndesineClient, AndesineStreamError, AndesineStreamProtocolError, type Answer, type AnswerEvent, type AnswerHistoryMessage, type AnswerSource, type Asset, type AssetAnalysis, type AssetAnalysisStatus, type AssetConflictErrorData, type AssetFile, type AssetFileFormat, type AssetSearchResult, type AssetStatus, type AssetStorageErrorData, type AssetUploadRegistration, type AssetValidationErrorData, type AssetVariant, type AssetsAttachError, type AssetsAttachInput, type AssetsAttachOutput, type AssetsGetError, type AssetsGetInput, type AssetsGetOutput, type AssetsImportURLError, type AssetsImportURLInput, type AssetsImportURLOutput, type AssetsRegisterError, type AssetsRegisterInput, type AssetsRegisterOutput, type AssetsSearchError, type AssetsSearchInput, type AssetsSearchOutput, type AssetsUploadError, type AssetsUploadInput, type AssetsUploadOutput, type AuthGetIdentityError, type AuthGetIdentityInput, type AuthGetIdentityOutput, type BaseRole, type BooleanPropertyFilter, type ChannelContent, type ChannelContentCollection, type ChannelContentEntry, type ChannelContentStatus, type ClientOptions, type Collection, type CollectionSchema, type CollectionsBulkDeleteError, type CollectionsBulkDeleteInput, type CollectionsBulkDeleteOutput, type CollectionsCreateError, type CollectionsCreateInput, type CollectionsCreateOutput, type CollectionsDeleteError, type CollectionsDeleteInput, type CollectionsDeleteOutput, type CollectionsListError, type CollectionsListInput, type CollectionsListOutput, type CollectionsUpdateError, type CollectionsUpdateInput, type CollectionsUpdateOutput, type ComparisonOperator, type ContentClient, type ContentGetAssetError, type ContentGetAssetInput, type ContentGetAssetOutput, type ContentGetError, type ContentGetInput, type ContentGetOutput, type ContentGetSchemaError, type ContentGetSchemaInput, type ContentGetSchemaOutput, type ContentGetTreeError, type ContentGetTreeInput, type ContentGetTreeOutput, type ContentListCollectionsError, type ContentListCollectionsInput, type ContentListCollectionsOutput, type ContentListEntriesError, type ContentListEntriesInput, type ContentListEntriesOutput, type ContentListOutput, type ContentLocation, type ContentMark, type ContentMarkInput, type ContentNameConflictErrorData, type ContentNode, type ContentNodeInput, type ContentPaginationOptions, type ContentSchemaInvalidErrorData, type ContentSchemaIssue, type ContentSchemaMetadata, type ContentSchemaMismatchErrorData, type ContentURLOptions, type DatePropertyFilter, type EffectiveCollectionSchema, type EntriesBulkDeleteError, type EntriesBulkDeleteInput, type EntriesBulkDeleteOutput, type EntriesCreateError, type EntriesCreateInput, type EntriesCreateOutput, type EntriesDeleteError, type EntriesDeleteInput, type EntriesDeleteOutput, type EntriesGetError, type EntriesGetInput, type EntriesGetOutput, type EntriesListError, type EntriesListInput, type EntriesListOutput, type EntriesUpdateError, type EntriesUpdateInput, type EntriesUpdateOutput, type Entry, type EntryFragment, type EntryProperty, type EntryPropertyKind, type EntryPropertyValue, type EntryPublication, type EntryPublicationChannel, type EntrySummary, type EntryVersion, type EntryVersionSummary, type ErrorData, type ForbiddenErrorData, type Identity, type InstanceGetError, type InstanceGetInput, type InstanceGetOutput, type InstanceInfo, type Invite, type InviteDeliveryResult, type InvitePendingErrorData, type InviteStatus, type LocalCollectionSchema, type Membership, type MembershipExistsErrorData, type MembershipInviteResult, type MembershipsInviteError, type MembershipsInviteInput, type MembershipsInviteOutput, type MembershipsListError, type MembershipsListInput, type MembershipsListInvitesError, type MembershipsListInvitesInput, type MembershipsListInvitesOutput, type MembershipsListOutput, type MembershipsRemoveError, type MembershipsRemoveInput, type MembershipsRemoveOutput, type MembershipsResendInviteError, type MembershipsResendInviteInput, type MembershipsResendInviteOutput, type MembershipsRevokeInviteError, type MembershipsRevokeInviteInput, type MembershipsRevokeInviteOutput, type MembershipsUpdateError, type MembershipsUpdateInput, type MembershipsUpdateOutput, type NotModifiedResponse, type NumberPropertyFilter, type OperationError, type OperationInput, type OperationOutput, type Page, type PaginateOptions, type Pagination, type Permission, type PropertyFilter, type PublishEntryTarget, type PublishedAnswer, type PublishedAnswerEvent, type PublishedAnswerSource, type PublishedAsset, type PublishedCollection, type PublishedCollectionSummary, type PublishedContent, type PublishedEntriesResult, type PublishedEntry, type PublishedEntryContent, type PublishedEntrySummary, type PublishedSearchResult, type PublishedTree, type PublishedVersion, type PublishingBulkPublishCollectionsError, type PublishingBulkPublishCollectionsInput, type PublishingBulkPublishCollectionsOutput, type PublishingBulkPublishEntriesError, type PublishingBulkPublishEntriesInput, type PublishingBulkPublishEntriesOutput, type PublishingBulkSetCollectionsError, type PublishingBulkSetCollectionsInput, type PublishingBulkSetCollectionsOutput, type PublishingBulkUnpublishCollectionsError, type PublishingBulkUnpublishCollectionsInput, type PublishingBulkUnpublishCollectionsOutput, type PublishingBulkUnpublishEntriesError, type PublishingBulkUnpublishEntriesInput, type PublishingBulkUnpublishEntriesOutput, type PublishingChannel, type PublishingChannelCode, type PublishingChannelListItem, type PublishingCreateChannelError, type PublishingCreateChannelInput, type PublishingCreateChannelOutput, type PublishingDeleteChannelError, type PublishingDeleteChannelInput, type PublishingDeleteChannelOutput, type PublishingGetChannelContentError, type PublishingGetChannelContentInput, type PublishingGetChannelContentOutput, type PublishingGetEntryVersionError, type PublishingGetEntryVersionInput, type PublishingGetEntryVersionOutput, type PublishingListChannelsError, type PublishingListChannelsInput, type PublishingListChannelsOutput, type PublishingListEntryPublicationsError, type PublishingListEntryPublicationsInput, type PublishingListEntryPublicationsOutput, type PublishingPublishCollectionError, type PublishingPublishCollectionInput, type PublishingPublishCollectionOutput, type PublishingPublishEntryError, type PublishingPublishEntryInput, type PublishingPublishEntryOutput, type PublishingRevertChangesError, type PublishingRevertChangesInput, type PublishingRevertChangesOutput, type PublishingSetCollectionError, type PublishingSetCollectionInput, type PublishingSetCollectionOutput, type PublishingSnapshotErrorData, type PublishingUnpublishCollectionError, type PublishingUnpublishCollectionInput, type PublishingUnpublishCollectionOutput, type PublishingUnpublishEntryError, type PublishingUnpublishEntryInput, type PublishingUnpublishEntryOutput, type RateLimitErrorData, type RequestOptions, type ResolvedSchemaDefinition, type ResolvedSchemaField, type RevertPublishingChangesResult, type Role, type RolesCreateError, type RolesCreateInput, type RolesCreateOutput, type RolesDeleteError, type RolesDeleteInput, type RolesDeleteOutput, type RolesListError, type RolesListInput, type RolesListOutput, type RolesUpdateError, type RolesUpdateInput, type RolesUpdateOutput, type SchemaApplicationResult, type SchemaBlockType, type SchemaContent, type SchemaDefinition, type SchemaDraftDefinition, type SchemaField, type SchemaFieldKeyConflictErrorData, type SchemaFieldSource, type SchemaFragment, type SchemaMigration, type SchemaMigrationContentLossEntry, type SchemaMigrationErrorData, type SchemaMigrationStatus, type SchemaMigrationsGetActiveError, type SchemaMigrationsGetActiveInput, type SchemaMigrationsGetActiveOutput, type SchemaMigrationsGetError, type SchemaMigrationsGetInput, type SchemaMigrationsGetOutput, type SchemaMigrationsListContentLossEntriesError, type SchemaMigrationsListContentLossEntriesInput, type SchemaMigrationsListContentLossEntriesOutput, type SchemaProperty, type SchemaPropertyValue, type SchemaRevision, type SchemaVersion, type SchemaVersionSummary, type SchemaVersionsGetError, type SchemaVersionsGetInput, type SchemaVersionsGetOutput, type SchemaVersionsListError, type SchemaVersionsListInput, type SchemaVersionsListOutput, type SchemaVersionsRevertError, type SchemaVersionsRevertInput, type SchemaVersionsRevertOutput, type SchemaVersionsUpdateError, type SchemaVersionsUpdateInput, type SchemaVersionsUpdateOutput, type SchemasApplyError, type SchemasApplyInput, type SchemasApplyOutput, type SchemasCreateError, type SchemasCreateInput, type SchemasCreateOutput, type SchemasDeleteError, type SchemasDeleteInput, type SchemasDeleteOutput, type SchemasGetError, type SchemasGetInput, type SchemasGetOutput, type SchemasGetRevisionError, type SchemasGetRevisionInput, type SchemasGetRevisionOutput, type SearchAskCurrentError, type SearchAskCurrentInput, type SearchAskCurrentOutput, type SearchAskCurrentStreamError, type SearchAskCurrentStreamInput, type SearchAskCurrentStreamOutput, type SearchAskPublishedError, type SearchAskPublishedInput, type SearchAskPublishedOutput, type SearchAskPublishedStreamError, type SearchAskPublishedStreamInput, type SearchAskPublishedStreamOutput, type SearchCurrentError, type SearchCurrentInput, type SearchCurrentOutput, type SearchPropertyValue, type SearchPublishedError, type SearchPublishedInput, type SearchPublishedOutput, type SearchResult, type SearchResults, type StructuredContent, type StructuredContentSource, type TextPropertyFilter, type TypeMetadata, type TypeMetadataCollection, type TypeMetadataEntry, type TypeMetadataGetCurrentError, type TypeMetadataGetCurrentInput, type TypeMetadataGetCurrentOutput, type TypeMetadataGetPublishedError, type TypeMetadataGetPublishedInput, type TypeMetadataGetPublishedOutput, type TypeMetadataTree, type UnpublishedEntriesResult, type UserProfile, type ValidationErrorData, type ValidationIssue, type VersionReason, type VersionsCreateError, type VersionsCreateInput, type VersionsCreateOutput, type VersionsGetError, type VersionsGetInput, type VersionsGetOutput, type VersionsListError, type VersionsListInput, type VersionsListOutput, type VersionsRevertError, type VersionsRevertInput, type VersionsRevertOutput, type VersionsUpdateError, type VersionsUpdateInput, type VersionsUpdateOutput, type WebhookAttempt, type WebhookDelivery, type WebhookEndpoint, type WebhookEvent, type WebhookEventName, type WebhookRun, type WebhooksBulkDeleteError, type WebhooksBulkDeleteInput, type WebhooksBulkDeleteOutput, type WebhooksBulkRedeliverError, type WebhooksBulkRedeliverInput, type WebhooksBulkRedeliverOutput, type WebhooksBulkSetEnabledError, type WebhooksBulkSetEnabledInput, type WebhooksBulkSetEnabledOutput, type WebhooksCreateError, type WebhooksCreateInput, type WebhooksCreateOutput, type WebhooksDeleteError, type WebhooksDeleteInput, type WebhooksDeleteOutput, type WebhooksGetDeliveryError, type WebhooksGetDeliveryInput, type WebhooksGetDeliveryOutput, type WebhooksGetError, type WebhooksGetInput, type WebhooksGetOutput, type WebhooksListAttemptsError, type WebhooksListAttemptsInput, type WebhooksListAttemptsOutput, type WebhooksListDeliveriesError, type WebhooksListDeliveriesInput, type WebhooksListDeliveriesOutput, type WebhooksListError, type WebhooksListInput, type WebhooksListOutput, type WebhooksListRunsError, type WebhooksListRunsInput, type WebhooksListRunsOutput, type WebhooksRedeliverError, type WebhooksRedeliverInput, type WebhooksRedeliverOutput, type WebhooksRotateSecretError, type WebhooksRotateSecretInput, type WebhooksRotateSecretOutput, type WebhooksSendTestError, type WebhooksSendTestInput, type WebhooksSendTestOutput, type WebhooksUpdateError, type WebhooksUpdateInput, type WebhooksUpdateOutput, type WorkspaceCollection, type WorkspaceEntry, type WorkspaceListItem, type WorkspaceSchema, type WorkspaceTypeMap, type WorkspacesListError, type WorkspacesListInput, type WorkspacesListOutput, type components, createClient, type operations, paginate, paginatePages, type paths, toContentSlug, toContentURL, toStructuredContent };
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { i as AndesineStreamProtocolError, n as AndesineAPIError, r as AndesineStreamError, t as createAnswerStream } from "./answer-stream-7N_gLhVS.js";
2
+ import { toContentSlug } from "./content-slug.js";
2
3
  import createFetchClient from "openapi-fetch";
3
4
  //#region src/paginate.ts
4
5
  /**
@@ -165,6 +166,16 @@ const createResources = (request) => ({
165
166
  anonymous: false
166
167
  })
167
168
  },
169
+ auth: { getIdentity: operation(request, {
170
+ method: "get",
171
+ path: "/identity",
172
+ pathParams: [],
173
+ queryParams: [],
174
+ body: false,
175
+ multipart: false,
176
+ binary: false,
177
+ anonymous: false
178
+ }) },
168
179
  instance: { get: operation(request, {
169
180
  method: "get",
170
181
  path: "/instance",
@@ -223,6 +234,7 @@ const createResources = (request) => ({
223
234
  queryParams: [
224
235
  "id",
225
236
  "path",
237
+ "slugPath",
226
238
  "expectedSchemaHash"
227
239
  ],
228
240
  body: false,
@@ -237,6 +249,7 @@ const createResources = (request) => ({
237
249
  queryParams: [
238
250
  "collectionID",
239
251
  "collectionPath",
252
+ "collectionSlugPath",
240
253
  "cursor",
241
254
  "limit"
242
255
  ],
@@ -294,6 +307,7 @@ const createResources = (request) => ({
294
307
  queryParams: [
295
308
  "collectionID",
296
309
  "collectionPath",
310
+ "collectionSlugPath",
297
311
  "cursor",
298
312
  "limit"
299
313
  ],
@@ -313,6 +327,7 @@ const createResources = (request) => ({
313
327
  "limit",
314
328
  "collectionID",
315
329
  "collectionPath",
330
+ "collectionSlugPath",
316
331
  "channel",
317
332
  "snapshotID"
318
333
  ],
@@ -330,6 +345,7 @@ const createResources = (request) => ({
330
345
  "limit",
331
346
  "collectionID",
332
347
  "collectionPath",
348
+ "collectionSlugPath",
333
349
  "channel",
334
350
  "snapshotID",
335
351
  "descendants",
@@ -348,6 +364,7 @@ const createResources = (request) => ({
348
364
  queryParams: [
349
365
  "entryID",
350
366
  "path",
367
+ "slugPath",
351
368
  "channel",
352
369
  "snapshotID"
353
370
  ],
@@ -379,6 +396,7 @@ const createResources = (request) => ({
379
396
  queryParams: [
380
397
  "entryID",
381
398
  "path",
399
+ "slugPath",
382
400
  "expectedSchemaHash",
383
401
  "channel",
384
402
  "snapshotID"
@@ -395,6 +413,7 @@ const createResources = (request) => ({
395
413
  queryParams: [
396
414
  "collectionID",
397
415
  "collectionPath",
416
+ "collectionSlugPath",
398
417
  "channel",
399
418
  "snapshotID"
400
419
  ],
@@ -404,6 +423,169 @@ const createResources = (request) => ({
404
423
  anonymous: false
405
424
  })
406
425
  },
426
+ webhooks: {
427
+ list: operation(request, {
428
+ method: "get",
429
+ path: "/webhooks",
430
+ pathParams: [],
431
+ queryParams: ["cursor", "limit"],
432
+ body: false,
433
+ multipart: false,
434
+ binary: false,
435
+ anonymous: false
436
+ }),
437
+ create: operation(request, {
438
+ method: "post",
439
+ path: "/webhooks",
440
+ pathParams: [],
441
+ queryParams: [],
442
+ body: true,
443
+ multipart: false,
444
+ binary: false,
445
+ anonymous: false
446
+ }),
447
+ get: operation(request, {
448
+ method: "get",
449
+ path: "/webhooks/{id}",
450
+ pathParams: ["id"],
451
+ queryParams: [],
452
+ body: false,
453
+ multipart: false,
454
+ binary: false,
455
+ anonymous: false
456
+ }),
457
+ update: operation(request, {
458
+ method: "put",
459
+ path: "/webhooks/{id}",
460
+ pathParams: ["id"],
461
+ queryParams: [],
462
+ body: true,
463
+ multipart: false,
464
+ binary: false,
465
+ anonymous: false
466
+ }),
467
+ delete: operation(request, {
468
+ method: "delete",
469
+ path: "/webhooks/{id}",
470
+ pathParams: ["id"],
471
+ queryParams: [],
472
+ body: true,
473
+ multipart: false,
474
+ binary: false,
475
+ anonymous: false
476
+ }),
477
+ bulkSetEnabled: operation(request, {
478
+ method: "post",
479
+ path: "/webhooks/bulk/set-enabled",
480
+ pathParams: [],
481
+ queryParams: [],
482
+ body: true,
483
+ multipart: false,
484
+ binary: false,
485
+ anonymous: false
486
+ }),
487
+ bulkDelete: operation(request, {
488
+ method: "post",
489
+ path: "/webhooks/bulk/delete",
490
+ pathParams: [],
491
+ queryParams: [],
492
+ body: true,
493
+ multipart: false,
494
+ binary: false,
495
+ anonymous: false
496
+ }),
497
+ rotateSecret: operation(request, {
498
+ method: "post",
499
+ path: "/webhooks/{id}/rotate-secret",
500
+ pathParams: ["id"],
501
+ queryParams: [],
502
+ body: true,
503
+ multipart: false,
504
+ binary: false,
505
+ anonymous: false
506
+ }),
507
+ sendTest: operation(request, {
508
+ method: "post",
509
+ path: "/webhooks/{id}/test",
510
+ pathParams: ["id"],
511
+ queryParams: [],
512
+ body: true,
513
+ multipart: false,
514
+ binary: false,
515
+ anonymous: false
516
+ }),
517
+ listDeliveries: operation(request, {
518
+ method: "get",
519
+ path: "/webhooks/{id}/deliveries",
520
+ pathParams: ["id"],
521
+ queryParams: [
522
+ "cursor",
523
+ "limit",
524
+ "type",
525
+ "state",
526
+ "createdAfter",
527
+ "createdBefore"
528
+ ],
529
+ body: false,
530
+ multipart: false,
531
+ binary: false,
532
+ anonymous: false
533
+ }),
534
+ getDelivery: operation(request, {
535
+ method: "get",
536
+ path: "/webhooks/{id}/deliveries/{deliveryID}",
537
+ pathParams: ["id", "deliveryID"],
538
+ queryParams: [],
539
+ body: false,
540
+ multipart: false,
541
+ binary: false,
542
+ anonymous: false
543
+ }),
544
+ listRuns: operation(request, {
545
+ method: "get",
546
+ path: "/webhooks/{id}/deliveries/{deliveryID}/runs",
547
+ pathParams: ["id", "deliveryID"],
548
+ queryParams: ["cursor", "limit"],
549
+ body: false,
550
+ multipart: false,
551
+ binary: false,
552
+ anonymous: false
553
+ }),
554
+ listAttempts: operation(request, {
555
+ method: "get",
556
+ path: "/webhooks/{id}/deliveries/{deliveryID}/runs/{runID}/attempts",
557
+ pathParams: [
558
+ "id",
559
+ "deliveryID",
560
+ "runID"
561
+ ],
562
+ queryParams: ["cursor", "limit"],
563
+ body: false,
564
+ multipart: false,
565
+ binary: false,
566
+ anonymous: false
567
+ }),
568
+ redeliver: operation(request, {
569
+ method: "post",
570
+ path: "/webhooks/{id}/deliveries/{deliveryID}/redeliver",
571
+ pathParams: ["id", "deliveryID"],
572
+ queryParams: [],
573
+ body: true,
574
+ multipart: false,
575
+ binary: false,
576
+ anonymous: false
577
+ }),
578
+ bulkRedeliver: operation(request, {
579
+ method: "post",
580
+ path: "/webhooks/{id}/deliveries/bulk/redeliver",
581
+ pathParams: ["id"],
582
+ queryParams: [],
583
+ body: true,
584
+ multipart: false,
585
+ binary: false,
586
+ anonymous: false
587
+ })
588
+ },
407
589
  roles: {
408
590
  list: operation(request, {
409
591
  method: "get",
@@ -545,7 +727,11 @@ const createResources = (request) => ({
545
727
  method: "get",
546
728
  path: "/schemas/collection",
547
729
  pathParams: [],
548
- queryParams: ["collectionID", "collectionPath"],
730
+ queryParams: [
731
+ "collectionID",
732
+ "collectionPath",
733
+ "collectionSlugPath"
734
+ ],
549
735
  body: false,
550
736
  multipart: false,
551
737
  binary: false,
@@ -884,6 +1070,16 @@ const createResources = (request) => ({
884
1070
  anonymous: false
885
1071
  })
886
1072
  },
1073
+ workspaces: { list: operation(request, {
1074
+ method: "get",
1075
+ path: "/workspaces",
1076
+ pathParams: [],
1077
+ queryParams: [],
1078
+ body: false,
1079
+ multipart: false,
1080
+ binary: false,
1081
+ anonymous: false
1082
+ }) },
887
1083
  versions: {
888
1084
  create: operation(request, {
889
1085
  method: "post",
@@ -935,6 +1131,28 @@ const createResources = (request) => ({
935
1131
  binary: false,
936
1132
  anonymous: false
937
1133
  })
1134
+ },
1135
+ typeMetadata: {
1136
+ getCurrent: operation(request, {
1137
+ method: "post",
1138
+ path: "/type-metadata/current",
1139
+ pathParams: [],
1140
+ queryParams: [],
1141
+ body: true,
1142
+ multipart: false,
1143
+ binary: false,
1144
+ anonymous: false
1145
+ }),
1146
+ getPublished: operation(request, {
1147
+ method: "post",
1148
+ path: "/type-metadata/published",
1149
+ pathParams: [],
1150
+ queryParams: [],
1151
+ body: true,
1152
+ multipart: false,
1153
+ binary: false,
1154
+ anonymous: false
1155
+ })
938
1156
  }
939
1157
  });
940
1158
  //#endregion
@@ -992,11 +1210,13 @@ const fetchWithRetries = async (fetcher, request, retries) => {
992
1210
  *
993
1211
  * Methods return response data by default. Use response: "full" for status and headers,
994
1212
  * including conditional reads that can return 304. Creation does not make a request.
1213
+ * An optional Workspace type map narrows known content selectors at compile time only.
1214
+ * It does not choose credentials, a workspace, a channel, or a snapshot, or check response schemas.
995
1215
  * @param config - Optional API root, credentials, transport, and request defaults.
996
1216
  * Defaults to https://api.andesine.app and process.env.ANDESINE_API_KEY when available.
997
1217
  * Runtimes without process.env use no default key. No environment files are loaded.
998
1218
  * @returns API resources and helpers for published-content snapshots and pagination.
999
- * @throws TypeError if baseURL is not HTTP(S) or includes credentials, a query, or a fragment.
1219
+ * @throws TypeError if both credential options are set, or if baseURL is not HTTP(S) or includes credentials, a query, or a fragment.
1000
1220
  * Request failures throw AndesineAPIError; abort and timeout reasons are preserved.
1001
1221
  * @example
1002
1222
  * const client = createClient();
@@ -1004,9 +1224,10 @@ const fetchWithRetries = async (fetcher, request, retries) => {
1004
1224
  */
1005
1225
  const createClient = (config = {}) => {
1006
1226
  const baseURL = (config.baseURL ?? "https://api.andesine.app").replace(/\/+$/, "");
1007
- const apiKey = config.apiKey ?? globalThis.process?.env?.ANDESINE_API_KEY;
1227
+ const credential = config.accessToken ?? config.apiKey ?? globalThis.process?.env?.ANDESINE_API_KEY;
1008
1228
  const url = new URL(baseURL);
1009
1229
  const fetcher = config.fetch ?? globalThis.fetch;
1230
+ if (config.accessToken !== void 0 && config.apiKey !== void 0) throw new TypeError("Use either accessToken or apiKey, not both");
1010
1231
  if (!["http:", "https:"].includes(url.protocol) || url.search || url.hash || url.username || url.password) throw new TypeError("baseURL must be an HTTP(S) URL without credentials, query, or fragment");
1011
1232
  const request = async (definition, input, options = {}) => {
1012
1233
  const controller = new AbortController();
@@ -1026,7 +1247,7 @@ const createClient = (config = {}) => {
1026
1247
  for (const key of definition.pathParams) if (input[key] === void 0 || input[key] === null) throw new TypeError(`Missing path parameter: ${key}`);
1027
1248
  new Headers(options.headers).forEach((value, key) => headers.set(key, value));
1028
1249
  if (definition.streaming && !headers.has("Accept")) headers.set("Accept", "text/event-stream");
1029
- if (apiKey && !definition.anonymous) headers.set("Authorization", `Bearer ${apiKey}`);
1250
+ if (credential && !definition.anonymous) headers.set("Authorization", `Bearer ${credential}`);
1030
1251
  const timer = timeout > 0 ? setTimeout(() => controller.abort(new DOMException("Request timed out", "TimeoutError")), timeout) : void 0;
1031
1252
  let streamOwnsRequest = false;
1032
1253
  try {
@@ -1107,31 +1328,36 @@ const createClient = (config = {}) => {
1107
1328
  /**
1108
1329
  * Convert a canonical Andesine path or search/citation location to a website URL.
1109
1330
  *
1110
- * Encodes each decoded path segment and anchor without changing case or deriving slugs.
1331
+ * Uses the API slugPath when supplied, or derives slugs from decoded names.
1332
+ * Set format to "name" to preserve names. Heading anchors are encoded without slug conversion.
1111
1333
  * This is a pure function: it does not resolve IDs, fetch content, or pin a snapshot.
1112
- * @param source - An absolute decoded path (starting with /), or an object with path and anchor.
1334
+ * @param source - An absolute decoded path, or an API location with path, slugPath, and optional anchor.
1113
1335
  * Collection-ID-relative selectors must first be resolved through the API to a canonical path.
1114
1336
  * @param options - Source collection root and destination URL prefix.
1115
1337
  * @returns A root-relative URL by default, or an absolute URL when baseURL is absolute.
1116
1338
  * The source root itself maps to the destination root without adding a trailing slash.
1117
- * @throws TypeError for invalid paths, a source outside rootPath, or an invalid baseURL.
1339
+ * @throws TypeError for invalid paths, a source outside rootPath, an invalid baseURL,
1340
+ * or a symbol-only name without an API slugPath. Pass the API object for ID fallbacks.
1118
1341
  * @example
1119
1342
  * toContentURL({ path: "/Docs/Getting started", anchor: "install" }, {
1120
1343
  * rootPath: "/Docs", baseURL: "/docs"
1121
- * }); // "/docs/Getting%20started#install"
1344
+ * }); // "/docs/getting-started#install"
1122
1345
  */
1123
1346
  const toContentURL = (source, options = {}) => {
1124
1347
  const location = typeof source === "string" ? { path: source } : source;
1125
1348
  const segments = contentPathSegments(location.path);
1349
+ const useSlugs = options.format !== "name";
1350
+ const outputSegments = useSlugs ? location.slugPath ? contentPathSegments(location.slugPath) : segments.map((segment) => toContentSlug(segment)) : segments;
1126
1351
  const root = contentPathSegments(options.rootPath ?? "/");
1127
- const outsideRoot = root.some((segment, index) => segments[index] !== segment);
1352
+ const outsideRoot = root.some((segment, index) => segments[index] !== segment && (!useSlugs || outputSegments[index] !== toContentSlug(segment)));
1128
1353
  const baseURL = options.baseURL ?? "/";
1129
1354
  const relative = baseURL.startsWith("/") && !baseURL.startsWith("//");
1130
1355
  const url = new URL(baseURL, relative ? "https://andesine.invalid" : void 0);
1131
1356
  const invalidBase = !["http:", "https:"].includes(url.protocol) || Boolean(url.search || url.hash || url.username || url.password) || baseURL.includes("\\");
1357
+ if (outputSegments.length !== segments.length) throw new TypeError("path and slugPath must have the same number of segments");
1132
1358
  if (outsideRoot) throw new TypeError("Content path is outside rootPath");
1133
1359
  if (invalidBase) throw new TypeError("baseURL must be a root-relative or HTTP(S) URL without credentials, query, or fragment");
1134
- const suffix = segments.slice(root.length).map(encodeURIComponent).join("/");
1360
+ const suffix = outputSegments.slice(root.length).map(encodeURIComponent).join("/");
1135
1361
  const prefix = url.pathname.replace(/\/+$/, "");
1136
1362
  url.pathname = (suffix ? `${prefix}/${suffix}` : prefix) || "/";
1137
1363
  url.hash = location.anchor ? encodeURIComponent(location.anchor) : "";
@@ -1150,7 +1376,7 @@ const contentPathSegments = (path) => {
1150
1376
  * @param page - Full entry content with properties and fragments, including published list items.
1151
1377
  * @returns A new object with property.value and fragment.content exposed by key. Other fields,
1152
1378
  * including schema metadata and assets, are preserved. Nested content is shared, not cloned.
1153
- * This helper does not validate content, convert formats, or infer collection-specific types.
1379
+ * Workspace field types and revision unions are preserved. This helper does not validate content or convert formats.
1154
1380
  * @example
1155
1381
  * const tutorial = toStructuredContent(page);
1156
1382
  * const body = tutorial.fragments.body;
@@ -1158,10 +1384,10 @@ const contentPathSegments = (path) => {
1158
1384
  */
1159
1385
  const toStructuredContent = (page) => ({
1160
1386
  ...page,
1161
- properties: Object.fromEntries(Object.entries(page.properties).map(([key, property]) => [key, property.value])),
1162
- fragments: Object.fromEntries(Object.entries(page.fragments).map(([key, fragment]) => [key, fragment.content]))
1387
+ properties: Object.fromEntries(Object.entries(page.properties).map(([key, property]) => [key, property?.value])),
1388
+ fragments: Object.fromEntries(Object.entries(page.fragments).map(([key, fragment]) => [key, fragment?.content]))
1163
1389
  });
1164
1390
  //#endregion
1165
- export { AndesineAPIError, AndesineStreamError, AndesineStreamProtocolError, createClient, paginate, paginatePages, toContentURL, toStructuredContent };
1391
+ export { AndesineAPIError, AndesineStreamError, AndesineStreamProtocolError, createClient, paginate, paginatePages, toContentSlug, toContentURL, toStructuredContent };
1166
1392
 
1167
1393
  //# sourceMappingURL=index.js.map