@tunasand/sdk 0.8.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +137 -0
- package/README.md +165 -144
- package/dist/analytics.js +183 -109
- package/dist/app.js +276 -166
- package/dist/apps-BysPfMuR.js +408 -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-C2Bl-OAF.js +80 -0
- package/dist/bridge.js +1 -13
- package/dist/build-file-DNi0PHC5.js +31 -0
- package/dist/cli.js +6212 -8
- 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-26aglrg6.js +282 -0
- package/dist/{declared-DuNMsdXw.js → declared-CE4a61qb.js} +35 -35
- package/dist/delivery.js +121 -114
- package/dist/dev-operations-Tutwi1On.js +46 -0
- package/dist/dev.js +9 -16
- package/dist/embeds-DY6O5TrJ.js +29 -0
- package/dist/end-users.d.ts +1 -0
- package/dist/end-users.js +189 -0
- package/dist/endUsers-DODfjnv1.js +77 -0
- package/dist/{errorLabels-BgtQ_zUn.js → errorLabels-BK1NJ6Wz.js} +374 -238
- package/dist/i18n.js +4 -4
- package/dist/ids-DmtIoqBX.js +109 -0
- package/dist/integrations.js +95 -24
- package/dist/{ja-Du6ooL6i.js → ja-B3lAaOhZ.js} +91 -45
- package/dist/{ja-CeHU0EaY.js → ja-axQPxMJ-.js} +3 -3
- package/dist/operations-CIB99rIY.js +95 -0
- package/dist/operations.d.ts +1 -0
- package/dist/operations.js +1 -0
- package/dist/{page-Bzrj24sJ.js → page-yo1cw1kW.js} +1 -1
- package/dist/paymentPort-p1jV44Zz.js +203 -0
- package/dist/preview.js +8 -1
- package/dist/{profile-1em_lcxq.js → profile-DBsXLvvI.js} +48 -48
- package/dist/rich-text.js +16 -16
- package/dist/{schema-WnobuwLg.js → schema-Bs_BUUNv.js} +526 -265
- package/dist/schema.js +66 -88
- package/dist/types/access/src/handoff.d.ts +19 -14
- 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/oidc.d.ts +12 -2
- 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/contract/src/api/define.d.ts +165 -0
- package/dist/types/contract/src/apiKeys.d.ts +6 -2
- package/dist/types/contract/src/app.d.ts +32 -7
- package/dist/types/contract/src/appChannels.d.ts +152 -0
- package/dist/types/contract/src/appDefinition.d.ts +11 -5
- package/dist/types/contract/src/appDependencies.d.ts +107 -24
- package/dist/types/contract/src/appIdentities.d.ts +21 -0
- package/dist/types/contract/src/appInbound.d.ts +53 -0
- package/dist/types/contract/src/appMail.d.ts +106 -0
- package/dist/types/contract/src/appSecrets.d.ts +63 -0
- package/dist/types/contract/src/appServer.d.ts +460 -45
- package/dist/types/contract/src/approvals.d.ts +1 -1
- package/dist/types/contract/src/apps.d.ts +126 -60
- package/dist/types/contract/src/auditActions.d.ts +2 -2
- package/dist/types/contract/src/auditLabels.d.ts +120 -15
- package/dist/types/contract/src/authorize.d.ts +42 -14
- package/dist/types/contract/src/bridge.d.ts +35 -36
- package/dist/types/contract/src/consents.d.ts +29 -27
- package/dist/types/contract/src/deletion.d.ts +18 -0
- package/dist/types/contract/src/embeds.d.ts +26 -90
- package/dist/types/contract/src/{customerLabels.d.ts → endUserLabels.d.ts} +6 -9
- package/dist/types/contract/src/endUsers.d.ts +244 -0
- package/dist/types/contract/src/errorLabels.d.ts +67 -37
- package/dist/types/contract/src/errorLabelsEn.d.ts +50 -33
- package/dist/types/contract/src/errors.d.ts +28 -16
- package/dist/types/contract/src/eventSchemas.d.ts +70 -0
- package/dist/types/contract/src/eventTraces.d.ts +41 -0
- package/dist/types/contract/src/failureStatus.d.ts +14 -22
- package/dist/types/contract/src/fieldAccess.d.ts +8 -8
- package/dist/types/contract/src/formLabels.d.ts +3 -0
- package/dist/types/contract/src/forms.d.ts +4 -0
- 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 +44 -19
- package/dist/types/contract/src/identifiers.d.ts +45 -17
- package/dist/types/contract/src/ids.d.ts +18 -10
- package/dist/types/contract/src/import.d.ts +17 -16
- package/dist/types/contract/src/index.d.ts +57 -29
- package/dist/types/contract/src/integrationGraph.d.ts +83 -0
- package/dist/types/contract/src/issueLabels.d.ts +121 -81
- package/dist/types/contract/src/issueLabelsEn.d.ts +61 -41
- package/dist/types/contract/src/manage.d.ts +16 -7
- package/dist/types/contract/src/manageLabels.d.ts +2 -0
- package/dist/types/contract/src/manifestText.d.ts +66 -0
- package/dist/types/contract/src/messagePort.d.ts +208 -0
- package/dist/types/contract/src/migration.d.ts +2 -2
- package/dist/types/contract/src/notices.d.ts +37 -0
- package/dist/types/contract/src/operationEffects.d.ts +39 -0
- package/dist/types/contract/src/operatorOperations.d.ts +104 -110
- package/dist/types/contract/src/outbound.d.ts +29 -0
- package/dist/types/contract/src/paths.d.ts +13 -0
- package/dist/types/contract/src/paymentPort.d.ts +129 -0
- package/dist/types/contract/src/pending.d.ts +2 -0
- package/dist/types/contract/src/permissions.d.ts +7 -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 +127 -56
- package/dist/types/contract/src/readPages.d.ts +92 -0
- package/dist/types/contract/src/recordLabels.d.ts +6 -0
- package/dist/types/contract/src/roles.d.ts +7 -4
- 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/contract/src/settingProblems.d.ts +18 -1
- package/dist/types/contract/src/settings.d.ts +5 -7
- package/dist/types/contract/src/siteDeclaration.d.ts +7 -7
- package/dist/types/contract/src/siteIndex.d.ts +76 -0
- package/dist/types/contract/src/transfer.d.ts +1 -1
- package/dist/types/contract/src/trial.d.ts +4 -1
- package/dist/types/contract/src/versions.d.ts +1 -3
- package/dist/types/contract/src/viewEvent.d.ts +0 -9
- package/dist/types/contract/src/webhooks.d.ts +24 -3
- package/dist/types/contract/src/workflow.d.ts +16 -19
- package/dist/types/contract/src/workspaceItems.d.ts +23 -7
- package/dist/types/contract/src/workspacePaths.d.ts +1 -1
- package/dist/types/rich-text/src/html.d.ts +1 -1
- package/dist/types/rich-text/src/index.d.ts +8 -7
- package/dist/types/rich-text/src/labels/en.d.ts +1 -1
- package/dist/types/rich-text/src/labels/ja.d.ts +2 -2
- package/dist/types/rich-text/src/library.d.ts +1 -1
- package/dist/types/rich-text/src/media.d.ts +2 -0
- package/dist/types/rich-text/src/normalize.d.ts +1 -1
- package/dist/types/rich-text/src/problems.d.ts +5 -5
- package/dist/types/rich-text/src/profile.d.ts +10 -10
- package/dist/types/rich-text/src/render.d.ts +1 -1
- package/dist/types/rich-text/src/schema.d.ts +2 -2
- package/dist/types/rich-text/src/standard.d.ts +4 -4
- package/dist/types/rich-text/src/types.d.ts +2 -2
- package/dist/types/schema/src/audience.d.ts +1 -3
- package/dist/types/schema/src/capabilities.d.ts +18 -27
- package/dist/types/schema/src/changes.d.ts +3 -1
- package/dist/types/schema/src/collection.d.ts +142 -111
- package/dist/types/schema/src/defaultSchema.d.ts +8 -2
- package/dist/types/schema/src/fieldIds.d.ts +18 -0
- package/dist/types/schema/src/file.d.ts +24 -11
- 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/schema/src/imageMetadata.d.ts +9 -0
- package/dist/types/schema/src/index.d.ts +19 -10
- package/dist/types/schema/src/indexes.d.ts +11 -0
- package/dist/types/schema/src/input.d.ts +1 -1
- package/dist/types/schema/src/integrity.d.ts +8 -7
- package/dist/types/schema/src/kinds.d.ts +26 -0
- package/dist/types/schema/src/labels/en.d.ts +89 -46
- package/dist/types/schema/src/labels/ja.d.ts +92 -46
- package/dist/types/schema/src/mediaUrl.d.ts +26 -33
- package/dist/types/schema/src/page.d.ts +4 -4
- package/dist/types/schema/src/problems.d.ts +85 -42
- package/dist/types/schema/src/refs.d.ts +0 -9
- package/dist/types/schema/src/schema.d.ts +17 -12
- package/dist/types/schema/src/selfOps.d.ts +20 -19
- package/dist/types/schema/src/traits.d.ts +28 -0
- package/dist/types/schema/src/typesSource.d.ts +1 -1
- package/dist/types/schema/src/values.d.ts +5 -2
- package/dist/types/schema/src/widening.d.ts +3 -0
- package/dist/types/sdk/src/analytics.d.ts +2 -1
- package/dist/types/sdk/src/app.d.ts +43 -14
- 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 +2 -4
- package/dist/types/sdk/src/code.d.ts +61 -0
- package/dist/types/sdk/src/delegation.d.ts +13 -3
- package/dist/types/sdk/src/delivery/changes.d.ts +4 -4
- package/dist/types/sdk/src/delivery/client.d.ts +33 -22
- package/dist/types/sdk/src/delivery/fields.d.ts +3 -3
- package/dist/types/sdk/src/delivery/index.d.ts +3 -3
- package/dist/types/sdk/src/delivery/media.d.ts +5 -8
- package/dist/types/sdk/src/delivery/query.d.ts +15 -11
- package/dist/types/sdk/src/delivery/schema.d.ts +1 -1
- package/dist/types/sdk/src/delivery/values.d.ts +10 -14
- package/dist/types/sdk/src/delivery.d.ts +2 -2
- 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 +187 -0
- package/dist/types/sdk/src/i18n.d.ts +2 -2
- package/dist/types/sdk/src/integrations.d.ts +14 -21
- 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 -2
- package/dist/types/sdk/src/schema.d.ts +1 -1
- 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/types.d.ts +1 -1
- package/dist/{types-B77qvqPJ.js → types-CYnY-63C.js} +5 -6
- package/dist/types.js +1 -1
- package/dist/{typesSource-CWybQYus.js → typesSource-BTA9-rcB.js} +17 -15
- package/package.json +32 -6
- package/dist/apps-BxnJ1RlU.js +0 -435
- package/dist/bridge-DtHw9hS6.js +0 -74
- package/dist/collection-BEOxeISR.js +0 -189
- package/dist/customers-DTbL0qn6.js +0 -86
- package/dist/customers.d.ts +0 -1
- package/dist/customers.js +0 -185
- package/dist/embeds-B5V54Zur.js +0 -34
- package/dist/ids--RF7hGyC.js +0 -36
- package/dist/src-sazhzYui.js +0 -71
- package/dist/types/contract/src/customers.d.ts +0 -266
- package/dist/types/schema/src/legacy.d.ts +0 -2
- package/dist/types/schema/src/media.d.ts +0 -5
- package/dist/types/sdk/src/customers.d.ts +0 -184
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { END_USER_EVENTS } from './endUsers.js';
|
|
2
2
|
type Range = Readonly<{
|
|
3
3
|
min: number;
|
|
4
4
|
max: number;
|
|
5
5
|
}>;
|
|
6
|
-
/**
|
|
7
|
-
export declare const
|
|
6
|
+
/** エンドユーザーの設定の問題の文(値の範囲は endUsers.ts の上限から) */
|
|
7
|
+
export declare const endUsersSettingsIssues: (v: Readonly<{
|
|
8
8
|
graceSec: Range;
|
|
9
|
-
closedRetentionDays: Range;
|
|
10
9
|
providersMax: number;
|
|
11
10
|
consentPurposesMax: number;
|
|
12
11
|
invitePlaceholder: string;
|
|
13
12
|
algorithms: readonly string[];
|
|
14
13
|
}>) => {
|
|
15
|
-
readonly shape: "
|
|
14
|
+
readonly shape: "エンドユーザーの設定の形が不正";
|
|
16
15
|
readonly enabled: "有効は真偽";
|
|
17
|
-
readonly profileCollection: "プロフィールのコレクションはコレクションの id";
|
|
18
16
|
readonly graceSec: `\u7336\u4E88\u306F${number}\u304B\u3089${number}\u306E\u6574\u6570\uFF08\u79D2\uFF09`;
|
|
19
|
-
readonly closedRetentionDays: `\u9000\u4F1A\u306E\u4FDD\u6301\u306F${number}\u304B\u3089${number}\u306E\u6574\u6570\uFF08\u65E5\uFF09`;
|
|
20
17
|
readonly inviteUrl: `\u62DB\u5F85\u306E\u30EA\u30F3\u30AF\u306F ${string} \u3092\u542B\u3080 https \u306E URL`;
|
|
21
18
|
readonly providers: `\u767A\u884C\u8005\u306F${number}\u4EF6\u307E\u3067`;
|
|
22
19
|
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`;
|
|
@@ -28,6 +25,6 @@ export declare const customersSettingsIssues: (v: Readonly<{
|
|
|
28
25
|
readonly jwksIp: "公開鍵の取得先のホストに IP アドレスは使えない";
|
|
29
26
|
readonly jwksOwn: "公開鍵の取得先に Tunasand のドメインは使えない";
|
|
30
27
|
};
|
|
31
|
-
/**
|
|
32
|
-
export declare const
|
|
28
|
+
/** エンドユーザーのイベントの表示名(Webhook の選択肢) */
|
|
29
|
+
export declare const END_USER_EVENT_LABELS: Readonly<Record<(typeof END_USER_EVENTS)[keyof typeof END_USER_EVENTS], string>>;
|
|
33
30
|
export {};
|
|
@@ -0,0 +1,244 @@
|
|
|
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
|
+
_meta?: Readonly<{
|
|
218
|
+
deleted_at: string;
|
|
219
|
+
}>;
|
|
220
|
+
}>;
|
|
221
|
+
/** ワークスペースのエンドユーザーの権利(installationId は出どころがインストールのときだけ) */
|
|
222
|
+
export type EndUserEntitlementView = Readonly<{
|
|
223
|
+
id: string;
|
|
224
|
+
targetCollection: string;
|
|
225
|
+
targetId: string;
|
|
226
|
+
startsOn: string;
|
|
227
|
+
endsOn: string | null;
|
|
228
|
+
source: EntitlementSource;
|
|
229
|
+
installationId: string | null;
|
|
230
|
+
version: number;
|
|
231
|
+
}>;
|
|
232
|
+
/** ワークスペースのエンドユーザーの詳細(targetCollections は権利の対象にできるコレクション、today は導入先の今日) */
|
|
233
|
+
export type EndUserDetail = Readonly<{
|
|
234
|
+
endUser: Readonly<{
|
|
235
|
+
id: string;
|
|
236
|
+
status: EndUserStatus;
|
|
237
|
+
version: number;
|
|
238
|
+
createdAt: string;
|
|
239
|
+
}>;
|
|
240
|
+
identities: readonly EndUserIdentityView[];
|
|
241
|
+
entitlements: readonly EndUserEntitlementView[];
|
|
242
|
+
targetCollections: readonly string[];
|
|
243
|
+
today: string;
|
|
244
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
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: {
|
|
@@ -20,11 +20,16 @@ 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: "エンドユーザーの権利";
|
|
31
|
+
readonly offer: "オファー";
|
|
32
|
+
readonly price: "価格";
|
|
28
33
|
readonly app: "アプリ";
|
|
29
34
|
readonly installation: "インストール";
|
|
30
35
|
readonly invitation: "招待";
|
|
@@ -33,8 +38,8 @@ export declare const ERROR_MESSAGES: {
|
|
|
33
38
|
/** コードごとの文 */
|
|
34
39
|
readonly codes: {
|
|
35
40
|
readonly invalid_input: "入力に誤りがあります。内容を確かめて直してください。";
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
41
|
+
readonly uuid_not_accepted: "ID の形が違います。UUID ではなく、英小文字と数字の26文字の ID を指定してください。";
|
|
42
|
+
readonly transition_unmet: "レビューを依頼する条件を満たしていません。各フィールドの理由を確かめて直してください。";
|
|
38
43
|
readonly publish_unmet: "公開の条件を満たしていません。各フィールドの理由を確かめて直してください。";
|
|
39
44
|
readonly save_unmet: "保存の条件を満たしていません。各フィールドの理由を確かめて直してください。";
|
|
40
45
|
readonly version_required: "元にしたバージョン(version)が必要です。画面を読み込み直してから、もう一度保存してください。";
|
|
@@ -49,8 +54,8 @@ export declare const ERROR_MESSAGES: {
|
|
|
49
54
|
readonly invalid_mcp_token: "MCP からの呼び出しを確認できません。AI のコネクタから接続し直してください。";
|
|
50
55
|
readonly mcp_signature_invalid: "MCP のサーバーからの呼び出しを確認できません。運営者に連絡してください。";
|
|
51
56
|
readonly invalid_account_token: "アプリのアカウントの資格のトークンが無効です。画面のトークンで替え直してください。";
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
57
|
+
readonly read_token_required: "公開していない版の取得には、未公開の読み取りの権限を持つ API キー、読み取りのトークン、読む版の選択のチケットのどれかが必要です。";
|
|
58
|
+
readonly invalid_read_token: "読み取りのトークンかチケットが無効か、期限が切れています。設定の配信で、有効なトークンか確かめてください。";
|
|
54
59
|
readonly api_key_required: "API キーが必要です。リクエストの Authorization: Bearer に API キーを付けてください。";
|
|
55
60
|
readonly invalid_api_key: "API キーが無効です。設定の API キーで、失効していないキーを確かめてください。";
|
|
56
61
|
readonly invalid_id_token: "ID トークンが無効です。取り直してから送ってください。";
|
|
@@ -63,36 +68,36 @@ export declare const ERROR_MESSAGES: {
|
|
|
63
68
|
readonly operator_read_only: "サポートのアクセスの許可が閲覧だけのため、変更できません。変更が要るときは、プロジェクトの管理者に許可の範囲の変更を依頼してください。";
|
|
64
69
|
readonly not_trial: "検証用のフラグのプロジェクトだけの操作です。";
|
|
65
70
|
readonly not_live: "本番の環境だけでできる操作です。本番の環境のワークスペースから操作してください。";
|
|
66
|
-
readonly operator_closed: "
|
|
71
|
+
readonly operator_closed: "サポートのアクセスでは変更できない操作です(アカウント、ロール、連携、アプリ、エンドユーザーの ID、許可など)。プロジェクトの管理者に依頼してください。";
|
|
67
72
|
readonly forbidden: "{target, select, none {この操作の権限がありません。} other {{target}のこの操作の権限がありません。}}必要なときは、管理者にロールの見直しを依頼してください。";
|
|
68
|
-
readonly
|
|
73
|
+
readonly create_requires_publish: "{target, select, none {対象} other {{target}}}は、公開の権限があるアカウントだけが作成できます。公開の権限があるメンバーに作成を依頼してください。";
|
|
69
74
|
readonly no_linked_record: "{name}が結び付いていないアカウントは操作できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。";
|
|
70
75
|
readonly own_only: "自分の{target, select, none {もの} other {{target}}}だけを操作できます。";
|
|
71
76
|
readonly not_visible: "ほかの人の公開前の{target, select, none {対象} other {{target}}}は閲覧できません。";
|
|
72
|
-
readonly
|
|
77
|
+
readonly edit_requires_publish: "公開中のレコードの編集には、公開の権限が必要です。公開の権限があるメンバーに編集を依頼してください。";
|
|
73
78
|
readonly cannot_remove_self: "自分を結び付きから外すことはできません。ほかの管理者に依頼してください。";
|
|
74
79
|
readonly cannot_change_owner: "本人を示すフィールドの値は変更できません。";
|
|
75
80
|
readonly not_found: "{target, select, none {対象} other {{target}}}が見つかりません。削除された可能性があります。画面を読み込み直してください。";
|
|
76
81
|
readonly method_not_allowed: "この経路はこのメソッドを受け付けません。";
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly in_use: "{by, select, uses {{count, number}件で使用中のため、削除できません。} places {{count, number}か所で使用中のため、削除できません。} outputs {{count, number}件の企画の成果物で使用中のため、削除できません。} record {{name, select, none {ほかの内容} other {{name}}}で使用中のため、削除できません。} writers {{count, number}件のレコードに結び付いているため、削除できません。}
|
|
82
|
+
readonly end_user_not_linked: "このアカウントに結び付くエンドユーザーがいません。管理者に、エンドユーザーとアカウントの結び付けを依頼してください。";
|
|
83
|
+
readonly end_user_pending: "このアカウントの結び付けは、運営の確認の後に使えます。確認が終わるまでお待ちください。";
|
|
84
|
+
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 {使用中のため、削除できません。}}使っている所から外してから、もう一度削除してください。";
|
|
80
85
|
readonly duplicate_name: "同じ名前がすでにあります。別の名前を付けてください。";
|
|
81
86
|
readonly duplicate_email: "同じメールアドレスのアカウントがすでにあります。一覧のそのアカウントを編集してください。";
|
|
82
87
|
readonly duplicate_id: "この ID はすでに使用されています。別の ID を指定してください。";
|
|
83
88
|
readonly duplicate_slug: "このスラッグはすでに使用されています。別のスラッグを指定してください。";
|
|
84
89
|
readonly version_conflict: "ほかの更新と重なりました。最新のバージョンを読み込んでやり直してください。";
|
|
85
|
-
readonly
|
|
90
|
+
readonly record_locked: "{name, select, none {ほかの人} other {{name}}}が CMS で編集中のため、保存できません。編集画面を閉じるか別のタブに切り替えると、2分以内に保存できるようになります。";
|
|
86
91
|
readonly invalid_state: "今の状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。";
|
|
87
|
-
readonly
|
|
92
|
+
readonly still_published: "公開中のレコードは、非公開にしてから削除してください。";
|
|
88
93
|
readonly last_admin: "最後の管理者は、外すことも管理者のロールから降ろすこともできません。先にほかの人を管理者にしてください。";
|
|
89
94
|
readonly exceeds_own: "自分のロールより広い権限は付けられません。広い権限が要るときは、管理者に依頼してください。";
|
|
90
|
-
readonly reauth_required: "
|
|
95
|
+
readonly reauth_required: "この操作の前に、もう一度ログインしてください。";
|
|
91
96
|
readonly approval_required: "本番に届く変更のため、申請と承認が必要です。申請を出し、組織の管理者の承認を待ってください。";
|
|
92
97
|
readonly stale: "申請の後に内容が変わりました。もう一度申請してください。";
|
|
93
98
|
readonly approval_closed: "この申請はもう承認できません(反映済み、却下、取り下げ、期限切れのいずれか)。必要なときは、もう一度申請してください。";
|
|
94
99
|
readonly cursor_expired: "変更の記録の保存の期間を過ぎました。cursor なしで全件を取り直してください。";
|
|
95
|
-
readonly already_linked: "{reason, select, identity {
|
|
100
|
+
readonly already_linked: "{reason, select, identity {このアカウントは、すでにほかのエンドユーザーに結び付いています。} record {このアカウントには、すでにこのプロジェクトのレコードが結び付いています。} other {このエンドユーザーは、すでに同じ発行者のアカウントに結び付いています。}}結び付けを替えるときは、先に今の結び付けを外してください。";
|
|
96
101
|
readonly run_done: "この取り込みの実行は完了済みです。新しい実行でやり直してください。";
|
|
97
102
|
readonly invalid_invite: "{reason, select, expired {招待の期限が過ぎています。} used {招待はすでに使われています。} other {招待が見つかりません。}}招待した人に、招待の送り直しを依頼してください。";
|
|
98
103
|
readonly body_too_large: "送信する内容は{bodyMaxMB, number}MBまでです。内容を分けて送ってください。";
|
|
@@ -112,40 +117,52 @@ export declare const ERROR_MESSAGES: {
|
|
|
112
117
|
readonly no_draft: "公開中のバージョンと別の未公開の変更がありません。";
|
|
113
118
|
readonly not_in_review: "レビュー待ちではありません。画面を読み込み直してください。";
|
|
114
119
|
readonly request_handled: "この依頼はすでに対応済みです。";
|
|
120
|
+
readonly requester_unauthorized: "申請した人に、この操作を申請する権限がなくなっています。";
|
|
115
121
|
readonly deleted: "すでに削除されています。";
|
|
116
122
|
readonly not_deleted: "削除されていないため、復元できません。";
|
|
117
123
|
readonly schema_confirm: "影響のある変更を含みます。件数を確認してから保存してください。";
|
|
118
|
-
readonly
|
|
124
|
+
readonly no_publication: "このコレクションにはワークフローがありません。";
|
|
119
125
|
readonly no_review: "このコレクションのワークフローにはレビューがありません。";
|
|
120
126
|
readonly not_published: "公開中・予約中ではありません。";
|
|
121
127
|
readonly collection_rows: "レコードが残っています。件数を確認してから削除してください。";
|
|
122
128
|
readonly restore_conflict: "{name, select, none {同じ内容} other {{name}}}がすでにあるため、復元できません。先に今あるものを変更するか削除してください。";
|
|
129
|
+
readonly restore_target_trashed: "{name}がゴミ箱にあるため、復元できません。先に参照しているレコードを復元してください。";
|
|
123
130
|
readonly collection_exists: "同じ ID のコレクションがすでにあるため、復元できません。先にそのコレクションの ID を変更してください。";
|
|
124
131
|
readonly collection_missing: "コレクションが削除されているため、復元できません。先にコレクションを復元してください。";
|
|
125
|
-
readonly not_restorable: "
|
|
132
|
+
readonly not_restorable: "本人の削除の求めによる削除のため、復元できません。";
|
|
126
133
|
readonly installation_state: "今のインストールの状態ではこの操作はできません。画面を読み込み直して、状態を確かめてください。";
|
|
127
134
|
readonly site_deploy: "今はサイトを上げられません。ほかのアップロードの最中か、サイトが止められているか外されています。少し待ってから上げ直し、続くときは運営者に連絡してください。";
|
|
128
|
-
readonly
|
|
135
|
+
readonly site_check_failed: "配置の直後の確認で外れたため、配置を取り消しました。公開中のサイトは変わりません。直したものを上げ直してください。";
|
|
136
|
+
readonly deployment_stale: "ほかの操作で有効なデプロイが変わりました。画面を読み込み直してから、有効にし直してください。";
|
|
137
|
+
readonly deployment_not_ready: "このデプロイは有効にできません。配置に失敗したか、配置が残っていません。";
|
|
138
|
+
readonly deployment_consent: "このデプロイが使う能力の同意が足りないため、有効にできません。アプリの同意を確かめてください。";
|
|
129
139
|
readonly required_app: "止められない標準の機能は、停止もアンインストールもできません。";
|
|
130
140
|
readonly app_installed: "アプリは1つのプロジェクトに1つだけインストールできます。";
|
|
131
141
|
readonly app_dependencies: "依存のアプリをそろえられません。アプリの詳細で、足りないアプリと合わないアプリを確かめてください。";
|
|
142
|
+
readonly app_required_by: "依存するアプリ({name})が入っているため、アンインストールできません。先に依存するアプリをアンインストールしてください。";
|
|
132
143
|
readonly app_reinstalled: "同じアプリを入れ直したインストールがあるため、古いインストールのデータは消せません。";
|
|
133
144
|
readonly app_managed: "アプリのインストールが管理する登録です。変更はアプリの新しいバージョンの同意で行います。";
|
|
134
145
|
readonly request_key_reused: "同じ重複を除くキーで、別の人かチャネルか目的の記録がすでにあります。別のキーで送ってください。";
|
|
135
146
|
readonly no_organization: "組織に属していないプロジェクトのため、招待できません。運営者に組織への所属を頼んでください。";
|
|
136
147
|
readonly schema_changed: "スキーマが変更されたため、保存できませんでした。画面を読み込み直してください。";
|
|
137
|
-
readonly
|
|
148
|
+
readonly end_user_inactive: "このエンドユーザーは停止中のため、操作できません。エンドユーザーの画面で状態を確かめてください。";
|
|
138
149
|
readonly self_limit: "1人あたりのレコードの数の上限に達しています。不要なレコードを削除してから作成してください。";
|
|
139
150
|
readonly already_live: "この環境はすでに本番です。";
|
|
140
151
|
readonly target_live: "本番の環境は削除できません。先にほかの環境へ切り替えてください。";
|
|
141
152
|
readonly target_synthetic: "合成のデータの環境は本番にできません。本番にする環境を選び直してください。";
|
|
153
|
+
readonly target_anonymized: "個人の情報を仮の値に置き換えたか除いてコピーした環境は、本番に切り替えられません。運営者に、値を保つコピーを依頼してください。スキーマだけの反映はできます。";
|
|
142
154
|
readonly no_changes: "本番との差がありません。";
|
|
143
155
|
readonly schema_values: "値のある項目を消す変更を含むため、反映できません。本番で値を移してからやり直してください。";
|
|
144
156
|
readonly environment_limit: "環境の数がプランの上限に達しています。不要な環境を削除してから作成してください。";
|
|
157
|
+
readonly collection_size_limit: "件数が上限に達しています。不要なものを削除してから作成してください。";
|
|
145
158
|
readonly environment_busy: "この環境はほかの操作の途中です。少し待ってからやり直してください。";
|
|
146
159
|
readonly unregistered_table: "個人の情報の扱いが決まっていない表があるため、コピーできません。運営者に連絡してください。";
|
|
147
160
|
readonly not_frozen: "本番の書き込みは止まっていません。";
|
|
148
161
|
readonly approval_running: "承認した操作の実行中です。少し待ってからやり直してください。";
|
|
162
|
+
readonly aggregate_read_only: "集計のコレクションは読むだけです。値は作り直しの処理だけが書きます。";
|
|
163
|
+
readonly not_aggregate: "集計のコレクションではありません。";
|
|
164
|
+
readonly condition_unmet: "条件に指定したレコードが変わっているか、読み取れません。";
|
|
165
|
+
readonly app_state_keys_full: "アプリ用の状態のキーの数が上限に達しています。";
|
|
149
166
|
};
|
|
150
167
|
/** own_only の対象ごとの文(アプリの文は manifest の messages) */
|
|
151
168
|
readonly own: {
|
|
@@ -153,7 +170,7 @@ export declare const ERROR_MESSAGES: {
|
|
|
153
170
|
readonly portrait: "自分の顔の画像だけを変更できます。";
|
|
154
171
|
};
|
|
155
172
|
/** no_linked_record の対象ごとの文(name は結び付くコレクションの表示名) */
|
|
156
|
-
readonly
|
|
173
|
+
readonly no_link: {
|
|
157
174
|
readonly mcp: "{name}が結び付いていないアカウントは、MCP を使用できません。管理者に、ユーザーと権限でアカウントと{name}を結び付けるよう依頼してください。";
|
|
158
175
|
};
|
|
159
176
|
/** no_linked_record の name が無いときの語 */
|
|
@@ -161,8 +178,8 @@ export declare const ERROR_MESSAGES: {
|
|
|
161
178
|
/** コードごとの見出し */
|
|
162
179
|
readonly titles: {
|
|
163
180
|
readonly invalid_input: "入力エラー";
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
181
|
+
readonly uuid_not_accepted: "入力エラー";
|
|
182
|
+
readonly transition_unmet: "レビューを依頼できません";
|
|
166
183
|
readonly publish_unmet: "公開できません";
|
|
167
184
|
readonly save_unmet: "保存できません";
|
|
168
185
|
readonly version_required: "入力エラー";
|
|
@@ -177,8 +194,8 @@ export declare const ERROR_MESSAGES: {
|
|
|
177
194
|
readonly invalid_mcp_token: "ログインエラー";
|
|
178
195
|
readonly mcp_signature_invalid: "ログインエラー";
|
|
179
196
|
readonly invalid_account_token: "ログインエラー";
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
197
|
+
readonly read_token_required: "ログインエラー";
|
|
198
|
+
readonly invalid_read_token: "ログインエラー";
|
|
182
199
|
readonly api_key_required: "ログインエラー";
|
|
183
200
|
readonly invalid_api_key: "ログインエラー";
|
|
184
201
|
readonly invalid_id_token: "ログインエラー";
|
|
@@ -193,26 +210,26 @@ export declare const ERROR_MESSAGES: {
|
|
|
193
210
|
readonly not_trial: "権限がありません";
|
|
194
211
|
readonly not_live: "本番の環境だけの操作です";
|
|
195
212
|
readonly forbidden: "権限がありません";
|
|
196
|
-
readonly
|
|
213
|
+
readonly create_requires_publish: "権限がありません";
|
|
197
214
|
readonly no_linked_record: "権限がありません";
|
|
198
215
|
readonly own_only: "権限がありません";
|
|
199
216
|
readonly not_visible: "権限がありません";
|
|
200
|
-
readonly
|
|
217
|
+
readonly edit_requires_publish: "権限がありません";
|
|
201
218
|
readonly cannot_remove_self: "権限がありません";
|
|
202
219
|
readonly cannot_change_owner: "権限がありません";
|
|
203
220
|
readonly not_found: "見つかりません";
|
|
204
221
|
readonly method_not_allowed: "操作できません";
|
|
205
|
-
readonly
|
|
206
|
-
readonly
|
|
222
|
+
readonly end_user_not_linked: "見つかりません";
|
|
223
|
+
readonly end_user_pending: "確認待ちです";
|
|
207
224
|
readonly in_use: "削除できません";
|
|
208
225
|
readonly duplicate_name: "重複しています";
|
|
209
226
|
readonly duplicate_email: "重複しています";
|
|
210
227
|
readonly duplicate_id: "重複しています";
|
|
211
228
|
readonly duplicate_slug: "重複しています";
|
|
212
229
|
readonly version_conflict: "更新が重なりました";
|
|
213
|
-
readonly
|
|
230
|
+
readonly record_locked: "編集中です";
|
|
214
231
|
readonly invalid_state: "操作できません";
|
|
215
|
-
readonly
|
|
232
|
+
readonly still_published: "削除できません";
|
|
216
233
|
readonly last_admin: "操作できません";
|
|
217
234
|
readonly exceeds_own: "権限がありません";
|
|
218
235
|
readonly reauth_required: "再認証が必要";
|
|
@@ -246,11 +263,11 @@ export declare const targetOf: (id: string, fallback: ErrorTarget) => ErrorTarge
|
|
|
246
263
|
/**
|
|
247
264
|
* 対象ごとの文の追加(アプリの manifest の messages、キーは対象の id、値は ICU MessageFormat)
|
|
248
265
|
* - own: 自分のものだけを操作できるときの文
|
|
249
|
-
* -
|
|
266
|
+
* - no_link: 結び付くレコードがないアカウントの文、{name} は結び付くコレクションの表示名
|
|
250
267
|
*/
|
|
251
268
|
export type TargetMessages = Readonly<{
|
|
252
269
|
own?: Readonly<Record<string, string>>;
|
|
253
|
-
|
|
270
|
+
no_link?: Readonly<Record<string, string>>;
|
|
254
271
|
}>;
|
|
255
272
|
/** エラーの画面の文(targets は対象の表示名、messages は対象ごとの文の追加、画面はアプリの対象と文とコレクションの表示名を含めた表。problems は name に入る問題の文) */
|
|
256
273
|
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;
|
|
@@ -261,8 +278,21 @@ export declare const errorMessageOf: (error: Readonly<{
|
|
|
261
278
|
code: ErrorCode;
|
|
262
279
|
params?: ErrorParams;
|
|
263
280
|
}>, catalog?: ErrorCatalog) => string;
|
|
264
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* type のないエラーの本文(アプリが返す本文。type は基盤が経路の応答に PROBLEM_TYPE_BASE から付ける、withProblemType)
|
|
283
|
+
* - 公開の SDK に基盤のホスト名を含めないため、アプリの側では type を組み立てない(RFC 9457: type がなければ about:blank と同じ扱い)
|
|
284
|
+
*/
|
|
285
|
+
export declare const problemBodyWithoutType: (code: Exclude<ErrorCode, "network_error">, requestId: string, fields?: ProblemFields) => Omit<ErrorBody, "type">;
|
|
286
|
+
/** エラーの本文(problem+json、requestId は要求の x-request-id、detail の既定は英語の定型の文) */
|
|
287
|
+
export declare const problemBody: (code: Exclude<ErrorCode, "network_error">, requestId: string, fields?: ProblemFields) => ErrorBody;
|
|
288
|
+
/** プロジェクトの文脈の外(受け皿の Worker・レジストリ・アプリ)のエラーの本文 */
|
|
265
289
|
export declare const errorBodyFor: (code: Exclude<ErrorCode, "network_error">, requestId: string, params?: ErrorParams) => ErrorBody;
|
|
290
|
+
/** エラーの応答(Content-Type は application/problem+json、状態は本文の status) */
|
|
291
|
+
export declare const problemResponse: (body: Omit<ErrorBody, "type"> & {
|
|
292
|
+
type?: string;
|
|
293
|
+
}, headers?: Readonly<Record<string, string>>) => Response;
|
|
294
|
+
/** アプリの経路の応答の problem+json に type を付ける(type がなく code があるときだけ。ほかの応答はそのまま) */
|
|
295
|
+
export declare function withProblemType(response: Response): Promise<Response>;
|
|
266
296
|
/** アプリの対象ごとの文をまとめる(同じ対象はあとのアプリの文) */
|
|
267
297
|
export declare const mergeMessages: (list: readonly (TargetMessages | undefined)[]) => TargetMessages;
|
|
268
298
|
/** エラーのトーストの見出し(項目ごとの理由がすべて未入力なら必須項目のエラー、スキーマの文は「〜が未入力」で統一) */
|