@stripe/extensibility-sdk 0.25.0 → 0.26.0

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/README.md CHANGED
@@ -298,18 +298,15 @@ there are no implicit defaults to prevent silent precision loss.
298
298
  | ----------------- | -------------------------- | ------------------------------------ |
299
299
  | `Integer` | Whole number (no decimals) | `Integer.from(n, direction)` |
300
300
  | `PositiveInteger` | Non-negative integer (≥ 0) | `PositiveInteger.from(n, direction)` |
301
- | `Timestamp` | ISO 8601 datetime string | `Timestamp.create(s)` |
302
- | `StreetAddress` | Non-empty string | `StreetAddress.create(s)` |
303
301
 
304
302
  These are branded types — they carry a compile-time brand so TypeScript rejects raw
305
303
  `number` or `string` where the stricter type is required.
306
304
 
307
305
  ```typescript
308
- import { Integer, PositiveInteger, Timestamp } from '@stripe/extensibility-sdk/stdlib';
306
+ import { Integer, PositiveInteger } from '@stripe/extensibility-sdk';
309
307
 
310
308
  const count = Integer.from(42, 'round-down'); // Integer
311
309
  const qty = PositiveInteger.from(3, 'round-down'); // PositiveInteger
312
- const ts = Timestamp.create('2024-01-15T00:00:00.000Z'); // Timestamp
313
310
  ```
314
311
 
315
312
  ---
@@ -326,30 +323,6 @@ type CustomerRef = Ref<{ id: string; name: string }>;
326
323
 
327
324
  ---
328
325
 
329
- ### Wire errors
330
-
331
- Thrown by the platform dispatch wrapper when wire-format data is invalid.
332
-
333
- | Class | When thrown |
334
- | ---------------- | --------------------------------------------------------- |
335
- | `WireReadError` | Invalid or missing field in the **incoming** wire request |
336
- | `WireWriteError` | Invalid or missing field in the **outgoing** SDK response |
337
-
338
- ```typescript
339
- import { WireReadError, WireWriteError } from '@stripe/extensibility-sdk/stdlib';
340
- ```
341
-
342
- In production, the platform catches and surfaces these as structured errors. In tests,
343
- assert against them directly by invoking the generated interface-specific
344
- `$platformWrap...` helper for the interface under test. For example:
345
-
346
- ```typescript
347
- // Pseudocode: replace `$platformWrap...` with the generated wrapper for your interface.
348
- expect(() => $platformWrap...(MyImpl, badInput, {}, ctx)).toThrow(WireReadError);
349
- ```
350
-
351
- ---
352
-
353
326
  ## License
354
327
 
355
328
  MIT
@@ -157,7 +157,7 @@ function isStdlibDecimalType(type) {
157
157
  if (symbol?.getName() !== "Decimal") return false;
158
158
  return symbol.getDeclarations().some((declaration) => {
159
159
  const srcPath = declaration.getSourceFile().getFilePath();
160
- return srcPath.includes("stdlib/decimal") || srcPath.includes("stdlib/index");
160
+ return srcPath.includes("stdlib/decimal") || srcPath.includes("stdlib/index") || srcPath.includes("extensibility-sdk");
161
161
  });
162
162
  });
163
163
  }
@@ -128,7 +128,7 @@ function isStdlibDecimalType(type) {
128
128
  if (symbol?.getName() !== "Decimal") return false;
129
129
  return symbol.getDeclarations().some((declaration) => {
130
130
  const srcPath = declaration.getSourceFile().getFilePath();
131
- return srcPath.includes("stdlib/decimal") || srcPath.includes("stdlib/index");
131
+ return srcPath.includes("stdlib/decimal") || srcPath.includes("stdlib/index") || srcPath.includes("extensibility-sdk");
132
132
  });
133
133
  });
134
134
  }
@@ -1144,25 +1144,6 @@ declare interface InvoiceCollectionSetting<Config> {
1144
1144
  collectionOverride: InvoiceCollectionSetting.CollectionOverrideFunction<Config>;
1145
1145
  }
1146
1146
 
1147
- /**
1148
- * Check whether a value is a `Decimal` instance.
1149
- *
1150
- * @remarks
1151
- * Use this instead of `instanceof` — the underlying class is not
1152
- * publicly exported, so `instanceof` checks are not available to
1153
- * consumers.
1154
- *
1155
- * @example
1156
- * ```ts
1157
- * if (isDecimal(value)) {
1158
- * value.add(Decimal.from('1')); // value is Decimal
1159
- * }
1160
- * ```
1161
- *
1162
- * @public
1163
- */
1164
- export declare function isDecimal(value: unknown): value is Decimal;
1165
-
1166
1147
  /* Excluded from this release type: _isPromiseLike */
1167
1148
 
1168
1149
  /* Excluded from this release type: _JsonWireToType */
@@ -1816,15 +1797,6 @@ export declare type RoundDirection = 'ceil' | 'floor' | 'half-down' | 'half-even
1816
1797
 
1817
1798
  /* Excluded from this release type: _ShapeDescriptor */
1818
1799
 
1819
- /** A branded string representing a street address. @public */
1820
- export declare type StreetAddress = {
1821
- readonly [__brand]: 'StreetAddress';
1822
- readonly [__stripeType]: 'string';
1823
- } & string;
1824
-
1825
- /** Factory for creating {@link (StreetAddress:type)} branded values. @public */
1826
- export declare const StreetAddress: { create: (address: string) => StreetAddress };
1827
-
1828
1800
  /** The type of the opaque Stripe type-tag key used in SDK scalar types. @public */
1829
1801
  export declare type StripeTypeSymbol = typeof __stripeType;
1830
1802
 
@@ -1839,15 +1811,6 @@ declare interface TimeRange {
1839
1811
  endDate: Date;
1840
1812
  }
1841
1813
 
1842
- /** A branded string representing an ISO 8601 datetime. @public */
1843
- export declare type Timestamp = {
1844
- readonly [__brand]: 'Timestamp';
1845
- readonly [__stripeType]: 'string';
1846
- } & string;
1847
-
1848
- /** Factory for creating {@link (Timestamp:type)} branded values. @public */
1849
- export declare const Timestamp: { create: (value: string) => Timestamp };
1850
-
1851
1814
  /**
1852
1815
  * Deep-freezes `value` and returns it typed as {@link DeepReadonly}`<T>`.
1853
1816
  *
@@ -1892,31 +1855,9 @@ export declare function toConst<T>(value: T): DeepReadonly<T>;
1892
1855
 
1893
1856
  /* Excluded from this release type: _UnionDescriptor */
1894
1857
 
1895
- /**
1896
- * Shared types and error classes for the transform pipeline.
1897
- * See transforms.ts for the module overview.
1898
- */
1899
- /**
1900
- * Thrown when incoming wire data (proto → SDK) cannot be parsed.
1901
- * Indicates malformed or unexpected data from the proto infrastructure —
1902
- * not a bug in the user's code.
1903
- *
1904
- * @public
1905
- */
1906
- export declare class WireReadError extends Error {
1907
- /* Excluded from this release type: name */
1908
- }
1858
+ /* Excluded from this release type: _WireReadError */
1909
1859
 
1910
- /**
1911
- * Thrown when outgoing SDK data (SDK → proto) cannot be serialized.
1912
- * Indicates that the user's code returned a value that cannot be translated
1913
- * back to wire format.
1914
- *
1915
- * @public
1916
- */
1917
- export declare class WireWriteError extends Error {
1918
- /* Excluded from this release type: name */
1919
- }
1860
+ /* Excluded from this release type: _WireWriteError */
1920
1861
 
1921
1862
  declare namespace Workflows {
1922
1863
  export {
@@ -1144,25 +1144,6 @@ declare interface InvoiceCollectionSetting<Config> {
1144
1144
  collectionOverride: InvoiceCollectionSetting.CollectionOverrideFunction<Config>;
1145
1145
  }
1146
1146
 
1147
- /**
1148
- * Check whether a value is a `Decimal` instance.
1149
- *
1150
- * @remarks
1151
- * Use this instead of `instanceof` — the underlying class is not
1152
- * publicly exported, so `instanceof` checks are not available to
1153
- * consumers.
1154
- *
1155
- * @example
1156
- * ```ts
1157
- * if (isDecimal(value)) {
1158
- * value.add(Decimal.from('1')); // value is Decimal
1159
- * }
1160
- * ```
1161
- *
1162
- * @public
1163
- */
1164
- export declare function isDecimal(value: unknown): value is Decimal;
1165
-
1166
1147
  /* Excluded from this release type: _isPromiseLike */
1167
1148
 
1168
1149
  /* Excluded from this release type: _JsonWireToType */
@@ -1816,15 +1797,6 @@ export declare type RoundDirection = 'ceil' | 'floor' | 'half-down' | 'half-even
1816
1797
 
1817
1798
  /* Excluded from this release type: _ShapeDescriptor */
1818
1799
 
1819
- /** A branded string representing a street address. @public */
1820
- export declare type StreetAddress = {
1821
- readonly [__brand]: 'StreetAddress';
1822
- readonly [__stripeType]: 'string';
1823
- } & string;
1824
-
1825
- /** Factory for creating {@link (StreetAddress:type)} branded values. @public */
1826
- export declare const StreetAddress: { create: (address: string) => StreetAddress };
1827
-
1828
1800
  /** The type of the opaque Stripe type-tag key used in SDK scalar types. @public */
1829
1801
  export declare type StripeTypeSymbol = typeof __stripeType;
1830
1802
 
@@ -1839,15 +1811,6 @@ declare interface TimeRange {
1839
1811
  endDate: Date;
1840
1812
  }
1841
1813
 
1842
- /** A branded string representing an ISO 8601 datetime. @public */
1843
- export declare type Timestamp = {
1844
- readonly [__brand]: 'Timestamp';
1845
- readonly [__stripeType]: 'string';
1846
- } & string;
1847
-
1848
- /** Factory for creating {@link (Timestamp:type)} branded values. @public */
1849
- export declare const Timestamp: { create: (value: string) => Timestamp };
1850
-
1851
1814
  /**
1852
1815
  * Deep-freezes `value` and returns it typed as {@link DeepReadonly}`<T>`.
1853
1816
  *
@@ -1892,31 +1855,9 @@ export declare function toConst<T>(value: T): DeepReadonly<T>;
1892
1855
 
1893
1856
  /* Excluded from this release type: _UnionDescriptor */
1894
1857
 
1895
- /**
1896
- * Shared types and error classes for the transform pipeline.
1897
- * See transforms.ts for the module overview.
1898
- */
1899
- /**
1900
- * Thrown when incoming wire data (proto → SDK) cannot be parsed.
1901
- * Indicates malformed or unexpected data from the proto infrastructure —
1902
- * not a bug in the user's code.
1903
- *
1904
- * @public
1905
- */
1906
- export declare class WireReadError extends Error {
1907
- /* Excluded from this release type: name */
1908
- }
1858
+ /* Excluded from this release type: _WireReadError */
1909
1859
 
1910
- /**
1911
- * Thrown when outgoing SDK data (SDK → proto) cannot be serialized.
1912
- * Indicates that the user's code returned a value that cannot be translated
1913
- * back to wire format.
1914
- *
1915
- * @public
1916
- */
1917
- export declare class WireWriteError extends Error {
1918
- /* Excluded from this release type: name */
1919
- }
1860
+ /* Excluded from this release type: _WireWriteError */
1920
1861
 
1921
1862
  declare namespace Workflows {
1922
1863
  export {
@@ -25,7 +25,7 @@ declare const __brand: '__brand';
25
25
  *
26
26
  * Using a dedicated key (rather than the shared `__brand`) lets formspec's
27
27
  * structural brand-detection distinguish `Decimal` from other SDK branded
28
- * types (e.g., `Ref`, `StreetAddress`) that also carry `[__brand]`.
28
+ * types (e.g., `Ref`) that also carry `[__brand]`.
29
29
  *
30
30
  * String-literal const (not `unique symbol`) so that independent
31
31
  * declaration rollups (root vs subpath) produce structurally compatible
@@ -31,7 +31,7 @@ export declare const __brand: '__brand';
31
31
  *
32
32
  * Using a dedicated key (rather than the shared `__brand`) lets formspec's
33
33
  * structural brand-detection distinguish `Decimal` from other SDK branded
34
- * types (e.g., `Ref`, `StreetAddress`) that also carry `[__brand]`.
34
+ * types (e.g., `Ref`) that also carry `[__brand]`.
35
35
  *
36
36
  * String-literal const (not `unique symbol`) so that independent
37
37
  * declaration rollups (root vs subpath) produce structurally compatible
@@ -1314,25 +1314,6 @@ declare interface InvoiceCollectionSetting<Config> {
1314
1314
  collectionOverride: InvoiceCollectionSetting.CollectionOverrideFunction<Config>;
1315
1315
  }
1316
1316
 
1317
- /**
1318
- * Check whether a value is a `Decimal` instance.
1319
- *
1320
- * @remarks
1321
- * Use this instead of `instanceof` — the underlying class is not
1322
- * publicly exported, so `instanceof` checks are not available to
1323
- * consumers.
1324
- *
1325
- * @example
1326
- * ```ts
1327
- * if (isDecimal(value)) {
1328
- * value.add(Decimal.from('1')); // value is Decimal
1329
- * }
1330
- * ```
1331
- *
1332
- * @public
1333
- */
1334
- export declare function isDecimal(value: unknown): value is Decimal;
1335
-
1336
1317
  /**
1337
1318
  * Returns `true` if `value` conforms to the `PromiseLike` contract:
1338
1319
  * a non-null object or function with a callable `then` method.
@@ -2051,7 +2032,7 @@ export declare const Ref: { create: <T extends { readonly object: string }>(step
2051
2032
  /**
2052
2033
  * Wraps a transformer so that a `null` / `undefined` result throws
2053
2034
  * `WireParseError('Required field is missing')`, which `strategy.applyField`
2054
- * will catch and re-throw as WireReadError / WireWriteError with field context.
2035
+ * will catch and re-throw as _WireReadError / _WireWriteError with field context.
2055
2036
  *
2056
2037
  * The inner transformer runs first, so strategies that backfill absent values
2057
2038
  * (e.g. clock-aware `translateDateTime`) can satisfy the requirement.
@@ -2098,15 +2079,6 @@ export declare class _ShapeDescriptor<_S extends _ApplyStrategy = _ApplyStrategy
2098
2079
  constructor(typeName: string, fields: _FieldDescriptor[], oneofFields?: _OneofFieldDescriptor[]);
2099
2080
  }
2100
2081
 
2101
- /** A branded string representing a street address. @public */
2102
- export declare type StreetAddress = {
2103
- readonly [__brand]: 'StreetAddress';
2104
- readonly [__stripeType]: 'string';
2105
- } & string;
2106
-
2107
- /** Factory for creating {@link (StreetAddress:type)} branded values. @public */
2108
- export declare const StreetAddress: { create: (address: string) => StreetAddress };
2109
-
2110
2082
  /** The type of the opaque Stripe type-tag key used in SDK scalar types. @public */
2111
2083
  export declare type StripeTypeSymbol = typeof __stripeType;
2112
2084
 
@@ -2121,15 +2093,6 @@ declare interface TimeRange {
2121
2093
  endDate: Date;
2122
2094
  }
2123
2095
 
2124
- /** A branded string representing an ISO 8601 datetime. @public */
2125
- export declare type Timestamp = {
2126
- readonly [__brand]: 'Timestamp';
2127
- readonly [__stripeType]: 'string';
2128
- } & string;
2129
-
2130
- /** Factory for creating {@link (Timestamp:type)} branded values. @public */
2131
- export declare const Timestamp: { create: (value: string) => Timestamp };
2132
-
2133
2096
  /**
2134
2097
  * Deep-freezes `value` and returns it typed as {@link DeepReadonly}`<T>`.
2135
2098
  *
@@ -2274,9 +2237,9 @@ export declare class _UnionDescriptor<_S extends _ApplyStrategy = _ApplyStrategy
2274
2237
  * Indicates malformed or unexpected data from the proto infrastructure —
2275
2238
  * not a bug in the user's code.
2276
2239
  *
2277
- * @public
2240
+ * @internal
2278
2241
  */
2279
- export declare class WireReadError extends Error {
2242
+ export declare class _WireReadError extends Error {
2280
2243
  /**
2281
2244
  * Error class name for `instanceof`-free identification.
2282
2245
  * @internal
@@ -2289,9 +2252,9 @@ export declare class WireReadError extends Error {
2289
2252
  * Indicates that the user's code returned a value that cannot be translated
2290
2253
  * back to wire format.
2291
2254
  *
2292
- * @public
2255
+ * @internal
2293
2256
  */
2294
- export declare class WireWriteError extends Error {
2257
+ export declare class _WireWriteError extends Error {
2295
2258
  /**
2296
2259
  * Error class name for `instanceof`-free identification.
2297
2260
  * @internal
@@ -1144,25 +1144,6 @@ declare interface InvoiceCollectionSetting<Config> {
1144
1144
  collectionOverride: InvoiceCollectionSetting.CollectionOverrideFunction<Config>;
1145
1145
  }
1146
1146
 
1147
- /**
1148
- * Check whether a value is a `Decimal` instance.
1149
- *
1150
- * @remarks
1151
- * Use this instead of `instanceof` — the underlying class is not
1152
- * publicly exported, so `instanceof` checks are not available to
1153
- * consumers.
1154
- *
1155
- * @example
1156
- * ```ts
1157
- * if (isDecimal(value)) {
1158
- * value.add(Decimal.from('1')); // value is Decimal
1159
- * }
1160
- * ```
1161
- *
1162
- * @public
1163
- */
1164
- export declare function isDecimal(value: unknown): value is Decimal;
1165
-
1166
1147
  /* Excluded from this release type: _isPromiseLike */
1167
1148
 
1168
1149
  /* Excluded from this release type: _JsonWireToType */
@@ -1816,15 +1797,6 @@ export declare type RoundDirection = 'ceil' | 'floor' | 'half-down' | 'half-even
1816
1797
 
1817
1798
  /* Excluded from this release type: _ShapeDescriptor */
1818
1799
 
1819
- /** A branded string representing a street address. @public */
1820
- export declare type StreetAddress = {
1821
- readonly [__brand]: 'StreetAddress';
1822
- readonly [__stripeType]: 'string';
1823
- } & string;
1824
-
1825
- /** Factory for creating {@link (StreetAddress:type)} branded values. @public */
1826
- export declare const StreetAddress: { create: (address: string) => StreetAddress };
1827
-
1828
1800
  /** The type of the opaque Stripe type-tag key used in SDK scalar types. @public */
1829
1801
  export declare type StripeTypeSymbol = typeof __stripeType;
1830
1802
 
@@ -1839,15 +1811,6 @@ declare interface TimeRange {
1839
1811
  endDate: Date;
1840
1812
  }
1841
1813
 
1842
- /** A branded string representing an ISO 8601 datetime. @public */
1843
- export declare type Timestamp = {
1844
- readonly [__brand]: 'Timestamp';
1845
- readonly [__stripeType]: 'string';
1846
- } & string;
1847
-
1848
- /** Factory for creating {@link (Timestamp:type)} branded values. @public */
1849
- export declare const Timestamp: { create: (value: string) => Timestamp };
1850
-
1851
1814
  /**
1852
1815
  * Deep-freezes `value` and returns it typed as {@link DeepReadonly}`<T>`.
1853
1816
  *
@@ -1892,31 +1855,9 @@ export declare function toConst<T>(value: T): DeepReadonly<T>;
1892
1855
 
1893
1856
  /* Excluded from this release type: _UnionDescriptor */
1894
1857
 
1895
- /**
1896
- * Shared types and error classes for the transform pipeline.
1897
- * See transforms.ts for the module overview.
1898
- */
1899
- /**
1900
- * Thrown when incoming wire data (proto → SDK) cannot be parsed.
1901
- * Indicates malformed or unexpected data from the proto infrastructure —
1902
- * not a bug in the user's code.
1903
- *
1904
- * @public
1905
- */
1906
- export declare class WireReadError extends Error {
1907
- /* Excluded from this release type: name */
1908
- }
1858
+ /* Excluded from this release type: _WireReadError */
1909
1859
 
1910
- /**
1911
- * Thrown when outgoing SDK data (SDK → proto) cannot be serialized.
1912
- * Indicates that the user's code returned a value that cannot be translated
1913
- * back to wire format.
1914
- *
1915
- * @public
1916
- */
1917
- export declare class WireWriteError extends Error {
1918
- /* Excluded from this release type: name */
1919
- }
1860
+ /* Excluded from this release type: _WireWriteError */
1920
1861
 
1921
1862
  declare namespace Workflows {
1922
1863
  export {
@@ -404,25 +404,6 @@ export declare interface IntegerCompanion {
404
404
  */
405
405
  export declare type IntegerRoundDirection = 'ceil' | 'floor' | 'half-up' | 'round-down' | 'round-up';
406
406
 
407
- /**
408
- * Check whether a value is a `Decimal` instance.
409
- *
410
- * @remarks
411
- * Use this instead of `instanceof` — the underlying class is not
412
- * publicly exported, so `instanceof` checks are not available to
413
- * consumers.
414
- *
415
- * @example
416
- * ```ts
417
- * if (isDecimal(value)) {
418
- * value.add(Decimal.from('1')); // value is Decimal
419
- * }
420
- * ```
421
- *
422
- * @public
423
- */
424
- export declare function isDecimal(value: unknown): value is Decimal;
425
-
426
407
  /* Excluded from this release type: _isPromiseLike */
427
408
 
428
409
  /* Excluded from this release type: _JsonWireToType */
@@ -544,27 +525,9 @@ export declare type RoundDirection = 'ceil' | 'floor' | 'half-down' | 'half-even
544
525
 
545
526
  /* Excluded from this release type: _ShapeDescriptor */
546
527
 
547
- /** A branded string representing a street address. @public */
548
- export declare type StreetAddress = {
549
- readonly [__brand]: 'StreetAddress';
550
- readonly [__stripeType]: 'string';
551
- } & string;
552
-
553
- /** Factory for creating {@link (StreetAddress:type)} branded values. @public */
554
- export declare const StreetAddress: { create: (address: string) => StreetAddress };
555
-
556
528
  /** The type of the opaque Stripe type-tag key used in SDK scalar types. @public */
557
529
  export declare type StripeTypeSymbol = typeof __stripeType;
558
530
 
559
- /** A branded string representing an ISO 8601 datetime. @public */
560
- export declare type Timestamp = {
561
- readonly [__brand]: 'Timestamp';
562
- readonly [__stripeType]: 'string';
563
- } & string;
564
-
565
- /** Factory for creating {@link (Timestamp:type)} branded values. @public */
566
- export declare const Timestamp: { create: (value: string) => Timestamp };
567
-
568
531
  /**
569
532
  * Deep-freezes `value` and returns it typed as {@link DeepReadonly}`<T>`.
570
533
  *
@@ -609,30 +572,8 @@ export declare function toConst<T>(value: T): DeepReadonly<T>;
609
572
 
610
573
  /* Excluded from this release type: _UnionDescriptor */
611
574
 
612
- /**
613
- * Shared types and error classes for the transform pipeline.
614
- * See transforms.ts for the module overview.
615
- */
616
- /**
617
- * Thrown when incoming wire data (proto → SDK) cannot be parsed.
618
- * Indicates malformed or unexpected data from the proto infrastructure —
619
- * not a bug in the user's code.
620
- *
621
- * @public
622
- */
623
- export declare class WireReadError extends Error {
624
- /* Excluded from this release type: name */
625
- }
575
+ /* Excluded from this release type: _WireReadError */
626
576
 
627
- /**
628
- * Thrown when outgoing SDK data (SDK → proto) cannot be serialized.
629
- * Indicates that the user's code returned a value that cannot be translated
630
- * back to wire format.
631
- *
632
- * @public
633
- */
634
- export declare class WireWriteError extends Error {
635
- /* Excluded from this release type: name */
636
- }
577
+ /* Excluded from this release type: _WireWriteError */
637
578
 
638
579
  export { }
@@ -404,25 +404,6 @@ export declare interface IntegerCompanion {
404
404
  */
405
405
  export declare type IntegerRoundDirection = 'ceil' | 'floor' | 'half-up' | 'round-down' | 'round-up';
406
406
 
407
- /**
408
- * Check whether a value is a `Decimal` instance.
409
- *
410
- * @remarks
411
- * Use this instead of `instanceof` — the underlying class is not
412
- * publicly exported, so `instanceof` checks are not available to
413
- * consumers.
414
- *
415
- * @example
416
- * ```ts
417
- * if (isDecimal(value)) {
418
- * value.add(Decimal.from('1')); // value is Decimal
419
- * }
420
- * ```
421
- *
422
- * @public
423
- */
424
- export declare function isDecimal(value: unknown): value is Decimal;
425
-
426
407
  /* Excluded from this release type: _isPromiseLike */
427
408
 
428
409
  /* Excluded from this release type: _JsonWireToType */
@@ -544,27 +525,9 @@ export declare type RoundDirection = 'ceil' | 'floor' | 'half-down' | 'half-even
544
525
 
545
526
  /* Excluded from this release type: _ShapeDescriptor */
546
527
 
547
- /** A branded string representing a street address. @public */
548
- export declare type StreetAddress = {
549
- readonly [__brand]: 'StreetAddress';
550
- readonly [__stripeType]: 'string';
551
- } & string;
552
-
553
- /** Factory for creating {@link (StreetAddress:type)} branded values. @public */
554
- export declare const StreetAddress: { create: (address: string) => StreetAddress };
555
-
556
528
  /** The type of the opaque Stripe type-tag key used in SDK scalar types. @public */
557
529
  export declare type StripeTypeSymbol = typeof __stripeType;
558
530
 
559
- /** A branded string representing an ISO 8601 datetime. @public */
560
- export declare type Timestamp = {
561
- readonly [__brand]: 'Timestamp';
562
- readonly [__stripeType]: 'string';
563
- } & string;
564
-
565
- /** Factory for creating {@link (Timestamp:type)} branded values. @public */
566
- export declare const Timestamp: { create: (value: string) => Timestamp };
567
-
568
531
  /**
569
532
  * Deep-freezes `value` and returns it typed as {@link DeepReadonly}`<T>`.
570
533
  *
@@ -609,30 +572,8 @@ export declare function toConst<T>(value: T): DeepReadonly<T>;
609
572
 
610
573
  /* Excluded from this release type: _UnionDescriptor */
611
574
 
612
- /**
613
- * Shared types and error classes for the transform pipeline.
614
- * See transforms.ts for the module overview.
615
- */
616
- /**
617
- * Thrown when incoming wire data (proto → SDK) cannot be parsed.
618
- * Indicates malformed or unexpected data from the proto infrastructure —
619
- * not a bug in the user's code.
620
- *
621
- * @public
622
- */
623
- export declare class WireReadError extends Error {
624
- /* Excluded from this release type: name */
625
- }
575
+ /* Excluded from this release type: _WireReadError */
626
576
 
627
- /**
628
- * Thrown when outgoing SDK data (SDK → proto) cannot be serialized.
629
- * Indicates that the user's code returned a value that cannot be translated
630
- * back to wire format.
631
- *
632
- * @public
633
- */
634
- export declare class WireWriteError extends Error {
635
- /* Excluded from this release type: name */
636
- }
577
+ /* Excluded from this release type: _WireWriteError */
637
578
 
638
579
  export { }