@tunasand/sdk 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +116 -84
- package/README.md +209 -195
- package/dist/analytics.js +638 -2
- package/dist/app.js +230 -24
- package/dist/apps-BxnJ1RlU.js +435 -0
- package/dist/{bridge-DYAYGV7t.js → bridge-DtHw9hS6.js} +3 -3
- package/dist/bridge.js +2 -2
- package/dist/cli.js +5 -4
- package/dist/{model-pmXzGX12.js → collection-BEOxeISR.js} +49 -12
- package/dist/{customers-C_vJY2_v.js → customers-DTbL0qn6.js} +5 -3
- package/dist/customers.js +2 -2
- package/dist/{declared-C_GvPiGF.js → declared-DuNMsdXw.js} +93 -5
- package/dist/delivery.js +39 -8
- package/dist/embeds-B5V54Zur.js +34 -0
- package/dist/{errorLabels-BcyRbv_i.js → errorLabels-BgtQ_zUn.js} +277 -264
- package/dist/i18n.js +4 -4
- package/dist/ids--RF7hGyC.js +36 -0
- package/dist/integrations.js +4 -29
- package/dist/{ja-C1HEWWTQ.js → ja-CeHU0EaY.js} +3 -3
- package/dist/{ja-C6lX0CeJ.js → ja-Du6ooL6i.js} +12 -11
- package/dist/{page-E_cYgZx-.js → page-Bzrj24sJ.js} +4 -4
- package/dist/{profile-D6t1QMQh.js → profile-1em_lcxq.js} +5 -5
- package/dist/rich-text.d.ts +1 -0
- package/dist/{body.js → rich-text.js} +6 -7
- package/dist/{schema-UQJWRyfJ.js → schema-WnobuwLg.js} +136 -97
- package/dist/schema.js +346 -1
- package/dist/types/access/src/handoff.d.ts +3 -3
- package/dist/types/access/src/jwt.d.ts +1 -1
- package/dist/types/access/src/oidc.d.ts +1 -1
- package/dist/types/{cms-contract → contract}/src/apiKeys.d.ts +1 -1
- package/dist/types/{cms-contract → contract}/src/app.d.ts +8 -15
- package/dist/types/contract/src/appDefinition.d.ts +127 -0
- package/dist/types/{cms-contract → contract}/src/appDependencies.d.ts +6 -13
- package/dist/types/contract/src/appServer.d.ts +136 -0
- package/dist/types/contract/src/approvalLabels.d.ts +26 -0
- package/dist/types/contract/src/approvals.d.ts +63 -0
- package/dist/types/{cms-contract → contract}/src/apps.d.ts +72 -29
- package/dist/types/contract/src/auditActions.d.ts +18 -0
- package/dist/types/contract/src/auditLabels.d.ts +127 -0
- package/dist/types/{cms-contract → contract}/src/authorize.d.ts +22 -63
- package/dist/types/{cms-contract → contract}/src/bridge.d.ts +6 -6
- package/dist/types/{cms-contract → contract}/src/customers.d.ts +6 -6
- package/dist/types/{cms-contract → contract}/src/embeds.d.ts +13 -7
- package/dist/types/{cms-contract → contract}/src/errorLabels.d.ts +18 -16
- package/dist/types/{cms-contract → contract}/src/errorLabelsEn.d.ts +9 -7
- package/dist/types/{cms-contract → contract}/src/errors.d.ts +11 -11
- package/dist/types/{cms-contract → contract}/src/failureStatus.d.ts +4 -3
- package/dist/types/contract/src/fieldAccess.d.ts +45 -0
- package/dist/types/contract/src/fieldRules.d.ts +41 -0
- package/dist/types/{cms-contract/src/assets.d.ts → contract/src/files.d.ts} +5 -5
- package/dist/types/{cms-contract → contract}/src/functions.d.ts +3 -3
- package/dist/types/contract/src/hostingRpc.d.ts +143 -0
- package/dist/types/contract/src/hostnames.d.ts +30 -0
- package/dist/types/{cms-contract → contract}/src/identifiers.d.ts +31 -28
- package/dist/types/contract/src/ids.d.ts +104 -0
- package/dist/types/{cms-contract → contract}/src/import.d.ts +3 -3
- package/dist/types/contract/src/importLabels.d.ts +3 -0
- package/dist/types/contract/src/index.d.ts +67 -0
- package/dist/types/{cms-contract → contract}/src/issueLabels.d.ts +27 -23
- package/dist/types/{cms-contract → contract}/src/issueLabelsEn.d.ts +15 -13
- package/dist/types/contract/src/labels.d.ts +11 -0
- package/dist/types/contract/src/legacyAuditLabels.d.ts +10 -0
- package/dist/types/contract/src/livePeriods.d.ts +18 -0
- package/dist/types/contract/src/manage.d.ts +47 -0
- package/dist/types/contract/src/manageLabels.d.ts +9 -0
- package/dist/types/contract/src/mcpAuth.d.ts +139 -0
- package/dist/types/contract/src/mcpLabels.d.ts +5 -0
- package/dist/types/{cms-contract → contract}/src/migration.d.ts +1 -1
- package/dist/types/contract/src/operatorOperations.d.ts +703 -0
- package/dist/types/contract/src/operators.d.ts +33 -0
- package/dist/types/{cms-contract → contract}/src/paths.d.ts +6 -8
- package/dist/types/contract/src/pending.d.ts +4 -0
- package/dist/types/{cms-contract → contract}/src/permissions.d.ts +2 -0
- package/dist/types/contract/src/principal.d.ts +110 -0
- package/dist/types/{cms-contract → contract}/src/problems.d.ts +4 -4
- package/dist/types/contract/src/projectRole.d.ts +6 -0
- package/dist/types/{cms-contract → contract}/src/roles.d.ts +4 -3
- package/dist/types/{cms-contract → contract}/src/settingProblems.d.ts +2 -2
- package/dist/types/{cms-contract → contract}/src/settings.d.ts +2 -2
- package/dist/types/contract/src/settingsLabels.d.ts +3 -0
- package/dist/types/contract/src/slugs.d.ts +6 -0
- package/dist/types/{cms-contract → contract}/src/transfer.d.ts +3 -3
- package/dist/types/contract/src/trial.d.ts +10 -0
- package/dist/types/contract/src/versions.d.ts +9 -0
- package/dist/types/{cms-contract → contract}/src/webhooks.d.ts +33 -58
- package/dist/types/contract/src/workflow.d.ts +49 -0
- package/dist/types/contract/src/workspaceItems.d.ts +73 -0
- package/dist/types/contract/src/workspacePaths.d.ts +4 -0
- package/dist/types/{body → rich-text}/src/declared.d.ts +2 -2
- package/dist/types/{body → rich-text}/src/embed.d.ts +1 -1
- package/dist/types/{body → rich-text}/src/labels/ja.d.ts +2 -2
- package/dist/types/{body → rich-text}/src/profile.d.ts +1 -1
- package/dist/types/{model → schema}/src/audience.d.ts +11 -11
- package/dist/types/schema/src/brand.d.ts +5 -0
- package/dist/types/{model → schema}/src/capabilities.d.ts +5 -5
- package/dist/types/{model → schema}/src/changes.d.ts +6 -6
- package/dist/types/{model → schema}/src/check.d.ts +2 -2
- package/dist/types/{model/src/model.d.ts → schema/src/collection.d.ts} +25 -23
- package/dist/types/{platform/src/defaultModel.d.ts → schema/src/defaultSchema.d.ts} +4 -3
- package/dist/types/{model/src/asset.d.ts → schema/src/file.d.ts} +16 -16
- package/dist/types/{model → schema}/src/image.d.ts +3 -3
- package/dist/types/{model → schema}/src/index.d.ts +11 -10
- package/dist/types/{model → schema}/src/input.d.ts +3 -3
- package/dist/types/{model → schema}/src/integrity.d.ts +1 -1
- package/dist/types/{model → schema}/src/labels/en.d.ts +8 -7
- package/dist/types/{model → schema}/src/labels/ja.d.ts +9 -8
- package/dist/types/schema/src/legacy.d.ts +2 -0
- package/dist/types/{model → schema}/src/media.d.ts +1 -1
- package/dist/types/{model → schema}/src/mediaUrl.d.ts +5 -5
- package/dist/types/{model → schema}/src/page.d.ts +2 -2
- package/dist/types/{model → schema}/src/problems.d.ts +14 -13
- package/dist/types/{model → schema}/src/refs.d.ts +1 -1
- package/dist/types/{model → schema}/src/rules.d.ts +2 -2
- package/dist/types/{model → schema}/src/schema.d.ts +10 -10
- package/dist/types/{model → schema}/src/selfOps.d.ts +1 -1
- package/dist/types/schema/src/typesSource.d.ts +16 -0
- package/dist/types/{model → schema}/src/values.d.ts +2 -2
- package/dist/types/sdk/src/analytics.d.ts +2 -2
- package/dist/types/sdk/src/app.d.ts +44 -16
- package/dist/types/sdk/src/bridge.d.ts +12 -12
- package/dist/types/sdk/src/customers.d.ts +14 -20
- package/dist/types/sdk/src/delegation.d.ts +39 -0
- package/dist/types/sdk/src/delivery/client.d.ts +11 -10
- package/dist/types/sdk/src/delivery/fields.d.ts +2 -2
- package/dist/types/sdk/src/delivery/index.d.ts +2 -2
- package/dist/types/sdk/src/delivery/media.d.ts +17 -3
- package/dist/types/sdk/src/delivery/query.d.ts +1 -1
- package/dist/types/sdk/src/delivery/schema.d.ts +4 -4
- package/dist/types/sdk/src/delivery/values.d.ts +6 -6
- package/dist/types/sdk/src/delivery.d.ts +3 -3
- package/dist/types/sdk/src/i18n.d.ts +11 -11
- package/dist/types/sdk/src/integrations.d.ts +10 -10
- package/dist/types/sdk/src/{body.d.ts → rich-text.d.ts} +2 -2
- package/dist/types/sdk/src/schema.d.ts +5 -21
- package/dist/types/sdk/src/site.d.ts +1 -1
- package/dist/types/sdk/src/types.d.ts +21 -0
- package/dist/{schema-BPHL7Qr-.js → types-B77qvqPJ.js} +5 -4
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/{typesSource-bO0jFw1I.js → typesSource-CWybQYus.js} +58 -12
- package/package.json +12 -12
- package/dist/apps-9u4XMi7E.js +0 -114
- package/dist/body.d.ts +0 -1
- package/dist/embed-R-OvDYAw.js +0 -90
- package/dist/model.d.ts +0 -1
- package/dist/model.js +0 -345
- package/dist/types/analytics/src/index.d.ts +0 -5
- package/dist/types/analytics/src/schedule.d.ts +0 -2
- package/dist/types/analytics/src/shared.d.ts +0 -21
- package/dist/types/analytics/src/source.d.ts +0 -19
- package/dist/types/analytics/src/store.d.ts +0 -24
- package/dist/types/model/src/brand.d.ts +0 -25
- package/dist/types/model/src/legacy.d.ts +0 -2
- package/dist/types/model/src/typesSource.d.ts +0 -8
- package/dist/types/sdk/src/model.d.ts +0 -5
- /package/dist/types/{cms-contract → contract}/src/appProblems.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/consents.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/customerLabels.d.ts +0 -0
- /package/dist/types/{analytics → contract}/src/day.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/functionLabels.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/permissionLabels.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/siteArtifact.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/siteDeclaration.d.ts +0 -0
- /package/dist/types/{analytics/src/view.d.ts → contract/src/viewEvent.d.ts} +0 -0
- /package/dist/types/{cms-contract → contract}/src/views.d.ts +0 -0
- /package/dist/types/{cms-contract → contract}/src/webhookLabels.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/components.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/derive.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/description.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/href.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/html.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/index.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/inline.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/labels/en.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/library.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/markdown.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/normalize.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/problems.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/render.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/schema.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/standard.d.ts +0 -0
- /package/dist/types/{body → rich-text}/src/types.d.ts +0 -0
- /package/dist/types/{model → schema}/src/contact.d.ts +0 -0
- /package/dist/types/{model → schema}/src/json.d.ts +0 -0
- /package/dist/types/{model → schema}/src/screens.d.ts +0 -0
- /package/dist/types/{model → schema}/src/time.d.ts +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
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';
|
|
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';
|
|
4
|
+
export { ERROR_MESSAGES_EN } from './errorLabelsEn.js';
|
|
5
|
+
export { API_ISSUE_MESSAGES, type ApiIssueCode, apiIssueText } from './issueLabels.js';
|
|
6
|
+
export { API_ISSUE_MESSAGES_EN } from './issueLabelsEn.js';
|
|
7
|
+
export { importKindLabel, importProblemLabel, issueLabel, labelTableProblems, PROBLEM_MESSAGES, PROBLEM_MESSAGES_EN, problemEnglish, problemLabel } from './problems.js';
|
|
8
|
+
export { type AppProblem, appProblems } from './appProblems.js';
|
|
9
|
+
export { FAILURE_STATUS, type FailureCode, RETRY_AFTER_SEC, retryHeadersOf, 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';
|
|
11
|
+
export { CHANGES_LABELS, STATUS } from './labels.js';
|
|
12
|
+
export { SETTING_PROBLEMS, SettingProblem, type SettingProblemCode, settingProblemText } from './settingProblems.js';
|
|
13
|
+
export { type CalendarField, calendarFieldSource, type CalendarItem, type StandardAppState, type StandardAppUpdate, type PendingItem, permissionTargetsOf } from './workspaceItems.js';
|
|
14
|
+
export { type AppAbout, type AppBase, appBaseOf, type AppDefinition, type AppInstance, type AppSettings, type AppSettingsInput, type AppSetupContext, type AppSide, appTargetsOf, type CallApi, createApps, type McpApp, type McpParts, type McpProjectContext, type McpPrompt, type McpTool, mergedSettings, NO_SETTINGS, settingAt, withSettingAt } from './appDefinition.js';
|
|
15
|
+
export { applyFieldRules, autoFieldsOf, type FieldRef, type FieldRule, hiddenFieldsOf, restrictedChoicesOf, restrictedProblemsOf } from './fieldRules.js';
|
|
16
|
+
export { 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';
|
|
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';
|
|
21
|
+
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 { 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';
|
|
26
|
+
export { IMPORT_EVENT_LABELS } from './importLabels.js';
|
|
27
|
+
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';
|
|
29
|
+
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
|
+
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
|
+
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';
|
|
33
|
+
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';
|
|
40
|
+
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
|
+
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';
|
|
43
|
+
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';
|
|
46
|
+
export { MANAGE_CHECK_LABELS } from './manageLabels.js';
|
|
47
|
+
export { projectRoleOf } from './projectRole.js';
|
|
48
|
+
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';
|
|
49
|
+
export { APPROVAL_KIND_LABELS, APPROVAL_STATE_LABELS, REVOKE_TARGET_LABELS } from './approvalLabels.js';
|
|
50
|
+
export { canManageSettings, isSettingsTarget, managedAreasOf, SETTINGS_AREAS, type SettingsArea, settingsTarget } from './settings.js';
|
|
51
|
+
export { SETTINGS_AREA_LABELS } from './settingsLabels.js';
|
|
52
|
+
export { SITE_CAPABILITY_PREFIXES, type SiteDeclaration, siteDeclarationOf, type SiteHostingManifest } from './siteDeclaration.js';
|
|
53
|
+
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';
|
|
55
|
+
export { isReservedSlug, RESERVED_SLUGS } from './slugs.js';
|
|
56
|
+
export { HOSTNAME_PROBLEMS, type HostnameProblem, hostSpaceOf, isUnderZone, normalizeHostname, requestHost, TRIAL_SUFFIX, trialHostname } from './hostnames.js';
|
|
57
|
+
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';
|
|
59
|
+
export { type LivePeriod, livePeriodsOf, type PromoteRow, withinLivePeriods } from './livePeriods.js';
|
|
60
|
+
export { AUDIT_ACTION_CODES, type AuditActionCode, type AuditActionRow, auditActionValues, NON_COLLECTION_TARGETS, normalizeAuditAction, targetLabelOf, withTargetLabel } from './auditActions.js';
|
|
61
|
+
export { LEGACY_AUDIT_ACTIONS, LEGACY_AUDIT_SUFFIXES, LEGACY_APP_AUDIT_ACTIONS } from './legacyAuditLabels.js';
|
|
62
|
+
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';
|
|
67
|
+
export { workspaceRecordPath } from './workspacePaths.js';
|
|
@@ -19,7 +19,6 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
19
19
|
readonly function_not_json: "レスポンスが JSON ではありません";
|
|
20
20
|
readonly function_invalid_shape: "レスポンスの形が不正です";
|
|
21
21
|
readonly function_list_column_failed: "一覧の列のレスポンスを受け取れません(送信の記録に理由)";
|
|
22
|
-
readonly og_missing_chars: "タイトルに OG 画像の書体にない文字: {chars}";
|
|
23
22
|
readonly form_required: "未入力";
|
|
24
23
|
readonly form_too_long: "{max, number}文字まで";
|
|
25
24
|
readonly form_too_short: "{min, number}文字以上";
|
|
@@ -85,7 +84,7 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
85
84
|
readonly import_publish_failed: "公開できず下書きのまま: {problem}";
|
|
86
85
|
readonly import_image_not_url: "{src}: 画像の参照が URL でない";
|
|
87
86
|
readonly import_ogp_failed: "{href}: リンク先の OGP を取得できない(題名は URL のまま)";
|
|
88
|
-
readonly
|
|
87
|
+
readonly import_file_value: "画像は URL の文字列か '{' url, alt '}' か '{' file '}'";
|
|
89
88
|
readonly import_origin_required: "対応表を持つ取り込みでは origin_id が必要";
|
|
90
89
|
readonly import_origin_unresolved: "{path}: 元の ID のレコードが対応表にない(参照先を先に取り込む)";
|
|
91
90
|
readonly import_map_changed: "取り込みの後にレコードが変わった(バージョンが対応表と違う)";
|
|
@@ -101,8 +100,8 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
101
100
|
readonly import_closes_in_conflict: "取り出し元の退会だけを当てる予定(ほかは衝突で書かない)";
|
|
102
101
|
readonly import_overwritten: "取り込みの後の変更を、取り出し元の値で上書きした";
|
|
103
102
|
readonly import_overwrite_note: "上書き(overwrite)の顧客がいるときは理由 note が必要";
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
103
|
+
readonly import_file_not_stored: "同じ内容の画像かファイルが保存されていない";
|
|
104
|
+
readonly import_file_failed: "{reason, select, forbidden {画像とファイルを作成する権限がない} https_required {https の URL だけ} upstream_failed {取得できない} unsupported_image {対応していない画像の形式(PNG・JPEG・GIF・WebP)} unsupported_file {対応していないファイルの形式} file_too_large {大きさの上限を超える} other {取り込めない}}";
|
|
106
105
|
readonly import_phase_unpublishable: "コレクションどうしの循環のステップは編集機能を持つコレクションだけ(1段目を下書きで作るため)";
|
|
107
106
|
readonly setting_text: "「{field}」に文字列を入力してください。";
|
|
108
107
|
readonly setting_integer_min: "「{field}」は{min, number}以上の整数にしてください。";
|
|
@@ -118,10 +117,9 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
118
117
|
readonly project_slug_reserved: "このスラッグは予約されているため使えません";
|
|
119
118
|
readonly project_slug_taken: "このスラッグは組織のほかのプロジェクトが使っています";
|
|
120
119
|
readonly time_zone_invalid: "タイムゾーンの名前が不正(例: Asia/Tokyo)";
|
|
121
|
-
readonly
|
|
120
|
+
readonly required_app: "止められない標準の機能";
|
|
122
121
|
readonly unknown_setting_field: "設定のページにない項目";
|
|
123
|
-
readonly
|
|
124
|
-
readonly module_invalid_settings: "設定値が正しくありません。";
|
|
122
|
+
readonly app_invalid_settings: "設定値が正しくありません。";
|
|
125
123
|
readonly config_corrupt: "プロジェクト {id} の DB の設定の値が壊れています({parts}、値の修復が必要)。";
|
|
126
124
|
readonly config_missing: "プロジェクト {id} の DB に設定がありません({parts}、プロジェクトのテンプレートの適用が必要)。";
|
|
127
125
|
readonly trash_record: "{collection}のレコード {id}";
|
|
@@ -138,8 +136,10 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
138
136
|
readonly generated_slug: "このコレクションのスラッグは CMS が振るため指定できない";
|
|
139
137
|
readonly unique_taken: "{labels}が同じレコードがすでにある";
|
|
140
138
|
readonly unique_duplicates: "{collection}に{labels}が同じレコードが{count, number}件ある(重複を直してから一意にする)";
|
|
139
|
+
readonly publish_check_unavailable: "公開の前の検査 {check} を提供するアプリがオンでない";
|
|
140
|
+
readonly capability_missing: "{collection}の宣言に要る能力 {capability} を置き場所が持たない";
|
|
141
141
|
readonly use_at: "{collection}の{field}{rest, select, none {} other {({rest})}}";
|
|
142
|
-
readonly public_in_private_field: "
|
|
142
|
+
readonly public_in_private_field: "非公開のファイルだけの項目に公開の画像やファイルがある(この項目からアップロードし直す)";
|
|
143
143
|
readonly customer_invalid_date: "日付は YYYY-MM-DD の実在する日";
|
|
144
144
|
readonly customer_no_target_collection: "権利の対象のコレクションがない(コレクションの「要る権利」の参照の項目が指すコレクション)";
|
|
145
145
|
readonly customer_no_target: "権利の対象のレコードがない";
|
|
@@ -169,10 +169,10 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
169
169
|
readonly app_manifest_detail: "マニフェストの形が正しくありません({detail})";
|
|
170
170
|
readonly app_namespace: "名前空間は英小文字で始まる英小文字と数字の3〜32文字です";
|
|
171
171
|
readonly app_namespace_taken: "この名前空間はすでに使われています(再利用できません)";
|
|
172
|
-
readonly
|
|
172
|
+
readonly app_no_organization: "コンソールで管理していないプロジェクトでは、アプリを登録できません。必要なときは、管理者が運営に相談してください。";
|
|
173
173
|
readonly app_slots: "埋め込み先のコレクションを選んでください(本文を求める埋め込み先は本文の項目を持つコレクション)";
|
|
174
174
|
readonly app_not_installable: "このアプリはインストールできません(自分の組織のアプリと確認済みのアプリだけ)。アプリの一覧から選び直してください。";
|
|
175
|
-
readonly
|
|
175
|
+
readonly app_no_registration: "このプロジェクトでは、アプリを追加できません。必要なときは、管理者が運営に相談してください。";
|
|
176
176
|
readonly app_changed: "確認した後にアプリのバージョンか能力が変わりました。もう一度確認してください。";
|
|
177
177
|
readonly app_dependency: "依存先のアプリが登録簿にないか、アプリの種類でないか、指した設定が依存先にありません";
|
|
178
178
|
readonly app_incompatible: "同じ世代の中で互換のない変更です。世代(major)を上げるか、変更を戻してください。";
|
|
@@ -191,7 +191,7 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
191
191
|
readonly artifact_too_large: "成果物が大きさの上限を超えています";
|
|
192
192
|
readonly artifact_format: "成果物の形ではありません(tunasand site で組んでください)";
|
|
193
193
|
readonly artifact_header: "成果物の見出しの欄か値が正しくありません";
|
|
194
|
-
readonly artifact_main: "入口(main)が ESM か CommonJS
|
|
194
|
+
readonly artifact_main: "入口(main)が ESM か CommonJS のアプリにありません";
|
|
195
195
|
readonly artifact_module: "モジュールの名前か種類が正しくありません(拡張子つきの名前だけ)";
|
|
196
196
|
readonly artifact_asset: "資産の道か大きさが正しくありません";
|
|
197
197
|
readonly artifact_size_mismatch: "成果物の見出しの大きさと中身が合いません";
|
|
@@ -211,13 +211,15 @@ export declare const API_ISSUE_MESSAGES: {
|
|
|
211
211
|
readonly slug_chars: "スラッグは英小文字・数字・ハイフン・アンダーラインだけ";
|
|
212
212
|
readonly slug_uuid: "スラッグに UUID の形は使えない";
|
|
213
213
|
readonly url_format: "URL の形が不正";
|
|
214
|
+
readonly infra_id: "ID の形が不正(英小文字と数字の26文字)";
|
|
215
|
+
readonly infra_id_uuid: "UUID の形の ID は受け付けない(英小文字と数字の26文字)";
|
|
214
216
|
readonly https_only: "https の URL だけ";
|
|
215
217
|
readonly body_not_json: "本文が JSON の形でない";
|
|
216
218
|
readonly email_format: "メールアドレスの形式が不正";
|
|
217
219
|
};
|
|
218
220
|
export type ApiIssueCode = keyof typeof API_ISSUE_MESSAGES;
|
|
219
221
|
/** CMS の API の検査の問題の既定の形(応答の手前で英語の文になる) */
|
|
220
|
-
export declare const apiIssueText: <K extends "setting_boolean" | "setting_text" | "setting_required" | "setting_shape" | "setting_duplicate" | "setting_integer_min" | "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" | "
|
|
222
|
+
export declare const apiIssueText: <K extends "infra_id_uuid" | "infra_id" | "required_app" | "setting_boolean" | "setting_text" | "setting_required" | "setting_shape" | "setting_duplicate" | "setting_integer_min" | "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" | "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" | "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" | "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_duplicate_identity" | "import_duplicate_grant" | "import_grant_target_changed" | "import_identity_taken" | "import_closed_in_conflict" | "import_closes_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_customer_missing" | "unfilterable_field" | "unwritable_field" | "self_unwritable" | "unique_part_required" | "reference_unavailable" | "request_reject_note_required" | "patch_body_shape" | "record_no_review" | "generated_slug" | "unique_taken" | "unique_duplicates" | "publish_check_unavailable" | "capability_missing" | "use_at" | "public_in_private_field" | "customer_invalid_date" | "customer_no_target_collection" | "customer_no_target" | "customer_ends_before_start" | "customer_ends_required" | "customer_months_invalid" | "customer_ends_unchecked" | "customer_no_provider" | "customer_profile_collection" | "customer_not_configured" | "customer_read_log_not_configured" | "customer_version_too_long" | "customer_id_shape" | "customer_missing" | "customer_singleton" | "customer_cascade_other" | "customer_cascade_vanished" | "customer_erasure_confirm" | "customer_deletion_too_large" | "customer_statements_too_large" | "customer_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_slots" | "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" | "app_key_duplicate_key" | "deploy_artifact" | "deploy_artifact_required" | "deploy_secrets" | "deploy_version_not_found" | "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<{
|
|
221
223
|
readonly integration_event_name: "イベントの名前が不正";
|
|
222
224
|
readonly integration_collections_max: "コレクションは{max, number}個まで";
|
|
223
225
|
readonly api_keys_unavailable: "この環境では API キーを管理できません。必要なときは、管理者が運営に相談してください。";
|
|
@@ -237,7 +239,6 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
237
239
|
readonly function_not_json: "レスポンスが JSON ではありません";
|
|
238
240
|
readonly function_invalid_shape: "レスポンスの形が不正です";
|
|
239
241
|
readonly function_list_column_failed: "一覧の列のレスポンスを受け取れません(送信の記録に理由)";
|
|
240
|
-
readonly og_missing_chars: "タイトルに OG 画像の書体にない文字: {chars}";
|
|
241
242
|
readonly form_required: "未入力";
|
|
242
243
|
readonly form_too_long: "{max, number}文字まで";
|
|
243
244
|
readonly form_too_short: "{min, number}文字以上";
|
|
@@ -303,7 +304,7 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
303
304
|
readonly import_publish_failed: "公開できず下書きのまま: {problem}";
|
|
304
305
|
readonly import_image_not_url: "{src}: 画像の参照が URL でない";
|
|
305
306
|
readonly import_ogp_failed: "{href}: リンク先の OGP を取得できない(題名は URL のまま)";
|
|
306
|
-
readonly
|
|
307
|
+
readonly import_file_value: "画像は URL の文字列か '{' url, alt '}' か '{' file '}'";
|
|
307
308
|
readonly import_origin_required: "対応表を持つ取り込みでは origin_id が必要";
|
|
308
309
|
readonly import_origin_unresolved: "{path}: 元の ID のレコードが対応表にない(参照先を先に取り込む)";
|
|
309
310
|
readonly import_map_changed: "取り込みの後にレコードが変わった(バージョンが対応表と違う)";
|
|
@@ -319,8 +320,8 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
319
320
|
readonly import_closes_in_conflict: "取り出し元の退会だけを当てる予定(ほかは衝突で書かない)";
|
|
320
321
|
readonly import_overwritten: "取り込みの後の変更を、取り出し元の値で上書きした";
|
|
321
322
|
readonly import_overwrite_note: "上書き(overwrite)の顧客がいるときは理由 note が必要";
|
|
322
|
-
readonly
|
|
323
|
-
readonly
|
|
323
|
+
readonly import_file_not_stored: "同じ内容の画像かファイルが保存されていない";
|
|
324
|
+
readonly import_file_failed: "{reason, select, forbidden {画像とファイルを作成する権限がない} https_required {https の URL だけ} upstream_failed {取得できない} unsupported_image {対応していない画像の形式(PNG・JPEG・GIF・WebP)} unsupported_file {対応していないファイルの形式} file_too_large {大きさの上限を超える} other {取り込めない}}";
|
|
324
325
|
readonly import_phase_unpublishable: "コレクションどうしの循環のステップは編集機能を持つコレクションだけ(1段目を下書きで作るため)";
|
|
325
326
|
readonly setting_text: "「{field}」に文字列を入力してください。";
|
|
326
327
|
readonly setting_integer_min: "「{field}」は{min, number}以上の整数にしてください。";
|
|
@@ -336,10 +337,9 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
336
337
|
readonly project_slug_reserved: "このスラッグは予約されているため使えません";
|
|
337
338
|
readonly project_slug_taken: "このスラッグは組織のほかのプロジェクトが使っています";
|
|
338
339
|
readonly time_zone_invalid: "タイムゾーンの名前が不正(例: Asia/Tokyo)";
|
|
339
|
-
readonly
|
|
340
|
+
readonly required_app: "止められない標準の機能";
|
|
340
341
|
readonly unknown_setting_field: "設定のページにない項目";
|
|
341
|
-
readonly
|
|
342
|
-
readonly module_invalid_settings: "設定値が正しくありません。";
|
|
342
|
+
readonly app_invalid_settings: "設定値が正しくありません。";
|
|
343
343
|
readonly config_corrupt: "プロジェクト {id} の DB の設定の値が壊れています({parts}、値の修復が必要)。";
|
|
344
344
|
readonly config_missing: "プロジェクト {id} の DB に設定がありません({parts}、プロジェクトのテンプレートの適用が必要)。";
|
|
345
345
|
readonly trash_record: "{collection}のレコード {id}";
|
|
@@ -356,8 +356,10 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
356
356
|
readonly generated_slug: "このコレクションのスラッグは CMS が振るため指定できない";
|
|
357
357
|
readonly unique_taken: "{labels}が同じレコードがすでにある";
|
|
358
358
|
readonly unique_duplicates: "{collection}に{labels}が同じレコードが{count, number}件ある(重複を直してから一意にする)";
|
|
359
|
+
readonly publish_check_unavailable: "公開の前の検査 {check} を提供するアプリがオンでない";
|
|
360
|
+
readonly capability_missing: "{collection}の宣言に要る能力 {capability} を置き場所が持たない";
|
|
359
361
|
readonly use_at: "{collection}の{field}{rest, select, none {} other {({rest})}}";
|
|
360
|
-
readonly public_in_private_field: "
|
|
362
|
+
readonly public_in_private_field: "非公開のファイルだけの項目に公開の画像やファイルがある(この項目からアップロードし直す)";
|
|
361
363
|
readonly customer_invalid_date: "日付は YYYY-MM-DD の実在する日";
|
|
362
364
|
readonly customer_no_target_collection: "権利の対象のコレクションがない(コレクションの「要る権利」の参照の項目が指すコレクション)";
|
|
363
365
|
readonly customer_no_target: "権利の対象のレコードがない";
|
|
@@ -387,10 +389,10 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
387
389
|
readonly app_manifest_detail: "マニフェストの形が正しくありません({detail})";
|
|
388
390
|
readonly app_namespace: "名前空間は英小文字で始まる英小文字と数字の3〜32文字です";
|
|
389
391
|
readonly app_namespace_taken: "この名前空間はすでに使われています(再利用できません)";
|
|
390
|
-
readonly
|
|
392
|
+
readonly app_no_organization: "コンソールで管理していないプロジェクトでは、アプリを登録できません。必要なときは、管理者が運営に相談してください。";
|
|
391
393
|
readonly app_slots: "埋め込み先のコレクションを選んでください(本文を求める埋め込み先は本文の項目を持つコレクション)";
|
|
392
394
|
readonly app_not_installable: "このアプリはインストールできません(自分の組織のアプリと確認済みのアプリだけ)。アプリの一覧から選び直してください。";
|
|
393
|
-
readonly
|
|
395
|
+
readonly app_no_registration: "このプロジェクトでは、アプリを追加できません。必要なときは、管理者が運営に相談してください。";
|
|
394
396
|
readonly app_changed: "確認した後にアプリのバージョンか能力が変わりました。もう一度確認してください。";
|
|
395
397
|
readonly app_dependency: "依存先のアプリが登録簿にないか、アプリの種類でないか、指した設定が依存先にありません";
|
|
396
398
|
readonly app_incompatible: "同じ世代の中で互換のない変更です。世代(major)を上げるか、変更を戻してください。";
|
|
@@ -409,7 +411,7 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
409
411
|
readonly artifact_too_large: "成果物が大きさの上限を超えています";
|
|
410
412
|
readonly artifact_format: "成果物の形ではありません(tunasand site で組んでください)";
|
|
411
413
|
readonly artifact_header: "成果物の見出しの欄か値が正しくありません";
|
|
412
|
-
readonly artifact_main: "入口(main)が ESM か CommonJS
|
|
414
|
+
readonly artifact_main: "入口(main)が ESM か CommonJS のアプリにありません";
|
|
413
415
|
readonly artifact_module: "モジュールの名前か種類が正しくありません(拡張子つきの名前だけ)";
|
|
414
416
|
readonly artifact_asset: "資産の道か大きさが正しくありません";
|
|
415
417
|
readonly artifact_size_mismatch: "成果物の見出しの大きさと中身が合いません";
|
|
@@ -429,6 +431,8 @@ export declare const apiIssueText: <K extends "setting_boolean" | "setting_text"
|
|
|
429
431
|
readonly slug_chars: "スラッグは英小文字・数字・ハイフン・アンダーラインだけ";
|
|
430
432
|
readonly slug_uuid: "スラッグに UUID の形は使えない";
|
|
431
433
|
readonly url_format: "URL の形が不正";
|
|
434
|
+
readonly infra_id: "ID の形が不正(英小文字と数字の26文字)";
|
|
435
|
+
readonly infra_id_uuid: "UUID の形の ID は受け付けない(英小文字と数字の26文字)";
|
|
432
436
|
readonly https_only: "https の URL だけ";
|
|
433
437
|
readonly body_not_json: "本文が JSON の形でない";
|
|
434
438
|
readonly email_format: "メールアドレスの形式が不正";
|
|
@@ -6,6 +6,8 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
6
6
|
readonly slug_chars: "Slug may contain only lowercase letters, digits, hyphens and underscores";
|
|
7
7
|
readonly slug_uuid: "Slug must not be in UUID form";
|
|
8
8
|
readonly url_format: "Invalid URL";
|
|
9
|
+
readonly infra_id: "Invalid ID (26 lowercase letters and digits)";
|
|
10
|
+
readonly infra_id_uuid: "UUID-form IDs are not accepted (26 lowercase letters and digits)";
|
|
9
11
|
readonly https_only: "Only https URLs are allowed";
|
|
10
12
|
readonly body_not_json: "The request body is not JSON";
|
|
11
13
|
readonly email_format: "Invalid email address";
|
|
@@ -13,17 +15,17 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
13
15
|
readonly link_collection_missing: "Collection {collection} does not exist";
|
|
14
16
|
readonly unknown_environment: "Environment {id} does not exist in this project";
|
|
15
17
|
readonly not_operator: "Not an operator email address";
|
|
16
|
-
readonly invitations_unavailable: "This runtime has no invitation
|
|
18
|
+
readonly invitations_unavailable: "This runtime has no invitation registry";
|
|
17
19
|
readonly app_manifest: "The manifest is malformed";
|
|
18
20
|
readonly app_manifest_detail: "The manifest is malformed ({detail})";
|
|
19
21
|
readonly app_namespace: "The namespace must be 3 to 32 lowercase letters and digits, starting with a letter";
|
|
20
22
|
readonly app_namespace_taken: "This namespace is already taken (namespaces cannot be reused)";
|
|
21
|
-
readonly
|
|
23
|
+
readonly app_no_organization: "Apps cannot be registered in a project that is not linked to a organization";
|
|
22
24
|
readonly app_slots: "Choose the collections to embed into (embeds that need a body require a collection with a body field)";
|
|
23
|
-
readonly app_not_installable: "This app cannot be installed (only apps of your own
|
|
24
|
-
readonly
|
|
25
|
+
readonly app_not_installable: "This app cannot be installed (only apps of your own organization and reviewed apps)";
|
|
26
|
+
readonly app_no_registration: "Apps cannot be added to this project";
|
|
25
27
|
readonly app_changed: "The app version or capabilities changed after you reviewed them. Review them again";
|
|
26
|
-
readonly app_dependency: "A dependency is
|
|
28
|
+
readonly app_dependency: "A dependency is not a registered app, is not an app, or does not have the referenced setting";
|
|
27
29
|
readonly app_incompatible: "Incompatible change within the same major version. Bump the major version or revert the change";
|
|
28
30
|
readonly app_incompatible_detail: "Incompatible change within the same major version. Bump the major version or revert the change ({detail})";
|
|
29
31
|
readonly app_key_private: "Keys with private parts (such as d) cannot be registered. Send only the public key";
|
|
@@ -85,6 +87,8 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
85
87
|
readonly generated_slug: "Slugs in this collection are assigned by the CMS and cannot be specified";
|
|
86
88
|
readonly unique_taken: "A record with the same {labels} already exists";
|
|
87
89
|
readonly unique_duplicates: "{count, number} records in {collection} share the same {labels} (fix the duplicates before making it unique)";
|
|
90
|
+
readonly publish_check_unavailable: "No enabled app provides the publish check {check}";
|
|
91
|
+
readonly capability_missing: "The storage of {collection} lacks the capability {capability} that its declaration needs";
|
|
88
92
|
readonly use_at: "{field}{rest, select, none {} other { ({rest})}} of {collection}";
|
|
89
93
|
readonly public_in_private_field: "A field for private media only contains public images or files (upload them again from this field)";
|
|
90
94
|
readonly trash_record: "record {id} of {collection}";
|
|
@@ -96,10 +100,9 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
96
100
|
readonly project_slug_reserved: "This slug is reserved";
|
|
97
101
|
readonly project_slug_taken: "Another project in this organization uses this slug";
|
|
98
102
|
readonly time_zone_invalid: "Invalid time zone name (e.g. Asia/Tokyo)";
|
|
99
|
-
readonly
|
|
103
|
+
readonly required_app: "This standard feature cannot be stopped";
|
|
100
104
|
readonly unknown_setting_field: "Not a field of the settings page";
|
|
101
|
-
readonly
|
|
102
|
-
readonly module_invalid_settings: "The settings are invalid.";
|
|
105
|
+
readonly app_invalid_settings: "The settings are invalid.";
|
|
103
106
|
readonly config_corrupt: "Settings in the DB of project {id} are corrupt ({parts}; the values need repair).";
|
|
104
107
|
readonly config_missing: "Settings are missing from the DB of project {id} ({parts}; apply the project template).";
|
|
105
108
|
readonly setting_text: "Enter text for \"{field}\".";
|
|
@@ -120,7 +123,7 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
120
123
|
readonly import_publish_failed: "Left as a draft because it could not be published: {problem}";
|
|
121
124
|
readonly import_image_not_url: "{src}: the image reference is not a URL";
|
|
122
125
|
readonly import_ogp_failed: "{href}: could not fetch the OGP of the link (the title stays the URL)";
|
|
123
|
-
readonly
|
|
126
|
+
readonly import_file_value: "Images must be a URL string, '{' url, alt '}' or '{' file '}'";
|
|
124
127
|
readonly import_origin_required: "origin_id is required for imports with an import map";
|
|
125
128
|
readonly import_origin_unresolved: "{path}: the record of the original ID is not in the import map (import the referenced records first)";
|
|
126
129
|
readonly import_map_changed: "The record changed after the import (the version differs from the import map)";
|
|
@@ -136,12 +139,12 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
136
139
|
readonly import_closes_in_conflict: "Will apply only the closure from the source (other changes are not written because of the conflict)";
|
|
137
140
|
readonly import_overwritten: "Changes after the import were overwritten with the source values";
|
|
138
141
|
readonly import_overwrite_note: "A reason note is required when customers are overwritten (overwrite)";
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
142
|
+
readonly import_file_not_stored: "No stored image or file has the same content";
|
|
143
|
+
readonly import_file_failed: "{reason, select, forbidden {No permission to create images and files} https_required {Only https URLs are allowed} upstream_failed {Could not fetch it} unsupported_image {Unsupported image format (PNG, JPEG, GIF, WebP)} unsupported_file {Unsupported file format} file_too_large {Exceeds the size limit} other {Cannot be imported}}";
|
|
141
144
|
readonly import_phase_unpublishable: "Steps of a cycle between collections require collections with editing (the first step creates drafts)";
|
|
142
145
|
readonly integration_event_name: "Invalid event name";
|
|
143
146
|
readonly integration_collections_max: "Up to {max, number} collections";
|
|
144
|
-
readonly api_keys_unavailable: "API key
|
|
147
|
+
readonly api_keys_unavailable: "API key registry";
|
|
145
148
|
readonly hosting_unavailable: "site hosting";
|
|
146
149
|
readonly page_has_no_collection: "Menu pages, dashboards, and screens outside app settings have no collection";
|
|
147
150
|
readonly only_field_has_field: "Only screens outside field inputs have a field";
|
|
@@ -158,7 +161,6 @@ export declare const API_ISSUE_MESSAGES_EN: {
|
|
|
158
161
|
readonly function_not_json: "The response is not JSON";
|
|
159
162
|
readonly function_invalid_shape: "The response has an invalid shape";
|
|
160
163
|
readonly function_list_column_failed: "Could not receive the list column response (see the delivery log for the reason)";
|
|
161
|
-
readonly og_missing_chars: "The title has characters missing from the OG image font: {chars}";
|
|
162
164
|
readonly import_kind_unknown_collection: "Collection cannot be imported";
|
|
163
165
|
readonly import_kind_forbidden: "No permission to create";
|
|
164
166
|
readonly import_kind_invalid_id: "Invalid ID";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** 公開の状態 */
|
|
2
|
+
export declare const STATUS: {
|
|
3
|
+
readonly draft: "下書き";
|
|
4
|
+
readonly review: "レビュー待ち";
|
|
5
|
+
readonly published: "公開済み";
|
|
6
|
+
};
|
|
7
|
+
/** 公開中・予約のレコードの未公開の変更(#596) */
|
|
8
|
+
export declare const CHANGES_LABELS: {
|
|
9
|
+
readonly draft: "未公開の変更あり";
|
|
10
|
+
readonly review: "変更のレビュー待ち";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AuditActionCode } from './auditActions.js';
|
|
2
|
+
/** 対象の名前を差し込む操作の、旧い文の接尾辞(旧い文は「<対象の表示名><接尾辞>」、連携の登録は英字の名前のあとに空白) */
|
|
3
|
+
export declare const LEGACY_AUDIT_SUFFIXES: readonly [readonly ["を作成", "record.create"], readonly ["を更新", "record.update"], readonly ["を削除", "record.delete"], readonly ["を提出", "record.submit"], readonly ["を差し戻し", "record.reject"], readonly ["を公開", "record.publish"], readonly ["を下書きに戻す", "record.unpublish"], readonly ["の参考資料を変更", "record.setSources"], readonly ["の出典を変更", "record.setSources"], readonly ["の参照を変更", "record.setRefs"]];
|
|
4
|
+
/**
|
|
5
|
+
* 旧い文(コードにする前に action に保存した文)からコード
|
|
6
|
+
* migration(platform の0134、registry の0032)が同じ表で行を書き換える。旧い文の行がレジストリと環境の DB から消えたら外す
|
|
7
|
+
*/
|
|
8
|
+
export declare const LEGACY_AUDIT_ACTIONS: Readonly<Record<string, AuditActionCode>>;
|
|
9
|
+
/** アプリの操作の旧い文(アプリのマニフェストに移したコード) */
|
|
10
|
+
export declare const LEGACY_APP_AUDIT_ACTIONS: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** 切り替えの行(at は ISO 8601、detail は JSON の { from, to }) */
|
|
2
|
+
export type PromoteRow = Readonly<{
|
|
3
|
+
at: string;
|
|
4
|
+
detail: string | null;
|
|
5
|
+
}>;
|
|
6
|
+
/** live だった期間(after はその環境へ切り替えた時刻、before は外した時刻。なしは端なし。ISO 8601) */
|
|
7
|
+
export type LivePeriod = Readonly<{
|
|
8
|
+
environmentId: string;
|
|
9
|
+
after?: string;
|
|
10
|
+
before?: string;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* 環境の履歴のつながり(切り替えの行は新しい順、環境の ID は UUID でも base32 でもよく、期間の環境の ID は base32)
|
|
14
|
+
* 今の環境はその環境へ切り替えた後、前の環境は live だった期間だけを引き継ぐ。最後の切り替えの先でない環境は、自分の全期間の1つだけ
|
|
15
|
+
*/
|
|
16
|
+
export declare function livePeriodsOf(switchesNewestFirst: readonly PromoteRow[], given: string): LivePeriod[];
|
|
17
|
+
/** 環境の時刻 at の行が、つながりの live だった期間にあるか */
|
|
18
|
+
export declare const withinLivePeriods: (periods: readonly LivePeriod[], environmentId: string, at: string) => boolean;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ManagementPrincipal } from './authorize.js';
|
|
2
|
+
import type { Permissions } from './permissions.js';
|
|
3
|
+
import type { User } from './roles.js';
|
|
4
|
+
/**
|
|
5
|
+
* 管理の権限のチェック
|
|
6
|
+
* - schema: スキーマの変更、environments: 環境の作成と削除、request_production: 本番への反映の申請
|
|
7
|
+
* - api_keys: API の鍵、secrets: 連携の秘密値(Webhook の送信先と鍵、外部関数の鍵)、memberships: メンバーとロールと招待
|
|
8
|
+
*/
|
|
9
|
+
export declare const MANAGE_CHECKS: readonly ["schema", "environments", "request_production", "api_keys", "secrets", "memberships"];
|
|
10
|
+
/** 管理の権限のチェック */
|
|
11
|
+
export type ManageCheck = (typeof MANAGE_CHECKS)[number];
|
|
12
|
+
/** 権限の表での管理の権限の id */
|
|
13
|
+
export declare const manageTarget: (check: ManageCheck) => string;
|
|
14
|
+
/** 権限の表の対象が管理の権限か */
|
|
15
|
+
export declare const isManageTarget: (id: string) => boolean;
|
|
16
|
+
type Holder = Pick<User, 'role' | 'permissions'> & Partial<Pick<User, 'mcp' | 'operator' | 'app'>>;
|
|
17
|
+
/** 管理の権限を持つか(判定は authorize) */
|
|
18
|
+
export declare const canManage: (user: Holder, check: ManageCheck) => boolean;
|
|
19
|
+
/** 持つ管理の権限 */
|
|
20
|
+
export declare const manageChecksOf: (user: Holder) => readonly ManageCheck[];
|
|
21
|
+
/** 管理の権限の行(更新の可だけ) */
|
|
22
|
+
export declare const manageRowsOf: (checks: readonly ManageCheck[]) => Permissions;
|
|
23
|
+
/** ロールの開ける環境(all はすべて) */
|
|
24
|
+
type Environments = 'all' | readonly string[];
|
|
25
|
+
/** 比べるロール(admin は管理者のロール) */
|
|
26
|
+
export type RoleScope = Readonly<{
|
|
27
|
+
admin: boolean;
|
|
28
|
+
permissions: Permissions;
|
|
29
|
+
environments: Environments;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* ロールが自分のロールに含まれるか(自分より広い権限を付けない)
|
|
33
|
+
* - コレクションの表と管理の権限は対象と操作ごとの段階、開ける環境は集合で比べる。管理者は何でも付けられ、管理者のロールは管理者だけが付けられる
|
|
34
|
+
*/
|
|
35
|
+
export declare function roleWithin(candidate: RoleScope, own: RoleScope): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 承認の再認証の要素(後で足すのはここだけ。組織の設定はこの中から選ぶ)
|
|
38
|
+
* - login: ログインし直し(全組織で必ず求め、外せない)、totp: 認証アプリの確認コード
|
|
39
|
+
*/
|
|
40
|
+
export declare const REAUTH_FACTORS: readonly ["login", "totp"];
|
|
41
|
+
/** 承認の再認証の要素 */
|
|
42
|
+
export type ReauthFactor = (typeof REAUTH_FACTORS)[number];
|
|
43
|
+
/** 組織の設定の要素の値(未知の値を捨て、login を必ず含める。厳しくはできるが緩められない) */
|
|
44
|
+
export declare const reauthFactorsOf: (raw: unknown) => readonly ReauthFactor[];
|
|
45
|
+
/** プロジェクトのワークスペースのアカウントを、プロジェクトの管理の操作の主体に(MCP とアプリは管理の権限を持たないので、管理者でも表を空にする) */
|
|
46
|
+
export declare const projectAccountPrincipal: (user: Holder, projectId: string) => ManagementPrincipal;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** 管理の権限の表示名 */
|
|
2
|
+
export declare const MANAGE_CHECK_LABELS: {
|
|
3
|
+
readonly schema: "スキーマの変更";
|
|
4
|
+
readonly environments: "環境の作成と削除";
|
|
5
|
+
readonly request_production: "本番への反映の申請";
|
|
6
|
+
readonly api_keys: "API キー";
|
|
7
|
+
readonly secrets: "連携の秘密値";
|
|
8
|
+
readonly memberships: "メンバーとロール";
|
|
9
|
+
};
|