@effect-aws/client-textract 1.2.0 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Errors/package.json +6 -0
- package/TextractClientInstance/package.json +6 -0
- package/TextractService/package.json +6 -0
- package/TextractServiceConfig/package.json +6 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +26 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/TextractClientInstance.d.ts +24 -0
- package/dist/cjs/TextractClientInstance.d.ts.map +1 -0
- package/dist/cjs/TextractClientInstance.js +50 -0
- package/dist/cjs/TextractClientInstance.js.map +1 -0
- package/dist/cjs/TextractService.d.ts +141 -0
- package/dist/cjs/TextractService.d.ts.map +1 -0
- package/dist/cjs/TextractService.js +84 -0
- package/dist/cjs/TextractService.js.map +1 -0
- package/dist/cjs/TextractServiceConfig.d.ts +25 -0
- package/dist/cjs/TextractServiceConfig.d.ts.map +1 -0
- package/dist/cjs/TextractServiceConfig.js +35 -0
- package/dist/cjs/TextractServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +25 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/TextractClientInstance.d.ts +24 -0
- package/dist/dts/TextractClientInstance.d.ts.map +1 -0
- package/dist/dts/TextractService.d.ts +141 -0
- package/dist/dts/TextractService.d.ts.map +1 -0
- package/dist/dts/TextractServiceConfig.d.ts +25 -0
- package/dist/dts/TextractServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +23 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/TextractClientInstance.js +23 -0
- package/dist/esm/TextractClientInstance.js.map +1 -0
- package/dist/esm/TextractService.js +57 -0
- package/dist/esm/TextractService.js.map +1 -0
- package/dist/esm/TextractServiceConfig.js +31 -0
- package/dist/esm/TextractServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/Errors.ts +65 -0
- package/src/TextractClientInstance.ts +33 -0
- package/src/TextractService.ts +692 -0
- package/src/TextractServiceConfig.ts +52 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -19
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -26
- package/lib/TextractClientInstance.d.ts +0 -31
- package/lib/TextractClientInstance.js +0 -57
- package/lib/TextractClientInstanceConfig.d.ts +0 -23
- package/lib/TextractClientInstanceConfig.js +0 -44
- package/lib/TextractService.d.ts +0 -190
- package/lib/TextractService.js +0 -113
- package/lib/esm/Errors.js +0 -23
- package/lib/esm/TextractClientInstance.js +0 -30
- package/lib/esm/TextractClientInstanceConfig.js +0 -40
- package/lib/esm/TextractService.js +0 -109
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
5
|
+
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
7
|
+
import { dual } from "effect/Function";
|
|
8
|
+
import { globalValue } from "effect/GlobalValue";
|
|
9
|
+
import type { TextractService } from "./TextractService.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
* @category textract service config
|
|
14
|
+
*/
|
|
15
|
+
const currentTextractServiceConfig = globalValue(
|
|
16
|
+
"@effect-aws/client-textract/currentTextractServiceConfig",
|
|
17
|
+
() => FiberRef.unsafeMake<TextractService.Config>({}),
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category textract service config
|
|
23
|
+
*/
|
|
24
|
+
export const withTextractServiceConfig: {
|
|
25
|
+
(config: TextractService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
26
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: TextractService.Config): Effect.Effect<A, E, R>;
|
|
27
|
+
} = dual(
|
|
28
|
+
2,
|
|
29
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: TextractService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
+
Effect.locally(effect, currentTextractServiceConfig, config),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category textract service config
|
|
36
|
+
*/
|
|
37
|
+
export const setTextractServiceConfig = (config: TextractService.Config) =>
|
|
38
|
+
Layer.locallyScoped(currentTextractServiceConfig, config);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category adapters
|
|
43
|
+
*/
|
|
44
|
+
export const toTextractClientConfig: Effect.Effect<TextractClientConfig> = Effect.gen(function*() {
|
|
45
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTextractServiceConfig);
|
|
46
|
+
|
|
47
|
+
const logger = serviceLogger === true
|
|
48
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
49
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
50
|
+
|
|
51
|
+
return { logger, ...config };
|
|
52
|
+
});
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { TextractService } from "./TextractService.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export * from "./Errors.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
export * as TextractClientInstance from "./TextractClientInstance.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
*/
|
|
19
|
+
export * as TextractServiceConfig from "./TextractServiceConfig.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
export * from "./TextractService.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
* @category exports
|
|
29
|
+
* @alias TextractService
|
|
30
|
+
*/
|
|
31
|
+
export declare namespace Textract {
|
|
32
|
+
/**
|
|
33
|
+
* @since 1.0.0
|
|
34
|
+
* @alias TextractService.Config
|
|
35
|
+
*/
|
|
36
|
+
export type Config = TextractService.Config;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @since 1.0.0
|
|
41
|
+
* @category exports
|
|
42
|
+
* @alias TextractService
|
|
43
|
+
*/
|
|
44
|
+
export const Textract = TextractService;
|
package/CHANGELOG.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# @effect-aws/client-textract
|
|
2
|
-
|
|
3
|
-
## 1.2.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#93](https://github.com/floydspace/effect-aws/pull/93) [`a96fbd8`](https://github.com/floydspace/effect-aws/commit/a96fbd8840a7a6cfb795a2a6ab96aa32d32a3525) Thanks [@godu](https://github.com/godu)! - Destroy client after layer lifecycle to release idle connections.
|
|
8
|
-
|
|
9
|
-
## 1.1.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- [#80](https://github.com/floydspace/effect-aws/pull/80) [`4b16fbe`](https://github.com/floydspace/effect-aws/commit/4b16fbebce8131df7798ee92f43cf6b7df3e907c) Thanks [@floydspace](https://github.com/floydspace)! - simplify layers configuration (closes #78)
|
|
14
|
-
|
|
15
|
-
## 1.0.0
|
|
16
|
-
|
|
17
|
-
### Major Changes
|
|
18
|
-
|
|
19
|
-
- [#77](https://github.com/floydspace/effect-aws/pull/77) [`9f98088`](https://github.com/floydspace/effect-aws/commit/9f98088422f25ecba32f2bd193c5eb28f19622cc) Thanks [@successkrisz](https://github.com/successkrisz)! - implement bedrock and textract clients
|
package/docgen.json
DELETED
package/lib/Errors.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SdkError = exports.AllServiceErrors = void 0;
|
|
4
|
-
const effect_1 = require("effect");
|
|
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 = effect_1.Data.tagged("SdkError");
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXJyb3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9ydGVkRG9jdW1lbnRFeGNlcHRpb24+O1xuZXhwb3J0IHR5cGUgVmFsaWRhdGlvbkVycm9yID0gVGFnZ2VkRXhjZXB0aW9uPFZhbGlkYXRpb25FeGNlcHRpb24+O1xuXG5leHBvcnQgdHlwZSBTZGtFcnJvciA9IFRhZ2dlZEV4Y2VwdGlvbjxFcnJvciAmIHsgbmFtZTogXCJTZGtFcnJvclwiIH0+O1xuZXhwb3J0IGNvbnN0IFNka0Vycm9yID0gRGF0YS50YWdnZWQ8U2RrRXJyb3I+KFwiU2RrRXJyb3JcIik7XG4iXX0=
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { TextractClient } from "@aws-sdk/client-textract";
|
|
5
|
-
import * as Context from "effect/Context";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
|
-
import * as Layer from "effect/Layer";
|
|
8
|
-
import { TextractClientInstanceConfig } from "./TextractClientInstanceConfig";
|
|
9
|
-
declare const TextractClientInstance_base: Context.TagClass<TextractClientInstance, "@effect-aws/client-textract/TextractClientInstance", TextractClient>;
|
|
10
|
-
/**
|
|
11
|
-
* @since 1.0.0
|
|
12
|
-
* @category tags
|
|
13
|
-
*/
|
|
14
|
-
export declare class TextractClientInstance extends TextractClientInstance_base {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @since 1.0.0
|
|
18
|
-
* @category constructors
|
|
19
|
-
*/
|
|
20
|
-
export declare const makeTextractClientInstance: Effect.Effect<TextractClient, never, import("effect/Scope").Scope | TextractClientInstanceConfig>;
|
|
21
|
-
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category layers
|
|
24
|
-
*/
|
|
25
|
-
export declare const TextractClientInstanceLayer: Layer.Layer<TextractClientInstance, never, TextractClientInstanceConfig>;
|
|
26
|
-
/**
|
|
27
|
-
* @since 1.0.0
|
|
28
|
-
* @category layers
|
|
29
|
-
*/
|
|
30
|
-
export declare const DefaultTextractClientInstanceLayer: Layer.Layer<TextractClientInstance, never, never>;
|
|
31
|
-
export {};
|
|
@@ -1,57 +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.DefaultTextractClientInstanceLayer = exports.TextractClientInstanceLayer = exports.makeTextractClientInstance = exports.TextractClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_textract_1 = require("@aws-sdk/client-textract");
|
|
31
|
-
const Context = __importStar(require("effect/Context"));
|
|
32
|
-
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
-
const Layer = __importStar(require("effect/Layer"));
|
|
34
|
-
const TextractClientInstanceConfig_1 = require("./TextractClientInstanceConfig");
|
|
35
|
-
/**
|
|
36
|
-
* @since 1.0.0
|
|
37
|
-
* @category tags
|
|
38
|
-
*/
|
|
39
|
-
class TextractClientInstance extends Context.Tag("@effect-aws/client-textract/TextractClientInstance")() {
|
|
40
|
-
}
|
|
41
|
-
exports.TextractClientInstance = TextractClientInstance;
|
|
42
|
-
/**
|
|
43
|
-
* @since 1.0.0
|
|
44
|
-
* @category constructors
|
|
45
|
-
*/
|
|
46
|
-
exports.makeTextractClientInstance = Effect.flatMap(TextractClientInstanceConfig_1.TextractClientInstanceConfig, (config) => Effect.acquireRelease(Effect.sync(() => new client_textract_1.TextractClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
47
|
-
/**
|
|
48
|
-
* @since 1.0.0
|
|
49
|
-
* @category layers
|
|
50
|
-
*/
|
|
51
|
-
exports.TextractClientInstanceLayer = Layer.scoped(TextractClientInstance, exports.makeTextractClientInstance);
|
|
52
|
-
/**
|
|
53
|
-
* @since 1.0.0
|
|
54
|
-
* @category layers
|
|
55
|
-
*/
|
|
56
|
-
exports.DefaultTextractClientInstanceLayer = exports.TextractClientInstanceLayer.pipe(Layer.provide(TextractClientInstanceConfig_1.DefaultTextractClientConfigLayer));
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGV4dHJhY3RDbGllbnRJbnN0YW5jZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9UZXh0cmFjdENsaWVudEluc3RhbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0dBRUc7QUFDSCw4REFBMEQ7QUFDMUQsd0RBQTBDO0FBQzFDLHNEQUF3QztBQUN4QyxvREFBc0M7QUFDdEMs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FuY2UsXG4gIG1ha2VUZXh0cmFjdENsaWVudEluc3RhbmNlLFxuKTtcblxuLyoqXG4gKiBAc2luY2UgMS4wLjBcbiAqIEBjYXRlZ29yeSBsYXllcnNcbiAqL1xuZXhwb3J0IGNvbnN0IERlZmF1bHRUZXh0cmFjdENsaWVudEluc3RhbmNlTGF5ZXIgPVxuICBUZXh0cmFjdENsaWVudEluc3RhbmNlTGF5ZXIucGlwZShcbiAgICBMYXllci5wcm92aWRlKERlZmF1bHRUZXh0cmFjdENsaWVudENvbmZpZ0xheWVyKSxcbiAgKTtcbiJdfQ==
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const TextractClientInstanceConfig_base: Context.TagClass<TextractClientInstanceConfig, "@effect-aws/client-textract/TextractClientInstanceConfig", TextractClientConfig>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class TextractClientInstanceConfig extends TextractClientInstanceConfig_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const makeDefaultTextractClientInstanceConfig: Effect.Effect<TextractClientConfig>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const DefaultTextractClientConfigLayer: Layer.Layer<TextractClientInstanceConfig, never, never>;
|
|
23
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultTextractClientConfigLayer = exports.makeDefaultTextractClientInstanceConfig = exports.TextractClientInstanceConfig = void 0;
|
|
4
|
-
const effect_1 = require("effect");
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
* @category tags
|
|
8
|
-
*/
|
|
9
|
-
class TextractClientInstanceConfig extends effect_1.Context.Tag("@effect-aws/client-textract/TextractClientInstanceConfig")() {
|
|
10
|
-
}
|
|
11
|
-
exports.TextractClientInstanceConfig = TextractClientInstanceConfig;
|
|
12
|
-
/**
|
|
13
|
-
* @since 1.0.0
|
|
14
|
-
* @category constructors
|
|
15
|
-
*/
|
|
16
|
-
exports.makeDefaultTextractClientInstanceConfig = effect_1.Effect.gen(function* (_) {
|
|
17
|
-
const runtime = yield* _(effect_1.Effect.runtime());
|
|
18
|
-
const runSync = effect_1.Runtime.runSync(runtime);
|
|
19
|
-
return {
|
|
20
|
-
logger: {
|
|
21
|
-
info(m) {
|
|
22
|
-
effect_1.Effect.logInfo(m).pipe(runSync);
|
|
23
|
-
},
|
|
24
|
-
warn(m) {
|
|
25
|
-
effect_1.Effect.logWarning(m).pipe(runSync);
|
|
26
|
-
},
|
|
27
|
-
error(m) {
|
|
28
|
-
effect_1.Effect.logError(m).pipe(runSync);
|
|
29
|
-
},
|
|
30
|
-
debug(m) {
|
|
31
|
-
effect_1.Effect.logDebug(m).pipe(runSync);
|
|
32
|
-
},
|
|
33
|
-
trace(m) {
|
|
34
|
-
effect_1.Effect.logTrace(m).pipe(runSync);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* @since 1.0.0
|
|
41
|
-
* @category layers
|
|
42
|
-
*/
|
|
43
|
-
exports.DefaultTextractClientConfigLayer = effect_1.Layer.effect(TextractClientInstanceConfig, exports.makeDefaultTextractClientInstanceConfig);
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGV4dHJhY3RDbGllbnRJbnN0YW5jZUNvbmZpZy5qcyIsInNvdXJj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FZmZlY3Q8VGV4dHJhY3RDbGllbnRDb25maWc+ID1cbiAgRWZmZWN0LmdlbihmdW5jdGlvbiogKF8pIHtcbiAgICBjb25zdCBydW50aW1lID0geWllbGQqIF8oRWZmZWN0LnJ1bnRpbWU8bmV2ZXI+KCkpO1xuICAgIGNvbnN0IHJ1blN5bmMgPSBSdW50aW1lLnJ1blN5bmMocnVudGltZSk7XG5cbiAgICByZXR1cm4ge1xuICAgICAgbG9nZ2VyOiB7XG4gICAgICAgIGluZm8obSkge1xuICAgICAgICAgIEVmZmVjdC5sb2dJbmZvKG0pLnBpcGUocnVuU3luYyk7XG4gICAgICAgIH0sXG4gICAgICAgIHdhcm4obSkge1xuICAgICAgICAgIEVmZmVjdC5sb2dXYXJuaW5nKG0pLnBpcGUocnVuU3luYyk7XG4gICAgICAgIH0sXG4gICAgICAgIGVycm9yKG0pIHtcbiAgICAgICAgICBFZmZlY3QubG9nRXJyb3IobSkucGlwZShydW5TeW5jKTtcbiAgICAgICAgfSxcbiAgICAgICAgZGVidWcobSkge1xuICAgICAgICAgIEVmZmVjdC5sb2dEZWJ1ZyhtKS5waXBlKHJ1blN5bmMpO1xuICAgICAgICB9LFxuICAgICAgICB0cmFjZShtKSB7XG4gICAgICAgICAgRWZmZWN0LmxvZ1RyYWNlKG0pLnBpcGUocnVuU3luYyk7XG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH07XG4gIH0pO1xuXG4vKipcbiAqIEBzaW5jZSAxLjAuMFxuICogQGNhdGVnb3J5IGxheWVyc1xuICovXG5leHBvcnQgY29uc3QgRGVmYXVsdFRleHRyYWN0Q2xpZW50Q29uZmlnTGF5ZXIgPSBMYXllci5lZmZlY3QoXG4gIFRleHRyYWN0Q2xpZW50SW5zdGFuY2VDb25maWcsXG4gIG1ha2VEZWZhdWx0VGV4dHJhY3RDbGllbnRJbnN0YW5jZUNvbmZpZyxcbik7XG4iXX0=
|
package/lib/TextractService.d.ts
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
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";
|
|
5
|
-
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
|
-
}
|
|
19
|
-
interface TextractService$ {
|
|
20
|
-
readonly _: unique symbol;
|
|
21
|
-
/**
|
|
22
|
-
* @see {@link AnalyzeDocumentCommand}
|
|
23
|
-
*/
|
|
24
|
-
analyzeDocument(args: AnalyzeDocumentCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeDocumentCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | HumanLoopQuotaExceededError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
25
|
-
/**
|
|
26
|
-
* @see {@link AnalyzeExpenseCommand}
|
|
27
|
-
*/
|
|
28
|
-
analyzeExpense(args: AnalyzeExpenseCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeExpenseCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
29
|
-
/**
|
|
30
|
-
* @see {@link AnalyzeIDCommand}
|
|
31
|
-
*/
|
|
32
|
-
analyzeID(args: AnalyzeIDCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeIDCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
33
|
-
/**
|
|
34
|
-
* @see {@link CreateAdapterCommand}
|
|
35
|
-
*/
|
|
36
|
-
createAdapter(args: CreateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterCommandOutput, SdkError | AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidParameterError | LimitExceededError | ProvisionedThroughputExceededError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
37
|
-
/**
|
|
38
|
-
* @see {@link CreateAdapterVersionCommand}
|
|
39
|
-
*/
|
|
40
|
-
createAdapterVersion(args: CreateAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterVersionCommandOutput, SdkError | AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
41
|
-
/**
|
|
42
|
-
* @see {@link DeleteAdapterCommand}
|
|
43
|
-
*/
|
|
44
|
-
deleteAdapter(args: DeleteAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
45
|
-
/**
|
|
46
|
-
* @see {@link DeleteAdapterVersionCommand}
|
|
47
|
-
*/
|
|
48
|
-
deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterVersionCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
49
|
-
/**
|
|
50
|
-
* @see {@link DetectDocumentTextCommand}
|
|
51
|
-
*/
|
|
52
|
-
detectDocumentText(args: DetectDocumentTextCommandInput, options?: HttpHandlerOptions): Effect.Effect<DetectDocumentTextCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
53
|
-
/**
|
|
54
|
-
* @see {@link GetAdapterCommand}
|
|
55
|
-
*/
|
|
56
|
-
getAdapter(args: GetAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
57
|
-
/**
|
|
58
|
-
* @see {@link GetAdapterVersionCommand}
|
|
59
|
-
*/
|
|
60
|
-
getAdapterVersion(args: GetAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterVersionCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
61
|
-
/**
|
|
62
|
-
* @see {@link GetDocumentAnalysisCommand}
|
|
63
|
-
*/
|
|
64
|
-
getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentAnalysisCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
65
|
-
/**
|
|
66
|
-
* @see {@link GetDocumentTextDetectionCommand}
|
|
67
|
-
*/
|
|
68
|
-
getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentTextDetectionCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
69
|
-
/**
|
|
70
|
-
* @see {@link GetExpenseAnalysisCommand}
|
|
71
|
-
*/
|
|
72
|
-
getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetExpenseAnalysisCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
73
|
-
/**
|
|
74
|
-
* @see {@link GetLendingAnalysisCommand}
|
|
75
|
-
*/
|
|
76
|
-
getLendingAnalysis(args: GetLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
77
|
-
/**
|
|
78
|
-
* @see {@link GetLendingAnalysisSummaryCommand}
|
|
79
|
-
*/
|
|
80
|
-
getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisSummaryCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
81
|
-
/**
|
|
82
|
-
* @see {@link ListAdapterVersionsCommand}
|
|
83
|
-
*/
|
|
84
|
-
listAdapterVersions(args: ListAdapterVersionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdapterVersionsCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
85
|
-
/**
|
|
86
|
-
* @see {@link ListAdaptersCommand}
|
|
87
|
-
*/
|
|
88
|
-
listAdapters(args: ListAdaptersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdaptersCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ThrottlingError | ValidationError>;
|
|
89
|
-
/**
|
|
90
|
-
* @see {@link ListTagsForResourceCommand}
|
|
91
|
-
*/
|
|
92
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
93
|
-
/**
|
|
94
|
-
* @see {@link StartDocumentAnalysisCommand}
|
|
95
|
-
*/
|
|
96
|
-
startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentAnalysisCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
97
|
-
/**
|
|
98
|
-
* @see {@link StartDocumentTextDetectionCommand}
|
|
99
|
-
*/
|
|
100
|
-
startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentTextDetectionCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
101
|
-
/**
|
|
102
|
-
* @see {@link StartExpenseAnalysisCommand}
|
|
103
|
-
*/
|
|
104
|
-
startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartExpenseAnalysisCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
105
|
-
/**
|
|
106
|
-
* @see {@link StartLendingAnalysisCommand}
|
|
107
|
-
*/
|
|
108
|
-
startLendingAnalysis(args: StartLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartLendingAnalysisCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
109
|
-
/**
|
|
110
|
-
* @see {@link TagResourceCommand}
|
|
111
|
-
*/
|
|
112
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
113
|
-
/**
|
|
114
|
-
* @see {@link UntagResourceCommand}
|
|
115
|
-
*/
|
|
116
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
117
|
-
/**
|
|
118
|
-
* @see {@link UpdateAdapterCommand}
|
|
119
|
-
*/
|
|
120
|
-
updateAdapter(args: UpdateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAdapterCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* @since 1.0.0
|
|
124
|
-
* @category constructors
|
|
125
|
-
*/
|
|
126
|
-
export declare const makeTextractService: Effect.Effect<TextractService$, never, TextractClientInstance>;
|
|
127
|
-
declare const TextractService_base: import("effect/Context").TagClass<TextractService, "@effect-aws/client-textract/TextractService", TextractService$> & {
|
|
128
|
-
readonly _: Effect.Effect<TextractService$["_"], never, TextractService>;
|
|
129
|
-
analyzeDocument: (args: AnalyzeDocumentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AnalyzeDocumentCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | HumanLoopQuotaExceededError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
130
|
-
analyzeExpense: (args: AnalyzeExpenseCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AnalyzeExpenseCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
131
|
-
analyzeID: (args: AnalyzeIDCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AnalyzeIDCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
132
|
-
createAdapter: (args: CreateAdapterCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateAdapterCommandOutput, AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidParameterError | LimitExceededError | ProvisionedThroughputExceededError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
133
|
-
createAdapterVersion: (args: CreateAdapterVersionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateAdapterVersionCommandOutput, AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
134
|
-
deleteAdapter: (args: DeleteAdapterCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteAdapterCommandOutput, AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
135
|
-
deleteAdapterVersion: (args: DeleteAdapterVersionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteAdapterVersionCommandOutput, AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
136
|
-
detectDocumentText: (args: DetectDocumentTextCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DetectDocumentTextCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
137
|
-
getAdapter: (args: GetAdapterCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetAdapterCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
138
|
-
getAdapterVersion: (args: GetAdapterVersionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetAdapterVersionCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
139
|
-
getDocumentAnalysis: (args: GetDocumentAnalysisCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetDocumentAnalysisCommandOutput, AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | SdkError, TextractService>;
|
|
140
|
-
getDocumentTextDetection: (args: GetDocumentTextDetectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetDocumentTextDetectionCommandOutput, AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | SdkError, TextractService>;
|
|
141
|
-
getExpenseAnalysis: (args: GetExpenseAnalysisCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetExpenseAnalysisCommandOutput, AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | SdkError, TextractService>;
|
|
142
|
-
getLendingAnalysis: (args: GetLendingAnalysisCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetLendingAnalysisCommandOutput, AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | SdkError, TextractService>;
|
|
143
|
-
getLendingAnalysisSummary: (args: GetLendingAnalysisSummaryCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetLendingAnalysisSummaryCommandOutput, AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | SdkError, TextractService>;
|
|
144
|
-
listAdapterVersions: (args: ListAdapterVersionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListAdapterVersionsCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
145
|
-
listAdapters: (args: ListAdaptersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListAdaptersCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
146
|
-
listTagsForResource: (args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTagsForResourceCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
147
|
-
startDocumentAnalysis: (args: StartDocumentAnalysisCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StartDocumentAnalysisCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
148
|
-
startDocumentTextDetection: (args: StartDocumentTextDetectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StartDocumentTextDetectionCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
149
|
-
startExpenseAnalysis: (args: StartExpenseAnalysisCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StartExpenseAnalysisCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
150
|
-
startLendingAnalysis: (args: StartLendingAnalysisCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StartLendingAnalysisCommandOutput, AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError | SdkError, TextractService>;
|
|
151
|
-
tagResource: (args: TagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<TagResourceCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
152
|
-
untagResource: (args: UntagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagResourceCommandOutput, AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
153
|
-
updateAdapter: (args: UpdateAdapterCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateAdapterCommandOutput, AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, TextractService>;
|
|
154
|
-
} & {
|
|
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>;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* @since 1.0.0
|
|
159
|
-
* @category models
|
|
160
|
-
*/
|
|
161
|
-
export declare class TextractService extends TextractService_base {
|
|
162
|
-
static readonly defaultLayer: Layer.Layer<TextractService, never, never>;
|
|
163
|
-
static readonly layer: (config: TextractClientConfig) => Layer.Layer<TextractService, never, never>;
|
|
164
|
-
static readonly baseLayer: (evaluate: (defaultConfig: TextractClientConfig) => TextractClient) => Layer.Layer<TextractService, never, never>;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* @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
|
-
*/
|
|
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>;
|
|
190
|
-
export {};
|