@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
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { type ConsentPurpose } from './consents.js';
|
|
2
|
+
/** エンドユーザーの設定の表 settings のキー、設定の領域の id */
|
|
3
|
+
export declare const END_USERS_SETTINGS_KEY = "end_users";
|
|
4
|
+
/** エンドユーザーの API の鍵の権限とロールの権限の対象(コレクションの id と重ならない) */
|
|
5
|
+
export declare const END_USERS_KEY_TARGET = "@end_users";
|
|
6
|
+
/** 人の状態(有効・停止)。見られるかはアクセス権が決め、状態は停止で照合と配信のエンドポイントを閉じる */
|
|
7
|
+
export declare const END_USER_STATUSES: readonly ["active", "suspended"];
|
|
8
|
+
/** エンドユーザーの状態 */
|
|
9
|
+
export type EndUserStatus = (typeof END_USER_STATUSES)[number];
|
|
10
|
+
/** 状態の変更の操作(経路の :verb)と、移る先の状態 */
|
|
11
|
+
export declare const END_USER_STATUS_OPERATIONS: {
|
|
12
|
+
readonly activate: "active";
|
|
13
|
+
readonly suspend: "suspended";
|
|
14
|
+
};
|
|
15
|
+
/** エンドユーザーの状態か */
|
|
16
|
+
export declare const isEndUserStatus: (v: unknown) => v is EndUserStatus;
|
|
17
|
+
/** 権利の出どころ(manual は手動、import は取り込み、installation はインストール) */
|
|
18
|
+
export declare const ENTITLEMENT_SOURCES: readonly ["manual", "import", "installation"];
|
|
19
|
+
/** 権利の出どころ */
|
|
20
|
+
export type EntitlementSource = (typeof ENTITLEMENT_SOURCES)[number];
|
|
21
|
+
/** ID トークンの署名の方式(HS256 などの共有の鍵の方式は受け付けない) */
|
|
22
|
+
export declare const END_USER_ID_TOKEN_ALGORITHMS: readonly ["ES256", "RS256"];
|
|
23
|
+
/** ID トークンの署名の方式 */
|
|
24
|
+
export type EndUserIdTokenAlgorithm = (typeof END_USER_ID_TOKEN_ALGORITHMS)[number];
|
|
25
|
+
/**
|
|
26
|
+
* 本人の証明の発行者(汎用の OIDC)
|
|
27
|
+
* - id: 設定の中で一意(英小文字・数字・ハイフン)、label: 表示名
|
|
28
|
+
* - issuer・audience: ID トークンの iss と aud、jwksUrl: 公開鍵の一覧の URL
|
|
29
|
+
*/
|
|
30
|
+
export type EndUserProvider = Readonly<{
|
|
31
|
+
id: string;
|
|
32
|
+
label: string;
|
|
33
|
+
issuer: string;
|
|
34
|
+
audience: string;
|
|
35
|
+
jwksUrl: string;
|
|
36
|
+
algorithms: readonly EndUserIdTokenAlgorithm[];
|
|
37
|
+
}>;
|
|
38
|
+
/** Tunasand のドメイン(鍵の取得先に使えない、その下のホストも) */
|
|
39
|
+
export declare const OWN_DOMAINS: readonly ["tunasand.jp", "tunasand.app", "tunasand.site", "tunasandbox.app", "tunasandusercontent.com"];
|
|
40
|
+
/** エンドユーザーの設定の値の範囲(graceSec は SDK の障害の間の猶予の秒) */
|
|
41
|
+
export declare const END_USERS_LIMITS: {
|
|
42
|
+
readonly graceSec: {
|
|
43
|
+
readonly min: 0;
|
|
44
|
+
readonly max: 86400;
|
|
45
|
+
readonly initial: 0;
|
|
46
|
+
};
|
|
47
|
+
readonly providers: {
|
|
48
|
+
readonly max: 10;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/** 期間の月の値の範囲 */
|
|
52
|
+
export declare const ENTITLEMENT_MONTHS: {
|
|
53
|
+
readonly min: 1;
|
|
54
|
+
readonly max: 1200;
|
|
55
|
+
};
|
|
56
|
+
/** 期間の月として使える値か(範囲の中の整数) */
|
|
57
|
+
export declare const isEntitlementMonths: (value: unknown) => value is number;
|
|
58
|
+
/** 期間の月からの終了日(開始日 startsOn の months か月後の前日、対応する日がない月はその月の末日) */
|
|
59
|
+
export declare function endsOnAfterMonths(startsOn: string, months: number): string;
|
|
60
|
+
/**
|
|
61
|
+
* 付与の終了日(endsOn は指定で、undefined は省略、null は無期限。months は対象の期間の月で、宣言がないか値が空なら null)
|
|
62
|
+
* - 決まらない(省略で期間の月がない)ときは undefined で、呼び出し元は終了日の指定を求める
|
|
63
|
+
*/
|
|
64
|
+
export declare const entitlementEndsOn: (startsOn: string, endsOn: string | null | undefined, months: unknown) => string | null | undefined;
|
|
65
|
+
/** 招待のリンクのコードの置き場所 */
|
|
66
|
+
export declare const INVITE_CODE_PLACEHOLDER = "{code}";
|
|
67
|
+
/**
|
|
68
|
+
* エンドユーザーの設定
|
|
69
|
+
* - enabled: エンドユーザーの機能の有効
|
|
70
|
+
* - inviteUrl: 紐付けの招待のリンク({code} を含む https の URL、なしはコードだけ)
|
|
71
|
+
* - providers: 本人の証明の発行者
|
|
72
|
+
* - consentPurposes: プロジェクトが宣言する同意の目的(固定の service・marketing に足す、consents.ts)
|
|
73
|
+
*/
|
|
74
|
+
/** ログインした人がだれでも読めるエンドユーザーの設定の要約(有効か、発行者の id と表示名。ワークスペースの表示の切り替え) */
|
|
75
|
+
export type EndUsersConfig = Readonly<{
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
providers: readonly Readonly<{
|
|
78
|
+
id: string;
|
|
79
|
+
label: string;
|
|
80
|
+
}>[];
|
|
81
|
+
}>;
|
|
82
|
+
/** エンドユーザーの設定の要約 */
|
|
83
|
+
export declare const endUsersConfigOf: (s: Pick<EndUsersSettings, "enabled" | "providers">) => EndUsersConfig;
|
|
84
|
+
export type EndUsersSettings = Readonly<{
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
inviteUrl?: string;
|
|
87
|
+
graceSec: number;
|
|
88
|
+
providers: readonly EndUserProvider[];
|
|
89
|
+
consentPurposes?: readonly ConsentPurpose[];
|
|
90
|
+
}>;
|
|
91
|
+
/** 保存のないエンドユーザーの設定 */
|
|
92
|
+
export declare const DEFAULT_END_USERS_SETTINGS: EndUsersSettings;
|
|
93
|
+
/** エンドユーザーの設定の問題の文 */
|
|
94
|
+
export declare const END_USERS_SETTINGS_ISSUES: {
|
|
95
|
+
readonly shape: "エンドユーザーの設定の形が不正";
|
|
96
|
+
readonly enabled: "有効は真偽";
|
|
97
|
+
readonly graceSec: `\u7336\u4E88\u306F${number}\u304B\u3089${number}\u306E\u6574\u6570\uFF08\u79D2\uFF09`;
|
|
98
|
+
readonly inviteUrl: `\u62DB\u5F85\u306E\u30EA\u30F3\u30AF\u306F ${string} \u3092\u542B\u3080 https \u306E URL`;
|
|
99
|
+
readonly providers: `\u767A\u884C\u8005\u306F${number}\u4EF6\u307E\u3067`;
|
|
100
|
+
readonly consentPurposes: `\u540C\u610F\u306E\u76EE\u7684\u306F${number}\u4EF6\u307E\u3067\u3067\u3001key \u306F\u82F1\u5C0F\u6587\u5B57\u3067\u59CB\u307E\u308B\u82F1\u5C0F\u6587\u5B57\u30FB\u6570\u5B57\u30FB_ \u306E32\u6587\u5B57\u307E\u3067\uFF08service \u3068 marketing \u3068\u91CD\u306A\u3089\u306A\u3044\uFF09\u3001\u8868\u793A\u540D\u306F\u7A7A\u3067\u306A\u3044\u6587\u5B57`;
|
|
101
|
+
readonly providerId: "発行者の id は英小文字・数字・ハイフンで、設定の中で一意";
|
|
102
|
+
readonly providerText: "発行者の表示名、iss、aud は空でない文字";
|
|
103
|
+
readonly issuer: "発行者の iss は https の URL";
|
|
104
|
+
readonly algorithms: `\u7F72\u540D\u306E\u65B9\u5F0F\u306F ${string} \u304B\u30891\u3064\u4EE5\u4E0A`;
|
|
105
|
+
readonly jwksHttps: "公開鍵の取得先は https の URL";
|
|
106
|
+
readonly jwksIp: "公開鍵の取得先のホストに IP アドレスは使えない";
|
|
107
|
+
readonly jwksOwn: "公開鍵の取得先に Tunasand のドメインは使えない";
|
|
108
|
+
};
|
|
109
|
+
/** エンドユーザーの設定の問題(path は設定のキー、message は END_USERS_SETTINGS_ISSUES の文) */
|
|
110
|
+
export type EndUsersSettingsProblem = Readonly<{
|
|
111
|
+
path: string;
|
|
112
|
+
message: string;
|
|
113
|
+
}>;
|
|
114
|
+
/** エンドユーザーの設定の検査(省いたキーは既定の値、問題があれば problems) */
|
|
115
|
+
export declare function parseEndUsersSettings(input: unknown): Readonly<{
|
|
116
|
+
value: EndUsersSettings;
|
|
117
|
+
}> | Readonly<{
|
|
118
|
+
problems: readonly EndUsersSettingsProblem[];
|
|
119
|
+
}>;
|
|
120
|
+
/** エンドユーザーのイベントの名前(Webhook) */
|
|
121
|
+
export declare const END_USER_EVENTS: {
|
|
122
|
+
readonly statusChanged: "end_user.status_changed";
|
|
123
|
+
readonly deleted: "end_user.deleted";
|
|
124
|
+
};
|
|
125
|
+
/** エンドユーザーのイベントの値(Webhook の本文の data、snake_case)。from・to は前後の状態で、作成の前と削除の後は null */
|
|
126
|
+
export type EndUserEventData = Readonly<{
|
|
127
|
+
end_user_id: string;
|
|
128
|
+
from: EndUserStatus | null;
|
|
129
|
+
to: EndUserStatus | null;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* エンドユーザーの API の権利(公開の JSON は snake_case。日付は導入先のタイムゾーンの YYYY-MM-DD、ends_on は含む、null は終わりなし)
|
|
133
|
+
* - collection・record: 権利の対象のコレクションとレコードの id とスラッグ(突き合わせは id で)
|
|
134
|
+
* - expires_at: 終了日の翌日の0時(導入先のタイムゾーン、ISO 8601)、終わりなしは null
|
|
135
|
+
*/
|
|
136
|
+
export type EndUserApiEntitlement = Readonly<{
|
|
137
|
+
collection: Readonly<{
|
|
138
|
+
id: string;
|
|
139
|
+
slug: string;
|
|
140
|
+
}>;
|
|
141
|
+
record: Readonly<{
|
|
142
|
+
id: string;
|
|
143
|
+
slug: string;
|
|
144
|
+
}>;
|
|
145
|
+
starts_on: string;
|
|
146
|
+
ends_on: string | null;
|
|
147
|
+
expires_at?: string | null;
|
|
148
|
+
}>;
|
|
149
|
+
/**
|
|
150
|
+
* エンドユーザーの API の応答(照合・状態の取得・紐付け)
|
|
151
|
+
* - end_user.version: 状態の版(状態を変えるたびに1上がる)
|
|
152
|
+
* - entitlements: エンドユーザーの状態が active のときだけ、期限切れと開始前も含むすべて(停止は空)
|
|
153
|
+
* - today: 導入先のタイムゾーンの今日(権利の判定の基準)、grace_sec: SDK の障害の間の猶予(秒)
|
|
154
|
+
*/
|
|
155
|
+
export type EndUserApiResult = Readonly<{
|
|
156
|
+
end_user: Readonly<{
|
|
157
|
+
id: string;
|
|
158
|
+
status: EndUserStatus;
|
|
159
|
+
version?: number;
|
|
160
|
+
}>;
|
|
161
|
+
entitlements: readonly EndUserApiEntitlement[];
|
|
162
|
+
today: string;
|
|
163
|
+
grace_sec?: number;
|
|
164
|
+
}>;
|
|
165
|
+
/** 本人の特定の応答(created は今回作ったか、紐付けがあれば false でそのエンドユーザー) */
|
|
166
|
+
export type EndUserEnsureResult = Readonly<{
|
|
167
|
+
end_user: Readonly<{
|
|
168
|
+
id: string;
|
|
169
|
+
status: EndUserStatus;
|
|
170
|
+
}>;
|
|
171
|
+
created: boolean;
|
|
172
|
+
}>;
|
|
173
|
+
/** エンドユーザーの API の業務の失敗のコード(ほかは配信 API の共通のエラー) */
|
|
174
|
+
export declare const END_USER_API_ERRORS: readonly ["invalid_id_token", "end_user_not_linked", "end_user_pending", "not_found", "already_linked", "invalid_invite"];
|
|
175
|
+
/** エンドユーザーの API の業務の失敗のコード */
|
|
176
|
+
export type EndUserApiError = (typeof END_USER_API_ERRORS)[number];
|
|
177
|
+
/**
|
|
178
|
+
* 本人のレコードのエンドポイント(#712、/end-users/me/<コレクション>)の業務の失敗のコード(SDK が線の上のコードのまま値で返す)
|
|
179
|
+
* - not_found: コレクションが操作を受けない・本人がいない・本人のレコードでない、invalid_input: 書けない項目や値の誤り(issues つき)
|
|
180
|
+
* - save_unmet: コレクションの保存の規則を満たさない(issues つき)、version_conflict: 版が古い
|
|
181
|
+
* - invalid_state: params.reason が end_user_inactive(本人が停止)か self_limit(エンドユーザーごとのレコードの数の上限)
|
|
182
|
+
* - rate_limited: 人ごとの書き込みかインストールごとの要求の回数の上限
|
|
183
|
+
*/
|
|
184
|
+
export declare const SELF_API_ERRORS: readonly ["not_found", "forbidden", "invalid_input", "save_unmet", "version_conflict", "invalid_state", "rate_limited"];
|
|
185
|
+
/** 本人のレコードのエンドポイントの業務の失敗のコード */
|
|
186
|
+
export type SelfApiError = (typeof SELF_API_ERRORS)[number];
|
|
187
|
+
/** 公開のクライアントの資格の能力(契約だけ、実装は要望の後) */
|
|
188
|
+
export type PublicClientCapability = 'verify_with_proof' | 'refresh_token' | 'end_user_delivery';
|
|
189
|
+
/** ワークスペースのエンドユーザーの紐付け(provider は設定の発行者の id、設定にない発行者は null) */
|
|
190
|
+
export type EndUserIdentityView = Readonly<{
|
|
191
|
+
provider: string | null;
|
|
192
|
+
issuer: string;
|
|
193
|
+
audience: string;
|
|
194
|
+
subject: string;
|
|
195
|
+
createdAt: string;
|
|
196
|
+
state: 'pending' | 'active';
|
|
197
|
+
}>;
|
|
198
|
+
/**
|
|
199
|
+
* 確認待ちの紐付け(管理者の確認の一覧、#698 M3)
|
|
200
|
+
* - entitlements は人の今と先の権利の数、rows はエンドユーザーへの参照のフィールドでその人を指す行の数(結ぶとその外部 ID のログインで読めるもの)
|
|
201
|
+
* - linked は同じ人に同じ発行者の active の紐付けがある(確認は拒まれる)
|
|
202
|
+
*/
|
|
203
|
+
export type PendingIdentityView = EndUserIdentityView & Readonly<{
|
|
204
|
+
endUserId: string;
|
|
205
|
+
endUserStatus: EndUserStatus | null;
|
|
206
|
+
entitlements: number;
|
|
207
|
+
rows: number;
|
|
208
|
+
linked: boolean;
|
|
209
|
+
}>;
|
|
210
|
+
/** ワークスペースのエンドユーザーの一覧の1行 */
|
|
211
|
+
export type EndUserListItem = Readonly<{
|
|
212
|
+
id: string;
|
|
213
|
+
status: EndUserStatus;
|
|
214
|
+
version: number;
|
|
215
|
+
createdAt: string;
|
|
216
|
+
identities: readonly EndUserIdentityView[];
|
|
217
|
+
}>;
|
|
218
|
+
/** ワークスペースのエンドユーザーの権利(installationId は出どころがインストールのときだけ) */
|
|
219
|
+
export type EndUserEntitlementView = Readonly<{
|
|
220
|
+
id: string;
|
|
221
|
+
targetCollection: string;
|
|
222
|
+
targetId: string;
|
|
223
|
+
startsOn: string;
|
|
224
|
+
endsOn: string | null;
|
|
225
|
+
source: EntitlementSource;
|
|
226
|
+
installationId: string | null;
|
|
227
|
+
version: number;
|
|
228
|
+
}>;
|
|
229
|
+
/** ワークスペースのエンドユーザーの詳細(targetCollections は権利の対象にできるコレクション、today は導入先の今日) */
|
|
230
|
+
export type EndUserDetail = Readonly<{
|
|
231
|
+
endUser: Readonly<{
|
|
232
|
+
id: string;
|
|
233
|
+
status: EndUserStatus;
|
|
234
|
+
version: number;
|
|
235
|
+
createdAt: string;
|
|
236
|
+
}>;
|
|
237
|
+
identities: readonly EndUserIdentityView[];
|
|
238
|
+
entitlements: readonly EndUserEntitlementView[];
|
|
239
|
+
targetCollections: readonly string[];
|
|
240
|
+
today: string;
|
|
241
|
+
}>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { type Catalog, type Locale } from '../../i18n/src/index.js';
|
|
2
|
-
import { type ErrorBody, type ErrorCode, type ErrorParams, type ErrorTarget } from './errors.js';
|
|
2
|
+
import { type ErrorBody, type ErrorCode, type ErrorParams, type ErrorTarget, type ProblemFields } from './errors.js';
|
|
3
3
|
export declare const ERROR_MESSAGES: {
|
|
4
|
-
/**
|
|
4
|
+
/** コアの対象の表示名(エラーの文と操作の履歴で共通、アプリの対象は AppDefinition の targets) */
|
|
5
5
|
readonly targets: {
|
|
6
6
|
readonly request: "作成の依頼";
|
|
7
7
|
readonly role: "ロール";
|
|
8
|
-
readonly
|
|
8
|
+
readonly files: "ファイル";
|
|
9
9
|
readonly record: "マスタ";
|
|
10
|
-
readonly
|
|
10
|
+
readonly file: "画像";
|
|
11
11
|
readonly mcp: "MCP";
|
|
12
12
|
readonly version: "バージョン";
|
|
13
13
|
readonly profile: "プロフィール";
|
|
14
14
|
readonly portrait: "顔の画像";
|
|
15
|
-
readonly
|
|
15
|
+
readonly standard_app: "標準の機能";
|
|
16
16
|
readonly account: "アカウント";
|
|
17
17
|
readonly comment: "コメント";
|
|
18
18
|
readonly view: "ビュー";
|
|
@@ -20,11 +20,14 @@ export declare const ERROR_MESSAGES: {
|
|
|
20
20
|
readonly external_function: "カスタム検証";
|
|
21
21
|
readonly external_screen: "カスタム画面";
|
|
22
22
|
readonly api_key: "API キー";
|
|
23
|
-
readonly
|
|
23
|
+
readonly read_token: "読み取りのトークン";
|
|
24
|
+
readonly mail_domain: "送信のドメイン";
|
|
25
|
+
readonly channel: "チャネル";
|
|
26
|
+
readonly channel_address: "チャネルのアドレス";
|
|
24
27
|
readonly trash: "ゴミ箱";
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
+
readonly end_user: "エンドユーザー";
|
|
29
|
+
readonly end_user_identity: "エンドユーザーの結び付け";
|
|
30
|
+
readonly entitlement: "エンドユーザーの権利";
|
|
28
31
|
readonly app: "アプリ";
|
|
29
32
|
readonly installation: "インストール";
|
|
30
33
|
readonly invitation: "招待";
|
|
@@ -33,12 +36,13 @@ export declare const ERROR_MESSAGES: {
|
|
|
33
36
|
/** コードごとの文 */
|
|
34
37
|
readonly codes: {
|
|
35
38
|
readonly invalid_input: "入力に誤りがあります。内容を確かめて直してください。";
|
|
36
|
-
readonly
|
|
39
|
+
readonly uuid_not_accepted: "ID の形が違います。UUID ではなく、英小文字と数字の26文字の ID を指定してください。";
|
|
40
|
+
readonly transition_unmet: "レビューを依頼する条件を満たしていません。各フィールドの理由を確かめて直してください。";
|
|
37
41
|
readonly publish_unmet: "公開の条件を満たしていません。各フィールドの理由を確かめて直してください。";
|
|
38
42
|
readonly save_unmet: "保存の条件を満たしていません。各フィールドの理由を確かめて直してください。";
|
|
39
43
|
readonly version_required: "元にしたバージョン(version)が必要です。画面を読み込み直してから、もう一度保存してください。";
|
|
40
44
|
readonly file_required: "画像のファイルを選んでください。";
|
|
41
|
-
readonly file_too_large: "画像は{
|
|
45
|
+
readonly file_too_large: "画像は{fileMaxMB, number}MBまでです。";
|
|
42
46
|
readonly unsupported_image: "対応していない画像の形式です(PNG・JPEG・GIF・WebP)。";
|
|
43
47
|
readonly unsupported_file: "対応していないファイルの形式です(PDF・ZIP・テキスト・CSV・Word・Excel・PowerPoint)。";
|
|
44
48
|
readonly invalid_dimensions: "画像の寸法を読み取れません。別の画像を選んでください。";
|
|
@@ -48,8 +52,8 @@ export declare const ERROR_MESSAGES: {
|
|
|
48
52
|
readonly invalid_mcp_token: "MCP からの呼び出しを確認できません。AI のコネクタから接続し直してください。";
|
|
49
53
|
readonly mcp_signature_invalid: "MCP のサーバーからの呼び出しを確認できません。運営者に連絡してください。";
|
|
50
54
|
readonly invalid_account_token: "アプリのアカウントの資格のトークンが無効です。画面のトークンで替え直してください。";
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
55
|
+
readonly read_token_required: "公開していない版の取得には、未公開の読み取りの権限を持つ API キー、読み取りのトークン、読む版の選択のチケットのどれかが必要です。";
|
|
56
|
+
readonly invalid_read_token: "読み取りのトークンかチケットが無効か、期限が切れています。設定の配信で、有効なトークンか確かめてください。";
|
|
53
57
|
readonly api_key_required: "API キーが必要です。リクエストの Authorization: Bearer に API キーを付けてください。";
|
|
54
58
|
readonly invalid_api_key: "API キーが無効です。設定の API キーで、失効していないキーを確かめてください。";
|
|
55
59
|
readonly invalid_id_token: "ID トークンが無効です。取り直してから送ってください。";
|
|
@@ -61,29 +65,29 @@ export declare const ERROR_MESSAGES: {
|
|
|
61
65
|
readonly admin_only: "管理者だけの操作です。必要なときは、管理者に依頼してください。";
|
|
62
66
|
readonly operator_read_only: "サポートのアクセスの許可が閲覧だけのため、変更できません。変更が要るときは、プロジェクトの管理者に許可の範囲の変更を依頼してください。";
|
|
63
67
|
readonly not_trial: "検証用のフラグのプロジェクトだけの操作です。";
|
|
64
|
-
readonly not_live: "
|
|
65
|
-
readonly operator_closed: "
|
|
68
|
+
readonly not_live: "本番の環境だけでできる操作です。本番の環境のワークスペースから操作してください。";
|
|
69
|
+
readonly operator_closed: "サポートのアクセスでは変更できない操作です(アカウント、ロール、連携、アプリ、エンドユーザーの ID、許可など)。プロジェクトの管理者に依頼してください。";
|
|
66
70
|
readonly forbidden: "{target, select, none {この操作の権限がありません。} other {{target}のこの操作の権限がありません。}}必要なときは、管理者にロールの見直しを依頼してください。";
|
|
67
|
-
readonly
|
|
71
|
+
readonly create_requires_publish: "{target, select, none {対象} other {{target}}}は、公開の権限があるアカウントだけが作成できます。公開の権限があるメンバーに作成を依頼してください。";
|
|
68
72
|
readonly no_linked_record: "{name}が結び付いていないアカウントは操作できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。";
|
|
69
73
|
readonly own_only: "自分の{target, select, none {もの} other {{target}}}だけを操作できます。";
|
|
70
74
|
readonly not_visible: "ほかの人の公開前の{target, select, none {対象} other {{target}}}は閲覧できません。";
|
|
71
|
-
readonly
|
|
75
|
+
readonly edit_requires_publish: "公開中のレコードの編集には、公開の権限が必要です。公開の権限があるメンバーに編集を依頼してください。";
|
|
72
76
|
readonly cannot_remove_self: "自分を結び付きから外すことはできません。ほかの管理者に依頼してください。";
|
|
73
77
|
readonly cannot_change_owner: "本人を示すフィールドの値は変更できません。";
|
|
74
78
|
readonly not_found: "{target, select, none {対象} other {{target}}}が見つかりません。削除された可能性があります。画面を読み込み直してください。";
|
|
75
79
|
readonly method_not_allowed: "この経路はこのメソッドを受け付けません。";
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly in_use: "{by, select, uses {{count, number}件で使用中のため、削除できません。} places {{count, number}か所で使用中のため、削除できません。} outputs {{count, number}件の企画の成果物で使用中のため、削除できません。} record {{name, select, none {ほかの内容} other {{name}}}で使用中のため、削除できません。} writers {{count, number}件のレコードに結び付いているため、削除できません。}
|
|
80
|
+
readonly end_user_not_linked: "このアカウントに結び付くエンドユーザーがいません。管理者に、エンドユーザーとアカウントの結び付けを依頼してください。";
|
|
81
|
+
readonly end_user_pending: "このアカウントの結び付けは、運営の確認の後に使えます。確認が終わるまでお待ちください。";
|
|
82
|
+
readonly 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 {使用中のため、削除できません。}}使っている所から外してから、もう一度削除してください。";
|
|
79
83
|
readonly duplicate_name: "同じ名前がすでにあります。別の名前を付けてください。";
|
|
80
84
|
readonly duplicate_email: "同じメールアドレスのアカウントがすでにあります。一覧のそのアカウントを編集してください。";
|
|
81
85
|
readonly duplicate_id: "この ID はすでに使用されています。別の ID を指定してください。";
|
|
82
86
|
readonly duplicate_slug: "このスラッグはすでに使用されています。別のスラッグを指定してください。";
|
|
83
87
|
readonly version_conflict: "ほかの更新と重なりました。最新のバージョンを読み込んでやり直してください。";
|
|
84
|
-
readonly
|
|
88
|
+
readonly record_locked: "{name, select, none {ほかの人} other {{name}}}が CMS で編集中のため、保存できません。編集画面を閉じるか別のタブに切り替えると、2分以内に保存できるようになります。";
|
|
85
89
|
readonly invalid_state: "今の状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。";
|
|
86
|
-
readonly
|
|
90
|
+
readonly still_published: "公開中のレコードは、非公開にしてから削除してください。";
|
|
87
91
|
readonly last_admin: "最後の管理者は、外すことも管理者のロールから降ろすこともできません。先にほかの人を管理者にしてください。";
|
|
88
92
|
readonly exceeds_own: "自分のロールより広い権限は付けられません。広い権限が要るときは、管理者に依頼してください。";
|
|
89
93
|
readonly reauth_required: "承認の前に、もう一度ログインしてください。";
|
|
@@ -91,7 +95,7 @@ export declare const ERROR_MESSAGES: {
|
|
|
91
95
|
readonly stale: "申請の後に内容が変わりました。もう一度申請してください。";
|
|
92
96
|
readonly approval_closed: "この申請はもう承認できません(反映済み、却下、取り下げ、期限切れのいずれか)。必要なときは、もう一度申請してください。";
|
|
93
97
|
readonly cursor_expired: "変更の記録の保存の期間を過ぎました。cursor なしで全件を取り直してください。";
|
|
94
|
-
readonly already_linked: "{reason, select, identity {
|
|
98
|
+
readonly already_linked: "{reason, select, identity {このアカウントは、すでにほかのエンドユーザーに結び付いています。} record {このアカウントには、すでにこのプロジェクトのレコードが結び付いています。} other {このエンドユーザーは、すでに同じ発行者のアカウントに結び付いています。}}結び付けを替えるときは、先に今の結び付けを外してください。";
|
|
95
99
|
readonly run_done: "この取り込みの実行は完了済みです。新しい実行でやり直してください。";
|
|
96
100
|
readonly invalid_invite: "{reason, select, expired {招待の期限が過ぎています。} used {招待はすでに使われています。} other {招待が見つかりません。}}招待した人に、招待の送り直しを依頼してください。";
|
|
97
101
|
readonly body_too_large: "送信する内容は{bodyMaxMB, number}MBまでです。内容を分けて送ってください。";
|
|
@@ -111,33 +115,40 @@ export declare const ERROR_MESSAGES: {
|
|
|
111
115
|
readonly no_draft: "公開中のバージョンと別の未公開の変更がありません。";
|
|
112
116
|
readonly not_in_review: "レビュー待ちではありません。画面を読み込み直してください。";
|
|
113
117
|
readonly request_handled: "この依頼はすでに対応済みです。";
|
|
118
|
+
readonly requester_unauthorized: "申請した人に、この操作を申請する権限がなくなっています。";
|
|
114
119
|
readonly deleted: "すでに削除されています。";
|
|
115
120
|
readonly not_deleted: "削除されていないため、復元できません。";
|
|
116
121
|
readonly schema_confirm: "影響のある変更を含みます。件数を確認してから保存してください。";
|
|
117
|
-
readonly
|
|
122
|
+
readonly no_publication: "このコレクションにはワークフローがありません。";
|
|
118
123
|
readonly no_review: "このコレクションのワークフローにはレビューがありません。";
|
|
119
124
|
readonly not_published: "公開中・予約中ではありません。";
|
|
120
125
|
readonly collection_rows: "レコードが残っています。件数を確認してから削除してください。";
|
|
121
126
|
readonly restore_conflict: "{name, select, none {同じ内容} other {{name}}}がすでにあるため、復元できません。先に今あるものを変更するか削除してください。";
|
|
127
|
+
readonly restore_target_trashed: "{name}がゴミ箱にあるため、復元できません。先に参照しているレコードを復元してください。";
|
|
122
128
|
readonly collection_exists: "同じ ID のコレクションがすでにあるため、復元できません。先にそのコレクションの ID を変更してください。";
|
|
123
129
|
readonly collection_missing: "コレクションが削除されているため、復元できません。先にコレクションを復元してください。";
|
|
124
|
-
readonly not_restorable: "
|
|
130
|
+
readonly not_restorable: "本人の削除の求めによる削除のため、復元できません。";
|
|
125
131
|
readonly installation_state: "今のインストールの状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。";
|
|
126
132
|
readonly site_deploy: "今はサイトを上げられません。ほかのアップロードの最中か、サイトが止められているか外されています。少し待ってから上げ直し、続くときは運営者に連絡してください。";
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
133
|
+
readonly site_check_failed: "配置の直後の確認で外れたため、配置を取り消しました。公開中のサイトは変わりません。直したものを上げ直してください。";
|
|
134
|
+
readonly deployment_stale: "ほかの操作で有効なデプロイが変わりました。画面を読み込み直してから、有効にし直してください。";
|
|
135
|
+
readonly deployment_not_ready: "このデプロイは有効にできません。配置に失敗したか、配置が残っていません。";
|
|
136
|
+
readonly deployment_consent: "このデプロイが使う能力の同意が足りないため、有効にできません。アプリの同意を確かめてください。";
|
|
137
|
+
readonly required_app: "止められない標準の機能は、停止もアンインストールもできません。";
|
|
129
138
|
readonly app_installed: "アプリは1つのプロジェクトに1つだけインストールできます。";
|
|
130
139
|
readonly app_dependencies: "依存のアプリをそろえられません。アプリの詳細で、足りないアプリと合わないアプリを確かめてください。";
|
|
140
|
+
readonly app_required_by: "依存するアプリ({name})が入っているため、アンインストールできません。先に依存するアプリをアンインストールしてください。";
|
|
131
141
|
readonly app_reinstalled: "同じアプリを入れ直したインストールがあるため、古いインストールのデータは消せません。";
|
|
132
142
|
readonly app_managed: "アプリのインストールが管理する登録です。変更はアプリの新しいバージョンの同意で行います。";
|
|
133
143
|
readonly request_key_reused: "同じ重複を除くキーで、別の人かチャネルか目的の記録がすでにあります。別のキーで送ってください。";
|
|
134
|
-
readonly
|
|
144
|
+
readonly no_organization: "組織に属していないプロジェクトのため、招待できません。運営者に組織への所属を頼んでください。";
|
|
135
145
|
readonly schema_changed: "スキーマが変更されたため、保存できませんでした。画面を読み込み直してください。";
|
|
136
|
-
readonly
|
|
146
|
+
readonly end_user_inactive: "このエンドユーザーは停止中のため、操作できません。エンドユーザーの画面で状態を確かめてください。";
|
|
137
147
|
readonly self_limit: "1人あたりのレコードの数の上限に達しています。不要なレコードを削除してから作成してください。";
|
|
138
148
|
readonly already_live: "この環境はすでに本番です。";
|
|
139
149
|
readonly target_live: "本番の環境は削除できません。先にほかの環境へ切り替えてください。";
|
|
140
150
|
readonly target_synthetic: "合成のデータの環境は本番にできません。本番にする環境を選び直してください。";
|
|
151
|
+
readonly target_anonymized: "個人の情報を仮の値に置き換えたか除いてコピーした環境は、本番に切り替えられません。運営者に、値を保つコピーを依頼してください。スキーマだけの反映はできます。";
|
|
141
152
|
readonly no_changes: "本番との差がありません。";
|
|
142
153
|
readonly schema_values: "値のある項目を消す変更を含むため、反映できません。本番で値を移してからやり直してください。";
|
|
143
154
|
readonly environment_limit: "環境の数がプランの上限に達しています。不要な環境を削除してから作成してください。";
|
|
@@ -145,14 +156,18 @@ export declare const ERROR_MESSAGES: {
|
|
|
145
156
|
readonly unregistered_table: "個人の情報の扱いが決まっていない表があるため、コピーできません。運営者に連絡してください。";
|
|
146
157
|
readonly not_frozen: "本番の書き込みは止まっていません。";
|
|
147
158
|
readonly approval_running: "承認した操作の実行中です。少し待ってからやり直してください。";
|
|
159
|
+
readonly aggregate_read_only: "集計のコレクションは読むだけです。値は作り直しの処理だけが書きます。";
|
|
160
|
+
readonly not_aggregate: "集計のコレクションではありません。";
|
|
161
|
+
readonly condition_unmet: "条件に指定したレコードが変わっているか、読み取れません。";
|
|
162
|
+
readonly app_state_keys_full: "アプリ用の状態のキーの数が上限に達しています。";
|
|
148
163
|
};
|
|
149
|
-
/** own_only
|
|
164
|
+
/** own_only の対象ごとの文(アプリの文は manifest の messages) */
|
|
150
165
|
readonly own: {
|
|
151
166
|
readonly profile: "自分のプロフィールだけを編集できます。";
|
|
152
167
|
readonly portrait: "自分の顔の画像だけを変更できます。";
|
|
153
168
|
};
|
|
154
169
|
/** no_linked_record の対象ごとの文(name は結び付くコレクションの表示名) */
|
|
155
|
-
readonly
|
|
170
|
+
readonly no_link: {
|
|
156
171
|
readonly mcp: "{name}が結び付いていないアカウントは、MCP を使用できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。";
|
|
157
172
|
};
|
|
158
173
|
/** no_linked_record の name が無いときの語 */
|
|
@@ -160,7 +175,8 @@ export declare const ERROR_MESSAGES: {
|
|
|
160
175
|
/** コードごとの見出し */
|
|
161
176
|
readonly titles: {
|
|
162
177
|
readonly invalid_input: "入力エラー";
|
|
163
|
-
readonly
|
|
178
|
+
readonly uuid_not_accepted: "入力エラー";
|
|
179
|
+
readonly transition_unmet: "レビューを依頼できません";
|
|
164
180
|
readonly publish_unmet: "公開できません";
|
|
165
181
|
readonly save_unmet: "保存できません";
|
|
166
182
|
readonly version_required: "入力エラー";
|
|
@@ -175,8 +191,8 @@ export declare const ERROR_MESSAGES: {
|
|
|
175
191
|
readonly invalid_mcp_token: "ログインエラー";
|
|
176
192
|
readonly mcp_signature_invalid: "ログインエラー";
|
|
177
193
|
readonly invalid_account_token: "ログインエラー";
|
|
178
|
-
readonly
|
|
179
|
-
readonly
|
|
194
|
+
readonly read_token_required: "ログインエラー";
|
|
195
|
+
readonly invalid_read_token: "ログインエラー";
|
|
180
196
|
readonly api_key_required: "ログインエラー";
|
|
181
197
|
readonly invalid_api_key: "ログインエラー";
|
|
182
198
|
readonly invalid_id_token: "ログインエラー";
|
|
@@ -191,26 +207,26 @@ export declare const ERROR_MESSAGES: {
|
|
|
191
207
|
readonly not_trial: "権限がありません";
|
|
192
208
|
readonly not_live: "本番の環境だけの操作です";
|
|
193
209
|
readonly forbidden: "権限がありません";
|
|
194
|
-
readonly
|
|
210
|
+
readonly create_requires_publish: "権限がありません";
|
|
195
211
|
readonly no_linked_record: "権限がありません";
|
|
196
212
|
readonly own_only: "権限がありません";
|
|
197
213
|
readonly not_visible: "権限がありません";
|
|
198
|
-
readonly
|
|
214
|
+
readonly edit_requires_publish: "権限がありません";
|
|
199
215
|
readonly cannot_remove_self: "権限がありません";
|
|
200
216
|
readonly cannot_change_owner: "権限がありません";
|
|
201
217
|
readonly not_found: "見つかりません";
|
|
202
218
|
readonly method_not_allowed: "操作できません";
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
219
|
+
readonly end_user_not_linked: "見つかりません";
|
|
220
|
+
readonly end_user_pending: "確認待ちです";
|
|
205
221
|
readonly in_use: "削除できません";
|
|
206
222
|
readonly duplicate_name: "重複しています";
|
|
207
223
|
readonly duplicate_email: "重複しています";
|
|
208
224
|
readonly duplicate_id: "重複しています";
|
|
209
225
|
readonly duplicate_slug: "重複しています";
|
|
210
226
|
readonly version_conflict: "更新が重なりました";
|
|
211
|
-
readonly
|
|
227
|
+
readonly record_locked: "編集中です";
|
|
212
228
|
readonly invalid_state: "操作できません";
|
|
213
|
-
readonly
|
|
229
|
+
readonly still_published: "削除できません";
|
|
214
230
|
readonly last_admin: "操作できません";
|
|
215
231
|
readonly exceeds_own: "権限がありません";
|
|
216
232
|
readonly reauth_required: "再認証が必要";
|
|
@@ -242,26 +258,39 @@ export declare const TARGET_LABELS: Readonly<Record<ErrorTarget, string>>;
|
|
|
242
258
|
/** コレクションの id・マスタの種類からエラーの対象(対象の一覧になければ fallback) */
|
|
243
259
|
export declare const targetOf: (id: string, fallback: ErrorTarget) => ErrorTarget;
|
|
244
260
|
/**
|
|
245
|
-
*
|
|
261
|
+
* 対象ごとの文の追加(アプリの manifest の messages、キーは対象の id、値は ICU MessageFormat)
|
|
246
262
|
* - own: 自分のものだけを操作できるときの文
|
|
247
|
-
* -
|
|
263
|
+
* - no_link: 結び付くレコードがないアカウントの文、{name} は結び付くコレクションの表示名
|
|
248
264
|
*/
|
|
249
265
|
export type TargetMessages = Readonly<{
|
|
250
266
|
own?: Readonly<Record<string, string>>;
|
|
251
|
-
|
|
267
|
+
no_link?: Readonly<Record<string, string>>;
|
|
252
268
|
}>;
|
|
253
|
-
/** エラーの画面の文(targets は対象の表示名、messages
|
|
269
|
+
/** エラーの画面の文(targets は対象の表示名、messages は対象ごとの文の追加、画面はアプリの対象と文とコレクションの表示名を含めた表。problems は name に入る問題の文) */
|
|
254
270
|
export declare function errorLabel(code: ErrorCode, params?: ErrorParams, targets?: Readonly<Record<string, string>>, messages?: TargetMessages, catalog?: ErrorCatalog, problems?: Readonly<Record<string, string>>, locale?: Locale): string;
|
|
255
|
-
/** 応答のエラーの英語の文(targets
|
|
271
|
+
/** 応答のエラーの英語の文(targets はコレクションの表示名、コアの対象は英語の表、アプリの対象と文は使わない) */
|
|
256
272
|
export declare const errorText: (code: ErrorCode, params?: ErrorParams, targets?: Readonly<Record<string, string>>) => string;
|
|
257
273
|
/** 応答のエラーの文をカタログから作る(対象の表示名はカタログの表、ほかの言語の画面とアプリ向け) */
|
|
258
274
|
export declare const errorMessageOf: (error: Readonly<{
|
|
259
275
|
code: ErrorCode;
|
|
260
276
|
params?: ErrorParams;
|
|
261
277
|
}>, catalog?: ErrorCatalog) => string;
|
|
262
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* type のないエラーの本文(アプリが返す本文。type は基盤が経路の応答に PROBLEM_TYPE_BASE から付ける、withProblemType)
|
|
280
|
+
* - 公開の SDK に基盤のホスト名を含めないため、アプリの側では type を組み立てない(RFC 9457: type がなければ about:blank と同じ扱い)
|
|
281
|
+
*/
|
|
282
|
+
export declare const problemBodyWithoutType: (code: Exclude<ErrorCode, "network_error">, requestId: string, fields?: ProblemFields) => Omit<ErrorBody, "type">;
|
|
283
|
+
/** エラーの本文(problem+json、requestId は要求の x-request-id、detail の既定は英語の定型の文) */
|
|
284
|
+
export declare const problemBody: (code: Exclude<ErrorCode, "network_error">, requestId: string, fields?: ProblemFields) => ErrorBody;
|
|
285
|
+
/** プロジェクトの文脈の外(受け皿の Worker・レジストリ・アプリ)のエラーの本文 */
|
|
263
286
|
export declare const errorBodyFor: (code: Exclude<ErrorCode, "network_error">, requestId: string, params?: ErrorParams) => ErrorBody;
|
|
264
|
-
/**
|
|
287
|
+
/** エラーの応答(Content-Type は application/problem+json、状態は本文の status) */
|
|
288
|
+
export declare const problemResponse: (body: Omit<ErrorBody, "type"> & {
|
|
289
|
+
type?: string;
|
|
290
|
+
}, headers?: Readonly<Record<string, string>>) => Response;
|
|
291
|
+
/** アプリの経路の応答の problem+json に type を付ける(type がなく code があるときだけ。ほかの応答はそのまま) */
|
|
292
|
+
export declare function withProblemType(response: Response): Promise<Response>;
|
|
293
|
+
/** アプリの対象ごとの文をまとめる(同じ対象はあとのアプリの文) */
|
|
265
294
|
export declare const mergeMessages: (list: readonly (TargetMessages | undefined)[]) => TargetMessages;
|
|
266
295
|
/** エラーのトーストの見出し(項目ごとの理由がすべて未入力なら必須項目のエラー、スキーマの文は「〜が未入力」で統一) */
|
|
267
296
|
export declare const errorTitle: (code: ErrorCode, issues?: readonly {
|