@tunasand/sdk 0.8.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/CHANGELOG.md +137 -0
  2. package/README.md +165 -144
  3. package/dist/analytics.js +183 -109
  4. package/dist/app.js +276 -166
  5. package/dist/apps-BysPfMuR.js +408 -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-C2Bl-OAF.js +80 -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-26aglrg6.js +282 -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-DY6O5TrJ.js +29 -0
  27. package/dist/end-users.d.ts +1 -0
  28. package/dist/end-users.js +189 -0
  29. package/dist/endUsers-DODfjnv1.js +77 -0
  30. package/dist/{errorLabels-BgtQ_zUn.js → errorLabels-BK1NJ6Wz.js} +374 -238
  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-B3lAaOhZ.js} +91 -45
  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/paymentPort-p1jV44Zz.js +203 -0
  41. package/dist/preview.js +8 -1
  42. package/dist/{profile-1em_lcxq.js → profile-DBsXLvvI.js} +48 -48
  43. package/dist/rich-text.js +16 -16
  44. package/dist/{schema-WnobuwLg.js → schema-Bs_BUUNv.js} +526 -265
  45. package/dist/schema.js +66 -88
  46. package/dist/types/access/src/handoff.d.ts +19 -14
  47. package/dist/types/access/src/index.d.ts +2 -2
  48. package/dist/types/access/src/jws.d.ts +41 -0
  49. package/dist/types/access/src/oidc.d.ts +12 -2
  50. package/dist/types/access/src/signed.d.ts +0 -2
  51. package/dist/types/adapter-cloudflare/src/eventLog/viewSchema.d.ts +11 -0
  52. package/dist/types/contract/src/accountProfile.d.ts +7 -0
  53. package/dist/types/contract/src/api/define.d.ts +165 -0
  54. package/dist/types/contract/src/apiKeys.d.ts +6 -2
  55. package/dist/types/contract/src/app.d.ts +32 -7
  56. package/dist/types/contract/src/appChannels.d.ts +152 -0
  57. package/dist/types/contract/src/appDefinition.d.ts +11 -5
  58. package/dist/types/contract/src/appDependencies.d.ts +107 -24
  59. package/dist/types/contract/src/appIdentities.d.ts +21 -0
  60. package/dist/types/contract/src/appInbound.d.ts +53 -0
  61. package/dist/types/contract/src/appMail.d.ts +106 -0
  62. package/dist/types/contract/src/appSecrets.d.ts +63 -0
  63. package/dist/types/contract/src/appServer.d.ts +460 -45
  64. package/dist/types/contract/src/approvals.d.ts +1 -1
  65. package/dist/types/contract/src/apps.d.ts +126 -60
  66. package/dist/types/contract/src/auditActions.d.ts +2 -2
  67. package/dist/types/contract/src/auditLabels.d.ts +120 -15
  68. package/dist/types/contract/src/authorize.d.ts +42 -14
  69. package/dist/types/contract/src/bridge.d.ts +35 -36
  70. package/dist/types/contract/src/consents.d.ts +29 -27
  71. package/dist/types/contract/src/deletion.d.ts +18 -0
  72. package/dist/types/contract/src/embeds.d.ts +26 -90
  73. package/dist/types/contract/src/{customerLabels.d.ts → endUserLabels.d.ts} +6 -9
  74. package/dist/types/contract/src/endUsers.d.ts +244 -0
  75. package/dist/types/contract/src/errorLabels.d.ts +67 -37
  76. package/dist/types/contract/src/errorLabelsEn.d.ts +50 -33
  77. package/dist/types/contract/src/errors.d.ts +28 -16
  78. package/dist/types/contract/src/eventSchemas.d.ts +70 -0
  79. package/dist/types/contract/src/eventTraces.d.ts +41 -0
  80. package/dist/types/contract/src/failureStatus.d.ts +14 -22
  81. package/dist/types/contract/src/fieldAccess.d.ts +8 -8
  82. package/dist/types/contract/src/formLabels.d.ts +3 -0
  83. package/dist/types/contract/src/forms.d.ts +4 -0
  84. package/dist/types/contract/src/grants.d.ts +26 -0
  85. package/dist/types/contract/src/headers.d.ts +5 -0
  86. package/dist/types/contract/src/hostingRpc.d.ts +44 -19
  87. package/dist/types/contract/src/identifiers.d.ts +45 -17
  88. package/dist/types/contract/src/ids.d.ts +18 -10
  89. package/dist/types/contract/src/import.d.ts +17 -16
  90. package/dist/types/contract/src/index.d.ts +57 -29
  91. package/dist/types/contract/src/integrationGraph.d.ts +83 -0
  92. package/dist/types/contract/src/issueLabels.d.ts +121 -81
  93. package/dist/types/contract/src/issueLabelsEn.d.ts +61 -41
  94. package/dist/types/contract/src/manage.d.ts +16 -7
  95. package/dist/types/contract/src/manageLabels.d.ts +2 -0
  96. package/dist/types/contract/src/manifestText.d.ts +66 -0
  97. package/dist/types/contract/src/messagePort.d.ts +208 -0
  98. package/dist/types/contract/src/migration.d.ts +2 -2
  99. package/dist/types/contract/src/notices.d.ts +37 -0
  100. package/dist/types/contract/src/operationEffects.d.ts +39 -0
  101. package/dist/types/contract/src/operatorOperations.d.ts +104 -110
  102. package/dist/types/contract/src/outbound.d.ts +29 -0
  103. package/dist/types/contract/src/paths.d.ts +13 -0
  104. package/dist/types/contract/src/paymentPort.d.ts +129 -0
  105. package/dist/types/contract/src/pending.d.ts +2 -0
  106. package/dist/types/contract/src/permissions.d.ts +7 -11
  107. package/dist/types/contract/src/perspective.d.ts +26 -0
  108. package/dist/types/contract/src/powers.d.ts +5 -0
  109. package/dist/types/contract/src/principal.d.ts +127 -56
  110. package/dist/types/contract/src/readPages.d.ts +92 -0
  111. package/dist/types/contract/src/recordLabels.d.ts +6 -0
  112. package/dist/types/contract/src/roles.d.ts +7 -4
  113. package/dist/types/contract/src/ruleLabels.d.ts +16 -0
  114. package/dist/types/contract/src/ruleProblems.d.ts +16 -0
  115. package/dist/types/contract/src/schemaLabels.d.ts +8 -0
  116. package/dist/types/contract/src/settingProblems.d.ts +18 -1
  117. package/dist/types/contract/src/settings.d.ts +5 -7
  118. package/dist/types/contract/src/siteDeclaration.d.ts +7 -7
  119. package/dist/types/contract/src/siteIndex.d.ts +76 -0
  120. package/dist/types/contract/src/transfer.d.ts +1 -1
  121. package/dist/types/contract/src/trial.d.ts +4 -1
  122. package/dist/types/contract/src/versions.d.ts +1 -3
  123. package/dist/types/contract/src/viewEvent.d.ts +0 -9
  124. package/dist/types/contract/src/webhooks.d.ts +24 -3
  125. package/dist/types/contract/src/workflow.d.ts +16 -19
  126. package/dist/types/contract/src/workspaceItems.d.ts +23 -7
  127. package/dist/types/contract/src/workspacePaths.d.ts +1 -1
  128. package/dist/types/rich-text/src/html.d.ts +1 -1
  129. package/dist/types/rich-text/src/index.d.ts +8 -7
  130. package/dist/types/rich-text/src/labels/en.d.ts +1 -1
  131. package/dist/types/rich-text/src/labels/ja.d.ts +2 -2
  132. package/dist/types/rich-text/src/library.d.ts +1 -1
  133. package/dist/types/rich-text/src/media.d.ts +2 -0
  134. package/dist/types/rich-text/src/normalize.d.ts +1 -1
  135. package/dist/types/rich-text/src/problems.d.ts +5 -5
  136. package/dist/types/rich-text/src/profile.d.ts +10 -10
  137. package/dist/types/rich-text/src/render.d.ts +1 -1
  138. package/dist/types/rich-text/src/schema.d.ts +2 -2
  139. package/dist/types/rich-text/src/standard.d.ts +4 -4
  140. package/dist/types/rich-text/src/types.d.ts +2 -2
  141. package/dist/types/schema/src/audience.d.ts +1 -3
  142. package/dist/types/schema/src/capabilities.d.ts +18 -27
  143. package/dist/types/schema/src/changes.d.ts +3 -1
  144. package/dist/types/schema/src/collection.d.ts +142 -111
  145. package/dist/types/schema/src/defaultSchema.d.ts +8 -2
  146. package/dist/types/schema/src/fieldIds.d.ts +18 -0
  147. package/dist/types/schema/src/file.d.ts +24 -11
  148. package/dist/types/schema/src/fileRefs.d.ts +14 -0
  149. package/dist/types/schema/src/fileSignature.d.ts +20 -0
  150. package/dist/types/schema/src/filesCollection.d.ts +7 -0
  151. package/dist/types/schema/src/forms.d.ts +43 -0
  152. package/dist/types/schema/src/imageMetadata.d.ts +9 -0
  153. package/dist/types/schema/src/index.d.ts +19 -10
  154. package/dist/types/schema/src/indexes.d.ts +11 -0
  155. package/dist/types/schema/src/input.d.ts +1 -1
  156. package/dist/types/schema/src/integrity.d.ts +8 -7
  157. package/dist/types/schema/src/kinds.d.ts +26 -0
  158. package/dist/types/schema/src/labels/en.d.ts +89 -46
  159. package/dist/types/schema/src/labels/ja.d.ts +92 -46
  160. package/dist/types/schema/src/mediaUrl.d.ts +26 -33
  161. package/dist/types/schema/src/page.d.ts +4 -4
  162. package/dist/types/schema/src/problems.d.ts +85 -42
  163. package/dist/types/schema/src/refs.d.ts +0 -9
  164. package/dist/types/schema/src/schema.d.ts +17 -12
  165. package/dist/types/schema/src/selfOps.d.ts +20 -19
  166. package/dist/types/schema/src/traits.d.ts +28 -0
  167. package/dist/types/schema/src/typesSource.d.ts +1 -1
  168. package/dist/types/schema/src/values.d.ts +5 -2
  169. package/dist/types/schema/src/widening.d.ts +3 -0
  170. package/dist/types/sdk/src/analytics.d.ts +2 -1
  171. package/dist/types/sdk/src/app.d.ts +43 -14
  172. package/dist/types/sdk/src/astro-image.d.ts +19 -0
  173. package/dist/types/sdk/src/astro-response.d.ts +6 -0
  174. package/dist/types/sdk/src/astro-server.d.ts +16 -0
  175. package/dist/types/sdk/src/astro.d.ts +19 -0
  176. package/dist/types/sdk/src/bridge.d.ts +2 -4
  177. package/dist/types/sdk/src/code.d.ts +61 -0
  178. package/dist/types/sdk/src/delegation.d.ts +13 -3
  179. package/dist/types/sdk/src/delivery/changes.d.ts +4 -4
  180. package/dist/types/sdk/src/delivery/client.d.ts +33 -22
  181. package/dist/types/sdk/src/delivery/fields.d.ts +3 -3
  182. package/dist/types/sdk/src/delivery/index.d.ts +3 -3
  183. package/dist/types/sdk/src/delivery/media.d.ts +5 -8
  184. package/dist/types/sdk/src/delivery/query.d.ts +15 -11
  185. package/dist/types/sdk/src/delivery/schema.d.ts +1 -1
  186. package/dist/types/sdk/src/delivery/values.d.ts +10 -14
  187. package/dist/types/sdk/src/delivery.d.ts +2 -2
  188. package/dist/types/sdk/src/dev-operations.d.ts +20 -0
  189. package/dist/types/sdk/src/dev.d.ts +6 -5
  190. package/dist/types/sdk/src/end-users.d.ts +187 -0
  191. package/dist/types/sdk/src/i18n.d.ts +2 -2
  192. package/dist/types/sdk/src/integrations.d.ts +14 -21
  193. package/dist/types/sdk/src/operations.d.ts +17 -0
  194. package/dist/types/sdk/src/preview.d.ts +2 -1
  195. package/dist/types/sdk/src/rich-text.d.ts +2 -2
  196. package/dist/types/sdk/src/schema.d.ts +1 -1
  197. package/dist/types/sdk/src/site/artifact.d.ts +64 -0
  198. package/dist/types/sdk/src/site/build-file.d.ts +30 -0
  199. package/dist/types/sdk/src/site/check-code.d.ts +14 -0
  200. package/dist/types/sdk/src/site/check-text.d.ts +19 -0
  201. package/dist/types/sdk/src/site/cli.d.ts +52 -0
  202. package/dist/types/sdk/src/site/content-type.d.ts +2 -0
  203. package/dist/types/sdk/src/site/labels.d.ts +14 -0
  204. package/dist/types/sdk/src/types.d.ts +1 -1
  205. package/dist/{types-B77qvqPJ.js → types-CYnY-63C.js} +5 -6
  206. package/dist/types.js +1 -1
  207. package/dist/{typesSource-CWybQYus.js → typesSource-BTA9-rcB.js} +17 -15
  208. package/package.json +32 -6
  209. package/dist/apps-BxnJ1RlU.js +0 -435
  210. package/dist/bridge-DtHw9hS6.js +0 -74
  211. package/dist/collection-BEOxeISR.js +0 -189
  212. package/dist/customers-DTbL0qn6.js +0 -86
  213. package/dist/customers.d.ts +0 -1
  214. package/dist/customers.js +0 -185
  215. package/dist/embeds-B5V54Zur.js +0 -34
  216. package/dist/ids--RF7hGyC.js +0 -36
  217. package/dist/src-sazhzYui.js +0 -71
  218. package/dist/types/contract/src/customers.d.ts +0 -266
  219. package/dist/types/schema/src/legacy.d.ts +0 -2
  220. package/dist/types/schema/src/media.d.ts +0 -5
  221. package/dist/types/sdk/src/customers.d.ts +0 -184
@@ -1,48 +1,55 @@
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
- export { SETTING_PROBLEMS, SettingProblem, type SettingProblemCode, settingProblemText } from './settingProblems.js';
12
+ export { SETTING_PROBLEMS, SettingProblem, type SettingProblemCode, settingProblemText, type SettingRow, settingRowsOf } 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 { EXTERNAL_EFFECTS, type ExternalEffect, type Invocation, type OperationConfirm, type OperationEffect, type ConfirmWeight, CONFIRM_WEIGHTS, REACHES, type Reach, RECENT_LOGIN_WINDOW_SEC, recentlySignedIn, REVERSALS, type Reversal, weightOf } from './operationEffects.js';
25
+ 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';
26
+ 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
27
  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';
28
+ 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
29
  export { IMPORT_EVENT_LABELS } from './importLabels.js';
30
+ export { FORM_EVENTS } from './forms.js';
31
+ export { FORM_EVENT_LABELS } from './formLabels.js';
27
32
  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';
33
+ 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 AdminFrameSource, EMBED_LIST_SLOTS, type EmbedListSlot, EMBED_PLACEMENTS, EMBED_UI_SLOTS, type EmbedUiSlot, embedCapabilities, type EmbedContextResponse, type EmbedEntry, type EmbedPlacement, type ExternalScreen } from './embeds.js';
29
34
  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
35
  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
36
  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';
37
+ 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
38
  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';
39
+ 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';
40
+ export { END_USER_EVENT_LABELS } from './endUserLabels.js';
41
+ 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 EndUserConsents, RECONSENT_METHODS, reconsents, SUPPRESS_ALL_PURPOSES } from './consents.js';
42
+ 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 AppUiBadge, 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';
43
+ 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';
44
+ export { type AppNotice, type AppNotices, appNotices, NOTICES_PORT } from './notices.js';
45
+ 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 AppSettingRowField, 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';
46
+ export { DELIVERY_VERSION, EXPORT_FORMAT } from './versions.js';
40
47
  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
48
  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';
49
+ 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
50
  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';
51
+ export { RECORD_ACTIONS, RECORD_STATES, type RecordAction, recordActions, type RecordChanges, recordGuard, type RecordGuard, type RecordGuardInput, type RecordRow, type RecordState, recordStateOf, isLiveState } from './workflow.js';
52
+ export { canManage, isManageTarget, MCP_MANAGED_AREAS, mcpManages, mcpReadsProject, MANAGE_CHECKS, type ManageCheck, manageChecksOf, manageRowsOf, manageTarget, projectAccountPrincipal, REAUTH_FACTORS, type ReauthFactor, reauthFactorsOf, roleWithin, type RoleScope } from './manage.js';
46
53
  export { MANAGE_CHECK_LABELS } from './manageLabels.js';
47
54
  export { projectRoleOf } from './projectRole.js';
48
55
  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 +58,38 @@ export { canManageSettings, isSettingsTarget, managedAreasOf, SETTINGS_AREAS, ty
51
58
  export { SETTINGS_AREA_LABELS } from './settingsLabels.js';
52
59
  export { SITE_CAPABILITY_PREFIXES, type SiteDeclaration, siteDeclarationOf, type SiteHostingManifest } from './siteDeclaration.js';
53
60
  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';
61
+ export { HOSTING_ACTIONS, HOSTING_OPERATIONS, HOSTING_RPC_METHODS, hostingActionOfPath, hostingOperationRequest, 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
62
  export { isReservedSlug, RESERVED_SLUGS } from './slugs.js';
56
63
  export { HOSTNAME_PROBLEMS, type HostnameProblem, hostSpaceOf, isUnderZone, normalizeHostname, requestHost, TRIAL_SUFFIX, trialHostname } from './hostnames.js';
57
64
  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';
65
+ 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
66
  export { type LivePeriod, livePeriodsOf, type PromoteRow, withinLivePeriods } from './livePeriods.js';
60
67
  export { AUDIT_ACTION_CODES, type AuditActionCode, type AuditActionRow, auditActionValues, NON_COLLECTION_TARGETS, normalizeAuditAction, targetLabelOf, withTargetLabel } from './auditActions.js';
61
68
  export { LEGACY_AUDIT_ACTIONS, LEGACY_AUDIT_SUFFIXES, LEGACY_APP_AUDIT_ACTIONS } from './legacyAuditLabels.js';
62
69
  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';
65
- 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';
70
+ export { type AppContext, type AppRoute, type AppRouteArea, type AppRouteCredentials, type AppRouteMethod, type CmsClient, appRoutePathOf, egressAllows } from './app.js';
71
+ export { APP_OUTBOUND_LIMITS, APP_OUTBOUND_METHODS, type AppOutbound, type AppOutboundAuth, type AppOutboundMethod, outboundCapabilityOf, outboundFor } from './outbound.js';
72
+ export { APP_IDENTITY_LIMITS, type AppIdentityDeclaration, appIdentitiesProblems, appProviderId } from './appIdentities.js';
73
+ export { APP_DISPATCH_PATH, APP_INBOUND_LIMITS, APP_INBOUND_NAME, appDispatchPathOf, type AppDispatched, type AppDispatchRequest, type AppInboundDeclaration, type AppInboundOutcome, appInboundPathOf, appInboundProblems, type AppInboundRequest, type AppInboundUrl } from './appInbound.js';
74
+ export { APP_CHANNEL_KIND_LIMITS, APP_CHANNEL_LIMITS, CHANNEL_MODES, type ChannelExternalKeys, type ChannelMode, type AppChannel, type AppChannelKind, type AppChannelSettingDef, type ChannelCreateBody, type ChannelPatch, type ChannelSecretStatus, type ChannelView, channelSettingPattern, appChannelKindsProblems, type AppChannelsPort, CHANNEL_ADDRESS_KINDS, CHANNEL_CAPABILITIES, CHANNEL_KIND, CHANNEL_SETTING_TYPES, type ChannelAddress, type ChannelAddressKind, type ChannelCapability, channelKindOf } from './appChannels.js';
75
+ export { APP_HMAC_HASHES, APP_SECRET_DECLARATION_LIMITS, APP_SECRET_KEY, APP_SECRET_LIMITS, APP_SIGNATURE_ENCODINGS, type AppHmacCheck, type AppHmacHash, type AppOperatorSecrets, type AppSecretDeclaration, appSecretKeysOf, type AppSecretState, type AppSignatureEncoding, appSecretsProblems, secretTailOf } from './appSecrets.js';
76
+ 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';
77
+ 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';
78
+ export { ENTITLING_SUBSCRIPTION_STATUSES, type OfferView, PAYMENT_LIMITS, PAYMENT_PORT, type PaymentCheckout, paymentUrl, type PaymentCheckoutRequest, type PaymentPortalRequest, PRICE_CURRENCIES, PRICE_INTERVALS, PRICE_KINDS, type PriceCurrency, type PriceInterval, type PriceKind, priceLookupKeyOf, type PriceView, PURCHASE_STATUSES, type PurchaseReflection, purchaseReflection, type PurchaseStatus, type ReflectionResult, SUBSCRIPTION_STATUSES, type SubscriptionReflection, subscriptionReflection, type SubscriptionStatus } from './paymentPort.js';
79
+ export type { AppPortErrorCode, AppPortFailure, AppPortResult, AggregateExtent, AggregateRange, AggregateRebuild, AggregateRollup, AggregateValues, AppChannelConsent, AppConnections, AppEndUserIdentity, AppEndUserIssuer, AppEndUsersPort, AppEventsPort, AppFilesPort, AppHoldTarget, AppMessageProvider, AppNoticesProvider, AppPaymentProvider, AppPaymentsPort, 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';
80
+ 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';
81
+ export { HOSTING_LEVELS, levelOfRequest, needsRecentLogin, OPERATOR_API_PREFIX, OPERATOR_OPERATIONS, operatorOperation, type OperatorLevel, type OperatorOperation, type OperatorOperationId, type OperatorProjectTab, type OperatorScreen, type OperatorWhen } from './operatorOperations.js';
82
+ export { type Classify, VIEW_COLUMNS, type ViewEvent, viewOf, type ViewOptions } from './viewEvent.js';
67
83
  export { workspaceRecordPath } from './workspacePaths.js';
84
+ export { PERSPECTIVE_QUERY, PERSPECTIVES, type PerspectiveName, type ReadToken } from './perspective.js';
85
+ export { DELETION_NAME_CONFIRM_MIN, type DeletionImpact, deletionNameRequired } from './deletion.js';
86
+ export { RECORD_LABELS } from './recordLabels.js';
87
+ export { RULE_ISSUES, RULE_PROBLEMS } from './ruleProblems.js';
88
+ export { SCHEMA_LABELS } from './schemaLabels.js';
89
+ export { CORE_RULE_LABELS, FILE_SYNTAX_EXAMPLE, PREVIEW_LABELS } from './ruleLabels.js';
90
+ export { ACCOUNT_ICON_TYPES, ACCOUNT_PROFILE_LIMITS } from './accountProfile.js';
91
+ export { APP_EVENTS_SCHEMA_NAME, EVENT_DATA_SCHEMAS, EVENT_SCHEMA_BASE_URL, eventDataSchemaUrl, eventJsonSchemaFiles } from './eventSchemas.js';
92
+ export { DELIVERY_MARK_HEADERS } from './headers.js';
93
+ 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';
94
+ export { DELIVERY_SOURCE_KINDS, type DeliveryReceiver, type DeliverySource, type DeliverySourceKind, type DeliverySummaryRow, EVENT_TRACE_LIMITS, type EventTrace, type TraceDelivery } from './eventTraces.js';
95
+ export { BOUNDED_TABLES, CHANGES_PAGE_LIMITS, COLLECTION_SIZE_LIMITS, READ_PAGE_LIMITS } from './readPages.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
+ }>;