@tunasand/sdk 0.8.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/CHANGELOG.md +137 -0
  2. package/README.md +165 -144
  3. package/dist/analytics.js +183 -109
  4. package/dist/app.js +276 -166
  5. package/dist/apps-BysPfMuR.js +408 -0
  6. package/dist/astro-image.d.ts +1 -0
  7. package/dist/astro-image.js +33 -0
  8. package/dist/astro-server-Bwau8F6d.js +99 -0
  9. package/dist/astro-server.d.ts +1 -0
  10. package/dist/astro-server.js +1 -0
  11. package/dist/astro.d.ts +1 -0
  12. package/dist/astro.js +306 -0
  13. package/dist/bridge-C2Bl-OAF.js +80 -0
  14. package/dist/bridge.js +1 -13
  15. package/dist/build-file-DNi0PHC5.js +31 -0
  16. package/dist/cli.js +6212 -8
  17. package/dist/{client-Derrexwr.js → client-C8STAw9T.js} +43 -24
  18. package/dist/code-N8pBUDbq.js +30 -0
  19. package/dist/code.d.ts +1 -0
  20. package/dist/code.js +1 -0
  21. package/dist/collection-26aglrg6.js +282 -0
  22. package/dist/{declared-DuNMsdXw.js → declared-CE4a61qb.js} +35 -35
  23. package/dist/delivery.js +121 -114
  24. package/dist/dev-operations-Tutwi1On.js +46 -0
  25. package/dist/dev.js +9 -16
  26. package/dist/embeds-DY6O5TrJ.js +29 -0
  27. package/dist/end-users.d.ts +1 -0
  28. package/dist/end-users.js +189 -0
  29. package/dist/endUsers-DODfjnv1.js +77 -0
  30. package/dist/{errorLabels-BgtQ_zUn.js → errorLabels-BK1NJ6Wz.js} +374 -238
  31. package/dist/i18n.js +4 -4
  32. package/dist/ids-DmtIoqBX.js +109 -0
  33. package/dist/integrations.js +95 -24
  34. package/dist/{ja-Du6ooL6i.js → ja-B3lAaOhZ.js} +91 -45
  35. package/dist/{ja-CeHU0EaY.js → ja-axQPxMJ-.js} +3 -3
  36. package/dist/operations-CIB99rIY.js +95 -0
  37. package/dist/operations.d.ts +1 -0
  38. package/dist/operations.js +1 -0
  39. package/dist/{page-Bzrj24sJ.js → page-yo1cw1kW.js} +1 -1
  40. package/dist/paymentPort-p1jV44Zz.js +203 -0
  41. package/dist/preview.js +8 -1
  42. package/dist/{profile-1em_lcxq.js → profile-DBsXLvvI.js} +48 -48
  43. package/dist/rich-text.js +16 -16
  44. package/dist/{schema-WnobuwLg.js → schema-Bs_BUUNv.js} +526 -265
  45. package/dist/schema.js +66 -88
  46. package/dist/types/access/src/handoff.d.ts +19 -14
  47. package/dist/types/access/src/index.d.ts +2 -2
  48. package/dist/types/access/src/jws.d.ts +41 -0
  49. package/dist/types/access/src/oidc.d.ts +12 -2
  50. package/dist/types/access/src/signed.d.ts +0 -2
  51. package/dist/types/adapter-cloudflare/src/eventLog/viewSchema.d.ts +11 -0
  52. package/dist/types/contract/src/accountProfile.d.ts +7 -0
  53. package/dist/types/contract/src/api/define.d.ts +165 -0
  54. package/dist/types/contract/src/apiKeys.d.ts +6 -2
  55. package/dist/types/contract/src/app.d.ts +32 -7
  56. package/dist/types/contract/src/appChannels.d.ts +152 -0
  57. package/dist/types/contract/src/appDefinition.d.ts +11 -5
  58. package/dist/types/contract/src/appDependencies.d.ts +107 -24
  59. package/dist/types/contract/src/appIdentities.d.ts +21 -0
  60. package/dist/types/contract/src/appInbound.d.ts +53 -0
  61. package/dist/types/contract/src/appMail.d.ts +106 -0
  62. package/dist/types/contract/src/appSecrets.d.ts +63 -0
  63. package/dist/types/contract/src/appServer.d.ts +460 -45
  64. package/dist/types/contract/src/approvals.d.ts +1 -1
  65. package/dist/types/contract/src/apps.d.ts +126 -60
  66. package/dist/types/contract/src/auditActions.d.ts +2 -2
  67. package/dist/types/contract/src/auditLabels.d.ts +120 -15
  68. package/dist/types/contract/src/authorize.d.ts +42 -14
  69. package/dist/types/contract/src/bridge.d.ts +35 -36
  70. package/dist/types/contract/src/consents.d.ts +29 -27
  71. package/dist/types/contract/src/deletion.d.ts +18 -0
  72. package/dist/types/contract/src/embeds.d.ts +26 -90
  73. package/dist/types/contract/src/{customerLabels.d.ts → endUserLabels.d.ts} +6 -9
  74. package/dist/types/contract/src/endUsers.d.ts +244 -0
  75. package/dist/types/contract/src/errorLabels.d.ts +67 -37
  76. package/dist/types/contract/src/errorLabelsEn.d.ts +50 -33
  77. package/dist/types/contract/src/errors.d.ts +28 -16
  78. package/dist/types/contract/src/eventSchemas.d.ts +70 -0
  79. package/dist/types/contract/src/eventTraces.d.ts +41 -0
  80. package/dist/types/contract/src/failureStatus.d.ts +14 -22
  81. package/dist/types/contract/src/fieldAccess.d.ts +8 -8
  82. package/dist/types/contract/src/formLabels.d.ts +3 -0
  83. package/dist/types/contract/src/forms.d.ts +4 -0
  84. package/dist/types/contract/src/grants.d.ts +26 -0
  85. package/dist/types/contract/src/headers.d.ts +5 -0
  86. package/dist/types/contract/src/hostingRpc.d.ts +44 -19
  87. package/dist/types/contract/src/identifiers.d.ts +45 -17
  88. package/dist/types/contract/src/ids.d.ts +18 -10
  89. package/dist/types/contract/src/import.d.ts +17 -16
  90. package/dist/types/contract/src/index.d.ts +57 -29
  91. package/dist/types/contract/src/integrationGraph.d.ts +83 -0
  92. package/dist/types/contract/src/issueLabels.d.ts +121 -81
  93. package/dist/types/contract/src/issueLabelsEn.d.ts +61 -41
  94. package/dist/types/contract/src/manage.d.ts +16 -7
  95. package/dist/types/contract/src/manageLabels.d.ts +2 -0
  96. package/dist/types/contract/src/manifestText.d.ts +66 -0
  97. package/dist/types/contract/src/messagePort.d.ts +208 -0
  98. package/dist/types/contract/src/migration.d.ts +2 -2
  99. package/dist/types/contract/src/notices.d.ts +37 -0
  100. package/dist/types/contract/src/operationEffects.d.ts +39 -0
  101. package/dist/types/contract/src/operatorOperations.d.ts +104 -110
  102. package/dist/types/contract/src/outbound.d.ts +29 -0
  103. package/dist/types/contract/src/paths.d.ts +13 -0
  104. package/dist/types/contract/src/paymentPort.d.ts +129 -0
  105. package/dist/types/contract/src/pending.d.ts +2 -0
  106. package/dist/types/contract/src/permissions.d.ts +7 -11
  107. package/dist/types/contract/src/perspective.d.ts +26 -0
  108. package/dist/types/contract/src/powers.d.ts +5 -0
  109. package/dist/types/contract/src/principal.d.ts +127 -56
  110. package/dist/types/contract/src/readPages.d.ts +92 -0
  111. package/dist/types/contract/src/recordLabels.d.ts +6 -0
  112. package/dist/types/contract/src/roles.d.ts +7 -4
  113. package/dist/types/contract/src/ruleLabels.d.ts +16 -0
  114. package/dist/types/contract/src/ruleProblems.d.ts +16 -0
  115. package/dist/types/contract/src/schemaLabels.d.ts +8 -0
  116. package/dist/types/contract/src/settingProblems.d.ts +18 -1
  117. package/dist/types/contract/src/settings.d.ts +5 -7
  118. package/dist/types/contract/src/siteDeclaration.d.ts +7 -7
  119. package/dist/types/contract/src/siteIndex.d.ts +76 -0
  120. package/dist/types/contract/src/transfer.d.ts +1 -1
  121. package/dist/types/contract/src/trial.d.ts +4 -1
  122. package/dist/types/contract/src/versions.d.ts +1 -3
  123. package/dist/types/contract/src/viewEvent.d.ts +0 -9
  124. package/dist/types/contract/src/webhooks.d.ts +24 -3
  125. package/dist/types/contract/src/workflow.d.ts +16 -19
  126. package/dist/types/contract/src/workspaceItems.d.ts +23 -7
  127. package/dist/types/contract/src/workspacePaths.d.ts +1 -1
  128. package/dist/types/rich-text/src/html.d.ts +1 -1
  129. package/dist/types/rich-text/src/index.d.ts +8 -7
  130. package/dist/types/rich-text/src/labels/en.d.ts +1 -1
  131. package/dist/types/rich-text/src/labels/ja.d.ts +2 -2
  132. package/dist/types/rich-text/src/library.d.ts +1 -1
  133. package/dist/types/rich-text/src/media.d.ts +2 -0
  134. package/dist/types/rich-text/src/normalize.d.ts +1 -1
  135. package/dist/types/rich-text/src/problems.d.ts +5 -5
  136. package/dist/types/rich-text/src/profile.d.ts +10 -10
  137. package/dist/types/rich-text/src/render.d.ts +1 -1
  138. package/dist/types/rich-text/src/schema.d.ts +2 -2
  139. package/dist/types/rich-text/src/standard.d.ts +4 -4
  140. package/dist/types/rich-text/src/types.d.ts +2 -2
  141. package/dist/types/schema/src/audience.d.ts +1 -3
  142. package/dist/types/schema/src/capabilities.d.ts +18 -27
  143. package/dist/types/schema/src/changes.d.ts +3 -1
  144. package/dist/types/schema/src/collection.d.ts +142 -111
  145. package/dist/types/schema/src/defaultSchema.d.ts +8 -2
  146. package/dist/types/schema/src/fieldIds.d.ts +18 -0
  147. package/dist/types/schema/src/file.d.ts +24 -11
  148. package/dist/types/schema/src/fileRefs.d.ts +14 -0
  149. package/dist/types/schema/src/fileSignature.d.ts +20 -0
  150. package/dist/types/schema/src/filesCollection.d.ts +7 -0
  151. package/dist/types/schema/src/forms.d.ts +43 -0
  152. package/dist/types/schema/src/imageMetadata.d.ts +9 -0
  153. package/dist/types/schema/src/index.d.ts +19 -10
  154. package/dist/types/schema/src/indexes.d.ts +11 -0
  155. package/dist/types/schema/src/input.d.ts +1 -1
  156. package/dist/types/schema/src/integrity.d.ts +8 -7
  157. package/dist/types/schema/src/kinds.d.ts +26 -0
  158. package/dist/types/schema/src/labels/en.d.ts +89 -46
  159. package/dist/types/schema/src/labels/ja.d.ts +92 -46
  160. package/dist/types/schema/src/mediaUrl.d.ts +26 -33
  161. package/dist/types/schema/src/page.d.ts +4 -4
  162. package/dist/types/schema/src/problems.d.ts +85 -42
  163. package/dist/types/schema/src/refs.d.ts +0 -9
  164. package/dist/types/schema/src/schema.d.ts +17 -12
  165. package/dist/types/schema/src/selfOps.d.ts +20 -19
  166. package/dist/types/schema/src/traits.d.ts +28 -0
  167. package/dist/types/schema/src/typesSource.d.ts +1 -1
  168. package/dist/types/schema/src/values.d.ts +5 -2
  169. package/dist/types/schema/src/widening.d.ts +3 -0
  170. package/dist/types/sdk/src/analytics.d.ts +2 -1
  171. package/dist/types/sdk/src/app.d.ts +43 -14
  172. package/dist/types/sdk/src/astro-image.d.ts +19 -0
  173. package/dist/types/sdk/src/astro-response.d.ts +6 -0
  174. package/dist/types/sdk/src/astro-server.d.ts +16 -0
  175. package/dist/types/sdk/src/astro.d.ts +19 -0
  176. package/dist/types/sdk/src/bridge.d.ts +2 -4
  177. package/dist/types/sdk/src/code.d.ts +61 -0
  178. package/dist/types/sdk/src/delegation.d.ts +13 -3
  179. package/dist/types/sdk/src/delivery/changes.d.ts +4 -4
  180. package/dist/types/sdk/src/delivery/client.d.ts +33 -22
  181. package/dist/types/sdk/src/delivery/fields.d.ts +3 -3
  182. package/dist/types/sdk/src/delivery/index.d.ts +3 -3
  183. package/dist/types/sdk/src/delivery/media.d.ts +5 -8
  184. package/dist/types/sdk/src/delivery/query.d.ts +15 -11
  185. package/dist/types/sdk/src/delivery/schema.d.ts +1 -1
  186. package/dist/types/sdk/src/delivery/values.d.ts +10 -14
  187. package/dist/types/sdk/src/delivery.d.ts +2 -2
  188. package/dist/types/sdk/src/dev-operations.d.ts +20 -0
  189. package/dist/types/sdk/src/dev.d.ts +6 -5
  190. package/dist/types/sdk/src/end-users.d.ts +187 -0
  191. package/dist/types/sdk/src/i18n.d.ts +2 -2
  192. package/dist/types/sdk/src/integrations.d.ts +14 -21
  193. package/dist/types/sdk/src/operations.d.ts +17 -0
  194. package/dist/types/sdk/src/preview.d.ts +2 -1
  195. package/dist/types/sdk/src/rich-text.d.ts +2 -2
  196. package/dist/types/sdk/src/schema.d.ts +1 -1
  197. package/dist/types/sdk/src/site/artifact.d.ts +64 -0
  198. package/dist/types/sdk/src/site/build-file.d.ts +30 -0
  199. package/dist/types/sdk/src/site/check-code.d.ts +14 -0
  200. package/dist/types/sdk/src/site/check-text.d.ts +19 -0
  201. package/dist/types/sdk/src/site/cli.d.ts +52 -0
  202. package/dist/types/sdk/src/site/content-type.d.ts +2 -0
  203. package/dist/types/sdk/src/site/labels.d.ts +14 -0
  204. package/dist/types/sdk/src/types.d.ts +1 -1
  205. package/dist/{types-B77qvqPJ.js → types-CYnY-63C.js} +5 -6
  206. package/dist/types.js +1 -1
  207. package/dist/{typesSource-CWybQYus.js → typesSource-BTA9-rcB.js} +17 -15
  208. package/package.json +32 -6
  209. package/dist/apps-BxnJ1RlU.js +0 -435
  210. package/dist/bridge-DtHw9hS6.js +0 -74
  211. package/dist/collection-BEOxeISR.js +0 -189
  212. package/dist/customers-DTbL0qn6.js +0 -86
  213. package/dist/customers.d.ts +0 -1
  214. package/dist/customers.js +0 -185
  215. package/dist/embeds-B5V54Zur.js +0 -34
  216. package/dist/ids--RF7hGyC.js +0 -36
  217. package/dist/src-sazhzYui.js +0 -71
  218. package/dist/types/contract/src/customers.d.ts +0 -266
  219. package/dist/types/schema/src/legacy.d.ts +0 -2
  220. package/dist/types/schema/src/media.d.ts +0 -5
  221. package/dist/types/sdk/src/customers.d.ts +0 -184
@@ -1,92 +1,128 @@
1
- import { c as formatMessage, f as problemText, n as BODY_PROBLEM_MESSAGES, p as problemTextFactory, u as problemMessage } from "./ja-CeHU0EaY.js";
2
- import { n as SCHEMA_PROBLEM_MESSAGES } from "./ja-Du6ooL6i.js";
1
+ import { c as formatMessage, f as problemText, p as problemTextFactory, r as RICH_TEXT_PROBLEM_MESSAGES, u as problemMessage } from "./ja-axQPxMJ-.js";
2
+ import { n as SCHEMA_PROBLEM_MESSAGES } from "./ja-B3lAaOhZ.js";
3
3
  // ../schema/src/labels/en.ts
4
4
  /** コンテンツスキーマの検査の問題の英語の文 */
5
5
  const SCHEMA_PROBLEM_MESSAGES_EN = {
6
6
  schema_unreadable_input: "Cannot read the collection list types (each collection needs an id and an array of fields, groups also need an array of fields)",
7
7
  invalid_collection_id: "id must start with a lowercase letter and contain only lowercase letters, digits and underscores",
8
8
  invalid_field_key: "key must start with a lowercase letter and contain only letters, digits, underscores and hyphens",
9
+ field_id_invalid: "internal field id must be a lowercase UUID v7",
10
+ field_id_duplicate: "internal field id is duplicated within the collection",
9
11
  page_path_slash: "The page template must start with /",
10
12
  og_path_slash: "The OG image template must start with /",
11
13
  invalid_pattern: "The pattern is not a valid regular expression",
12
14
  initial_not_option: "The initial value is not one of the options",
13
15
  derive_not_option: "The derived value is not one of the options",
14
16
  fixed_not_option: "The fixed value is not one of the options",
15
- customer_restrict: "Customer fields cannot use restrict (it would block deletion requests from people)",
16
- entitlement_renamed: "The required entitlement of a collection was renamed to grant (entitlement is no longer accepted)",
17
+ end_user_restrict: "End user fields cannot use restrict (it would block deletion requests from people)",
18
+ requests_single: "Requests can only be enabled on multiple reference fields",
19
+ grant_renamed: "The required entitlement of a collection was renamed to entitlement (grant is no longer accepted)",
20
+ publishing_renamed: "The old name publishing is not accepted (use publication; review is the content setting reviewCollections)",
17
21
  duplicate_field_key: "Duplicate field key",
18
22
  condition_invalid: "The field condition does not point to an option field and value at the same level",
19
23
  page_condition_invalid: "The page condition does not point to an option field and value of the collection",
20
24
  duplicate_collection_id: "Duplicate collection id",
25
+ collection_id_invalid: "Collection id must be a lowercase UUID",
26
+ reference_to_files: "Collection {collection}: a reference cannot point to the files collection (use a file field with accept)",
21
27
  duplicate_collection_slug: "Duplicate collection slug",
22
28
  reserved_key: "Collection {collection}: key {key} is the same as a system value (use another key)",
23
29
  reserved_query_key: "Collection {collection}: key {key} is reserved for Delivery API filters (use another key)",
24
- nested_rule: "Collection {collection}, field {field}: fields inside a group cannot have derive or fixedBy",
30
+ nested_rule: "Collection {collection}, field {field}: fields inside a group cannot have derive or fixed_by",
25
31
  computed_nested: "Collection {collection}, field {field}: fields inside a group cannot be computed",
26
32
  computed_from_not_body: "Collection {collection}, field {field}: the computed source {from} is not a body field of the same collection",
27
33
  computed_type_mismatch: "Collection {collection}, field {field}: field type {type} does not match computed kind {kind}",
28
34
  role_field_not_top: "Collection {collection}, role {role}: field {field} is not at the top level",
29
35
  role_field_mismatch: "Collection {collection}, role {role}: field {field} ({type}) does not fit the role",
30
- audience_nested_wider: "Collection {collection}, field {field}: the audience inside a group must be the same as the outer field or staff",
31
- audience_customer_field: "Collection {collection}, field {field}: the audience of a customer field must be self or staff",
32
- audience_self_without_marker: "Collection {collection}: fields with the self audience need a customer field marked self",
33
- grant_not_reference: "Collection {collection}, required grant {grant}: not a top-level public access reference field",
36
+ audience_nested_wider: "Collection {collection}, field {field}: the audience inside a group must be the same as the outer field or none",
37
+ audience_end_user_field: "Collection {collection}, field {field}: the audience of an end user field must be self or none",
38
+ audience_self_without_marker: "Collection {collection}: fields with the self audience need an end user field marked self",
39
+ entitlement_not_reference: "Collection {collection}, required entitlement {entitlement}: not a top-level public access reference field",
34
40
  audience_wider_than_source: "Collection {collection}, field {field}: the audience cannot be wider than its {source, select, computed {computed} derive {derive} other {condition}} source {from} (the source value would leak)",
35
41
  template_id_placeholder: "Collection {collection}, template {template}: '{id}' is not allowed (use '{slug}')",
36
42
  template_private_placeholder: "Collection {collection}, template {template}, '{'{key}'}': only public fields (the value appears in delivery and page paths)",
37
- fixed_by_wider: "Collection {collection}, field {field}: the audience cannot be wider than the fixedBy source (the source value would leak)",
43
+ fixed_by_wider: "Collection {collection}, field {field}: the audience cannot be wider than the fixed_by source (the source value would leak)",
38
44
  count_reference_private: "Collection {collection}, reference count {key}: reference field {field} of collection {fromCollection} is not public (the count would leak values)",
39
45
  count_reference_mismatch: "Collection {collection}, reference count {key}: reference field {field} of collection {fromCollection} does not point to this collection",
40
46
  count_key_duplicate: "Collection {collection}: reference count {key} duplicates a field key",
41
- customer_field_nested: "Collection {collection}, field {field}: customer fields cannot be inside a group",
42
- on_delete_nested: "Collection {collection}, field {field}: references inside a group cannot have onDelete or anonymize",
43
- on_delete_required: "Collection {collection}, field {field}: required fields cannot use onDelete {onDelete}",
44
- on_delete_min_items: "Collection {collection}, field {field}: references with a minimum count cannot use onDelete {onDelete}",
45
- anonymize_without_on_delete: "Collection {collection}, field {field}: anonymize fields require onDelete anonymize",
47
+ end_user_field_nested: "Collection {collection}, field {field}: end user fields cannot be inside a group",
48
+ on_delete_required: "Collection {collection}, field {field}: required fields cannot use on_delete {on_delete}",
49
+ on_delete_min_items: "Collection {collection}, field {field}: references with a minimum count cannot use on_delete {on_delete}",
50
+ anonymize_without_on_delete: "Collection {collection}, field {field}: anonymize fields require on_delete anonymize",
46
51
  anonymize_field_missing: "Collection {collection}, field {field}: anonymize field {target} is not at the top level of the same collection",
47
52
  anonymize_field_unclearable: "Collection {collection}, field {field}: anonymize field {target} ({type}) cannot be cleared",
48
53
  anonymize_field_required: "Collection {collection}, field {field}: anonymize field {target} is required",
49
- cascade_cycle: "onDelete cascade forms a cycle: {cycle}",
50
- cascade_too_deep: "Collection {collection}: onDelete cascade depth from people {depth, number} exceeds the limit {max, number}",
51
- cascade_self_customer: "Collection {collection}, field {field}: collections reached by a reference cascade cannot have a self customer field (it would delete other people's records)",
54
+ cascade_cycle: "on_delete cascade forms a cycle: {cycle}",
55
+ cascade_too_deep: "Collection {collection}: on_delete cascade depth from people {depth, number} exceeds the limit {max, number}",
56
+ cascade_self_end_user: "Collection {collection}, field {field}: collections reached by a reference cascade cannot have a self end user field (it would delete other people's records)",
52
57
  restrict_reachable: "Collection {collection}, field {field}: cannot restrict collection {to}, which is reachable from people by cascade (it would block deletion requests)",
53
- on_delete_undeclared_reference: "Collection {collection}, field {field}: references to collection {to}, which is reachable from people by cascade, must declare onDelete{nested, select, yes { (not possible inside a group, move it to the top level)} other {}}",
58
+ on_delete_undeclared_reference: "Collection {collection}, field {field}: references to collection {to}, which is reachable from people by cascade, must declare on_delete",
59
+ capability_required: "Collection {collection}: {declaration} needs the {capability} capability",
54
60
  private_object: "Collection {collection} is private: it cannot use the object format",
55
- private_publishing: "Collection {collection} is private: turn off publishing",
61
+ private_publication: "Collection {collection} is private: turn off publishing",
56
62
  private_pages: "Collection {collection} is private: it cannot have pages",
57
- private_grant: "Collection {collection} is private: it cannot require a grant",
63
+ private_entitlement: "Collection {collection} is private: it cannot require an entitlement",
58
64
  reference_target_missing: "Collection {collection}: reference target {to} is not in the schema",
59
65
  component_unknown: "Collection {collection}, body field {field}: component {name} is neither a core component nor declared in components",
60
- customer_on_delete_undeclared: "Collection {collection}, field {field}: customer fields must declare onDelete (cascade, anonymize or clear)",
61
- customer_in_object_collection: "Collection {collection}, field {field}: object collections cannot have customer fields (version history cannot be handled by deletion requests)",
62
- retention_days_undeclared: "Collection {collection}: collections with selfOps must declare retentionDays",
63
- audience_invalid: "Collection {collection}, field {field}: invalid audience (public, granted, self or staff)",
64
- audience_undeclared: "Collection {collection}, field {field}: declare audience for added or changed fields (public, granted, self or staff)",
65
- audience_undeclared_personal: "Collection {collection}, field {field}: fields added to a collection with customer fields must declare audience (public, granted, self or staff; staff for personal data)",
66
+ end_user_on_delete_undeclared: "Collection {collection}, field {field}: end user fields must declare on_delete (cascade, anonymize or clear)",
67
+ end_user_in_object_collection: "Collection {collection}, field {field}: object collections cannot have end user fields (version history cannot be handled by deletion requests)",
68
+ retention_days_undeclared: "Collection {collection}: collections with self_ops must declare retention_days",
69
+ kind_declaration_invalid: "Collection {collection}: {kind} collections cannot declare {declaration}",
70
+ kind_declaration_required: "Collection {collection}: {kind} collections must declare {declaration}",
71
+ kind_field_missing: "Collection {collection}: field {field} in {declaration} does not exist",
72
+ kind_time_invalid: "Collection {collection}: time field {field} must be a date or datetime field",
73
+ kind_subject_invalid: "Collection {collection}: subject field {field} must be an end user field",
74
+ index_field_invalid: "Collection {collection}: field {field} cannot have an index (only single text, select, status, checkbox, number, date, and datetime values that are not sensitive)",
75
+ indexes_too_many: "Collection {collection}: up to {max} indexes",
76
+ aggregate_dimensions_too_many: "Collection {collection}: aggregates can have up to {max} dimensions",
77
+ aggregate_dimension_person: "Collection {collection}: field {field} points to a person and cannot be an aggregate dimension",
78
+ aggregate_bucket_pair: "Collection {collection}: declare both time and bucket for an aggregate, or neither",
79
+ aggregate_measure_invalid: "Collection {collection}: measure field {field} must be a number field",
80
+ aggregate_field_undeclared: "Collection {collection}: aggregate field {field} must be the time, a dimension or a measure",
81
+ collection_kind_unavailable: "Collection {collection}: this {kind} declaration cannot be created yet",
82
+ audience_invalid: "Collection {collection}, field {field}: invalid audience (public, entitled, self or none)",
83
+ audience_undeclared: "Collection {collection}, field {field}: declare audience for added or changed fields (public, entitled, self or none)",
84
+ audience_undeclared_personal: "Collection {collection}, field {field}: fields added to a collection with end user fields must declare audience (public, entitled, self or none; none for personal data)",
66
85
  unique_list_only: "Collection {collection}: unique constraints are only for list collections",
67
- unique_name_duplicate: "Collection {collection}: duplicate unique constraint name {key} (unique customer fields and sequences are named by the field key)",
86
+ unique_name_duplicate: "Collection {collection}: duplicate unique constraint name {key} (unique end user fields and sequences are named by the field key)",
68
87
  unique_field_count: "Collection {collection}, unique constraint {key}: 1 to {max, number} fields",
69
88
  unique_field_duplicate: "Collection {collection}, unique constraint {key}: duplicate field",
70
89
  unique_field_not_top: "Collection {collection}, unique constraint {key}: field {field} is not at the top level",
71
- unique_field_unsupported: "Collection {collection}, unique constraint {key}: field {field} ({type}) cannot be unique (single text, number, option, reference, date and customer fields only)",
90
+ unique_field_unsupported: "Collection {collection}, unique constraint {key}: field {field} ({type}) cannot be unique (single text, number, option, reference, date and end user fields only)",
72
91
  sequence_nested: "Collection {collection}, field {field}: sequences cannot be inside a group",
73
92
  sequence_list_only: "Collection {collection}, field {field}: sequences are only for list collections",
74
93
  sequence_plain: "Collection {collection}, field {field}: sequences cannot be required, computed or conditional (assigned on creation)",
75
94
  transition_nested: "Collection {collection}, field {field}: transitions cannot be inside a group",
76
- transition_field_kind: "Collection {collection}, field {field}: transitions are only for single option fields without derive or fixedBy",
95
+ transition_field_kind: "Collection {collection}, field {field}: transitions are only for single option fields without derive or fixed_by",
77
96
  transition_to_not_option: "Collection {collection}, field {field}, transition {index, number}: target {to} is not one of the options",
78
97
  transition_from_empty: "Collection {collection}, field {field}, transition {index, number}: no source values",
79
98
  transition_from_not_option: "Collection {collection}, field {field}, transition {index, number}: source value {value} is not one of the options",
80
99
  transition_no_actor: "Collection {collection}, field {field}, transition {index, number}: no one can make the transition",
81
- self_ops_private_only: "Collection {collection}: selfOps are only for private collections (values written by people and self values are not delivered)",
82
- self_ops_list_only: "Collection {collection}: selfOps are only for list collections (object collections have a single record)",
83
- self_ops_unpublished: "Collection {collection}: collections with selfOps cannot have publishing or a published field (self records are shown regardless of publishing)",
84
- self_ops_one_self: "Collection {collection}: selfOps require exactly one self customer field",
85
- self_ops_on_delete: "Collection {collection}: the self customer field {field} of a selfOps collection must use onDelete cascade or anonymize (deletion requests must not keep self records)",
86
- self_ops_unique: "Collection {collection}: unique constraint {key} of a selfOps collection must include the self customer field {field} (to avoid conflicts with other people's values)",
87
- self_writable_nested: "Collection {collection}, field {field}: selfWritable cannot be set inside a group",
88
- self_writable_blocked: "Collection {collection}, field {field}: selfWritable cannot be set on {block, select, customer {customer fields} group {groups} file {file fields} rich_text {body fields} staff {staff fields} admin_only {admin-only fields} computed {computed fields} other {sequence fields}}",
89
- self_writable_without_ops: "Collection {collection}, field {field}: selfWritable requires a collection that accepts create_self or update_self",
100
+ form_private_list_only: "Collection {collection}: forms are only for private list collections (submissions are not delivered)",
101
+ form_with_self_ops: "Collection {collection}: a form and self_ops cannot be declared together",
102
+ form_delivered_field: "Collection {collection}, field {field}: a form collection cannot have delivered audiences (public, entitled)",
103
+ form_one_end_user: "Collection {collection}: a form submitted by end_user requires exactly one end user field",
104
+ form_required_missing: "Collection {collection}, field {field}: a field required on save is missing from the form",
105
+ form_field_unsupported: "Collection {collection}, form field {field}: submitters can write only top-level single-value text, contact, and select fields (no conditional, admin-only, or managed fields)",
106
+ form_field_duplicate: "Collection {collection}, form field {field}: duplicate",
107
+ form_required_when: "Collection {collection}, form field {field}: required_when must point to another select field of the form and its options",
108
+ form_hosts: "Collection {collection}, form field {field}: hosts are only for URL fields and need lowercase host names or site",
109
+ form_handled_field: "Collection {collection}, handled field {field}: must be a single-value select field",
110
+ form_handled_done: "Collection {collection}, handled field {field}: done values must be options other than the initial value",
111
+ form_handled_at_missing: "Collection {collection}, handled field {field}: a datetime field managed by form_handled_at is required",
112
+ form_handled_writable: "Collection {collection}, handled field {field}: submitters cannot write it",
113
+ form_managed_nested: "Collection {collection}, field {field}: managed cannot be inside a group",
114
+ form_managed_shape: "Collection {collection}, field {field}: {managed} must be a single-value {type} field without required or conditions",
115
+ form_managed_undeclared: "Collection {collection}, field {field}: no form declaration for {managed}",
116
+ form_managed_duplicate: "Collection {collection}, field {field}: only one field can be {managed}",
117
+ self_ops_private_only: "Collection {collection}: self_ops are only for private collections (values written by people and self values are not delivered)",
118
+ self_ops_list_only: "Collection {collection}: self_ops are only for list collections (object collections have a single record)",
119
+ self_ops_unpublished: "Collection {collection}: collections with self_ops cannot have publishing or a published field (self records are shown regardless of publishing)",
120
+ self_ops_one_self: "Collection {collection}: self_ops require exactly one self end user field",
121
+ self_ops_on_delete: "Collection {collection}: the self end user field {field} of a self_ops collection must use on_delete cascade or anonymize (deletion requests must not keep self records)",
122
+ self_ops_unique: "Collection {collection}: unique constraint {key} of a self_ops collection must include the self end user field {field} (to avoid conflicts with other people's values)",
123
+ self_writable_nested: "Collection {collection}, field {field}: self_writable cannot be set inside a group",
124
+ self_writable_blocked: "Collection {collection}, field {field}: self_writable cannot be set on {block, select, end_user {end user reference fields} object {groups} file {file fields} rich_text {body fields} staff {staff fields} admin_only {admin-only fields} computed {computed fields} other {sequence fields}}",
125
+ self_writable_without_ops: "Collection {collection}, field {field}: self_writable requires a collection that accepts create_self or update_self",
90
126
  field_key_reused: "Field \"{label}\": key {key} was a {type} field in a past version (values remain in records, use another key)",
91
127
  field_removed: "Remove field \"{label}\" (values are kept and hidden)",
92
128
  field_added: "Add field \"{label}\"",
@@ -94,29 +130,38 @@ const SCHEMA_PROBLEM_MESSAGES_EN = {
94
130
  field_type_changed: "Change the type of field \"{label}\" from {from} to {to} (incompatible, create a new field and move the values)",
95
131
  field_required: "Make field \"{label}\" required",
96
132
  field_pii_narrowed: "Weaken the personal data class of field \"{label}\" (values remain in environment copies)",
133
+ field_managed_changed: "Change whether field \"{label}\" is managed (affects one submission per person and retention)",
97
134
  field_tightened: "Tighten the value rules of field \"{label}\" (values that do not match must be fixed on the next save)",
98
135
  option_removed: "Remove option \"{option}\" from field \"{label}\"",
99
136
  option_added: "Add option \"{option}\" to field \"{label}\"",
100
137
  field_changed: "Change the settings or order of field \"{label}\"",
138
+ field_key_changed: "Change the key of field \"{label}\" from {from} to {to} (the key in delivery responses changes)",
101
139
  collection_label_changed: "Change the name or description of collection \"{label}\"",
102
140
  collection_format_changed: "Change the format of collection \"{label}\" (create a new collection and move the records)",
103
- collection_publishing_removed: "Turn off publishing for collection \"{label}\" (draft records also become public)",
104
- collection_publishing_changed: "Change publishing for collection \"{label}\"",
141
+ collection_kind_changed: "Change the kind of collection \"{label}\" (create a new collection and move the records)",
142
+ collection_kind_declaration_changed: "Change the timeseries or aggregate declaration of collection \"{label}\"",
143
+ collection_publication_removed: "Turn off publishing for collection \"{label}\" (draft records also become public)",
144
+ collection_publication_added: "Turn on publishing for collection \"{label}\"",
105
145
  collection_slug_mode: "Record slugs in collection \"{label}\" become {mode, select, editor {chosen by editors} other {automatic}}",
106
- collection_slug_changed: "Change the slug of collection \"{label}\" from {from} to {to} (the delivery path becomes /content/v1/{to}, the old slug path returns 404)",
146
+ collection_slug_changed: "Change the slug of collection \"{label}\" from {from} to {to} (the delivery path becomes /v1/collections/{to}/records, the old slug path returns 404)",
107
147
  collection_roles_changed: "Change the field roles of collection \"{label}\"",
108
148
  collection_private_changed: "Make collection \"{label}\" {private, select, yes {private} other {delivered}}",
109
149
  collection_unlinked: "Collection \"{label}\" is no longer linked to people (records remain when excluded from environment copies)",
110
- collection_grant_changed: "Change the required grant field of collection \"{label}\"",
150
+ collection_entitlement_changed: "Change the required entitlement field of collection \"{label}\"",
111
151
  collection_unique_added: "Add or change unique constraints of collection \"{label}\" (cannot save while duplicates remain)",
112
152
  collection_unique_removed: "Remove unique constraints of collection \"{label}\"",
113
153
  collection_pages_changed: "Change the page templates of collection \"{label}\"",
114
154
  collection_counts_changed: "Change the reference counts of collection \"{label}\"",
115
155
  collection_og_changed: "Change the OG image template of collection \"{label}\"",
116
- collection_self_ops_added: "Add selfOps to collection \"{label}\" (consented installations can read and write on behalf of the customer)",
117
- collection_self_ops_removed: "Remove selfOps from collection \"{label}\"",
156
+ collection_self_ops_added: "Add self_ops to collection \"{label}\" (consented installations can read and write on behalf of the end user)",
157
+ collection_self_ops_removed: "Remove self_ops from collection \"{label}\"",
158
+ collection_form_opened: "Add or widen the form of collection \"{label}\" (API keys with the submit permission can write)",
159
+ collection_form_retention_shortened: "Delete handled records of collection \"{label}\" after {days, number} days (removed by the daily cleanup; with trash enabled they move to the trash and personal data is erased after the trash period)",
160
+ collection_form_changed: "Change the form of collection \"{label}\"",
118
161
  collection_retention_shortened: "Set the retention of collection \"{label}\" to {days, number} days (expired records are deleted by the daily cleanup)",
119
162
  collection_retention_changed: "Change the retention of collection \"{label}\"",
163
+ collection_trash_enabled: "Turn on the trash of collection \"{label}\"",
164
+ collection_trash_disabled: "Turn off the trash of collection \"{label}\"",
120
165
  collection_publish_checks_changed: "Change the publish checks of collection \"{label}\"",
121
166
  file_fixed: "The fields, format and publishing of collection \"{label}\" are fixed by the product (name and description can be changed)",
122
167
  file_not_removable: "Collection \"{label}\" is fixed by the product and cannot be deleted",
@@ -124,7 +169,7 @@ const SCHEMA_PROBLEM_MESSAGES_EN = {
124
169
  file_defined: "The fields and format of collection \"{label}\" are defined by the product",
125
170
  collection_added: "Add collection \"{label}\"",
126
171
  confidential_key_reused: "The key of field {field} was a confidential field ({type}) (values remain in records, use another key)",
127
- audience_widened: "Widen the audience of field {field} from {from, select, public {public} granted {granted customers} self {self} other {staff}} to {to, select, public {public} granted {granted customers} self {self} other {staff}} (recorded in the registry)",
172
+ audience_widened: "Widen the audience of field {field} from {from, select, public {public} entitled {entitled end users} self {self} other {none}} to {to, select, public {public} entitled {entitled end users} self {self} other {none}} (recorded in the registry)",
128
173
  component_removed: "Remove the declaration of body component \"{label}\" (bodies using it are rejected on the next save)",
129
174
  component_added: "Declare body component \"{label}\"",
130
175
  component_changed: "Change the declaration of body component \"{label}\"",
@@ -167,16 +212,14 @@ const SCHEMA_PROBLEM_MESSAGES_EN = {
167
212
  referenced_page_fields: "Publishing creates a page for {target}, so {fields} of {target} are required",
168
213
  fixed_value: "For this {target}, set {field} of {collection} to {option}",
169
214
  body_field_missing: "Collection {collection} has no body field {field}",
170
- date_time_invalid: "Invalid date and time format",
171
- comment_required: "Comment is required",
172
- reject_note_required: "Reason for returning is required"
215
+ date_time_invalid: "Invalid date and time format"
173
216
  };
174
217
  // ../rich-text/src/labels/en.ts
175
218
  const MARK = "{mark, select, strong {Bold} em {Italic} code {Code} strike {Strikethrough} mark {Highlight} sup {Superscript} sub {Subscript} other {Underline}}";
176
219
  const STYLE = "{kind, select, color {Text color} background {Background color} other {Font size}}";
177
220
  const WHERE = "{where, select, paragraph {paragraph} heading {heading} list {list} quote {quote} figure {figure} caption {caption} other {cell}}";
178
221
  /** 本文の検査の問題の英語の文 */
179
- const BODY_PROBLEM_MESSAGES_EN = {
222
+ const RICH_TEXT_PROBLEM_MESSAGES_EN = {
180
223
  inline_component_here: "Inline components cannot be used here",
181
224
  inline_component_unavailable: "Inline component {name} cannot be used",
182
225
  marks_here: "Marks and links cannot be used here",
@@ -289,11 +332,16 @@ const ERROR_MESSAGES_EN = {
289
332
  external_function: "external function",
290
333
  external_screen: "external screen",
291
334
  api_key: "API key",
292
- preview: "preview signing key",
335
+ read_token: "read token",
336
+ mail_domain: "sending domain",
337
+ channel: "channel",
338
+ channel_address: "channel address",
293
339
  trash: "trash",
294
- customer: "customer",
295
- customer_identity: "customer identity",
296
- customer_grant: "customer grant",
340
+ end_user: "end user",
341
+ end_user_identity: "end user identity",
342
+ entitlement: "end user entitlement",
343
+ offer: "offer",
344
+ price: "price",
297
345
  app: "app",
298
346
  installation: "installation",
299
347
  invitation: "invitation",
@@ -301,8 +349,8 @@ const ERROR_MESSAGES_EN = {
301
349
  },
302
350
  codes: {
303
351
  invalid_input: "The input is invalid.",
304
- infra_id_uuid: "Specify the 26-character ID of lowercase letters and digits, not a UUID.",
305
- submit_unmet: "The submission requirements are not met.",
352
+ uuid_not_accepted: "Specify the 26-character ID of lowercase letters and digits, not a UUID.",
353
+ transition_unmet: "The submission requirements are not met.",
306
354
  publish_unmet: "The publishing requirements are not met.",
307
355
  save_unmet: "The saving requirements are not met.",
308
356
  version_required: "The base version (version) is required.",
@@ -317,8 +365,8 @@ const ERROR_MESSAGES_EN = {
317
365
  invalid_mcp_token: "The call from MCP is invalid.",
318
366
  mcp_signature_invalid: "Cannot verify the call from the MCP server. Contact the operator.",
319
367
  invalid_account_token: "The app account credential token is invalid. Replace it with the token shown on the screen.",
320
- preview_token_required: "A preview signature is required to get drafts.",
321
- invalid_preview_token: "The preview signature does not match.",
368
+ read_token_required: "An API key, read token or perspective ticket that can read unpublished versions is required.",
369
+ invalid_read_token: "The read token or ticket is invalid or expired.",
322
370
  api_key_required: "An API key is required (Authorization: Bearer).",
323
371
  invalid_api_key: "The API key is invalid.",
324
372
  invalid_id_token: "The ID token is invalid. Get a new one and send it again.",
@@ -331,36 +379,36 @@ const ERROR_MESSAGES_EN = {
331
379
  operator_read_only: "The operator support access is read-only, so changes are not allowed.",
332
380
  not_trial: "This operation is only for projects with the trial flag.",
333
381
  not_live: "This operation is only available in the live environment. Use the admin screen of the live environment.",
334
- operator_closed: "This operation is outside what operator support access allows (accounts, roles, integrations, apps, customer IDs, permissions and so on).",
382
+ operator_closed: "This operation is outside what operator support access allows (accounts, roles, integrations, apps, end user IDs, permissions and so on).",
335
383
  forbidden: "{target, select, none {You do not have permission for this operation.} other {You do not have permission for this operation on {target}.}}",
336
- editorial_only: "{target, select, none {This} other {The {target}}} can only be created by accounts with publishing permission.",
384
+ create_requires_publish: "{target, select, none {This} other {The {target}}} can only be created by accounts with publishing permission.",
337
385
  no_linked_record: "Accounts without a linked {name} cannot do this.",
338
386
  own_only: "You can only operate on your own {target, select, none {items} other {{target}}}.",
339
387
  not_visible: "You cannot view unpublished {target, select, none {items} other {{target}}} of other people.",
340
- published_admin_only: "Editing published records requires publishing permission.",
388
+ edit_requires_publish: "Editing published records requires publishing permission.",
341
389
  cannot_remove_self: "You cannot remove yourself from the link.",
342
390
  cannot_change_owner: "The owner cannot be changed.",
343
391
  not_found: "{target, select, none {The target} other {The {target}}} was not found.",
344
392
  method_not_allowed: "This path does not accept this method.",
345
- customer_not_linked: "No customer is linked to this account.",
346
- customer_pending: "The link of this account becomes usable after review by the operator.",
347
- in_use: "{by, select, uses {Cannot delete because it is used in {count, number} items.} places {Cannot delete because it is used in {count, number} places.} outputs {Cannot delete because it is used by {count, number} planning outputs.} record {Cannot delete because it is used by {name, select, none {other content} other {{name}}}.} writers {Cannot delete because it is linked to {count, number} records.} customers {Cannot delete because {count, number} records belong to it.} accounts {Cannot delete because {count, number} accounts have this role.} app {Cannot delete because it is referenced by {count, number} {name, select, none {extension records} other {{name}}}.} other {Cannot delete because it is in use.}}",
393
+ end_user_not_linked: "No end user is linked to this account.",
394
+ end_user_pending: "The link of this account becomes usable after review by the operator.",
395
+ in_use: "{by, select, uses {Cannot delete because it is used in {count, number} items.} places {Cannot delete because it is used in {count, number} places.} outputs {Cannot delete because it is used by {count, number} planning outputs.} record {Cannot delete because it is used by {name, select, none {other content} other {{name}}}.} writers {Cannot delete because it is linked to {count, number} records.} end_users {Cannot delete because {count, number} records belong to it.} accounts {Cannot delete because {count, number} accounts have this role.} app {Cannot delete because it is referenced by {count, number} {name, select, none {extension records} other {{name}}}.} other {Cannot delete because it is in use.}}",
348
396
  duplicate_name: "The same name already exists.",
349
397
  duplicate_email: "An account with the same email address already exists.",
350
398
  duplicate_id: "This ID is already in use.",
351
399
  duplicate_slug: "This slug is already in use.",
352
400
  version_conflict: "This conflicted with another update. Load the latest version and try again.",
353
- article_editing: "{name, select, none {Someone else} other {{name}}} is editing this in the CMS, so it cannot be saved. Saving becomes possible within 2 minutes after the editor is closed or another tab is selected.",
401
+ record_locked: "{name, select, none {Someone else} other {{name}}} is editing this in the CMS, so it cannot be saved. Saving becomes possible within 2 minutes after the editor is closed or another tab is selected.",
354
402
  invalid_state: "This operation is not possible in the current state.",
355
- unpublish_first: "Unpublish published records before deleting them.",
403
+ still_published: "Unpublish published records before deleting them.",
356
404
  last_admin: "The last administrator cannot be removed or demoted from the administrator role.",
357
405
  exceeds_own: "You cannot grant permissions wider than your own role.",
358
- reauth_required: "Log in again before approving.",
406
+ reauth_required: "Log in again before this operation.",
359
407
  approval_required: "This change reaches production, so it needs a request and approval.",
360
408
  stale: "The content changed after the request. Request again.",
361
409
  approval_closed: "This request can no longer be approved (applied, rejected, withdrawn or expired).",
362
410
  cursor_expired: "The change log retention period has passed. Get all items again without cursor.",
363
- already_linked: "{reason, select, identity {This account is already linked to another customer.} other {This customer is already linked to an account of the same issuer.}}",
411
+ already_linked: "{reason, select, identity {This account is already linked to another end user.} record {This account is already linked to a record in this project.} other {This end user is already linked to an account of the same issuer.}}",
364
412
  run_done: "This import run is already complete. Start a new run.",
365
413
  invalid_invite: "{reason, select, expired {The invitation has expired.} used {The invitation has already been used.} other {The invitation was not found.}}",
366
414
  body_too_large: "The request body must be at most {bodyMaxMB, number} MB.",
@@ -379,51 +427,63 @@ const ERROR_MESSAGES_EN = {
379
427
  no_draft: "There are no unpublished changes apart from the published version.",
380
428
  not_in_review: "Not in review.",
381
429
  request_handled: "This request has already been handled.",
430
+ requester_unauthorized: "The requester no longer has permission to request this operation.",
382
431
  deleted: "Already deleted.",
383
432
  not_deleted: "Cannot restore because it is not deleted.",
384
433
  schema_confirm: "This includes changes with impact. Check the counts before saving.",
385
- no_publishing: "This collection has no workflow.",
434
+ no_publication: "This collection has no workflow.",
386
435
  no_review: "The workflow of this collection has no review.",
387
436
  not_published: "Not published or scheduled.",
388
437
  collection_rows: "Records remain. Check the counts before deleting.",
389
438
  restore_conflict: "Cannot restore because {name, select, none {the same content} other {{name}}} already exists.",
439
+ restore_target_trashed: "Cannot restore because {name} is in the trash. Restore the referenced record first.",
390
440
  collection_exists: "Cannot restore because a collection with the same id already exists.",
391
441
  collection_missing: "Cannot restore because the collection is deleted. Restore the collection first.",
392
- not_restorable: "Cannot restore because it was deleted by a personal deletion request or after the retention of a closed customer.",
442
+ not_restorable: "Cannot restore because it was deleted by a personal deletion request.",
393
443
  installation_state: "This operation is not possible in the current installation state.",
394
444
  site_deploy: "The site cannot be uploaded now. Another upload is in progress, or the site is stopped or removed.",
395
- site_stopped_by_check: "The site was stopped because the check right after the upload failed. Upload a fix and ask the operator to restore it.",
445
+ site_check_failed: "The placement was discarded because the check right after it failed. The published site is unchanged. Upload a fix.",
446
+ deployment_stale: "The active deployment was changed by another operation. Reload and activate again.",
447
+ deployment_not_ready: "This deployment cannot be activated. Its placement failed or no longer exists.",
448
+ deployment_consent: "This deployment cannot be activated because consent for the capabilities it uses is missing.",
396
449
  required_app: "Required standard features cannot be stopped or uninstalled.",
397
450
  app_installed: "An app can be installed only once per project.",
398
451
  app_dependencies: "Cannot satisfy the app dependencies. Check the reasons in conflicts.",
452
+ app_required_by: "Cannot uninstall because other installed apps depend on it: {name}.",
399
453
  app_reinstalled: "The data of the old installation cannot be deleted because the same app has been reinstalled.",
400
454
  app_managed: "This registration is managed by an app installation. Change it by consenting to a new app version.",
401
455
  request_key_reused: "A record with another person, channel or purpose already exists for the same deduplication key.",
402
456
  no_organization: "Cannot invite because the project does not belong to an organization. Ask the operator to add it to an organization.",
403
457
  schema_changed: "Could not save because the schema changed. Reload the screen.",
404
- customer_inactive: "This customer is suspended or closed, so the operation is not possible.",
458
+ end_user_inactive: "This end user is suspended or closed, so the operation is not possible.",
405
459
  self_limit: "The limit of records per person has been reached.",
406
460
  already_live: "This environment is already live.",
407
461
  target_live: "The live environment cannot be deleted. Switch to another environment first.",
408
462
  target_synthetic: "An environment with synthetic data cannot become live.",
463
+ target_anonymized: "A copy with personal information replaced or excluded cannot become live. Ask the operator for a copy that retains the values. You can apply only its schema.",
409
464
  no_changes: "There are no differences from live.",
410
465
  schema_values: "Cannot apply because the changes remove fields with values. Move the values in live and try again.",
411
466
  environment_limit: "The number of environments has reached the plan limit.",
467
+ collection_size_limit: "The number of items has reached the limit.",
412
468
  environment_busy: "This environment is in the middle of another operation. Wait a moment and try again.",
413
469
  unregistered_table: "Cannot copy because some tables have no decided handling of personal information.",
414
470
  not_frozen: "Writes to live are not stopped.",
415
- approval_running: "An approved operation is running. Wait a moment and try again."
471
+ approval_running: "An approved operation is running. Wait a moment and try again.",
472
+ aggregate_read_only: "Aggregate collections are read-only. Only the rebuild writes their values.",
473
+ not_aggregate: "This is not an aggregate collection.",
474
+ condition_unmet: "The record given as the condition has changed or cannot be read.",
475
+ app_state_keys_full: "The number of app state keys has reached the limit."
416
476
  },
417
477
  own: {
418
478
  profile: "You can only edit your own profile.",
419
479
  portrait: "You can only change your own portrait."
420
480
  },
421
- noLink: { mcp: "Accounts without a linked {name} cannot use MCP." },
481
+ no_link: { mcp: "Accounts without a linked {name} cannot use MCP." },
422
482
  linkedRecord: "record",
423
483
  titles: {
424
484
  invalid_input: "Input error",
425
- infra_id_uuid: "Input error",
426
- submit_unmet: "Cannot submit",
485
+ uuid_not_accepted: "Input error",
486
+ transition_unmet: "Cannot submit",
427
487
  publish_unmet: "Cannot publish",
428
488
  save_unmet: "Cannot save",
429
489
  version_required: "Input error",
@@ -438,8 +498,8 @@ const ERROR_MESSAGES_EN = {
438
498
  invalid_mcp_token: "Login error",
439
499
  mcp_signature_invalid: "Login error",
440
500
  invalid_account_token: "Login error",
441
- preview_token_required: "Login error",
442
- invalid_preview_token: "Login error",
501
+ read_token_required: "Login error",
502
+ invalid_read_token: "Login error",
443
503
  api_key_required: "Login error",
444
504
  invalid_api_key: "Login error",
445
505
  invalid_id_token: "Login error",
@@ -454,26 +514,26 @@ const ERROR_MESSAGES_EN = {
454
514
  not_trial: "Not allowed",
455
515
  not_live: "Live environment only",
456
516
  forbidden: "Not allowed",
457
- editorial_only: "Not allowed",
517
+ create_requires_publish: "Not allowed",
458
518
  no_linked_record: "Not allowed",
459
519
  own_only: "Not allowed",
460
520
  not_visible: "Not allowed",
461
- published_admin_only: "Not allowed",
521
+ edit_requires_publish: "Not allowed",
462
522
  cannot_remove_self: "Not allowed",
463
523
  cannot_change_owner: "Not allowed",
464
524
  not_found: "Not found",
465
525
  method_not_allowed: "Not possible",
466
- customer_not_linked: "Not found",
467
- customer_pending: "Pending review",
526
+ end_user_not_linked: "Not found",
527
+ end_user_pending: "Pending review",
468
528
  in_use: "Cannot delete",
469
529
  duplicate_name: "Duplicate",
470
530
  duplicate_email: "Duplicate",
471
531
  duplicate_id: "Duplicate",
472
532
  duplicate_slug: "Duplicate",
473
533
  version_conflict: "Update conflict",
474
- article_editing: "Being edited",
534
+ record_locked: "Being edited",
475
535
  invalid_state: "Not possible",
476
- unpublish_first: "Cannot delete",
536
+ still_published: "Cannot delete",
477
537
  last_admin: "Not possible",
478
538
  exceeds_own: "Not allowed",
479
539
  reauth_required: "Log in again",
@@ -501,7 +561,7 @@ const ERROR_MESSAGES_EN = {
501
561
  /** 失敗のコードと HTTP の状態 */
502
562
  const FAILURE_STATUS = {
503
563
  invalid_input: 400,
504
- submit_unmet: 400,
564
+ transition_unmet: 400,
505
565
  publish_unmet: 400,
506
566
  save_unmet: 400,
507
567
  version_required: 400,
@@ -515,7 +575,7 @@ const FAILURE_STATUS = {
515
575
  invalid_slug: 400,
516
576
  reserved_slug: 400,
517
577
  invalid_id: 400,
518
- infra_id_uuid: 400,
578
+ uuid_not_accepted: 400,
519
579
  reserved_id: 400,
520
580
  organization_required: 400,
521
581
  same_environment: 400,
@@ -527,13 +587,13 @@ const FAILURE_STATUS = {
527
587
  invalid_mcp_token: 401,
528
588
  mcp_signature_invalid: 401,
529
589
  invalid_account_token: 401,
530
- preview_token_required: 401,
590
+ read_token_required: 401,
531
591
  api_key_required: 401,
532
592
  invalid_api_key: 401,
533
593
  invalid_id_token: 401,
534
594
  invalid_app_token: 401,
535
595
  account_not_found: 403,
536
- invalid_preview_token: 403,
596
+ invalid_read_token: 401,
537
597
  api_key_forbidden: 403,
538
598
  mcp_not_allowed: 403,
539
599
  insufficient_scope: 403,
@@ -545,17 +605,17 @@ const FAILURE_STATUS = {
545
605
  forbidden: 403,
546
606
  mfa_required: 403,
547
607
  cross_origin: 403,
548
- editorial_only: 403,
608
+ create_requires_publish: 403,
549
609
  no_linked_record: 403,
550
610
  own_only: 403,
551
611
  not_visible: 403,
552
- published_admin_only: 403,
612
+ edit_requires_publish: 403,
553
613
  cannot_remove_self: 403,
554
614
  cannot_change_owner: 403,
555
615
  not_found: 404,
556
- customer_not_linked: 404,
616
+ end_user_not_linked: 404,
557
617
  method_not_allowed: 405,
558
- customer_pending: 409,
618
+ end_user_pending: 409,
559
619
  in_use: 409,
560
620
  conflict: 409,
561
621
  already_exists: 409,
@@ -565,9 +625,9 @@ const FAILURE_STATUS = {
565
625
  duplicate_slug: 409,
566
626
  slug_taken: 409,
567
627
  version_conflict: 409,
568
- article_editing: 409,
628
+ record_locked: 409,
569
629
  invalid_state: 409,
570
- unpublish_first: 409,
630
+ still_published: 409,
571
631
  last_owner: 409,
572
632
  last_admin: 409,
573
633
  exceeds_own: 403,
@@ -578,6 +638,7 @@ const FAILURE_STATUS = {
578
638
  already_live: 409,
579
639
  target_live: 409,
580
640
  target_synthetic: 409,
641
+ target_anonymized: 409,
581
642
  cross_organization: 409,
582
643
  target_busy: 409,
583
644
  target_frozen: 409,
@@ -588,7 +649,7 @@ const FAILURE_STATUS = {
588
649
  still_frozen: 409,
589
650
  schema_values: 409,
590
651
  confirm_required: 409,
591
- pii_unregistered_table: 409,
652
+ unregistered_table: 409,
592
653
  environment_limit_exceeded: 409,
593
654
  cursor_expired: 410,
594
655
  body_too_large: 413,
@@ -598,7 +659,7 @@ const FAILURE_STATUS = {
598
659
  unavailable: 503,
599
660
  writes_paused: 503,
600
661
  environment_frozen: 503,
601
- audit_unshipped: 503,
662
+ audit_pending: 503,
602
663
  grants_not_revoked: 503,
603
664
  notice_failed: 503,
604
665
  job_failed: 500,
@@ -613,7 +674,7 @@ const NETWORK_ERROR = "network_error";
613
674
  /** エラーのコードと HTTP の状態(failureStatus.ts の表の CMS の API の部分) */
614
675
  const ERROR_STATUS = Object.fromEntries([
615
676
  "invalid_input",
616
- "submit_unmet",
677
+ "transition_unmet",
617
678
  "publish_unmet",
618
679
  "save_unmet",
619
680
  "version_required",
@@ -624,18 +685,18 @@ const ERROR_STATUS = Object.fromEntries([
624
685
  "invalid_dimensions",
625
686
  "https_required",
626
687
  "invalid_style",
627
- "infra_id_uuid",
688
+ "uuid_not_accepted",
628
689
  "login_required",
629
690
  "invalid_mcp_token",
630
691
  "mcp_signature_invalid",
631
692
  "invalid_account_token",
632
- "preview_token_required",
693
+ "read_token_required",
633
694
  "api_key_required",
634
695
  "invalid_api_key",
635
696
  "invalid_id_token",
636
697
  "invalid_app_token",
637
698
  "account_not_found",
638
- "invalid_preview_token",
699
+ "invalid_read_token",
639
700
  "api_key_forbidden",
640
701
  "mcp_not_allowed",
641
702
  "insufficient_scope",
@@ -645,16 +706,16 @@ const ERROR_STATUS = Object.fromEntries([
645
706
  "not_trial",
646
707
  "not_live",
647
708
  "forbidden",
648
- "editorial_only",
709
+ "create_requires_publish",
649
710
  "no_linked_record",
650
711
  "own_only",
651
712
  "not_visible",
652
- "published_admin_only",
713
+ "edit_requires_publish",
653
714
  "cannot_remove_self",
654
715
  "cannot_change_owner",
655
716
  "not_found",
656
- "customer_not_linked",
657
- "customer_pending",
717
+ "end_user_not_linked",
718
+ "end_user_pending",
658
719
  "method_not_allowed",
659
720
  "in_use",
660
721
  "duplicate_name",
@@ -662,9 +723,9 @@ const ERROR_STATUS = Object.fromEntries([
662
723
  "duplicate_id",
663
724
  "duplicate_slug",
664
725
  "version_conflict",
665
- "article_editing",
726
+ "record_locked",
666
727
  "invalid_state",
667
- "unpublish_first",
728
+ "still_published",
668
729
  "last_admin",
669
730
  "exceeds_own",
670
731
  "reauth_required",
@@ -686,6 +747,7 @@ const ERROR_STATUS = Object.fromEntries([
686
747
  "internal_error",
687
748
  NETWORK_ERROR
688
749
  ].flatMap((code) => code === NETWORK_ERROR ? [] : [[code, FAILURE_STATUS[code]]]));
750
+ const PROBLEM_CONTENT_TYPE = "application/problem+json";
689
751
  // ../contract/src/issueLabels.ts
690
752
  /** 機能をまたいで共通の入力 */
691
753
  const INPUT = {
@@ -696,7 +758,7 @@ const INPUT = {
696
758
  slug_uuid: "スラッグに UUID の形は使えない",
697
759
  url_format: "URL の形が不正",
698
760
  infra_id: "ID の形が不正(英小文字と数字の26文字)",
699
- infra_id_uuid: "UUID の形の ID は受け付けない(英小文字と数字の26文字)",
761
+ uuid_not_accepted: "UUID の形の ID は受け付けない(英小文字と数字の26文字)",
700
762
  https_only: "https の URL だけ",
701
763
  body_not_json: "本文が JSON の形でない",
702
764
  email_format: "メールアドレスの形式が不正"
@@ -716,7 +778,8 @@ const APPS = {
716
778
  app_namespace: "名前空間は英小文字で始まる英小文字と数字の3〜32文字です",
717
779
  app_namespace_taken: "この名前空間はすでに使われています(再利用できません)",
718
780
  app_no_organization: "コンソールで管理していないプロジェクトでは、アプリを登録できません。必要なときは、管理者が運営に相談してください。",
719
- app_slots: "埋め込み先のコレクションを選んでください(本文を求める埋め込み先は本文の項目を持つコレクション)",
781
+ app_collections: "既存のコレクションを使うときは、使うコレクションと対応するフィールドを選択してください(フィールドは同じ型。対応させないフィールドはインストールが追加するので、同じキーのフィールドがあれば対応させてください)",
782
+ app_slugs: "アプリのコレクションのスラッグがほかのコレクションと重なるか使えない形です。スラッグを指定してください",
720
783
  app_not_installable: "このアプリはインストールできません(自分の組織のアプリと確認済みのアプリだけ)。アプリの一覧から選び直してください。",
721
784
  app_no_registration: "このプロジェクトでは、アプリを追加できません。必要なときは、管理者が運営に相談してください。",
722
785
  app_changed: "確認した後にアプリのバージョンか能力が変わりました。もう一度確認してください。",
@@ -724,15 +787,18 @@ const APPS = {
724
787
  app_incompatible: "同じ世代の中で互換のない変更です。世代(major)を上げるか、変更を戻してください。",
725
788
  app_incompatible_detail: "同じ世代の中で互換のない変更です。世代(major)を上げるか、変更を戻してください({detail})。",
726
789
  app_key_private: "秘密鍵の部分(d など)を含む鍵は登録できません。公開鍵だけを送ってください。",
727
- app_key_unsupported: "登録できるのは ES256(EC の P-256)か RS256(RSA)の署名用の公開鍵だけです",
790
+ app_key_unsupported: "登録できるのは ES256(EC の P-256)、RS256(RSA)、ML-DSA-44 の署名用の公開鍵だけです",
728
791
  app_key_weak: "RSA の鍵は2048ビット以上にしてください",
729
792
  app_key_kid: "kid は1〜128文字の文字列にしてください",
730
793
  app_key_duplicate_kid: "同じ kid の鍵が複数あります",
794
+ channel_capabilities: "チャネルの能力は、種類の宣言の能力から1つ以上を選んでください",
795
+ channel_address: "アドレスは英小文字、数字、「.」「_」「-」のローカル部と、このプロジェクトで検証済みのドメインにしてください(アドレスを持つ種類だけ)",
796
+ channel_setting: "{key} はこの種類の設定にないか、値の形が合いません",
797
+ channel_kind: "チャネルの種類は、インストールしたアプリが宣言した種類にしてください(同じ種類を宣言したアプリが複数あれば installationId でアプリを選びます)",
731
798
  app_key_duplicate_key: "同じ鍵が複数あります(交換の鍵とアップロードの鍵には別の鍵を使ってください)",
732
799
  deploy_artifact: "成果物の形が正しくありません",
733
- deploy_artifact_required: "成果物(artifact)か、上げ直すバージョン(version)のどちらか1つを送ってください",
800
+ deploy_artifact_required: "成果物(artifact)を送ってください",
734
801
  deploy_secrets: "秘密の値(secrets)は名前から文字列への JSON のオブジェクトにしてください",
735
- deploy_version_not_found: "そのバージョンの成果物がありません",
736
802
  deploy_binding: "変数か秘密の値の名前か値を受け付けられません",
737
803
  artifact_too_large: "成果物が大きさの上限を超えています",
738
804
  artifact_format: "成果物の形ではありません(tunasand site で組んでください)",
@@ -747,37 +813,40 @@ const APPS = {
747
813
  binding_tunasand_value: "Tunasand の秘密の値か、それを含む値は使えません",
748
814
  binding_too_many: "変数と秘密の値と資源の数が上限を超えています"
749
815
  };
750
- /** 顧客(field・collection は表示名) */
751
- const CUSTOMERS = {
752
- customer_invalid_date: "日付は YYYY-MM-DD の実在する日",
753
- customer_no_target_collection: "権利の対象のコレクションがない(コレクションの「要る権利」の参照の項目が指すコレクション)",
754
- customer_no_target: "権利の対象のレコードがない",
755
- customer_ends_before_start: "終了日が開始日より前",
756
- customer_ends_required: "終了日の指定が要る(対象のコレクションに期間(月)の設定がないか、対象のレコードの値が空)",
757
- customer_months_invalid: "対象のレコードの期間(月)が1から1200の整数でない(直すか終了日を指定する)",
758
- customer_ends_unchecked: "終了日は対象の期間(月)で決まる(対象が同じ実行の前のレコードのため、テスト実行では未確認)",
759
- customer_no_provider: "設定にない発行者",
760
- customer_profile_collection: "プロフィールのコレクションは、一意の顧客への参照の項目を持つコレクション",
761
- customer_not_configured: "顧客の機能が有効でないか、本人の証明の発行者がありません。管理者が設定の顧客で設定してください。",
762
- customer_read_log_not_configured: "本人のレコードの読み取りを記録する場所がないため、使えません。運営者に連絡してください。",
763
- customer_version_too_long: "設問のバージョンは64文字まで",
764
- customer_id_shape: "{field}は顧客の ID",
765
- customer_missing: "{field}の顧客 {id} がない",
766
- customer_singleton: "{collection}の{field}(オブジェクト形式のコレクションの顧客フィールドは顧客の削除で扱えない。項目を外してから消す)",
767
- customer_cascade_other: "{collection}の{field}(cascade で消すレコードが、ほかの顧客を指す)",
768
- customer_cascade_vanished: "{collection}(計画の後に cascade で消すレコードが消えた。もう一度消す)",
769
- customer_erasure_confirm: "確認のため、本文 confirm に顧客の ID をもう一度入れる",
770
- customer_deletion_too_large: "消すレコードと書き換えるレコードとバージョン履歴が {count, number} 件で、1回の削除に収まらない(指すレコードを先に減らす)",
771
- customer_statements_too_large: "1回の削除の文が {count, number} 件で、上限を超える(指すレコードと顧客の記録を先に減らす)",
772
- customer_undeclared_on_delete: "{collection}の{field}(顧客が消えたときの扱い onDelete の設定がない。スキーマで設定してから消す)",
773
- consent_purpose: "目的は service・marketing か、顧客の設定で宣言した目的",
774
- consent_address: "宛先の形がチャネルに合わない(email はメールアドレス、sms は電話番号、line は userId)",
775
- consent_target: "email と sms は address が要る(line は customerId か address)",
816
+ /** エンドユーザー(field・collection は表示名) */
817
+ const END_USERS = {
818
+ end_user_invalid_date: "日付は YYYY-MM-DD の実在する日",
819
+ end_user_no_target_collection: "権利の対象のコレクションがない(コレクションの「要る権利」の参照の項目が指すコレクション)",
820
+ end_user_no_target: "権利の対象のレコードがない",
821
+ payment_reflection_mismatch: "決済の反映の値が、反映済みの購入か購読、または価格の種類と合わない",
822
+ payment_url_host: "戻り先の URL は、プロジェクトのサイトのホストにしてください",
823
+ end_user_ends_before_start: "終了日が開始日より前",
824
+ end_user_ends_required: "終了日の指定が要る(対象のコレクションに期間(月)の設定がないか、対象のレコードの値が空)",
825
+ end_user_months_invalid: "対象のレコードの期間(月)が1から1200の整数でない(直すか終了日を指定する)",
826
+ end_user_ends_unchecked: "終了日は対象の期間(月)で決まる(対象が同じ実行の前のレコードのため、テスト実行では未確認)",
827
+ end_user_no_provider: "設定にない発行者",
828
+ end_user_not_configured: "エンドユーザーの機能が有効でないか、本人の証明の発行者がありません。管理者が設定のエンドユーザーで設定してください。",
829
+ end_user_read_log_not_configured: "本人のレコードの読み取りを記録する場所がないため、使えません。運営者に連絡してください。",
830
+ end_user_version_too_long: "設問のバージョンは64文字まで",
831
+ end_user_id_shape: "{field}はエンドユーザーの ID",
832
+ end_user_missing: "{field}のエンドユーザー {id} がない",
833
+ end_user_singleton: "{collection}の{field}(オブジェクト形式のコレクションのエンドユーザーへの参照のフィールドはエンドユーザーの削除で扱えない。項目を外してから消す)",
834
+ end_user_cascade_other: "{collection}の{field}(cascade で消すレコードが、ほかのエンドユーザーを指す)",
835
+ cascade_vanished: "{collection}(計画の後に cascade で消すレコードが消えた。もう一度消す)",
836
+ end_user_erasure_confirm: "確認のため、本文 confirm にエンドユーザーの ID をもう一度入れる",
837
+ deletion_too_large: "消すレコードと書き換えるレコードとバージョン履歴が {count, number} 件で、1回の削除に収まらない(指すレコードを先に減らす)",
838
+ end_user_statements_too_large: "1回の削除の文が {count, number} 件で、上限を超える(指すレコードとエンドユーザーの記録を先に減らす)",
839
+ end_user_undeclared_on_delete: "{collection}の{field}(エンドユーザーが消えたときの扱い onDelete の設定がない。スキーマで設定してから消す)",
840
+ consent_purpose: "目的は service・marketing か、エンドユーザーの設定で宣言した目的",
841
+ consent_address: "宛先の形がチャネルに合わない(email はメールアドレス、sms は電話番号。チャネルの ID は宛先を持たない)",
842
+ consent_target: "email と sms は address が要り、チャネルの ID は end_user_id が要る",
843
+ consent_channel: "チャネルは email、sms か、このプロジェクトのチャネルの ID",
776
844
  consent_method: "出どころの種類で選べない取り方(アカウントは staff だけ)"
777
845
  };
778
846
  /** レコード(key は項目の key、labels は項目の表示名の並び、collection は表示名) */
779
847
  const RECORDS = {
780
848
  unfilterable_field: "{key}は絞り込みに使用できない項目",
849
+ undeclared_field: "{key}はコレクションにない項目",
781
850
  unwritable_field: "{key}はこの資格で見られない項目のため書けない(見える範囲)",
782
851
  self_unwritable: "{key}は本人が書けない項目",
783
852
  unique_part_required: "{key}は1人1行の組の項目のため必須",
@@ -787,17 +856,20 @@ const RECORDS = {
787
856
  record_no_review: "レビューなしのコレクション",
788
857
  generated_slug: "このコレクションのスラッグは CMS が振るため指定できない",
789
858
  unique_taken: "{labels}が同じレコードがすでにある",
859
+ transition_not_allowed: "{from}から{to}へは変更できない",
860
+ transition_create_not_allowed: "{to}で作成できない",
790
861
  unique_duplicates: "{collection}に{labels}が同じレコードが{count, number}件ある(重複を直してから一意にする)",
791
862
  publish_check_unavailable: "公開の前の検査 {check} を提供するアプリがオンでない",
792
- capability_missing: "{collection}の宣言に要る能力 {capability} を置き場所が持たない",
863
+ table_field_limit: "{collection}のフィールドは{max}個まで(今は{fields}個)",
793
864
  use_at: "{collection}の{field}{rest, select, none {} other {({rest})}}",
865
+ file_missing: "画像かファイル {id} がない(削除済みか、存在しない)",
794
866
  public_in_private_field: "非公開のファイルだけの項目に公開の画像やファイルがある(この項目からアップロードし直す)"
795
867
  };
796
868
  /** ゴミ箱から戻せない理由の名前(reason は問題) */
797
869
  const TRASH = {
798
870
  trash_record: "{collection}のレコード {id}",
799
871
  trash_unique_holder: "{collection}のレコード({reason})",
800
- trash_customer_missing: "{collection}の{field}が指す顧客 {id}(顧客がない)"
872
+ trash_end_user_missing: "{collection}の{field}が指すエンドユーザー {id}(エンドユーザーがない)"
801
873
  };
802
874
  /** スキーマ・設定・アプリ(parts は設定の部分の id: general・body・schema) */
803
875
  const SETTINGS = {
@@ -817,14 +889,16 @@ const SETTINGS = {
817
889
  const SETTING_VALUES = {
818
890
  setting_text: "「{field}」に文字列を入力してください。",
819
891
  setting_integer_min: "「{field}」は{min, number}以上の整数にしてください。",
892
+ setting_integer_max: "「{field}」は{max, number}以下の整数にしてください。",
820
893
  setting_boolean: "「{field}」はオンかオフで指定してください。",
821
894
  setting_text_list: "「{field}」は文字列の一覧にしてください。",
822
895
  setting_choice: "「{field}」は次から選んでください: {choices}",
823
896
  setting_duplicate: "「{field}」の「{value}」が重なっています。",
824
897
  setting_required: "「{field}」を1つ以上指定してください。",
825
- setting_shape: "「{field}」の形が正しくありません。"
898
+ setting_shape: "「{field}」の形が正しくありません。",
899
+ setting_row_text: "「{field}」の{row, number}行目の「{sub}」を入力してください。"
826
900
  };
827
- /** コンテンツと顧客の取り込み(problem は値の問題、ids は ID の並び) */
901
+ /** コンテンツとエンドユーザーの取り込み(problem は値の問題、ids は ID の並び) */
828
902
  const TRANSFER = {
829
903
  unmapped_rows: "コレクション {collection} に対応表の前に取り込んだ同じ ID のレコード({ids}{more, plural, =0 {} other { ほか#件}})があり、取り込めない(対応表の前に取り込んだプロジェクトには取り込み直さない)",
830
904
  screens_shape: "画面の設定の形が不正",
@@ -844,14 +918,15 @@ const TRANSFER = {
844
918
  import_map_closed: "対応表の行が削除中か墓標",
845
919
  import_map_no_key: "対応表の鍵を開けない(別のプロジェクトの DB をコピーした)",
846
920
  import_map_raced: "同時の取り込みか人の編集で、対応表かレコードが先に変わった",
921
+ import_map_held: "ほかの持ち主がレコードを占有している",
847
922
  import_duplicate_identity: "同じ紐付けが複数",
848
- import_duplicate_grant: "同じ権利(対象のコレクションと対象のレコード、または key)が複数",
849
- import_grant_target_changed: "取り込んだ権利の対象は変えられない(key を変えて別の権利にする)",
850
- import_identity_taken: "{customer, select, none {紐付けがほかの顧客にある} other {紐付けがほかの顧客 {customer} にある}}",
851
- import_closed_in_conflict: "取り出し元の退会だけを当てた(ほかは衝突で書かない)",
852
- import_closes_in_conflict: "取り出し元の退会だけを当てる予定(ほかは衝突で書かない)",
923
+ import_duplicate_entitlement: "同じ権利(対象のコレクションと対象のレコード、または key)が複数",
924
+ import_entitlement_target_changed: "取り込んだ権利の対象は変えられない(key を変えて別の権利にする)",
925
+ import_identity_taken: "{endUser, select, none {紐付けがほかのエンドユーザーにある} other {紐付けがほかのエンドユーザー {endUser} にある}}",
926
+ import_suspended_in_conflict: "取り出し元の停止だけを当てた(ほかは衝突で書かない)",
927
+ import_suspends_in_conflict: "取り出し元の停止だけを当てる予定(ほかは衝突で書かない)",
853
928
  import_overwritten: "取り込みの後の変更を、取り出し元の値で上書きした",
854
- import_overwrite_note: "上書き(overwrite)の顧客がいるときは理由 note が必要",
929
+ import_overwrite_note: "上書き(overwrite)のエンドユーザーがいるときは理由 note が必要",
855
930
  import_file_not_stored: "同じ内容の画像かファイルが保存されていない",
856
931
  import_file_failed: "{reason, select, forbidden {画像とファイルを作成する権限がない} https_required {https の URL だけ} upstream_failed {取得できない} unsupported_image {対応していない画像の形式(PNG・JPEG・GIF・WebP)} unsupported_file {対応していないファイルの形式} file_too_large {大きさの上限を超える} other {取り込めない}}",
857
932
  import_phase_unpublishable: "コレクションどうしの循環のステップは編集機能を持つコレクションだけ(1段目を下書きで作るため)"
@@ -872,19 +947,24 @@ const IMPORT_KINDS = {
872
947
  import_kind_origin_missing: "元の ID を対応表で引けない",
873
948
  import_kind_map_conflict: "対応表と行が合わない(取り込みの後に変わった・消えた)",
874
949
  import_kind_map_unavailable: "対応表の鍵がない(SECRETS_KEY なし)",
875
- import_kind_identity_taken: "紐付けがほかの顧客にある"
950
+ import_kind_identity_taken: "紐付けがほかのエンドユーザーにある"
876
951
  };
877
952
  /** 配信 API の入力(max は上限、path・token・key・name・op・raw は要求の中の値) */
878
953
  const DELIVERY = {
879
954
  delivery_path_count: "path は1〜{max, number}件",
880
955
  delivery_path_format: "path は / で始まる配信 API の中のパス: {path}",
881
956
  delivery_path_bundle: "path に一式は指定不可",
882
- delivery_path_route_checked: "path に顧客の API は指定不可",
957
+ delivery_path_route_checked: "path にエンドユーザーの API は指定不可",
883
958
  delivery_path_wildcard: "path の * は1つまで: {path}",
884
959
  delivery_expanded_max: "展開の後の経路は{max, number}件まで",
885
960
  delivery_limit_range: "limit は1〜{max, number}の整数",
886
961
  delivery_since_invalid: "since が不正(前回の API レスポンスの next)",
887
962
  delivery_at_format: "at は ISO 8601 の日時",
963
+ read_token_expiry: "expiresAt は今より後で、{max, number}日以内の日時",
964
+ delivery_at_past: "at は今以後の日時",
965
+ delivery_perspective_value: "perspective は published か latest",
966
+ delivery_perspective_combined: "perspective=latest・revision・at は1つだけ",
967
+ delivery_revision_list: "revision は1件の経路だけ",
888
968
  delivery_singleton_list: "1件だけのコレクションに一覧の指定は不可",
889
969
  delivery_fields_empty: "fields は空でない項目をコンマ区切り",
890
970
  delivery_expand_depth: "展開の深さは{max, number}まで: {token}",
@@ -894,13 +974,14 @@ const DELIVERY = {
894
974
  delivery_field_not_expandable: "展開できない項目: {key}",
895
975
  delivery_expanded_not_selectable: "展開先のコレクション {collection} で選択できない項目: {key}",
896
976
  delivery_single: "{name} は1つだけ",
977
+ reference_single: "{field}は1件だけ",
897
978
  delivery_op_planned: "未実装の演算: {op}",
898
979
  delivery_filter_format: "絞り込みは filter[key] か filter[key][演算]",
899
980
  delivery_filter_nested_planned: "未実装の絞り込み: まとまりの中の項目 {key}",
900
981
  delivery_field_not_filterable: "絞り込みできない項目: {key}",
901
982
  delivery_op_not_allowed: "項目 {key} に使用できない演算: {op}",
902
983
  delivery_filter_value: "項目 {key} の値が不正: {raw}",
903
- delivery_ids_format: "ids は空でない id をコンマ区切りで{max, number}個まで",
984
+ delivery_ids_format: "ids は空でない id をパラメーターの繰り返しで{max, number}個まで",
904
985
  delivery_offset_planned: "未実装の指定: offset(ページ送りは cursor)",
905
986
  delivery_order_max: "並べ替えの key は{max, number}個まで",
906
987
  delivery_field_not_sortable: "並べ替えできない項目: {name}",
@@ -918,7 +999,8 @@ const FORMS = {
918
999
  form_invalid_choice: "選択肢にない値",
919
1000
  form_too_many: "{max, number}個まで",
920
1001
  form_too_few: "{min, number}個以上",
921
- form_unknown_form: "フォームの名前が違う"
1002
+ form_unknown_form: "フォームの名前が違う",
1003
+ form_unwritable: "{key}は送信できない項目"
922
1004
  };
923
1005
  /** 連携(Webhook・外部関数・画面・API の鍵)と、外部関数の検査を完了できない理由(failure は失敗の理由: 問題か HTTP の状態などの文) */
924
1006
  const INTEGRATIONS = {
@@ -947,7 +1029,7 @@ const API_ISSUE_MESSAGES = {
947
1029
  ...INPUT,
948
1030
  ...ACCOUNTS,
949
1031
  ...APPS,
950
- ...CUSTOMERS,
1032
+ ...END_USERS,
951
1033
  ...RECORDS,
952
1034
  ...TRASH,
953
1035
  ...SETTINGS,
@@ -970,7 +1052,7 @@ const API_ISSUE_MESSAGES_EN = {
970
1052
  slug_uuid: "Slug must not be in UUID form",
971
1053
  url_format: "Invalid URL",
972
1054
  infra_id: "Invalid ID (26 lowercase letters and digits)",
973
- infra_id_uuid: "UUID-form IDs are not accepted (26 lowercase letters and digits)",
1055
+ uuid_not_accepted: "UUID-form IDs are not accepted (26 lowercase letters and digits)",
974
1056
  https_only: "Only https URLs are allowed",
975
1057
  body_not_json: "The request body is not JSON",
976
1058
  email_format: "Invalid email address",
@@ -984,7 +1066,12 @@ const API_ISSUE_MESSAGES_EN = {
984
1066
  app_namespace: "The namespace must be 3 to 32 lowercase letters and digits, starting with a letter",
985
1067
  app_namespace_taken: "This namespace is already taken (namespaces cannot be reused)",
986
1068
  app_no_organization: "Apps cannot be registered in a project that is not linked to a organization",
987
- app_slots: "Choose the collections to embed into (embeds that need a body require a collection with a body field)",
1069
+ app_collections: "Choose the existing collections to map and the fields to map (each field must have the same type; unmapped fields are added by the installation, so map any field that already uses the same key)",
1070
+ channel_capabilities: "Choose one or more channel capabilities from the kind declaration",
1071
+ channel_address: "Use a local part of lowercase letters, digits, \".\", \"_\" and \"-\" on a domain verified in this project (only for kinds with addresses)",
1072
+ channel_setting: "{key} is not a setting of this kind or has an invalid value",
1073
+ channel_kind: "Use a channel kind declared by an installed app (choose the app with installationId when several apps declare the kind)",
1074
+ app_slugs: "A collection slug of the app is taken or invalid. Specify the slugs",
988
1075
  app_not_installable: "This app cannot be installed (only apps of your own organization and reviewed apps)",
989
1076
  app_no_registration: "Apps cannot be added to this project",
990
1077
  app_changed: "The app version or capabilities changed after you reviewed them. Review them again",
@@ -992,15 +1079,14 @@ const API_ISSUE_MESSAGES_EN = {
992
1079
  app_incompatible: "Incompatible change within the same major version. Bump the major version or revert the change",
993
1080
  app_incompatible_detail: "Incompatible change within the same major version. Bump the major version or revert the change ({detail})",
994
1081
  app_key_private: "Keys with private parts (such as d) cannot be registered. Send only the public key",
995
- app_key_unsupported: "Only ES256 (EC P-256) or RS256 (RSA) public signing keys can be registered",
1082
+ app_key_unsupported: "Only ES256 (EC P-256), RS256 (RSA) or ML-DSA-44 public signing keys can be registered",
996
1083
  app_key_weak: "RSA keys must be at least 2048 bits",
997
1084
  app_key_kid: "kid must be a string of 1 to 128 characters",
998
1085
  app_key_duplicate_kid: "Multiple keys share the same kid",
999
1086
  app_key_duplicate_key: "The same key appears more than once (use different keys for exchange and upload)",
1000
1087
  deploy_artifact: "The artifact is malformed",
1001
- deploy_artifact_required: "Send exactly one of artifact or version (to redeploy)",
1088
+ deploy_artifact_required: "Send the artifact (artifact)",
1002
1089
  deploy_secrets: "secrets must be a JSON object from names to strings",
1003
- deploy_version_not_found: "No artifact exists for that version",
1004
1090
  deploy_binding: "A variable or secret name or value is not accepted",
1005
1091
  artifact_too_large: "The artifact exceeds the size limit",
1006
1092
  artifact_format: "Not an artifact (build it with tunasand site)",
@@ -1014,34 +1100,37 @@ const API_ISSUE_MESSAGES_EN = {
1014
1100
  binding_duplicate_name: "The same name is used by a variable and a secret",
1015
1101
  binding_tunasand_value: "Tunasand secrets, or values containing them, cannot be used",
1016
1102
  binding_too_many: "Too many variables, secrets and resources",
1017
- customer_invalid_date: "The date must be a real day in YYYY-MM-DD",
1018
- customer_no_target_collection: "The grant target collection does not exist (the collection referenced by a collection’s required grant field)",
1019
- customer_no_target: "The grant target record does not exist",
1020
- customer_ends_before_start: "The end date is before the start date",
1021
- customer_ends_required: "An end date is required (the target collection has no period in months, or the target record has no value)",
1022
- customer_months_invalid: "The target record’s period in months is not an integer from 1 to 1200 (fix it or specify an end date)",
1023
- customer_ends_unchecked: "The end date follows the target’s period in months (not checked in a test run because the target is an earlier record of the same run)",
1024
- customer_no_provider: "The issuer is not in the settings",
1025
- customer_profile_collection: "The profile collection must have a unique reference field to customers",
1026
- customer_not_configured: "enabling customers, or an identity issuer",
1027
- customer_read_log_not_configured: "storage for the log of reads of personal records",
1028
- customer_version_too_long: "The question version must be at most 64 characters",
1029
- customer_id_shape: "{field} must be a customer ID",
1030
- customer_missing: "Customer {id} of {field} does not exist",
1031
- customer_singleton: "{field} of {collection} (customer fields of object-format collections cannot be handled by customer deletion; remove the field first)",
1032
- customer_cascade_other: "{field} of {collection} (a record deleted by cascade points to another customer)",
1033
- customer_cascade_vanished: "{collection} (a record to delete by cascade disappeared after planning; delete again)",
1034
- customer_erasure_confirm: "For confirmation, enter the customer ID again in confirm",
1035
- customer_deletion_too_large: "{count, number} records, rewritten records and revisions do not fit in one deletion (reduce the referencing records first)",
1036
- customer_statements_too_large: "{count, number} statements exceed the limit for one deletion (reduce the referencing records and customer data first)",
1037
- customer_undeclared_on_delete: "{field} of {collection} (onDelete for deleted customers is not set; set it in the schema first)",
1038
- consent_purpose: "The purpose must be service, marketing, or a purpose declared in the customer settings",
1039
- consent_address: "The address does not match the channel (email address for email, phone number for sms, userId for line)",
1040
- consent_target: "email and sms require address (line requires customerId or address)",
1103
+ end_user_invalid_date: "The date must be a real day in YYYY-MM-DD",
1104
+ end_user_no_target_collection: "The entitlement target collection does not exist (the collection referenced by a collection’s required entitlement field)",
1105
+ end_user_no_target: "The entitlement target record does not exist",
1106
+ payment_reflection_mismatch: "The payment reflection does not match the reflected purchase or subscription, or the price kind",
1107
+ payment_url_host: "The return URL must be on a host of the project site",
1108
+ end_user_ends_before_start: "The end date is before the start date",
1109
+ end_user_ends_required: "An end date is required (the target collection has no period in months, or the target record has no value)",
1110
+ end_user_months_invalid: "The target record’s period in months is not an integer from 1 to 1200 (fix it or specify an end date)",
1111
+ end_user_ends_unchecked: "The end date follows the target’s period in months (not checked in a test run because the target is an earlier record of the same run)",
1112
+ end_user_no_provider: "The issuer is not in the settings",
1113
+ end_user_not_configured: "enabling end users, or an identity issuer",
1114
+ end_user_read_log_not_configured: "storage for the log of reads of personal records",
1115
+ end_user_version_too_long: "The question version must be at most 64 characters",
1116
+ end_user_id_shape: "{field} must be an end user ID",
1117
+ end_user_missing: "End user {id} of {field} does not exist",
1118
+ end_user_singleton: "{field} of {collection} (end user fields of object-format collections cannot be handled by end user deletion; remove the field first)",
1119
+ end_user_cascade_other: "{field} of {collection} (a record deleted by cascade points to another end user)",
1120
+ cascade_vanished: "{collection} (a record to delete by cascade disappeared after planning; delete again)",
1121
+ end_user_erasure_confirm: "For confirmation, enter the end user ID again in confirm",
1122
+ deletion_too_large: "{count, number} records, rewritten records and revisions do not fit in one deletion (reduce the referencing records first)",
1123
+ end_user_statements_too_large: "{count, number} statements exceed the limit for one deletion (reduce the referencing records and end user data first)",
1124
+ end_user_undeclared_on_delete: "{field} of {collection} (onDelete for deleted end users is not set; set it in the schema first)",
1125
+ consent_purpose: "The purpose must be service, marketing, or a purpose declared in the end user settings",
1126
+ consent_address: "The address does not match the channel (email address for email, phone number for sms; channel IDs take no address)",
1127
+ consent_target: "email and sms require address; channel IDs require end_user_id",
1128
+ consent_channel: "The channel must be email, sms, or the ID of a channel in this project",
1041
1129
  consent_method: "This method is not available for the source kind (account is staff only)",
1042
1130
  unfilterable_field: "{key} cannot be used as a filter",
1131
+ undeclared_field: "{key} is not a field of the collection",
1043
1132
  unwritable_field: "{key} cannot be written because it is not visible to this credential (visibility)",
1044
- self_unwritable: "{key} cannot be written by the customer",
1133
+ self_unwritable: "{key} cannot be written by the end user",
1045
1134
  unique_part_required: "{key} is required because it is part of a one-row-per-person key",
1046
1135
  reference_unavailable: "The reference of {key} cannot be chosen (published records only)",
1047
1136
  request_reject_note_required: "A rejection reason is required",
@@ -1049,14 +1138,17 @@ const API_ISSUE_MESSAGES_EN = {
1049
1138
  record_no_review: "This collection has no review",
1050
1139
  generated_slug: "Slugs in this collection are assigned by the CMS and cannot be specified",
1051
1140
  unique_taken: "A record with the same {labels} already exists",
1141
+ transition_not_allowed: "Cannot change from {from} to {to}",
1142
+ transition_create_not_allowed: "Cannot create with {to}",
1052
1143
  unique_duplicates: "{count, number} records in {collection} share the same {labels} (fix the duplicates before making it unique)",
1053
1144
  publish_check_unavailable: "No enabled app provides the publish check {check}",
1054
- capability_missing: "The storage of {collection} lacks the capability {capability} that its declaration needs",
1145
+ table_field_limit: "{collection} can have at most {max} fields (now {fields})",
1055
1146
  use_at: "{field}{rest, select, none {} other { ({rest})}} of {collection}",
1147
+ file_missing: "Image or file {id} does not exist (it was deleted or never existed)",
1056
1148
  public_in_private_field: "A field for private media only contains public images or files (upload them again from this field)",
1057
1149
  trash_record: "record {id} of {collection}",
1058
1150
  trash_unique_holder: "a record of {collection} ({reason})",
1059
- trash_customer_missing: "customer {id} referenced by {field} of {collection} (the customer does not exist)",
1151
+ trash_end_user_missing: "end user {id} referenced by {field} of {collection} (the end user does not exist)",
1060
1152
  renamed_replacement: "Save the replacement of options of a collection whose id changes separately from the id change",
1061
1153
  project_name_required: "Project name is required",
1062
1154
  project_slug_invalid: "Use lowercase letters, digits and hyphens; ID-shaped slugs are not allowed",
@@ -1070,12 +1162,14 @@ const API_ISSUE_MESSAGES_EN = {
1070
1162
  config_missing: "Settings are missing from the DB of project {id} ({parts}; apply the project template).",
1071
1163
  setting_text: "Enter text for \"{field}\".",
1072
1164
  setting_integer_min: "\"{field}\" must be an integer of at least {min, number}.",
1165
+ setting_integer_max: "\"{field}\" must be an integer of at most {max, number}.",
1073
1166
  setting_boolean: "\"{field}\" must be on or off.",
1074
1167
  setting_text_list: "\"{field}\" must be a list of strings.",
1075
1168
  setting_choice: "\"{field}\" must be one of: {choices}",
1076
1169
  setting_duplicate: "\"{value}\" in \"{field}\" is duplicated.",
1077
1170
  setting_required: "Specify at least one \"{field}\".",
1078
1171
  setting_shape: "\"{field}\" is malformed.",
1172
+ setting_row_text: "Enter \"{sub}\" in row {row, number} of \"{field}\".",
1079
1173
  unmapped_rows: "Collection {collection} has records with the same IDs imported before the import map ({ids}{more, plural, =0 {} other { and # more}}), so they cannot be imported (projects imported before the map are not reimported)",
1080
1174
  screens_shape: "The screen settings are malformed",
1081
1175
  reimport_unknown: "This environment has no import map for source {source}, so it is not reimported (reimport only into environments moved from the same source)",
@@ -1094,14 +1188,15 @@ const API_ISSUE_MESSAGES_EN = {
1094
1188
  import_map_closed: "The import map row is being deleted or is a tombstone",
1095
1189
  import_map_no_key: "Cannot open the import map key (the DB was copied from another project)",
1096
1190
  import_map_raced: "The import map or record changed first, by a concurrent import or an edit",
1191
+ import_map_held: "Another holder holds the record",
1097
1192
  import_duplicate_identity: "The same identity appears more than once",
1098
- import_duplicate_grant: "The same grant (target collection and record, or key) appears more than once",
1099
- import_grant_target_changed: "The target of an imported grant cannot change (use another key for a different grant)",
1100
- import_identity_taken: "{customer, select, none {The identity belongs to another customer} other {The identity belongs to another customer {customer}}}",
1101
- import_closed_in_conflict: "Applied only the closure from the source (other changes are not written because of the conflict)",
1102
- import_closes_in_conflict: "Will apply only the closure from the source (other changes are not written because of the conflict)",
1193
+ import_duplicate_entitlement: "The same entitlement (target collection and record, or key) appears more than once",
1194
+ import_entitlement_target_changed: "The target of an imported entitlement cannot change (use another key for a different entitlement)",
1195
+ import_identity_taken: "{endUser, select, none {The identity belongs to another end user} other {The identity belongs to another end user {endUser}}}",
1196
+ import_suspended_in_conflict: "Applied only the suspension from the source (other changes are not written because of the conflict)",
1197
+ import_suspends_in_conflict: "Will apply only the suspension from the source (other changes are not written because of the conflict)",
1103
1198
  import_overwritten: "Changes after the import were overwritten with the source values",
1104
- import_overwrite_note: "A reason note is required when customers are overwritten (overwrite)",
1199
+ import_overwrite_note: "A reason note is required when end users are overwritten (overwrite)",
1105
1200
  import_file_not_stored: "No stored image or file has the same content",
1106
1201
  import_file_failed: "{reason, select, forbidden {No permission to create images and files} https_required {Only https URLs are allowed} upstream_failed {Could not fetch it} unsupported_image {Unsupported image format (PNG, JPEG, GIF, WebP)} unsupported_file {Unsupported file format} file_too_large {Exceeds the size limit} other {Cannot be imported}}",
1107
1202
  import_phase_unpublishable: "Steps of a cycle between collections require collections with editing (the first step creates drafts)",
@@ -1138,16 +1233,21 @@ const API_ISSUE_MESSAGES_EN = {
1138
1233
  import_kind_origin_missing: "Source ID not found in the import map",
1139
1234
  import_kind_map_conflict: "Row does not match the import map (changed or removed after import)",
1140
1235
  import_kind_map_unavailable: "No key for the import map (SECRETS_KEY missing)",
1141
- import_kind_identity_taken: "The identity belongs to another customer",
1236
+ import_kind_identity_taken: "The identity belongs to another end user",
1142
1237
  delivery_path_count: "path must have 1 to {max, number} entries",
1143
1238
  delivery_path_format: "path must be a delivery API path starting with /: {path}",
1144
1239
  delivery_path_bundle: "path cannot include the bundle",
1145
- delivery_path_route_checked: "path cannot include the customer API",
1240
+ delivery_path_route_checked: "path cannot include the end user API",
1146
1241
  delivery_path_wildcard: "path can have at most one *: {path}",
1147
1242
  delivery_expanded_max: "At most {max, number} routes after expansion",
1148
1243
  delivery_limit_range: "limit must be an integer from 1 to {max, number}",
1149
1244
  delivery_since_invalid: "Invalid since (use next from the previous response)",
1150
1245
  delivery_at_format: "at must be an ISO 8601 date-time",
1246
+ read_token_expiry: "expiresAt must be a future date-time within {max, number} days",
1247
+ delivery_at_past: "at must not be in the past",
1248
+ delivery_perspective_value: "perspective must be published or latest",
1249
+ delivery_perspective_combined: "Use only one of perspective=latest, revision and at",
1250
+ delivery_revision_list: "revision is only for a single record",
1151
1251
  delivery_singleton_list: "A single-record collection cannot be listed",
1152
1252
  delivery_fields_empty: "fields must be comma-separated non-empty fields",
1153
1253
  delivery_expand_depth: "Expansion depth is at most {max, number}: {token}",
@@ -1157,13 +1257,14 @@ const API_ISSUE_MESSAGES_EN = {
1157
1257
  delivery_field_not_expandable: "Field cannot be expanded: {key}",
1158
1258
  delivery_expanded_not_selectable: "Field cannot be selected in the expanded collection {collection}: {key}",
1159
1259
  delivery_single: "{name} can be given only once",
1260
+ reference_single: "{field} takes only one record",
1160
1261
  delivery_op_planned: "Not implemented operator: {op}",
1161
1262
  delivery_filter_format: "Filters are filter[key] or filter[key][operator]",
1162
1263
  delivery_filter_nested_planned: "Not implemented filter: field inside a group {key}",
1163
1264
  delivery_field_not_filterable: "Field cannot be filtered: {key}",
1164
1265
  delivery_op_not_allowed: "Operator not allowed for field {key}: {op}",
1165
1266
  delivery_filter_value: "Invalid value for field {key}: {raw}",
1166
- delivery_ids_format: "ids must be up to {max, number} comma-separated non-empty ids",
1267
+ delivery_ids_format: "ids must be up to {max, number} non-empty ids, one per repeated parameter",
1167
1268
  delivery_offset_planned: "Not implemented: offset (use cursor for paging)",
1168
1269
  delivery_order_max: "At most {max, number} sort keys",
1169
1270
  delivery_field_not_sortable: "Field cannot be sorted: {name}",
@@ -1178,16 +1279,17 @@ const API_ISSUE_MESSAGES_EN = {
1178
1279
  form_invalid_choice: "Not one of the choices",
1179
1280
  form_too_many: "At most {max, number} choices",
1180
1281
  form_too_few: "At least {min, number} choices",
1181
- form_unknown_form: "Unknown form name"
1282
+ form_unknown_form: "Unknown form name",
1283
+ form_unwritable: "{key} cannot be submitted"
1182
1284
  };
1183
1285
  // ../contract/src/problems.ts
1184
1286
  const PROBLEM_MESSAGES = {
1185
- ...BODY_PROBLEM_MESSAGES,
1287
+ ...RICH_TEXT_PROBLEM_MESSAGES,
1186
1288
  ...SCHEMA_PROBLEM_MESSAGES,
1187
1289
  ...API_ISSUE_MESSAGES
1188
1290
  };
1189
1291
  const PROBLEM_MESSAGES_EN = {
1190
- ...BODY_PROBLEM_MESSAGES_EN,
1292
+ ...RICH_TEXT_PROBLEM_MESSAGES_EN,
1191
1293
  ...SCHEMA_PROBLEM_MESSAGES_EN,
1192
1294
  ...API_ISSUE_MESSAGES_EN
1193
1295
  };
@@ -1258,11 +1360,16 @@ const ERROR_MESSAGES = {
1258
1360
  external_function: "カスタム検証",
1259
1361
  external_screen: "カスタム画面",
1260
1362
  api_key: "API キー",
1261
- preview: "プレビューの署名シークレット",
1363
+ read_token: "読み取りのトークン",
1364
+ mail_domain: "送信のドメイン",
1365
+ channel: "チャネル",
1366
+ channel_address: "チャネルのアドレス",
1262
1367
  trash: "ゴミ箱",
1263
- customer: "顧客",
1264
- customer_identity: "顧客の結び付け",
1265
- customer_grant: "顧客の権利",
1368
+ end_user: "エンドユーザー",
1369
+ end_user_identity: "エンドユーザーの結び付け",
1370
+ entitlement: "エンドユーザーの権利",
1371
+ offer: "オファー",
1372
+ price: "価格",
1266
1373
  app: "アプリ",
1267
1374
  installation: "インストール",
1268
1375
  invitation: "招待",
@@ -1271,8 +1378,8 @@ const ERROR_MESSAGES = {
1271
1378
  /** コードごとの文 */
1272
1379
  codes: {
1273
1380
  invalid_input: "入力に誤りがあります。内容を確かめて直してください。",
1274
- infra_id_uuid: "ID の形が違います。UUID ではなく、英小文字と数字の26文字の ID を指定してください。",
1275
- submit_unmet: "レビューを依頼する条件を満たしていません。各フィールドの理由を確かめて直してください。",
1381
+ uuid_not_accepted: "ID の形が違います。UUID ではなく、英小文字と数字の26文字の ID を指定してください。",
1382
+ transition_unmet: "レビューを依頼する条件を満たしていません。各フィールドの理由を確かめて直してください。",
1276
1383
  publish_unmet: "公開の条件を満たしていません。各フィールドの理由を確かめて直してください。",
1277
1384
  save_unmet: "保存の条件を満たしていません。各フィールドの理由を確かめて直してください。",
1278
1385
  version_required: "元にしたバージョン(version)が必要です。画面を読み込み直してから、もう一度保存してください。",
@@ -1287,8 +1394,8 @@ const ERROR_MESSAGES = {
1287
1394
  invalid_mcp_token: "MCP からの呼び出しを確認できません。AI のコネクタから接続し直してください。",
1288
1395
  mcp_signature_invalid: "MCP のサーバーからの呼び出しを確認できません。運営者に連絡してください。",
1289
1396
  invalid_account_token: "アプリのアカウントの資格のトークンが無効です。画面のトークンで替え直してください。",
1290
- preview_token_required: "下書きの取得にはプレビューの署名が必要です。設定のプレビューとデプロイで、署名シークレットをサイトに設定してください。",
1291
- invalid_preview_token: "プレビューの署名が一致しません。設定のプレビューとデプロイで、サイトの署名シークレットが今のものか確かめてください。",
1397
+ read_token_required: "公開していない版の取得には、未公開の読み取りの権限を持つ API キー、読み取りのトークン、読む版の選択のチケットのどれかが必要です。",
1398
+ invalid_read_token: "読み取りのトークンかチケットが無効か、期限が切れています。設定の配信で、有効なトークンか確かめてください。",
1292
1399
  api_key_required: "API キーが必要です。リクエストの Authorization: Bearer に API キーを付けてください。",
1293
1400
  invalid_api_key: "API キーが無効です。設定の API キーで、失効していないキーを確かめてください。",
1294
1401
  invalid_id_token: "ID トークンが無効です。取り直してから送ってください。",
@@ -1301,36 +1408,36 @@ const ERROR_MESSAGES = {
1301
1408
  operator_read_only: "サポートのアクセスの許可が閲覧だけのため、変更できません。変更が要るときは、プロジェクトの管理者に許可の範囲の変更を依頼してください。",
1302
1409
  not_trial: "検証用のフラグのプロジェクトだけの操作です。",
1303
1410
  not_live: "本番の環境だけでできる操作です。本番の環境のワークスペースから操作してください。",
1304
- operator_closed: "サポートのアクセスでは変更できない操作です(アカウント、ロール、連携、アプリ、顧客の ID、許可など)。プロジェクトの管理者に依頼してください。",
1411
+ operator_closed: "サポートのアクセスでは変更できない操作です(アカウント、ロール、連携、アプリ、エンドユーザーの ID、許可など)。プロジェクトの管理者に依頼してください。",
1305
1412
  forbidden: "{target, select, none {この操作の権限がありません。} other {{target}のこの操作の権限がありません。}}必要なときは、管理者にロールの見直しを依頼してください。",
1306
- editorial_only: "{target, select, none {対象} other {{target}}}は、公開の権限があるアカウントだけが作成できます。公開の権限があるメンバーに作成を依頼してください。",
1413
+ create_requires_publish: "{target, select, none {対象} other {{target}}}は、公開の権限があるアカウントだけが作成できます。公開の権限があるメンバーに作成を依頼してください。",
1307
1414
  no_linked_record: "{name}が結び付いていないアカウントは操作できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。",
1308
1415
  own_only: "自分の{target, select, none {もの} other {{target}}}だけを操作できます。",
1309
1416
  not_visible: "ほかの人の公開前の{target, select, none {対象} other {{target}}}は閲覧できません。",
1310
- published_admin_only: "公開中のレコードの編集には、公開の権限が必要です。公開の権限があるメンバーに編集を依頼してください。",
1417
+ edit_requires_publish: "公開中のレコードの編集には、公開の権限が必要です。公開の権限があるメンバーに編集を依頼してください。",
1311
1418
  cannot_remove_self: "自分を結び付きから外すことはできません。ほかの管理者に依頼してください。",
1312
1419
  cannot_change_owner: "本人を示すフィールドの値は変更できません。",
1313
1420
  not_found: "{target, select, none {対象} other {{target}}}が見つかりません。削除された可能性があります。画面を読み込み直してください。",
1314
1421
  method_not_allowed: "この経路はこのメソッドを受け付けません。",
1315
- customer_not_linked: "このアカウントに結び付く顧客がいません。管理者に、顧客とアカウントの結び付けを依頼してください。",
1316
- customer_pending: "このアカウントの結び付けは、運営の確認の後に使えます。確認が終わるまでお待ちください。",
1317
- in_use: "{by, select, uses {{count, number}件で使用中のため、削除できません。} places {{count, number}か所で使用中のため、削除できません。} outputs {{count, number}件の企画の成果物で使用中のため、削除できません。} record {{name, select, none {ほかの内容} other {{name}}}で使用中のため、削除できません。} writers {{count, number}件のレコードに結び付いているため、削除できません。} customers {{count, number}件のレコードが所属しているため、削除できません。} accounts {{count, number}件のアカウントがこのロールのため、削除できません。} app {{count, number}件の{name, select, none {アプリのデータ} other {{name}}}から参照されているため、削除できません。} other {使用中のため、削除できません。}}使っている所から外してから、もう一度削除してください。",
1422
+ end_user_not_linked: "このアカウントに結び付くエンドユーザーがいません。管理者に、エンドユーザーとアカウントの結び付けを依頼してください。",
1423
+ end_user_pending: "このアカウントの結び付けは、運営の確認の後に使えます。確認が終わるまでお待ちください。",
1424
+ in_use: "{by, select, uses {{count, number}件で使用中のため、削除できません。} places {{count, number}か所で使用中のため、削除できません。} outputs {{count, number}件の企画の成果物で使用中のため、削除できません。} record {{name, select, none {ほかの内容} other {{name}}}で使用中のため、削除できません。} writers {{count, number}件のレコードに結び付いているため、削除できません。} end_users {{count, number}件のレコードが所属しているため、削除できません。} accounts {{count, number}件のアカウントがこのロールのため、削除できません。} app {{count, number}件の{name, select, none {アプリのデータ} other {{name}}}から参照されているため、削除できません。} other {使用中のため、削除できません。}}使っている所から外してから、もう一度削除してください。",
1318
1425
  duplicate_name: "同じ名前がすでにあります。別の名前を付けてください。",
1319
1426
  duplicate_email: "同じメールアドレスのアカウントがすでにあります。一覧のそのアカウントを編集してください。",
1320
1427
  duplicate_id: "この ID はすでに使用されています。別の ID を指定してください。",
1321
1428
  duplicate_slug: "このスラッグはすでに使用されています。別のスラッグを指定してください。",
1322
1429
  version_conflict: "ほかの更新と重なりました。最新のバージョンを読み込んでやり直してください。",
1323
- article_editing: "{name, select, none {ほかの人} other {{name}}}が CMS で編集中のため、保存できません。編集画面を閉じるか別のタブに切り替えると、2分以内に保存できるようになります。",
1430
+ record_locked: "{name, select, none {ほかの人} other {{name}}}が CMS で編集中のため、保存できません。編集画面を閉じるか別のタブに切り替えると、2分以内に保存できるようになります。",
1324
1431
  invalid_state: "今の状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。",
1325
- unpublish_first: "公開中のレコードは、非公開にしてから削除してください。",
1432
+ still_published: "公開中のレコードは、非公開にしてから削除してください。",
1326
1433
  last_admin: "最後の管理者は、外すことも管理者のロールから降ろすこともできません。先にほかの人を管理者にしてください。",
1327
1434
  exceeds_own: "自分のロールより広い権限は付けられません。広い権限が要るときは、管理者に依頼してください。",
1328
- reauth_required: "承認の前に、もう一度ログインしてください。",
1435
+ reauth_required: "この操作の前に、もう一度ログインしてください。",
1329
1436
  approval_required: "本番に届く変更のため、申請と承認が必要です。申請を出し、組織の管理者の承認を待ってください。",
1330
1437
  stale: "申請の後に内容が変わりました。もう一度申請してください。",
1331
1438
  approval_closed: "この申請はもう承認できません(反映済み、却下、取り下げ、期限切れのいずれか)。必要なときは、もう一度申請してください。",
1332
1439
  cursor_expired: "変更の記録の保存の期間を過ぎました。cursor なしで全件を取り直してください。",
1333
- already_linked: "{reason, select, identity {このアカウントは、すでにほかの顧客に結び付いています。} other {この顧客は、すでに同じ発行者のアカウントに結び付いています。}}結び付けを替えるときは、先に今の結び付けを外してください。",
1440
+ already_linked: "{reason, select, identity {このアカウントは、すでにほかのエンドユーザーに結び付いています。} record {このアカウントには、すでにこのプロジェクトのレコードが結び付いています。} other {このエンドユーザーは、すでに同じ発行者のアカウントに結び付いています。}}結び付けを替えるときは、先に今の結び付けを外してください。",
1334
1441
  run_done: "この取り込みの実行は完了済みです。新しい実行でやり直してください。",
1335
1442
  invalid_invite: "{reason, select, expired {招待の期限が過ぎています。} used {招待はすでに使われています。} other {招待が見つかりません。}}招待した人に、招待の送り直しを依頼してください。",
1336
1443
  body_too_large: "送信する内容は{bodyMaxMB, number}MBまでです。内容を分けて送ってください。",
@@ -1350,40 +1457,52 @@ const ERROR_MESSAGES = {
1350
1457
  no_draft: "公開中のバージョンと別の未公開の変更がありません。",
1351
1458
  not_in_review: "レビュー待ちではありません。画面を読み込み直してください。",
1352
1459
  request_handled: "この依頼はすでに対応済みです。",
1460
+ requester_unauthorized: "申請した人に、この操作を申請する権限がなくなっています。",
1353
1461
  deleted: "すでに削除されています。",
1354
1462
  not_deleted: "削除されていないため、復元できません。",
1355
1463
  schema_confirm: "影響のある変更を含みます。件数を確認してから保存してください。",
1356
- no_publishing: "このコレクションにはワークフローがありません。",
1464
+ no_publication: "このコレクションにはワークフローがありません。",
1357
1465
  no_review: "このコレクションのワークフローにはレビューがありません。",
1358
1466
  not_published: "公開中・予約中ではありません。",
1359
1467
  collection_rows: "レコードが残っています。件数を確認してから削除してください。",
1360
1468
  restore_conflict: "{name, select, none {同じ内容} other {{name}}}がすでにあるため、復元できません。先に今あるものを変更するか削除してください。",
1469
+ restore_target_trashed: "{name}がゴミ箱にあるため、復元できません。先に参照しているレコードを復元してください。",
1361
1470
  collection_exists: "同じ ID のコレクションがすでにあるため、復元できません。先にそのコレクションの ID を変更してください。",
1362
1471
  collection_missing: "コレクションが削除されているため、復元できません。先にコレクションを復元してください。",
1363
- not_restorable: "本人の削除の求めか退会の保持の後の削除のため、復元できません。",
1472
+ not_restorable: "本人の削除の求めによる削除のため、復元できません。",
1364
1473
  installation_state: "今のインストールの状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。",
1365
1474
  site_deploy: "今はサイトを上げられません。ほかのアップロードの最中か、サイトが止められているか外されています。少し待ってから上げ直し、続くときは運営者に連絡してください。",
1366
- site_stopped_by_check: "上げた直後の確認で外れたため、サイトを止めました。直したものを上げた後、運営者に戻してもらってください。",
1475
+ site_check_failed: "配置の直後の確認で外れたため、配置を取り消しました。公開中のサイトは変わりません。直したものを上げ直してください。",
1476
+ deployment_stale: "ほかの操作で有効なデプロイが変わりました。画面を読み込み直してから、有効にし直してください。",
1477
+ deployment_not_ready: "このデプロイは有効にできません。配置に失敗したか、配置が残っていません。",
1478
+ deployment_consent: "このデプロイが使う能力の同意が足りないため、有効にできません。アプリの同意を確かめてください。",
1367
1479
  required_app: "止められない標準の機能は、停止もアンインストールもできません。",
1368
1480
  app_installed: "アプリは1つのプロジェクトに1つだけインストールできます。",
1369
1481
  app_dependencies: "依存のアプリをそろえられません。アプリの詳細で、足りないアプリと合わないアプリを確かめてください。",
1482
+ app_required_by: "依存するアプリ({name})が入っているため、アンインストールできません。先に依存するアプリをアンインストールしてください。",
1370
1483
  app_reinstalled: "同じアプリを入れ直したインストールがあるため、古いインストールのデータは消せません。",
1371
1484
  app_managed: "アプリのインストールが管理する登録です。変更はアプリの新しいバージョンの同意で行います。",
1372
1485
  request_key_reused: "同じ重複を除くキーで、別の人かチャネルか目的の記録がすでにあります。別のキーで送ってください。",
1373
1486
  no_organization: "組織に属していないプロジェクトのため、招待できません。運営者に組織への所属を頼んでください。",
1374
1487
  schema_changed: "スキーマが変更されたため、保存できませんでした。画面を読み込み直してください。",
1375
- customer_inactive: "この顧客は停止中か退会済みのため、操作できません。顧客の画面で状態を確かめてください。",
1488
+ end_user_inactive: "このエンドユーザーは停止中のため、操作できません。エンドユーザーの画面で状態を確かめてください。",
1376
1489
  self_limit: "1人あたりのレコードの数の上限に達しています。不要なレコードを削除してから作成してください。",
1377
1490
  already_live: "この環境はすでに本番です。",
1378
1491
  target_live: "本番の環境は削除できません。先にほかの環境へ切り替えてください。",
1379
1492
  target_synthetic: "合成のデータの環境は本番にできません。本番にする環境を選び直してください。",
1493
+ target_anonymized: "個人の情報を仮の値に置き換えたか除いてコピーした環境は、本番に切り替えられません。運営者に、値を保つコピーを依頼してください。スキーマだけの反映はできます。",
1380
1494
  no_changes: "本番との差がありません。",
1381
1495
  schema_values: "値のある項目を消す変更を含むため、反映できません。本番で値を移してからやり直してください。",
1382
1496
  environment_limit: "環境の数がプランの上限に達しています。不要な環境を削除してから作成してください。",
1497
+ collection_size_limit: "件数が上限に達しています。不要なものを削除してから作成してください。",
1383
1498
  environment_busy: "この環境はほかの操作の途中です。少し待ってからやり直してください。",
1384
1499
  unregistered_table: "個人の情報の扱いが決まっていない表があるため、コピーできません。運営者に連絡してください。",
1385
1500
  not_frozen: "本番の書き込みは止まっていません。",
1386
- approval_running: "承認した操作の実行中です。少し待ってからやり直してください。"
1501
+ approval_running: "承認した操作の実行中です。少し待ってからやり直してください。",
1502
+ aggregate_read_only: "集計のコレクションは読むだけです。値は作り直しの処理だけが書きます。",
1503
+ not_aggregate: "集計のコレクションではありません。",
1504
+ condition_unmet: "条件に指定したレコードが変わっているか、読み取れません。",
1505
+ app_state_keys_full: "アプリ用の状態のキーの数が上限に達しています。"
1387
1506
  },
1388
1507
  /** own_only の対象ごとの文(アプリの文は manifest の messages) */
1389
1508
  own: {
@@ -1391,14 +1510,14 @@ const ERROR_MESSAGES = {
1391
1510
  portrait: "自分の顔の画像だけを変更できます。"
1392
1511
  },
1393
1512
  /** no_linked_record の対象ごとの文(name は結び付くコレクションの表示名) */
1394
- noLink: { mcp: "{name}が結び付いていないアカウントは、MCP を使用できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。" },
1513
+ no_link: { mcp: "{name}が結び付いていないアカウントは、MCP を使用できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。" },
1395
1514
  /** no_linked_record の name が無いときの語 */
1396
1515
  linkedRecord: "レコード",
1397
1516
  /** コードごとの見出し */
1398
1517
  titles: {
1399
1518
  invalid_input: "入力エラー",
1400
- infra_id_uuid: "入力エラー",
1401
- submit_unmet: "レビューを依頼できません",
1519
+ uuid_not_accepted: "入力エラー",
1520
+ transition_unmet: "レビューを依頼できません",
1402
1521
  publish_unmet: "公開できません",
1403
1522
  save_unmet: "保存できません",
1404
1523
  version_required: "入力エラー",
@@ -1413,8 +1532,8 @@ const ERROR_MESSAGES = {
1413
1532
  invalid_mcp_token: "ログインエラー",
1414
1533
  mcp_signature_invalid: "ログインエラー",
1415
1534
  invalid_account_token: "ログインエラー",
1416
- preview_token_required: "ログインエラー",
1417
- invalid_preview_token: "ログインエラー",
1535
+ read_token_required: "ログインエラー",
1536
+ invalid_read_token: "ログインエラー",
1418
1537
  api_key_required: "ログインエラー",
1419
1538
  invalid_api_key: "ログインエラー",
1420
1539
  invalid_id_token: "ログインエラー",
@@ -1429,26 +1548,26 @@ const ERROR_MESSAGES = {
1429
1548
  not_trial: "権限がありません",
1430
1549
  not_live: "本番の環境だけの操作です",
1431
1550
  forbidden: "権限がありません",
1432
- editorial_only: "権限がありません",
1551
+ create_requires_publish: "権限がありません",
1433
1552
  no_linked_record: "権限がありません",
1434
1553
  own_only: "権限がありません",
1435
1554
  not_visible: "権限がありません",
1436
- published_admin_only: "権限がありません",
1555
+ edit_requires_publish: "権限がありません",
1437
1556
  cannot_remove_self: "権限がありません",
1438
1557
  cannot_change_owner: "権限がありません",
1439
1558
  not_found: "見つかりません",
1440
1559
  method_not_allowed: "操作できません",
1441
- customer_not_linked: "見つかりません",
1442
- customer_pending: "確認待ちです",
1560
+ end_user_not_linked: "見つかりません",
1561
+ end_user_pending: "確認待ちです",
1443
1562
  in_use: "削除できません",
1444
1563
  duplicate_name: "重複しています",
1445
1564
  duplicate_email: "重複しています",
1446
1565
  duplicate_id: "重複しています",
1447
1566
  duplicate_slug: "重複しています",
1448
1567
  version_conflict: "更新が重なりました",
1449
- article_editing: "編集中です",
1568
+ record_locked: "編集中です",
1450
1569
  invalid_state: "操作できません",
1451
- unpublish_first: "削除できません",
1570
+ still_published: "削除できません",
1452
1571
  last_admin: "操作できません",
1453
1572
  exceeds_own: "権限がありません",
1454
1573
  reauth_required: "再認証が必要",
@@ -1494,7 +1613,7 @@ function argsOf(code, p, targets, problems, locale) {
1494
1613
  /** コードと値から使う文(アプリの文、対象ごとの文、理由ごとの文、コードの文の順) */
1495
1614
  function messageOf(code, p, messages, catalog) {
1496
1615
  if (code === "own_only") return p.target && messages.own?.[p.target] || (has(catalog.own, p.target) ? catalog.own[p.target] : catalog.codes.own_only);
1497
- if (code === "no_linked_record") return p.target && messages.noLink?.[p.target] || (has(catalog.noLink, p.target) ? catalog.noLink[p.target] : catalog.codes.no_linked_record);
1616
+ if (code === "no_linked_record") return p.target && messages.no_link?.[p.target] || (has(catalog.no_link, p.target) ? catalog.no_link[p.target] : catalog.codes.no_linked_record);
1498
1617
  if (code === "invalid_state" && has(catalog.states, p.reason)) return catalog.states[p.reason];
1499
1618
  return catalog.codes[code];
1500
1619
  }
@@ -1511,13 +1630,30 @@ const errorText = (code, params = {}, targets = {}) => errorLabel(code, params,
1511
1630
  }, {}, ERROR_MESSAGES_EN, PROBLEM_MESSAGES_EN, "en");
1512
1631
  /** 応答のエラーの文をカタログから作る(対象の表示名はカタログの表、ほかの言語の画面とアプリ向け) */
1513
1632
  const errorMessageOf = (error, catalog = ERROR_MESSAGES) => errorLabel(error.code, error.params, catalog.targets, {}, catalog);
1514
- /** プロジェクトの文脈の外(受け皿の Worker・レジストリ・アプリ)のエラーの本文(requestId は要求の x-request-id、message は英語の文) */
1515
- const errorBodyFor = (code, requestId, params) => ({
1516
- code,
1517
- message: errorText(code, params),
1518
- ...params && { params },
1519
- requestId
1633
+ /**
1634
+ * type のないエラーの本文(アプリが返す本文。type は基盤が経路の応答に PROBLEM_TYPE_BASE から付ける、withProblemType)
1635
+ * - 公開の SDK に基盤のホスト名を含めないため、アプリの側では type を組み立てない(RFC 9457: type がなければ about:blank と同じ扱い)
1636
+ */
1637
+ const problemBodyWithoutType = (code, requestId, fields = {}) => {
1638
+ const { detail, params, ...rest } = fields;
1639
+ return {
1640
+ title: ERROR_MESSAGES_EN.titles[code],
1641
+ status: ERROR_STATUS[code],
1642
+ detail: detail ?? errorText(code, params),
1643
+ code,
1644
+ request_id: requestId,
1645
+ ...params && { params },
1646
+ ...rest
1647
+ };
1648
+ };
1649
+ /** エラーの応答(Content-Type は application/problem+json、状態は本文の status) */
1650
+ const problemResponse = (body, headers = {}) => new Response(JSON.stringify(body), {
1651
+ status: body.status,
1652
+ headers: {
1653
+ "content-type": PROBLEM_CONTENT_TYPE,
1654
+ ...headers
1655
+ }
1520
1656
  });
1521
1657
  /** エラーのトーストの見出し(項目ごとの理由がすべて未入力なら必須項目のエラー、スキーマの文は「〜が未入力」で統一) */
1522
1658
  const errorTitle = (code, issues = [], catalog = ERROR_MESSAGES) => code === "invalid_input" && issues.length > 0 && issues.every((i) => i.message.endsWith("未入力")) ? catalog.requiredTitle : catalog.titles[code];
1523
- export { JSON_BODY_MAX as _, errorTitle as a, SCHEMA_PROBLEM_MESSAGES_EN as b, importProblemLabel as c, problemEnglish as d, problemLabel as f, ERROR_STATUS as g, apiIssueText as h, errorText as i, issueLabel as l, API_ISSUE_MESSAGES as m, errorBodyFor as n, PROBLEM_MESSAGES as o, API_ISSUE_MESSAGES_EN as p, errorMessageOf as r, PROBLEM_MESSAGES_EN as s, ERROR_MESSAGES as t, labelTableProblems as u, ERROR_MESSAGES_EN as v, BODY_PROBLEM_MESSAGES_EN as y };
1659
+ export { JSON_BODY_MAX as _, problemBodyWithoutType as a, SCHEMA_PROBLEM_MESSAGES_EN as b, PROBLEM_MESSAGES_EN as c, labelTableProblems as d, problemEnglish as f, apiIssueText as g, API_ISSUE_MESSAGES as h, errorTitle as i, importProblemLabel as l, API_ISSUE_MESSAGES_EN as m, errorMessageOf as n, problemResponse as o, problemLabel as p, errorText as r, PROBLEM_MESSAGES as s, ERROR_MESSAGES as t, issueLabel as u, ERROR_MESSAGES_EN as v, RICH_TEXT_PROBLEM_MESSAGES_EN as y };