@@ -2593,6 +2593,105 @@ export declare namespace Stripe {
25932593
25942594 export { StripeContext as StripeContextType } ;
25952595 export { StripeRawError } ;
2596- export import ErrorType = _Error ;
2596+ // ErrorTypeNamespaces: The beginning of the section generated from our OpenAPI spec
2597+ export namespace ErrorType {
2598+ export type StripeError = InstanceType < typeof _Error . StripeError > ;
2599+ export type StripeCardError = InstanceType < typeof _Error . StripeCardError > ;
2600+ export type StripeInvalidRequestError = InstanceType <
2601+ typeof _Error . StripeInvalidRequestError
2602+ > ;
2603+ export type StripeAPIError = InstanceType < typeof _Error . StripeAPIError > ;
2604+ export type StripeAuthenticationError = InstanceType <
2605+ typeof _Error . StripeAuthenticationError
2606+ > ;
2607+ export type StripePermissionError = InstanceType <
2608+ typeof _Error . StripePermissionError
2609+ > ;
2610+ export type StripeRateLimitError = InstanceType <
2611+ typeof _Error . StripeRateLimitError
2612+ > ;
2613+ export type StripeConnectionError = InstanceType <
2614+ typeof _Error . StripeConnectionError
2615+ > ;
2616+ export type StripeSignatureVerificationError = InstanceType <
2617+ typeof _Error . StripeSignatureVerificationError
2618+ > ;
2619+ export type StripeIdempotencyError = InstanceType <
2620+ typeof _Error . StripeIdempotencyError
2621+ > ;
2622+ export type StripeOAuthError = InstanceType < typeof _Error . StripeOAuthError > ;
2623+ export type StripeInvalidGrantError = InstanceType <
2624+ typeof _Error . StripeInvalidGrantError
2625+ > ;
2626+ export type StripeInvalidClientError = InstanceType <
2627+ typeof _Error . StripeInvalidClientError
2628+ > ;
2629+ export type StripeOAuthInvalidRequestError = InstanceType <
2630+ typeof _Error . StripeOAuthInvalidRequestError
2631+ > ;
2632+ export type StripeInvalidScopeError = InstanceType <
2633+ typeof _Error . StripeInvalidScopeError
2634+ > ;
2635+ export type StripeUnsupportedGrantTypeError = InstanceType <
2636+ typeof _Error . StripeUnsupportedGrantTypeError
2637+ > ;
2638+ export type StripeUnsupportedResponseTypeError = InstanceType <
2639+ typeof _Error . StripeUnsupportedResponseTypeError
2640+ > ;
2641+ export type RateLimitError = InstanceType < typeof _Error . RateLimitError > ;
2642+ export type TemporarySessionExpiredError = InstanceType <
2643+ typeof _Error . TemporarySessionExpiredError
2644+ > ;
2645+ }
2646+ export namespace errors {
2647+ export type StripeError = InstanceType < typeof _Error . StripeError > ;
2648+ export type StripeCardError = InstanceType < typeof _Error . StripeCardError > ;
2649+ export type StripeInvalidRequestError = InstanceType <
2650+ typeof _Error . StripeInvalidRequestError
2651+ > ;
2652+ export type StripeAPIError = InstanceType < typeof _Error . StripeAPIError > ;
2653+ export type StripeAuthenticationError = InstanceType <
2654+ typeof _Error . StripeAuthenticationError
2655+ > ;
2656+ export type StripePermissionError = InstanceType <
2657+ typeof _Error . StripePermissionError
2658+ > ;
2659+ export type StripeRateLimitError = InstanceType <
2660+ typeof _Error . StripeRateLimitError
2661+ > ;
2662+ export type StripeConnectionError = InstanceType <
2663+ typeof _Error . StripeConnectionError
2664+ > ;
2665+ export type StripeSignatureVerificationError = InstanceType <
2666+ typeof _Error . StripeSignatureVerificationError
2667+ > ;
2668+ export type StripeIdempotencyError = InstanceType <
2669+ typeof _Error . StripeIdempotencyError
2670+ > ;
2671+ export type StripeOAuthError = InstanceType < typeof _Error . StripeOAuthError > ;
2672+ export type StripeInvalidGrantError = InstanceType <
2673+ typeof _Error . StripeInvalidGrantError
2674+ > ;
2675+ export type StripeInvalidClientError = InstanceType <
2676+ typeof _Error . StripeInvalidClientError
2677+ > ;
2678+ export type StripeOAuthInvalidRequestError = InstanceType <
2679+ typeof _Error . StripeOAuthInvalidRequestError
2680+ > ;
2681+ export type StripeInvalidScopeError = InstanceType <
2682+ typeof _Error . StripeInvalidScopeError
2683+ > ;
2684+ export type StripeUnsupportedGrantTypeError = InstanceType <
2685+ typeof _Error . StripeUnsupportedGrantTypeError
2686+ > ;
2687+ export type StripeUnsupportedResponseTypeError = InstanceType <
2688+ typeof _Error . StripeUnsupportedResponseTypeError
2689+ > ;
2690+ export type RateLimitError = InstanceType < typeof _Error . RateLimitError > ;
2691+ export type TemporarySessionExpiredError = InstanceType <
2692+ typeof _Error . TemporarySessionExpiredError
2693+ > ;
2694+ }
2695+ // ErrorTypeNamespaces: The end of the section generated from our OpenAPI spec
25972696 export import Events = V2 . Core . Events ;
25982697}
0 commit comments