dineway 0.2.3 → 0.2.5

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.
Files changed (158) hide show
  1. package/dist/api/route-utils.d.mts +3 -3
  2. package/dist/api/schemas/index.d.mts +2 -2
  3. package/dist/api/schemas/index.mjs +3 -3
  4. package/dist/{api-BFey0dOt.mjs → api-C3-s1R27.mjs} +1 -1
  5. package/dist/astro/index.d.mts +2 -2
  6. package/dist/astro/index.mjs +1 -1
  7. package/dist/astro/middleware/auth.d.mts +2 -2
  8. package/dist/astro/middleware.mjs +8 -7
  9. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +2 -2
  10. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +2 -2
  11. package/dist/astro/routes/api/admin/briefing.mjs +2 -2
  12. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +2 -2
  13. package/dist/astro/routes/api/admin/byline-fields/index.mjs +2 -2
  14. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +2 -2
  15. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +2 -2
  16. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +2 -2
  17. package/dist/astro/routes/api/admin/bylines/index.mjs +2 -2
  18. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +2 -2
  19. package/dist/astro/routes/api/admin/comments/bulk.mjs +2 -2
  20. package/dist/astro/routes/api/admin/comments/index.mjs +2 -2
  21. package/dist/astro/routes/api/admin/context/_id_/history.mjs +3 -3
  22. package/dist/astro/routes/api/admin/context/_id_/index.mjs +3 -3
  23. package/dist/astro/routes/api/admin/context/_id_/review.mjs +5 -5
  24. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +5 -5
  25. package/dist/astro/routes/api/admin/context/diff.mjs +5 -5
  26. package/dist/astro/routes/api/admin/context/index.mjs +5 -5
  27. package/dist/astro/routes/api/admin/context/stale.mjs +5 -5
  28. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +4 -4
  29. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +6 -6
  30. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +6 -6
  31. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +3 -3
  32. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +6 -6
  33. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +6 -6
  34. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +3 -3
  35. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +6 -6
  36. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +6 -6
  37. package/dist/astro/routes/api/admin/plugins/index.mjs +3 -3
  38. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +3 -3
  39. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +6 -6
  40. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +3 -3
  41. package/dist/astro/routes/api/admin/plugins/updates.mjs +3 -3
  42. package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +4 -4
  43. package/dist/astro/routes/api/admin/review-requests/index.mjs +4 -4
  44. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +3 -3
  45. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +3 -3
  46. package/dist/astro/routes/api/admin/users/_id_/index.mjs +2 -2
  47. package/dist/astro/routes/api/admin/users/index.mjs +2 -2
  48. package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
  49. package/dist/astro/routes/api/auth/invite/index.mjs +2 -2
  50. package/dist/astro/routes/api/auth/invite/register-options.mjs +2 -2
  51. package/dist/astro/routes/api/auth/magic-link/send.mjs +2 -2
  52. package/dist/astro/routes/api/auth/me.mjs +2 -2
  53. package/dist/astro/routes/api/auth/passkey/_id_.mjs +2 -2
  54. package/dist/astro/routes/api/auth/passkey/options.mjs +2 -2
  55. package/dist/astro/routes/api/auth/passkey/register/options.mjs +2 -2
  56. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
  57. package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
  58. package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
  59. package/dist/astro/routes/api/auth/signup/request.mjs +2 -2
  60. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +2 -2
  61. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +2 -2
  62. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +2 -2
  63. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +14 -7
  64. package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.d.mts +7 -0
  65. package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +43 -0
  66. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +3 -3
  67. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +2 -2
  68. package/dist/astro/routes/api/content/_collection_/_id_.mjs +2 -2
  69. package/dist/astro/routes/api/content/_collection_/index.mjs +2 -2
  70. package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
  71. package/dist/astro/routes/api/health.mjs +1 -1
  72. package/dist/astro/routes/api/import/probe.mjs +2 -2
  73. package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
  74. package/dist/astro/routes/api/import/wordpress/execute.mjs +3 -3
  75. package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
  76. package/dist/astro/routes/api/import/wordpress/media.mjs +2 -2
  77. package/dist/astro/routes/api/import/wordpress/prepare.mjs +5 -5
  78. package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
  79. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +5 -5
  80. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +2 -2
  81. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
  82. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +5 -5
  83. package/dist/astro/routes/api/manifest.mjs +1 -1
  84. package/dist/astro/routes/api/mcp.mjs +46 -8
  85. package/dist/astro/routes/api/media/_id_/confirm.mjs +2 -2
  86. package/dist/astro/routes/api/media/_id_.mjs +2 -2
  87. package/dist/astro/routes/api/media/upload-url.mjs +2 -2
  88. package/dist/astro/routes/api/media.mjs +2 -2
  89. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +5 -5
  90. package/dist/astro/routes/api/menus/_name_/items.mjs +5 -5
  91. package/dist/astro/routes/api/menus/_name_/reorder.mjs +5 -5
  92. package/dist/astro/routes/api/menus/_name_/translations.mjs +5 -5
  93. package/dist/astro/routes/api/menus/_name_.mjs +5 -5
  94. package/dist/astro/routes/api/menus/index.mjs +5 -5
  95. package/dist/astro/routes/api/openapi.json.mjs +24 -3
  96. package/dist/astro/routes/api/redirects/404s/index.mjs +2 -2
  97. package/dist/astro/routes/api/redirects/404s/summary.mjs +2 -2
  98. package/dist/astro/routes/api/redirects/_id_.mjs +5 -5
  99. package/dist/astro/routes/api/redirects/index.mjs +5 -5
  100. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +3 -3
  101. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +3 -3
  102. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +3 -3
  103. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +3 -3
  104. package/dist/astro/routes/api/schema/collections/index.mjs +3 -3
  105. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +3 -3
  106. package/dist/astro/routes/api/schema/orphans/index.mjs +3 -3
  107. package/dist/astro/routes/api/search/enable.mjs +2 -2
  108. package/dist/astro/routes/api/search/index.mjs +2 -2
  109. package/dist/astro/routes/api/search/rebuild.mjs +2 -2
  110. package/dist/astro/routes/api/search/suggest.mjs +2 -2
  111. package/dist/astro/routes/api/sections/_slug_.mjs +5 -5
  112. package/dist/astro/routes/api/sections/index.mjs +5 -5
  113. package/dist/astro/routes/api/settings.mjs +5 -5
  114. package/dist/astro/routes/api/setup/admin-verify.mjs +2 -2
  115. package/dist/astro/routes/api/setup/admin.mjs +2 -2
  116. package/dist/astro/routes/api/setup/index.mjs +2 -2
  117. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +5 -5
  118. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +5 -5
  119. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +5 -5
  120. package/dist/astro/routes/api/taxonomies/index.mjs +5 -5
  121. package/dist/astro/routes/api/well-known/auth.mjs +1 -1
  122. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +5 -5
  123. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +5 -5
  124. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +5 -5
  125. package/dist/astro/routes/api/widget-areas/_name_.mjs +3 -3
  126. package/dist/astro/routes/api/widget-areas/index.mjs +5 -5
  127. package/dist/astro/types.d.mts +3 -3
  128. package/dist/{byline-fields-yT4herdN.mjs → byline-fields-Co_MIUWm.mjs} +1 -1
  129. package/dist/{byline-fields-sRHzS0aM.d.mts → byline-fields-bnvqaEuF.d.mts} +208 -27
  130. package/dist/cli/index.mjs +54 -6
  131. package/dist/cli/plugin-kit.d.mts +8 -0
  132. package/dist/client/external-auth-headers.d.mts +1 -1
  133. package/dist/client/index.d.mts +22 -4
  134. package/dist/client/index.mjs +14 -2
  135. package/dist/{context-AJNd0tcG.mjs → context-m06dNjS1.mjs} +1 -1
  136. package/dist/{hitl-requests-Bee8Cjj8.mjs → hitl-requests-D8pHHlSA.mjs} +1 -1
  137. package/dist/{hitl-route-helpers-DtHaKGgm.mjs → hitl-route-helpers-BIzP0Opq.mjs} +1 -1
  138. package/dist/index.d.mts +3 -3
  139. package/dist/index.mjs +6 -6
  140. package/dist/{jsonld-B9A2e0yv.d.mts → jsonld-CG-hNWNO.d.mts} +1 -1
  141. package/dist/{mcp-reviewed-executor-DnlF7mIL.mjs → mcp-reviewed-executor-DM53lZ9z.mjs} +2 -2
  142. package/dist/media/local-runtime.d.mts +2 -2
  143. package/dist/page/index.d.mts +3 -3
  144. package/dist/plugin-utils.d.mts +2 -2
  145. package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
  146. package/dist/{public-url-C8QUncg3.d.mts → public-url-Cqi7Ds4u.d.mts} +1 -1
  147. package/dist/{publication-authorization-BVQ5rCAF.mjs → publication-authorization-BYieJR6-.mjs} +145 -3
  148. package/dist/{redirects-E_B6hvuz.mjs → redirects-CALMB6T5.mjs} +70 -1
  149. package/dist/runtime.d.mts +3 -3
  150. package/dist/{site-context-CzaEGizi.mjs → site-context-Bz8hdcZH.mjs} +1 -1
  151. package/dist/{types-JovwyJFE.d.mts → types-C-3YPdr-.d.mts} +166 -108
  152. package/dist/ui/server-runtime.d.mts +5 -5
  153. package/dist/version-D9xoSUza.mjs +6 -0
  154. package/package.json +3 -3
  155. package/dist/version-O6Zw1eqK.mjs +0 -6
  156. /package/dist/{portable-text-Ehqj3I_y.d.mts → portable-text-BYUu-wtj.d.mts} +0 -0
  157. /package/dist/{provider-loader-BIbIiz0P.d.mts → provider-loader-Db-pJFu3.d.mts} +0 -0
  158. /package/dist/{transport-BZ3aqdu7.d.mts → transport-CXkC1F2Z.d.mts} +0 -0
@@ -128,6 +128,83 @@ declare const contentPublishBody: z.ZodObject<{
128
128
  reviewRequestId: z.ZodString;
129
129
  releaseAuthorizationId: z.ZodOptional<z.ZodString>;
130
130
  }, z.core.$strip>;
131
+ declare const contentPublicationReceiptSchema: z.ZodObject<{
132
+ id: z.ZodString;
133
+ status: z.ZodEnum<{
134
+ published: "published";
135
+ scheduled: "scheduled";
136
+ }>;
137
+ collection: z.ZodString;
138
+ contentId: z.ZodString;
139
+ liveRevisionId: z.ZodNullable<z.ZodString>;
140
+ draftRevisionId: z.ZodNullable<z.ZodString>;
141
+ editorialReviewRequestId: z.ZodString;
142
+ releaseHitlRequestId: z.ZodNullable<z.ZodString>;
143
+ actionHash: z.ZodString;
144
+ policyContributions: z.ZodArray<z.ZodObject<{
145
+ providerId: z.ZodString;
146
+ policyVersion: z.ZodString;
147
+ fingerprint: z.ZodString;
148
+ reservationId: z.ZodNullable<z.ZodString>;
149
+ }, z.core.$strip>>;
150
+ authorizedByActorType: z.ZodEnum<{
151
+ user: "user";
152
+ api_token: "api_token";
153
+ system: "system";
154
+ }>;
155
+ authorizedByActorId: z.ZodString;
156
+ createdAt: z.ZodString;
157
+ consumedAt: z.ZodNullable<z.ZodString>;
158
+ publishedAt: z.ZodNullable<z.ZodString>;
159
+ scheduledAt: z.ZodNullable<z.ZodString>;
160
+ }, z.core.$strip>;
161
+ declare const contentReleaseReadinessQuery: z.ZodObject<{
162
+ operation: z.ZodOptional<z.ZodEnum<{
163
+ publish: "publish";
164
+ schedule: "schedule";
165
+ }>>;
166
+ reviewRequestId: z.ZodOptional<z.ZodString>;
167
+ releaseAuthorizationId: z.ZodOptional<z.ZodString>;
168
+ publishedAt: z.ZodOptional<z.ZodISODateTime>;
169
+ scheduledAt: z.ZodOptional<z.ZodISODateTime>;
170
+ locale: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
171
+ }, z.core.$strip>;
172
+ declare const contentReleaseReadinessResponseSchema: z.ZodObject<{
173
+ ready: z.ZodBoolean;
174
+ generatedAt: z.ZodString;
175
+ nextAction: z.ZodEnum<{
176
+ publish: "publish";
177
+ schedule: "schedule";
178
+ fix_release_blockers: "fix_release_blockers";
179
+ }>;
180
+ target: z.ZodNullable<z.ZodObject<{
181
+ collection: z.ZodString;
182
+ entryId: z.ZodString;
183
+ scope: z.ZodString;
184
+ operation: z.ZodEnum<{
185
+ publish: "publish";
186
+ schedule: "schedule";
187
+ }>;
188
+ liveRevisionId: z.ZodNullable<z.ZodString>;
189
+ draftRevisionId: z.ZodNullable<z.ZodString>;
190
+ reviewedRev: z.ZodString;
191
+ publishedAt: z.ZodNullable<z.ZodString>;
192
+ scheduledAt: z.ZodNullable<z.ZodString>;
193
+ siteTimezone: z.ZodString;
194
+ }, z.core.$strip>>;
195
+ blockers: z.ZodArray<z.ZodObject<{
196
+ code: z.ZodString;
197
+ source: z.ZodEnum<{
198
+ content: "content";
199
+ editorial_review: "editorial_review";
200
+ release_hitl: "release_hitl";
201
+ authorization: "authorization";
202
+ policy: "policy";
203
+ }>;
204
+ message: z.ZodString;
205
+ policyId: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>>;
207
+ }, z.core.$strip>;
131
208
  declare const contentPreviewUrlBody: z.ZodObject<{
132
209
  expiresIn: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
133
210
  pathPattern: z.ZodOptional<z.ZodString>;
@@ -294,6 +371,110 @@ declare const contentResponseSchema: z.ZodObject<{
294
371
  }, z.core.$strip>;
295
372
  _rev: z.ZodOptional<z.ZodString>;
296
373
  }, z.core.$strip>;
374
+ declare const contentPublishResponseSchema: z.ZodObject<{
375
+ item: z.ZodObject<{
376
+ id: z.ZodString;
377
+ type: z.ZodString;
378
+ slug: z.ZodNullable<z.ZodString>;
379
+ status: z.ZodString;
380
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
381
+ authorId: z.ZodNullable<z.ZodString>;
382
+ primaryBylineId: z.ZodNullable<z.ZodString>;
383
+ byline: z.ZodOptional<z.ZodNullable<z.ZodObject<{
384
+ id: z.ZodString;
385
+ slug: z.ZodString;
386
+ displayName: z.ZodString;
387
+ bio: z.ZodNullable<z.ZodString>;
388
+ avatarMediaId: z.ZodNullable<z.ZodString>;
389
+ avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
+ avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
+ avatarBlurhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ avatarDominantColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ websiteUrl: z.ZodNullable<z.ZodString>;
394
+ userId: z.ZodNullable<z.ZodString>;
395
+ isGuest: z.ZodBoolean;
396
+ createdAt: z.ZodString;
397
+ updatedAt: z.ZodString;
398
+ locale: z.ZodString;
399
+ translationGroup: z.ZodNullable<z.ZodString>;
400
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
401
+ }, z.core.$strip>>>;
402
+ bylines: z.ZodOptional<z.ZodArray<z.ZodObject<{
403
+ byline: z.ZodObject<{
404
+ id: z.ZodString;
405
+ slug: z.ZodString;
406
+ displayName: z.ZodString;
407
+ bio: z.ZodNullable<z.ZodString>;
408
+ avatarMediaId: z.ZodNullable<z.ZodString>;
409
+ avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ avatarBlurhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ avatarDominantColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ websiteUrl: z.ZodNullable<z.ZodString>;
414
+ userId: z.ZodNullable<z.ZodString>;
415
+ isGuest: z.ZodBoolean;
416
+ createdAt: z.ZodString;
417
+ updatedAt: z.ZodString;
418
+ locale: z.ZodString;
419
+ translationGroup: z.ZodNullable<z.ZodString>;
420
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
421
+ }, z.core.$strip>;
422
+ sortOrder: z.ZodNumber;
423
+ roleLabel: z.ZodNullable<z.ZodString>;
424
+ source: z.ZodOptional<z.ZodEnum<{
425
+ explicit: "explicit";
426
+ inferred: "inferred";
427
+ }>>;
428
+ }, z.core.$strip>>>;
429
+ createdAt: z.ZodString;
430
+ updatedAt: z.ZodString;
431
+ publishedAt: z.ZodNullable<z.ZodString>;
432
+ scheduledAt: z.ZodNullable<z.ZodString>;
433
+ liveRevisionId: z.ZodNullable<z.ZodString>;
434
+ draftRevisionId: z.ZodNullable<z.ZodString>;
435
+ version: z.ZodNumber;
436
+ locale: z.ZodNullable<z.ZodString>;
437
+ translationGroup: z.ZodNullable<z.ZodString>;
438
+ seo: z.ZodOptional<z.ZodObject<{
439
+ title: z.ZodNullable<z.ZodString>;
440
+ description: z.ZodNullable<z.ZodString>;
441
+ image: z.ZodNullable<z.ZodString>;
442
+ canonical: z.ZodNullable<z.ZodString>;
443
+ noIndex: z.ZodBoolean;
444
+ }, z.core.$strip>>;
445
+ }, z.core.$strip>;
446
+ _rev: z.ZodOptional<z.ZodString>;
447
+ publicationReceipt: z.ZodObject<{
448
+ id: z.ZodString;
449
+ status: z.ZodEnum<{
450
+ published: "published";
451
+ scheduled: "scheduled";
452
+ }>;
453
+ collection: z.ZodString;
454
+ contentId: z.ZodString;
455
+ liveRevisionId: z.ZodNullable<z.ZodString>;
456
+ draftRevisionId: z.ZodNullable<z.ZodString>;
457
+ editorialReviewRequestId: z.ZodString;
458
+ releaseHitlRequestId: z.ZodNullable<z.ZodString>;
459
+ actionHash: z.ZodString;
460
+ policyContributions: z.ZodArray<z.ZodObject<{
461
+ providerId: z.ZodString;
462
+ policyVersion: z.ZodString;
463
+ fingerprint: z.ZodString;
464
+ reservationId: z.ZodNullable<z.ZodString>;
465
+ }, z.core.$strip>>;
466
+ authorizedByActorType: z.ZodEnum<{
467
+ user: "user";
468
+ api_token: "api_token";
469
+ system: "system";
470
+ }>;
471
+ authorizedByActorId: z.ZodString;
472
+ createdAt: z.ZodString;
473
+ consumedAt: z.ZodNullable<z.ZodString>;
474
+ publishedAt: z.ZodNullable<z.ZodString>;
475
+ scheduledAt: z.ZodNullable<z.ZodString>;
476
+ }, z.core.$strip>;
477
+ }, z.core.$strip>;
297
478
  /** Response for content list endpoints */
298
479
  declare const contentListResponseSchema: z.ZodObject<{
299
480
  items: z.ZodArray<z.ZodObject<{
@@ -633,12 +814,12 @@ declare const createFieldBody: z.ZodObject<{
633
814
  file: "file";
634
815
  slug: "slug";
635
816
  text: "text";
636
- select: "select";
637
- datetime: "datetime";
638
- image: "image";
639
817
  integer: "integer";
818
+ datetime: "datetime";
819
+ select: "select";
640
820
  multiSelect: "multiSelect";
641
821
  portableText: "portableText";
822
+ image: "image";
642
823
  reference: "reference";
643
824
  repeater: "repeater";
644
825
  }>;
@@ -661,10 +842,10 @@ declare const createFieldBody: z.ZodObject<{
661
842
  boolean: "boolean";
662
843
  url: "url";
663
844
  text: "text";
664
- select: "select";
845
+ integer: "integer";
665
846
  datetime: "datetime";
847
+ select: "select";
666
848
  image: "image";
667
- integer: "integer";
668
849
  }>;
669
850
  label: z.ZodString;
670
851
  required: z.ZodOptional<z.ZodBoolean>;
@@ -691,12 +872,12 @@ declare const updateFieldBody: z.ZodObject<{
691
872
  file: "file";
692
873
  slug: "slug";
693
874
  text: "text";
694
- select: "select";
695
- datetime: "datetime";
696
- image: "image";
697
875
  integer: "integer";
876
+ datetime: "datetime";
877
+ select: "select";
698
878
  multiSelect: "multiSelect";
699
879
  portableText: "portableText";
880
+ image: "image";
700
881
  reference: "reference";
701
882
  repeater: "repeater";
702
883
  }>>;
@@ -719,10 +900,10 @@ declare const updateFieldBody: z.ZodObject<{
719
900
  boolean: "boolean";
720
901
  url: "url";
721
902
  text: "text";
722
- select: "select";
903
+ integer: "integer";
723
904
  datetime: "datetime";
905
+ select: "select";
724
906
  image: "image";
725
- integer: "integer";
726
907
  }>;
727
908
  label: z.ZodString;
728
909
  required: z.ZodOptional<z.ZodBoolean>;
@@ -780,12 +961,12 @@ declare const fieldSchema: z.ZodObject<{
780
961
  file: "file";
781
962
  slug: "slug";
782
963
  text: "text";
783
- select: "select";
784
- datetime: "datetime";
785
- image: "image";
786
964
  integer: "integer";
965
+ datetime: "datetime";
966
+ select: "select";
787
967
  multiSelect: "multiSelect";
788
968
  portableText: "portableText";
969
+ image: "image";
789
970
  reference: "reference";
790
971
  repeater: "repeater";
791
972
  }>;
@@ -845,12 +1026,12 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
845
1026
  file: "file";
846
1027
  slug: "slug";
847
1028
  text: "text";
848
- select: "select";
849
- datetime: "datetime";
850
- image: "image";
851
1029
  integer: "integer";
1030
+ datetime: "datetime";
1031
+ select: "select";
852
1032
  multiSelect: "multiSelect";
853
1033
  portableText: "portableText";
1034
+ image: "image";
854
1035
  reference: "reference";
855
1036
  repeater: "repeater";
856
1037
  }>;
@@ -899,12 +1080,12 @@ declare const fieldResponseSchema: z.ZodObject<{
899
1080
  file: "file";
900
1081
  slug: "slug";
901
1082
  text: "text";
902
- select: "select";
903
- datetime: "datetime";
904
- image: "image";
905
1083
  integer: "integer";
1084
+ datetime: "datetime";
1085
+ select: "select";
906
1086
  multiSelect: "multiSelect";
907
1087
  portableText: "portableText";
1088
+ image: "image";
908
1089
  reference: "reference";
909
1090
  repeater: "repeater";
910
1091
  }>;
@@ -936,12 +1117,12 @@ declare const fieldListResponseSchema: z.ZodObject<{
936
1117
  file: "file";
937
1118
  slug: "slug";
938
1119
  text: "text";
939
- select: "select";
940
- datetime: "datetime";
941
- image: "image";
942
1120
  integer: "integer";
1121
+ datetime: "datetime";
1122
+ select: "select";
943
1123
  multiSelect: "multiSelect";
944
1124
  portableText: "portableText";
1125
+ image: "image";
945
1126
  reference: "reference";
946
1127
  repeater: "repeater";
947
1128
  }>;
@@ -1120,13 +1301,13 @@ declare const contextEntryListQuery: z.ZodObject<{
1120
1301
  declare const contextEntryStaleQuery: z.ZodObject<{
1121
1302
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1122
1303
  cursor: z.ZodOptional<z.ZodString>;
1304
+ scope: z.ZodOptional<z.ZodString>;
1305
+ contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1123
1306
  includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
1124
1307
  true: "true";
1125
1308
  false: "false";
1126
1309
  }>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
1127
- contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1128
1310
  tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1129
- scope: z.ZodOptional<z.ZodString>;
1130
1311
  createdByActorType: z.ZodOptional<z.ZodEnum<{
1131
1312
  user: "user";
1132
1313
  api_token: "api_token";
@@ -1147,6 +1328,7 @@ declare const contextEntryDiffQuery: z.ZodObject<{
1147
1328
  declare const contextEntryCreateBody: z.ZodObject<{
1148
1329
  scope: z.ZodString;
1149
1330
  contextType: z.ZodEnum<{
1331
+ decision: "decision";
1150
1332
  brand_voice: "brand_voice";
1151
1333
  seo_strategy: "seo_strategy";
1152
1334
  audience: "audience";
@@ -1156,7 +1338,6 @@ declare const contextEntryCreateBody: z.ZodObject<{
1156
1338
  migration_note: "migration_note";
1157
1339
  plugin_note: "plugin_note";
1158
1340
  agent_reasoning: "agent_reasoning";
1159
- decision: "decision";
1160
1341
  risk: "risk";
1161
1342
  content_gap: "content_gap";
1162
1343
  style_exception: "style_exception";
@@ -1171,6 +1352,7 @@ declare const contextEntryCreateBody: z.ZodObject<{
1171
1352
  declare const contextEntrySupersedeBody: z.ZodObject<{
1172
1353
  scope: z.ZodOptional<z.ZodString>;
1173
1354
  contextType: z.ZodOptional<z.ZodEnum<{
1355
+ decision: "decision";
1174
1356
  brand_voice: "brand_voice";
1175
1357
  seo_strategy: "seo_strategy";
1176
1358
  audience: "audience";
@@ -1180,7 +1362,6 @@ declare const contextEntrySupersedeBody: z.ZodObject<{
1180
1362
  migration_note: "migration_note";
1181
1363
  plugin_note: "plugin_note";
1182
1364
  agent_reasoning: "agent_reasoning";
1183
- decision: "decision";
1184
1365
  risk: "risk";
1185
1366
  content_gap: "content_gap";
1186
1367
  style_exception: "style_exception";
@@ -2299,4 +2480,4 @@ declare const bylineFieldUsageResponseSchema: z.ZodObject<{
2299
2480
  totalAffectedRows: z.ZodNumber;
2300
2481
  }, z.core.$strip>;
2301
2482
  //#endregion
2302
- export { settingsUpdateBody as $, contentTermsBody as $n, adminCommentListResponseSchema as $t, widgetAreaSchema as A, mediaConfirmResponseSchema as An, inviteCompleteBody as At, usersListQuery as B, contentAuthorSchema as Bn, signupRequestBody as Bt, redirectSchema as C, orphanedTableSchema as Cn, menuSchema as Ct, createWidgetBody as D, DEFAULT_MAX_UPLOAD_SIZE as Dn, updateMenuBody as Dt, createWidgetAreaBody as E, updateFieldBody as En, reorderMenuItemsBody as Et, allowedDomainUpdateBody as F, mediaProviderListQuery as Fn, passkeyRegisterOptionsBody as Ft, wpPrepareBody as G, contentListQuery as Gn, hitlRequestResolveBody as Gt, wpMediaImportBody as H, contentCompareResponseSchema as Hn, reviewRequestListQuery as Ht, userDetailSchema as I, mediaResponseSchema as In, passkeyRegisterVerifyBody as It, searchQuery as J, contentPublishBody as Jn, contextEntryDiffQuery as Jt, wpRewriteUrlsBody as K, contentListResponseSchema as Kn, siteBriefingQuery as Kt, userListResponseSchema as L, mediaUpdateBody as Ln, passkeyRenameBody as Lt, widgetAreaWithWidgetsSchema as M, mediaItemSchema as Mn, inviteRegisterOptionsBody as Mt, widgetSchema as N, mediaListQuery as Nn, magicLinkSendBody as Nt, reorderWidgetsBody as O, formatFileSize as On, updateMenuItemBody as Ot, allowedDomainCreateBody as P, mediaListResponseSchema as Pn, passkeyOptionsBody as Pt, searchSuggestQuery as Q, contentSeoSchema as Qn, contextEntrySupersedeBody as Qt, userSchema as R, mediaUploadUrlBody as Rn, passkeyVerifyBody as Rt, redirectListResponseSchema as S, orphanedTableListResponseSchema as Sn, menuListItemSchema as St, updateRedirectBody as T, updateCollectionBody as Tn, menuWithItemsSchema as Tt, wpPluginAnalyzeBody as U, contentCreateBody as Un, reviewRequestResolveBody as Ut, importProbeBody as V, contentAuthorsResponseSchema as Vn, reviewRequestCreateBody as Vt, wpPluginExecuteBody as W, contentItemSchema as Wn, hitlRequestListQuery as Wt, searchResponseSchema as X, contentScheduleBody as Xn, contextEntryReviewBody as Xt, searchRebuildBody as Y, contentResponseSchema as Yn, contextEntryListQuery as Yt, searchResultSchema as Z, contentSeoInput as Zn, contextEntryStaleQuery as Zt, notFoundListResponseSchema as _, fieldListResponseSchema as _n, successEnvelope as _r, updateTermBody as _t, bylineFieldUpdateBody as a, commentStatusBody as an, trashedContentListResponseSchema as ar, updateSectionBody as at, notFoundSummaryResponseSchema as b, fieldSchema as bn, menuItemSchema as bt, bylineCreditSchema as c, publicCommentListResponseSchema as cn, countResponseSchema as cr, taxonomyDefSchema as ct, bylineUpdateBody as d, collectionListResponseSchema as dn, httpUrl as dr, termGetResponseSchema as dt, commentBulkBody as en, contentTranslationSchema as er, siteSettingsSchema as et, bylinesListQuery as f, collectionResponseSchema as fn, localeCode as fr, termListResponseSchema as ft, notFoundListQuery as g, createFieldBody as gn, slugPattern as gr, termWithCountSchema as gt, notFoundEntrySchema as h, createCollectionBody as hn, roleLevel as hr, termTranslationsSchema as ht, bylineFieldReorderBody as i, commentSchema as in, trashedContentItemSchema as ir, sectionsListQuery as it, widgetAreaWithWidgetsAndCountSchema as j, mediaExistingResponseSchema as jn, inviteCreateBody as jt, updateWidgetBody as k, mediaConfirmBody as kn, authMeActionBody as kt, bylineListResponseSchema as l, publicCommentSchema as ln, cursorPaginationQuery as lr, taxonomyDefTranslationsSchema as lt, createRedirectBody as m, collectionWithFieldsResponseSchema as mn, offsetPaginationQuery as mr, termSchema as mt, bylineFieldDefinitionSchema as n, commentCountsResponseSchema as nn, contentTrashQuery as nr, sectionListResponseSchema as nt, bylineFieldUsageResponseSchema as o, createCommentBody as on, VALID_ROLE_LEVELS as or, createTaxonomyDefBody as ot, contentBylineInputSchema as p, collectionSchema as pn, localeFilterQuery as pr, termResponseSchema as pt, searchEnableBody as q, contentPreviewUrlBody as qn, contextEntryCreateBody as qt, bylineFieldListResponseSchema as r, commentListQuery as rn, contentUpdateBody as rr, sectionSchema as rt, bylineCreateBody as s, createReactionBody as sn, apiErrorSchema as sr, createTermBody as st, bylineFieldCreateBody as t, commentBulkResponseSchema as tn, contentTranslationsResponseSchema as tr, createSectionBody as tt, bylineSummarySchema as u, collectionGetQuery as un, deleteResponseSchema as ur, taxonomyListResponseSchema as ut, notFoundPruneBody as v, fieldReorderBody as vn, createMenuBody as vt, redirectsListQuery as w, schemaExportQuery as wn, menuTranslationsSchema as wt, notFoundSummarySchema as x, orphanRegisterBody as xn, menuItemTypeEnum as xt, notFoundSummaryQuery as y, fieldResponseSchema as yn, createMenuItemBody as yt, userUpdateBody as z, mediaUploadUrlResponseSchema as zn, signupCompleteBody as zt };
2483
+ export { settingsUpdateBody as $, contentResponseSchema as $n, adminCommentListResponseSchema as $t, widgetAreaSchema as A, mediaConfirmResponseSchema as An, inviteCompleteBody as At, usersListQuery as B, contentAuthorSchema as Bn, signupRequestBody as Bt, redirectSchema as C, orphanedTableSchema as Cn, menuSchema as Ct, createWidgetBody as D, DEFAULT_MAX_UPLOAD_SIZE as Dn, updateMenuBody as Dt, createWidgetAreaBody as E, updateFieldBody as En, reorderMenuItemsBody as Et, allowedDomainUpdateBody as F, mediaProviderListQuery as Fn, passkeyRegisterOptionsBody as Ft, wpPrepareBody as G, contentListQuery as Gn, hitlRequestResolveBody as Gt, wpMediaImportBody as H, contentCompareResponseSchema as Hn, reviewRequestListQuery as Ht, userDetailSchema as I, mediaResponseSchema as In, passkeyRegisterVerifyBody as It, searchQuery as J, contentPublicationReceiptSchema as Jn, contextEntryDiffQuery as Jt, wpRewriteUrlsBody as K, contentListResponseSchema as Kn, siteBriefingQuery as Kt, userListResponseSchema as L, mediaUpdateBody as Ln, passkeyRenameBody as Lt, widgetAreaWithWidgetsSchema as M, mediaItemSchema as Mn, inviteRegisterOptionsBody as Mt, widgetSchema as N, mediaListQuery as Nn, magicLinkSendBody as Nt, reorderWidgetsBody as O, formatFileSize as On, updateMenuItemBody as Ot, allowedDomainCreateBody as P, mediaListResponseSchema as Pn, passkeyOptionsBody as Pt, searchSuggestQuery as Q, contentReleaseReadinessResponseSchema as Qn, contextEntrySupersedeBody as Qt, userSchema as R, mediaUploadUrlBody as Rn, passkeyVerifyBody as Rt, redirectListResponseSchema as S, orphanedTableListResponseSchema as Sn, menuListItemSchema as St, updateRedirectBody as T, updateCollectionBody as Tn, menuWithItemsSchema as Tt, wpPluginAnalyzeBody as U, contentCreateBody as Un, reviewRequestResolveBody as Ut, importProbeBody as V, contentAuthorsResponseSchema as Vn, reviewRequestCreateBody as Vt, wpPluginExecuteBody as W, contentItemSchema as Wn, hitlRequestListQuery as Wt, searchResponseSchema as X, contentPublishResponseSchema as Xn, contextEntryReviewBody as Xt, searchRebuildBody as Y, contentPublishBody as Yn, contextEntryListQuery as Yt, searchResultSchema as Z, contentReleaseReadinessQuery as Zn, contextEntryStaleQuery as Zt, notFoundListResponseSchema as _, fieldListResponseSchema as _n, localeFilterQuery as _r, updateTermBody as _t, bylineFieldUpdateBody as a, commentStatusBody as an, contentTranslationsResponseSchema as ar, updateSectionBody as at, notFoundSummaryResponseSchema as b, fieldSchema as bn, slugPattern as br, menuItemSchema as bt, bylineCreditSchema as c, publicCommentListResponseSchema as cn, trashedContentItemSchema as cr, taxonomyDefSchema as ct, bylineUpdateBody as d, collectionListResponseSchema as dn, apiErrorSchema as dr, termGetResponseSchema as dt, commentBulkBody as en, contentScheduleBody as er, siteSettingsSchema as et, bylinesListQuery as f, collectionResponseSchema as fn, countResponseSchema as fr, termListResponseSchema as ft, notFoundListQuery as g, createFieldBody as gn, localeCode as gr, termWithCountSchema as gt, notFoundEntrySchema as h, createCollectionBody as hn, httpUrl as hr, termTranslationsSchema as ht, bylineFieldReorderBody as i, commentSchema as in, contentTranslationSchema as ir, sectionsListQuery as it, widgetAreaWithWidgetsAndCountSchema as j, mediaExistingResponseSchema as jn, inviteCreateBody as jt, updateWidgetBody as k, mediaConfirmBody as kn, authMeActionBody as kt, bylineListResponseSchema as l, publicCommentSchema as ln, trashedContentListResponseSchema as lr, taxonomyDefTranslationsSchema as lt, createRedirectBody as m, collectionWithFieldsResponseSchema as mn, deleteResponseSchema as mr, termSchema as mt, bylineFieldDefinitionSchema as n, commentCountsResponseSchema as nn, contentSeoSchema as nr, sectionListResponseSchema as nt, bylineFieldUsageResponseSchema as o, createCommentBody as on, contentTrashQuery as or, createTaxonomyDefBody as ot, contentBylineInputSchema as p, collectionSchema as pn, cursorPaginationQuery as pr, termResponseSchema as pt, searchEnableBody as q, contentPreviewUrlBody as qn, contextEntryCreateBody as qt, bylineFieldListResponseSchema as r, commentListQuery as rn, contentTermsBody as rr, sectionSchema as rt, bylineCreateBody as s, createReactionBody as sn, contentUpdateBody as sr, createTermBody as st, bylineFieldCreateBody as t, commentBulkResponseSchema as tn, contentSeoInput as tr, createSectionBody as tt, bylineSummarySchema as u, collectionGetQuery as un, VALID_ROLE_LEVELS as ur, taxonomyListResponseSchema as ut, notFoundPruneBody as v, fieldReorderBody as vn, offsetPaginationQuery as vr, createMenuBody as vt, redirectsListQuery as w, schemaExportQuery as wn, menuTranslationsSchema as wt, notFoundSummarySchema as x, orphanRegisterBody as xn, successEnvelope as xr, menuItemTypeEnum as xt, notFoundSummaryQuery as y, fieldResponseSchema as yn, roleLevel as yr, createMenuItemBody as yt, userUpdateBody as z, mediaUploadUrlResponseSchema as zn, signupCompleteBody as zt };
@@ -22,7 +22,7 @@ import "../content-refresh-BmkilU5M.mjs";
22
22
  import "../fts-manager-Zo9uhGel.mjs";
23
23
  import { n as SchemaRegistry } from "../registry-SEJqFliS.mjs";
24
24
  import "../settings-SVDAB7_W.mjs";
25
- import { n as VERSION } from "../version-O6Zw1eqK.mjs";
25
+ import { n as VERSION } from "../version-D9xoSUza.mjs";
26
26
  import { i as parseEncryptionKeys, n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-CpGpyGcO.mjs";
27
27
  import { t as IntegrationCredentialStore } from "../store-CCfMD6nw.mjs";
28
28
  import { a as reconcileManifestAccess, i as pluginManifestSchema } from "../manifest-schema-DKa3ZaJL.mjs";
@@ -635,11 +635,13 @@ const publishCommand$1 = defineCommand({
635
635
  async run({ args }) {
636
636
  configureOutputMode(args);
637
637
  try {
638
- await createClientFromArgs(args).publish(args.collection, args.id, {
639
- reviewRequestId: args["review-request"],
640
- releaseAuthorizationId: args["release-authorization"]
641
- });
642
- output({ success: true }, args);
638
+ output({
639
+ success: true,
640
+ publicationReceipt: await createClientFromArgs(args).publish(args.collection, args.id, {
641
+ reviewRequestId: args["review-request"],
642
+ releaseAuthorizationId: args["release-authorization"]
643
+ })
644
+ }, args);
643
645
  consola$1.success(`Published ${args.collection}/${args.id}`);
644
646
  } catch (error) {
645
647
  consola$1.error(error instanceof Error ? error.message : "Unknown error");
@@ -647,6 +649,51 @@ const publishCommand$1 = defineCommand({
647
649
  }
648
650
  }
649
651
  });
652
+ const readinessCommand = defineCommand({
653
+ meta: {
654
+ name: "readiness",
655
+ description: "Inspect all current release blockers"
656
+ },
657
+ args: {
658
+ collection: {
659
+ type: "positional",
660
+ description: "Collection slug",
661
+ required: true
662
+ },
663
+ id: {
664
+ type: "positional",
665
+ description: "Content item ID or slug",
666
+ required: true
667
+ },
668
+ "review-request": {
669
+ type: "string",
670
+ description: "Editorial Review Request ID to validate"
671
+ },
672
+ "release-authorization": {
673
+ type: "string",
674
+ description: "Release authorization ID to validate"
675
+ },
676
+ "scheduled-at": {
677
+ type: "string",
678
+ description: "ISO 8601 schedule time; selects schedule readiness"
679
+ },
680
+ ...connectionArgs
681
+ },
682
+ async run({ args }) {
683
+ configureOutputMode(args);
684
+ try {
685
+ output(await createClientFromArgs(args).releaseReadiness(args.collection, args.id, {
686
+ operation: args["scheduled-at"] ? "schedule" : "publish",
687
+ reviewRequestId: args["review-request"],
688
+ releaseAuthorizationId: args["release-authorization"],
689
+ scheduledAt: args["scheduled-at"]
690
+ }), args);
691
+ } catch (error) {
692
+ consola$1.error(error instanceof Error ? error.message : "Unknown error");
693
+ process.exit(1);
694
+ }
695
+ }
696
+ });
650
697
  const unpublishCommand = defineCommand({
651
698
  meta: {
652
699
  name: "unpublish",
@@ -796,6 +843,7 @@ const contentCommand = defineCommand({
796
843
  update: updateCommand,
797
844
  delete: deleteCommand$2,
798
845
  publish: publishCommand$1,
846
+ readiness: readinessCommand,
799
847
  unpublish: unpublishCommand,
800
848
  schedule: scheduleCommand,
801
849
  restore: restoreCommand,
@@ -1,3 +1,11 @@
1
+ import "../types-C-3YPdr-.mjs";
2
+ import "../types-BFeoAIHl.mjs";
3
+ import "../runner-Bcy5w0vj.mjs";
4
+ import "../index-DybFmYtZ.mjs";
5
+ import "../types-S9VIopdY.mjs";
6
+ import "../validate-YiX3rly5.mjs";
7
+ import "../byline-fields-bnvqaEuF.mjs";
8
+ import "../types-BsTXSvKG.mjs";
1
9
  import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
2
10
  import { SubCommandsDef } from "citty";
3
11
 
@@ -1,4 +1,4 @@
1
- import { t as Interceptor } from "../transport-BZ3aqdu7.mjs";
1
+ import { t as Interceptor } from "../transport-CXkC1F2Z.mjs";
2
2
 
3
3
  //#region src/client/external-auth-headers.d.ts
4
4
  /**
@@ -1,5 +1,13 @@
1
- import { a as tokenInterceptor, i as devBypassInterceptor, n as createTransport, r as csrfInterceptor, t as Interceptor } from "../transport-BZ3aqdu7.mjs";
2
- import { n as markdownToPortableText, r as portableTextToMarkdown, t as PortableTextBlock } from "../portable-text-Ehqj3I_y.mjs";
1
+ import { Ft as PublicationReceipt, Pt as PublicationReadinessResult } from "../types-C-3YPdr-.mjs";
2
+ import "../types-BFeoAIHl.mjs";
3
+ import "../runner-Bcy5w0vj.mjs";
4
+ import "../index-DybFmYtZ.mjs";
5
+ import "../types-S9VIopdY.mjs";
6
+ import "../validate-YiX3rly5.mjs";
7
+ import "../byline-fields-bnvqaEuF.mjs";
8
+ import "../types-BsTXSvKG.mjs";
9
+ import { a as tokenInterceptor, i as devBypassInterceptor, n as createTransport, r as csrfInterceptor, t as Interceptor } from "../transport-CXkC1F2Z.mjs";
10
+ import { n as markdownToPortableText, r as portableTextToMarkdown, t as PortableTextBlock } from "../portable-text-BYUu-wtj.mjs";
3
11
 
4
12
  //#region src/client/index.d.ts
5
13
  interface DinewayClientOptions {
@@ -61,6 +69,14 @@ interface ContentPublishOptions {
61
69
  publishedAt?: string;
62
70
  locale?: string;
63
71
  }
72
+ interface ContentReleaseReadinessOptions {
73
+ operation?: "publish" | "schedule";
74
+ reviewRequestId?: string;
75
+ releaseAuthorizationId?: string;
76
+ publishedAt?: string;
77
+ scheduledAt?: string;
78
+ locale?: string;
79
+ }
64
80
  interface ContentScheduleOptions {
65
81
  at: string;
66
82
  reviewRequestId: string;
@@ -296,7 +312,9 @@ declare class DinewayClient {
296
312
  /** Delete (soft) a content item */
297
313
  delete(collection: string, id: string): Promise<void>;
298
314
  /** Publish an exact, editorially approved Draft Revision */
299
- publish(collection: string, id: string, options: ContentPublishOptions): Promise<void>;
315
+ publish(collection: string, id: string, options: ContentPublishOptions): Promise<PublicationReceipt>;
316
+ /** Inspect every current release blocker without creating governance state. */
317
+ releaseReadiness(collection: string, id: string, options?: ContentReleaseReadinessOptions): Promise<PublicationReadinessResult>;
300
318
  /** Unpublish a content item */
301
319
  unpublish(collection: string, id: string): Promise<void>;
302
320
  /** Schedule an exact, editorially approved Draft Revision */
@@ -379,4 +397,4 @@ declare class DinewayClient {
379
397
  private getFieldSchemas;
380
398
  }
381
399
  //#endregion
382
- export { ApiError, ClientResponse, Collection, CollectionWithFields, ContentItem, ContentPublishOptions, ContentScheduleOptions, DinewayApiError, DinewayClient, DinewayClientError, DinewayClientOptions, Field, type Interceptor, ListResult, Manifest, MediaItem, Menu, MenuItem, MenuWithItems, PluginRequestOptions, type PortableTextBlock, SchemaExport, SearchResult, SetupLinkResult, Taxonomy, Term, createTransport, csrfInterceptor, devBypassInterceptor, markdownToPortableText, portableTextToMarkdown, tokenInterceptor };
400
+ export { ApiError, ClientResponse, Collection, CollectionWithFields, ContentItem, ContentPublishOptions, ContentReleaseReadinessOptions, ContentScheduleOptions, DinewayApiError, DinewayClient, DinewayClientError, DinewayClientOptions, Field, type Interceptor, ListResult, Manifest, MediaItem, Menu, MenuItem, MenuWithItems, PluginRequestOptions, type PortableTextBlock, type PublicationReadinessResult, type PublicationReceipt, SchemaExport, SearchResult, SetupLinkResult, Taxonomy, Term, createTransport, csrfInterceptor, devBypassInterceptor, markdownToPortableText, portableTextToMarkdown, tokenInterceptor };
@@ -196,11 +196,23 @@ var DinewayClient = class {
196
196
  const params = new URLSearchParams();
197
197
  if (options.locale) params.set("locale", options.locale);
198
198
  const qs = params.toString();
199
- await this.request("POST", `/content/${encodeURIComponent(collection)}/${encodeURIComponent(id)}/publish${qs ? `?${qs}` : ""}`, {
199
+ return (await this.request("POST", `/content/${encodeURIComponent(collection)}/${encodeURIComponent(id)}/publish${qs ? `?${qs}` : ""}`, {
200
200
  reviewRequestId: options.reviewRequestId,
201
201
  releaseAuthorizationId: options.releaseAuthorizationId,
202
202
  publishedAt: options.publishedAt
203
- });
203
+ })).publicationReceipt;
204
+ }
205
+ /** Inspect every current release blocker without creating governance state. */
206
+ async releaseReadiness(collection, id, options = {}) {
207
+ const params = new URLSearchParams();
208
+ if (options.operation) params.set("operation", options.operation);
209
+ if (options.reviewRequestId) params.set("reviewRequestId", options.reviewRequestId);
210
+ if (options.releaseAuthorizationId) params.set("releaseAuthorizationId", options.releaseAuthorizationId);
211
+ if (options.publishedAt) params.set("publishedAt", options.publishedAt);
212
+ if (options.scheduledAt) params.set("scheduledAt", options.scheduledAt);
213
+ if (options.locale) params.set("locale", options.locale);
214
+ const qs = params.toString();
215
+ return this.request("GET", `/content/${encodeURIComponent(collection)}/${encodeURIComponent(id)}/release-readiness${qs ? `?${qs}` : ""}`);
204
216
  }
205
217
  /** Unpublish a content item */
206
218
  async unpublish(collection, id) {
@@ -1,4 +1,4 @@
1
- import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-CzaEGizi.mjs";
1
+ import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-Bz8hdcZH.mjs";
2
2
  import { a as ContextRepository, i as parseSiteBriefingScope, n as SiteBriefingError } from "./briefing-GFhLTLJo.mjs";
3
3
 
4
4
  //#region src/api/handlers/context.ts
@@ -1,4 +1,4 @@
1
- import { b as HitlRequestService } from "./site-context-CzaEGizi.mjs";
1
+ import { b as HitlRequestService } from "./site-context-Bz8hdcZH.mjs";
2
2
  import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-CgO73K4e.mjs";
3
3
 
4
4
  //#region src/api/handlers/hitl-requests.ts
@@ -1,4 +1,4 @@
1
- import { t as WorkflowHitlCoordinator } from "./site-context-CzaEGizi.mjs";
1
+ import { t as WorkflowHitlCoordinator } from "./site-context-Bz8hdcZH.mjs";
2
2
  import { t as apiError } from "./error-BW9f_ynq.mjs";
3
3
  import { n as resolveActorIdentity } from "./actor-DA7yL9Yp.mjs";
4
4
  import { p as logSiteActivitySafely } from "./activity-events-DEYmJhWd.mjs";