@stripe/extensibility-dev-tools 0.23.5
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/LICENSE.md +19 -0
- package/dist/bin/build-custom-object-definitions.cjs +2111 -0
- package/dist/bin/build-custom-object-definitions.d.ts +11 -0
- package/dist/bin/build-custom-object-definitions.d.ts.map +1 -0
- package/dist/bin/build-custom-object-definitions.js +2088 -0
- package/dist/bin/create-upload-image.cjs +2136 -0
- package/dist/bin/create-upload-image.d.ts +17 -0
- package/dist/bin/create-upload-image.d.ts.map +1 -0
- package/dist/bin/create-upload-image.js +2113 -0
- package/dist/bin/dev-tools-rpc.cjs +3874 -0
- package/dist/bin/dev-tools-rpc.d.ts +3 -0
- package/dist/bin/dev-tools-rpc.d.ts.map +1 -0
- package/dist/bin/dev-tools-rpc.js +3864 -0
- package/dist/bin/gen-schemas.cjs +20739 -0
- package/dist/bin/gen-schemas.d.ts +8 -0
- package/dist/bin/gen-schemas.d.ts.map +1 -0
- package/dist/bin/gen-schemas.js +20715 -0
- package/dist/bin/gen-workspace.cjs +3847 -0
- package/dist/bin/gen-workspace.d.ts +8 -0
- package/dist/bin/gen-workspace.d.ts.map +1 -0
- package/dist/bin/gen-workspace.js +3841 -0
- package/dist/bin/manifest.cjs +686 -0
- package/dist/bin/manifest.d.ts +10 -0
- package/dist/bin/manifest.d.ts.map +1 -0
- package/dist/bin/manifest.js +663 -0
- package/dist/bin/rpc/dispatch.d.ts +10 -0
- package/dist/bin/rpc/dispatch.d.ts.map +1 -0
- package/dist/bin/rpc/handlers.d.ts +4 -0
- package/dist/bin/rpc/handlers.d.ts.map +1 -0
- package/dist/bin/rpc/types.d.ts +29 -0
- package/dist/bin/rpc/types.d.ts.map +1 -0
- package/dist/bin/template-info.cjs +1511 -0
- package/dist/bin/template-info.d.ts +9 -0
- package/dist/bin/template-info.d.ts.map +1 -0
- package/dist/bin/template-info.js +1488 -0
- package/dist/custom-objects/build-definitions.d.ts +98 -0
- package/dist/custom-objects/build-definitions.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/custom_objects/pub/api/app_api/object_definitions_app_service.pb.d.ts +191 -0
- package/dist/custom-objects/generated/proto/custom_objects/pub/api/app_api/object_definitions_app_service.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/custom_objects/pub/api/common/schema.pb.d.ts +131 -0
- package/dist/custom-objects/generated/proto/custom_objects/pub/api/common/schema.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/google/protobuf/descriptor.pb.d.ts +1482 -0
- package/dist/custom-objects/generated/proto/google/protobuf/descriptor.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/google/protobuf/timestamp.pb.d.ts +167 -0
- package/dist/custom-objects/generated/proto/google/protobuf/timestamp.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/proto/annotations.pb.d.ts +64 -0
- package/dist/custom-objects/generated/proto/proto/annotations.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/proto/extensions.pb.d.ts +657 -0
- package/dist/custom-objects/generated/proto/proto/extensions.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/metadata/pub/api/api_metadata.pb.d.ts +105 -0
- package/dist/custom-objects/generated/proto/vendor/metadata/pub/api/api_metadata.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/net/idempotency/idempotency_model.pb.d.ts +79 -0
- package/dist/custom-objects/generated/proto/vendor/net/idempotency/idempotency_model.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/api_group_enum.pb.d.ts +129 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/api_group_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/api_visibility.pb.d.ts +76 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/api_visibility.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/customize_dispatch_middleware_enum.pb.d.ts +78 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/customize_dispatch_middleware_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/docs_namespace_group_enum.pb.d.ts +146 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/docs_namespace_group_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/documented_enum.pb.d.ts +76 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/documented_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/event_scope_enum.pb.d.ts +92 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/event_scope_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/extension_interface.pb.d.ts +124 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/extension_interface.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/feature_enum.pb.d.ts +1070 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/feature_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/field_validation_rules.pb.d.ts +279 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/field_validation_rules.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/flavor_enum.pb.d.ts +78 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/flavor_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/http_error_status.pb.d.ts +102 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/http_error_status.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/method_kind_enum.pb.d.ts +86 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/method_kind_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/method_priority.pb.d.ts +80 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/method_priority.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/permission_check_enum.pb.d.ts +74 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/permission_check_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/redaction_enum.pb.d.ts +76 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/redaction_enum.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/region_routers.pb.d.ts +103 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/region_routers.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/rollout_configs.pb.d.ts +153 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/rollout_configs.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/v2ext.pb.d.ts +1111 -0
- package/dist/custom-objects/generated/proto/vendor/publicapi/v2ext.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/vext/annotations.pb.d.ts +602 -0
- package/dist/custom-objects/generated/proto/vendor/vext/annotations.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/vext/extensions.pb.d.ts +144 -0
- package/dist/custom-objects/generated/proto/vendor/vext/extensions.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/vext/privacy_unified_annotations.pb.d.ts +851 -0
- package/dist/custom-objects/generated/proto/vendor/vext/privacy_unified_annotations.pb.d.ts.map +1 -0
- package/dist/custom-objects/generated/proto/vendor/vext/xml_annotations.pb.d.ts +125 -0
- package/dist/custom-objects/generated/proto/vendor/vext/xml_annotations.pb.d.ts.map +1 -0
- package/dist/custom-objects/to-proto-json.d.ts +17 -0
- package/dist/custom-objects/to-proto-json.d.ts.map +1 -0
- package/dist/dependencies/index.cjs +601 -0
- package/dist/dependencies/index.d.ts +320 -0
- package/dist/dependencies/index.d.ts.map +1 -0
- package/dist/dependencies/index.js +560 -0
- package/dist/extensibility-dev-tools-alpha.d.ts +199 -0
- package/dist/extensibility-dev-tools-beta.d.ts +199 -0
- package/dist/extensibility-dev-tools-dependencies-alpha.d.ts +51 -0
- package/dist/extensibility-dev-tools-dependencies-beta.d.ts +51 -0
- package/dist/extensibility-dev-tools-dependencies-internal.d.ts +372 -0
- package/dist/extensibility-dev-tools-dependencies-public.d.ts +51 -0
- package/dist/extensibility-dev-tools-internal.d.ts +1722 -0
- package/dist/extensibility-dev-tools-jsonschema-tools-alpha.d.ts +57 -0
- package/dist/extensibility-dev-tools-jsonschema-tools-beta.d.ts +57 -0
- package/dist/extensibility-dev-tools-jsonschema-tools-internal.d.ts +123 -0
- package/dist/extensibility-dev-tools-jsonschema-tools-public.d.ts +57 -0
- package/dist/extensibility-dev-tools-manifest-alpha.d.ts +31 -0
- package/dist/extensibility-dev-tools-manifest-beta.d.ts +31 -0
- package/dist/extensibility-dev-tools-manifest-internal.d.ts +461 -0
- package/dist/extensibility-dev-tools-manifest-public.d.ts +31 -0
- package/dist/extensibility-dev-tools-public.d.ts +199 -0
- package/dist/extensibility-dev-tools-schemas-alpha.d.ts +9 -0
- package/dist/extensibility-dev-tools-schemas-beta.d.ts +9 -0
- package/dist/extensibility-dev-tools-schemas-internal.d.ts +41 -0
- package/dist/extensibility-dev-tools-schemas-public.d.ts +9 -0
- package/dist/extensibility-dev-tools-templates-alpha.d.ts +67 -0
- package/dist/extensibility-dev-tools-templates-beta.d.ts +67 -0
- package/dist/extensibility-dev-tools-templates-internal.d.ts +554 -0
- package/dist/extensibility-dev-tools-templates-public.d.ts +67 -0
- package/dist/extensibility-dev-tools-workspace-alpha.d.ts +51 -0
- package/dist/extensibility-dev-tools-workspace-beta.d.ts +51 -0
- package/dist/extensibility-dev-tools-workspace-internal.d.ts +410 -0
- package/dist/extensibility-dev-tools-workspace-public.d.ts +51 -0
- package/dist/index.cjs +3810 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3758 -0
- package/dist/jsonschema-tools.cjs +20451 -0
- package/dist/jsonschema-tools.d.ts +98 -0
- package/dist/jsonschema-tools.d.ts.map +1 -0
- package/dist/jsonschema-tools.js +20404 -0
- package/dist/manifest/index.cjs +610 -0
- package/dist/manifest/index.d.ts +8 -0
- package/dist/manifest/index.d.ts.map +1 -0
- package/dist/manifest/index.js +571 -0
- package/dist/manifest/manifest-v1.d.ts +102 -0
- package/dist/manifest/manifest-v1.d.ts.map +1 -0
- package/dist/manifest/manifest-v2.d.ts +253 -0
- package/dist/manifest/manifest-v2.d.ts.map +1 -0
- package/dist/manifest/stripe-app-manifest.d.ts +114 -0
- package/dist/manifest/stripe-app-manifest.d.ts.map +1 -0
- package/dist/schemas/index.cjs +20692 -0
- package/dist/schemas/index.d.ts +37 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +20656 -0
- package/dist/templates/diff-viewer/diff-generator.d.ts +22 -0
- package/dist/templates/diff-viewer/diff-generator.d.ts.map +1 -0
- package/dist/templates/diff-viewer/diff-prompt.d.ts +13 -0
- package/dist/templates/diff-viewer/diff-prompt.d.ts.map +1 -0
- package/dist/templates/diff-viewer/index.d.ts +7 -0
- package/dist/templates/diff-viewer/index.d.ts.map +1 -0
- package/dist/templates/diff-viewer/terminal-renderer.d.ts +29 -0
- package/dist/templates/diff-viewer/terminal-renderer.d.ts.map +1 -0
- package/dist/templates/diff-viewer/types.d.ts +58 -0
- package/dist/templates/diff-viewer/types.d.ts.map +1 -0
- package/dist/templates/extensions/base.d.ts +23 -0
- package/dist/templates/extensions/base.d.ts.map +1 -0
- package/dist/templates/extensions/billing.bill.discount_calculation.d.ts +6 -0
- package/dist/templates/extensions/billing.bill.discount_calculation.d.ts.map +1 -0
- package/dist/templates/extensions/billing.customer_balance_application.d.ts +6 -0
- package/dist/templates/extensions/billing.customer_balance_application.d.ts.map +1 -0
- package/dist/templates/extensions/billing.invoice_collection_setting.d.ts +6 -0
- package/dist/templates/extensions/billing.invoice_collection_setting.d.ts.map +1 -0
- package/dist/templates/extensions/billing.prorations.d.ts +6 -0
- package/dist/templates/extensions/billing.prorations.d.ts.map +1 -0
- package/dist/templates/extensions/billing.recurring_billing_item_handling.d.ts +6 -0
- package/dist/templates/extensions/billing.recurring_billing_item_handling.d.ts.map +1 -0
- package/dist/templates/extensions/core.workflows.custom_action.d.ts +6 -0
- package/dist/templates/extensions/core.workflows.custom_action.d.ts.map +1 -0
- package/dist/templates/extensions/extend.objects.custom_objects.d.ts +6 -0
- package/dist/templates/extensions/extend.objects.custom_objects.d.ts.map +1 -0
- package/dist/templates/extensions/extend.workflows.custom_action.d.ts +6 -0
- package/dist/templates/extensions/extend.workflows.custom_action.d.ts.map +1 -0
- package/dist/templates/extensions/index.d.ts +13 -0
- package/dist/templates/extensions/index.d.ts.map +1 -0
- package/dist/templates/extensions/registry.d.ts +10 -0
- package/dist/templates/extensions/registry.d.ts.map +1 -0
- package/dist/templates/extensions/types.d.ts +104 -0
- package/dist/templates/extensions/types.d.ts.map +1 -0
- package/dist/templates/file-writer.d.ts +140 -0
- package/dist/templates/file-writer.d.ts.map +1 -0
- package/dist/templates/fs/_impl.d.ts +29 -0
- package/dist/templates/fs/_impl.d.ts.map +1 -0
- package/dist/templates/fs/filesystem.d.ts +8 -0
- package/dist/templates/fs/filesystem.d.ts.map +1 -0
- package/dist/templates/fs/in-memory.d.ts +9 -0
- package/dist/templates/fs/in-memory.d.ts.map +1 -0
- package/dist/templates/fs/index.d.ts +25 -0
- package/dist/templates/fs/index.d.ts.map +1 -0
- package/dist/templates/fs-utils.d.ts +17 -0
- package/dist/templates/fs-utils.d.ts.map +1 -0
- package/dist/templates/index.cjs +2248 -0
- package/dist/templates/index.d.ts +32 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +2203 -0
- package/dist/templates/root/index.d.ts +60 -0
- package/dist/templates/root/index.d.ts.map +1 -0
- package/dist/templates/simple-templates.d.ts +8 -0
- package/dist/templates/simple-templates.d.ts.map +1 -0
- package/dist/templates/template-manager.d.ts +8 -0
- package/dist/templates/template-manager.d.ts.map +1 -0
- package/dist/templates/types.d.ts +9 -0
- package/dist/templates/types.d.ts.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/workspace/index.cjs +3756 -0
- package/dist/workspace/index.d.ts +336 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +3731 -0
- package/package.json +137 -0
- package/templates/extensions/billing.bill.discount_calculation/index.test.ts +15 -0
- package/templates/extensions/billing.bill.discount_calculation/index.ts +20 -0
- package/templates/extensions/billing.customer_balance_application/index.test.ts +15 -0
- package/templates/extensions/billing.customer_balance_application/index.ts +18 -0
- package/templates/extensions/billing.invoice_collection_setting/index.test.ts +15 -0
- package/templates/extensions/billing.invoice_collection_setting/index.ts +16 -0
- package/templates/extensions/billing.prorations/index.test.ts +15 -0
- package/templates/extensions/billing.prorations/index.ts +18 -0
- package/templates/extensions/billing.recurring_billing_item_handling/index.test.ts +15 -0
- package/templates/extensions/billing.recurring_billing_item_handling/index.ts +42 -0
- package/templates/extensions/common/.prettierignore +3 -0
- package/templates/extensions/common/eslint.config.mts.mustache +95 -0
- package/templates/extensions/common/package.json.mustache +26 -0
- package/templates/extensions/common/tsconfig.build.json.mustache +15 -0
- package/templates/extensions/common/tsconfig.json.mustache +16 -0
- package/templates/extensions/core.workflows.custom_action/custom_input.schema.json +6 -0
- package/templates/extensions/core.workflows.custom_action/index.test.ts +15 -0
- package/templates/extensions/core.workflows.custom_action/index.ts +31 -0
- package/templates/extensions/extend.workflows.custom_action/custom_input.schema.json +6 -0
- package/templates/extensions/extend.workflows.custom_action/index.test.ts +15 -0
- package/templates/extensions/extend.workflows.custom_action/index.ts +31 -0
- package/templates/root/.husky/pre-commit +1 -0
- package/templates/root/.prettierignore +5 -0
- package/templates/root/.prettierrc +7 -0
- package/templates/root/_gitignore +28 -0
- package/templates/root/custom-objects/package.json +20 -0
- package/templates/root/custom-objects/tsconfig.json +9 -0
- package/templates/root/eslint.config.mts +95 -0
- package/templates/root/package.json.mustache +32 -0
- package/templates/root/pnpm-workspace.yaml +7 -0
- package/templates/root/stripe-app.yaml.mustache +6 -0
- package/templates/root/tools/test.mts +38 -0
- package/templates/root/tsconfig.base.json +23 -0
- package/templates/root/tsconfig.json +15 -0
- package/templates/root/ui/package.json +17 -0
- package/templates/root/vitest.config.mts +47 -0
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shows an advanced diff viewer with scrolling and colorized output.
|
|
3
|
+
* Falls back to basic prompt if not in a TTY or on error.
|
|
4
|
+
*
|
|
5
|
+
* @param filePath - Relative path to the file (for display)
|
|
6
|
+
* @param cwd - Working directory to resolve the path from
|
|
7
|
+
* @param newContent - New content that would be written
|
|
8
|
+
* @returns User's decision about overwriting
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare function _advancedDiffPrompt(filePath: string, cwd: string, newContent: string): Promise<_OverwriteDecision>;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Generate the ESLint config file for an extension workspace.
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare function _createExtensionEslintConfigFile(params: { extensionInterfaceId: string } & Pick<_ExtensionParams, 'id'>, context: _TemplateContext): _GeneratedFile;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Helper for creating a SingleTemplateManager with simple single-file generation
|
|
21
|
+
*
|
|
22
|
+
* @param generateContent - Function that generates file content from parameters
|
|
23
|
+
* @param pathTemplate - Function that generates file path from parameters
|
|
24
|
+
* @returns SingleTemplateManager ready to use
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* interface MyParams {
|
|
29
|
+
* name: string
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* // Simple template that generates content from parameters
|
|
33
|
+
* const templateManager = createSimpleSingleFileTemplate<MyParams>(
|
|
34
|
+
* (params) => `export class ${params.name} { ... }`,
|
|
35
|
+
* (params) => `src/${snakeCase(params.name)}.ts`
|
|
36
|
+
* )
|
|
37
|
+
*
|
|
38
|
+
* const output = await templateManager.generate({ name: 'MyClass' })
|
|
39
|
+
* // output.files[0] = { path: 'src/my_class.ts', content: '...' }
|
|
40
|
+
* ```
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare function _createSimpleSingleFileTemplate<TParams>(generateContent: (params: TParams) => string, pathTemplate: (params: TParams) => string): _SingleTemplateManager<TParams>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Convert a simple content generator to a full Template
|
|
47
|
+
* @param generateContent - Function that generates file content from parameters
|
|
48
|
+
* @param pathTemplate - Function that generates file path from parameters
|
|
49
|
+
* @returns Full Template implementation
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* interface MyParams {
|
|
54
|
+
* name: string
|
|
55
|
+
* version: string
|
|
56
|
+
* }
|
|
57
|
+
*
|
|
58
|
+
* const template = createSimpleTemplate<MyParams>(
|
|
59
|
+
* (params) => `export const ${params.name} = "${params.version}";`,
|
|
60
|
+
* (params) => `src/${snakeCase(params.name)}.ts`
|
|
61
|
+
* )
|
|
62
|
+
* ```
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
export declare function _createSimpleTemplate<TParams>(generateContent: (params: TParams) => string, pathTemplate: (params: TParams) => string): _Template<TParams>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A dev npm dependency to add to `devDependencies` in package.json.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
export declare interface _DevNpmDependency {
|
|
72
|
+
/** Discriminant tag identifying this as a dev npm dependency. */
|
|
73
|
+
type: 'dev-npm';
|
|
74
|
+
/** npm package name. */
|
|
75
|
+
name: string;
|
|
76
|
+
/** Semver version range. */
|
|
77
|
+
version: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Static metadata for a single method on an extension template
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
export declare interface _ExtensionMethodInfo {
|
|
85
|
+
/** Implementation types supported by this method (e.g. 'script', 'remote-function') */
|
|
86
|
+
implementation_types: string[];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Parameters for extension template generation
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
export declare interface _ExtensionParams extends Record<string, unknown> {
|
|
94
|
+
/** Extension ID (validated to be safe for file paths and IDs) */
|
|
95
|
+
id: string;
|
|
96
|
+
/** Human-readable name for the extension */
|
|
97
|
+
name: string;
|
|
98
|
+
/** Package version (preserved from existing package.json, defaults to 0.0.1) */
|
|
99
|
+
version: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Extension template - specialization of generic Template with a description
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
export declare interface _ExtensionTemplate extends _Template<_ExtensionParams, _ExtensionTemplateOutput> {
|
|
107
|
+
/** Short human-readable description of the extension interface */
|
|
108
|
+
description: string;
|
|
109
|
+
/** Whether this template is deprecated and should not be offered for new extensions */
|
|
110
|
+
deprecated?: boolean;
|
|
111
|
+
/** Whether this template is hidden from `stripe generate` (used only by the build pipeline) */
|
|
112
|
+
hidden?: boolean;
|
|
113
|
+
/** Static metadata for each method — implementation types supported per method */
|
|
114
|
+
methods: Record<string, _ExtensionMethodInfo>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Summary info for a registered extension template
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
export declare interface _ExtensionTemplateInfo {
|
|
122
|
+
/** Template key (the extension interface ID) */
|
|
123
|
+
key: string;
|
|
124
|
+
/** Short human-readable description */
|
|
125
|
+
description: string;
|
|
126
|
+
/** Whether this template is deprecated */
|
|
127
|
+
deprecated: boolean;
|
|
128
|
+
/** Whether this template is hidden from user-facing generators */
|
|
129
|
+
hidden: boolean;
|
|
130
|
+
/** Static metadata for each method — implementation types supported per method */
|
|
131
|
+
methods: Record<string, _ExtensionMethodInfo>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Extension template manager
|
|
136
|
+
* Specialized TemplateManager for extension generation
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
export declare class _ExtensionTemplateManager extends _TemplateManager<_ExtensionParams, _ExtensionTemplateOutput, _ExtensionTemplate> {
|
|
140
|
+
/**
|
|
141
|
+
* Get summary info for all registered extension templates
|
|
142
|
+
*/
|
|
143
|
+
getTemplateInfo(): _ExtensionTemplateInfo[];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Output from extension template generation
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
150
|
+
export declare interface _ExtensionTemplateOutput extends _TemplateOutput {
|
|
151
|
+
/** Methods configuration for stripe-app.yaml */
|
|
152
|
+
methods: Record<string, unknown>;
|
|
153
|
+
/** Dependencies required by the extension */
|
|
154
|
+
dependencies?: {
|
|
155
|
+
dev?: _DevNpmDependency[];
|
|
156
|
+
runtime?: _NpmDependency[];
|
|
157
|
+
};
|
|
158
|
+
/** Post-generation hooks to run after files are generated and dependencies installed */
|
|
159
|
+
postGenerationHooks?: _PostGenerationHook[];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Result of writing files
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
export declare interface _FileWriteResult {
|
|
167
|
+
/**
|
|
168
|
+
* Paths of files that were successfully written (relative to cwd)
|
|
169
|
+
* Includes both newly created files and overwritten files
|
|
170
|
+
*/
|
|
171
|
+
written: string[];
|
|
172
|
+
/**
|
|
173
|
+
* Paths of all files that already existed before the operation (relative to cwd)
|
|
174
|
+
* Always populated when files exist, regardless of whether they were overwritten
|
|
175
|
+
*/
|
|
176
|
+
existing: string[];
|
|
177
|
+
/**
|
|
178
|
+
* Whether the entire operation was skipped due to overwrite='abort-if-existing' with existing files
|
|
179
|
+
* True only when overwrite='abort-if-existing' and files exist (all-or-nothing behavior)
|
|
180
|
+
* False for all other modes including interactive (even if user skips all files)
|
|
181
|
+
*/
|
|
182
|
+
skipped: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Whether the user aborted the operation during interactive prompting
|
|
185
|
+
* True only when user chose 'quit' during interactive mode
|
|
186
|
+
* Caller should stop further processing (dependencies, hooks, etc.)
|
|
187
|
+
*/
|
|
188
|
+
aborted: boolean;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Options for writing generated files
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
export declare interface _FileWriterOptions {
|
|
196
|
+
/**
|
|
197
|
+
* Working directory to write files relative to
|
|
198
|
+
* Defaults to process.cwd()
|
|
199
|
+
*/
|
|
200
|
+
cwd?: string;
|
|
201
|
+
/**
|
|
202
|
+
* How to handle existing files:
|
|
203
|
+
* - 'overwrite-all': Overwrite all existing files
|
|
204
|
+
* - 'abort-if-existing': Refuse to write ANY files if ANY already exist (all-or-nothing)
|
|
205
|
+
* - 'if-missing': Skip individual files that exist, write only missing files
|
|
206
|
+
* - function: Prompt before overwriting each file (interactive ask mode)
|
|
207
|
+
* Defaults to 'abort-if-existing'
|
|
208
|
+
*/
|
|
209
|
+
write?: _WriteMode;
|
|
210
|
+
/**
|
|
211
|
+
* Callback invoked after a file is successfully written
|
|
212
|
+
* @param file - The file that was written
|
|
213
|
+
* @param wasOverwrite - True if file existed and was overwritten, false if newly created
|
|
214
|
+
*/
|
|
215
|
+
onFileWritten?: (file: _GeneratedFile, wasOverwrite: boolean) => void;
|
|
216
|
+
/**
|
|
217
|
+
* Callback invoked when a file already exists and is skipped
|
|
218
|
+
* @param file - The file that was skipped
|
|
219
|
+
*/
|
|
220
|
+
onFileSkipped?: (file: _GeneratedFile) => void;
|
|
221
|
+
/**
|
|
222
|
+
* Callback invoked when a file already exists with identical content
|
|
223
|
+
* @param file - The file that is identical
|
|
224
|
+
*/
|
|
225
|
+
onFileIdentical?: (file: _GeneratedFile) => void;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Default TemplateFS instance rooted at templates/
|
|
230
|
+
*
|
|
231
|
+
* ESM: Uses filesystem implementation (reads from templates/ directory)
|
|
232
|
+
* CJS: This entire file is replaced with in-memory implementation
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
export declare const _fs: _TemplateFS;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Core generic types for the template system
|
|
239
|
+
*
|
|
240
|
+
* This module provides the foundation for a flexible, type-safe template system
|
|
241
|
+
* that can be specialized for different use cases (extensions, custom objects, etc.)
|
|
242
|
+
*/
|
|
243
|
+
/**
|
|
244
|
+
* Represents a single generated file
|
|
245
|
+
* @internal
|
|
246
|
+
*/
|
|
247
|
+
export declare interface _GeneratedFile {
|
|
248
|
+
/**
|
|
249
|
+
* Path to the file relative to project root
|
|
250
|
+
* Example: "extensions/my-extension/src/index.ts"
|
|
251
|
+
*/
|
|
252
|
+
path: string;
|
|
253
|
+
/**
|
|
254
|
+
* Content of the file
|
|
255
|
+
*/
|
|
256
|
+
content: string;
|
|
257
|
+
/**
|
|
258
|
+
* Never overwrite this file, even if --force specified.
|
|
259
|
+
*/
|
|
260
|
+
precious?: boolean;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* A runtime npm dependency to add to `dependencies` in package.json.
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
export declare interface _NpmDependency {
|
|
268
|
+
/** Discriminant tag identifying this as a runtime npm dependency. */
|
|
269
|
+
type: 'npm';
|
|
270
|
+
/** npm package name. */
|
|
271
|
+
name: string;
|
|
272
|
+
/** Semver version range. */
|
|
273
|
+
version: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* User decision when prompted about overwriting a file
|
|
278
|
+
* @internal
|
|
279
|
+
*/
|
|
280
|
+
export declare type _OverwriteDecision = 'abort' | 'overwrite-all' | 'overwrite' | 'skip';
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Callback function for prompting about file overwrites
|
|
284
|
+
* @param path - Relative path to the file that would be overwritten
|
|
285
|
+
* @param cwd - Working directory (for resolving the path)
|
|
286
|
+
* @param newContent - Content of the file that would be written
|
|
287
|
+
* @returns Promise resolving to user's decision
|
|
288
|
+
* @internal
|
|
289
|
+
*/
|
|
290
|
+
export declare type _OverwritePromptCallback = (path: string, cwd: string, newContent: string) => Promise<_OverwriteDecision>;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Post-generation hook configuration
|
|
294
|
+
* Either `script` (run via `pnpm run`) or `exec` (run via `pnpm exec`)
|
|
295
|
+
* @internal
|
|
296
|
+
*/
|
|
297
|
+
export declare type _PostGenerationHook = {
|
|
298
|
+
description?: string;
|
|
299
|
+
exec: string;
|
|
300
|
+
} | {
|
|
301
|
+
description?: string;
|
|
302
|
+
script: string;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Simple text-based prompt for overwrite decisions
|
|
307
|
+
* Uses single-keypress input in interactive terminals (no Enter required)
|
|
308
|
+
* Falls back to line-based input in non-interactive environments (tests, CI)
|
|
309
|
+
*
|
|
310
|
+
* @param filePath - Path to the file that would be overwritten
|
|
311
|
+
* @returns Promise resolving to user's decision
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
314
|
+
export declare function _promptOverwrite(filePath: string): Promise<_OverwriteDecision>;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Root workspace template manager
|
|
318
|
+
* Automatically selects filesystem or in-memory implementation
|
|
319
|
+
* @internal
|
|
320
|
+
*/
|
|
321
|
+
export declare const _rootTemplateManager: _SingleTemplateManager<_RootWorkspaceParams, _RootWorkspaceOutput>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Output from root workspace template generation
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
export declare interface _RootWorkspaceOutput extends _TemplateOutput {
|
|
328
|
+
/** Dependencies to install after file generation. */
|
|
329
|
+
dependencies?: {
|
|
330
|
+
dev?: _DevNpmDependency[];
|
|
331
|
+
runtime?: _NpmDependency[];
|
|
332
|
+
};
|
|
333
|
+
/** Hooks to run after dependencies are installed. */
|
|
334
|
+
postGenerationHooks?: _PostGenerationHook[];
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Parameters for root workspace template generation
|
|
339
|
+
* @internal
|
|
340
|
+
*/
|
|
341
|
+
export declare interface _RootWorkspaceParams extends Record<string, unknown> {
|
|
342
|
+
/** The app identifier (package.json `name`). */
|
|
343
|
+
appId: string;
|
|
344
|
+
/** The app display name (package.json `description`). */
|
|
345
|
+
appName: string;
|
|
346
|
+
/** The app version string. */
|
|
347
|
+
version: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Root workspace template generator.
|
|
352
|
+
*
|
|
353
|
+
* Generates common configuration files for the monorepo root:
|
|
354
|
+
* - .prettierrc (code formatting config)
|
|
355
|
+
* - .prettierignore (files to ignore in formatting)
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* ```typescript
|
|
359
|
+
* const output = rootWorkspaceTemplate.generate({}, context);
|
|
360
|
+
* await writeFiles(output.files, '.', true);
|
|
361
|
+
* ```
|
|
362
|
+
* @internal
|
|
363
|
+
*/
|
|
364
|
+
export declare const _rootWorkspaceTemplate: _Template<_RootWorkspaceParams, _RootWorkspaceOutput>;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Single template manager - no registry lookup needed
|
|
368
|
+
* For commands that only have one template
|
|
369
|
+
* @internal
|
|
370
|
+
*/
|
|
371
|
+
export declare class _SingleTemplateManager<TParams, TOutput extends _TemplateOutput = _TemplateOutput> {
|
|
372
|
+
private readonly template;
|
|
373
|
+
private readonly fs;
|
|
374
|
+
/**
|
|
375
|
+
* Create a new SingleTemplateManager
|
|
376
|
+
* @param template - The single template to use
|
|
377
|
+
* @param fs - Filesystem for template file reading
|
|
378
|
+
*/
|
|
379
|
+
constructor(template: _Template<TParams, TOutput>, fs: _TemplateFS);
|
|
380
|
+
/**
|
|
381
|
+
* Generate output from the template
|
|
382
|
+
* @param params - Template parameters
|
|
383
|
+
* @returns Template output
|
|
384
|
+
*/
|
|
385
|
+
generate(params: TParams): Promise<TOutput>;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Template definition
|
|
390
|
+
* Wraps a generate function with any associated metadata
|
|
391
|
+
*
|
|
392
|
+
* @typeParam TParams - Parameters for template generation
|
|
393
|
+
* @typeParam TOutput - Output type (must extend TemplateOutput)
|
|
394
|
+
* @internal
|
|
395
|
+
*/
|
|
396
|
+
export declare interface _Template<TParams, TOutput extends _TemplateOutput = _TemplateOutput> {
|
|
397
|
+
/**
|
|
398
|
+
* Generate files and other output from the template
|
|
399
|
+
*/
|
|
400
|
+
generate(params: TParams, context: _TemplateContext): Promise<TOutput> | TOutput;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Context for template generation
|
|
405
|
+
* Provides optional capabilities like file reading and user prompts
|
|
406
|
+
* Templates can ignore this parameter if they don't need these features
|
|
407
|
+
* @internal
|
|
408
|
+
*/
|
|
409
|
+
export declare interface _TemplateContext {
|
|
410
|
+
/**
|
|
411
|
+
* Filesystem abstraction for reading template files
|
|
412
|
+
*/
|
|
413
|
+
fs: _TemplateFS;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Filesystem abstraction for template factories
|
|
418
|
+
* @internal
|
|
419
|
+
*/
|
|
420
|
+
export declare interface _TemplateFS {
|
|
421
|
+
/**
|
|
422
|
+
* Read a text file relative to the templates directory
|
|
423
|
+
*
|
|
424
|
+
* Note: Only supports text files. Binary files are not supported by the
|
|
425
|
+
* current implementation (template content is embedded as strings during
|
|
426
|
+
* CJS bundling, which doesn't work for binary data).
|
|
427
|
+
*/
|
|
428
|
+
textFile(...segments: string[]): string;
|
|
429
|
+
/**
|
|
430
|
+
* Read a file and process it with Mustache template engine
|
|
431
|
+
* @param params - Parameters to pass to the template
|
|
432
|
+
* @param segments - Path segments to the template file
|
|
433
|
+
*/
|
|
434
|
+
mustache(params: Record<string, unknown>, ...segments: string[]): string;
|
|
435
|
+
/**
|
|
436
|
+
* Create a scoped TemplateFS with an implicit path prefix
|
|
437
|
+
* @param prefix - Path segment to prepend to all operations
|
|
438
|
+
* @returns New TemplateFS instance with the prefix applied
|
|
439
|
+
*/
|
|
440
|
+
scope(prefix: string): _TemplateFS;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Generic template manager
|
|
445
|
+
* Manages template selection and generation with full type safety
|
|
446
|
+
*
|
|
447
|
+
* @typeParam TParams - Template parameters type
|
|
448
|
+
* @typeParam TOutput - Template output type (must extend TemplateOutput)
|
|
449
|
+
* @typeParam TTemplate - Concrete template type (defaults to Template; specify to preserve extra fields in getTemplateEntries)
|
|
450
|
+
* @internal
|
|
451
|
+
*/
|
|
452
|
+
export declare class _TemplateManager<TParams, TOutput extends _TemplateOutput = _TemplateOutput, TTemplate extends _Template<TParams, TOutput> = _Template<TParams, TOutput>> {
|
|
453
|
+
private readonly templates;
|
|
454
|
+
private readonly fs;
|
|
455
|
+
/**
|
|
456
|
+
* Create a new TemplateManager
|
|
457
|
+
* @param templates - Object mapping string keys to templates
|
|
458
|
+
* @param fs - Filesystem abstraction for template file reading
|
|
459
|
+
*
|
|
460
|
+
* @example
|
|
461
|
+
* ```typescript
|
|
462
|
+
* import { fs } from './fs/index.js';
|
|
463
|
+
*
|
|
464
|
+
* const manager = new TemplateManager({
|
|
465
|
+
* foo: fooTemplate,
|
|
466
|
+
* bar: barTemplate,
|
|
467
|
+
* }, fs)
|
|
468
|
+
*
|
|
469
|
+
* await manager.generate('foo', params)
|
|
470
|
+
* ```
|
|
471
|
+
*/
|
|
472
|
+
constructor(templates: Record<string, TTemplate>, fs: _TemplateFS);
|
|
473
|
+
/**
|
|
474
|
+
* Generate output from a template
|
|
475
|
+
* @param key - Template key to generate from
|
|
476
|
+
* @param params - Template-specific parameters
|
|
477
|
+
* @returns Template output with files and any additional fields
|
|
478
|
+
* @throws Error if template key is not found
|
|
479
|
+
*/
|
|
480
|
+
generate(key: string, params: TParams): Promise<TOutput>;
|
|
481
|
+
/**
|
|
482
|
+
* Get all template entries as [key, template] pairs
|
|
483
|
+
*/
|
|
484
|
+
protected getTemplateEntries(): [string, TTemplate][];
|
|
485
|
+
/**
|
|
486
|
+
* Get list of all supported template keys
|
|
487
|
+
*/
|
|
488
|
+
getSupportedKeys(): string[];
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* ExtensionTemplateManager configured with built-in templates
|
|
493
|
+
* Automatically selects filesystem or in-memory implementation
|
|
494
|
+
* @internal
|
|
495
|
+
*/
|
|
496
|
+
export declare const _templateManager: _ExtensionTemplateManager;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Base template output - always includes files array
|
|
500
|
+
* Extend this interface to add additional output fields
|
|
501
|
+
* @internal
|
|
502
|
+
*/
|
|
503
|
+
export declare interface _TemplateOutput {
|
|
504
|
+
/** Files to write to disk. */
|
|
505
|
+
files: _GeneratedFile[];
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Write generated files to disk with configurable write behavior
|
|
510
|
+
*
|
|
511
|
+
* Write modes:
|
|
512
|
+
* - 'overwrite-all': Overwrite all existing files without prompting
|
|
513
|
+
* - 'abort-if-existing': Refuse to write ANY files if ANY exist (all-or-nothing, sets skipped=true)
|
|
514
|
+
* - 'if-missing': Write only files that don't exist, skip existing ones individually
|
|
515
|
+
* - function: Prompt for each existing file (y/n/a/q), allows selective overwriting
|
|
516
|
+
*
|
|
517
|
+
* Always creates parent directories as needed (mkdir -p behavior)
|
|
518
|
+
*
|
|
519
|
+
* @param files - Files to write
|
|
520
|
+
* @param options - Write options (cwd, write mode, callbacks)
|
|
521
|
+
* @returns Result with written files, existing files, and skip status
|
|
522
|
+
*
|
|
523
|
+
* @example
|
|
524
|
+
* ```typescript
|
|
525
|
+
* // All-or-nothing mode
|
|
526
|
+
* const result = await _writeGeneratedFiles(files, {
|
|
527
|
+
* cwd: process.cwd(),
|
|
528
|
+
* write: 'abort-if-existing'
|
|
529
|
+
* })
|
|
530
|
+
* if (result.skipped) {
|
|
531
|
+
* throw new Error(`Files exist: ${result.existing.join(', ')}`)
|
|
532
|
+
* }
|
|
533
|
+
*
|
|
534
|
+
* // Interactive mode
|
|
535
|
+
* await _writeGeneratedFiles(files, {
|
|
536
|
+
* cwd: process.cwd(),
|
|
537
|
+
* write: async (path, newContent) => await _promptOverwrite(path)
|
|
538
|
+
* })
|
|
539
|
+
* ```
|
|
540
|
+
* @internal
|
|
541
|
+
*/
|
|
542
|
+
export declare function _writeGeneratedFiles(files: _GeneratedFile[], options?: _FileWriterOptions): Promise<_FileWriteResult>;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* File write behavior modes
|
|
546
|
+
* - 'overwrite-all': Overwrite all existing files
|
|
547
|
+
* - 'abort-if-existing': Refuse to write ANY files if ANY already exist (all-or-nothing)
|
|
548
|
+
* - 'if-missing': Skip individual files that exist, write only missing files
|
|
549
|
+
* - function: Prompt before overwriting each file (interactive ask mode)
|
|
550
|
+
* @internal
|
|
551
|
+
*/
|
|
552
|
+
export declare type _WriteMode = _OverwritePromptCallback | 'abort-if-existing' | 'if-missing' | 'overwrite-all';
|
|
553
|
+
|
|
554
|
+
export { }
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* Excluded from this release type: _advancedDiffPrompt */
|
|
2
|
+
|
|
3
|
+
/* Excluded from this release type: _createExtensionEslintConfigFile */
|
|
4
|
+
|
|
5
|
+
/* Excluded from this release type: _createSimpleSingleFileTemplate */
|
|
6
|
+
|
|
7
|
+
/* Excluded from this release type: _createSimpleTemplate */
|
|
8
|
+
|
|
9
|
+
/* Excluded from this release type: _DevNpmDependency */
|
|
10
|
+
|
|
11
|
+
/* Excluded from this release type: _ExtensionMethodInfo */
|
|
12
|
+
|
|
13
|
+
/* Excluded from this release type: _ExtensionParams */
|
|
14
|
+
|
|
15
|
+
/* Excluded from this release type: _ExtensionTemplate */
|
|
16
|
+
|
|
17
|
+
/* Excluded from this release type: _ExtensionTemplateInfo */
|
|
18
|
+
|
|
19
|
+
/* Excluded from this release type: _ExtensionTemplateManager */
|
|
20
|
+
|
|
21
|
+
/* Excluded from this release type: _ExtensionTemplateOutput */
|
|
22
|
+
|
|
23
|
+
/* Excluded from this release type: _FileWriteResult */
|
|
24
|
+
|
|
25
|
+
/* Excluded from this release type: _FileWriterOptions */
|
|
26
|
+
|
|
27
|
+
/* Excluded from this release type: _fs */
|
|
28
|
+
|
|
29
|
+
/* Excluded from this release type: _GeneratedFile */
|
|
30
|
+
|
|
31
|
+
/* Excluded from this release type: _NpmDependency */
|
|
32
|
+
|
|
33
|
+
/* Excluded from this release type: _OverwriteDecision */
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: _OverwritePromptCallback */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: _PostGenerationHook */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: _promptOverwrite */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: _rootTemplateManager */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: _RootWorkspaceOutput */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: _RootWorkspaceParams */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: _rootWorkspaceTemplate */
|
|
48
|
+
|
|
49
|
+
/* Excluded from this release type: _SingleTemplateManager */
|
|
50
|
+
|
|
51
|
+
/* Excluded from this release type: _Template */
|
|
52
|
+
|
|
53
|
+
/* Excluded from this release type: _TemplateContext */
|
|
54
|
+
|
|
55
|
+
/* Excluded from this release type: _TemplateFS */
|
|
56
|
+
|
|
57
|
+
/* Excluded from this release type: _TemplateManager */
|
|
58
|
+
|
|
59
|
+
/* Excluded from this release type: _templateManager */
|
|
60
|
+
|
|
61
|
+
/* Excluded from this release type: _TemplateOutput */
|
|
62
|
+
|
|
63
|
+
/* Excluded from this release type: _writeGeneratedFiles */
|
|
64
|
+
|
|
65
|
+
/* Excluded from this release type: _WriteMode */
|
|
66
|
+
|
|
67
|
+
export { }
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/* Excluded from this release type: _CliContext */
|
|
4
|
+
|
|
5
|
+
/* Excluded from this release type: _CliUx */
|
|
6
|
+
|
|
7
|
+
/* Excluded from this release type: _defaultServices */
|
|
8
|
+
|
|
9
|
+
/* Excluded from this release type: _EndpointAuth */
|
|
10
|
+
|
|
11
|
+
/* Excluded from this release type: _EndpointDefinition */
|
|
12
|
+
|
|
13
|
+
/* Excluded from this release type: _PackageMetadata */
|
|
14
|
+
|
|
15
|
+
/* Excluded from this release type: _regenAppProjectWorkspace */
|
|
16
|
+
|
|
17
|
+
/* Excluded from this release type: _RegenWorkspaceOptions */
|
|
18
|
+
|
|
19
|
+
/* Excluded from this release type: _regenWorkspaceOptionsSchema */
|
|
20
|
+
|
|
21
|
+
/* Excluded from this release type: _resolvePackageMetadata */
|
|
22
|
+
|
|
23
|
+
/* Excluded from this release type: _WorkspaceDependency */
|
|
24
|
+
|
|
25
|
+
/* Excluded from this release type: _WorkspaceDependencyManager */
|
|
26
|
+
|
|
27
|
+
/* Excluded from this release type: _WorkspaceExtensionConfig */
|
|
28
|
+
|
|
29
|
+
/* Excluded from this release type: _WorkspaceFileWriteResult */
|
|
30
|
+
|
|
31
|
+
/* Excluded from this release type: _WorkspaceFileWriterOptions */
|
|
32
|
+
|
|
33
|
+
/* Excluded from this release type: _WorkspaceGeneratedFile */
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: _WorkspaceGenerateResult */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: _WorkspaceManifest */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: _WorkspaceOverwriteDecision */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: _WorkspaceOverwritePromptCallback */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: _WorkspacePendingChange */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: _WorkspacePostGenerationHook */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: _WorkspaceServices */
|
|
48
|
+
|
|
49
|
+
/* Excluded from this release type: _WorkspaceWriteMode */
|
|
50
|
+
|
|
51
|
+
export { }
|