@cdk8s/awscdk-resolver 0.0.402 → 0.0.404

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 (190) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  4. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +277 -270
  5. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
  6. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -0
  7. package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
  8. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
  9. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
  10. package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
  11. package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +0 -26
  12. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
  13. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +265 -0
  14. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -1
  15. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -24
  16. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
  17. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
  18. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
  19. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +26 -0
  21. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +4 -0
  22. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -18
  23. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  24. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  27. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -0
  28. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  29. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1 -4
  30. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1 -4
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -4
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +126 -0
  33. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +1 -1
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +27 -0
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +1 -1
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +1 -1
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +1 -1
  48. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  49. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +17 -0
  50. package/node_modules/@aws-sdk/core/package.json +1 -1
  51. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  52. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  53. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  54. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  55. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  56. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  57. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  58. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  59. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +246 -310
  60. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +0 -13
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +211 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +10 -1
  67. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -8
  68. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
  69. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  70. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
  71. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  72. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
  73. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -2
  74. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
  75. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +8 -8
  76. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -0
  77. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -6
  78. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
  79. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +4 -0
  80. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
  81. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +4 -0
  82. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +28 -0
  83. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  84. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  85. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  86. package/node_modules/@smithy/abort-controller/package.json +2 -2
  87. package/node_modules/@smithy/config-resolver/package.json +5 -5
  88. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -1
  89. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -1
  90. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +3 -3
  91. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  92. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  93. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  94. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +1 -1
  95. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +1 -1
  96. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  97. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  98. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  99. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  100. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  101. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  102. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +1 -1
  103. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +1 -1
  104. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  105. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  106. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -1
  107. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  108. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  109. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +1 -1
  110. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +3 -3
  111. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  112. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  113. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  114. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +1 -1
  115. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +1 -1
  116. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  117. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  118. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  119. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  120. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  121. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  122. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +1 -1
  123. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +1 -1
  124. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  125. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  126. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -1
  127. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  128. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  129. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +1 -1
  130. package/node_modules/@smithy/core/package.json +7 -7
  131. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  132. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  133. package/node_modules/@smithy/hash-node/package.json +2 -2
  134. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  135. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  136. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  137. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  138. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  139. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  140. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  141. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  142. package/node_modules/@smithy/property-provider/package.json +2 -2
  143. package/node_modules/@smithy/protocol-http/package.json +2 -2
  144. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  145. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  146. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  147. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +2 -3
  148. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +10 -6
  149. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  150. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +1 -1
  151. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +1 -2
  152. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +1 -0
  153. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +3 -3
  154. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +2 -2
  155. package/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
  156. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
  157. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +1 -0
  158. package/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
  159. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
  160. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +1 -0
  161. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/readFile.d.ts +21 -0
  162. package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -5
  163. package/node_modules/@smithy/signature-v4/package.json +4 -4
  164. package/node_modules/@smithy/smithy-client/package.json +7 -7
  165. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +12 -12
  166. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +5 -5
  167. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +15 -15
  168. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +12 -12
  169. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +5 -5
  170. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +15 -15
  171. package/node_modules/@smithy/types/package.json +1 -1
  172. package/node_modules/@smithy/url-parser/package.json +3 -3
  173. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  174. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  175. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  176. package/node_modules/@smithy/util-middleware/package.json +2 -2
  177. package/node_modules/@smithy/util-retry/package.json +3 -3
  178. package/node_modules/@smithy/util-stream/package.json +4 -4
  179. package/node_modules/@smithy/util-waiter/package.json +3 -3
  180. package/package.json +8 -8
  181. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
  182. package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
  183. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
  184. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -257
  185. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
  186. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
  187. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -17
  188. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -13
  189. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -7
  190. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -7
package/package.json CHANGED
@@ -42,17 +42,17 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.638",
45
+ "@cdk8s/projen-common": "0.0.640",
46
46
  "@stylistic/eslint-plugin": "^2",
47
47
  "@types/fs-extra": "^11.0.4",
48
48
  "@types/jest": "^27",
49
49
  "@types/node": "16.18.78",
50
50
  "@typescript-eslint/eslint-plugin": "^8",
51
51
  "@typescript-eslint/parser": "^8",
52
- "aws-cdk": "^2.1031.1",
52
+ "aws-cdk": "^2.1031.2",
53
53
  "aws-cdk-lib": "2.195.0",
54
54
  "cdk8s": "2.68.91",
55
- "cdk8s-cli": "^2.202.13",
55
+ "cdk8s-cli": "^2.203.1",
56
56
  "commit-and-tag-version": "^12",
57
57
  "constructs": "10.3.0",
58
58
  "eslint": "^9",
@@ -62,11 +62,11 @@
62
62
  "jest": "^27",
63
63
  "jest-junit": "^16",
64
64
  "jsii": "^5",
65
- "jsii-diff": "^1.118.0",
65
+ "jsii-diff": "^1.119.0",
66
66
  "jsii-docgen": "^10.5.0",
67
- "jsii-pacmak": "^1.118.0",
67
+ "jsii-pacmak": "^1.119.0",
68
68
  "jsii-rosetta": "^5",
69
- "projen": "^0.98.7",
69
+ "projen": "^0.98.10",
70
70
  "ts-jest": "^27",
71
71
  "ts-node": "^10.9.2",
72
72
  "typescript": "^5.9.3"
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.926.0"
80
+ "@aws-sdk/client-cloudformation": "^3.929.0"
81
81
  },
82
82
  "bundledDependencies": [
83
83
  "@aws-sdk/client-cloudformation"
@@ -93,7 +93,7 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "version": "0.0.402",
96
+ "version": "0.0.404",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [
@@ -1,210 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
5
- import { SSOServiceException as __BaseException } from "../models/SSOServiceException";
6
- export const se_GetRoleCredentialsCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = map({}, isSerializableHeaderValue, {
9
- [_xasbt]: input[_aT],
10
- });
11
- b.bp("/federation/credentials");
12
- const query = map({
13
- [_rn]: [, __expectNonNull(input[_rN], `roleName`)],
14
- [_ai]: [, __expectNonNull(input[_aI], `accountId`)],
15
- });
16
- let body;
17
- b.m("GET").h(headers).q(query).b(body);
18
- return b.build();
19
- };
20
- export const se_ListAccountRolesCommand = async (input, context) => {
21
- const b = rb(input, context);
22
- const headers = map({}, isSerializableHeaderValue, {
23
- [_xasbt]: input[_aT],
24
- });
25
- b.bp("/assignment/roles");
26
- const query = map({
27
- [_nt]: [, input[_nT]],
28
- [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
29
- [_ai]: [, __expectNonNull(input[_aI], `accountId`)],
30
- });
31
- let body;
32
- b.m("GET").h(headers).q(query).b(body);
33
- return b.build();
34
- };
35
- export const se_ListAccountsCommand = async (input, context) => {
36
- const b = rb(input, context);
37
- const headers = map({}, isSerializableHeaderValue, {
38
- [_xasbt]: input[_aT],
39
- });
40
- b.bp("/assignment/accounts");
41
- const query = map({
42
- [_nt]: [, input[_nT]],
43
- [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
44
- });
45
- let body;
46
- b.m("GET").h(headers).q(query).b(body);
47
- return b.build();
48
- };
49
- export const se_LogoutCommand = async (input, context) => {
50
- const b = rb(input, context);
51
- const headers = map({}, isSerializableHeaderValue, {
52
- [_xasbt]: input[_aT],
53
- });
54
- b.bp("/logout");
55
- let body;
56
- b.m("POST").h(headers).b(body);
57
- return b.build();
58
- };
59
- export const de_GetRoleCredentialsCommand = async (output, context) => {
60
- if (output.statusCode !== 200 && output.statusCode >= 300) {
61
- return de_CommandError(output, context);
62
- }
63
- const contents = map({
64
- $metadata: deserializeMetadata(output),
65
- });
66
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
67
- const doc = take(data, {
68
- roleCredentials: _json,
69
- });
70
- Object.assign(contents, doc);
71
- return contents;
72
- };
73
- export const de_ListAccountRolesCommand = async (output, context) => {
74
- if (output.statusCode !== 200 && output.statusCode >= 300) {
75
- return de_CommandError(output, context);
76
- }
77
- const contents = map({
78
- $metadata: deserializeMetadata(output),
79
- });
80
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
81
- const doc = take(data, {
82
- nextToken: __expectString,
83
- roleList: _json,
84
- });
85
- Object.assign(contents, doc);
86
- return contents;
87
- };
88
- export const de_ListAccountsCommand = async (output, context) => {
89
- if (output.statusCode !== 200 && output.statusCode >= 300) {
90
- return de_CommandError(output, context);
91
- }
92
- const contents = map({
93
- $metadata: deserializeMetadata(output),
94
- });
95
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
96
- const doc = take(data, {
97
- accountList: _json,
98
- nextToken: __expectString,
99
- });
100
- Object.assign(contents, doc);
101
- return contents;
102
- };
103
- export const de_LogoutCommand = async (output, context) => {
104
- if (output.statusCode !== 200 && output.statusCode >= 300) {
105
- return de_CommandError(output, context);
106
- }
107
- const contents = map({
108
- $metadata: deserializeMetadata(output),
109
- });
110
- await collectBody(output.body, context);
111
- return contents;
112
- };
113
- const de_CommandError = async (output, context) => {
114
- const parsedOutput = {
115
- ...output,
116
- body: await parseErrorBody(output.body, context),
117
- };
118
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
119
- switch (errorCode) {
120
- case "InvalidRequestException":
121
- case "com.amazonaws.sso#InvalidRequestException":
122
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
123
- case "ResourceNotFoundException":
124
- case "com.amazonaws.sso#ResourceNotFoundException":
125
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
126
- case "TooManyRequestsException":
127
- case "com.amazonaws.sso#TooManyRequestsException":
128
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
129
- case "UnauthorizedException":
130
- case "com.amazonaws.sso#UnauthorizedException":
131
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
132
- default:
133
- const parsedBody = parsedOutput.body;
134
- return throwDefaultError({
135
- output,
136
- parsedBody,
137
- errorCode,
138
- });
139
- }
140
- };
141
- const throwDefaultError = withBaseException(__BaseException);
142
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
143
- const contents = map({});
144
- const data = parsedOutput.body;
145
- const doc = take(data, {
146
- message: __expectString,
147
- });
148
- Object.assign(contents, doc);
149
- const exception = new InvalidRequestException({
150
- $metadata: deserializeMetadata(parsedOutput),
151
- ...contents,
152
- });
153
- return __decorateServiceException(exception, parsedOutput.body);
154
- };
155
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
156
- const contents = map({});
157
- const data = parsedOutput.body;
158
- const doc = take(data, {
159
- message: __expectString,
160
- });
161
- Object.assign(contents, doc);
162
- const exception = new ResourceNotFoundException({
163
- $metadata: deserializeMetadata(parsedOutput),
164
- ...contents,
165
- });
166
- return __decorateServiceException(exception, parsedOutput.body);
167
- };
168
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
169
- const contents = map({});
170
- const data = parsedOutput.body;
171
- const doc = take(data, {
172
- message: __expectString,
173
- });
174
- Object.assign(contents, doc);
175
- const exception = new TooManyRequestsException({
176
- $metadata: deserializeMetadata(parsedOutput),
177
- ...contents,
178
- });
179
- return __decorateServiceException(exception, parsedOutput.body);
180
- };
181
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
182
- const contents = map({});
183
- const data = parsedOutput.body;
184
- const doc = take(data, {
185
- message: __expectString,
186
- });
187
- Object.assign(contents, doc);
188
- const exception = new UnauthorizedException({
189
- $metadata: deserializeMetadata(parsedOutput),
190
- ...contents,
191
- });
192
- return __decorateServiceException(exception, parsedOutput.body);
193
- };
194
- const deserializeMetadata = (output) => ({
195
- httpStatusCode: output.statusCode,
196
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
197
- extendedRequestId: output.headers["x-amz-id-2"],
198
- cfId: output.headers["x-amz-cf-id"],
199
- });
200
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
201
- const _aI = "accountId";
202
- const _aT = "accessToken";
203
- const _ai = "account_id";
204
- const _mR = "maxResults";
205
- const _mr = "max_result";
206
- const _nT = "nextToken";
207
- const _nt = "next_token";
208
- const _rN = "roleName";
209
- const _rn = "role_name";
210
- const _xasbt = "x-amz-sso_bearer_token";
@@ -1,38 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "../commands/GetRoleCredentialsCommand";
4
- import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
5
- import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
6
- import { LogoutCommandInput, LogoutCommandOutput } from "../commands/LogoutCommand";
7
- /**
8
- * serializeAws_restJson1GetRoleCredentialsCommand
9
- */
10
- export declare const se_GetRoleCredentialsCommand: (input: GetRoleCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
- /**
12
- * serializeAws_restJson1ListAccountRolesCommand
13
- */
14
- export declare const se_ListAccountRolesCommand: (input: ListAccountRolesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
- /**
16
- * serializeAws_restJson1ListAccountsCommand
17
- */
18
- export declare const se_ListAccountsCommand: (input: ListAccountsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
- /**
20
- * serializeAws_restJson1LogoutCommand
21
- */
22
- export declare const se_LogoutCommand: (input: LogoutCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
- /**
24
- * deserializeAws_restJson1GetRoleCredentialsCommand
25
- */
26
- export declare const de_GetRoleCredentialsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRoleCredentialsCommandOutput>;
27
- /**
28
- * deserializeAws_restJson1ListAccountRolesCommand
29
- */
30
- export declare const de_ListAccountRolesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountRolesCommandOutput>;
31
- /**
32
- * deserializeAws_restJson1ListAccountsCommand
33
- */
34
- export declare const de_ListAccountsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountsCommandOutput>;
35
- /**
36
- * deserializeAws_restJson1LogoutCommand
37
- */
38
- export declare const de_LogoutCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<LogoutCommandOutput>;
@@ -1,53 +0,0 @@
1
- import {
2
- HttpRequest as __HttpRequest,
3
- HttpResponse as __HttpResponse,
4
- } from "@smithy/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@smithy/types";
6
- import {
7
- GetRoleCredentialsCommandInput,
8
- GetRoleCredentialsCommandOutput,
9
- } from "../commands/GetRoleCredentialsCommand";
10
- import {
11
- ListAccountRolesCommandInput,
12
- ListAccountRolesCommandOutput,
13
- } from "../commands/ListAccountRolesCommand";
14
- import {
15
- ListAccountsCommandInput,
16
- ListAccountsCommandOutput,
17
- } from "../commands/ListAccountsCommand";
18
- import {
19
- LogoutCommandInput,
20
- LogoutCommandOutput,
21
- } from "../commands/LogoutCommand";
22
- export declare const se_GetRoleCredentialsCommand: (
23
- input: GetRoleCredentialsCommandInput,
24
- context: __SerdeContext
25
- ) => Promise<__HttpRequest>;
26
- export declare const se_ListAccountRolesCommand: (
27
- input: ListAccountRolesCommandInput,
28
- context: __SerdeContext
29
- ) => Promise<__HttpRequest>;
30
- export declare const se_ListAccountsCommand: (
31
- input: ListAccountsCommandInput,
32
- context: __SerdeContext
33
- ) => Promise<__HttpRequest>;
34
- export declare const se_LogoutCommand: (
35
- input: LogoutCommandInput,
36
- context: __SerdeContext
37
- ) => Promise<__HttpRequest>;
38
- export declare const de_GetRoleCredentialsCommand: (
39
- output: __HttpResponse,
40
- context: __SerdeContext
41
- ) => Promise<GetRoleCredentialsCommandOutput>;
42
- export declare const de_ListAccountRolesCommand: (
43
- output: __HttpResponse,
44
- context: __SerdeContext
45
- ) => Promise<ListAccountRolesCommandOutput>;
46
- export declare const de_ListAccountsCommand: (
47
- output: __HttpResponse,
48
- context: __SerdeContext
49
- ) => Promise<ListAccountsCommandOutput>;
50
- export declare const de_LogoutCommand: (
51
- output: __HttpResponse,
52
- context: __SerdeContext
53
- ) => Promise<LogoutCommandOutput>;
@@ -1,257 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
5
- import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
6
- export const se_CreateTokenCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/token");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- clientId: [],
15
- clientSecret: [],
16
- code: [],
17
- codeVerifier: [],
18
- deviceCode: [],
19
- grantType: [],
20
- redirectUri: [],
21
- refreshToken: [],
22
- scope: (_) => _json(_),
23
- }));
24
- b.m("POST").h(headers).b(body);
25
- return b.build();
26
- };
27
- export const de_CreateTokenCommand = async (output, context) => {
28
- if (output.statusCode !== 200 && output.statusCode >= 300) {
29
- return de_CommandError(output, context);
30
- }
31
- const contents = map({
32
- $metadata: deserializeMetadata(output),
33
- });
34
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
35
- const doc = take(data, {
36
- accessToken: __expectString,
37
- expiresIn: __expectInt32,
38
- idToken: __expectString,
39
- refreshToken: __expectString,
40
- tokenType: __expectString,
41
- });
42
- Object.assign(contents, doc);
43
- return contents;
44
- };
45
- const de_CommandError = async (output, context) => {
46
- const parsedOutput = {
47
- ...output,
48
- body: await parseErrorBody(output.body, context),
49
- };
50
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
51
- switch (errorCode) {
52
- case "AccessDeniedException":
53
- case "com.amazonaws.ssooidc#AccessDeniedException":
54
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
55
- case "AuthorizationPendingException":
56
- case "com.amazonaws.ssooidc#AuthorizationPendingException":
57
- throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
58
- case "ExpiredTokenException":
59
- case "com.amazonaws.ssooidc#ExpiredTokenException":
60
- throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
61
- case "InternalServerException":
62
- case "com.amazonaws.ssooidc#InternalServerException":
63
- throw await de_InternalServerExceptionRes(parsedOutput, context);
64
- case "InvalidClientException":
65
- case "com.amazonaws.ssooidc#InvalidClientException":
66
- throw await de_InvalidClientExceptionRes(parsedOutput, context);
67
- case "InvalidGrantException":
68
- case "com.amazonaws.ssooidc#InvalidGrantException":
69
- throw await de_InvalidGrantExceptionRes(parsedOutput, context);
70
- case "InvalidRequestException":
71
- case "com.amazonaws.ssooidc#InvalidRequestException":
72
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
73
- case "InvalidScopeException":
74
- case "com.amazonaws.ssooidc#InvalidScopeException":
75
- throw await de_InvalidScopeExceptionRes(parsedOutput, context);
76
- case "SlowDownException":
77
- case "com.amazonaws.ssooidc#SlowDownException":
78
- throw await de_SlowDownExceptionRes(parsedOutput, context);
79
- case "UnauthorizedClientException":
80
- case "com.amazonaws.ssooidc#UnauthorizedClientException":
81
- throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
82
- case "UnsupportedGrantTypeException":
83
- case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
84
- throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
85
- default:
86
- const parsedBody = parsedOutput.body;
87
- return throwDefaultError({
88
- output,
89
- parsedBody,
90
- errorCode,
91
- });
92
- }
93
- };
94
- const throwDefaultError = withBaseException(__BaseException);
95
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
96
- const contents = map({});
97
- const data = parsedOutput.body;
98
- const doc = take(data, {
99
- error: __expectString,
100
- error_description: __expectString,
101
- reason: __expectString,
102
- });
103
- Object.assign(contents, doc);
104
- const exception = new AccessDeniedException({
105
- $metadata: deserializeMetadata(parsedOutput),
106
- ...contents,
107
- });
108
- return __decorateServiceException(exception, parsedOutput.body);
109
- };
110
- const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
111
- const contents = map({});
112
- const data = parsedOutput.body;
113
- const doc = take(data, {
114
- error: __expectString,
115
- error_description: __expectString,
116
- });
117
- Object.assign(contents, doc);
118
- const exception = new AuthorizationPendingException({
119
- $metadata: deserializeMetadata(parsedOutput),
120
- ...contents,
121
- });
122
- return __decorateServiceException(exception, parsedOutput.body);
123
- };
124
- const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
125
- const contents = map({});
126
- const data = parsedOutput.body;
127
- const doc = take(data, {
128
- error: __expectString,
129
- error_description: __expectString,
130
- });
131
- Object.assign(contents, doc);
132
- const exception = new ExpiredTokenException({
133
- $metadata: deserializeMetadata(parsedOutput),
134
- ...contents,
135
- });
136
- return __decorateServiceException(exception, parsedOutput.body);
137
- };
138
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
139
- const contents = map({});
140
- const data = parsedOutput.body;
141
- const doc = take(data, {
142
- error: __expectString,
143
- error_description: __expectString,
144
- });
145
- Object.assign(contents, doc);
146
- const exception = new InternalServerException({
147
- $metadata: deserializeMetadata(parsedOutput),
148
- ...contents,
149
- });
150
- return __decorateServiceException(exception, parsedOutput.body);
151
- };
152
- const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
153
- const contents = map({});
154
- const data = parsedOutput.body;
155
- const doc = take(data, {
156
- error: __expectString,
157
- error_description: __expectString,
158
- });
159
- Object.assign(contents, doc);
160
- const exception = new InvalidClientException({
161
- $metadata: deserializeMetadata(parsedOutput),
162
- ...contents,
163
- });
164
- return __decorateServiceException(exception, parsedOutput.body);
165
- };
166
- const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
167
- const contents = map({});
168
- const data = parsedOutput.body;
169
- const doc = take(data, {
170
- error: __expectString,
171
- error_description: __expectString,
172
- });
173
- Object.assign(contents, doc);
174
- const exception = new InvalidGrantException({
175
- $metadata: deserializeMetadata(parsedOutput),
176
- ...contents,
177
- });
178
- return __decorateServiceException(exception, parsedOutput.body);
179
- };
180
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
181
- const contents = map({});
182
- const data = parsedOutput.body;
183
- const doc = take(data, {
184
- error: __expectString,
185
- error_description: __expectString,
186
- reason: __expectString,
187
- });
188
- Object.assign(contents, doc);
189
- const exception = new InvalidRequestException({
190
- $metadata: deserializeMetadata(parsedOutput),
191
- ...contents,
192
- });
193
- return __decorateServiceException(exception, parsedOutput.body);
194
- };
195
- const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
196
- const contents = map({});
197
- const data = parsedOutput.body;
198
- const doc = take(data, {
199
- error: __expectString,
200
- error_description: __expectString,
201
- });
202
- Object.assign(contents, doc);
203
- const exception = new InvalidScopeException({
204
- $metadata: deserializeMetadata(parsedOutput),
205
- ...contents,
206
- });
207
- return __decorateServiceException(exception, parsedOutput.body);
208
- };
209
- const de_SlowDownExceptionRes = async (parsedOutput, context) => {
210
- const contents = map({});
211
- const data = parsedOutput.body;
212
- const doc = take(data, {
213
- error: __expectString,
214
- error_description: __expectString,
215
- });
216
- Object.assign(contents, doc);
217
- const exception = new SlowDownException({
218
- $metadata: deserializeMetadata(parsedOutput),
219
- ...contents,
220
- });
221
- return __decorateServiceException(exception, parsedOutput.body);
222
- };
223
- const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
224
- const contents = map({});
225
- const data = parsedOutput.body;
226
- const doc = take(data, {
227
- error: __expectString,
228
- error_description: __expectString,
229
- });
230
- Object.assign(contents, doc);
231
- const exception = new UnauthorizedClientException({
232
- $metadata: deserializeMetadata(parsedOutput),
233
- ...contents,
234
- });
235
- return __decorateServiceException(exception, parsedOutput.body);
236
- };
237
- const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
238
- const contents = map({});
239
- const data = parsedOutput.body;
240
- const doc = take(data, {
241
- error: __expectString,
242
- error_description: __expectString,
243
- });
244
- Object.assign(contents, doc);
245
- const exception = new UnsupportedGrantTypeException({
246
- $metadata: deserializeMetadata(parsedOutput),
247
- ...contents,
248
- });
249
- return __decorateServiceException(exception, parsedOutput.body);
250
- };
251
- const deserializeMetadata = (output) => ({
252
- httpStatusCode: output.statusCode,
253
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
254
- extendedRequestId: output.headers["x-amz-id-2"],
255
- cfId: output.headers["x-amz-cf-id"],
256
- });
257
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
@@ -1,11 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { CreateTokenCommandInput, CreateTokenCommandOutput } from "../commands/CreateTokenCommand";
4
- /**
5
- * serializeAws_restJson1CreateTokenCommand
6
- */
7
- export declare const se_CreateTokenCommand: (input: CreateTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
- /**
9
- * deserializeAws_restJson1CreateTokenCommand
10
- */
11
- export declare const de_CreateTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateTokenCommandOutput>;
@@ -1,17 +0,0 @@
1
- import {
2
- HttpRequest as __HttpRequest,
3
- HttpResponse as __HttpResponse,
4
- } from "@smithy/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@smithy/types";
6
- import {
7
- CreateTokenCommandInput,
8
- CreateTokenCommandOutput,
9
- } from "../commands/CreateTokenCommand";
10
- export declare const se_CreateTokenCommand: (
11
- input: CreateTokenCommandInput,
12
- context: __SerdeContext
13
- ) => Promise<__HttpRequest>;
14
- export declare const de_CreateTokenCommand: (
15
- output: __HttpResponse,
16
- context: __SerdeContext
17
- ) => Promise<CreateTokenCommandOutput>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.slurpFile = exports.fileIntercept = exports.filePromisesHash = void 0;
4
- const fs_1 = require("fs");
5
- const { readFile } = fs_1.promises;
6
- exports.filePromisesHash = {};
7
- exports.fileIntercept = {};
8
- const slurpFile = (path, options) => {
9
- if (exports.fileIntercept[path] !== undefined) {
10
- return exports.fileIntercept[path];
11
- }
12
- if (!exports.filePromisesHash[path] || options?.ignoreCache) {
13
- exports.filePromisesHash[path] = readFile(path, "utf8");
14
- }
15
- return exports.filePromisesHash[path];
16
- };
17
- exports.slurpFile = slurpFile;
@@ -1,13 +0,0 @@
1
- import { promises as fsPromises } from "fs";
2
- const { readFile } = fsPromises;
3
- export const filePromisesHash = {};
4
- export const fileIntercept = {};
5
- export const slurpFile = (path, options) => {
6
- if (fileIntercept[path] !== undefined) {
7
- return fileIntercept[path];
8
- }
9
- if (!filePromisesHash[path] || options?.ignoreCache) {
10
- filePromisesHash[path] = readFile(path, "utf8");
11
- }
12
- return filePromisesHash[path];
13
- };
@@ -1,7 +0,0 @@
1
- export declare const filePromisesHash: Record<string, Promise<string>>;
2
- export declare const fileIntercept: Record<string, Promise<string>>;
3
- interface SlurpFileOptions {
4
- ignoreCache?: boolean;
5
- }
6
- export declare const slurpFile: (path: string, options?: SlurpFileOptions) => Promise<string>;
7
- export {};