dineway 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/route-utils.d.mts +2 -2
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +2 -2
- package/dist/{api-THnYu0ZU.mjs → api-CYnT_2_B.mjs} +24 -1
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +1 -1
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware.mjs +4 -4
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +2 -2
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +2 -2
- package/dist/astro/routes/api/admin/briefing.mjs +2 -2
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +2 -2
- package/dist/astro/routes/api/admin/bylines/index.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/bulk.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/index.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +2 -2
- package/dist/astro/routes/api/admin/context/diff.mjs +2 -2
- package/dist/astro/routes/api/admin/context/index.mjs +2 -2
- package/dist/astro/routes/api/admin/context/stale.mjs +2 -2
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +2 -2
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/updates.mjs +3 -3
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +2 -2
- package/dist/astro/routes/api/admin/review-requests/index.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/index.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/register-options.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/request.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +4 -45
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/media.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +2 -2
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +3 -3
- package/dist/astro/routes/api/media/_id_/confirm.mjs +2 -2
- package/dist/astro/routes/api/media/_id_.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +2 -2
- package/dist/astro/routes/api/media.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/items.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/translations.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_.mjs +2 -2
- package/dist/astro/routes/api/menus/index.mjs +2 -2
- package/dist/astro/routes/api/openapi.json.mjs +2 -2
- package/dist/astro/routes/api/redirects/404s/index.mjs +2 -2
- package/dist/astro/routes/api/redirects/404s/summary.mjs +2 -2
- package/dist/astro/routes/api/redirects/_id_.mjs +2 -2
- package/dist/astro/routes/api/redirects/index.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/index.mjs +3 -3
- package/dist/astro/routes/api/search/enable.mjs +2 -2
- package/dist/astro/routes/api/search/index.mjs +2 -2
- package/dist/astro/routes/api/search/rebuild.mjs +2 -2
- package/dist/astro/routes/api/search/suggest.mjs +2 -2
- package/dist/astro/routes/api/sections/_slug_.mjs +2 -2
- package/dist/astro/routes/api/sections/index.mjs +2 -2
- package/dist/astro/routes/api/settings.mjs +2 -2
- package/dist/astro/routes/api/setup/admin-verify.mjs +2 -2
- package/dist/astro/routes/api/setup/admin.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/index.mjs +2 -2
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/index.mjs +2 -2
- package/dist/astro/types.d.mts +2 -2
- package/dist/{bylines-CqLv_DIj.d.mts → bylines-CGwQCHdG.d.mts} +14 -16
- package/dist/cli/index.mjs +1 -5
- package/dist/client/index.d.mts +2 -7
- package/dist/client/index.mjs +2 -3
- package/dist/{import-DQ4Rfh5h.mjs → import-Br7aP9yh.mjs} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{redirects-CoYlqu8e.mjs → redirects-x5ol_Qj9.mjs} +4 -8
- package/dist/{runtime-BM9sqnzO.d.mts → runtime-CJasRKJB.d.mts} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/version-C0JMMhmz.mjs +6 -0
- package/package.json +3 -3
- package/dist/version-Ds94WfbP.mjs +0 -6
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
/** Valid role level values */
|
|
5
5
|
declare const VALID_ROLE_LEVELS: Set<number>;
|
|
6
6
|
/** Role level — coerces string/number to valid RoleLevel (10|20|30|40|50) */
|
|
7
|
-
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
7
|
+
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -114,8 +114,6 @@ declare const contentScheduleBody: z.ZodObject<{
|
|
|
114
114
|
}, z.core.$strip>;
|
|
115
115
|
declare const contentPublishBody: z.ZodObject<{
|
|
116
116
|
publishedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
117
|
-
reviewRequestId: z.ZodOptional<z.ZodString>;
|
|
118
|
-
review_request_id: z.ZodOptional<z.ZodString>;
|
|
119
117
|
}, z.core.$strip>;
|
|
120
118
|
declare const contentPreviewUrlBody: z.ZodObject<{
|
|
121
119
|
expiresIn: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -560,9 +558,9 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
560
558
|
number: "number";
|
|
561
559
|
boolean: "boolean";
|
|
562
560
|
file: "file";
|
|
561
|
+
slug: "slug";
|
|
563
562
|
url: "url";
|
|
564
563
|
image: "image";
|
|
565
|
-
slug: "slug";
|
|
566
564
|
datetime: "datetime";
|
|
567
565
|
text: "text";
|
|
568
566
|
integer: "integer";
|
|
@@ -687,9 +685,9 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
687
685
|
number: "number";
|
|
688
686
|
boolean: "boolean";
|
|
689
687
|
file: "file";
|
|
688
|
+
slug: "slug";
|
|
690
689
|
url: "url";
|
|
691
690
|
image: "image";
|
|
692
|
-
slug: "slug";
|
|
693
691
|
datetime: "datetime";
|
|
694
692
|
text: "text";
|
|
695
693
|
integer: "integer";
|
|
@@ -752,9 +750,9 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
752
750
|
number: "number";
|
|
753
751
|
boolean: "boolean";
|
|
754
752
|
file: "file";
|
|
753
|
+
slug: "slug";
|
|
755
754
|
url: "url";
|
|
756
755
|
image: "image";
|
|
757
|
-
slug: "slug";
|
|
758
756
|
datetime: "datetime";
|
|
759
757
|
text: "text";
|
|
760
758
|
integer: "integer";
|
|
@@ -806,9 +804,9 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
806
804
|
number: "number";
|
|
807
805
|
boolean: "boolean";
|
|
808
806
|
file: "file";
|
|
807
|
+
slug: "slug";
|
|
809
808
|
url: "url";
|
|
810
809
|
image: "image";
|
|
811
|
-
slug: "slug";
|
|
812
810
|
datetime: "datetime";
|
|
813
811
|
text: "text";
|
|
814
812
|
integer: "integer";
|
|
@@ -843,9 +841,9 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
843
841
|
number: "number";
|
|
844
842
|
boolean: "boolean";
|
|
845
843
|
file: "file";
|
|
844
|
+
slug: "slug";
|
|
846
845
|
url: "url";
|
|
847
846
|
image: "image";
|
|
848
|
-
slug: "slug";
|
|
849
847
|
datetime: "datetime";
|
|
850
848
|
text: "text";
|
|
851
849
|
integer: "integer";
|
|
@@ -1022,21 +1020,21 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1022
1020
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1023
1021
|
}, z.core.$strip>;
|
|
1024
1022
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1025
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1026
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1027
|
-
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1028
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1029
1023
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1030
1024
|
true: "true";
|
|
1031
1025
|
false: "false";
|
|
1032
1026
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1027
|
+
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1033
1028
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1029
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1034
1030
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1035
1031
|
user: "user";
|
|
1036
1032
|
api_token: "api_token";
|
|
1037
1033
|
system: "system";
|
|
1038
1034
|
}>>;
|
|
1039
1035
|
createdByActorId: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1037
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1040
1038
|
now: z.ZodOptional<z.ZodString>;
|
|
1041
1039
|
}, z.core.$strip>;
|
|
1042
1040
|
declare const contextEntryDiffQuery: z.ZodObject<{
|
|
@@ -1194,7 +1192,7 @@ declare const signupCompleteBody: z.ZodObject<{
|
|
|
1194
1192
|
}, z.core.$strip>;
|
|
1195
1193
|
declare const inviteCreateBody: z.ZodObject<{
|
|
1196
1194
|
email: z.ZodString;
|
|
1197
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
1195
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
1198
1196
|
}, z.core.$strip>;
|
|
1199
1197
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1200
1198
|
token: z.ZodString;
|
|
@@ -1746,15 +1744,15 @@ declare const usersListQuery: z.ZodObject<{
|
|
|
1746
1744
|
declare const userUpdateBody: z.ZodObject<{
|
|
1747
1745
|
name: z.ZodOptional<z.ZodString>;
|
|
1748
1746
|
email: z.ZodOptional<z.ZodString>;
|
|
1749
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
1747
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
1750
1748
|
}, z.core.$strip>;
|
|
1751
1749
|
declare const allowedDomainCreateBody: z.ZodObject<{
|
|
1752
1750
|
domain: z.ZodString;
|
|
1753
|
-
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
1751
|
+
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
|
|
1754
1752
|
}, z.core.$strip>;
|
|
1755
1753
|
declare const allowedDomainUpdateBody: z.ZodObject<{
|
|
1756
1754
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1757
|
-
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
1755
|
+
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
1758
1756
|
}, z.core.$strip>;
|
|
1759
1757
|
declare const userSchema: z.ZodObject<{
|
|
1760
1758
|
id: z.ZodString;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -770,16 +770,12 @@ const publishCommand$1 = defineCommand({
|
|
|
770
770
|
description: "Content item ID or slug",
|
|
771
771
|
required: true
|
|
772
772
|
},
|
|
773
|
-
"review-request-id": {
|
|
774
|
-
type: "string",
|
|
775
|
-
description: "Approved review request ID for token-authenticated publish"
|
|
776
|
-
},
|
|
777
773
|
...connectionArgs
|
|
778
774
|
},
|
|
779
775
|
async run({ args }) {
|
|
780
776
|
configureOutputMode(args);
|
|
781
777
|
try {
|
|
782
|
-
await createClientFromArgs(args).publish(args.collection, args.id
|
|
778
|
+
await createClientFromArgs(args).publish(args.collection, args.id);
|
|
783
779
|
output({ success: true }, args);
|
|
784
780
|
consola$1.success(`Published ${args.collection}/${args.id}`);
|
|
785
781
|
} catch (error) {
|
package/dist/client/index.d.mts
CHANGED
|
@@ -75,11 +75,6 @@ interface ListResult<T> {
|
|
|
75
75
|
items: T[];
|
|
76
76
|
nextCursor?: string;
|
|
77
77
|
}
|
|
78
|
-
/** Options for publishing content. */
|
|
79
|
-
interface PublishContentOptions {
|
|
80
|
-
/** Approved review request ID for token-authenticated publish execution. */
|
|
81
|
-
reviewRequestId?: string;
|
|
82
|
-
}
|
|
83
78
|
/** Content item as returned by the API */
|
|
84
79
|
interface ContentItem {
|
|
85
80
|
id: string;
|
|
@@ -325,7 +320,7 @@ declare class DinewayClient {
|
|
|
325
320
|
/** Delete (soft) a content item */
|
|
326
321
|
delete(collection: string, id: string): Promise<void>;
|
|
327
322
|
/** Publish a content item */
|
|
328
|
-
publish(collection: string, id: string
|
|
323
|
+
publish(collection: string, id: string): Promise<void>;
|
|
329
324
|
/** Unpublish a content item */
|
|
330
325
|
unpublish(collection: string, id: string): Promise<void>;
|
|
331
326
|
/** Schedule publishing */
|
|
@@ -408,4 +403,4 @@ declare class DinewayClient {
|
|
|
408
403
|
private getFieldSchemas;
|
|
409
404
|
}
|
|
410
405
|
//#endregion
|
|
411
|
-
export { ApiError, ClientResponse, Collection, CollectionWithFields, ContentItem, DinewayApiError, DinewayClient, DinewayClientError, DinewayClientOptions, Field, type Interceptor, ListResult, Manifest, MediaItem, Menu, MenuItem, MenuWithItems, type PortableTextBlock,
|
|
406
|
+
export { ApiError, ClientResponse, Collection, CollectionWithFields, ContentItem, DinewayApiError, DinewayClient, DinewayClientError, DinewayClientOptions, Field, type Interceptor, ListResult, Manifest, MediaItem, Menu, MenuItem, MenuWithItems, type PortableTextBlock, SchemaExport, SearchResult, SetupLinkResult, Taxonomy, Term, createTransport, csrfInterceptor, devBypassInterceptor, markdownToPortableText, portableTextToMarkdown, tokenInterceptor };
|
package/dist/client/index.mjs
CHANGED
|
@@ -186,9 +186,8 @@ var DinewayClient = class {
|
|
|
186
186
|
await this.request("DELETE", `/content/${encodeURIComponent(collection)}/${encodeURIComponent(id)}`);
|
|
187
187
|
}
|
|
188
188
|
/** Publish a content item */
|
|
189
|
-
async publish(collection, id
|
|
190
|
-
|
|
191
|
-
await this.request("POST", `/content/${encodeURIComponent(collection)}/${encodeURIComponent(id)}/publish`, body);
|
|
189
|
+
async publish(collection, id) {
|
|
190
|
+
await this.request("POST", `/content/${encodeURIComponent(collection)}/${encodeURIComponent(id)}/publish`);
|
|
192
191
|
}
|
|
193
192
|
/** Unpublish a content item */
|
|
194
193
|
async unpublish(collection, id) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-BrSQNye5.mjs";
|
|
2
|
-
import { An as roleLevel, En as httpUrl } from "./redirects-
|
|
2
|
+
import { An as roleLevel, En as httpUrl } from "./redirects-x5ol_Qj9.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/api/schemas/context.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ContentSeoInput, c as FindManyOptions, i as ContentSeo, l as FindManyResult, n as ContentBylineCredit, o as CreateContentInput, r as ContentItem, s as DinewayValidationError, t as BylineSummary, u as UpdateContentInput } from "./types-DvwHUku7.mjs";
|
|
2
|
-
import { $ as createPluginManager, $t as SandboxOptions, A as dropSessionDatabaseTables, An as handleContentDelete, At as verifyPreviewSignature, B as GeneratePreviewTokenOptions, Bn as handleContentSchedule, Bt as prosemirrorToPortableText, C as getByline, Cn as handleRevisionList, Ct as SessionOpenOrCreateOptions, D as AppliedSnapshotMeta, Dn as handleContentCountScheduled, Dt as defaultPreviewSidecarClient, E as renderPreviewToolbar, En as handleContentCompare, Et as buildPreviewSignatureHeader, F as getPreviewToken, Fn as handleContentList, Ft as AfterCallback, G as parseContentId, Gn as CreateMediaInput, Gt as PortableTextSpan, H as VerifyPreviewTokenOptions, Hn as handleContentUnpublish, Ht as PortableTextImageBlock, I as isPreviewRequest, In as handleContentListTrashed, It as after, J as createNodeSandboxRunner, Jn as ContentRepository, Jt as ProseMirrorDocument, K as verifyPreviewToken, Kn as MediaItem, Kt as PortableTextTextBlock, L as GetPreviewUrlOptions, Ln as handleContentPermanentDelete, Lt as computeContentHash, M as Snapshot, Mn as handleContentDuplicate, Mt as getFallbackChain, N as renderPreviewLoadingPage, Nn as handleContentGet, Nt as getI18nConfig, O as ApplySnapshotToDatabaseOptions, On as handleContentCountTrashed, Ot as parsePreviewSignatureHeader, P as isBlockedInPreview, Pn as handleContentGetIncludingTrashed, Pt as isI18nEnabled, Q as PluginManager, Qt as SandboxEmailSendCallback, R as buildPreviewUrl, Rn as handleContentPublish, Rt as hashString, S as Suggestion, Sn as handleRevisionGet, St as SessionOpenOptions, T as PreviewToolbarConfig, Tn as generateManifest, Tt as PreviewSidecarSignature, U as VerifyPreviewTokenResult, Un as handleContentUnschedule, Ut as PortableTextLinkMark, V as PreviewTokenPayload, Vn as handleContentTranslations, Vt as PortableTextCodeBlock, W as generatePreviewToken, Wn as handleContentUpdate, Wt as PortableTextMarkDef, X as SandboxNotAvailableError, Xn as DinewayDatabaseError, Xt as ProseMirrorNode, Y as NoopSandboxRunner, Yn as DatabaseConfig, Yt as ProseMirrorMark, Z as createNoopSandboxRunner, Zt as SandboxEmailMessage, _ as SearchOptions, _n as handleMediaGet, _t as SessionCleanupResult, an as getSections, ar as ApiContext, at as ValidatedPluginManifest, b as SearchStats, bn as RevisionListResponse, bt as SessionDatabaseInfo, c as extractSearchableFields, cn as Section, cr as FieldDescriptor, ct as CollectionFilter$1, d as search, dn as SchemaError, en as SandboxRunner, et as PluginRouteError, f as searchCollection, fn as SchemaRegistry, g as SearchConfig, gn as handleMediaDelete, gt as FileSessionDatabaseFactoryOptions, h as CollectionSearchOptions, hn as handleMediaCreate, ht as FileSessionDatabaseFactory, in as getSection, it as createHookPipeline, j as getAppliedSnapshotMeta, jn as handleContentDiscardDraft, jt as I18nConfig, k as applySnapshotToDatabase, kn as handleContentCreate, kt as signPreviewUrl, l as getSearchStats, ln as SectionSource, lr as ListResponse, lt as EntryData, m as FTSManager, mn as MediaResponse, mt as createFilePreviewMiddleware, n as PluginDescriptor, nn as SandboxedPlugin, nt as HookPipeline, on as CreateSectionInput, or as ContentListResponse, ot as pluginManifestSchema, p as searchWithDb, pn as MediaListResponse, pt as FilePreviewMiddlewareConfig, q as NodeSandboxRunner, qn as MediaRepository, qt as PortableTextUnknownBlock, rn as SerializedRequest, rt as HookResult, s as extractPlainText, sn as GetSectionsOptions, sr as ContentResponse, st as definePlugin, tn as SandboxRunnerFactory, u as getSuggestions, un as UpdateSectionInput, ur as ManifestResponse, ut as EntryFilter, v as SearchResponse, vn as handleMediaList, vt as SessionDatabaseFactory, w as getBylineBySlug, wn as handleRevisionRestore, wt as PreviewSidecarClient, x as SuggestOptions, xn as RevisionResponse, xt as SessionDatabaseLimitError, y as SearchResult, yn as handleMediaUpdate, yt as SessionDatabaseHandle, z as getPreviewUrl, zn as handleContentRestore, zt as portableTextToProsemirror } from "./runtime-
|
|
2
|
+
import { $ as createPluginManager, $t as SandboxOptions, A as dropSessionDatabaseTables, An as handleContentDelete, At as verifyPreviewSignature, B as GeneratePreviewTokenOptions, Bn as handleContentSchedule, Bt as prosemirrorToPortableText, C as getByline, Cn as handleRevisionList, Ct as SessionOpenOrCreateOptions, D as AppliedSnapshotMeta, Dn as handleContentCountScheduled, Dt as defaultPreviewSidecarClient, E as renderPreviewToolbar, En as handleContentCompare, Et as buildPreviewSignatureHeader, F as getPreviewToken, Fn as handleContentList, Ft as AfterCallback, G as parseContentId, Gn as CreateMediaInput, Gt as PortableTextSpan, H as VerifyPreviewTokenOptions, Hn as handleContentUnpublish, Ht as PortableTextImageBlock, I as isPreviewRequest, In as handleContentListTrashed, It as after, J as createNodeSandboxRunner, Jn as ContentRepository, Jt as ProseMirrorDocument, K as verifyPreviewToken, Kn as MediaItem, Kt as PortableTextTextBlock, L as GetPreviewUrlOptions, Ln as handleContentPermanentDelete, Lt as computeContentHash, M as Snapshot, Mn as handleContentDuplicate, Mt as getFallbackChain, N as renderPreviewLoadingPage, Nn as handleContentGet, Nt as getI18nConfig, O as ApplySnapshotToDatabaseOptions, On as handleContentCountTrashed, Ot as parsePreviewSignatureHeader, P as isBlockedInPreview, Pn as handleContentGetIncludingTrashed, Pt as isI18nEnabled, Q as PluginManager, Qt as SandboxEmailSendCallback, R as buildPreviewUrl, Rn as handleContentPublish, Rt as hashString, S as Suggestion, Sn as handleRevisionGet, St as SessionOpenOptions, T as PreviewToolbarConfig, Tn as generateManifest, Tt as PreviewSidecarSignature, U as VerifyPreviewTokenResult, Un as handleContentUnschedule, Ut as PortableTextLinkMark, V as PreviewTokenPayload, Vn as handleContentTranslations, Vt as PortableTextCodeBlock, W as generatePreviewToken, Wn as handleContentUpdate, Wt as PortableTextMarkDef, X as SandboxNotAvailableError, Xn as DinewayDatabaseError, Xt as ProseMirrorNode, Y as NoopSandboxRunner, Yn as DatabaseConfig, Yt as ProseMirrorMark, Z as createNoopSandboxRunner, Zt as SandboxEmailMessage, _ as SearchOptions, _n as handleMediaGet, _t as SessionCleanupResult, an as getSections, ar as ApiContext, at as ValidatedPluginManifest, b as SearchStats, bn as RevisionListResponse, bt as SessionDatabaseInfo, c as extractSearchableFields, cn as Section, cr as FieldDescriptor, ct as CollectionFilter$1, d as search, dn as SchemaError, en as SandboxRunner, et as PluginRouteError, f as searchCollection, fn as SchemaRegistry, g as SearchConfig, gn as handleMediaDelete, gt as FileSessionDatabaseFactoryOptions, h as CollectionSearchOptions, hn as handleMediaCreate, ht as FileSessionDatabaseFactory, in as getSection, it as createHookPipeline, j as getAppliedSnapshotMeta, jn as handleContentDiscardDraft, jt as I18nConfig, k as applySnapshotToDatabase, kn as handleContentCreate, kt as signPreviewUrl, l as getSearchStats, ln as SectionSource, lr as ListResponse, lt as EntryData, m as FTSManager, mn as MediaResponse, mt as createFilePreviewMiddleware, n as PluginDescriptor, nn as SandboxedPlugin, nt as HookPipeline, on as CreateSectionInput, or as ContentListResponse, ot as pluginManifestSchema, p as searchWithDb, pn as MediaListResponse, pt as FilePreviewMiddlewareConfig, q as NodeSandboxRunner, qn as MediaRepository, qt as PortableTextUnknownBlock, rn as SerializedRequest, rt as HookResult, s as extractPlainText, sn as GetSectionsOptions, sr as ContentResponse, st as definePlugin, tn as SandboxRunnerFactory, u as getSuggestions, un as UpdateSectionInput, ur as ManifestResponse, ut as EntryFilter, v as SearchResponse, vn as handleMediaList, vt as SessionDatabaseFactory, w as getBylineBySlug, wn as handleRevisionRestore, wt as PreviewSidecarClient, x as SuggestOptions, xn as RevisionResponse, xt as SessionDatabaseLimitError, y as SearchResult, yn as handleMediaUpdate, yt as SessionDatabaseHandle, z as getPreviewUrl, zn as handleContentRestore, zt as portableTextToProsemirror } from "./runtime-CJasRKJB.mjs";
|
|
3
3
|
import { n as MediaTable, r as UserTable, t as Database } from "./types-B1NksXAb.mjs";
|
|
4
4
|
import { $ as StandardHookEntry, A as PageMetadataContribution, B as PluginDefinition, C as MediaAccess, D as PageFragmentContribution, E as ModerationDecision, F as PluginAdminConfig, G as PortableTextBlockConfig, H as PluginManifest, I as PluginAdminExports, K as PortableTextBlockField, L as PluginAdminPage, M as PageMetadataHandler, O as PageFragmentEvent, P as PagePlacement, Q as RouteContext, R as PluginCapability, S as LogAccess, T as MediaUploadEvent, U as PluginRoute, V as PluginHooks, W as PluginStorageConfig, X as ResolvedPlugin, Y as ResolvedHook, Z as ResolvedPluginHooks, _ as FieldWidgetConfig, a as CommentAfterModerateEvent, b as HttpAccess, c as CommentBeforeCreateHandler, d as ContentAccess, et as StandardHookHandler, f as ContentDeleteEvent, i as CommentAfterCreateHandler, it as StorageCollection, j as PageMetadataEvent, k as PageFragmentHandler, l as CommentModerateEvent, m as ContentPublishStateChangeEvent, n as CollectionCommentSettings, nt as StandardRouteEntry, o as CommentAfterModerateHandler, ot as StoredComment, p as ContentHookEvent, q as PublicPageContext, r as CommentAfterCreateEvent, rt as StandardRouteHandler, s as CommentBeforeCreateEvent, st as isStandardPluginDefinition, t as BreadcrumbItem, tt as StandardPluginDefinition, u as CommentModerateHandler, v as HookConfig, x as KVAccess, y as HookName, z as PluginContext } from "./types-BIM7jwxr.mjs";
|
|
5
5
|
import { _ as RESERVED_COLLECTION_SLUGS, a as Collection, b as UpdateFieldInput, c as CollectionWithFields, d as CreateFieldInput, f as FIELD_TYPE_TO_COLUMN, g as FieldWidgetOptions, h as FieldValidation, i as SiteSettings, l as ColumnType, m as FieldType, n as SeoSettings, o as CollectionSource, p as Field, r as SiteSettingKey, s as CollectionSupport, t as MediaReference, u as CreateCollectionInput, v as RESERVED_FIELD_SLUGS, y as UpdateCollectionInput } from "./types-t7_nCCA9.mjs";
|
|
@@ -11,7 +11,7 @@ import { $ as TranslationSummary, A as MenuItem, B as getPluginSettings, C as Ta
|
|
|
11
11
|
import { _ as WxrSite, a as getAllSources, b as parseWxrString, c as getUrlSources, d as importReusableBlocksAsSections, f as WxrAttachment, g as WxrPost, h as WxrData, i as clearSources, l as probeUrl, m as WxrCategory, n as parseWxrDate, o as getFileSources, p as WxrAuthor, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource, v as WxrTag, x as decodeSlug, y as parseWxr } from "./index-CpbixmRL.mjs";
|
|
12
12
|
import { n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "./placeholder-BZpCpid_.mjs";
|
|
13
13
|
import { a as ListOptions, c as S3StorageConfig, d as Storage, f as StorageDescriptor, i as FileInfo, l as SignedUploadOptions, n as DinewayStorageError, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, t as CreateStorageFn, u as SignedUploadUrl } from "./types-BYjPylrZ.mjs";
|
|
14
|
-
import "./bylines-
|
|
14
|
+
import "./bylines-CGwQCHdG.mjs";
|
|
15
15
|
import { DinewayRequestContext, getRequestContext, runWithContext } from "./request-context.mjs";
|
|
16
16
|
import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
|
|
17
17
|
import { S as UrlInput, _ as SourceAuth, a as FileInput, b as SourceProbeResult, c as ImportContext, d as ImportSource, f as NormalizedItem, g as ProbeResult, h as PostTypeMapping, i as FieldCompatibility, l as ImportFieldDef, m as PostTypeAnalysis, n as CollectionSchemaStatus, o as ImportAnalysis, p as OAuthInput, r as FetchOptions, s as ImportConfig, t as AttachmentInfo, u as ImportResult, v as SourceCapabilities, x as SuggestedAction, y as SourceInput } from "./types-BBETcziA.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import "./byline-DpNNSjET.mjs";
|
|
|
24
24
|
import { t as normalizeMediaValue } from "./normalize-BY_EJnd9.mjs";
|
|
25
25
|
import { t as generatePlaceholder } from "./placeholder-b0Ufu0La.mjs";
|
|
26
26
|
import "./seo-BPb_reaG.mjs";
|
|
27
|
-
import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-
|
|
27
|
+
import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-CYnT_2_B.mjs";
|
|
28
28
|
import "./request-cache-BpwuE2ix.mjs";
|
|
29
29
|
import "./dashboard-BC9bgPOH.mjs";
|
|
30
30
|
import "./briefing-Jsxs587i.mjs";
|
|
@@ -48,8 +48,8 @@ import "./taxonomies-DGaw_-aU.mjs";
|
|
|
48
48
|
import { i as pluginManifestSchema } from "./manifest-schema-C6fzQoWn.mjs";
|
|
49
49
|
import { t as DinewayStorageError } from "./types-CNNQ8l0v.mjs";
|
|
50
50
|
import "./parse-D7Tu6ku4.mjs";
|
|
51
|
-
import "./redirects-
|
|
52
|
-
import "./import-
|
|
51
|
+
import "./redirects-x5ol_Qj9.mjs";
|
|
52
|
+
import "./import-Br7aP9yh.mjs";
|
|
53
53
|
import { n as sanitizeHref, t as isSafeHref } from "./url-BzhfYtRn.mjs";
|
|
54
54
|
import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-DHvNhBhi.mjs";
|
|
55
55
|
import { a as verifyPreviewSignature, i as signPreviewUrl, n as defaultPreviewSidecarClient, r as parsePreviewSignatureHeader, t as buildPreviewSignatureHeader } from "./sidecar-client-lrf7ErYJ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../runtime-
|
|
1
|
+
import "../runtime-CJasRKJB.mjs";
|
|
2
2
|
import { t as Database } from "../types-B1NksXAb.mjs";
|
|
3
3
|
import "../types-BIM7jwxr.mjs";
|
|
4
4
|
import "../types-BgE6gMFI.mjs";
|
|
@@ -7,7 +7,7 @@ import "../runner-pAnQS6iI.mjs";
|
|
|
7
7
|
import "../index-2tBfB_8X.mjs";
|
|
8
8
|
import "../index-CpbixmRL.mjs";
|
|
9
9
|
import { d as Storage } from "../types-BYjPylrZ.mjs";
|
|
10
|
-
import "../bylines-
|
|
10
|
+
import "../bylines-CGwQCHdG.mjs";
|
|
11
11
|
import "../types-BBETcziA.mjs";
|
|
12
12
|
import "../validate-BzUCAU2a.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as PluginDescriptor } from "../runtime-
|
|
1
|
+
import { n as PluginDescriptor } from "../runtime-CJasRKJB.mjs";
|
|
2
2
|
import "../types-B1NksXAb.mjs";
|
|
3
3
|
import { X as ResolvedPlugin, tt as StandardPluginDefinition } from "../types-BIM7jwxr.mjs";
|
|
4
4
|
import "../types-BgE6gMFI.mjs";
|
|
5
5
|
import "../runner-pAnQS6iI.mjs";
|
|
6
6
|
import "../index-2tBfB_8X.mjs";
|
|
7
7
|
import "../index-CpbixmRL.mjs";
|
|
8
|
-
import "../bylines-
|
|
8
|
+
import "../bylines-CGwQCHdG.mjs";
|
|
9
9
|
import "../types-BBETcziA.mjs";
|
|
10
10
|
import "../validate-BzUCAU2a.mjs";
|
|
11
11
|
|
|
@@ -149,14 +149,10 @@ const contentScheduleBody = z.object({ scheduledAt: z.string().min(1, "scheduled
|
|
|
149
149
|
description: "ISO 8601 datetime for scheduled publishing",
|
|
150
150
|
example: "2025-06-15T09:00:00Z"
|
|
151
151
|
}) }).meta({ id: "ContentScheduleBody" });
|
|
152
|
-
const contentPublishBody = z.object({
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}).optional().meta({ description: "Optional ISO 8601 datetime to backdate the publish. Requires content:publish_any permission. Without this, existing published_at is preserved on re-publish." }),
|
|
157
|
-
reviewRequestId: z.string().optional().meta({ description: "Approved review request ID for token-authenticated publish execution." }),
|
|
158
|
-
review_request_id: z.string().optional().meta({ description: "Snake-case alias for reviewRequestId." })
|
|
159
|
-
}).meta({ id: "ContentPublishBody" });
|
|
152
|
+
const contentPublishBody = z.object({ publishedAt: z.iso.datetime({
|
|
153
|
+
offset: true,
|
|
154
|
+
message: "must be an ISO 8601 datetime"
|
|
155
|
+
}).optional().meta({ description: "Optional ISO 8601 datetime to backdate the publish. Requires content:publish_any permission. Without this, existing published_at is preserved on re-publish." }) }).meta({ id: "ContentPublishBody" });
|
|
160
156
|
const contentPreviewUrlBody = z.object({
|
|
161
157
|
expiresIn: z.union([z.string(), z.number()]).optional(),
|
|
162
158
|
pathPattern: z.string().optional()
|
|
@@ -1787,8 +1787,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1787
1787
|
number: "number";
|
|
1788
1788
|
boolean: "boolean";
|
|
1789
1789
|
file: "file";
|
|
1790
|
-
image: "image";
|
|
1791
1790
|
slug: "slug";
|
|
1791
|
+
image: "image";
|
|
1792
1792
|
datetime: "datetime";
|
|
1793
1793
|
text: "text";
|
|
1794
1794
|
integer: "integer";
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ct as CollectionFilter, dt as dinewayLoader, ft as getDb, lt as EntryData, ut as EntryFilter } from "./runtime-
|
|
1
|
+
import { ct as CollectionFilter, dt as dinewayLoader, ft as getDb, lt as EntryData, ut as EntryFilter } from "./runtime-CJasRKJB.mjs";
|
|
2
2
|
import "./types-B1NksXAb.mjs";
|
|
3
3
|
import "./types-BIM7jwxr.mjs";
|
|
4
4
|
import "./types-BgE6gMFI.mjs";
|
|
5
5
|
import "./runner-pAnQS6iI.mjs";
|
|
6
6
|
import "./index-2tBfB_8X.mjs";
|
|
7
7
|
import "./index-CpbixmRL.mjs";
|
|
8
|
-
import "./bylines-
|
|
8
|
+
import "./bylines-CGwQCHdG.mjs";
|
|
9
9
|
import "./types-BBETcziA.mjs";
|
|
10
10
|
import "./validate-BzUCAU2a.mjs";
|
|
11
11
|
import { t as getMediaProvider } from "./provider-loader-BaZhx7E3.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dineway",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -348,8 +348,8 @@
|
|
|
348
348
|
"upng-js": "^2.1.0",
|
|
349
349
|
"zod": "^4.4.1",
|
|
350
350
|
"@dineway-ai/admin": "^0.1.15",
|
|
351
|
-
"@dineway-ai/
|
|
352
|
-
"@dineway-ai/
|
|
351
|
+
"@dineway-ai/gutenberg-to-portable-text": "^0.1.13",
|
|
352
|
+
"@dineway-ai/auth": "^0.1.15"
|
|
353
353
|
},
|
|
354
354
|
"optionalDependencies": {
|
|
355
355
|
"@aws-sdk/client-s3": "^3.1049.0",
|