@aws-sdk/client-agent-registry 3.1172.0 → 3.1174.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.
- package/dist-cjs/index.js +119 -10
- package/dist-es/AgentRegistry.js +2 -0
- package/dist-es/AgentRegistryClient.js +1 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +17 -0
- package/dist-es/models/enums.js +29 -0
- package/dist-es/pagination/SearchDiscoverableRegistryRecordsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/runtimeConfig.js +17 -1
- package/dist-es/runtimeConfig.shared.js +6 -0
- package/dist-es/schemas/schemas_0.js +34 -8
- package/dist-types/AgentRegistry.d.ts +7 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +4 -1
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +9 -1
- package/dist-types/commands/BatchGetDiscoverableRegistryRecordCommand.d.ts +15 -3
- package/dist-types/commands/ListDiscoverableRegistryRecordsCommand.d.ts +2 -2
- package/dist-types/commands/SearchDiscoverableRegistryRecordsCommand.d.ts +19 -3
- package/dist-types/models/enums.d.ts +54 -0
- package/dist-types/models/models_0.d.ts +88 -5
- package/dist-types/pagination/SearchDiscoverableRegistryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +10 -1
- package/dist-types/runtimeConfig.d.ts +13 -1
- package/dist-types/runtimeConfig.native.d.ts +10 -1
- package/dist-types/runtimeConfig.shared.d.ts +12 -1
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/dist-types/ts3.4/AgentRegistry.d.ts +7 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +5 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +4 -0
- package/dist-types/ts3.4/models/enums.d.ts +31 -0
- package/dist-types/ts3.4/models/models_0.d.ts +21 -0
- package/dist-types/ts3.4/pagination/SearchDiscoverableRegistryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +17 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +24 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +17 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/package.json +2 -1
package/dist-cjs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, 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");
|
|
2
|
+
const { memoizeIdentityProvider, isIdentityExpired, doesIdentityRequireRefresh, HttpBearerAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
3
|
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
4
|
const { Command: $Command } = require("@smithy/core/client");
|
|
5
5
|
exports.$Command = $Command;
|
|
@@ -11,6 +11,7 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
11
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
13
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
14
|
+
const { nodeProvider } = require("@aws-sdk/token-providers");
|
|
14
15
|
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
15
16
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
16
17
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
@@ -39,19 +40,35 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
39
40
|
}),
|
|
40
41
|
};
|
|
41
42
|
}
|
|
43
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
44
|
+
return {
|
|
45
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
46
|
+
propertiesExtractor: ({ profile, filepath, configFilepath, ignoreCache, }, context) => ({
|
|
47
|
+
identityProperties: {
|
|
48
|
+
profile,
|
|
49
|
+
filepath,
|
|
50
|
+
configFilepath,
|
|
51
|
+
ignoreCache,
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
42
56
|
const defaultAgentRegistryHttpAuthSchemeProvider = (authParameters) => {
|
|
43
57
|
const options = [];
|
|
44
58
|
switch (authParameters.operation) {
|
|
45
59
|
default: {
|
|
46
60
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
61
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption());
|
|
47
62
|
}
|
|
48
63
|
}
|
|
49
64
|
return options;
|
|
50
65
|
};
|
|
51
66
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
67
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
52
68
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
53
69
|
return Object.assign(config_0, {
|
|
54
70
|
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
71
|
+
token,
|
|
55
72
|
});
|
|
56
73
|
};
|
|
57
74
|
|
|
@@ -65,7 +82,7 @@ const commonParams = {
|
|
|
65
82
|
Region: { type: "builtInParams", name: "region" },
|
|
66
83
|
};
|
|
67
84
|
|
|
68
|
-
var version = "3.
|
|
85
|
+
var version = "3.1173.0";
|
|
69
86
|
var packageInfo = {
|
|
70
87
|
version: version};
|
|
71
88
|
|
|
@@ -223,13 +240,17 @@ const _MFE = "MetadataFilterExpression";
|
|
|
223
240
|
const _MSAD = "McpServerAdditionalData";
|
|
224
241
|
const _MSD = "McpServerDescriptor";
|
|
225
242
|
const _MTD = "McpToolsDescriptor";
|
|
243
|
+
const _PDU = "PresignedDownloadUrl";
|
|
226
244
|
const _RNFE = "ResourceNotFoundException";
|
|
245
|
+
const _RRAD = "RegistryRecordArtifactDownload";
|
|
227
246
|
const _RRE = "RegistryRecordsEntry";
|
|
228
247
|
const _RREL = "RegistryRecordsEntryList";
|
|
229
248
|
const _RRF = "RegistryRecordFilter";
|
|
230
249
|
const _RRFL = "RegistryRecordFilterList";
|
|
231
250
|
const _RRS = "RegistryRecordSummary";
|
|
232
251
|
const _RRSL = "RegistryRecordSummaryList";
|
|
252
|
+
const _SACAD = "SignatureAgentCardAdditionalData";
|
|
253
|
+
const _SACD = "SignatureAgentCardDescriptor";
|
|
233
254
|
const _SDRR = "SearchDiscoverableRegistryRecords";
|
|
234
255
|
const _SDRRR = "SearchDiscoverableRegistryRecordsRequest";
|
|
235
256
|
const _SDRRRe = "SearchDiscoverableRegistryRecordsResponse";
|
|
@@ -243,14 +264,17 @@ const _a = "agui";
|
|
|
243
264
|
const _aAC = "a2aAgentCard";
|
|
244
265
|
const _aD = "additionalData";
|
|
245
266
|
const _aSD = "agentSkillsDefinition";
|
|
267
|
+
const _ar = "artifact";
|
|
246
268
|
const _c = "client";
|
|
247
269
|
const _cA = "createdAt";
|
|
248
270
|
const _cM = "customMetadata";
|
|
271
|
+
const _ca = "category";
|
|
249
272
|
const _cu = "custom";
|
|
250
273
|
const _d = "data";
|
|
251
274
|
const _dN = "displayName";
|
|
252
275
|
const _dSV = "dataSchemaVersion";
|
|
253
276
|
const _dT = "descriptorTypes";
|
|
277
|
+
const _dU = "downloadUrl";
|
|
254
278
|
const _de = "description";
|
|
255
279
|
const _des = "descriptors";
|
|
256
280
|
const _e = "error";
|
|
@@ -278,9 +302,12 @@ const _rR = "registryRecords";
|
|
|
278
302
|
const _rT = "recordType";
|
|
279
303
|
const _rV = "recordVersion";
|
|
280
304
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.agentregistry";
|
|
305
|
+
const _sAC = "signatureAgentCard";
|
|
281
306
|
const _sM = "skillMd";
|
|
282
307
|
const _sQ = "searchQuery";
|
|
308
|
+
const _sT = "searchType";
|
|
283
309
|
const _se = "server";
|
|
310
|
+
const _sh = "sha256";
|
|
284
311
|
const _so = "source";
|
|
285
312
|
const _st = "status";
|
|
286
313
|
const _t = "tools";
|
|
@@ -336,6 +363,7 @@ var CustomMetadataDocument = [0, n0, _CMD, 8, 15];
|
|
|
336
363
|
var Description = [0, n0, _D, 8, 0];
|
|
337
364
|
var DescriptorData = [0, n0, _DD, 8, 0];
|
|
338
365
|
var MetadataFilterExpression = [0, n0, _MFE, 8, 15];
|
|
366
|
+
var PresignedDownloadUrl = [0, n0, _PDU, 8, 0];
|
|
339
367
|
var SearchQuery = [0, n0, _SQ, 8, 0];
|
|
340
368
|
var A2aAgentCardDescriptor$ = [3, n0, _AACD,
|
|
341
369
|
0,
|
|
@@ -384,8 +412,8 @@ var CustomDescriptor$ = [3, n0, _CD,
|
|
|
384
412
|
];
|
|
385
413
|
var Descriptors$ = [3, n0, _De,
|
|
386
414
|
0,
|
|
387
|
-
[_mS, _aAC, _aSD, _cu, _h, _a],
|
|
388
|
-
[[() => McpServerDescriptor$, 0], [() => A2aAgentCardDescriptor$, 0], [() => AgentSkillsDefinitionDescriptor$, 0], [() => CustomDescriptor$, 0], () => HttpDescriptor$, () => AgUiDescriptor
|
|
415
|
+
[_mS, _aAC, _aSD, _cu, _h, _a, _sAC],
|
|
416
|
+
[[() => McpServerDescriptor$, 0], [() => A2aAgentCardDescriptor$, 0], [() => AgentSkillsDefinitionDescriptor$, 0], [() => CustomDescriptor$, 0], () => HttpDescriptor$, () => AgUiDescriptor$, [() => SignatureAgentCardDescriptor$, 0]]
|
|
389
417
|
];
|
|
390
418
|
var DescriptorSource$ = [3, n0, _DS,
|
|
391
419
|
0,
|
|
@@ -432,6 +460,11 @@ var McpToolsDescriptor$ = [3, n0, _MTD,
|
|
|
432
460
|
[_d, _dSV],
|
|
433
461
|
[[() => DescriptorData, 0], 0]
|
|
434
462
|
];
|
|
463
|
+
var RegistryRecordArtifactDownload$ = [3, n0, _RRAD,
|
|
464
|
+
0,
|
|
465
|
+
[_sh, _dU],
|
|
466
|
+
[0, [() => PresignedDownloadUrl, 0]]
|
|
467
|
+
];
|
|
435
468
|
var RegistryRecordFilter$ = [3, n0, _RRF,
|
|
436
469
|
0,
|
|
437
470
|
[_n, _v],
|
|
@@ -444,18 +477,28 @@ var RegistryRecordsEntry$ = [3, n0, _RRE,
|
|
|
444
477
|
];
|
|
445
478
|
var RegistryRecordSummary$ = [3, n0, _RRS,
|
|
446
479
|
0,
|
|
447
|
-
[_rA, _rAe, _rIe, _n, _rT, _des, _rV, _st, _cA, _uA, _de, _dN, _cM],
|
|
448
|
-
[0, 0, 0, 0, 0, [() => Descriptors$, 0], 0, 0, 5, 5, [() => Description, 0], 0, [() => CustomMetadataDocument, 0]], 10
|
|
480
|
+
[_rA, _rAe, _rIe, _n, _rT, _des, _rV, _st, _cA, _uA, _de, _dN, _cM, _ar],
|
|
481
|
+
[0, 0, 0, 0, 0, [() => Descriptors$, 0], 0, 0, 5, 5, [() => Description, 0], 0, [() => CustomMetadataDocument, 0], [() => RegistryRecordArtifactDownload$, 0]], 10
|
|
449
482
|
];
|
|
450
483
|
var SearchDiscoverableRegistryRecordsRequest$ = [3, n0, _SDRRR,
|
|
451
484
|
0,
|
|
452
|
-
[_sQ, _rIeg, _mR, _f],
|
|
453
|
-
[[() => SearchQuery, 0], 64 | 0, 1, [() => MetadataFilterExpression, 0]], 2
|
|
485
|
+
[_sQ, _rIeg, _mR, _f, _sT, _nT],
|
|
486
|
+
[[() => SearchQuery, 0], 64 | 0, 1, [() => MetadataFilterExpression, 0], 0, 0], 2
|
|
454
487
|
];
|
|
455
488
|
var SearchDiscoverableRegistryRecordsResponse$ = [3, n0, _SDRRRe,
|
|
456
489
|
0,
|
|
457
|
-
[_rR],
|
|
458
|
-
[[() => RegistryRecordSummaryList, 0]], 1
|
|
490
|
+
[_rR, _sT, _nT],
|
|
491
|
+
[[() => RegistryRecordSummaryList, 0], 0, 0], 1
|
|
492
|
+
];
|
|
493
|
+
var SignatureAgentCardAdditionalData$ = [3, n0, _SACAD,
|
|
494
|
+
0,
|
|
495
|
+
[_ca],
|
|
496
|
+
[0]
|
|
497
|
+
];
|
|
498
|
+
var SignatureAgentCardDescriptor$ = [3, n0, _SACD,
|
|
499
|
+
0,
|
|
500
|
+
[_d, _dSV, _so, _aD],
|
|
501
|
+
[[() => DescriptorData, 0], 0, () => DescriptorSource$, () => SignatureAgentCardAdditionalData$]
|
|
459
502
|
];
|
|
460
503
|
var ValidationExceptionField$ = [3, n0, _VEF,
|
|
461
504
|
0,
|
|
@@ -507,6 +550,11 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
507
550
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
508
551
|
signer: new AwsSdkSigV4Signer(),
|
|
509
552
|
},
|
|
553
|
+
{
|
|
554
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
555
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
556
|
+
signer: new HttpBearerAuthSigner(),
|
|
557
|
+
},
|
|
510
558
|
],
|
|
511
559
|
logger: config?.logger ?? new NoOpLogger(),
|
|
512
560
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
@@ -544,6 +592,20 @@ const getRuntimeConfig = (config) => {
|
|
|
544
592
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
545
593
|
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
|
|
546
594
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
595
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
596
|
+
{
|
|
597
|
+
schemeId: "aws.auth#sigv4",
|
|
598
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
599
|
+
signer: new AwsSdkSigV4Signer(),
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
603
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth") || (async (idProps) => {
|
|
604
|
+
return await nodeProvider(idProps)(idProps);
|
|
605
|
+
}),
|
|
606
|
+
signer: new HttpBearerAuthSigner(),
|
|
607
|
+
},
|
|
608
|
+
],
|
|
547
609
|
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
548
610
|
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
549
611
|
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -563,6 +625,7 @@ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
|
563
625
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
564
626
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
565
627
|
let _credentials = runtimeConfig.credentials;
|
|
628
|
+
let _token = runtimeConfig.token;
|
|
566
629
|
return {
|
|
567
630
|
setHttpAuthScheme(httpAuthScheme) {
|
|
568
631
|
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
@@ -588,6 +651,12 @@ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
|
588
651
|
credentials() {
|
|
589
652
|
return _credentials;
|
|
590
653
|
},
|
|
654
|
+
setToken(token) {
|
|
655
|
+
_token = token;
|
|
656
|
+
},
|
|
657
|
+
token() {
|
|
658
|
+
return _token;
|
|
659
|
+
},
|
|
591
660
|
};
|
|
592
661
|
};
|
|
593
662
|
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
@@ -595,6 +664,7 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
595
664
|
httpAuthSchemes: config.httpAuthSchemes(),
|
|
596
665
|
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
597
666
|
credentials: config.credentials(),
|
|
667
|
+
token: config.token(),
|
|
598
668
|
};
|
|
599
669
|
};
|
|
600
670
|
|
|
@@ -630,6 +700,7 @@ class AgentRegistryClient extends Client {
|
|
|
630
700
|
httpAuthSchemeParametersProvider: defaultAgentRegistryHttpAuthSchemeParametersProvider,
|
|
631
701
|
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
632
702
|
"aws.auth#sigv4": config.credentials,
|
|
703
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
633
704
|
}),
|
|
634
705
|
}));
|
|
635
706
|
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
@@ -654,6 +725,8 @@ class SearchDiscoverableRegistryRecordsCommand extends command(_ep0, _mw0, "Sear
|
|
|
654
725
|
|
|
655
726
|
const paginateListDiscoverableRegistryRecords = createPaginator(AgentRegistryClient, ListDiscoverableRegistryRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
656
727
|
|
|
728
|
+
const paginateSearchDiscoverableRegistryRecords = createPaginator(AgentRegistryClient, SearchDiscoverableRegistryRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
729
|
+
|
|
657
730
|
const commands = {
|
|
658
731
|
BatchGetDiscoverableRegistryRecordCommand,
|
|
659
732
|
ListDiscoverableRegistryRecordsCommand,
|
|
@@ -661,6 +734,7 @@ const commands = {
|
|
|
661
734
|
};
|
|
662
735
|
const paginators = {
|
|
663
736
|
paginateListDiscoverableRegistryRecords,
|
|
737
|
+
paginateSearchDiscoverableRegistryRecords,
|
|
664
738
|
};
|
|
665
739
|
class AgentRegistry extends AgentRegistryClient {
|
|
666
740
|
}
|
|
@@ -671,22 +745,45 @@ const BatchGetDiscoverableRegistryRecordErrorCode = {
|
|
|
671
745
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
672
746
|
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
673
747
|
};
|
|
748
|
+
const BotCategory = {
|
|
749
|
+
ADVERTISING: "advertising",
|
|
750
|
+
AI_ASSISTANT: "ai_assistant",
|
|
751
|
+
AI_CONTENT_OPTIMIZATION: "ai_content_optimization",
|
|
752
|
+
AI_SEARCH: "ai_search",
|
|
753
|
+
AI_TRAINING: "ai_training",
|
|
754
|
+
ARCHIVER: "archiver",
|
|
755
|
+
CONTENT_FETCHER: "content_fetcher",
|
|
756
|
+
EMAIL_CLIENT: "email_client",
|
|
757
|
+
HTTP_LIBRARY: "http_library",
|
|
758
|
+
LINK_CHECKER: "link_checker",
|
|
759
|
+
MISCELLANEOUS: "miscellaneous",
|
|
760
|
+
MONITORING: "monitoring",
|
|
761
|
+
PAGE_PREVIEW: "page_preview",
|
|
762
|
+
SCRAPING_FRAMEWORK: "scraping_framework",
|
|
763
|
+
SEARCH_ENGINE: "search_engine",
|
|
764
|
+
SECURITY: "security",
|
|
765
|
+
SEO: "seo",
|
|
766
|
+
SOCIAL_MEDIA: "social_media",
|
|
767
|
+
};
|
|
674
768
|
const RecordType = {
|
|
675
769
|
AGENT: "AGENT",
|
|
676
770
|
CUSTOM: "CUSTOM",
|
|
677
771
|
GATEWAY: "GATEWAY",
|
|
678
772
|
MCP: "MCP",
|
|
679
773
|
SKILL: "SKILL",
|
|
774
|
+
WEB_BOT: "WEB_BOT",
|
|
680
775
|
};
|
|
681
776
|
const RegistryRecordStatus = {
|
|
682
777
|
APPROVED: "APPROVED",
|
|
683
778
|
CREATE_FAILED: "CREATE_FAILED",
|
|
779
|
+
CREATE_PENDING_AUTH: "CREATE_PENDING_AUTH",
|
|
684
780
|
CREATING: "CREATING",
|
|
685
781
|
DEPRECATED: "DEPRECATED",
|
|
686
782
|
DRAFT: "DRAFT",
|
|
687
783
|
PENDING_APPROVAL: "PENDING_APPROVAL",
|
|
688
784
|
REJECTED: "REJECTED",
|
|
689
785
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
786
|
+
UPDATE_PENDING_AUTH: "UPDATE_PENDING_AUTH",
|
|
690
787
|
UPDATING: "UPDATING",
|
|
691
788
|
};
|
|
692
789
|
const ValidationExceptionReason = {
|
|
@@ -695,11 +792,17 @@ const ValidationExceptionReason = {
|
|
|
695
792
|
IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
|
|
696
793
|
RESOURCE_CONFLICT: "ResourceConflict",
|
|
697
794
|
ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
|
|
795
|
+
UNSUPPORTED_IN_REGION: "UnsupportedInRegion",
|
|
698
796
|
};
|
|
699
797
|
const RegistryRecordFilterName = {
|
|
700
798
|
DESCRIPTOR_TYPE: "descriptorType",
|
|
701
799
|
RECORD_TYPE: "recordType",
|
|
702
800
|
};
|
|
801
|
+
const SearchType = {
|
|
802
|
+
HYBRID: "HYBRID",
|
|
803
|
+
KEYWORD: "KEYWORD",
|
|
804
|
+
SEMANTIC: "SEMANTIC",
|
|
805
|
+
};
|
|
703
806
|
|
|
704
807
|
exports.A2aAgentCardDescriptor$ = A2aAgentCardDescriptor$;
|
|
705
808
|
exports.AccessDeniedException = AccessDeniedException;
|
|
@@ -718,6 +821,7 @@ exports.BatchGetDiscoverableRegistryRecordError$ = BatchGetDiscoverableRegistryR
|
|
|
718
821
|
exports.BatchGetDiscoverableRegistryRecordErrorCode = BatchGetDiscoverableRegistryRecordErrorCode;
|
|
719
822
|
exports.BatchGetDiscoverableRegistryRecordRequest$ = BatchGetDiscoverableRegistryRecordRequest$;
|
|
720
823
|
exports.BatchGetDiscoverableRegistryRecordResponse$ = BatchGetDiscoverableRegistryRecordResponse$;
|
|
824
|
+
exports.BotCategory = BotCategory;
|
|
721
825
|
exports.CustomDescriptor$ = CustomDescriptor$;
|
|
722
826
|
exports.DescriptorSource$ = DescriptorSource$;
|
|
723
827
|
exports.DescriptorSourceFromUrl$ = DescriptorSourceFromUrl$;
|
|
@@ -734,6 +838,7 @@ exports.McpServerAdditionalData$ = McpServerAdditionalData$;
|
|
|
734
838
|
exports.McpServerDescriptor$ = McpServerDescriptor$;
|
|
735
839
|
exports.McpToolsDescriptor$ = McpToolsDescriptor$;
|
|
736
840
|
exports.RecordType = RecordType;
|
|
841
|
+
exports.RegistryRecordArtifactDownload$ = RegistryRecordArtifactDownload$;
|
|
737
842
|
exports.RegistryRecordFilter$ = RegistryRecordFilter$;
|
|
738
843
|
exports.RegistryRecordFilterName = RegistryRecordFilterName;
|
|
739
844
|
exports.RegistryRecordStatus = RegistryRecordStatus;
|
|
@@ -745,6 +850,9 @@ exports.SearchDiscoverableRegistryRecords$ = SearchDiscoverableRegistryRecords$;
|
|
|
745
850
|
exports.SearchDiscoverableRegistryRecordsCommand = SearchDiscoverableRegistryRecordsCommand;
|
|
746
851
|
exports.SearchDiscoverableRegistryRecordsRequest$ = SearchDiscoverableRegistryRecordsRequest$;
|
|
747
852
|
exports.SearchDiscoverableRegistryRecordsResponse$ = SearchDiscoverableRegistryRecordsResponse$;
|
|
853
|
+
exports.SearchType = SearchType;
|
|
854
|
+
exports.SignatureAgentCardAdditionalData$ = SignatureAgentCardAdditionalData$;
|
|
855
|
+
exports.SignatureAgentCardDescriptor$ = SignatureAgentCardDescriptor$;
|
|
748
856
|
exports.ThrottlingException = ThrottlingException;
|
|
749
857
|
exports.ThrottlingException$ = ThrottlingException$;
|
|
750
858
|
exports.UnauthorizedException = UnauthorizedException;
|
|
@@ -755,3 +863,4 @@ exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
|
755
863
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
756
864
|
exports.errorTypeRegistries = errorTypeRegistries;
|
|
757
865
|
exports.paginateListDiscoverableRegistryRecords = paginateListDiscoverableRegistryRecords;
|
|
866
|
+
exports.paginateSearchDiscoverableRegistryRecords = paginateSearchDiscoverableRegistryRecords;
|
package/dist-es/AgentRegistry.js
CHANGED
|
@@ -4,6 +4,7 @@ import { BatchGetDiscoverableRegistryRecordCommand, } from "./commands/BatchGetD
|
|
|
4
4
|
import { ListDiscoverableRegistryRecordsCommand, } from "./commands/ListDiscoverableRegistryRecordsCommand";
|
|
5
5
|
import { SearchDiscoverableRegistryRecordsCommand, } from "./commands/SearchDiscoverableRegistryRecordsCommand";
|
|
6
6
|
import { paginateListDiscoverableRegistryRecords } from "./pagination/ListDiscoverableRegistryRecordsPaginator";
|
|
7
|
+
import { paginateSearchDiscoverableRegistryRecords } from "./pagination/SearchDiscoverableRegistryRecordsPaginator";
|
|
7
8
|
const commands = {
|
|
8
9
|
BatchGetDiscoverableRegistryRecordCommand,
|
|
9
10
|
ListDiscoverableRegistryRecordsCommand,
|
|
@@ -11,6 +12,7 @@ const commands = {
|
|
|
11
12
|
};
|
|
12
13
|
const paginators = {
|
|
13
14
|
paginateListDiscoverableRegistryRecords,
|
|
15
|
+
paginateSearchDiscoverableRegistryRecords,
|
|
14
16
|
};
|
|
15
17
|
export class AgentRegistry extends AgentRegistryClient {
|
|
16
18
|
}
|
|
@@ -37,6 +37,7 @@ export class AgentRegistryClient extends __Client {
|
|
|
37
37
|
httpAuthSchemeParametersProvider: defaultAgentRegistryHttpAuthSchemeParametersProvider,
|
|
38
38
|
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
39
39
|
"aws.auth#sigv4": config.credentials,
|
|
40
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
40
41
|
}),
|
|
41
42
|
}));
|
|
42
43
|
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
@@ -2,6 +2,7 @@ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
|
2
2
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
3
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
4
|
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
let _token = runtimeConfig.token;
|
|
5
6
|
return {
|
|
6
7
|
setHttpAuthScheme(httpAuthScheme) {
|
|
7
8
|
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
@@ -27,6 +28,12 @@ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
|
27
28
|
credentials() {
|
|
28
29
|
return _credentials;
|
|
29
30
|
},
|
|
31
|
+
setToken(token) {
|
|
32
|
+
_token = token;
|
|
33
|
+
},
|
|
34
|
+
token() {
|
|
35
|
+
return _token;
|
|
36
|
+
},
|
|
30
37
|
};
|
|
31
38
|
};
|
|
32
39
|
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
@@ -34,5 +41,6 @@ export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
34
41
|
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
42
|
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
43
|
credentials: config.credentials(),
|
|
44
|
+
token: config.token(),
|
|
37
45
|
};
|
|
38
46
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
3
|
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
4
|
export const defaultAgentRegistryHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
5
|
return {
|
|
@@ -23,18 +24,34 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
23
24
|
}),
|
|
24
25
|
};
|
|
25
26
|
}
|
|
27
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
28
|
+
return {
|
|
29
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
30
|
+
propertiesExtractor: ({ profile, filepath, configFilepath, ignoreCache, }, context) => ({
|
|
31
|
+
identityProperties: {
|
|
32
|
+
profile,
|
|
33
|
+
filepath,
|
|
34
|
+
configFilepath,
|
|
35
|
+
ignoreCache,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
26
40
|
export const defaultAgentRegistryHttpAuthSchemeProvider = (authParameters) => {
|
|
27
41
|
const options = [];
|
|
28
42
|
switch (authParameters.operation) {
|
|
29
43
|
default: {
|
|
30
44
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
31
46
|
}
|
|
32
47
|
}
|
|
33
48
|
return options;
|
|
34
49
|
};
|
|
35
50
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
36
52
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
53
|
return Object.assign(config_0, {
|
|
38
54
|
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
55
|
+
token,
|
|
39
56
|
});
|
|
40
57
|
};
|
package/dist-es/models/enums.js
CHANGED
|
@@ -3,22 +3,45 @@ export const BatchGetDiscoverableRegistryRecordErrorCode = {
|
|
|
3
3
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
4
4
|
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
5
5
|
};
|
|
6
|
+
export const BotCategory = {
|
|
7
|
+
ADVERTISING: "advertising",
|
|
8
|
+
AI_ASSISTANT: "ai_assistant",
|
|
9
|
+
AI_CONTENT_OPTIMIZATION: "ai_content_optimization",
|
|
10
|
+
AI_SEARCH: "ai_search",
|
|
11
|
+
AI_TRAINING: "ai_training",
|
|
12
|
+
ARCHIVER: "archiver",
|
|
13
|
+
CONTENT_FETCHER: "content_fetcher",
|
|
14
|
+
EMAIL_CLIENT: "email_client",
|
|
15
|
+
HTTP_LIBRARY: "http_library",
|
|
16
|
+
LINK_CHECKER: "link_checker",
|
|
17
|
+
MISCELLANEOUS: "miscellaneous",
|
|
18
|
+
MONITORING: "monitoring",
|
|
19
|
+
PAGE_PREVIEW: "page_preview",
|
|
20
|
+
SCRAPING_FRAMEWORK: "scraping_framework",
|
|
21
|
+
SEARCH_ENGINE: "search_engine",
|
|
22
|
+
SECURITY: "security",
|
|
23
|
+
SEO: "seo",
|
|
24
|
+
SOCIAL_MEDIA: "social_media",
|
|
25
|
+
};
|
|
6
26
|
export const RecordType = {
|
|
7
27
|
AGENT: "AGENT",
|
|
8
28
|
CUSTOM: "CUSTOM",
|
|
9
29
|
GATEWAY: "GATEWAY",
|
|
10
30
|
MCP: "MCP",
|
|
11
31
|
SKILL: "SKILL",
|
|
32
|
+
WEB_BOT: "WEB_BOT",
|
|
12
33
|
};
|
|
13
34
|
export const RegistryRecordStatus = {
|
|
14
35
|
APPROVED: "APPROVED",
|
|
15
36
|
CREATE_FAILED: "CREATE_FAILED",
|
|
37
|
+
CREATE_PENDING_AUTH: "CREATE_PENDING_AUTH",
|
|
16
38
|
CREATING: "CREATING",
|
|
17
39
|
DEPRECATED: "DEPRECATED",
|
|
18
40
|
DRAFT: "DRAFT",
|
|
19
41
|
PENDING_APPROVAL: "PENDING_APPROVAL",
|
|
20
42
|
REJECTED: "REJECTED",
|
|
21
43
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
44
|
+
UPDATE_PENDING_AUTH: "UPDATE_PENDING_AUTH",
|
|
22
45
|
UPDATING: "UPDATING",
|
|
23
46
|
};
|
|
24
47
|
export const ValidationExceptionReason = {
|
|
@@ -27,8 +50,14 @@ export const ValidationExceptionReason = {
|
|
|
27
50
|
IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
|
|
28
51
|
RESOURCE_CONFLICT: "ResourceConflict",
|
|
29
52
|
ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
|
|
53
|
+
UNSUPPORTED_IN_REGION: "UnsupportedInRegion",
|
|
30
54
|
};
|
|
31
55
|
export const RegistryRecordFilterName = {
|
|
32
56
|
DESCRIPTOR_TYPE: "descriptorType",
|
|
33
57
|
RECORD_TYPE: "recordType",
|
|
34
58
|
};
|
|
59
|
+
export const SearchType = {
|
|
60
|
+
HYBRID: "HYBRID",
|
|
61
|
+
KEYWORD: "KEYWORD",
|
|
62
|
+
SEMANTIC: "SEMANTIC",
|
|
63
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { AgentRegistryClient } from "../AgentRegistryClient";
|
|
3
|
+
import { SearchDiscoverableRegistryRecordsCommand, } from "../commands/SearchDiscoverableRegistryRecordsCommand";
|
|
4
|
+
export const paginateSearchDiscoverableRegistryRecords = createPaginator(AgentRegistryClient, SearchDiscoverableRegistryRecordsCommand, "nextToken", "nextToken", "maxResults");
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
|
-
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
3
|
+
import { AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { nodeProvider } from "@aws-sdk/token-providers";
|
|
6
|
+
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
5
7
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
8
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
9
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
@@ -28,6 +30,20 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
31
|
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
|
|
30
32
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
34
|
+
{
|
|
35
|
+
schemeId: "aws.auth#sigv4",
|
|
36
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
37
|
+
signer: new AwsSdkSigV4Signer(),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
41
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth") || (async (idProps) => {
|
|
42
|
+
return await nodeProvider(idProps)(idProps);
|
|
43
|
+
}),
|
|
44
|
+
signer: new HttpBearerAuthSigner(),
|
|
45
|
+
},
|
|
46
|
+
],
|
|
31
47
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
32
48
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
33
49
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
3
4
|
import { Sha256 } from "@smithy/core/checksum";
|
|
4
5
|
import { NoOpLogger } from "@smithy/core/client";
|
|
5
6
|
import { parseUrl } from "@smithy/core/protocols";
|
|
@@ -22,6 +23,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
23
24
|
signer: new AwsSdkSigV4Signer(),
|
|
24
25
|
},
|
|
26
|
+
{
|
|
27
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
28
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
29
|
+
signer: new HttpBearerAuthSigner(),
|
|
30
|
+
},
|
|
25
31
|
],
|
|
26
32
|
logger: config?.logger ?? new NoOpLogger(),
|
|
27
33
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|