@effect-aws/client-bedrock-agentcore 1.11.2 → 2.0.0-beta.5

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 (36) hide show
  1. package/README.md +3 -3
  2. package/dist/dts/BedrockAgentCoreClientInstance.d.ts +1 -1
  3. package/dist/dts/BedrockAgentCoreClientInstance.d.ts.map +1 -1
  4. package/dist/dts/BedrockAgentCoreService.d.ts +79 -81
  5. package/dist/dts/BedrockAgentCoreService.d.ts.map +1 -1
  6. package/dist/dts/BedrockAgentCoreServiceConfig.d.ts.map +1 -1
  7. package/dist/esm/BedrockAgentCoreClientInstance.js +2 -2
  8. package/dist/esm/BedrockAgentCoreClientInstance.js.map +1 -1
  9. package/dist/esm/BedrockAgentCoreService.js +2 -1
  10. package/dist/esm/BedrockAgentCoreService.js.map +1 -1
  11. package/dist/esm/BedrockAgentCoreServiceConfig.js +5 -6
  12. package/dist/esm/BedrockAgentCoreServiceConfig.js.map +1 -1
  13. package/package.json +8 -14
  14. package/src/BedrockAgentCoreClientInstance.ts +6 -4
  15. package/src/BedrockAgentCoreService.ts +80 -81
  16. package/src/BedrockAgentCoreServiceConfig.ts +6 -7
  17. package/dist/cjs/BedrockAgentCoreClientInstance.d.ts +0 -26
  18. package/dist/cjs/BedrockAgentCoreClientInstance.d.ts.map +0 -1
  19. package/dist/cjs/BedrockAgentCoreClientInstance.js +0 -52
  20. package/dist/cjs/BedrockAgentCoreClientInstance.js.map +0 -1
  21. package/dist/cjs/BedrockAgentCoreService.d.ts +0 -320
  22. package/dist/cjs/BedrockAgentCoreService.d.ts.map +0 -1
  23. package/dist/cjs/BedrockAgentCoreService.js +0 -138
  24. package/dist/cjs/BedrockAgentCoreService.js.map +0 -1
  25. package/dist/cjs/BedrockAgentCoreServiceConfig.d.ts +0 -26
  26. package/dist/cjs/BedrockAgentCoreServiceConfig.d.ts.map +0 -1
  27. package/dist/cjs/BedrockAgentCoreServiceConfig.js +0 -60
  28. package/dist/cjs/BedrockAgentCoreServiceConfig.js.map +0 -1
  29. package/dist/cjs/Errors.d.ts +0 -21
  30. package/dist/cjs/Errors.d.ts.map +0 -1
  31. package/dist/cjs/Errors.js +0 -20
  32. package/dist/cjs/Errors.js.map +0 -1
  33. package/dist/cjs/index.d.ts +0 -44
  34. package/dist/cjs/index.d.ts.map +0 -1
  35. package/dist/cjs/index.js +0 -56
  36. package/dist/cjs/index.js.map +0 -1
@@ -1,138 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.BedrockAgentCoreService = exports.makeBedrockAgentCoreService = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_bedrock_agentcore_1 = require("@aws-sdk/client-bedrock-agentcore");
31
- const Service = __importStar(require("@effect-aws/commons/Service"));
32
- const Effect = __importStar(require("effect/Effect"));
33
- const Layer = __importStar(require("effect/Layer"));
34
- const Instance = __importStar(require("./BedrockAgentCoreClientInstance.js"));
35
- const BedrockAgentCoreServiceConfig = __importStar(require("./BedrockAgentCoreServiceConfig.js"));
36
- const Errors_js_1 = require("./Errors.js");
37
- const commands = {
38
- BatchCreateMemoryRecordsCommand: client_bedrock_agentcore_1.BatchCreateMemoryRecordsCommand,
39
- BatchDeleteMemoryRecordsCommand: client_bedrock_agentcore_1.BatchDeleteMemoryRecordsCommand,
40
- BatchUpdateMemoryRecordsCommand: client_bedrock_agentcore_1.BatchUpdateMemoryRecordsCommand,
41
- CompleteResourceTokenAuthCommand: client_bedrock_agentcore_1.CompleteResourceTokenAuthCommand,
42
- CreateABTestCommand: client_bedrock_agentcore_1.CreateABTestCommand,
43
- CreateEventCommand: client_bedrock_agentcore_1.CreateEventCommand,
44
- CreatePaymentInstrumentCommand: client_bedrock_agentcore_1.CreatePaymentInstrumentCommand,
45
- CreatePaymentSessionCommand: client_bedrock_agentcore_1.CreatePaymentSessionCommand,
46
- DeleteABTestCommand: client_bedrock_agentcore_1.DeleteABTestCommand,
47
- DeleteBatchEvaluationCommand: client_bedrock_agentcore_1.DeleteBatchEvaluationCommand,
48
- DeleteEventCommand: client_bedrock_agentcore_1.DeleteEventCommand,
49
- DeleteMemoryRecordCommand: client_bedrock_agentcore_1.DeleteMemoryRecordCommand,
50
- DeletePaymentInstrumentCommand: client_bedrock_agentcore_1.DeletePaymentInstrumentCommand,
51
- DeletePaymentSessionCommand: client_bedrock_agentcore_1.DeletePaymentSessionCommand,
52
- DeleteRecommendationCommand: client_bedrock_agentcore_1.DeleteRecommendationCommand,
53
- EvaluateCommand: client_bedrock_agentcore_1.EvaluateCommand,
54
- GetABTestCommand: client_bedrock_agentcore_1.GetABTestCommand,
55
- GetAgentCardCommand: client_bedrock_agentcore_1.GetAgentCardCommand,
56
- GetBatchEvaluationCommand: client_bedrock_agentcore_1.GetBatchEvaluationCommand,
57
- GetBrowserSessionCommand: client_bedrock_agentcore_1.GetBrowserSessionCommand,
58
- GetCodeInterpreterSessionCommand: client_bedrock_agentcore_1.GetCodeInterpreterSessionCommand,
59
- GetEventCommand: client_bedrock_agentcore_1.GetEventCommand,
60
- GetMemoryRecordCommand: client_bedrock_agentcore_1.GetMemoryRecordCommand,
61
- GetPaymentInstrumentCommand: client_bedrock_agentcore_1.GetPaymentInstrumentCommand,
62
- GetPaymentInstrumentBalanceCommand: client_bedrock_agentcore_1.GetPaymentInstrumentBalanceCommand,
63
- GetPaymentSessionCommand: client_bedrock_agentcore_1.GetPaymentSessionCommand,
64
- GetRecommendationCommand: client_bedrock_agentcore_1.GetRecommendationCommand,
65
- GetResourceApiKeyCommand: client_bedrock_agentcore_1.GetResourceApiKeyCommand,
66
- GetResourceOauth2TokenCommand: client_bedrock_agentcore_1.GetResourceOauth2TokenCommand,
67
- GetResourcePaymentTokenCommand: client_bedrock_agentcore_1.GetResourcePaymentTokenCommand,
68
- GetWorkloadAccessTokenCommand: client_bedrock_agentcore_1.GetWorkloadAccessTokenCommand,
69
- GetWorkloadAccessTokenForJWTCommand: client_bedrock_agentcore_1.GetWorkloadAccessTokenForJWTCommand,
70
- GetWorkloadAccessTokenForUserIdCommand: client_bedrock_agentcore_1.GetWorkloadAccessTokenForUserIdCommand,
71
- InvokeAgentRuntimeCommand: client_bedrock_agentcore_1.InvokeAgentRuntimeCommand,
72
- InvokeAgentRuntimeCommandCommand: client_bedrock_agentcore_1.InvokeAgentRuntimeCommandCommand,
73
- InvokeBrowserCommand: client_bedrock_agentcore_1.InvokeBrowserCommand,
74
- InvokeCodeInterpreterCommand: client_bedrock_agentcore_1.InvokeCodeInterpreterCommand,
75
- InvokeHarnessCommand: client_bedrock_agentcore_1.InvokeHarnessCommand,
76
- ListABTestsCommand: client_bedrock_agentcore_1.ListABTestsCommand,
77
- ListActorsCommand: client_bedrock_agentcore_1.ListActorsCommand,
78
- ListBatchEvaluationsCommand: client_bedrock_agentcore_1.ListBatchEvaluationsCommand,
79
- ListBrowserSessionsCommand: client_bedrock_agentcore_1.ListBrowserSessionsCommand,
80
- ListCodeInterpreterSessionsCommand: client_bedrock_agentcore_1.ListCodeInterpreterSessionsCommand,
81
- ListEventsCommand: client_bedrock_agentcore_1.ListEventsCommand,
82
- ListMemoryExtractionJobsCommand: client_bedrock_agentcore_1.ListMemoryExtractionJobsCommand,
83
- ListMemoryRecordsCommand: client_bedrock_agentcore_1.ListMemoryRecordsCommand,
84
- ListPaymentInstrumentsCommand: client_bedrock_agentcore_1.ListPaymentInstrumentsCommand,
85
- ListPaymentSessionsCommand: client_bedrock_agentcore_1.ListPaymentSessionsCommand,
86
- ListRecommendationsCommand: client_bedrock_agentcore_1.ListRecommendationsCommand,
87
- ListSessionsCommand: client_bedrock_agentcore_1.ListSessionsCommand,
88
- ProcessPaymentCommand: client_bedrock_agentcore_1.ProcessPaymentCommand,
89
- RetrieveMemoryRecordsCommand: client_bedrock_agentcore_1.RetrieveMemoryRecordsCommand,
90
- SaveBrowserSessionProfileCommand: client_bedrock_agentcore_1.SaveBrowserSessionProfileCommand,
91
- SearchRegistryRecordsCommand: client_bedrock_agentcore_1.SearchRegistryRecordsCommand,
92
- StartBatchEvaluationCommand: client_bedrock_agentcore_1.StartBatchEvaluationCommand,
93
- StartBrowserSessionCommand: client_bedrock_agentcore_1.StartBrowserSessionCommand,
94
- StartCodeInterpreterSessionCommand: client_bedrock_agentcore_1.StartCodeInterpreterSessionCommand,
95
- StartMemoryExtractionJobCommand: client_bedrock_agentcore_1.StartMemoryExtractionJobCommand,
96
- StartRecommendationCommand: client_bedrock_agentcore_1.StartRecommendationCommand,
97
- StopBatchEvaluationCommand: client_bedrock_agentcore_1.StopBatchEvaluationCommand,
98
- StopBrowserSessionCommand: client_bedrock_agentcore_1.StopBrowserSessionCommand,
99
- StopCodeInterpreterSessionCommand: client_bedrock_agentcore_1.StopCodeInterpreterSessionCommand,
100
- StopRuntimeSessionCommand: client_bedrock_agentcore_1.StopRuntimeSessionCommand,
101
- UpdateABTestCommand: client_bedrock_agentcore_1.UpdateABTestCommand,
102
- UpdateBrowserStreamCommand: client_bedrock_agentcore_1.UpdateBrowserStreamCommand,
103
- };
104
- const paginators = {
105
- paginateListABTests: client_bedrock_agentcore_1.paginateListABTests,
106
- paginateListActors: client_bedrock_agentcore_1.paginateListActors,
107
- paginateListBatchEvaluations: client_bedrock_agentcore_1.paginateListBatchEvaluations,
108
- paginateListEvents: client_bedrock_agentcore_1.paginateListEvents,
109
- paginateListMemoryExtractionJobs: client_bedrock_agentcore_1.paginateListMemoryExtractionJobs,
110
- paginateListMemoryRecords: client_bedrock_agentcore_1.paginateListMemoryRecords,
111
- paginateListPaymentInstruments: client_bedrock_agentcore_1.paginateListPaymentInstruments,
112
- paginateListPaymentSessions: client_bedrock_agentcore_1.paginateListPaymentSessions,
113
- paginateListRecommendations: client_bedrock_agentcore_1.paginateListRecommendations,
114
- paginateListSessions: client_bedrock_agentcore_1.paginateListSessions,
115
- paginateRetrieveMemoryRecords: client_bedrock_agentcore_1.paginateRetrieveMemoryRecords,
116
- };
117
- /**
118
- * @since 1.0.0
119
- * @category constructors
120
- */
121
- exports.makeBedrockAgentCoreService = Effect.gen(function* () {
122
- const client = yield* Instance.BedrockAgentCoreClientInstance;
123
- return yield* Service.fromClientAndCommands(client, commands, {
124
- errorTags: Errors_js_1.AllServiceErrors,
125
- resolveClientConfig: BedrockAgentCoreServiceConfig.toBedrockAgentCoreClientConfig,
126
- }, paginators);
127
- });
128
- /**
129
- * @since 1.0.0
130
- * @category models
131
- */
132
- class BedrockAgentCoreService extends Effect.Tag("@effect-aws/client-bedrock-agentcore/BedrockAgentCoreService")() {
133
- static defaultLayer = Layer.effect(this, exports.makeBedrockAgentCoreService).pipe(Layer.provide(Instance.layer));
134
- static layer = (config) => Layer.effect(this, exports.makeBedrockAgentCoreService).pipe(Layer.provide(Instance.layer), Layer.provide(BedrockAgentCoreServiceConfig.setBedrockAgentCoreServiceConfig(config)));
135
- static baseLayer = (evaluate) => Layer.effect(this, exports.makeBedrockAgentCoreService).pipe(Layer.provide(Layer.effect(Instance.BedrockAgentCoreClientInstance, Effect.map(BedrockAgentCoreServiceConfig.toBedrockAgentCoreClientConfig, evaluate))));
136
- }
137
- exports.BedrockAgentCoreService = BedrockAgentCoreService;
138
- //# sourceMappingURL=BedrockAgentCoreService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BedrockAgentCoreService.js","sourceRoot":"","sources":["../../src/BedrockAgentCoreService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gFAiN2C;AAC3C,qEAAuD;AAIvD,sDAAwC;AACxC,oDAAsC;AAEtC,8EAAgE;AAChE,kGAAoF;AAkBpF,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,+BAA+B,EAA/B,0DAA+B;IAC/B,+BAA+B,EAA/B,0DAA+B;IAC/B,+BAA+B,EAA/B,0DAA+B;IAC/B,gCAAgC,EAAhC,2DAAgC;IAChC,mBAAmB,EAAnB,8CAAmB;IACnB,kBAAkB,EAAlB,6CAAkB;IAClB,8BAA8B,EAA9B,yDAA8B;IAC9B,2BAA2B,EAA3B,sDAA2B;IAC3B,mBAAmB,EAAnB,8CAAmB;IACnB,4BAA4B,EAA5B,uDAA4B;IAC5B,kBAAkB,EAAlB,6CAAkB;IAClB,yBAAyB,EAAzB,oDAAyB;IACzB,8BAA8B,EAA9B,yDAA8B;IAC9B,2BAA2B,EAA3B,sDAA2B;IAC3B,2BAA2B,EAA3B,sDAA2B;IAC3B,eAAe,EAAf,0CAAe;IACf,gBAAgB,EAAhB,2CAAgB;IAChB,mBAAmB,EAAnB,8CAAmB;IACnB,yBAAyB,EAAzB,oDAAyB;IACzB,wBAAwB,EAAxB,mDAAwB;IACxB,gCAAgC,EAAhC,2DAAgC;IAChC,eAAe,EAAf,0CAAe;IACf,sBAAsB,EAAtB,iDAAsB;IACtB,2BAA2B,EAA3B,sDAA2B;IAC3B,kCAAkC,EAAlC,6DAAkC;IAClC,wBAAwB,EAAxB,mDAAwB;IACxB,wBAAwB,EAAxB,mDAAwB;IACxB,wBAAwB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K,CAAC,MAAM,CAAC,IAAI,EAAE,mCAA2B,CAAC,CAAC,IAAI,CAClD,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,8BAA8B,EACvC,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CACnF,CACF,CACF,CAAC;;AApBN,0DAqBC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
5
- import * as Effect from "effect/Effect";
6
- import * as Layer from "effect/Layer";
7
- import type { BedrockAgentCoreService } from "./BedrockAgentCoreService.js";
8
- /**
9
- * @since 1.0.0
10
- * @category bedrock-agentcore service config
11
- */
12
- export declare const withBedrockAgentCoreServiceConfig: {
13
- (config: BedrockAgentCoreService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
14
- <A, E, R>(effect: Effect.Effect<A, E, R>, config: BedrockAgentCoreService.Config): Effect.Effect<A, E, R>;
15
- };
16
- /**
17
- * @since 1.0.0
18
- * @category bedrock-agentcore service config
19
- */
20
- export declare const setBedrockAgentCoreServiceConfig: (config: BedrockAgentCoreService.Config) => Layer.Layer<never, never, never>;
21
- /**
22
- * @since 1.0.0
23
- * @category adapters
24
- */
25
- export declare const toBedrockAgentCoreClientConfig: Effect.Effect<BedrockAgentCoreClientConfig>;
26
- //# sourceMappingURL=BedrockAgentCoreServiceConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BedrockAgentCoreServiceConfig.d.ts","sourceRoot":"","sources":["../../src/BedrockAgentCoreServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAW5E;;;GAGG;AACH,eAAO,MAAM,iCAAiC,EAAE;IAC9C,CAAC,MAAM,EAAE,uBAAuB,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9G,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,uBAAuB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK3G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,WAAY,wBAAwB,MAAM,qCACpB,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAQrF,CAAC"}
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.toBedrockAgentCoreClientConfig = exports.setBedrockAgentCoreServiceConfig = exports.withBedrockAgentCoreServiceConfig = void 0;
27
- const ServiceLogger = __importStar(require("@effect-aws/commons/ServiceLogger"));
28
- const Effect = __importStar(require("effect/Effect"));
29
- const FiberRef = __importStar(require("effect/FiberRef"));
30
- const Function_1 = require("effect/Function");
31
- const GlobalValue_1 = require("effect/GlobalValue");
32
- const Layer = __importStar(require("effect/Layer"));
33
- /**
34
- * @since 1.0.0
35
- * @category bedrock-agentcore service config
36
- */
37
- const currentBedrockAgentCoreServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-bedrock-agentcore/currentBedrockAgentCoreServiceConfig", () => FiberRef.unsafeMake({}));
38
- /**
39
- * @since 1.0.0
40
- * @category bedrock-agentcore service config
41
- */
42
- exports.withBedrockAgentCoreServiceConfig = (0, Function_1.dual)(2, (effect, config) => Effect.locally(effect, currentBedrockAgentCoreServiceConfig, config));
43
- /**
44
- * @since 1.0.0
45
- * @category bedrock-agentcore service config
46
- */
47
- const setBedrockAgentCoreServiceConfig = (config) => Layer.locallyScoped(currentBedrockAgentCoreServiceConfig, config);
48
- exports.setBedrockAgentCoreServiceConfig = setBedrockAgentCoreServiceConfig;
49
- /**
50
- * @since 1.0.0
51
- * @category adapters
52
- */
53
- exports.toBedrockAgentCoreClientConfig = Effect.gen(function* () {
54
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentBedrockAgentCoreServiceConfig);
55
- const logger = serviceLogger === true
56
- ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
57
- : (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
58
- return { logger, ...config };
59
- });
60
- //# sourceMappingURL=BedrockAgentCoreServiceConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BedrockAgentCoreServiceConfig.js","sourceRoot":"","sources":["../../src/BedrockAgentCoreServiceConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,iFAAmE;AACnE,sDAAwC;AACxC,0DAA4C;AAC5C,8CAAuC;AACvC,oDAAiD;AACjD,oDAAsC;AAGtC;;;GAGG;AACH,MAAM,oCAAoC,GAAG,IAAA,yBAAW,EACtD,2EAA2E,EAC3E,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAiC,EAAE,CAAC,CAC9D,CAAC;AAEF;;;GAGG;AACU,QAAA,iCAAiC,GAG1C,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAsC,EAA0B,EAAE,CAC1G,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,oCAAoC,EAAE,MAAM,CAAC,CACvE,CAAC;AAEF;;;GAGG;AACI,MAAM,gCAAgC,GAAG,CAAC,MAAsC,EAAE,EAAE,CACzF,KAAK,CAAC,aAAa,CAAC,oCAAoC,EAAE,MAAM,CAAC,CAAC;AADvD,QAAA,gCAAgC,oCACuB;AAEpE;;;GAGG;AACU,QAAA,8BAA8B,GAAgD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC7G,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;IAEvG,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { AccessDeniedException, ConflictException, DuplicateIdException, InternalServerException, InvalidInputException, ResourceNotFoundException, RetryableConflictException, RuntimeClientError as RuntimeClientException, ServiceException, ServiceQuotaExceededException, ThrottledException, ThrottlingException, UnauthorizedException, ValidationException } from "@aws-sdk/client-bedrock-agentcore";
2
- import type { TaggedException } from "@effect-aws/commons/Errors";
3
- export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "DuplicateIdException", "InternalServerException", "InvalidInputException", "ResourceNotFoundException", "RetryableConflictException", "RuntimeClientError", "ServiceException", "ServiceQuotaExceededException", "ThrottledException", "ThrottlingException", "UnauthorizedException", "ValidationException"];
4
- export type AccessDeniedError = TaggedException<AccessDeniedException>;
5
- export type ConflictError = TaggedException<ConflictException>;
6
- export type DuplicateIdError = TaggedException<DuplicateIdException>;
7
- export type InternalServerError = TaggedException<InternalServerException>;
8
- export type InvalidInputError = TaggedException<InvalidInputException>;
9
- export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
10
- export type RetryableConflictError = TaggedException<RetryableConflictException>;
11
- export type RuntimeClientError = TaggedException<RuntimeClientException>;
12
- export type ServiceError = TaggedException<ServiceException>;
13
- export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
14
- export type ThrottledError = TaggedException<ThrottledException>;
15
- export type ThrottlingError = TaggedException<ThrottlingException>;
16
- export type UnauthorizedError = TaggedException<UnauthorizedException>;
17
- export type ValidationError = TaggedException<ValidationException>;
18
- export type SdkError = TaggedException<Error & {
19
- name: "SdkError";
20
- }>;
21
- //# sourceMappingURL=Errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"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AAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "AccessDeniedException",
6
- "ConflictException",
7
- "DuplicateIdException",
8
- "InternalServerException",
9
- "InvalidInputException",
10
- "ResourceNotFoundException",
11
- "RetryableConflictException",
12
- "RuntimeClientError",
13
- "ServiceException",
14
- "ServiceQuotaExceededException",
15
- "ThrottledException",
16
- "ThrottlingException",
17
- "UnauthorizedException",
18
- "ValidationException",
19
- ];
20
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAkBa,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,sBAAsB;IACtB,yBAAyB;IACzB,uBAAuB;IACvB,2BAA2B;IAC3B,4BAA4B;IAC5B,oBAAoB;IACpB,kBAAkB;IAClB,+BAA+B;IAC/B,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,qBAAqB;CACb,CAAC"}
@@ -1,44 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { BedrockAgentCoreService } from "./BedrockAgentCoreService.js";
5
- /**
6
- * @since 1.0.0
7
- */
8
- export * from "./Errors.js";
9
- /**
10
- * @since 1.0.0
11
- */
12
- export * as BedrockAgentCoreClientInstance from "./BedrockAgentCoreClientInstance.js";
13
- /**
14
- * @since 1.0.0
15
- */
16
- export * as BedrockAgentCoreServiceConfig from "./BedrockAgentCoreServiceConfig.js";
17
- /**
18
- * @since 1.0.0
19
- */
20
- export * from "./BedrockAgentCoreService.js";
21
- /**
22
- * @since 1.0.0
23
- * @category exports
24
- * @alias BedrockAgentCoreService
25
- */
26
- export declare namespace BedrockAgentCore {
27
- /**
28
- * @since 1.0.0
29
- * @alias BedrockAgentCoreService.Config
30
- */
31
- type Config = BedrockAgentCoreService.Config;
32
- /**
33
- * @since 1.0.0
34
- * @alias BedrockAgentCoreService.Type
35
- */
36
- type Type = BedrockAgentCoreService.Type;
37
- }
38
- /**
39
- * @since 1.0.0
40
- * @category exports
41
- * @alias BedrockAgentCoreService
42
- */
43
- export declare const BedrockAgentCore: typeof BedrockAgentCoreService;
44
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,8BAA8B,MAAM,qCAAqC,CAAC;AAEtF;;GAEG;AACH,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AAEpF;;GAEG;AACH,cAAc,8BAA8B,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC;;;OAGG;IACH,KAAY,MAAM,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAEpD;;;OAGG;IACH,KAAY,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;CACjD;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,gCAA0B,CAAC"}
package/dist/cjs/index.js DELETED
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.BedrockAgentCore = exports.BedrockAgentCoreServiceConfig = exports.BedrockAgentCoreClientInstance = void 0;
30
- /**
31
- * @since 1.0.0
32
- */
33
- const BedrockAgentCoreService_js_1 = require("./BedrockAgentCoreService.js");
34
- /**
35
- * @since 1.0.0
36
- */
37
- __exportStar(require("./Errors.js"), exports);
38
- /**
39
- * @since 1.0.0
40
- */
41
- exports.BedrockAgentCoreClientInstance = __importStar(require("./BedrockAgentCoreClientInstance.js"));
42
- /**
43
- * @since 1.0.0
44
- */
45
- exports.BedrockAgentCoreServiceConfig = __importStar(require("./BedrockAgentCoreServiceConfig.js"));
46
- /**
47
- * @since 1.0.0
48
- */
49
- __exportStar(require("./BedrockAgentCoreService.js"), exports);
50
- /**
51
- * @since 1.0.0
52
- * @category exports
53
- * @alias BedrockAgentCoreService
54
- */
55
- exports.BedrockAgentCore = BedrockAgentCoreService_js_1.BedrockAgentCoreService;
56
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,6EAAuE;AAEvE;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,sGAAsF;AAEtF;;GAEG;AACH,oGAAoF;AAEpF;;GAEG;AACH,+DAA6C;AAqB7C;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,oDAAuB,CAAC"}