@tunasand/sdk 0.11.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.
- package/CHANGELOG.md +16 -0
- package/README.md +6 -4
- package/dist/analytics.js +113 -50
- package/dist/app.js +98 -9
- package/dist/{apps-DIxAWBSZ.js → apps-BysPfMuR.js} +102 -12
- package/dist/{bridge-Dv4NxGZ7.js → bridge-C2Bl-OAF.js} +1 -2
- package/dist/bridge.js +1 -1
- package/dist/cli.js +2 -2
- package/dist/{collection-nUz1RetA.js → collection-26aglrg6.js} +20 -2
- package/dist/delivery.js +1 -1
- package/dist/{embeds-B-Dbn64k.js → embeds-DY6O5TrJ.js} +2 -2
- package/dist/end-users.js +29 -25
- package/dist/{errorLabels-aT2bnMsO.js → errorLabels-BK1NJ6Wz.js} +21 -5
- package/dist/i18n.js +2 -2
- package/dist/integrations.js +2 -2
- package/dist/{ja-CrY_72Tn.js → ja-B3lAaOhZ.js} +13 -11
- package/dist/{workflow-CUpl6hO_.js → paymentPort-p1jV44Zz.js} +57 -2
- package/dist/{schema-Dcg1ajnW.js → schema-Bs_BUUNv.js} +35 -7
- package/dist/schema.js +4 -4
- package/dist/types/access/src/handoff.d.ts +1 -1
- package/dist/types/access/src/oidc.d.ts +2 -0
- package/dist/types/contract/src/api/define.d.ts +165 -0
- package/dist/types/contract/src/app.d.ts +22 -7
- package/dist/types/contract/src/appChannels.d.ts +65 -27
- package/dist/types/contract/src/appDependencies.d.ts +22 -2
- package/dist/types/contract/src/appInbound.d.ts +26 -1
- package/dist/types/contract/src/appSecrets.d.ts +18 -0
- package/dist/types/contract/src/appServer.d.ts +57 -7
- package/dist/types/contract/src/apps.d.ts +15 -6
- package/dist/types/contract/src/auditActions.d.ts +2 -2
- package/dist/types/contract/src/auditLabels.d.ts +10 -1
- package/dist/types/contract/src/authorize.d.ts +1 -1
- package/dist/types/contract/src/bridge.d.ts +1 -1
- package/dist/types/contract/src/consents.d.ts +1 -6
- package/dist/types/contract/src/embeds.d.ts +11 -9
- package/dist/types/contract/src/endUsers.d.ts +3 -0
- package/dist/types/contract/src/errorLabels.d.ts +4 -1
- package/dist/types/contract/src/errorLabelsEn.d.ts +4 -1
- package/dist/types/contract/src/errors.d.ts +2 -2
- package/dist/types/contract/src/eventTraces.d.ts +0 -2
- package/dist/types/contract/src/hostingRpc.d.ts +21 -2
- package/dist/types/contract/src/import.d.ts +3 -3
- package/dist/types/contract/src/index.d.ts +16 -13
- package/dist/types/contract/src/issueLabels.d.ts +11 -3
- package/dist/types/contract/src/issueLabelsEn.d.ts +4 -0
- package/dist/types/contract/src/manage.d.ts +5 -0
- package/dist/types/contract/src/notices.d.ts +2 -3
- package/dist/types/contract/src/operationEffects.d.ts +39 -0
- package/dist/types/contract/src/operatorOperations.d.ts +104 -47
- package/dist/types/contract/src/paymentPort.d.ts +129 -0
- package/dist/types/contract/src/readPages.d.ts +92 -0
- package/dist/types/contract/src/roles.d.ts +2 -2
- package/dist/types/contract/src/settingProblems.d.ts +18 -1
- package/dist/types/contract/src/workflow.d.ts +5 -2
- package/dist/types/contract/src/workspaceItems.d.ts +3 -1
- package/dist/types/contract/src/workspacePaths.d.ts +1 -1
- package/dist/types/schema/src/collection.d.ts +4 -0
- package/dist/types/schema/src/file.d.ts +2 -0
- package/dist/types/schema/src/index.d.ts +3 -2
- package/dist/types/schema/src/indexes.d.ts +11 -0
- package/dist/types/schema/src/labels/en.d.ts +2 -0
- package/dist/types/schema/src/labels/ja.d.ts +13 -11
- package/dist/types/schema/src/problems.d.ts +13 -11
- package/dist/types/sdk/src/app.d.ts +11 -8
- package/dist/types/sdk/src/end-users.d.ts +12 -15
- package/dist/types/sdk/src/schema.d.ts +1 -1
- package/dist/{types-DkO2N7u2.js → types-CYnY-63C.js} +1 -1
- package/dist/types.js +1 -1
- package/dist/{typesSource-VJIxtN9b.js → typesSource-BTA9-rcB.js} +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ 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/end-users) */
|
|
5
|
+
/** 1回のリクエストで取り込む人の数の上限(/api/transfer/end-users:import) */
|
|
6
6
|
export declare const END_USERS_IMPORT_MAX = 50;
|
|
7
7
|
/** 対応表の人の予約のコレクション(コレクションの id に使えない $ で始める) */
|
|
8
8
|
export declare const END_USER_MAP_TYPE = "$end_user";
|
|
@@ -33,7 +33,7 @@ export type ImportItem = Readonly<{
|
|
|
33
33
|
* - 参照の項目は { "$origin": "<参照先のコレクションの元の ID>" }、エンドユーザーへの参照のフィールドは { "$end_user": "<人の元の ID>" }
|
|
34
34
|
* - new_id: 作るレコードの ID(元の ID を URL に保つ取り出し元。なしは自動の ID)
|
|
35
35
|
* - created_at: 元の作成の日時(作るときだけ当てる)
|
|
36
|
-
* - 人(kind は endUser)は /api/transfer/end-users の1人の形
|
|
36
|
+
* - 人(kind は endUser)は /api/transfer/end-users:import の1人の形
|
|
37
37
|
*/
|
|
38
38
|
export type ImportRowLine = Readonly<{
|
|
39
39
|
kind: 'row';
|
|
@@ -51,7 +51,7 @@ export declare const END_USER_REF = "$end_user";
|
|
|
51
51
|
/** 元の ID を指す値の元の ID(印 marker の1つのキーで値が文字列、ほかは null) */
|
|
52
52
|
export declare function originIdOf(value: unknown, marker: string): string | null;
|
|
53
53
|
/**
|
|
54
|
-
* 取り込みの入力の形のレコード(kind は endUser)。kind と source を除いた値が /api/transfer/end-users の1人
|
|
54
|
+
* 取り込みの入力の形のレコード(kind は endUser)。kind と source を除いた値が /api/transfer/end-users:import の1人
|
|
55
55
|
* - identities は発行者の設定の id と外部 ID、entitlements は対象のコレクションと対象と期間
|
|
56
56
|
* - 権利の対象は行の ID か { "$origin": "<元の ID>" }、endsOn の省略は対象のコレクションの期間の規則で null は無期限
|
|
57
57
|
* - created_at は元の作成の日時(作るときだけ人の作成の日時に当てる)
|
|
@@ -9,7 +9,7 @@ export { type AppProblem, appProblems } from './appProblems.js';
|
|
|
9
9
|
export { FAILURE_STATUS, type FailureCode, RETRY_AFTER_SEC, retryHeadersOf } from './failureStatus.js';
|
|
10
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';
|
|
@@ -21,6 +21,7 @@ export { capabilitiesBeyond } from './powers.js';
|
|
|
21
21
|
export { type Ceiling, ceilingOf, delegatedGrant, EMPTY_CEILING, GRANT_TYPES, type GrantType, grantsManagement, grantsOperation, NON_SENSITIVE, unionPermissions } from './grants.js';
|
|
22
22
|
export { ACCOUNT_KINDS, type AccountDelegation, accountDelegationOf, type AccountKind, type AccountView, type ActingKind, actingKindOf, type AppDelegation, appDelegationOf, type AppPrincipal, type Capabilities, type CapabilityPrincipal, type DelegatedGrant, type EndUserContext, type EndUserPrincipal, endUserOf, installationOf, type McpDelegation, mcpDelegationOf, ownerOf, type PersonAccount, personOf, isPersonPrincipal, type PersonPrincipal, type PersonShape, type PrincipalAccount, emailOf, type PrincipalContext, principalIdOf, roleOf, type PrincipalShape, type ProcessPrincipal, type RoleEffective, type Subject } from './principal.js';
|
|
23
23
|
export { SUPPORT_ACCESS_KINDS, SUPPORT_ACCESS_LIMITS, SUPPORT_ACCESS_SCOPES, type SupportAccess, type SupportAccessKind, type SupportAccessScope } from './operators.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';
|
|
24
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';
|
|
25
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';
|
|
26
27
|
export { CONFIG_FORMAT, type ConfigBundle, type ConfigPreview } from './transfer.js';
|
|
@@ -29,7 +30,7 @@ export { IMPORT_EVENT_LABELS } from './importLabels.js';
|
|
|
29
30
|
export { FORM_EVENTS } from './forms.js';
|
|
30
31
|
export { FORM_EVENT_LABELS } from './formLabels.js';
|
|
31
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';
|
|
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
|
|
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';
|
|
33
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';
|
|
34
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';
|
|
35
36
|
export { FUNCTION_HOOK_LABELS } from './functionLabels.js';
|
|
@@ -37,18 +38,18 @@ export { type AppEventData, appEventOf, INSTALLATION_EVENTS, type InstallationDe
|
|
|
37
38
|
export { INSTALLATION_EVENT_LABELS, WEBHOOK_ACTION_LABELS } from './webhookLabels.js';
|
|
38
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';
|
|
39
40
|
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
|
|
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';
|
|
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';
|
|
42
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';
|
|
43
44
|
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 { 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';
|
|
45
46
|
export { DELIVERY_VERSION, EXPORT_FORMAT } from './versions.js';
|
|
46
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';
|
|
47
48
|
export { MCP_CLIENT_LABELS, mcpClientLabelOf } from './mcpLabels.js';
|
|
48
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';
|
|
49
50
|
export { type SavedView, VIEW_ACTIONS, type ViewAction, type ViewDefinition } from './views.js';
|
|
50
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';
|
|
51
|
-
export { canManage, isManageTarget, MCP_MANAGED_AREAS, mcpManages, MANAGE_CHECKS, type ManageCheck, manageChecksOf, manageRowsOf, manageTarget, projectAccountPrincipal, REAUTH_FACTORS, type ReauthFactor, reauthFactorsOf, roleWithin, type RoleScope } from './manage.js';
|
|
52
|
+
export { 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';
|
|
52
53
|
export { MANAGE_CHECK_LABELS } from './manageLabels.js';
|
|
53
54
|
export { projectRoleOf } from './projectRole.js';
|
|
54
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';
|
|
@@ -57,7 +58,7 @@ export { canManageSettings, isSettingsTarget, managedAreasOf, SETTINGS_AREAS, ty
|
|
|
57
58
|
export { SETTINGS_AREA_LABELS } from './settingsLabels.js';
|
|
58
59
|
export { SITE_CAPABILITY_PREFIXES, type SiteDeclaration, siteDeclarationOf, type SiteHostingManifest } from './siteDeclaration.js';
|
|
59
60
|
export { ARTIFACT_KEYS, MODULE_CONTENT_TYPES, MODULE_EXTENSIONS, MODULE_NAME, SITE_ARTIFACT, type SiteModuleType, siteModuleTypeOf, UPLOAD_FORM_PARTS } from './siteArtifact.js';
|
|
60
|
-
export { HOSTING_ACTIONS, HOSTING_OPERATIONS, HOSTING_RPC_METHODS, type HostingAction, type HostingActivateRequest, type HostingPlaceRequest, type HostingHealthView, type HostingHostnameResult, type HostingHostnameState, type HostingHostnameSyncRequest, type HostingValidationRecord, hostingOperationInput, type HostingRpc, type HostingRpcMethod, type HostingSyncRequest } from './hostingRpc.js';
|
|
61
|
+
export { 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';
|
|
61
62
|
export { isReservedSlug, RESERVED_SLUGS } from './slugs.js';
|
|
62
63
|
export { HOSTNAME_PROBLEMS, type HostnameProblem, hostSpaceOf, isUnderZone, normalizeHostname, requestHost, TRIAL_SUFFIX, trialHostname } from './hostnames.js';
|
|
63
64
|
export { isTrialHost, isTrialSiteHost, TRIAL_HOST_SUFFIX, TRIAL_SITE_SUFFIX, trialSiteLabel } from './trial.js';
|
|
@@ -66,17 +67,18 @@ export { type LivePeriod, livePeriodsOf, type PromoteRow, withinLivePeriods } fr
|
|
|
66
67
|
export { AUDIT_ACTION_CODES, type AuditActionCode, type AuditActionRow, auditActionValues, NON_COLLECTION_TARGETS, normalizeAuditAction, targetLabelOf, withTargetLabel } from './auditActions.js';
|
|
67
68
|
export { LEGACY_AUDIT_ACTIONS, LEGACY_AUDIT_SUFFIXES, LEGACY_APP_AUDIT_ACTIONS } from './legacyAuditLabels.js';
|
|
68
69
|
export { AUDIT_ACTION_MESSAGES, auditActionLabel } from './auditLabels.js';
|
|
69
|
-
export { type AppContext, type AppRoute, type AppRouteArea, type
|
|
70
|
+
export { type AppContext, type AppRoute, type AppRouteArea, type AppRouteCredentials, type AppRouteMethod, type CmsClient, appRoutePathOf, egressAllows } from './app.js';
|
|
70
71
|
export { APP_OUTBOUND_LIMITS, APP_OUTBOUND_METHODS, type AppOutbound, type AppOutboundAuth, type AppOutboundMethod, outboundCapabilityOf, outboundFor } from './outbound.js';
|
|
71
72
|
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
|
|
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';
|
|
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';
|
|
75
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';
|
|
76
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';
|
|
77
|
-
export
|
|
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';
|
|
78
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';
|
|
79
|
-
export { HOSTING_LEVELS, levelOfRequest, needsRecentLogin, OPERATOR_API_PREFIX,
|
|
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';
|
|
80
82
|
export { type Classify, VIEW_COLUMNS, type ViewEvent, viewOf, type ViewOptions } from './viewEvent.js';
|
|
81
83
|
export { workspaceRecordPath } from './workspacePaths.js';
|
|
82
84
|
export { PERSPECTIVE_QUERY, PERSPECTIVES, type PerspectiveName, type ReadToken } from './perspective.js';
|
|
@@ -90,3 +92,4 @@ export { APP_EVENTS_SCHEMA_NAME, EVENT_DATA_SCHEMAS, EVENT_SCHEMA_BASE_URL, even
|
|
|
90
92
|
export { DELIVERY_MARK_HEADERS } from './headers.js';
|
|
91
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';
|
|
92
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';
|
|
@@ -120,6 +120,7 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
120
120
|
readonly setting_duplicate: "「{field}」の「{value}」が重なっています。";
|
|
121
121
|
readonly setting_required: "「{field}」を1つ以上指定してください。";
|
|
122
122
|
readonly setting_shape: "「{field}」の形が正しくありません。";
|
|
123
|
+
readonly setting_row_text: "「{field}」の{row, number}行目の「{sub}」を入力してください。";
|
|
123
124
|
readonly renamed_replacement: "id を変更するコレクションの選択肢の置き換えは、id の変更と別に保存してください";
|
|
124
125
|
readonly project_name_required: "プロジェクトの名前が未入力";
|
|
125
126
|
readonly project_slug_invalid: "スラッグは英小文字、数字、ハイフンで、ID の形にできません";
|
|
@@ -156,6 +157,8 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
156
157
|
readonly end_user_invalid_date: "日付は YYYY-MM-DD の実在する日";
|
|
157
158
|
readonly end_user_no_target_collection: "権利の対象のコレクションがない(コレクションの「要る権利」の参照の項目が指すコレクション)";
|
|
158
159
|
readonly end_user_no_target: "権利の対象のレコードがない";
|
|
160
|
+
readonly payment_reflection_mismatch: "決済の反映の値が、反映済みの購入か購読、または価格の種類と合わない";
|
|
161
|
+
readonly payment_url_host: "戻り先の URL は、プロジェクトのサイトのホストにしてください";
|
|
159
162
|
readonly end_user_ends_before_start: "終了日が開始日より前";
|
|
160
163
|
readonly end_user_ends_required: "終了日の指定が要る(対象のコレクションに期間(月)の設定がないか、対象のレコードの値が空)";
|
|
161
164
|
readonly end_user_months_invalid: "対象のレコードの期間(月)が1から1200の整数でない(直すか終了日を指定する)";
|
|
@@ -183,7 +186,7 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
183
186
|
readonly app_namespace: "名前空間は英小文字で始まる英小文字と数字の3〜32文字です";
|
|
184
187
|
readonly app_namespace_taken: "この名前空間はすでに使われています(再利用できません)";
|
|
185
188
|
readonly app_no_organization: "コンソールで管理していないプロジェクトでは、アプリを登録できません。必要なときは、管理者が運営に相談してください。";
|
|
186
|
-
readonly app_collections: "
|
|
189
|
+
readonly app_collections: "既存のコレクションを使うときは、使うコレクションと対応するフィールドを選択してください(フィールドは同じ型。対応させないフィールドはインストールが追加するので、同じキーのフィールドがあれば対応させてください)";
|
|
187
190
|
readonly app_slugs: "アプリのコレクションのスラッグがほかのコレクションと重なるか使えない形です。スラッグを指定してください";
|
|
188
191
|
readonly app_not_installable: "このアプリはインストールできません(自分の組織のアプリと確認済みのアプリだけ)。アプリの一覧から選び直してください。";
|
|
189
192
|
readonly app_no_registration: "このプロジェクトでは、アプリを追加できません。必要なときは、管理者が運営に相談してください。";
|
|
@@ -199,6 +202,7 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
199
202
|
readonly channel_capabilities: "チャネルの能力は、種類の宣言の能力から1つ以上を選んでください";
|
|
200
203
|
readonly channel_address: "アドレスは英小文字、数字、「.」「_」「-」のローカル部と、このプロジェクトで検証済みのドメインにしてください(アドレスを持つ種類だけ)";
|
|
201
204
|
readonly channel_setting: "{key} はこの種類の設定にないか、値の形が合いません";
|
|
205
|
+
readonly channel_kind: "チャネルの種類は、インストールしたアプリが宣言した種類にしてください(同じ種類を宣言したアプリが複数あれば installationId でアプリを選びます)";
|
|
202
206
|
readonly app_key_duplicate_key: "同じ鍵が複数あります(交換の鍵とアップロードの鍵には別の鍵を使ってください)";
|
|
203
207
|
readonly deploy_artifact: "成果物の形が正しくありません";
|
|
204
208
|
readonly deploy_artifact_required: "成果物(artifact)を送ってください";
|
|
@@ -235,7 +239,7 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
235
239
|
};
|
|
236
240
|
export type ApiIssueCode = keyof typeof API_ISSUE_MESSAGES;
|
|
237
241
|
/** CMS の API の検査の問題の既定の形(応答の手前で英語の文になる) */
|
|
238
|
-
export declare const apiIssueText: <K extends "uuid_not_accepted" | "infra_id" | "channel_address" | "required_app" | "consent_channel" | "setting_boolean" | "setting_text" | "setting_required" | "setting_shape" | "setting_duplicate" | "setting_integer_min" | "setting_integer_max" | "setting_text_list" | "setting_choice" | "import_kind_invalid_value" | "import_kind_markdown" | "import_kind_forbidden" | "import_kind_invalid_id" | "import_kind_duplicate_id" | "import_kind_unknown_collection" | "import_kind_id_conflict" | "import_kind_unknown_field" | "import_kind_image_failed" | "import_kind_save_rejected" | "import_kind_reference_lowercased" | "import_kind_origin_missing" | "import_kind_map_conflict" | "import_kind_map_unavailable" | "import_kind_identity_taken" | "integration_event_name" | "integration_collections_max" | "api_keys_unavailable" | "hosting_unavailable" | "page_has_no_collection" | "only_field_has_field" | "destination_https" | "destination_ip" | "destination_local" | "destination_own" | "webhook_installation" | "outside_consent" | "mcp_staff_collection_missing" | "mcp_staff_collection_personal" | "function_unfinished" | "function_budget_exceeded" | "function_not_json" | "function_invalid_shape" | "function_list_column_failed" | "form_required" | "form_too_long" | "form_too_short" | "form_invalid_email" | "form_invalid_url" | "form_url_host" | "form_invalid_choice" | "form_too_many" | "form_too_few" | "form_unknown_form" | "form_unwritable" | "delivery_path_count" | "delivery_path_format" | "delivery_path_bundle" | "delivery_path_route_checked" | "delivery_path_wildcard" | "delivery_expanded_max" | "delivery_limit_range" | "delivery_since_invalid" | "delivery_at_format" | "read_token_expiry" | "delivery_at_past" | "delivery_perspective_value" | "delivery_perspective_combined" | "delivery_revision_list" | "delivery_singleton_list" | "delivery_fields_empty" | "delivery_expand_depth" | "delivery_expand_deep_planned" | "delivery_field_not_selectable" | "delivery_body_in_list" | "delivery_field_not_expandable" | "delivery_expanded_not_selectable" | "delivery_single" | "reference_single" | "delivery_op_planned" | "delivery_filter_format" | "delivery_filter_nested_planned" | "delivery_field_not_filterable" | "delivery_op_not_allowed" | "delivery_filter_value" | "delivery_ids_format" | "delivery_offset_planned" | "delivery_order_max" | "delivery_field_not_sortable" | "delivery_order_duplicate" | "delivery_cursor_invalid" | "unmapped_rows" | "screens_shape" | "reimport_unknown" | "import_duplicate_in_input" | "import_conflict_in_input" | "import_existing_id" | "import_conflict_with_existing" | "import_publish_failed" | "import_image_not_url" | "import_ogp_failed" | "import_file_value" | "import_origin_required" | "import_origin_unresolved" | "import_map_changed" | "import_map_missing" | "import_map_closed" | "import_map_no_key" | "import_map_raced" | "import_map_held" | "import_duplicate_identity" | "import_duplicate_entitlement" | "import_entitlement_target_changed" | "import_identity_taken" | "import_suspended_in_conflict" | "import_suspends_in_conflict" | "import_overwritten" | "import_overwrite_note" | "import_file_not_stored" | "import_file_failed" | "import_phase_unpublishable" | "renamed_replacement" | "project_name_required" | "project_slug_invalid" | "project_slug_reserved" | "project_slug_taken" | "time_zone_invalid" | "unknown_setting_field" | "app_invalid_settings" | "config_corrupt" | "config_missing" | "trash_record" | "trash_unique_holder" | "trash_end_user_missing" | "unfilterable_field" | "undeclared_field" | "unwritable_field" | "self_unwritable" | "unique_part_required" | "reference_unavailable" | "request_reject_note_required" | "patch_body_shape" | "record_no_review" | "generated_slug" | "unique_taken" | "transition_not_allowed" | "transition_create_not_allowed" | "unique_duplicates" | "publish_check_unavailable" | "table_field_limit" | "use_at" | "file_missing" | "public_in_private_field" | "end_user_invalid_date" | "end_user_no_target_collection" | "end_user_no_target" | "end_user_ends_before_start" | "end_user_ends_required" | "end_user_months_invalid" | "end_user_ends_unchecked" | "end_user_no_provider" | "end_user_not_configured" | "end_user_read_log_not_configured" | "end_user_version_too_long" | "end_user_id_shape" | "end_user_missing" | "end_user_singleton" | "end_user_cascade_other" | "cascade_vanished" | "end_user_erasure_confirm" | "deletion_too_large" | "end_user_statements_too_large" | "end_user_undeclared_on_delete" | "consent_purpose" | "consent_address" | "consent_target" | "consent_method" | "app_manifest" | "app_manifest_detail" | "app_namespace" | "app_namespace_taken" | "app_no_organization" | "app_collections" | "app_slugs" | "app_not_installable" | "app_no_registration" | "app_changed" | "app_dependency" | "app_incompatible" | "app_incompatible_detail" | "app_key_private" | "app_key_unsupported" | "app_key_weak" | "app_key_kid" | "app_key_duplicate_kid" | "channel_capabilities" | "channel_setting" | "app_key_duplicate_key" | "deploy_artifact" | "deploy_artifact_required" | "deploy_secrets" | "deploy_binding" | "artifact_too_large" | "artifact_format" | "artifact_header" | "artifact_main" | "artifact_module" | "artifact_asset" | "artifact_size_mismatch" | "binding_invalid_name" | "binding_reserved_name" | "binding_duplicate_name" | "binding_tunasand_value" | "binding_too_many" | "role_id_chars" | "link_collection_missing" | "unknown_environment" | "not_operator" | "invitations_unavailable" | "name_required" | "slug_required" | "slug_max" | "slug_chars" | "slug_uuid" | "url_format" | "https_only" | "body_not_json" | "email_format">(code: K, ...params: import("../../i18n/src/index.js").ParamsArg<{
|
|
242
|
+
export declare const apiIssueText: <K extends "uuid_not_accepted" | "infra_id" | "channel_address" | "required_app" | "consent_channel" | "setting_boolean" | "setting_text" | "setting_required" | "setting_shape" | "setting_duplicate" | "setting_integer_min" | "setting_integer_max" | "setting_text_list" | "setting_choice" | "setting_row_text" | "import_kind_invalid_value" | "import_kind_markdown" | "import_kind_forbidden" | "import_kind_invalid_id" | "import_kind_duplicate_id" | "import_kind_unknown_collection" | "import_kind_id_conflict" | "import_kind_unknown_field" | "import_kind_image_failed" | "import_kind_save_rejected" | "import_kind_reference_lowercased" | "import_kind_origin_missing" | "import_kind_map_conflict" | "import_kind_map_unavailable" | "import_kind_identity_taken" | "integration_event_name" | "integration_collections_max" | "api_keys_unavailable" | "hosting_unavailable" | "page_has_no_collection" | "only_field_has_field" | "destination_https" | "destination_ip" | "destination_local" | "destination_own" | "webhook_installation" | "outside_consent" | "mcp_staff_collection_missing" | "mcp_staff_collection_personal" | "function_unfinished" | "function_budget_exceeded" | "function_not_json" | "function_invalid_shape" | "function_list_column_failed" | "form_required" | "form_too_long" | "form_too_short" | "form_invalid_email" | "form_invalid_url" | "form_url_host" | "form_invalid_choice" | "form_too_many" | "form_too_few" | "form_unknown_form" | "form_unwritable" | "delivery_path_count" | "delivery_path_format" | "delivery_path_bundle" | "delivery_path_route_checked" | "delivery_path_wildcard" | "delivery_expanded_max" | "delivery_limit_range" | "delivery_since_invalid" | "delivery_at_format" | "read_token_expiry" | "delivery_at_past" | "delivery_perspective_value" | "delivery_perspective_combined" | "delivery_revision_list" | "delivery_singleton_list" | "delivery_fields_empty" | "delivery_expand_depth" | "delivery_expand_deep_planned" | "delivery_field_not_selectable" | "delivery_body_in_list" | "delivery_field_not_expandable" | "delivery_expanded_not_selectable" | "delivery_single" | "reference_single" | "delivery_op_planned" | "delivery_filter_format" | "delivery_filter_nested_planned" | "delivery_field_not_filterable" | "delivery_op_not_allowed" | "delivery_filter_value" | "delivery_ids_format" | "delivery_offset_planned" | "delivery_order_max" | "delivery_field_not_sortable" | "delivery_order_duplicate" | "delivery_cursor_invalid" | "unmapped_rows" | "screens_shape" | "reimport_unknown" | "import_duplicate_in_input" | "import_conflict_in_input" | "import_existing_id" | "import_conflict_with_existing" | "import_publish_failed" | "import_image_not_url" | "import_ogp_failed" | "import_file_value" | "import_origin_required" | "import_origin_unresolved" | "import_map_changed" | "import_map_missing" | "import_map_closed" | "import_map_no_key" | "import_map_raced" | "import_map_held" | "import_duplicate_identity" | "import_duplicate_entitlement" | "import_entitlement_target_changed" | "import_identity_taken" | "import_suspended_in_conflict" | "import_suspends_in_conflict" | "import_overwritten" | "import_overwrite_note" | "import_file_not_stored" | "import_file_failed" | "import_phase_unpublishable" | "renamed_replacement" | "project_name_required" | "project_slug_invalid" | "project_slug_reserved" | "project_slug_taken" | "time_zone_invalid" | "unknown_setting_field" | "app_invalid_settings" | "config_corrupt" | "config_missing" | "trash_record" | "trash_unique_holder" | "trash_end_user_missing" | "unfilterable_field" | "undeclared_field" | "unwritable_field" | "self_unwritable" | "unique_part_required" | "reference_unavailable" | "request_reject_note_required" | "patch_body_shape" | "record_no_review" | "generated_slug" | "unique_taken" | "transition_not_allowed" | "transition_create_not_allowed" | "unique_duplicates" | "publish_check_unavailable" | "table_field_limit" | "use_at" | "file_missing" | "public_in_private_field" | "end_user_invalid_date" | "end_user_no_target_collection" | "end_user_no_target" | "payment_reflection_mismatch" | "payment_url_host" | "end_user_ends_before_start" | "end_user_ends_required" | "end_user_months_invalid" | "end_user_ends_unchecked" | "end_user_no_provider" | "end_user_not_configured" | "end_user_read_log_not_configured" | "end_user_version_too_long" | "end_user_id_shape" | "end_user_missing" | "end_user_singleton" | "end_user_cascade_other" | "cascade_vanished" | "end_user_erasure_confirm" | "deletion_too_large" | "end_user_statements_too_large" | "end_user_undeclared_on_delete" | "consent_purpose" | "consent_address" | "consent_target" | "consent_method" | "app_manifest" | "app_manifest_detail" | "app_namespace" | "app_namespace_taken" | "app_no_organization" | "app_collections" | "app_slugs" | "app_not_installable" | "app_no_registration" | "app_changed" | "app_dependency" | "app_incompatible" | "app_incompatible_detail" | "app_key_private" | "app_key_unsupported" | "app_key_weak" | "app_key_kid" | "app_key_duplicate_kid" | "channel_capabilities" | "channel_setting" | "channel_kind" | "app_key_duplicate_key" | "deploy_artifact" | "deploy_artifact_required" | "deploy_secrets" | "deploy_binding" | "artifact_too_large" | "artifact_format" | "artifact_header" | "artifact_main" | "artifact_module" | "artifact_asset" | "artifact_size_mismatch" | "binding_invalid_name" | "binding_reserved_name" | "binding_duplicate_name" | "binding_tunasand_value" | "binding_too_many" | "role_id_chars" | "link_collection_missing" | "unknown_environment" | "not_operator" | "invitations_unavailable" | "name_required" | "slug_required" | "slug_max" | "slug_chars" | "slug_uuid" | "url_format" | "https_only" | "body_not_json" | "email_format">(code: K, ...params: import("../../i18n/src/index.js").ParamsArg<{
|
|
239
243
|
readonly integration_event_name: "イベントの名前が不正";
|
|
240
244
|
readonly integration_collections_max: "コレクションは{max, number}個まで";
|
|
241
245
|
readonly api_keys_unavailable: "この環境では API キーを管理できません。必要なときは、管理者が運営に相談してください。";
|
|
@@ -356,6 +360,7 @@ export declare const apiIssueText: <K extends "uuid_not_accepted" | "infra_id" |
|
|
|
356
360
|
readonly setting_duplicate: "「{field}」の「{value}」が重なっています。";
|
|
357
361
|
readonly setting_required: "「{field}」を1つ以上指定してください。";
|
|
358
362
|
readonly setting_shape: "「{field}」の形が正しくありません。";
|
|
363
|
+
readonly setting_row_text: "「{field}」の{row, number}行目の「{sub}」を入力してください。";
|
|
359
364
|
readonly renamed_replacement: "id を変更するコレクションの選択肢の置き換えは、id の変更と別に保存してください";
|
|
360
365
|
readonly project_name_required: "プロジェクトの名前が未入力";
|
|
361
366
|
readonly project_slug_invalid: "スラッグは英小文字、数字、ハイフンで、ID の形にできません";
|
|
@@ -392,6 +397,8 @@ export declare const apiIssueText: <K extends "uuid_not_accepted" | "infra_id" |
|
|
|
392
397
|
readonly end_user_invalid_date: "日付は YYYY-MM-DD の実在する日";
|
|
393
398
|
readonly end_user_no_target_collection: "権利の対象のコレクションがない(コレクションの「要る権利」の参照の項目が指すコレクション)";
|
|
394
399
|
readonly end_user_no_target: "権利の対象のレコードがない";
|
|
400
|
+
readonly payment_reflection_mismatch: "決済の反映の値が、反映済みの購入か購読、または価格の種類と合わない";
|
|
401
|
+
readonly payment_url_host: "戻り先の URL は、プロジェクトのサイトのホストにしてください";
|
|
395
402
|
readonly end_user_ends_before_start: "終了日が開始日より前";
|
|
396
403
|
readonly end_user_ends_required: "終了日の指定が要る(対象のコレクションに期間(月)の設定がないか、対象のレコードの値が空)";
|
|
397
404
|
readonly end_user_months_invalid: "対象のレコードの期間(月)が1から1200の整数でない(直すか終了日を指定する)";
|
|
@@ -419,7 +426,7 @@ export declare const apiIssueText: <K extends "uuid_not_accepted" | "infra_id" |
|
|
|
419
426
|
readonly app_namespace: "名前空間は英小文字で始まる英小文字と数字の3〜32文字です";
|
|
420
427
|
readonly app_namespace_taken: "この名前空間はすでに使われています(再利用できません)";
|
|
421
428
|
readonly app_no_organization: "コンソールで管理していないプロジェクトでは、アプリを登録できません。必要なときは、管理者が運営に相談してください。";
|
|
422
|
-
readonly app_collections: "
|
|
429
|
+
readonly app_collections: "既存のコレクションを使うときは、使うコレクションと対応するフィールドを選択してください(フィールドは同じ型。対応させないフィールドはインストールが追加するので、同じキーのフィールドがあれば対応させてください)";
|
|
423
430
|
readonly app_slugs: "アプリのコレクションのスラッグがほかのコレクションと重なるか使えない形です。スラッグを指定してください";
|
|
424
431
|
readonly app_not_installable: "このアプリはインストールできません(自分の組織のアプリと確認済みのアプリだけ)。アプリの一覧から選び直してください。";
|
|
425
432
|
readonly app_no_registration: "このプロジェクトでは、アプリを追加できません。必要なときは、管理者が運営に相談してください。";
|
|
@@ -435,6 +442,7 @@ export declare const apiIssueText: <K extends "uuid_not_accepted" | "infra_id" |
|
|
|
435
442
|
readonly channel_capabilities: "チャネルの能力は、種類の宣言の能力から1つ以上を選んでください";
|
|
436
443
|
readonly channel_address: "アドレスは英小文字、数字、「.」「_」「-」のローカル部と、このプロジェクトで検証済みのドメインにしてください(アドレスを持つ種類だけ)";
|
|
437
444
|
readonly channel_setting: "{key} はこの種類の設定にないか、値の形が合いません";
|
|
445
|
+
readonly channel_kind: "チャネルの種類は、インストールしたアプリが宣言した種類にしてください(同じ種類を宣言したアプリが複数あれば installationId でアプリを選びます)";
|
|
438
446
|
readonly app_key_duplicate_key: "同じ鍵が複数あります(交換の鍵とアップロードの鍵には別の鍵を使ってください)";
|
|
439
447
|
readonly deploy_artifact: "成果物の形が正しくありません";
|
|
440
448
|
readonly deploy_artifact_required: "成果物(artifact)を送ってください";
|
|
@@ -25,6 +25,7 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
25
25
|
readonly channel_capabilities: "Choose one or more channel capabilities from the kind declaration";
|
|
26
26
|
readonly channel_address: "Use a local part of lowercase letters, digits, \".\", \"_\" and \"-\" on a domain verified in this project (only for kinds with addresses)";
|
|
27
27
|
readonly channel_setting: "{key} is not a setting of this kind or has an invalid value";
|
|
28
|
+
readonly channel_kind: "Use a channel kind declared by an installed app (choose the app with installationId when several apps declare the kind)";
|
|
28
29
|
readonly app_slugs: "A collection slug of the app is taken or invalid. Specify the slugs";
|
|
29
30
|
readonly app_not_installable: "This app cannot be installed (only apps of your own organization and reviewed apps)";
|
|
30
31
|
readonly app_no_registration: "Apps cannot be added to this project";
|
|
@@ -57,6 +58,8 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
57
58
|
readonly end_user_invalid_date: "The date must be a real day in YYYY-MM-DD";
|
|
58
59
|
readonly end_user_no_target_collection: "The entitlement target collection does not exist (the collection referenced by a collection’s required entitlement field)";
|
|
59
60
|
readonly end_user_no_target: "The entitlement target record does not exist";
|
|
61
|
+
readonly payment_reflection_mismatch: "The payment reflection does not match the reflected purchase or subscription, or the price kind";
|
|
62
|
+
readonly payment_url_host: "The return URL must be on a host of the project site";
|
|
60
63
|
readonly end_user_ends_before_start: "The end date is before the start date";
|
|
61
64
|
readonly end_user_ends_required: "An end date is required (the target collection has no period in months, or the target record has no value)";
|
|
62
65
|
readonly end_user_months_invalid: "The target record’s period in months is not an integer from 1 to 1200 (fix it or specify an end date)";
|
|
@@ -121,6 +124,7 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
121
124
|
readonly setting_duplicate: "\"{value}\" in \"{field}\" is duplicated.";
|
|
122
125
|
readonly setting_required: "Specify at least one \"{field}\".";
|
|
123
126
|
readonly setting_shape: "\"{field}\" is malformed.";
|
|
127
|
+
readonly setting_row_text: "Enter \"{sub}\" in row {row, number} of \"{field}\".";
|
|
124
128
|
readonly unmapped_rows: "Collection {collection} has records with the same IDs imported before the import map ({ids}{more, plural, =0 {} other { and # more}}), so they cannot be imported (projects imported before the map are not reimported)";
|
|
125
129
|
readonly screens_shape: "The screen settings are malformed";
|
|
126
130
|
readonly reimport_unknown: "This environment has no import map for source {source}, so it is not reimported (reimport only into environments moved from the same source)";
|
|
@@ -22,6 +22,11 @@ export declare const manageChecksOf: (user: Subject) => readonly ManageCheck[];
|
|
|
22
22
|
export declare const MCP_MANAGED_AREAS: readonly string[];
|
|
23
23
|
/** MCP の接続が管理の領域を操作できるか(MCP に開く領域で、接続したアカウントのロールが持ち、接続の段階が content:write を含む) */
|
|
24
24
|
export declare function mcpManages(principal: PrincipalShape, operation: Operation, area: string): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* MCP の接続がプロジェクトの値(スキーマなど、環境の主体に見せる値)を読めるか
|
|
27
|
+
* - 実効の権限(ロールとプロジェクトの MCP の上限と接続の段階の共通部分)で、どこかのコレクションかファイルを読めるときだけ
|
|
28
|
+
*/
|
|
29
|
+
export declare function mcpReadsProject(principal: PrincipalShape): boolean;
|
|
25
30
|
/** 管理の権限の行(更新の可だけ) */
|
|
26
31
|
export declare const manageRowsOf: (checks: readonly ManageCheck[]) => Permissions;
|
|
27
32
|
/** ロールの開ける環境(all はすべて) */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { PortId } from './appDependencies.js';
|
|
3
2
|
/** 通知のポート */
|
|
4
|
-
export declare const NOTICES_PORT:
|
|
3
|
+
export declare const NOTICES_PORT: "tunasand:notices@1";
|
|
5
4
|
/**
|
|
6
5
|
* 通知の1件
|
|
7
6
|
* - collection と record は対象の id、at は日時(UTC の ISO 8601)
|
|
@@ -18,7 +17,7 @@ declare const appNotice: z.ZodObject<{
|
|
|
18
17
|
}, z.core.$strip>, z.ZodLiteral<"owners">]>>;
|
|
19
18
|
standing: z.ZodBoolean;
|
|
20
19
|
}, z.core.$strip>;
|
|
21
|
-
/**
|
|
20
|
+
/** 提供者の結果の検査の形 */
|
|
22
21
|
export declare const appNotices: z.ZodObject<{
|
|
23
22
|
notices: z.ZodArray<z.ZodObject<{
|
|
24
23
|
kind: z.ZodString;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** 元に戻せるか: undo は元に戻す操作がある、trash はゴミ箱から復元できる(ゴミ箱のないコレクションでは戻せない)、none は戻せない */
|
|
2
|
+
export declare const REVERSALS: readonly ["undo", "trash", "none"];
|
|
3
|
+
export type Reversal = (typeof REVERSALS)[number];
|
|
4
|
+
/** 影響の範囲: one は1件、many は複数、whole は環境かプロジェクトの全体 */
|
|
5
|
+
export declare const REACHES: readonly ["one", "many", "whole"];
|
|
6
|
+
export type Reach = (typeof REACHES)[number];
|
|
7
|
+
/** 外部への影響: site は公開中のサイトが変わる、credential は外部のシステムが持つ認証情報が無効になる、send は外部へ送信する */
|
|
8
|
+
export declare const EXTERNAL_EFFECTS: readonly ["site", "credential", "send"];
|
|
9
|
+
export type ExternalEffect = (typeof EXTERNAL_EFFECTS)[number];
|
|
10
|
+
/** 操作の事実(access は人、アプリ、資格、エンドユーザーの権限か認証情報を変えるか) */
|
|
11
|
+
export type OperationEffect = Readonly<{
|
|
12
|
+
reversal: Reversal;
|
|
13
|
+
reach: Reach;
|
|
14
|
+
external: readonly ExternalEffect[];
|
|
15
|
+
access: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
/** 呼び出しの事実(count は対象の件数、trash は対象のコレクションがゴミ箱を持つか) */
|
|
18
|
+
export type Invocation = Readonly<{
|
|
19
|
+
count?: number;
|
|
20
|
+
trash?: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
/** 操作の重さ(light は確認なし、medium は確認のダイアログ、heavy は対象の名前の入力) */
|
|
23
|
+
export declare const CONFIRM_WEIGHTS: readonly ["light", "medium", "heavy"];
|
|
24
|
+
export type ConfirmWeight = (typeof CONFIRM_WEIGHTS)[number];
|
|
25
|
+
/**
|
|
26
|
+
* 事実から操作の重さを導く
|
|
27
|
+
* - 戻せない操作は、影響が1件を越えるか、外部のシステムが持つ認証情報を無効にするとき heavy、ほかは medium
|
|
28
|
+
* - 戻せる操作は、元に戻す操作があり、1件で、外部と権限に関わらないとき light、ほかは medium
|
|
29
|
+
*/
|
|
30
|
+
export declare function weightOf(effect: OperationEffect, invocation?: Invocation): ConfirmWeight;
|
|
31
|
+
/** 画面が操作の ID で引く確認の事実(GET /api/me の operations。recentLogin はサーバーが直近のログインを求める操作で、重さと別の宣言) */
|
|
32
|
+
export type OperationConfirm = Readonly<{
|
|
33
|
+
effect: OperationEffect;
|
|
34
|
+
recentLogin: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
/** 直近のログインとみなす本人の確認からの秒数(authentication が recent_login の操作と、console の大事な操作) */
|
|
37
|
+
export declare const RECENT_LOGIN_WINDOW_SEC: number;
|
|
38
|
+
/** 直近のログインか(signedInAt は本人の確認の時刻のミリ秒、now はミリ秒) */
|
|
39
|
+
export declare const recentlySignedIn: (signedInAt: number | null | undefined, now: number) => boolean;
|