Agent Skills › webiny/webiny-js › webiny-api-tenancy-catalog

webiny-api-tenancy-catalog

GitHub

提供多租户生命周期管理API抽象,涵盖租户创建、删除、查询及应用安装功能,并包含前后事件处理器钩子。

skills/user-skills/generated/api/tenancy/SKILL.md webiny/webiny-js

Trigger Scenarios

需要实现或理解多租户架构中的租户生命周期逻辑 开发涉及租户创建、删除或应用安装的业务用例 集成租户相关的事件处理程序

Install

npx skills add webiny/webiny-js --skill webiny-api-tenancy-catalog -g -y
More Options

Non-standard path

npx skills add https://github.com/webiny/webiny-js/tree/next/skills/user-skills/generated/api/tenancy -g -y

Use without installing

npx skills use webiny/webiny-js@webiny-api-tenancy-catalog

指定 Agent (Claude Code)

npx skills add webiny/webiny-js --skill webiny-api-tenancy-catalog -a claude-code -g -y

安装 repo 全部 skill

npx skills add webiny/webiny-js --all -g -y

预览 repo 内 skill

npx skills add webiny/webiny-js --list

SKILL.md

Frontmatter
{
    "name": "webiny-api-tenancy-catalog",
    "description": "API — Tenancy — 17 abstractions. Tenant lifecycle and installation event handlers and use cases."
}

API — Tenancy

Tenant lifecycle and installation event handlers and use cases.

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills for implementation patterns

Abstractions


Name: AppInstaller Import: import { AppInstaller } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/InstallTenant/index.ts Description: Install an application on a tenant with rollback support.


Name: CreateTenantRepository Import: import { CreateTenantRepository } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Persist a newly created tenant.


Name: CreateTenantUseCase Import: import { CreateTenantUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Create a new tenant.


Name: DeleteTenantRepository Import: import { DeleteTenantRepository } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Persist tenant deletion.


Name: DeleteTenantUseCase Import: import { DeleteTenantUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Delete a tenant.


Name: GetTenantByIdUseCase Import: import { GetTenantByIdUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/GetTenantById/index.ts Description: Retrieve a tenant by its ID.


Name: InstallTenantUseCase Import: import { InstallTenantUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/InstallTenant/index.ts Description: Run all app installers for a tenant.


Name: TenantAfterCreateEventHandler Import: import { TenantAfterCreateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Hook into tenant lifecycle after a tenant is created.


Name: TenantAfterDeleteEventHandler Import: import { TenantAfterDeleteEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Hook into tenant lifecycle after a tenant is deleted.


Name: TenantAfterUpdateEventHandler Import: import { TenantAfterUpdateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/UpdateTenant/index.ts Description: Hook into tenant lifecycle after a tenant is updated.


Name: TenantBeforeCreateEventHandler Import: import { TenantBeforeCreateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Hook into tenant lifecycle before a tenant is created.


Name: TenantBeforeDeleteEventHandler Import: import { TenantBeforeDeleteEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Hook into tenant lifecycle before a tenant is deleted.


Name: TenantBeforeUpdateEventHandler Import: import { TenantBeforeUpdateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/UpdateTenant/index.ts Description: Hook into tenant lifecycle before a tenant is updated.


Name: TenantContext Import: import { TenantContext } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/TenantContext/index.ts Description: Provides access to the current tenant and tenant-scoped execution.


Name: TenantInstalledEventHandler Import: import { TenantInstalledEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/InstallTenant/index.ts Description: Hook into tenant lifecycle after a tenant is installed.


Name: UpdateTenantRepository Import: import { UpdateTenantRepository } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/UpdateTenant/index.ts Description: Persist tenant updates.


Name: UpdateTenantUseCase Import: import { UpdateTenantUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/UpdateTenant/index.ts Description: Update an existing tenant.


Version History

  • 80eb1c5 Current 2026-08-20 10:09

Same Skill Collection

.claude/skills/grill-me/SKILL.md
.claude/skills/prd-to-plan/SKILL.md
.claude/skills/preflight/SKILL.md
.claude/skills/tester/SKILL.md
.claude/skills/write-a-prd/SKILL.md
skills/repo-skills/add-feature-flag/SKILL.md
skills/user-skills/admin/admin-architect/SKILL.md
skills/user-skills/admin/admin-permissions/SKILL.md
skills/user-skills/admin/form-model/SKILL.md
skills/user-skills/admin/new-entry-wizard/SKILL.md
skills/user-skills/admin/website-builder/page-settings/SKILL.md
skills/user-skills/admin/website-builder/wb-preview-url-modifier/SKILL.md
skills/user-skills/api-bundle-size-limit/SKILL.md
skills/user-skills/api/api-architect/SKILL.md
skills/user-skills/api/cms-bulk-actions/SKILL.md
skills/user-skills/api/custom-field-type/SKILL.md
skills/user-skills/api/event-handler-pattern/SKILL.md
skills/user-skills/api/graphql-api/SKILL.md
skills/user-skills/api/http-route/SKILL.md
skills/user-skills/api/permissions/SKILL.md
skills/user-skills/api/use-case-pattern/SKILL.md
skills/user-skills/api/v5-to-v6-migration/SKILL.md
skills/user-skills/api/websocket-notifications/SKILL.md
skills/user-skills/cli-extensions/SKILL.md
skills/user-skills/configure-auth0/SKILL.md
skills/user-skills/configure-entraid/SKILL.md
skills/user-skills/configure-okta/SKILL.md
skills/user-skills/dependency-injection/SKILL.md
skills/user-skills/full-stack-architect/SKILL.md
skills/user-skills/generated/api/aco/SKILL.md
skills/user-skills/generated/api/cms/SKILL.md
skills/user-skills/generated/api/file-manager/SKILL.md
skills/user-skills/generated/api/scheduler/SKILL.md
skills/user-skills/generated/api/security/SKILL.md
skills/user-skills/generated/api/system/SKILL.md
skills/user-skills/generated/api/tenant-manager/SKILL.md
skills/user-skills/generated/api/website-builder/SKILL.md
skills/user-skills/generated/infra/SKILL.md
skills/user-skills/infrastructure-extensions/SKILL.md
skills/user-skills/local-development/SKILL.md
skills/user-skills/mailer-smtp/SKILL.md
skills/user-skills/project-structure/SKILL.md
.claude/skills/webiny-skill-creator/SKILL.md
skills/user-skills/admin/ui-extensions/SKILL.md
skills/user-skills/api/ai-powerups-content/SKILL.md
skills/user-skills/cognito-federation/SKILL.md
skills/user-skills/content-models/SKILL.md
skills/user-skills/generated/admin/aco/SKILL.md
skills/user-skills/generated/admin/ai-powerups/SKILL.md

Metadata

Files
0
Version
ef3b8bf
Hash
c95a4cec
Indexed
2026-08-20 10:09

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-25 02:42
浙ICP备14020137号-1