@aws-sdk/client-agent-registry 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 (85) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +202 -0
  3. package/dist-cjs/index.js +729 -0
  4. package/dist-es/AgentRegistry.js +17 -0
  5. package/dist-es/AgentRegistryClient.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/BatchGetDiscoverableRegistryRecordCommand.js +4 -0
  10. package/dist-es/commands/ListDiscoverableRegistryRecordsCommand.js +4 -0
  11. package/dist-es/commands/SearchDiscoverableRegistryRecordsCommand.js +4 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/endpoint/EndpointParameters.js +9 -0
  14. package/dist-es/endpoint/bdd.js +22 -0
  15. package/dist-es/endpoint/endpointResolver.js +14 -0
  16. package/dist-es/extensionConfiguration.js +1 -0
  17. package/dist-es/index.js +10 -0
  18. package/dist-es/models/AgentRegistryServiceException.js +8 -0
  19. package/dist-es/models/enums.js +33 -0
  20. package/dist-es/models/errors.js +77 -0
  21. package/dist-es/models/models_0.js +1 -0
  22. package/dist-es/pagination/Interfaces.js +1 -0
  23. package/dist-es/pagination/ListDiscoverableRegistryRecordsPaginator.js +4 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/runtimeConfig.browser.js +29 -0
  26. package/dist-es/runtimeConfig.js +43 -0
  27. package/dist-es/runtimeConfig.native.js +9 -0
  28. package/dist-es/runtimeConfig.shared.js +40 -0
  29. package/dist-es/runtimeExtensions.js +9 -0
  30. package/dist-es/schemas/schemas_0.js +286 -0
  31. package/dist-types/AgentRegistry.d.ts +38 -0
  32. package/dist-types/AgentRegistryClient.d.ts +189 -0
  33. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  34. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  35. package/dist-types/commandBuilder.d.ts +18 -0
  36. package/dist-types/commands/BatchGetDiscoverableRegistryRecordCommand.d.ts +162 -0
  37. package/dist-types/commands/ListDiscoverableRegistryRecordsCommand.d.ts +114 -0
  38. package/dist-types/commands/SearchDiscoverableRegistryRecordsCommand.d.ts +152 -0
  39. package/dist-types/commands/index.d.ts +3 -0
  40. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  41. package/dist-types/endpoint/bdd.d.ts +2 -0
  42. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  43. package/dist-types/extensionConfiguration.d.ts +9 -0
  44. package/dist-types/index.d.ts +18 -0
  45. package/dist-types/models/AgentRegistryServiceException.d.ts +14 -0
  46. package/dist-types/models/enums.d.ts +76 -0
  47. package/dist-types/models/errors.d.ts +86 -0
  48. package/dist-types/models/models_0.d.ts +489 -0
  49. package/dist-types/pagination/Interfaces.d.ts +8 -0
  50. package/dist-types/pagination/ListDiscoverableRegistryRecordsPaginator.d.ts +7 -0
  51. package/dist-types/pagination/index.d.ts +2 -0
  52. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  53. package/dist-types/runtimeConfig.d.ts +57 -0
  54. package/dist-types/runtimeConfig.native.d.ts +56 -0
  55. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  56. package/dist-types/runtimeExtensions.d.ts +17 -0
  57. package/dist-types/schemas/schemas_0.d.ts +41 -0
  58. package/dist-types/ts3.4/AgentRegistry.d.ts +67 -0
  59. package/dist-types/ts3.4/AgentRegistryClient.d.ts +119 -0
  60. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  61. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  62. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  63. package/dist-types/ts3.4/commands/BatchGetDiscoverableRegistryRecordCommand.d.ts +42 -0
  64. package/dist-types/ts3.4/commands/ListDiscoverableRegistryRecordsCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/SearchDiscoverableRegistryRecordsCommand.d.ts +42 -0
  66. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  67. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +39 -0
  68. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  69. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  70. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  71. package/dist-types/ts3.4/index.d.ts +13 -0
  72. package/dist-types/ts3.4/models/AgentRegistryServiceException.d.ts +9 -0
  73. package/dist-types/ts3.4/models/enums.d.ts +41 -0
  74. package/dist-types/ts3.4/models/errors.d.ts +36 -0
  75. package/dist-types/ts3.4/models/models_0.d.ts +124 -0
  76. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  77. package/dist-types/ts3.4/pagination/ListDiscoverableRegistryRecordsPaginator.d.ts +11 -0
  78. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  79. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  80. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  81. package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
  82. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  83. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  84. package/dist-types/ts3.4/schemas/schemas_0.d.ts +36 -0
  85. package/package.json +69 -0
@@ -0,0 +1,729 @@
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
6
+ exports.__Client = Client;
7
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
13
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
15
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
16
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
18
+
19
+ const defaultAgentRegistryHttpAuthSchemeParametersProvider = async (config, context, input) => {
20
+ return {
21
+ operation: getSmithyContext(context).operation,
22
+ region: await normalizeProvider(config.region)() || (() => {
23
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
24
+ })(),
25
+ };
26
+ };
27
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
28
+ return {
29
+ schemeId: "aws.auth#sigv4",
30
+ signingProperties: {
31
+ name: "agent-registry",
32
+ region: authParameters.region,
33
+ },
34
+ propertiesExtractor: (config, context) => ({
35
+ signingProperties: {
36
+ config,
37
+ context,
38
+ },
39
+ }),
40
+ };
41
+ }
42
+ const defaultAgentRegistryHttpAuthSchemeProvider = (authParameters) => {
43
+ const options = [];
44
+ switch (authParameters.operation) {
45
+ default: {
46
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
47
+ }
48
+ }
49
+ return options;
50
+ };
51
+ const resolveHttpAuthSchemeConfig = (config) => {
52
+ const config_0 = resolveAwsSdkSigV4Config(config);
53
+ return Object.assign(config_0, {
54
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
55
+ });
56
+ };
57
+
58
+ const resolveClientEndpointParameters = (options) => {
59
+ return Object.assign(options, {
60
+ defaultSigningName: "agent-registry",
61
+ });
62
+ };
63
+ const commonParams = {
64
+ Endpoint: { type: "builtInParams", name: "endpoint" },
65
+ Region: { type: "builtInParams", name: "region" },
66
+ };
67
+
68
+ var version = "3.0.0";
69
+ var packageInfo = {
70
+ version: version};
71
+
72
+ const a = "isSet", b = { "ref": "Endpoint" };
73
+ const _data = {
74
+ conditions: [
75
+ [a, [b]],
76
+ [a, [{ ref: "Region" }]]
77
+ ],
78
+ results: [
79
+ [-1],
80
+ [b, {}],
81
+ ["https://agent-registry.{Region}.api.aws", {}],
82
+ [-1, "Unable to resolve an Agent Registry endpoint: Region was not set and no explicit Endpoint override was provided."]
83
+ ]
84
+ };
85
+ const root = 2;
86
+ const r = 100_000_000;
87
+ const nodes = new Int32Array([
88
+ -1, 1, -1,
89
+ 0, r + 1, 3,
90
+ 1, r + 2, r + 3,
91
+ ]);
92
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
93
+
94
+ const cache = new EndpointCache({
95
+ size: 50,
96
+ params: ["Endpoint", "Region"],
97
+ });
98
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
99
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
100
+ endpointParams: endpointParams,
101
+ logger: context.logger,
102
+ }));
103
+ };
104
+ customEndpointFunctions.aws = awsEndpointFunctions;
105
+
106
+ class AgentRegistryServiceException extends ServiceException {
107
+ constructor(options) {
108
+ super(options);
109
+ Object.setPrototypeOf(this, AgentRegistryServiceException.prototype);
110
+ }
111
+ }
112
+
113
+ class AccessDeniedException extends AgentRegistryServiceException {
114
+ name = "AccessDeniedException";
115
+ $fault = "client";
116
+ constructor(opts) {
117
+ super({
118
+ name: "AccessDeniedException",
119
+ $fault: "client",
120
+ ...opts,
121
+ });
122
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
123
+ }
124
+ }
125
+ class InternalServerException extends AgentRegistryServiceException {
126
+ name = "InternalServerException";
127
+ $fault = "server";
128
+ constructor(opts) {
129
+ super({
130
+ name: "InternalServerException",
131
+ $fault: "server",
132
+ ...opts,
133
+ });
134
+ Object.setPrototypeOf(this, InternalServerException.prototype);
135
+ }
136
+ }
137
+ class ResourceNotFoundException extends AgentRegistryServiceException {
138
+ name = "ResourceNotFoundException";
139
+ $fault = "client";
140
+ constructor(opts) {
141
+ super({
142
+ name: "ResourceNotFoundException",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
147
+ }
148
+ }
149
+ class ThrottlingException extends AgentRegistryServiceException {
150
+ name = "ThrottlingException";
151
+ $fault = "client";
152
+ constructor(opts) {
153
+ super({
154
+ name: "ThrottlingException",
155
+ $fault: "client",
156
+ ...opts,
157
+ });
158
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
159
+ }
160
+ }
161
+ class UnauthorizedException extends AgentRegistryServiceException {
162
+ name = "UnauthorizedException";
163
+ $fault = "client";
164
+ constructor(opts) {
165
+ super({
166
+ name: "UnauthorizedException",
167
+ $fault: "client",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
171
+ }
172
+ }
173
+ class ValidationException extends AgentRegistryServiceException {
174
+ name = "ValidationException";
175
+ $fault = "client";
176
+ reason;
177
+ fieldList;
178
+ constructor(opts) {
179
+ super({
180
+ name: "ValidationException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, ValidationException.prototype);
185
+ this.reason = opts.reason;
186
+ this.fieldList = opts.fieldList;
187
+ }
188
+ }
189
+
190
+ const _AACD = "A2aAgentCardDescriptor";
191
+ const _ADE = "AccessDeniedException";
192
+ const _ASAD = "AgentSkillsAdditionalData";
193
+ const _ASDD = "AgentSkillsDefinitionDescriptor";
194
+ const _ASMD = "AgentSkillsMdDescriptor";
195
+ const _BGDRR = "BatchGetDiscoverableRegistryRecord";
196
+ const _BGDRRE = "BatchGetDiscoverableRegistryRecordError";
197
+ const _BGDRREL = "BatchGetDiscoverableRegistryRecordErrorList";
198
+ const _BGDRRR = "BatchGetDiscoverableRegistryRecordRequest";
199
+ const _BGDRRRa = "BatchGetDiscoverableRegistryRecordResponse";
200
+ const _CD = "CustomDescriptor";
201
+ const _D = "Description";
202
+ const _DD = "DescriptorData";
203
+ const _DRRS = "DiscoverableRegistryRecordSummary";
204
+ const _DRRSL = "DiscoverableRegistryRecordSummaryList";
205
+ const _DS = "DescriptorSource";
206
+ const _DSFU = "DescriptorSourceFromUrl";
207
+ const _De = "Descriptors";
208
+ const _ISE = "InternalServerException";
209
+ const _LDRR = "ListDiscoverableRegistryRecords";
210
+ const _LDRRR = "ListDiscoverableRegistryRecordsRequest";
211
+ const _LDRRRi = "ListDiscoverableRegistryRecordsResponse";
212
+ const _MFE = "MetadataFilterExpression";
213
+ const _MSAD = "McpServerAdditionalData";
214
+ const _MSD = "McpServerDescriptor";
215
+ const _MTD = "McpToolsDescriptor";
216
+ const _RNFE = "ResourceNotFoundException";
217
+ const _RRE = "RegistryRecordsEntry";
218
+ const _RREL = "RegistryRecordsEntryList";
219
+ const _RRF = "RegistryRecordFilter";
220
+ const _RRFL = "RegistryRecordFilterList";
221
+ const _RRS = "RegistryRecordSummary";
222
+ const _RRSL = "RegistryRecordSummaryList";
223
+ const _SDRR = "SearchDiscoverableRegistryRecords";
224
+ const _SDRRR = "SearchDiscoverableRegistryRecordsRequest";
225
+ const _SDRRRe = "SearchDiscoverableRegistryRecordsResponse";
226
+ const _SQ = "SearchQuery";
227
+ const _TE = "ThrottlingException";
228
+ const _UE = "UnauthorizedException";
229
+ const _VE = "ValidationException";
230
+ const _VEF = "ValidationExceptionField";
231
+ const _VEFL = "ValidationExceptionFieldList";
232
+ const _aAC = "a2aAgentCard";
233
+ const _aD = "additionalData";
234
+ const _aSD = "agentSkillsDefinition";
235
+ const _c = "client";
236
+ const _cA = "createdAt";
237
+ const _cu = "custom";
238
+ const _d = "data";
239
+ const _dN = "displayName";
240
+ const _dSV = "dataSchemaVersion";
241
+ const _de = "description";
242
+ const _des = "descriptors";
243
+ const _e = "error";
244
+ const _eC = "errorCode";
245
+ const _en = "entries";
246
+ const _er = "errors";
247
+ const _f = "filters";
248
+ const _fL = "fieldList";
249
+ const _fU = "fromUrl";
250
+ const _h = "http";
251
+ const _hE = "httpError";
252
+ const _m = "message";
253
+ const _mR = "maxResults";
254
+ const _mS = "mcpServer";
255
+ const _n = "name";
256
+ const _nT = "nextToken";
257
+ const _r = "reason";
258
+ const _rA = "registryArn";
259
+ const _rAe = "recordArn";
260
+ const _rI = "registryId";
261
+ const _rIe = "recordId";
262
+ const _rIec = "recordIds";
263
+ const _rIeg = "registryIds";
264
+ const _rR = "registryRecords";
265
+ const _rT = "recordType";
266
+ const _rV = "recordVersion";
267
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.agentregistry";
268
+ const _sM = "skillMd";
269
+ const _sQ = "searchQuery";
270
+ const _se = "server";
271
+ const _so = "source";
272
+ const _st = "status";
273
+ const _t = "tools";
274
+ const _u = "url";
275
+ const _uA = "updatedAt";
276
+ const _v = "values";
277
+ const n0 = "com.amazonaws.agentregistry";
278
+ const _s_registry = TypeRegistry.for(_s);
279
+ var AgentRegistryServiceException$ = [-3, _s, "AgentRegistryServiceException", 0, [], []];
280
+ _s_registry.registerError(AgentRegistryServiceException$, AgentRegistryServiceException);
281
+ const n0_registry = TypeRegistry.for(n0);
282
+ var AccessDeniedException$ = [-3, n0, _ADE,
283
+ { [_e]: _c, [_hE]: 403 },
284
+ [_m],
285
+ [0]
286
+ ];
287
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
288
+ var InternalServerException$ = [-3, n0, _ISE,
289
+ { [_e]: _se, [_hE]: 500 },
290
+ [_m],
291
+ [0]
292
+ ];
293
+ n0_registry.registerError(InternalServerException$, InternalServerException);
294
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
295
+ { [_e]: _c, [_hE]: 404 },
296
+ [_m],
297
+ [0]
298
+ ];
299
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
300
+ var ThrottlingException$ = [-3, n0, _TE,
301
+ { [_e]: _c, [_hE]: 429 },
302
+ [_m],
303
+ [0]
304
+ ];
305
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
306
+ var UnauthorizedException$ = [-3, n0, _UE,
307
+ { [_e]: _c, [_hE]: 401 },
308
+ [_m],
309
+ [0]
310
+ ];
311
+ n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
312
+ var ValidationException$ = [-3, n0, _VE,
313
+ { [_e]: _c, [_hE]: 400 },
314
+ [_m, _r, _fL],
315
+ [0, 0, () => ValidationExceptionFieldList], 2
316
+ ];
317
+ n0_registry.registerError(ValidationException$, ValidationException);
318
+ const errorTypeRegistries = [
319
+ _s_registry,
320
+ n0_registry,
321
+ ];
322
+ var Description = [0, n0, _D, 8, 0];
323
+ var DescriptorData = [0, n0, _DD, 8, 0];
324
+ var MetadataFilterExpression = [0, n0, _MFE, 8, 15];
325
+ var SearchQuery = [0, n0, _SQ, 8, 0];
326
+ var A2aAgentCardDescriptor$ = [3, n0, _AACD,
327
+ 0,
328
+ [_d, _dSV, _so],
329
+ [[() => DescriptorData, 0], 0, () => DescriptorSource$]
330
+ ];
331
+ var AgentSkillsAdditionalData$ = [3, n0, _ASAD,
332
+ 0,
333
+ [_sM],
334
+ [[() => AgentSkillsMdDescriptor$, 0]]
335
+ ];
336
+ var AgentSkillsDefinitionDescriptor$ = [3, n0, _ASDD,
337
+ 0,
338
+ [_d, _dSV, _aD],
339
+ [[() => DescriptorData, 0], 0, [() => AgentSkillsAdditionalData$, 0]]
340
+ ];
341
+ var AgentSkillsMdDescriptor$ = [3, n0, _ASMD,
342
+ 0,
343
+ [_d, _dSV, _so],
344
+ [[() => DescriptorData, 0], 0, () => DescriptorSource$]
345
+ ];
346
+ var BatchGetDiscoverableRegistryRecordError$ = [3, n0, _BGDRRE,
347
+ 0,
348
+ [_rI, _rIe, _eC, _m],
349
+ [0, 0, 0, 0], 3
350
+ ];
351
+ var BatchGetDiscoverableRegistryRecordRequest$ = [3, n0, _BGDRRR,
352
+ 0,
353
+ [_en],
354
+ [() => RegistryRecordsEntryList], 1
355
+ ];
356
+ var BatchGetDiscoverableRegistryRecordResponse$ = [3, n0, _BGDRRRa,
357
+ 0,
358
+ [_rR, _er],
359
+ [[() => RegistryRecordSummaryList, 0], () => BatchGetDiscoverableRegistryRecordErrorList], 2
360
+ ];
361
+ var CustomDescriptor$ = [3, n0, _CD,
362
+ 0,
363
+ [_d],
364
+ [[() => DescriptorData, 0]]
365
+ ];
366
+ var Descriptors$ = [3, n0, _De,
367
+ 0,
368
+ [_mS, _aAC, _aSD, _cu],
369
+ [[() => McpServerDescriptor$, 0], [() => A2aAgentCardDescriptor$, 0], [() => AgentSkillsDefinitionDescriptor$, 0], [() => CustomDescriptor$, 0]]
370
+ ];
371
+ var DescriptorSource$ = [3, n0, _DS,
372
+ 0,
373
+ [_fU],
374
+ [() => DescriptorSourceFromUrl$]
375
+ ];
376
+ var DescriptorSourceFromUrl$ = [3, n0, _DSFU,
377
+ 0,
378
+ [_u],
379
+ [0], 1
380
+ ];
381
+ var DiscoverableRegistryRecordSummary$ = [3, n0, _DRRS,
382
+ 0,
383
+ [_rA, _rAe, _rIe, _n, _rT, _rV, _st, _cA, _uA, _de, _dN],
384
+ [0, 0, 0, 0, 0, 0, 0, 5, 5, [() => Description, 0], 0], 9
385
+ ];
386
+ var ListDiscoverableRegistryRecordsRequest$ = [3, n0, _LDRRR,
387
+ 0,
388
+ [_rI, _mR, _nT, _f],
389
+ [[0, 1], 1, 0, () => RegistryRecordFilterList], 1
390
+ ];
391
+ var ListDiscoverableRegistryRecordsResponse$ = [3, n0, _LDRRRi,
392
+ 0,
393
+ [_rR, _nT],
394
+ [[() => DiscoverableRegistryRecordSummaryList, 0], 0], 1
395
+ ];
396
+ var McpServerAdditionalData$ = [3, n0, _MSAD,
397
+ 0,
398
+ [_t],
399
+ [[() => McpToolsDescriptor$, 0]]
400
+ ];
401
+ var McpServerDescriptor$ = [3, n0, _MSD,
402
+ 0,
403
+ [_d, _dSV, _aD, _so],
404
+ [[() => DescriptorData, 0], 0, [() => McpServerAdditionalData$, 0], () => DescriptorSource$]
405
+ ];
406
+ var McpToolsDescriptor$ = [3, n0, _MTD,
407
+ 0,
408
+ [_d, _dSV],
409
+ [[() => DescriptorData, 0], 0]
410
+ ];
411
+ var RegistryRecordFilter$ = [3, n0, _RRF,
412
+ 0,
413
+ [_n, _v],
414
+ [0, 64 | 0], 2
415
+ ];
416
+ var RegistryRecordsEntry$ = [3, n0, _RRE,
417
+ 0,
418
+ [_rI, _rIec],
419
+ [0, 64 | 0], 2
420
+ ];
421
+ var RegistryRecordSummary$ = [3, n0, _RRS,
422
+ 0,
423
+ [_rA, _rAe, _rIe, _n, _rT, _des, _rV, _st, _cA, _uA, _de, _dN],
424
+ [0, 0, 0, 0, 0, [() => Descriptors$, 0], 0, 0, 5, 5, [() => Description, 0], 0], 10
425
+ ];
426
+ var SearchDiscoverableRegistryRecordsRequest$ = [3, n0, _SDRRR,
427
+ 0,
428
+ [_sQ, _rIeg, _mR, _f],
429
+ [[() => SearchQuery, 0], 64 | 0, 1, [() => MetadataFilterExpression, 0]], 2
430
+ ];
431
+ var SearchDiscoverableRegistryRecordsResponse$ = [3, n0, _SDRRRe,
432
+ 0,
433
+ [_rR],
434
+ [[() => RegistryRecordSummaryList, 0]], 1
435
+ ];
436
+ var ValidationExceptionField$ = [3, n0, _VEF,
437
+ 0,
438
+ [_n, _m],
439
+ [0, 0], 2
440
+ ];
441
+ var BatchGetDiscoverableRegistryRecordErrorList = [1, n0, _BGDRREL,
442
+ 0, () => BatchGetDiscoverableRegistryRecordError$
443
+ ];
444
+ var DiscoverableRegistryRecordSummaryList = [1, n0, _DRRSL,
445
+ 0, [() => DiscoverableRegistryRecordSummary$,
446
+ 0]
447
+ ];
448
+ var RegistryRecordFilterList = [1, n0, _RRFL,
449
+ 0, () => RegistryRecordFilter$
450
+ ];
451
+ var RegistryRecordsEntryList = [1, n0, _RREL,
452
+ 0, () => RegistryRecordsEntry$
453
+ ];
454
+ var RegistryRecordSummaryList = [1, n0, _RRSL,
455
+ 0, [() => RegistryRecordSummary$,
456
+ 0]
457
+ ];
458
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
459
+ 0, () => ValidationExceptionField$
460
+ ];
461
+ var BatchGetDiscoverableRegistryRecord$ = [9, n0, _BGDRR,
462
+ { [_h]: ["POST", "/discoverable-records-batch", 200] }, () => BatchGetDiscoverableRegistryRecordRequest$, () => BatchGetDiscoverableRegistryRecordResponse$
463
+ ];
464
+ var ListDiscoverableRegistryRecords$ = [9, n0, _LDRR,
465
+ { [_h]: ["POST", "/registries/{registryId}/discoverable-records-list", 200] }, () => ListDiscoverableRegistryRecordsRequest$, () => ListDiscoverableRegistryRecordsResponse$
466
+ ];
467
+ var SearchDiscoverableRegistryRecords$ = [9, n0, _SDRR,
468
+ { [_h]: ["POST", "/discoverable-records-search", 200] }, () => SearchDiscoverableRegistryRecordsRequest$, () => SearchDiscoverableRegistryRecordsResponse$
469
+ ];
470
+
471
+ const getRuntimeConfig$1 = (config) => {
472
+ return {
473
+ apiVersion: "2025-12-01",
474
+ base64Decoder: config?.base64Decoder ?? fromBase64,
475
+ base64Encoder: config?.base64Encoder ?? toBase64,
476
+ disableHostPrefix: config?.disableHostPrefix ?? false,
477
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
478
+ extensions: config?.extensions ?? [],
479
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAgentRegistryHttpAuthSchemeProvider,
480
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
481
+ {
482
+ schemeId: "aws.auth#sigv4",
483
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
484
+ signer: new AwsSdkSigV4Signer(),
485
+ },
486
+ ],
487
+ logger: config?.logger ?? new NoOpLogger(),
488
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
489
+ protocolSettings: config?.protocolSettings ?? {
490
+ defaultNamespace: "com.amazonaws.agentregistry",
491
+ errorTypeRegistries,
492
+ version: "2025-12-01",
493
+ serviceTarget: "AgentRegistry",
494
+ },
495
+ serviceId: config?.serviceId ?? "Agent Registry",
496
+ sha256: config?.sha256 ?? Sha256,
497
+ urlParser: config?.urlParser ?? parseUrl,
498
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
499
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
500
+ };
501
+ };
502
+
503
+ const getRuntimeConfig = (config) => {
504
+ emitWarningIfUnsupportedVersion(process.version);
505
+ const defaultsMode = resolveDefaultsModeConfig(config);
506
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
507
+ const clientSharedValues = getRuntimeConfig$1(config);
508
+ emitWarningIfUnsupportedVersion$1(process.version);
509
+ const loaderConfig = {
510
+ profile: config?.profile,
511
+ logger: clientSharedValues.logger,
512
+ };
513
+ return {
514
+ ...clientSharedValues,
515
+ ...config,
516
+ runtime: "node",
517
+ defaultsMode,
518
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
519
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
520
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
521
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
522
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
523
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
524
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
525
+ retryMode: config?.retryMode ??
526
+ loadConfig({
527
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
528
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
529
+ }, config),
530
+ streamCollector: config?.streamCollector ?? streamCollector,
531
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
532
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
533
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
534
+ };
535
+ };
536
+
537
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
538
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
539
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
540
+ let _credentials = runtimeConfig.credentials;
541
+ return {
542
+ setHttpAuthScheme(httpAuthScheme) {
543
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
544
+ if (index === -1) {
545
+ _httpAuthSchemes.push(httpAuthScheme);
546
+ }
547
+ else {
548
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
549
+ }
550
+ },
551
+ httpAuthSchemes() {
552
+ return _httpAuthSchemes;
553
+ },
554
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
555
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
556
+ },
557
+ httpAuthSchemeProvider() {
558
+ return _httpAuthSchemeProvider;
559
+ },
560
+ setCredentials(credentials) {
561
+ _credentials = credentials;
562
+ },
563
+ credentials() {
564
+ return _credentials;
565
+ },
566
+ };
567
+ };
568
+ const resolveHttpAuthRuntimeConfig = (config) => {
569
+ return {
570
+ httpAuthSchemes: config.httpAuthSchemes(),
571
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
572
+ credentials: config.credentials(),
573
+ };
574
+ };
575
+
576
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
577
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
578
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
579
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
580
+ };
581
+
582
+ class AgentRegistryClient extends Client {
583
+ config;
584
+ constructor(...[configuration]) {
585
+ const _config_0 = getRuntimeConfig(configuration || {});
586
+ super(_config_0);
587
+ this.initConfig = _config_0;
588
+ const _config_1 = resolveClientEndpointParameters(_config_0);
589
+ const _config_2 = resolveUserAgentConfig(_config_1);
590
+ const _config_3 = resolveRetryConfig(_config_2);
591
+ const _config_4 = resolveRegionConfig(_config_3);
592
+ const _config_5 = resolveHostHeaderConfig(_config_4);
593
+ const _config_6 = resolveEndpointConfig(_config_5);
594
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
595
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
596
+ this.config = _config_8;
597
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
598
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
599
+ this.middlewareStack.use(getRetryPlugin(this.config));
600
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
601
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
602
+ this.middlewareStack.use(getLoggerPlugin(this.config));
603
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
604
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
605
+ httpAuthSchemeParametersProvider: defaultAgentRegistryHttpAuthSchemeParametersProvider,
606
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
607
+ "aws.auth#sigv4": config.credentials,
608
+ }),
609
+ }));
610
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
611
+ }
612
+ destroy() {
613
+ super.destroy();
614
+ }
615
+ }
616
+
617
+ const command = makeBuilder(commonParams, "AgentRegistry", "AgentRegistryClient", getEndpointPlugin);
618
+ const _ep0 = {};
619
+ const _mw0 = (Command, cs, config, o) => [];
620
+
621
+ class BatchGetDiscoverableRegistryRecordCommand extends command(_ep0, _mw0, "BatchGetDiscoverableRegistryRecord", BatchGetDiscoverableRegistryRecord$) {
622
+ }
623
+
624
+ class ListDiscoverableRegistryRecordsCommand extends command(_ep0, _mw0, "ListDiscoverableRegistryRecords", ListDiscoverableRegistryRecords$) {
625
+ }
626
+
627
+ class SearchDiscoverableRegistryRecordsCommand extends command(_ep0, _mw0, "SearchDiscoverableRegistryRecords", SearchDiscoverableRegistryRecords$) {
628
+ }
629
+
630
+ const paginateListDiscoverableRegistryRecords = createPaginator(AgentRegistryClient, ListDiscoverableRegistryRecordsCommand, "nextToken", "nextToken", "maxResults");
631
+
632
+ const commands = {
633
+ BatchGetDiscoverableRegistryRecordCommand,
634
+ ListDiscoverableRegistryRecordsCommand,
635
+ SearchDiscoverableRegistryRecordsCommand,
636
+ };
637
+ const paginators = {
638
+ paginateListDiscoverableRegistryRecords,
639
+ };
640
+ class AgentRegistry extends AgentRegistryClient {
641
+ }
642
+ createAggregatedClient(commands, AgentRegistry, { paginators });
643
+
644
+ const BatchGetDiscoverableRegistryRecordErrorCode = {
645
+ ACCESS_DENIED: "ACCESS_DENIED",
646
+ INTERNAL_ERROR: "INTERNAL_ERROR",
647
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
648
+ };
649
+ const RecordType = {
650
+ AGENT: "AGENT",
651
+ CUSTOM: "CUSTOM",
652
+ MCP: "MCP",
653
+ SKILL: "SKILL",
654
+ };
655
+ const RegistryRecordStatus = {
656
+ APPROVED: "APPROVED",
657
+ CREATE_FAILED: "CREATE_FAILED",
658
+ CREATING: "CREATING",
659
+ DEPRECATED: "DEPRECATED",
660
+ DRAFT: "DRAFT",
661
+ PENDING_APPROVAL: "PENDING_APPROVAL",
662
+ REJECTED: "REJECTED",
663
+ UPDATE_FAILED: "UPDATE_FAILED",
664
+ UPDATING: "UPDATING",
665
+ };
666
+ const ValidationExceptionReason = {
667
+ CANNOT_PARSE: "CannotParse",
668
+ FIELD_VALIDATION_FAILED: "FieldValidationFailed",
669
+ IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
670
+ RESOURCE_CONFLICT: "ResourceConflict",
671
+ ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
672
+ };
673
+ const RegistryRecordFilterName = {
674
+ DESCRIPTOR_TYPE: "descriptorType",
675
+ RECORD_TYPE: "recordType",
676
+ };
677
+
678
+ exports.A2aAgentCardDescriptor$ = A2aAgentCardDescriptor$;
679
+ exports.AccessDeniedException = AccessDeniedException;
680
+ exports.AccessDeniedException$ = AccessDeniedException$;
681
+ exports.AgentRegistry = AgentRegistry;
682
+ exports.AgentRegistryClient = AgentRegistryClient;
683
+ exports.AgentRegistryServiceException = AgentRegistryServiceException;
684
+ exports.AgentRegistryServiceException$ = AgentRegistryServiceException$;
685
+ exports.AgentSkillsAdditionalData$ = AgentSkillsAdditionalData$;
686
+ exports.AgentSkillsDefinitionDescriptor$ = AgentSkillsDefinitionDescriptor$;
687
+ exports.AgentSkillsMdDescriptor$ = AgentSkillsMdDescriptor$;
688
+ exports.BatchGetDiscoverableRegistryRecord$ = BatchGetDiscoverableRegistryRecord$;
689
+ exports.BatchGetDiscoverableRegistryRecordCommand = BatchGetDiscoverableRegistryRecordCommand;
690
+ exports.BatchGetDiscoverableRegistryRecordError$ = BatchGetDiscoverableRegistryRecordError$;
691
+ exports.BatchGetDiscoverableRegistryRecordErrorCode = BatchGetDiscoverableRegistryRecordErrorCode;
692
+ exports.BatchGetDiscoverableRegistryRecordRequest$ = BatchGetDiscoverableRegistryRecordRequest$;
693
+ exports.BatchGetDiscoverableRegistryRecordResponse$ = BatchGetDiscoverableRegistryRecordResponse$;
694
+ exports.CustomDescriptor$ = CustomDescriptor$;
695
+ exports.DescriptorSource$ = DescriptorSource$;
696
+ exports.DescriptorSourceFromUrl$ = DescriptorSourceFromUrl$;
697
+ exports.Descriptors$ = Descriptors$;
698
+ exports.DiscoverableRegistryRecordSummary$ = DiscoverableRegistryRecordSummary$;
699
+ exports.InternalServerException = InternalServerException;
700
+ exports.InternalServerException$ = InternalServerException$;
701
+ exports.ListDiscoverableRegistryRecords$ = ListDiscoverableRegistryRecords$;
702
+ exports.ListDiscoverableRegistryRecordsCommand = ListDiscoverableRegistryRecordsCommand;
703
+ exports.ListDiscoverableRegistryRecordsRequest$ = ListDiscoverableRegistryRecordsRequest$;
704
+ exports.ListDiscoverableRegistryRecordsResponse$ = ListDiscoverableRegistryRecordsResponse$;
705
+ exports.McpServerAdditionalData$ = McpServerAdditionalData$;
706
+ exports.McpServerDescriptor$ = McpServerDescriptor$;
707
+ exports.McpToolsDescriptor$ = McpToolsDescriptor$;
708
+ exports.RecordType = RecordType;
709
+ exports.RegistryRecordFilter$ = RegistryRecordFilter$;
710
+ exports.RegistryRecordFilterName = RegistryRecordFilterName;
711
+ exports.RegistryRecordStatus = RegistryRecordStatus;
712
+ exports.RegistryRecordSummary$ = RegistryRecordSummary$;
713
+ exports.RegistryRecordsEntry$ = RegistryRecordsEntry$;
714
+ exports.ResourceNotFoundException = ResourceNotFoundException;
715
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
716
+ exports.SearchDiscoverableRegistryRecords$ = SearchDiscoverableRegistryRecords$;
717
+ exports.SearchDiscoverableRegistryRecordsCommand = SearchDiscoverableRegistryRecordsCommand;
718
+ exports.SearchDiscoverableRegistryRecordsRequest$ = SearchDiscoverableRegistryRecordsRequest$;
719
+ exports.SearchDiscoverableRegistryRecordsResponse$ = SearchDiscoverableRegistryRecordsResponse$;
720
+ exports.ThrottlingException = ThrottlingException;
721
+ exports.ThrottlingException$ = ThrottlingException$;
722
+ exports.UnauthorizedException = UnauthorizedException;
723
+ exports.UnauthorizedException$ = UnauthorizedException$;
724
+ exports.ValidationException = ValidationException;
725
+ exports.ValidationException$ = ValidationException$;
726
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
727
+ exports.ValidationExceptionReason = ValidationExceptionReason;
728
+ exports.errorTypeRegistries = errorTypeRegistries;
729
+ exports.paginateListDiscoverableRegistryRecords = paginateListDiscoverableRegistryRecords;