@effect-aws/client-bedrock 1.2.0 → 1.9.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 (69) hide show
  1. package/BedrockClientInstance/package.json +6 -0
  2. package/BedrockService/package.json +6 -0
  3. package/BedrockServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +1 -1
  6. package/dist/cjs/BedrockClientInstance.d.ts +24 -0
  7. package/dist/cjs/BedrockClientInstance.d.ts.map +1 -0
  8. package/dist/cjs/BedrockClientInstance.js +50 -0
  9. package/dist/cjs/BedrockClientInstance.js.map +1 -0
  10. package/{lib → dist/cjs}/BedrockService.d.ts +16 -38
  11. package/dist/cjs/BedrockService.d.ts.map +1 -0
  12. package/dist/cjs/BedrockService.js +113 -0
  13. package/dist/cjs/BedrockService.js.map +1 -0
  14. package/dist/cjs/BedrockServiceConfig.d.ts +25 -0
  15. package/dist/cjs/BedrockServiceConfig.d.ts.map +1 -0
  16. package/dist/cjs/BedrockServiceConfig.js +35 -0
  17. package/dist/cjs/BedrockServiceConfig.js.map +1 -0
  18. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  19. package/dist/cjs/Errors.d.ts.map +1 -0
  20. package/dist/cjs/Errors.js +17 -0
  21. package/dist/cjs/Errors.js.map +1 -0
  22. package/dist/cjs/index.d.ts +39 -0
  23. package/dist/cjs/index.d.ts.map +1 -0
  24. package/dist/cjs/index.js +56 -0
  25. package/dist/cjs/index.js.map +1 -0
  26. package/dist/dts/BedrockClientInstance.d.ts +24 -0
  27. package/dist/dts/BedrockClientInstance.d.ts.map +1 -0
  28. package/dist/dts/BedrockService.d.ts +328 -0
  29. package/dist/dts/BedrockService.d.ts.map +1 -0
  30. package/dist/dts/BedrockServiceConfig.d.ts +25 -0
  31. package/dist/dts/BedrockServiceConfig.d.ts.map +1 -0
  32. package/dist/dts/Errors.d.ts +16 -0
  33. package/dist/dts/Errors.d.ts.map +1 -0
  34. package/dist/dts/index.d.ts +39 -0
  35. package/dist/dts/index.d.ts.map +1 -0
  36. package/dist/esm/BedrockClientInstance.js +23 -0
  37. package/dist/esm/BedrockClientInstance.js.map +1 -0
  38. package/dist/esm/BedrockService.js +86 -0
  39. package/dist/esm/BedrockService.js.map +1 -0
  40. package/dist/esm/BedrockServiceConfig.js +31 -0
  41. package/dist/esm/BedrockServiceConfig.js.map +1 -0
  42. package/dist/esm/Errors.js +14 -0
  43. package/dist/esm/Errors.js.map +1 -0
  44. package/dist/esm/index.js +27 -0
  45. package/dist/esm/index.js.map +1 -0
  46. package/dist/esm/package.json +4 -0
  47. package/package.json +60 -43
  48. package/src/BedrockClientInstance.ts +33 -0
  49. package/src/BedrockService.ts +1088 -0
  50. package/src/BedrockServiceConfig.ts +52 -0
  51. package/src/Errors.ts +38 -0
  52. package/src/index.ts +44 -0
  53. package/CHANGELOG.md +0 -19
  54. package/docgen.json +0 -8
  55. package/lib/BedrockClientInstance.d.ts +0 -31
  56. package/lib/BedrockClientInstance.js +0 -57
  57. package/lib/BedrockClientInstanceConfig.d.ts +0 -23
  58. package/lib/BedrockClientInstanceConfig.js +0 -44
  59. package/lib/BedrockService.js +0 -145
  60. package/lib/Errors.js +0 -17
  61. package/lib/esm/BedrockClientInstance.js +0 -30
  62. package/lib/esm/BedrockClientInstanceConfig.js +0 -40
  63. package/lib/esm/BedrockService.js +0 -141
  64. package/lib/esm/Errors.js +0 -14
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/BedrockClientInstance.js",
3
+ "module": "../dist/esm/BedrockClientInstance.js",
4
+ "types": "../dist/dts/BedrockClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/BedrockService.js",
3
+ "module": "../dist/esm/BedrockService.js",
4
+ "types": "../dist/dts/BedrockService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/BedrockServiceConfig.js",
3
+ "module": "../dist/esm/BedrockServiceConfig.js",
4
+ "types": "../dist/dts/BedrockServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2024 Victor Korzunin
1
+ Copyright (c) 2025 Victor Korzunin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { BedrockClient } from "@aws-sdk/client-bedrock";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const BedrockClientInstance_base: Context.TagClass<BedrockClientInstance, "@effect-aws/client-bedrock/BedrockClientInstance", BedrockClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class BedrockClientInstance extends BedrockClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<BedrockClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<BedrockClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=BedrockClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockClientInstance.d.ts","sourceRoot":"","sources":["../../src/BedrockClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,0BAEF;CAAG;AAE5C;;;GAGG;AACH,eAAO,MAAM,IAAI,mEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAA4C,CAAC"}
@@ -0,0 +1,50 @@
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.layer = exports.make = exports.BedrockClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_bedrock_1 = require("@aws-sdk/client-bedrock");
31
+ const effect_1 = require("effect");
32
+ const BedrockServiceConfig = __importStar(require("./BedrockServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class BedrockClientInstance extends effect_1.Context.Tag("@effect-aws/client-bedrock/BedrockClientInstance")() {
38
+ }
39
+ exports.BedrockClientInstance = BedrockClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(BedrockServiceConfig.toBedrockClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_bedrock_1.BedrockClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
+ /**
46
+ * @since 1.0.0
47
+ * @category layers
48
+ */
49
+ exports.layer = effect_1.Layer.scoped(BedrockClientInstance, exports.make);
50
+ //# sourceMappingURL=BedrockClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockClientInstance.js","sourceRoot":"","sources":["../../src/BedrockClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAAwD;AACxD,mCAAgD;AAChD,gFAAkE;AAElE;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,gBAAO,CAAC,GAAG,CACpD,kDAAkD,CACnD,EAAwC;CAAG;AAF5C,sDAE4C;AAE5C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,8BAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,YAAI,CAAC,CAAC"}
@@ -1,21 +1,11 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { type BedrockClient, type BedrockClientConfig, type BatchDeleteEvaluationJobCommandInput, type BatchDeleteEvaluationJobCommandOutput, type CreateEvaluationJobCommandInput, type CreateEvaluationJobCommandOutput, type CreateGuardrailCommandInput, type CreateGuardrailCommandOutput, type CreateGuardrailVersionCommandInput, type CreateGuardrailVersionCommandOutput, type CreateInferenceProfileCommandInput, type CreateInferenceProfileCommandOutput, type CreateMarketplaceModelEndpointCommandInput, type CreateMarketplaceModelEndpointCommandOutput, type CreateModelCopyJobCommandInput, type CreateModelCopyJobCommandOutput, type CreateModelCustomizationJobCommandInput, type CreateModelCustomizationJobCommandOutput, type CreateModelImportJobCommandInput, type CreateModelImportJobCommandOutput, type CreateModelInvocationJobCommandInput, type CreateModelInvocationJobCommandOutput, type CreateProvisionedModelThroughputCommandInput, type CreateProvisionedModelThroughputCommandOutput, type DeleteCustomModelCommandInput, type DeleteCustomModelCommandOutput, type DeleteGuardrailCommandInput, type DeleteGuardrailCommandOutput, type DeleteImportedModelCommandInput, type DeleteImportedModelCommandOutput, type DeleteInferenceProfileCommandInput, type DeleteInferenceProfileCommandOutput, type DeleteMarketplaceModelEndpointCommandInput, type DeleteMarketplaceModelEndpointCommandOutput, type DeleteModelInvocationLoggingConfigurationCommandInput, type DeleteModelInvocationLoggingConfigurationCommandOutput, type DeleteProvisionedModelThroughputCommandInput, type DeleteProvisionedModelThroughputCommandOutput, type DeregisterMarketplaceModelEndpointCommandInput, type DeregisterMarketplaceModelEndpointCommandOutput, type GetCustomModelCommandInput, type GetCustomModelCommandOutput, type GetEvaluationJobCommandInput, type GetEvaluationJobCommandOutput, type GetFoundationModelCommandInput, type GetFoundationModelCommandOutput, type GetGuardrailCommandInput, type GetGuardrailCommandOutput, type GetImportedModelCommandInput, type GetImportedModelCommandOutput, type GetInferenceProfileCommandInput, type GetInferenceProfileCommandOutput, type GetMarketplaceModelEndpointCommandInput, type GetMarketplaceModelEndpointCommandOutput, type GetModelCopyJobCommandInput, type GetModelCopyJobCommandOutput, type GetModelCustomizationJobCommandInput, type GetModelCustomizationJobCommandOutput, type GetModelImportJobCommandInput, type GetModelImportJobCommandOutput, type GetModelInvocationJobCommandInput, type GetModelInvocationJobCommandOutput, type GetModelInvocationLoggingConfigurationCommandInput, type GetModelInvocationLoggingConfigurationCommandOutput, type GetPromptRouterCommandInput, type GetPromptRouterCommandOutput, type GetProvisionedModelThroughputCommandInput, type GetProvisionedModelThroughputCommandOutput, type ListCustomModelsCommandInput, type ListCustomModelsCommandOutput, type ListEvaluationJobsCommandInput, type ListEvaluationJobsCommandOutput, type ListFoundationModelsCommandInput, type ListFoundationModelsCommandOutput, type ListGuardrailsCommandInput, type ListGuardrailsCommandOutput, type ListImportedModelsCommandInput, type ListImportedModelsCommandOutput, type ListInferenceProfilesCommandInput, type ListInferenceProfilesCommandOutput, type ListMarketplaceModelEndpointsCommandInput, type ListMarketplaceModelEndpointsCommandOutput, type ListModelCopyJobsCommandInput, type ListModelCopyJobsCommandOutput, type ListModelCustomizationJobsCommandInput, type ListModelCustomizationJobsCommandOutput, type ListModelImportJobsCommandInput, type ListModelImportJobsCommandOutput, type ListModelInvocationJobsCommandInput, type ListModelInvocationJobsCommandOutput, type ListPromptRoutersCommandInput, type ListPromptRoutersCommandOutput, type ListProvisionedModelThroughputsCommandInput, type ListProvisionedModelThroughputsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type PutModelInvocationLoggingConfigurationCommandInput, type PutModelInvocationLoggingConfigurationCommandOutput, type RegisterMarketplaceModelEndpointCommandInput, type RegisterMarketplaceModelEndpointCommandOutput, type StopEvaluationJobCommandInput, type StopEvaluationJobCommandOutput, type StopModelCustomizationJobCommandInput, type StopModelCustomizationJobCommandOutput, type StopModelInvocationJobCommandInput, type StopModelInvocationJobCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateGuardrailCommandInput, type UpdateGuardrailCommandOutput, type UpdateMarketplaceModelEndpointCommandInput, type UpdateMarketplaceModelEndpointCommandOutput, type UpdateProvisionedModelThroughputCommandInput, type UpdateProvisionedModelThroughputCommandOutput } from "@aws-sdk/client-bedrock";
4
+ import { type BatchDeleteEvaluationJobCommandInput, type BatchDeleteEvaluationJobCommandOutput, type BedrockClient, type BedrockClientConfig, type CreateEvaluationJobCommandInput, type CreateEvaluationJobCommandOutput, type CreateGuardrailCommandInput, type CreateGuardrailCommandOutput, type CreateGuardrailVersionCommandInput, type CreateGuardrailVersionCommandOutput, type CreateInferenceProfileCommandInput, type CreateInferenceProfileCommandOutput, type CreateMarketplaceModelEndpointCommandInput, type CreateMarketplaceModelEndpointCommandOutput, type CreateModelCopyJobCommandInput, type CreateModelCopyJobCommandOutput, type CreateModelCustomizationJobCommandInput, type CreateModelCustomizationJobCommandOutput, type CreateModelImportJobCommandInput, type CreateModelImportJobCommandOutput, type CreateModelInvocationJobCommandInput, type CreateModelInvocationJobCommandOutput, type CreateProvisionedModelThroughputCommandInput, type CreateProvisionedModelThroughputCommandOutput, type DeleteCustomModelCommandInput, type DeleteCustomModelCommandOutput, type DeleteGuardrailCommandInput, type DeleteGuardrailCommandOutput, type DeleteImportedModelCommandInput, type DeleteImportedModelCommandOutput, type DeleteInferenceProfileCommandInput, type DeleteInferenceProfileCommandOutput, type DeleteMarketplaceModelEndpointCommandInput, type DeleteMarketplaceModelEndpointCommandOutput, type DeleteModelInvocationLoggingConfigurationCommandInput, type DeleteModelInvocationLoggingConfigurationCommandOutput, type DeleteProvisionedModelThroughputCommandInput, type DeleteProvisionedModelThroughputCommandOutput, type DeregisterMarketplaceModelEndpointCommandInput, type DeregisterMarketplaceModelEndpointCommandOutput, type GetCustomModelCommandInput, type GetCustomModelCommandOutput, type GetEvaluationJobCommandInput, type GetEvaluationJobCommandOutput, type GetFoundationModelCommandInput, type GetFoundationModelCommandOutput, type GetGuardrailCommandInput, type GetGuardrailCommandOutput, type GetImportedModelCommandInput, type GetImportedModelCommandOutput, type GetInferenceProfileCommandInput, type GetInferenceProfileCommandOutput, type GetMarketplaceModelEndpointCommandInput, type GetMarketplaceModelEndpointCommandOutput, type GetModelCopyJobCommandInput, type GetModelCopyJobCommandOutput, type GetModelCustomizationJobCommandInput, type GetModelCustomizationJobCommandOutput, type GetModelImportJobCommandInput, type GetModelImportJobCommandOutput, type GetModelInvocationJobCommandInput, type GetModelInvocationJobCommandOutput, type GetModelInvocationLoggingConfigurationCommandInput, type GetModelInvocationLoggingConfigurationCommandOutput, type GetPromptRouterCommandInput, type GetPromptRouterCommandOutput, type GetProvisionedModelThroughputCommandInput, type GetProvisionedModelThroughputCommandOutput, type ListCustomModelsCommandInput, type ListCustomModelsCommandOutput, type ListEvaluationJobsCommandInput, type ListEvaluationJobsCommandOutput, type ListFoundationModelsCommandInput, type ListFoundationModelsCommandOutput, type ListGuardrailsCommandInput, type ListGuardrailsCommandOutput, type ListImportedModelsCommandInput, type ListImportedModelsCommandOutput, type ListInferenceProfilesCommandInput, type ListInferenceProfilesCommandOutput, type ListMarketplaceModelEndpointsCommandInput, type ListMarketplaceModelEndpointsCommandOutput, type ListModelCopyJobsCommandInput, type ListModelCopyJobsCommandOutput, type ListModelCustomizationJobsCommandInput, type ListModelCustomizationJobsCommandOutput, type ListModelImportJobsCommandInput, type ListModelImportJobsCommandOutput, type ListModelInvocationJobsCommandInput, type ListModelInvocationJobsCommandOutput, type ListPromptRoutersCommandInput, type ListPromptRoutersCommandOutput, type ListProvisionedModelThroughputsCommandInput, type ListProvisionedModelThroughputsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type PutModelInvocationLoggingConfigurationCommandInput, type PutModelInvocationLoggingConfigurationCommandOutput, type RegisterMarketplaceModelEndpointCommandInput, type RegisterMarketplaceModelEndpointCommandOutput, type StopEvaluationJobCommandInput, type StopEvaluationJobCommandOutput, type StopModelCustomizationJobCommandInput, type StopModelCustomizationJobCommandOutput, type StopModelInvocationJobCommandInput, type StopModelInvocationJobCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateGuardrailCommandInput, type UpdateGuardrailCommandOutput, type UpdateMarketplaceModelEndpointCommandInput, type UpdateMarketplaceModelEndpointCommandOutput, type UpdateProvisionedModelThroughputCommandInput, type UpdateProvisionedModelThroughputCommandOutput } from "@aws-sdk/client-bedrock";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
5
6
  import { Effect, Layer } from "effect";
6
- import { BedrockClientInstance } from "./BedrockClientInstance";
7
- import { BedrockClientInstanceConfig } from "./BedrockClientInstanceConfig";
8
- import { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, TooManyTagsError, ValidationError, SdkError } from "./Errors";
9
- /**
10
- * @since 1.0.0
11
- */
12
- export interface HttpHandlerOptions {
13
- /**
14
- * The maximum time in milliseconds that the connection phase of a request
15
- * may take before the connection attempt is abandoned.
16
- */
17
- requestTimeout?: number;
18
- }
7
+ import * as Instance from "./BedrockClientInstance.js";
8
+ import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, TooManyTagsError, ValidationError } from "./Errors.js";
19
9
  interface BedrockService$ {
20
10
  readonly _: unique symbol;
21
11
  /**
@@ -251,7 +241,7 @@ interface BedrockService$ {
251
241
  * @since 1.0.0
252
242
  * @category constructors
253
243
  */
254
- export declare const makeBedrockService: Effect.Effect<BedrockService$, never, BedrockClientInstance>;
244
+ export declare const makeBedrockService: Effect.Effect<BedrockService$, never, Instance.BedrockClientInstance>;
255
245
  declare const BedrockService_base: import("effect/Context").TagClass<BedrockService, "@effect-aws/client-bedrock/BedrockService", BedrockService$> & {
256
246
  readonly _: Effect.Effect<BedrockService$["_"], never, BedrockService>;
257
247
  batchDeleteEvaluationJob: (args: BatchDeleteEvaluationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchDeleteEvaluationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
@@ -312,7 +302,7 @@ declare const BedrockService_base: import("effect/Context").TagClass<BedrockServ
312
302
  updateMarketplaceModelEndpoint: (args: UpdateMarketplaceModelEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateMarketplaceModelEndpointCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, BedrockService>;
313
303
  updateProvisionedModelThroughput: (args: UpdateProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateProvisionedModelThroughputCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
314
304
  } & {
315
- use: <X>(body: (_: BedrockService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | BedrockService> : Effect.Effect<X, never, BedrockService>;
305
+ use: <X>(body: (_: BedrockService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, BedrockService | R> : Effect.Effect<X, never, BedrockService>;
316
306
  };
317
307
  /**
318
308
  * @since 1.0.0
@@ -320,31 +310,19 @@ declare const BedrockService_base: import("effect/Context").TagClass<BedrockServ
320
310
  */
321
311
  export declare class BedrockService extends BedrockService_base {
322
312
  static readonly defaultLayer: Layer.Layer<BedrockService, never, never>;
323
- static readonly layer: (config: BedrockClientConfig) => Layer.Layer<BedrockService, never, never>;
313
+ static readonly layer: (config: BedrockService.Config) => Layer.Layer<BedrockService, never, never>;
324
314
  static readonly baseLayer: (evaluate: (defaultConfig: BedrockClientConfig) => BedrockClient) => Layer.Layer<BedrockService, never, never>;
325
315
  }
326
316
  /**
327
317
  * @since 1.0.0
328
- * @category models
329
- * @alias BedrockService
330
- */
331
- export declare const Bedrock: typeof BedrockService;
332
- /**
333
- * @since 1.0.0
334
- * @category layers
335
- * @deprecated use Bedrock.baseLayer instead
336
318
  */
337
- export declare const BaseBedrockServiceLayer: Layer.Layer<BedrockService, never, BedrockClientInstance>;
338
- /**
339
- * @since 1.0.0
340
- * @category layers
341
- * @deprecated use Bedrock.layer instead
342
- */
343
- export declare const BedrockServiceLayer: Layer.Layer<BedrockService, never, BedrockClientInstanceConfig>;
344
- /**
345
- * @since 1.0.0
346
- * @category layers
347
- * @deprecated use Bedrock.defaultLayer instead
348
- */
349
- export declare const DefaultBedrockServiceLayer: Layer.Layer<BedrockService, never, never>;
319
+ export declare namespace BedrockService {
320
+ /**
321
+ * @since 1.0.0
322
+ */
323
+ interface Config extends Omit<BedrockClientConfig, "logger"> {
324
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
325
+ }
326
+ }
350
327
  export {};
328
+ //# sourceMappingURL=BedrockService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockService.d.ts","sourceRoot":"","sources":["../../src/BedrockService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAExB,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,0CAA0C,EAC/C,KAAK,2CAA2C,EAEhD,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,uCAAuC,EAC5C,KAAK,wCAAwC,EAE7C,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAElD,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,kCAAkC,EACvC,KA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qBAAqB,GAAG,eAAe,GAAG,eAAe,CAC/G,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uEAI7B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAGjC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,4CAA8E;IAC1G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,eAAe,MAAM,+CAIlD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mBAAmB,KAAK,aAAa,+CAS7D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,113 @@
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.BedrockService = exports.makeBedrockService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_bedrock_1 = require("@aws-sdk/client-bedrock");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Instance = __importStar(require("./BedrockClientInstance.js"));
34
+ const BedrockServiceConfig = __importStar(require("./BedrockServiceConfig.js"));
35
+ const Errors_js_1 = require("./Errors.js");
36
+ const commands = {
37
+ BatchDeleteEvaluationJobCommand: client_bedrock_1.BatchDeleteEvaluationJobCommand,
38
+ CreateEvaluationJobCommand: client_bedrock_1.CreateEvaluationJobCommand,
39
+ CreateGuardrailCommand: client_bedrock_1.CreateGuardrailCommand,
40
+ CreateGuardrailVersionCommand: client_bedrock_1.CreateGuardrailVersionCommand,
41
+ CreateInferenceProfileCommand: client_bedrock_1.CreateInferenceProfileCommand,
42
+ CreateMarketplaceModelEndpointCommand: client_bedrock_1.CreateMarketplaceModelEndpointCommand,
43
+ CreateModelCopyJobCommand: client_bedrock_1.CreateModelCopyJobCommand,
44
+ CreateModelCustomizationJobCommand: client_bedrock_1.CreateModelCustomizationJobCommand,
45
+ CreateModelImportJobCommand: client_bedrock_1.CreateModelImportJobCommand,
46
+ CreateModelInvocationJobCommand: client_bedrock_1.CreateModelInvocationJobCommand,
47
+ CreateProvisionedModelThroughputCommand: client_bedrock_1.CreateProvisionedModelThroughputCommand,
48
+ DeleteCustomModelCommand: client_bedrock_1.DeleteCustomModelCommand,
49
+ DeleteGuardrailCommand: client_bedrock_1.DeleteGuardrailCommand,
50
+ DeleteImportedModelCommand: client_bedrock_1.DeleteImportedModelCommand,
51
+ DeleteInferenceProfileCommand: client_bedrock_1.DeleteInferenceProfileCommand,
52
+ DeleteMarketplaceModelEndpointCommand: client_bedrock_1.DeleteMarketplaceModelEndpointCommand,
53
+ DeleteModelInvocationLoggingConfigurationCommand: client_bedrock_1.DeleteModelInvocationLoggingConfigurationCommand,
54
+ DeleteProvisionedModelThroughputCommand: client_bedrock_1.DeleteProvisionedModelThroughputCommand,
55
+ DeregisterMarketplaceModelEndpointCommand: client_bedrock_1.DeregisterMarketplaceModelEndpointCommand,
56
+ GetCustomModelCommand: client_bedrock_1.GetCustomModelCommand,
57
+ GetEvaluationJobCommand: client_bedrock_1.GetEvaluationJobCommand,
58
+ GetFoundationModelCommand: client_bedrock_1.GetFoundationModelCommand,
59
+ GetGuardrailCommand: client_bedrock_1.GetGuardrailCommand,
60
+ GetImportedModelCommand: client_bedrock_1.GetImportedModelCommand,
61
+ GetInferenceProfileCommand: client_bedrock_1.GetInferenceProfileCommand,
62
+ GetMarketplaceModelEndpointCommand: client_bedrock_1.GetMarketplaceModelEndpointCommand,
63
+ GetModelCopyJobCommand: client_bedrock_1.GetModelCopyJobCommand,
64
+ GetModelCustomizationJobCommand: client_bedrock_1.GetModelCustomizationJobCommand,
65
+ GetModelImportJobCommand: client_bedrock_1.GetModelImportJobCommand,
66
+ GetModelInvocationJobCommand: client_bedrock_1.GetModelInvocationJobCommand,
67
+ GetModelInvocationLoggingConfigurationCommand: client_bedrock_1.GetModelInvocationLoggingConfigurationCommand,
68
+ GetPromptRouterCommand: client_bedrock_1.GetPromptRouterCommand,
69
+ GetProvisionedModelThroughputCommand: client_bedrock_1.GetProvisionedModelThroughputCommand,
70
+ ListCustomModelsCommand: client_bedrock_1.ListCustomModelsCommand,
71
+ ListEvaluationJobsCommand: client_bedrock_1.ListEvaluationJobsCommand,
72
+ ListFoundationModelsCommand: client_bedrock_1.ListFoundationModelsCommand,
73
+ ListGuardrailsCommand: client_bedrock_1.ListGuardrailsCommand,
74
+ ListImportedModelsCommand: client_bedrock_1.ListImportedModelsCommand,
75
+ ListInferenceProfilesCommand: client_bedrock_1.ListInferenceProfilesCommand,
76
+ ListMarketplaceModelEndpointsCommand: client_bedrock_1.ListMarketplaceModelEndpointsCommand,
77
+ ListModelCopyJobsCommand: client_bedrock_1.ListModelCopyJobsCommand,
78
+ ListModelCustomizationJobsCommand: client_bedrock_1.ListModelCustomizationJobsCommand,
79
+ ListModelImportJobsCommand: client_bedrock_1.ListModelImportJobsCommand,
80
+ ListModelInvocationJobsCommand: client_bedrock_1.ListModelInvocationJobsCommand,
81
+ ListPromptRoutersCommand: client_bedrock_1.ListPromptRoutersCommand,
82
+ ListProvisionedModelThroughputsCommand: client_bedrock_1.ListProvisionedModelThroughputsCommand,
83
+ ListTagsForResourceCommand: client_bedrock_1.ListTagsForResourceCommand,
84
+ PutModelInvocationLoggingConfigurationCommand: client_bedrock_1.PutModelInvocationLoggingConfigurationCommand,
85
+ RegisterMarketplaceModelEndpointCommand: client_bedrock_1.RegisterMarketplaceModelEndpointCommand,
86
+ StopEvaluationJobCommand: client_bedrock_1.StopEvaluationJobCommand,
87
+ StopModelCustomizationJobCommand: client_bedrock_1.StopModelCustomizationJobCommand,
88
+ StopModelInvocationJobCommand: client_bedrock_1.StopModelInvocationJobCommand,
89
+ TagResourceCommand: client_bedrock_1.TagResourceCommand,
90
+ UntagResourceCommand: client_bedrock_1.UntagResourceCommand,
91
+ UpdateGuardrailCommand: client_bedrock_1.UpdateGuardrailCommand,
92
+ UpdateMarketplaceModelEndpointCommand: client_bedrock_1.UpdateMarketplaceModelEndpointCommand,
93
+ UpdateProvisionedModelThroughputCommand: client_bedrock_1.UpdateProvisionedModelThroughputCommand,
94
+ };
95
+ /**
96
+ * @since 1.0.0
97
+ * @category constructors
98
+ */
99
+ exports.makeBedrockService = effect_1.Effect.gen(function* () {
100
+ const client = yield* Instance.BedrockClientInstance;
101
+ return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
102
+ });
103
+ /**
104
+ * @since 1.0.0
105
+ * @category models
106
+ */
107
+ class BedrockService extends effect_1.Effect.Tag("@effect-aws/client-bedrock/BedrockService")() {
108
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeBedrockService).pipe(effect_1.Layer.provide(Instance.layer));
109
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeBedrockService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(BedrockServiceConfig.setBedrockServiceConfig(config)));
110
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeBedrockService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.BedrockClientInstance, effect_1.Effect.map(BedrockServiceConfig.toBedrockClientConfig, evaluate))));
111
+ }
112
+ exports.BedrockService = BedrockService;
113
+ //# sourceMappingURL=BedrockService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockService.js","sourceRoot":"","sources":["../../src/BedrockService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DA8KiC;AAEjC,iDAA8C;AAC9C,mCAAuC;AACvC,qEAAuD;AACvD,gFAAkE;AAYlE,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,+BAA+B,EAA/B,gDAA+B;IAC/B,0BAA0B,EAA1B,2CAA0B;IAC1B,sBAAsB,EAAtB,uCAAsB;IACtB,6BAA6B,EAA7B,8CAA6B;IAC7B,6BAA6B,EAA7B,8CAA6B;IAC7B,qCAAqC,EAArC,sDAAqC;IACrC,yBAAyB,EAAzB,0CAAyB;IACzB,kCAAkC,EAAlC,mDAAkC;IAClC,2BAA2B,EAA3B,4CAA2B;IAC3B,+BAA+B,EAA/B,gDAA+B;IAC/B,uCAAuC,EAAvC,wDAAuC;IACvC,wBAAwB,EAAxB,yCAAwB;IACxB,sBAAsB,EAAtB,uCAAsB;IACtB,0BAA0B,EAA1B,2CAA0B;IAC1B,6BAA6B,EAA7B,8CAA6B;IAC7B,qCAAqC,EAArC,sDAAqC;IACrC,gDAAgD,EAAhD,iEAAgD;IAChD,uCAAuC,EAAvC,wDAAuC;IACvC,yCAAyC,EAAzC,0DAAyC;IACzC,q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;IACpD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAErD,OAAO,iBAAO,CAAC,qBAAqB,CAAkB,MAAM,EAAE,QAAQ,EAAE,4BAAgB,CAAC,CAAC;AAC5F,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,cAAe,SAAQ,eAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,EAGxF;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA6B,EAAE,EAAE,CACxD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CACpE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+D,EAC/D,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAAkB,CAAC,CAAC,IAAI,CACzC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qBAAqB,EAC9B,eAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC;;AApBN,wCAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
5
+ import { Effect, Layer } from "effect";
6
+ import type { BedrockService } from "./BedrockService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category bedrock service config
10
+ */
11
+ export declare const withBedrockServiceConfig: {
12
+ (config: BedrockService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
+ <A, E, R>(effect: Effect.Effect<A, E, R>, config: BedrockService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category bedrock service config
18
+ */
19
+ export declare const setBedrockServiceConfig: (config: BedrockService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toBedrockClientConfig: Effect.Effect<BedrockClientConfig>;
25
+ //# sourceMappingURL=BedrockServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockServiceConfig.d.ts","sourceRoot":"","sources":["../../src/BedrockServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAW1D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE;IACrC,CAAC,MAAM,EAAE,cAAc,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;IACrG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,WAAY,eAAe,MAAM,qCACX,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAQnE,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toBedrockClientConfig = exports.setBedrockServiceConfig = exports.withBedrockServiceConfig = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ const effect_1 = require("effect");
6
+ const Function_1 = require("effect/Function");
7
+ const GlobalValue_1 = require("effect/GlobalValue");
8
+ /**
9
+ * @since 1.0.0
10
+ * @category bedrock service config
11
+ */
12
+ const currentBedrockServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-bedrock/currentBedrockServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category bedrock service config
16
+ */
17
+ exports.withBedrockServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentBedrockServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category bedrock service config
21
+ */
22
+ const setBedrockServiceConfig = (config) => effect_1.Layer.locallyScoped(currentBedrockServiceConfig, config);
23
+ exports.setBedrockServiceConfig = setBedrockServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toBedrockClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentBedrockServiceConfig);
30
+ const logger = serviceLogger === true
31
+ ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
32
+ : (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
33
+ return { logger, ...config };
34
+ });
35
+ //# sourceMappingURL=BedrockServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockServiceConf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import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, ValidationException } from "@aws-sdk/client-bedrock";
2
- import { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ServiceUnavailableException", "ThrottlingException", "TooManyTagsException", "ValidationException"];
9
5
  export type AccessDeniedError = TaggedException<AccessDeniedException>;
10
6
  export type ConflictError = TaggedException<ConflictException>;
11
7
  export type InternalServerError = TaggedException<InternalServerException>;
@@ -15,7 +11,6 @@ export type ServiceUnavailableError = TaggedException<ServiceUnavailableExceptio
15
11
  export type ThrottlingError = TaggedException<ThrottlingException>;
16
12
  export type TooManyTagsError = TaggedException<TooManyTagsException>;
17
13
  export type ValidationError = TaggedException<ValidationException>;
18
- export type SdkError = TaggedException<Error & {
19
- name: "SdkError";
20
- }>;
21
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
14
+ export type SdkError = CommonSdkError;
15
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
16
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,uPAUnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "AccessDeniedException",
7
+ "ConflictException",
8
+ "InternalServerException",
9
+ "ResourceNotFoundException",
10
+ "ServiceQuotaExceededException",
11
+ "ServiceUnavailableException",
12
+ "ThrottlingException",
13
+ "TooManyTagsException",
14
+ "ValidationException",
15
+ ];
16
+ exports.SdkError = commons_1.SdkError;
17
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAYA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,+BAA+B;IAC/B,6BAA6B;IAC7B,qBAAqB;IACrB,sBAAsB;IACtB,qBAAqB;CACb,CAAC;AAaE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { BedrockService } from "./BedrockService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as BedrockClientInstance from "./BedrockClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as BedrockServiceConfig from "./BedrockServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./BedrockService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias BedrockService
25
+ */
26
+ export declare namespace Bedrock {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias BedrockService.Config
30
+ */
31
+ type Config = BedrockService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias BedrockService
37
+ */
38
+ export declare const Bedrock: typeof BedrockService;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;GAEG;AACH,cAAc,qBAAqB,CAAC;AAEpC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B;;;OAGG;IACH,KAAY,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;CAC5C;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,uBAAiB,CAAC"}
@@ -0,0 +1,56 @@
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.Bedrock = exports.BedrockServiceConfig = exports.BedrockClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const BedrockService_js_1 = require("./BedrockService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.BedrockClientInstance = __importStar(require("./BedrockClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.BedrockServiceConfig = __importStar(require("./BedrockServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./BedrockService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias BedrockService
54
+ */
55
+ exports.Bedrock = BedrockService_js_1.BedrockService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,2DAAqD;AAErD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,oFAAoE;AAEpE;;GAEG;AACH,kFAAkE;AAElE;;GAEG;AACH,sDAAoC;AAepC;;;;GAIG;AACU,QAAA,OAAO,GAAG,kCAAc,CAAC"}