@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,9 +1,14 @@
|
|
|
1
1
|
import { type AppDependencyManifest } from './appDependencies.js';
|
|
2
2
|
import { type Operation } from './authorize.js';
|
|
3
3
|
import type { InfraId } from './ids.js';
|
|
4
|
+
import type { FieldDef } from '../../schema/src/index.js';
|
|
4
5
|
import { type SiteHostingManifest } from './siteDeclaration.js';
|
|
5
6
|
import { type Action } from './permissions.js';
|
|
6
7
|
import { type SettingsArea } from './settings.js';
|
|
8
|
+
import { type AppOutbound } from './outbound.js';
|
|
9
|
+
import { type AppMailDeclaration } from './appMail.js';
|
|
10
|
+
import { type AppChannelKind } from './appChannels.js';
|
|
11
|
+
import { type AppSecretDeclaration } from './appSecrets.js';
|
|
7
12
|
import type { TargetMessages } from './errorLabels.js';
|
|
8
13
|
/** アプリの種類(画面で分けて出す) */
|
|
9
14
|
export declare const APP_KINDS: readonly ["app", "site", "theme"];
|
|
@@ -19,12 +24,10 @@ export declare const isExclusiveAppKind: (kind: string) => boolean;
|
|
|
19
24
|
export declare const INSTALLATION_STATES: readonly ["active", "stopped", "uninstalled"];
|
|
20
25
|
/** インストールの状態 */
|
|
21
26
|
export type InstallationState = (typeof INSTALLATION_STATES)[number];
|
|
22
|
-
/**
|
|
23
|
-
export declare const
|
|
24
|
-
/**
|
|
25
|
-
export type
|
|
26
|
-
/** 埋め込み先の対象の頭(マニフェストの能力の対象 `$<名前>`) */
|
|
27
|
-
export declare const APP_SLOT_PREFIX = "$";
|
|
27
|
+
/** 画面のスロット(docs/design/apps.md の「アプリの画面」) */
|
|
28
|
+
export declare const APP_UI_SLOTS: readonly ["record.panel", "record.field", "list.column", "list.action", "page", "dashboard", "settings", "dialog"];
|
|
29
|
+
/** 画面のスロット */
|
|
30
|
+
export type AppUiSlot = (typeof APP_UI_SLOTS)[number];
|
|
28
31
|
/** マニフェストの上限(capabilitiesMax は能力の集合の要素の数。同意の画面がそのまま送り返すので、受け付けるマニフェストもこの数まで) */
|
|
29
32
|
export declare const APP_MANIFEST_LIMITS: {
|
|
30
33
|
readonly labelMax: 80;
|
|
@@ -34,49 +37,74 @@ export declare const APP_MANIFEST_LIMITS: {
|
|
|
34
37
|
readonly keysMax: 5;
|
|
35
38
|
readonly capabilitiesMax: 1000;
|
|
36
39
|
};
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 既存のコレクションへの当て先(collection はコレクションの id、fields はマニフェストのフィールドの key → 当てたフィールドの内部の id)
|
|
42
|
+
* - 当てないフィールドは、インストールが当て先のコレクションに足す(collectionMappingProblem)
|
|
43
|
+
*/
|
|
44
|
+
export type CollectionMapping = Readonly<{
|
|
45
|
+
collection: string;
|
|
46
|
+
fields: Readonly<Record<string, string>>;
|
|
41
47
|
}>;
|
|
48
|
+
/** マニフェストのコレクションの名前 → 当て先(当てるものだけ。ないものはインストールが作る) */
|
|
49
|
+
export type CollectionMappings = Readonly<Record<string, CollectionMapping>>;
|
|
50
|
+
/** マニフェストのコレクションの名前 → コレクションの id(作ったものと当てたもの) */
|
|
51
|
+
export type CollectionIds = Readonly<Record<string, string>>;
|
|
52
|
+
/** 当てるフィールドの型が宣言の型に合うか(同じ型。text と long_text は互いに当てられる) */
|
|
53
|
+
export declare const fieldTypeFits: (declared: FieldDef["type"], actual: FieldDef["type"]) => boolean;
|
|
42
54
|
/** 画面のアイコン(ワークスペースが名前から描く) */
|
|
43
|
-
export declare const
|
|
55
|
+
export declare const APP_UI_ICONS: readonly ["contact", "user-check", "inbox", "palette", "calendar", "globe"];
|
|
44
56
|
/** 画面のアイコン */
|
|
45
|
-
export type
|
|
46
|
-
/**
|
|
47
|
-
export
|
|
57
|
+
export type AppUiIcon = (typeof APP_UI_ICONS)[number];
|
|
58
|
+
/** 画面の表示に要る権限で、宣言を持つコレクションのどれか1つに要る操作(form はフォームの宣言) */
|
|
59
|
+
export declare const APP_UI_DECLARATIONS: readonly ["form"];
|
|
60
|
+
/**
|
|
61
|
+
* 画面の表示に要る権限
|
|
62
|
+
* - admin は管理者だけ。対象と操作はロールの * を当てず、管理者は常に可
|
|
63
|
+
* - declared は、その宣言を持つコレクションのどれかに操作の権限があること(そのコレクションがなければ管理者にも出さない)
|
|
64
|
+
*/
|
|
65
|
+
export type AppUiRequires = 'admin' | Readonly<{
|
|
48
66
|
target: string;
|
|
49
67
|
action: Action;
|
|
68
|
+
}> | Readonly<{
|
|
69
|
+
declared: (typeof APP_UI_DECLARATIONS)[number];
|
|
70
|
+
action: Action;
|
|
50
71
|
}>;
|
|
51
72
|
/**
|
|
52
73
|
* アプリの画面
|
|
53
74
|
* - url: 独自の画面(iframe)の URL。なしは本体が部品で描く画面で、key が要る。描く部品のない画面は外枠が出さない
|
|
54
75
|
* - key: 部品で描く画面の名前(page は経路 /<key>、settings は /settings/<key>)
|
|
55
|
-
* - collection:
|
|
56
|
-
*
|
|
57
|
-
* 能力の要素 `screen:<置き場所>:<オリジン>` はコレクションを持たないので、画面のコレクションは同意を通る埋め込み先の選択かアプリのコレクションの宣言だけで決まる
|
|
76
|
+
* - collection: コレクションを持つスロット(COLLECTION_UI_SLOTS)の、マニフェストのコレクション(collections)の名前
|
|
77
|
+
* 能力の要素 `screen:<置き場所>:<オリジン>` はコレクションを持たないので、画面のコレクションは同意を通る当て先の選択かアプリが作るコレクションだけで決まる
|
|
58
78
|
* - field: `record.field` の項目の key
|
|
59
|
-
* - label: ワークスペースの見出し(一覧の列の見出しなど、なしはマニフェストの label)。
|
|
60
|
-
*
|
|
61
|
-
*
|
|
79
|
+
* - label: ワークスペースの見出し(一覧の列の見出しなど、なしはマニフェストの label)。APP_UI_LABEL_MAX 文字まで
|
|
80
|
+
* key が要る(表示の文字列の塊の項目は `<slot>:<key>`)
|
|
81
|
+
* - page だけ: requires は表示に要る権限、badge はメニューの件数(route はアプリの経路で GET で `{ count }`、要求者の権限で判定、
|
|
82
|
+
* unhandled は宣言 form の対応済みでない送信の数を、本体がレコードの件数の経路で数える)、
|
|
83
|
+
* menu が false はメニューに出さない経路だけの画面、rail は ID つきの経路で上の帯を出さない編集の画面(自分の見出しの帯を持つ)、
|
|
84
|
+
* detail は ID つきの経路が詳細の画面(左の列を折り畳む。rail は常に詳細の画面)
|
|
62
85
|
* - settings だけ: area はページを開ける設定の領域
|
|
63
86
|
*/
|
|
64
|
-
export type
|
|
65
|
-
|
|
87
|
+
export type AppUi = Readonly<{
|
|
88
|
+
slot: AppUiSlot;
|
|
66
89
|
url?: string;
|
|
67
90
|
key?: string;
|
|
68
91
|
collection?: string;
|
|
69
92
|
field?: string;
|
|
70
93
|
label?: string;
|
|
71
|
-
icon?:
|
|
72
|
-
requires?:
|
|
73
|
-
badge?:
|
|
74
|
-
route: `/api/${string}`;
|
|
75
|
-
}>;
|
|
94
|
+
icon?: AppUiIcon;
|
|
95
|
+
requires?: AppUiRequires;
|
|
96
|
+
badge?: AppUiBadge;
|
|
76
97
|
menu?: boolean;
|
|
77
98
|
rail?: boolean;
|
|
99
|
+
detail?: boolean;
|
|
78
100
|
area?: SettingsArea;
|
|
79
101
|
}>;
|
|
102
|
+
/** メニューの件数の出所 */
|
|
103
|
+
export type AppUiBadge = Readonly<{
|
|
104
|
+
route: `/api/${string}`;
|
|
105
|
+
}> | Readonly<{
|
|
106
|
+
unhandled: 'form';
|
|
107
|
+
}>;
|
|
80
108
|
/** 権限の対象(id は役割の表の識別子) */
|
|
81
109
|
export type PermissionTarget = Readonly<{
|
|
82
110
|
id: string;
|
|
@@ -87,36 +115,48 @@ export type ConnectionPoint = Readonly<{
|
|
|
87
115
|
id: string;
|
|
88
116
|
label: string;
|
|
89
117
|
}>;
|
|
90
|
-
/**
|
|
91
|
-
export declare const
|
|
118
|
+
/** コレクションを持つ画面のスロット(マニフェストの画面に collection が要る) */
|
|
119
|
+
export declare const COLLECTION_UI_SLOTS: readonly ["record.panel", "record.field", "list.action", "list.column"];
|
|
92
120
|
/** 画面の見出しの文字数の上限(外の画面と外部関数の登録の名前と同じ) */
|
|
93
|
-
export declare const
|
|
121
|
+
export declare const APP_UI_LABEL_MAX = 40;
|
|
94
122
|
/** MCP の道具(名前と説明の両方が能力。説明が変わった版も同意まで止める) */
|
|
95
123
|
export type AppTool = Readonly<{
|
|
96
124
|
name: string;
|
|
97
125
|
description: string;
|
|
98
126
|
}>;
|
|
127
|
+
/** アプリの MCP のツールとプロンプトの名前の接頭辞(名前空間の `.` と `-` を `_` にする。クライアントのツールの名前は英数字、`_`、`-` だけを受ける) */
|
|
128
|
+
export declare const appToolPrefixOf: (namespace: string) => string;
|
|
99
129
|
/**
|
|
100
130
|
* アプリのマニフェスト(バージョンごと)
|
|
101
|
-
* -
|
|
131
|
+
* - manifest_version: 形のバージョン(必須、APP_MANIFEST_VERSION)。登録は知らない項目を拒否し、保存済みの読み取りは拒否しない
|
|
132
|
+
* - capabilities: 対象から操作の配列
|
|
133
|
+
* 対象はコレクションのスラッグ、`*`、`@end_users`、`files`、マニフェストのコレクションの名前、APP_SETTINGS_TARGETS
|
|
134
|
+
* マニフェストのコレクションの名前の対象は、当てたコレクションだけに効く(作ったコレクションはアプリが全部の操作を持つ)
|
|
102
135
|
* - 依存の宣言(major、requires、uses、provides、collections、settings、price): appDependencies.ts
|
|
103
|
-
* - destinations:
|
|
136
|
+
* - destinations: Tunasand からアプリへの送信の宛先のオリジン(https)
|
|
137
|
+
* - outbound: アプリのサーバーの側からの外への要求の宣言(outbound.ts)
|
|
138
|
+
* - secrets: 管理者が入力する秘密値の宣言(appSecrets.ts)。outbound の auth はここで宣言したキーだけを指す
|
|
139
|
+
* - operator_secrets: 運営の秘密値の宣言(同梱のアプリだけが使える。appSecrets.ts の AppOperatorSecrets)。outbound の auth も指せる
|
|
104
140
|
* - events: 受ける Webhook のイベントの名前
|
|
105
|
-
* -
|
|
141
|
+
* - mail: メールの送信と受信(appMail.ts。能力の要素は mail:send と mail:inbound)
|
|
142
|
+
* - channel_kinds: アプリが定義するチャネルの種類(能力、アドレスの形、チャネルごとの設定と秘密値、外のサービスから受ける経路、
|
|
143
|
+
* 本人の証明の発行者。appChannels.ts)
|
|
144
|
+
* - own_site: サイトの「自分のサイト」の能力(エンドユーザーだけの内容の全文とエンドユーザーの照合を扱う)
|
|
106
145
|
* - hosting: サイトを Tunasand のホスティングに上げる能力(`deploy_site`)。上げるのはアプリのアップロードの鍵(APP_KEY_USES.deploy)だけ
|
|
107
146
|
* 宣言の形では、サイトの D1 と R2 の bind の名前と Cron の式も求める(要素ごとに同意を通る)
|
|
108
|
-
* -
|
|
109
|
-
* 情報の能力を求めるアプリは必須(
|
|
110
|
-
* - targets: エラーの文と操作の記録の対象(キーは対象の id、値は表示名)、
|
|
147
|
+
* - deletion_url: 削除のエンドポイント(アンインストールのイベントとエンドユーザーの削除のイベントを受ける https の URL)。個人の
|
|
148
|
+
* 情報の能力を求めるアプリは必須(piiCapabilities)
|
|
149
|
+
* - targets: エラーの文と操作の記録の対象(キーは対象の id、値は表示名)、audit_actions: 操作の記録の操作の文言(キーは <アプリ>.<操作>)
|
|
111
150
|
* - messages: 対象ごとのエラーの文、problems: 検査の問題の文(キーは `<アプリ>_` で始まる問題のコード)、en: 英語の対象の名前と問題の文
|
|
112
|
-
* - permissions: 権限の対象の拡張、connections: 必要な外部の接続、emits:
|
|
151
|
+
* - permissions: 権限の対象の拡張、connections: 必要な外部の接続、emits: アプリが出すイベント(キーは名前で、外には apps.<名前空間>.<名前>。値は表示名)
|
|
113
152
|
*/
|
|
114
153
|
export type AppManifest = Readonly<{
|
|
154
|
+
manifest_version: typeof APP_MANIFEST_VERSION;
|
|
115
155
|
label: string;
|
|
116
156
|
kind: AppKind;
|
|
117
157
|
description?: string;
|
|
118
158
|
targets?: Readonly<Record<string, string>>;
|
|
119
|
-
|
|
159
|
+
audit_actions?: Readonly<Record<string, string>>;
|
|
120
160
|
messages?: TargetMessages;
|
|
121
161
|
problems?: Readonly<Record<string, string>>;
|
|
122
162
|
en?: Readonly<{
|
|
@@ -127,14 +167,18 @@ export type AppManifest = Readonly<{
|
|
|
127
167
|
connections?: readonly ConnectionPoint[];
|
|
128
168
|
emits?: Readonly<Record<string, string>>;
|
|
129
169
|
capabilities?: Readonly<Record<string, readonly Operation[]>>;
|
|
130
|
-
slots?: Readonly<Record<string, AppSlot>>;
|
|
131
170
|
destinations?: readonly string[];
|
|
171
|
+
outbound?: readonly AppOutbound[];
|
|
172
|
+
secrets?: readonly AppSecretDeclaration[];
|
|
173
|
+
operator_secrets?: readonly AppSecretDeclaration[];
|
|
132
174
|
events?: readonly string[];
|
|
133
|
-
|
|
175
|
+
mail?: AppMailDeclaration;
|
|
176
|
+
channel_kinds?: readonly AppChannelKind[];
|
|
177
|
+
ui?: readonly AppUi[];
|
|
134
178
|
tools?: readonly AppTool[];
|
|
135
|
-
|
|
179
|
+
own_site?: boolean;
|
|
136
180
|
hosting?: boolean | SiteHostingManifest;
|
|
137
|
-
|
|
181
|
+
deletion_url?: string;
|
|
138
182
|
}> & AppDependencyManifest;
|
|
139
183
|
/**
|
|
140
184
|
* アプリの鍵の用途(登録する公開鍵の JWK の use)
|
|
@@ -158,8 +202,22 @@ export type RegisteredApp = Readonly<{
|
|
|
158
202
|
latestVersion: number;
|
|
159
203
|
createdAt: string;
|
|
160
204
|
}>;
|
|
161
|
-
/**
|
|
162
|
-
export type
|
|
205
|
+
/** 依存の相手(この環境に入っているアプリ。active は止まっていない) */
|
|
206
|
+
export type AppRelation = Readonly<{
|
|
207
|
+
id: InfraId<'installation'>;
|
|
208
|
+
label: string;
|
|
209
|
+
active: boolean;
|
|
210
|
+
}>;
|
|
211
|
+
/** 必須の依存の依存先と依存元 */
|
|
212
|
+
export type InstallationRelations = Readonly<{
|
|
213
|
+
requires: readonly AppRelation[];
|
|
214
|
+
requiredBy: readonly AppRelation[];
|
|
215
|
+
}>;
|
|
216
|
+
/**
|
|
217
|
+
* ワークスペースの一覧のインストール(app はなしで旧い形のインストール)
|
|
218
|
+
* - pendingVersion は更新できる版、pending は同意を待つ能力、autoUpdate は定期の処理で新しいバージョンに上げるか
|
|
219
|
+
*/
|
|
220
|
+
export type Installation = InstallationRelations & Readonly<{
|
|
163
221
|
id: InfraId<'installation'>;
|
|
164
222
|
appId: InfraId<'app'> | null;
|
|
165
223
|
kind: InstallationKind;
|
|
@@ -167,12 +225,16 @@ export type Installation = Readonly<{
|
|
|
167
225
|
state: InstallationState;
|
|
168
226
|
version: number | null;
|
|
169
227
|
pendingVersion: number | null;
|
|
228
|
+
autoUpdate: boolean;
|
|
170
229
|
consented: readonly string[];
|
|
171
230
|
pending: readonly string[];
|
|
172
|
-
slots: Readonly<Record<string, string>>;
|
|
173
231
|
parts: readonly InstallationPart[];
|
|
232
|
+
/** 導入先が既存のコレクションに当てた記録 */
|
|
233
|
+
mapped: CollectionMappings;
|
|
174
234
|
createdAt: string;
|
|
175
235
|
dataDeletedAt: string | null;
|
|
236
|
+
/** 発行するイベントの種類(マニフェストの emits、名前空間つき) */
|
|
237
|
+
emits: readonly string[];
|
|
176
238
|
}>;
|
|
177
239
|
/** インストールが持つ部品(今の Webhook、外部関数、外の画面の行と、同梱のアプリの id に結ぶ。API の鍵はレジストリでインストール済みアプリに属する) */
|
|
178
240
|
export declare const INSTALLATION_PART_KINDS: readonly ["webhook", "function", "embed", "bundled"];
|
|
@@ -186,13 +248,13 @@ export type InstallationPart = Readonly<{
|
|
|
186
248
|
/** マニフェストの問題(path は値の場所、code は理由) */
|
|
187
249
|
export type AppManifestProblem = Readonly<{
|
|
188
250
|
path: string;
|
|
189
|
-
code: 'required' | 'invalid' | 'too_long' | 'too_many' | 'namespace' | 'duplicate' | 'reserved';
|
|
251
|
+
code: 'required' | 'invalid' | 'too_long' | 'too_many' | 'namespace' | 'duplicate' | 'reserved' | 'unknown';
|
|
190
252
|
}>;
|
|
191
253
|
/** URL のオリジン(https のホスト名と任意のポート。手元の開発の http://localhost も許す。ほかの形と認証の情報つきは null) */
|
|
192
254
|
export declare function originOf(url: string): string | null;
|
|
193
255
|
/**
|
|
194
256
|
* アプリに委ねられる設定の領域と管理の権限(人の代理のときだけ効き、人が持ち、かつ同意にある操作だけを通す。操作は read と update)
|
|
195
|
-
* -
|
|
257
|
+
* - 取り込みのデータの領域、人の取り込みのエンドユーザーの領域(管理者だけの経路)、スキーマの変更
|
|
196
258
|
*/
|
|
197
259
|
export declare const APP_SETTINGS_TARGETS: readonly [string, string, string];
|
|
198
260
|
/**
|
|
@@ -201,27 +263,31 @@ export declare const APP_SETTINGS_TARGETS: readonly [string, string, string];
|
|
|
201
263
|
* - 値の形が壊れていれば問題を返し、正しければ空
|
|
202
264
|
*/
|
|
203
265
|
export declare function appManifestProblems(input: unknown, namespace: string | null): AppManifestProblem[];
|
|
266
|
+
export declare const APP_MANIFEST_VERSION = 1;
|
|
267
|
+
/** マニフェストの項目(登録はこれ以外の項目を拒否する) */
|
|
268
|
+
export declare const APP_MANIFEST_KEYS: readonly ["manifest_version", "label", "kind", "description", "targets", "audit_actions", "messages", "problems", "en", "permissions", "connections", "emits", "capabilities", "destinations", "outbound", "secrets", "operator_secrets", "channel_kinds", "events", "mail", "ui", "tools", "own_site", "hosting", "deletion_url", "major", "requires", "uses", "provides", "collections", "settings", "price"];
|
|
204
269
|
/**
|
|
205
270
|
* 登録するバージョンのマニフェストの検査(appManifestProblems に、登録のときだけの決まりを足す)
|
|
206
|
-
* - 個人の情報の能力を求めるのに削除のエンドポイントがなければ
|
|
271
|
+
* - 個人の情報の能力を求めるのに削除のエンドポイントがなければ deletion_url の required(登録済みのバージョンは読むときに拒まない)
|
|
207
272
|
*/
|
|
208
273
|
export declare function registeringManifestProblems(input: unknown, namespace: string | null): AppManifestProblem[];
|
|
209
274
|
/**
|
|
210
|
-
*
|
|
211
|
-
* -
|
|
212
|
-
* -
|
|
275
|
+
* 画面の宣言のコレクション(マニフェストのコレクションの名前を、作ったか当てたコレクションの id に解く)
|
|
276
|
+
* - collections: マニフェストの名前 → コレクションの id
|
|
277
|
+
* - コレクションを持たないスロットは null
|
|
278
|
+
* - コレクションを持つスロットでコレクションが解けなければ undefined(当てていないコレクション、コレクションのない宣言、マニフェストにない名前)
|
|
213
279
|
*/
|
|
214
|
-
export declare function
|
|
280
|
+
export declare function uiCollectionOf(manifest: AppManifest, screen: AppUi, collections: CollectionIds): string | null | undefined;
|
|
215
281
|
/** コレクションの名前空間の形か(登録のとき) */
|
|
216
282
|
export declare const isAppNamespace: (value: string) => boolean;
|
|
217
|
-
/**
|
|
218
|
-
export declare const
|
|
283
|
+
/** 当て先の選び残し(既存のコレクションに当てる宣言 existing で、当てていない名前) */
|
|
284
|
+
export declare const unmappedCollections: (manifest: AppManifest, mappings: CollectionMappings) => string[];
|
|
219
285
|
/**
|
|
220
|
-
*
|
|
221
|
-
* -
|
|
222
|
-
* -
|
|
286
|
+
* マニフェストと当て先から能力の集合(並びは辞書の順、重複なし)
|
|
287
|
+
* - マニフェストのコレクションの名前の対象は、当てたコレクションの id に解く。作るか当てていないコレクションの能力は集合に入れない
|
|
288
|
+
* - ほかのコレクションはスラッグで書き、collectionIdOf でコレクションの id に解く。解けないスラッグの能力は集合に入れない
|
|
223
289
|
*/
|
|
224
|
-
export declare function capabilitySetOf(manifest: AppManifest,
|
|
290
|
+
export declare function capabilitySetOf(manifest: AppManifest, mappings?: CollectionMappings, collectionIdOf?: (slug: string) => string | undefined): string[];
|
|
225
291
|
/** 前の同意にない能力(再同意で求める分) */
|
|
226
292
|
export declare const addedCapabilities: (consented: readonly string[], next: readonly string[]) => string[];
|
|
227
293
|
/** 同意した能力の集合から、判定の関数に渡す能力(対象から操作の配列) */
|
|
@@ -234,5 +300,5 @@ export declare const CAPABILITY_CLASSES: readonly ["hosting", "confidential", "o
|
|
|
234
300
|
export type CapabilityClass = (typeof CAPABILITY_CLASSES)[number];
|
|
235
301
|
/** 能力の要素の分類(同意の画面のまとまり。機密、外への送信、`*` の書き込みを目立たせる) */
|
|
236
302
|
export declare function capabilityClassOf(capability: string): CapabilityClass;
|
|
237
|
-
/**
|
|
238
|
-
export declare const
|
|
303
|
+
/** 能力の集合のうち個人の情報の能力(機密の分類とエンドユーザーの対象 `@end_users`。求めるアプリは削除のエンドポイントが必須) */
|
|
304
|
+
export declare const piiCapabilities: (capabilities: readonly string[]) => string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const AUDIT_ACTION_CODES: readonly ["record.create", "record.update", "record.delete", "record.submit", "record.reject", "record.publish", "record.unpublish", "record.setSources", "record.setRefs", "record.changeStatus", "master.create", "master.update", "master.delete", "singleton.update", "integration.create", "integration.update", "integration.delete", "integration.rotateSecret", "integration.revokePreviousSecret", "account.changeLogin", "account.changePortrait", "account.removePortrait", "account.changeRole", "request.create", "request.approve", "request.reject", "role.create", "role.update", "role.delete", "invitation.create", "invitation.cancel", "member.ownerJoined", "member.ownerAdded", "member.ownerChanged", "member.ownerRemoved", "supportAccess.grant", "supportAccess.enter", "supportAccess.revoke", "project.create", "project.revokeAccess", "project.rename", "project.changeSlug", "environment.create", "environment.copy", "environment.copyRetainStarted", "environment.delete", "environment.promote", "environment.promoteSchema", "environment.freeze", "environment.unfreeze", "mcpConnection.approve", "mcpConnection.remove", "mcpConnection.removeAll", "mcpInternalFields.update", "schema.update", "screens.update", "collection.delete", "file.upload", "file.import", "file.edit", "file.delete", "file.deleteMany", "file.restoreMany", "trash.restore", "job.run", "standardApp.update", "standardApp.install", "content.import", "transferPlan.update", "preview.rotateSecret", "preview.revokePreviousSecret", "mediaSigning.create", "apiKey.create", "apiKey.update", "apiKey.revoke", "app.register", "app.publish", "app.updateKeys", "app.install", "app.consent", "app.changeState", "app.uninstall", "app.deleteData", "site.deployStart", "site.deployResult", "
|
|
1
|
+
export declare const AUDIT_ACTION_CODES: readonly ["record.create", "record.update", "record.patch", "record.delete", "record.deleteLinked", "record.submit", "record.reject", "record.publish", "record.unpublish", "record.setVisibility", "record.publishScheduled", "record.discardSchedule", "record.discardDraft", "record.setSources", "record.setRefs", "source.create", "source.update", "source.delete", "record.changeStatus", "record.hold", "record.releaseHold", "record.read", "record.clearHolds", "form.submit", "endUserRecord.create", "endUserRecord.update", "endUserRecord.delete", "master.create", "master.update", "master.delete", "singleton.update", "integration.create", "integration.update", "integration.delete", "integration.rotateSecret", "integration.revokePreviousSecret", "account.changeLogin", "account.changePortrait", "account.removePortrait", "account.changeRole", "account.updateProfile", "account.linkRecord", "accountLink.update", "request.create", "request.approve", "request.reject", "role.create", "role.update", "role.delete", "invitation.create", "invitation.cancel", "member.ownerJoined", "member.ownerAdded", "member.ownerChanged", "member.ownerRemoved", "supportAccess.grant", "supportAccess.enter", "supportAccess.revoke", "project.create", "project.revokeAccess", "project.rename", "general.update", "project.changeSlug", "environment.create", "environment.copy", "environment.copyRetainStarted", "environment.delete", "environment.promote", "environment.promoteSchema", "environment.freeze", "environment.unfreeze", "mcpConnection.approve", "mcpConnection.remove", "mcpConnection.removeAll", "mcpConnection.drop", "mcpConnection.revokeAll", "mcpConnection.prune", "mcpConnection.adopt", "mcpRequest.create", "mcpRequest.open", "mcpRequest.deny", "mcpCode.use", "mcpToken.issue", "mcpToken.refresh", "mcpGrace.use", "mcpGrant.touch", "mcpClient.register", "secrets.reseal", "mcpInternalFields.update", "schema.update", "screens.update", "view.create", "view.update", "view.delete", "view.import", "collection.delete", "file.upload", "file.import", "file.edit", "file.delete", "file.deleteMany", "file.restoreMany", "file.publishMany", "file.publishReferenced", "file.unpublishMany", "trash.restore", "trash.restoreCollection", "trash.restoreBundle", "trash.pruneBundles", "trash.pruneRecords", "job.run", "standardApp.update", "appState.set", "appState.delete", "standardApp.install", "standardApp.mapCollections", "standardApp.revertInstall", "content.import", "transferPlan.update", "preview.rotateSecret", "preview.revokePreviousSecret", "mediaSigning.create", "apiKey.create", "apiKey.update", "apiKey.revoke", "apiKey.rotate", "apiKey.delete", "readToken.issue", "readToken.revoke", "mailDomain.add", "mailDomain.check", "mailDomain.remove", "app.register", "app.publish", "app.updateKeys", "app.install", "app.consent", "app.updateVersion", "app.setAutoUpdate", "app.changeState", "app.uninstall", "app.deleteData", "app.emitEvent", "files.alignMarkers", "app.setSecret", "app.deleteSecret", "channel.create", "channel.update", "channel.remove", "channel.setSecret", "channel.deleteSecret", "channel.pruneSecrets", "site.deployStart", "site.deployResult", "deployment.place", "deployment.activate", "end_user.create", "end_user.changeStatus", "end_user.delete", "end_user.erase", "end_user.link", "end_user.linkByInvite", "end_user.ensure", "end_user.purgeInvites", "inbox.markRead", "standardApp.provision", "readToken.prune", "webhook.recordDeliveries", "webhook.queueDeliveries", "webhook.claimRetries", "webhook.pruneDeliveries", "import.createOriginKey", "domain.request", "domain.verify", "domain.remove", "domain.set_slug", "approval.request", "approval.cancel", "approval.approve", "approval.reject", "approval.settle", "app.planInstall", "import.pruneOriginals", "payment.pruneEvents", "import.saveOriginals", "import.recordRun", "end_user.confirmLink", "end_user.unlink", "entitlement.create", "entitlement.change", "entitlement.end", "offer.create", "offer.update", "offer.archive", "price.create", "price.archive", "purchase.reflect", "subscription.reflect", "end_user.import", "end_user.importOne", "end_user.invite", "end_user.updateSettings", "end_user.recordConsent", "end_user.recordBlock", "suppression.add", "operator.restore", "operator.import", "operator.prune", "operator.emergency", "operator.trialSession", "operator.deleteTrial", "operator.deleteProject", "operator.trialHostname", "operator.importApiKeys", "operator.copyMembers", "operator.createApiKey", "operator.setChannelKey", "operator.resealSecrets", "operator.registerApp", "operator.publishApp", "operator.setAppKeys", "operator.setStandardApp", "operator.removeStandardApp"];
|
|
2
2
|
export type AuditActionCode = (typeof AUDIT_ACTION_CODES)[number];
|
|
3
3
|
/** 旧い文の接尾辞で移さない対象の種類(コレクションの id でない対象。連携の登録は表で移す) */
|
|
4
|
-
export declare const NON_COLLECTION_TARGETS: readonly ["request", "role", "account", "invitation", "support_access", "project", "environment", "mcp_connection", "schema", "screens", "record", "file", "singleton", "job", "standard_app", "trash", "calendar", "settings", "preview", "media_signing", "api_key", "app", "installation", "
|
|
4
|
+
export declare const NON_COLLECTION_TARGETS: readonly ["request", "role", "account", "invitation", "support_access", "project", "environment", "mcp_connection", "schema", "screens", "record", "file", "singleton", "job", "standard_app", "trash", "calendar", "settings", "preview", "media_signing", "api_key", "read_token", "mail_domain", "app", "installation", "end_user", "end_user_identity", "entitlement", "offer", "price", "purchase", "subscription", "end_user_import", "suppression", "webhook", "external_function", "external_screen", "contact", "art-guide"];
|
|
5
5
|
/** 操作の履歴の行の、操作と対象の部分 */
|
|
6
6
|
export type AuditActionRow = Readonly<{
|
|
7
7
|
action: string;
|
|
@@ -2,14 +2,31 @@ import { type AuditActionRow } from './auditActions.js';
|
|
|
2
2
|
export declare const AUDIT_ACTION_MESSAGES: {
|
|
3
3
|
readonly 'record.create': "{target}を作成";
|
|
4
4
|
readonly 'record.update': "{target}を更新";
|
|
5
|
+
readonly 'record.patch': "{target}を更新";
|
|
5
6
|
readonly 'record.delete': "{target}を削除";
|
|
7
|
+
readonly 'record.deleteLinked': "{target}とアカウントを削除";
|
|
6
8
|
readonly 'record.submit': "{target}のレビューを依頼";
|
|
7
9
|
readonly 'record.reject': "{target}を差し戻し";
|
|
8
10
|
readonly 'record.publish': "{target}を公開";
|
|
9
11
|
readonly 'record.unpublish': "{target}を下書きに戻す";
|
|
12
|
+
readonly 'record.publishScheduled': "予約した{target}を公開";
|
|
13
|
+
readonly 'record.discardSchedule': "{target}の公開の予約を取り消し(検査の不一致)";
|
|
14
|
+
readonly 'record.discardDraft': "{target}の編集中の版を破棄";
|
|
15
|
+
readonly 'record.setVisibility': "{target}の公開の範囲を変更";
|
|
10
16
|
readonly 'record.setSources': "{target}の参考資料を変更";
|
|
17
|
+
readonly 'source.create': "{target}を作成";
|
|
18
|
+
readonly 'source.update': "{target}を更新";
|
|
19
|
+
readonly 'source.delete': "{target}を削除";
|
|
11
20
|
readonly 'record.setRefs': "{target}の参照を変更";
|
|
12
21
|
readonly 'record.changeStatus': "ステータスを変更";
|
|
22
|
+
readonly 'record.hold': "{target}をアプリで占有";
|
|
23
|
+
readonly 'record.releaseHold': "{target}のアプリの占有を解放";
|
|
24
|
+
readonly 'record.read': "{target}を閲覧";
|
|
25
|
+
readonly 'record.clearHolds': "{target}のアプリの占有をすべて解除";
|
|
26
|
+
readonly 'form.submit': "{target}にフォームから送信";
|
|
27
|
+
readonly 'endUserRecord.create': "{target}を本人が作成";
|
|
28
|
+
readonly 'endUserRecord.update': "{target}を本人が更新";
|
|
29
|
+
readonly 'endUserRecord.delete': "{target}を本人が削除";
|
|
13
30
|
readonly 'master.create': "マスタを作成";
|
|
14
31
|
readonly 'master.update': "マスタを更新";
|
|
15
32
|
readonly 'master.delete': "マスタを削除";
|
|
@@ -22,7 +39,10 @@ export declare const AUDIT_ACTION_MESSAGES: {
|
|
|
22
39
|
readonly 'account.changeLogin': "ログインのアカウントを変更";
|
|
23
40
|
readonly 'account.changePortrait': "顔の画像を変更";
|
|
24
41
|
readonly 'account.removePortrait': "顔の画像を外す";
|
|
42
|
+
readonly 'accountLink.update': "アカウントの結び付きを変更";
|
|
25
43
|
readonly 'account.changeRole': "アカウントのロールを変更";
|
|
44
|
+
readonly 'account.updateProfile': "アカウントのプロフィールを変更";
|
|
45
|
+
readonly 'account.linkRecord': "アカウントにレコードを結び付け";
|
|
26
46
|
readonly 'request.create': "作成を依頼";
|
|
27
47
|
readonly 'request.approve': "作成の依頼を承認";
|
|
28
48
|
readonly 'request.reject': "作成の依頼を却下";
|
|
@@ -41,6 +61,7 @@ export declare const AUDIT_ACTION_MESSAGES: {
|
|
|
41
61
|
readonly 'project.create': "プロジェクトを作成";
|
|
42
62
|
readonly 'project.revokeAccess': "セッションと接続を一括で取り消し";
|
|
43
63
|
readonly 'project.rename': "プロジェクトの名前を変更";
|
|
64
|
+
readonly 'general.update': "一般の設定を変更";
|
|
44
65
|
readonly 'project.changeSlug': "プロジェクトのスラッグを変更";
|
|
45
66
|
readonly 'environment.create': "環境を作成";
|
|
46
67
|
readonly 'environment.copy': "環境をコピー";
|
|
@@ -53,9 +74,29 @@ export declare const AUDIT_ACTION_MESSAGES: {
|
|
|
53
74
|
readonly 'mcpConnection.approve': "AI の接続を許可";
|
|
54
75
|
readonly 'mcpConnection.remove': "AI の接続を外す";
|
|
55
76
|
readonly 'mcpConnection.removeAll': "AI の接続をすべて外す";
|
|
77
|
+
readonly 'mcpConnection.drop': "AI の接続を止める";
|
|
78
|
+
readonly 'mcpConnection.revokeAll': "AI の接続を一括で取り消し";
|
|
79
|
+
readonly 'mcpConnection.prune': "メンバーでない人の AI の接続を外す";
|
|
80
|
+
readonly 'mcpConnection.adopt': "AI の接続を取り込む";
|
|
81
|
+
readonly 'mcpRequest.create': "AI の接続の要求を作成";
|
|
82
|
+
readonly 'mcpRequest.open': "AI の接続の要求を開く";
|
|
83
|
+
readonly 'mcpRequest.deny': "AI の接続を拒否";
|
|
84
|
+
readonly 'mcpCode.use': "AI の接続の認可のコードを使用";
|
|
85
|
+
readonly 'mcpToken.issue': "AI の接続のトークンを発行";
|
|
86
|
+
readonly 'mcpToken.refresh': "AI の接続のトークンを更新";
|
|
87
|
+
readonly 'mcpGrace.use': "AI の接続のトークンの猶予を使用";
|
|
88
|
+
readonly 'mcpGrant.touch': "AI の接続を使用";
|
|
89
|
+
readonly 'mcpClient.register': "AI のクライアントを登録";
|
|
90
|
+
readonly 'secrets.reseal': "秘密値を今の鍵で封印し直し";
|
|
91
|
+
readonly 'app.emitEvent': "アプリのイベントを送信";
|
|
92
|
+
readonly 'files.alignMarkers': "ファイルの公開の印の照らし合わせを依頼";
|
|
56
93
|
readonly 'mcpInternalFields.update': "MCP に渡す内部のみのフィールドを変更";
|
|
57
94
|
readonly 'schema.update': "スキーマを変更";
|
|
58
95
|
readonly 'screens.update': "画面の設定を変更";
|
|
96
|
+
readonly 'view.create': "ビューを作成";
|
|
97
|
+
readonly 'view.update': "ビューを変更";
|
|
98
|
+
readonly 'view.delete': "ビューを削除";
|
|
99
|
+
readonly 'view.import': "チームのビューを取り込み";
|
|
59
100
|
readonly 'collection.delete': "コレクションを削除";
|
|
60
101
|
readonly 'file.upload': "画像をアップロード";
|
|
61
102
|
readonly 'file.import': "画像を URL から取り込み";
|
|
@@ -63,10 +104,21 @@ export declare const AUDIT_ACTION_MESSAGES: {
|
|
|
63
104
|
readonly 'file.delete': "画像を削除";
|
|
64
105
|
readonly 'file.deleteMany': "画像をまとめて削除";
|
|
65
106
|
readonly 'file.restoreMany': "画像をまとめて元に戻す";
|
|
107
|
+
readonly 'file.publishMany': "画像を公開";
|
|
108
|
+
readonly 'file.publishReferenced': "参照された画像を公開";
|
|
109
|
+
readonly 'file.unpublishMany': "画像の公開を終了";
|
|
66
110
|
readonly 'trash.restore': "ゴミ箱から元に戻す";
|
|
111
|
+
readonly 'trash.restoreCollection': "ゴミ箱からコレクションを元に戻す";
|
|
112
|
+
readonly 'trash.restoreBundle': "ゴミ箱のまとまりを元に戻す";
|
|
113
|
+
readonly 'trash.pruneBundles': "期間を過ぎたゴミ箱のまとまりを削除";
|
|
114
|
+
readonly 'trash.pruneRecords': "期間を過ぎたゴミ箱のレコードを削除";
|
|
67
115
|
readonly 'job.run': "バッチを実行";
|
|
68
116
|
readonly 'standardApp.update': "標準の機能を変更";
|
|
117
|
+
readonly 'appState.set': "アプリ用の状態を保存";
|
|
118
|
+
readonly 'appState.delete': "アプリ用の状態を削除";
|
|
69
119
|
readonly 'standardApp.install': "標準の機能をインストール";
|
|
120
|
+
readonly 'standardApp.mapCollections': "標準の機能のコレクションを選択";
|
|
121
|
+
readonly 'standardApp.revertInstall': "標準の機能のインストールを取り消し";
|
|
70
122
|
readonly 'content.import': "コンテンツを一括でインポート";
|
|
71
123
|
readonly 'transferPlan.update': "移行の計画を更新";
|
|
72
124
|
readonly 'preview.rotateSecret': "プレビューの署名シークレットを再発行";
|
|
@@ -75,31 +127,83 @@ export declare const AUDIT_ACTION_MESSAGES: {
|
|
|
75
127
|
readonly 'apiKey.create': "API キーを作成";
|
|
76
128
|
readonly 'apiKey.update': "API キーの権限を変更";
|
|
77
129
|
readonly 'apiKey.revoke': "API キーを失効";
|
|
130
|
+
readonly 'apiKey.rotate': "API キーを再発行";
|
|
131
|
+
readonly 'apiKey.delete': "API キーを削除";
|
|
132
|
+
readonly 'readToken.issue': "読み取りのトークンを発行";
|
|
133
|
+
readonly 'readToken.revoke': "読み取りのトークンを失効";
|
|
134
|
+
readonly 'mailDomain.add': "送信のドメインを登録";
|
|
135
|
+
readonly 'mailDomain.check': "送信のドメインの状態を確認";
|
|
136
|
+
readonly 'mailDomain.remove': "送信のドメインを削除";
|
|
78
137
|
readonly 'app.register': "アプリを登録";
|
|
79
138
|
readonly 'app.publish': "アプリの新しいバージョンを公開";
|
|
80
139
|
readonly 'app.updateKeys': "アプリのキーを更新";
|
|
81
140
|
readonly 'app.install': "アプリをインストール";
|
|
82
141
|
readonly 'app.consent': "アプリの能力に同意";
|
|
142
|
+
readonly 'app.updateVersion': "アプリを新しいバージョンに更新";
|
|
143
|
+
readonly 'app.setAutoUpdate': "アプリの自動の更新を切り替え";
|
|
83
144
|
readonly 'app.changeState': "アプリの有効と無効を変更";
|
|
84
145
|
readonly 'app.uninstall': "アプリをアンインストール";
|
|
85
146
|
readonly 'app.deleteData': "アプリのデータを削除";
|
|
147
|
+
readonly 'app.setSecret': "アプリの秘密値を入力";
|
|
148
|
+
readonly 'app.deleteSecret': "アプリの秘密値を削除";
|
|
149
|
+
readonly 'channel.create': "チャネルを作成";
|
|
150
|
+
readonly 'channel.update': "チャネルを変更";
|
|
151
|
+
readonly 'channel.remove': "チャネルを削除";
|
|
152
|
+
readonly 'channel.setSecret': "チャネルの秘密値を入力";
|
|
153
|
+
readonly 'channel.deleteSecret': "チャネルの秘密値を削除";
|
|
154
|
+
readonly 'channel.pruneSecrets': "削除したチャネルの秘密値を整理";
|
|
86
155
|
readonly 'site.deployStart': "アプリがサイトのアップロードを開始";
|
|
87
156
|
readonly 'site.deployResult': "アプリのサイトのアップロードの結果";
|
|
88
|
-
readonly '
|
|
89
|
-
readonly '
|
|
90
|
-
readonly '
|
|
91
|
-
readonly '
|
|
92
|
-
readonly '
|
|
93
|
-
readonly '
|
|
94
|
-
readonly '
|
|
95
|
-
readonly '
|
|
96
|
-
readonly '
|
|
97
|
-
readonly '
|
|
98
|
-
readonly '
|
|
99
|
-
readonly '
|
|
100
|
-
readonly '
|
|
101
|
-
readonly '
|
|
102
|
-
readonly '
|
|
157
|
+
readonly 'deployment.place': "サイトを配置";
|
|
158
|
+
readonly 'deployment.activate': "サイトのデプロイを有効化";
|
|
159
|
+
readonly 'end_user.create': "エンドユーザーを作成";
|
|
160
|
+
readonly 'end_user.changeStatus': "エンドユーザーの状態を変更";
|
|
161
|
+
readonly 'end_user.delete': "エンドユーザーを削除";
|
|
162
|
+
readonly 'end_user.erase': "エンドユーザーの削除の求めを実行(戻せない)";
|
|
163
|
+
readonly 'end_user.link': "エンドユーザーを紐付け";
|
|
164
|
+
readonly 'end_user.linkByInvite': "エンドユーザーを招待で紐付け";
|
|
165
|
+
readonly 'end_user.ensure': "エンドユーザーをログインで作成";
|
|
166
|
+
readonly 'end_user.purgeInvites': "期限の過ぎた招待を削除";
|
|
167
|
+
readonly 'inbox.markRead': "通知を既読にする";
|
|
168
|
+
readonly 'standardApp.provision': "同梱のアプリを作成の処理で導入";
|
|
169
|
+
readonly 'readToken.prune': "期限の過ぎた読み取りのトークンを削除";
|
|
170
|
+
readonly 'webhook.recordDeliveries': "Webhook・外部関数の送信を記録";
|
|
171
|
+
readonly 'webhook.queueDeliveries': "Webhook の送信を予定";
|
|
172
|
+
readonly 'webhook.claimRetries': "Webhook の再送を引き取り";
|
|
173
|
+
readonly 'webhook.pruneDeliveries': "期間の過ぎた送信記録を削除";
|
|
174
|
+
readonly 'import.createOriginKey': "取り込みの元の ID の鍵を作成";
|
|
175
|
+
readonly 'domain.request': "ドメインを申請";
|
|
176
|
+
readonly 'domain.verify': "ドメインを確認";
|
|
177
|
+
readonly 'domain.remove': "ドメインを削除";
|
|
178
|
+
readonly 'domain.set_slug': "検証用のホスト名を設定";
|
|
179
|
+
readonly 'approval.request': "本番への反映を申請";
|
|
180
|
+
readonly 'approval.cancel': "本番への反映の申請を取り下げ";
|
|
181
|
+
readonly 'approval.approve': "本番への反映の申請を承認";
|
|
182
|
+
readonly 'approval.reject': "本番への反映の申請を却下";
|
|
183
|
+
readonly 'approval.settle': "承認した申請の実行の結果を記録";
|
|
184
|
+
readonly 'app.planInstall': "アプリのインストールの計画を保存";
|
|
185
|
+
readonly 'import.pruneOriginals': "期間を過ぎた取り込みの元の HTML を削除";
|
|
186
|
+
readonly 'payment.pruneEvents': "期間を過ぎた反映した決済のイベントを削除";
|
|
187
|
+
readonly 'import.saveOriginals': "取り込みの元の HTML を保存";
|
|
188
|
+
readonly 'import.recordRun': "取り込みの実行の完了を記録";
|
|
189
|
+
readonly 'end_user.confirmLink': "エンドユーザーの紐付けを確認して有効に";
|
|
190
|
+
readonly 'end_user.unlink': "エンドユーザーの紐付けを解除";
|
|
191
|
+
readonly 'entitlement.create': "エンドユーザーの権利を付与";
|
|
192
|
+
readonly 'entitlement.change': "エンドユーザーの権利の期間を変更";
|
|
193
|
+
readonly 'entitlement.end': "エンドユーザーの権利を終了";
|
|
194
|
+
readonly 'offer.create': "オファーを作成";
|
|
195
|
+
readonly 'offer.update': "オファーを変更";
|
|
196
|
+
readonly 'offer.archive': "オファーを停止";
|
|
197
|
+
readonly 'price.create': "価格を作成";
|
|
198
|
+
readonly 'price.archive': "価格を停止";
|
|
199
|
+
readonly 'purchase.reflect': "決済の購入を反映";
|
|
200
|
+
readonly 'subscription.reflect': "決済の購読を反映";
|
|
201
|
+
readonly 'end_user.import': "エンドユーザーをインポート";
|
|
202
|
+
readonly 'end_user.importOne': "エンドユーザーを1人インポート";
|
|
203
|
+
readonly 'end_user.invite': "エンドユーザーの招待を発行";
|
|
204
|
+
readonly 'end_user.updateSettings': "エンドユーザーの設定を変更";
|
|
205
|
+
readonly 'end_user.recordConsent': "エンドユーザーの同意を記録";
|
|
206
|
+
readonly 'end_user.recordBlock': "エンドユーザーのチャネルのブロックを記録";
|
|
103
207
|
readonly 'suppression.add': "抑止の一覧に記録";
|
|
104
208
|
readonly 'operator.restore': "運営者がプロジェクトを時点の復元で戻した";
|
|
105
209
|
readonly 'operator.import': "運営者がプロジェクトのデータをエクスポートで置き換えた";
|
|
@@ -112,6 +216,7 @@ export declare const AUDIT_ACTION_MESSAGES: {
|
|
|
112
216
|
readonly 'operator.importApiKeys': "運営者が環境の API キーをプロジェクトへコピーした";
|
|
113
217
|
readonly 'operator.copyMembers': "運営者が別のプロジェクトのメンバーとロールをコピーした";
|
|
114
218
|
readonly 'operator.createApiKey': "運営者が配信用の API キーを作成した";
|
|
219
|
+
readonly 'operator.setChannelKey': "運営者がチャネルの外部のアカウントのキーを設定した";
|
|
115
220
|
readonly 'operator.resealSecrets': "運営者が改名の前の形の秘密の値を封印し直した";
|
|
116
221
|
readonly 'operator.registerApp': "運営者がアプリを登録した";
|
|
117
222
|
readonly 'operator.publishApp': "運営者がアプリの新しいバージョンを公開した";
|