@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.
- package/LICENSE +201 -0
- package/README.md +202 -0
- package/dist-cjs/index.js +729 -0
- package/dist-es/AgentRegistry.js +17 -0
- package/dist-es/AgentRegistryClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/BatchGetDiscoverableRegistryRecordCommand.js +4 -0
- package/dist-es/commands/ListDiscoverableRegistryRecordsCommand.js +4 -0
- package/dist-es/commands/SearchDiscoverableRegistryRecordsCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/EndpointParameters.js +9 -0
- package/dist-es/endpoint/bdd.js +22 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/AgentRegistryServiceException.js +8 -0
- package/dist-es/models/enums.js +33 -0
- package/dist-es/models/errors.js +77 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDiscoverableRegistryRecordsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +286 -0
- package/dist-types/AgentRegistry.d.ts +38 -0
- package/dist-types/AgentRegistryClient.d.ts +189 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/BatchGetDiscoverableRegistryRecordCommand.d.ts +162 -0
- package/dist-types/commands/ListDiscoverableRegistryRecordsCommand.d.ts +114 -0
- package/dist-types/commands/SearchDiscoverableRegistryRecordsCommand.d.ts +152 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/AgentRegistryServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +76 -0
- package/dist-types/models/errors.d.ts +86 -0
- package/dist-types/models/models_0.d.ts +489 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListDiscoverableRegistryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +41 -0
- package/dist-types/ts3.4/AgentRegistry.d.ts +67 -0
- package/dist-types/ts3.4/AgentRegistryClient.d.ts +119 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/BatchGetDiscoverableRegistryRecordCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListDiscoverableRegistryRecordsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SearchDiscoverableRegistryRecordsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +39 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/AgentRegistryServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +41 -0
- package/dist-types/ts3.4/models/errors.d.ts +36 -0
- package/dist-types/ts3.4/models/models_0.d.ts +124 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListDiscoverableRegistryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +36 -0
- package/package.json +69 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { BatchGetDiscoverableRegistryRecordRequest, BatchGetDiscoverableRegistryRecordResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link BatchGetDiscoverableRegistryRecordCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface BatchGetDiscoverableRegistryRecordCommandInput extends BatchGetDiscoverableRegistryRecordRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link BatchGetDiscoverableRegistryRecordCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface BatchGetDiscoverableRegistryRecordCommandOutput extends BatchGetDiscoverableRegistryRecordResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const BatchGetDiscoverableRegistryRecordCommand_base: {
|
|
22
|
+
new (input: BatchGetDiscoverableRegistryRecordCommandInput): import("@smithy/core/client").CommandImpl<BatchGetDiscoverableRegistryRecordCommandInput, BatchGetDiscoverableRegistryRecordCommandOutput, import("..").AgentRegistryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: BatchGetDiscoverableRegistryRecordCommandInput): import("@smithy/core/client").CommandImpl<BatchGetDiscoverableRegistryRecordCommandInput, BatchGetDiscoverableRegistryRecordCommandOutput, import("..").AgentRegistryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p> Retrieves multiple discoverable registry records by ID from a single registry. Records that cannot be retrieved are reported individually in the <code>errors</code> list rather than failing the entire request.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { AgentRegistryClient, BatchGetDiscoverableRegistryRecordCommand } from "@aws-sdk/client-agent-registry"; // ES Modules import
|
|
32
|
+
* // const { AgentRegistryClient, BatchGetDiscoverableRegistryRecordCommand } = require("@aws-sdk/client-agent-registry"); // CommonJS import
|
|
33
|
+
* // import type { AgentRegistryClientConfig } from "@aws-sdk/client-agent-registry";
|
|
34
|
+
* const config = {}; // type is AgentRegistryClientConfig
|
|
35
|
+
* const client = new AgentRegistryClient(config);
|
|
36
|
+
* const input = { // BatchGetDiscoverableRegistryRecordRequest
|
|
37
|
+
* entries: [ // RegistryRecordsEntryList // required
|
|
38
|
+
* { // RegistryRecordsEntry
|
|
39
|
+
* registryId: "STRING_VALUE", // required
|
|
40
|
+
* recordIds: [ // RegistryRecordIdList // required
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* };
|
|
46
|
+
* const command = new BatchGetDiscoverableRegistryRecordCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // BatchGetDiscoverableRegistryRecordResponse
|
|
49
|
+
* // registryRecords: [ // RegistryRecordSummaryList // required
|
|
50
|
+
* // { // RegistryRecordSummary
|
|
51
|
+
* // registryArn: "STRING_VALUE", // required
|
|
52
|
+
* // recordArn: "STRING_VALUE", // required
|
|
53
|
+
* // recordId: "STRING_VALUE", // required
|
|
54
|
+
* // name: "STRING_VALUE", // required
|
|
55
|
+
* // description: "STRING_VALUE",
|
|
56
|
+
* // displayName: "STRING_VALUE",
|
|
57
|
+
* // recordType: "MCP" || "AGENT" || "CUSTOM" || "SKILL", // required
|
|
58
|
+
* // descriptors: { // Descriptors
|
|
59
|
+
* // mcpServer: { // McpServerDescriptor
|
|
60
|
+
* // data: "STRING_VALUE",
|
|
61
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
62
|
+
* // additionalData: { // McpServerAdditionalData
|
|
63
|
+
* // tools: { // McpToolsDescriptor
|
|
64
|
+
* // data: "STRING_VALUE",
|
|
65
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // source: { // DescriptorSource
|
|
69
|
+
* // fromUrl: { // DescriptorSourceFromUrl
|
|
70
|
+
* // url: "STRING_VALUE", // required
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
74
|
+
* // a2aAgentCard: { // A2aAgentCardDescriptor
|
|
75
|
+
* // data: "STRING_VALUE",
|
|
76
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
77
|
+
* // source: {
|
|
78
|
+
* // fromUrl: {
|
|
79
|
+
* // url: "STRING_VALUE", // required
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // agentSkillsDefinition: { // AgentSkillsDefinitionDescriptor
|
|
84
|
+
* // data: "STRING_VALUE",
|
|
85
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
86
|
+
* // additionalData: { // AgentSkillsAdditionalData
|
|
87
|
+
* // skillMd: { // AgentSkillsMdDescriptor
|
|
88
|
+
* // data: "STRING_VALUE",
|
|
89
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
90
|
+
* // source: {
|
|
91
|
+
* // fromUrl: {
|
|
92
|
+
* // url: "STRING_VALUE", // required
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // },
|
|
97
|
+
* // },
|
|
98
|
+
* // custom: { // CustomDescriptor
|
|
99
|
+
* // data: "STRING_VALUE",
|
|
100
|
+
* // },
|
|
101
|
+
* // },
|
|
102
|
+
* // recordVersion: "STRING_VALUE", // required
|
|
103
|
+
* // status: "DRAFT" || "PENDING_APPROVAL" || "APPROVED" || "REJECTED" || "DEPRECATED" || "CREATING" || "UPDATING" || "CREATE_FAILED" || "UPDATE_FAILED", // required
|
|
104
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
105
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
108
|
+
* // errors: [ // BatchGetDiscoverableRegistryRecordErrorList // required
|
|
109
|
+
* // { // BatchGetDiscoverableRegistryRecordError
|
|
110
|
+
* // registryId: "STRING_VALUE", // required
|
|
111
|
+
* // recordId: "STRING_VALUE", // required
|
|
112
|
+
* // errorCode: "RESOURCE_NOT_FOUND" || "ACCESS_DENIED" || "INTERNAL_ERROR", // required
|
|
113
|
+
* // message: "STRING_VALUE",
|
|
114
|
+
* // },
|
|
115
|
+
* // ],
|
|
116
|
+
* // };
|
|
117
|
+
*
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @param BatchGetDiscoverableRegistryRecordCommandInput - {@link BatchGetDiscoverableRegistryRecordCommandInput}
|
|
121
|
+
* @returns {@link BatchGetDiscoverableRegistryRecordCommandOutput}
|
|
122
|
+
* @see {@link BatchGetDiscoverableRegistryRecordCommandInput} for command's `input` shape.
|
|
123
|
+
* @see {@link BatchGetDiscoverableRegistryRecordCommandOutput} for command's `response` shape.
|
|
124
|
+
* @see {@link AgentRegistryClientResolvedConfig | config} for AgentRegistryClient's `config` shape.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
127
|
+
* <p>The caller is not authorized to perform the requested action.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link InternalServerException} (server fault)
|
|
130
|
+
* <p>The request failed due to an unexpected internal error; the caller may retry.</p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
133
|
+
* <p>The requested resource was not found.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
136
|
+
* <p>The request was denied due to request throttling; the caller may retry after a delay.</p>
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
139
|
+
* <p>The request could not be authenticated.</p>
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link ValidationException} (client fault)
|
|
142
|
+
* <p>The request failed validation of one or more input fields.</p>
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link AgentRegistryServiceException}
|
|
145
|
+
* <p>Base exception class for all service exceptions from AgentRegistry service.</p>
|
|
146
|
+
*
|
|
147
|
+
*
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export declare class BatchGetDiscoverableRegistryRecordCommand extends BatchGetDiscoverableRegistryRecordCommand_base {
|
|
151
|
+
/** @internal type navigation helper, not in runtime. */
|
|
152
|
+
protected static __types: {
|
|
153
|
+
api: {
|
|
154
|
+
input: BatchGetDiscoverableRegistryRecordRequest;
|
|
155
|
+
output: BatchGetDiscoverableRegistryRecordResponse;
|
|
156
|
+
};
|
|
157
|
+
sdk: {
|
|
158
|
+
input: BatchGetDiscoverableRegistryRecordCommandInput;
|
|
159
|
+
output: BatchGetDiscoverableRegistryRecordCommandOutput;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListDiscoverableRegistryRecordsRequest, ListDiscoverableRegistryRecordsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListDiscoverableRegistryRecordsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListDiscoverableRegistryRecordsCommandInput extends ListDiscoverableRegistryRecordsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListDiscoverableRegistryRecordsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListDiscoverableRegistryRecordsCommandOutput extends ListDiscoverableRegistryRecordsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListDiscoverableRegistryRecordsCommand_base: {
|
|
22
|
+
new (input: ListDiscoverableRegistryRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListDiscoverableRegistryRecordsCommandInput, ListDiscoverableRegistryRecordsCommandOutput, import("..").AgentRegistryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListDiscoverableRegistryRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListDiscoverableRegistryRecordsCommandInput, ListDiscoverableRegistryRecordsCommandOutput, import("..").AgentRegistryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p> Lists the discoverable registry records in a registry. You can optionally filter and paginate the results.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { AgentRegistryClient, ListDiscoverableRegistryRecordsCommand } from "@aws-sdk/client-agent-registry"; // ES Modules import
|
|
32
|
+
* // const { AgentRegistryClient, ListDiscoverableRegistryRecordsCommand } = require("@aws-sdk/client-agent-registry"); // CommonJS import
|
|
33
|
+
* // import type { AgentRegistryClientConfig } from "@aws-sdk/client-agent-registry";
|
|
34
|
+
* const config = {}; // type is AgentRegistryClientConfig
|
|
35
|
+
* const client = new AgentRegistryClient(config);
|
|
36
|
+
* const input = { // ListDiscoverableRegistryRecordsRequest
|
|
37
|
+
* registryId: "STRING_VALUE", // required
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* filters: [ // RegistryRecordFilterList
|
|
41
|
+
* { // RegistryRecordFilter
|
|
42
|
+
* name: "recordType" || "descriptorType", // required
|
|
43
|
+
* values: [ // DiscoverableFilterValues // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* };
|
|
49
|
+
* const command = new ListDiscoverableRegistryRecordsCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // ListDiscoverableRegistryRecordsResponse
|
|
52
|
+
* // registryRecords: [ // DiscoverableRegistryRecordSummaryList // required
|
|
53
|
+
* // { // DiscoverableRegistryRecordSummary
|
|
54
|
+
* // registryArn: "STRING_VALUE", // required
|
|
55
|
+
* // recordArn: "STRING_VALUE", // required
|
|
56
|
+
* // recordId: "STRING_VALUE", // required
|
|
57
|
+
* // name: "STRING_VALUE", // required
|
|
58
|
+
* // description: "STRING_VALUE",
|
|
59
|
+
* // displayName: "STRING_VALUE",
|
|
60
|
+
* // recordType: "MCP" || "AGENT" || "CUSTOM" || "SKILL", // required
|
|
61
|
+
* // recordVersion: "STRING_VALUE", // required
|
|
62
|
+
* // status: "DRAFT" || "PENDING_APPROVAL" || "APPROVED" || "REJECTED" || "DEPRECATED" || "CREATING" || "UPDATING" || "CREATE_FAILED" || "UPDATE_FAILED", // required
|
|
63
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
64
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // nextToken: "STRING_VALUE",
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param ListDiscoverableRegistryRecordsCommandInput - {@link ListDiscoverableRegistryRecordsCommandInput}
|
|
73
|
+
* @returns {@link ListDiscoverableRegistryRecordsCommandOutput}
|
|
74
|
+
* @see {@link ListDiscoverableRegistryRecordsCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link ListDiscoverableRegistryRecordsCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link AgentRegistryClientResolvedConfig | config} for AgentRegistryClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
79
|
+
* <p>The caller is not authorized to perform the requested action.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>The request failed due to an unexpected internal error; the caller may retry.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The requested resource was not found.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
88
|
+
* <p>The request was denied due to request throttling; the caller may retry after a delay.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
91
|
+
* <p>The request could not be authenticated.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p>The request failed validation of one or more input fields.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link AgentRegistryServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from AgentRegistry service.</p>
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class ListDiscoverableRegistryRecordsCommand extends ListDiscoverableRegistryRecordsCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: ListDiscoverableRegistryRecordsRequest;
|
|
107
|
+
output: ListDiscoverableRegistryRecordsResponse;
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: ListDiscoverableRegistryRecordsCommandInput;
|
|
111
|
+
output: ListDiscoverableRegistryRecordsCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { SearchDiscoverableRegistryRecordsRequest, SearchDiscoverableRegistryRecordsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link SearchDiscoverableRegistryRecordsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface SearchDiscoverableRegistryRecordsCommandInput extends SearchDiscoverableRegistryRecordsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link SearchDiscoverableRegistryRecordsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface SearchDiscoverableRegistryRecordsCommandOutput extends SearchDiscoverableRegistryRecordsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const SearchDiscoverableRegistryRecordsCommand_base: {
|
|
22
|
+
new (input: SearchDiscoverableRegistryRecordsCommandInput): import("@smithy/core/client").CommandImpl<SearchDiscoverableRegistryRecordsCommandInput, SearchDiscoverableRegistryRecordsCommandOutput, import("..").AgentRegistryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: SearchDiscoverableRegistryRecordsCommandInput): import("@smithy/core/client").CommandImpl<SearchDiscoverableRegistryRecordsCommandInput, SearchDiscoverableRegistryRecordsCommandOutput, import("..").AgentRegistryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p> Searches the discoverable registry records in a registry using a natural language query. Returns metadata for the matching records ordered by relevance.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { AgentRegistryClient, SearchDiscoverableRegistryRecordsCommand } from "@aws-sdk/client-agent-registry"; // ES Modules import
|
|
32
|
+
* // const { AgentRegistryClient, SearchDiscoverableRegistryRecordsCommand } = require("@aws-sdk/client-agent-registry"); // CommonJS import
|
|
33
|
+
* // import type { AgentRegistryClientConfig } from "@aws-sdk/client-agent-registry";
|
|
34
|
+
* const config = {}; // type is AgentRegistryClientConfig
|
|
35
|
+
* const client = new AgentRegistryClient(config);
|
|
36
|
+
* const input = { // SearchDiscoverableRegistryRecordsRequest
|
|
37
|
+
* searchQuery: "STRING_VALUE", // required
|
|
38
|
+
* registryIds: [ // RegistryIdList // required
|
|
39
|
+
* "STRING_VALUE",
|
|
40
|
+
* ],
|
|
41
|
+
* maxResults: Number("int"),
|
|
42
|
+
* filters: "DOCUMENT_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new SearchDiscoverableRegistryRecordsCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // SearchDiscoverableRegistryRecordsResponse
|
|
47
|
+
* // registryRecords: [ // RegistryRecordSummaryList // required
|
|
48
|
+
* // { // RegistryRecordSummary
|
|
49
|
+
* // registryArn: "STRING_VALUE", // required
|
|
50
|
+
* // recordArn: "STRING_VALUE", // required
|
|
51
|
+
* // recordId: "STRING_VALUE", // required
|
|
52
|
+
* // name: "STRING_VALUE", // required
|
|
53
|
+
* // description: "STRING_VALUE",
|
|
54
|
+
* // displayName: "STRING_VALUE",
|
|
55
|
+
* // recordType: "MCP" || "AGENT" || "CUSTOM" || "SKILL", // required
|
|
56
|
+
* // descriptors: { // Descriptors
|
|
57
|
+
* // mcpServer: { // McpServerDescriptor
|
|
58
|
+
* // data: "STRING_VALUE",
|
|
59
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
60
|
+
* // additionalData: { // McpServerAdditionalData
|
|
61
|
+
* // tools: { // McpToolsDescriptor
|
|
62
|
+
* // data: "STRING_VALUE",
|
|
63
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // source: { // DescriptorSource
|
|
67
|
+
* // fromUrl: { // DescriptorSourceFromUrl
|
|
68
|
+
* // url: "STRING_VALUE", // required
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // a2aAgentCard: { // A2aAgentCardDescriptor
|
|
73
|
+
* // data: "STRING_VALUE",
|
|
74
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
75
|
+
* // source: {
|
|
76
|
+
* // fromUrl: {
|
|
77
|
+
* // url: "STRING_VALUE", // required
|
|
78
|
+
* // },
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // agentSkillsDefinition: { // AgentSkillsDefinitionDescriptor
|
|
82
|
+
* // data: "STRING_VALUE",
|
|
83
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
84
|
+
* // additionalData: { // AgentSkillsAdditionalData
|
|
85
|
+
* // skillMd: { // AgentSkillsMdDescriptor
|
|
86
|
+
* // data: "STRING_VALUE",
|
|
87
|
+
* // dataSchemaVersion: "STRING_VALUE",
|
|
88
|
+
* // source: {
|
|
89
|
+
* // fromUrl: {
|
|
90
|
+
* // url: "STRING_VALUE", // required
|
|
91
|
+
* // },
|
|
92
|
+
* // },
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // custom: { // CustomDescriptor
|
|
97
|
+
* // data: "STRING_VALUE",
|
|
98
|
+
* // },
|
|
99
|
+
* // },
|
|
100
|
+
* // recordVersion: "STRING_VALUE", // required
|
|
101
|
+
* // status: "DRAFT" || "PENDING_APPROVAL" || "APPROVED" || "REJECTED" || "DEPRECATED" || "CREATING" || "UPDATING" || "CREATE_FAILED" || "UPDATE_FAILED", // required
|
|
102
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
103
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
104
|
+
* // },
|
|
105
|
+
* // ],
|
|
106
|
+
* // };
|
|
107
|
+
*
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @param SearchDiscoverableRegistryRecordsCommandInput - {@link SearchDiscoverableRegistryRecordsCommandInput}
|
|
111
|
+
* @returns {@link SearchDiscoverableRegistryRecordsCommandOutput}
|
|
112
|
+
* @see {@link SearchDiscoverableRegistryRecordsCommandInput} for command's `input` shape.
|
|
113
|
+
* @see {@link SearchDiscoverableRegistryRecordsCommandOutput} for command's `response` shape.
|
|
114
|
+
* @see {@link AgentRegistryClientResolvedConfig | config} for AgentRegistryClient's `config` shape.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
117
|
+
* <p>The caller is not authorized to perform the requested action.</p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link InternalServerException} (server fault)
|
|
120
|
+
* <p>The request failed due to an unexpected internal error; the caller may retry.</p>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
123
|
+
* <p>The requested resource was not found.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
126
|
+
* <p>The request was denied due to request throttling; the caller may retry after a delay.</p>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
129
|
+
* <p>The request could not be authenticated.</p>
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link ValidationException} (client fault)
|
|
132
|
+
* <p>The request failed validation of one or more input fields.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link AgentRegistryServiceException}
|
|
135
|
+
* <p>Base exception class for all service exceptions from AgentRegistry service.</p>
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
export declare class SearchDiscoverableRegistryRecordsCommand extends SearchDiscoverableRegistryRecordsCommand_base {
|
|
141
|
+
/** @internal type navigation helper, not in runtime. */
|
|
142
|
+
protected static __types: {
|
|
143
|
+
api: {
|
|
144
|
+
input: SearchDiscoverableRegistryRecordsRequest;
|
|
145
|
+
output: SearchDiscoverableRegistryRecordsResponse;
|
|
146
|
+
};
|
|
147
|
+
sdk: {
|
|
148
|
+
input: SearchDiscoverableRegistryRecordsCommandInput;
|
|
149
|
+
output: SearchDiscoverableRegistryRecordsCommandOutput;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
13
|
+
defaultSigningName: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const commonParams: {
|
|
23
|
+
readonly Endpoint: {
|
|
24
|
+
readonly type: "builtInParams";
|
|
25
|
+
readonly name: "endpoint";
|
|
26
|
+
};
|
|
27
|
+
readonly Region: {
|
|
28
|
+
readonly type: "builtInParams";
|
|
29
|
+
readonly name: "region";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
36
|
+
Region?: string | undefined;
|
|
37
|
+
Endpoint?: string | undefined;
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
7
|
+
logger?: Logger;
|
|
8
|
+
}) => EndpointV2;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
3
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface AgentRegistryExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Registry lets callers discover, list, and retrieve approved records published to a registry.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./AgentRegistryClient";
|
|
7
|
+
export * from "./AgentRegistry";
|
|
8
|
+
export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export type { AgentRegistryExtensionConfiguration } from "./extensionConfiguration";
|
|
11
|
+
export * from "./commands";
|
|
12
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
13
|
+
export * from "./schemas/schemas_0";
|
|
14
|
+
export * from "./pagination";
|
|
15
|
+
export * from "./models/enums";
|
|
16
|
+
export * from "./models/errors";
|
|
17
|
+
export * from "./models/models_0";
|
|
18
|
+
export { AgentRegistryServiceException } from "./models/AgentRegistryServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from AgentRegistry service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AgentRegistryServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const BatchGetDiscoverableRegistryRecordErrorCode: {
|
|
6
|
+
readonly ACCESS_DENIED: "ACCESS_DENIED";
|
|
7
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
8
|
+
readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type BatchGetDiscoverableRegistryRecordErrorCode = (typeof BatchGetDiscoverableRegistryRecordErrorCode)[keyof typeof BatchGetDiscoverableRegistryRecordErrorCode];
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
* @enum
|
|
17
|
+
*/
|
|
18
|
+
export declare const RecordType: {
|
|
19
|
+
readonly AGENT: "AGENT";
|
|
20
|
+
readonly CUSTOM: "CUSTOM";
|
|
21
|
+
readonly MCP: "MCP";
|
|
22
|
+
readonly SKILL: "SKILL";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type RecordType = (typeof RecordType)[keyof typeof RecordType];
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
* @enum
|
|
31
|
+
*/
|
|
32
|
+
export declare const RegistryRecordStatus: {
|
|
33
|
+
readonly APPROVED: "APPROVED";
|
|
34
|
+
readonly CREATE_FAILED: "CREATE_FAILED";
|
|
35
|
+
readonly CREATING: "CREATING";
|
|
36
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
37
|
+
readonly DRAFT: "DRAFT";
|
|
38
|
+
readonly PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
39
|
+
readonly REJECTED: "REJECTED";
|
|
40
|
+
readonly UPDATE_FAILED: "UPDATE_FAILED";
|
|
41
|
+
readonly UPDATING: "UPDATING";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export type RegistryRecordStatus = (typeof RegistryRecordStatus)[keyof typeof RegistryRecordStatus];
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* @enum
|
|
50
|
+
*/
|
|
51
|
+
export declare const ValidationExceptionReason: {
|
|
52
|
+
readonly CANNOT_PARSE: "CannotParse";
|
|
53
|
+
readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
|
|
54
|
+
readonly IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException";
|
|
55
|
+
readonly RESOURCE_CONFLICT: "ResourceConflict";
|
|
56
|
+
readonly ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession";
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @enum
|
|
65
|
+
*/
|
|
66
|
+
export declare const RegistryRecordFilterName: {
|
|
67
|
+
readonly DESCRIPTOR_TYPE: "descriptorType";
|
|
68
|
+
/**
|
|
69
|
+
* <p> Filters records by record type, such as <code>MCP</code> or <code>AGENT</code>.</p>
|
|
70
|
+
*/
|
|
71
|
+
readonly RECORD_TYPE: "recordType";
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export type RegistryRecordFilterName = (typeof RegistryRecordFilterName)[keyof typeof RegistryRecordFilterName];
|