@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,1111 @@
|
|
|
1
|
+
import { type FieldPrivacySetting } from "../vext/privacy_unified_annotations.pb.js";
|
|
2
|
+
import { type ApiGroup } from "./api_group_enum.pb.js";
|
|
3
|
+
import { type ApiFieldVisibility } from "./api_visibility.pb.js";
|
|
4
|
+
import { type CustomizeDispatchMiddleware } from "./customize_dispatch_middleware_enum.pb.js";
|
|
5
|
+
import { type DocsNamespaceGroup } from "./docs_namespace_group_enum.pb.js";
|
|
6
|
+
import { type Documented } from "./documented_enum.pb.js";
|
|
7
|
+
import { type EventScope } from "./event_scope_enum.pb.js";
|
|
8
|
+
import { type ExtensionImplementationType as ExtensionImplementationType24, type ExtensionRetryPolicy, type ScriptExecutionProfile, type UsageType } from "./extension_interface.pb.js";
|
|
9
|
+
import { type Feature } from "./feature_enum.pb.js";
|
|
10
|
+
import { type Flavor } from "./flavor_enum.pb.js";
|
|
11
|
+
import { type HttpErrorStatus } from "./http_error_status.pb.js";
|
|
12
|
+
import { type MethodKind } from "./method_kind_enum.pb.js";
|
|
13
|
+
import { type Priority } from "./method_priority.pb.js";
|
|
14
|
+
import { type PermissionCheck } from "./permission_check_enum.pb.js";
|
|
15
|
+
import { type Redaction } from "./redaction_enum.pb.js";
|
|
16
|
+
import { type RegionRouter } from "./region_routers.pb.js";
|
|
17
|
+
import { type RolloutConfig_RolloutConfigPhase } from "./rollout_configs.pb.js";
|
|
18
|
+
export declare const protobufPackage = "com.stripe.v2";
|
|
19
|
+
export declare const HttpMethod: {
|
|
20
|
+
/** HTTP_METHOD_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
21
|
+
readonly HTTP_METHOD_INVALID: "HTTP_METHOD_INVALID";
|
|
22
|
+
readonly GET: "GET";
|
|
23
|
+
readonly POST: "POST";
|
|
24
|
+
readonly DELETE: "DELETE";
|
|
25
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
26
|
+
};
|
|
27
|
+
export type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
|
|
28
|
+
export declare namespace HttpMethod {
|
|
29
|
+
type HTTP_METHOD_INVALID = typeof HttpMethod.HTTP_METHOD_INVALID;
|
|
30
|
+
type GET = typeof HttpMethod.GET;
|
|
31
|
+
type POST = typeof HttpMethod.POST;
|
|
32
|
+
type DELETE = typeof HttpMethod.DELETE;
|
|
33
|
+
type UNRECOGNIZED = typeof HttpMethod.UNRECOGNIZED;
|
|
34
|
+
}
|
|
35
|
+
/** Indicate if a v2 error is expected to be retryable by users */
|
|
36
|
+
export declare const ShouldRetryError: {
|
|
37
|
+
/**
|
|
38
|
+
* SHOULD_RETRY_ERROR_INVALID - Defaults to same behavior as based on AUTO
|
|
39
|
+
* buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
|
40
|
+
*/
|
|
41
|
+
readonly SHOULD_RETRY_ERROR_INVALID: "SHOULD_RETRY_ERROR_INVALID";
|
|
42
|
+
/**
|
|
43
|
+
* SHOULD_RETRY - Indicates an error may be transient and an idempotent retry is likely to succeed
|
|
44
|
+
* If an error is possibly retryable
|
|
45
|
+
*/
|
|
46
|
+
readonly SHOULD_RETRY: "SHOULD_RETRY";
|
|
47
|
+
/** DO_NOT_RETRY - Indicates an idempotent retry will NEVER succeed. Use sparingly and mostly for invalid requests. */
|
|
48
|
+
readonly DO_NOT_RETRY: "DO_NOT_RETRY";
|
|
49
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
50
|
+
};
|
|
51
|
+
export type ShouldRetryError = typeof ShouldRetryError[keyof typeof ShouldRetryError];
|
|
52
|
+
export declare namespace ShouldRetryError {
|
|
53
|
+
type SHOULD_RETRY_ERROR_INVALID = typeof ShouldRetryError.SHOULD_RETRY_ERROR_INVALID;
|
|
54
|
+
type SHOULD_RETRY = typeof ShouldRetryError.SHOULD_RETRY;
|
|
55
|
+
type DO_NOT_RETRY = typeof ShouldRetryError.DO_NOT_RETRY;
|
|
56
|
+
type UNRECOGNIZED = typeof ShouldRetryError.UNRECOGNIZED;
|
|
57
|
+
}
|
|
58
|
+
export declare const GraphQlOperationType: {
|
|
59
|
+
/** GRAPH_QL_OPERATION_TYPE_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
60
|
+
readonly GRAPH_QL_OPERATION_TYPE_INVALID: "GRAPH_QL_OPERATION_TYPE_INVALID";
|
|
61
|
+
readonly QUERY: "QUERY";
|
|
62
|
+
readonly MUTATION: "MUTATION";
|
|
63
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
64
|
+
};
|
|
65
|
+
export type GraphQlOperationType = typeof GraphQlOperationType[keyof typeof GraphQlOperationType];
|
|
66
|
+
export declare namespace GraphQlOperationType {
|
|
67
|
+
type GRAPH_QL_OPERATION_TYPE_INVALID = typeof GraphQlOperationType.GRAPH_QL_OPERATION_TYPE_INVALID;
|
|
68
|
+
type QUERY = typeof GraphQlOperationType.QUERY;
|
|
69
|
+
type MUTATION = typeof GraphQlOperationType.MUTATION;
|
|
70
|
+
type UNRECOGNIZED = typeof GraphQlOperationType.UNRECOGNIZED;
|
|
71
|
+
}
|
|
72
|
+
/** Represents the presence of a field */
|
|
73
|
+
export declare const FieldPresence: {
|
|
74
|
+
/** FIELD_PRESENCE_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
75
|
+
readonly FIELD_PRESENCE_INVALID: "FIELD_PRESENCE_INVALID";
|
|
76
|
+
readonly PRESENT: "PRESENT";
|
|
77
|
+
readonly NOT_PRESENT: "NOT_PRESENT";
|
|
78
|
+
readonly PRESENT_BUT_NULL: "PRESENT_BUT_NULL";
|
|
79
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
80
|
+
};
|
|
81
|
+
export type FieldPresence = typeof FieldPresence[keyof typeof FieldPresence];
|
|
82
|
+
export declare namespace FieldPresence {
|
|
83
|
+
type FIELD_PRESENCE_INVALID = typeof FieldPresence.FIELD_PRESENCE_INVALID;
|
|
84
|
+
type PRESENT = typeof FieldPresence.PRESENT;
|
|
85
|
+
type NOT_PRESENT = typeof FieldPresence.NOT_PRESENT;
|
|
86
|
+
type PRESENT_BUT_NULL = typeof FieldPresence.PRESENT_BUT_NULL;
|
|
87
|
+
type UNRECOGNIZED = typeof FieldPresence.UNRECOGNIZED;
|
|
88
|
+
}
|
|
89
|
+
export declare const ExtensionImplementationType: {
|
|
90
|
+
/** EXTENSION_IMPLEMENTATION_TYPE_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
91
|
+
readonly EXTENSION_IMPLEMENTATION_TYPE_INVALID: "EXTENSION_IMPLEMENTATION_TYPE_INVALID";
|
|
92
|
+
readonly REMOTE_FUNCTION: "REMOTE_FUNCTION";
|
|
93
|
+
readonly SCRIPT: "SCRIPT";
|
|
94
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
95
|
+
};
|
|
96
|
+
export type ExtensionImplementationType = typeof ExtensionImplementationType[keyof typeof ExtensionImplementationType];
|
|
97
|
+
export declare namespace ExtensionImplementationType {
|
|
98
|
+
type EXTENSION_IMPLEMENTATION_TYPE_INVALID = typeof ExtensionImplementationType.EXTENSION_IMPLEMENTATION_TYPE_INVALID;
|
|
99
|
+
type REMOTE_FUNCTION = typeof ExtensionImplementationType.REMOTE_FUNCTION;
|
|
100
|
+
type SCRIPT = typeof ExtensionImplementationType.SCRIPT;
|
|
101
|
+
type UNRECOGNIZED = typeof ExtensionImplementationType.UNRECOGNIZED;
|
|
102
|
+
}
|
|
103
|
+
/** Declares what type of change an event represents. */
|
|
104
|
+
export declare const ChangeTraitStyle: {
|
|
105
|
+
/** CHANGE_TRAIT_STYLE_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
106
|
+
readonly CHANGE_TRAIT_STYLE_INVALID: "CHANGE_TRAIT_STYLE_INVALID";
|
|
107
|
+
/**
|
|
108
|
+
* CREATION - Creation event: Only "after" state in Changes.
|
|
109
|
+
* The related object was just created, so there's no "before" state.
|
|
110
|
+
*/
|
|
111
|
+
readonly CREATION: "CREATION";
|
|
112
|
+
/**
|
|
113
|
+
* MODIFICATION - Modification event: Both "before" and "after" states in Changes.
|
|
114
|
+
* The related object existed and was modified.
|
|
115
|
+
*/
|
|
116
|
+
readonly MODIFICATION: "MODIFICATION";
|
|
117
|
+
/**
|
|
118
|
+
* DELETION - Deletion event: Only "before" state in Changes.
|
|
119
|
+
* The related object was deleted, so there's no "after" state.
|
|
120
|
+
*/
|
|
121
|
+
readonly DELETION: "DELETION";
|
|
122
|
+
/**
|
|
123
|
+
* NONE - No changes: Event has no Changes field.
|
|
124
|
+
* Used for events that don't represent object state changes.
|
|
125
|
+
*/
|
|
126
|
+
readonly NONE: "NONE";
|
|
127
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
128
|
+
};
|
|
129
|
+
export type ChangeTraitStyle = typeof ChangeTraitStyle[keyof typeof ChangeTraitStyle];
|
|
130
|
+
export declare namespace ChangeTraitStyle {
|
|
131
|
+
type CHANGE_TRAIT_STYLE_INVALID = typeof ChangeTraitStyle.CHANGE_TRAIT_STYLE_INVALID;
|
|
132
|
+
type CREATION = typeof ChangeTraitStyle.CREATION;
|
|
133
|
+
type MODIFICATION = typeof ChangeTraitStyle.MODIFICATION;
|
|
134
|
+
type DELETION = typeof ChangeTraitStyle.DELETION;
|
|
135
|
+
type NONE = typeof ChangeTraitStyle.NONE;
|
|
136
|
+
type UNRECOGNIZED = typeof ChangeTraitStyle.UNRECOGNIZED;
|
|
137
|
+
}
|
|
138
|
+
export interface ExtensionInterfaceSpec {
|
|
139
|
+
interfaceId: string;
|
|
140
|
+
/** Project responsible for this service. */
|
|
141
|
+
project: string;
|
|
142
|
+
rolloutConfig: string;
|
|
143
|
+
usageType: UsageType;
|
|
144
|
+
scriptExecution: ScriptExecutionSpec | undefined;
|
|
145
|
+
apiGroup: ApiGroup;
|
|
146
|
+
docs: ExtensionInterfaceSpec_Docs | undefined;
|
|
147
|
+
}
|
|
148
|
+
/** Configures how this extension interface appears on [narrative documentation](docs.stripe.com). */
|
|
149
|
+
export interface ExtensionInterfaceSpec_Docs {
|
|
150
|
+
/**
|
|
151
|
+
* The human-readable title for this extension interface shown in documentation.
|
|
152
|
+
* Derived from the gRPC service name by stripping the "Api" suffix and converting to title case.
|
|
153
|
+
*
|
|
154
|
+
* Consider overriding when:
|
|
155
|
+
* - The derived title includes an unwanted suffix (e.g., "Extension") not part of the public name
|
|
156
|
+
* - Abbreviations are incorrectly cased (e.g., "ACH", "US")
|
|
157
|
+
* - The public-facing name differs from the gRPC service name
|
|
158
|
+
*
|
|
159
|
+
* Example: "CustomActionExtensionApi" auto-derives to "Custom Action Extension";
|
|
160
|
+
* override to "Custom Action"
|
|
161
|
+
*/
|
|
162
|
+
title: string;
|
|
163
|
+
/**
|
|
164
|
+
* The URL path for this extension interface's documentation page, relative to docs.stripe.com.
|
|
165
|
+
* Derived as "/extensions/<dasherized-service-name>" (with the "Api" suffix stripped).
|
|
166
|
+
*
|
|
167
|
+
* Consider overriding when:
|
|
168
|
+
* - The derived path includes unwanted segments (e.g., "-extension" suffix from the service name)
|
|
169
|
+
* - The desired public route doesn't match the gRPC service name
|
|
170
|
+
*
|
|
171
|
+
* Example: "CustomActionExtensionApi" auto-derives to "/extensions/custom-action-extension";
|
|
172
|
+
* override to "/extensions/custom-action"
|
|
173
|
+
*/
|
|
174
|
+
route: string;
|
|
175
|
+
/**
|
|
176
|
+
* Additional URL paths relative to docs.stripe.com that redirect to this extension interface's documentation page.
|
|
177
|
+
*
|
|
178
|
+
* Example: redirect: "/extensions/old-llama-extension-interface"
|
|
179
|
+
*/
|
|
180
|
+
redirect: string[];
|
|
181
|
+
}
|
|
182
|
+
export interface ScriptExecutionSpec {
|
|
183
|
+
/** Which execution profile is allowed for scripts run through this extension interface. */
|
|
184
|
+
profile: ScriptExecutionProfile;
|
|
185
|
+
}
|
|
186
|
+
export interface ExtensionInterfaceMethodSpec {
|
|
187
|
+
extensionMethodId: string;
|
|
188
|
+
/** @deprecated */
|
|
189
|
+
allowedImplementationTypesDeprecated: ExtensionImplementationType[];
|
|
190
|
+
/** @deprecated */
|
|
191
|
+
retryPolicyDeprecated: ExtensionInterfaceMethodSpec_RetryPolicy | undefined;
|
|
192
|
+
errors: ExtensionInterfaceMethodSpec_ErrorDefinition[];
|
|
193
|
+
allowedImplementationTypes: ExtensionImplementationType24[];
|
|
194
|
+
retryPolicy: ExtensionRetryPolicy | undefined;
|
|
195
|
+
rolloutConfig: string;
|
|
196
|
+
optional: boolean;
|
|
197
|
+
docs: ExtensionInterfaceMethodSpec_Docs | undefined;
|
|
198
|
+
}
|
|
199
|
+
export interface ExtensionInterfaceMethodSpec_RetryPolicy {
|
|
200
|
+
type: string;
|
|
201
|
+
maxRetries: number;
|
|
202
|
+
}
|
|
203
|
+
export interface ExtensionInterfaceMethodSpec_ErrorDefinition {
|
|
204
|
+
type: string;
|
|
205
|
+
}
|
|
206
|
+
/** Configures how this extension interface method appears on [narrative documentation](docs.stripe.com). */
|
|
207
|
+
export interface ExtensionInterfaceMethodSpec_Docs {
|
|
208
|
+
/**
|
|
209
|
+
* The human-readable title for this extension method shown in documentation.
|
|
210
|
+
* Derived from the gRPC method name converted to title case.
|
|
211
|
+
*
|
|
212
|
+
* Consider overriding when:
|
|
213
|
+
* - Abbreviations are incorrectly cased (e.g., "ACH", "US")
|
|
214
|
+
* - The public-facing name differs from the gRPC method name
|
|
215
|
+
*
|
|
216
|
+
* Example: "ConfirmPaymentCall" auto-derives to "Confirm Payment Call";
|
|
217
|
+
* override to "The confirm_payment method"
|
|
218
|
+
*/
|
|
219
|
+
title: string;
|
|
220
|
+
/**
|
|
221
|
+
* The anchor fragment for this method on its documentation page.
|
|
222
|
+
* Defaults to the extension_method_id when not set.
|
|
223
|
+
*
|
|
224
|
+
* Consider overriding when:
|
|
225
|
+
* - The anchor conflicts with another anchor on the same page
|
|
226
|
+
* - A legacy anchor value needs to be preserved
|
|
227
|
+
*
|
|
228
|
+
* Example: extension_method_id "confirm_payment" defaults to anchor "confirm_payment"
|
|
229
|
+
*/
|
|
230
|
+
anchor: string;
|
|
231
|
+
}
|
|
232
|
+
export interface AuthConfigOptions {
|
|
233
|
+
allow: AuthConfigOptions_Allow[];
|
|
234
|
+
}
|
|
235
|
+
export declare const AuthConfigOptions_Allow: {
|
|
236
|
+
/** ALLOW_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
237
|
+
readonly ALLOW_INVALID: "ALLOW_INVALID";
|
|
238
|
+
readonly LEGACY_TEST_MODE: "LEGACY_TEST_MODE";
|
|
239
|
+
readonly LEGACY_TEST_MODE_QA_ONLY: "LEGACY_TEST_MODE_QA_ONLY";
|
|
240
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
241
|
+
};
|
|
242
|
+
export type AuthConfigOptions_Allow = typeof AuthConfigOptions_Allow[keyof typeof AuthConfigOptions_Allow];
|
|
243
|
+
export declare namespace AuthConfigOptions_Allow {
|
|
244
|
+
type ALLOW_INVALID = typeof AuthConfigOptions_Allow.ALLOW_INVALID;
|
|
245
|
+
type LEGACY_TEST_MODE = typeof AuthConfigOptions_Allow.LEGACY_TEST_MODE;
|
|
246
|
+
type LEGACY_TEST_MODE_QA_ONLY = typeof AuthConfigOptions_Allow.LEGACY_TEST_MODE_QA_ONLY;
|
|
247
|
+
type UNRECOGNIZED = typeof AuthConfigOptions_Allow.UNRECOGNIZED;
|
|
248
|
+
}
|
|
249
|
+
export interface LocalizationOptions {
|
|
250
|
+
}
|
|
251
|
+
export interface FlattenedArray {
|
|
252
|
+
}
|
|
253
|
+
export interface UnionType {
|
|
254
|
+
}
|
|
255
|
+
export interface BehaviorEnumOptions {
|
|
256
|
+
/** The enum value number of the version that API gateway should send to the backing service for behavior changes. */
|
|
257
|
+
current: number;
|
|
258
|
+
}
|
|
259
|
+
export interface ResourceIdOptions {
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Allow certain deprecated features to be used in this file / message.
|
|
263
|
+
* string values should be JIRA or go links
|
|
264
|
+
*/
|
|
265
|
+
export interface Allow {
|
|
266
|
+
/** Allow the use of proto3 optional in fields of this message type. */
|
|
267
|
+
proto3Optional: string;
|
|
268
|
+
}
|
|
269
|
+
export interface FieldOptions {
|
|
270
|
+
fieldType: //
|
|
271
|
+
/** Specifies that a field is used in webhooks */
|
|
272
|
+
{
|
|
273
|
+
$case: "webhook";
|
|
274
|
+
value: WebhookFieldOption;
|
|
275
|
+
} | //
|
|
276
|
+
/** Specifies that a field should be hidden from the api and be used internally only. */
|
|
277
|
+
{
|
|
278
|
+
$case: "internal";
|
|
279
|
+
value: InternalFieldOption;
|
|
280
|
+
} | //
|
|
281
|
+
/** Specifies that a field should be flattened in the json response */
|
|
282
|
+
{
|
|
283
|
+
$case: "flatten";
|
|
284
|
+
value: FlattenFieldOption;
|
|
285
|
+
} | //
|
|
286
|
+
/** Specifies details about API Events */
|
|
287
|
+
{
|
|
288
|
+
$case: "event";
|
|
289
|
+
value: ApiEventFieldOption;
|
|
290
|
+
} | undefined;
|
|
291
|
+
feature: Feature;
|
|
292
|
+
rolloutConfig: string;
|
|
293
|
+
accessCondition: string;
|
|
294
|
+
/** Specifies that a field should be used for auto permission check. */
|
|
295
|
+
autoPermission: AutoPermissionCheckFieldOption | undefined;
|
|
296
|
+
/** Indicates a request field where explicitly sending `null` unsets it. */
|
|
297
|
+
nullable: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Indicates whether or not a field should not be included in public API documentation.
|
|
300
|
+
* Fields are public by default. This only needs to be set if you want a field to be INTERNAL.
|
|
301
|
+
*/
|
|
302
|
+
documented: Documented;
|
|
303
|
+
/** Opts a path parameter out of Gen6 ID HMAC validation at Edge. */
|
|
304
|
+
skipGen6Validation: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* No longer used.
|
|
307
|
+
*
|
|
308
|
+
* @deprecated
|
|
309
|
+
*/
|
|
310
|
+
generated: boolean;
|
|
311
|
+
/** External representation of the field, for both serialization and deserialization. */
|
|
312
|
+
externalName: string;
|
|
313
|
+
/**
|
|
314
|
+
* by default everything is visible.
|
|
315
|
+
* visible_in is to limit returning a field based on technology constraints
|
|
316
|
+
* not for rollout purposes.
|
|
317
|
+
*/
|
|
318
|
+
visibleIn: ApiFieldVisibility;
|
|
319
|
+
/** next: 19 */
|
|
320
|
+
permission: string;
|
|
321
|
+
}
|
|
322
|
+
export interface WebhookFieldOption {
|
|
323
|
+
}
|
|
324
|
+
export interface InternalFieldOption {
|
|
325
|
+
}
|
|
326
|
+
export interface FlattenFieldOption {
|
|
327
|
+
}
|
|
328
|
+
export interface ApiEventFieldOption {
|
|
329
|
+
event: {
|
|
330
|
+
$case: "primaryRelatedObjectId";
|
|
331
|
+
value: ApiEventPrimaryRelatedObjectId;
|
|
332
|
+
} | {
|
|
333
|
+
$case: "compartmentId";
|
|
334
|
+
value: ApiEventCompartmentId;
|
|
335
|
+
} | {
|
|
336
|
+
$case: "eventField";
|
|
337
|
+
value: ApiEventEventField;
|
|
338
|
+
} | undefined;
|
|
339
|
+
}
|
|
340
|
+
export interface AutoPermissionCheckFieldOption {
|
|
341
|
+
}
|
|
342
|
+
export interface ApiEventPrimaryRelatedObjectId {
|
|
343
|
+
/** exposed as the "type" field alongside the primary object id. */
|
|
344
|
+
type: string;
|
|
345
|
+
optionalRetrieveUrl: //
|
|
346
|
+
/** optional. if provided, this will be used to construct a URL to retrieve the primary related object */
|
|
347
|
+
{
|
|
348
|
+
$case: "retrieveUrl";
|
|
349
|
+
value: string;
|
|
350
|
+
} | undefined;
|
|
351
|
+
}
|
|
352
|
+
export interface ApiEventCompartmentId {
|
|
353
|
+
}
|
|
354
|
+
export interface ApiEventEventField {
|
|
355
|
+
}
|
|
356
|
+
/** Indicates that the message represents a Resource. */
|
|
357
|
+
export interface ResourceOptions {
|
|
358
|
+
/** The 'object' value of this resource's parent resource, or empty if this resource isn't a child resource. */
|
|
359
|
+
parent: string;
|
|
360
|
+
/** TODO: this is currently unused, depcrecate this */
|
|
361
|
+
idPrefix: string;
|
|
362
|
+
/** The API Group the resource belongs under. */
|
|
363
|
+
apiGroup: ApiGroup;
|
|
364
|
+
/** An override annotation for overriding defaults from API Groups. */
|
|
365
|
+
override: ResourceOptions_Override | undefined;
|
|
366
|
+
singleton: boolean;
|
|
367
|
+
stableId: string;
|
|
368
|
+
docs: ResourceOptions_Docs | undefined;
|
|
369
|
+
}
|
|
370
|
+
export interface ResourceOptions_Override {
|
|
371
|
+
objectTag: string;
|
|
372
|
+
name: string;
|
|
373
|
+
}
|
|
374
|
+
/** Configures how this resource appears in the [API Reference](docs.stripe.com/api). */
|
|
375
|
+
export interface ResourceOptions_Docs {
|
|
376
|
+
/**
|
|
377
|
+
* Groups this resource under a shared namespace in the API Reference.
|
|
378
|
+
* Values are defined in docs_namespace_group_enum.proto.
|
|
379
|
+
*
|
|
380
|
+
* The auto-generated namespace group is strongly preferred — it derives the title, route,
|
|
381
|
+
* anchor, and description automatically from the resource name and doc string. Only use this
|
|
382
|
+
* when you need multiple resources to share the same namespace group. Methods inherit the
|
|
383
|
+
* namespace group from their resource automatically. Changes to enum values affect all API
|
|
384
|
+
* reference versions since the values are un-versioned.
|
|
385
|
+
*
|
|
386
|
+
* If you're unsure whether your use case applies, ask in before adding a
|
|
387
|
+
* new value to the enum.
|
|
388
|
+
*/
|
|
389
|
+
namespaceGroup: DocsNamespaceGroup;
|
|
390
|
+
/**
|
|
391
|
+
* Ability to override the auto-generated namespace group title.
|
|
392
|
+
* This is only used when `namespace_group` is not set.
|
|
393
|
+
* Auto-generated by pluralizing the resource name and inserting spaces between PascalCase words.
|
|
394
|
+
*
|
|
395
|
+
* Consider overriding when:
|
|
396
|
+
* - Abbreviations are incorrectly cased (e.g., "A C H Transfers" should be "ACH Transfers")
|
|
397
|
+
* - The plural form is incorrect due to unusual pluralization
|
|
398
|
+
*
|
|
399
|
+
* Example: "PaymentIntent" -> "Payment Intents"
|
|
400
|
+
*/
|
|
401
|
+
namespaceGroupTitle: string;
|
|
402
|
+
/**
|
|
403
|
+
* Additional URL paths relative to docs.stripe.com/api/ that redirect to this resource's namespace group page.
|
|
404
|
+
* Format: must start with /v2, contain one or more segments of lowercase letters, dashes, or
|
|
405
|
+
* underscores (underscores allowed for legacy paths), and have no trailing slash.
|
|
406
|
+
* Must not conflict with an existing route.
|
|
407
|
+
* Example: "/v2/core/event_destinations" (legacy), "/v2/core/payment-intents"
|
|
408
|
+
*/
|
|
409
|
+
namespaceGroupRedirect: string[];
|
|
410
|
+
/**
|
|
411
|
+
* The human-readable title for this resource shown in the API Reference.
|
|
412
|
+
* Derived by converting the resource name from PascalCase to title case.
|
|
413
|
+
*
|
|
414
|
+
* Consider overriding when:
|
|
415
|
+
* - Abbreviations are incorrectly cased (e.g., "U S Bank Account" should be "US Bank Account")
|
|
416
|
+
* - The public-facing name differs from the proto message name
|
|
417
|
+
*
|
|
418
|
+
* Example: "PaymentIntent" -> "Payment Intent"
|
|
419
|
+
*/
|
|
420
|
+
title: string;
|
|
421
|
+
/**
|
|
422
|
+
* The URL path for this resource's object page in the API Reference, relative to docs.stripe.com/api/.
|
|
423
|
+
* Derived as "<api-group-path>/<pluralized-dasherized-name>/object".
|
|
424
|
+
*
|
|
425
|
+
* Consider overriding when:
|
|
426
|
+
* - The derived route doesn't match the intended public URL structure
|
|
427
|
+
* - The plural form of the resource name in the route is incorrect
|
|
428
|
+
*
|
|
429
|
+
* Format: must start with /v2, contain 2–4 segments of lowercase letters and dashes, end with
|
|
430
|
+
* /object, and have no trailing slash. Must be unique across all routes.
|
|
431
|
+
* Example: "/v2/core/payment-intents/object"
|
|
432
|
+
*/
|
|
433
|
+
route: string;
|
|
434
|
+
/**
|
|
435
|
+
* Additional URL paths relative to docs.stripe.com/api/ that redirect to this resource's object page.
|
|
436
|
+
* Format: same as route (starts with /v2, 2–4 segments, lowercase letters and dashes, no
|
|
437
|
+
* trailing slash), but does not need to end with /object. Must not conflict with an
|
|
438
|
+
* existing route, and must be unique across all redirects.
|
|
439
|
+
*/
|
|
440
|
+
redirect: string[];
|
|
441
|
+
/**
|
|
442
|
+
* The anchor fragment for this resource on its documentation page.
|
|
443
|
+
* Derived as "v2_<snake_case_name>_object".
|
|
444
|
+
*
|
|
445
|
+
* Consider overriding when:
|
|
446
|
+
* - The derived anchor is incorrect
|
|
447
|
+
* - A legacy anchor value needs to be preserved
|
|
448
|
+
*
|
|
449
|
+
* Example: "PaymentIntent" -> "v2_payment_intent_object"
|
|
450
|
+
*/
|
|
451
|
+
anchor: string;
|
|
452
|
+
/**
|
|
453
|
+
* The anchor fragment for this resource's namespace group section in the API Reference.
|
|
454
|
+
* Derived as "v2_<pluralized_snake_case_name>".
|
|
455
|
+
*
|
|
456
|
+
* Consider overriding when:
|
|
457
|
+
* - The derived anchor is incorrect
|
|
458
|
+
* - A legacy anchor value needs to be preserved
|
|
459
|
+
*
|
|
460
|
+
* Example: "PaymentIntent" -> "v2_payment_intents"
|
|
461
|
+
*/
|
|
462
|
+
namespaceAnchor: string;
|
|
463
|
+
}
|
|
464
|
+
export interface PaginationOptions {
|
|
465
|
+
}
|
|
466
|
+
export interface ServiceOptions {
|
|
467
|
+
/** [required] Service name passed to RpcClient.resolveEnvoyEndpoint. */
|
|
468
|
+
envoyServiceName: string;
|
|
469
|
+
/** All the features whose values will be computed in API gateway and used by the service. */
|
|
470
|
+
featureRegistered: Feature[];
|
|
471
|
+
/**
|
|
472
|
+
* States where the service will be visible. The most common case is in the API.
|
|
473
|
+
* [Deprecated] This namespace option is currently not used.
|
|
474
|
+
*
|
|
475
|
+
* @deprecated
|
|
476
|
+
*/
|
|
477
|
+
namespace: string;
|
|
478
|
+
/**
|
|
479
|
+
* Publicly visible service name if different from the gRPC service name.
|
|
480
|
+
* Do not use this for new services, instead try to keep the gRPC service name in sync with the public name.
|
|
481
|
+
*
|
|
482
|
+
* @deprecated
|
|
483
|
+
*/
|
|
484
|
+
publicServiceName: string;
|
|
485
|
+
/** Team responsible for this service. */
|
|
486
|
+
responsibleTeam: string;
|
|
487
|
+
/** Project responsible for this service. */
|
|
488
|
+
project: string;
|
|
489
|
+
}
|
|
490
|
+
export interface MethodOptions {
|
|
491
|
+
/**
|
|
492
|
+
* Full URL path for this method (must start with /v2).
|
|
493
|
+
* May contain path parameters named like ":id".
|
|
494
|
+
*/
|
|
495
|
+
httpMapping: {
|
|
496
|
+
$case: "get";
|
|
497
|
+
value: string;
|
|
498
|
+
} | {
|
|
499
|
+
$case: "post";
|
|
500
|
+
value: string;
|
|
501
|
+
} | {
|
|
502
|
+
$case: "delete";
|
|
503
|
+
value: string;
|
|
504
|
+
} | {
|
|
505
|
+
$case: "put";
|
|
506
|
+
value: string;
|
|
507
|
+
} | {
|
|
508
|
+
$case: "graphQlOnly";
|
|
509
|
+
value: GraphQlOperationType;
|
|
510
|
+
} | {
|
|
511
|
+
$case: "patch";
|
|
512
|
+
value: string;
|
|
513
|
+
} | undefined;
|
|
514
|
+
/** V1 permission for a method. */
|
|
515
|
+
v1Permission: string;
|
|
516
|
+
/**
|
|
517
|
+
* Error codes that this method may return.
|
|
518
|
+
* These values must correspond to an `(v2.error_spec).code` value defined
|
|
519
|
+
* on some message (not necessarily in the same file).
|
|
520
|
+
* The method may return other errors without a code (undocumented errors), but should
|
|
521
|
+
* not return any errors with a code without declaring that code here.
|
|
522
|
+
*/
|
|
523
|
+
errorCode: string[];
|
|
524
|
+
feature: Feature;
|
|
525
|
+
/** Is this method publicly documented (part of SDKs, API ref, etc.) or just internal? */
|
|
526
|
+
documented: Documented;
|
|
527
|
+
/** When creating a new gRPC endpoint, mark the old ones as `legacy_version` so that any API request with the new version will only be routed to the new gRPC endpoint. */
|
|
528
|
+
legacyVersion: boolean;
|
|
529
|
+
/** Opts the method out of authn/authz entirely and into stricter rate limits for DDoS protection. Mutually exclusive with `permission`. */
|
|
530
|
+
unauthenticated: boolean;
|
|
531
|
+
regionRouter: RegionRouter | undefined;
|
|
532
|
+
graphqlMethodName: string;
|
|
533
|
+
flavor: Flavor;
|
|
534
|
+
/** Team responsible for this service. When not set, the responsible_team of the Service will be used. */
|
|
535
|
+
responsibleTeam: string;
|
|
536
|
+
docs: MethodOptions_Docs | undefined;
|
|
537
|
+
/** A unique and stable identifier for the method, guaranteed to not change while the method exists. */
|
|
538
|
+
stableId: string;
|
|
539
|
+
/** The kind of the method (e.g. CREATE), required if the method name does not have a standardized prefix. */
|
|
540
|
+
kind: MethodKind;
|
|
541
|
+
/** The resource that the method is operating on and/or associated with. DELETE and CUSTOM methods are required to include this resource in their responses */
|
|
542
|
+
resource: string;
|
|
543
|
+
customizeDispatchMiddleware: CustomizeDispatchMiddleware;
|
|
544
|
+
/**
|
|
545
|
+
* Use with caution. When set to `DISABLED`, API Gateway will not check if the request has the required permission for the method. Possibly useful if your resource's ID does not follow the Gen6 format.
|
|
546
|
+
*
|
|
547
|
+
* If you decide to skip permission checking in API Gateway, you **MUST** check the request's permissions in the backing service.
|
|
548
|
+
*/
|
|
549
|
+
permissionCheck: PermissionCheck;
|
|
550
|
+
/**
|
|
551
|
+
* A custom name for the method, powering downstream artifacts such as functions on SDKs. Must be in camelCase.
|
|
552
|
+
*
|
|
553
|
+
* If not set, the external name will be derived from the method's kind (e.g. create, delete), or the method's path for custom methods.
|
|
554
|
+
*/
|
|
555
|
+
externalName: string;
|
|
556
|
+
priority: Priority | undefined;
|
|
557
|
+
authConfig: AuthConfigOptions | undefined;
|
|
558
|
+
rolloutConfig: string;
|
|
559
|
+
/** next: 39 */
|
|
560
|
+
accessCondition: string;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* No longer used, retained due to schema evolution requirements
|
|
564
|
+
*
|
|
565
|
+
* @deprecated
|
|
566
|
+
*/
|
|
567
|
+
export interface MethodOptions_Override {
|
|
568
|
+
docsLevelOneGroup: string;
|
|
569
|
+
}
|
|
570
|
+
/** Configures how this method appears in the [API Reference](docs.stripe.com/api). */
|
|
571
|
+
export interface MethodOptions_Docs {
|
|
572
|
+
/**
|
|
573
|
+
* Groups this method under a shared namespace in the API Reference, overriding the namespace
|
|
574
|
+
* inherited from the resource. Values are defined in docs_namespace_group_enum.proto.
|
|
575
|
+
*
|
|
576
|
+
* The auto-generated namespace group is strongly preferred. Only use this when you need
|
|
577
|
+
* multiple resources to share the same namespace group. Changes to enum values affect all API
|
|
578
|
+
* reference versions since the values are un-versioned.
|
|
579
|
+
*
|
|
580
|
+
* If you're unsure whether your use case applies, ask in before adding a
|
|
581
|
+
* new value to the enum.
|
|
582
|
+
*/
|
|
583
|
+
namespaceGroup: DocsNamespaceGroup;
|
|
584
|
+
/**
|
|
585
|
+
* Override the human-readable title for this method, shown in documentation.
|
|
586
|
+
* Derived from the method kind and the resource title.
|
|
587
|
+
*
|
|
588
|
+
* Consider overriding when:
|
|
589
|
+
* - Abbreviations are incorrectly cased (e.g., "U S Bank Account" should be "US Bank Account")
|
|
590
|
+
* - The public-facing name differs from what the derivation produces
|
|
591
|
+
*
|
|
592
|
+
* Examples: CREATE + PaymentIntent -> "Create a Payment Intent"
|
|
593
|
+
* LIST + PaymentIntent -> "List Payment Intents"
|
|
594
|
+
*/
|
|
595
|
+
title: string;
|
|
596
|
+
/**
|
|
597
|
+
* The URL path for this method's page in the API Reference, relative to docs.stripe.com/api/.
|
|
598
|
+
* Derived as "<resource-route>/<method-kind>".
|
|
599
|
+
*
|
|
600
|
+
* Consider overriding when:
|
|
601
|
+
* - The derived route doesn't match the intended public URL
|
|
602
|
+
* - The plural form of the resource name in the route is incorrect
|
|
603
|
+
*
|
|
604
|
+
* Format: must start with /v2, contain 2–4 segments of lowercase letters and dashes, and have
|
|
605
|
+
* no trailing slash. Must be unique across all routes.
|
|
606
|
+
* Example: "/v2/core/payment-intents/create"
|
|
607
|
+
*/
|
|
608
|
+
route: string;
|
|
609
|
+
/**
|
|
610
|
+
* Additional URL paths relative to docs.stripe.com/api/ that redirect to this method's documentation page.
|
|
611
|
+
* Format: same as route (starts with /v2, 2–4 segments, lowercase letters and dashes, no
|
|
612
|
+
* trailing slash). Must not conflict with an existing route, and must be unique across
|
|
613
|
+
* all redirects.
|
|
614
|
+
*/
|
|
615
|
+
redirect: string[];
|
|
616
|
+
/**
|
|
617
|
+
* The anchor fragment for this method on its documentation page.
|
|
618
|
+
* Derived as "v2_<verb>_<pluralized_snake_case_resource>".
|
|
619
|
+
*
|
|
620
|
+
* Consider overriding when:
|
|
621
|
+
* - The derived anchor is incorrect
|
|
622
|
+
* - A legacy anchor value needs to be preserved
|
|
623
|
+
*
|
|
624
|
+
* Example: CREATE + PaymentIntent -> "v2_create_payment_intents"
|
|
625
|
+
*/
|
|
626
|
+
anchor: string;
|
|
627
|
+
}
|
|
628
|
+
export interface EnumValueOptions {
|
|
629
|
+
/**
|
|
630
|
+
* External representation of the enum, for both serialization and deserialization.
|
|
631
|
+
* This may only contain lowercase alphanumeric and underscore and period characters, and the first character must be
|
|
632
|
+
* alphabetic.
|
|
633
|
+
*/
|
|
634
|
+
externalName: string;
|
|
635
|
+
/** Feature used to guard the enum value. The enum value should only be requested or returned when the feature is active. */
|
|
636
|
+
feature: Feature;
|
|
637
|
+
rolloutConfig: string;
|
|
638
|
+
accessCondition: string;
|
|
639
|
+
/**
|
|
640
|
+
* Fallback enum value to use when this value doesn't exist in the requested API version.
|
|
641
|
+
* This should reference another enum value in the same enum by its proto name.
|
|
642
|
+
* When a newer enum value is returned but doesn't exist in an older version, the system will
|
|
643
|
+
* recursively resolve fallbacks until finding a value that exists in that version or 500 if none found.
|
|
644
|
+
*/
|
|
645
|
+
fallback: string;
|
|
646
|
+
}
|
|
647
|
+
/** ErrorSpec describes an error response. */
|
|
648
|
+
export interface ErrorSpec {
|
|
649
|
+
/**
|
|
650
|
+
* Publicly visible error code that uniquely identifies this error.
|
|
651
|
+
* Optional: if not specified, this error is considered "undocumented".
|
|
652
|
+
*/
|
|
653
|
+
code: string;
|
|
654
|
+
/**
|
|
655
|
+
* A URL to more information about the error code reported.
|
|
656
|
+
* Optional.
|
|
657
|
+
*/
|
|
658
|
+
docUrl: string;
|
|
659
|
+
/**
|
|
660
|
+
* Name of the query parameter or field in the request that caused this error
|
|
661
|
+
* (if applicable).
|
|
662
|
+
* Optional.
|
|
663
|
+
*/
|
|
664
|
+
param: string;
|
|
665
|
+
/** optional http status, defaults to BAD_REQUEST */
|
|
666
|
+
httpStatus: HttpErrorStatus;
|
|
667
|
+
/**
|
|
668
|
+
* Lookup code for internationalizing the error message for the developers who integrate with Stripe.
|
|
669
|
+
* Note: translation is not yet implemented.
|
|
670
|
+
* Required.
|
|
671
|
+
*/
|
|
672
|
+
developerMessageFormatId: string;
|
|
673
|
+
/**
|
|
674
|
+
* Example EN-US message format for the developers, can have format placeholders, e.g. "The name {value} cannot be used.".
|
|
675
|
+
* This will be mapped to the "message" field in the error response for new versions.
|
|
676
|
+
* Required.
|
|
677
|
+
*/
|
|
678
|
+
developerMessageFormat: string;
|
|
679
|
+
/**
|
|
680
|
+
* Lookup code for internationalizing the error message for the end users.
|
|
681
|
+
* Note: translation is not yet implemented.
|
|
682
|
+
* Optional.
|
|
683
|
+
*/
|
|
684
|
+
userMessageFormatId: string;
|
|
685
|
+
/**
|
|
686
|
+
* Example EN-US message format for the end users, can have format placeholders, e.g. "The name {value} cannot be used."
|
|
687
|
+
* This will be mapped to the "user_message" field in the error response if present.
|
|
688
|
+
* Optional.
|
|
689
|
+
*/
|
|
690
|
+
userMessageFormat: string;
|
|
691
|
+
/**
|
|
692
|
+
* Indicates if this error is considered retryable or not. This is mostly used to populate the Stripe-Should-Retry
|
|
693
|
+
* header and give users & the sdk a signal on if retrying is a productive operation. See .
|
|
694
|
+
*/
|
|
695
|
+
shouldRetry: ShouldRetryError;
|
|
696
|
+
}
|
|
697
|
+
export interface NotificationSpec {
|
|
698
|
+
eventType: string;
|
|
699
|
+
}
|
|
700
|
+
export interface ApiEventSpec {
|
|
701
|
+
/** Publicly exposed/documented event name, e.g. 'llama.created' */
|
|
702
|
+
eventType: string;
|
|
703
|
+
/** Permission required to view and subscribe to event */
|
|
704
|
+
v1Permission: string;
|
|
705
|
+
/** API Event will be hidden unless opted into an API Feature */
|
|
706
|
+
feature: Feature;
|
|
707
|
+
/** Rollout configs are planned to replace v2 API Features. */
|
|
708
|
+
rolloutConfig: string;
|
|
709
|
+
/** Is this event publicly documented (part of SDKs, API ref, etc.) or just internal? */
|
|
710
|
+
documented: Documented;
|
|
711
|
+
/** The API Group the event belongs to */
|
|
712
|
+
apiGroup: ApiGroup;
|
|
713
|
+
/** An override annotation for overriding defaults from API Groups. */
|
|
714
|
+
override: ApiEventSpec_Override | undefined;
|
|
715
|
+
/** Alias used for routing events using their previous event type. */
|
|
716
|
+
eventTypeAlias: string[];
|
|
717
|
+
/** The object value of the resource associated with the event. */
|
|
718
|
+
primaryRelatedObject: string;
|
|
719
|
+
/** For events with an associated feature, only persist the event if the feature is enabled. */
|
|
720
|
+
conditionallyPersisted: boolean;
|
|
721
|
+
/**
|
|
722
|
+
* The scope for this event type.
|
|
723
|
+
* Defaults to WORKSPACE_ONLY when omitted.
|
|
724
|
+
*/
|
|
725
|
+
eventScope: EventScope;
|
|
726
|
+
/**
|
|
727
|
+
* Whether this is an interop event that bridges v1/snapshot and v2/thin event types.
|
|
728
|
+
* Defaults to false when omitted.
|
|
729
|
+
*/
|
|
730
|
+
interop: boolean;
|
|
731
|
+
/**
|
|
732
|
+
* Was primary_related_object_hidden, replaced by primary_related_object_exposed_as_event_field
|
|
733
|
+
* Whether the primary related object should be exposed as an event field in event data.
|
|
734
|
+
* When true, the primary related object ID (annotated with primary_related_object_id)
|
|
735
|
+
* will also be included as an event field in the generated event data.
|
|
736
|
+
* Defaults to false when omitted.
|
|
737
|
+
*/
|
|
738
|
+
primaryRelatedObjectExposedAsEventField: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Polymorphic related object configuration.
|
|
741
|
+
* Use this instead of primary_related_object when the object type varies at runtime.
|
|
742
|
+
* When set, primary_related_object should be omitted.
|
|
743
|
+
*/
|
|
744
|
+
polymorphicRelatedObject: PolymorphicRelatedObjectConfig | undefined;
|
|
745
|
+
/**
|
|
746
|
+
* Links a semantic event to its associated platform event.
|
|
747
|
+
* When this semantic event fires, the platform event should also be fired.
|
|
748
|
+
*/
|
|
749
|
+
associatedPlatformEvent: string;
|
|
750
|
+
/** Declares what type of change this event represents (CREATION, MODIFICATION, DELETION, or NONE). */
|
|
751
|
+
changeTraitStyle: ChangeTraitStyle;
|
|
752
|
+
}
|
|
753
|
+
export interface ApiEventSpec_Override {
|
|
754
|
+
docsLevelOneGroup: string;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Configuration for events with polymorphic related_object types.
|
|
758
|
+
* Use this instead of primary_related_object when the object type varies at runtime.
|
|
759
|
+
*/
|
|
760
|
+
export interface PolymorphicRelatedObjectConfig {
|
|
761
|
+
/** The kind of polymorphism for this event. */
|
|
762
|
+
kind: PolymorphicRelatedObjectConfig_Kind;
|
|
763
|
+
/**
|
|
764
|
+
* The allowed object types. Only used when kind=STATIC.
|
|
765
|
+
* In proto3, repeated fields are inherently optional (zero or more).
|
|
766
|
+
*/
|
|
767
|
+
staticTypes: string[];
|
|
768
|
+
}
|
|
769
|
+
/** The kind of polymorphism. */
|
|
770
|
+
export declare const PolymorphicRelatedObjectConfig_Kind: {
|
|
771
|
+
/**
|
|
772
|
+
* KIND_INVALID - Invalid kind, should not be used.
|
|
773
|
+
* buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
|
774
|
+
*/
|
|
775
|
+
readonly KIND_INVALID: "KIND_INVALID";
|
|
776
|
+
/** STATIC - Bounded polymorphism - types are known at build time (e.g., V1 interop events) */
|
|
777
|
+
readonly STATIC: "STATIC";
|
|
778
|
+
/** DYNAMIC - Unbounded polymorphism - types come from external registry (e.g., UDP custom objects) */
|
|
779
|
+
readonly DYNAMIC: "DYNAMIC";
|
|
780
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
781
|
+
};
|
|
782
|
+
export type PolymorphicRelatedObjectConfig_Kind = typeof PolymorphicRelatedObjectConfig_Kind[keyof typeof PolymorphicRelatedObjectConfig_Kind];
|
|
783
|
+
export declare namespace PolymorphicRelatedObjectConfig_Kind {
|
|
784
|
+
type KIND_INVALID = typeof PolymorphicRelatedObjectConfig_Kind.KIND_INVALID;
|
|
785
|
+
type STATIC = typeof PolymorphicRelatedObjectConfig_Kind.STATIC;
|
|
786
|
+
type DYNAMIC = typeof PolymorphicRelatedObjectConfig_Kind.DYNAMIC;
|
|
787
|
+
type UNRECOGNIZED = typeof PolymorphicRelatedObjectConfig_Kind.UNRECOGNIZED;
|
|
788
|
+
}
|
|
789
|
+
/** Changes trait for the API Event */
|
|
790
|
+
export interface Changes {
|
|
791
|
+
optionalBefore: //
|
|
792
|
+
/** optional. if provided, contains the resource state before changes. */
|
|
793
|
+
{
|
|
794
|
+
$case: "before";
|
|
795
|
+
value: Buffer;
|
|
796
|
+
} | undefined;
|
|
797
|
+
optionalAfter: //
|
|
798
|
+
/** optional. if provided, contains the resource state after changes. */
|
|
799
|
+
{
|
|
800
|
+
$case: "after";
|
|
801
|
+
value: Buffer;
|
|
802
|
+
} | undefined;
|
|
803
|
+
}
|
|
804
|
+
/** Event Diff field used for output only. */
|
|
805
|
+
export interface EventDiff {
|
|
806
|
+
/** the fully qualified resource name of the field */
|
|
807
|
+
resource: string;
|
|
808
|
+
/** whether the field is pre-rendered */
|
|
809
|
+
prerendered: boolean;
|
|
810
|
+
}
|
|
811
|
+
export interface ResourceReference {
|
|
812
|
+
/** Full type name for resource reference */
|
|
813
|
+
type: string;
|
|
814
|
+
/** Method name for resource reference */
|
|
815
|
+
method: string;
|
|
816
|
+
/** [Optional] Mapping of field name from this message to the param field in the request message */
|
|
817
|
+
mapping: Mapping[];
|
|
818
|
+
/** [optional] The account field associated with the object reference. Only used if we need to specify account context. */
|
|
819
|
+
account: string;
|
|
820
|
+
}
|
|
821
|
+
export interface VirtualField {
|
|
822
|
+
/** Virtual field name in this message */
|
|
823
|
+
name: string;
|
|
824
|
+
/** Resource type */
|
|
825
|
+
type: string;
|
|
826
|
+
/** Method name */
|
|
827
|
+
method: string;
|
|
828
|
+
/** Mapping of field name from this message to the param field in the request message */
|
|
829
|
+
mapping: Mapping[];
|
|
830
|
+
}
|
|
831
|
+
export interface Mapping {
|
|
832
|
+
/** Input field name in the current message */
|
|
833
|
+
from: string;
|
|
834
|
+
/** Output field name to set in the request message */
|
|
835
|
+
to: string;
|
|
836
|
+
}
|
|
837
|
+
/** Represents an arbitrary precision decimal, similar to Java's BigDecimal */
|
|
838
|
+
export interface Decimal {
|
|
839
|
+
value: string;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Represents a target compartment for the request
|
|
843
|
+
*
|
|
844
|
+
* Target compartment field should be added to the methods with no other resources, e.g., Create or List.
|
|
845
|
+
*
|
|
846
|
+
* The target compartment is set automatically by API and GraphQL Gateways for public API calls
|
|
847
|
+
* and must be set by the caller for service to service calls. The target compartment is not exposed via public API
|
|
848
|
+
*/
|
|
849
|
+
export interface TargetCompartment {
|
|
850
|
+
id: string;
|
|
851
|
+
accountToken: string;
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Represents Idempotency Key passed from API Gateway.
|
|
855
|
+
*
|
|
856
|
+
* This should be added to methods with idempotent operations
|
|
857
|
+
*
|
|
858
|
+
* See for more details.
|
|
859
|
+
* Recommendation is to annotate this message with OBJECT_IDENTIFIER when used in your protos
|
|
860
|
+
*/
|
|
861
|
+
export interface IdempotencyKey {
|
|
862
|
+
id: string;
|
|
863
|
+
/**
|
|
864
|
+
* The fingerprint of this request, it will be a 128-bit hash.
|
|
865
|
+
* Requests with the same idempotency scope & key but different fingerprints should be rejected by service owners.
|
|
866
|
+
* If misuse is detected, raise an IdempotencyKeyMisuseException.
|
|
867
|
+
*/
|
|
868
|
+
fingerprint: string;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Represents the API version for the request
|
|
872
|
+
*
|
|
873
|
+
* API Version field should only be added to methods that require version information and can't rely
|
|
874
|
+
* on the standard versioning mechanism.
|
|
875
|
+
*
|
|
876
|
+
* The API version is set automatically by API and GraphQL Gateways for public API calls and must
|
|
877
|
+
* be set by the caller for service to service calls. The API version is not exposed via public API
|
|
878
|
+
*/
|
|
879
|
+
export interface ApiVersion {
|
|
880
|
+
version: string;
|
|
881
|
+
requestedVersion: string;
|
|
882
|
+
}
|
|
883
|
+
/** Used when the related object type, URL, or ID cannot be derived from the event spec */
|
|
884
|
+
export interface RuntimeRelatedObject {
|
|
885
|
+
/** The object type (e.g., "bank_account", "card"). */
|
|
886
|
+
type: string;
|
|
887
|
+
/** The retrieve URL for the object. */
|
|
888
|
+
url: string;
|
|
889
|
+
/** The object ID. */
|
|
890
|
+
id: string;
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Represents the metadata necessary for publishing the event.
|
|
894
|
+
*
|
|
895
|
+
* This field should be added to any method that publishes events.
|
|
896
|
+
*/
|
|
897
|
+
export interface EventMetadata {
|
|
898
|
+
/** User-provided idempotency key. */
|
|
899
|
+
idempotencyKey: string;
|
|
900
|
+
/** Request id. */
|
|
901
|
+
requestId: string;
|
|
902
|
+
/** Override the original event publish time. */
|
|
903
|
+
overrideCreatedAt: Date | undefined;
|
|
904
|
+
realIp: string;
|
|
905
|
+
machineIdentifier: string;
|
|
906
|
+
/** next 7 */
|
|
907
|
+
principalId: string;
|
|
908
|
+
}
|
|
909
|
+
export interface SystemFieldOptions {
|
|
910
|
+
/** Redaction status for Request Logs. This will be added automatically based on privacy annotations */
|
|
911
|
+
redaction: Redaction;
|
|
912
|
+
/**
|
|
913
|
+
* Override redaction status for dashboard responses. Uses the request log redaction by default.
|
|
914
|
+
* This will be added automatically based on privacy annotations.
|
|
915
|
+
*/
|
|
916
|
+
dashboardResponseRedaction: Redaction;
|
|
917
|
+
privacyKind: FieldPrivacySetting | undefined;
|
|
918
|
+
/** Documentation for this field. This will be added automatically based on comments in the proto file. */
|
|
919
|
+
docString: string;
|
|
920
|
+
}
|
|
921
|
+
export interface SystemEnumOptions {
|
|
922
|
+
/** Documentation for this enum. This will be added automatically based on comments in the proto file. */
|
|
923
|
+
docString: string;
|
|
924
|
+
}
|
|
925
|
+
export interface SystemEnumValueOptions {
|
|
926
|
+
/** Documentation for this enum value. This will be added automatically based on comments in the proto file. */
|
|
927
|
+
docString: string;
|
|
928
|
+
/** next 3 */
|
|
929
|
+
fallbackOf: number[];
|
|
930
|
+
}
|
|
931
|
+
export interface SystemServiceOptions {
|
|
932
|
+
/** Documentation for this service. This will be added automatically based on comments in the proto file. */
|
|
933
|
+
docString: string;
|
|
934
|
+
}
|
|
935
|
+
export interface SystemMethodOptions {
|
|
936
|
+
/** Documentation for this method. This will be added automatically based on comments in the proto file. */
|
|
937
|
+
docString: string;
|
|
938
|
+
/** next 3 */
|
|
939
|
+
docsSamples: string;
|
|
940
|
+
}
|
|
941
|
+
export interface SystemMessageOptions {
|
|
942
|
+
/** Documentation for this message. This will be added automatically based on comments in the proto file. */
|
|
943
|
+
docString: string;
|
|
944
|
+
}
|
|
945
|
+
export interface SystemOneOfOptions {
|
|
946
|
+
/** Documentation for this one_of. This will be added automatically based on comments in the proto file. */
|
|
947
|
+
docString: string;
|
|
948
|
+
}
|
|
949
|
+
/** Recommendation is to annotate this message with EXTERNAL_REFERENCE when used in your protos */
|
|
950
|
+
export interface RequestMetadata {
|
|
951
|
+
requestId: string;
|
|
952
|
+
realIp: string;
|
|
953
|
+
httpUserAgent: string;
|
|
954
|
+
origin: string;
|
|
955
|
+
referer: string;
|
|
956
|
+
/** : We need to integrate with the cookie framework to limit sending this to specific services */
|
|
957
|
+
privateMachineIdentifier: string;
|
|
958
|
+
machineIdentifier: string;
|
|
959
|
+
stripeContext: string;
|
|
960
|
+
acceptLanguage: string;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* LocationHeader represents the content of the Location header that is required to be attached to the response body of
|
|
964
|
+
* certain SCIM requests.
|
|
965
|
+
*
|
|
966
|
+
* The Location header MUST be set in response to a successful HTTP POST request that creates a resource.
|
|
967
|
+
* The header must provide the URI of the newly created resource. (This allows clients to easily access or interact with
|
|
968
|
+
* the resource they just created.)
|
|
969
|
+
*
|
|
970
|
+
* Backing services should only set this header in response to a SCIM request.
|
|
971
|
+
*
|
|
972
|
+
* See https://datatracker.ietf.org/doc/html/rfc7644.
|
|
973
|
+
*/
|
|
974
|
+
export interface LocationHeader {
|
|
975
|
+
/** Value of the Location header */
|
|
976
|
+
value: string;
|
|
977
|
+
}
|
|
978
|
+
/** Generated internally from Skycfg definitions. Do not use directly! */
|
|
979
|
+
export interface RolloutConfigSpec {
|
|
980
|
+
/** The unique ID of the rollout config. */
|
|
981
|
+
id: string;
|
|
982
|
+
/** The current release phase of the rollout config. */
|
|
983
|
+
phase: RolloutConfig_RolloutConfigPhase;
|
|
984
|
+
/** The current per-phase revision of the rollout config, if it has been revised without changing phase. */
|
|
985
|
+
phaseRevision: number;
|
|
986
|
+
}
|
|
987
|
+
/** Deprecated! Do not use. */
|
|
988
|
+
export interface DocsSample {
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* CustomSuccessStatusCode is a custom 2xx HTTP status code that can optionally be attached to the response body.
|
|
992
|
+
*
|
|
993
|
+
* In the absence of this field, the status code of all successful requests will be 200.
|
|
994
|
+
*
|
|
995
|
+
* A limited set of success codes are supported at the moment.
|
|
996
|
+
*
|
|
997
|
+
* CustomSuccessStatusCode can only be set on responses to SCIM requests.
|
|
998
|
+
*/
|
|
999
|
+
export interface CustomSuccessCode {
|
|
1000
|
+
code: CustomSuccessCode_Code;
|
|
1001
|
+
}
|
|
1002
|
+
export declare const CustomSuccessCode_Code: {
|
|
1003
|
+
/** CODE_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
1004
|
+
readonly CODE_INVALID: "CODE_INVALID";
|
|
1005
|
+
readonly CREATED_201: "CREATED_201";
|
|
1006
|
+
readonly NO_CONTENT_204: "NO_CONTENT_204";
|
|
1007
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
1008
|
+
};
|
|
1009
|
+
export type CustomSuccessCode_Code = typeof CustomSuccessCode_Code[keyof typeof CustomSuccessCode_Code];
|
|
1010
|
+
export declare namespace CustomSuccessCode_Code {
|
|
1011
|
+
type CODE_INVALID = typeof CustomSuccessCode_Code.CODE_INVALID;
|
|
1012
|
+
type CREATED_201 = typeof CustomSuccessCode_Code.CREATED_201;
|
|
1013
|
+
type NO_CONTENT_204 = typeof CustomSuccessCode_Code.NO_CONTENT_204;
|
|
1014
|
+
type UNRECOGNIZED = typeof CustomSuccessCode_Code.UNRECOGNIZED;
|
|
1015
|
+
}
|
|
1016
|
+
export interface OneOfOptions {
|
|
1017
|
+
polymorphic: OneOfOptions_Polymorphic | undefined;
|
|
1018
|
+
}
|
|
1019
|
+
export interface OneOfOptions_Polymorphic {
|
|
1020
|
+
outputOnly: boolean;
|
|
1021
|
+
graphQlRepresentation: OneOfOptions_Polymorphic_GraphQlRepresentation;
|
|
1022
|
+
ignoreUsedForDiffTestingOnly: number;
|
|
1023
|
+
}
|
|
1024
|
+
export declare const OneOfOptions_Polymorphic_GraphQlRepresentation: {
|
|
1025
|
+
/** GRAPH_QL_REPRESENTATION_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
1026
|
+
readonly GRAPH_QL_REPRESENTATION_INVALID: "GRAPH_QL_REPRESENTATION_INVALID";
|
|
1027
|
+
readonly STRINGIFY: "STRINGIFY";
|
|
1028
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
1029
|
+
};
|
|
1030
|
+
export type OneOfOptions_Polymorphic_GraphQlRepresentation = typeof OneOfOptions_Polymorphic_GraphQlRepresentation[keyof typeof OneOfOptions_Polymorphic_GraphQlRepresentation];
|
|
1031
|
+
export declare namespace OneOfOptions_Polymorphic_GraphQlRepresentation {
|
|
1032
|
+
type GRAPH_QL_REPRESENTATION_INVALID = typeof OneOfOptions_Polymorphic_GraphQlRepresentation.GRAPH_QL_REPRESENTATION_INVALID;
|
|
1033
|
+
type STRINGIFY = typeof OneOfOptions_Polymorphic_GraphQlRepresentation.STRINGIFY;
|
|
1034
|
+
type UNRECOGNIZED = typeof OneOfOptions_Polymorphic_GraphQlRepresentation.UNRECOGNIZED;
|
|
1035
|
+
}
|
|
1036
|
+
export interface EnumOptions {
|
|
1037
|
+
type: EnumOptions_Type;
|
|
1038
|
+
}
|
|
1039
|
+
export declare const EnumOptions_Type: {
|
|
1040
|
+
/** TYPE_INVALID - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
|
|
1041
|
+
readonly TYPE_INVALID: "TYPE_INVALID";
|
|
1042
|
+
readonly OPEN: "OPEN";
|
|
1043
|
+
readonly CLOSED: "CLOSED";
|
|
1044
|
+
readonly UNRECOGNIZED: "UNRECOGNIZED";
|
|
1045
|
+
};
|
|
1046
|
+
export type EnumOptions_Type = typeof EnumOptions_Type[keyof typeof EnumOptions_Type];
|
|
1047
|
+
export declare namespace EnumOptions_Type {
|
|
1048
|
+
type TYPE_INVALID = typeof EnumOptions_Type.TYPE_INVALID;
|
|
1049
|
+
type OPEN = typeof EnumOptions_Type.OPEN;
|
|
1050
|
+
type CLOSED = typeof EnumOptions_Type.CLOSED;
|
|
1051
|
+
type UNRECOGNIZED = typeof EnumOptions_Type.UNRECOGNIZED;
|
|
1052
|
+
}
|
|
1053
|
+
type ProtoMetaMessageOptions = {
|
|
1054
|
+
options?: {
|
|
1055
|
+
[key: string]: any;
|
|
1056
|
+
};
|
|
1057
|
+
fields?: {
|
|
1058
|
+
[key: string]: {
|
|
1059
|
+
[key: string]: any;
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
oneof?: {
|
|
1063
|
+
[key: string]: {
|
|
1064
|
+
[key: string]: any;
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
nested?: {
|
|
1068
|
+
[key: string]: ProtoMetaMessageOptions;
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
export interface ProtoMetadata {
|
|
1072
|
+
references: {
|
|
1073
|
+
[key: string]: any;
|
|
1074
|
+
};
|
|
1075
|
+
dependencies?: ProtoMetadata[];
|
|
1076
|
+
options?: {
|
|
1077
|
+
options?: {
|
|
1078
|
+
[key: string]: any;
|
|
1079
|
+
};
|
|
1080
|
+
services?: {
|
|
1081
|
+
[key: string]: {
|
|
1082
|
+
options?: {
|
|
1083
|
+
[key: string]: any;
|
|
1084
|
+
};
|
|
1085
|
+
methods?: {
|
|
1086
|
+
[key: string]: {
|
|
1087
|
+
[key: string]: any;
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
messages?: {
|
|
1093
|
+
[key: string]: ProtoMetaMessageOptions;
|
|
1094
|
+
};
|
|
1095
|
+
enums?: {
|
|
1096
|
+
[key: string]: {
|
|
1097
|
+
options?: {
|
|
1098
|
+
[key: string]: any;
|
|
1099
|
+
};
|
|
1100
|
+
values?: {
|
|
1101
|
+
[key: string]: {
|
|
1102
|
+
[key: string]: any;
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
export declare const protoMetadata: ProtoMetadata;
|
|
1110
|
+
export {};
|
|
1111
|
+
//# sourceMappingURL=v2ext.pb.d.ts.map
|