@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,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads custom object definitions from the manifest, builds shared artifacts,
|
|
3
|
+
* transforms them to UpsertObjectDefinitionRequest proto-JSON, and writes the
|
|
4
|
+
* result to the target directory.
|
|
5
|
+
*
|
|
6
|
+
* For custom objects with `@Action` methods, also:
|
|
7
|
+
* - writes the transformed module to `extensions/methods.<id>/src/index.ts`
|
|
8
|
+
* - injects a `methods.<id>` extension entry into the source manifest so the
|
|
9
|
+
* platform's esbuild step can bundle the transformed code
|
|
10
|
+
*
|
|
11
|
+
* Custom objects without actions only produce proto-JSON definitions.
|
|
12
|
+
*
|
|
13
|
+
* The build is split into two phases:
|
|
14
|
+
* - **Phase 1** ({@link analyzeAndInjectManifest}): analysis, validation, and
|
|
15
|
+
* manifest injection. Runs before `.build/` exists so errors fail fast.
|
|
16
|
+
* - **Phase 2** ({@link writeCustomObjectArtifacts}): writes proto-JSON, template
|
|
17
|
+
* scaffolding, and transformed modules into the target directory.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
import * as customObjectTools from '@stripe/extensibility-custom-objects-tools/internal';
|
|
22
|
+
import { type _CustomObjectDefinition, _ManifestV2 } from '../manifest/index.js';
|
|
23
|
+
import { type _CliContext } from '@stripe/extensibility-tool-utils';
|
|
24
|
+
/** @internal */
|
|
25
|
+
export interface BuildDefinitionsOptions {
|
|
26
|
+
targetPath: string;
|
|
27
|
+
manifestPath?: string;
|
|
28
|
+
projectRoot?: string;
|
|
29
|
+
/** CLI context for user-facing output. */
|
|
30
|
+
context?: _CliContext;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Options for the Phase 1 analysis step. No `targetPath` because this runs
|
|
34
|
+
* before `.build/` exists.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export interface AnalyzeOptions {
|
|
39
|
+
manifestPath?: string | undefined;
|
|
40
|
+
projectRoot?: string | undefined;
|
|
41
|
+
/** CLI context for user-facing output. */
|
|
42
|
+
context?: _CliContext | undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Options for the Phase 2 artifact-writing step.
|
|
46
|
+
*
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
export interface WriteArtifactsOptions {
|
|
50
|
+
targetPath: string;
|
|
51
|
+
/** CLI context for user-facing output. */
|
|
52
|
+
context?: _CliContext | undefined;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* In-memory state atom returned by Phase 1 and consumed by Phase 2.
|
|
56
|
+
* Not JSON-serializable — holds references to the package build result
|
|
57
|
+
* which includes `transformedModules`.
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export interface CustomObjectBuildState {
|
|
62
|
+
packageBuild: customObjectTools.CustomObjectPackageBuildResult;
|
|
63
|
+
customObjects: _CustomObjectDefinition[];
|
|
64
|
+
manifest: _ManifestV2;
|
|
65
|
+
coVersion: string;
|
|
66
|
+
coDependencies: Record<string, string> | undefined;
|
|
67
|
+
projectRoot: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Phase 1: Load manifest, discover custom objects, run the package build,
|
|
71
|
+
* validate, and inject `methods.<id>` extension entries into the source
|
|
72
|
+
* manifest for COs with actions.
|
|
73
|
+
*
|
|
74
|
+
* Returns a state atom that Phase 2 consumes to write artifacts.
|
|
75
|
+
*
|
|
76
|
+
* @throws When package diagnostics contain errors (fail-fast before `.build/`).
|
|
77
|
+
* @returns `null` if the manifest has no custom objects.
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
export declare function analyzeAndInjectManifest(options: AnalyzeOptions): Promise<CustomObjectBuildState | null>;
|
|
81
|
+
/**
|
|
82
|
+
* Phase 2: Write proto-JSON definitions, template scaffolding, and
|
|
83
|
+
* transformed modules into the target directory using the state atom
|
|
84
|
+
* produced by Phase 1.
|
|
85
|
+
*
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
export declare function writeCustomObjectArtifacts(options: WriteArtifactsOptions, state: CustomObjectBuildState): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Build custom object definition JSON files for the upload image.
|
|
91
|
+
*
|
|
92
|
+
* Thin wrapper that calls Phase 1 ({@link analyzeAndInjectManifest}) then
|
|
93
|
+
* Phase 2 ({@link writeCustomObjectArtifacts}) for backward compatibility.
|
|
94
|
+
*
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
export declare function buildCustomObjectDefinitions(options: BuildDefinitionsOptions): Promise<void>;
|
|
98
|
+
//# sourceMappingURL=build-definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-definitions.d.ts","sourceRoot":"","sources":["../../src/custom-objects/build-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,iBAAiB,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,KAAK,uBAAuB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEvF,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,0CAA0C;IAC1C,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,iBAAiB,CAAC,8BAA8B,CAAC;IAC/D,aAAa,EAAE,uBAAuB,EAAE,CAAC;IACzC,QAAQ,EAAE,WAAW,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IACnD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAsGxC;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAE,sBAAsB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAmEf;AAED;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC,CAef"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { type Metadata } from "../../../../vendor/metadata/pub/api/api_metadata.pb.js";
|
|
2
|
+
import { type TargetCompartment } from "../../../../vendor/publicapi/v2ext.pb.js";
|
|
3
|
+
import { type FieldSchema } from "../common/schema.pb.js";
|
|
4
|
+
export declare const protobufPackage = "com.stripe.custom_objects.pub.api.app_api";
|
|
5
|
+
export interface ActionDefinition {
|
|
6
|
+
kind: {
|
|
7
|
+
$case: "scriptActionDefinition";
|
|
8
|
+
value: ActionDefinition_ScriptActionDefinition;
|
|
9
|
+
} | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface ActionDefinition_ScriptActionDefinition {
|
|
12
|
+
/** Method name in script. */
|
|
13
|
+
scriptMethodName: string;
|
|
14
|
+
/** Human-readable display name for this action. */
|
|
15
|
+
displayName?: string | undefined;
|
|
16
|
+
/** Description for this action. */
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
/** The input properties for this action. Used for input validation & OpenAPI Spec generation. */
|
|
19
|
+
inputProperties: {
|
|
20
|
+
[key: string]: FieldSchema;
|
|
21
|
+
};
|
|
22
|
+
/** The output properties for this action. Used for OpenAPI Spec generation. */
|
|
23
|
+
outputProperties: {
|
|
24
|
+
[key: string]: FieldSchema;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface ActionDefinition_ScriptActionDefinition_InputPropertiesEntry {
|
|
28
|
+
key: string;
|
|
29
|
+
value: FieldSchema | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface ActionDefinition_ScriptActionDefinition_OutputPropertiesEntry {
|
|
32
|
+
key: string;
|
|
33
|
+
value: FieldSchema | undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface ObjectDefinition {
|
|
36
|
+
/** Unique identifier for the object definition. */
|
|
37
|
+
id: string;
|
|
38
|
+
/** The singular API name of the object definition. This will be used in object tags of its object record instances. */
|
|
39
|
+
apiNameSingular: string;
|
|
40
|
+
/** The plural API name of the object definition. This will be used in object records' API paths. */
|
|
41
|
+
apiNamePlural: string;
|
|
42
|
+
/** Human-readable singular display name to show in the dashboard. */
|
|
43
|
+
displayNameSingular: string;
|
|
44
|
+
/** Human-readable plural display name to show in the dashboard. */
|
|
45
|
+
displayNamePlural: string;
|
|
46
|
+
/** Description of what the object definition represents. */
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
/** The property to use as primary in table & detail views. */
|
|
49
|
+
primaryDisplayProperty: string;
|
|
50
|
+
/** The property to use as secondary in table & detail views. */
|
|
51
|
+
secondaryDisplayProperty?: string | undefined;
|
|
52
|
+
/** The properties for this object definition. */
|
|
53
|
+
properties: {
|
|
54
|
+
[key: string]: FieldSchema;
|
|
55
|
+
};
|
|
56
|
+
/** Arbitrary set of key-value pairs that you can attach to the object definition. */
|
|
57
|
+
metadata: Metadata | undefined;
|
|
58
|
+
/** Time at which the object was created. */
|
|
59
|
+
created: Date | undefined;
|
|
60
|
+
/** Time at which the object was last updated. */
|
|
61
|
+
updated: Date | undefined;
|
|
62
|
+
}
|
|
63
|
+
export interface ObjectDefinition_PropertiesEntry {
|
|
64
|
+
key: string;
|
|
65
|
+
value: FieldSchema | undefined;
|
|
66
|
+
}
|
|
67
|
+
export interface UpsertObjectDefinitionRequest {
|
|
68
|
+
/**
|
|
69
|
+
* The singular API name of the object definition. This will be used in object tags of its object record instances.
|
|
70
|
+
* If an object definition with the same api_name_singular already exists in the compartment, it will updated,
|
|
71
|
+
* otherwise we'll create a new one.
|
|
72
|
+
*/
|
|
73
|
+
apiNameSingular: string;
|
|
74
|
+
/** The plural API name of the object definition. This will be used in object records' API paths. */
|
|
75
|
+
apiNamePlural: string;
|
|
76
|
+
/** Human-readable singular display name to show in the dashboard. */
|
|
77
|
+
displayNameSingular: string;
|
|
78
|
+
/** Human-readable plural display name to show in the dashboard. */
|
|
79
|
+
displayNamePlural: string;
|
|
80
|
+
/** Description of what the object definition represents. */
|
|
81
|
+
description?: string | undefined;
|
|
82
|
+
/** The property to use as primary in table & detail views. */
|
|
83
|
+
primaryDisplayProperty: string;
|
|
84
|
+
/** The property to use as secondary in table & detail views. */
|
|
85
|
+
secondaryDisplayProperty?: string | undefined;
|
|
86
|
+
/** The properties for this object definition. */
|
|
87
|
+
properties: {
|
|
88
|
+
[key: string]: FieldSchema;
|
|
89
|
+
};
|
|
90
|
+
/** ID of the script that contains the actions for this object definition. */
|
|
91
|
+
apiActionsScript?: string | undefined;
|
|
92
|
+
/** API invokable actions. Map of SDK compatible API name (e.g. cancel_plan) to action definition. */
|
|
93
|
+
apiActions: {
|
|
94
|
+
[key: string]: ActionDefinition;
|
|
95
|
+
};
|
|
96
|
+
/** Arbitrary set of key-value pairs that you can attach to the object definition. */
|
|
97
|
+
metadata: Metadata | undefined;
|
|
98
|
+
/** Target compartment. */
|
|
99
|
+
targetCompartment: TargetCompartment | undefined;
|
|
100
|
+
}
|
|
101
|
+
export interface UpsertObjectDefinitionRequest_PropertiesEntry {
|
|
102
|
+
key: string;
|
|
103
|
+
value: FieldSchema | undefined;
|
|
104
|
+
}
|
|
105
|
+
export interface UpsertObjectDefinitionRequest_ApiActionsEntry {
|
|
106
|
+
key: string;
|
|
107
|
+
value: ActionDefinition | undefined;
|
|
108
|
+
}
|
|
109
|
+
export interface UpsertObjectDefinitionResponse {
|
|
110
|
+
objectDefinition: ObjectDefinition | undefined;
|
|
111
|
+
}
|
|
112
|
+
export interface UpdateObjectDefinitionsMethodsScriptsRequest {
|
|
113
|
+
/** Map of extension public ID to script. */
|
|
114
|
+
methodsScripts: {
|
|
115
|
+
[key: string]: string;
|
|
116
|
+
};
|
|
117
|
+
/** Compartment that owns the object definitions and scripts. */
|
|
118
|
+
targetCompartment: TargetCompartment | undefined;
|
|
119
|
+
}
|
|
120
|
+
export interface UpdateObjectDefinitionsMethodsScriptsRequest_MethodsScriptsEntry {
|
|
121
|
+
key: string;
|
|
122
|
+
value: string;
|
|
123
|
+
}
|
|
124
|
+
export interface UpdateObjectDefinitionsMethodsScriptsResponse {
|
|
125
|
+
objectDefinitionIds: string[];
|
|
126
|
+
}
|
|
127
|
+
export interface ObjectDefinitionsAppApi {
|
|
128
|
+
/** Updates an existing object definition, or creates a new one if it doesn't exist. */
|
|
129
|
+
UpsertObjectDefinition(request: UpsertObjectDefinitionRequest): Promise<UpsertObjectDefinitionResponse>;
|
|
130
|
+
/** Updates the scripts that back object definitions' methods. */
|
|
131
|
+
UpdateObjectDefinitionsMethodsScripts(request: UpdateObjectDefinitionsMethodsScriptsRequest): Promise<UpdateObjectDefinitionsMethodsScriptsResponse>;
|
|
132
|
+
}
|
|
133
|
+
type ProtoMetaMessageOptions = {
|
|
134
|
+
options?: {
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
};
|
|
137
|
+
fields?: {
|
|
138
|
+
[key: string]: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
oneof?: {
|
|
143
|
+
[key: string]: {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
nested?: {
|
|
148
|
+
[key: string]: ProtoMetaMessageOptions;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export interface ProtoMetadata {
|
|
152
|
+
references: {
|
|
153
|
+
[key: string]: any;
|
|
154
|
+
};
|
|
155
|
+
dependencies?: ProtoMetadata[];
|
|
156
|
+
options?: {
|
|
157
|
+
options?: {
|
|
158
|
+
[key: string]: any;
|
|
159
|
+
};
|
|
160
|
+
services?: {
|
|
161
|
+
[key: string]: {
|
|
162
|
+
options?: {
|
|
163
|
+
[key: string]: any;
|
|
164
|
+
};
|
|
165
|
+
methods?: {
|
|
166
|
+
[key: string]: {
|
|
167
|
+
[key: string]: any;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
messages?: {
|
|
173
|
+
[key: string]: ProtoMetaMessageOptions;
|
|
174
|
+
};
|
|
175
|
+
enums?: {
|
|
176
|
+
[key: string]: {
|
|
177
|
+
options?: {
|
|
178
|
+
[key: string]: any;
|
|
179
|
+
};
|
|
180
|
+
values?: {
|
|
181
|
+
[key: string]: {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
export declare const protoMetadata: ProtoMetadata;
|
|
190
|
+
export {};
|
|
191
|
+
//# sourceMappingURL=object_definitions_app_service.pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object_definitions_app_service.pb.d.ts","sourceRoot":"","sources":["../../../../../../../../src/custom-objects/generated/proto/custom_objects/pub/api/app_api/object_definitions_app_service.pb.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,KAAK,WAAW,EAAmC,MAAM,wBAAwB,CAAC;AAE3F,eAAO,MAAM,eAAe,8CAA8C,CAAC;AAE3E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QAAE,KAAK,EAAE,wBAAwB,CAAC;QAAC,KAAK,EAAE,uCAAuC,CAAA;KAAE,GAAG,SAAS,CAAC;CACvG;AAED,MAAM,WAAW,uCAAuC;IACtD,6BAA6B;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,WAAW,CAAC,EACR,MAAM,GACN,SAAS,CAAC;IACd,mCAAmC;IACnC,WAAW,CAAC,EACR,MAAM,GACN,SAAS,CAAC;IACd,iGAAiG;IACjG,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,CAAC;IAChD,+EAA+E;IAC/E,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,CAAC;CAClD;AAED,MAAM,WAAW,4DAA4D;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,WAAW,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,6DAA6D;IAC5E,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,WAAW,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,uHAAuH;IACvH,eAAe,EAAE,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,GAAG,CAAA;qBAAE,CAAA;iBAAE,CAAA;aAAE,CAAA;SAAE,CAAC;KACrH,CAAC;CACH;AAED,eAAO,MAAM,aAAa,EAAE,aAI3B,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { type FieldPresence } from "../../../../vendor/publicapi/v2ext.pb.js";
|
|
2
|
+
export declare const protobufPackage = "com.stripe.custom_objects.pub.api.common";
|
|
3
|
+
export declare const DataType: {
|
|
4
|
+
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
5
|
+
readonly STRING_TYPE: "STRING_TYPE";
|
|
6
|
+
readonly INTEGER_TYPE: "INTEGER_TYPE";
|
|
7
|
+
readonly BOOLEAN_TYPE: "BOOLEAN_TYPE";
|
|
8
|
+
readonly ENUM_TYPE: "ENUM_TYPE";
|
|
9
|
+
readonly OBJECT_REFERENCE_TYPE: "OBJECT_REFERENCE_TYPE";
|
|
10
|
+
readonly DATETIME_TYPE: "DATETIME_TYPE";
|
|
11
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
12
|
+
};
|
|
13
|
+
export type DataType = typeof DataType[keyof typeof DataType];
|
|
14
|
+
export declare namespace DataType {
|
|
15
|
+
type UNSPECIFIED = typeof DataType.UNSPECIFIED;
|
|
16
|
+
type STRING_TYPE = typeof DataType.STRING_TYPE;
|
|
17
|
+
type INTEGER_TYPE = typeof DataType.INTEGER_TYPE;
|
|
18
|
+
type BOOLEAN_TYPE = typeof DataType.BOOLEAN_TYPE;
|
|
19
|
+
type ENUM_TYPE = typeof DataType.ENUM_TYPE;
|
|
20
|
+
type OBJECT_REFERENCE_TYPE = typeof DataType.OBJECT_REFERENCE_TYPE;
|
|
21
|
+
type DATETIME_TYPE = typeof DataType.DATETIME_TYPE;
|
|
22
|
+
type UNRECOGNIZED = typeof DataType.UNRECOGNIZED;
|
|
23
|
+
}
|
|
24
|
+
export interface DefaultValue {
|
|
25
|
+
value: {
|
|
26
|
+
$case: "stringDefault";
|
|
27
|
+
value: string;
|
|
28
|
+
} | {
|
|
29
|
+
$case: "integerDefault";
|
|
30
|
+
value: number;
|
|
31
|
+
} | {
|
|
32
|
+
$case: "booleanDefault";
|
|
33
|
+
value: boolean;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface ValueBoundary {
|
|
37
|
+
value: {
|
|
38
|
+
$case: "integerBoundary";
|
|
39
|
+
value: number;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface FieldSchema {
|
|
43
|
+
/** The data type of the field. */
|
|
44
|
+
type: DataType;
|
|
45
|
+
/** An optional human-readable name for the field. */
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
/** An optional human-readable description of the field. */
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
/** Whether or not the field is required (default false). */
|
|
50
|
+
required?: boolean | undefined;
|
|
51
|
+
/** An optional default value for the field. */
|
|
52
|
+
default?: DefaultValue | undefined;
|
|
53
|
+
/** Whether or not the field is deprecated (default false). */
|
|
54
|
+
deprecated?: boolean | undefined;
|
|
55
|
+
/** An optional minimum length validation for string fields. */
|
|
56
|
+
minLength?: number | undefined;
|
|
57
|
+
/** An optional maximum length validation for string fields. */
|
|
58
|
+
maxLength?: number | undefined;
|
|
59
|
+
/** An optional minimum value for integer types. */
|
|
60
|
+
minimum?: ValueBoundary | undefined;
|
|
61
|
+
/** An optional exclusive minimum value for integer types. */
|
|
62
|
+
exclusiveMinimum?: ValueBoundary | undefined;
|
|
63
|
+
/** An optional maximum value for integer types. */
|
|
64
|
+
maximum?: ValueBoundary | undefined;
|
|
65
|
+
/** An optional exclusive maximum value for integer types. */
|
|
66
|
+
exclusiveMaximum?: ValueBoundary | undefined;
|
|
67
|
+
/** A required list of values for enum types. */
|
|
68
|
+
values: string[];
|
|
69
|
+
valuesPresence: FieldPresence;
|
|
70
|
+
/** The type referenced by object reference fields. */
|
|
71
|
+
referencedType?: string | undefined;
|
|
72
|
+
}
|
|
73
|
+
type ProtoMetaMessageOptions = {
|
|
74
|
+
options?: {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
};
|
|
77
|
+
fields?: {
|
|
78
|
+
[key: string]: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
oneof?: {
|
|
83
|
+
[key: string]: {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
nested?: {
|
|
88
|
+
[key: string]: ProtoMetaMessageOptions;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export interface ProtoMetadata {
|
|
92
|
+
references: {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
};
|
|
95
|
+
dependencies?: ProtoMetadata[];
|
|
96
|
+
options?: {
|
|
97
|
+
options?: {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
};
|
|
100
|
+
services?: {
|
|
101
|
+
[key: string]: {
|
|
102
|
+
options?: {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
};
|
|
105
|
+
methods?: {
|
|
106
|
+
[key: string]: {
|
|
107
|
+
[key: string]: any;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
messages?: {
|
|
113
|
+
[key: string]: ProtoMetaMessageOptions;
|
|
114
|
+
};
|
|
115
|
+
enums?: {
|
|
116
|
+
[key: string]: {
|
|
117
|
+
options?: {
|
|
118
|
+
[key: string]: any;
|
|
119
|
+
};
|
|
120
|
+
values?: {
|
|
121
|
+
[key: string]: {
|
|
122
|
+
[key: string]: any;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export declare const protoMetadata: ProtoMetadata;
|
|
130
|
+
export {};
|
|
131
|
+
//# sourceMappingURL=schema.pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.pb.d.ts","sourceRoot":"","sources":["../../../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