@tunasand/sdk 0.8.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 +121 -0
- package/README.md +162 -143
- package/dist/analytics.js +76 -65
- package/dist/app.js +184 -163
- 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 +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-nUz1RetA.js +264 -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-B-Dbn64k.js +29 -0
- package/dist/end-users.d.ts +1 -0
- package/dist/end-users.js +185 -0
- package/dist/endUsers-DODfjnv1.js +77 -0
- package/dist/{errorLabels-BgtQ_zUn.js → errorLabels-aT2bnMsO.js} +355 -235
- 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-CrY_72Tn.js} +88 -44
- 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/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-Dcg1ajnW.js} +496 -263
- 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 +10 -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/apiKeys.d.ts +6 -2
- package/dist/types/contract/src/app.d.ts +15 -5
- package/dist/types/contract/src/appChannels.d.ts +114 -0
- package/dist/types/contract/src/appDefinition.d.ts +11 -5
- package/dist/types/contract/src/appDependencies.d.ts +87 -24
- 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 +408 -43
- package/dist/types/contract/src/approvals.d.ts +1 -1
- package/dist/types/contract/src/apps.d.ts +112 -55
- package/dist/types/contract/src/auditActions.d.ts +2 -2
- package/dist/types/contract/src/auditLabels.d.ts +111 -15
- package/dist/types/contract/src/authorize.d.ts +42 -14
- package/dist/types/contract/src/bridge.d.ts +34 -35
- package/dist/types/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 +16 -82
- package/dist/types/contract/src/{customerLabels.d.ts → endUserLabels.d.ts} +6 -9
- package/dist/types/contract/src/endUsers.d.ts +241 -0
- package/dist/types/contract/src/errorLabels.d.ts +63 -36
- package/dist/types/contract/src/errorLabelsEn.d.ts +46 -32
- 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 +43 -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 +23 -17
- 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 +52 -27
- package/dist/types/contract/src/integrationGraph.d.ts +83 -0
- package/dist/types/contract/src/issueLabels.d.ts +113 -81
- package/dist/types/contract/src/issueLabelsEn.d.ts +57 -41
- package/dist/types/contract/src/manage.d.ts +11 -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 +38 -0
- package/dist/types/contract/src/operatorOperations.d.ts +0 -63
- 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/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/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 +1 -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 +13 -19
- package/dist/types/contract/src/workspaceItems.d.ts +20 -6
- 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 +138 -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 +22 -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 +18 -10
- 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 +87 -46
- package/dist/types/schema/src/labels/ja.d.ts +89 -45
- 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 +82 -41
- 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 +40 -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 +190 -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-DkO2N7u2.js} +5 -6
- package/dist/types.js +1 -1
- package/dist/{typesSource-CWybQYus.js → typesSource-VJIxtN9b.js} +17 -15
- package/dist/workflow-CUpl6hO_.js +148 -0
- 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,42 +37,60 @@ 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)。
|
|
79
|
+
* - label: ワークスペースの見出し(一覧の列の見出しなど、なしはマニフェストの label)。APP_UI_LABEL_MAX 文字まで
|
|
80
|
+
* key が要る(表示の文字列の塊の項目は `<slot>:<key>`)
|
|
60
81
|
* - page だけ: requires は表示に要る権限、badge はメニューの件数を返すアプリの経路(GET で `{ count }`、要求者の権限で判定)、
|
|
61
82
|
* menu が false はメニューに出さない経路だけの画面、rail は ID つきの経路でメニューを縮める編集の画面
|
|
62
83
|
* - settings だけ: area はページを開ける設定の領域
|
|
63
84
|
*/
|
|
64
|
-
export type
|
|
65
|
-
|
|
85
|
+
export type AppUi = Readonly<{
|
|
86
|
+
slot: AppUiSlot;
|
|
66
87
|
url?: string;
|
|
67
88
|
key?: string;
|
|
68
89
|
collection?: string;
|
|
69
90
|
field?: string;
|
|
70
91
|
label?: string;
|
|
71
|
-
icon?:
|
|
72
|
-
requires?:
|
|
92
|
+
icon?: AppUiIcon;
|
|
93
|
+
requires?: AppUiRequires;
|
|
73
94
|
badge?: Readonly<{
|
|
74
95
|
route: `/api/${string}`;
|
|
75
96
|
}>;
|
|
@@ -87,36 +108,47 @@ export type ConnectionPoint = Readonly<{
|
|
|
87
108
|
id: string;
|
|
88
109
|
label: string;
|
|
89
110
|
}>;
|
|
90
|
-
/**
|
|
91
|
-
export declare const
|
|
111
|
+
/** コレクションを持つ画面のスロット(マニフェストの画面に collection が要る) */
|
|
112
|
+
export declare const COLLECTION_UI_SLOTS: readonly ["record.panel", "record.field", "list.action", "list.column"];
|
|
92
113
|
/** 画面の見出しの文字数の上限(外の画面と外部関数の登録の名前と同じ) */
|
|
93
|
-
export declare const
|
|
114
|
+
export declare const APP_UI_LABEL_MAX = 40;
|
|
94
115
|
/** MCP の道具(名前と説明の両方が能力。説明が変わった版も同意まで止める) */
|
|
95
116
|
export type AppTool = Readonly<{
|
|
96
117
|
name: string;
|
|
97
118
|
description: string;
|
|
98
119
|
}>;
|
|
120
|
+
/** アプリの MCP のツールとプロンプトの名前の接頭辞(名前空間の `.` と `-` を `_` にする。クライアントのツールの名前は英数字、`_`、`-` だけを受ける) */
|
|
121
|
+
export declare const appToolPrefixOf: (namespace: string) => string;
|
|
99
122
|
/**
|
|
100
123
|
* アプリのマニフェスト(バージョンごと)
|
|
101
|
-
* -
|
|
124
|
+
* - manifest_version: 形のバージョン(必須、APP_MANIFEST_VERSION)。登録は知らない項目を拒否し、保存済みの読み取りは拒否しない
|
|
125
|
+
* - capabilities: 対象から操作の配列
|
|
126
|
+
* 対象はコレクションのスラッグ、`*`、`@end_users`、`files`、マニフェストのコレクションの名前、APP_SETTINGS_TARGETS
|
|
127
|
+
* マニフェストのコレクションの名前の対象は、当てたコレクションだけに効く(作ったコレクションはアプリが全部の操作を持つ)
|
|
102
128
|
* - 依存の宣言(major、requires、uses、provides、collections、settings、price): appDependencies.ts
|
|
103
|
-
* - destinations:
|
|
129
|
+
* - destinations: Tunasand からアプリへの送信の宛先のオリジン(https)
|
|
130
|
+
* - outbound: アプリのサーバーの側からの外への要求の宣言(outbound.ts)
|
|
131
|
+
* - secrets: 管理者が入力する秘密値の宣言(appSecrets.ts)。outbound の auth はここで宣言したキーだけを指す
|
|
104
132
|
* - events: 受ける Webhook のイベントの名前
|
|
105
|
-
* -
|
|
133
|
+
* - mail: メールの送信と受信(appMail.ts。能力の要素は mail:send と mail:inbound)
|
|
134
|
+
* - channel_kinds: アプリが定義するチャネルの種類(能力、アドレスの形、チャネルごとの設定と秘密値、外のサービスから受ける経路、
|
|
135
|
+
* 本人の証明の発行者。appChannels.ts)
|
|
136
|
+
* - own_site: サイトの「自分のサイト」の能力(エンドユーザーだけの内容の全文とエンドユーザーの照合を扱う)
|
|
106
137
|
* - hosting: サイトを Tunasand のホスティングに上げる能力(`deploy_site`)。上げるのはアプリのアップロードの鍵(APP_KEY_USES.deploy)だけ
|
|
107
138
|
* 宣言の形では、サイトの D1 と R2 の bind の名前と Cron の式も求める(要素ごとに同意を通る)
|
|
108
|
-
* -
|
|
109
|
-
* 情報の能力を求めるアプリは必須(
|
|
110
|
-
* - targets: エラーの文と操作の記録の対象(キーは対象の id、値は表示名)、
|
|
139
|
+
* - deletion_url: 削除のエンドポイント(アンインストールのイベントとエンドユーザーの削除のイベントを受ける https の URL)。個人の
|
|
140
|
+
* 情報の能力を求めるアプリは必須(piiCapabilities)
|
|
141
|
+
* - targets: エラーの文と操作の記録の対象(キーは対象の id、値は表示名)、audit_actions: 操作の記録の操作の文言(キーは <アプリ>.<操作>)
|
|
111
142
|
* - messages: 対象ごとのエラーの文、problems: 検査の問題の文(キーは `<アプリ>_` で始まる問題のコード)、en: 英語の対象の名前と問題の文
|
|
112
|
-
* - permissions: 権限の対象の拡張、connections: 必要な外部の接続、emits:
|
|
143
|
+
* - permissions: 権限の対象の拡張、connections: 必要な外部の接続、emits: アプリが出すイベント(キーは名前で、外には apps.<名前空間>.<名前>。値は表示名)
|
|
113
144
|
*/
|
|
114
145
|
export type AppManifest = Readonly<{
|
|
146
|
+
manifest_version: typeof APP_MANIFEST_VERSION;
|
|
115
147
|
label: string;
|
|
116
148
|
kind: AppKind;
|
|
117
149
|
description?: string;
|
|
118
150
|
targets?: Readonly<Record<string, string>>;
|
|
119
|
-
|
|
151
|
+
audit_actions?: Readonly<Record<string, string>>;
|
|
120
152
|
messages?: TargetMessages;
|
|
121
153
|
problems?: Readonly<Record<string, string>>;
|
|
122
154
|
en?: Readonly<{
|
|
@@ -127,14 +159,17 @@ export type AppManifest = Readonly<{
|
|
|
127
159
|
connections?: readonly ConnectionPoint[];
|
|
128
160
|
emits?: Readonly<Record<string, string>>;
|
|
129
161
|
capabilities?: Readonly<Record<string, readonly Operation[]>>;
|
|
130
|
-
slots?: Readonly<Record<string, AppSlot>>;
|
|
131
162
|
destinations?: readonly string[];
|
|
163
|
+
outbound?: readonly AppOutbound[];
|
|
164
|
+
secrets?: readonly AppSecretDeclaration[];
|
|
132
165
|
events?: readonly string[];
|
|
133
|
-
|
|
166
|
+
mail?: AppMailDeclaration;
|
|
167
|
+
channel_kinds?: readonly AppChannelKind[];
|
|
168
|
+
ui?: readonly AppUi[];
|
|
134
169
|
tools?: readonly AppTool[];
|
|
135
|
-
|
|
170
|
+
own_site?: boolean;
|
|
136
171
|
hosting?: boolean | SiteHostingManifest;
|
|
137
|
-
|
|
172
|
+
deletion_url?: string;
|
|
138
173
|
}> & AppDependencyManifest;
|
|
139
174
|
/**
|
|
140
175
|
* アプリの鍵の用途(登録する公開鍵の JWK の use)
|
|
@@ -158,8 +193,22 @@ export type RegisteredApp = Readonly<{
|
|
|
158
193
|
latestVersion: number;
|
|
159
194
|
createdAt: string;
|
|
160
195
|
}>;
|
|
161
|
-
/**
|
|
162
|
-
export type
|
|
196
|
+
/** 依存の相手(この環境に入っているアプリ。active は止まっていない) */
|
|
197
|
+
export type AppRelation = Readonly<{
|
|
198
|
+
id: InfraId<'installation'>;
|
|
199
|
+
label: string;
|
|
200
|
+
active: boolean;
|
|
201
|
+
}>;
|
|
202
|
+
/** 必須の依存の依存先と依存元 */
|
|
203
|
+
export type InstallationRelations = Readonly<{
|
|
204
|
+
requires: readonly AppRelation[];
|
|
205
|
+
requiredBy: readonly AppRelation[];
|
|
206
|
+
}>;
|
|
207
|
+
/**
|
|
208
|
+
* ワークスペースの一覧のインストール(app はなしで旧い形のインストール)
|
|
209
|
+
* - pendingVersion は更新できる版、pending は同意を待つ能力、autoUpdate は定期の処理で新しいバージョンに上げるか
|
|
210
|
+
*/
|
|
211
|
+
export type Installation = InstallationRelations & Readonly<{
|
|
163
212
|
id: InfraId<'installation'>;
|
|
164
213
|
appId: InfraId<'app'> | null;
|
|
165
214
|
kind: InstallationKind;
|
|
@@ -167,12 +216,16 @@ export type Installation = Readonly<{
|
|
|
167
216
|
state: InstallationState;
|
|
168
217
|
version: number | null;
|
|
169
218
|
pendingVersion: number | null;
|
|
219
|
+
autoUpdate: boolean;
|
|
170
220
|
consented: readonly string[];
|
|
171
221
|
pending: readonly string[];
|
|
172
|
-
slots: Readonly<Record<string, string>>;
|
|
173
222
|
parts: readonly InstallationPart[];
|
|
223
|
+
/** 導入先が既存のコレクションに当てた記録 */
|
|
224
|
+
mapped: CollectionMappings;
|
|
174
225
|
createdAt: string;
|
|
175
226
|
dataDeletedAt: string | null;
|
|
227
|
+
/** 発行するイベントの種類(マニフェストの emits、名前空間つき) */
|
|
228
|
+
emits: readonly string[];
|
|
176
229
|
}>;
|
|
177
230
|
/** インストールが持つ部品(今の Webhook、外部関数、外の画面の行と、同梱のアプリの id に結ぶ。API の鍵はレジストリでインストール済みアプリに属する) */
|
|
178
231
|
export declare const INSTALLATION_PART_KINDS: readonly ["webhook", "function", "embed", "bundled"];
|
|
@@ -186,13 +239,13 @@ export type InstallationPart = Readonly<{
|
|
|
186
239
|
/** マニフェストの問題(path は値の場所、code は理由) */
|
|
187
240
|
export type AppManifestProblem = Readonly<{
|
|
188
241
|
path: string;
|
|
189
|
-
code: 'required' | 'invalid' | 'too_long' | 'too_many' | 'namespace' | 'duplicate' | 'reserved';
|
|
242
|
+
code: 'required' | 'invalid' | 'too_long' | 'too_many' | 'namespace' | 'duplicate' | 'reserved' | 'unknown';
|
|
190
243
|
}>;
|
|
191
244
|
/** URL のオリジン(https のホスト名と任意のポート。手元の開発の http://localhost も許す。ほかの形と認証の情報つきは null) */
|
|
192
245
|
export declare function originOf(url: string): string | null;
|
|
193
246
|
/**
|
|
194
247
|
* アプリに委ねられる設定の領域と管理の権限(人の代理のときだけ効き、人が持ち、かつ同意にある操作だけを通す。操作は read と update)
|
|
195
|
-
* -
|
|
248
|
+
* - 取り込みのデータの領域、人の取り込みのエンドユーザーの領域(管理者だけの経路)、スキーマの変更
|
|
196
249
|
*/
|
|
197
250
|
export declare const APP_SETTINGS_TARGETS: readonly [string, string, string];
|
|
198
251
|
/**
|
|
@@ -201,27 +254,31 @@ export declare const APP_SETTINGS_TARGETS: readonly [string, string, string];
|
|
|
201
254
|
* - 値の形が壊れていれば問題を返し、正しければ空
|
|
202
255
|
*/
|
|
203
256
|
export declare function appManifestProblems(input: unknown, namespace: string | null): AppManifestProblem[];
|
|
257
|
+
export declare const APP_MANIFEST_VERSION = 1;
|
|
258
|
+
/** マニフェストの項目(登録はこれ以外の項目を拒否する) */
|
|
259
|
+
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", "channel_kinds", "events", "mail", "ui", "tools", "own_site", "hosting", "deletion_url", "major", "requires", "uses", "provides", "collections", "settings", "price"];
|
|
204
260
|
/**
|
|
205
261
|
* 登録するバージョンのマニフェストの検査(appManifestProblems に、登録のときだけの決まりを足す)
|
|
206
|
-
* - 個人の情報の能力を求めるのに削除のエンドポイントがなければ
|
|
262
|
+
* - 個人の情報の能力を求めるのに削除のエンドポイントがなければ deletion_url の required(登録済みのバージョンは読むときに拒まない)
|
|
207
263
|
*/
|
|
208
264
|
export declare function registeringManifestProblems(input: unknown, namespace: string | null): AppManifestProblem[];
|
|
209
265
|
/**
|
|
210
|
-
*
|
|
211
|
-
* -
|
|
212
|
-
* -
|
|
266
|
+
* 画面の宣言のコレクション(マニフェストのコレクションの名前を、作ったか当てたコレクションの id に解く)
|
|
267
|
+
* - collections: マニフェストの名前 → コレクションの id
|
|
268
|
+
* - コレクションを持たないスロットは null
|
|
269
|
+
* - コレクションを持つスロットでコレクションが解けなければ undefined(当てていないコレクション、コレクションのない宣言、マニフェストにない名前)
|
|
213
270
|
*/
|
|
214
|
-
export declare function
|
|
271
|
+
export declare function uiCollectionOf(manifest: AppManifest, screen: AppUi, collections: CollectionIds): string | null | undefined;
|
|
215
272
|
/** コレクションの名前空間の形か(登録のとき) */
|
|
216
273
|
export declare const isAppNamespace: (value: string) => boolean;
|
|
217
|
-
/**
|
|
218
|
-
export declare const
|
|
274
|
+
/** 当て先の選び残し(既存のコレクションに当てる宣言 existing で、当てていない名前) */
|
|
275
|
+
export declare const unmappedCollections: (manifest: AppManifest, mappings: CollectionMappings) => string[];
|
|
219
276
|
/**
|
|
220
|
-
*
|
|
221
|
-
* -
|
|
222
|
-
* -
|
|
277
|
+
* マニフェストと当て先から能力の集合(並びは辞書の順、重複なし)
|
|
278
|
+
* - マニフェストのコレクションの名前の対象は、当てたコレクションの id に解く。作るか当てていないコレクションの能力は集合に入れない
|
|
279
|
+
* - ほかのコレクションはスラッグで書き、collectionIdOf でコレクションの id に解く。解けないスラッグの能力は集合に入れない
|
|
223
280
|
*/
|
|
224
|
-
export declare function capabilitySetOf(manifest: AppManifest,
|
|
281
|
+
export declare function capabilitySetOf(manifest: AppManifest, mappings?: CollectionMappings, collectionIdOf?: (slug: string) => string | undefined): string[];
|
|
225
282
|
/** 前の同意にない能力(再同意で求める分) */
|
|
226
283
|
export declare const addedCapabilities: (consented: readonly string[], next: readonly string[]) => string[];
|
|
227
284
|
/** 同意した能力の集合から、判定の関数に渡す能力(対象から操作の配列) */
|
|
@@ -234,5 +291,5 @@ export declare const CAPABILITY_CLASSES: readonly ["hosting", "confidential", "o
|
|
|
234
291
|
export type CapabilityClass = (typeof CAPABILITY_CLASSES)[number];
|
|
235
292
|
/** 能力の要素の分類(同意の画面のまとまり。機密、外への送信、`*` の書き込みを目立たせる) */
|
|
236
293
|
export declare function capabilityClassOf(capability: string): CapabilityClass;
|
|
237
|
-
/**
|
|
238
|
-
export declare const
|
|
294
|
+
/** 能力の集合のうち個人の情報の能力(機密の分類とエンドユーザーの対象 `@end_users`。求めるアプリは削除のエンドポイントが必須) */
|
|
295
|
+
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", "import.saveOriginals", "import.recordRun", "end_user.confirmLink", "end_user.unlink", "entitlement.create", "entitlement.change", "entitlement.end", "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.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", "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,75 @@ 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 'import.saveOriginals': "取り込みの元の HTML を保存";
|
|
187
|
+
readonly 'import.recordRun': "取り込みの実行の完了を記録";
|
|
188
|
+
readonly 'end_user.confirmLink': "エンドユーザーの紐付けを確認して有効に";
|
|
189
|
+
readonly 'end_user.unlink': "エンドユーザーの紐付けを解除";
|
|
190
|
+
readonly 'entitlement.create': "エンドユーザーの権利を付与";
|
|
191
|
+
readonly 'entitlement.change': "エンドユーザーの権利の期間を変更";
|
|
192
|
+
readonly 'entitlement.end': "エンドユーザーの権利を終了";
|
|
193
|
+
readonly 'end_user.import': "エンドユーザーをインポート";
|
|
194
|
+
readonly 'end_user.importOne': "エンドユーザーを1人インポート";
|
|
195
|
+
readonly 'end_user.invite': "エンドユーザーの招待を発行";
|
|
196
|
+
readonly 'end_user.updateSettings': "エンドユーザーの設定を変更";
|
|
197
|
+
readonly 'end_user.recordConsent': "エンドユーザーの同意を記録";
|
|
198
|
+
readonly 'end_user.recordBlock': "エンドユーザーのチャネルのブロックを記録";
|
|
103
199
|
readonly 'suppression.add': "抑止の一覧に記録";
|
|
104
200
|
readonly 'operator.restore': "運営者がプロジェクトを時点の復元で戻した";
|
|
105
201
|
readonly 'operator.import': "運営者がプロジェクトのデータをエクスポートで置き換えた";
|