@shapio/client 0.4.1 → 0.5.1
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-BBgz21.d.ts → index-BWuxc5nS.d.ts} +136 -17
- package/dist/index.d.ts +2 -2
- package/dist/index.js +136 -20
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
import { DEFAULT_SEO_KEYS, ResolveSeoContext, SEO_COMPONENT_ID, SEO_FIELD_IDS, SeoDefaults, SeoKeys, SeoLocaleDefaults, SeoLocaleDefaults as SeoLocaleDefaults$1, applyTitleTemplate, resolveSeo, seoDefaultsForLocale } from "@shapio/schema/seo";
|
|
2
2
|
import { ChangeSummary, ClassifiedChange, DefinitionInput, ExportedDefinition, LocaleDefinition, LockFile, SchemaChange, SchemaDefinition, SyncDecision, ValidationIssue } from "@shapio/schema";
|
|
3
|
+
//#region src/nextCache.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Next.js data-cache support for delivery reads. Under Next (`process.env.NEXT_RUNTIME` is set) or when the
|
|
6
|
+
* client is given a `next` option, every delivery read passes `next: { tags }` to `fetch`, so a site can
|
|
7
|
+
* refresh exactly what changed with `revalidateTag`. The cache mode is only set when asked for, except that a
|
|
8
|
+
* read pinned to a publication snapshot is immutable and always `force-cache`, and a drafts-mode read is never
|
|
9
|
+
* cached or tagged (`no-store`). Elsewhere nothing is added.
|
|
10
|
+
*/
|
|
11
|
+
/** Next's `fetch` cache modes the client passes through. */
|
|
12
|
+
type NextCacheMode = 'force-cache' | 'no-store';
|
|
13
|
+
type NextCacheOptions = {
|
|
14
|
+
/** Next's `fetch` `cache` option. Unset: Next's own default, except pinned snapshot reads (`force-cache`). */
|
|
15
|
+
cache?: NextCacheMode;
|
|
16
|
+
/** Seconds a cached response stays fresh (`next.revalidate`); `false` keeps it until a tag is revalidated. */
|
|
17
|
+
revalidate?: number | false;
|
|
18
|
+
};
|
|
19
|
+
/** The last argument of every delivery read: overrides the client's `next` option; `false` adds nothing. */
|
|
20
|
+
type DeliveryReadOptions = {
|
|
21
|
+
next?: NextCacheOptions | false;
|
|
22
|
+
};
|
|
23
|
+
/** What a delivery read adds to its `fetch` init. */
|
|
24
|
+
type NextFetchInit = {
|
|
25
|
+
cache?: NextCacheMode;
|
|
26
|
+
next?: {
|
|
27
|
+
tags: string[];
|
|
28
|
+
revalidate?: number | false;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The cache tags delivery reads carry (`revalidateTag(shapioTags.entry('articles', id), { expire: 0 })`).
|
|
33
|
+
* Models are named by their route key: a collection's plural API ID, a singleton's API ID.
|
|
34
|
+
*/
|
|
35
|
+
declare const shapioTags: {
|
|
36
|
+
/** Every delivery read of the site; `shapio:site` when the client names no site. */
|
|
37
|
+
readonly site: (siteKey?: string) => string;
|
|
38
|
+
/** Every read of one model (lists, singletons and its entries). */
|
|
39
|
+
readonly model: (routeKey: string) => string;
|
|
40
|
+
/** Reads of one entry by its ID. */
|
|
41
|
+
readonly entry: (routeKey: string, entryId: string) => string;
|
|
42
|
+
};
|
|
43
|
+
/** What every delivery read needs to tag itself: the client's site, `next` option and drafts mode. */
|
|
44
|
+
type DeliveryCacheContext = {
|
|
45
|
+
site: string | undefined;
|
|
46
|
+
next: NextCacheOptions | false | undefined;
|
|
47
|
+
/** Drafts mode (`drafts: true`): reads ask for drafts, which are never cached. */
|
|
48
|
+
drafts: boolean;
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
3
51
|
//#region src/request.d.ts
|
|
4
52
|
/** Fetch's `credentials` mode (spelled out: the DOM lib type is not available to Node consumers). */
|
|
5
53
|
type FetchCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -7,7 +55,7 @@ type RequestOptions = {
|
|
|
7
55
|
method?: string;
|
|
8
56
|
body?: unknown;
|
|
9
57
|
signal?: AbortSignal;
|
|
10
|
-
};
|
|
58
|
+
} & NextFetchInit;
|
|
11
59
|
type RequestFn = <T>(path: string, options?: RequestOptions) => Promise<T>;
|
|
12
60
|
//#endregion
|
|
13
61
|
//#region src/admin/contentTypes.d.ts
|
|
@@ -213,6 +261,8 @@ type DeliveryGetQuery = Pick<DeliveryListQuery, 'locale' | 'fields' | 'populate'
|
|
|
213
261
|
type DeliveryMeta = {
|
|
214
262
|
locale: string;
|
|
215
263
|
snapshot: number;
|
|
264
|
+
/** Drafts mode reads only (`publicationState=draft`); published responses carry no such member. */
|
|
265
|
+
publicationState?: 'draft';
|
|
216
266
|
};
|
|
217
267
|
type DeliveryPagination = {
|
|
218
268
|
page: number;
|
|
@@ -1208,6 +1258,12 @@ type AdminUser = {
|
|
|
1208
1258
|
};
|
|
1209
1259
|
declare const CONTENT_ACTIONS: readonly ["read", "create", "update", "delete", "publish", "schemaManage"];
|
|
1210
1260
|
type ContentAction = (typeof CONTENT_ACTIONS)[number];
|
|
1261
|
+
/**
|
|
1262
|
+
* What a delivery role grants: `read`, and `readDrafts` (drafts mode: the token's site may read drafts with
|
|
1263
|
+
* `publicationState=draft`). `readDrafts` always covers every model and is never granted to admin roles.
|
|
1264
|
+
*/
|
|
1265
|
+
declare const DELIVERY_ACTIONS: readonly ["read", "readDrafts"];
|
|
1266
|
+
type DeliveryAction = (typeof DELIVERY_ACTIONS)[number];
|
|
1211
1267
|
/**
|
|
1212
1268
|
* Network actions: about the whole instance. Only roles assigned on every site grant them, so a role held
|
|
1213
1269
|
* on one site never reaches the network.
|
|
@@ -1220,7 +1276,7 @@ type SiteAction = (typeof SITE_ACTIONS)[number];
|
|
|
1220
1276
|
/** Actions not scoped to a model: network actions and site actions. */
|
|
1221
1277
|
declare const GLOBAL_ACTIONS: readonly ["schema.create", "users.manage", "roles.manage", "tokens.manage", "audit.read", "sites.manage", "media.read", "media.write", "media.manage", "publishing.manage", "webhooks.manage", "deployments.manage", "deployments.trigger", "changes.manage", "changes.ship", "site.settings"];
|
|
1222
1278
|
type GlobalAction = (typeof GLOBAL_ACTIONS)[number];
|
|
1223
|
-
type PermissionAction = ContentAction | GlobalAction;
|
|
1279
|
+
type PermissionAction = ContentAction | DeliveryAction | GlobalAction;
|
|
1224
1280
|
type RoleSummary = {
|
|
1225
1281
|
id: string;
|
|
1226
1282
|
key: string;
|
|
@@ -1791,8 +1847,22 @@ type ShapioClientOptions = {
|
|
|
1791
1847
|
* ever reads its own site: naming another one is refused (403 `SITE_MISMATCH`).
|
|
1792
1848
|
*/
|
|
1793
1849
|
site?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* Next.js data-cache options for delivery reads (`delivery.*`, `site.get`), e.g. `{ cache: 'force-cache' }`.
|
|
1852
|
+
* Under Next the reads are tagged for `revalidateTag` whether or not this is set; the cache mode is only
|
|
1853
|
+
* passed when asked for, and reads pinned to a snapshot are always `force-cache`. Set it outside Next to send
|
|
1854
|
+
* the same fetch options; `false` sends none. A read's own `next` option overrides this one.
|
|
1855
|
+
*/
|
|
1856
|
+
next?: NextCacheOptions | false;
|
|
1857
|
+
/**
|
|
1858
|
+
* Drafts mode, for a site's development server: every delivery read asks for drafts
|
|
1859
|
+
* (`publicationState=draft`) instead of published content, and under Next is never cached or tagged. Needs
|
|
1860
|
+
* a delivery token whose role grants Read drafts (the server refuses others with 403 `DRAFTS_FORBIDDEN`);
|
|
1861
|
+
* never set it on a production build. Reads pinned to a `snapshot` are refused. `snapshots` is unaffected.
|
|
1862
|
+
*/
|
|
1863
|
+
drafts?: boolean;
|
|
1794
1864
|
};
|
|
1795
|
-
declare const createClient: ({ baseUrl, token, fetch, credentials, headers, site }: ShapioClientOptions) => {
|
|
1865
|
+
declare const createClient: ({ baseUrl, token, fetch, credentials, headers, site, next, drafts }: ShapioClientOptions) => {
|
|
1796
1866
|
/**
|
|
1797
1867
|
* Any Shapio route, e.g. the delivery API. Delivery paths use the model's route key: a collection's
|
|
1798
1868
|
* plural API ID (`request('/api/content/articles')`, `/api/content/articles/<id>`), a singleton's API ID
|
|
@@ -1806,13 +1876,13 @@ declare const createClient: ({ baseUrl, token, fetch, credentials, headers, site
|
|
|
1806
1876
|
};
|
|
1807
1877
|
/** Published content (the delivery API), typed by the caller. */
|
|
1808
1878
|
delivery: {
|
|
1809
|
-
list: <T = Record<string, unknown>>(routeKey: string, query?: DeliveryListQuery) => Promise<DeliveryList<T>>;
|
|
1810
|
-
singleton: <T = Record<string, unknown>>(apiKey: string, query?: DeliveryGetQuery) => Promise<DeliveryItem<T>>;
|
|
1811
|
-
get: <T = Record<string, unknown>>(routeKey: string, id: string, query?: DeliveryGetQuery) => Promise<DeliveryItem<T>>;
|
|
1879
|
+
list: <T = Record<string, unknown>>(routeKey: string, query?: DeliveryListQuery, options?: DeliveryReadOptions) => Promise<DeliveryList<T>>;
|
|
1880
|
+
singleton: <T = Record<string, unknown>>(apiKey: string, query?: DeliveryGetQuery, options?: DeliveryReadOptions) => Promise<DeliveryItem<T>>;
|
|
1881
|
+
get: <T = Record<string, unknown>>(routeKey: string, id: string, query?: DeliveryGetQuery, options?: DeliveryReadOptions) => Promise<DeliveryItem<T>>;
|
|
1812
1882
|
};
|
|
1813
1883
|
/** The site as delivery sees it: key, name and SEO defaults (`GET /api/site`). */
|
|
1814
1884
|
site: {
|
|
1815
|
-
get: () => Promise<DeliverySite>;
|
|
1885
|
+
get: ({ next }?: DeliveryReadOptions) => Promise<DeliverySite>;
|
|
1816
1886
|
};
|
|
1817
1887
|
admin: {
|
|
1818
1888
|
assist: {
|
|
@@ -2749,24 +2819,73 @@ type AdminApi = ReturnType<typeof createAdminApi>;
|
|
|
2749
2819
|
declare const DELIVERY_PATH = "/api/content";
|
|
2750
2820
|
/**
|
|
2751
2821
|
* Published content, typed by the caller (`delivery.list<Article>('articles', { locale: 'fr', snapshot })`).
|
|
2752
|
-
* A collection is read with `list` (a page) and `get` (one entry); a singleton with `singleton`.
|
|
2822
|
+
* A collection is read with `list` (a page) and `get` (one entry); a singleton with `singleton`. Each read
|
|
2823
|
+
* takes Next.js cache options last and is tagged for `revalidateTag` (nextCache.ts): lists and singletons with
|
|
2824
|
+
* the site and model tags, `get` with the entry's tag too. In drafts mode (`drafts: true`) every read asks for
|
|
2825
|
+
* drafts (`publicationState=draft`), is never cached or tagged under Next, and refuses a pinned snapshot.
|
|
2753
2826
|
*/
|
|
2754
|
-
declare const createDeliveryApi: (request: RequestFn) => {
|
|
2755
|
-
list: <T = Record<string, unknown>>(routeKey: string, query?: DeliveryListQuery) => Promise<DeliveryList<T>>;
|
|
2756
|
-
singleton: <T = Record<string, unknown>>(apiKey: string, query?: DeliveryGetQuery) => Promise<DeliveryItem<T>>;
|
|
2757
|
-
get: <T = Record<string, unknown>>(routeKey: string, id: string, query?: DeliveryGetQuery) => Promise<DeliveryItem<T>>;
|
|
2827
|
+
declare const createDeliveryApi: (request: RequestFn, cacheContext: DeliveryCacheContext) => {
|
|
2828
|
+
list: <T = Record<string, unknown>>(routeKey: string, query?: DeliveryListQuery, options?: DeliveryReadOptions) => Promise<DeliveryList<T>>;
|
|
2829
|
+
singleton: <T = Record<string, unknown>>(apiKey: string, query?: DeliveryGetQuery, options?: DeliveryReadOptions) => Promise<DeliveryItem<T>>;
|
|
2830
|
+
get: <T = Record<string, unknown>>(routeKey: string, id: string, query?: DeliveryGetQuery, options?: DeliveryReadOptions) => Promise<DeliveryItem<T>>;
|
|
2758
2831
|
};
|
|
2759
2832
|
type DeliveryApi = ReturnType<typeof createDeliveryApi>;
|
|
2760
2833
|
//#endregion
|
|
2834
|
+
//#region src/deliveryClient.d.ts
|
|
2835
|
+
type DeliveryClientOptions = {
|
|
2836
|
+
/** The site key the reads are tagged with (`shapioTags.site`); the transport names the site itself. */
|
|
2837
|
+
site?: string;
|
|
2838
|
+
/** Next.js data-cache options, as `createClient`'s `next` option. */
|
|
2839
|
+
next?: NextCacheOptions | false;
|
|
2840
|
+
/** Drafts mode, as `createClient`'s `drafts` option. */
|
|
2841
|
+
drafts?: boolean;
|
|
2842
|
+
};
|
|
2843
|
+
/**
|
|
2844
|
+
* The read side of the client over any transport: published content (`delivery`), the site (`site`) and
|
|
2845
|
+
* publication snapshots (`snapshots`). `createClient` builds it over HTTP; `@shapio/local` over the delivery
|
|
2846
|
+
* API running in the same process. The transport receives exactly the paths the HTTP client sends.
|
|
2847
|
+
*/
|
|
2848
|
+
declare const createDeliveryClient: (request: RequestFn, { site, next, drafts }?: DeliveryClientOptions) => {
|
|
2849
|
+
/** Published content (the delivery API; drafts in drafts mode), typed by the caller. */
|
|
2850
|
+
delivery: {
|
|
2851
|
+
list: <T = Record<string, unknown>>(routeKey: string, query?: DeliveryListQuery, options?: DeliveryReadOptions) => Promise<DeliveryList<T>>;
|
|
2852
|
+
singleton: <T = Record<string, unknown>>(apiKey: string, query?: DeliveryGetQuery, options?: DeliveryReadOptions) => Promise<DeliveryItem<T>>;
|
|
2853
|
+
get: <T = Record<string, unknown>>(routeKey: string, id: string, query?: DeliveryGetQuery, options?: DeliveryReadOptions) => Promise<DeliveryItem<T>>;
|
|
2854
|
+
};
|
|
2855
|
+
/** The site as delivery sees it: key, name and SEO defaults (`GET /api/site`). */
|
|
2856
|
+
site: {
|
|
2857
|
+
get: ({ next }?: DeliveryReadOptions) => Promise<DeliverySite>;
|
|
2858
|
+
};
|
|
2859
|
+
/** Publication snapshots and the diff between two (incremental builds). */
|
|
2860
|
+
snapshots: {
|
|
2861
|
+
current: () => Promise<CurrentSnapshot>;
|
|
2862
|
+
changes: (query: SnapshotChangesQuery) => Promise<SnapshotChangesPage>;
|
|
2863
|
+
allChanges: (query: Omit<SnapshotChangesQuery, "after">) => Promise<{
|
|
2864
|
+
from: number;
|
|
2865
|
+
to: number;
|
|
2866
|
+
schemaVersions: {
|
|
2867
|
+
from: number | null;
|
|
2868
|
+
to: number | null;
|
|
2869
|
+
};
|
|
2870
|
+
items: SnapshotChange[];
|
|
2871
|
+
}>;
|
|
2872
|
+
};
|
|
2873
|
+
};
|
|
2874
|
+
type ShapioDeliveryClient = ReturnType<typeof createDeliveryClient>;
|
|
2875
|
+
//#endregion
|
|
2761
2876
|
//#region src/site.d.ts
|
|
2762
2877
|
/** Delivery reads name their site with `?site=`; everything else with the `Shapio-Site` header. */
|
|
2763
2878
|
declare const SITE_QUERY_PARAMETER = "site";
|
|
2764
2879
|
//#endregion
|
|
2765
2880
|
//#region src/siteDelivery.d.ts
|
|
2766
2881
|
declare const DELIVERY_SITE_PATH = "/api/site";
|
|
2767
|
-
/**
|
|
2768
|
-
|
|
2769
|
-
|
|
2882
|
+
/**
|
|
2883
|
+
* The request's site as delivery sees it (key, name, SEO defaults), with the client's token and site. Under
|
|
2884
|
+
* Next.js the read carries the site tag (nextCache.ts); in drafts mode it is `no-store` and untagged instead
|
|
2885
|
+
* (the site has no draft state, so no `publicationState` is sent).
|
|
2886
|
+
*/
|
|
2887
|
+
declare const createSiteApi: (request: RequestFn, cacheContext: DeliveryCacheContext) => {
|
|
2888
|
+
get: ({ next }?: DeliveryReadOptions) => Promise<DeliverySite>;
|
|
2770
2889
|
};
|
|
2771
2890
|
type SiteApi = ReturnType<typeof createSiteApi>;
|
|
2772
2891
|
//#endregion
|
|
@@ -2933,5 +3052,5 @@ declare const codeChallengeOf: (codeVerifier: string) => Promise<string>;
|
|
|
2933
3052
|
/** A fresh verifier (32 random bytes, 43 characters) and its S256 challenge. */
|
|
2934
3053
|
declare const createPkcePair: () => Promise<AppPkcePair>;
|
|
2935
3054
|
//#endregion
|
|
2936
|
-
export {
|
|
2937
|
-
//# sourceMappingURL=index-
|
|
3055
|
+
export { ContentHealthSummary as $, AdminEntry as $a, DeploymentSettings as $i, InvitationLink as $n, ShipPhase as $r, CreateMediaFolderInput as $t, DELIVERY_SITE_PATH as A, FieldUsageResponse as Aa, SchemaSummary as Ai, AcceptInvitationInput as An, ChangeSetQuery as Ar, SchemaDraftInput as At, buildUploadForm as B, UpdateSiteInput as Ba, CreateWebhookInput as Bi, ChangePasswordInput as Bn, FieldDiff as Br, CheckStatus as Bt, WEBHOOK_EVENT_HEADER as C, WebhookDelivery as Ca, PlanPreview as Ci, AppRolePermission as Cn, UpdateEntryInput as Co, CHANGE_SET_STATUSES as Cr, ContentOpsRule as Ct, WebhookSignatureCheck as D, WebhookWithSecret as Da, SchemaChangeJob as Di, CreateAppRoleInput as Dn, NextCacheMode as Do, ChangeSetError as Dr, ContentOpsWritten as Dt, WEBHOOK_TOLERANCE_SECONDS as E, WebhookEventType as Ea, PlanUpdateInput as Ei, BUILT_IN_APP_ROLE_KEYS as En, DeliveryReadOptions as Eo, ChangeSetEntryItem as Er, ContentOpsStatus as Et, createDeliveryClient as F, SetSiteAppRolesInput as Fa, UpdateSchemaSettingsInput as Fi, AuditActorType as Fn, ChangeSetSummary as Fr, ShapioApiError as Ft, ADMIN_PATHS as G, DeliveryGetQuery as Ga, DeploymentConnectionCreated as Gi, CsrfResponse as Gn, ReviewEntryItem as Gr, SnapshotChange as Gt, toContentQueryString as H, DeliverySite as Ha, DEPLOYMENT_RUN_STATUSES as Hi, CreateApiTokenInput as Hn, NotRestorable as Hr, ReadyResponse as Ht, DELIVERY_PATH as I, Site as Ia, ConnectionTestResult as Ii, AuditEvent as In, ChangeSetTimelineEvent as Ir, ShapioErrorBody as It, ContentCount as J, DeliveryListQuery as Ja, DeploymentRunQuery as Ji, EmailDelivery as Jn, SNAPSHOT_SOURCES as Jr, SnapshotChangesQuery as Jt, CheckParams as K, DeliveryItem as Ka, DeploymentProvider as Ki, DELIVERY_ACTIONS as Kn, ReviewIssue as Kr, SnapshotChangeKind as Kt, DeliveryApi as L, SiteAppRoles as La, CreateDeploymentConnectionInput as Li, AuditPage as Ln, CreateChangeSetInput as Lr, ShapioClient as Lt, SITE_QUERY_PARAMETER as M, PrincipalUsageSummary as Ma, SetDefaultLocaleResult as Mi, AdminUser as Mn, ChangeSetSchemaItem as Mr, SummarizeInput as Mt, DeliveryClientOptions as N, UsageSelection as Na, UpdateDefinitionInput as Ni, AdminUserStatus as Nn, ChangeSetSource as Nr, TranslateInput as Nt, WebhookSignatureInput as O, FieldPrincipalUsage as Oa, SchemaChangeStatus as Oi, UpdateAppRoleInput as On, NextCacheOptions as Oo, ChangeSetItem as Or, LocaleMissingResult as Ot, ShapioDeliveryClient as P, CreateSiteInput as Pa, UpdateLocaleInput as Pi, ApiToken as Pn, ChangeSetStatus as Pr, TranslateResult as Pt, ContentHealthQuery as Q, SeoMode as Qa, DeploymentSecretsInput as Qi, Invitation as Qn, ShipChangeSetInput as Qr, SchemaSyncResult as Qt, AdminApi as R, SiteRef as Ra, CreatePreviewTokenInput as Ri, AuditQuery as Rn, FieldConsumer as Rr, ShapioClientOptions as Rt, AppUser as S, WebhookAttempt as Sa, PlanImpact as Si, AppRole as Sn, RevisionSummary as So, AddChangeSetEntryInput as Sr, ContentOpsResult as St, WEBHOOK_TIMESTAMP_HEADER as T, WebhookEventBody as Ta, PlanStepImpact as Ti, AppUserQuery as Tn, RequestOptions as To, ChangeSetActor as Tr, ContentOpsSkip as Tt, SITES_PATHS as U, SeoFields as Ua, DEPLOYMENT_TRIGGERS as Ui, CreateRoleInput as Un, NotRestorableReason as Ur, VersionResponse as Ut, resolveUploadUrl as V, DeliveryAsset as Va, DEPLOYMENT_PROVIDERS as Vi, ContentAction as Vn, NOT_RESTORABLE_REASONS as Vr, HealthResponse as Vt, SITE_HEADER as W, SeoResolved as Wa, DeploymentConnection as Wi, CreatedApiToken as Wn, PutSchemaDraftInput as Wr, CurrentSnapshot as Wt, ContentHealthFinding as X, DeliveryPagination as Xa, DeploymentRunTrigger as Xi, GlobalAction as Xn, SchemaDraft as Xr, SchemaApplyResult as Xt, ContentCounts as Y, DeliveryMeta as Ya, DeploymentRunStatus as Yi, GLOBAL_ACTIONS as Yn, ScheduleChangeSetInput as Yr, SchemaApplyInput as Yt, ContentHealthPage as Z, RichTextMode as Za, DeploymentSecretState as Zi, InspectInvitationResponse as Zn, SchemaOperation as Zr, SchemaExport as Zt, AppLoginInput as _, ScheduleStatus as _a, DefinitionPayload as _i, UpdateMediaFolderInput as _n, EntryReferrer as _o, SetupStatusResponse as _r, AssistStatus as _t, SeoDefaults as a, JobStatus as aa, UpdateChangeSetInput as ai, MediaFocalPoint as an, ContentIssue as ao, PasswordResetConfirmInput as ar, PreflightInput as at, AppRegisterResult as b, UpdateWebhookInput as ba, DeleteLocaleResult as bi, AdminAppUser as bn, ExtensionThemeList as bo, UpdateProfileInput as br, CONTENT_OPS_RULES as bt, applyTitleTemplate as c, OpenPreviewResult as ca, ChangeOutcome as ci, MediaUsage as cn, ContentSort as co, Role as cr, PreflightRule as ct, AppPkcePair as d, PreviewTarget as da, ChangeScopeOutcome as di, MediaVariantStatus as dn, EditorManifestItem as do, RoleKind as dr, AltMissingResult as dt, DeploymentTimelineEvent as ea, Snapshot as ei, CreateUploadInput as en, AdminEntryListItem as eo, InviteUserInput as er, EntryPresence as et, codeChallengeOf as f, PreviewToken as fa, CreateDefinitionInput as fi, MediaVisibility as fn, EntryAuthor as fo, RolePermission as fr, AltProposal as ft, AppChangePasswordInput as g, ScheduleQuery as ga, DefinitionListItem as gi, UpdateMediaAssetInput as gn, EntryLocalesInput as go, SetupInput as gr, AssistProvider as gt, AppAuthApi as h, SCHEDULE_STATUSES as ha, DefinitionDetail as hi, ReplaceUploadInput as hn, EntryLocaleStatus as ho, SessionStarted as hr, AssistIssue as ht, SEO_FIELD_IDS as i, JobQuery as ia, UnassignedEntry as ii, MediaAssetStatus as in, ContentFilterValue as io, NetworkAction as ir, PreflightCheck as it, SiteApi as j, ModelFieldUsage as ja, SchemaSummaryItem as ji, AdminSession as jn, ChangeSetReview as jr, SchemaDraftResult as jt, verifyWebhookSignature as k, FieldUsageQuery as ka, SchemaSettings as ki, UpdateAppUserInput as kn, shapioTags as ko, ChangeSetItemStatus as kr, RewriteInput as kt, resolveSeo as l, PUBLICATION_ACTIONS as la, ChangePlan as li, MediaUsagePage as ln, CreateEntryInput as lo, RoleAssignment as lr, PresenceHeartbeatInput as lt, APP_AUTH_PATHS as m, PublicationAction as ma, DefinitionCategory as mi, MoveMediaAssetsResult as mn, EntryLocaleState as mo, SITE_ACTIONS as mr, AltTextResult as mt, ResolveSeoContext as n, JOB_STATUSES as na, SnapshotQuery as ni, MediaAssetPage as nn, ContentFilter as no, MeResponse as nr, HealthRule as nt, SeoKeys as o, JobSummary as oa, Acknowledgement as oi, MediaFolder as on, ContentListQuery as oo, PasswordResetRequestInput as or, PreflightLocale as ot, createPkcePair as p, PreviewTokenCreated as pa, CreateLocaleInput as pi, MoveMediaAssetsInput as pn, EntryData as po, RoleSummary as pr, AltTextInput as pt, CheckSeverity as q, DeliveryList as qa, DeploymentRun as qi, DeliveryAction as qn, ReviewSchemaItem as qr, SnapshotChangesPage as qt, SEO_COMPONENT_ID as r, Job as ra, SnapshotSource as ri, MediaAssetQuery as rn, ContentFilterOperator as ro, NETWORK_ACTIONS as rr, ModelPresence as rt, SeoLocaleDefaults$1 as s, OpenPreviewInput as sa, ActiveDefinition as si, MediaStorageDriver as sn, ContentPagination as so, PermissionAction as sr, PreflightResponse as st, DEFAULT_SEO_KEYS as t, DeploymentTriggerPolicy as ta, SnapshotPage as ti, MediaAsset as tn, AdminEntryPage as to, LoginInput as tr, HEALTH_RULES as tt, seoDefaultsForLocale as u, Page as ua, ChangeScopeInput as ui, MediaVariant as un, EditorManifest as uo, RoleCondition as ur, PresencePerson as ut, AppOAuthProvider as v, ScheduledPublication as va, DefinitionRevision as vi, UploadGrant as vn, EntryStatus as vo, SiteAction as vr, AssistTextResult as vt, WEBHOOK_SIGNATURE_HEADER as w, WebhookDeliveryStatus as wa, PlanStep as wi, AppUserPage as wn, RequestFn as wo, ChangeSet as wr, ContentOpsRun as wt, AppSession as x, Webhook as xa, Locale as xi, AppContentAction as xn, RevisionDetail as xo, UpdateRoleInput as xr, ContentOpsInput as xt, AppRegisterInput as y, UpdateDeploymentConnectionInput as ya, DefinitionScope as yi, APP_CONTENT_ACTIONS as yn, ExtensionTheme as yo, UpdateAdminUserInput as yr, AssistUsage as yt, ASSIST_PATHS as z, SiteSummary as za, CreateScheduleInput as zi, CONTENT_ACTIONS as zn, FieldConsumers as zr, createClient as zt };
|
|
3056
|
+
//# sourceMappingURL=index-BWuxc5nS.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ADMIN_PATHS, APP_AUTH_PATHS, APP_CONTENT_ACTIONS, ASSIST_PATHS, type AcceptInvitationInput, type Acknowledgement, type ActiveDefinition, type AddChangeSetEntryInput, type AdminApi, type AdminAppUser, type AdminEntry, type AdminEntryListItem, type AdminEntryPage, type AdminSession, type AdminUser, type AdminUserStatus, type AltMissingResult, type AltProposal, type AltTextInput, type AltTextResult, type ApiToken, type AppAuthApi, type AppChangePasswordInput, type AppContentAction, type AppLoginInput, type AppOAuthProvider, type AppPkcePair, type AppRegisterInput, type AppRegisterResult, type AppRole, type AppRolePermission, type AppSession, type AppUser, type AppUserPage, type AppUserQuery, type AssistIssue, type AssistProvider, type AssistStatus, type AssistTextResult, type AssistUsage, type AuditActorType, type AuditEvent, type AuditPage, type AuditQuery, BUILT_IN_APP_ROLE_KEYS, CHANGE_SET_STATUSES, CONTENT_ACTIONS, CONTENT_OPS_RULES, type ChangeOutcome, type ChangePasswordInput, type ChangePlan, type ChangeScopeInput, type ChangeScopeOutcome, type ChangeSet, type ChangeSetActor, type ChangeSetEntryItem, type ChangeSetError, type ChangeSetItem, type ChangeSetItemStatus, type ChangeSetQuery, type ChangeSetReview, type ChangeSetSchemaItem, type ChangeSetSource, type ChangeSetStatus, type ChangeSetSummary, type ChangeSetTimelineEvent, type CheckParams, type CheckSeverity, type CheckStatus, type ConnectionTestResult, type ContentAction, type ContentCount, type ContentCounts, type ContentFilter, type ContentFilterOperator, type ContentFilterValue, type ContentHealthFinding, type ContentHealthPage, type ContentHealthQuery, type ContentHealthSummary, type ContentIssue, type ContentListQuery, type ContentOpsInput, type ContentOpsResult, type ContentOpsRule, type ContentOpsRun, type ContentOpsSkip, type ContentOpsStatus, type ContentOpsWritten, type ContentPagination, type ContentSort, type CreateApiTokenInput, type CreateAppRoleInput, type CreateChangeSetInput, type CreateDefinitionInput, type CreateDeploymentConnectionInput, type CreateEntryInput, type CreateLocaleInput, type CreateMediaFolderInput, type CreatePreviewTokenInput, type CreateRoleInput, type CreateScheduleInput, type CreateSiteInput, type CreateUploadInput, type CreateWebhookInput, type CreatedApiToken, type CsrfResponse, type CurrentSnapshot, DEFAULT_SEO_KEYS, DELIVERY_PATH, DELIVERY_SITE_PATH, DEPLOYMENT_PROVIDERS, DEPLOYMENT_RUN_STATUSES, DEPLOYMENT_TRIGGERS, type DefinitionCategory, type DefinitionDetail, type DefinitionListItem, type DefinitionPayload, type DefinitionRevision, type DefinitionScope, type DeleteLocaleResult, type DeliveryApi, type DeliveryAsset, type DeliveryGetQuery, type DeliveryItem, type DeliveryList, type DeliveryListQuery, type DeliveryMeta, type DeliveryPagination, type DeliverySite, type DeploymentConnection, type DeploymentConnectionCreated, type DeploymentProvider, type DeploymentRun, type DeploymentRunQuery, type DeploymentRunStatus, type DeploymentRunTrigger, type DeploymentSecretState, type DeploymentSecretsInput, type DeploymentSettings, type DeploymentTimelineEvent, type DeploymentTriggerPolicy, type EditorManifest, type EditorManifestItem, type EmailDelivery, type EntryAuthor, type EntryData, type EntryLocaleState, type EntryLocaleStatus, type EntryLocalesInput, type EntryPresence, type EntryReferrer, type EntryStatus, type ExtensionTheme, type ExtensionThemeList, type FieldConsumer, type FieldConsumers, type FieldDiff, type FieldPrincipalUsage, type FieldUsageQuery, type FieldUsageResponse, GLOBAL_ACTIONS, type GlobalAction, HEALTH_RULES, type HealthResponse, type HealthRule, type InspectInvitationResponse, type Invitation, type InvitationLink, type InviteUserInput, JOB_STATUSES, type Job, type JobQuery, type JobStatus, type JobSummary, type Locale, type LocaleMissingResult, type LoginInput, type MeResponse, type MediaAsset, type MediaAssetPage, type MediaAssetQuery, type MediaAssetStatus, type MediaFocalPoint, type MediaFolder, type MediaStorageDriver, type MediaUsage, type MediaUsagePage, type MediaVariant, type MediaVariantStatus, type MediaVisibility, type ModelFieldUsage, type ModelPresence, type MoveMediaAssetsInput, type MoveMediaAssetsResult, NETWORK_ACTIONS, NOT_RESTORABLE_REASONS, type NetworkAction, type NotRestorable, type NotRestorableReason, type OpenPreviewInput, type OpenPreviewResult, PUBLICATION_ACTIONS, type Page, type PasswordResetConfirmInput, type PasswordResetRequestInput, type PermissionAction, type PlanImpact, type PlanPreview, type PlanStep, type PlanStepImpact, type PlanUpdateInput, type PreflightCheck, type PreflightInput, type PreflightLocale, type PreflightResponse, type PreflightRule, type PresenceHeartbeatInput, type PresencePerson, type PreviewTarget, type PreviewToken, type PreviewTokenCreated, type PrincipalUsageSummary, type PublicationAction, type PutSchemaDraftInput, type ReadyResponse, type ReplaceUploadInput, type RequestFn, type RequestOptions, type ResolveSeoContext, type ReviewEntryItem, type ReviewIssue, type ReviewSchemaItem, type RevisionDetail, type RevisionSummary, type RewriteInput, type RichTextMode, type Role, type RoleAssignment, type RoleCondition, type RoleKind, type RolePermission, type RoleSummary, SCHEDULE_STATUSES, SEO_COMPONENT_ID, SEO_FIELD_IDS, SITES_PATHS, SITE_ACTIONS, SITE_HEADER, SITE_QUERY_PARAMETER, SNAPSHOT_SOURCES, type ScheduleChangeSetInput, type ScheduleQuery, type ScheduleStatus, type ScheduledPublication, type SchemaApplyInput, type SchemaApplyResult, type SchemaChangeJob, type SchemaChangeStatus, type SchemaDraft, type SchemaDraftInput, type SchemaDraftResult, type SchemaExport, type SchemaOperation, type SchemaSettings, type SchemaSummary, type SchemaSummaryItem, type SchemaSyncResult, type SeoDefaults, type SeoFields, type SeoKeys, type SeoLocaleDefaults, type SeoMode, type SeoResolved, type SessionStarted, type SetDefaultLocaleResult, type SetSiteAppRolesInput, type SetupInput, type SetupStatusResponse, ShapioApiError, type ShapioClient, type ShapioClientOptions, type ShapioErrorBody, type ShipChangeSetInput, type ShipPhase, type Site, type SiteAction, type SiteApi, type SiteAppRoles, type SiteRef, type SiteSummary, type Snapshot, type SnapshotChange, type SnapshotChangeKind, type SnapshotChangesPage, type SnapshotChangesQuery, type SnapshotPage, type SnapshotQuery, type SnapshotSource, type SummarizeInput, type TranslateInput, type TranslateResult, type UnassignedEntry, type UpdateAdminUserInput, type UpdateAppRoleInput, type UpdateAppUserInput, type UpdateChangeSetInput, type UpdateDefinitionInput, type UpdateDeploymentConnectionInput, type UpdateEntryInput, type UpdateLocaleInput, type UpdateMediaAssetInput, type UpdateMediaFolderInput, type UpdateProfileInput, type UpdateRoleInput, type UpdateSchemaSettingsInput, type UpdateSiteInput, type UpdateWebhookInput, type UploadGrant, type UsageSelection, type VersionResponse, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, type Webhook, type WebhookAttempt, type WebhookDelivery, type WebhookDeliveryStatus, type WebhookEventBody, type WebhookEventType, type WebhookSignatureCheck, type WebhookSignatureInput, type WebhookWithSecret, applyTitleTemplate, buildUploadForm, codeChallengeOf, createClient, createPkcePair, resolveSeo, resolveUploadUrl, seoDefaultsForLocale, toContentQueryString, verifyWebhookSignature };
|
|
1
|
+
import { $ as ContentHealthSummary, $a as AdminEntry, $i as DeploymentSettings, $n as InvitationLink, $r as ShipPhase, $t as CreateMediaFolderInput, A as DELIVERY_SITE_PATH, Aa as FieldUsageResponse, Ai as SchemaSummary, An as AcceptInvitationInput, Ar as ChangeSetQuery, At as SchemaDraftInput, B as buildUploadForm, Ba as UpdateSiteInput, Bi as CreateWebhookInput, Bn as ChangePasswordInput, Br as FieldDiff, Bt as CheckStatus, C as WEBHOOK_EVENT_HEADER, Ca as WebhookDelivery, Ci as PlanPreview, Cn as AppRolePermission, Co as UpdateEntryInput, Cr as CHANGE_SET_STATUSES, Ct as ContentOpsRule, D as WebhookSignatureCheck, Da as WebhookWithSecret, Di as SchemaChangeJob, Dn as CreateAppRoleInput, Do as NextCacheMode, Dr as ChangeSetError, Dt as ContentOpsWritten, E as WEBHOOK_TOLERANCE_SECONDS, Ea as WebhookEventType, Ei as PlanUpdateInput, En as BUILT_IN_APP_ROLE_KEYS, Eo as DeliveryReadOptions, Er as ChangeSetEntryItem, Et as ContentOpsStatus, F as createDeliveryClient, Fa as SetSiteAppRolesInput, Fi as UpdateSchemaSettingsInput, Fn as AuditActorType, Fr as ChangeSetSummary, Ft as ShapioApiError, G as ADMIN_PATHS, Ga as DeliveryGetQuery, Gi as DeploymentConnectionCreated, Gn as CsrfResponse, Gr as ReviewEntryItem, Gt as SnapshotChange, H as toContentQueryString, Ha as DeliverySite, Hi as DEPLOYMENT_RUN_STATUSES, Hn as CreateApiTokenInput, Hr as NotRestorable, Ht as ReadyResponse, I as DELIVERY_PATH, Ia as Site, Ii as ConnectionTestResult, In as AuditEvent, Ir as ChangeSetTimelineEvent, It as ShapioErrorBody, J as ContentCount, Ja as DeliveryListQuery, Ji as DeploymentRunQuery, Jn as EmailDelivery, Jr as SNAPSHOT_SOURCES, Jt as SnapshotChangesQuery, K as CheckParams, Ka as DeliveryItem, Ki as DeploymentProvider, Kn as DELIVERY_ACTIONS, Kr as ReviewIssue, Kt as SnapshotChangeKind, L as DeliveryApi, La as SiteAppRoles, Li as CreateDeploymentConnectionInput, Ln as AuditPage, Lr as CreateChangeSetInput, Lt as ShapioClient, M as SITE_QUERY_PARAMETER, Ma as PrincipalUsageSummary, Mi as SetDefaultLocaleResult, Mn as AdminUser, Mr as ChangeSetSchemaItem, Mt as SummarizeInput, N as DeliveryClientOptions, Na as UsageSelection, Ni as UpdateDefinitionInput, Nn as AdminUserStatus, Nr as ChangeSetSource, Nt as TranslateInput, O as WebhookSignatureInput, Oa as FieldPrincipalUsage, Oi as SchemaChangeStatus, On as UpdateAppRoleInput, Oo as NextCacheOptions, Or as ChangeSetItem, Ot as LocaleMissingResult, P as ShapioDeliveryClient, Pa as CreateSiteInput, Pi as UpdateLocaleInput, Pn as ApiToken, Pr as ChangeSetStatus, Pt as TranslateResult, Q as ContentHealthQuery, Qa as SeoMode, Qi as DeploymentSecretsInput, Qn as Invitation, Qr as ShipChangeSetInput, Qt as SchemaSyncResult, R as AdminApi, Ra as SiteRef, Ri as CreatePreviewTokenInput, Rn as AuditQuery, Rr as FieldConsumer, Rt as ShapioClientOptions, S as AppUser, Sa as WebhookAttempt, Si as PlanImpact, Sn as AppRole, So as RevisionSummary, Sr as AddChangeSetEntryInput, St as ContentOpsResult, T as WEBHOOK_TIMESTAMP_HEADER, Ta as WebhookEventBody, Ti as PlanStepImpact, Tn as AppUserQuery, To as RequestOptions, Tr as ChangeSetActor, Tt as ContentOpsSkip, U as SITES_PATHS, Ua as SeoFields, Ui as DEPLOYMENT_TRIGGERS, Un as CreateRoleInput, Ur as NotRestorableReason, Ut as VersionResponse, V as resolveUploadUrl, Va as DeliveryAsset, Vi as DEPLOYMENT_PROVIDERS, Vn as ContentAction, Vr as NOT_RESTORABLE_REASONS, Vt as HealthResponse, W as SITE_HEADER, Wa as SeoResolved, Wi as DeploymentConnection, Wn as CreatedApiToken, Wr as PutSchemaDraftInput, Wt as CurrentSnapshot, X as ContentHealthFinding, Xa as DeliveryPagination, Xi as DeploymentRunTrigger, Xn as GlobalAction, Xr as SchemaDraft, Xt as SchemaApplyResult, Y as ContentCounts, Ya as DeliveryMeta, Yi as DeploymentRunStatus, Yn as GLOBAL_ACTIONS, Yr as ScheduleChangeSetInput, Yt as SchemaApplyInput, Z as ContentHealthPage, Za as RichTextMode, Zi as DeploymentSecretState, Zn as InspectInvitationResponse, Zr as SchemaOperation, Zt as SchemaExport, _ as AppLoginInput, _a as ScheduleStatus, _i as DefinitionPayload, _n as UpdateMediaFolderInput, _o as EntryReferrer, _r as SetupStatusResponse, _t as AssistStatus, a as SeoDefaults, aa as JobStatus, ai as UpdateChangeSetInput, an as MediaFocalPoint, ao as ContentIssue, ar as PasswordResetConfirmInput, at as PreflightInput, b as AppRegisterResult, ba as UpdateWebhookInput, bi as DeleteLocaleResult, bn as AdminAppUser, bo as ExtensionThemeList, br as UpdateProfileInput, bt as CONTENT_OPS_RULES, c as applyTitleTemplate, ca as OpenPreviewResult, ci as ChangeOutcome, cn as MediaUsage, co as ContentSort, cr as Role, ct as PreflightRule, d as AppPkcePair, da as PreviewTarget, di as ChangeScopeOutcome, dn as MediaVariantStatus, do as EditorManifestItem, dr as RoleKind, dt as AltMissingResult, ea as DeploymentTimelineEvent, ei as Snapshot, en as CreateUploadInput, eo as AdminEntryListItem, er as InviteUserInput, et as EntryPresence, f as codeChallengeOf, fa as PreviewToken, fi as CreateDefinitionInput, fn as MediaVisibility, fo as EntryAuthor, fr as RolePermission, ft as AltProposal, g as AppChangePasswordInput, ga as ScheduleQuery, gi as DefinitionListItem, gn as UpdateMediaAssetInput, go as EntryLocalesInput, gr as SetupInput, gt as AssistProvider, h as AppAuthApi, ha as SCHEDULE_STATUSES, hi as DefinitionDetail, hn as ReplaceUploadInput, ho as EntryLocaleStatus, hr as SessionStarted, ht as AssistIssue, i as SEO_FIELD_IDS, ia as JobQuery, ii as UnassignedEntry, in as MediaAssetStatus, io as ContentFilterValue, ir as NetworkAction, it as PreflightCheck, j as SiteApi, ja as ModelFieldUsage, ji as SchemaSummaryItem, jn as AdminSession, jr as ChangeSetReview, jt as SchemaDraftResult, k as verifyWebhookSignature, ka as FieldUsageQuery, ki as SchemaSettings, kn as UpdateAppUserInput, ko as shapioTags, kr as ChangeSetItemStatus, kt as RewriteInput, l as resolveSeo, la as PUBLICATION_ACTIONS, li as ChangePlan, ln as MediaUsagePage, lo as CreateEntryInput, lr as RoleAssignment, lt as PresenceHeartbeatInput, m as APP_AUTH_PATHS, ma as PublicationAction, mi as DefinitionCategory, mn as MoveMediaAssetsResult, mo as EntryLocaleState, mr as SITE_ACTIONS, mt as AltTextResult, n as ResolveSeoContext, na as JOB_STATUSES, ni as SnapshotQuery, nn as MediaAssetPage, no as ContentFilter, nr as MeResponse, nt as HealthRule, o as SeoKeys, oa as JobSummary, oi as Acknowledgement, on as MediaFolder, oo as ContentListQuery, or as PasswordResetRequestInput, ot as PreflightLocale, p as createPkcePair, pa as PreviewTokenCreated, pi as CreateLocaleInput, pn as MoveMediaAssetsInput, po as EntryData, pr as RoleSummary, pt as AltTextInput, q as CheckSeverity, qa as DeliveryList, qi as DeploymentRun, qn as DeliveryAction, qr as ReviewSchemaItem, qt as SnapshotChangesPage, r as SEO_COMPONENT_ID, ra as Job, ri as SnapshotSource, rn as MediaAssetQuery, ro as ContentFilterOperator, rr as NETWORK_ACTIONS, rt as ModelPresence, s as SeoLocaleDefaults, sa as OpenPreviewInput, si as ActiveDefinition, sn as MediaStorageDriver, so as ContentPagination, sr as PermissionAction, st as PreflightResponse, t as DEFAULT_SEO_KEYS, ta as DeploymentTriggerPolicy, ti as SnapshotPage, tn as MediaAsset, to as AdminEntryPage, tr as LoginInput, tt as HEALTH_RULES, u as seoDefaultsForLocale, ua as Page, ui as ChangeScopeInput, un as MediaVariant, uo as EditorManifest, ur as RoleCondition, ut as PresencePerson, v as AppOAuthProvider, va as ScheduledPublication, vi as DefinitionRevision, vn as UploadGrant, vo as EntryStatus, vr as SiteAction, vt as AssistTextResult, w as WEBHOOK_SIGNATURE_HEADER, wa as WebhookDeliveryStatus, wi as PlanStep, wn as AppUserPage, wo as RequestFn, wr as ChangeSet, wt as ContentOpsRun, x as AppSession, xa as Webhook, xi as Locale, xn as AppContentAction, xo as RevisionDetail, xr as UpdateRoleInput, xt as ContentOpsInput, y as AppRegisterInput, ya as UpdateDeploymentConnectionInput, yi as DefinitionScope, yn as APP_CONTENT_ACTIONS, yo as ExtensionTheme, yr as UpdateAdminUserInput, yt as AssistUsage, z as ASSIST_PATHS, za as SiteSummary, zi as CreateScheduleInput, zn as CONTENT_ACTIONS, zr as FieldConsumers, zt as createClient } from "./index-BWuxc5nS.js";
|
|
2
|
+
export { ADMIN_PATHS, APP_AUTH_PATHS, APP_CONTENT_ACTIONS, ASSIST_PATHS, type AcceptInvitationInput, type Acknowledgement, type ActiveDefinition, type AddChangeSetEntryInput, type AdminApi, type AdminAppUser, type AdminEntry, type AdminEntryListItem, type AdminEntryPage, type AdminSession, type AdminUser, type AdminUserStatus, type AltMissingResult, type AltProposal, type AltTextInput, type AltTextResult, type ApiToken, type AppAuthApi, type AppChangePasswordInput, type AppContentAction, type AppLoginInput, type AppOAuthProvider, type AppPkcePair, type AppRegisterInput, type AppRegisterResult, type AppRole, type AppRolePermission, type AppSession, type AppUser, type AppUserPage, type AppUserQuery, type AssistIssue, type AssistProvider, type AssistStatus, type AssistTextResult, type AssistUsage, type AuditActorType, type AuditEvent, type AuditPage, type AuditQuery, BUILT_IN_APP_ROLE_KEYS, CHANGE_SET_STATUSES, CONTENT_ACTIONS, CONTENT_OPS_RULES, type ChangeOutcome, type ChangePasswordInput, type ChangePlan, type ChangeScopeInput, type ChangeScopeOutcome, type ChangeSet, type ChangeSetActor, type ChangeSetEntryItem, type ChangeSetError, type ChangeSetItem, type ChangeSetItemStatus, type ChangeSetQuery, type ChangeSetReview, type ChangeSetSchemaItem, type ChangeSetSource, type ChangeSetStatus, type ChangeSetSummary, type ChangeSetTimelineEvent, type CheckParams, type CheckSeverity, type CheckStatus, type ConnectionTestResult, type ContentAction, type ContentCount, type ContentCounts, type ContentFilter, type ContentFilterOperator, type ContentFilterValue, type ContentHealthFinding, type ContentHealthPage, type ContentHealthQuery, type ContentHealthSummary, type ContentIssue, type ContentListQuery, type ContentOpsInput, type ContentOpsResult, type ContentOpsRule, type ContentOpsRun, type ContentOpsSkip, type ContentOpsStatus, type ContentOpsWritten, type ContentPagination, type ContentSort, type CreateApiTokenInput, type CreateAppRoleInput, type CreateChangeSetInput, type CreateDefinitionInput, type CreateDeploymentConnectionInput, type CreateEntryInput, type CreateLocaleInput, type CreateMediaFolderInput, type CreatePreviewTokenInput, type CreateRoleInput, type CreateScheduleInput, type CreateSiteInput, type CreateUploadInput, type CreateWebhookInput, type CreatedApiToken, type CsrfResponse, type CurrentSnapshot, DEFAULT_SEO_KEYS, DELIVERY_ACTIONS, DELIVERY_PATH, DELIVERY_SITE_PATH, DEPLOYMENT_PROVIDERS, DEPLOYMENT_RUN_STATUSES, DEPLOYMENT_TRIGGERS, type DefinitionCategory, type DefinitionDetail, type DefinitionListItem, type DefinitionPayload, type DefinitionRevision, type DefinitionScope, type DeleteLocaleResult, type DeliveryAction, type DeliveryApi, type DeliveryAsset, type DeliveryClientOptions, type DeliveryGetQuery, type DeliveryItem, type DeliveryList, type DeliveryListQuery, type DeliveryMeta, type DeliveryPagination, type DeliveryReadOptions, type DeliverySite, type DeploymentConnection, type DeploymentConnectionCreated, type DeploymentProvider, type DeploymentRun, type DeploymentRunQuery, type DeploymentRunStatus, type DeploymentRunTrigger, type DeploymentSecretState, type DeploymentSecretsInput, type DeploymentSettings, type DeploymentTimelineEvent, type DeploymentTriggerPolicy, type EditorManifest, type EditorManifestItem, type EmailDelivery, type EntryAuthor, type EntryData, type EntryLocaleState, type EntryLocaleStatus, type EntryLocalesInput, type EntryPresence, type EntryReferrer, type EntryStatus, type ExtensionTheme, type ExtensionThemeList, type FieldConsumer, type FieldConsumers, type FieldDiff, type FieldPrincipalUsage, type FieldUsageQuery, type FieldUsageResponse, GLOBAL_ACTIONS, type GlobalAction, HEALTH_RULES, type HealthResponse, type HealthRule, type InspectInvitationResponse, type Invitation, type InvitationLink, type InviteUserInput, JOB_STATUSES, type Job, type JobQuery, type JobStatus, type JobSummary, type Locale, type LocaleMissingResult, type LoginInput, type MeResponse, type MediaAsset, type MediaAssetPage, type MediaAssetQuery, type MediaAssetStatus, type MediaFocalPoint, type MediaFolder, type MediaStorageDriver, type MediaUsage, type MediaUsagePage, type MediaVariant, type MediaVariantStatus, type MediaVisibility, type ModelFieldUsage, type ModelPresence, type MoveMediaAssetsInput, type MoveMediaAssetsResult, NETWORK_ACTIONS, NOT_RESTORABLE_REASONS, type NetworkAction, type NextCacheMode, type NextCacheOptions, type NotRestorable, type NotRestorableReason, type OpenPreviewInput, type OpenPreviewResult, PUBLICATION_ACTIONS, type Page, type PasswordResetConfirmInput, type PasswordResetRequestInput, type PermissionAction, type PlanImpact, type PlanPreview, type PlanStep, type PlanStepImpact, type PlanUpdateInput, type PreflightCheck, type PreflightInput, type PreflightLocale, type PreflightResponse, type PreflightRule, type PresenceHeartbeatInput, type PresencePerson, type PreviewTarget, type PreviewToken, type PreviewTokenCreated, type PrincipalUsageSummary, type PublicationAction, type PutSchemaDraftInput, type ReadyResponse, type ReplaceUploadInput, type RequestFn, type RequestOptions, type ResolveSeoContext, type ReviewEntryItem, type ReviewIssue, type ReviewSchemaItem, type RevisionDetail, type RevisionSummary, type RewriteInput, type RichTextMode, type Role, type RoleAssignment, type RoleCondition, type RoleKind, type RolePermission, type RoleSummary, SCHEDULE_STATUSES, SEO_COMPONENT_ID, SEO_FIELD_IDS, SITES_PATHS, SITE_ACTIONS, SITE_HEADER, SITE_QUERY_PARAMETER, SNAPSHOT_SOURCES, type ScheduleChangeSetInput, type ScheduleQuery, type ScheduleStatus, type ScheduledPublication, type SchemaApplyInput, type SchemaApplyResult, type SchemaChangeJob, type SchemaChangeStatus, type SchemaDraft, type SchemaDraftInput, type SchemaDraftResult, type SchemaExport, type SchemaOperation, type SchemaSettings, type SchemaSummary, type SchemaSummaryItem, type SchemaSyncResult, type SeoDefaults, type SeoFields, type SeoKeys, type SeoLocaleDefaults, type SeoMode, type SeoResolved, type SessionStarted, type SetDefaultLocaleResult, type SetSiteAppRolesInput, type SetupInput, type SetupStatusResponse, ShapioApiError, type ShapioClient, type ShapioClientOptions, type ShapioDeliveryClient, type ShapioErrorBody, type ShipChangeSetInput, type ShipPhase, type Site, type SiteAction, type SiteApi, type SiteAppRoles, type SiteRef, type SiteSummary, type Snapshot, type SnapshotChange, type SnapshotChangeKind, type SnapshotChangesPage, type SnapshotChangesQuery, type SnapshotPage, type SnapshotQuery, type SnapshotSource, type SummarizeInput, type TranslateInput, type TranslateResult, type UnassignedEntry, type UpdateAdminUserInput, type UpdateAppRoleInput, type UpdateAppUserInput, type UpdateChangeSetInput, type UpdateDefinitionInput, type UpdateDeploymentConnectionInput, type UpdateEntryInput, type UpdateLocaleInput, type UpdateMediaAssetInput, type UpdateMediaFolderInput, type UpdateProfileInput, type UpdateRoleInput, type UpdateSchemaSettingsInput, type UpdateSiteInput, type UpdateWebhookInput, type UploadGrant, type UsageSelection, type VersionResponse, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, type Webhook, type WebhookAttempt, type WebhookDelivery, type WebhookDeliveryStatus, type WebhookEventBody, type WebhookEventType, type WebhookSignatureCheck, type WebhookSignatureInput, type WebhookWithSecret, applyTitleTemplate, buildUploadForm, codeChallengeOf, createClient, createDeliveryClient, createPkcePair, resolveSeo, resolveUploadUrl, seoDefaultsForLocale, shapioTags, toContentQueryString, verifyWebhookSignature };
|
package/dist/index.js
CHANGED
|
@@ -457,6 +457,11 @@ const CONTENT_ACTIONS = [
|
|
|
457
457
|
"schemaManage"
|
|
458
458
|
];
|
|
459
459
|
/**
|
|
460
|
+
* What a delivery role grants: `read`, and `readDrafts` (drafts mode: the token's site may read drafts with
|
|
461
|
+
* `publicationState=draft`). `readDrafts` always covers every model and is never granted to admin roles.
|
|
462
|
+
*/
|
|
463
|
+
const DELIVERY_ACTIONS = ["read", "readDrafts"];
|
|
464
|
+
/**
|
|
460
465
|
* Network actions: about the whole instance. Only roles assigned on every site grant them, so a role held
|
|
461
466
|
* on one site never reaches the network.
|
|
462
467
|
*/
|
|
@@ -799,34 +804,115 @@ const createAppAuthApi = (request, baseUrl) => ({
|
|
|
799
804
|
})
|
|
800
805
|
});
|
|
801
806
|
//#endregion
|
|
807
|
+
//#region src/nextCache.ts
|
|
808
|
+
const TAG_PREFIX = "shapio";
|
|
809
|
+
/**
|
|
810
|
+
* The cache tags delivery reads carry (`revalidateTag(shapioTags.entry('articles', id), { expire: 0 })`).
|
|
811
|
+
* Models are named by their route key: a collection's plural API ID, a singleton's API ID.
|
|
812
|
+
*/
|
|
813
|
+
const shapioTags = {
|
|
814
|
+
/** Every delivery read of the site; `shapio:site` when the client names no site. */
|
|
815
|
+
site: (siteKey) => siteKey === void 0 ? `${TAG_PREFIX}:site` : `${TAG_PREFIX}:site:${siteKey}`,
|
|
816
|
+
/** Every read of one model (lists, singletons and its entries). */
|
|
817
|
+
model: (routeKey) => `${TAG_PREFIX}:${routeKey}`,
|
|
818
|
+
/** Reads of one entry by its ID. */
|
|
819
|
+
entry: (routeKey, entryId) => `${TAG_PREFIX}:${routeKey}:${entryId}`
|
|
820
|
+
};
|
|
821
|
+
/** Spelled out so bundlers that inline `process.env.NEXT_RUNTIME` see it; guarded for browsers. */
|
|
822
|
+
const isNextRuntime = () => {
|
|
823
|
+
try {
|
|
824
|
+
return typeof process !== "undefined" && Boolean(process.env.NEXT_RUNTIME);
|
|
825
|
+
} catch {
|
|
826
|
+
return false;
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
/** The `cache` and `next` fetch options of one delivery read; empty outside Next unless asked for. */
|
|
830
|
+
const nextFetchInit = ({ client, read, tags, pinned, drafts = false }) => {
|
|
831
|
+
if (drafts) return client !== void 0 && client !== false || read !== void 0 && read !== false || isNextRuntime() ? { cache: "no-store" } : {};
|
|
832
|
+
if (read === false || read === void 0 && client === false) return {};
|
|
833
|
+
const configured = client === false ? read : read === void 0 ? client : {
|
|
834
|
+
...client,
|
|
835
|
+
...read
|
|
836
|
+
};
|
|
837
|
+
if (configured === void 0 && !isNextRuntime()) return {};
|
|
838
|
+
if (pinned && read?.cache === void 0) return {
|
|
839
|
+
cache: "force-cache",
|
|
840
|
+
next: { tags }
|
|
841
|
+
};
|
|
842
|
+
const cache = configured?.cache;
|
|
843
|
+
const revalidate = configured?.revalidate;
|
|
844
|
+
return {
|
|
845
|
+
...cache === void 0 ? {} : { cache },
|
|
846
|
+
next: {
|
|
847
|
+
tags,
|
|
848
|
+
...revalidate === void 0 ? {} : { revalidate }
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
//#endregion
|
|
802
853
|
//#region src/delivery.ts
|
|
803
854
|
const DELIVERY_PATH = "/api/content";
|
|
804
855
|
const routePath = (routeKey) => `${DELIVERY_PATH}/${encodeURIComponent(routeKey)}`;
|
|
805
|
-
/**
|
|
806
|
-
|
|
856
|
+
/**
|
|
857
|
+
* The content query string plus `snapshot`, `richText` and `seo`, which only delivery reads take, and
|
|
858
|
+
* `publicationState=draft` in drafts mode.
|
|
859
|
+
*/
|
|
860
|
+
const deliveryQueryString = ({ snapshot, richText, seo, ...query }, drafts) => {
|
|
807
861
|
const extra = [
|
|
808
862
|
...snapshot === void 0 ? [] : [`snapshot=${encodeURIComponent(String(snapshot))}`],
|
|
809
863
|
...richText === void 0 ? [] : [`richText=${encodeURIComponent(richText)}`],
|
|
810
|
-
...seo === void 0 ? [] : [`seo=${encodeURIComponent(seo)}`]
|
|
864
|
+
...seo === void 0 ? [] : [`seo=${encodeURIComponent(seo)}`],
|
|
865
|
+
...drafts ? ["publicationState=draft"] : []
|
|
811
866
|
];
|
|
812
867
|
const base = toContentQueryString(query);
|
|
813
868
|
if (extra.length === 0) return base;
|
|
814
869
|
return base ? `${base}&${extra.join("&")}` : `?${extra.join("&")}`;
|
|
815
870
|
};
|
|
871
|
+
/** Drafts cannot be pinned: the server refuses `snapshot` with drafts, and so does the client, before sending. */
|
|
872
|
+
const draftsPinned = () => Promise.reject(/* @__PURE__ */ new Error("Drafts mode reads saved drafts, which have no publication snapshot: leave `snapshot` out when the client has `drafts: true`"));
|
|
816
873
|
/**
|
|
817
874
|
* Published content, typed by the caller (`delivery.list<Article>('articles', { locale: 'fr', snapshot })`).
|
|
818
|
-
* A collection is read with `list` (a page) and `get` (one entry); a singleton with `singleton`.
|
|
875
|
+
* A collection is read with `list` (a page) and `get` (one entry); a singleton with `singleton`. Each read
|
|
876
|
+
* takes Next.js cache options last and is tagged for `revalidateTag` (nextCache.ts): lists and singletons with
|
|
877
|
+
* the site and model tags, `get` with the entry's tag too. In drafts mode (`drafts: true`) every read asks for
|
|
878
|
+
* drafts (`publicationState=draft`), is never cached or tagged under Next, and refuses a pinned snapshot.
|
|
819
879
|
*/
|
|
820
|
-
const createDeliveryApi = (request) =>
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
880
|
+
const createDeliveryApi = (request, cacheContext) => {
|
|
881
|
+
const { drafts } = cacheContext;
|
|
882
|
+
const fetchInit = (tags, query, { next }) => nextFetchInit({
|
|
883
|
+
client: cacheContext.next,
|
|
884
|
+
read: next,
|
|
885
|
+
tags,
|
|
886
|
+
pinned: query.snapshot !== void 0,
|
|
887
|
+
drafts
|
|
888
|
+
});
|
|
889
|
+
const read = (path, tags, query, options) => drafts && query.snapshot !== void 0 ? draftsPinned() : request(`${path}${deliveryQueryString(query, drafts)}`, fetchInit(tags, query, options));
|
|
890
|
+
const siteTag = shapioTags.site(cacheContext.site);
|
|
891
|
+
return {
|
|
892
|
+
list: (routeKey, query = {}, options = {}) => read(routePath(routeKey), [siteTag, shapioTags.model(routeKey)], query, options),
|
|
893
|
+
singleton: (apiKey, query = {}, options = {}) => read(routePath(apiKey), [siteTag, shapioTags.model(apiKey)], query, options),
|
|
894
|
+
get: (routeKey, id, query = {}, options = {}) => read(`${routePath(routeKey)}/${encodeURIComponent(id)}`, [
|
|
895
|
+
siteTag,
|
|
896
|
+
shapioTags.model(routeKey),
|
|
897
|
+
shapioTags.entry(routeKey, id)
|
|
898
|
+
], query, options)
|
|
899
|
+
};
|
|
900
|
+
};
|
|
825
901
|
//#endregion
|
|
826
902
|
//#region src/siteDelivery.ts
|
|
827
903
|
const DELIVERY_SITE_PATH = "/api/site";
|
|
828
|
-
/**
|
|
829
|
-
|
|
904
|
+
/**
|
|
905
|
+
* The request's site as delivery sees it (key, name, SEO defaults), with the client's token and site. Under
|
|
906
|
+
* Next.js the read carries the site tag (nextCache.ts); in drafts mode it is `no-store` and untagged instead
|
|
907
|
+
* (the site has no draft state, so no `publicationState` is sent).
|
|
908
|
+
*/
|
|
909
|
+
const createSiteApi = (request, cacheContext) => ({ get: ({ next } = {}) => request(DELIVERY_SITE_PATH, nextFetchInit({
|
|
910
|
+
client: cacheContext.next,
|
|
911
|
+
read: next,
|
|
912
|
+
tags: [shapioTags.site(cacheContext.site)],
|
|
913
|
+
pinned: false,
|
|
914
|
+
drafts: cacheContext.drafts
|
|
915
|
+
})) });
|
|
830
916
|
//#endregion
|
|
831
917
|
//#region src/snapshots.ts
|
|
832
918
|
const SNAPSHOT_PATHS = {
|
|
@@ -862,6 +948,28 @@ const createSnapshotsApi = (request) => {
|
|
|
862
948
|
};
|
|
863
949
|
};
|
|
864
950
|
//#endregion
|
|
951
|
+
//#region src/deliveryClient.ts
|
|
952
|
+
/**
|
|
953
|
+
* The read side of the client over any transport: published content (`delivery`), the site (`site`) and
|
|
954
|
+
* publication snapshots (`snapshots`). `createClient` builds it over HTTP; `@shapio/local` over the delivery
|
|
955
|
+
* API running in the same process. The transport receives exactly the paths the HTTP client sends.
|
|
956
|
+
*/
|
|
957
|
+
const createDeliveryClient = (request, { site, next, drafts = false } = {}) => {
|
|
958
|
+
const cacheContext = {
|
|
959
|
+
site,
|
|
960
|
+
next,
|
|
961
|
+
drafts
|
|
962
|
+
};
|
|
963
|
+
return {
|
|
964
|
+
/** Published content (the delivery API; drafts in drafts mode), typed by the caller. */
|
|
965
|
+
delivery: createDeliveryApi(request, cacheContext),
|
|
966
|
+
/** The site as delivery sees it: key, name and SEO defaults (`GET /api/site`). */
|
|
967
|
+
site: createSiteApi(request, cacheContext),
|
|
968
|
+
/** Publication snapshots and the diff between two (incremental builds). */
|
|
969
|
+
snapshots: createSnapshotsApi(request)
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
//#endregion
|
|
865
973
|
//#region src/site.ts
|
|
866
974
|
/** Delivery reads name their site with `?site=`; everything else with the `Shapio-Site` header. */
|
|
867
975
|
const SITE_QUERY_PARAMETER = "site";
|
|
@@ -913,7 +1021,7 @@ const parseBody = async (response) => {
|
|
|
913
1021
|
/** Builds the JSON request function every endpoint group uses. Non-2xx responses throw ShapioApiError. */
|
|
914
1022
|
const createRequest = ({ baseUrl, token, fetch, credentials, headers, site }) => {
|
|
915
1023
|
const origin = baseUrl.replace(/\/+$/, "");
|
|
916
|
-
return async (requestPath, { method = "GET", body, signal } = {}) => {
|
|
1024
|
+
return async (requestPath, { method = "GET", body, signal, cache, next } = {}) => {
|
|
917
1025
|
const { path, headers: siteHeaders } = applySite(site, method, requestPath);
|
|
918
1026
|
const requestHeaders = {
|
|
919
1027
|
accept: "application/json",
|
|
@@ -922,13 +1030,16 @@ const createRequest = ({ baseUrl, token, fetch, credentials, headers, site }) =>
|
|
|
922
1030
|
};
|
|
923
1031
|
if (token) requestHeaders.authorization = `Bearer ${token}`;
|
|
924
1032
|
if (body !== void 0) requestHeaders["content-type"] = "application/json";
|
|
925
|
-
const
|
|
1033
|
+
const init = {
|
|
926
1034
|
method,
|
|
927
1035
|
headers: requestHeaders,
|
|
928
1036
|
...body !== void 0 ? { body: JSON.stringify(body) } : {},
|
|
929
1037
|
...signal ? { signal } : {},
|
|
930
|
-
...credentials ? { credentials } : {}
|
|
931
|
-
|
|
1038
|
+
...credentials ? { credentials } : {},
|
|
1039
|
+
...cache ? { cache } : {},
|
|
1040
|
+
...next ? { next } : {}
|
|
1041
|
+
};
|
|
1042
|
+
const response = await fetch(`${origin}${path}`, init);
|
|
932
1043
|
const parsed = await parseBody(response);
|
|
933
1044
|
if (!response.ok) throw new ShapioApiError(response.status, parsed);
|
|
934
1045
|
return parsed;
|
|
@@ -936,7 +1047,7 @@ const createRequest = ({ baseUrl, token, fetch, credentials, headers, site }) =>
|
|
|
936
1047
|
};
|
|
937
1048
|
//#endregion
|
|
938
1049
|
//#region src/client.ts
|
|
939
|
-
const createClient = ({ baseUrl, token, fetch = globalThis.fetch, credentials, headers, site }) => {
|
|
1050
|
+
const createClient = ({ baseUrl, token, fetch = globalThis.fetch, credentials, headers, site, next, drafts }) => {
|
|
940
1051
|
const request = createRequest({
|
|
941
1052
|
baseUrl,
|
|
942
1053
|
token,
|
|
@@ -945,6 +1056,11 @@ const createClient = ({ baseUrl, token, fetch = globalThis.fetch, credentials, h
|
|
|
945
1056
|
headers,
|
|
946
1057
|
site
|
|
947
1058
|
});
|
|
1059
|
+
const reads = createDeliveryClient(request, {
|
|
1060
|
+
site,
|
|
1061
|
+
next,
|
|
1062
|
+
...drafts !== void 0 ? { drafts } : {}
|
|
1063
|
+
});
|
|
948
1064
|
return {
|
|
949
1065
|
/**
|
|
950
1066
|
* Any Shapio route, e.g. the delivery API. Delivery paths use the model's route key: a collection's
|
|
@@ -958,12 +1074,12 @@ const createClient = ({ baseUrl, token, fetch = globalThis.fetch, credentials, h
|
|
|
958
1074
|
version: (signal) => request("/api/version", signal ? { signal } : {})
|
|
959
1075
|
},
|
|
960
1076
|
/** Published content (the delivery API), typed by the caller. */
|
|
961
|
-
delivery:
|
|
1077
|
+
delivery: reads.delivery,
|
|
962
1078
|
/** The site as delivery sees it: key, name and SEO defaults (`GET /api/site`). */
|
|
963
|
-
site:
|
|
1079
|
+
site: reads.site,
|
|
964
1080
|
admin: createAdminApi(request),
|
|
965
1081
|
/** Publication snapshots and the diff between two (incremental builds). */
|
|
966
|
-
snapshots:
|
|
1082
|
+
snapshots: reads.snapshots,
|
|
967
1083
|
/** End users of your sites and apps: sign-up, sign-in, tokens, OAuth. */
|
|
968
1084
|
appAuth: createAppAuthApi(request, baseUrl)
|
|
969
1085
|
};
|
|
@@ -1030,6 +1146,6 @@ const createPkcePair = async () => {
|
|
|
1030
1146
|
};
|
|
1031
1147
|
};
|
|
1032
1148
|
//#endregion
|
|
1033
|
-
export { ADMIN_PATHS, APP_AUTH_PATHS, APP_CONTENT_ACTIONS, ASSIST_PATHS, BUILT_IN_APP_ROLE_KEYS, CHANGE_SET_STATUSES, CONTENT_ACTIONS, CONTENT_OPS_RULES, DEFAULT_SEO_KEYS, DELIVERY_PATH, DELIVERY_SITE_PATH, DEPLOYMENT_PROVIDERS, DEPLOYMENT_RUN_STATUSES, DEPLOYMENT_TRIGGERS, GLOBAL_ACTIONS, HEALTH_RULES, JOB_STATUSES, NETWORK_ACTIONS, NOT_RESTORABLE_REASONS, PUBLICATION_ACTIONS, SCHEDULE_STATUSES, SEO_COMPONENT_ID, SEO_FIELD_IDS, SITES_PATHS, SITE_ACTIONS, SITE_HEADER, SITE_QUERY_PARAMETER, SNAPSHOT_SOURCES, ShapioApiError, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, applyTitleTemplate, buildUploadForm, codeChallengeOf, createClient, createPkcePair, resolveSeo, resolveUploadUrl, seoDefaultsForLocale, toContentQueryString, verifyWebhookSignature };
|
|
1149
|
+
export { ADMIN_PATHS, APP_AUTH_PATHS, APP_CONTENT_ACTIONS, ASSIST_PATHS, BUILT_IN_APP_ROLE_KEYS, CHANGE_SET_STATUSES, CONTENT_ACTIONS, CONTENT_OPS_RULES, DEFAULT_SEO_KEYS, DELIVERY_ACTIONS, DELIVERY_PATH, DELIVERY_SITE_PATH, DEPLOYMENT_PROVIDERS, DEPLOYMENT_RUN_STATUSES, DEPLOYMENT_TRIGGERS, GLOBAL_ACTIONS, HEALTH_RULES, JOB_STATUSES, NETWORK_ACTIONS, NOT_RESTORABLE_REASONS, PUBLICATION_ACTIONS, SCHEDULE_STATUSES, SEO_COMPONENT_ID, SEO_FIELD_IDS, SITES_PATHS, SITE_ACTIONS, SITE_HEADER, SITE_QUERY_PARAMETER, SNAPSHOT_SOURCES, ShapioApiError, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, applyTitleTemplate, buildUploadForm, codeChallengeOf, createClient, createDeliveryClient, createPkcePair, resolveSeo, resolveUploadUrl, seoDefaultsForLocale, shapioTags, toContentQueryString, verifyWebhookSignature };
|
|
1034
1150
|
|
|
1035
1151
|
//# sourceMappingURL=index.js.map
|