@tunasand/sdk 0.0.0-stage → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +114 -0
- package/README.md +516 -2
- package/dist/analytics.d.ts +1 -0
- package/dist/analytics.js +43 -0
- package/dist/app.d.ts +1 -0
- package/dist/app.js +825 -0
- package/dist/apps-9u4XMi7E.js +114 -0
- package/dist/body.d.ts +1 -0
- package/dist/body.js +455 -0
- package/dist/bridge-DYAYGV7t.js +74 -0
- package/dist/bridge.d.ts +1 -0
- package/dist/bridge.js +189 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +283 -0
- package/dist/client-Derrexwr.js +159 -0
- package/dist/customers-C_vJY2_v.js +84 -0
- package/dist/customers.d.ts +1 -0
- package/dist/customers.js +185 -0
- package/dist/declared-C_GvPiGF.js +397 -0
- package/dist/delivery.d.ts +1 -0
- package/dist/delivery.js +394 -0
- package/dist/dev.d.ts +1 -0
- package/dist/dev.js +93 -0
- package/dist/embed-R-OvDYAw.js +90 -0
- package/dist/errorLabels-CPKiPabZ.js +1510 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +4 -0
- package/dist/integrations.d.ts +1 -0
- package/dist/integrations.js +62 -0
- package/dist/ja-C1HEWWTQ.js +241 -0
- package/dist/ja-C6lX0CeJ.js +213 -0
- package/dist/model-pmXzGX12.js +152 -0
- package/dist/model.d.ts +1 -0
- package/dist/model.js +345 -0
- package/dist/page-E_cYgZx-.js +138 -0
- package/dist/preview.d.ts +1 -0
- package/dist/preview.js +1 -0
- package/dist/profile-D6t1QMQh.js +223 -0
- package/dist/schema-BPHL7Qr-.js +115 -0
- package/dist/schema-UQJWRyfJ.js +995 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js +1 -0
- package/dist/src-sazhzYui.js +71 -0
- package/dist/types/access/src/handoff.d.ts +52 -0
- package/dist/types/access/src/index.d.ts +5 -0
- package/dist/types/access/src/jws.d.ts +5 -0
- package/dist/types/access/src/jwt.d.ts +35 -0
- package/dist/types/access/src/oidc.d.ts +50 -0
- package/dist/types/access/src/signed.d.ts +15 -0
- package/dist/types/analytics/src/day.d.ts +2 -0
- package/dist/types/analytics/src/index.d.ts +5 -0
- package/dist/types/analytics/src/schedule.d.ts +2 -0
- package/dist/types/analytics/src/shared.d.ts +21 -0
- package/dist/types/analytics/src/source.d.ts +19 -0
- package/dist/types/analytics/src/store.d.ts +24 -0
- package/dist/types/analytics/src/view.d.ts +33 -0
- package/dist/types/body/src/components.d.ts +25 -0
- package/dist/types/body/src/declared.d.ts +34 -0
- package/dist/types/body/src/derive.d.ts +13 -0
- package/dist/types/body/src/description.d.ts +8 -0
- package/dist/types/body/src/embed.d.ts +16 -0
- package/dist/types/body/src/href.d.ts +4 -0
- package/dist/types/body/src/html.d.ts +30 -0
- package/dist/types/body/src/index.d.ts +19 -0
- package/dist/types/body/src/inline.d.ts +20 -0
- package/dist/types/body/src/labels/en.d.ts +90 -0
- package/dist/types/body/src/labels/ja.d.ts +153 -0
- package/dist/types/body/src/library.d.ts +113 -0
- package/dist/types/body/src/markdown.d.ts +14 -0
- package/dist/types/body/src/normalize.d.ts +5 -0
- package/dist/types/body/src/problems.d.ts +103 -0
- package/dist/types/body/src/profile.d.ts +80 -0
- package/dist/types/body/src/render.d.ts +29 -0
- package/dist/types/body/src/schema.d.ts +6 -0
- package/dist/types/body/src/standard.d.ts +20 -0
- package/dist/types/body/src/types.d.ts +140 -0
- package/dist/types/cms-contract/src/apiKeys.d.ts +41 -0
- package/dist/types/cms-contract/src/app.d.ts +35 -0
- package/dist/types/cms-contract/src/appDependencies.d.ts +265 -0
- package/dist/types/cms-contract/src/appProblems.d.ts +22 -0
- package/dist/types/cms-contract/src/apps.d.ts +195 -0
- package/dist/types/cms-contract/src/assets.d.ts +12 -0
- package/dist/types/cms-contract/src/authorize.d.ts +146 -0
- package/dist/types/cms-contract/src/bridge.d.ts +318 -0
- package/dist/types/cms-contract/src/consents.d.ts +97 -0
- package/dist/types/cms-contract/src/customerLabels.d.ts +33 -0
- package/dist/types/cms-contract/src/customers.d.ts +266 -0
- package/dist/types/cms-contract/src/embeds.d.ts +165 -0
- package/dist/types/cms-contract/src/errorLabels.d.ts +269 -0
- package/dist/types/cms-contract/src/errorLabelsEn.d.ts +228 -0
- package/dist/types/cms-contract/src/errors.d.ts +105 -0
- package/dist/types/cms-contract/src/failureStatus.d.ts +124 -0
- package/dist/types/cms-contract/src/functionLabels.d.ts +5 -0
- package/dist/types/cms-contract/src/functions.d.ts +144 -0
- package/dist/types/cms-contract/src/identifiers.d.ts +117 -0
- package/dist/types/cms-contract/src/import.d.ts +277 -0
- package/dist/types/cms-contract/src/issueLabels.d.ts +435 -0
- package/dist/types/cms-contract/src/issueLabelsEn.d.ts +217 -0
- package/dist/types/cms-contract/src/migration.d.ts +103 -0
- package/dist/types/cms-contract/src/paths.d.ts +23 -0
- package/dist/types/cms-contract/src/permissionLabels.d.ts +8 -0
- package/dist/types/cms-contract/src/permissions.d.ts +77 -0
- package/dist/types/cms-contract/src/problems.d.ts +34 -0
- package/dist/types/cms-contract/src/roles.d.ts +57 -0
- package/dist/types/cms-contract/src/settingProblems.d.ts +13 -0
- package/dist/types/cms-contract/src/settings.d.ts +19 -0
- package/dist/types/cms-contract/src/siteArtifact.d.ts +45 -0
- package/dist/types/cms-contract/src/siteDeclaration.d.ts +70 -0
- package/dist/types/cms-contract/src/transfer.d.ts +57 -0
- package/dist/types/cms-contract/src/urlLabel.d.ts +13 -0
- package/dist/types/cms-contract/src/views.d.ts +21 -0
- package/dist/types/cms-contract/src/webhookLabels.d.ts +7 -0
- package/dist/types/cms-contract/src/webhooks.d.ts +139 -0
- package/dist/types/i18n/src/index.d.ts +50 -0
- package/dist/types/i18n/src/problems.d.ts +21 -0
- package/dist/types/model/src/asset.d.ts +111 -0
- package/dist/types/model/src/audience.d.ts +38 -0
- package/dist/types/model/src/brand.d.ts +25 -0
- package/dist/types/model/src/capabilities.d.ts +28 -0
- package/dist/types/model/src/changes.d.ts +34 -0
- package/dist/types/model/src/check.d.ts +15 -0
- package/dist/types/model/src/contact.d.ts +22 -0
- package/dist/types/model/src/image.d.ts +38 -0
- package/dist/types/model/src/index.d.ts +26 -0
- package/dist/types/model/src/input.d.ts +26 -0
- package/dist/types/model/src/integrity.d.ts +79 -0
- package/dist/types/model/src/json.d.ts +2 -0
- package/dist/types/model/src/labels/en.d.ts +169 -0
- package/dist/types/model/src/labels/ja.d.ts +198 -0
- package/dist/types/model/src/legacy.d.ts +2 -0
- package/dist/types/model/src/media.d.ts +5 -0
- package/dist/types/model/src/mediaUrl.d.ts +67 -0
- package/dist/types/model/src/model.d.ts +415 -0
- package/dist/types/model/src/page.d.ts +52 -0
- package/dist/types/model/src/problems.d.ts +184 -0
- package/dist/types/model/src/refs.d.ts +27 -0
- package/dist/types/model/src/rules.d.ts +15 -0
- package/dist/types/model/src/schema.d.ts +58 -0
- package/dist/types/model/src/screens.d.ts +76 -0
- package/dist/types/model/src/selfOps.d.ts +30 -0
- package/dist/types/model/src/time.d.ts +25 -0
- package/dist/types/model/src/typesSource.d.ts +8 -0
- package/dist/types/model/src/values.d.ts +24 -0
- package/dist/types/platform/src/defaultModel.d.ts +8 -0
- package/dist/types/sdk/src/analytics.d.ts +2 -0
- package/dist/types/sdk/src/app.d.ts +20 -0
- package/dist/types/sdk/src/body.d.ts +2 -0
- package/dist/types/sdk/src/bridge.d.ts +92 -0
- package/dist/types/sdk/src/cli.d.ts +2 -0
- package/dist/types/sdk/src/customers.d.ts +190 -0
- package/dist/types/sdk/src/delivery/cache.d.ts +18 -0
- package/dist/types/sdk/src/delivery/changes.d.ts +28 -0
- package/dist/types/sdk/src/delivery/client.d.ts +90 -0
- package/dist/types/sdk/src/delivery/fields.d.ts +48 -0
- package/dist/types/sdk/src/delivery/index.d.ts +9 -0
- package/dist/types/sdk/src/delivery/media.d.ts +28 -0
- package/dist/types/sdk/src/delivery/query.d.ts +85 -0
- package/dist/types/sdk/src/delivery/schema.d.ts +19 -0
- package/dist/types/sdk/src/delivery/values.d.ts +82 -0
- package/dist/types/sdk/src/delivery.d.ts +3 -0
- package/dist/types/sdk/src/dev.d.ts +29 -0
- package/dist/types/sdk/src/i18n.d.ts +12 -0
- package/dist/types/sdk/src/integrations.d.ts +33 -0
- package/dist/types/sdk/src/model.d.ts +5 -0
- package/dist/types/sdk/src/preview.d.ts +1 -0
- package/dist/types/sdk/src/schema.d.ts +21 -0
- package/dist/types/sdk/src/site.d.ts +43 -0
- package/dist/typesSource-bO0jFw1I.js +88 -0
- package/package.json +86 -3
|
@@ -0,0 +1,1510 @@
|
|
|
1
|
+
import { c as formatMessage, f as problemText, n as BODY_PROBLEM_MESSAGES, p as problemTextFactory, u as problemMessage } from "./ja-C1HEWWTQ.js";
|
|
2
|
+
import { t as MODEL_PROBLEM_MESSAGES } from "./ja-C6lX0CeJ.js";
|
|
3
|
+
// ../model/src/labels/en.ts
|
|
4
|
+
/** コンテンツスキーマの検査の問題の英語の文 */
|
|
5
|
+
const MODEL_PROBLEM_MESSAGES_EN = {
|
|
6
|
+
model_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
|
+
invalid_collection_id: "id must start with a lowercase letter and contain only lowercase letters, digits and underscores",
|
|
8
|
+
invalid_field_key: "key must start with a lowercase letter and contain only letters, digits, underscores and hyphens",
|
|
9
|
+
page_path_slash: "The page template must start with /",
|
|
10
|
+
og_path_slash: "The OG image template must start with /",
|
|
11
|
+
invalid_pattern: "The pattern is not a valid regular expression",
|
|
12
|
+
initial_not_option: "The initial value is not one of the options",
|
|
13
|
+
derive_not_option: "The derived value is not one of the options",
|
|
14
|
+
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
|
+
duplicate_field_key: "Duplicate field key",
|
|
18
|
+
condition_invalid: "The field condition does not point to an option field and value at the same level",
|
|
19
|
+
page_condition_invalid: "The page condition does not point to an option field and value of the collection",
|
|
20
|
+
duplicate_collection_id: "Duplicate collection id",
|
|
21
|
+
duplicate_collection_slug: "Duplicate collection slug",
|
|
22
|
+
reserved_key: "Collection {collection}: key {key} is the same as a system value (use another key)",
|
|
23
|
+
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",
|
|
25
|
+
computed_nested: "Collection {collection}, field {field}: fields inside a group cannot be computed",
|
|
26
|
+
computed_from_not_body: "Collection {collection}, field {field}: the computed source {from} is not a body field of the same collection",
|
|
27
|
+
computed_type_mismatch: "Collection {collection}, field {field}: field type {type} does not match computed kind {kind}",
|
|
28
|
+
role_field_not_top: "Collection {collection}, role {role}: field {field} is not at the top level",
|
|
29
|
+
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",
|
|
34
|
+
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
|
+
template_id_placeholder: "Collection {collection}, template {template}: '{id}' is not allowed (use '{slug}')",
|
|
36
|
+
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)",
|
|
38
|
+
count_reference_private: "Collection {collection}, reference count {key}: reference field {field} of collection {fromCollection} is not public (the count would leak values)",
|
|
39
|
+
count_reference_mismatch: "Collection {collection}, reference count {key}: reference field {field} of collection {fromCollection} does not point to this collection",
|
|
40
|
+
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",
|
|
46
|
+
anonymize_field_missing: "Collection {collection}, field {field}: anonymize field {target} is not at the top level of the same collection",
|
|
47
|
+
anonymize_field_unclearable: "Collection {collection}, field {field}: anonymize field {target} ({type}) cannot be cleared",
|
|
48
|
+
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)",
|
|
52
|
+
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 {}}",
|
|
54
|
+
private_object: "Collection {collection} is private: it cannot use the object format",
|
|
55
|
+
private_publishing: "Collection {collection} is private: turn off publishing",
|
|
56
|
+
private_pages: "Collection {collection} is private: it cannot have pages",
|
|
57
|
+
private_grant: "Collection {collection} is private: it cannot require a grant",
|
|
58
|
+
reference_target_missing: "Collection {collection}: reference target {to} is not in the schema",
|
|
59
|
+
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
|
+
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)",
|
|
68
|
+
unique_field_count: "Collection {collection}, unique constraint {key}: 1 to {max, number} fields",
|
|
69
|
+
unique_field_duplicate: "Collection {collection}, unique constraint {key}: duplicate field",
|
|
70
|
+
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)",
|
|
72
|
+
sequence_nested: "Collection {collection}, field {field}: sequences cannot be inside a group",
|
|
73
|
+
sequence_list_only: "Collection {collection}, field {field}: sequences are only for list collections",
|
|
74
|
+
sequence_plain: "Collection {collection}, field {field}: sequences cannot be required, computed or conditional (assigned on creation)",
|
|
75
|
+
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",
|
|
77
|
+
transition_to_not_option: "Collection {collection}, field {field}, transition {index, number}: target {to} is not one of the options",
|
|
78
|
+
transition_from_empty: "Collection {collection}, field {field}, transition {index, number}: no source values",
|
|
79
|
+
transition_from_not_option: "Collection {collection}, field {field}, transition {index, number}: source value {value} is not one of the options",
|
|
80
|
+
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} media {media 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",
|
|
90
|
+
field_key_reused: "Field \"{label}\": key {key} was a {type} field in a past version (values remain in records, use another key)",
|
|
91
|
+
field_removed: "Remove field \"{label}\" (values are kept and hidden)",
|
|
92
|
+
field_added: "Add field \"{label}\"",
|
|
93
|
+
field_added_required: "Added field \"{label}\" is required",
|
|
94
|
+
field_type_changed: "Change the type of field \"{label}\" from {from} to {to} (incompatible, create a new field and move the values)",
|
|
95
|
+
field_required: "Make field \"{label}\" required",
|
|
96
|
+
field_pii_narrowed: "Weaken the personal data class of field \"{label}\" (values remain in environment copies)",
|
|
97
|
+
field_tightened: "Tighten the value rules of field \"{label}\" (values that do not match must be fixed on the next save)",
|
|
98
|
+
option_removed: "Remove option \"{option}\" from field \"{label}\"",
|
|
99
|
+
option_added: "Add option \"{option}\" to field \"{label}\"",
|
|
100
|
+
field_changed: "Change the settings or order of field \"{label}\"",
|
|
101
|
+
collection_label_changed: "Change the name or description of collection \"{label}\"",
|
|
102
|
+
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}\"",
|
|
105
|
+
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)",
|
|
107
|
+
collection_roles_changed: "Change the field roles of collection \"{label}\"",
|
|
108
|
+
collection_private_changed: "Make collection \"{label}\" {private, select, yes {private} other {delivered}}",
|
|
109
|
+
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}\"",
|
|
111
|
+
collection_unique_added: "Add or change unique constraints of collection \"{label}\" (cannot save while duplicates remain)",
|
|
112
|
+
collection_unique_removed: "Remove unique constraints of collection \"{label}\"",
|
|
113
|
+
collection_pages_changed: "Change the page templates of collection \"{label}\"",
|
|
114
|
+
collection_counts_changed: "Change the reference counts of collection \"{label}\"",
|
|
115
|
+
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}\"",
|
|
118
|
+
collection_retention_shortened: "Set the retention of collection \"{label}\" to {days, number} days (expired records are deleted by the daily cleanup)",
|
|
119
|
+
collection_retention_changed: "Change the retention of collection \"{label}\"",
|
|
120
|
+
media_fixed: "The fields, format and publishing of collection \"{label}\" are fixed by the product (name and description can be changed)",
|
|
121
|
+
media_not_removable: "Collection \"{label}\" is fixed by the product and cannot be deleted",
|
|
122
|
+
collection_removed: "Delete collection \"{label}\" (records are kept and hidden)",
|
|
123
|
+
media_defined: "The fields and format of collection \"{label}\" are defined by the product",
|
|
124
|
+
collection_added: "Add collection \"{label}\"",
|
|
125
|
+
confidential_key_reused: "The key of field {field} was a confidential field ({type}) (values remain in records, use another key)",
|
|
126
|
+
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 ledger)",
|
|
127
|
+
component_removed: "Remove the declaration of body component \"{label}\" (bodies using it are rejected on the next save)",
|
|
128
|
+
component_added: "Declare body component \"{label}\"",
|
|
129
|
+
component_changed: "Change the declaration of body component \"{label}\"",
|
|
130
|
+
value_missing: "{field} is required",
|
|
131
|
+
value_undetermined: "{field} is undetermined",
|
|
132
|
+
value_shape: "{field} has an invalid shape",
|
|
133
|
+
value_duplicate: "{field} is duplicated",
|
|
134
|
+
value_max_length: "{field} must be at most {max} characters",
|
|
135
|
+
value_min_length: "{field} must be at least {min} characters",
|
|
136
|
+
value_pattern: "{field} does not match the format",
|
|
137
|
+
value_not_option: "{field} is not one of the options",
|
|
138
|
+
value_id: "{field} must be an ID",
|
|
139
|
+
value_text: "{field} must be a string",
|
|
140
|
+
value_number: "{field} must be a number",
|
|
141
|
+
value_min: "{field} must be at least {min}",
|
|
142
|
+
value_max: "{field} must be at most {max}",
|
|
143
|
+
value_boolean: "{field} must be a boolean",
|
|
144
|
+
value_date: "{field} must be a date (YYYY-MM-DD)",
|
|
145
|
+
value_datetime: "{field} must be a date and time (ISO 8601)",
|
|
146
|
+
value_email: "{field} must be an email address",
|
|
147
|
+
value_phone: "{field} must be a phone number",
|
|
148
|
+
value_url: "{field} must be a URL",
|
|
149
|
+
value_max_items: "{field} allows at most {max} items",
|
|
150
|
+
value_min_items: "{field} requires at least {min} items",
|
|
151
|
+
invalid_screen_id: "id must start with a lowercase letter and contain only lowercase letters, digits, underscores, colons and hyphens",
|
|
152
|
+
duplicate_section_id: "Duplicate section id",
|
|
153
|
+
duplicate_placement: "The same field is placed twice",
|
|
154
|
+
duplicate_menu_group: "Duplicate menu group id",
|
|
155
|
+
duplicate_menu_item: "The same item appears twice in the menu",
|
|
156
|
+
duplicate_column: "The same column appears twice in the list",
|
|
157
|
+
crop_too_large: "The crop is too large (keep at least 10%)",
|
|
158
|
+
option_restricted: "Only accounts with the publish permission can choose this {field}.",
|
|
159
|
+
reference_missing: "{field}: {id} does not exist",
|
|
160
|
+
reference_after_create: "{field} can be selected after creation",
|
|
161
|
+
reference_unmatched: "{field}: {id} does not meet the selection conditions",
|
|
162
|
+
pending_masters: "Additions to masters are awaiting approval: {labels} (can be published after approval)",
|
|
163
|
+
uncited_sources: "{collection}: {count, plural, one {# citation is} other {# citations are}} not in the sources",
|
|
164
|
+
images_without_alt: "{count, plural, one {# image has} other {# images have}} no alternative text (enter it in media)",
|
|
165
|
+
page_field_required: "{field} is required to publish the page",
|
|
166
|
+
referenced_page_fields: "Publishing creates a page for {target}, so {fields} of {target} are required",
|
|
167
|
+
fixed_value: "For this {target}, set {field} of {collection} to {option}",
|
|
168
|
+
body_field_missing: "Collection {collection} has no body field {field}",
|
|
169
|
+
date_time_invalid: "Invalid date and time format",
|
|
170
|
+
comment_required: "Comment is required",
|
|
171
|
+
reject_note_required: "Reason for returning is required"
|
|
172
|
+
};
|
|
173
|
+
// ../body/src/labels/en.ts
|
|
174
|
+
const MARK = "{mark, select, strong {Bold} em {Italic} code {Code} strike {Strikethrough} mark {Highlight} sup {Superscript} sub {Subscript} other {Underline}}";
|
|
175
|
+
const STYLE = "{kind, select, color {Text color} background {Background color} other {Font size}}";
|
|
176
|
+
const WHERE = "{where, select, paragraph {paragraph} heading {heading} list {list} quote {quote} figure {figure} caption {caption} other {cell}}";
|
|
177
|
+
/** 本文の検査の問題の英語の文 */
|
|
178
|
+
const BODY_PROBLEM_MESSAGES_EN = {
|
|
179
|
+
inline_component_here: "Inline components cannot be used here",
|
|
180
|
+
inline_component_unavailable: "Inline component {name} cannot be used",
|
|
181
|
+
marks_here: "Marks and links cannot be used here",
|
|
182
|
+
mark_unavailable: `${MARK} cannot be used`,
|
|
183
|
+
marks_combined: "Combined marks and marked links cannot be used",
|
|
184
|
+
link_rel_unavailable: "Link rel={rel} cannot be used",
|
|
185
|
+
link_target_unavailable: "Opening links in a new tab cannot be used",
|
|
186
|
+
link_unsafe: "Link target {href} cannot be used (only https://, http://, mailto:, site paths starting with / and in-page links starting with #)",
|
|
187
|
+
text_style_here: "Text styles cannot be used here",
|
|
188
|
+
style_unavailable: `${STYLE} cannot be used`,
|
|
189
|
+
style_name_unknown: `${STYLE} name {name} is not in the body settings`,
|
|
190
|
+
style_empty: `${STYLE} has no name or value`,
|
|
191
|
+
style_value_unsafe: `${STYLE} value {value} cannot be used`,
|
|
192
|
+
named_style_unknown: "Named style {name} is not in the body settings",
|
|
193
|
+
align_unavailable: "Alignment cannot be used",
|
|
194
|
+
table_cells_unavailable: "Table cells with attributes cannot be used",
|
|
195
|
+
table_span_invalid: "Cell spans must be 1 or more",
|
|
196
|
+
variant_unavailable: "Variant {variant} cannot be used",
|
|
197
|
+
heading_unavailable: "Heading {level} cannot be used (available headings: {levels})",
|
|
198
|
+
list_unavailable: "Lists cannot be used",
|
|
199
|
+
list_nested_unavailable: "Nested lists cannot be used",
|
|
200
|
+
list_ordered_unavailable: "Ordered lists cannot be used",
|
|
201
|
+
quote_unavailable: "Quotes cannot be used",
|
|
202
|
+
quote_single: "Quotes are limited to one paragraph",
|
|
203
|
+
quote_cite_unavailable: "Quote citations cannot be used",
|
|
204
|
+
code_unavailable: "Code cannot be used",
|
|
205
|
+
code_caption_unavailable: "Code captions cannot be used",
|
|
206
|
+
code_filename_unavailable: "Code file names cannot be used",
|
|
207
|
+
code_component_lang: "```{lang} code cannot be used (wrap it in :::{component})",
|
|
208
|
+
image_unavailable: "Images cannot be used",
|
|
209
|
+
image_link_unavailable: "Image links cannot be used",
|
|
210
|
+
image_align_unavailable: "Image alignment cannot be used",
|
|
211
|
+
file_unavailable: "Files cannot be used",
|
|
212
|
+
table_unavailable: "Tables cannot be used",
|
|
213
|
+
table_head_required: "Tables require a header row",
|
|
214
|
+
table_caption_required: "Tables require a caption",
|
|
215
|
+
table_caption_unavailable: "Table captions cannot be used",
|
|
216
|
+
divider_unavailable: "Dividers cannot be used",
|
|
217
|
+
html_unavailable: "HTML blocks cannot be used",
|
|
218
|
+
component_unavailable: "Component {name} cannot be used",
|
|
219
|
+
link_href_missing: "Link target is required",
|
|
220
|
+
inline_component_missing: "Inline component {name} does not exist",
|
|
221
|
+
heading_empty: "Heading is required",
|
|
222
|
+
component_missing: "Component {name} does not exist",
|
|
223
|
+
markdown_unparsable: "Cannot parse Markdown: {error}",
|
|
224
|
+
block_problem: "Block {index}: {problem}",
|
|
225
|
+
url_https: "URL must start with https://",
|
|
226
|
+
caption_missing: "Caption is required",
|
|
227
|
+
cite_source_missing: "Source of the citation is required",
|
|
228
|
+
speech_missing: "Speech is required",
|
|
229
|
+
diagram_source_missing: "Diagram source is required",
|
|
230
|
+
diagram_alt_missing: "Diagram alternative text is required",
|
|
231
|
+
gallery_min: "Galleries require at least 2 images",
|
|
232
|
+
link_title_missing: "Link title is required",
|
|
233
|
+
link_ref_format: "ref must be \"collection id/record ID\"",
|
|
234
|
+
embed_id_invalid: "Invalid embed ID",
|
|
235
|
+
prop_key_format: "Prop names must start with a letter and contain only letters and digits",
|
|
236
|
+
prop_enum_string: "enum is only for string props",
|
|
237
|
+
prop_items: "Array props require items (other types cannot have it)",
|
|
238
|
+
prop_properties_object: "properties and required are only for object props",
|
|
239
|
+
prop_required_missing: "Required prop {key} is not in properties",
|
|
240
|
+
component_name_format: "Component names must start with a letter and contain only letters, digits and hyphens",
|
|
241
|
+
component_label_missing: "Component name is required",
|
|
242
|
+
component_name_reserved: "Component name {name} duplicates a core component or a reserved name",
|
|
243
|
+
inline_prop_string: "Inline component props must be strings: {key}",
|
|
244
|
+
component_name_duplicate: "Duplicate component name {name}",
|
|
245
|
+
prop_missing: "{label} is required",
|
|
246
|
+
prop_shape: "{label} has an invalid shape",
|
|
247
|
+
prop_integer: "{label} must be an integer",
|
|
248
|
+
component_props_shape: "Props of {label} have an invalid shape",
|
|
249
|
+
drop_attribute: "attribute {name}",
|
|
250
|
+
drop_style: "style {key}",
|
|
251
|
+
drop_style_value: "value of style {key}",
|
|
252
|
+
drop_class: "class {name}",
|
|
253
|
+
drop_unsafe_link: "unsafe link target",
|
|
254
|
+
drop_element: "element {name}",
|
|
255
|
+
drop_inline_image: "image inside text",
|
|
256
|
+
drop_hoisted_image: `image inside ${WHERE} (moved after it)`,
|
|
257
|
+
drop_caption_marks: "marks inside a caption",
|
|
258
|
+
drop_flattened: `{what, select, list {list} heading {heading} quote {quote} code {code} table {table} other {figure}} inside ${WHERE} (made a paragraph)`,
|
|
259
|
+
drop_inner_element: `element {name} inside ${WHERE}`,
|
|
260
|
+
drop_embed_no_url: "embed without a URL",
|
|
261
|
+
drop_embed_not_https: "embed not using https",
|
|
262
|
+
drop_image_no_src: "image without src",
|
|
263
|
+
drop_list_element: "element {name} inside a list",
|
|
264
|
+
drop_extra_nested_list: "second and later nested lists in a list item (joined)",
|
|
265
|
+
drop_table_element: "element {name} inside a table"
|
|
266
|
+
};
|
|
267
|
+
// ../cms-contract/src/failureStatus.ts
|
|
268
|
+
/** 失敗のコードと HTTP の状態 */
|
|
269
|
+
const FAILURE_STATUS = {
|
|
270
|
+
invalid_input: 400,
|
|
271
|
+
submit_unmet: 400,
|
|
272
|
+
publish_unmet: 400,
|
|
273
|
+
save_unmet: 400,
|
|
274
|
+
version_required: 400,
|
|
275
|
+
file_required: 400,
|
|
276
|
+
file_too_large: 400,
|
|
277
|
+
unsupported_image: 400,
|
|
278
|
+
unsupported_file: 400,
|
|
279
|
+
invalid_dimensions: 400,
|
|
280
|
+
https_required: 400,
|
|
281
|
+
invalid_style: 400,
|
|
282
|
+
invalid_slug: 400,
|
|
283
|
+
reserved_slug: 400,
|
|
284
|
+
invalid_id: 400,
|
|
285
|
+
reserved_id: 400,
|
|
286
|
+
tenant_required: 400,
|
|
287
|
+
same_environment: 400,
|
|
288
|
+
ticket_required: 400,
|
|
289
|
+
ticket_invalid: 400,
|
|
290
|
+
login_required: 401,
|
|
291
|
+
unauthorized: 401,
|
|
292
|
+
reauth_required: 401,
|
|
293
|
+
invalid_mcp_token: 401,
|
|
294
|
+
mcp_signature_invalid: 401,
|
|
295
|
+
invalid_account_token: 401,
|
|
296
|
+
preview_token_required: 401,
|
|
297
|
+
api_key_required: 401,
|
|
298
|
+
invalid_api_key: 401,
|
|
299
|
+
invalid_id_token: 401,
|
|
300
|
+
invalid_app_token: 401,
|
|
301
|
+
account_not_found: 403,
|
|
302
|
+
invalid_preview_token: 403,
|
|
303
|
+
api_key_forbidden: 403,
|
|
304
|
+
mcp_not_allowed: 403,
|
|
305
|
+
insufficient_scope: 403,
|
|
306
|
+
admin_only: 403,
|
|
307
|
+
operator_read_only: 403,
|
|
308
|
+
operator_closed: 403,
|
|
309
|
+
not_trial: 403,
|
|
310
|
+
not_live: 403,
|
|
311
|
+
forbidden: 403,
|
|
312
|
+
mfa_required: 403,
|
|
313
|
+
cross_origin: 403,
|
|
314
|
+
editorial_only: 403,
|
|
315
|
+
no_linked_record: 403,
|
|
316
|
+
own_only: 403,
|
|
317
|
+
not_visible: 403,
|
|
318
|
+
published_admin_only: 403,
|
|
319
|
+
cannot_remove_self: 403,
|
|
320
|
+
cannot_change_owner: 403,
|
|
321
|
+
not_found: 404,
|
|
322
|
+
customer_not_linked: 404,
|
|
323
|
+
method_not_allowed: 405,
|
|
324
|
+
customer_pending: 409,
|
|
325
|
+
in_use: 409,
|
|
326
|
+
conflict: 409,
|
|
327
|
+
already_exists: 409,
|
|
328
|
+
duplicate_name: 409,
|
|
329
|
+
duplicate_email: 409,
|
|
330
|
+
duplicate_id: 409,
|
|
331
|
+
duplicate_slug: 409,
|
|
332
|
+
slug_taken: 409,
|
|
333
|
+
version_conflict: 409,
|
|
334
|
+
article_editing: 409,
|
|
335
|
+
invalid_state: 409,
|
|
336
|
+
unpublish_first: 409,
|
|
337
|
+
last_owner: 409,
|
|
338
|
+
last_admin: 409,
|
|
339
|
+
exceeds_own: 403,
|
|
340
|
+
already_linked: 409,
|
|
341
|
+
invalid_invite: 409,
|
|
342
|
+
run_done: 409,
|
|
343
|
+
live_audience: 409,
|
|
344
|
+
already_live: 409,
|
|
345
|
+
target_live: 409,
|
|
346
|
+
target_synthetic: 409,
|
|
347
|
+
cross_tenant: 409,
|
|
348
|
+
target_busy: 409,
|
|
349
|
+
target_frozen: 409,
|
|
350
|
+
not_frozen: 409,
|
|
351
|
+
stale: 409,
|
|
352
|
+
approval_required: 403,
|
|
353
|
+
approval_closed: 409,
|
|
354
|
+
still_frozen: 409,
|
|
355
|
+
schema_values: 409,
|
|
356
|
+
confirm_required: 409,
|
|
357
|
+
pii_unregistered_table: 409,
|
|
358
|
+
environment_limit_exceeded: 409,
|
|
359
|
+
cursor_expired: 410,
|
|
360
|
+
body_too_large: 413,
|
|
361
|
+
rate_limited: 429,
|
|
362
|
+
upstream_failed: 502,
|
|
363
|
+
not_configured: 503,
|
|
364
|
+
unavailable: 503,
|
|
365
|
+
writes_paused: 503,
|
|
366
|
+
environment_frozen: 503,
|
|
367
|
+
audit_unshipped: 503,
|
|
368
|
+
grants_not_revoked: 503,
|
|
369
|
+
notice_failed: 503,
|
|
370
|
+
job_failed: 500,
|
|
371
|
+
internal_error: 500,
|
|
372
|
+
incomplete: 500
|
|
373
|
+
};
|
|
374
|
+
// ../cms-contract/src/errors.ts
|
|
375
|
+
/** 変更の操作で受け付ける本文の大きさ(/api、バイト数、multipart のアップロードは ASSET_SIZE_MAX) */
|
|
376
|
+
const JSON_BODY_MAX = 1048576;
|
|
377
|
+
/** 画面の側だけのコード(通信の失敗と JSON でない応答。HTTP の状態を持たない) */
|
|
378
|
+
const NETWORK_ERROR = "network_error";
|
|
379
|
+
/** エラーのコードと HTTP の状態(failureStatus.ts の表の CMS の API の部分) */
|
|
380
|
+
const ERROR_STATUS = Object.fromEntries([
|
|
381
|
+
"invalid_input",
|
|
382
|
+
"submit_unmet",
|
|
383
|
+
"publish_unmet",
|
|
384
|
+
"save_unmet",
|
|
385
|
+
"version_required",
|
|
386
|
+
"file_required",
|
|
387
|
+
"file_too_large",
|
|
388
|
+
"unsupported_image",
|
|
389
|
+
"unsupported_file",
|
|
390
|
+
"invalid_dimensions",
|
|
391
|
+
"https_required",
|
|
392
|
+
"invalid_style",
|
|
393
|
+
"login_required",
|
|
394
|
+
"invalid_mcp_token",
|
|
395
|
+
"mcp_signature_invalid",
|
|
396
|
+
"invalid_account_token",
|
|
397
|
+
"preview_token_required",
|
|
398
|
+
"api_key_required",
|
|
399
|
+
"invalid_api_key",
|
|
400
|
+
"invalid_id_token",
|
|
401
|
+
"invalid_app_token",
|
|
402
|
+
"account_not_found",
|
|
403
|
+
"invalid_preview_token",
|
|
404
|
+
"api_key_forbidden",
|
|
405
|
+
"mcp_not_allowed",
|
|
406
|
+
"insufficient_scope",
|
|
407
|
+
"admin_only",
|
|
408
|
+
"operator_read_only",
|
|
409
|
+
"operator_closed",
|
|
410
|
+
"not_trial",
|
|
411
|
+
"not_live",
|
|
412
|
+
"forbidden",
|
|
413
|
+
"editorial_only",
|
|
414
|
+
"no_linked_record",
|
|
415
|
+
"own_only",
|
|
416
|
+
"not_visible",
|
|
417
|
+
"published_admin_only",
|
|
418
|
+
"cannot_remove_self",
|
|
419
|
+
"cannot_change_owner",
|
|
420
|
+
"not_found",
|
|
421
|
+
"customer_not_linked",
|
|
422
|
+
"customer_pending",
|
|
423
|
+
"method_not_allowed",
|
|
424
|
+
"in_use",
|
|
425
|
+
"duplicate_name",
|
|
426
|
+
"duplicate_email",
|
|
427
|
+
"duplicate_id",
|
|
428
|
+
"duplicate_slug",
|
|
429
|
+
"version_conflict",
|
|
430
|
+
"article_editing",
|
|
431
|
+
"invalid_state",
|
|
432
|
+
"unpublish_first",
|
|
433
|
+
"last_admin",
|
|
434
|
+
"exceeds_own",
|
|
435
|
+
"reauth_required",
|
|
436
|
+
"approval_required",
|
|
437
|
+
"stale",
|
|
438
|
+
"approval_closed",
|
|
439
|
+
"already_linked",
|
|
440
|
+
"invalid_invite",
|
|
441
|
+
"run_done",
|
|
442
|
+
"cursor_expired",
|
|
443
|
+
"body_too_large",
|
|
444
|
+
"rate_limited",
|
|
445
|
+
"upstream_failed",
|
|
446
|
+
"not_configured",
|
|
447
|
+
"unavailable",
|
|
448
|
+
"writes_paused",
|
|
449
|
+
"environment_frozen",
|
|
450
|
+
"job_failed",
|
|
451
|
+
"internal_error",
|
|
452
|
+
NETWORK_ERROR
|
|
453
|
+
].flatMap((code) => code === NETWORK_ERROR ? [] : [[code, FAILURE_STATUS[code]]]));
|
|
454
|
+
// ../cms-contract/src/assets.ts
|
|
455
|
+
/** 画像1枚の大きさの上限(バイト、アップロード・取り込みで共通) */
|
|
456
|
+
const ASSET_SIZE_MAX = 10485760;
|
|
457
|
+
// ../cms-contract/src/errorLabelsEn.ts
|
|
458
|
+
/** エラーの英語のカタログ */
|
|
459
|
+
const ERROR_MESSAGES_EN = {
|
|
460
|
+
targets: {
|
|
461
|
+
request: "creation request",
|
|
462
|
+
role: "role",
|
|
463
|
+
media: "media",
|
|
464
|
+
record: "master",
|
|
465
|
+
asset: "image",
|
|
466
|
+
mcp: "MCP",
|
|
467
|
+
version: "version",
|
|
468
|
+
profile: "profile",
|
|
469
|
+
portrait: "portrait",
|
|
470
|
+
extension: "extension",
|
|
471
|
+
account: "account",
|
|
472
|
+
comment: "comment",
|
|
473
|
+
view: "view",
|
|
474
|
+
webhook: "webhook",
|
|
475
|
+
external_function: "external function",
|
|
476
|
+
external_screen: "external screen",
|
|
477
|
+
api_key: "API key",
|
|
478
|
+
preview: "preview signing key",
|
|
479
|
+
trash: "trash",
|
|
480
|
+
customer: "customer",
|
|
481
|
+
customer_identity: "customer identity",
|
|
482
|
+
customer_grant: "customer grant",
|
|
483
|
+
app: "app",
|
|
484
|
+
installation: "installation",
|
|
485
|
+
invitation: "invitation",
|
|
486
|
+
environment: "environment"
|
|
487
|
+
},
|
|
488
|
+
codes: {
|
|
489
|
+
invalid_input: "The input is invalid.",
|
|
490
|
+
submit_unmet: "The submission requirements are not met.",
|
|
491
|
+
publish_unmet: "The publishing requirements are not met.",
|
|
492
|
+
save_unmet: "The saving requirements are not met.",
|
|
493
|
+
version_required: "The base version (version) is required.",
|
|
494
|
+
file_required: "Choose an image file.",
|
|
495
|
+
file_too_large: "Images must be at most {assetMaxMB, number} MB.",
|
|
496
|
+
unsupported_image: "Unsupported image format (PNG, JPEG, GIF, WebP).",
|
|
497
|
+
unsupported_file: "Unsupported file format (PDF, ZIP, text, CSV, Word, Excel, PowerPoint).",
|
|
498
|
+
invalid_dimensions: "The image dimensions are invalid.",
|
|
499
|
+
https_required: "Specify an https URL.",
|
|
500
|
+
invalid_style: "Invalid art style ID (choose from styles).",
|
|
501
|
+
login_required: "Login is required.",
|
|
502
|
+
invalid_mcp_token: "The call from MCP is invalid.",
|
|
503
|
+
mcp_signature_invalid: "Cannot verify the call from the MCP server. Contact the operator.",
|
|
504
|
+
invalid_account_token: "The app account credential token is invalid. Replace it with the token shown on the screen.",
|
|
505
|
+
preview_token_required: "A preview signature is required to get drafts.",
|
|
506
|
+
invalid_preview_token: "The preview signature does not match.",
|
|
507
|
+
api_key_required: "An API key is required (Authorization: Bearer).",
|
|
508
|
+
invalid_api_key: "The API key is invalid.",
|
|
509
|
+
invalid_id_token: "The ID token is invalid. Get a new one and send it again.",
|
|
510
|
+
invalid_app_token: "The app credential is invalid. Get a new app JWT or installation token and send it again.",
|
|
511
|
+
api_key_forbidden: "{target, select, none {The API key is not allowed to get this.} other {The API key is not allowed to get {target}.}}",
|
|
512
|
+
account_not_found: "There is no account{name, select, none {} other { for {name}}}. Ask an administrator to register the account.",
|
|
513
|
+
mcp_not_allowed: "This operation is not available from MCP.",
|
|
514
|
+
insufficient_scope: "The scope allowed for the AI connection does not permit this operation. Reconnect and allow {scope, select, content_publish {\"up to publishing\"} other {the required scope}}.",
|
|
515
|
+
admin_only: "Only administrators can do this.",
|
|
516
|
+
operator_read_only: "The operator support access is read-only, so changes are not allowed.",
|
|
517
|
+
not_trial: "This operation is only for projects with the trial flag.",
|
|
518
|
+
not_live: "This operation is only available in the live environment. Use the admin screen of the live environment.",
|
|
519
|
+
operator_closed: "This operation is outside what operator support access allows (accounts, roles, integrations, apps, customer IDs, permissions and so on).",
|
|
520
|
+
forbidden: "{target, select, none {You do not have permission for this operation.} other {You do not have permission for this operation on {target}.}}",
|
|
521
|
+
editorial_only: "{target, select, none {This} other {The {target}}} can only be created by accounts with publishing permission.",
|
|
522
|
+
no_linked_record: "Accounts without a linked {name} cannot do this.",
|
|
523
|
+
own_only: "You can only operate on your own {target, select, none {items} other {{target}}}.",
|
|
524
|
+
not_visible: "You cannot view unpublished {target, select, none {items} other {{target}}} of other people.",
|
|
525
|
+
published_admin_only: "Editing published records requires publishing permission.",
|
|
526
|
+
cannot_remove_self: "You cannot remove yourself from the link.",
|
|
527
|
+
cannot_change_owner: "The owner cannot be changed.",
|
|
528
|
+
not_found: "{target, select, none {The target} other {The {target}}} was not found.",
|
|
529
|
+
method_not_allowed: "This path does not accept this method.",
|
|
530
|
+
customer_not_linked: "No customer is linked to this account.",
|
|
531
|
+
customer_pending: "The link of this account becomes usable after review by the operator.",
|
|
532
|
+
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.} module {Cannot delete because it is referenced by {count, number} {name, select, none {extension records} other {{name}}}.} other {Cannot delete because it is in use.}}",
|
|
533
|
+
duplicate_name: "The same name already exists.",
|
|
534
|
+
duplicate_email: "An account with the same email address already exists.",
|
|
535
|
+
duplicate_id: "This ID is already in use.",
|
|
536
|
+
duplicate_slug: "This slug is already in use.",
|
|
537
|
+
version_conflict: "This conflicted with another update. Load the latest version and try again.",
|
|
538
|
+
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.",
|
|
539
|
+
invalid_state: "This operation is not possible in the current state.",
|
|
540
|
+
unpublish_first: "Unpublish published records before deleting them.",
|
|
541
|
+
last_admin: "The last administrator cannot be removed or demoted from the administrator role.",
|
|
542
|
+
exceeds_own: "You cannot grant permissions wider than your own role.",
|
|
543
|
+
reauth_required: "Log in again before approving.",
|
|
544
|
+
approval_required: "This change reaches production, so it needs a request and approval.",
|
|
545
|
+
stale: "The content changed after the request. Request again.",
|
|
546
|
+
approval_closed: "This request can no longer be approved (applied, rejected, withdrawn or expired).",
|
|
547
|
+
cursor_expired: "The change log retention period has passed. Get all items again without cursor.",
|
|
548
|
+
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.}}",
|
|
549
|
+
run_done: "This import run is already complete. Start a new run.",
|
|
550
|
+
invalid_invite: "{reason, select, expired {The invitation has expired.} used {The invitation has already been used.} other {The invitation was not found.}}",
|
|
551
|
+
body_too_large: "The request body must be at most {bodyMaxMB, number} MB.",
|
|
552
|
+
rate_limited: "Too many calls. Wait a while and try again.",
|
|
553
|
+
upstream_failed: "{resource, select, image {Could not fetch the image.} webhook {Could not send to the webhook.} file {Could not fetch the file.} source {Could not fetch content from the source. Check the connection details (service ID, API key and so on).} hosting {Could not upload the site to the hosting location.} other {Could not fetch the page.}}",
|
|
554
|
+
not_configured: "Configuration is missing.{name, select, none {} other { {name}}}",
|
|
555
|
+
unavailable: "Temporarily unable to process. Wait a while and try again.",
|
|
556
|
+
writes_paused: "Saving is paused during a deployment. Try again in a few minutes.",
|
|
557
|
+
environment_frozen: "This environment has stopped saving (during a live switch, or it is no longer live). Reading is possible.",
|
|
558
|
+
job_failed: "The job failed.{name, select, none {} other { {name}}}",
|
|
559
|
+
internal_error: "The server failed to process the request. Try again.",
|
|
560
|
+
network_error: "Communication failed. Check the connection and try again."
|
|
561
|
+
},
|
|
562
|
+
states: {
|
|
563
|
+
not_draft: "Not a draft.",
|
|
564
|
+
no_draft: "There are no unpublished changes apart from the published version.",
|
|
565
|
+
not_in_review: "Not in review.",
|
|
566
|
+
request_handled: "This request has already been handled.",
|
|
567
|
+
deleted: "Already deleted.",
|
|
568
|
+
not_deleted: "Cannot restore because it is not deleted.",
|
|
569
|
+
schema_confirm: "This includes changes with impact. Check the counts before saving.",
|
|
570
|
+
no_publishing: "This collection has no workflow.",
|
|
571
|
+
no_review: "The workflow of this collection has no review.",
|
|
572
|
+
not_published: "Not published or scheduled.",
|
|
573
|
+
collection_rows: "Records remain. Check the counts before deleting.",
|
|
574
|
+
restore_conflict: "Cannot restore because {name, select, none {the same content} other {{name}}} already exists.",
|
|
575
|
+
collection_exists: "Cannot restore because a collection with the same id already exists.",
|
|
576
|
+
collection_missing: "Cannot restore because the collection is deleted. Restore the collection first.",
|
|
577
|
+
not_restorable: "Cannot restore because it was deleted by a personal deletion request or after the retention of a closed customer.",
|
|
578
|
+
installation_state: "This operation is not possible in the current installation state.",
|
|
579
|
+
site_deploy: "The site cannot be uploaded now. Another upload is in progress, or the site is stopped or removed.",
|
|
580
|
+
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.",
|
|
581
|
+
required_module: "Required extensions cannot be stopped or removed.",
|
|
582
|
+
app_installed: "An app can be installed only once per project.",
|
|
583
|
+
app_dependencies: "Cannot satisfy the app dependencies. Check the reasons in conflicts.",
|
|
584
|
+
app_reinstalled: "The data of the old installation cannot be deleted because the same app has been reinstalled.",
|
|
585
|
+
app_managed: "This registration is managed by an app installation. Change it by consenting to a new app version.",
|
|
586
|
+
request_key_reused: "A record with another person, channel or purpose already exists for the same deduplication key.",
|
|
587
|
+
no_tenant: "Cannot invite because the project does not belong to an organization. Ask the operator to add it to an organization.",
|
|
588
|
+
schema_changed: "Could not save because the schema changed. Reload the screen.",
|
|
589
|
+
customer_inactive: "This customer is suspended or closed, so the operation is not possible.",
|
|
590
|
+
self_limit: "The limit of records per person has been reached.",
|
|
591
|
+
already_live: "This environment is already live.",
|
|
592
|
+
target_live: "The live environment cannot be deleted. Switch to another environment first.",
|
|
593
|
+
target_synthetic: "An environment with synthetic data cannot become live.",
|
|
594
|
+
no_changes: "There are no differences from live.",
|
|
595
|
+
schema_values: "Cannot apply because the changes remove fields with values. Move the values in live and try again.",
|
|
596
|
+
environment_limit: "The number of environments has reached the plan limit.",
|
|
597
|
+
environment_busy: "This environment is in the middle of another operation. Wait a moment and try again.",
|
|
598
|
+
unregistered_table: "Cannot copy because some tables have no decided handling of personal information.",
|
|
599
|
+
not_frozen: "Writes to live are not stopped.",
|
|
600
|
+
approval_running: "An approved operation is running. Wait a moment and try again."
|
|
601
|
+
},
|
|
602
|
+
own: {
|
|
603
|
+
profile: "You can only edit your own profile.",
|
|
604
|
+
portrait: "You can only change your own portrait."
|
|
605
|
+
},
|
|
606
|
+
noLink: { mcp: "Accounts without a linked {name} cannot use MCP." },
|
|
607
|
+
linkedRecord: "record",
|
|
608
|
+
titles: {
|
|
609
|
+
invalid_input: "Input error",
|
|
610
|
+
submit_unmet: "Cannot submit",
|
|
611
|
+
publish_unmet: "Cannot publish",
|
|
612
|
+
save_unmet: "Cannot save",
|
|
613
|
+
version_required: "Input error",
|
|
614
|
+
file_required: "Input error",
|
|
615
|
+
file_too_large: "Input error",
|
|
616
|
+
unsupported_image: "Input error",
|
|
617
|
+
unsupported_file: "Input error",
|
|
618
|
+
invalid_dimensions: "Input error",
|
|
619
|
+
https_required: "Input error",
|
|
620
|
+
invalid_style: "Input error",
|
|
621
|
+
login_required: "Login error",
|
|
622
|
+
invalid_mcp_token: "Login error",
|
|
623
|
+
mcp_signature_invalid: "Login error",
|
|
624
|
+
invalid_account_token: "Login error",
|
|
625
|
+
preview_token_required: "Login error",
|
|
626
|
+
invalid_preview_token: "Login error",
|
|
627
|
+
api_key_required: "Login error",
|
|
628
|
+
invalid_api_key: "Login error",
|
|
629
|
+
invalid_id_token: "Login error",
|
|
630
|
+
invalid_app_token: "Login error",
|
|
631
|
+
api_key_forbidden: "Not allowed",
|
|
632
|
+
account_not_found: "Login error",
|
|
633
|
+
mcp_not_allowed: "Not allowed",
|
|
634
|
+
insufficient_scope: "Not allowed",
|
|
635
|
+
admin_only: "Not allowed",
|
|
636
|
+
operator_read_only: "Not allowed",
|
|
637
|
+
operator_closed: "Not allowed",
|
|
638
|
+
not_trial: "Not allowed",
|
|
639
|
+
not_live: "Live environment only",
|
|
640
|
+
forbidden: "Not allowed",
|
|
641
|
+
editorial_only: "Not allowed",
|
|
642
|
+
no_linked_record: "Not allowed",
|
|
643
|
+
own_only: "Not allowed",
|
|
644
|
+
not_visible: "Not allowed",
|
|
645
|
+
published_admin_only: "Not allowed",
|
|
646
|
+
cannot_remove_self: "Not allowed",
|
|
647
|
+
cannot_change_owner: "Not allowed",
|
|
648
|
+
not_found: "Not found",
|
|
649
|
+
method_not_allowed: "Not possible",
|
|
650
|
+
customer_not_linked: "Not found",
|
|
651
|
+
customer_pending: "Pending review",
|
|
652
|
+
in_use: "Cannot delete",
|
|
653
|
+
duplicate_name: "Duplicate",
|
|
654
|
+
duplicate_email: "Duplicate",
|
|
655
|
+
duplicate_id: "Duplicate",
|
|
656
|
+
duplicate_slug: "Duplicate",
|
|
657
|
+
version_conflict: "Update conflict",
|
|
658
|
+
article_editing: "Being edited",
|
|
659
|
+
invalid_state: "Not possible",
|
|
660
|
+
unpublish_first: "Cannot delete",
|
|
661
|
+
last_admin: "Not possible",
|
|
662
|
+
exceeds_own: "Not allowed",
|
|
663
|
+
reauth_required: "Log in again",
|
|
664
|
+
approval_required: "Approval required",
|
|
665
|
+
stale: "Request changed",
|
|
666
|
+
approval_closed: "Cannot approve",
|
|
667
|
+
cursor_expired: "Reload required",
|
|
668
|
+
already_linked: "Already linked",
|
|
669
|
+
invalid_invite: "Invitation unusable",
|
|
670
|
+
run_done: "Run complete",
|
|
671
|
+
body_too_large: "Input error",
|
|
672
|
+
rate_limited: "Rate limited",
|
|
673
|
+
upstream_failed: "Fetch error",
|
|
674
|
+
not_configured: "Configuration error",
|
|
675
|
+
unavailable: "Temporary error",
|
|
676
|
+
writes_paused: "Saving paused",
|
|
677
|
+
environment_frozen: "Saving stopped",
|
|
678
|
+
job_failed: "Job failed",
|
|
679
|
+
internal_error: "Server error",
|
|
680
|
+
network_error: "Network error"
|
|
681
|
+
},
|
|
682
|
+
requiredTitle: "Required fields missing"
|
|
683
|
+
};
|
|
684
|
+
// ../cms-contract/src/issueLabels.ts
|
|
685
|
+
/** 機能をまたいで共通の入力 */
|
|
686
|
+
const INPUT = {
|
|
687
|
+
name_required: "名前が未入力",
|
|
688
|
+
slug_required: "スラッグが未入力",
|
|
689
|
+
slug_max: "スラッグは40文字まで",
|
|
690
|
+
slug_chars: "スラッグは英小文字・数字・ハイフン・アンダーラインだけ",
|
|
691
|
+
slug_uuid: "スラッグに UUID の形は使えない",
|
|
692
|
+
url_format: "URL の形が不正",
|
|
693
|
+
https_only: "https の URL だけ",
|
|
694
|
+
body_not_json: "本文が JSON の形でない",
|
|
695
|
+
email_format: "メールアドレスの形式が不正"
|
|
696
|
+
};
|
|
697
|
+
/** ユーザーと権限 */
|
|
698
|
+
const ACCOUNTS = {
|
|
699
|
+
role_id_chars: "ID は英小文字・数字・ハイフン・アンダーライン",
|
|
700
|
+
link_collection_missing: "コレクション {collection} がない",
|
|
701
|
+
unknown_environment: "環境 {id} がこのプロジェクトにない",
|
|
702
|
+
not_operator: "運営者のメールアドレスでない",
|
|
703
|
+
invitations_unavailable: "この環境では招待を使えません。必要なときは、管理者が運営に相談してください。"
|
|
704
|
+
};
|
|
705
|
+
/** アプリの登録・鍵・ホスティングするサイトへのアップロード(detail は検査のコードか、変更の問題) */
|
|
706
|
+
const APPS = {
|
|
707
|
+
app_manifest: "マニフェストの形が正しくありません",
|
|
708
|
+
app_manifest_detail: "マニフェストの形が正しくありません({detail})",
|
|
709
|
+
app_namespace: "名前空間は英小文字で始まる英小文字と数字の3〜32文字です",
|
|
710
|
+
app_namespace_taken: "この名前空間はすでに使われています(再利用できません)",
|
|
711
|
+
app_no_tenant: "コンソールで管理していないプロジェクトでは、アプリを登録できません。必要なときは、管理者が運営に相談してください。",
|
|
712
|
+
app_slots: "埋め込み先のコレクションを選んでください(本文を求める埋め込み先は本文の項目を持つコレクション)",
|
|
713
|
+
app_not_installable: "このアプリはインストールできません(自分の組織のアプリと確認済みのアプリだけ)。アプリの一覧から選び直してください。",
|
|
714
|
+
app_no_registry: "このプロジェクトでは、アプリを追加できません。必要なときは、管理者が運営に相談してください。",
|
|
715
|
+
app_changed: "確認した後にアプリのバージョンか能力が変わりました。もう一度確認してください。",
|
|
716
|
+
app_dependency: "依存先のアプリが登録簿にないか、アプリの種類でないか、指した設定が依存先にありません",
|
|
717
|
+
app_incompatible: "同じ世代の中で互換のない変更です。世代(major)を上げるか、変更を戻してください。",
|
|
718
|
+
app_incompatible_detail: "同じ世代の中で互換のない変更です。世代(major)を上げるか、変更を戻してください({detail})。",
|
|
719
|
+
app_key_private: "秘密鍵の部分(d など)を含む鍵は登録できません。公開鍵だけを送ってください。",
|
|
720
|
+
app_key_unsupported: "登録できるのは ES256(EC の P-256)か RS256(RSA)の署名用の公開鍵だけです",
|
|
721
|
+
app_key_weak: "RSA の鍵は2048ビット以上にしてください",
|
|
722
|
+
app_key_kid: "kid は1〜128文字の文字列にしてください",
|
|
723
|
+
app_key_duplicate_kid: "同じ kid の鍵が複数あります",
|
|
724
|
+
app_key_duplicate_key: "同じ鍵が複数あります(交換の鍵とアップロードの鍵には別の鍵を使ってください)",
|
|
725
|
+
deploy_artifact: "成果物の形が正しくありません",
|
|
726
|
+
deploy_artifact_required: "成果物(artifact)か、上げ直すバージョン(version)のどちらか1つを送ってください",
|
|
727
|
+
deploy_secrets: "秘密の値(secrets)は名前から文字列への JSON のオブジェクトにしてください",
|
|
728
|
+
deploy_version_not_found: "そのバージョンの成果物がありません",
|
|
729
|
+
deploy_binding: "変数か秘密の値の名前か値を受け付けられません",
|
|
730
|
+
artifact_too_large: "成果物が大きさの上限を超えています",
|
|
731
|
+
artifact_format: "成果物の形ではありません(tunasand site で組んでください)",
|
|
732
|
+
artifact_header: "成果物の見出しの欄か値が正しくありません",
|
|
733
|
+
artifact_main: "入口(main)が ESM か CommonJS のモジュールにありません",
|
|
734
|
+
artifact_module: "モジュールの名前か種類が正しくありません(拡張子つきの名前だけ)",
|
|
735
|
+
artifact_asset: "資産の道か大きさが正しくありません",
|
|
736
|
+
artifact_size_mismatch: "成果物の見出しの大きさと中身が合いません",
|
|
737
|
+
binding_invalid_name: "名前は英大文字で始まる英大文字と数字と _ の32文字までです",
|
|
738
|
+
binding_reserved_name: "Tunasand が使う名前か、予約した名前です",
|
|
739
|
+
binding_duplicate_name: "同じ名前が変数と秘密の値に重なっています",
|
|
740
|
+
binding_tunasand_value: "Tunasand の秘密の値か、それを含む値は使えません",
|
|
741
|
+
binding_too_many: "変数と秘密の値と資源の数が上限を超えています"
|
|
742
|
+
};
|
|
743
|
+
/** 顧客(field・collection は表示名) */
|
|
744
|
+
const CUSTOMERS = {
|
|
745
|
+
customer_invalid_date: "日付は YYYY-MM-DD の実在する日",
|
|
746
|
+
customer_no_target_collection: "権利の対象のコレクションがない(コレクションの「要る権利」の参照の項目が指すコレクション)",
|
|
747
|
+
customer_no_target: "権利の対象のレコードがない",
|
|
748
|
+
customer_ends_before_start: "終了日が開始日より前",
|
|
749
|
+
customer_ends_required: "終了日の指定が要る(対象のコレクションに期間(月)の設定がないか、対象のレコードの値が空)",
|
|
750
|
+
customer_months_invalid: "対象のレコードの期間(月)が1から1200の整数でない(直すか終了日を指定する)",
|
|
751
|
+
customer_ends_unchecked: "終了日は対象の期間(月)で決まる(対象が同じ実行の前のレコードのため、テスト実行では未確認)",
|
|
752
|
+
customer_no_provider: "設定にない発行者",
|
|
753
|
+
customer_profile_collection: "プロフィールのコレクションは、一意の顧客への参照の項目を持つコレクション",
|
|
754
|
+
customer_not_configured: "顧客の機能が有効でないか、本人の証明の発行者がありません。管理者が設定の顧客で設定してください。",
|
|
755
|
+
customer_read_log_not_configured: "本人のレコードの読み取りを記録する場所がないため、使えません。運営者に連絡してください。",
|
|
756
|
+
customer_version_too_long: "設問のバージョンは64文字まで",
|
|
757
|
+
customer_id_shape: "{field}は顧客の ID",
|
|
758
|
+
customer_missing: "{field}の顧客 {id} がない",
|
|
759
|
+
customer_singleton: "{collection}の{field}(オブジェクト形式のコレクションの顧客フィールドは顧客の削除で扱えない。項目を外してから消す)",
|
|
760
|
+
customer_cascade_other: "{collection}の{field}(cascade で消すレコードが、ほかの顧客を指す)",
|
|
761
|
+
customer_cascade_vanished: "{collection}(計画の後に cascade で消すレコードが消えた。もう一度消す)",
|
|
762
|
+
customer_erasure_confirm: "確認のため、本文 confirm に顧客の ID をもう一度入れる",
|
|
763
|
+
customer_deletion_too_large: "消すレコードと書き換えるレコードとバージョン履歴が {count, number} 件で、1回の削除に収まらない(指すレコードを先に減らす)",
|
|
764
|
+
customer_statements_too_large: "1回の削除の文が {count, number} 件で、上限を超える(指すレコードと顧客の記録を先に減らす)",
|
|
765
|
+
customer_undeclared_on_delete: "{collection}の{field}(顧客が消えたときの扱い onDelete の設定がない。スキーマで設定してから消す)",
|
|
766
|
+
consent_purpose: "目的は service・marketing か、顧客の設定で宣言した目的",
|
|
767
|
+
consent_address: "宛先の形がチャネルに合わない(email はメールアドレス、sms は電話番号、line は userId)",
|
|
768
|
+
consent_target: "email と sms は address が要る(line は customerId か address)",
|
|
769
|
+
consent_method: "出どころの種類で選べない取り方(アカウントは staff だけ)"
|
|
770
|
+
};
|
|
771
|
+
/** レコード(key は項目の key、labels は項目の表示名の並び、collection は表示名) */
|
|
772
|
+
const RECORDS = {
|
|
773
|
+
unfilterable_field: "{key}は絞り込みに使用できない項目",
|
|
774
|
+
unwritable_field: "{key}はこの資格で見られない項目のため書けない(見える範囲)",
|
|
775
|
+
self_unwritable: "{key}は本人が書けない項目",
|
|
776
|
+
unique_part_required: "{key}は1人1行の組の項目のため必須",
|
|
777
|
+
reference_unavailable: "{key}の参照先は選べない(公開中のレコードだけ)",
|
|
778
|
+
request_reject_note_required: "却下の理由が未入力",
|
|
779
|
+
patch_body_shape: "本文は項目の key と値のオブジェクト",
|
|
780
|
+
record_no_review: "レビューなしのコレクション",
|
|
781
|
+
generated_slug: "このコレクションのスラッグは CMS が振るため指定できない",
|
|
782
|
+
unique_taken: "{labels}が同じレコードがすでにある",
|
|
783
|
+
unique_duplicates: "{collection}に{labels}が同じレコードが{count, number}件ある(重複を直してから一意にする)",
|
|
784
|
+
use_at: "{collection}の{field}{rest, select, none {} other {({rest})}}",
|
|
785
|
+
public_in_private_field: "非公開のメディアだけの項目に公開の画像やファイルがある(この項目からアップロードし直す)"
|
|
786
|
+
};
|
|
787
|
+
/** ゴミ箱から戻せない理由の名前(reason は問題) */
|
|
788
|
+
const TRASH = {
|
|
789
|
+
trash_record: "{collection}のレコード {id}",
|
|
790
|
+
trash_unique_holder: "{collection}のレコード({reason})",
|
|
791
|
+
trash_customer_missing: "{collection}の{field}が指す顧客 {id}(顧客がない)"
|
|
792
|
+
};
|
|
793
|
+
/** スキーマ・設定・拡張機能(parts は設定の部分の id: general・body・schema) */
|
|
794
|
+
const SETTINGS = {
|
|
795
|
+
renamed_replacement: "id を変更するコレクションの選択肢の置き換えは、id の変更と別に保存してください",
|
|
796
|
+
project_name_required: "プロジェクトの名前が未入力",
|
|
797
|
+
project_slug_invalid: "スラッグは英小文字、数字、ハイフンで、ID の形にできません",
|
|
798
|
+
project_slug_reserved: "このスラッグは予約されているため使えません",
|
|
799
|
+
project_slug_taken: "このスラッグは組織のほかのプロジェクトが使っています",
|
|
800
|
+
time_zone_invalid: "タイムゾーンの名前が不正(例: Asia/Tokyo)",
|
|
801
|
+
required_extension: "導入先の設定で必須の拡張機能",
|
|
802
|
+
unknown_setting_field: "設定のページにない項目",
|
|
803
|
+
module_no_settings: "設定値を持たない拡張機能",
|
|
804
|
+
module_invalid_settings: "設定値が正しくありません。",
|
|
805
|
+
config_corrupt: "プロジェクト {id} の DB の設定の値が壊れています({parts}、値の修復が必要)。",
|
|
806
|
+
config_missing: "プロジェクト {id} の DB に設定がありません({parts}、プロジェクトのテンプレートの適用が必要)。"
|
|
807
|
+
};
|
|
808
|
+
/** 拡張機能の設定値(settingProblems.ts の SettingProblem、field は設定のページの項目名、なければ設定値のキー) */
|
|
809
|
+
const SETTING_VALUES = {
|
|
810
|
+
setting_text: "「{field}」に文字列を入力してください。",
|
|
811
|
+
setting_integer_min: "「{field}」は{min, number}以上の整数にしてください。",
|
|
812
|
+
setting_boolean: "「{field}」はオンかオフで指定してください。",
|
|
813
|
+
setting_text_list: "「{field}」は文字列の一覧にしてください。",
|
|
814
|
+
setting_choice: "「{field}」は次から選んでください: {choices}",
|
|
815
|
+
setting_duplicate: "「{field}」の「{value}」が重なっています。",
|
|
816
|
+
setting_required: "「{field}」を1つ以上指定してください。",
|
|
817
|
+
setting_shape: "「{field}」の形が正しくありません。"
|
|
818
|
+
};
|
|
819
|
+
/** コンテンツと顧客の取り込み(problem は値の問題、ids は ID の並び) */
|
|
820
|
+
const TRANSFER = {
|
|
821
|
+
unmapped_rows: "コレクション {collection} に対応表の前に取り込んだ同じ ID のレコード({ids}{more, plural, =0 {} other { ほか#件}})があり、取り込めない(対応表の前に取り込んだプロジェクトには取り込み直さない)",
|
|
822
|
+
screens_shape: "画面の設定の形が不正",
|
|
823
|
+
reimport_unknown: "この環境に取り出し元 {source} の対応表がないため、取り込み直さない(取り込み直しは同じ取り出し元で移した環境だけ)",
|
|
824
|
+
import_duplicate_in_input: "入力の中に ID {id} が複数",
|
|
825
|
+
import_conflict_in_input: "{raw} は小文字の {id} でほかのレコードとぶつかる",
|
|
826
|
+
import_existing_id: "ID {id} のレコードがすでにある",
|
|
827
|
+
import_conflict_with_existing: "{raw} は小文字の {id} で既存のレコードとぶつかる",
|
|
828
|
+
import_publish_failed: "公開できず下書きのまま: {problem}",
|
|
829
|
+
import_image_not_url: "{src}: 画像の参照が URL でない",
|
|
830
|
+
import_ogp_failed: "{href}: リンク先の OGP を取得できない(題名は URL のまま)",
|
|
831
|
+
import_media_value: "画像は URL の文字列か '{' url, alt '}' か '{' asset '}'",
|
|
832
|
+
import_origin_required: "対応表を持つ取り込みでは origin_id が必要",
|
|
833
|
+
import_origin_unresolved: "{path}: 元の ID のレコードが対応表にない(参照先を先に取り込む)",
|
|
834
|
+
import_map_changed: "取り込みの後にレコードが変わった(バージョンが対応表と違う)",
|
|
835
|
+
import_map_missing: "対応表の行が消えている(作り直さない)",
|
|
836
|
+
import_map_closed: "対応表の行が削除中か墓標",
|
|
837
|
+
import_map_no_key: "対応表の鍵を開けない(別のプロジェクトの DB をコピーした)",
|
|
838
|
+
import_map_raced: "同時の取り込みか人の編集で、対応表かレコードが先に変わった",
|
|
839
|
+
import_duplicate_identity: "同じ紐付けが複数",
|
|
840
|
+
import_duplicate_grant: "同じ権利(対象のコレクションと対象のレコード、または key)が複数",
|
|
841
|
+
import_grant_target_changed: "取り込んだ権利の対象は変えられない(key を変えて別の権利にする)",
|
|
842
|
+
import_identity_taken: "{customer, select, none {紐付けがほかの顧客にある} other {紐付けがほかの顧客 {customer} にある}}",
|
|
843
|
+
import_closed_in_conflict: "取り出し元の退会だけを当てた(ほかは衝突で書かない)",
|
|
844
|
+
import_closes_in_conflict: "取り出し元の退会だけを当てる予定(ほかは衝突で書かない)",
|
|
845
|
+
import_overwritten: "取り込みの後の変更を、取り出し元の値で上書きした",
|
|
846
|
+
import_overwrite_note: "上書き(overwrite)の顧客がいるときは理由 note が必要",
|
|
847
|
+
import_asset_not_stored: "同じ内容の画像かファイルが保存されていない",
|
|
848
|
+
import_media_failed: "{reason, select, forbidden {画像とファイルを作成する権限がない} https_required {https の URL だけ} upstream_failed {取得できない} unsupported_image {対応していない画像の形式(PNG・JPEG・GIF・WebP)} unsupported_file {対応していないファイルの形式} file_too_large {大きさの上限を超える} other {取り込めない}}",
|
|
849
|
+
import_phase_unpublishable: "コレクションどうしの循環のステップは編集機能を持つコレクションだけ(1段目を下書きで作るため)"
|
|
850
|
+
};
|
|
851
|
+
/** 取り込みの問題の種類の名前(ImportProblem の code) */
|
|
852
|
+
const IMPORT_KINDS = {
|
|
853
|
+
import_kind_unknown_collection: "取り込めないコレクション",
|
|
854
|
+
import_kind_forbidden: "作成の権限がない",
|
|
855
|
+
import_kind_invalid_id: "ID の形が不正",
|
|
856
|
+
import_kind_id_conflict: "ID の変換でぶつかる",
|
|
857
|
+
import_kind_duplicate_id: "ID が重複",
|
|
858
|
+
import_kind_unknown_field: "スキーマにない項目(取り込まない)",
|
|
859
|
+
import_kind_invalid_value: "値の形が不正",
|
|
860
|
+
import_kind_image_failed: "画像を取り込めない",
|
|
861
|
+
import_kind_markdown: "本文を変換できない",
|
|
862
|
+
import_kind_save_rejected: "保存の検査で拒否",
|
|
863
|
+
import_kind_reference_lowercased: "参照の ID を小文字に変換",
|
|
864
|
+
import_kind_origin_missing: "元の ID を対応表で引けない",
|
|
865
|
+
import_kind_map_conflict: "対応表と行が合わない(取り込みの後に変わった・消えた)",
|
|
866
|
+
import_kind_map_unavailable: "対応表の鍵がない(SECRETS_KEY なし)",
|
|
867
|
+
import_kind_identity_taken: "紐付けがほかの顧客にある"
|
|
868
|
+
};
|
|
869
|
+
/** 配信 API の入力(max は上限、path・token・key・name・op・raw は要求の中の値) */
|
|
870
|
+
const DELIVERY = {
|
|
871
|
+
delivery_path_count: "path は1〜{max, number}件",
|
|
872
|
+
delivery_path_format: "path は / で始まる配信 API の中のパス: {path}",
|
|
873
|
+
delivery_path_bundle: "path に一式は指定不可",
|
|
874
|
+
delivery_path_route_checked: "path に顧客の API は指定不可",
|
|
875
|
+
delivery_path_wildcard: "path の * は1つまで: {path}",
|
|
876
|
+
delivery_expanded_max: "展開の後の経路は{max, number}件まで",
|
|
877
|
+
delivery_limit_range: "limit は1〜{max, number}の整数",
|
|
878
|
+
delivery_since_invalid: "since が不正(前回の API レスポンスの next)",
|
|
879
|
+
delivery_at_format: "at は ISO 8601 の日時",
|
|
880
|
+
delivery_singleton_list: "1件だけのコレクションに一覧の指定は不可",
|
|
881
|
+
delivery_fields_empty: "fields は空でない項目をコンマ区切り",
|
|
882
|
+
delivery_expand_depth: "展開の深さは{max, number}まで: {token}",
|
|
883
|
+
delivery_expand_deep_planned: "未実装の展開: 深さ2以上 {token}",
|
|
884
|
+
delivery_field_not_selectable: "選択できない項目: {key}",
|
|
885
|
+
delivery_body_in_list: "一覧で選択できない本文の項目: {key}",
|
|
886
|
+
delivery_field_not_expandable: "展開できない項目: {key}",
|
|
887
|
+
delivery_expanded_not_selectable: "展開先のコレクション {collection} で選択できない項目: {key}",
|
|
888
|
+
delivery_single: "{name} は1つだけ",
|
|
889
|
+
delivery_op_planned: "未実装の演算: {op}",
|
|
890
|
+
delivery_filter_format: "絞り込みは filter[key] か filter[key][演算]",
|
|
891
|
+
delivery_filter_nested_planned: "未実装の絞り込み: まとまりの中の項目 {key}",
|
|
892
|
+
delivery_field_not_filterable: "絞り込みできない項目: {key}",
|
|
893
|
+
delivery_op_not_allowed: "項目 {key} に使用できない演算: {op}",
|
|
894
|
+
delivery_filter_value: "項目 {key} の値が不正: {raw}",
|
|
895
|
+
delivery_ids_format: "ids は空でない id をコンマ区切りで{max, number}個まで",
|
|
896
|
+
delivery_offset_planned: "未実装の指定: offset(ページ送りは cursor)",
|
|
897
|
+
delivery_order_max: "並べ替えの key は{max, number}個まで",
|
|
898
|
+
delivery_field_not_sortable: "並べ替えできない項目: {name}",
|
|
899
|
+
delivery_order_duplicate: "並べ替えの key が重複: {name}",
|
|
900
|
+
delivery_cursor_invalid: "cursor が不正(並べ替えが前のページと違う)"
|
|
901
|
+
};
|
|
902
|
+
/** 公開のフォームの送信(web/form の検査のコード、max・min は字数か選択の数の上限・下限) */
|
|
903
|
+
const FORMS = {
|
|
904
|
+
form_required: "未入力",
|
|
905
|
+
form_too_long: "{max, number}文字まで",
|
|
906
|
+
form_too_short: "{min, number}文字以上",
|
|
907
|
+
form_invalid_email: "メールアドレスの形式が不正",
|
|
908
|
+
form_invalid_url: "URL の形が不正",
|
|
909
|
+
form_url_host: "受け付けないホストの URL",
|
|
910
|
+
form_invalid_choice: "選択肢にない値",
|
|
911
|
+
form_too_many: "{max, number}個まで",
|
|
912
|
+
form_too_few: "{min, number}個以上",
|
|
913
|
+
form_unknown_form: "フォームの名前が違う"
|
|
914
|
+
};
|
|
915
|
+
/** 連携(Webhook・外部関数・画面・API の鍵)と、外部関数の検査を完了できない理由(failure は失敗の理由: 問題か HTTP の状態などの文) */
|
|
916
|
+
const INTEGRATIONS = {
|
|
917
|
+
integration_event_name: "イベントの名前が不正",
|
|
918
|
+
integration_collections_max: "コレクションは{max, number}個まで",
|
|
919
|
+
api_keys_unavailable: "この環境では API キーを管理できません。必要なときは、管理者が運営に相談してください。",
|
|
920
|
+
hosting_unavailable: "サイトのホスティングが設定されていないため、上げられません。運営者に連絡してください。",
|
|
921
|
+
page_has_no_collection: "メニューのページ、ダッシュボード、アプリの設定の外の画面はコレクションを持たない",
|
|
922
|
+
only_field_has_field: "項目を持つのは項目の入力の外の画面だけ",
|
|
923
|
+
destination_https: "https の URL だけ(利用者の情報を含めない)",
|
|
924
|
+
destination_ip: "送り先のホストに IP アドレスは使えない",
|
|
925
|
+
destination_local: "送り先に localhost と点のないホスト名は使えない",
|
|
926
|
+
destination_own: "送り先に {brand} のドメインと {brand} が振るホスト名は使えない",
|
|
927
|
+
webhook_installation: "Webhook を持たせられるのは、動いているチャネルかアプリのインストールだけ",
|
|
928
|
+
outside_consent: "「{target}」はインストールの同意の外",
|
|
929
|
+
mcp_staff_collection_missing: "コレクション {collection} がスキーマにない",
|
|
930
|
+
mcp_staff_collection_personal: "コレクション {collection} は個人の情報を持つコレクションか非公開のコレクション(MCP にスタッフの項目を出せない)",
|
|
931
|
+
function_unfinished: "外部関数「{label}」の検査を完了できないため、{action, select, save {保存} submit {レビューの依頼} other {公開}}ができません({failure})",
|
|
932
|
+
function_budget_exceeded: "操作1回の合計の時間({sec, number}秒)を超過",
|
|
933
|
+
function_not_json: "レスポンスが JSON ではありません",
|
|
934
|
+
function_invalid_shape: "レスポンスの形が不正です",
|
|
935
|
+
function_list_column_failed: "一覧の列のレスポンスを受け取れません(送信の記録に理由)",
|
|
936
|
+
og_missing_chars: "タイトルに OG 画像の書体にない文字: {chars}"
|
|
937
|
+
};
|
|
938
|
+
/** CMS の API の検査の問題の文 */
|
|
939
|
+
const API_ISSUE_MESSAGES = {
|
|
940
|
+
...INPUT,
|
|
941
|
+
...ACCOUNTS,
|
|
942
|
+
...APPS,
|
|
943
|
+
...CUSTOMERS,
|
|
944
|
+
...RECORDS,
|
|
945
|
+
...TRASH,
|
|
946
|
+
...SETTINGS,
|
|
947
|
+
...SETTING_VALUES,
|
|
948
|
+
...TRANSFER,
|
|
949
|
+
...IMPORT_KINDS,
|
|
950
|
+
...DELIVERY,
|
|
951
|
+
...FORMS,
|
|
952
|
+
...INTEGRATIONS
|
|
953
|
+
};
|
|
954
|
+
problemTextFactory(API_ISSUE_MESSAGES);
|
|
955
|
+
// ../cms-contract/src/issueLabelsEn.ts
|
|
956
|
+
/** CMS の API の検査の問題の英語の文 */
|
|
957
|
+
const API_ISSUE_MESSAGES_EN = {
|
|
958
|
+
name_required: "Name is required",
|
|
959
|
+
slug_required: "Slug is required",
|
|
960
|
+
slug_max: "Slug must be at most 40 characters",
|
|
961
|
+
slug_chars: "Slug may contain only lowercase letters, digits, hyphens and underscores",
|
|
962
|
+
slug_uuid: "Slug must not be in UUID form",
|
|
963
|
+
url_format: "Invalid URL",
|
|
964
|
+
https_only: "Only https URLs are allowed",
|
|
965
|
+
body_not_json: "The request body is not JSON",
|
|
966
|
+
email_format: "Invalid email address",
|
|
967
|
+
role_id_chars: "ID may contain only lowercase letters, digits, hyphens and underscores",
|
|
968
|
+
link_collection_missing: "Collection {collection} does not exist",
|
|
969
|
+
unknown_environment: "Environment {id} does not exist in this project",
|
|
970
|
+
not_operator: "Not an operator email address",
|
|
971
|
+
invitations_unavailable: "This runtime has no invitation ledger",
|
|
972
|
+
app_manifest: "The manifest is malformed",
|
|
973
|
+
app_manifest_detail: "The manifest is malformed ({detail})",
|
|
974
|
+
app_namespace: "The namespace must be 3 to 32 lowercase letters and digits, starting with a letter",
|
|
975
|
+
app_namespace_taken: "This namespace is already taken (namespaces cannot be reused)",
|
|
976
|
+
app_no_tenant: "Apps cannot be registered in a project that is not linked to a tenant",
|
|
977
|
+
app_slots: "Choose the collections to embed into (embeds that need a body require a collection with a body field)",
|
|
978
|
+
app_not_installable: "This app cannot be installed (only apps of your own tenant and reviewed apps)",
|
|
979
|
+
app_no_registry: "Not connected to the app registry",
|
|
980
|
+
app_changed: "The app version or capabilities changed after you reviewed them. Review them again",
|
|
981
|
+
app_dependency: "A dependency is missing from the registry, is not an app, or does not have the referenced setting",
|
|
982
|
+
app_incompatible: "Incompatible change within the same major version. Bump the major version or revert the change",
|
|
983
|
+
app_incompatible_detail: "Incompatible change within the same major version. Bump the major version or revert the change ({detail})",
|
|
984
|
+
app_key_private: "Keys with private parts (such as d) cannot be registered. Send only the public key",
|
|
985
|
+
app_key_unsupported: "Only ES256 (EC P-256) or RS256 (RSA) public signing keys can be registered",
|
|
986
|
+
app_key_weak: "RSA keys must be at least 2048 bits",
|
|
987
|
+
app_key_kid: "kid must be a string of 1 to 128 characters",
|
|
988
|
+
app_key_duplicate_kid: "Multiple keys share the same kid",
|
|
989
|
+
app_key_duplicate_key: "The same key appears more than once (use different keys for exchange and upload)",
|
|
990
|
+
deploy_artifact: "The artifact is malformed",
|
|
991
|
+
deploy_artifact_required: "Send exactly one of artifact or version (to redeploy)",
|
|
992
|
+
deploy_secrets: "secrets must be a JSON object from names to strings",
|
|
993
|
+
deploy_version_not_found: "No artifact exists for that version",
|
|
994
|
+
deploy_binding: "A variable or secret name or value is not accepted",
|
|
995
|
+
artifact_too_large: "The artifact exceeds the size limit",
|
|
996
|
+
artifact_format: "Not an artifact (build it with tunasand site)",
|
|
997
|
+
artifact_header: "An artifact header field or value is invalid",
|
|
998
|
+
artifact_main: "The entry (main) is not an ESM or CommonJS module",
|
|
999
|
+
artifact_module: "A module name or type is invalid (names must have an extension)",
|
|
1000
|
+
artifact_asset: "An asset path or size is invalid",
|
|
1001
|
+
artifact_size_mismatch: "The sizes in the artifact header do not match its contents",
|
|
1002
|
+
binding_invalid_name: "Names must be up to 32 uppercase letters, digits and _, starting with a letter",
|
|
1003
|
+
binding_reserved_name: "The name is used by Tunasand or reserved",
|
|
1004
|
+
binding_duplicate_name: "The same name is used by a variable and a secret",
|
|
1005
|
+
binding_tunasand_value: "Tunasand secrets, or values containing them, cannot be used",
|
|
1006
|
+
binding_too_many: "Too many variables, secrets and resources",
|
|
1007
|
+
customer_invalid_date: "The date must be a real day in YYYY-MM-DD",
|
|
1008
|
+
customer_no_target_collection: "The grant target collection does not exist (the collection referenced by a collection’s required grant field)",
|
|
1009
|
+
customer_no_target: "The grant target record does not exist",
|
|
1010
|
+
customer_ends_before_start: "The end date is before the start date",
|
|
1011
|
+
customer_ends_required: "An end date is required (the target collection has no period in months, or the target record has no value)",
|
|
1012
|
+
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)",
|
|
1013
|
+
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)",
|
|
1014
|
+
customer_no_provider: "The issuer is not in the settings",
|
|
1015
|
+
customer_profile_collection: "The profile collection must have a unique reference field to customers",
|
|
1016
|
+
customer_not_configured: "enabling customers, or an identity issuer",
|
|
1017
|
+
customer_read_log_not_configured: "storage for the log of reads of personal records",
|
|
1018
|
+
customer_version_too_long: "The question version must be at most 64 characters",
|
|
1019
|
+
customer_id_shape: "{field} must be a customer ID",
|
|
1020
|
+
customer_missing: "Customer {id} of {field} does not exist",
|
|
1021
|
+
customer_singleton: "{field} of {collection} (customer fields of object-format collections cannot be handled by customer deletion; remove the field first)",
|
|
1022
|
+
customer_cascade_other: "{field} of {collection} (a record deleted by cascade points to another customer)",
|
|
1023
|
+
customer_cascade_vanished: "{collection} (a record to delete by cascade disappeared after planning; delete again)",
|
|
1024
|
+
customer_erasure_confirm: "For confirmation, enter the customer ID again in confirm",
|
|
1025
|
+
customer_deletion_too_large: "{count, number} records, rewritten records and revisions do not fit in one deletion (reduce the referencing records first)",
|
|
1026
|
+
customer_statements_too_large: "{count, number} statements exceed the limit for one deletion (reduce the referencing records and customer data first)",
|
|
1027
|
+
customer_undeclared_on_delete: "{field} of {collection} (onDelete for deleted customers is not set; set it in the schema first)",
|
|
1028
|
+
consent_purpose: "The purpose must be service, marketing, or a purpose declared in the customer settings",
|
|
1029
|
+
consent_address: "The address does not match the channel (email address for email, phone number for sms, userId for line)",
|
|
1030
|
+
consent_target: "email and sms require address (line requires customerId or address)",
|
|
1031
|
+
consent_method: "This method is not available for the source kind (account is staff only)",
|
|
1032
|
+
unfilterable_field: "{key} cannot be used as a filter",
|
|
1033
|
+
unwritable_field: "{key} cannot be written because it is not visible to this credential (visibility)",
|
|
1034
|
+
self_unwritable: "{key} cannot be written by the customer",
|
|
1035
|
+
unique_part_required: "{key} is required because it is part of a one-row-per-person key",
|
|
1036
|
+
reference_unavailable: "The reference of {key} cannot be chosen (published records only)",
|
|
1037
|
+
request_reject_note_required: "A rejection reason is required",
|
|
1038
|
+
patch_body_shape: "The body must be an object of field keys and values",
|
|
1039
|
+
record_no_review: "This collection has no review",
|
|
1040
|
+
generated_slug: "Slugs in this collection are assigned by the CMS and cannot be specified",
|
|
1041
|
+
unique_taken: "A record with the same {labels} already exists",
|
|
1042
|
+
unique_duplicates: "{count, number} records in {collection} share the same {labels} (fix the duplicates before making it unique)",
|
|
1043
|
+
use_at: "{field}{rest, select, none {} other { ({rest})}} of {collection}",
|
|
1044
|
+
public_in_private_field: "A field for private media only contains public images or files (upload them again from this field)",
|
|
1045
|
+
trash_record: "record {id} of {collection}",
|
|
1046
|
+
trash_unique_holder: "a record of {collection} ({reason})",
|
|
1047
|
+
trash_customer_missing: "customer {id} referenced by {field} of {collection} (the customer does not exist)",
|
|
1048
|
+
renamed_replacement: "Save the replacement of options of a collection whose id changes separately from the id change",
|
|
1049
|
+
project_name_required: "Project name is required",
|
|
1050
|
+
project_slug_invalid: "Use lowercase letters, digits and hyphens; ID-shaped slugs are not allowed",
|
|
1051
|
+
project_slug_reserved: "This slug is reserved",
|
|
1052
|
+
project_slug_taken: "Another project in this organization uses this slug",
|
|
1053
|
+
time_zone_invalid: "Invalid time zone name (e.g. Asia/Tokyo)",
|
|
1054
|
+
required_extension: "This extension is required by the deployment settings",
|
|
1055
|
+
unknown_setting_field: "Not a field of the settings page",
|
|
1056
|
+
module_no_settings: "This extension has no settings",
|
|
1057
|
+
module_invalid_settings: "The settings are invalid.",
|
|
1058
|
+
config_corrupt: "Settings in the DB of project {id} are corrupt ({parts}; the values need repair).",
|
|
1059
|
+
config_missing: "Settings are missing from the DB of project {id} ({parts}; apply the project template).",
|
|
1060
|
+
setting_text: "Enter text for \"{field}\".",
|
|
1061
|
+
setting_integer_min: "\"{field}\" must be an integer of at least {min, number}.",
|
|
1062
|
+
setting_boolean: "\"{field}\" must be on or off.",
|
|
1063
|
+
setting_text_list: "\"{field}\" must be a list of strings.",
|
|
1064
|
+
setting_choice: "\"{field}\" must be one of: {choices}",
|
|
1065
|
+
setting_duplicate: "\"{value}\" in \"{field}\" is duplicated.",
|
|
1066
|
+
setting_required: "Specify at least one \"{field}\".",
|
|
1067
|
+
setting_shape: "\"{field}\" is malformed.",
|
|
1068
|
+
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)",
|
|
1069
|
+
screens_shape: "The screen settings are malformed",
|
|
1070
|
+
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)",
|
|
1071
|
+
import_duplicate_in_input: "ID {id} appears more than once in the input",
|
|
1072
|
+
import_conflict_in_input: "{raw} conflicts with another record as lowercase {id}",
|
|
1073
|
+
import_existing_id: "A record with ID {id} already exists",
|
|
1074
|
+
import_conflict_with_existing: "{raw} conflicts with an existing record as lowercase {id}",
|
|
1075
|
+
import_publish_failed: "Left as a draft because it could not be published: {problem}",
|
|
1076
|
+
import_image_not_url: "{src}: the image reference is not a URL",
|
|
1077
|
+
import_ogp_failed: "{href}: could not fetch the OGP of the link (the title stays the URL)",
|
|
1078
|
+
import_media_value: "Images must be a URL string, '{' url, alt '}' or '{' asset '}'",
|
|
1079
|
+
import_origin_required: "origin_id is required for imports with an import map",
|
|
1080
|
+
import_origin_unresolved: "{path}: the record of the original ID is not in the import map (import the referenced records first)",
|
|
1081
|
+
import_map_changed: "The record changed after the import (the version differs from the import map)",
|
|
1082
|
+
import_map_missing: "The import map row is gone (not recreated)",
|
|
1083
|
+
import_map_closed: "The import map row is being deleted or is a tombstone",
|
|
1084
|
+
import_map_no_key: "Cannot open the import map key (the DB was copied from another project)",
|
|
1085
|
+
import_map_raced: "The import map or record changed first, by a concurrent import or an edit",
|
|
1086
|
+
import_duplicate_identity: "The same identity appears more than once",
|
|
1087
|
+
import_duplicate_grant: "The same grant (target collection and record, or key) appears more than once",
|
|
1088
|
+
import_grant_target_changed: "The target of an imported grant cannot change (use another key for a different grant)",
|
|
1089
|
+
import_identity_taken: "{customer, select, none {The identity belongs to another customer} other {The identity belongs to another customer {customer}}}",
|
|
1090
|
+
import_closed_in_conflict: "Applied only the closure from the source (other changes are not written because of the conflict)",
|
|
1091
|
+
import_closes_in_conflict: "Will apply only the closure from the source (other changes are not written because of the conflict)",
|
|
1092
|
+
import_overwritten: "Changes after the import were overwritten with the source values",
|
|
1093
|
+
import_overwrite_note: "A reason note is required when customers are overwritten (overwrite)",
|
|
1094
|
+
import_asset_not_stored: "No stored image or file has the same content",
|
|
1095
|
+
import_media_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}}",
|
|
1096
|
+
import_phase_unpublishable: "Steps of a cycle between collections require collections with editing (the first step creates drafts)",
|
|
1097
|
+
integration_event_name: "Invalid event name",
|
|
1098
|
+
integration_collections_max: "Up to {max, number} collections",
|
|
1099
|
+
api_keys_unavailable: "API key ledger",
|
|
1100
|
+
hosting_unavailable: "site hosting",
|
|
1101
|
+
page_has_no_collection: "Menu pages, dashboards, and screens outside app settings have no collection",
|
|
1102
|
+
only_field_has_field: "Only screens outside field inputs have a field",
|
|
1103
|
+
destination_https: "Only https URLs (do not include user information)",
|
|
1104
|
+
destination_ip: "The destination host cannot be an IP address",
|
|
1105
|
+
destination_local: "The destination cannot be localhost or a host name without a dot",
|
|
1106
|
+
destination_own: "The destination cannot be a {brand} domain or a host name {brand} assigns",
|
|
1107
|
+
webhook_installation: "Only active channels and app installations can have webhooks",
|
|
1108
|
+
outside_consent: "\"{target}\" is outside the installation consent",
|
|
1109
|
+
mcp_staff_collection_missing: "Collection {collection} is not in the schema",
|
|
1110
|
+
mcp_staff_collection_personal: "Collection {collection} holds personal information or is private (staff fields cannot be exposed to MCP)",
|
|
1111
|
+
function_unfinished: "Cannot {action, select, save {save} submit {submit} other {publish}} because the external function \"{label}\" could not finish its check ({failure})",
|
|
1112
|
+
function_budget_exceeded: "Exceeded the total time for one operation ({sec, number} s)",
|
|
1113
|
+
function_not_json: "The response is not JSON",
|
|
1114
|
+
function_invalid_shape: "The response has an invalid shape",
|
|
1115
|
+
function_list_column_failed: "Could not receive the list column response (see the delivery log for the reason)",
|
|
1116
|
+
og_missing_chars: "The title has characters missing from the OG image font: {chars}",
|
|
1117
|
+
import_kind_unknown_collection: "Collection cannot be imported",
|
|
1118
|
+
import_kind_forbidden: "No permission to create",
|
|
1119
|
+
import_kind_invalid_id: "Invalid ID",
|
|
1120
|
+
import_kind_id_conflict: "IDs collide after conversion",
|
|
1121
|
+
import_kind_duplicate_id: "Duplicate ID",
|
|
1122
|
+
import_kind_unknown_field: "Field not in the schema (not imported)",
|
|
1123
|
+
import_kind_invalid_value: "Invalid value",
|
|
1124
|
+
import_kind_image_failed: "Image cannot be imported",
|
|
1125
|
+
import_kind_markdown: "Body cannot be converted",
|
|
1126
|
+
import_kind_save_rejected: "Rejected by the save check",
|
|
1127
|
+
import_kind_reference_lowercased: "Reference ID converted to lowercase",
|
|
1128
|
+
import_kind_origin_missing: "Source ID not found in the import map",
|
|
1129
|
+
import_kind_map_conflict: "Row does not match the import map (changed or removed after import)",
|
|
1130
|
+
import_kind_map_unavailable: "No key for the import map (SECRETS_KEY missing)",
|
|
1131
|
+
import_kind_identity_taken: "The identity belongs to another customer",
|
|
1132
|
+
delivery_path_count: "path must have 1 to {max, number} entries",
|
|
1133
|
+
delivery_path_format: "path must be a delivery API path starting with /: {path}",
|
|
1134
|
+
delivery_path_bundle: "path cannot include the bundle",
|
|
1135
|
+
delivery_path_route_checked: "path cannot include the customer API",
|
|
1136
|
+
delivery_path_wildcard: "path can have at most one *: {path}",
|
|
1137
|
+
delivery_expanded_max: "At most {max, number} routes after expansion",
|
|
1138
|
+
delivery_limit_range: "limit must be an integer from 1 to {max, number}",
|
|
1139
|
+
delivery_since_invalid: "Invalid since (use next from the previous response)",
|
|
1140
|
+
delivery_at_format: "at must be an ISO 8601 date-time",
|
|
1141
|
+
delivery_singleton_list: "A single-record collection cannot be listed",
|
|
1142
|
+
delivery_fields_empty: "fields must be comma-separated non-empty fields",
|
|
1143
|
+
delivery_expand_depth: "Expansion depth is at most {max, number}: {token}",
|
|
1144
|
+
delivery_expand_deep_planned: "Not implemented: expansion of depth 2 or more {token}",
|
|
1145
|
+
delivery_field_not_selectable: "Field cannot be selected: {key}",
|
|
1146
|
+
delivery_body_in_list: "Body field cannot be selected in a list: {key}",
|
|
1147
|
+
delivery_field_not_expandable: "Field cannot be expanded: {key}",
|
|
1148
|
+
delivery_expanded_not_selectable: "Field cannot be selected in the expanded collection {collection}: {key}",
|
|
1149
|
+
delivery_single: "{name} can be given only once",
|
|
1150
|
+
delivery_op_planned: "Not implemented operator: {op}",
|
|
1151
|
+
delivery_filter_format: "Filters are filter[key] or filter[key][operator]",
|
|
1152
|
+
delivery_filter_nested_planned: "Not implemented filter: field inside a group {key}",
|
|
1153
|
+
delivery_field_not_filterable: "Field cannot be filtered: {key}",
|
|
1154
|
+
delivery_op_not_allowed: "Operator not allowed for field {key}: {op}",
|
|
1155
|
+
delivery_filter_value: "Invalid value for field {key}: {raw}",
|
|
1156
|
+
delivery_ids_format: "ids must be up to {max, number} comma-separated non-empty ids",
|
|
1157
|
+
delivery_offset_planned: "Not implemented: offset (use cursor for paging)",
|
|
1158
|
+
delivery_order_max: "At most {max, number} sort keys",
|
|
1159
|
+
delivery_field_not_sortable: "Field cannot be sorted: {name}",
|
|
1160
|
+
delivery_order_duplicate: "Duplicate sort key: {name}",
|
|
1161
|
+
delivery_cursor_invalid: "Invalid cursor (the order differs from the previous page)",
|
|
1162
|
+
form_required: "Required",
|
|
1163
|
+
form_too_long: "At most {max, number} characters",
|
|
1164
|
+
form_too_short: "At least {min, number} characters",
|
|
1165
|
+
form_invalid_email: "Invalid email address",
|
|
1166
|
+
form_invalid_url: "Invalid URL",
|
|
1167
|
+
form_url_host: "URL host is not accepted",
|
|
1168
|
+
form_invalid_choice: "Not one of the choices",
|
|
1169
|
+
form_too_many: "At most {max, number} choices",
|
|
1170
|
+
form_too_few: "At least {min, number} choices",
|
|
1171
|
+
form_unknown_form: "Unknown form name"
|
|
1172
|
+
};
|
|
1173
|
+
// ../cms-contract/src/problems.ts
|
|
1174
|
+
const PROBLEM_MESSAGES = {
|
|
1175
|
+
...BODY_PROBLEM_MESSAGES,
|
|
1176
|
+
...MODEL_PROBLEM_MESSAGES,
|
|
1177
|
+
...API_ISSUE_MESSAGES
|
|
1178
|
+
};
|
|
1179
|
+
const PROBLEM_MESSAGES_EN = {
|
|
1180
|
+
...BODY_PROBLEM_MESSAGES_EN,
|
|
1181
|
+
...MODEL_PROBLEM_MESSAGES_EN,
|
|
1182
|
+
...API_ISSUE_MESSAGES_EN
|
|
1183
|
+
};
|
|
1184
|
+
/** 既定の形を日本語の文に(問題でない文はそのまま、差し込みの中の問題も文に。extra はモジュールとアプリの表) */
|
|
1185
|
+
const problemLabel = (text, extra = {}) => problemMessage(text, {
|
|
1186
|
+
...extra,
|
|
1187
|
+
...PROBLEM_MESSAGES
|
|
1188
|
+
});
|
|
1189
|
+
/** 既定の形を英語の文に(問題でない文はそのまま。extra はモジュールとアプリの英語の表) */
|
|
1190
|
+
const problemEnglish = (text, extra = {}) => problemMessage(text, {
|
|
1191
|
+
...extra,
|
|
1192
|
+
...PROBLEM_MESSAGES_EN
|
|
1193
|
+
}, "en");
|
|
1194
|
+
const ARGUMENT = /\{\s*([A-Za-z_]\w*)\s*[,}]/g;
|
|
1195
|
+
/** 表の文の差し込みがそろっているか(外部関数が表と同じコードを差し込みなしで返すと、崩れた文になるため) */
|
|
1196
|
+
const hasParams = (message, params = {}) => [...message.matchAll(ARGUMENT)].every((m) => Object.hasOwn(params, m[1]));
|
|
1197
|
+
/**
|
|
1198
|
+
* コードと差し込みを持つ結果の画面の文(issues、スキーマの変更、取り込みの問題)
|
|
1199
|
+
* - コードが表にあり差し込みがそろえば表の文、ほかは message(既定の形なら表の文)
|
|
1200
|
+
* - extra: モジュールとアプリの表(コードは `<id>_` で始まり、コアの表と重ならない)
|
|
1201
|
+
*/
|
|
1202
|
+
function issueLabel(issue, extra = {}) {
|
|
1203
|
+
const messages = {
|
|
1204
|
+
...extra,
|
|
1205
|
+
...PROBLEM_MESSAGES
|
|
1206
|
+
};
|
|
1207
|
+
return issue.code !== void 0 && Object.hasOwn(messages, issue.code) && hasParams(messages[issue.code], issue.params) ? problemLabel(problemText({
|
|
1208
|
+
code: issue.code,
|
|
1209
|
+
params: issue.params ?? {}
|
|
1210
|
+
}), extra) : problemLabel(issue.message, extra);
|
|
1211
|
+
}
|
|
1212
|
+
/** 取り込みの問題の画面の文(code は取り込みの種類で、問題のコードは problem) */
|
|
1213
|
+
const importProblemLabel = (p, extra = {}) => issueLabel({
|
|
1214
|
+
message: p.message,
|
|
1215
|
+
...p.problem !== void 0 && { code: p.problem },
|
|
1216
|
+
...p.params && { params: p.params }
|
|
1217
|
+
}, extra);
|
|
1218
|
+
/** モジュールとアプリの文言の表の誤り(問題のコードの接頭辞 `<id>_`、コアの問題の表との重なり、英語の表のキーの過不足) */
|
|
1219
|
+
function labelTableProblems(tables) {
|
|
1220
|
+
const keys = (table) => Object.keys(table ?? {}).sort().join(",");
|
|
1221
|
+
const codes = Object.keys(tables.problems ?? {});
|
|
1222
|
+
return [
|
|
1223
|
+
...codes.filter((code) => !code.startsWith(`${tables.id}_`)).map((code) => `problem ${code} must start with ${tables.id}_`),
|
|
1224
|
+
...codes.filter((code) => Object.hasOwn(PROBLEM_MESSAGES, code)).map((code) => `problem ${code} conflicts with a core problem`),
|
|
1225
|
+
...keys(tables.targets) === keys(tables.en?.targets) ? [] : ["en.targets keys differ from targets"],
|
|
1226
|
+
...keys(tables.problems) === keys(tables.en?.problems) ? [] : ["en.problems keys differ from problems"]
|
|
1227
|
+
];
|
|
1228
|
+
}
|
|
1229
|
+
// ../cms-contract/src/errorLabels.ts
|
|
1230
|
+
const ERROR_MESSAGES = {
|
|
1231
|
+
/** コアの対象の表示名(エラーの文と操作の履歴で共通、モジュールの対象は ModuleManifest の targets) */
|
|
1232
|
+
targets: {
|
|
1233
|
+
request: "作成の依頼",
|
|
1234
|
+
role: "ロール",
|
|
1235
|
+
media: "メディア",
|
|
1236
|
+
record: "マスタ",
|
|
1237
|
+
asset: "画像",
|
|
1238
|
+
mcp: "MCP",
|
|
1239
|
+
version: "バージョン",
|
|
1240
|
+
profile: "プロフィール",
|
|
1241
|
+
portrait: "顔の画像",
|
|
1242
|
+
extension: "アプリの機能",
|
|
1243
|
+
account: "アカウント",
|
|
1244
|
+
comment: "コメント",
|
|
1245
|
+
view: "ビュー",
|
|
1246
|
+
webhook: "Webhook",
|
|
1247
|
+
external_function: "カスタム検証",
|
|
1248
|
+
external_screen: "カスタム画面",
|
|
1249
|
+
api_key: "API キー",
|
|
1250
|
+
preview: "プレビューの署名シークレット",
|
|
1251
|
+
trash: "ゴミ箱",
|
|
1252
|
+
customer: "顧客",
|
|
1253
|
+
customer_identity: "顧客の結び付け",
|
|
1254
|
+
customer_grant: "顧客の権利",
|
|
1255
|
+
app: "アプリ",
|
|
1256
|
+
installation: "インストール",
|
|
1257
|
+
invitation: "招待",
|
|
1258
|
+
environment: "環境"
|
|
1259
|
+
},
|
|
1260
|
+
/** コードごとの文 */
|
|
1261
|
+
codes: {
|
|
1262
|
+
invalid_input: "入力に誤りがあります。内容を確かめて直してください。",
|
|
1263
|
+
submit_unmet: "レビューを依頼する条件を満たしていません。各フィールドの理由を確かめて直してください。",
|
|
1264
|
+
publish_unmet: "公開の条件を満たしていません。各フィールドの理由を確かめて直してください。",
|
|
1265
|
+
save_unmet: "保存の条件を満たしていません。各フィールドの理由を確かめて直してください。",
|
|
1266
|
+
version_required: "元にしたバージョン(version)が必要です。画面を読み込み直してから、もう一度保存してください。",
|
|
1267
|
+
file_required: "画像のファイルを選んでください。",
|
|
1268
|
+
file_too_large: "画像は{assetMaxMB, number}MBまでです。",
|
|
1269
|
+
unsupported_image: "対応していない画像の形式です(PNG・JPEG・GIF・WebP)。",
|
|
1270
|
+
unsupported_file: "対応していないファイルの形式です(PDF・ZIP・テキスト・CSV・Word・Excel・PowerPoint)。",
|
|
1271
|
+
invalid_dimensions: "画像の寸法を読み取れません。別の画像を選んでください。",
|
|
1272
|
+
https_required: "https の URL を指定してください。",
|
|
1273
|
+
invalid_style: "絵のタッチの ID が不正です(styles から選択)。",
|
|
1274
|
+
login_required: "ログインが必要です。ログインしてから、もう一度操作してください。",
|
|
1275
|
+
invalid_mcp_token: "MCP からの呼び出しを確認できません。AI のコネクタから接続し直してください。",
|
|
1276
|
+
mcp_signature_invalid: "MCP のサーバーからの呼び出しを確認できません。運営者に連絡してください。",
|
|
1277
|
+
invalid_account_token: "アプリのアカウントの資格のトークンが無効です。画面のトークンで替え直してください。",
|
|
1278
|
+
preview_token_required: "下書きの取得にはプレビューの署名が必要です。設定のプレビューとデプロイで、署名シークレットをサイトに設定してください。",
|
|
1279
|
+
invalid_preview_token: "プレビューの署名が一致しません。設定のプレビューとデプロイで、サイトの署名シークレットが今のものか確かめてください。",
|
|
1280
|
+
api_key_required: "API キーが必要です。リクエストの Authorization: Bearer に API キーを付けてください。",
|
|
1281
|
+
invalid_api_key: "API キーが無効です。設定の API キーで、失効していないキーを確かめてください。",
|
|
1282
|
+
invalid_id_token: "ID トークンが無効です。取り直してから送ってください。",
|
|
1283
|
+
invalid_app_token: "アプリの資格が無効です。アプリの JWT かインストールのトークンを取り直してから送ってください。",
|
|
1284
|
+
api_key_forbidden: "{target, select, none {API キーにこの取得の権限がありません。} other {API キーに「{target}」を取得する権限がありません。}}設定の API キーで、キーの権限を見直してください。",
|
|
1285
|
+
account_not_found: "{name, select, none {} other {{name}}} のアカウントがありません。管理者にアカウントの登録を依頼してください。",
|
|
1286
|
+
mcp_not_allowed: "MCP からは操作できません。ワークスペースから操作してください。",
|
|
1287
|
+
insufficient_scope: "AI の接続で許した範囲ではこの操作はできません。接続し直して{scope, select, content_publish {「公開まで」} other {必要な範囲}}を許してください。",
|
|
1288
|
+
admin_only: "管理者だけの操作です。必要なときは、管理者に依頼してください。",
|
|
1289
|
+
operator_read_only: "サポートのアクセスの許可が閲覧だけのため、変更できません。変更が要るときは、プロジェクトの管理者に許可の範囲の変更を依頼してください。",
|
|
1290
|
+
not_trial: "検証用のフラグのプロジェクトだけの操作です。",
|
|
1291
|
+
not_live: "本番の環境だけでできる操作です。本番の環境の管理画面から操作してください。",
|
|
1292
|
+
operator_closed: "サポートのアクセスでは変更できない操作です(アカウント、ロール、連携、アプリ、顧客の ID、許可など)。プロジェクトの管理者に依頼してください。",
|
|
1293
|
+
forbidden: "{target, select, none {この操作の権限がありません。} other {{target}のこの操作の権限がありません。}}必要なときは、管理者にロールの見直しを依頼してください。",
|
|
1294
|
+
editorial_only: "{target, select, none {対象} other {{target}}}は、公開の権限があるアカウントだけが作成できます。公開の権限があるメンバーに作成を依頼してください。",
|
|
1295
|
+
no_linked_record: "{name}が結び付いていないアカウントは操作できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。",
|
|
1296
|
+
own_only: "自分の{target, select, none {もの} other {{target}}}だけを操作できます。",
|
|
1297
|
+
not_visible: "ほかの人の公開前の{target, select, none {対象} other {{target}}}は閲覧できません。",
|
|
1298
|
+
published_admin_only: "公開中のレコードの編集には、公開の権限が必要です。公開の権限があるメンバーに編集を依頼してください。",
|
|
1299
|
+
cannot_remove_self: "自分を結び付きから外すことはできません。ほかの管理者に依頼してください。",
|
|
1300
|
+
cannot_change_owner: "本人を示すフィールドの値は変更できません。",
|
|
1301
|
+
not_found: "{target, select, none {対象} other {{target}}}が見つかりません。削除された可能性があります。画面を読み込み直してください。",
|
|
1302
|
+
method_not_allowed: "この経路はこのメソッドを受け付けません。",
|
|
1303
|
+
customer_not_linked: "このアカウントに結び付く顧客がいません。管理者に、顧客とアカウントの結び付けを依頼してください。",
|
|
1304
|
+
customer_pending: "このアカウントの結び付けは、運営の確認の後に使えます。確認が終わるまでお待ちください。",
|
|
1305
|
+
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}件のアカウントがこのロールのため、削除できません。} module {{count, number}件の{name, select, none {アプリのデータ} other {{name}}}から参照されているため、削除できません。} other {使用中のため、削除できません。}}使っている所から外してから、もう一度削除してください。",
|
|
1306
|
+
duplicate_name: "同じ名前がすでにあります。別の名前を付けてください。",
|
|
1307
|
+
duplicate_email: "同じメールアドレスのアカウントがすでにあります。一覧のそのアカウントを編集してください。",
|
|
1308
|
+
duplicate_id: "この ID はすでに使用されています。別の ID を指定してください。",
|
|
1309
|
+
duplicate_slug: "このスラッグはすでに使用されています。別のスラッグを指定してください。",
|
|
1310
|
+
version_conflict: "ほかの更新と重なりました。最新のバージョンを読み込んでやり直してください。",
|
|
1311
|
+
article_editing: "{name, select, none {ほかの人} other {{name}}}が CMS で編集中のため、保存できません。編集画面を閉じるか別のタブに切り替えると、2分以内に保存できるようになります。",
|
|
1312
|
+
invalid_state: "今の状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。",
|
|
1313
|
+
unpublish_first: "公開中のレコードは、非公開にしてから削除してください。",
|
|
1314
|
+
last_admin: "最後の管理者は、外すことも管理者のロールから降ろすこともできません。先にほかの人を管理者にしてください。",
|
|
1315
|
+
exceeds_own: "自分のロールより広い権限は付けられません。広い権限が要るときは、管理者に依頼してください。",
|
|
1316
|
+
reauth_required: "承認の前に、もう一度ログインしてください。",
|
|
1317
|
+
approval_required: "本番に届く変更のため、申請と承認が必要です。申請を出し、組織の管理者の承認を待ってください。",
|
|
1318
|
+
stale: "申請の後に内容が変わりました。もう一度申請してください。",
|
|
1319
|
+
approval_closed: "この申請はもう承認できません(反映済み、却下、取り下げ、期限切れのいずれか)。必要なときは、もう一度申請してください。",
|
|
1320
|
+
cursor_expired: "変更の記録の保存の期間を過ぎました。cursor なしで全件を取り直してください。",
|
|
1321
|
+
already_linked: "{reason, select, identity {このアカウントは、すでにほかの顧客に結び付いています。} other {この顧客は、すでに同じ発行者のアカウントに結び付いています。}}結び付けを替えるときは、先に今の結び付けを外してください。",
|
|
1322
|
+
run_done: "この取り込みの実行は完了済みです。新しい実行でやり直してください。",
|
|
1323
|
+
invalid_invite: "{reason, select, expired {招待の期限が過ぎています。} used {招待はすでに使われています。} other {招待が見つかりません。}}招待した人に、招待の送り直しを依頼してください。",
|
|
1324
|
+
body_too_large: "送信する内容は{bodyMaxMB, number}MBまでです。内容を分けて送ってください。",
|
|
1325
|
+
rate_limited: "呼び出しの回数が上限を超えました。しばらく待ってからお試しください。",
|
|
1326
|
+
upstream_failed: "{resource, select, image {画像を取得できませんでした。} webhook {Webhook へ送れませんでした。} file {ファイルを取得できませんでした。} source {移行元からコンテンツを取得できませんでした。接続の情報(サービスの ID と API キーなど)を確認してください。} hosting {サイトをホスティングするサイトの場所へ上げられませんでした。} other {ページを取得できませんでした。}}",
|
|
1327
|
+
not_configured: "{name, select, none {この操作に要る設定がありません。必要なときは、管理者が運営に相談してください。} other {{name}}}",
|
|
1328
|
+
unavailable: "一時的に処理できませんでした。しばらく待ってからお試しください。",
|
|
1329
|
+
writes_paused: "デプロイ中のため、保存を一時停止しています。数分後にもう一度お試しください。",
|
|
1330
|
+
environment_frozen: "この環境は保存を止めています(本番の切り替えの間か、本番から外れた環境です)。読み取りはできます。保存は本番の環境で行ってください。",
|
|
1331
|
+
job_failed: "処理が失敗しました。{name, select, none {} other {{name}}}時間をおいて、もう一度お試しください。",
|
|
1332
|
+
internal_error: "サーバーの処理に失敗しました。もう一度お試しください。",
|
|
1333
|
+
network_error: "通信に失敗しました。接続を確認して、もう一度お試しください。"
|
|
1334
|
+
},
|
|
1335
|
+
/** invalid_state の理由ごとの文 */
|
|
1336
|
+
states: {
|
|
1337
|
+
not_draft: "下書きではありません。画面を読み込み直してください。",
|
|
1338
|
+
no_draft: "公開中のバージョンと別の未公開の変更がありません。",
|
|
1339
|
+
not_in_review: "レビュー待ちではありません。画面を読み込み直してください。",
|
|
1340
|
+
request_handled: "この依頼はすでに対応済みです。",
|
|
1341
|
+
deleted: "すでに削除されています。",
|
|
1342
|
+
not_deleted: "削除されていないため、復元できません。",
|
|
1343
|
+
schema_confirm: "影響のある変更を含みます。件数を確認してから保存してください。",
|
|
1344
|
+
no_publishing: "このコレクションにはワークフローがありません。",
|
|
1345
|
+
no_review: "このコレクションのワークフローにはレビューがありません。",
|
|
1346
|
+
not_published: "公開中・予約中ではありません。",
|
|
1347
|
+
collection_rows: "レコードが残っています。件数を確認してから削除してください。",
|
|
1348
|
+
restore_conflict: "{name, select, none {同じ内容} other {{name}}}がすでにあるため、復元できません。先に今あるものを変更するか削除してください。",
|
|
1349
|
+
collection_exists: "同じ ID のコレクションがすでにあるため、復元できません。先にそのコレクションの ID を変更してください。",
|
|
1350
|
+
collection_missing: "コレクションが削除されているため、復元できません。先にコレクションを復元してください。",
|
|
1351
|
+
not_restorable: "本人の削除の求めか退会の保持の後の削除のため、復元できません。",
|
|
1352
|
+
installation_state: "今のインストールの状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。",
|
|
1353
|
+
site_deploy: "今はサイトを上げられません。ほかのアップロードの最中か、サイトが止められているか外されています。少し待ってから上げ直し、続くときは運営者に連絡してください。",
|
|
1354
|
+
site_stopped_by_check: "上げた直後の確認で外れたため、サイトを止めました。直したものを上げた後、運営者に戻してもらってください。",
|
|
1355
|
+
required_module: "必須の機能は無効にも削除にもできません。",
|
|
1356
|
+
app_installed: "アプリは1つのプロジェクトに1つだけインストールできます。",
|
|
1357
|
+
app_dependencies: "依存のアプリをそろえられません。アプリの詳細で、足りないアプリと合わないアプリを確かめてください。",
|
|
1358
|
+
app_reinstalled: "同じアプリを入れ直したインストールがあるため、古いインストールのデータは消せません。",
|
|
1359
|
+
app_managed: "アプリのインストールが管理する登録です。変更はアプリの新しいバージョンの同意で行います。",
|
|
1360
|
+
request_key_reused: "同じ重複を除くキーで、別の人かチャネルか目的の記録がすでにあります。別のキーで送ってください。",
|
|
1361
|
+
no_tenant: "組織に属していないプロジェクトのため、招待できません。運営者に組織への所属を頼んでください。",
|
|
1362
|
+
schema_changed: "スキーマが変更されたため、保存できませんでした。画面を読み込み直してください。",
|
|
1363
|
+
customer_inactive: "この顧客は停止中か退会済みのため、操作できません。顧客の画面で状態を確かめてください。",
|
|
1364
|
+
self_limit: "1人あたりのレコードの数の上限に達しています。不要なレコードを削除してから作成してください。",
|
|
1365
|
+
already_live: "この環境はすでに本番です。",
|
|
1366
|
+
target_live: "本番の環境は削除できません。先にほかの環境へ切り替えてください。",
|
|
1367
|
+
target_synthetic: "合成のデータの環境は本番にできません。本番にする環境を選び直してください。",
|
|
1368
|
+
no_changes: "本番との差がありません。",
|
|
1369
|
+
schema_values: "値のある項目を消す変更を含むため、反映できません。本番で値を移してからやり直してください。",
|
|
1370
|
+
environment_limit: "環境の数がプランの上限に達しています。不要な環境を削除してから作成してください。",
|
|
1371
|
+
environment_busy: "この環境はほかの操作の途中です。少し待ってからやり直してください。",
|
|
1372
|
+
unregistered_table: "個人の情報の扱いが決まっていない表があるため、コピーできません。運営者に連絡してください。",
|
|
1373
|
+
not_frozen: "本番の書き込みは止まっていません。",
|
|
1374
|
+
approval_running: "承認した操作の実行中です。少し待ってからやり直してください。"
|
|
1375
|
+
},
|
|
1376
|
+
/** own_only の対象ごとの文(モジュールの文は manifest の messages) */
|
|
1377
|
+
own: {
|
|
1378
|
+
profile: "自分のプロフィールだけを編集できます。",
|
|
1379
|
+
portrait: "自分の顔の画像だけを変更できます。"
|
|
1380
|
+
},
|
|
1381
|
+
/** no_linked_record の対象ごとの文(name は結び付くコレクションの表示名) */
|
|
1382
|
+
noLink: { mcp: "{name}が結び付いていないアカウントは、MCP を使用できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。" },
|
|
1383
|
+
/** no_linked_record の name が無いときの語 */
|
|
1384
|
+
linkedRecord: "レコード",
|
|
1385
|
+
/** コードごとの見出し */
|
|
1386
|
+
titles: {
|
|
1387
|
+
invalid_input: "入力エラー",
|
|
1388
|
+
submit_unmet: "レビューを依頼できません",
|
|
1389
|
+
publish_unmet: "公開できません",
|
|
1390
|
+
save_unmet: "保存できません",
|
|
1391
|
+
version_required: "入力エラー",
|
|
1392
|
+
file_required: "入力エラー",
|
|
1393
|
+
file_too_large: "入力エラー",
|
|
1394
|
+
unsupported_image: "入力エラー",
|
|
1395
|
+
unsupported_file: "入力エラー",
|
|
1396
|
+
invalid_dimensions: "入力エラー",
|
|
1397
|
+
https_required: "入力エラー",
|
|
1398
|
+
invalid_style: "入力エラー",
|
|
1399
|
+
login_required: "ログインエラー",
|
|
1400
|
+
invalid_mcp_token: "ログインエラー",
|
|
1401
|
+
mcp_signature_invalid: "ログインエラー",
|
|
1402
|
+
invalid_account_token: "ログインエラー",
|
|
1403
|
+
preview_token_required: "ログインエラー",
|
|
1404
|
+
invalid_preview_token: "ログインエラー",
|
|
1405
|
+
api_key_required: "ログインエラー",
|
|
1406
|
+
invalid_api_key: "ログインエラー",
|
|
1407
|
+
invalid_id_token: "ログインエラー",
|
|
1408
|
+
invalid_app_token: "ログインエラー",
|
|
1409
|
+
api_key_forbidden: "権限がありません",
|
|
1410
|
+
account_not_found: "ログインエラー",
|
|
1411
|
+
mcp_not_allowed: "権限がありません",
|
|
1412
|
+
insufficient_scope: "権限がありません",
|
|
1413
|
+
admin_only: "権限がありません",
|
|
1414
|
+
operator_read_only: "権限がありません",
|
|
1415
|
+
operator_closed: "権限がありません",
|
|
1416
|
+
not_trial: "権限がありません",
|
|
1417
|
+
not_live: "本番の環境だけの操作です",
|
|
1418
|
+
forbidden: "権限がありません",
|
|
1419
|
+
editorial_only: "権限がありません",
|
|
1420
|
+
no_linked_record: "権限がありません",
|
|
1421
|
+
own_only: "権限がありません",
|
|
1422
|
+
not_visible: "権限がありません",
|
|
1423
|
+
published_admin_only: "権限がありません",
|
|
1424
|
+
cannot_remove_self: "権限がありません",
|
|
1425
|
+
cannot_change_owner: "権限がありません",
|
|
1426
|
+
not_found: "見つかりません",
|
|
1427
|
+
method_not_allowed: "操作できません",
|
|
1428
|
+
customer_not_linked: "見つかりません",
|
|
1429
|
+
customer_pending: "確認待ちです",
|
|
1430
|
+
in_use: "削除できません",
|
|
1431
|
+
duplicate_name: "重複しています",
|
|
1432
|
+
duplicate_email: "重複しています",
|
|
1433
|
+
duplicate_id: "重複しています",
|
|
1434
|
+
duplicate_slug: "重複しています",
|
|
1435
|
+
version_conflict: "更新が重なりました",
|
|
1436
|
+
article_editing: "編集中です",
|
|
1437
|
+
invalid_state: "操作できません",
|
|
1438
|
+
unpublish_first: "削除できません",
|
|
1439
|
+
last_admin: "操作できません",
|
|
1440
|
+
exceeds_own: "権限がありません",
|
|
1441
|
+
reauth_required: "再認証が必要",
|
|
1442
|
+
approval_required: "承認が必要",
|
|
1443
|
+
stale: "内容が変わった申請",
|
|
1444
|
+
approval_closed: "承認できない申請",
|
|
1445
|
+
cursor_expired: "取り直しが必要です",
|
|
1446
|
+
already_linked: "結び付け済みです",
|
|
1447
|
+
invalid_invite: "招待を使えません",
|
|
1448
|
+
run_done: "完了済みの実行",
|
|
1449
|
+
body_too_large: "入力エラー",
|
|
1450
|
+
rate_limited: "回数の制限",
|
|
1451
|
+
upstream_failed: "取得エラー",
|
|
1452
|
+
not_configured: "設定エラー",
|
|
1453
|
+
unavailable: "一時的なエラー",
|
|
1454
|
+
writes_paused: "保存の一時停止",
|
|
1455
|
+
environment_frozen: "保存を止めている環境",
|
|
1456
|
+
job_failed: "処理の失敗",
|
|
1457
|
+
internal_error: "サーバーエラー",
|
|
1458
|
+
network_error: "通信エラー"
|
|
1459
|
+
},
|
|
1460
|
+
/** 項目ごとの理由がすべて未入力のときの見出し */
|
|
1461
|
+
requiredTitle: "必須項目の入力エラー"
|
|
1462
|
+
};
|
|
1463
|
+
/** コアの対象の表示名 */
|
|
1464
|
+
const TARGET_LABELS = ERROR_MESSAGES.targets;
|
|
1465
|
+
const NONE = "none";
|
|
1466
|
+
const has = (table, key) => key !== void 0 && Object.hasOwn(table, key);
|
|
1467
|
+
/** 文の差し込みの値(select の選択肢の名前に使えない文字は `_`) */
|
|
1468
|
+
function argsOf(code, p, targets, problems, locale) {
|
|
1469
|
+
return {
|
|
1470
|
+
target: (has(targets, p.target) ? targets[p.target] : code === "api_key_forbidden" ? p.target : void 0) ?? NONE,
|
|
1471
|
+
name: p.name === void 0 ? NONE : problemMessage(p.name, problems, locale),
|
|
1472
|
+
count: p.count ?? 0,
|
|
1473
|
+
by: p.by ?? NONE,
|
|
1474
|
+
reason: p.reason ?? NONE,
|
|
1475
|
+
resource: p.resource ?? NONE,
|
|
1476
|
+
scope: p.scope?.replaceAll(/\W/g, "_") ?? NONE,
|
|
1477
|
+
assetMaxMB: ASSET_SIZE_MAX / 1024 / 1024,
|
|
1478
|
+
bodyMaxMB: JSON_BODY_MAX / 1024 / 1024
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
/** コードと値から使う文(モジュールの文、対象ごとの文、理由ごとの文、コードの文の順) */
|
|
1482
|
+
function messageOf(code, p, messages, catalog) {
|
|
1483
|
+
if (code === "own_only") return p.target && messages.own?.[p.target] || (has(catalog.own, p.target) ? catalog.own[p.target] : catalog.codes.own_only);
|
|
1484
|
+
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);
|
|
1485
|
+
if (code === "invalid_state" && has(catalog.states, p.reason)) return catalog.states[p.reason];
|
|
1486
|
+
return catalog.codes[code];
|
|
1487
|
+
}
|
|
1488
|
+
/** エラーの画面の文(targets は対象の表示名、messages は対象ごとの文の追加、画面はモジュールの対象と文とコレクションの表示名を含めた表。problems は name に入る問題の文) */
|
|
1489
|
+
function errorLabel(code, params = {}, targets = TARGET_LABELS, messages = {}, catalog = ERROR_MESSAGES, problems = PROBLEM_MESSAGES, locale) {
|
|
1490
|
+
const args = argsOf(code, params, targets, problems, locale);
|
|
1491
|
+
if (code === "no_linked_record" && params.name === void 0) args.name = catalog.linkedRecord;
|
|
1492
|
+
return formatMessage(messageOf(code, params, messages, catalog), args, locale);
|
|
1493
|
+
}
|
|
1494
|
+
/** 応答のエラーの英語の文(targets はコレクションの表示名、コアの対象は英語の表、モジュールの対象と文は使わない) */
|
|
1495
|
+
const errorText = (code, params = {}, targets = {}) => errorLabel(code, params, {
|
|
1496
|
+
...targets,
|
|
1497
|
+
...ERROR_MESSAGES_EN.targets
|
|
1498
|
+
}, {}, ERROR_MESSAGES_EN, PROBLEM_MESSAGES_EN, "en");
|
|
1499
|
+
/** 応答のエラーの文をカタログから作る(対象の表示名はカタログの表、ほかの言語の画面とアプリ向け) */
|
|
1500
|
+
const errorMessageOf = (error, catalog = ERROR_MESSAGES) => errorLabel(error.code, error.params, catalog.targets, {}, catalog);
|
|
1501
|
+
/** プロジェクトの文脈の外(受け皿の Worker・台帳・アプリ)のエラーの本文(requestId は要求の x-request-id、message は英語の文) */
|
|
1502
|
+
const errorBodyFor = (code, requestId, params) => ({
|
|
1503
|
+
code,
|
|
1504
|
+
message: errorText(code, params),
|
|
1505
|
+
...params && { params },
|
|
1506
|
+
requestId
|
|
1507
|
+
});
|
|
1508
|
+
/** エラーのトーストの見出し(項目ごとの理由がすべて未入力なら必須項目のエラー、スキーマの文は「〜が未入力」で統一) */
|
|
1509
|
+
const errorTitle = (code, issues = [], catalog = ERROR_MESSAGES) => code === "invalid_input" && issues.length > 0 && issues.every((i) => i.message.endsWith("未入力")) ? catalog.requiredTitle : catalog.titles[code];
|
|
1510
|
+
export { BODY_PROBLEM_MESSAGES_EN as _, PROBLEM_MESSAGES as a, issueLabel as c, problemLabel as d, API_ISSUE_MESSAGES_EN as f, JSON_BODY_MAX as g, ERROR_STATUS as h, errorTitle as i, labelTableProblems as l, ERROR_MESSAGES_EN as m, errorBodyFor as n, PROBLEM_MESSAGES_EN as o, API_ISSUE_MESSAGES as p, errorMessageOf as r, importProblemLabel as s, ERROR_MESSAGES as t, problemEnglish as u, MODEL_PROBLEM_MESSAGES_EN as v };
|