@smithy/core 3.24.0 → 3.24.1

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.
Files changed (60) hide show
  1. package/dist-cjs/submodules/schema/index.js +12 -0
  2. package/dist-cjs/submodules/serde/index.browser.js +37 -36
  3. package/dist-cjs/submodules/serde/index.js +39 -37
  4. package/dist-cjs/submodules/serde/index.native.js +37 -36
  5. package/dist-es/submodules/schema/TypeRegistry.js +12 -0
  6. package/dist-es/submodules/serde/index.browser.js +4 -2
  7. package/dist-es/submodules/serde/index.js +5 -2
  8. package/dist-es/submodules/serde/index.native.js +4 -2
  9. package/dist-es/submodules/serde/uuid/v4.js +30 -29
  10. package/dist-types/pagination/createPaginator.d.ts +2 -2
  11. package/dist-types/request-builder/requestBuilder.d.ts +2 -1
  12. package/dist-types/setFeature.d.ts +3 -3
  13. package/dist-types/submodules/cbor/cbor-decode.d.ts +4 -3
  14. package/dist-types/submodules/cbor/cbor-types.d.ts +4 -4
  15. package/dist-types/submodules/cbor/cbor.d.ts +3 -4
  16. package/dist-types/submodules/checksum/chunked-blob-reader/chunked-blob-reader.d.ts +2 -1
  17. package/dist-types/submodules/client/smithy-client/client.d.ts +2 -5
  18. package/dist-types/submodules/client/smithy-client/default-error-handler.d.ts +2 -2
  19. package/dist-types/submodules/client/smithy-client/emitWarningIfUnsupportedVersion.d.ts +1 -2
  20. package/dist-types/submodules/client/smithy-client/exceptions.d.ts +2 -2
  21. package/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +7 -7
  22. package/dist-types/submodules/client/smithy-client/get-array-if-single-item.d.ts +2 -2
  23. package/dist-types/submodules/client/smithy-client/get-value-from-text-node.d.ts +2 -2
  24. package/dist-types/submodules/client/smithy-client/object-mapping.d.ts +22 -21
  25. package/dist-types/submodules/client/smithy-client/ser-utils.d.ts +1 -2
  26. package/dist-types/submodules/client/smithy-client/serde-json.d.ts +1 -3
  27. package/dist-types/submodules/client/util-waiter/utils/validate.d.ts +2 -2
  28. package/dist-types/submodules/config/config-resolver/endpointsConfig/resolveEndpointsConfig.d.ts +2 -2
  29. package/dist-types/submodules/config/property-provider/CredentialsProviderError.d.ts +2 -3
  30. package/dist-types/submodules/config/property-provider/ProviderError.d.ts +2 -3
  31. package/dist-types/submodules/config/property-provider/TokenProviderError.d.ts +2 -3
  32. package/dist-types/submodules/config/property-provider/chain.d.ts +2 -3
  33. package/dist-types/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.d.ts +2 -1
  34. package/dist-types/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +6 -5
  35. package/dist-types/submodules/endpoints/util-endpoints/cache/EndpointCache.d.ts +2 -2
  36. package/dist-types/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +2 -1
  37. package/dist-types/submodules/protocols/collect-stream-body.d.ts +2 -2
  38. package/dist-types/submodules/protocols/extended-encode-uri-component.d.ts +2 -2
  39. package/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +4 -4
  40. package/dist-types/submodules/protocols/protocol-http/httpHandler.d.ts +2 -5
  41. package/dist-types/submodules/protocols/requestBuilder.d.ts +2 -1
  42. package/dist-types/submodules/retry/util-retry/constants.d.ts +4 -4
  43. package/dist-types/submodules/serde/date-utils.d.ts +7 -19
  44. package/dist-types/submodules/serde/index.browser.d.ts +2 -2
  45. package/dist-types/submodules/serde/index.d.ts +2 -2
  46. package/dist-types/submodules/serde/index.native.d.ts +2 -2
  47. package/dist-types/submodules/serde/lazy-json.d.ts +4 -6
  48. package/dist-types/submodules/serde/parse-utils.d.ts +31 -51
  49. package/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +3 -12
  50. package/dist-types/submodules/serde/split-every.d.ts +1 -2
  51. package/dist-types/submodules/serde/util-stream/createBufferedReadable.browser.d.ts +2 -1
  52. package/dist-types/submodules/serde/util-stream/createBufferedReadable.d.ts +2 -1
  53. package/dist-types/submodules/serde/util-stream/stream-collector.browser.d.ts +2 -1
  54. package/dist-types/submodules/serde/uuid/v4.d.ts +12 -7
  55. package/dist-types/util-identity-and-auth/memoizeIdentityProvider.d.ts +2 -1
  56. package/package.json +1 -1
  57. package/dist-es/submodules/serde/generateIdempotencyToken.js +0 -2
  58. package/dist-es/submodules/serde/uuid/randomUUID.js +0 -3
  59. package/dist-types/submodules/serde/generateIdempotencyToken.d.ts +0 -2
  60. package/dist-types/submodules/serde/uuid/randomUUID.d.ts +0 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @internal
3
- *
4
2
  * The XML parser will set one K:V for a member that could
5
3
  * return multiple entries but only has one.
4
+ *
5
+ * @internal
6
6
  */
7
7
  export declare const getArrayIfSingleItem: <T>(mayBeArray: T) => T | T[];
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @internal
3
- *
4
2
  * Recursively parses object and populates value is node from
5
3
  * "#text" key if it's available
4
+ *
5
+ * @internal
6
6
  */
7
7
  export declare const getValueFromTextNode: (obj: any) => any;
@@ -1,6 +1,4 @@
1
1
  /**
2
- * @internal
3
- *
4
2
  * A set of instructions for multiple keys.
5
3
  * The aim is to provide a concise yet readable way to map and filter values
6
4
  * onto a target object.
@@ -43,26 +41,28 @@
43
41
  * conditionalValue3: 12,
44
42
  * };
45
43
  * ```
44
+ *
45
+ * @internal
46
46
  */
47
47
  export type ObjectMappingInstructions = Record<string, ObjectMappingInstruction>;
48
48
  /**
49
- * @internal
50
- *
51
49
  * A variant of the object mapping instruction for the `take` function.
52
50
  * In this case, the source value is provided to the value function, turning it
53
51
  * from a supplier into a mapper.
52
+ *
53
+ * @internal
54
54
  */
55
55
  export type SourceMappingInstructions = Record<string, ValueMapper | SourceMappingInstruction>;
56
56
  /**
57
- * @internal
58
- *
59
57
  * An instruction set for assigning a value to a target object.
58
+ *
59
+ * @internal
60
60
  */
61
61
  export type ObjectMappingInstruction = LazyValueInstruction | ConditionalLazyValueInstruction | SimpleValueInstruction | ConditionalValueInstruction | UnfilteredValue;
62
62
  /**
63
- * @internal
64
- *
65
63
  * non-array
64
+ *
65
+ * @internal
66
66
  */
67
67
  export type UnfilteredValue = any;
68
68
  /**
@@ -86,47 +86,46 @@ export type ConditionalValueInstruction = [ValueFilteringFunction, Value];
86
86
  */
87
87
  export type SourceMappingInstruction = [(ValueFilteringFunction | FilterStatus)?, ValueMapper?, string?];
88
88
  /**
89
- * @internal
90
- *
91
89
  * Filter is considered passed if
92
90
  * 1. It is a boolean true.
93
91
  * 2. It is not undefined and is itself truthy.
94
92
  * 3. It is undefined and the corresponding _value_ is neither null nor undefined.
93
+ *
94
+ * @internal
95
95
  */
96
96
  export type FilterStatus = boolean | unknown | void;
97
97
  /**
98
- * @internal
99
- *
100
98
  * Supplies the filter check but not against any value as input.
99
+ *
100
+ * @internal
101
101
  */
102
102
  export type FilterStatusSupplier = () => boolean;
103
103
  /**
104
- * @internal
105
- *
106
104
  * Filter check with the given value.
105
+ *
106
+ * @internal
107
107
  */
108
108
  export type ValueFilteringFunction = (value: any) => boolean;
109
109
  /**
110
- * @internal
111
- *
112
110
  * Supplies the value for lazy evaluation.
111
+ *
112
+ * @internal
113
113
  */
114
114
  export type ValueSupplier = () => any;
115
115
  /**
116
- * @internal
117
- *
118
116
  * A function that maps the source value to the target value.
119
117
  * Defaults to pass-through with nullish check.
118
+ *
119
+ * @internal
120
120
  */
121
121
  export type ValueMapper = (value: any) => any;
122
122
  /**
123
- * @internal
124
- *
125
123
  * A non-function value.
124
+ *
125
+ * @internal
126
126
  */
127
127
  export type Value = any;
128
128
  /**
129
- * @internal
130
129
  * Internal/Private, for codegen use only.
131
130
  *
132
131
  * Transfer a set of keys from [instructions] to [target].
@@ -136,6 +135,8 @@ export type Value = any;
136
135
  * The target assigned value will be supplied by the instructions as an evaluable function or non-function value.
137
136
  *
138
137
  * @see ObjectMappingInstructions for an example.
138
+ *
139
+ * @internal
139
140
  */
140
141
  export declare function map(target: any, filter: (value: any) => boolean, instructions: Record<string, ValueSupplier | Value>): typeof target;
141
142
  /**
@@ -1,8 +1,7 @@
1
1
  /**
2
- * @internal
3
- *
4
2
  * Serializes a number, turning non-numeric values into strings.
5
3
  *
4
+ * @internal
6
5
  * @param value - The number to serialize.
7
6
  * @returns A number, or a string if the given number was non-numeric.
8
7
  */
@@ -1,11 +1,9 @@
1
1
  /**
2
- * @internal
3
- *
4
2
  * Maps an object through the default JSON serde behavior.
5
3
  * This means removing nullish fields and un-sparsifying lists.
6
- *
7
4
  * This is also used by Smithy RPCv2 CBOR as the default serde behavior.
8
5
  *
6
+ * @internal
9
7
  * @param obj - to be checked.
10
8
  * @returns same object with default serde behavior applied.
11
9
  */
@@ -1,8 +1,8 @@
1
1
  import type { WaiterOptions } from "../waiter";
2
2
  /**
3
- * @internal
4
- *
5
3
  * Validates that waiter options are passed correctly
4
+ *
5
+ * @internal
6
6
  * @param options - a waiter configuration object
7
7
  */
8
8
  export declare const validateWaiterOptions: <Client>(options: WaiterOptions<Client>) => void;
@@ -48,10 +48,10 @@ export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig>
48
48
  useDualstackEndpoint: Provider<boolean>;
49
49
  }
50
50
  /**
51
- * @internal
51
+ * All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits.
52
52
  *
53
+ * @internal
53
54
  * @deprecated endpoints rulesets use \@smithy/middleware-endpoint resolveEndpointConfig.
54
- * All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits.
55
55
  */
56
56
  export declare const resolveEndpointsConfig: <T>(input: T & EndpointsInputConfig & PreviouslyResolved) => T & EndpointsResolvedConfig;
57
57
  export {};
@@ -1,14 +1,13 @@
1
1
  import { ProviderError, type ProviderErrorOptionsType } from "./ProviderError";
2
2
  /**
3
- * @public
4
- *
5
3
  * An error representing a failure of an individual credential provider.
6
- *
7
4
  * This error class has special meaning to the {@link chain} method. If a
8
5
  * provider in the chain is rejected with an error, the chain will only proceed
9
6
  * to the next provider if the value of the `tryNextLink` property on the error
10
7
  * is truthy. This allows individual providers to halt the chain and also
11
8
  * ensures the chain will stop if an entirely unexpected error is encountered.
9
+ *
10
+ * @public
12
11
  */
13
12
  export declare class CredentialsProviderError extends ProviderError {
14
13
  name: string;
@@ -7,15 +7,14 @@ export type ProviderErrorOptionsType = {
7
7
  logger?: Logger;
8
8
  };
9
9
  /**
10
- * @public
11
- *
12
10
  * An error representing a failure of an individual provider.
13
- *
14
11
  * This error class has special meaning to the {@link chain} method. If a
15
12
  * provider in the chain is rejected with an error, the chain will only proceed
16
13
  * to the next provider if the value of the `tryNextLink` property on the error
17
14
  * is truthy. This allows individual providers to halt the chain and also
18
15
  * ensures the chain will stop if an entirely unexpected error is encountered.
16
+ *
17
+ * @public
19
18
  */
20
19
  export declare class ProviderError extends Error {
21
20
  name: string;
@@ -1,14 +1,13 @@
1
1
  import { ProviderError, type ProviderErrorOptionsType } from "./ProviderError";
2
2
  /**
3
- * @public
4
- *
5
3
  * An error representing a failure of an individual token provider.
6
- *
7
4
  * This error class has special meaning to the {@link chain} method. If a
8
5
  * provider in the chain is rejected with an error, the chain will only proceed
9
6
  * to the next provider if the value of the `tryNextLink` property on the error
10
7
  * is truthy. This allows individual providers to halt the chain and also
11
8
  * ensures the chain will stop if an entirely unexpected error is encountered.
9
+ *
10
+ * @public
12
11
  */
13
12
  export declare class TokenProviderError extends ProviderError {
14
13
  name: string;
@@ -1,13 +1,12 @@
1
1
  import type { Provider } from "@smithy/types";
2
2
  /**
3
- * @internal
4
- *
5
3
  * Compose a single credential provider function from multiple credential
6
4
  * providers. The first provider in the argument list will always be invoked;
7
5
  * subsequent providers in the list will be invoked in the order in which the
8
6
  * were received if the preceding provider did not successfully resolve.
9
- *
10
7
  * If no providers were received or no provider resolves successfully, the
11
8
  * returned promise will be rejected.
9
+ *
10
+ * @internal
12
11
  */
13
12
  export declare const chain: <T>(...providers: Array<Provider<T>>) => Provider<T>;
@@ -45,8 +45,9 @@ export interface SSOToken {
45
45
  */
46
46
  export declare const tokenIntercept: Record<string, any>;
47
47
  /**
48
+ * Returns the SSO token from the file system.
49
+ *
48
50
  * @internal
49
51
  * @param id - can be either a start URL or the SSO session name.
50
- * Returns the SSO token from the file system.
51
52
  */
52
53
  export declare const getSSOTokenFromFile: (id: string) => Promise<any>;
@@ -1,11 +1,11 @@
1
1
  import type { Endpoint, EndpointParameters, EndpointV2, Logger, Provider, UrlParser } from "@smithy/types";
2
2
  import type { GetEndpointFromConfig } from "./adaptors/getEndpointFromInstructions";
3
3
  /**
4
- * @public
5
- *
6
4
  * Endpoint config interfaces and resolver for Endpoint v2. They live in separate package to allow per-service onboarding.
7
5
  * When all services onboard Endpoint v2, the resolver in config-resolver package can be removed.
8
6
  * This interface includes all the endpoint parameters with built-in bindings of "AWS::*" and "SDK::*"
7
+ *
8
+ * @public
9
9
  */
10
10
  export interface EndpointInputConfig<T extends EndpointParameters = EndpointParameters> {
11
11
  /**
@@ -38,8 +38,9 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
38
38
  */
39
39
  useFipsEndpoint?: boolean | Provider<boolean | undefined>;
40
40
  /**
41
- * @internal
42
41
  * This field is used internally so you should not fill any value to this field.
42
+ *
43
+ * @internal
43
44
  */
44
45
  serviceConfiguredEndpoint?: never;
45
46
  }
@@ -55,10 +56,10 @@ export interface PreviouslyResolved<T extends EndpointParameters = EndpointParam
55
56
  serviceId?: string;
56
57
  }
57
58
  /**
58
- * @internal
59
- *
60
59
  * This supersedes the similarly named EndpointsResolvedConfig (no parametric types)
61
60
  * from resolveEndpointsConfig.ts in \@smithy/config-resolver.
61
+ *
62
+ * @internal
62
63
  */
63
64
  export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointParameters> {
64
65
  /**
@@ -1,8 +1,8 @@
1
1
  import type { EndpointParams, EndpointV2 } from "@smithy/types";
2
2
  /**
3
- * @internal
4
- *
5
3
  * Cache for endpoint ruleSet resolution.
4
+ *
5
+ * @internal
6
6
  */
7
7
  export declare class EndpointCache {
8
8
  private capacity;
@@ -1,6 +1,7 @@
1
1
  /**
2
- * @internal
3
2
  * Inlined from @smithy/core/config to avoid circular dependency.
3
+ *
4
+ * @internal
4
5
  */
5
6
  type LoadedConfigSelectors<T> = {
6
7
  environmentVariableSelector: (env: Record<string, string | undefined>) => T | undefined;
@@ -1,9 +1,9 @@
1
1
  import { Uint8ArrayBlobAdapter } from "@smithy/core/serde";
2
2
  import type { SerdeContext } from "@smithy/types";
3
3
  /**
4
- * @internal
5
- *
6
4
  * Collect low-level response body stream to Uint8Array.
5
+ *
6
+ * @internal
7
7
  */
8
8
  export declare const collectBody: (streamBody: any | undefined, context: {
9
9
  streamCollector: SerdeContext["streamCollector"];
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @internal
3
- *
4
2
  * Function that wraps encodeURIComponent to encode additional characters
5
3
  * to fully adhere to RFC 3986.
4
+ *
5
+ * @internal
6
6
  */
7
7
  export declare function extendedEncodeURIComponent(str: string): string;
@@ -15,9 +15,9 @@ export type HttpHandlerExtensionConfigType<HandlerConfig extends object = {}> =
15
15
  httpHandler: HttpHandler<HandlerConfig>;
16
16
  }>;
17
17
  /**
18
- * @internal
19
- *
20
18
  * Helper function to resolve default extension configuration from runtime config
19
+ *
20
+ * @internal
21
21
  */
22
22
  export declare const getHttpHandlerExtensionConfiguration: <HandlerConfig extends object = {}>(runtimeConfig: HttpHandlerExtensionConfigType<HandlerConfig>) => {
23
23
  setHttpHandler(handler: HttpHandler<HandlerConfig>): void;
@@ -26,8 +26,8 @@ export declare const getHttpHandlerExtensionConfiguration: <HandlerConfig extend
26
26
  httpHandlerConfigs(): HandlerConfig;
27
27
  };
28
28
  /**
29
- * @internal
30
- *
31
29
  * Helper function to resolve runtime config from default extension configuration
30
+ *
31
+ * @internal
32
32
  */
33
33
  export declare const resolveHttpHandlerRuntimeConfig: <HandlerConfig extends object = {}>(httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration<HandlerConfig>) => HttpHandlerExtensionConfigType<HandlerConfig>;
@@ -15,21 +15,18 @@ export type HttpHandler<HttpHandlerConfig extends object = {}> = RequestHandler<
15
15
  httpHandlerConfigs(): HttpHandlerConfig;
16
16
  };
17
17
  /**
18
- * @public
19
- *
20
18
  * A type representing the accepted user inputs for the `requestHandler` field
21
19
  * of a client's constructor object.
22
- *
23
20
  * You may provide an instance of an HttpHandler, or alternatively
24
21
  * provide the constructor arguments as an object which will be passed
25
22
  * to the constructor of the default request handler.
26
- *
27
23
  * The default class constructor to which your arguments will be passed
28
24
  * varies. The Node.js default is the NodeHttpHandler and the browser/react-native
29
25
  * default is the FetchHttpHandler. In rarer cases specific clients may be
30
26
  * configured to use other default implementations such as Websocket or HTTP2.
31
- *
32
27
  * The fallback type Record<string, unknown> is part of the union to allow
33
28
  * passing constructor params to an unknown requestHandler type.
29
+ *
30
+ * @public
34
31
  */
35
32
  export type HttpHandlerUserInput = HttpHandler | NodeHttpHandlerOptions | FetchHttpHandlerOptions | Record<string, unknown>;
@@ -1,8 +1,9 @@
1
1
  import type { SerdeContext } from "@smithy/types";
2
2
  import { HttpRequest } from "./protocol-http/httpRequest";
3
3
  /**
4
- * @internal
5
4
  * used in code-generated serde.
5
+ *
6
+ * @internal
6
7
  */
7
8
  export declare function requestBuilder(input: any, context: SerdeContext): RequestBuilder;
8
9
  /**
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @public
3
- *
4
2
  * The base number of milliseconds to use in calculating a suitable cool-down
5
3
  * time when a retryable error is encountered.
4
+ *
5
+ * @public
6
6
  */
7
7
  export declare const DEFAULT_RETRY_DELAY_BASE = 100;
8
8
  /**
9
- * @public
10
- *
11
9
  * The maximum amount of time (in milliseconds) that will be used as a delay
12
10
  * between retry attempts.
11
+ *
12
+ * @public
13
13
  */
14
14
  export declare const MAXIMUM_RETRY_DELAY: number;
15
15
  /**
@@ -1,72 +1,60 @@
1
1
  /**
2
- * @internal
3
- *
4
2
  * Builds a proper UTC HttpDate timestamp from a Date object
5
3
  * since not all environments will have this as the expected
6
4
  * format.
7
- *
8
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString}
9
5
  * - Prior to ECMAScript 2018, the format of the return value
10
6
  * - varied according to the platform. The most common return
11
7
  * - value was an RFC-1123 formatted date stamp, which is a
12
8
  * - slightly updated version of RFC-822 date stamps.
9
+ *
10
+ * @internal
11
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString}
13
12
  */
14
13
  export declare function dateToUtcString(date: Date): string;
15
14
  /**
16
- * @internal
17
- *
18
15
  * Parses a value into a Date. Returns undefined if the input is null or
19
16
  * undefined, throws an error if the input is not a string that can be parsed
20
17
  * as an RFC 3339 date.
21
- *
22
18
  * Input strings must conform to RFC3339 section 5.6, and cannot have a UTC
23
19
  * offset. Fractional precision is supported.
24
20
  *
21
+ * @internal
25
22
  * @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14}
26
- *
27
23
  * @param value - the value to parse
28
24
  * @returns a Date or undefined
29
25
  */
30
26
  export declare const parseRfc3339DateTime: (value: unknown) => Date | undefined;
31
27
  /**
32
- * @internal
33
- *
34
28
  * Parses a value into a Date. Returns undefined if the input is null or
35
29
  * undefined, throws an error if the input is not a string that can be parsed
36
30
  * as an RFC 3339 date.
37
- *
38
31
  * Input strings must conform to RFC3339 section 5.6, and can have a UTC
39
32
  * offset. Fractional precision is supported.
40
33
  *
34
+ * @internal
41
35
  * @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14}
42
- *
43
36
  * @param value - the value to parse
44
37
  * @returns a Date or undefined
45
38
  */
46
39
  export declare const parseRfc3339DateTimeWithOffset: (value: unknown) => Date | undefined;
47
40
  /**
48
- * @internal
49
- *
50
41
  * Parses a value into a Date. Returns undefined if the input is null or
51
42
  * undefined, throws an error if the input is not a string that can be parsed
52
43
  * as an RFC 7231 IMF-fixdate or obs-date.
53
- *
54
44
  * Input strings must conform to RFC7231 section 7.1.1.1. Fractional seconds are supported.
55
45
  *
46
+ * @internal
56
47
  * @see {@link https://datatracker.ietf.org/doc/html/rfc7231.html#section-7.1.1.1}
57
- *
58
48
  * @param value - the value to parse
59
49
  * @returns a Date or undefined
60
50
  */
61
51
  export declare const parseRfc7231DateTime: (value: unknown) => Date | undefined;
62
52
  /**
63
- * @internal
64
- *
65
53
  * Parses a value into a Date. Returns undefined if the input is null or
66
54
  * undefined, throws an error if the input is not a number or a parseable string.
67
- *
68
55
  * Input strings must be an integer or floating point number. Fractional seconds are supported.
69
56
  *
57
+ * @internal
70
58
  * @param value - the value to parse
71
59
  * @returns a Date or undefined
72
60
  */
@@ -1,6 +1,5 @@
1
1
  export { copyDocumentWithTransform } from "./copyDocumentWithTransform";
2
2
  export { dateToUtcString, parseRfc3339DateTime, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, parseEpochTimestamp, } from "./date-utils";
3
- export { generateIdempotencyToken } from "./generateIdempotencyToken";
4
3
  export { LazyJsonString, type AutomaticJsonStringConversion } from "./lazy-json";
5
4
  export { logger, parseBoolean, expectBoolean, expectNumber, expectFloat32, expectInt, expectInt32, expectShort, expectByte, expectNonNull, expectObject, expectString, expectUnion, expectLong, strictParseDouble, strictParseFloat, strictParseFloat32, strictParseLong, strictParseInt, strictParseInt32, strictParseShort, strictParseByte, limitedParseDouble, handleFloat, limitedParseFloat, limitedParseFloat32, } from "./parse-utils";
6
5
  export { quoteHeader } from "./quote-header";
@@ -30,4 +29,5 @@ export { headStream } from "./util-stream/headStream.browser";
30
29
  export { sdkStreamMixin } from "./util-stream/sdk-stream-mixin.browser";
31
30
  export { splitStream } from "./util-stream/splitStream.browser";
32
31
  export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
33
- export { v4 } from "./uuid/v4";
32
+ export declare const v4: () => string;
33
+ export declare const generateIdempotencyToken: () => string;
@@ -1,6 +1,5 @@
1
1
  export { copyDocumentWithTransform } from "./copyDocumentWithTransform";
2
2
  export { dateToUtcString, parseRfc3339DateTime, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, parseEpochTimestamp, } from "./date-utils";
3
- export { generateIdempotencyToken } from "./generateIdempotencyToken";
4
3
  export { LazyJsonString, type AutomaticJsonStringConversion } from "./lazy-json";
5
4
  export { logger, parseBoolean, expectBoolean, expectNumber, expectFloat32, expectInt, expectInt32, expectShort, expectByte, expectNonNull, expectObject, expectString, expectUnion, expectLong, strictParseDouble, strictParseFloat, strictParseFloat32, strictParseLong, strictParseInt, strictParseInt32, strictParseShort, strictParseByte, limitedParseDouble, handleFloat, limitedParseFloat, limitedParseFloat32, } from "./parse-utils";
6
5
  export { quoteHeader } from "./quote-header";
@@ -30,4 +29,5 @@ export { headStream } from "./util-stream/headStream";
30
29
  export { sdkStreamMixin } from "./util-stream/sdk-stream-mixin";
31
30
  export { splitStream } from "./util-stream/splitStream";
32
31
  export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
33
- export { v4 } from "./uuid/v4";
32
+ export declare const v4: () => string;
33
+ export declare const generateIdempotencyToken: () => string;
@@ -1,6 +1,5 @@
1
1
  export { copyDocumentWithTransform } from "./copyDocumentWithTransform";
2
2
  export { dateToUtcString, parseRfc3339DateTime, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, parseEpochTimestamp, } from "./date-utils";
3
- export { generateIdempotencyToken } from "./generateIdempotencyToken";
4
3
  export { LazyJsonString, type AutomaticJsonStringConversion } from "./lazy-json";
5
4
  export { logger, parseBoolean, expectBoolean, expectNumber, expectFloat32, expectInt, expectInt32, expectShort, expectByte, expectNonNull, expectObject, expectString, expectUnion, expectLong, strictParseDouble, strictParseFloat, strictParseFloat32, strictParseLong, strictParseInt, strictParseInt32, strictParseShort, strictParseByte, limitedParseDouble, handleFloat, limitedParseFloat, limitedParseFloat32, } from "./parse-utils";
6
5
  export { quoteHeader } from "./quote-header";
@@ -30,4 +29,5 @@ export { headStream } from "./util-stream/headStream.browser";
30
29
  export { sdkStreamMixin } from "./util-stream/sdk-stream-mixin.browser";
31
30
  export { splitStream } from "./util-stream/splitStream.browser";
32
31
  export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
33
- export { v4 } from "./uuid/v4";
32
+ export declare const v4: () => string;
33
+ export declare const generateIdempotencyToken: () => string;
@@ -1,14 +1,13 @@
1
1
  /**
2
- * @public
3
- *
4
2
  * A model field with this type means that you may provide a JavaScript
5
3
  * object in lieu of a JSON string, and it will be serialized to JSON
6
4
  * automatically before being sent in a request.
7
- *
8
5
  * For responses, you will receive a "LazyJsonString", which is a boxed String object
9
6
  * with additional mixin methods.
10
7
  * To get the string value, call `.toString()`, or to get the JSON object value,
11
8
  * call `.deserializeJSON()` or parse it yourself.
9
+ *
10
+ * @public
12
11
  */
13
12
  export type AutomaticJsonStringConversion = Parameters<typeof JSON.stringify>[0] | LazyJsonString;
14
13
  /**
@@ -25,14 +24,13 @@ export interface LazyJsonString extends String {
25
24
  toJSON(): string;
26
25
  }
27
26
  /**
28
- * @internal
29
- *
30
27
  * Extension of the native String class in the previous implementation
31
28
  * has negative global performance impact on method dispatch for strings,
32
29
  * and is generally discouraged.
33
- *
34
30
  * This current implementation may look strange, but is necessary to preserve the interface and
35
31
  * behavior of extending the String class.
32
+ *
33
+ * @internal
36
34
  */
37
35
  export declare const LazyJsonString: {
38
36
  new (s: string): LazyJsonString;