@tunasand/sdk 0.7.0 → 0.8.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 +112 -88
- package/README.md +202 -198
- package/dist/analytics.js +638 -2
- package/dist/app.js +230 -24
- package/dist/apps-BxnJ1RlU.js +435 -0
- package/dist/{bridge-DYAYGV7t.js → bridge-DtHw9hS6.js} +3 -3
- package/dist/bridge.js +2 -2
- package/dist/cli.js +5 -4
- package/dist/{model-pmXzGX12.js → collection-BEOxeISR.js} +49 -12
- package/dist/{customers-C_vJY2_v.js → customers-DTbL0qn6.js} +5 -3
- package/dist/customers.js +2 -2
- package/dist/{declared-C_GvPiGF.js → declared-DuNMsdXw.js} +93 -5
- package/dist/delivery.js +15 -30
- package/dist/embeds-B5V54Zur.js +34 -0
- package/dist/{errorLabels-CPKiPabZ.js → errorLabels-BgtQ_zUn.js} +276 -263
- package/dist/i18n.js +4 -4
- package/dist/ids--RF7hGyC.js +36 -0
- package/dist/integrations.js +4 -29
- package/dist/{ja-C1HEWWTQ.js → ja-CeHU0EaY.js} +3 -3
- package/dist/{ja-C6lX0CeJ.js → ja-Du6ooL6i.js} +12 -11
- package/dist/{page-E_cYgZx-.js → page-Bzrj24sJ.js} +4 -4
- package/dist/{profile-D6t1QMQh.js → profile-1em_lcxq.js} +5 -5
- package/dist/rich-text.d.ts +1 -0
- package/dist/{body.js → rich-text.js} +6 -7
- package/dist/{schema-UQJWRyfJ.js → schema-WnobuwLg.js} +136 -97
- package/dist/schema.js +346 -1
- package/dist/types/access/src/handoff.d.ts +3 -3
- package/dist/types/access/src/jwt.d.ts +1 -1
- package/dist/types/access/src/oidc.d.ts +1 -1
- package/dist/types/{cms-contract → contract}/src/apiKeys.d.ts +1 -1
- package/dist/types/{cms-contract → contract}/src/app.d.ts +8 -15
- package/dist/types/contract/src/appDefinition.d.ts +127 -0
- package/dist/types/{cms-contract → contract}/src/appDependencies.d.ts +6 -13
- package/dist/types/contract/src/appServer.d.ts +136 -0
- package/dist/types/contract/src/approvalLabels.d.ts +26 -0
- package/dist/types/contract/src/approvals.d.ts +63 -0
- package/dist/types/{cms-contract → contract}/src/apps.d.ts +72 -29
- package/dist/types/contract/src/auditActions.d.ts +18 -0
- package/dist/types/contract/src/auditLabels.d.ts +127 -0
- package/dist/types/{cms-contract → contract}/src/authorize.d.ts +22 -63
- package/dist/types/{cms-contract → contract}/src/bridge.d.ts +6 -6
- package/dist/types/{cms-contract → contract}/src/customers.d.ts +6 -6
- package/dist/types/{cms-contract → contract}/src/embeds.d.ts +13 -7
- package/dist/types/{cms-contract → contract}/src/errorLabels.d.ts +17 -15
- package/dist/types/{cms-contract → contract}/src/errorLabelsEn.d.ts +9 -7
- package/dist/types/{cms-contract → contract}/src/errors.d.ts +11 -11
- package/dist/types/{cms-contract → contract}/src/failureStatus.d.ts +4 -3
- package/dist/types/contract/src/fieldAccess.d.ts +45 -0
- package/dist/types/contract/src/fieldRules.d.ts +41 -0
- package/dist/types/{cms-contract/src/assets.d.ts → contract/src/files.d.ts} +5 -5
- package/dist/types/{cms-contract → contract}/src/functions.d.ts +3 -3
- package/dist/types/contract/src/hostingRpc.d.ts +143 -0
- package/dist/types/contract/src/hostnames.d.ts +30 -0
- package/dist/types/{cms-contract → contract}/src/identifiers.d.ts +31 -28
- package/dist/types/contract/src/ids.d.ts +104 -0
- package/dist/types/{cms-contract → contract}/src/import.d.ts +3 -3
- package/dist/types/contract/src/importLabels.d.ts +3 -0
- package/dist/types/contract/src/index.d.ts +67 -0
- package/dist/types/{cms-contract → contract}/src/issueLabels.d.ts +27 -23
- package/dist/types/{cms-contract → contract}/src/issueLabelsEn.d.ts +15 -13
- package/dist/types/contract/src/labels.d.ts +11 -0
- package/dist/types/contract/src/legacyAuditLabels.d.ts +10 -0
- package/dist/types/contract/src/livePeriods.d.ts +18 -0
- package/dist/types/contract/src/manage.d.ts +47 -0
- package/dist/types/contract/src/manageLabels.d.ts +9 -0
- package/dist/types/contract/src/mcpAuth.d.ts +139 -0
- package/dist/types/contract/src/mcpLabels.d.ts +5 -0
- package/dist/types/{cms-contract → contract}/src/migration.d.ts +1 -1
- package/dist/types/contract/src/operatorOperations.d.ts +703 -0
- package/dist/types/contract/src/operators.d.ts +33 -0
- package/dist/types/{cms-contract → contract}/src/paths.d.ts +6 -8
- package/dist/types/contract/src/pending.d.ts +4 -0
- package/dist/types/{cms-contract → contract}/src/permissions.d.ts +2 -0
- package/dist/types/contract/src/principal.d.ts +110 -0
- package/dist/types/{cms-contract → contract}/src/problems.d.ts +4 -4
- package/dist/types/contract/src/projectRole.d.ts +6 -0
- package/dist/types/{cms-contract → contract}/src/roles.d.ts +4 -3
- package/dist/types/{cms-contract → contract}/src/settingProblems.d.ts +2 -2
- package/dist/types/{cms-contract → contract}/src/settings.d.ts +2 -2
- package/dist/types/contract/src/settingsLabels.d.ts +3 -0
- package/dist/types/contract/src/slugs.d.ts +6 -0
- package/dist/types/{cms-contract → contract}/src/transfer.d.ts +3 -3
- package/dist/types/contract/src/trial.d.ts +10 -0
- package/dist/types/contract/src/versions.d.ts +9 -0
- package/dist/types/{cms-contract → contract}/src/webhooks.d.ts +33 -58
- package/dist/types/contract/src/workflow.d.ts +49 -0
- package/dist/types/contract/src/workspaceItems.d.ts +73 -0
- package/dist/types/contract/src/workspacePaths.d.ts +4 -0
- package/dist/types/{body → rich-text}/src/declared.d.ts +2 -2
- package/dist/types/{body → rich-text}/src/embed.d.ts +1 -1
- package/dist/types/{body → rich-text}/src/labels/ja.d.ts +2 -2
- package/dist/types/{body → rich-text}/src/profile.d.ts +1 -1
- package/dist/types/{model → schema}/src/audience.d.ts +11 -11
- package/dist/types/schema/src/brand.d.ts +5 -0
- package/dist/types/{model → schema}/src/capabilities.d.ts +5 -5
- package/dist/types/{model → schema}/src/changes.d.ts +6 -6
- package/dist/types/{model → schema}/src/check.d.ts +2 -2
- package/dist/types/{model/src/model.d.ts → schema/src/collection.d.ts} +25 -23
- package/dist/types/{platform/src/defaultModel.d.ts → schema/src/defaultSchema.d.ts} +4 -3
- package/dist/types/{model/src/asset.d.ts → schema/src/file.d.ts} +16 -16
- package/dist/types/{model → schema}/src/image.d.ts +3 -3
- package/dist/types/{model → schema}/src/index.d.ts +11 -10
- package/dist/types/{model → schema}/src/input.d.ts +3 -3
- package/dist/types/{model → schema}/src/integrity.d.ts +1 -1
- package/dist/types/{model → schema}/src/labels/en.d.ts +8 -7
- package/dist/types/{model → schema}/src/labels/ja.d.ts +9 -8
- package/dist/types/schema/src/legacy.d.ts +2 -0
- package/dist/types/{model → schema}/src/media.d.ts +1 -1
- package/dist/types/{model → schema}/src/mediaUrl.d.ts +5 -5
- package/dist/types/{model → schema}/src/page.d.ts +2 -2
- package/dist/types/{model → schema}/src/problems.d.ts +14 -13
- package/dist/types/{model → schema}/src/refs.d.ts +1 -1
- package/dist/types/{model → schema}/src/rules.d.ts +2 -2
- package/dist/types/{model → schema}/src/schema.d.ts +10 -10
- package/dist/types/{model → schema}/src/selfOps.d.ts +1 -1
- package/dist/types/schema/src/typesSource.d.ts +16 -0
- package/dist/types/{model → schema}/src/values.d.ts +2 -2
- package/dist/types/sdk/src/analytics.d.ts +2 -2
- package/dist/types/sdk/src/app.d.ts +44 -16
- package/dist/types/sdk/src/bridge.d.ts +12 -12
- package/dist/types/sdk/src/customers.d.ts +14 -20
- package/dist/types/sdk/src/delegation.d.ts +39 -0
- package/dist/types/sdk/src/delivery/client.d.ts +11 -10
- package/dist/types/sdk/src/delivery/fields.d.ts +2 -2
- package/dist/types/sdk/src/delivery/index.d.ts +1 -1
- package/dist/types/sdk/src/delivery/media.d.ts +6 -6
- package/dist/types/sdk/src/delivery/query.d.ts +1 -1
- package/dist/types/sdk/src/delivery/schema.d.ts +4 -4
- package/dist/types/sdk/src/delivery/values.d.ts +6 -6
- package/dist/types/sdk/src/delivery.d.ts +2 -2
- package/dist/types/sdk/src/i18n.d.ts +11 -11
- package/dist/types/sdk/src/integrations.d.ts +10 -10
- package/dist/types/sdk/src/{body.d.ts → rich-text.d.ts} +2 -2
- package/dist/types/sdk/src/schema.d.ts +5 -21
- package/dist/types/sdk/src/site.d.ts +1 -1
- package/dist/types/sdk/src/types.d.ts +21 -0
- package/dist/{schema-BPHL7Qr-.js → types-B77qvqPJ.js} +5 -4
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/{typesSource-bO0jFw1I.js → typesSource-CWybQYus.js} +58 -12
- package/package.json +12 -12
- package/dist/apps-9u4XMi7E.js +0 -114
- package/dist/body.d.ts +0 -1
- package/dist/embed-R-OvDYAw.js +0 -90
- package/dist/model.d.ts +0 -1
- package/dist/model.js +0 -345
- package/dist/types/analytics/src/index.d.ts +0 -5
- package/dist/types/analytics/src/schedule.d.ts +0 -2
- package/dist/types/analytics/src/shared.d.ts +0 -21
- package/dist/types/analytics/src/source.d.ts +0 -19
- package/dist/types/analytics/src/store.d.ts +0 -24
- package/dist/types/cms-contract/src/urlLabel.d.ts +0 -13
- package/dist/types/model/src/brand.d.ts +0 -25
- package/dist/types/model/src/legacy.d.ts +0 -2
- package/dist/types/model/src/typesSource.d.ts +0 -8
- package/dist/types/sdk/src/model.d.ts +0 -5
- /package/dist/types/{cms-contract → contract}/src/appProblems.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/consents.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/customerLabels.d.ts +0 -0
- /package/dist/types/{analytics → contract}/src/day.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/functionLabels.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/permissionLabels.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/siteArtifact.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/siteDeclaration.d.ts +0 -0
- /package/dist/types/{analytics/src/view.d.ts → contract/src/viewEvent.d.ts} +0 -0
- /package/dist/types/{cms-contract → contract}/src/views.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/webhookLabels.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/components.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/derive.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/description.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/href.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/html.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/index.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/inline.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/labels/en.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/library.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/markdown.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/normalize.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/problems.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/render.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/schema.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/standard.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/types.d.ts +0 -0
- /package/dist/types/{model → schema}/src/contact.d.ts +0 -0
- /package/dist/types/{model → schema}/src/json.d.ts +0 -0
- /package/dist/types/{model → schema}/src/screens.d.ts +0 -0
- /package/dist/types/{model → schema}/src/time.d.ts +0 -0
|
@@ -0,0 +1,703 @@
|
|
|
1
|
+
/** Admin 画面の API の経路の頭(画面はこの外のパス) */
|
|
2
|
+
export declare const OPERATOR_API_PREFIX = "/api";
|
|
3
|
+
/** 確かめの段 */
|
|
4
|
+
export type OperatorLevel = 'read' | 'reversible' | 'heavy' | 'irreversible';
|
|
5
|
+
/** Admin 画面の画面 */
|
|
6
|
+
export type OperatorScreen = 'overview' | 'organizations' | 'organization' | 'projects' | 'project' | 'hosting' | 'apps' | 'support' | 'monitoring' | 'maintenance' | 'history' | 'account';
|
|
7
|
+
/** プロジェクトの詳細のタブ */
|
|
8
|
+
export type OperatorProjectTab = 'overview' | 'environments' | 'backups' | 'hosts' | 'access' | 'trial';
|
|
9
|
+
/** 表示の条件(trial はお試しのプロジェクトだけ、legacy は旧い形のプロジェクトだけ、notLive は本番以外の環境を選んでいるときだけ) */
|
|
10
|
+
export type OperatorWhen = 'trial' | 'legacy' | 'notLive';
|
|
11
|
+
/** 操作の行 */
|
|
12
|
+
export type OperatorOperation = Readonly<{
|
|
13
|
+
id: string;
|
|
14
|
+
cli?: string;
|
|
15
|
+
method?: 'GET' | 'POST';
|
|
16
|
+
path?: string;
|
|
17
|
+
level: OperatorLevel;
|
|
18
|
+
secret?: boolean;
|
|
19
|
+
place: Readonly<{
|
|
20
|
+
screen: OperatorScreen;
|
|
21
|
+
tab?: OperatorProjectTab;
|
|
22
|
+
}>;
|
|
23
|
+
when?: OperatorWhen;
|
|
24
|
+
/** 選んだ環境を ?environment= で渡す */
|
|
25
|
+
environment?: boolean;
|
|
26
|
+
/** 先にテスト実行(dryRun: true)を流し、結果を見てから実行する */
|
|
27
|
+
dryRun?: boolean;
|
|
28
|
+
available: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
/** 操作の全部 */
|
|
31
|
+
export declare const OPERATOR_OPERATIONS: readonly [{
|
|
32
|
+
readonly id: "health";
|
|
33
|
+
readonly cli: "health";
|
|
34
|
+
readonly method: "GET";
|
|
35
|
+
readonly path: "/health";
|
|
36
|
+
readonly level: "read";
|
|
37
|
+
readonly place: {
|
|
38
|
+
readonly screen: "monitoring";
|
|
39
|
+
};
|
|
40
|
+
readonly available: true;
|
|
41
|
+
}, {
|
|
42
|
+
readonly id: "secrets";
|
|
43
|
+
readonly cli: "secrets";
|
|
44
|
+
readonly method: "GET";
|
|
45
|
+
readonly path: "/secrets";
|
|
46
|
+
readonly level: "read";
|
|
47
|
+
readonly place: {
|
|
48
|
+
readonly screen: "maintenance";
|
|
49
|
+
};
|
|
50
|
+
readonly available: true;
|
|
51
|
+
}, {
|
|
52
|
+
readonly id: "migrate";
|
|
53
|
+
readonly cli: "migrate";
|
|
54
|
+
readonly method: "POST";
|
|
55
|
+
readonly path: "/migrate";
|
|
56
|
+
readonly level: "reversible";
|
|
57
|
+
readonly place: {
|
|
58
|
+
readonly screen: "maintenance";
|
|
59
|
+
};
|
|
60
|
+
readonly available: true;
|
|
61
|
+
}, {
|
|
62
|
+
readonly id: "session";
|
|
63
|
+
readonly cli: "session";
|
|
64
|
+
readonly method: "GET";
|
|
65
|
+
readonly path: "/session";
|
|
66
|
+
readonly level: "read";
|
|
67
|
+
readonly place: {
|
|
68
|
+
readonly screen: "account";
|
|
69
|
+
};
|
|
70
|
+
readonly available: true;
|
|
71
|
+
}, {
|
|
72
|
+
readonly id: "paused";
|
|
73
|
+
readonly cli: "paused";
|
|
74
|
+
readonly method: "GET";
|
|
75
|
+
readonly path: "/paused";
|
|
76
|
+
readonly level: "read";
|
|
77
|
+
readonly place: {
|
|
78
|
+
readonly screen: "maintenance";
|
|
79
|
+
};
|
|
80
|
+
readonly available: true;
|
|
81
|
+
}, {
|
|
82
|
+
readonly id: "pause";
|
|
83
|
+
readonly cli: "pause";
|
|
84
|
+
readonly method: "POST";
|
|
85
|
+
readonly path: "/pause";
|
|
86
|
+
readonly level: "heavy";
|
|
87
|
+
readonly place: {
|
|
88
|
+
readonly screen: "maintenance";
|
|
89
|
+
};
|
|
90
|
+
readonly available: true;
|
|
91
|
+
}, {
|
|
92
|
+
readonly id: "resume";
|
|
93
|
+
readonly cli: "resume";
|
|
94
|
+
readonly method: "POST";
|
|
95
|
+
readonly path: "/resume";
|
|
96
|
+
readonly level: "reversible";
|
|
97
|
+
readonly place: {
|
|
98
|
+
readonly screen: "maintenance";
|
|
99
|
+
};
|
|
100
|
+
readonly available: true;
|
|
101
|
+
}, {
|
|
102
|
+
readonly id: "projects";
|
|
103
|
+
readonly cli: "projects";
|
|
104
|
+
readonly method: "GET";
|
|
105
|
+
readonly path: "/projects";
|
|
106
|
+
readonly level: "read";
|
|
107
|
+
readonly place: {
|
|
108
|
+
readonly screen: "projects";
|
|
109
|
+
};
|
|
110
|
+
readonly available: true;
|
|
111
|
+
}, {
|
|
112
|
+
readonly id: "create";
|
|
113
|
+
readonly cli: "create";
|
|
114
|
+
readonly method: "POST";
|
|
115
|
+
readonly path: "/projects";
|
|
116
|
+
readonly level: "reversible";
|
|
117
|
+
readonly place: {
|
|
118
|
+
readonly screen: "projects";
|
|
119
|
+
};
|
|
120
|
+
readonly available: true;
|
|
121
|
+
}, {
|
|
122
|
+
readonly id: "hosting";
|
|
123
|
+
readonly cli: "hosting";
|
|
124
|
+
readonly method: "POST";
|
|
125
|
+
readonly path: "/hosting";
|
|
126
|
+
readonly level: "heavy";
|
|
127
|
+
readonly place: {
|
|
128
|
+
readonly screen: "hosting";
|
|
129
|
+
};
|
|
130
|
+
readonly available: true;
|
|
131
|
+
}, {
|
|
132
|
+
readonly id: "history";
|
|
133
|
+
readonly cli: "history";
|
|
134
|
+
readonly method: "GET";
|
|
135
|
+
readonly path: "/history";
|
|
136
|
+
readonly level: "read";
|
|
137
|
+
readonly place: {
|
|
138
|
+
readonly screen: "history";
|
|
139
|
+
};
|
|
140
|
+
readonly available: true;
|
|
141
|
+
}, {
|
|
142
|
+
readonly id: "standard-apps";
|
|
143
|
+
readonly cli: "standard-apps";
|
|
144
|
+
readonly method: "GET";
|
|
145
|
+
readonly path: "/standard-apps";
|
|
146
|
+
readonly level: "read";
|
|
147
|
+
readonly place: {
|
|
148
|
+
readonly screen: "apps";
|
|
149
|
+
};
|
|
150
|
+
readonly available: true;
|
|
151
|
+
}, {
|
|
152
|
+
readonly id: "standard-app-set";
|
|
153
|
+
readonly cli: "standard-app-set";
|
|
154
|
+
readonly method: "POST";
|
|
155
|
+
readonly path: "/standard-apps/{app}";
|
|
156
|
+
readonly level: "heavy";
|
|
157
|
+
readonly place: {
|
|
158
|
+
readonly screen: "apps";
|
|
159
|
+
};
|
|
160
|
+
readonly available: true;
|
|
161
|
+
}, {
|
|
162
|
+
readonly id: "standard-app-remove";
|
|
163
|
+
readonly cli: "standard-app-remove";
|
|
164
|
+
readonly method: "POST";
|
|
165
|
+
readonly path: "/standard-apps/{app}/remove";
|
|
166
|
+
readonly level: "heavy";
|
|
167
|
+
readonly place: {
|
|
168
|
+
readonly screen: "apps";
|
|
169
|
+
};
|
|
170
|
+
readonly available: true;
|
|
171
|
+
}, {
|
|
172
|
+
readonly id: "apps";
|
|
173
|
+
readonly cli: "apps";
|
|
174
|
+
readonly method: "GET";
|
|
175
|
+
readonly path: "/apps";
|
|
176
|
+
readonly level: "read";
|
|
177
|
+
readonly place: {
|
|
178
|
+
readonly screen: "apps";
|
|
179
|
+
};
|
|
180
|
+
readonly available: true;
|
|
181
|
+
}, {
|
|
182
|
+
readonly id: "app-register";
|
|
183
|
+
readonly cli: "app-register";
|
|
184
|
+
readonly method: "POST";
|
|
185
|
+
readonly path: "/apps/{app}";
|
|
186
|
+
readonly level: "heavy";
|
|
187
|
+
readonly place: {
|
|
188
|
+
readonly screen: "apps";
|
|
189
|
+
};
|
|
190
|
+
readonly available: true;
|
|
191
|
+
}, {
|
|
192
|
+
readonly id: "app-publish";
|
|
193
|
+
readonly cli: "app-publish";
|
|
194
|
+
readonly method: "POST";
|
|
195
|
+
readonly path: "/apps/{app}/versions";
|
|
196
|
+
readonly level: "heavy";
|
|
197
|
+
readonly place: {
|
|
198
|
+
readonly screen: "apps";
|
|
199
|
+
};
|
|
200
|
+
readonly available: true;
|
|
201
|
+
}, {
|
|
202
|
+
readonly id: "app-keys";
|
|
203
|
+
readonly cli: "app-keys";
|
|
204
|
+
readonly method: "POST";
|
|
205
|
+
readonly path: "/apps/{app}/keys";
|
|
206
|
+
readonly level: "heavy";
|
|
207
|
+
readonly place: {
|
|
208
|
+
readonly screen: "apps";
|
|
209
|
+
};
|
|
210
|
+
readonly available: true;
|
|
211
|
+
}, {
|
|
212
|
+
readonly id: "registry-backups";
|
|
213
|
+
readonly cli: "backups";
|
|
214
|
+
readonly method: "GET";
|
|
215
|
+
readonly path: "/backups?registry";
|
|
216
|
+
readonly level: "read";
|
|
217
|
+
readonly place: {
|
|
218
|
+
readonly screen: "maintenance";
|
|
219
|
+
};
|
|
220
|
+
readonly available: true;
|
|
221
|
+
}, {
|
|
222
|
+
readonly id: "registry-backup";
|
|
223
|
+
readonly cli: "backup";
|
|
224
|
+
readonly method: "POST";
|
|
225
|
+
readonly path: "/backups/registry";
|
|
226
|
+
readonly level: "reversible";
|
|
227
|
+
readonly place: {
|
|
228
|
+
readonly screen: "maintenance";
|
|
229
|
+
};
|
|
230
|
+
readonly available: true;
|
|
231
|
+
}, {
|
|
232
|
+
readonly id: "registry-download";
|
|
233
|
+
readonly cli: "backup:download";
|
|
234
|
+
readonly method: "GET";
|
|
235
|
+
readonly path: "/backups/download?registry";
|
|
236
|
+
readonly level: "read";
|
|
237
|
+
readonly place: {
|
|
238
|
+
readonly screen: "maintenance";
|
|
239
|
+
};
|
|
240
|
+
readonly available: true;
|
|
241
|
+
}, {
|
|
242
|
+
readonly id: "project";
|
|
243
|
+
readonly cli: "project";
|
|
244
|
+
readonly method: "GET";
|
|
245
|
+
readonly path: "/projects/{project}";
|
|
246
|
+
readonly level: "read";
|
|
247
|
+
readonly place: {
|
|
248
|
+
readonly screen: "project";
|
|
249
|
+
readonly tab: OperatorProjectTab;
|
|
250
|
+
};
|
|
251
|
+
readonly available: true;
|
|
252
|
+
}, {
|
|
253
|
+
readonly id: "sites";
|
|
254
|
+
readonly method: "GET";
|
|
255
|
+
readonly path: "/projects/{project}/sites";
|
|
256
|
+
readonly level: "read";
|
|
257
|
+
readonly place: {
|
|
258
|
+
readonly screen: "project";
|
|
259
|
+
readonly tab: OperatorProjectTab;
|
|
260
|
+
};
|
|
261
|
+
readonly available: true;
|
|
262
|
+
}, {
|
|
263
|
+
readonly id: "project-history";
|
|
264
|
+
readonly cli: "history";
|
|
265
|
+
readonly method: "GET";
|
|
266
|
+
readonly path: "/history?project={project}";
|
|
267
|
+
readonly level: "read";
|
|
268
|
+
readonly place: {
|
|
269
|
+
readonly screen: "project";
|
|
270
|
+
readonly tab: OperatorProjectTab;
|
|
271
|
+
};
|
|
272
|
+
readonly available: true;
|
|
273
|
+
}, {
|
|
274
|
+
readonly id: "delete-project";
|
|
275
|
+
readonly cli: "delete-project";
|
|
276
|
+
readonly method: "POST";
|
|
277
|
+
readonly path: "/projects/{project}/delete-project";
|
|
278
|
+
readonly level: "irreversible";
|
|
279
|
+
readonly place: {
|
|
280
|
+
readonly screen: "project";
|
|
281
|
+
readonly tab: OperatorProjectTab;
|
|
282
|
+
};
|
|
283
|
+
readonly available: true;
|
|
284
|
+
}, {
|
|
285
|
+
readonly id: "delete-trial";
|
|
286
|
+
readonly cli: "delete-trial";
|
|
287
|
+
readonly method: "POST";
|
|
288
|
+
readonly path: "/projects/{project}/delete-trial";
|
|
289
|
+
readonly level: "irreversible";
|
|
290
|
+
readonly place: {
|
|
291
|
+
readonly screen: "project";
|
|
292
|
+
readonly tab: OperatorProjectTab;
|
|
293
|
+
};
|
|
294
|
+
readonly when: "trial";
|
|
295
|
+
readonly available: true;
|
|
296
|
+
}, {
|
|
297
|
+
readonly id: "create-env";
|
|
298
|
+
readonly cli: "create-env";
|
|
299
|
+
readonly method: "POST";
|
|
300
|
+
readonly path: "/projects/{project}/environments";
|
|
301
|
+
readonly level: "reversible";
|
|
302
|
+
readonly place: {
|
|
303
|
+
readonly screen: "project";
|
|
304
|
+
readonly tab: OperatorProjectTab;
|
|
305
|
+
};
|
|
306
|
+
readonly available: true;
|
|
307
|
+
}, {
|
|
308
|
+
readonly id: "copy-env";
|
|
309
|
+
readonly cli: "copy-env";
|
|
310
|
+
readonly method: "POST";
|
|
311
|
+
readonly path: "/projects/{project}/copy-environment";
|
|
312
|
+
readonly level: "heavy";
|
|
313
|
+
readonly place: {
|
|
314
|
+
readonly screen: "project";
|
|
315
|
+
readonly tab: OperatorProjectTab;
|
|
316
|
+
};
|
|
317
|
+
readonly available: true;
|
|
318
|
+
}, {
|
|
319
|
+
readonly id: "delete-env";
|
|
320
|
+
readonly cli: "delete-env";
|
|
321
|
+
readonly method: "POST";
|
|
322
|
+
readonly path: "/projects/{project}/delete-environment";
|
|
323
|
+
readonly level: "irreversible";
|
|
324
|
+
readonly place: {
|
|
325
|
+
readonly screen: "project";
|
|
326
|
+
readonly tab: OperatorProjectTab;
|
|
327
|
+
};
|
|
328
|
+
readonly when: "notLive";
|
|
329
|
+
readonly available: true;
|
|
330
|
+
}, {
|
|
331
|
+
readonly id: "freeze";
|
|
332
|
+
readonly cli: "freeze";
|
|
333
|
+
readonly method: "POST";
|
|
334
|
+
readonly path: "/projects/{project}/freeze";
|
|
335
|
+
readonly level: "heavy";
|
|
336
|
+
readonly place: {
|
|
337
|
+
readonly screen: "project";
|
|
338
|
+
readonly tab: OperatorProjectTab;
|
|
339
|
+
};
|
|
340
|
+
readonly available: true;
|
|
341
|
+
}, {
|
|
342
|
+
readonly id: "unfreeze";
|
|
343
|
+
readonly cli: "unfreeze";
|
|
344
|
+
readonly method: "POST";
|
|
345
|
+
readonly path: "/projects/{project}/unfreeze";
|
|
346
|
+
readonly level: "reversible";
|
|
347
|
+
readonly place: {
|
|
348
|
+
readonly screen: "project";
|
|
349
|
+
readonly tab: OperatorProjectTab;
|
|
350
|
+
};
|
|
351
|
+
readonly available: true;
|
|
352
|
+
}, {
|
|
353
|
+
readonly id: "promote-plan";
|
|
354
|
+
readonly cli: "promote-plan";
|
|
355
|
+
readonly method: "POST";
|
|
356
|
+
readonly path: "/projects/{project}/promote-plan";
|
|
357
|
+
readonly level: "read";
|
|
358
|
+
readonly place: {
|
|
359
|
+
readonly screen: "project";
|
|
360
|
+
readonly tab: OperatorProjectTab;
|
|
361
|
+
};
|
|
362
|
+
readonly when: "notLive";
|
|
363
|
+
readonly available: true;
|
|
364
|
+
}, {
|
|
365
|
+
readonly id: "promote-commit";
|
|
366
|
+
readonly cli: "promote-commit";
|
|
367
|
+
readonly method: "POST";
|
|
368
|
+
readonly path: "/projects/{project}/promote-commit";
|
|
369
|
+
readonly level: "heavy";
|
|
370
|
+
readonly place: {
|
|
371
|
+
readonly screen: "project";
|
|
372
|
+
readonly tab: OperatorProjectTab;
|
|
373
|
+
};
|
|
374
|
+
readonly when: "notLive";
|
|
375
|
+
readonly available: true;
|
|
376
|
+
}, {
|
|
377
|
+
readonly id: "schema-plan";
|
|
378
|
+
readonly cli: "schema-plan";
|
|
379
|
+
readonly method: "POST";
|
|
380
|
+
readonly path: "/projects/{project}/schema-plan";
|
|
381
|
+
readonly level: "read";
|
|
382
|
+
readonly place: {
|
|
383
|
+
readonly screen: "project";
|
|
384
|
+
readonly tab: OperatorProjectTab;
|
|
385
|
+
};
|
|
386
|
+
readonly when: "notLive";
|
|
387
|
+
readonly available: true;
|
|
388
|
+
}, {
|
|
389
|
+
readonly id: "schema-commit";
|
|
390
|
+
readonly cli: "schema-commit";
|
|
391
|
+
readonly method: "POST";
|
|
392
|
+
readonly path: "/projects/{project}/schema-commit";
|
|
393
|
+
readonly level: "heavy";
|
|
394
|
+
readonly place: {
|
|
395
|
+
readonly screen: "project";
|
|
396
|
+
readonly tab: OperatorProjectTab;
|
|
397
|
+
};
|
|
398
|
+
readonly when: "notLive";
|
|
399
|
+
readonly available: true;
|
|
400
|
+
}, {
|
|
401
|
+
readonly id: "prune";
|
|
402
|
+
readonly cli: "prune";
|
|
403
|
+
readonly method: "POST";
|
|
404
|
+
readonly path: "/projects/{project}/prune";
|
|
405
|
+
readonly level: "irreversible";
|
|
406
|
+
readonly place: {
|
|
407
|
+
readonly screen: "project";
|
|
408
|
+
readonly tab: OperatorProjectTab;
|
|
409
|
+
};
|
|
410
|
+
readonly environment: true;
|
|
411
|
+
readonly dryRun: true;
|
|
412
|
+
readonly available: true;
|
|
413
|
+
}, {
|
|
414
|
+
readonly id: "account-moves";
|
|
415
|
+
readonly cli: "account-moves";
|
|
416
|
+
readonly method: "POST";
|
|
417
|
+
readonly path: "/projects/{project}/account-moves";
|
|
418
|
+
readonly level: "irreversible";
|
|
419
|
+
readonly place: {
|
|
420
|
+
readonly screen: "project";
|
|
421
|
+
readonly tab: OperatorProjectTab;
|
|
422
|
+
};
|
|
423
|
+
readonly environment: true;
|
|
424
|
+
readonly dryRun: true;
|
|
425
|
+
readonly available: true;
|
|
426
|
+
}, {
|
|
427
|
+
readonly id: "installation-moves";
|
|
428
|
+
readonly cli: "installation-moves";
|
|
429
|
+
readonly method: "POST";
|
|
430
|
+
readonly path: "/projects/{project}/installation-moves";
|
|
431
|
+
readonly level: "irreversible";
|
|
432
|
+
readonly place: {
|
|
433
|
+
readonly screen: "project";
|
|
434
|
+
readonly tab: OperatorProjectTab;
|
|
435
|
+
};
|
|
436
|
+
readonly environment: true;
|
|
437
|
+
readonly dryRun: true;
|
|
438
|
+
readonly available: true;
|
|
439
|
+
}, {
|
|
440
|
+
readonly id: "standard-app-moves";
|
|
441
|
+
readonly cli: "standard-app-moves";
|
|
442
|
+
readonly method: "POST";
|
|
443
|
+
readonly path: "/projects/{project}/standard-app-moves";
|
|
444
|
+
readonly level: "irreversible";
|
|
445
|
+
readonly place: {
|
|
446
|
+
readonly screen: "project";
|
|
447
|
+
readonly tab: OperatorProjectTab;
|
|
448
|
+
};
|
|
449
|
+
readonly environment: true;
|
|
450
|
+
readonly dryRun: true;
|
|
451
|
+
readonly available: true;
|
|
452
|
+
}, {
|
|
453
|
+
readonly id: "backups";
|
|
454
|
+
readonly cli: "backups";
|
|
455
|
+
readonly method: "GET";
|
|
456
|
+
readonly path: "/backups?project={project}";
|
|
457
|
+
readonly level: "read";
|
|
458
|
+
readonly place: {
|
|
459
|
+
readonly screen: "project";
|
|
460
|
+
readonly tab: OperatorProjectTab;
|
|
461
|
+
};
|
|
462
|
+
readonly environment: true;
|
|
463
|
+
readonly available: true;
|
|
464
|
+
}, {
|
|
465
|
+
readonly id: "download";
|
|
466
|
+
readonly cli: "backup:download";
|
|
467
|
+
readonly method: "GET";
|
|
468
|
+
readonly path: "/backups/download?project={project}";
|
|
469
|
+
readonly level: "read";
|
|
470
|
+
readonly place: {
|
|
471
|
+
readonly screen: "project";
|
|
472
|
+
readonly tab: OperatorProjectTab;
|
|
473
|
+
};
|
|
474
|
+
readonly environment: true;
|
|
475
|
+
readonly available: true;
|
|
476
|
+
}, {
|
|
477
|
+
readonly id: "backup";
|
|
478
|
+
readonly cli: "backup";
|
|
479
|
+
readonly method: "POST";
|
|
480
|
+
readonly path: "/projects/{project}/backup";
|
|
481
|
+
readonly level: "reversible";
|
|
482
|
+
readonly place: {
|
|
483
|
+
readonly screen: "project";
|
|
484
|
+
readonly tab: OperatorProjectTab;
|
|
485
|
+
};
|
|
486
|
+
readonly environment: true;
|
|
487
|
+
readonly available: true;
|
|
488
|
+
}, {
|
|
489
|
+
readonly id: "restore";
|
|
490
|
+
readonly cli: "restore";
|
|
491
|
+
readonly method: "POST";
|
|
492
|
+
readonly path: "/projects/{project}/restore";
|
|
493
|
+
readonly level: "irreversible";
|
|
494
|
+
readonly place: {
|
|
495
|
+
readonly screen: "project";
|
|
496
|
+
readonly tab: OperatorProjectTab;
|
|
497
|
+
};
|
|
498
|
+
readonly environment: true;
|
|
499
|
+
readonly dryRun: true;
|
|
500
|
+
readonly available: true;
|
|
501
|
+
}, {
|
|
502
|
+
readonly id: "import";
|
|
503
|
+
readonly cli: "import";
|
|
504
|
+
readonly method: "POST";
|
|
505
|
+
readonly path: "/projects/{project}/import";
|
|
506
|
+
readonly level: "irreversible";
|
|
507
|
+
readonly place: {
|
|
508
|
+
readonly screen: "project";
|
|
509
|
+
readonly tab: OperatorProjectTab;
|
|
510
|
+
};
|
|
511
|
+
readonly environment: true;
|
|
512
|
+
readonly dryRun: true;
|
|
513
|
+
readonly available: true;
|
|
514
|
+
}, {
|
|
515
|
+
readonly id: "switch-host";
|
|
516
|
+
readonly cli: "switch-host";
|
|
517
|
+
readonly method: "POST";
|
|
518
|
+
readonly path: "/projects/{project}/hosts";
|
|
519
|
+
readonly level: "heavy";
|
|
520
|
+
readonly place: {
|
|
521
|
+
readonly screen: "project";
|
|
522
|
+
readonly tab: OperatorProjectTab;
|
|
523
|
+
};
|
|
524
|
+
readonly available: true;
|
|
525
|
+
}, {
|
|
526
|
+
readonly id: "set-host";
|
|
527
|
+
readonly cli: "set-host";
|
|
528
|
+
readonly method: "POST";
|
|
529
|
+
readonly path: "/projects/{project}/hosts";
|
|
530
|
+
readonly level: "heavy";
|
|
531
|
+
readonly place: {
|
|
532
|
+
readonly screen: "project";
|
|
533
|
+
readonly tab: OperatorProjectTab;
|
|
534
|
+
};
|
|
535
|
+
readonly available: true;
|
|
536
|
+
}, {
|
|
537
|
+
readonly id: "remove-alias";
|
|
538
|
+
readonly cli: "remove-alias";
|
|
539
|
+
readonly method: "POST";
|
|
540
|
+
readonly path: "/projects/{project}/hosts";
|
|
541
|
+
readonly level: "heavy";
|
|
542
|
+
readonly place: {
|
|
543
|
+
readonly screen: "project";
|
|
544
|
+
readonly tab: OperatorProjectTab;
|
|
545
|
+
};
|
|
546
|
+
readonly available: true;
|
|
547
|
+
}, {
|
|
548
|
+
readonly id: "emergency";
|
|
549
|
+
readonly cli: "emergency";
|
|
550
|
+
readonly method: "POST";
|
|
551
|
+
readonly path: "/projects/{project}/emergency";
|
|
552
|
+
readonly level: "heavy";
|
|
553
|
+
readonly place: {
|
|
554
|
+
readonly screen: "project";
|
|
555
|
+
readonly tab: OperatorProjectTab;
|
|
556
|
+
};
|
|
557
|
+
readonly available: true;
|
|
558
|
+
}, {
|
|
559
|
+
readonly id: "revoke-grants";
|
|
560
|
+
readonly cli: "revoke-grants";
|
|
561
|
+
readonly method: "POST";
|
|
562
|
+
readonly path: "/projects/{project}/revoke-grants";
|
|
563
|
+
readonly level: "reversible";
|
|
564
|
+
readonly place: {
|
|
565
|
+
readonly screen: "project";
|
|
566
|
+
readonly tab: OperatorProjectTab;
|
|
567
|
+
};
|
|
568
|
+
readonly environment: true;
|
|
569
|
+
readonly available: true;
|
|
570
|
+
}, {
|
|
571
|
+
readonly id: "api-key-create";
|
|
572
|
+
readonly cli: "api-key-create";
|
|
573
|
+
readonly method: "POST";
|
|
574
|
+
readonly path: "/projects/{project}/api-key-create";
|
|
575
|
+
readonly level: "heavy";
|
|
576
|
+
readonly secret: true;
|
|
577
|
+
readonly place: {
|
|
578
|
+
readonly screen: "project";
|
|
579
|
+
readonly tab: OperatorProjectTab;
|
|
580
|
+
};
|
|
581
|
+
readonly available: true;
|
|
582
|
+
}, {
|
|
583
|
+
readonly id: "test-integration";
|
|
584
|
+
readonly cli: "test-integration";
|
|
585
|
+
readonly method: "POST";
|
|
586
|
+
readonly path: "/projects/{project}/integrations/{registration}/test";
|
|
587
|
+
readonly level: "reversible";
|
|
588
|
+
readonly place: {
|
|
589
|
+
readonly screen: "project";
|
|
590
|
+
readonly tab: OperatorProjectTab;
|
|
591
|
+
};
|
|
592
|
+
readonly available: true;
|
|
593
|
+
}, {
|
|
594
|
+
readonly id: "trial-session";
|
|
595
|
+
readonly cli: "trial-session";
|
|
596
|
+
readonly method: "POST";
|
|
597
|
+
readonly path: "/projects/{project}/trial-session";
|
|
598
|
+
readonly level: "reversible";
|
|
599
|
+
readonly secret: true;
|
|
600
|
+
readonly place: {
|
|
601
|
+
readonly screen: "project";
|
|
602
|
+
readonly tab: OperatorProjectTab;
|
|
603
|
+
};
|
|
604
|
+
readonly when: "trial";
|
|
605
|
+
readonly environment: true;
|
|
606
|
+
readonly available: true;
|
|
607
|
+
}, {
|
|
608
|
+
readonly id: "organization-create";
|
|
609
|
+
readonly level: "reversible";
|
|
610
|
+
readonly place: {
|
|
611
|
+
readonly screen: "organizations";
|
|
612
|
+
};
|
|
613
|
+
readonly available: false;
|
|
614
|
+
}, {
|
|
615
|
+
readonly id: "organization-approve";
|
|
616
|
+
readonly level: "reversible";
|
|
617
|
+
readonly place: {
|
|
618
|
+
readonly screen: "organizations";
|
|
619
|
+
};
|
|
620
|
+
readonly available: false;
|
|
621
|
+
}, {
|
|
622
|
+
readonly id: "organization-reject";
|
|
623
|
+
readonly level: "reversible";
|
|
624
|
+
readonly place: {
|
|
625
|
+
readonly screen: "organizations";
|
|
626
|
+
};
|
|
627
|
+
readonly available: false;
|
|
628
|
+
}, {
|
|
629
|
+
readonly id: "organization-suspend";
|
|
630
|
+
readonly level: "heavy";
|
|
631
|
+
readonly place: {
|
|
632
|
+
readonly screen: "organization";
|
|
633
|
+
};
|
|
634
|
+
readonly available: false;
|
|
635
|
+
}, {
|
|
636
|
+
readonly id: "account-search";
|
|
637
|
+
readonly level: "read";
|
|
638
|
+
readonly place: {
|
|
639
|
+
readonly screen: "overview";
|
|
640
|
+
};
|
|
641
|
+
readonly available: false;
|
|
642
|
+
}, {
|
|
643
|
+
readonly id: "app-verify";
|
|
644
|
+
readonly level: "reversible";
|
|
645
|
+
readonly place: {
|
|
646
|
+
readonly screen: "apps";
|
|
647
|
+
};
|
|
648
|
+
readonly available: false;
|
|
649
|
+
}, {
|
|
650
|
+
readonly id: "app-unverify";
|
|
651
|
+
readonly level: "reversible";
|
|
652
|
+
readonly place: {
|
|
653
|
+
readonly screen: "apps";
|
|
654
|
+
};
|
|
655
|
+
readonly available: false;
|
|
656
|
+
}, {
|
|
657
|
+
readonly id: "app-suspend";
|
|
658
|
+
readonly level: "heavy";
|
|
659
|
+
readonly place: {
|
|
660
|
+
readonly screen: "apps";
|
|
661
|
+
};
|
|
662
|
+
readonly available: false;
|
|
663
|
+
}, {
|
|
664
|
+
readonly id: "feature-flags";
|
|
665
|
+
readonly level: "reversible";
|
|
666
|
+
readonly place: {
|
|
667
|
+
readonly screen: "maintenance";
|
|
668
|
+
};
|
|
669
|
+
readonly available: false;
|
|
670
|
+
}, {
|
|
671
|
+
readonly id: "history-export";
|
|
672
|
+
readonly level: "read";
|
|
673
|
+
readonly place: {
|
|
674
|
+
readonly screen: "history";
|
|
675
|
+
};
|
|
676
|
+
readonly available: false;
|
|
677
|
+
}];
|
|
678
|
+
/** 操作の ID */
|
|
679
|
+
export type OperatorOperationId = (typeof OPERATOR_OPERATIONS)[number]['id'];
|
|
680
|
+
/** 本文に固定で足す値(ホスト名の操作の mode) */
|
|
681
|
+
export declare const OPERATOR_FIXED_BODY: Readonly<Partial<Record<OperatorOperationId, Readonly<Record<string, unknown>>>>>;
|
|
682
|
+
/** ホスティングするサイトの操作の段(purge はサイトの削除、stop と reattach は直近のログイン、ほかは確かめない) */
|
|
683
|
+
export declare const HOSTING_LEVELS: {
|
|
684
|
+
readonly stop: "heavy";
|
|
685
|
+
readonly resume: "reversible";
|
|
686
|
+
readonly reattach: "heavy";
|
|
687
|
+
readonly purge: "irreversible";
|
|
688
|
+
readonly hostname_request: "reversible";
|
|
689
|
+
readonly hostname_verify: "reversible";
|
|
690
|
+
readonly hostname_status: "read";
|
|
691
|
+
readonly hostname_remove: "heavy";
|
|
692
|
+
readonly trial_hostname: "reversible";
|
|
693
|
+
readonly ack: "read";
|
|
694
|
+
};
|
|
695
|
+
/** ID の操作 */
|
|
696
|
+
export declare const operatorOperation: (id: OperatorOperationId) => OperatorOperation;
|
|
697
|
+
/** 直近のログインを確かめる段か */
|
|
698
|
+
export declare const needsRecentLogin: (level: OperatorLevel) => boolean;
|
|
699
|
+
/**
|
|
700
|
+
* 変更の要求(POST、/api を外したパス)の段(表にない経路は null)
|
|
701
|
+
* - 同じ経路の操作(ホスト名の3つ)は同じ段。hosting は本文の action ごと(不明な action は heavy)
|
|
702
|
+
*/
|
|
703
|
+
export declare function levelOfRequest(pathname: string, body: Readonly<Record<string, unknown>> | null): OperatorLevel | null;
|