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