@aws-sdk/client-agent-registry-control 3.1105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +286 -0
  3. package/dist-cjs/index.js +1536 -0
  4. package/dist-es/AgentRegistryControl.js +49 -0
  5. package/dist-es/AgentRegistryControlClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateRegistryCommand.js +4 -0
  10. package/dist-es/commands/CreateRegistryRecordCommand.js +4 -0
  11. package/dist-es/commands/DeleteRegistryCommand.js +4 -0
  12. package/dist-es/commands/DeleteRegistryRecordCommand.js +4 -0
  13. package/dist-es/commands/GetRegistryCommand.js +4 -0
  14. package/dist-es/commands/GetRegistryRecordCommand.js +4 -0
  15. package/dist-es/commands/ListRegistriesCommand.js +4 -0
  16. package/dist-es/commands/ListRegistryRecordsCommand.js +4 -0
  17. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  18. package/dist-es/commands/SubmitRegistryRecordForApprovalCommand.js +4 -0
  19. package/dist-es/commands/TagResourceCommand.js +4 -0
  20. package/dist-es/commands/UntagResourceCommand.js +4 -0
  21. package/dist-es/commands/UpdateRegistryCommand.js +4 -0
  22. package/dist-es/commands/UpdateRegistryRecordCommand.js +4 -0
  23. package/dist-es/commands/UpdateRegistryRecordStatusCommand.js +4 -0
  24. package/dist-es/commands/index.js +15 -0
  25. package/dist-es/endpoint/EndpointParameters.js +9 -0
  26. package/dist-es/endpoint/bdd.js +22 -0
  27. package/dist-es/endpoint/endpointResolver.js +14 -0
  28. package/dist-es/extensionConfiguration.js +1 -0
  29. package/dist-es/index.js +11 -0
  30. package/dist-es/models/AgentRegistryControlServiceException.js +8 -0
  31. package/dist-es/models/enums.js +69 -0
  32. package/dist-es/models/errors.js +89 -0
  33. package/dist-es/models/models_0.js +1 -0
  34. package/dist-es/pagination/Interfaces.js +1 -0
  35. package/dist-es/pagination/ListRegistriesPaginator.js +4 -0
  36. package/dist-es/pagination/ListRegistryRecordsPaginator.js +4 -0
  37. package/dist-es/pagination/index.js +3 -0
  38. package/dist-es/runtimeConfig.browser.js +29 -0
  39. package/dist-es/runtimeConfig.js +43 -0
  40. package/dist-es/runtimeConfig.native.js +9 -0
  41. package/dist-es/runtimeConfig.shared.js +40 -0
  42. package/dist-es/runtimeExtensions.js +9 -0
  43. package/dist-es/schemas/schemas_0.js +783 -0
  44. package/dist-es/waiters/index.js +2 -0
  45. package/dist-es/waiters/waitForRegistryReady.js +58 -0
  46. package/dist-es/waiters/waitForRegistryRecordApproved.js +58 -0
  47. package/dist-types/AgentRegistryControl.d.ts +143 -0
  48. package/dist-types/AgentRegistryControlClient.d.ts +201 -0
  49. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  50. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  51. package/dist-types/commandBuilder.d.ts +18 -0
  52. package/dist-types/commands/CreateRegistryCommand.d.ts +172 -0
  53. package/dist-types/commands/CreateRegistryRecordCommand.d.ts +212 -0
  54. package/dist-types/commands/DeleteRegistryCommand.d.ts +89 -0
  55. package/dist-types/commands/DeleteRegistryRecordCommand.d.ts +88 -0
  56. package/dist-types/commands/GetRegistryCommand.d.ts +173 -0
  57. package/dist-types/commands/GetRegistryRecordCommand.d.ts +211 -0
  58. package/dist-types/commands/ListRegistriesCommand.d.ts +179 -0
  59. package/dist-types/commands/ListRegistryRecordsCommand.d.ts +114 -0
  60. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  61. package/dist-types/commands/SubmitRegistryRecordForApprovalCommand.d.ts +94 -0
  62. package/dist-types/commands/TagResourceCommand.d.ts +90 -0
  63. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  64. package/dist-types/commands/UpdateRegistryCommand.d.ts +266 -0
  65. package/dist-types/commands/UpdateRegistryRecordCommand.d.ts +375 -0
  66. package/dist-types/commands/UpdateRegistryRecordStatusCommand.d.ts +97 -0
  67. package/dist-types/commands/index.d.ts +15 -0
  68. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  69. package/dist-types/endpoint/bdd.d.ts +2 -0
  70. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  71. package/dist-types/extensionConfiguration.d.ts +9 -0
  72. package/dist-types/index.d.ts +19 -0
  73. package/dist-types/models/AgentRegistryControlServiceException.d.ts +14 -0
  74. package/dist-types/models/enums.d.ts +173 -0
  75. package/dist-types/models/errors.d.ts +98 -0
  76. package/dist-types/models/models_0.d.ts +1886 -0
  77. package/dist-types/pagination/Interfaces.d.ts +8 -0
  78. package/dist-types/pagination/ListRegistriesPaginator.d.ts +7 -0
  79. package/dist-types/pagination/ListRegistryRecordsPaginator.d.ts +7 -0
  80. package/dist-types/pagination/index.d.ts +3 -0
  81. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  82. package/dist-types/runtimeConfig.d.ts +57 -0
  83. package/dist-types/runtimeConfig.native.d.ts +56 -0
  84. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  85. package/dist-types/runtimeExtensions.d.ts +17 -0
  86. package/dist-types/schemas/schemas_0.d.ts +118 -0
  87. package/dist-types/ts3.4/AgentRegistryControl.d.ts +295 -0
  88. package/dist-types/ts3.4/AgentRegistryControlClient.d.ts +187 -0
  89. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
  90. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  91. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  92. package/dist-types/ts3.4/commands/CreateRegistryCommand.d.ts +38 -0
  93. package/dist-types/ts3.4/commands/CreateRegistryRecordCommand.d.ts +39 -0
  94. package/dist-types/ts3.4/commands/DeleteRegistryCommand.d.ts +38 -0
  95. package/dist-types/ts3.4/commands/DeleteRegistryRecordCommand.d.ts +39 -0
  96. package/dist-types/ts3.4/commands/GetRegistryCommand.d.ts +38 -0
  97. package/dist-types/ts3.4/commands/GetRegistryRecordCommand.d.ts +39 -0
  98. package/dist-types/ts3.4/commands/ListRegistriesCommand.d.ts +38 -0
  99. package/dist-types/ts3.4/commands/ListRegistryRecordsCommand.d.ts +39 -0
  100. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  101. package/dist-types/ts3.4/commands/SubmitRegistryRecordForApprovalCommand.d.ts +42 -0
  102. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  103. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  104. package/dist-types/ts3.4/commands/UpdateRegistryCommand.d.ts +38 -0
  105. package/dist-types/ts3.4/commands/UpdateRegistryRecordCommand.d.ts +39 -0
  106. package/dist-types/ts3.4/commands/UpdateRegistryRecordStatusCommand.d.ts +42 -0
  107. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  108. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +39 -0
  109. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  110. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  111. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  112. package/dist-types/ts3.4/index.d.ts +14 -0
  113. package/dist-types/ts3.4/models/AgentRegistryControlServiceException.d.ts +9 -0
  114. package/dist-types/ts3.4/models/enums.d.ts +90 -0
  115. package/dist-types/ts3.4/models/errors.d.ts +41 -0
  116. package/dist-types/ts3.4/models/models_0.d.ts +528 -0
  117. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  118. package/dist-types/ts3.4/pagination/ListRegistriesPaginator.d.ts +11 -0
  119. package/dist-types/ts3.4/pagination/ListRegistryRecordsPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  121. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  122. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  123. package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
  124. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  125. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  126. package/dist-types/ts3.4/schemas/schemas_0.d.ts +118 -0
  127. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  128. package/dist-types/ts3.4/waiters/waitForRegistryReady.d.ts +12 -0
  129. package/dist-types/ts3.4/waiters/waitForRegistryRecordApproved.d.ts +15 -0
  130. package/dist-types/waiters/index.d.ts +2 -0
  131. package/dist-types/waiters/waitForRegistryReady.d.ts +15 -0
  132. package/dist-types/waiters/waitForRegistryRecordApproved.d.ts +15 -0
  133. package/package.json +69 -0
@@ -0,0 +1,40 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
4
+ import { NoOpLogger } from "@smithy/core/client";
5
+ import { parseUrl } from "@smithy/core/protocols";
6
+ import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
7
+ import { defaultAgentRegistryControlHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
10
+ export const getRuntimeConfig = (config) => {
11
+ return {
12
+ apiVersion: "2025-12-01",
13
+ base64Decoder: config?.base64Decoder ?? fromBase64,
14
+ base64Encoder: config?.base64Encoder ?? toBase64,
15
+ disableHostPrefix: config?.disableHostPrefix ?? false,
16
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
17
+ extensions: config?.extensions ?? [],
18
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAgentRegistryControlHttpAuthSchemeProvider,
19
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
20
+ {
21
+ schemeId: "aws.auth#sigv4",
22
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
23
+ signer: new AwsSdkSigV4Signer(),
24
+ },
25
+ ],
26
+ logger: config?.logger ?? new NoOpLogger(),
27
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
28
+ protocolSettings: config?.protocolSettings ?? {
29
+ defaultNamespace: "com.amazonaws.agentregistrycontrol",
30
+ errorTypeRegistries,
31
+ version: "2025-12-01",
32
+ serviceTarget: "AgentRegistryControl",
33
+ },
34
+ serviceId: config?.serviceId ?? "Agent Registry Control",
35
+ sha256: config?.sha256 ?? Sha256,
36
+ urlParser: config?.urlParser ?? parseUrl,
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
40
+ };
@@ -0,0 +1,9 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
7
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
9
+ };