@jjrawlins/cdk-iam-policy-builder-helper 0.0.58 → 0.0.60

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 (133) hide show
  1. package/.jsii +3 -3
  2. package/cdk-iam-policy-builder-helper/go.mod +1 -1
  3. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  4. package/cdk-iam-policy-builder-helper/version +1 -1
  5. package/node_modules/@aws-sdk/client-iam/package.json +5 -5
  6. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  7. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1 -1
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1 -1
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  10. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -2
  11. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  12. package/node_modules/@aws-sdk/core/package.json +2 -2
  13. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  14. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  16. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  17. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  18. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  19. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  20. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  21. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  22. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  23. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  24. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +4 -1
  25. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  26. package/node_modules/@smithy/abort-controller/package.json +2 -2
  27. package/node_modules/@smithy/config-resolver/package.json +4 -4
  28. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -2
  29. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +3 -3
  30. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +171 -169
  31. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -2
  32. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -4
  33. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +1 -1
  34. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
  35. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +4 -6
  36. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +4 -6
  37. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +26 -35
  38. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
  39. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
  40. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  41. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +2 -0
  42. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +2 -0
  43. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +4 -21
  44. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  45. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -0
  46. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +2 -0
  47. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  48. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
  49. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
  50. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  51. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +2 -0
  52. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +2 -0
  53. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +4 -21
  54. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  55. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -0
  56. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +2 -0
  57. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  58. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
  59. package/node_modules/@smithy/core/package.json +7 -7
  60. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  61. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  62. package/node_modules/@smithy/hash-node/package.json +2 -2
  63. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  64. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  65. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  66. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  67. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  68. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  69. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  70. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  71. package/node_modules/@smithy/property-provider/package.json +2 -2
  72. package/node_modules/@smithy/protocol-http/package.json +2 -2
  73. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  74. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  75. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  76. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +2 -1
  77. package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  78. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
  79. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +1 -1
  80. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
  81. package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  82. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -4
  83. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
  84. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
  85. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  86. package/node_modules/@smithy/signature-v4/package.json +4 -4
  87. package/node_modules/@smithy/smithy-client/package.json +7 -7
  88. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  89. package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
  90. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  91. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +136 -0
  92. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +26 -68
  93. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +8 -8
  94. package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -2
  95. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  96. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +142 -0
  97. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +27 -72
  98. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +9 -9
  99. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
  100. package/node_modules/@smithy/types/package.json +1 -1
  101. package/node_modules/@smithy/url-parser/package.json +3 -3
  102. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  103. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  104. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +31 -22
  105. package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
  106. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
  107. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
  108. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
  109. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
  110. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
  111. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
  112. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
  113. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
  114. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
  115. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
  116. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
  117. package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
  118. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
  119. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +6 -1
  120. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
  121. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +6 -0
  122. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
  123. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  124. package/node_modules/@smithy/util-middleware/package.json +2 -2
  125. package/node_modules/@smithy/util-retry/package.json +3 -3
  126. package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -15
  127. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +10 -3
  128. package/node_modules/@smithy/util-stream/package.json +4 -4
  129. package/node_modules/@smithy/util-waiter/package.json +3 -3
  130. package/package.json +3 -3
  131. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
  132. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
  133. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
@@ -1,11 +1,4 @@
1
1
  import { deref } from "../deref";
2
- import { error } from "./ErrorSchema";
3
- import { list, ListSchema } from "./ListSchema";
4
- import { map, MapSchema } from "./MapSchema";
5
- import { op } from "./OperationSchema";
6
- import { Schema } from "./Schema";
7
- import { simAdapter } from "./SimpleSchema";
8
- import { struct, StructureSchema } from "./StructureSchema";
9
2
  import { translateTraits } from "./translateTraits";
10
3
  export class NormalizedSchema {
11
4
  ref;
@@ -31,8 +24,6 @@ export class NormalizedSchema {
31
24
  schema = deref(_ref);
32
25
  this._isMemberSchema = true;
33
26
  }
34
- if (isStaticSchema(schema))
35
- schema = hydrate(schema);
36
27
  if (traitStack.length > 0) {
37
28
  this.memberTraits = {};
38
29
  for (let i = traitStack.length - 1; i >= 0; --i) {
@@ -52,19 +43,25 @@ export class NormalizedSchema {
52
43
  return;
53
44
  }
54
45
  this.schema = deref(schema);
55
- if (this.schema && typeof this.schema === "object") {
56
- this.traits = this.schema?.traits ?? {};
46
+ if (isStaticSchema(this.schema)) {
47
+ this.name = `${this.schema[1]}#${this.schema[2]}`;
48
+ this.traits = this.schema[3];
57
49
  }
58
50
  else {
51
+ this.name = this.memberName ?? String(schema);
59
52
  this.traits = 0;
60
53
  }
61
- this.name = (this.schema instanceof Schema ? this.schema.getName?.() : void 0) ?? this.memberName ?? String(schema);
62
54
  if (this._isMemberSchema && !memberName) {
63
55
  throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
64
56
  }
65
57
  }
66
58
  static [Symbol.hasInstance](lhs) {
67
- return Schema[Symbol.hasInstance].bind(this)(lhs);
59
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
60
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
61
+ const ns = lhs;
62
+ return ns.symbol === this.symbol;
63
+ }
64
+ return isPrototype;
68
65
  }
69
66
  static of(ref) {
70
67
  const sc = deref(ref);
@@ -82,7 +79,11 @@ export class NormalizedSchema {
82
79
  return new NormalizedSchema(sc);
83
80
  }
84
81
  getSchema() {
85
- return deref(this.schema?.schemaRef ?? this.schema);
82
+ const sc = this.schema;
83
+ if (sc[0] === 0) {
84
+ return sc[4];
85
+ }
86
+ return sc;
86
87
  }
87
88
  getName(withNamespace = false) {
88
89
  const { name } = this;
@@ -99,17 +100,18 @@ export class NormalizedSchema {
99
100
  const sc = this.getSchema();
100
101
  return typeof sc === "number"
101
102
  ? sc >= 64 && sc < 128
102
- : sc instanceof ListSchema;
103
+ : sc[0] === 1;
103
104
  }
104
105
  isMapSchema() {
105
106
  const sc = this.getSchema();
106
107
  return typeof sc === "number"
107
108
  ? sc >= 128 && sc <= 0b1111_1111
108
- : sc instanceof MapSchema;
109
+ : sc[0] === 2;
109
110
  }
110
111
  isStructSchema() {
111
112
  const sc = this.getSchema();
112
- return (sc !== null && typeof sc === "object" && "members" in sc) || sc instanceof StructureSchema;
113
+ return (sc[0] === 3 ||
114
+ sc[0] === -3);
113
115
  }
114
116
  isBlobSchema() {
115
117
  const sc = this.getSchema();
@@ -173,7 +175,7 @@ export class NormalizedSchema {
173
175
  const schema = this.getSchema();
174
176
  const memberSchema = isDoc
175
177
  ? 15
176
- : schema?.keySchema ?? 0;
178
+ : schema[4] ?? 0;
177
179
  return member([memberSchema, 0], "key");
178
180
  }
179
181
  getValueSchema() {
@@ -182,7 +184,7 @@ export class NormalizedSchema {
182
184
  const memberSchema = typeof sc === "number"
183
185
  ? 0b0011_1111 & sc
184
186
  : sc && typeof sc === "object" && (isMap || isList)
185
- ? sc.valueSchema
187
+ ? sc[3 + sc[0]]
186
188
  : isDoc
187
189
  ? 15
188
190
  : void 0;
@@ -193,9 +195,9 @@ export class NormalizedSchema {
193
195
  }
194
196
  getMemberSchema(memberName) {
195
197
  const struct = this.getSchema();
196
- if (this.isStructSchema() && struct.memberNames.includes(memberName)) {
197
- const i = struct.memberNames.indexOf(memberName);
198
- const memberSchema = struct.memberList[i];
198
+ if (this.isStructSchema() && struct[4].includes(memberName)) {
199
+ const i = struct[4].indexOf(memberName);
200
+ const memberSchema = struct[5][i];
199
201
  return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
200
202
  }
201
203
  if (this.isDocumentSchema()) {
@@ -231,8 +233,8 @@ export class NormalizedSchema {
231
233
  throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
232
234
  }
233
235
  const struct = this.getSchema();
234
- for (let i = 0; i < struct.memberNames.length; ++i) {
235
- yield [struct.memberNames[i], member([struct.memberList[i], 0], struct.memberNames[i])];
236
+ for (let i = 0; i < struct[4].length; ++i) {
237
+ yield [struct[4][i], member([struct[5][i], 0], struct[4][i])];
236
238
  }
237
239
  }
238
240
  }
@@ -246,16 +248,5 @@ function member(memberSchema, memberName) {
246
248
  const internalCtorAccess = NormalizedSchema;
247
249
  return new internalCtorAccess(memberSchema, memberName);
248
250
  }
249
- export function hydrate(ss) {
250
- const [id, ...rest] = ss;
251
- return {
252
- [0]: simAdapter,
253
- [1]: list,
254
- [2]: map,
255
- [3]: struct,
256
- [-3]: error,
257
- [9]: op,
258
- }[id].call(null, ...rest);
259
- }
260
251
  const isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
261
252
  export const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
@@ -0,0 +1,7 @@
1
+ export const operation = (namespace, name, traits, input, output) => ({
2
+ name,
3
+ namespace,
4
+ traits,
5
+ input,
6
+ output,
7
+ });
@@ -3,6 +3,7 @@ export * from "./middleware/getSchemaSerdePlugin";
3
3
  export * from "./schemas/ListSchema";
4
4
  export * from "./schemas/MapSchema";
5
5
  export * from "./schemas/OperationSchema";
6
+ export * from "./schemas/operation";
6
7
  export * from "./schemas/ErrorSchema";
7
8
  export * from "./schemas/NormalizedSchema";
8
9
  export * from "./schemas/Schema";
@@ -7,6 +7,7 @@ import { StructureSchema } from "./StructureSchema";
7
7
  * by additionally holding the class reference for the corresponding ServiceException class.
8
8
  *
9
9
  * @alpha
10
+ * @deprecated use StaticSchema
10
11
  */
11
12
  export declare class ErrorSchema extends StructureSchema {
12
13
  static readonly symbol: unique symbol;
@@ -20,6 +21,7 @@ export declare class ErrorSchema extends StructureSchema {
20
21
  * Factory for ErrorSchema, to reduce codegen output and register the schema.
21
22
  *
22
23
  * @internal
24
+ * @deprecated use StaticSchema
23
25
  *
24
26
  * @param namespace - shapeId namespace.
25
27
  * @param name - shapeId name.
@@ -5,6 +5,7 @@ import { Schema } from "./Schema";
5
5
  * The deprecated Set type may be represented as a list.
6
6
  *
7
7
  * @alpha
8
+ * @deprecated use StaticSchema
8
9
  */
9
10
  export declare class ListSchema extends Schema implements IListSchema {
10
11
  static readonly symbol: unique symbol;
@@ -17,5 +18,6 @@ export declare class ListSchema extends Schema implements IListSchema {
17
18
  * Factory for ListSchema.
18
19
  *
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const list: (namespace: string, name: string, traits: SchemaTraits, valueSchema: SchemaRef) => ListSchema;
@@ -3,6 +3,7 @@ import { Schema } from "./Schema";
3
3
  /**
4
4
  * A schema with a key schema and value schema.
5
5
  * @alpha
6
+ * @deprecated use StaticSchema
6
7
  */
7
8
  export declare class MapSchema extends Schema implements IMapSchema {
8
9
  static readonly symbol: unique symbol;
@@ -18,5 +19,6 @@ export declare class MapSchema extends Schema implements IMapSchema {
18
19
  /**
19
20
  * Factory for MapSchema.
20
21
  * @internal
22
+ * @deprecated use StaticSchema
21
23
  */
22
24
  export declare const map: (namespace: string, name: string, traits: SchemaTraits, keySchema: SchemaRef, valueSchema: SchemaRef) => MapSchema;
@@ -1,10 +1,4 @@
1
- import type { MemberSchema, NormalizedSchema as INormalizedSchema, Schema as ISchema, SchemaRef, SchemaTraitsObject, StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
- import type { ErrorSchema } from "./ErrorSchema";
3
- import { ListSchema } from "./ListSchema";
4
- import { MapSchema } from "./MapSchema";
5
- import type { OperationSchema } from "./OperationSchema";
6
- import type { SimpleSchema } from "./SimpleSchema";
7
- import { StructureSchema } from "./StructureSchema";
1
+ import type { $MemberSchema, $Schema, $SchemaRef, NormalizedSchema as INormalizedSchema, SchemaRef, SchemaTraitsObject, StaticSchema } from "@smithy/types";
8
2
  /**
9
3
  * Wraps both class instances, numeric sentinel values, and member schema pairs.
10
4
  * Presents a consistent interface for interacting with polymorphic schema representations.
@@ -12,7 +6,7 @@ import { StructureSchema } from "./StructureSchema";
12
6
  * @alpha
13
7
  */
14
8
  export declare class NormalizedSchema implements INormalizedSchema {
15
- readonly ref: SchemaRef;
9
+ readonly ref: $SchemaRef;
16
10
  private readonly memberName?;
17
11
  static readonly symbol: unique symbol;
18
12
  protected readonly symbol: symbol;
@@ -31,11 +25,11 @@ export declare class NormalizedSchema implements INormalizedSchema {
31
25
  /**
32
26
  * Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
33
27
  */
34
- static of(ref: SchemaRef): NormalizedSchema;
28
+ static of(ref: SchemaRef | $SchemaRef): NormalizedSchema;
35
29
  /**
36
30
  * @returns the underlying non-normalized schema.
37
31
  */
38
- getSchema(): Exclude<ISchema, MemberSchema | INormalizedSchema>;
32
+ getSchema(): Exclude<$Schema, $MemberSchema | INormalizedSchema>;
39
33
  /**
40
34
  * @param withNamespace - qualifies the name.
41
35
  * @returns e.g. `MyShape` or `com.namespace#MyShape`.
@@ -127,17 +121,6 @@ export declare class NormalizedSchema implements INormalizedSchema {
127
121
  */
128
122
  structIterator(): Generator<[string, NormalizedSchema], undefined, undefined>;
129
123
  }
130
- /**
131
- * @internal
132
- * @returns a class instance version of a static schema.
133
- */
134
- export declare function hydrate(ss: StaticSimpleSchema): SimpleSchema;
135
- export declare function hydrate(ss: StaticListSchema): ListSchema;
136
- export declare function hydrate(ss: StaticMapSchema): MapSchema;
137
- export declare function hydrate(ss: StaticStructureSchema): StructureSchema;
138
- export declare function hydrate(ss: StaticErrorSchema): ErrorSchema;
139
- export declare function hydrate(ss: StaticOperationSchema): OperationSchema;
140
- export declare function hydrate(ss: StaticSchema): SimpleSchema | ListSchema | MapSchema | StructureSchema | ErrorSchema | OperationSchema;
141
124
  /**
142
125
  * @internal
143
126
  */
@@ -5,6 +5,7 @@ import { Schema } from "./Schema";
5
5
  * detection on the operation that may affect client protocol logic.
6
6
  *
7
7
  * @alpha
8
+ * @deprecated use StaticSchema
8
9
  */
9
10
  export declare class OperationSchema extends Schema implements IOperationSchema {
10
11
  static readonly symbol: unique symbol;
@@ -17,5 +18,6 @@ export declare class OperationSchema extends Schema implements IOperationSchema
17
18
  /**
18
19
  * Factory for OperationSchema.
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const op: (namespace: string, name: string, traits: SchemaTraits, input: SchemaRef, output: SchemaRef) => OperationSchema;
@@ -3,6 +3,7 @@ import type { SchemaTraits, TraitsSchema } from "@smithy/types";
3
3
  * Abstract base for class-based Schema except NormalizedSchema.
4
4
  *
5
5
  * @alpha
6
+ * @deprecated use StaticSchema
6
7
  */
7
8
  export declare abstract class Schema implements TraitsSchema {
8
9
  name: string;
@@ -5,6 +5,7 @@ import { Schema } from "./Schema";
5
5
  * attached to those schema, since a single number cannot easily represent both a schema and its traits.
6
6
  *
7
7
  * @alpha
8
+ * @deprecated use StaticSchema
8
9
  */
9
10
  export declare class SimpleSchema extends Schema implements TraitsSchema {
10
11
  static readonly symbol: unique symbol;
@@ -17,6 +18,7 @@ export declare class SimpleSchema extends Schema implements TraitsSchema {
17
18
  * Factory for simple schema class objects.
18
19
  *
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const sim: (namespace: string, name: string, schemaRef: SchemaRef, traits: SchemaTraits) => SimpleSchema;
22
24
  /**
@@ -4,6 +4,7 @@ import { Schema } from "./Schema";
4
4
  * A structure schema has a known list of members. This is also used for unions.
5
5
  *
6
6
  * @alpha
7
+ * @deprecated use StaticSchema
7
8
  */
8
9
  export declare class StructureSchema extends Schema implements IStructureSchema {
9
10
  static symbol: symbol;
@@ -17,5 +18,6 @@ export declare class StructureSchema extends Schema implements IStructureSchema
17
18
  * Factory for StructureSchema.
18
19
  *
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const struct: (namespace: string, name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]) => StructureSchema;
@@ -0,0 +1,7 @@
1
+ import type { OperationSchema, SchemaRef, SchemaTraits } from "@smithy/types";
2
+ /**
3
+ * Converts the static schema array into an object-form to adapt
4
+ * to the signature of ClientProtocol classes.
5
+ * @internal
6
+ */
7
+ export declare const operation: (namespace: string, name: string, traits: SchemaTraits, input: SchemaRef, output: SchemaRef) => OperationSchema;
@@ -3,6 +3,7 @@ export * from "./middleware/getSchemaSerdePlugin";
3
3
  export * from "./schemas/ListSchema";
4
4
  export * from "./schemas/MapSchema";
5
5
  export * from "./schemas/OperationSchema";
6
+ export * from "./schemas/operation";
6
7
  export * from "./schemas/ErrorSchema";
7
8
  export * from "./schemas/NormalizedSchema";
8
9
  export * from "./schemas/Schema";
@@ -7,6 +7,7 @@ import { StructureSchema } from "./StructureSchema";
7
7
  * by additionally holding the class reference for the corresponding ServiceException class.
8
8
  *
9
9
  * @alpha
10
+ * @deprecated use StaticSchema
10
11
  */
11
12
  export declare class ErrorSchema extends StructureSchema {
12
13
  static readonly symbol: unique symbol;
@@ -20,6 +21,7 @@ export declare class ErrorSchema extends StructureSchema {
20
21
  * Factory for ErrorSchema, to reduce codegen output and register the schema.
21
22
  *
22
23
  * @internal
24
+ * @deprecated use StaticSchema
23
25
  *
24
26
  * @param namespace - shapeId namespace.
25
27
  * @param name - shapeId name.
@@ -5,6 +5,7 @@ import { Schema } from "./Schema";
5
5
  * The deprecated Set type may be represented as a list.
6
6
  *
7
7
  * @alpha
8
+ * @deprecated use StaticSchema
8
9
  */
9
10
  export declare class ListSchema extends Schema implements IListSchema {
10
11
  static readonly symbol: unique symbol;
@@ -17,5 +18,6 @@ export declare class ListSchema extends Schema implements IListSchema {
17
18
  * Factory for ListSchema.
18
19
  *
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const list: (namespace: string, name: string, traits: SchemaTraits, valueSchema: SchemaRef) => ListSchema;
@@ -3,6 +3,7 @@ import { Schema } from "./Schema";
3
3
  /**
4
4
  * A schema with a key schema and value schema.
5
5
  * @alpha
6
+ * @deprecated use StaticSchema
6
7
  */
7
8
  export declare class MapSchema extends Schema implements IMapSchema {
8
9
  static readonly symbol: unique symbol;
@@ -18,5 +19,6 @@ export declare class MapSchema extends Schema implements IMapSchema {
18
19
  /**
19
20
  * Factory for MapSchema.
20
21
  * @internal
22
+ * @deprecated use StaticSchema
21
23
  */
22
24
  export declare const map: (namespace: string, name: string, traits: SchemaTraits, keySchema: SchemaRef, valueSchema: SchemaRef) => MapSchema;
@@ -1,10 +1,4 @@
1
- import { MemberSchema, NormalizedSchema as INormalizedSchema, Schema as ISchema, SchemaRef, SchemaTraitsObject, StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
- import { ErrorSchema } from "./ErrorSchema";
3
- import { ListSchema } from "./ListSchema";
4
- import { MapSchema } from "./MapSchema";
5
- import { OperationSchema } from "./OperationSchema";
6
- import { SimpleSchema } from "./SimpleSchema";
7
- import { StructureSchema } from "./StructureSchema";
1
+ import { $MemberSchema, $Schema, $SchemaRef, NormalizedSchema as INormalizedSchema, SchemaRef, SchemaTraitsObject, StaticSchema } from "@smithy/types";
8
2
  /**
9
3
  * Wraps both class instances, numeric sentinel values, and member schema pairs.
10
4
  * Presents a consistent interface for interacting with polymorphic schema representations.
@@ -12,7 +6,7 @@ import { StructureSchema } from "./StructureSchema";
12
6
  * @alpha
13
7
  */
14
8
  export declare class NormalizedSchema implements INormalizedSchema {
15
- readonly ref: SchemaRef;
9
+ readonly ref: $SchemaRef;
16
10
  private readonly memberName?;
17
11
  static readonly symbol: unique symbol;
18
12
  protected readonly symbol: symbol;
@@ -31,11 +25,11 @@ export declare class NormalizedSchema implements INormalizedSchema {
31
25
  /**
32
26
  * Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
33
27
  */
34
- static of(ref: SchemaRef): NormalizedSchema;
28
+ static of(ref: SchemaRef | $SchemaRef): NormalizedSchema;
35
29
  /**
36
30
  * @returns the underlying non-normalized schema.
37
31
  */
38
- getSchema(): Exclude<ISchema, MemberSchema | INormalizedSchema>;
32
+ getSchema(): Exclude<$Schema, $MemberSchema | INormalizedSchema>;
39
33
  /**
40
34
  * @param withNamespace - qualifies the name.
41
35
  * @returns e.g. `MyShape` or `com.namespace#MyShape`.
@@ -130,17 +124,6 @@ export declare class NormalizedSchema implements INormalizedSchema {
130
124
  NormalizedSchema
131
125
  ], undefined, undefined>;
132
126
  }
133
- /**
134
- * @internal
135
- * @returns a class instance version of a static schema.
136
- */
137
- export declare function hydrate(ss: StaticSimpleSchema): SimpleSchema;
138
- export declare function hydrate(ss: StaticListSchema): ListSchema;
139
- export declare function hydrate(ss: StaticMapSchema): MapSchema;
140
- export declare function hydrate(ss: StaticStructureSchema): StructureSchema;
141
- export declare function hydrate(ss: StaticErrorSchema): ErrorSchema;
142
- export declare function hydrate(ss: StaticOperationSchema): OperationSchema;
143
- export declare function hydrate(ss: StaticSchema): SimpleSchema | ListSchema | MapSchema | StructureSchema | ErrorSchema | OperationSchema;
144
127
  /**
145
128
  * @internal
146
129
  */
@@ -5,6 +5,7 @@ import { Schema } from "./Schema";
5
5
  * detection on the operation that may affect client protocol logic.
6
6
  *
7
7
  * @alpha
8
+ * @deprecated use StaticSchema
8
9
  */
9
10
  export declare class OperationSchema extends Schema implements IOperationSchema {
10
11
  static readonly symbol: unique symbol;
@@ -17,5 +18,6 @@ export declare class OperationSchema extends Schema implements IOperationSchema
17
18
  /**
18
19
  * Factory for OperationSchema.
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const op: (namespace: string, name: string, traits: SchemaTraits, input: SchemaRef, output: SchemaRef) => OperationSchema;
@@ -3,6 +3,7 @@ import { SchemaTraits, TraitsSchema } from "@smithy/types";
3
3
  * Abstract base for class-based Schema except NormalizedSchema.
4
4
  *
5
5
  * @alpha
6
+ * @deprecated use StaticSchema
6
7
  */
7
8
  export declare abstract class Schema implements TraitsSchema {
8
9
  name: string;
@@ -5,6 +5,7 @@ import { Schema } from "./Schema";
5
5
  * attached to those schema, since a single number cannot easily represent both a schema and its traits.
6
6
  *
7
7
  * @alpha
8
+ * @deprecated use StaticSchema
8
9
  */
9
10
  export declare class SimpleSchema extends Schema implements TraitsSchema {
10
11
  static readonly symbol: unique symbol;
@@ -17,6 +18,7 @@ export declare class SimpleSchema extends Schema implements TraitsSchema {
17
18
  * Factory for simple schema class objects.
18
19
  *
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const sim: (namespace: string, name: string, schemaRef: SchemaRef, traits: SchemaTraits) => SimpleSchema;
22
24
  /**
@@ -4,6 +4,7 @@ import { Schema } from "./Schema";
4
4
  * A structure schema has a known list of members. This is also used for unions.
5
5
  *
6
6
  * @alpha
7
+ * @deprecated use StaticSchema
7
8
  */
8
9
  export declare class StructureSchema extends Schema implements IStructureSchema {
9
10
  static symbol: symbol;
@@ -17,5 +18,6 @@ export declare class StructureSchema extends Schema implements IStructureSchema
17
18
  * Factory for StructureSchema.
18
19
  *
19
20
  * @internal
21
+ * @deprecated use StaticSchema
20
22
  */
21
23
  export declare const struct: (namespace: string, name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]) => StructureSchema;
@@ -0,0 +1,7 @@
1
+ import { OperationSchema, SchemaRef, SchemaTraits } from "@smithy/types";
2
+ /**
3
+ * Converts the static schema array into an object-form to adapt
4
+ * to the signature of ClientProtocol classes.
5
+ * @internal
6
+ */
7
+ export declare const operation: (namespace: string, name: string, traits: SchemaTraits, input: SchemaRef, output: SchemaRef) => OperationSchema;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.16.1",
3
+ "version": "3.17.0",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -77,13 +77,13 @@
77
77
  "license": "Apache-2.0",
78
78
  "sideEffects": false,
79
79
  "dependencies": {
80
- "@smithy/middleware-serde": "^4.2.2",
81
- "@smithy/protocol-http": "^5.3.2",
82
- "@smithy/types": "^4.7.1",
80
+ "@smithy/middleware-serde": "^4.2.3",
81
+ "@smithy/protocol-http": "^5.3.3",
82
+ "@smithy/types": "^4.8.0",
83
83
  "@smithy/util-base64": "^4.3.0",
84
84
  "@smithy/util-body-length-browser": "^4.2.0",
85
- "@smithy/util-middleware": "^4.2.2",
86
- "@smithy/util-stream": "^4.5.2",
85
+ "@smithy/util-middleware": "^4.2.3",
86
+ "@smithy/util-stream": "^4.5.3",
87
87
  "@smithy/util-utf8": "^4.2.0",
88
88
  "@smithy/uuid": "^1.1.0",
89
89
  "tslib": "^2.6.2"
@@ -118,7 +118,7 @@
118
118
  "directory": "packages/core"
119
119
  },
120
120
  "devDependencies": {
121
- "@smithy/eventstream-serde-node": "^4.2.2",
121
+ "@smithy/eventstream-serde-node": "^4.2.3",
122
122
  "@types/node": "^18.11.9",
123
123
  "concurrently": "7.0.0",
124
124
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,10 +28,10 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.3.2",
32
- "@smithy/property-provider": "^4.2.2",
33
- "@smithy/types": "^4.7.1",
34
- "@smithy/url-parser": "^4.2.2",
31
+ "@smithy/node-config-provider": "^4.3.3",
32
+ "@smithy/property-provider": "^4.2.3",
33
+ "@smithy/types": "^4.8.0",
34
+ "@smithy/url-parser": "^4.2.3",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -28,14 +28,14 @@
28
28
  "module": "./dist-es/index.js",
29
29
  "types": "./dist-types/index.d.ts",
30
30
  "dependencies": {
31
- "@smithy/protocol-http": "^5.3.2",
32
- "@smithy/querystring-builder": "^4.2.2",
33
- "@smithy/types": "^4.7.1",
31
+ "@smithy/protocol-http": "^5.3.3",
32
+ "@smithy/querystring-builder": "^4.2.3",
33
+ "@smithy/types": "^4.8.0",
34
34
  "@smithy/util-base64": "^4.3.0",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@smithy/abort-controller": "^4.2.2",
38
+ "@smithy/abort-controller": "^4.2.3",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
41
  "rimraf": "3.0.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline hash-node",
@@ -32,7 +32,7 @@
32
32
  "typedoc": "0.23.23"
33
33
  },
34
34
  "dependencies": {
35
- "@smithy/types": "^4.7.1",
35
+ "@smithy/types": "^4.8.0",
36
36
  "@smithy/util-buffer-from": "^4.2.0",
37
37
  "@smithy/util-utf8": "^4.2.0",
38
38
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline invalid-dependency",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.7.1",
27
+ "@smithy/types": "^4.8.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-content-length",
@@ -25,8 +25,8 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/protocol-http": "^5.3.2",
29
- "@smithy/types": "^4.7.1",
28
+ "@smithy/protocol-http": "^5.3.3",
29
+ "@smithy/types": "^4.8.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {