@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,39 @@
1
+ import {
2
+ Endpoint,
3
+ EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
5
+ Provider,
6
+ } from "@smithy/types";
7
+ export interface ClientInputEndpointParameters {
8
+ region?: string | undefined | Provider<string | undefined>;
9
+ endpoint?:
10
+ | string
11
+ | Provider<string>
12
+ | Endpoint
13
+ | Provider<Endpoint>
14
+ | EndpointV2
15
+ | Provider<EndpointV2>;
16
+ }
17
+ export type ClientResolvedEndpointParameters = Pick<
18
+ ClientInputEndpointParameters,
19
+ Exclude<keyof ClientInputEndpointParameters, "endpoint">
20
+ > & {
21
+ defaultSigningName: string;
22
+ };
23
+ export declare const resolveClientEndpointParameters: <T>(
24
+ options: T & ClientInputEndpointParameters,
25
+ ) => T & ClientResolvedEndpointParameters;
26
+ export declare const commonParams: {
27
+ readonly Endpoint: {
28
+ readonly type: "builtInParams";
29
+ readonly name: "endpoint";
30
+ };
31
+ readonly Region: {
32
+ readonly type: "builtInParams";
33
+ readonly name: "region";
34
+ };
35
+ };
36
+ export interface EndpointParameters extends __EndpointParameters {
37
+ Region?: string | undefined;
38
+ Endpoint?: string | undefined;
39
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ },
8
+ ) => EndpointV2;
@@ -0,0 +1,10 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ export interface AgentRegistryExtensionConfiguration
6
+ extends
7
+ HttpHandlerExtensionConfiguration,
8
+ DefaultExtensionConfiguration,
9
+ AwsRegionExtensionConfiguration,
10
+ HttpAuthExtensionConfiguration {}
@@ -0,0 +1,13 @@
1
+ export * from "./AgentRegistryClient";
2
+ export * from "./AgentRegistry";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { AgentRegistryExtensionConfiguration } from "./extensionConfiguration";
6
+ export * from "./commands";
7
+ export { Command as $Command } from "@smithy/core/client";
8
+ export * from "./schemas/schemas_0";
9
+ export * from "./pagination";
10
+ export * from "./models/enums";
11
+ export * from "./models/errors";
12
+ export * from "./models/models_0";
13
+ export { AgentRegistryServiceException } from "./models/AgentRegistryServiceException";
@@ -0,0 +1,9 @@
1
+ import {
2
+ ServiceExceptionOptions as __ServiceExceptionOptions,
3
+ ServiceException as __ServiceException,
4
+ } from "@smithy/core/client";
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
7
+ export declare class AgentRegistryServiceException extends __ServiceException {
8
+ constructor(options: __ServiceExceptionOptions);
9
+ }
@@ -0,0 +1,41 @@
1
+ export declare const BatchGetDiscoverableRegistryRecordErrorCode: {
2
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
3
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
4
+ readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
5
+ };
6
+ export type BatchGetDiscoverableRegistryRecordErrorCode =
7
+ (typeof BatchGetDiscoverableRegistryRecordErrorCode)[keyof typeof BatchGetDiscoverableRegistryRecordErrorCode];
8
+ export declare const RecordType: {
9
+ readonly AGENT: "AGENT";
10
+ readonly CUSTOM: "CUSTOM";
11
+ readonly MCP: "MCP";
12
+ readonly SKILL: "SKILL";
13
+ };
14
+ export type RecordType = (typeof RecordType)[keyof typeof RecordType];
15
+ export declare const RegistryRecordStatus: {
16
+ readonly APPROVED: "APPROVED";
17
+ readonly CREATE_FAILED: "CREATE_FAILED";
18
+ readonly CREATING: "CREATING";
19
+ readonly DEPRECATED: "DEPRECATED";
20
+ readonly DRAFT: "DRAFT";
21
+ readonly PENDING_APPROVAL: "PENDING_APPROVAL";
22
+ readonly REJECTED: "REJECTED";
23
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
24
+ readonly UPDATING: "UPDATING";
25
+ };
26
+ export type RegistryRecordStatus = (typeof RegistryRecordStatus)[keyof typeof RegistryRecordStatus];
27
+ export declare const ValidationExceptionReason: {
28
+ readonly CANNOT_PARSE: "CannotParse";
29
+ readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
30
+ readonly IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException";
31
+ readonly RESOURCE_CONFLICT: "ResourceConflict";
32
+ readonly ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession";
33
+ };
34
+ export type ValidationExceptionReason =
35
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
36
+ export declare const RegistryRecordFilterName: {
37
+ readonly DESCRIPTOR_TYPE: "descriptorType";
38
+ readonly RECORD_TYPE: "recordType";
39
+ };
40
+ export type RegistryRecordFilterName =
41
+ (typeof RegistryRecordFilterName)[keyof typeof RegistryRecordFilterName];
@@ -0,0 +1,36 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { AgentRegistryServiceException as __BaseException } from "./AgentRegistryServiceException";
3
+ import { ValidationExceptionReason } from "./enums";
4
+ import { ValidationExceptionField } from "./models_0";
5
+ export declare class AccessDeniedException extends __BaseException {
6
+ readonly name: "AccessDeniedException";
7
+ readonly $fault: "client";
8
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
+ }
10
+ export declare class InternalServerException extends __BaseException {
11
+ readonly name: "InternalServerException";
12
+ readonly $fault: "server";
13
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
14
+ }
15
+ export declare class ResourceNotFoundException extends __BaseException {
16
+ readonly name: "ResourceNotFoundException";
17
+ readonly $fault: "client";
18
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
19
+ }
20
+ export declare class ThrottlingException extends __BaseException {
21
+ readonly name: "ThrottlingException";
22
+ readonly $fault: "client";
23
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
24
+ }
25
+ export declare class UnauthorizedException extends __BaseException {
26
+ readonly name: "UnauthorizedException";
27
+ readonly $fault: "client";
28
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
29
+ }
30
+ export declare class ValidationException extends __BaseException {
31
+ readonly name: "ValidationException";
32
+ readonly $fault: "client";
33
+ reason: ValidationExceptionReason | undefined;
34
+ fieldList?: ValidationExceptionField[] | undefined;
35
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
36
+ }
@@ -0,0 +1,124 @@
1
+ import { DocumentType as __DocumentType } from "@smithy/types";
2
+ import {
3
+ BatchGetDiscoverableRegistryRecordErrorCode,
4
+ RecordType,
5
+ RegistryRecordFilterName,
6
+ RegistryRecordStatus,
7
+ } from "./enums";
8
+ export interface DescriptorSourceFromUrl {
9
+ url: string | undefined;
10
+ }
11
+ export interface DescriptorSource {
12
+ fromUrl?: DescriptorSourceFromUrl | undefined;
13
+ }
14
+ export interface A2aAgentCardDescriptor {
15
+ data?: string | undefined;
16
+ dataSchemaVersion?: string | undefined;
17
+ source?: DescriptorSource | undefined;
18
+ }
19
+ export interface RegistryRecordsEntry {
20
+ registryId: string | undefined;
21
+ recordIds: string[] | undefined;
22
+ }
23
+ export interface BatchGetDiscoverableRegistryRecordRequest {
24
+ entries: RegistryRecordsEntry[] | undefined;
25
+ }
26
+ export interface BatchGetDiscoverableRegistryRecordError {
27
+ registryId: string | undefined;
28
+ recordId: string | undefined;
29
+ errorCode: BatchGetDiscoverableRegistryRecordErrorCode | undefined;
30
+ message?: string | undefined;
31
+ }
32
+ export interface AgentSkillsMdDescriptor {
33
+ data?: string | undefined;
34
+ dataSchemaVersion?: string | undefined;
35
+ source?: DescriptorSource | undefined;
36
+ }
37
+ export interface AgentSkillsAdditionalData {
38
+ skillMd?: AgentSkillsMdDescriptor | undefined;
39
+ }
40
+ export interface AgentSkillsDefinitionDescriptor {
41
+ data?: string | undefined;
42
+ dataSchemaVersion?: string | undefined;
43
+ additionalData?: AgentSkillsAdditionalData | undefined;
44
+ }
45
+ export interface CustomDescriptor {
46
+ data?: string | undefined;
47
+ }
48
+ export interface McpToolsDescriptor {
49
+ data?: string | undefined;
50
+ dataSchemaVersion?: string | undefined;
51
+ }
52
+ export interface McpServerAdditionalData {
53
+ tools?: McpToolsDescriptor | undefined;
54
+ }
55
+ export interface McpServerDescriptor {
56
+ data?: string | undefined;
57
+ dataSchemaVersion?: string | undefined;
58
+ additionalData?: McpServerAdditionalData | undefined;
59
+ source?: DescriptorSource | undefined;
60
+ }
61
+ export interface Descriptors {
62
+ mcpServer?: McpServerDescriptor | undefined;
63
+ a2aAgentCard?: A2aAgentCardDescriptor | undefined;
64
+ agentSkillsDefinition?: AgentSkillsDefinitionDescriptor | undefined;
65
+ custom?: CustomDescriptor | undefined;
66
+ }
67
+ export interface RegistryRecordSummary {
68
+ registryArn: string | undefined;
69
+ recordArn: string | undefined;
70
+ recordId: string | undefined;
71
+ name: string | undefined;
72
+ description?: string | undefined;
73
+ displayName?: string | undefined;
74
+ recordType: RecordType | undefined;
75
+ descriptors: Descriptors | undefined;
76
+ recordVersion: string | undefined;
77
+ status: RegistryRecordStatus | undefined;
78
+ createdAt: Date | undefined;
79
+ updatedAt: Date | undefined;
80
+ }
81
+ export interface BatchGetDiscoverableRegistryRecordResponse {
82
+ registryRecords: RegistryRecordSummary[] | undefined;
83
+ errors: BatchGetDiscoverableRegistryRecordError[] | undefined;
84
+ }
85
+ export interface ValidationExceptionField {
86
+ name: string | undefined;
87
+ message: string | undefined;
88
+ }
89
+ export interface RegistryRecordFilter {
90
+ name: RegistryRecordFilterName | undefined;
91
+ values: string[] | undefined;
92
+ }
93
+ export interface ListDiscoverableRegistryRecordsRequest {
94
+ registryId: string | undefined;
95
+ maxResults?: number | undefined;
96
+ nextToken?: string | undefined;
97
+ filters?: RegistryRecordFilter[] | undefined;
98
+ }
99
+ export interface DiscoverableRegistryRecordSummary {
100
+ registryArn: string | undefined;
101
+ recordArn: string | undefined;
102
+ recordId: string | undefined;
103
+ name: string | undefined;
104
+ description?: string | undefined;
105
+ displayName?: string | undefined;
106
+ recordType: RecordType | undefined;
107
+ recordVersion: string | undefined;
108
+ status: RegistryRecordStatus | undefined;
109
+ createdAt: Date | undefined;
110
+ updatedAt: Date | undefined;
111
+ }
112
+ export interface ListDiscoverableRegistryRecordsResponse {
113
+ registryRecords: DiscoverableRegistryRecordSummary[] | undefined;
114
+ nextToken?: string | undefined;
115
+ }
116
+ export interface SearchDiscoverableRegistryRecordsRequest {
117
+ searchQuery: string | undefined;
118
+ registryIds: string[] | undefined;
119
+ maxResults?: number | undefined;
120
+ filters?: __DocumentType | undefined;
121
+ }
122
+ export interface SearchDiscoverableRegistryRecordsResponse {
123
+ registryRecords: RegistryRecordSummary[] | undefined;
124
+ }
@@ -0,0 +1,5 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { AgentRegistryClient } from "../AgentRegistryClient";
3
+ export interface AgentRegistryPaginationConfiguration extends PaginationConfiguration {
4
+ client: AgentRegistryClient;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListDiscoverableRegistryRecordsCommandInput,
4
+ ListDiscoverableRegistryRecordsCommandOutput,
5
+ } from "../commands/ListDiscoverableRegistryRecordsCommand";
6
+ import { AgentRegistryPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListDiscoverableRegistryRecords: (
8
+ config: AgentRegistryPaginationConfiguration,
9
+ input: ListDiscoverableRegistryRecordsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListDiscoverableRegistryRecordsCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListDiscoverableRegistryRecordsPaginator";
@@ -0,0 +1,95 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { AgentRegistryClientConfig } from "./AgentRegistryClient";
3
+ export declare const getRuntimeConfig: (config: AgentRegistryClientConfig) => {
4
+ runtime: string;
5
+ defaultsMode: import("@smithy/types").Provider<
6
+ import("@smithy/core/client").ResolvedDefaultsMode
7
+ >;
8
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
+ defaultUserAgentProvider: (
13
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
14
+ ) => Promise<import("@smithy/types").UserAgent>;
15
+ maxAttempts: number | import("@smithy/types").Provider<number>;
16
+ region: string | import("@smithy/types").Provider<any>;
17
+ requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
18
+ retryMode: string | import("@smithy/types").Provider<string>;
19
+ streamCollector: (
20
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
21
+ ) => Promise<Uint8Array>;
22
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
23
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
24
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
25
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
26
+ cacheMiddleware?: boolean | undefined;
27
+ protocol:
28
+ | import("@smithy/types").ClientProtocol<any, any>
29
+ | import("@smithy/types").ClientProtocolCtor<any, any>
30
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
31
+ protocolSettings: {
32
+ defaultNamespace?: string;
33
+ [setting: string]: unknown;
34
+ };
35
+ apiVersion: string;
36
+ sha256: import("@smithy/types").HashConstructor;
37
+ urlParser: import("@smithy/types").UrlParser;
38
+ base64Decoder: import("@smithy/types").Decoder;
39
+ base64Encoder: (_input: Uint8Array | string) => string;
40
+ utf8Decoder: import("@smithy/types").Decoder;
41
+ utf8Encoder: (input: Uint8Array | string) => string;
42
+ disableHostPrefix: boolean;
43
+ serviceId: string;
44
+ profile?: string;
45
+ logger: import("@smithy/types").Logger;
46
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
47
+ customUserAgent?: string | import("@smithy/types").UserAgent;
48
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
49
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
50
+ endpoint?:
51
+ | ((
52
+ | string
53
+ | import("@smithy/types").Endpoint
54
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
55
+ | import("@smithy/types").EndpointV2
56
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ ) &
58
+ (
59
+ | string
60
+ | import("@smithy/types").Provider<string>
61
+ | import("@smithy/types").Endpoint
62
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
63
+ | import("@smithy/types").EndpointV2
64
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
65
+ ))
66
+ | undefined;
67
+ endpointProvider: (
68
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
69
+ context?: {
70
+ logger?: import("@smithy/types").Logger;
71
+ },
72
+ ) => import("@smithy/types").EndpointV2;
73
+ tls?: boolean;
74
+ ignoreConfiguredEndpointUrls?: boolean;
75
+ serviceConfiguredEndpoint?: never;
76
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
77
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
78
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AgentRegistryHttpAuthSchemeProvider;
79
+ credentials?:
80
+ | import("@smithy/types").AwsCredentialIdentity
81
+ | import("@smithy/types").AwsCredentialIdentityProvider;
82
+ signer?:
83
+ | import("@smithy/types").RequestSigner
84
+ | ((
85
+ authScheme?: import("@smithy/types").AuthScheme,
86
+ ) => Promise<import("@smithy/types").RequestSigner>);
87
+ signingEscapePath?: boolean;
88
+ systemClockOffset?: number;
89
+ signingRegion?: string;
90
+ signerConstructor?: new (
91
+ options: import("@smithy/signature-v4").SignatureV4Init &
92
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
93
+ ) => import("@smithy/types").RequestSigner;
94
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
95
+ };
@@ -0,0 +1,95 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { AgentRegistryClientConfig } from "./AgentRegistryClient";
3
+ export declare const getRuntimeConfig: (config: AgentRegistryClientConfig) => {
4
+ runtime: string;
5
+ defaultsMode: import("@smithy/types").Provider<
6
+ import("@smithy/core/client").ResolvedDefaultsMode
7
+ >;
8
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider:
11
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
12
+ | ((
13
+ init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
14
+ ) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
15
+ defaultUserAgentProvider: (
16
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
17
+ ) => Promise<import("@smithy/types").UserAgent>;
18
+ maxAttempts: number | import("@smithy/types").Provider<number>;
19
+ region: string | import("@smithy/types").Provider<string>;
20
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
21
+ retryMode: string | import("@smithy/types").Provider<string>;
22
+ streamCollector: (
23
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
24
+ ) => Promise<Uint8Array>;
25
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
26
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
28
+ cacheMiddleware?: boolean | undefined;
29
+ protocol:
30
+ | import("@smithy/types").ClientProtocol<any, any>
31
+ | import("@smithy/types").ClientProtocolCtor<any, any>
32
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
33
+ protocolSettings: {
34
+ defaultNamespace?: string;
35
+ [setting: string]: unknown;
36
+ };
37
+ apiVersion: string;
38
+ sha256: import("@smithy/types").HashConstructor;
39
+ urlParser: import("@smithy/types").UrlParser;
40
+ base64Decoder: import("@smithy/types").Decoder;
41
+ base64Encoder: (_input: Uint8Array | string) => string;
42
+ utf8Decoder: import("@smithy/types").Decoder;
43
+ utf8Encoder: (input: Uint8Array | string) => string;
44
+ disableHostPrefix: boolean;
45
+ serviceId: string;
46
+ profile?: string;
47
+ logger: import("@smithy/types").Logger;
48
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
49
+ customUserAgent?: string | import("@smithy/types").UserAgent;
50
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
51
+ endpoint?:
52
+ | ((
53
+ | string
54
+ | import("@smithy/types").Endpoint
55
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
+ | import("@smithy/types").EndpointV2
57
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
58
+ ) &
59
+ (
60
+ | string
61
+ | import("@smithy/types").Provider<string>
62
+ | import("@smithy/types").Endpoint
63
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
64
+ | import("@smithy/types").EndpointV2
65
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
66
+ ))
67
+ | undefined;
68
+ endpointProvider: (
69
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
70
+ context?: {
71
+ logger?: import("@smithy/types").Logger;
72
+ },
73
+ ) => import("@smithy/types").EndpointV2;
74
+ tls?: boolean;
75
+ ignoreConfiguredEndpointUrls?: boolean;
76
+ serviceConfiguredEndpoint?: never;
77
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
78
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AgentRegistryHttpAuthSchemeProvider;
79
+ credentials?:
80
+ | import("@smithy/types").AwsCredentialIdentity
81
+ | import("@smithy/types").AwsCredentialIdentityProvider;
82
+ signer?:
83
+ | import("@smithy/types").RequestSigner
84
+ | ((
85
+ authScheme?: import("@smithy/types").AuthScheme,
86
+ ) => Promise<import("@smithy/types").RequestSigner>);
87
+ signingEscapePath?: boolean;
88
+ systemClockOffset?: number;
89
+ signingRegion?: string;
90
+ signerConstructor?: new (
91
+ options: import("@smithy/signature-v4").SignatureV4Init &
92
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
93
+ ) => import("@smithy/types").RequestSigner;
94
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
95
+ };
@@ -0,0 +1,99 @@
1
+ import { AgentRegistryClientConfig } from "./AgentRegistryClient";
2
+ export declare const getRuntimeConfig: (config: AgentRegistryClientConfig) => {
3
+ runtime: string;
4
+ requestHandler:
5
+ | import("@smithy/types").NodeHttpHandlerOptions
6
+ | import("@smithy/types").FetchHttpHandlerOptions
7
+ | Record<string, unknown>
8
+ | import("@smithy/core/protocols").HttpHandler<any>
9
+ | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
+ cacheMiddleware?: boolean;
11
+ protocol:
12
+ | import("@smithy/types").ClientProtocol<any, any>
13
+ | import("@smithy/types").ClientProtocolCtor<any, any>
14
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
15
+ protocolSettings: {
16
+ defaultNamespace?: string;
17
+ [setting: string]: unknown;
18
+ };
19
+ apiVersion: string;
20
+ sha256: import("@smithy/types").HashConstructor;
21
+ urlParser: import("@smithy/types").UrlParser;
22
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
+ streamCollector: (
24
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
25
+ ) => Promise<Uint8Array>;
26
+ base64Decoder: import("@smithy/types").Decoder;
27
+ base64Encoder: (_input: Uint8Array | string) => string;
28
+ utf8Decoder: import("@smithy/types").Decoder;
29
+ utf8Encoder: (input: Uint8Array | string) => string;
30
+ disableHostPrefix: boolean;
31
+ serviceId: string;
32
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
33
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
34
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
35
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
36
+ region: string | import("@smithy/types").Provider<any>;
37
+ profile?: string;
38
+ defaultUserAgentProvider: (
39
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
40
+ ) => Promise<import("@smithy/types").UserAgent>;
41
+ credentialDefaultProvider:
42
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
43
+ | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
44
+ maxAttempts: number | import("@smithy/types").Provider<number>;
45
+ retryMode: string | import("@smithy/types").Provider<string>;
46
+ logger: import("@smithy/types").Logger;
47
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
48
+ defaultsMode:
49
+ | import("@smithy/core/client").DefaultsMode
50
+ | import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
51
+ customUserAgent?: string | import("@smithy/types").UserAgent;
52
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
53
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
54
+ endpoint?:
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
70
+ | undefined;
71
+ endpointProvider: (
72
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
73
+ context?: {
74
+ logger?: import("@smithy/types").Logger;
75
+ },
76
+ ) => import("@smithy/types").EndpointV2;
77
+ tls?: boolean;
78
+ ignoreConfiguredEndpointUrls?: boolean;
79
+ serviceConfiguredEndpoint?: never;
80
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
81
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
82
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AgentRegistryHttpAuthSchemeProvider;
83
+ credentials?:
84
+ | import("@smithy/types").AwsCredentialIdentity
85
+ | import("@smithy/types").AwsCredentialIdentityProvider;
86
+ signer?:
87
+ | import("@smithy/types").RequestSigner
88
+ | ((
89
+ authScheme?: import("@smithy/types").AuthScheme,
90
+ ) => Promise<import("@smithy/types").RequestSigner>);
91
+ signingEscapePath?: boolean;
92
+ systemClockOffset?: number;
93
+ signingRegion?: string;
94
+ signerConstructor?: new (
95
+ options: import("@smithy/signature-v4").SignatureV4Init &
96
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
97
+ ) => import("@smithy/types").RequestSigner;
98
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
99
+ };
@@ -0,0 +1,31 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
+ import { AgentRegistryClientConfig } from "./AgentRegistryClient";
3
+ export declare const getRuntimeConfig: (config: AgentRegistryClientConfig) => {
4
+ apiVersion: string;
5
+ base64Decoder: import("@smithy/types").Decoder;
6
+ base64Encoder: (_input: Uint8Array | string) => string;
7
+ disableHostPrefix: boolean;
8
+ endpointProvider: (
9
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
10
+ context?: {
11
+ logger?: import("@smithy/types").Logger;
12
+ },
13
+ ) => import("@smithy/types").EndpointV2;
14
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
15
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AgentRegistryHttpAuthSchemeProvider;
16
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
17
+ logger: import("@smithy/types").Logger;
18
+ protocol:
19
+ | import("@smithy/types").ClientProtocol<any, any>
20
+ | import("@smithy/types").ClientProtocolCtor<any, any>
21
+ | typeof AwsRestJsonProtocol;
22
+ protocolSettings: {
23
+ [setting: string]: unknown;
24
+ defaultNamespace?: string;
25
+ };
26
+ serviceId: string;
27
+ sha256: import("@smithy/types").HashConstructor;
28
+ urlParser: import("@smithy/types").UrlParser;
29
+ utf8Decoder: import("@smithy/types").Decoder;
30
+ utf8Encoder: (input: Uint8Array | string) => string;
31
+ };
@@ -0,0 +1,11 @@
1
+ import { AgentRegistryExtensionConfiguration } from "./extensionConfiguration";
2
+ export interface RuntimeExtension {
3
+ configure(extensionConfiguration: AgentRegistryExtensionConfiguration): void;
4
+ }
5
+ export interface RuntimeExtensionsConfig {
6
+ extensions: RuntimeExtension[];
7
+ }
8
+ export declare const resolveRuntimeExtensions: (
9
+ runtimeConfig: any,
10
+ extensions: RuntimeExtension[],
11
+ ) => any;