@effect-aws/client-textract 1.1.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/Errors/package.json +6 -0
  2. package/LICENSE +1 -1
  3. package/TextractClientInstance/package.json +6 -0
  4. package/TextractService/package.json +6 -0
  5. package/TextractServiceConfig/package.json +6 -0
  6. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  7. package/dist/cjs/Errors.d.ts.map +1 -0
  8. package/dist/cjs/Errors.js +26 -0
  9. package/dist/cjs/Errors.js.map +1 -0
  10. package/dist/cjs/TextractClientInstance.d.ts +24 -0
  11. package/dist/cjs/TextractClientInstance.d.ts.map +1 -0
  12. package/dist/cjs/TextractClientInstance.js +50 -0
  13. package/dist/cjs/TextractClientInstance.js.map +1 -0
  14. package/{lib → dist/cjs}/TextractService.d.ts +16 -38
  15. package/dist/cjs/TextractService.d.ts.map +1 -0
  16. package/dist/cjs/TextractService.js +81 -0
  17. package/dist/cjs/TextractService.js.map +1 -0
  18. package/dist/cjs/TextractServiceConfig.d.ts +25 -0
  19. package/dist/cjs/TextractServiceConfig.d.ts.map +1 -0
  20. package/dist/cjs/TextractServiceConfig.js +35 -0
  21. package/dist/cjs/TextractServiceConfig.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/Errors.d.ts +25 -0
  27. package/dist/dts/Errors.d.ts.map +1 -0
  28. package/dist/dts/TextractClientInstance.d.ts +24 -0
  29. package/dist/dts/TextractClientInstance.d.ts.map +1 -0
  30. package/dist/dts/TextractService.d.ts +168 -0
  31. package/dist/dts/TextractService.d.ts.map +1 -0
  32. package/dist/dts/TextractServiceConfig.d.ts +25 -0
  33. package/dist/dts/TextractServiceConfig.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/Errors.js +23 -0
  37. package/dist/esm/Errors.js.map +1 -0
  38. package/dist/esm/TextractClientInstance.js +23 -0
  39. package/dist/esm/TextractClientInstance.js.map +1 -0
  40. package/dist/esm/TextractService.js +54 -0
  41. package/dist/esm/TextractService.js.map +1 -0
  42. package/dist/esm/TextractServiceConfig.js +31 -0
  43. package/dist/esm/TextractServiceConfig.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/Errors.ts +65 -0
  49. package/src/TextractClientInstance.ts +33 -0
  50. package/src/TextractService.ts +685 -0
  51. package/src/TextractServiceConfig.ts +52 -0
  52. package/src/index.ts +44 -0
  53. package/CHANGELOG.md +0 -13
  54. package/docgen.json +0 -8
  55. package/lib/Errors.js +0 -26
  56. package/lib/TextractClientInstance.d.ts +0 -31
  57. package/lib/TextractClientInstance.js +0 -57
  58. package/lib/TextractClientInstanceConfig.d.ts +0 -23
  59. package/lib/TextractClientInstanceConfig.js +0 -44
  60. package/lib/TextractService.js +0 -113
  61. package/lib/esm/Errors.js +0 -23
  62. package/lib/esm/TextractClientInstance.js +0 -30
  63. package/lib/esm/TextractClientInstanceConfig.js +0 -40
  64. package/lib/esm/TextractService.js +0 -109
  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/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,6 @@
1
+ {
2
+ "main": "../dist/cjs/TextractClientInstance.js",
3
+ "module": "../dist/esm/TextractClientInstance.js",
4
+ "types": "../dist/dts/TextractClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/TextractService.js",
3
+ "module": "../dist/esm/TextractService.js",
4
+ "types": "../dist/dts/TextractService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/TextractServiceConfig.js",
3
+ "module": "../dist/esm/TextractServiceConfig.js",
4
+ "types": "../dist/dts/TextractServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,11 +1,7 @@
1
1
  import type { AccessDeniedException, BadDocumentException, ConflictException, DocumentTooLargeException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, InternalServerError as InternalServerException, InvalidJobIdException, InvalidKMSKeyException, InvalidParameterException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedDocumentException, ValidationException } from "@aws-sdk/client-textract";
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", "BadDocumentException", "ConflictException", "DocumentTooLargeException", "HumanLoopQuotaExceededException", "IdempotentParameterMismatchException", "InternalServerError", "InvalidJobIdException", "InvalidKMSKeyException", "InvalidParameterException", "InvalidS3ObjectException", "LimitExceededException", "ProvisionedThroughputExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "UnsupportedDocumentException", "ValidationException"];
9
5
  export type AccessDeniedError = TaggedException<AccessDeniedException>;
10
6
  export type BadDocumentError = TaggedException<BadDocumentException>;
11
7
  export type ConflictError = TaggedException<ConflictException>;
@@ -24,7 +20,6 @@ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededExce
24
20
  export type ThrottlingError = TaggedException<ThrottlingException>;
25
21
  export type UnsupportedDocumentError = TaggedException<UnsupportedDocumentException>;
26
22
  export type ValidationError = TaggedException<ValidationException>;
27
- export type SdkError = TaggedException<Error & {
28
- name: "SdkError";
29
- }>;
30
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
23
+ export type SdkError = CommonSdkError;
24
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
25
+ //# 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,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,+BAA+B,EAC/B,oCAAoC,EACpC,mBAAmB,IAAI,uBAAuB,EAC9C,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,sCAAsC,EACtC,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,4BAA4B,EAC5B,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,4gBAmBnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,gCAAgC,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACrG,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACzG,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,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,26 @@
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
+ "BadDocumentException",
8
+ "ConflictException",
9
+ "DocumentTooLargeException",
10
+ "HumanLoopQuotaExceededException",
11
+ "IdempotentParameterMismatchException",
12
+ "InternalServerError",
13
+ "InvalidJobIdException",
14
+ "InvalidKMSKeyException",
15
+ "InvalidParameterException",
16
+ "InvalidS3ObjectException",
17
+ "LimitExceededException",
18
+ "ProvisionedThroughputExceededException",
19
+ "ResourceNotFoundException",
20
+ "ServiceQuotaExceededException",
21
+ "ThrottlingException",
22
+ "UnsupportedDocumentException",
23
+ "ValidationException",
24
+ ];
25
+ exports.SdkError = commons_1.SdkError;
26
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAqBA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,sBAAsB;IACtB,mBAAmB;IACnB,2BAA2B;IAC3B,iCAAiC;IACjC,sCAAsC;IACtC,qBAAqB;IACrB,uBAAuB;IACvB,wBAAwB;IACxB,2BAA2B;IAC3B,0BAA0B;IAC1B,wBAAwB;IACxB,wCAAwC;IACxC,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;IACrB,8BAA8B;IAC9B,qBAAqB;CACb,CAAC;AAsBE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { TextractClient } from "@aws-sdk/client-textract";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const TextractClientInstance_base: Context.TagClass<TextractClientInstance, "@effect-aws/client-textract/TextractClientInstance", TextractClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class TextractClientInstance extends TextractClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<TextractClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<TextractClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=TextractClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextractClientInstance.d.ts","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAED;CAAG;AAE9C;;;GAGG;AACH,eAAO,MAAM,IAAI,oEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,mDAA6C,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.TextractClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_textract_1 = require("@aws-sdk/client-textract");
31
+ const effect_1 = require("effect");
32
+ const TextractServiceConfig = __importStar(require("./TextractServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class TextractClientInstance extends effect_1.Context.Tag("@effect-aws/client-textract/TextractClientInstance")() {
38
+ }
39
+ exports.TextractClientInstance = TextractClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(TextractServiceConfig.toTextractClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_textract_1.TextractClient(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(TextractClientInstance, exports.make);
50
+ //# sourceMappingURL=TextractClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextractClientInstance.js","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,8DAA0D;AAC1D,mCAAgD;AAChD,kFAAoE;AAEpE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,gBAAO,CAAC,GAAG,CACrD,oDAAoD,CACrD,EAA0C;CAAG;AAF9C,wDAE8C;AAE9C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,qBAAqB,CAAC,sBAAsB,EAC5C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,gCAAc,CAAC,MAAM,CAAC,CAAC,EAC7C,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,sBAAsB,EAAE,YAAI,CAAC,CAAC"}
@@ -1,21 +1,11 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { type TextractClient, type TextractClientConfig, type AnalyzeDocumentCommandInput, type AnalyzeDocumentCommandOutput, type AnalyzeExpenseCommandInput, type AnalyzeExpenseCommandOutput, type AnalyzeIDCommandInput, type AnalyzeIDCommandOutput, type CreateAdapterCommandInput, type CreateAdapterCommandOutput, type CreateAdapterVersionCommandInput, type CreateAdapterVersionCommandOutput, type DeleteAdapterCommandInput, type DeleteAdapterCommandOutput, type DeleteAdapterVersionCommandInput, type DeleteAdapterVersionCommandOutput, type DetectDocumentTextCommandInput, type DetectDocumentTextCommandOutput, type GetAdapterCommandInput, type GetAdapterCommandOutput, type GetAdapterVersionCommandInput, type GetAdapterVersionCommandOutput, type GetDocumentAnalysisCommandInput, type GetDocumentAnalysisCommandOutput, type GetDocumentTextDetectionCommandInput, type GetDocumentTextDetectionCommandOutput, type GetExpenseAnalysisCommandInput, type GetExpenseAnalysisCommandOutput, type GetLendingAnalysisCommandInput, type GetLendingAnalysisCommandOutput, type GetLendingAnalysisSummaryCommandInput, type GetLendingAnalysisSummaryCommandOutput, type ListAdapterVersionsCommandInput, type ListAdapterVersionsCommandOutput, type ListAdaptersCommandInput, type ListAdaptersCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type StartDocumentAnalysisCommandInput, type StartDocumentAnalysisCommandOutput, type StartDocumentTextDetectionCommandInput, type StartDocumentTextDetectionCommandOutput, type StartExpenseAnalysisCommandInput, type StartExpenseAnalysisCommandOutput, type StartLendingAnalysisCommandInput, type StartLendingAnalysisCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAdapterCommandInput, type UpdateAdapterCommandOutput } from "@aws-sdk/client-textract";
4
+ import { type AnalyzeDocumentCommandInput, type AnalyzeDocumentCommandOutput, type AnalyzeExpenseCommandInput, type AnalyzeExpenseCommandOutput, type AnalyzeIDCommandInput, type AnalyzeIDCommandOutput, type CreateAdapterCommandInput, type CreateAdapterCommandOutput, type CreateAdapterVersionCommandInput, type CreateAdapterVersionCommandOutput, type DeleteAdapterCommandInput, type DeleteAdapterCommandOutput, type DeleteAdapterVersionCommandInput, type DeleteAdapterVersionCommandOutput, type DetectDocumentTextCommandInput, type DetectDocumentTextCommandOutput, type GetAdapterCommandInput, type GetAdapterCommandOutput, type GetAdapterVersionCommandInput, type GetAdapterVersionCommandOutput, type GetDocumentAnalysisCommandInput, type GetDocumentAnalysisCommandOutput, type GetDocumentTextDetectionCommandInput, type GetDocumentTextDetectionCommandOutput, type GetExpenseAnalysisCommandInput, type GetExpenseAnalysisCommandOutput, type GetLendingAnalysisCommandInput, type GetLendingAnalysisCommandOutput, type GetLendingAnalysisSummaryCommandInput, type GetLendingAnalysisSummaryCommandOutput, type ListAdaptersCommandInput, type ListAdaptersCommandOutput, type ListAdapterVersionsCommandInput, type ListAdapterVersionsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type StartDocumentAnalysisCommandInput, type StartDocumentAnalysisCommandOutput, type StartDocumentTextDetectionCommandInput, type StartDocumentTextDetectionCommandOutput, type StartExpenseAnalysisCommandInput, type StartExpenseAnalysisCommandOutput, type StartLendingAnalysisCommandInput, type StartLendingAnalysisCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type TextractClient, type TextractClientConfig, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAdapterCommandInput, type UpdateAdapterCommandOutput } from "@aws-sdk/client-textract";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
5
6
  import { Effect, Layer } from "effect";
6
- import { AccessDeniedError, BadDocumentError, ConflictError, DocumentTooLargeError, HumanLoopQuotaExceededError, IdempotentParameterMismatchError, InternalServerError, InvalidJobIdError, InvalidKMSKeyError, InvalidParameterError, InvalidS3ObjectError, LimitExceededError, ProvisionedThroughputExceededError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, UnsupportedDocumentError, ValidationError, SdkError } from "./Errors";
7
- import { TextractClientInstance } from "./TextractClientInstance";
8
- import { TextractClientInstanceConfig } from "./TextractClientInstanceConfig";
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 type { AccessDeniedError, BadDocumentError, ConflictError, DocumentTooLargeError, HumanLoopQuotaExceededError, IdempotentParameterMismatchError, InternalServerError, InvalidJobIdError, InvalidKMSKeyError, InvalidParameterError, InvalidS3ObjectError, LimitExceededError, ProvisionedThroughputExceededError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, UnsupportedDocumentError, ValidationError } from "./Errors.js";
8
+ import * as Instance from "./TextractClientInstance.js";
19
9
  interface TextractService$ {
20
10
  readonly _: unique symbol;
21
11
  /**
@@ -123,7 +113,7 @@ interface TextractService$ {
123
113
  * @since 1.0.0
124
114
  * @category constructors
125
115
  */
126
- export declare const makeTextractService: Effect.Effect<TextractService$, never, TextractClientInstance>;
116
+ export declare const makeTextractService: Effect.Effect<TextractService$, never, Instance.TextractClientInstance>;
127
117
  declare const TextractService_base: import("effect/Context").TagClass<TextractService, "@effect-aws/client-textract/TextractService", TextractService$> & {
128
118
  readonly _: Effect.Effect<TextractService$["_"], never, TextractService>;
129
119
  analyzeDocument: (args: AnalyzeDocumentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AnalyzeDocumentCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | HumanLoopQuotaExceededError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
@@ -152,7 +142,7 @@ declare const TextractService_base: import("effect/Context").TagClass<TextractSe
152
142
  untagResource: (args: UntagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagResourceCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
153
143
  updateAdapter: (args: UpdateAdapterCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateAdapterCommandOutput, AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
154
144
  } & {
155
- use: <X>(body: (_: TextractService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | TextractService> : Effect.Effect<X, never, TextractService>;
145
+ use: <X>(body: (_: TextractService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, TextractService | R> : Effect.Effect<X, never, TextractService>;
156
146
  };
157
147
  /**
158
148
  * @since 1.0.0
@@ -160,31 +150,19 @@ declare const TextractService_base: import("effect/Context").TagClass<TextractSe
160
150
  */
161
151
  export declare class TextractService extends TextractService_base {
162
152
  static readonly defaultLayer: Layer.Layer<TextractService, never, never>;
163
- static readonly layer: (config: TextractClientConfig) => Layer.Layer<TextractService, never, never>;
153
+ static readonly layer: (config: TextractService.Config) => Layer.Layer<TextractService, never, never>;
164
154
  static readonly baseLayer: (evaluate: (defaultConfig: TextractClientConfig) => TextractClient) => Layer.Layer<TextractService, never, never>;
165
155
  }
166
156
  /**
167
157
  * @since 1.0.0
168
- * @category models
169
- * @alias TextractService
170
- */
171
- export declare const Textract: typeof TextractService;
172
- /**
173
- * @since 1.0.0
174
- * @category layers
175
- * @deprecated use Textract.baseLayer instead
176
158
  */
177
- export declare const BaseTextractServiceLayer: Layer.Layer<TextractService, never, TextractClientInstance>;
178
- /**
179
- * @since 1.0.0
180
- * @category layers
181
- * @deprecated use Textract.layer instead
182
- */
183
- export declare const TextractServiceLayer: Layer.Layer<TextractService, never, TextractClientInstanceConfig>;
184
- /**
185
- * @since 1.0.0
186
- * @category layers
187
- * @deprecated use Textract.defaultLayer instead
188
- */
189
- export declare const DefaultTextractServiceLayer: Layer.Layer<TextractService, never, never>;
159
+ export declare namespace TextractService {
160
+ /**
161
+ * @since 1.0.0
162
+ */
163
+ interface Config extends Omit<TextractClientConfig, "logger"> {
164
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
165
+ }
166
+ }
190
167
  export {};
168
+ //# sourceMappingURL=TextractService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextractService.d.ts","sourceRoot":"","sources":["../../src/TextractService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,+BAA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,GACrB,kCAAkC,GAClC,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;IAEF;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EACxB,QAAQ,GACR,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,kCAAkC,GAClC,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yEAI9B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBAGlC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,6CAA+E;IAC3G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,gBAAgB,MAAM,gDAInD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,oBAAoB,KAAK,cAAc,gDAS/D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;QAClE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,81 @@
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.TextractService = exports.makeTextractService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_textract_1 = require("@aws-sdk/client-textract");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Errors_js_1 = require("./Errors.js");
34
+ const Instance = __importStar(require("./TextractClientInstance.js"));
35
+ const TextractServiceConfig = __importStar(require("./TextractServiceConfig.js"));
36
+ const commands = {
37
+ AnalyzeDocumentCommand: client_textract_1.AnalyzeDocumentCommand,
38
+ AnalyzeExpenseCommand: client_textract_1.AnalyzeExpenseCommand,
39
+ AnalyzeIDCommand: client_textract_1.AnalyzeIDCommand,
40
+ CreateAdapterCommand: client_textract_1.CreateAdapterCommand,
41
+ CreateAdapterVersionCommand: client_textract_1.CreateAdapterVersionCommand,
42
+ DeleteAdapterCommand: client_textract_1.DeleteAdapterCommand,
43
+ DeleteAdapterVersionCommand: client_textract_1.DeleteAdapterVersionCommand,
44
+ DetectDocumentTextCommand: client_textract_1.DetectDocumentTextCommand,
45
+ GetAdapterCommand: client_textract_1.GetAdapterCommand,
46
+ GetAdapterVersionCommand: client_textract_1.GetAdapterVersionCommand,
47
+ GetDocumentAnalysisCommand: client_textract_1.GetDocumentAnalysisCommand,
48
+ GetDocumentTextDetectionCommand: client_textract_1.GetDocumentTextDetectionCommand,
49
+ GetExpenseAnalysisCommand: client_textract_1.GetExpenseAnalysisCommand,
50
+ GetLendingAnalysisCommand: client_textract_1.GetLendingAnalysisCommand,
51
+ GetLendingAnalysisSummaryCommand: client_textract_1.GetLendingAnalysisSummaryCommand,
52
+ ListAdapterVersionsCommand: client_textract_1.ListAdapterVersionsCommand,
53
+ ListAdaptersCommand: client_textract_1.ListAdaptersCommand,
54
+ ListTagsForResourceCommand: client_textract_1.ListTagsForResourceCommand,
55
+ StartDocumentAnalysisCommand: client_textract_1.StartDocumentAnalysisCommand,
56
+ StartDocumentTextDetectionCommand: client_textract_1.StartDocumentTextDetectionCommand,
57
+ StartExpenseAnalysisCommand: client_textract_1.StartExpenseAnalysisCommand,
58
+ StartLendingAnalysisCommand: client_textract_1.StartLendingAnalysisCommand,
59
+ TagResourceCommand: client_textract_1.TagResourceCommand,
60
+ UntagResourceCommand: client_textract_1.UntagResourceCommand,
61
+ UpdateAdapterCommand: client_textract_1.UpdateAdapterCommand,
62
+ };
63
+ /**
64
+ * @since 1.0.0
65
+ * @category constructors
66
+ */
67
+ exports.makeTextractService = effect_1.Effect.gen(function* () {
68
+ const client = yield* Instance.TextractClientInstance;
69
+ return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
70
+ });
71
+ /**
72
+ * @since 1.0.0
73
+ * @category models
74
+ */
75
+ class TextractService extends effect_1.Effect.Tag("@effect-aws/client-textract/TextractService")() {
76
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeTextractService).pipe(effect_1.Layer.provide(Instance.layer));
77
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeTextractService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(TextractServiceConfig.setTextractServiceConfig(config)));
78
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeTextractService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.TextractClientInstance, effect_1.Effect.map(TextractServiceConfig.toTextractClientConfig, evaluate))));
79
+ }
80
+ exports.TextractService = TextractService;
81
+ //# sourceMappingURL=TextractService.js.map
@@ -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B,CAAC,CAAC;AAC7F,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,eAAgB,SAAQ,eAAM,CAAC,GAAG,CAAC,6CAA6C,CAAC,EAG3F;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,2BAAmB,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA8B,EAAE,EAAE,CACzD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,2BAAmB,CAAC,CAAC,IAAI,CAC1C,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC,CACtE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAiE,EACjE,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,2BAAmB,CAAC,CAAC,IAAI,CAC1C,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,sBAAsB,EAC/B,eAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CACnE,CACF,CACF,CAAC;;AApBN,0CAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { TextractClientConfig } from "@aws-sdk/client-textract";
5
+ import { Effect, Layer } from "effect";
6
+ import type { TextractService } from "./TextractService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category textract service config
10
+ */
11
+ export declare const withTextractServiceConfig: {
12
+ (config: TextractService.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: TextractService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category textract service config
18
+ */
19
+ export declare const setTextractServiceConfig: (config: TextractService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toTextractClientConfig: Effect.Effect<TextractClientConfig>;
25
+ //# sourceMappingURL=TextractServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextractServiceConfig.d.ts","sourceRoot":"","sources":["../../src/TextractServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAW5D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE;IACtC,CAAC,MAAM,EAAE,eAAe,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;IACtG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKnG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,WAAY,gBAAgB,MAAM,qCACZ,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAQrE,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toTextractClientConfig = exports.setTextractServiceConfig = exports.withTextractServiceConfig = 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 textract service config
11
+ */
12
+ const currentTextractServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-textract/currentTextractServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category textract service config
16
+ */
17
+ exports.withTextractServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentTextractServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category textract service config
21
+ */
22
+ const setTextractServiceConfig = (config) => effect_1.Layer.locallyScoped(currentTextractServiceConfig, config);
23
+ exports.setTextractServiceConfig = setTextractServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toTextractClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentTextractServiceConfig);
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=TextractServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextractServiceConfig.js","sourceRoot":"","sources":["../../src/TextractServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,4BAA4B,GAAG,IAAA,yBAAW,EAC9C,0DAA0D,EAC1D,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAyB,EAAE,CAAC,CACtD,CAAC;AAEF;;;GAGG;AACU,QAAA,yBAAyB,GAGlC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA8B,EAA0B,EAAE,CAClG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,4BAA4B,EAAE,MAAM,CAAC,CAC/D,CAAC;AAEF;;;GAGG;AACI,MAAM,wBAAwB,GAAG,CAAC,MAA8B,EAAE,EAAE,CACzE,cAAK,CAAC,aAAa,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AAD/C,QAAA,wBAAwB,4BACuB;AAE5D;;;GAGG;AACU,QAAA,sBAAsB,GAAwC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC7F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAE/F,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,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"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { TextractService } from "./TextractService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as TextractClientInstance from "./TextractClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as TextractServiceConfig from "./TextractServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./TextractService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias TextractService
25
+ */
26
+ export declare namespace Textract {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias TextractService.Config
30
+ */
31
+ type Config = TextractService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias TextractService
37
+ */
38
+ export declare const Textract: typeof TextractService;
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,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,cAAc,sBAAsB,CAAC;AAErC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC;;;OAGG;IACH,KAAY,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;CAC7C;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,wBAAkB,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.Textract = exports.TextractServiceConfig = exports.TextractClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const TextractService_js_1 = require("./TextractService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.TextractClientInstance = __importStar(require("./TextractClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.TextractServiceConfig = __importStar(require("./TextractServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./TextractService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias TextractService
54
+ */
55
+ exports.Textract = TextractService_js_1.TextractService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,6DAAuD;AAEvD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,sFAAsE;AAEtE;;GAEG;AACH,oFAAoE;AAEpE;;GAEG;AACH,uDAAqC;AAerC;;;;GAIG;AACU,QAAA,QAAQ,GAAG,oCAAe,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { AccessDeniedException, BadDocumentException, ConflictException, DocumentTooLargeException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, InternalServerError as InternalServerException, InvalidJobIdException, InvalidKMSKeyException, InvalidParameterException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedDocumentException, ValidationException } from "@aws-sdk/client-textract";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["AccessDeniedException", "BadDocumentException", "ConflictException", "DocumentTooLargeException", "HumanLoopQuotaExceededException", "IdempotentParameterMismatchException", "InternalServerError", "InvalidJobIdException", "InvalidKMSKeyException", "InvalidParameterException", "InvalidS3ObjectException", "LimitExceededException", "ProvisionedThroughputExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "UnsupportedDocumentException", "ValidationException"];
5
+ export type AccessDeniedError = TaggedException<AccessDeniedException>;
6
+ export type BadDocumentError = TaggedException<BadDocumentException>;
7
+ export type ConflictError = TaggedException<ConflictException>;
8
+ export type DocumentTooLargeError = TaggedException<DocumentTooLargeException>;
9
+ export type HumanLoopQuotaExceededError = TaggedException<HumanLoopQuotaExceededException>;
10
+ export type IdempotentParameterMismatchError = TaggedException<IdempotentParameterMismatchException>;
11
+ export type InternalServerError = TaggedException<InternalServerException>;
12
+ export type InvalidJobIdError = TaggedException<InvalidJobIdException>;
13
+ export type InvalidKMSKeyError = TaggedException<InvalidKMSKeyException>;
14
+ export type InvalidParameterError = TaggedException<InvalidParameterException>;
15
+ export type InvalidS3ObjectError = TaggedException<InvalidS3ObjectException>;
16
+ export type LimitExceededError = TaggedException<LimitExceededException>;
17
+ export type ProvisionedThroughputExceededError = TaggedException<ProvisionedThroughputExceededException>;
18
+ export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
19
+ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
20
+ export type ThrottlingError = TaggedException<ThrottlingException>;
21
+ export type UnsupportedDocumentError = TaggedException<UnsupportedDocumentException>;
22
+ export type ValidationError = TaggedException<ValidationException>;
23
+ export type SdkError = CommonSdkError;
24
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
25
+ //# 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,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,+BAA+B,EAC/B,oCAAoC,EACpC,mBAAmB,IAAI,uBAAuB,EAC9C,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,sCAAsC,EACtC,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,4BAA4B,EAC5B,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,4gBAmBnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,gCAAgC,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACrG,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACzG,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,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,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { TextractClient } from "@aws-sdk/client-textract";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const TextractClientInstance_base: Context.TagClass<TextractClientInstance, "@effect-aws/client-textract/TextractClientInstance", TextractClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class TextractClientInstance extends TextractClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<TextractClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<TextractClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=TextractClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextractClientInstance.d.ts","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAED;CAAG;AAE9C;;;GAGG;AACH,eAAO,MAAM,IAAI,oEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,mDAA6C,CAAC"}