@tunasand/sdk 0.7.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +233 -88
- package/README.md +296 -273
- package/dist/analytics.js +657 -10
- package/dist/app.js +323 -96
- package/dist/apps-DIxAWBSZ.js +318 -0
- package/dist/astro-image.d.ts +1 -0
- package/dist/astro-image.js +33 -0
- package/dist/astro-server-Bwau8F6d.js +99 -0
- package/dist/astro-server.d.ts +1 -0
- package/dist/astro-server.js +1 -0
- package/dist/astro.d.ts +1 -0
- package/dist/astro.js +306 -0
- package/dist/bridge-Dv4NxGZ7.js +81 -0
- package/dist/bridge.js +2 -14
- package/dist/build-file-DNi0PHC5.js +31 -0
- package/dist/cli.js +6214 -9
- package/dist/{client-Derrexwr.js → client-C8STAw9T.js} +43 -24
- package/dist/code-N8pBUDbq.js +30 -0
- package/dist/code.d.ts +1 -0
- package/dist/code.js +1 -0
- package/dist/collection-nUz1RetA.js +264 -0
- package/dist/{declared-C_GvPiGF.js → declared-CE4a61qb.js} +124 -36
- package/dist/delivery.js +124 -132
- package/dist/dev-operations-Tutwi1On.js +46 -0
- package/dist/dev.js +9 -16
- package/dist/embeds-B-Dbn64k.js +29 -0
- package/dist/end-users.d.ts +1 -0
- package/dist/end-users.js +185 -0
- package/dist/{customers-C_vJY2_v.js → endUsers-DODfjnv1.js} +31 -38
- package/dist/{errorLabels-CPKiPabZ.js → errorLabels-aT2bnMsO.js} +593 -460
- package/dist/i18n.js +4 -4
- package/dist/ids-DmtIoqBX.js +109 -0
- package/dist/integrations.js +95 -49
- package/dist/{ja-C6lX0CeJ.js → ja-CrY_72Tn.js} +99 -54
- package/dist/{ja-C1HEWWTQ.js → ja-axQPxMJ-.js} +6 -6
- package/dist/operations-CIB99rIY.js +95 -0
- package/dist/operations.d.ts +1 -0
- package/dist/operations.js +1 -0
- package/dist/{page-E_cYgZx-.js → page-yo1cw1kW.js} +5 -5
- package/dist/preview.js +8 -1
- package/dist/{profile-D6t1QMQh.js → profile-DBsXLvvI.js} +52 -52
- package/dist/rich-text.d.ts +1 -0
- package/dist/{body.js → rich-text.js} +20 -21
- package/dist/schema-Dcg1ajnW.js +1267 -0
- package/dist/schema.js +324 -1
- package/dist/types/access/src/handoff.d.ts +22 -17
- package/dist/types/access/src/index.d.ts +2 -2
- package/dist/types/access/src/jws.d.ts +41 -0
- package/dist/types/access/src/jwt.d.ts +1 -1
- package/dist/types/access/src/oidc.d.ts +11 -3
- package/dist/types/access/src/signed.d.ts +0 -2
- package/dist/types/adapter-cloudflare/src/eventLog/viewSchema.d.ts +11 -0
- package/dist/types/contract/src/accountProfile.d.ts +7 -0
- package/dist/types/{cms-contract → contract}/src/apiKeys.d.ts +7 -3
- package/dist/types/contract/src/app.d.ts +38 -0
- package/dist/types/contract/src/appChannels.d.ts +114 -0
- package/dist/types/contract/src/appDefinition.d.ts +133 -0
- package/dist/types/{cms-contract → contract}/src/appDependencies.d.ts +91 -35
- package/dist/types/contract/src/appIdentities.d.ts +21 -0
- package/dist/types/contract/src/appInbound.d.ts +28 -0
- package/dist/types/contract/src/appMail.d.ts +106 -0
- package/dist/types/contract/src/appSecrets.d.ts +45 -0
- package/dist/types/contract/src/appServer.d.ts +501 -0
- package/dist/types/contract/src/approvalLabels.d.ts +26 -0
- package/dist/types/contract/src/approvals.d.ts +63 -0
- package/dist/types/contract/src/apps.d.ts +295 -0
- package/dist/types/contract/src/auditActions.d.ts +18 -0
- package/dist/types/contract/src/auditLabels.d.ts +223 -0
- package/dist/types/contract/src/authorize.d.ts +133 -0
- package/dist/types/{cms-contract → contract}/src/bridge.d.ts +39 -40
- package/dist/types/{cms-contract → contract}/src/consents.d.ts +32 -25
- package/dist/types/contract/src/deletion.d.ts +18 -0
- package/dist/types/contract/src/embeds.d.ts +105 -0
- package/dist/types/{cms-contract/src/customerLabels.d.ts → contract/src/endUserLabels.d.ts} +6 -9
- package/dist/types/contract/src/endUsers.d.ts +241 -0
- package/dist/types/{cms-contract → contract}/src/errorLabels.d.ts +76 -47
- package/dist/types/{cms-contract → contract}/src/errorLabelsEn.d.ts +52 -36
- package/dist/types/contract/src/errors.d.ts +117 -0
- package/dist/types/contract/src/eventSchemas.d.ts +70 -0
- package/dist/types/contract/src/eventTraces.d.ts +43 -0
- package/dist/types/{cms-contract → contract}/src/failureStatus.d.ts +16 -23
- package/dist/types/contract/src/fieldAccess.d.ts +45 -0
- package/dist/types/contract/src/fieldRules.d.ts +41 -0
- package/dist/types/{cms-contract/src/assets.d.ts → contract/src/files.d.ts} +5 -5
- package/dist/types/contract/src/formLabels.d.ts +3 -0
- package/dist/types/contract/src/forms.d.ts +4 -0
- package/dist/types/{cms-contract → contract}/src/functions.d.ts +3 -3
- package/dist/types/contract/src/grants.d.ts +26 -0
- package/dist/types/contract/src/headers.d.ts +5 -0
- package/dist/types/contract/src/hostingRpc.d.ts +149 -0
- package/dist/types/contract/src/hostnames.d.ts +30 -0
- package/dist/types/contract/src/identifiers.d.ts +148 -0
- package/dist/types/contract/src/ids.d.ts +112 -0
- package/dist/types/{cms-contract → contract}/src/import.d.ts +20 -19
- package/dist/types/contract/src/importLabels.d.ts +3 -0
- package/dist/types/contract/src/index.d.ts +92 -0
- package/dist/types/contract/src/integrationGraph.d.ts +83 -0
- package/dist/types/{cms-contract → contract}/src/issueLabels.d.ts +135 -99
- package/dist/types/{cms-contract → contract}/src/issueLabelsEn.d.ts +70 -52
- package/dist/types/contract/src/labels.d.ts +11 -0
- package/dist/types/contract/src/legacyAuditLabels.d.ts +10 -0
- package/dist/types/contract/src/livePeriods.d.ts +18 -0
- package/dist/types/contract/src/manage.d.ts +51 -0
- package/dist/types/contract/src/manageLabels.d.ts +11 -0
- package/dist/types/contract/src/manifestText.d.ts +66 -0
- package/dist/types/contract/src/mcpAuth.d.ts +139 -0
- package/dist/types/contract/src/mcpLabels.d.ts +5 -0
- package/dist/types/contract/src/messagePort.d.ts +208 -0
- package/dist/types/{cms-contract → contract}/src/migration.d.ts +3 -3
- package/dist/types/contract/src/notices.d.ts +38 -0
- package/dist/types/contract/src/operatorOperations.d.ts +640 -0
- package/dist/types/contract/src/operators.d.ts +33 -0
- package/dist/types/contract/src/outbound.d.ts +29 -0
- package/dist/types/contract/src/paths.d.ts +34 -0
- package/dist/types/contract/src/pending.d.ts +6 -0
- package/dist/types/{cms-contract → contract}/src/permissions.d.ts +9 -11
- package/dist/types/contract/src/perspective.d.ts +26 -0
- package/dist/types/contract/src/powers.d.ts +5 -0
- package/dist/types/contract/src/principal.d.ts +181 -0
- package/dist/types/{cms-contract → contract}/src/problems.d.ts +4 -4
- package/dist/types/contract/src/projectRole.d.ts +6 -0
- package/dist/types/contract/src/recordLabels.d.ts +6 -0
- package/dist/types/{cms-contract → contract}/src/roles.d.ts +10 -6
- package/dist/types/contract/src/ruleLabels.d.ts +16 -0
- package/dist/types/contract/src/ruleProblems.d.ts +16 -0
- package/dist/types/contract/src/schemaLabels.d.ts +8 -0
- package/dist/types/{cms-contract → contract}/src/settingProblems.d.ts +3 -3
- package/dist/types/{cms-contract → contract}/src/settings.d.ts +6 -8
- package/dist/types/contract/src/settingsLabels.d.ts +3 -0
- package/dist/types/{cms-contract → contract}/src/siteDeclaration.d.ts +7 -7
- package/dist/types/contract/src/siteIndex.d.ts +76 -0
- package/dist/types/contract/src/slugs.d.ts +6 -0
- package/dist/types/{cms-contract → contract}/src/transfer.d.ts +4 -4
- package/dist/types/contract/src/trial.d.ts +13 -0
- package/dist/types/contract/src/versions.d.ts +7 -0
- package/dist/types/{analytics/src/view.d.ts → contract/src/viewEvent.d.ts} +0 -9
- package/dist/types/contract/src/webhooks.d.ts +135 -0
- package/dist/types/contract/src/workflow.d.ts +43 -0
- package/dist/types/contract/src/workspaceItems.d.ts +87 -0
- package/dist/types/contract/src/workspacePaths.d.ts +4 -0
- package/dist/types/{body → rich-text}/src/declared.d.ts +2 -2
- package/dist/types/{body → rich-text}/src/embed.d.ts +1 -1
- package/dist/types/{body → rich-text}/src/html.d.ts +1 -1
- package/dist/types/{body → rich-text}/src/index.d.ts +8 -7
- package/dist/types/{body → rich-text}/src/labels/en.d.ts +1 -1
- package/dist/types/{body → rich-text}/src/labels/ja.d.ts +4 -4
- package/dist/types/{body → rich-text}/src/library.d.ts +1 -1
- package/dist/types/rich-text/src/media.d.ts +2 -0
- package/dist/types/{body → rich-text}/src/normalize.d.ts +1 -1
- package/dist/types/{body → rich-text}/src/problems.d.ts +5 -5
- package/dist/types/{body → rich-text}/src/profile.d.ts +11 -11
- package/dist/types/{body → rich-text}/src/render.d.ts +1 -1
- package/dist/types/{body → rich-text}/src/schema.d.ts +2 -2
- package/dist/types/{body → rich-text}/src/standard.d.ts +4 -4
- package/dist/types/{body → rich-text}/src/types.d.ts +2 -2
- package/dist/types/schema/src/audience.d.ts +36 -0
- package/dist/types/schema/src/brand.d.ts +5 -0
- package/dist/types/schema/src/capabilities.d.ts +19 -0
- package/dist/types/{model → schema}/src/changes.d.ts +9 -7
- package/dist/types/{model → schema}/src/check.d.ts +2 -2
- package/dist/types/{model/src/model.d.ts → schema/src/collection.d.ts} +150 -121
- package/dist/types/schema/src/defaultSchema.d.ts +15 -0
- package/dist/types/schema/src/fieldIds.d.ts +18 -0
- package/dist/types/{model/src/asset.d.ts → schema/src/file.d.ts} +36 -25
- package/dist/types/schema/src/fileRefs.d.ts +14 -0
- package/dist/types/schema/src/fileSignature.d.ts +20 -0
- package/dist/types/schema/src/filesCollection.d.ts +7 -0
- package/dist/types/schema/src/forms.d.ts +43 -0
- package/dist/types/{model → schema}/src/image.d.ts +3 -3
- package/dist/types/schema/src/imageMetadata.d.ts +9 -0
- package/dist/types/schema/src/index.d.ts +35 -0
- package/dist/types/{model → schema}/src/input.d.ts +3 -3
- package/dist/types/{model → schema}/src/integrity.d.ts +9 -8
- package/dist/types/schema/src/kinds.d.ts +26 -0
- package/dist/types/{model → schema}/src/labels/en.d.ts +93 -51
- package/dist/types/{model → schema}/src/labels/ja.d.ts +97 -52
- package/dist/types/schema/src/mediaUrl.d.ts +60 -0
- package/dist/types/{model → schema}/src/page.d.ts +6 -6
- package/dist/types/{model → schema}/src/problems.d.ts +95 -53
- package/dist/types/{model → schema}/src/refs.d.ts +1 -10
- package/dist/types/{model → schema}/src/rules.d.ts +2 -2
- package/dist/types/{model → schema}/src/schema.d.ts +25 -20
- package/dist/types/schema/src/selfOps.d.ts +31 -0
- package/dist/types/{model/src/capabilities.d.ts → schema/src/traits.d.ts} +6 -6
- package/dist/types/schema/src/typesSource.d.ts +16 -0
- package/dist/types/{model → schema}/src/values.d.ts +7 -4
- package/dist/types/schema/src/widening.d.ts +3 -0
- package/dist/types/sdk/src/analytics.d.ts +3 -2
- package/dist/types/sdk/src/app.d.ts +70 -16
- package/dist/types/sdk/src/astro-image.d.ts +19 -0
- package/dist/types/sdk/src/astro-response.d.ts +6 -0
- package/dist/types/sdk/src/astro-server.d.ts +16 -0
- package/dist/types/sdk/src/astro.d.ts +19 -0
- package/dist/types/sdk/src/bridge.d.ts +13 -15
- package/dist/types/sdk/src/code.d.ts +61 -0
- package/dist/types/sdk/src/delegation.d.ts +49 -0
- package/dist/types/sdk/src/delivery/changes.d.ts +4 -4
- package/dist/types/sdk/src/delivery/client.d.ts +40 -28
- package/dist/types/sdk/src/delivery/fields.d.ts +5 -5
- package/dist/types/sdk/src/delivery/index.d.ts +3 -3
- package/dist/types/sdk/src/delivery/media.d.ts +8 -11
- package/dist/types/sdk/src/delivery/query.d.ts +16 -12
- package/dist/types/sdk/src/delivery/schema.d.ts +5 -5
- package/dist/types/sdk/src/delivery/values.d.ts +16 -20
- package/dist/types/sdk/src/delivery.d.ts +3 -3
- package/dist/types/sdk/src/dev-operations.d.ts +20 -0
- package/dist/types/sdk/src/dev.d.ts +6 -5
- package/dist/types/sdk/src/end-users.d.ts +190 -0
- package/dist/types/sdk/src/i18n.d.ts +11 -11
- package/dist/types/sdk/src/integrations.d.ts +20 -27
- package/dist/types/sdk/src/operations.d.ts +17 -0
- package/dist/types/sdk/src/preview.d.ts +2 -1
- package/dist/types/sdk/src/rich-text.d.ts +2 -0
- package/dist/types/sdk/src/schema.d.ts +5 -21
- package/dist/types/sdk/src/site/artifact.d.ts +64 -0
- package/dist/types/sdk/src/site/build-file.d.ts +30 -0
- package/dist/types/sdk/src/site/check-code.d.ts +14 -0
- package/dist/types/sdk/src/site/check-text.d.ts +19 -0
- package/dist/types/sdk/src/site/cli.d.ts +52 -0
- package/dist/types/sdk/src/site/content-type.d.ts +2 -0
- package/dist/types/sdk/src/site/labels.d.ts +14 -0
- package/dist/types/sdk/src/site.d.ts +1 -1
- package/dist/types/sdk/src/types.d.ts +21 -0
- package/dist/{schema-BPHL7Qr-.js → types-DkO2N7u2.js} +9 -9
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/typesSource-VJIxtN9b.js +136 -0
- package/dist/workflow-CUpl6hO_.js +148 -0
- package/package.json +42 -16
- package/dist/apps-9u4XMi7E.js +0 -114
- package/dist/body.d.ts +0 -1
- package/dist/bridge-DYAYGV7t.js +0 -74
- package/dist/customers.d.ts +0 -1
- package/dist/customers.js +0 -185
- package/dist/embed-R-OvDYAw.js +0 -90
- package/dist/model-pmXzGX12.js +0 -152
- package/dist/model.d.ts +0 -1
- package/dist/model.js +0 -345
- package/dist/schema-UQJWRyfJ.js +0 -995
- package/dist/src-sazhzYui.js +0 -71
- package/dist/types/analytics/src/index.d.ts +0 -5
- package/dist/types/analytics/src/schedule.d.ts +0 -2
- package/dist/types/analytics/src/shared.d.ts +0 -21
- package/dist/types/analytics/src/source.d.ts +0 -19
- package/dist/types/analytics/src/store.d.ts +0 -24
- package/dist/types/cms-contract/src/app.d.ts +0 -35
- package/dist/types/cms-contract/src/apps.d.ts +0 -195
- package/dist/types/cms-contract/src/authorize.d.ts +0 -146
- package/dist/types/cms-contract/src/customers.d.ts +0 -266
- package/dist/types/cms-contract/src/embeds.d.ts +0 -165
- package/dist/types/cms-contract/src/errors.d.ts +0 -105
- package/dist/types/cms-contract/src/identifiers.d.ts +0 -117
- package/dist/types/cms-contract/src/paths.d.ts +0 -23
- package/dist/types/cms-contract/src/urlLabel.d.ts +0 -13
- package/dist/types/cms-contract/src/webhooks.d.ts +0 -139
- package/dist/types/model/src/audience.d.ts +0 -38
- package/dist/types/model/src/brand.d.ts +0 -25
- package/dist/types/model/src/index.d.ts +0 -26
- package/dist/types/model/src/legacy.d.ts +0 -2
- package/dist/types/model/src/media.d.ts +0 -5
- package/dist/types/model/src/mediaUrl.d.ts +0 -67
- package/dist/types/model/src/selfOps.d.ts +0 -30
- package/dist/types/model/src/typesSource.d.ts +0 -8
- package/dist/types/platform/src/defaultModel.d.ts +0 -8
- package/dist/types/sdk/src/body.d.ts +0 -2
- package/dist/types/sdk/src/customers.d.ts +0 -190
- package/dist/types/sdk/src/model.d.ts +0 -5
- package/dist/typesSource-bO0jFw1I.js +0 -88
- /package/dist/types/{cms-contract → contract}/src/appProblems.d.ts +0 -0
- /package/dist/types/{analytics → contract}/src/day.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/functionLabels.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/permissionLabels.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/siteArtifact.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/views.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/webhookLabels.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/components.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/derive.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/description.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/href.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/inline.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/markdown.d.ts +0 -0
- /package/dist/types/{model → schema}/src/contact.d.ts +0 -0
- /package/dist/types/{model → schema}/src/json.d.ts +0 -0
- /package/dist/types/{model → schema}/src/screens.d.ts +0 -0
- /package/dist/types/{model → schema}/src/time.d.ts +0 -0
|
@@ -2,14 +2,15 @@ import type { IssueSeverity } from './errors.js';
|
|
|
2
2
|
import type { ReadbackItem } from './migration.js';
|
|
3
3
|
/** 1回のリクエストで取り込む件数の上限(画像の取得の時間と、本文の大きさの上限 JSON_BODY_MAX のため) */
|
|
4
4
|
export declare const IMPORT_ITEMS_MAX = 50;
|
|
5
|
-
/** 1回のリクエストで取り込む人の数の上限(/api/transfer/
|
|
6
|
-
export declare const
|
|
5
|
+
/** 1回のリクエストで取り込む人の数の上限(/api/transfer/end-users) */
|
|
6
|
+
export declare const END_USERS_IMPORT_MAX = 50;
|
|
7
7
|
/** 対応表の人の予約のコレクション(コレクションの id に使えない $ で始める) */
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const END_USER_MAP_TYPE = "$end_user";
|
|
9
9
|
/**
|
|
10
10
|
* 取り込む1件(fields は項目の key と値、source は報告に載せる元の位置: ファイルの行・元の CMS の ID など)
|
|
11
11
|
* - origin_id: 対応表を持つ取り込み(リクエストの origin)の元の ID
|
|
12
|
-
* 参照の項目は { "$origin": "<元の ID>" }
|
|
12
|
+
* 参照の項目は { "$origin": "<元の ID>" }、
|
|
13
|
+
* エンドユーザーへの参照のフィールドは { "$end_user": "<元の ID>" } で指せる(まとまりの中も)。元の ID は正規化しない
|
|
13
14
|
* - phase: コレクションどうしの循環のフェーズ(値の1は参照なしの下書きで作って2段目待ち、値の2は参照を足して元の状態に。なしは1回で)
|
|
14
15
|
* - originals: 元の HTML(項目の key ごと、取り込みのやり直しと写せなかった表現の対応の追加だけに使う)
|
|
15
16
|
* - created_at: 元の作成の日時(ISO 8601、時差つき)。作るときだけレコードの作成の日時に当て、更新では変えない
|
|
@@ -29,10 +30,10 @@ export type ImportItem = Readonly<{
|
|
|
29
30
|
/**
|
|
30
31
|
* 取り込みの入力の形の行(JSON Lines の1行、kind は row。取り出し元ごとの読む側が出し、共通の取り込みが読む)
|
|
31
32
|
* - source は取り出し元、id は元の ID(正規化しない)、type はコレクションの id、fields は項目の値
|
|
32
|
-
* - 参照の項目は { "$origin": "<参照先のコレクションの元の ID>" }
|
|
33
|
+
* - 参照の項目は { "$origin": "<参照先のコレクションの元の ID>" }、エンドユーザーへの参照のフィールドは { "$end_user": "<人の元の ID>" }
|
|
33
34
|
* - new_id: 作るレコードの ID(元の ID を URL に保つ取り出し元。なしは自動の ID)
|
|
34
35
|
* - created_at: 元の作成の日時(作るときだけ当てる)
|
|
35
|
-
* - 人(kind は
|
|
36
|
+
* - 人(kind は endUser)は /api/transfer/end-users の1人の形
|
|
36
37
|
*/
|
|
37
38
|
export type ImportRowLine = Readonly<{
|
|
38
39
|
kind: 'row';
|
|
@@ -45,18 +46,18 @@ export type ImportRowLine = Readonly<{
|
|
|
45
46
|
}>;
|
|
46
47
|
/** 参照の項目の値で、同じ取り出し元の元の ID を指す形の印({ "$origin": "<元の ID>" }) */
|
|
47
48
|
export declare const ORIGIN_REF = "$origin";
|
|
48
|
-
/**
|
|
49
|
-
export declare const
|
|
49
|
+
/** エンドユーザーへの参照のフィールドの値で、人の元の ID を指す形の印({ "$end_user": "<元の ID>" }) */
|
|
50
|
+
export declare const END_USER_REF = "$end_user";
|
|
50
51
|
/** 元の ID を指す値の元の ID(印 marker の1つのキーで値が文字列、ほかは null) */
|
|
51
52
|
export declare function originIdOf(value: unknown, marker: string): string | null;
|
|
52
53
|
/**
|
|
53
|
-
* 取り込みの入力の形のレコード(kind は
|
|
54
|
-
* - identities は発行者の設定の id と外部 ID、
|
|
54
|
+
* 取り込みの入力の形のレコード(kind は endUser)。kind と source を除いた値が /api/transfer/end-users の1人
|
|
55
|
+
* - identities は発行者の設定の id と外部 ID、entitlements は対象のコレクションと対象と期間
|
|
55
56
|
* - 権利の対象は行の ID か { "$origin": "<元の ID>" }、endsOn の省略は対象のコレクションの期間の規則で null は無期限
|
|
56
57
|
* - created_at は元の作成の日時(作るときだけ人の作成の日時に当てる)
|
|
57
58
|
*/
|
|
58
|
-
export type
|
|
59
|
-
kind: '
|
|
59
|
+
export type ImportEndUserLine = Readonly<{
|
|
60
|
+
kind: 'end_user';
|
|
60
61
|
source: string;
|
|
61
62
|
id: string;
|
|
62
63
|
status?: string;
|
|
@@ -64,7 +65,7 @@ export type ImportCustomerLine = Readonly<{
|
|
|
64
65
|
provider: string;
|
|
65
66
|
subject: string;
|
|
66
67
|
}>[];
|
|
67
|
-
|
|
68
|
+
entitlements?: readonly Readonly<{
|
|
68
69
|
targetCollection: string;
|
|
69
70
|
target: string | Readonly<{
|
|
70
71
|
$origin: string;
|
|
@@ -76,7 +77,7 @@ export type ImportCustomerLine = Readonly<{
|
|
|
76
77
|
created_at?: string;
|
|
77
78
|
}>;
|
|
78
79
|
/** 取り込みの入力の形の1行 */
|
|
79
|
-
export type ImportLine = ImportRowLine |
|
|
80
|
+
export type ImportLine = ImportRowLine | ImportEndUserLine;
|
|
80
81
|
/** RFC 8785(JCS)の正規化した JSON(undefined の項目は除く。数は ECMAScript の表記で、JSON.stringify と同じ) */
|
|
81
82
|
export declare function canonicalJson(value: unknown): string;
|
|
82
83
|
/** 正規化した JSON の SHA-256(16進) */
|
|
@@ -112,11 +113,11 @@ export type ImportItemReport = Readonly<{
|
|
|
112
113
|
status: 'created' | 'updated' | 'ready' | 'skipped' | 'unchanged' | 'conflict';
|
|
113
114
|
issues: readonly ImportProblem[];
|
|
114
115
|
}>;
|
|
115
|
-
/** 画像の結果(checked はテスト実行で取得できた、
|
|
116
|
+
/** 画像の結果(checked はテスト実行で取得できた、file は保存した画像の ID) */
|
|
116
117
|
export type ImportImage = Readonly<{
|
|
117
118
|
url: string;
|
|
118
119
|
status: 'imported' | 'existing' | 'checked' | 'failed';
|
|
119
|
-
|
|
120
|
+
file: string | null;
|
|
120
121
|
message: string | null;
|
|
121
122
|
}>;
|
|
122
123
|
/** 小文字に変換した ID(paths はコレクションのページの旧と新のパス、ページのないコレクションは null) */
|
|
@@ -196,7 +197,7 @@ export type MicroCmsApiInput = Readonly<{
|
|
|
196
197
|
format: 'list' | 'object';
|
|
197
198
|
schema: unknown;
|
|
198
199
|
relations: Readonly<Record<string, string>>;
|
|
199
|
-
|
|
200
|
+
privateFiles?: boolean;
|
|
200
201
|
}>;
|
|
201
202
|
/** 移行元の変換の注意(path はコレクションの id と項目、code・params はアプリの問題の表のコードと差し込み、message は英語の文) */
|
|
202
203
|
export type SourceNote = Readonly<{
|
|
@@ -268,9 +269,9 @@ export type SourceVerifyResult = Readonly<{
|
|
|
268
269
|
export declare const IMPORT_EVENTS: {
|
|
269
270
|
readonly completed: "import.completed";
|
|
270
271
|
};
|
|
271
|
-
/** 取り込みの完了のイベントの値(
|
|
272
|
+
/** 取り込みの完了のイベントの値(run_id は実行の ID、source は取り出し元、rows はこの実行が対応表に書いた行のコレクションごとの数で、飛ばしたレコードは数えない) */
|
|
272
273
|
export type ImportCompletedData = Readonly<{
|
|
273
|
-
|
|
274
|
+
run_id: string;
|
|
274
275
|
source: string;
|
|
275
276
|
rows: Readonly<Record<string, number>>;
|
|
276
277
|
}>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export { API_KEY_ALL_COLLECTIONS, API_KEY_EXPIRY_DAYS, type ApiKeyExpiryDays, API_KEY_KINDS, API_KEY_OPERATIONS, API_KEY_RATE, API_KEY_WRITE_OPERATIONS, PUBLIC_FAILURE_RATE, apiKeyAllows, type ApiKey, type ApiKeyKind, type ApiKeyOperation, type ApiKeyPermissions, DEFAULT_API_KEY_PERMISSIONS } from './apiKeys.js';
|
|
2
|
+
export { FILE_BULK_MAX, OTHER_FILE_SIZE_MAX, FILE_IMAGE_TYPES, FILE_SIZE_MAX } from './files.js';
|
|
3
|
+
export { ERROR_MESSAGES, type ErrorCatalog, errorBodyFor, errorLabel, errorMessageOf, errorText, errorTitle, mergeMessages, TARGET_LABELS, targetOf, type TargetMessages, problemBody, problemBodyWithoutType, problemResponse, withProblemType } from './errorLabels.js';
|
|
4
|
+
export { ERROR_MESSAGES_EN } from './errorLabelsEn.js';
|
|
5
|
+
export { API_ISSUE_MESSAGES, type ApiIssueCode, apiIssueText } from './issueLabels.js';
|
|
6
|
+
export { API_ISSUE_MESSAGES_EN } from './issueLabelsEn.js';
|
|
7
|
+
export { importKindLabel, importProblemLabel, issueLabel, labelTableProblems, PROBLEM_MESSAGES, PROBLEM_MESSAGES_EN, problemEnglish, problemLabel } from './problems.js';
|
|
8
|
+
export { type AppProblem, appProblems } from './appProblems.js';
|
|
9
|
+
export { FAILURE_STATUS, type FailureCode, RETRY_AFTER_SEC, retryHeadersOf } from './failureStatus.js';
|
|
10
|
+
export { ERROR_STATUS, JSON_BODY_MAX, RETRYABLE_ERRORS, type ErrorBody, type ErrorCode, type ErrorParams, ISSUE_SEVERITIES, type Issue, type IssueInput, type IssueSeverity, type ErrorRequired, type ErrorTarget, type InvalidStateReason, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type ProblemFields } from './errors.js';
|
|
11
|
+
export { CHANGES_LABELS, STATUS } from './labels.js';
|
|
12
|
+
export { SETTING_PROBLEMS, SettingProblem, type SettingProblemCode, settingProblemText } from './settingProblems.js';
|
|
13
|
+
export { type CalendarField, calendarFieldSource, type CalendarItem, type StandardAppState, type StandardAppUpdate, type PendingItem, permissionTargetsOf } from './workspaceItems.js';
|
|
14
|
+
export { type AppAbout, type AppBase, appBaseOf, type AppDefinition, type AppInstance, type AppSettings, type AppSettingsInput, type AppSetupContext, type AppSide, appTargetsOf, type CallApi, createApps, type McpApp, type McpParts, type McpProjectContext, type McpPrompt, type McpTool, mergedSettings, NO_SETTINGS, settingAt, withSettingAt } from './appDefinition.js';
|
|
15
|
+
export { applyFieldRules, autoFieldsOf, type FieldRef, type FieldRule, hiddenFieldsOf, restrictedChoicesOf, restrictedProblemsOf } from './fieldRules.js';
|
|
16
|
+
export { PENDING_PREFIX, pendingIds, pendingValue } from './pending.js';
|
|
17
|
+
export { type AccountLink, type Action, ACTION_LEVELS, ACTIONS, ANY_TARGET, canChangeRow, canDeleteContent, canEditContent, canPublishContent, canReadContent, canReadRow, canSubmitContent, checkPermissions, type ContentAccess, type Level, LEVELS, ownsContent, ownsRow, type Permissions, permissionsUnion, type RowAccess, withPrivateTargets } from './permissions.js';
|
|
18
|
+
export { type AudienceCollection, canReadField, DELIVERED, type FieldReader, SELF_SEES, selfUnwritableKeys, PUBLIC_ONLY, readableFields, readableValues, seesAll, titleFor, unwritableKeys, withHiddenValues } from './fieldAccess.js';
|
|
19
|
+
export { authorize, authorizeReach, type Decision, type DecisionInput, type DecisionRow, DENY_CAUSES, type DenyCause, MANAGEMENT_OPERATIONS, type ManagementOperation, type ManagementPrincipal, type ManagementTarget, observeDecisions, type Operation, OPERATIONS, permissionsWithin, type OrganizationRole } from './authorize.js';
|
|
20
|
+
export { capabilitiesBeyond } from './powers.js';
|
|
21
|
+
export { type Ceiling, ceilingOf, delegatedGrant, EMPTY_CEILING, GRANT_TYPES, type GrantType, grantsManagement, grantsOperation, NON_SENSITIVE, unionPermissions } from './grants.js';
|
|
22
|
+
export { ACCOUNT_KINDS, type AccountDelegation, accountDelegationOf, type AccountKind, type AccountView, type ActingKind, actingKindOf, type AppDelegation, appDelegationOf, type AppPrincipal, type Capabilities, type CapabilityPrincipal, type DelegatedGrant, type EndUserContext, type EndUserPrincipal, endUserOf, installationOf, type McpDelegation, mcpDelegationOf, ownerOf, type PersonAccount, personOf, isPersonPrincipal, type PersonPrincipal, type PersonShape, type PrincipalAccount, emailOf, type PrincipalContext, principalIdOf, roleOf, type PrincipalShape, type ProcessPrincipal, type RoleEffective, type Subject } from './principal.js';
|
|
23
|
+
export { SUPPORT_ACCESS_KINDS, SUPPORT_ACCESS_LIMITS, SUPPORT_ACCESS_SCOPES, type SupportAccess, type SupportAccessKind, type SupportAccessScope } from './operators.js';
|
|
24
|
+
export { ADMIN_PERMISSIONS, ADMIN_ROLE, defaultRoleOf, isAdmin, rolePermissionsOf, type Role, SYSTEM_ROLES, type User, DEFAULT_ROLE, VIEW_AS_HEADER, ADMIN_AREA_OPERATION } from './roles.js';
|
|
25
|
+
export { ENV_PATH, envPathOf, publicApiHostOf, projectOfPublicHost, PUBLIC_API_BASE, PUBLIC_ENV_SEGMENT, publicApiPathOf, isServerPath, withEnvPrefix, MCP_OAUTH_PATH, ADMIN_PATHS, SERVER_PATHS } from './paths.js';
|
|
26
|
+
export { CONFIG_FORMAT, type ConfigBundle, type ConfigPreview } from './transfer.js';
|
|
27
|
+
export { canonicalHash, canonicalJson, END_USERS_IMPORT_MAX, END_USER_MAP_TYPE, type ImportCompletedData, IMPORT_EVENTS, IMPORT_ITEMS_MAX, IMPORT_PROBLEMS, type ImportIdChange, type ImportIdConflict, importIdOf, type ImportIdPlan, importItemOfRow, type ImportLine, type ImportEndUserLine, type ImportRowLine, type ImportImage, type ImportItem, type ImportItemReport, type ImportProblem, type ImportProblemCode, type ImportReport, importReportOf, mergeImportReports, type MicroCmsApiInput, type SourceContentResult, type SourceDropped, type SourceDroppedRow, type SourceLinesResult, type SourceVerifyResult, type SourceNote, cyclicCollections, importOrderOf, ORIGIN_REF, originIdOf, END_USER_REF, planImportIds, sourceOf, withoutOrigins } from './import.js';
|
|
28
|
+
export { IMPORT_EVENT_LABELS } from './importLabels.js';
|
|
29
|
+
export { FORM_EVENTS } from './forms.js';
|
|
30
|
+
export { FORM_EVENT_LABELS } from './formLabels.js';
|
|
31
|
+
export { IMPORT_MAP_STATES, type ImportMapState, inputHashOf, isPlanBody, READBACK_STATUSES, type RunPlan, type SourceCounts, TRANSFER_PLAN_BODY_MAX, VERIFY_PAGE_MAX, type ReadbackItem, type ReadbackReport, type ReadbackStatus, type TransferCounts, type TransferPlan, type TransferPlanBody, type TransferPlanInput, type TransferSummary } from './migration.js';
|
|
32
|
+
export { ADMIN_FRAME_SOURCES_PATH, EMBED_DASHBOARD_LIMIT, EMBED_DISPLAY_NAMES_MAX, EMBED_GRANTABLE_CAPABILITIES, type EmbedDisplayNames, type EmbedGrantableCapability, type EmbedSessionToken, type EmbedApiToken, type DelegationTokenResponse, TOKEN_EXCHANGE, type TokenExchangeResponse, isPagePlacement, isTypedPlacement, type AdminFrameSources, EMBED_PLACEMENTS, EMBED_UI_SLOTS, type EmbedUiSlot, embedCapabilities, type EmbedContextResponse, type EmbedEntry, type EmbedPlacement, type ExternalScreen } from './embeds.js';
|
|
33
|
+
export { BRIDGE_API_METHODS, type BridgeApiMethod, isBridgeApiPath, BRIDGE_DATA_MAX, BRIDGE_DIALOG_LIMIT, BRIDGE_DIALOG_SIZES, BRIDGE_ERRORS, BRIDGE_HEIGHT, BRIDGE_NAMESPACE, BRIDGE_PROMPT_LIMIT, BRIDGE_REQUESTS, BRIDGE_TEXT_MAX, BRIDGE_THEME_TOKENS, BRIDGE_THEME_VAR_PREFIX, BRIDGE_TOAST_LIMIT, BRIDGE_VERSION, SESSION_TOKEN, sessionTokenClaimsOf, type SessionTokenClaims, type BridgeContext, type BridgeDialogSize, type BridgeError, type BridgeEventMessage, type BridgeEventName, type BridgeEvents, type BridgeHello, type BridgeInit, type BridgeRequestKind, type BridgeRequestMessage, type BridgeRequests, type BridgeResponseMessage, type BridgeResults, type BridgeTarget, type BridgeTheme, type BridgeThemeToken, type BridgeToastTone, EMBED_PATH_MAX, isBridgeMessage, isBridgeNonce, isEmbedPath } from './bridge.js';
|
|
34
|
+
export { type ExternalFunction, FUNCTION_HOOKS, functionEventLabel, functionEventOf, type FunctionHook, type FunctionIssue, type FunctionOnError, type FunctionRef, type FunctionRequest, LIST_CELL_TEXT_MAX, LIST_CELL_TONES, LIST_COLUMN_IDS_MAX, type EmbedColumn, type EmbedColumnValues, type ListCell, type ListCellTone, type ListColumnRequest, type ListColumnResponse, type PublishCheckRequest, type PublishCheckResponse, type SaveCheckRequest, type SaveCheckResponse } from './functions.js';
|
|
35
|
+
export { FUNCTION_HOOK_LABELS } from './functionLabels.js';
|
|
36
|
+
export { type AppEventData, appEventOf, INSTALLATION_EVENTS, type InstallationDeletedData, isAppEventName, isWebhookAction, isWebhookChangeAction, parseWebhookEvent, type Webhook, type WebhookBody, WEBHOOK_ACTIONS, WEBHOOK_CHANGE_ACTIONS, type WebhookAction, type WebhookChangeAction, type WebhookDelivery, type WebhookEvent, webhookEventLabel, webhookEventOf, type WebhookKind, type WebhookAppBody, type WebhookSubscription, webhookSubscriptionLabel, type WebhookMessage, type WebhookRecordData, type WebhookRecordType, webhookRecordTypeOf } from './webhooks.js';
|
|
37
|
+
export { INSTALLATION_EVENT_LABELS, WEBHOOK_ACTION_LABELS } from './webhookLabels.js';
|
|
38
|
+
export { type EndUsersConfig, endUsersConfigOf, DEFAULT_END_USERS_SETTINGS, ENTITLEMENT_MONTHS, endsOnAfterMonths, entitlementEndsOn, isEntitlementMonths, type EntitlementSource, ENTITLEMENT_SOURCES, INVITE_CODE_PLACEHOLDER, isEndUserStatus, OWN_DOMAINS, SELF_API_ERRORS, type SelfApiError, END_USER_API_ERRORS, END_USER_EVENTS, END_USER_ID_TOKEN_ALGORITHMS, END_USER_STATUSES, END_USER_STATUS_OPERATIONS, END_USERS_KEY_TARGET, END_USERS_LIMITS, END_USERS_SETTINGS_ISSUES, END_USERS_SETTINGS_KEY, type EndUserApiEntitlement, type EndUserApiError, type EndUserApiResult, type EndUserEnsureResult, type EndUserDetail, type EndUserEntitlementView, type EndUserEventData, type PendingIdentityView, type EndUserIdentityView, type EndUserIdTokenAlgorithm, type EndUserListItem, type EndUserProvider, type EndUsersSettings, type EndUsersSettingsProblem, type EndUserStatus, parseEndUsersSettings, type PublicClientCapability } from './endUsers.js';
|
|
39
|
+
export { END_USER_EVENT_LABELS } from './endUserLabels.js';
|
|
40
|
+
export { ADDRESS_CHANNELS, type AddressChannel, isAddressChannel, isConsentChannel, CONSENT_FIXED_PURPOSES, CONSENT_METHODS, CONSENT_METHODS_OF, CONSENT_PURPOSE_KEY, CONSENT_PURPOSES_MAX, CONSENT_SOURCE_KINDS, CONSENT_STATES, consentAllows, type ConsentChannel, type ConsentFacts, type ConsentMethod, type ConsentPurpose, type ConsentRecord, type ConsentSourceKind, type ConsentState, consentWire, isConsentPurpose, normalizeAddress, type EndUserApiConsent, type EndUserApiConsentResult, type EndUserApiConsents, type EndUserConsents, RECONSENT_METHODS, reconsents, SUPPRESS_ALL_PURPOSES } from './consents.js';
|
|
41
|
+
export { addedCapabilities, APP_KEY_USES, APP_SETTINGS_TARGETS, APP_KINDS, APP_MANIFEST_LIMITS, APP_UI_ICONS, APP_UI_LABEL_MAX, APP_UI_SLOTS, type AppKind, type AppRelation, type InstallationRelations, type AppManifest, type AppManifestProblem, appManifestProblems, type AppUi, type AppUiIcon, type AppUiSlot, type AppUiRequires, type ConnectionPoint, type PermissionTarget, type CollectionIds, type CollectionMapping, type CollectionMappings, fieldTypeFits, type AppTool, CAPABILITY_CLASSES, type CapabilityClass, capabilitiesOf, capabilityClassOf, capabilitySetOf, DEPLOY_SITE_CAPABILITY, destinationsOf, type Installation, INSTALLATION_KINDS, type InstallationKind, INSTALLATION_PART_KINDS, INSTALLATION_STATES, type InstallationPart, type InstallationPartKind, type InstallationState, isAppNamespace, isExclusiveAppKind, originOf, piiCapabilities, type RegisteredApp, registeringManifestProblems, uiCollectionOf, COLLECTION_UI_SLOTS, unmappedCollections, appToolPrefixOf, APP_MANIFEST_KEYS, APP_MANIFEST_VERSION } from './apps.js';
|
|
42
|
+
export { APP_MANIFEST_DOCUMENT_KEYS, APP_TEXT_LANGS, appManifestDocumentProblems, type AppManifestDocument, type AppManifestDocumentCollection, type AppManifestDocumentField, type AppManifestText, type AppTextLang, manifestDocumentOf, manifestFromDocument, registeringDocumentProblems, storedManifestOf } from './manifestText.js';
|
|
43
|
+
export { type AppNotice, type AppNotices, appNotices, NOTICES_PORT } from './notices.js';
|
|
44
|
+
export { APP_DEPENDENCY_LIMITS, BUNDLED_APP_IDS, bundledAppIdOf, APP_RESERVED_FIELD_KEYS, type AppCollection, type AppDependency, type AppDependencyManifest, appDependencyManifestSchema, type AppDependencyProblem, appDependencyProblems, appMajorOf, type AppPrice, type AppSettingDef, type AppSettingValue, DEFAULT_APP_MAJOR, dependencyCapabilitiesOf, type DependencyTarget, dependencyTargetProblems, IMPORTER_FIELD_PREFIX, type IncompatibleChange, incompatibleChanges, type InstallPlan, type PlanConflict, type PlanNode, type PlanReason, planTotalOf, type PortId, type PortProvide, type PortUse, priceCapabilityOf } from './appDependencies.js';
|
|
45
|
+
export { DELIVERY_VERSION, EXPORT_FORMAT } from './versions.js';
|
|
46
|
+
export { bearerTokenOf, type McpConnection, registrantOf, declaredNameOf, formatMcpScope, MCP_CLIENT_KEYS, type McpClientKey, mcpClientKeyOf, MCP_DCR_LIMITS, isCimdClientId, isCodeVerifier, isLoopbackRedirect, isS256Challenge, MCP_ACCESS_TOKEN, MCP_BASIC_SCOPES, MCP_CIMD_HOSTS, MCP_DCR_REDIRECTS, MCP_DEFAULT_PRESET, MCP_PRESETS, MCP_SCOPES, type McpAccessTokenClaims, mcpCapabilitiesOf, type McpClientFacts, type McpClientProblem, mcpClientProblem, type McpPreset, mcpResourceOf, type McpScope, mcpScopeFor, allowedCimdClientId, allowedCimdRedirect, allowedDcrRedirect, matchesRedirect, parseMcpScope, sameMcpResource } from './mcpAuth.js';
|
|
47
|
+
export { MCP_CLIENT_LABELS, mcpClientLabelOf } from './mcpLabels.js';
|
|
48
|
+
export { ACTOR_KIND_OF_VIA, ACTOR_KINDS, type ActorKind, APP_NAMESPACE_PATTERN, AUDIT_SURFACES, AUDIT_VIAS, type AuditSurface, type AuditVia, ID_KINDS, type IdKind, UUID_V7, INSTALLATION_TOKEN, type InstallationTokenClaims, ACCOUNT_TOKEN, type AccountTokenClaims, PERSPECTIVE_TICKET_TOKEN, type PerspectiveTicketClaims, DELEGATION_TOKEN, isIdOf, END_USER_REFERENCE_FIELD, END_USER_TOKEN, type EndUserTokenClaims } from './identifiers.js';
|
|
49
|
+
export { type SavedView, VIEW_ACTIONS, type ViewAction, type ViewDefinition } from './views.js';
|
|
50
|
+
export { RECORD_ACTIONS, RECORD_STATES, type RecordAction, recordActions, type RecordChanges, recordGuard, type RecordGuard, type RecordGuardInput, type RecordRow, type RecordState, recordStateOf, isLiveState } from './workflow.js';
|
|
51
|
+
export { canManage, isManageTarget, MCP_MANAGED_AREAS, mcpManages, MANAGE_CHECKS, type ManageCheck, manageChecksOf, manageRowsOf, manageTarget, projectAccountPrincipal, REAUTH_FACTORS, type ReauthFactor, reauthFactorsOf, roleWithin, type RoleScope } from './manage.js';
|
|
52
|
+
export { MANAGE_CHECK_LABELS } from './manageLabels.js';
|
|
53
|
+
export { projectRoleOf } from './projectRole.js';
|
|
54
|
+
export { APPROVAL_KINDS, APPROVAL_REAUTH_MAX_AGE_SEC, APPROVAL_STATES, APPROVAL_STUCK_MS, APPROVAL_TTL_MS, APPROVAL_VIAS, type ApprovalKind, type ApprovalState, type ApprovalVia, type ApprovalView, type OperationWeight, PRODUCTION_OPERATIONS, REIMPORT_WINDOW_MS, requestableVia, REVOKE_TARGETS, type RevokeTarget } from './approvals.js';
|
|
55
|
+
export { APPROVAL_KIND_LABELS, APPROVAL_STATE_LABELS, REVOKE_TARGET_LABELS } from './approvalLabels.js';
|
|
56
|
+
export { canManageSettings, isSettingsTarget, managedAreasOf, SETTINGS_AREAS, type SettingsArea, settingsTarget } from './settings.js';
|
|
57
|
+
export { SETTINGS_AREA_LABELS } from './settingsLabels.js';
|
|
58
|
+
export { SITE_CAPABILITY_PREFIXES, type SiteDeclaration, siteDeclarationOf, type SiteHostingManifest } from './siteDeclaration.js';
|
|
59
|
+
export { ARTIFACT_KEYS, MODULE_CONTENT_TYPES, MODULE_EXTENSIONS, MODULE_NAME, SITE_ARTIFACT, type SiteModuleType, siteModuleTypeOf, UPLOAD_FORM_PARTS } from './siteArtifact.js';
|
|
60
|
+
export { HOSTING_ACTIONS, HOSTING_OPERATIONS, HOSTING_RPC_METHODS, type HostingAction, type HostingActivateRequest, type HostingPlaceRequest, type HostingHealthView, type HostingHostnameResult, type HostingHostnameState, type HostingHostnameSyncRequest, type HostingValidationRecord, hostingOperationInput, type HostingRpc, type HostingRpcMethod, type HostingSyncRequest } from './hostingRpc.js';
|
|
61
|
+
export { isReservedSlug, RESERVED_SLUGS } from './slugs.js';
|
|
62
|
+
export { HOSTNAME_PROBLEMS, type HostnameProblem, hostSpaceOf, isUnderZone, normalizeHostname, requestHost, TRIAL_SUFFIX, trialHostname } from './hostnames.js';
|
|
63
|
+
export { isTrialHost, isTrialSiteHost, TRIAL_HOST_SUFFIX, TRIAL_SITE_SUFFIX, trialSiteLabel } from './trial.js';
|
|
64
|
+
export { appScreenHostLabel, base32OfUuid, INFRA_KINDS, type InfraId, type InfraKind, type InfraUuid, idOfScreenKey, IMPORTED_KINDS, importedIdOf, type ImportedKind, infraIdOfStored, infraIdOfUuid, infraIdProblemOf, isInfraId, isInfraIdOf, isUuid, isUuidForm, newAutoSlug, newInfraId, newSecretToken, newUuidV4, newUuidV7, parseInfraId, infraKeyOfPath, screenKeyOf, SECRET_TOKEN_PREFIXES, type SecretTokenKind, secretTokenKindOf, TUNASAND_NAMESPACE, uuidOfInfraId, uuidV5Of, uuidV7Of } from './ids.js';
|
|
65
|
+
export { type LivePeriod, livePeriodsOf, type PromoteRow, withinLivePeriods } from './livePeriods.js';
|
|
66
|
+
export { AUDIT_ACTION_CODES, type AuditActionCode, type AuditActionRow, auditActionValues, NON_COLLECTION_TARGETS, normalizeAuditAction, targetLabelOf, withTargetLabel } from './auditActions.js';
|
|
67
|
+
export { LEGACY_AUDIT_ACTIONS, LEGACY_AUDIT_SUFFIXES, LEGACY_APP_AUDIT_ACTIONS } from './legacyAuditLabels.js';
|
|
68
|
+
export { AUDIT_ACTION_MESSAGES, auditActionLabel } from './auditLabels.js';
|
|
69
|
+
export { type AppContext, type AppRoute, type AppRouteArea, type AppRouteMethod, type AppRoutePolicy, type CmsClient, appRoutePathOf, egressAllows } from './app.js';
|
|
70
|
+
export { APP_OUTBOUND_LIMITS, APP_OUTBOUND_METHODS, type AppOutbound, type AppOutboundAuth, type AppOutboundMethod, outboundCapabilityOf, outboundFor } from './outbound.js';
|
|
71
|
+
export { APP_IDENTITY_LIMITS, type AppIdentityDeclaration, appIdentitiesProblems, appProviderId } from './appIdentities.js';
|
|
72
|
+
export { APP_INBOUND_LIMITS, APP_INBOUND_NAME, type AppInboundDeclaration, appInboundPathOf, appInboundProblems, type AppInboundRequest, type AppInboundUrl } from './appInbound.js';
|
|
73
|
+
export { APP_CHANNEL_KIND_LIMITS, APP_CHANNEL_LIMITS, type AppChannel, type AppChannelInput, type AppChannelKind, appChannelKindsProblems, type AppChannelsPort, CHANNEL_ADDRESS_KINDS, CHANNEL_CAPABILITIES, CHANNEL_KIND, CHANNEL_SETTING_TYPES, type ChannelAddress, type ChannelAddressKind, type ChannelCapability, channelKindOf } from './appChannels.js';
|
|
74
|
+
export { APP_HMAC_HASHES, APP_SECRET_DECLARATION_LIMITS, APP_SECRET_KEY, APP_SECRET_LIMITS, APP_SIGNATURE_ENCODINGS, type AppHmacCheck, type AppHmacHash, type AppSecretDeclaration, type AppSecretState, type AppSignatureEncoding, appSecretsProblems, secretTailOf } from './appSecrets.js';
|
|
75
|
+
export { APP_MAIL_SKIP_REASONS, type AppInboundMail, type AppMailDeclaration, type AppMailDomain, appMailProblems, type AppMailPort, type AppMailSendRequest, type AppMailSendResult, type AppMailSkipReason, MAIL_AUTH_RESULTS, MAIL_CAPABILITIES, type MailAuthentication, type MailAuthResult, mailCapabilitiesOf } from './appMail.js';
|
|
76
|
+
export { MESSAGE_CAPABILITY, MESSAGE_LIMITS, MESSAGE_PORT, MESSAGE_RECEIVED, MESSAGE_SKIP_REASONS, type MessageProblem, type MessageProviderResult, type MessageReceived, type MessageAddress, type MessageReceivedInput, type MessageRecipient, type MessageSender, type MessageSendRequest, type MessageSendResult, type MessageSkipReason, messageKindsOf, messageReceivedInput, messageSendRequest, type PortMessage, portMessage, type ReceivedItem } from './messagePort.js';
|
|
77
|
+
export type { AppPortErrorCode, AppPortFailure, AppPortResult, AggregateExtent, AggregateRange, AggregateRebuild, AggregateRollup, AggregateValues, AppChannelConsent, AppConnections, AppEndUserIdentity, AppEndUserIssuer, AppEndUsersPort, AppEventsPort, AppFilesPort, AppHoldTarget, AppMessageProvider, AppMessagesPort, AppSecretsPort, AppDeliveryContext, AppDeliveryRoute, AppJob, AppNoticeKind, AppNotifyPort, AppNotifyRequest, AppNotifyResult, AppRecord, AppRecordCondition, AppRecordQuery, AppRecordsPort, AppRow, AppSavedContext, AppScope, AppServer, AppServerContext, AppServerParts, AppCollectionTarget, AppStatePort, DailyViews, ResolvedSlugs, VisibleRecords, CollectionRule, Problem, RecordRuleContext, Rule, RuleStage, SaveCheck, SaveCheckContext, SaveCheckResult, AppPageRequest, AppRecordPage } from './appServer.js';
|
|
78
|
+
export { APP_FILE_LIMITS, APP_RECORD_QUERY_LIMITS, aggregateJobIdOf, appDeliveryPathOf, APP_INBOUND_SEGMENT, isReservedAppDeliveryPath, APP_HOLD_LIMITS, APP_NOTICE_KINDS, APP_NOTIFY_LIMITS, APP_USAGE_ERRORS, APP_STATE_LIMITS, allRecordPages } from './appServer.js';
|
|
79
|
+
export { HOSTING_LEVELS, levelOfRequest, needsRecentLogin, OPERATOR_API_PREFIX, OPERATOR_FIXED_BODY, OPERATOR_OPERATIONS, operatorOperation, type OperatorLevel, type OperatorOperation, type OperatorOperationId, type OperatorProjectTab, type OperatorScreen, type OperatorWhen } from './operatorOperations.js';
|
|
80
|
+
export { type Classify, VIEW_COLUMNS, type ViewEvent, viewOf, type ViewOptions } from './viewEvent.js';
|
|
81
|
+
export { workspaceRecordPath } from './workspacePaths.js';
|
|
82
|
+
export { PERSPECTIVE_QUERY, PERSPECTIVES, type PerspectiveName, type ReadToken } from './perspective.js';
|
|
83
|
+
export { DELETION_NAME_CONFIRM_MIN, type DeletionImpact, deletionNameRequired } from './deletion.js';
|
|
84
|
+
export { RECORD_LABELS } from './recordLabels.js';
|
|
85
|
+
export { RULE_ISSUES, RULE_PROBLEMS } from './ruleProblems.js';
|
|
86
|
+
export { SCHEMA_LABELS } from './schemaLabels.js';
|
|
87
|
+
export { CORE_RULE_LABELS, FILE_SYNTAX_EXAMPLE, PREVIEW_LABELS } from './ruleLabels.js';
|
|
88
|
+
export { ACCOUNT_ICON_TYPES, ACCOUNT_PROFILE_LIMITS } from './accountProfile.js';
|
|
89
|
+
export { APP_EVENTS_SCHEMA_NAME, EVENT_DATA_SCHEMAS, EVENT_SCHEMA_BASE_URL, eventDataSchemaUrl, eventJsonSchemaFiles } from './eventSchemas.js';
|
|
90
|
+
export { DELIVERY_MARK_HEADERS } from './headers.js';
|
|
91
|
+
export { type FlowStat, GRAPH_FLOW_KINDS, GRAPH_GROUP_KINDS, GRAPH_LANE_OF, GRAPH_LANES, GRAPH_NODE_KINDS, type GraphFlow, type GraphFlowKind, type GraphGroup, type GraphGroupKind, type GraphLane, type GraphNode, type GraphNodeKind, type IntegrationGraph, type Trace, TRACE_RESULTS, type TraceResult, type TraceStep } from './integrationGraph.js';
|
|
92
|
+
export { DELIVERY_SOURCE_KINDS, type DeliveryReceiver, type DeliverySource, type DeliverySourceKind, type DeliverySummaryRow, EVENT_TRACE_LIMITS, type EventTrace, type TraceDelivery } from './eventTraces.js';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const GRAPH_NODE_KINDS: readonly ["workspace", "mcp", "apiKey", "endUser", "system", "app", "channel", "webhook"];
|
|
2
|
+
export type GraphNodeKind = (typeof GRAPH_NODE_KINDS)[number];
|
|
3
|
+
export declare const GRAPH_LANES: readonly ["inbound", "app", "outbound"];
|
|
4
|
+
export type GraphLane = (typeof GRAPH_LANES)[number];
|
|
5
|
+
export declare const GRAPH_LANE_OF: {
|
|
6
|
+
readonly workspace: "inbound";
|
|
7
|
+
readonly mcp: "inbound";
|
|
8
|
+
readonly apiKey: "inbound";
|
|
9
|
+
readonly endUser: "inbound";
|
|
10
|
+
readonly system: "inbound";
|
|
11
|
+
readonly app: "app";
|
|
12
|
+
readonly channel: "outbound";
|
|
13
|
+
readonly webhook: "outbound";
|
|
14
|
+
};
|
|
15
|
+
export declare const GRAPH_FLOW_KINDS: readonly ["event", "port", "data"];
|
|
16
|
+
export type GraphFlowKind = (typeof GRAPH_FLOW_KINDS)[number];
|
|
17
|
+
export declare const GRAPH_GROUP_KINDS: readonly ["standard", "industry"];
|
|
18
|
+
export type GraphGroupKind = (typeof GRAPH_GROUP_KINDS)[number];
|
|
19
|
+
export declare const TRACE_RESULTS: readonly ["ok", "failed", "undelivered"];
|
|
20
|
+
export type TraceResult = (typeof TRACE_RESULTS)[number];
|
|
21
|
+
/**
|
|
22
|
+
* ノード
|
|
23
|
+
* - label: 表示名(主体のノードは null で、画面が種類から引く)
|
|
24
|
+
* - subscribes: 購読する Tunasand のイベントの種類(発行元が実行時の操作の主体で決まるので、構成ではノードの札で示す)
|
|
25
|
+
*/
|
|
26
|
+
export type GraphNode = Readonly<{
|
|
27
|
+
id: string;
|
|
28
|
+
kind: GraphNodeKind;
|
|
29
|
+
label: string | null;
|
|
30
|
+
detail?: string;
|
|
31
|
+
group?: string;
|
|
32
|
+
external: boolean;
|
|
33
|
+
subscribes?: readonly string[];
|
|
34
|
+
}>;
|
|
35
|
+
/** グループ(標準アプリは既定で展開、業種別アプリは既定で折りたたむ。label は null なら種類から画面が引く) */
|
|
36
|
+
export type GraphGroup = Readonly<{
|
|
37
|
+
id: string;
|
|
38
|
+
kind: GraphGroupKind;
|
|
39
|
+
label: string | null;
|
|
40
|
+
collapsed: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
/** 期間内の件数(undelivered は未配信) */
|
|
43
|
+
export type FlowStat = Readonly<{
|
|
44
|
+
count: number;
|
|
45
|
+
failed: number;
|
|
46
|
+
undelivered: number;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* フロー(source と target はノードの id)
|
|
50
|
+
* - stats: イベントの種類ごとの件数。データアクセスは `read:<コレクション>` か `write:<コレクション>`。件数の記録がないもの(ポート、データアクセス)は0
|
|
51
|
+
* - runtime: 発行元が実行時の操作の主体で決まる Tunasand のイベント(構成には出さない)
|
|
52
|
+
* - pending: 未配信とリトライ待ちの件数
|
|
53
|
+
*/
|
|
54
|
+
export type GraphFlow = Readonly<{
|
|
55
|
+
id: string;
|
|
56
|
+
source: string;
|
|
57
|
+
target: string;
|
|
58
|
+
kind: GraphFlowKind;
|
|
59
|
+
port?: string;
|
|
60
|
+
stats: Readonly<Record<string, FlowStat>>;
|
|
61
|
+
collections: readonly string[];
|
|
62
|
+
runtime: boolean;
|
|
63
|
+
pending: number;
|
|
64
|
+
}>;
|
|
65
|
+
export type TraceStep = Readonly<{
|
|
66
|
+
flow: string;
|
|
67
|
+
type: string;
|
|
68
|
+
at: string;
|
|
69
|
+
result: TraceResult;
|
|
70
|
+
}>;
|
|
71
|
+
/** トレース(同じ correlationid の連鎖。title は起点のイベントの種類) */
|
|
72
|
+
export type Trace = Readonly<{
|
|
73
|
+
id: string;
|
|
74
|
+
title: string;
|
|
75
|
+
at: string;
|
|
76
|
+
steps: readonly TraceStep[];
|
|
77
|
+
}>;
|
|
78
|
+
export type IntegrationGraph = Readonly<{
|
|
79
|
+
nodes: readonly GraphNode[];
|
|
80
|
+
groups: readonly GraphGroup[];
|
|
81
|
+
flows: readonly GraphFlow[];
|
|
82
|
+
traces: readonly Trace[];
|
|
83
|
+
}>;
|