@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.
Files changed (215) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +162 -143
  3. package/dist/analytics.js +76 -65
  4. package/dist/app.js +184 -163
  5. package/dist/apps-DIxAWBSZ.js +318 -0
  6. package/dist/astro-image.d.ts +1 -0
  7. package/dist/astro-image.js +33 -0
  8. package/dist/astro-server-Bwau8F6d.js +99 -0
  9. package/dist/astro-server.d.ts +1 -0
  10. package/dist/astro-server.js +1 -0
  11. package/dist/astro.d.ts +1 -0
  12. package/dist/astro.js +306 -0
  13. package/dist/bridge-Dv4NxGZ7.js +81 -0
  14. package/dist/bridge.js +1 -13
  15. package/dist/build-file-DNi0PHC5.js +31 -0
  16. package/dist/cli.js +6212 -8
  17. package/dist/{client-Derrexwr.js → client-C8STAw9T.js} +43 -24
  18. package/dist/code-N8pBUDbq.js +30 -0
  19. package/dist/code.d.ts +1 -0
  20. package/dist/code.js +1 -0
  21. package/dist/collection-nUz1RetA.js +264 -0
  22. package/dist/{declared-DuNMsdXw.js → declared-CE4a61qb.js} +35 -35
  23. package/dist/delivery.js +121 -114
  24. package/dist/dev-operations-Tutwi1On.js +46 -0
  25. package/dist/dev.js +9 -16
  26. package/dist/embeds-B-Dbn64k.js +29 -0
  27. package/dist/end-users.d.ts +1 -0
  28. package/dist/end-users.js +185 -0
  29. package/dist/endUsers-DODfjnv1.js +77 -0
  30. package/dist/{errorLabels-BgtQ_zUn.js → errorLabels-aT2bnMsO.js} +355 -235
  31. package/dist/i18n.js +4 -4
  32. package/dist/ids-DmtIoqBX.js +109 -0
  33. package/dist/integrations.js +95 -24
  34. package/dist/{ja-Du6ooL6i.js → ja-CrY_72Tn.js} +88 -44
  35. package/dist/{ja-CeHU0EaY.js → ja-axQPxMJ-.js} +3 -3
  36. package/dist/operations-CIB99rIY.js +95 -0
  37. package/dist/operations.d.ts +1 -0
  38. package/dist/operations.js +1 -0
  39. package/dist/{page-Bzrj24sJ.js → page-yo1cw1kW.js} +1 -1
  40. package/dist/preview.js +8 -1
  41. package/dist/{profile-1em_lcxq.js → profile-DBsXLvvI.js} +48 -48
  42. package/dist/rich-text.js +16 -16
  43. package/dist/{schema-WnobuwLg.js → schema-Dcg1ajnW.js} +496 -263
  44. package/dist/schema.js +66 -88
  45. package/dist/types/access/src/handoff.d.ts +19 -14
  46. package/dist/types/access/src/index.d.ts +2 -2
  47. package/dist/types/access/src/jws.d.ts +41 -0
  48. package/dist/types/access/src/oidc.d.ts +10 -2
  49. package/dist/types/access/src/signed.d.ts +0 -2
  50. package/dist/types/adapter-cloudflare/src/eventLog/viewSchema.d.ts +11 -0
  51. package/dist/types/contract/src/accountProfile.d.ts +7 -0
  52. package/dist/types/contract/src/apiKeys.d.ts +6 -2
  53. package/dist/types/contract/src/app.d.ts +15 -5
  54. package/dist/types/contract/src/appChannels.d.ts +114 -0
  55. package/dist/types/contract/src/appDefinition.d.ts +11 -5
  56. package/dist/types/contract/src/appDependencies.d.ts +87 -24
  57. package/dist/types/contract/src/appIdentities.d.ts +21 -0
  58. package/dist/types/contract/src/appInbound.d.ts +28 -0
  59. package/dist/types/contract/src/appMail.d.ts +106 -0
  60. package/dist/types/contract/src/appSecrets.d.ts +45 -0
  61. package/dist/types/contract/src/appServer.d.ts +408 -43
  62. package/dist/types/contract/src/approvals.d.ts +1 -1
  63. package/dist/types/contract/src/apps.d.ts +112 -55
  64. package/dist/types/contract/src/auditActions.d.ts +2 -2
  65. package/dist/types/contract/src/auditLabels.d.ts +111 -15
  66. package/dist/types/contract/src/authorize.d.ts +42 -14
  67. package/dist/types/contract/src/bridge.d.ts +34 -35
  68. package/dist/types/contract/src/consents.d.ts +32 -25
  69. package/dist/types/contract/src/deletion.d.ts +18 -0
  70. package/dist/types/contract/src/embeds.d.ts +16 -82
  71. package/dist/types/contract/src/{customerLabels.d.ts → endUserLabels.d.ts} +6 -9
  72. package/dist/types/contract/src/endUsers.d.ts +241 -0
  73. package/dist/types/contract/src/errorLabels.d.ts +63 -36
  74. package/dist/types/contract/src/errorLabelsEn.d.ts +46 -32
  75. package/dist/types/contract/src/errors.d.ts +28 -16
  76. package/dist/types/contract/src/eventSchemas.d.ts +70 -0
  77. package/dist/types/contract/src/eventTraces.d.ts +43 -0
  78. package/dist/types/contract/src/failureStatus.d.ts +14 -22
  79. package/dist/types/contract/src/fieldAccess.d.ts +8 -8
  80. package/dist/types/contract/src/formLabels.d.ts +3 -0
  81. package/dist/types/contract/src/forms.d.ts +4 -0
  82. package/dist/types/contract/src/grants.d.ts +26 -0
  83. package/dist/types/contract/src/headers.d.ts +5 -0
  84. package/dist/types/contract/src/hostingRpc.d.ts +23 -17
  85. package/dist/types/contract/src/identifiers.d.ts +45 -17
  86. package/dist/types/contract/src/ids.d.ts +18 -10
  87. package/dist/types/contract/src/import.d.ts +17 -16
  88. package/dist/types/contract/src/index.d.ts +52 -27
  89. package/dist/types/contract/src/integrationGraph.d.ts +83 -0
  90. package/dist/types/contract/src/issueLabels.d.ts +113 -81
  91. package/dist/types/contract/src/issueLabelsEn.d.ts +57 -41
  92. package/dist/types/contract/src/manage.d.ts +11 -7
  93. package/dist/types/contract/src/manageLabels.d.ts +2 -0
  94. package/dist/types/contract/src/manifestText.d.ts +66 -0
  95. package/dist/types/contract/src/messagePort.d.ts +208 -0
  96. package/dist/types/contract/src/migration.d.ts +2 -2
  97. package/dist/types/contract/src/notices.d.ts +38 -0
  98. package/dist/types/contract/src/operatorOperations.d.ts +0 -63
  99. package/dist/types/contract/src/outbound.d.ts +29 -0
  100. package/dist/types/contract/src/paths.d.ts +13 -0
  101. package/dist/types/contract/src/pending.d.ts +2 -0
  102. package/dist/types/contract/src/permissions.d.ts +7 -11
  103. package/dist/types/contract/src/perspective.d.ts +26 -0
  104. package/dist/types/contract/src/powers.d.ts +5 -0
  105. package/dist/types/contract/src/principal.d.ts +127 -56
  106. package/dist/types/contract/src/recordLabels.d.ts +6 -0
  107. package/dist/types/contract/src/roles.d.ts +7 -4
  108. package/dist/types/contract/src/ruleLabels.d.ts +16 -0
  109. package/dist/types/contract/src/ruleProblems.d.ts +16 -0
  110. package/dist/types/contract/src/schemaLabels.d.ts +8 -0
  111. package/dist/types/contract/src/settingProblems.d.ts +1 -1
  112. package/dist/types/contract/src/settings.d.ts +5 -7
  113. package/dist/types/contract/src/siteDeclaration.d.ts +7 -7
  114. package/dist/types/contract/src/siteIndex.d.ts +76 -0
  115. package/dist/types/contract/src/transfer.d.ts +1 -1
  116. package/dist/types/contract/src/trial.d.ts +4 -1
  117. package/dist/types/contract/src/versions.d.ts +1 -3
  118. package/dist/types/contract/src/viewEvent.d.ts +0 -9
  119. package/dist/types/contract/src/webhooks.d.ts +24 -3
  120. package/dist/types/contract/src/workflow.d.ts +13 -19
  121. package/dist/types/contract/src/workspaceItems.d.ts +20 -6
  122. package/dist/types/rich-text/src/html.d.ts +1 -1
  123. package/dist/types/rich-text/src/index.d.ts +8 -7
  124. package/dist/types/rich-text/src/labels/en.d.ts +1 -1
  125. package/dist/types/rich-text/src/labels/ja.d.ts +2 -2
  126. package/dist/types/rich-text/src/library.d.ts +1 -1
  127. package/dist/types/rich-text/src/media.d.ts +2 -0
  128. package/dist/types/rich-text/src/normalize.d.ts +1 -1
  129. package/dist/types/rich-text/src/problems.d.ts +5 -5
  130. package/dist/types/rich-text/src/profile.d.ts +10 -10
  131. package/dist/types/rich-text/src/render.d.ts +1 -1
  132. package/dist/types/rich-text/src/schema.d.ts +2 -2
  133. package/dist/types/rich-text/src/standard.d.ts +4 -4
  134. package/dist/types/rich-text/src/types.d.ts +2 -2
  135. package/dist/types/schema/src/audience.d.ts +1 -3
  136. package/dist/types/schema/src/capabilities.d.ts +18 -27
  137. package/dist/types/schema/src/changes.d.ts +3 -1
  138. package/dist/types/schema/src/collection.d.ts +138 -111
  139. package/dist/types/schema/src/defaultSchema.d.ts +8 -2
  140. package/dist/types/schema/src/fieldIds.d.ts +18 -0
  141. package/dist/types/schema/src/file.d.ts +22 -11
  142. package/dist/types/schema/src/fileRefs.d.ts +14 -0
  143. package/dist/types/schema/src/fileSignature.d.ts +20 -0
  144. package/dist/types/schema/src/filesCollection.d.ts +7 -0
  145. package/dist/types/schema/src/forms.d.ts +43 -0
  146. package/dist/types/schema/src/imageMetadata.d.ts +9 -0
  147. package/dist/types/schema/src/index.d.ts +18 -10
  148. package/dist/types/schema/src/input.d.ts +1 -1
  149. package/dist/types/schema/src/integrity.d.ts +8 -7
  150. package/dist/types/schema/src/kinds.d.ts +26 -0
  151. package/dist/types/schema/src/labels/en.d.ts +87 -46
  152. package/dist/types/schema/src/labels/ja.d.ts +89 -45
  153. package/dist/types/schema/src/mediaUrl.d.ts +26 -33
  154. package/dist/types/schema/src/page.d.ts +4 -4
  155. package/dist/types/schema/src/problems.d.ts +82 -41
  156. package/dist/types/schema/src/refs.d.ts +0 -9
  157. package/dist/types/schema/src/schema.d.ts +17 -12
  158. package/dist/types/schema/src/selfOps.d.ts +20 -19
  159. package/dist/types/schema/src/traits.d.ts +28 -0
  160. package/dist/types/schema/src/typesSource.d.ts +1 -1
  161. package/dist/types/schema/src/values.d.ts +5 -2
  162. package/dist/types/schema/src/widening.d.ts +3 -0
  163. package/dist/types/sdk/src/analytics.d.ts +2 -1
  164. package/dist/types/sdk/src/app.d.ts +40 -14
  165. package/dist/types/sdk/src/astro-image.d.ts +19 -0
  166. package/dist/types/sdk/src/astro-response.d.ts +6 -0
  167. package/dist/types/sdk/src/astro-server.d.ts +16 -0
  168. package/dist/types/sdk/src/astro.d.ts +19 -0
  169. package/dist/types/sdk/src/bridge.d.ts +2 -4
  170. package/dist/types/sdk/src/code.d.ts +61 -0
  171. package/dist/types/sdk/src/delegation.d.ts +13 -3
  172. package/dist/types/sdk/src/delivery/changes.d.ts +4 -4
  173. package/dist/types/sdk/src/delivery/client.d.ts +33 -22
  174. package/dist/types/sdk/src/delivery/fields.d.ts +3 -3
  175. package/dist/types/sdk/src/delivery/index.d.ts +3 -3
  176. package/dist/types/sdk/src/delivery/media.d.ts +5 -8
  177. package/dist/types/sdk/src/delivery/query.d.ts +15 -11
  178. package/dist/types/sdk/src/delivery/schema.d.ts +1 -1
  179. package/dist/types/sdk/src/delivery/values.d.ts +10 -14
  180. package/dist/types/sdk/src/delivery.d.ts +2 -2
  181. package/dist/types/sdk/src/dev-operations.d.ts +20 -0
  182. package/dist/types/sdk/src/dev.d.ts +6 -5
  183. package/dist/types/sdk/src/end-users.d.ts +190 -0
  184. package/dist/types/sdk/src/i18n.d.ts +2 -2
  185. package/dist/types/sdk/src/integrations.d.ts +14 -21
  186. package/dist/types/sdk/src/operations.d.ts +17 -0
  187. package/dist/types/sdk/src/preview.d.ts +2 -1
  188. package/dist/types/sdk/src/rich-text.d.ts +2 -2
  189. package/dist/types/sdk/src/schema.d.ts +1 -1
  190. package/dist/types/sdk/src/site/artifact.d.ts +64 -0
  191. package/dist/types/sdk/src/site/build-file.d.ts +30 -0
  192. package/dist/types/sdk/src/site/check-code.d.ts +14 -0
  193. package/dist/types/sdk/src/site/check-text.d.ts +19 -0
  194. package/dist/types/sdk/src/site/cli.d.ts +52 -0
  195. package/dist/types/sdk/src/site/content-type.d.ts +2 -0
  196. package/dist/types/sdk/src/site/labels.d.ts +14 -0
  197. package/dist/types/sdk/src/types.d.ts +1 -1
  198. package/dist/{types-B77qvqPJ.js → types-DkO2N7u2.js} +5 -6
  199. package/dist/types.js +1 -1
  200. package/dist/{typesSource-CWybQYus.js → typesSource-VJIxtN9b.js} +17 -15
  201. package/dist/workflow-CUpl6hO_.js +148 -0
  202. package/package.json +32 -6
  203. package/dist/apps-BxnJ1RlU.js +0 -435
  204. package/dist/bridge-DtHw9hS6.js +0 -74
  205. package/dist/collection-BEOxeISR.js +0 -189
  206. package/dist/customers-DTbL0qn6.js +0 -86
  207. package/dist/customers.d.ts +0 -1
  208. package/dist/customers.js +0 -185
  209. package/dist/embeds-B5V54Zur.js +0 -34
  210. package/dist/ids--RF7hGyC.js +0 -36
  211. package/dist/src-sazhzYui.js +0 -71
  212. package/dist/types/contract/src/customers.d.ts +0 -266
  213. package/dist/types/schema/src/legacy.d.ts +0 -2
  214. package/dist/types/schema/src/media.d.ts +0 -5
  215. package/dist/types/sdk/src/customers.d.ts +0 -184
@@ -0,0 +1,5 @@
1
+ /** 配信の応答の印のヘッダー(値は `1`。stale は障害の間に返した古い値、partial は一部が欠けた値) */
2
+ export declare const DELIVERY_MARK_HEADERS: {
3
+ readonly stale: "tunasand-stale";
4
+ readonly partial: "tunasand-partial";
5
+ };
@@ -1,5 +1,5 @@
1
- /** RPC の運営者の操作と、サイトのアップロードとコピーのメソッド(入力は受ける側が実行時に確認する) */
2
- export declare const HOSTING_RPC_METHODS: readonly ["registerSite", "deploySite", "siteVersions", "site", "syncAssignments", "stopSite", "resumeSite", "reattachResources", "purgeSiteResources", "syncHostnames", "acknowledgeAlert"];
1
+ /** RPC の運営者の操作と、サイトの配置と有効化とコピーのメソッド(入力は受ける側が実行時に確認する) */
2
+ export declare const HOSTING_RPC_METHODS: readonly ["registerSite", "placeSite", "verifySite", "activateSite", "site", "syncAssignments", "stopSite", "resumeSite", "reattachResources", "purgeSiteResources", "syncHostnames", "acknowledgeAlert"];
3
3
  export type HostingRpcMethod = (typeof HOSTING_RPC_METHODS)[number];
4
4
  /** 定期の確認の途絶と未対応の知らせ */
5
5
  export type HostingHealthView = Readonly<{
@@ -14,12 +14,15 @@ export type HostingHealthView = Readonly<{
14
14
  type HostingDeclaration = Readonly<{
15
15
  resources: readonly Readonly<{
16
16
  binding: string;
17
- kind: 'd1' | 'r2';
17
+ kind: 'database' | 'storage';
18
18
  }>[];
19
19
  crons: readonly string[];
20
20
  }>;
21
- /** サイトを上げる(deploySite)。trial と at は CMS がレジストリの行と時計から決める */
22
- export type HostingDeployRequest = Readonly<{
21
+ /**
22
+ * サイトの配置(placeSite)。配置は振り分けず、公開を替えるのは有効化だけ
23
+ * - trial と at は CMS がレジストリの行と時計から決める、key は CMS が置いた成果物の場所
24
+ */
25
+ export type HostingPlaceRequest = Readonly<{
23
26
  projectId: string;
24
27
  assignmentId: string;
25
28
  appId: string;
@@ -27,16 +30,16 @@ export type HostingDeployRequest = Readonly<{
27
30
  at: string;
28
31
  consentVersion: number;
29
32
  declaration: HostingDeclaration;
30
- source: Readonly<{
31
- kind: 'incoming';
32
- key: string;
33
- }> | Readonly<{
34
- kind: 'version';
35
- version: number;
36
- }>;
33
+ key: string;
37
34
  secrets: Readonly<Record<string, string>>;
38
35
  }>;
39
- /** インストールのコピー(syncAssignments) */
36
+ /** 有効化の前の確認(verifySite)と、確定の後の付け替え(activateSite)。version は配置の番号 */
37
+ export type HostingActivateRequest = Readonly<{
38
+ projectId: string;
39
+ assignmentId: string;
40
+ version: number;
41
+ }>;
42
+ /** インストールと有効なデプロイのコピー(syncAssignments。activeVersion は有効なデプロイの配置の番号で、有効化の前は null) */
40
43
  export type HostingSyncRequest = Readonly<{
41
44
  projectId: string;
42
45
  assignments: readonly Readonly<{
@@ -45,6 +48,7 @@ export type HostingSyncRequest = Readonly<{
45
48
  updatedAt: string;
46
49
  version: number;
47
50
  declaration: HostingDeclaration;
51
+ activeVersion: number | null;
48
52
  }>[];
49
53
  }>;
50
54
  /** ホスト名の状態のコピーの1件(正はコアのレジストリの domains。pending は所有を確かめ証明書を待つ独自のホスト名で、まだ振り分けない) */
@@ -59,7 +63,7 @@ export type HostingHostnameSyncRequest = Readonly<{
59
63
  projectId: string;
60
64
  hostnames: readonly HostingHostnameState[];
61
65
  }>;
62
- /** Cloudflare for SaaS が求める TXT(certificate は証明書の確認、ownership は所有の確認。DNS の担当が置く) */
66
+ /** ホスティング先が求める TXT(certificate は証明書の確認、ownership は所有の確認。DNS の担当が置く) */
63
67
  export type HostingValidationRecord = Readonly<{
64
68
  purpose: 'certificate' | 'ownership';
65
69
  name: string;
@@ -67,8 +71,8 @@ export type HostingValidationRecord = Readonly<{
67
71
  }>;
68
72
  /**
69
73
  * ホスト名ごとのコピーの結果
70
- * - certificate: 独自のホスト名の証明書(active は Cloudflare で所有と証明書の両方が有効、none は Cloudflare の側がない)
71
- * - error: コピーしなかった理由(site_not_found、site_uninstalled、not_configured、cloudflare_failed)
74
+ * - certificate: 独自のホスト名の証明書(active はホスティング先で所有と証明書の両方が有効、none はホスティング先に証明書がない)
75
+ * - error: コピーしなかった理由(site_not_found、site_uninstalled、not_configured、provider_failed)
72
76
  */
73
77
  export type HostingHostnameResult = Readonly<{
74
78
  hostname: string;
@@ -78,7 +82,9 @@ export type HostingHostnameResult = Readonly<{
78
82
  }>;
79
83
  /** 入力の型を契約で決めたメソッド(ほかは受ける側が実行時に確認する unknown) */
80
84
  type TypedMethods = Readonly<{
81
- deploySite(input: HostingDeployRequest): Promise<unknown>;
85
+ placeSite(input: HostingPlaceRequest): Promise<unknown>;
86
+ verifySite(input: HostingActivateRequest): Promise<unknown>;
87
+ activateSite(input: HostingActivateRequest): Promise<unknown>;
82
88
  syncAssignments(input: HostingSyncRequest): Promise<unknown>;
83
89
  syncHostnames(input: HostingHostnameSyncRequest): Promise<unknown>;
84
90
  health(): Promise<HostingHealthView>;
@@ -1,20 +1,16 @@
1
- import type { InfraId } from './ids.js';
1
+ import { type InfraId } from './ids.js';
2
2
  /** ID の種類 */
3
- export declare const ID_KINDS: readonly ["customer", "event"];
3
+ export declare const ID_KINDS: readonly ["end_user", "event"];
4
4
  export type IdKind = (typeof ID_KINDS)[number];
5
5
  /** UUID v7 の形(小文字の16進とハイフン) */
6
6
  export declare const UUID_V7: RegExp;
7
7
  /** 種類の ID の形か(作るのはサーバーで、どの種類も UUID v7) */
8
8
  export declare const isIdOf: (_kind: IdKind, value: string) => boolean;
9
- /** アプリが持つコレクションの id の区切り(`<名前空間>__<名前>`) */
10
- export declare const APP_COLLECTION_SEPARATOR = "__";
11
9
  /** アプリの名前空間の形(登録のときに決め、アプリの識別子に結び付けて変えない。アプリを消しても再利用しない)
12
10
  * 英小文字で始まる3〜32文字の英小文字・数字・ハイフン。末尾のハイフンと連続のハイフン(`--`、ホスト名の区切り)は不可 */
13
11
  export declare const APP_NAMESPACE_PATTERN: RegExp;
14
- /** アプリが持つコレクションの名前空間(アプリが持つコレクションでなければ null) */
15
- export declare function appNamespaceOf(collectionId: string): string | null;
16
12
  /** 操作の履歴の主体の種類(アカウント・運営者・インストール・アカウントの代わり・人の代わり・コア) */
17
- export declare const ACTOR_KINDS: readonly ["account", "operator", "installation", "on_behalf_of_account", "on_behalf_of_customer", "system"];
13
+ export declare const ACTOR_KINDS: readonly ["account", "operator", "installation", "on_behalf_of_account", "on_behalf_of_end_user", "system"];
18
14
  /** 操作の履歴の主体の種類 */
19
15
  export type ActorKind = (typeof ACTOR_KINDS)[number];
20
16
  /** 操作の履歴の経路(認証情報の種類で、漏えいのときに取り消す対象: ログインのセッション、MCP の接続、API キー、インストール済みアプリのトークン、アカウントのトークン、エージェントの鍵) */
@@ -34,25 +30,31 @@ export declare const ACTOR_KIND_OF_VIA: {
34
30
  export declare const AUDIT_SURFACES: readonly ["workspace", "console", "admin", "api", "mcp"];
35
31
  /** 操作の履歴のアクセス元 */
36
32
  export type AuditSurface = (typeof AUDIT_SURFACES)[number];
37
- /** 項目の種類「顧客への参照」の名前(値は顧客の ID の文字列) */
38
- export declare const CUSTOMER_REFERENCE_FIELD = "customer";
33
+ /** 項目の種類「エンドユーザーへの参照」の名前(値はエンドユーザーの ID の文字列) */
34
+ export declare const END_USER_REFERENCE_FIELD = "end_user";
39
35
  /**
40
- * 顧客のトークンの形(実装は要望の後、形だけを固定)
36
+ * エンドユーザーのトークンの形(実装は要望の後、形だけを固定)
41
37
  * - JWS のコンパクトな形。発行と検証はどちらも Tunasand だけで、署名の鍵は SECRETS_KEY からプロジェクトごとに HKDF で導く
42
38
  * - 更新の資格は refreshPrefix で始まる不透明な値(保存はハッシュだけ、使うたびに作り直す)
43
39
  */
44
- export declare const CUSTOMER_TOKEN: {
45
- readonly typ: "tunasand-member+jwt";
40
+ export declare const END_USER_TOKEN: {
41
+ readonly typ: "tunasand-end-user+jwt";
46
42
  readonly alg: "HS256";
47
43
  readonly ttlSec: 600;
48
- readonly refreshPrefix: "tunasand_rt_";
44
+ readonly refreshPrefix: "tns_eurt_";
49
45
  readonly absoluteSec: number;
50
46
  };
51
- /** 顧客のトークンのクレーム(iss はプロジェクトの CMS のホストの URL、aud はチャネル = インストールの ID、sv は顧客の状態の版、時刻は秒) */
52
- export type CustomerTokenClaims = Readonly<{
47
+ /**
48
+ * エンドユーザーのトークンのクレーム(ヘッダーは kid を持つ。時刻は秒)
49
+ * - iss はプロジェクトの API のホストの URL、sub はエンドユーザーの ID、aud は配信の基点(RFC 9068)
50
+ * - client_id はチャネル(インストール済みアプリの ID)、env は環境の ID、sv はエンドユーザーの状態の版
51
+ */
52
+ export type EndUserTokenClaims = Readonly<{
53
53
  iss: string;
54
54
  sub: string;
55
55
  aud: string;
56
+ client_id: string;
57
+ env: string;
56
58
  iat: number;
57
59
  exp: number;
58
60
  jti: string;
@@ -71,6 +73,25 @@ export declare const INSTALLATION_TOKEN: {
71
73
  readonly appJwtMaxSec: 600;
72
74
  readonly skewSec: 60;
73
75
  };
76
+ /**
77
+ * 読む版の選択のチケットの形(CMS がプレビューの転送ごとに発行し、サイトが配信 API の Bearer に載せる。DB に行を持たない)
78
+ * - JWS のコンパクトな形。署名の鍵は SECRETS_KEY からプロジェクトごとに HKDF で導き、ヘッダーの kid は主鍵の ID
79
+ * - クレーム: env は環境の ID、collection と sub は対象のレコード。権限は未公開の読み取りだけで、最新の版を重ねるのは対象のレコードだけ
80
+ */
81
+ export declare const PERSPECTIVE_TICKET_TOKEN: {
82
+ readonly typ: "tunasand-perspective+jwt";
83
+ readonly alg: "HS256";
84
+ readonly ttlSec: 300;
85
+ };
86
+ /** 読む版の選択のチケットのクレーム(秒は UNIX 時刻) */
87
+ export type PerspectiveTicketClaims = Readonly<{
88
+ env: string;
89
+ collection: string;
90
+ sub: string;
91
+ iat: number;
92
+ exp: number;
93
+ jti: string;
94
+ }>;
74
95
  /**
75
96
  * アカウントの資格の API のトークンの形(アプリのサーバーが画面のトークンをトークンの交換で替えたもの)
76
97
  * - JWS のコンパクトな形。発行と検証はどちらも Tunasand だけで、署名の鍵は SECRETS_KEY からプロジェクトごとに HKDF で導く
@@ -84,19 +105,26 @@ export declare const ACCOUNT_TOKEN: {
84
105
  /**
85
106
  * 代理の委任の主張の形(人がインストール済みアプリに自分の代理を委ねた印。アプリのサーバーがアプリの JWT のクライアント認証つきのトークンの交換で ACCOUNT_TOKEN に替える)
86
107
  * - 発行は人のログインの /api(console は組織のメンバーを確かめた後の RPC)、受け取りはトークンの交換だけ
87
- * - クレームは ACCOUNT_TOKEN と同じ形で、aud はインストール済みアプリの ID
108
+ * - クレームは ACCOUNT_TOKEN と同じ形で、aud はトークンの交換のエンドポイントの URL、client_id はインストール済みアプリの ID
88
109
  */
89
110
  export declare const DELEGATION_TOKEN: {
90
111
  readonly typ: "tunasand-delegation+jwt";
91
112
  readonly alg: "HS256";
92
113
  readonly ttlSec: 120;
93
114
  };
94
- /** アカウントの資格の API のトークンのクレーム(iss は発行した環境の CMS の URL、sub はアカウントの ID、aud はクライアントの ID、env は発行した環境の ID、時刻は秒) */
115
+ /**
116
+ * アカウントの資格の API のトークンのクレーム(時刻は秒)
117
+ * - iss は発行した環境の CMS の URL、sub はアカウントの ID、aud は検証する側(アカウントのトークンは iss と同じ基点)
118
+ * - client_id はクライアントの ID、env は発行した環境の ID
119
+ * - sid は画面のログインのセッションの ID(前段が本人を確認する構成は null)
120
+ */
95
121
  export type AccountTokenClaims = Readonly<{
96
122
  iss: string;
97
123
  sub: string;
98
124
  aud: string;
125
+ client_id: string;
99
126
  env: string;
127
+ sid: string | null;
100
128
  iat: number;
101
129
  exp: number;
102
130
  jti: string;
@@ -17,20 +17,22 @@ export declare const isUuid: (value: string) => boolean;
17
17
  export declare const isInfraId: (value: string) => boolean;
18
18
  /** 種類の基盤の ID の正の形か(外から来た値の検査。存在は呼び出し元が DB で引いて確かめる) */
19
19
  export declare const isInfraIdOf: <K extends InfraKind>(_kind: K, value: unknown) => value is InfraId<K>;
20
- /** UUID の128ビットを base32 の26文字に(UUID の形でなければ例外) */
21
- export declare function infraIdOfUuid<K extends InfraKind>(uuid: string): InfraId<K>;
20
+ /** UUID の128ビットを base32 の26文字に(UUID の形でなければ例外。基盤の ID と、DB の中の表と列の名前) */
21
+ export declare function base32OfUuid(uuid: string): string;
22
+ /** UUID の基盤の ID(base32 の26文字) */
23
+ export declare const infraIdOfUuid: <K extends InfraKind>(uuid: string) => InfraId<K>;
22
24
  /** base32 の正の形を UUID の文字列に(正の形でなければ例外) */
23
25
  export declare function uuidOfInfraId(id: string): string;
24
26
  /**
25
27
  * 入力の基盤の ID を正の形に(読めなければ null)。すべての入口(パス、本文、SDK、CLI)がここで読む
26
28
  * - Crockford の決まり: 大文字と小文字を区別せず、`i` と `l` を `1`、`o` を `0` として読み、`u` とハイフンは拒む
27
- * - UUID の形は受けない(DB の値の漏れ。入口は infraIdProblemOf の `infra_id_uuid` で拒む)
29
+ * - UUID の形は受けない(DB の値の漏れ。入口は infraIdProblemOf の `uuid_not_accepted` で拒む)
28
30
  */
29
31
  export declare function parseInfraId<K extends InfraKind>(value: string): InfraId<K> | null;
30
32
  /** 入力が UUID の形か(基盤の ID の入口の拒否の判定。前後の空白と大文字を許す) */
31
33
  export declare const isUuidForm: (value: string) => boolean;
32
- /** 基盤の ID として読めない入力の理由のコード(UUID の形は `infra_id_uuid`、ほかは `infra_id`) */
33
- export declare const infraIdProblemOf: (value: string) => "infra_id_uuid" | "infra_id";
34
+ /** 基盤の ID として読めない入力の理由のコード(UUID の形は `uuid_not_accepted`、ほかは `infra_id`) */
35
+ export declare const infraIdProblemOf: (value: string) => "uuid_not_accepted" | "infra_id";
34
36
  /**
35
37
  * URL のパスの基盤の ID(parseInfraId で寛容に読んだ正の形。UUID の形は null)
36
38
  * - ID の形でない値(スラッグ、エイリアス、試験の識別子)はそのまま返し、レジストリで引き直す
@@ -54,7 +56,7 @@ export declare const NAMESPACE_DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
54
56
  export declare const TUNASAND_NAMESPACE = "6f5529f8-7b29-5a80-aa7e-7700faad958b";
55
57
  /** 決まった名前から決まる ID(UUID v5、Tunasand の名前空間。標準のロール、カタログの項目、組み込みのコレクション、取り込んだデータ) */
56
58
  export declare function uuidV5Of(name: string, namespace?: string): Promise<string>;
57
- /** 取り込んだデータの種類(レコードとファイル。顧客の ID は形の検査が UUID v7 を求めるので、顧客の形を見直す#812で足す) */
59
+ /** 取り込んだデータの種類(レコードとファイル。エンドユーザーの ID は形の検査が UUID v7 を求めるので、エンドユーザーの形を見直す#812で足す) */
58
60
  export declare const IMPORTED_KINDS: readonly ["record", "file"];
59
61
  export type ImportedKind = (typeof IMPORTED_KINDS)[number];
60
62
  /**
@@ -83,8 +85,10 @@ export declare const appScreenHostLabel: (installationId: InfraId<"installation"
83
85
  * 秘密の値の接頭辞(値から種類が分かり、漏れの検出に使える)
84
86
  * - publishable: 配信の読み取りの API キー、secret: 書き込みと管理の API キー
85
87
  * - webhook: Webhook と外部関数の署名の鍵(Standard Webhooks)
86
- * - accessToken・refreshToken: MCP と OAuth、installationToken: アプリとエージェントの短命のトークン
87
- * - perspective・embed: サイトのプレビューの署名と埋め込みの秘密
88
+ * - accessToken・refreshToken: MCP と OAuth、installationToken: インストール済みアプリの短命のトークン
89
+ * - accountToken: アカウントのトークン、delegationToken: 代理の委任の主張、endUserRefreshToken: エンドユーザーのリフレッシュトークン
90
+ * - readToken: 範囲と期限を持つ未公開の読み取りのトークン、perspectiveTicket: 読む版の選択のチケット(プレビューの転送ごと)
91
+ * - screenToken: 画面のトークン
88
92
  */
89
93
  export declare const SECRET_TOKEN_PREFIXES: {
90
94
  readonly publishable: "tns_pk_";
@@ -93,8 +97,12 @@ export declare const SECRET_TOKEN_PREFIXES: {
93
97
  readonly accessToken: "tns_at_";
94
98
  readonly refreshToken: "tns_rt_";
95
99
  readonly installationToken: "tns_it_";
96
- readonly perspective: "tns_ps_";
97
- readonly embed: "tns_es_";
100
+ readonly accountToken: "tns_ut_";
101
+ readonly delegationToken: "tns_dt_";
102
+ readonly endUserRefreshToken: "tns_eurt_";
103
+ readonly readToken: "tns_ps_";
104
+ readonly perspectiveTicket: "tns_pt_";
105
+ readonly screenToken: "tns_st_";
98
106
  };
99
107
  export type SecretTokenKind = keyof typeof SECRET_TOKEN_PREFIXES;
100
108
  /** 秘密の値のトークン(接頭辞 + 256ビットの乱数の base62 + 末尾の CRC32 のチェックサム) */
@@ -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/customers) */
6
- export declare const CUSTOMERS_IMPORT_MAX = 50;
5
+ /** 1回のリクエストで取り込む人の数の上限(/api/transfer/end-users) */
6
+ export declare const END_USERS_IMPORT_MAX = 50;
7
7
  /** 対応表の人の予約のコレクション(コレクションの id に使えない $ で始める) */
8
- export declare const CUSTOMER_MAP_TYPE = "$customer";
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>" }、顧客フィールドは { "$customer": "<元の ID>" } で指せる(まとまりの中も)。元の 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>" }、顧客フィールドは { "$customer": "<人の元の ID>" }
33
+ * - 参照の項目は { "$origin": "<参照先のコレクションの元の ID>" }、エンドユーザーへの参照のフィールドは { "$end_user": "<人の元の ID>" }
33
34
  * - new_id: 作るレコードの ID(元の ID を URL に保つ取り出し元。なしは自動の ID)
34
35
  * - created_at: 元の作成の日時(作るときだけ当てる)
35
- * - 人(kind は customer)は /api/transfer/customers の1人の形
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
- /** 顧客フィールドの値で、人の元の ID を指す形の印({ "$customer": "<元の ID>" }) */
49
- export declare const CUSTOMER_REF = "$customer";
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 は customer)。kind と source を除いた値が /api/transfer/customers の1人
54
- * - identities は発行者の設定の id と外部 ID、grants は対象のコレクションと対象と期間
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 ImportCustomerLine = Readonly<{
59
- kind: 'customer';
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
- grants?: readonly Readonly<{
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 | ImportCustomerLine;
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進) */
@@ -268,9 +269,9 @@ export type SourceVerifyResult = Readonly<{
268
269
  export declare const IMPORT_EVENTS: {
269
270
  readonly completed: "import.completed";
270
271
  };
271
- /** 取り込みの完了のイベントの値(runId は実行の ID、source は取り出し元、rows はこの実行が対応表に書いた行のコレクションごとの数で、飛ばしたレコードは数えない) */
272
+ /** 取り込みの完了のイベントの値(run_id は実行の ID、source は取り出し元、rows はこの実行が対応表に書いた行のコレクションごとの数で、飛ばしたレコードは数えない) */
272
273
  export type ImportCompletedData = Readonly<{
273
- runId: string;
274
+ run_id: string;
274
275
  source: string;
275
276
  rows: Readonly<Record<string, number>>;
276
277
  }>;
@@ -1,48 +1,54 @@
1
- export { API_KEY_ALL_COLLECTIONS, 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';
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
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 } from './errorLabels.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
4
  export { ERROR_MESSAGES_EN } from './errorLabelsEn.js';
5
5
  export { API_ISSUE_MESSAGES, type ApiIssueCode, apiIssueText } from './issueLabels.js';
6
6
  export { API_ISSUE_MESSAGES_EN } from './issueLabelsEn.js';
7
7
  export { importKindLabel, importProblemLabel, issueLabel, labelTableProblems, PROBLEM_MESSAGES, PROBLEM_MESSAGES_EN, problemEnglish, problemLabel } from './problems.js';
8
8
  export { type AppProblem, appProblems } from './appProblems.js';
9
- export { FAILURE_STATUS, type FailureCode, RETRY_AFTER_SEC, retryHeadersOf, SCHEMA_PROMOTION_ERRORS, type SchemaPromotionError } 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 } from './errors.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
11
  export { CHANGES_LABELS, STATUS } from './labels.js';
12
12
  export { SETTING_PROBLEMS, SettingProblem, type SettingProblemCode, settingProblemText } from './settingProblems.js';
13
13
  export { type CalendarField, calendarFieldSource, type CalendarItem, type StandardAppState, type StandardAppUpdate, type PendingItem, permissionTargetsOf } from './workspaceItems.js';
14
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
15
  export { applyFieldRules, autoFieldsOf, type FieldRef, type FieldRule, hiddenFieldsOf, restrictedChoicesOf, restrictedProblemsOf } from './fieldRules.js';
16
- export { pendingIds, pendingValue } from './pending.js';
17
- export { type AccountLink, type Action, ACTION_LEVELS, ACTIONS, allows, ANY_TARGET, canChangeRow, canDeleteContent, canEditContent, canPublishContent, canReadContent, canReadRow, canSubmitContent, checkPermissions, type ContentAccess, type Level, LEVELS, levelOf, ownsContent, ownsRow, type Permissions, permissionsUnion, reaches, type RowAccess, withPrivateTargets } from './permissions.js';
18
- export { audiencesFor, type AudienceCollection, canReadField, DELIVERED, type FieldReader, SELF_SEES, selfUnwritableKeys, PUBLIC_ONLY, readableFields, readableValues, seesAll, titleFor, unwritableKeys, withHiddenValues } from './fieldAccess.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
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 { ACCOUNT_KINDS, type AccountDelegation, type AccountKind, type ActingKind, actingKindOf, appPrincipalOf, type AppPrincipal, type Capabilities, type CustomerContext, type CustomerPrincipal, customerOf, onBehalfOfCustomer, type PrincipalAccount, type PrincipalContext, principalOfUser, viaOfUser } from './principal.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';
21
23
  export { SUPPORT_ACCESS_KINDS, SUPPORT_ACCESS_LIMITS, SUPPORT_ACCESS_SCOPES, type SupportAccess, type SupportAccessKind, type SupportAccessScope } from './operators.js';
22
- export { ADMIN_PERMISSIONS, ADMIN_ROLE, defaultRoleOf, isAdmin, rolePermissionsOf, type Role, SYSTEM_ROLES, type User, DEFAULT_ROLE } from './roles.js';
23
- export { ENV_PATH, envPathOf, isServerPath, withEnvPrefix, MCP_OAUTH_PATH, ADMIN_PATHS, SERVER_PATHS } from './paths.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';
24
26
  export { CONFIG_FORMAT, type ConfigBundle, type ConfigPreview } from './transfer.js';
25
- export { canonicalHash, canonicalJson, CUSTOMERS_IMPORT_MAX, CUSTOMER_MAP_TYPE, type ImportCompletedData, IMPORT_EVENTS, IMPORT_ITEMS_MAX, IMPORT_PROBLEMS, type ImportIdChange, type ImportIdConflict, importIdOf, type ImportIdPlan, importItemOfRow, type ImportLine, type ImportCustomerLine, 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, CUSTOMER_REF, planImportIds, sourceOf, withoutOrigins } from './import.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';
26
28
  export { IMPORT_EVENT_LABELS } from './importLabels.js';
29
+ export { FORM_EVENTS } from './forms.js';
30
+ export { FORM_EVENT_LABELS } from './formLabels.js';
27
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';
28
- export { ADMIN_FRAME_SOURCES_PATH, EMBED_ACTION_IDS_MAX, 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_CONTEXT_NEXT_PARAM, EMBED_CONTEXT_PARAM, EMBED_CONTEXT_REFRESH_SEC, EMBED_CONTEXT_TTL_SEC, EMBED_MESSAGES, EMBED_PLACEMENTS, EMBED_SCREEN_PLACEMENTS, embedCapabilities, type EmbedContext, type EmbedContextResponse, type EmbedEntry, type EmbedMessage, type EmbedPlacement, type ExternalScreen } from './embeds.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';
29
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';
30
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';
31
35
  export { FUNCTION_HOOK_LABELS } from './functionLabels.js';
32
- export { INSTALLATION_EVENTS, type InstallationDeletedData, 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';
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';
33
37
  export { INSTALLATION_EVENT_LABELS, WEBHOOK_ACTION_LABELS } from './webhookLabels.js';
34
- export { type CustomersConfig, customersConfigOf, DEFAULT_CUSTOMERS_SETTINGS, GRANT_MONTHS, endsOnAfterMonths, grantEndsOn, isGrantMonths, type GrantSource, GRANT_SOURCES, INVITE_CODE_PLACEHOLDER, isCustomerStatus, LINE_PROVIDER, lineProvider, OWN_DOMAINS, SELF_API_ERRORS, type SelfApiError, CUSTOMER_API_ERRORS, CUSTOMER_EVENTS, CUSTOMER_ID_TOKEN_ALGORITHMS, CUSTOMER_STATUSES, CUSTOMERS_KEY_TARGET, CUSTOMERS_LIMITS, CUSTOMERS_SETTINGS_ISSUES, CUSTOMERS_SETTINGS_KEY, type CustomerApiGrant, type CustomerApiError, type CustomerApiResult, type CustomerCandidateResult, type CustomerDetail, type CustomerGrantView, type CustomerEventData, type PendingIdentityView, type CustomerIdentityView, type CustomerIdTokenAlgorithm, type CustomerListItem, type CustomerProfileView, type CustomerProvider, type CustomersSettings, type CustomersSettingsProblem, type CustomerStatus, parseCustomersSettings, type PublicClientCapability } from './customers.js';
35
- export { CUSTOMER_EVENT_LABELS } from './customerLabels.js';
36
- export { CONSENT_CHANNELS, 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 CustomerApiConsent, type CustomerApiConsentResult, type CustomerApiConsents, type CustomerConsents, RECONSENT_METHODS, reconsents, SUPPRESS_ALL_PURPOSES } from './consents.js';
37
- export { addedCapabilities, APP_KEY_USES, APP_SETTINGS_TARGETS, APP_KINDS, APP_MANIFEST_LIMITS, APP_SCREEN_ICONS, APP_SCREEN_LABEL_MAX, APP_SCREEN_PLACEMENTS, APP_SLOT_PREFIX, type AppKind, type AppManifest, type AppManifestProblem, appManifestProblems, type AppScreen, type AppScreenIcon, type AppScreenPlacement, type AppScreenRequires, type ConnectionPoint, type PermissionTarget, type AppSlot, 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, personalCapabilities, type RegisteredApp, registeringManifestProblems, screenCollectionOf, COLLECTION_SCREEN_PLACEMENTS, unfilledSlots } from './apps.js';
38
- export { APP_DEPENDENCY_LIMITS, APP_RESERVED_FIELD_KEYS, appCollectionIdOf, 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';
39
- export { CONTRACT_VERSION_HEADER, DELIVERY_VERSION, EXPORT_FORMAT } from './versions.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';
40
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';
41
47
  export { MCP_CLIENT_LABELS, mcpClientLabelOf } from './mcpLabels.js';
42
- export { ACTOR_KIND_OF_VIA, ACTOR_KINDS, type ActorKind, APP_NAMESPACE_PATTERN, APP_COLLECTION_SEPARATOR, appNamespaceOf, AUDIT_SURFACES, AUDIT_VIAS, type AuditSurface, type AuditVia, ID_KINDS, type IdKind, UUID_V7, INSTALLATION_TOKEN, type InstallationTokenClaims, ACCOUNT_TOKEN, type AccountTokenClaims, DELEGATION_TOKEN, isIdOf, CUSTOMER_REFERENCE_FIELD, CUSTOMER_TOKEN, type CustomerTokenClaims } from './identifiers.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';
43
49
  export { type SavedView, VIEW_ACTIONS, type ViewAction, type ViewDefinition } from './views.js';
44
- export { RECORD_ACTIONS, RECORD_STATES, type RecordAction, recordActions, type RecordChanges, recordGuard, type RecordGuard, type RecordGuardInput, type RecordRow, type RecordState, recordStateOf, isLiveState, type WorkflowPublishing } from './workflow.js';
45
- export { canManage, isManageTarget, MANAGE_CHECKS, type ManageCheck, manageChecksOf, manageRowsOf, manageTarget, projectAccountPrincipal, REAUTH_FACTORS, type ReauthFactor, reauthFactorsOf, roleWithin, type RoleScope } from './manage.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';
46
52
  export { MANAGE_CHECK_LABELS } from './manageLabels.js';
47
53
  export { projectRoleOf } from './projectRole.js';
48
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';
@@ -51,17 +57,36 @@ export { canManageSettings, isSettingsTarget, managedAreasOf, SETTINGS_AREAS, ty
51
57
  export { SETTINGS_AREA_LABELS } from './settingsLabels.js';
52
58
  export { SITE_CAPABILITY_PREFIXES, type SiteDeclaration, siteDeclarationOf, type SiteHostingManifest } from './siteDeclaration.js';
53
59
  export { ARTIFACT_KEYS, MODULE_CONTENT_TYPES, MODULE_EXTENSIONS, MODULE_NAME, SITE_ARTIFACT, type SiteModuleType, siteModuleTypeOf, UPLOAD_FORM_PARTS } from './siteArtifact.js';
54
- export { HOSTING_ACTIONS, HOSTING_OPERATIONS, HOSTING_RPC_METHODS, type HostingAction, type HostingDeployRequest, type HostingHealthView, type HostingHostnameResult, type HostingHostnameState, type HostingHostnameSyncRequest, type HostingValidationRecord, hostingOperationInput, type HostingRpc, type HostingRpcMethod, type HostingSyncRequest } from './hostingRpc.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';
55
61
  export { isReservedSlug, RESERVED_SLUGS } from './slugs.js';
56
62
  export { HOSTNAME_PROBLEMS, type HostnameProblem, hostSpaceOf, isUnderZone, normalizeHostname, requestHost, TRIAL_SUFFIX, trialHostname } from './hostnames.js';
57
63
  export { isTrialHost, isTrialSiteHost, TRIAL_HOST_SUFFIX, TRIAL_SITE_SUFFIX, trialSiteLabel } from './trial.js';
58
- export { appScreenHostLabel, 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';
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';
59
65
  export { type LivePeriod, livePeriodsOf, type PromoteRow, withinLivePeriods } from './livePeriods.js';
60
66
  export { AUDIT_ACTION_CODES, type AuditActionCode, type AuditActionRow, auditActionValues, NON_COLLECTION_TARGETS, normalizeAuditAction, targetLabelOf, withTargetLabel } from './auditActions.js';
61
67
  export { LEGACY_AUDIT_ACTIONS, LEGACY_AUDIT_SUFFIXES, LEGACY_APP_AUDIT_ACTIONS } from './legacyAuditLabels.js';
62
68
  export { AUDIT_ACTION_MESSAGES, auditActionLabel } from './auditLabels.js';
63
- export { type AppContext, type AppRoute, type AppRouteMethod, type AppRoutePolicy, type CmsClient, egressAllows } from './app.js';
64
- export type { AppDeliveryContext, AppDeliveryRoute, AppJob, AppMaster, AppRow, AppScope, AppServer, AppServerContext, AppServerParts, AuditRule, CollectionRule, FileColumns, Problem, RecordRuleContext, Rule, RuleStage, SaveCheck, SaveCheckContext, SaveCheckResult } from './appServer.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';
65
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';
66
- export { type Classify, VIEW_COLUMNS, VIEW_SCHEMA, type ViewEvent, viewOf, type ViewOptions } from './viewEvent.js';
80
+ export { type Classify, VIEW_COLUMNS, type ViewEvent, viewOf, type ViewOptions } from './viewEvent.js';
67
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';