@aws-sdk/client-nova-act 3.943.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.
- package/LICENSE +201 -0
- package/README.md +333 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1297 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +36 -0
- package/dist-es/NovaAct.js +39 -0
- package/dist-es/NovaActClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateActCommand.js +16 -0
- package/dist-es/commands/CreateSessionCommand.js +16 -0
- package/dist-es/commands/CreateWorkflowDefinitionCommand.js +16 -0
- package/dist-es/commands/CreateWorkflowRunCommand.js +16 -0
- package/dist-es/commands/DeleteWorkflowDefinitionCommand.js +16 -0
- package/dist-es/commands/DeleteWorkflowRunCommand.js +16 -0
- package/dist-es/commands/GetWorkflowDefinitionCommand.js +16 -0
- package/dist-es/commands/GetWorkflowRunCommand.js +16 -0
- package/dist-es/commands/InvokeActStepCommand.js +16 -0
- package/dist-es/commands/ListActsCommand.js +16 -0
- package/dist-es/commands/ListModelsCommand.js +16 -0
- package/dist-es/commands/ListSessionsCommand.js +16 -0
- package/dist-es/commands/ListWorkflowDefinitionsCommand.js +16 -0
- package/dist-es/commands/ListWorkflowRunsCommand.js +16 -0
- package/dist-es/commands/UpdateActCommand.js +16 -0
- package/dist-es/commands/UpdateWorkflowRunCommand.js +16 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/NovaActServiceException.js +8 -0
- package/dist-es/models/enums.js +41 -0
- package/dist-es/models/errors.js +119 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListActsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/ListWorkflowDefinitionsPaginator.js +4 -0
- package/dist-es/pagination/ListWorkflowRunsPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +32 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +753 -0
- package/dist-types/NovaAct.d.ts +123 -0
- package/dist-types/NovaActClient.d.ts +212 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateActCommand.d.ts +109 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +97 -0
- package/dist-types/commands/CreateWorkflowDefinitionCommand.d.ts +98 -0
- package/dist-types/commands/CreateWorkflowRunCommand.d.ts +100 -0
- package/dist-types/commands/DeleteWorkflowDefinitionCommand.d.ts +92 -0
- package/dist-types/commands/DeleteWorkflowRunCommand.d.ts +93 -0
- package/dist-types/commands/GetWorkflowDefinitionCommand.d.ts +97 -0
- package/dist-types/commands/GetWorkflowRunCommand.d.ts +99 -0
- package/dist-types/commands/InvokeActStepCommand.d.ts +116 -0
- package/dist-types/commands/ListActsCommand.d.ts +111 -0
- package/dist-types/commands/ListModelsCommand.d.ts +105 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +101 -0
- package/dist-types/commands/ListWorkflowDefinitionsCommand.d.ts +96 -0
- package/dist-types/commands/ListWorkflowRunsCommand.d.ts +108 -0
- package/dist-types/commands/UpdateActCommand.d.ts +98 -0
- package/dist-types/commands/UpdateWorkflowRunCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/NovaActServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +105 -0
- package/dist-types/models/errors.d.ts +167 -0
- package/dist-types/models/models_0.d.ts +1014 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListActsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowDefinitionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/runtimeConfig.browser.d.ts +51 -0
- package/dist-types/runtimeConfig.d.ts +51 -0
- package/dist-types/runtimeConfig.native.d.ts +50 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +93 -0
- package/dist-types/ts3.4/NovaAct.d.ts +278 -0
- package/dist-types/ts3.4/NovaActClient.d.ts +219 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateActCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateWorkflowDefinitionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateWorkflowRunCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowDefinitionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowRunCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkflowDefinitionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/InvokeActStepCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListActsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListModelsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListWorkflowDefinitionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateActCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateWorkflowRunCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/NovaActServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +54 -0
- package/dist-types/ts3.4/models/errors.d.ts +73 -0
- package/dist-types/ts3.4/models/models_0.d.ts +275 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListActsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowDefinitionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +25 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
- package/package.json +99 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { CreateActCommandInput, CreateActCommandOutput } from "./commands/CreateActCommand";
|
|
3
|
+
import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
|
|
4
|
+
import { CreateWorkflowDefinitionCommandInput, CreateWorkflowDefinitionCommandOutput } from "./commands/CreateWorkflowDefinitionCommand";
|
|
5
|
+
import { CreateWorkflowRunCommandInput, CreateWorkflowRunCommandOutput } from "./commands/CreateWorkflowRunCommand";
|
|
6
|
+
import { DeleteWorkflowDefinitionCommandInput, DeleteWorkflowDefinitionCommandOutput } from "./commands/DeleteWorkflowDefinitionCommand";
|
|
7
|
+
import { DeleteWorkflowRunCommandInput, DeleteWorkflowRunCommandOutput } from "./commands/DeleteWorkflowRunCommand";
|
|
8
|
+
import { GetWorkflowDefinitionCommandInput, GetWorkflowDefinitionCommandOutput } from "./commands/GetWorkflowDefinitionCommand";
|
|
9
|
+
import { GetWorkflowRunCommandInput, GetWorkflowRunCommandOutput } from "./commands/GetWorkflowRunCommand";
|
|
10
|
+
import { InvokeActStepCommandInput, InvokeActStepCommandOutput } from "./commands/InvokeActStepCommand";
|
|
11
|
+
import { ListActsCommandInput, ListActsCommandOutput } from "./commands/ListActsCommand";
|
|
12
|
+
import { ListModelsCommandInput, ListModelsCommandOutput } from "./commands/ListModelsCommand";
|
|
13
|
+
import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
14
|
+
import { ListWorkflowDefinitionsCommandInput, ListWorkflowDefinitionsCommandOutput } from "./commands/ListWorkflowDefinitionsCommand";
|
|
15
|
+
import { ListWorkflowRunsCommandInput, ListWorkflowRunsCommandOutput } from "./commands/ListWorkflowRunsCommand";
|
|
16
|
+
import { UpdateActCommandInput, UpdateActCommandOutput } from "./commands/UpdateActCommand";
|
|
17
|
+
import { UpdateWorkflowRunCommandInput, UpdateWorkflowRunCommandOutput } from "./commands/UpdateWorkflowRunCommand";
|
|
18
|
+
import { NovaActClient } from "./NovaActClient";
|
|
19
|
+
export interface NovaAct {
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link CreateActCommand}
|
|
22
|
+
*/
|
|
23
|
+
createAct(args: CreateActCommandInput, options?: __HttpHandlerOptions): Promise<CreateActCommandOutput>;
|
|
24
|
+
createAct(args: CreateActCommandInput, cb: (err: any, data?: CreateActCommandOutput) => void): void;
|
|
25
|
+
createAct(args: CreateActCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateActCommandOutput) => void): void;
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link CreateSessionCommand}
|
|
28
|
+
*/
|
|
29
|
+
createSession(args: CreateSessionCommandInput, options?: __HttpHandlerOptions): Promise<CreateSessionCommandOutput>;
|
|
30
|
+
createSession(args: CreateSessionCommandInput, cb: (err: any, data?: CreateSessionCommandOutput) => void): void;
|
|
31
|
+
createSession(args: CreateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSessionCommandOutput) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* @see {@link CreateWorkflowDefinitionCommand}
|
|
34
|
+
*/
|
|
35
|
+
createWorkflowDefinition(args: CreateWorkflowDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkflowDefinitionCommandOutput>;
|
|
36
|
+
createWorkflowDefinition(args: CreateWorkflowDefinitionCommandInput, cb: (err: any, data?: CreateWorkflowDefinitionCommandOutput) => void): void;
|
|
37
|
+
createWorkflowDefinition(args: CreateWorkflowDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkflowDefinitionCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link CreateWorkflowRunCommand}
|
|
40
|
+
*/
|
|
41
|
+
createWorkflowRun(args: CreateWorkflowRunCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkflowRunCommandOutput>;
|
|
42
|
+
createWorkflowRun(args: CreateWorkflowRunCommandInput, cb: (err: any, data?: CreateWorkflowRunCommandOutput) => void): void;
|
|
43
|
+
createWorkflowRun(args: CreateWorkflowRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkflowRunCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link DeleteWorkflowDefinitionCommand}
|
|
46
|
+
*/
|
|
47
|
+
deleteWorkflowDefinition(args: DeleteWorkflowDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkflowDefinitionCommandOutput>;
|
|
48
|
+
deleteWorkflowDefinition(args: DeleteWorkflowDefinitionCommandInput, cb: (err: any, data?: DeleteWorkflowDefinitionCommandOutput) => void): void;
|
|
49
|
+
deleteWorkflowDefinition(args: DeleteWorkflowDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkflowDefinitionCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link DeleteWorkflowRunCommand}
|
|
52
|
+
*/
|
|
53
|
+
deleteWorkflowRun(args: DeleteWorkflowRunCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkflowRunCommandOutput>;
|
|
54
|
+
deleteWorkflowRun(args: DeleteWorkflowRunCommandInput, cb: (err: any, data?: DeleteWorkflowRunCommandOutput) => void): void;
|
|
55
|
+
deleteWorkflowRun(args: DeleteWorkflowRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkflowRunCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link GetWorkflowDefinitionCommand}
|
|
58
|
+
*/
|
|
59
|
+
getWorkflowDefinition(args: GetWorkflowDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkflowDefinitionCommandOutput>;
|
|
60
|
+
getWorkflowDefinition(args: GetWorkflowDefinitionCommandInput, cb: (err: any, data?: GetWorkflowDefinitionCommandOutput) => void): void;
|
|
61
|
+
getWorkflowDefinition(args: GetWorkflowDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkflowDefinitionCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link GetWorkflowRunCommand}
|
|
64
|
+
*/
|
|
65
|
+
getWorkflowRun(args: GetWorkflowRunCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkflowRunCommandOutput>;
|
|
66
|
+
getWorkflowRun(args: GetWorkflowRunCommandInput, cb: (err: any, data?: GetWorkflowRunCommandOutput) => void): void;
|
|
67
|
+
getWorkflowRun(args: GetWorkflowRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkflowRunCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link InvokeActStepCommand}
|
|
70
|
+
*/
|
|
71
|
+
invokeActStep(args: InvokeActStepCommandInput, options?: __HttpHandlerOptions): Promise<InvokeActStepCommandOutput>;
|
|
72
|
+
invokeActStep(args: InvokeActStepCommandInput, cb: (err: any, data?: InvokeActStepCommandOutput) => void): void;
|
|
73
|
+
invokeActStep(args: InvokeActStepCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeActStepCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* @see {@link ListActsCommand}
|
|
76
|
+
*/
|
|
77
|
+
listActs(args: ListActsCommandInput, options?: __HttpHandlerOptions): Promise<ListActsCommandOutput>;
|
|
78
|
+
listActs(args: ListActsCommandInput, cb: (err: any, data?: ListActsCommandOutput) => void): void;
|
|
79
|
+
listActs(args: ListActsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListActsCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* @see {@link ListModelsCommand}
|
|
82
|
+
*/
|
|
83
|
+
listModels(args: ListModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListModelsCommandOutput>;
|
|
84
|
+
listModels(args: ListModelsCommandInput, cb: (err: any, data?: ListModelsCommandOutput) => void): void;
|
|
85
|
+
listModels(args: ListModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListModelsCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link ListSessionsCommand}
|
|
88
|
+
*/
|
|
89
|
+
listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
|
|
90
|
+
listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
91
|
+
listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link ListWorkflowDefinitionsCommand}
|
|
94
|
+
*/
|
|
95
|
+
listWorkflowDefinitions(): Promise<ListWorkflowDefinitionsCommandOutput>;
|
|
96
|
+
listWorkflowDefinitions(args: ListWorkflowDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkflowDefinitionsCommandOutput>;
|
|
97
|
+
listWorkflowDefinitions(args: ListWorkflowDefinitionsCommandInput, cb: (err: any, data?: ListWorkflowDefinitionsCommandOutput) => void): void;
|
|
98
|
+
listWorkflowDefinitions(args: ListWorkflowDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkflowDefinitionsCommandOutput) => void): void;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link ListWorkflowRunsCommand}
|
|
101
|
+
*/
|
|
102
|
+
listWorkflowRuns(args: ListWorkflowRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkflowRunsCommandOutput>;
|
|
103
|
+
listWorkflowRuns(args: ListWorkflowRunsCommandInput, cb: (err: any, data?: ListWorkflowRunsCommandOutput) => void): void;
|
|
104
|
+
listWorkflowRuns(args: ListWorkflowRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkflowRunsCommandOutput) => void): void;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link UpdateActCommand}
|
|
107
|
+
*/
|
|
108
|
+
updateAct(args: UpdateActCommandInput, options?: __HttpHandlerOptions): Promise<UpdateActCommandOutput>;
|
|
109
|
+
updateAct(args: UpdateActCommandInput, cb: (err: any, data?: UpdateActCommandOutput) => void): void;
|
|
110
|
+
updateAct(args: UpdateActCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateActCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link UpdateWorkflowRunCommand}
|
|
113
|
+
*/
|
|
114
|
+
updateWorkflowRun(args: UpdateWorkflowRunCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkflowRunCommandOutput>;
|
|
115
|
+
updateWorkflowRun(args: UpdateWorkflowRunCommandInput, cb: (err: any, data?: UpdateWorkflowRunCommandOutput) => void): void;
|
|
116
|
+
updateWorkflowRun(args: UpdateWorkflowRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkflowRunCommandOutput) => void): void;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* <p>The Nova Act service provides a REST API for managing AI-powered workflow automation. It enables users to create workflow definitions, execute workflow runs, manage sessions, and orchestrate acts (individual AI tasks) with tool integrations.</p>
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export declare class NovaAct extends NovaActClient implements NovaAct {
|
|
123
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { CreateActCommandInput, CreateActCommandOutput } from "./commands/CreateActCommand";
|
|
11
|
+
import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
|
|
12
|
+
import { CreateWorkflowDefinitionCommandInput, CreateWorkflowDefinitionCommandOutput } from "./commands/CreateWorkflowDefinitionCommand";
|
|
13
|
+
import { CreateWorkflowRunCommandInput, CreateWorkflowRunCommandOutput } from "./commands/CreateWorkflowRunCommand";
|
|
14
|
+
import { DeleteWorkflowDefinitionCommandInput, DeleteWorkflowDefinitionCommandOutput } from "./commands/DeleteWorkflowDefinitionCommand";
|
|
15
|
+
import { DeleteWorkflowRunCommandInput, DeleteWorkflowRunCommandOutput } from "./commands/DeleteWorkflowRunCommand";
|
|
16
|
+
import { GetWorkflowDefinitionCommandInput, GetWorkflowDefinitionCommandOutput } from "./commands/GetWorkflowDefinitionCommand";
|
|
17
|
+
import { GetWorkflowRunCommandInput, GetWorkflowRunCommandOutput } from "./commands/GetWorkflowRunCommand";
|
|
18
|
+
import { InvokeActStepCommandInput, InvokeActStepCommandOutput } from "./commands/InvokeActStepCommand";
|
|
19
|
+
import { ListActsCommandInput, ListActsCommandOutput } from "./commands/ListActsCommand";
|
|
20
|
+
import { ListModelsCommandInput, ListModelsCommandOutput } from "./commands/ListModelsCommand";
|
|
21
|
+
import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
22
|
+
import { ListWorkflowDefinitionsCommandInput, ListWorkflowDefinitionsCommandOutput } from "./commands/ListWorkflowDefinitionsCommand";
|
|
23
|
+
import { ListWorkflowRunsCommandInput, ListWorkflowRunsCommandOutput } from "./commands/ListWorkflowRunsCommand";
|
|
24
|
+
import { UpdateActCommandInput, UpdateActCommandOutput } from "./commands/UpdateActCommand";
|
|
25
|
+
import { UpdateWorkflowRunCommandInput, UpdateWorkflowRunCommandOutput } from "./commands/UpdateWorkflowRunCommand";
|
|
26
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
27
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
28
|
+
export { __Client };
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type ServiceInputTypes = CreateActCommandInput | CreateSessionCommandInput | CreateWorkflowDefinitionCommandInput | CreateWorkflowRunCommandInput | DeleteWorkflowDefinitionCommandInput | DeleteWorkflowRunCommandInput | GetWorkflowDefinitionCommandInput | GetWorkflowRunCommandInput | InvokeActStepCommandInput | ListActsCommandInput | ListModelsCommandInput | ListSessionsCommandInput | ListWorkflowDefinitionsCommandInput | ListWorkflowRunsCommandInput | UpdateActCommandInput | UpdateWorkflowRunCommandInput;
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export type ServiceOutputTypes = CreateActCommandOutput | CreateSessionCommandOutput | CreateWorkflowDefinitionCommandOutput | CreateWorkflowRunCommandOutput | DeleteWorkflowDefinitionCommandOutput | DeleteWorkflowRunCommandOutput | GetWorkflowDefinitionCommandOutput | GetWorkflowRunCommandOutput | InvokeActStepCommandOutput | ListActsCommandOutput | ListModelsCommandOutput | ListSessionsCommandOutput | ListWorkflowDefinitionsCommandOutput | ListWorkflowRunsCommandOutput | UpdateActCommandOutput | UpdateWorkflowRunCommandOutput;
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
41
|
+
/**
|
|
42
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
43
|
+
*/
|
|
44
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
45
|
+
/**
|
|
46
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
47
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
51
|
+
/**
|
|
52
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
urlParser?: __UrlParser;
|
|
56
|
+
/**
|
|
57
|
+
* A function that can calculate the length of a request body.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
61
|
+
/**
|
|
62
|
+
* A function that converts a stream into an array of bytes.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
streamCollector?: __StreamCollector;
|
|
66
|
+
/**
|
|
67
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
base64Decoder?: __Decoder;
|
|
71
|
+
/**
|
|
72
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
base64Encoder?: __Encoder;
|
|
76
|
+
/**
|
|
77
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
utf8Decoder?: __Decoder;
|
|
81
|
+
/**
|
|
82
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
utf8Encoder?: __Encoder;
|
|
86
|
+
/**
|
|
87
|
+
* The runtime environment.
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
runtime?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
93
|
+
* trait of an operation.
|
|
94
|
+
*/
|
|
95
|
+
disableHostPrefix?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Unique service identifier.
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
serviceId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
103
|
+
*/
|
|
104
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Enables FIPS compatible endpoints.
|
|
107
|
+
*/
|
|
108
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* The AWS region to which this client will send requests
|
|
111
|
+
*/
|
|
112
|
+
region?: string | __Provider<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Setting a client profile is similar to setting a value for the
|
|
115
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
116
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
117
|
+
*
|
|
118
|
+
* When set, and only for environments where an AWS configuration
|
|
119
|
+
* file exists, fields configurable by this file will be retrieved
|
|
120
|
+
* from the specified profile within that file.
|
|
121
|
+
* Conflicting code configuration and environment variables will
|
|
122
|
+
* still have higher priority.
|
|
123
|
+
*
|
|
124
|
+
* For client credential resolution that involves checking the AWS
|
|
125
|
+
* configuration file, the client's profile (this value) will be
|
|
126
|
+
* used unless a different profile is set in the credential
|
|
127
|
+
* provider options.
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
profile?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
136
|
+
/**
|
|
137
|
+
* Default credentials provider; Not available in browser runtime.
|
|
138
|
+
* @deprecated
|
|
139
|
+
* @internal
|
|
140
|
+
*/
|
|
141
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
142
|
+
/**
|
|
143
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
144
|
+
*/
|
|
145
|
+
maxAttempts?: number | __Provider<number>;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies which retry algorithm to use.
|
|
148
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
retryMode?: string | __Provider<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Optional logger for logging debug/info/warn/error.
|
|
154
|
+
*/
|
|
155
|
+
logger?: __Logger;
|
|
156
|
+
/**
|
|
157
|
+
* Optional extensions
|
|
158
|
+
*/
|
|
159
|
+
extensions?: RuntimeExtension[];
|
|
160
|
+
/**
|
|
161
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
162
|
+
* may be overridden. A default will always be set by the client.
|
|
163
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
164
|
+
* the client.
|
|
165
|
+
* @alpha
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
171
|
+
*/
|
|
172
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
export type NovaActClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
178
|
+
/**
|
|
179
|
+
* @public
|
|
180
|
+
*
|
|
181
|
+
* The configuration interface of NovaActClient class constructor that set the region, credentials and other options.
|
|
182
|
+
*/
|
|
183
|
+
export interface NovaActClientConfig extends NovaActClientConfigType {
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export type NovaActClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
*
|
|
192
|
+
* The resolved configuration interface of NovaActClient class. This is resolved and normalized from the {@link NovaActClientConfig | constructor configuration interface}.
|
|
193
|
+
*/
|
|
194
|
+
export interface NovaActClientResolvedConfig extends NovaActClientResolvedConfigType {
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* <p>The Nova Act service provides a REST API for managing AI-powered workflow automation. It enables users to create workflow definitions, execute workflow runs, manage sessions, and orchestrate acts (individual AI tasks) with tool integrations.</p>
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
export declare class NovaActClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, NovaActClientResolvedConfig> {
|
|
201
|
+
/**
|
|
202
|
+
* The resolved configuration of NovaActClient class. This is resolved and normalized from the {@link NovaActClientConfig | constructor configuration interface}.
|
|
203
|
+
*/
|
|
204
|
+
readonly config: NovaActClientResolvedConfig;
|
|
205
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<NovaActClientConfig>);
|
|
206
|
+
/**
|
|
207
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
208
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
209
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
210
|
+
*/
|
|
211
|
+
destroy(): void;
|
|
212
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { NovaActHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: NovaActHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): NovaActHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: NovaActHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { NovaActClientResolvedConfig } from "../NovaActClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface NovaActHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface NovaActHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<NovaActClientResolvedConfig, HandlerExecutionContext, NovaActHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultNovaActHttpAuthSchemeParametersProvider: (config: NovaActClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<NovaActHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface NovaActHttpAuthSchemeProvider extends HttpAuthSchemeProvider<NovaActHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultNovaActHttpAuthSchemeProvider: NovaActHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: NovaActHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: NovaActHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateActRequest, CreateActResponse } from "../models/models_0";
|
|
4
|
+
import { NovaActClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NovaActClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateActCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateActCommandInput extends CreateActRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateActCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateActCommandOutput extends CreateActResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateActCommand_base: {
|
|
25
|
+
new (input: CreateActCommandInput): import("@smithy/smithy-client").CommandImpl<CreateActCommandInput, CreateActCommandOutput, NovaActClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateActCommandInput): import("@smithy/smithy-client").CommandImpl<CreateActCommandInput, CreateActCommandOutput, NovaActClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a new AI task (act) within a session that can interact with tools and perform specific actions.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { NovaActClient, CreateActCommand } from "@aws-sdk/client-nova-act"; // ES Modules import
|
|
35
|
+
* // const { NovaActClient, CreateActCommand } = require("@aws-sdk/client-nova-act"); // CommonJS import
|
|
36
|
+
* // import type { NovaActClientConfig } from "@aws-sdk/client-nova-act";
|
|
37
|
+
* const config = {}; // type is NovaActClientConfig
|
|
38
|
+
* const client = new NovaActClient(config);
|
|
39
|
+
* const input = { // CreateActRequest
|
|
40
|
+
* workflowDefinitionName: "STRING_VALUE", // required
|
|
41
|
+
* workflowRunId: "STRING_VALUE", // required
|
|
42
|
+
* sessionId: "STRING_VALUE", // required
|
|
43
|
+
* task: "STRING_VALUE", // required
|
|
44
|
+
* toolSpecs: [ // ToolSpecs
|
|
45
|
+
* { // ToolSpec
|
|
46
|
+
* name: "STRING_VALUE", // required
|
|
47
|
+
* description: "STRING_VALUE", // required
|
|
48
|
+
* inputSchema: { // ToolInputSchema Union: only one key present
|
|
49
|
+
* json: "DOCUMENT_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* clientToken: "STRING_VALUE",
|
|
54
|
+
* };
|
|
55
|
+
* const command = new CreateActCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // CreateActResponse
|
|
58
|
+
* // actId: "STRING_VALUE", // required
|
|
59
|
+
* // status: "RUNNING" || "PENDING_CLIENT_ACTION" || "PENDING_HUMAN_ACTION" || "SUCCEEDED" || "FAILED" || "TIMED_OUT", // required
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param CreateActCommandInput - {@link CreateActCommandInput}
|
|
65
|
+
* @returns {@link CreateActCommandOutput}
|
|
66
|
+
* @see {@link CreateActCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link CreateActCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link NovaActClientResolvedConfig | config} for NovaActClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
71
|
+
* <p>You don't have sufficient permissions to perform this action.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ConflictException} (client fault)
|
|
74
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link InternalServerException} (server fault)
|
|
77
|
+
* <p>An internal server error occurred. Please try again later.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
80
|
+
* <p>The requested resource was not found.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
83
|
+
* <p>The request would exceed a service quota limit.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
86
|
+
* <p>The request was throttled due to too many requests. Please try again later.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>The input parameters for the request are invalid.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link NovaActServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from NovaAct service.</p>
|
|
93
|
+
*
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare class CreateActCommand extends CreateActCommand_base {
|
|
98
|
+
/** @internal type navigation helper, not in runtime. */
|
|
99
|
+
protected static __types: {
|
|
100
|
+
api: {
|
|
101
|
+
input: CreateActRequest;
|
|
102
|
+
output: CreateActResponse;
|
|
103
|
+
};
|
|
104
|
+
sdk: {
|
|
105
|
+
input: CreateActCommandInput;
|
|
106
|
+
output: CreateActCommandOutput;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateSessionRequest, CreateSessionResponse } from "../models/models_0";
|
|
4
|
+
import { NovaActClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NovaActClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateSessionCommandInput extends CreateSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateSessionCommandOutput extends CreateSessionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateSessionCommand_base: {
|
|
25
|
+
new (input: CreateSessionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSessionCommandInput, CreateSessionCommandOutput, NovaActClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateSessionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSessionCommandInput, CreateSessionCommandOutput, NovaActClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a new session context within a workflow run to manage conversation state and acts.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { NovaActClient, CreateSessionCommand } from "@aws-sdk/client-nova-act"; // ES Modules import
|
|
35
|
+
* // const { NovaActClient, CreateSessionCommand } = require("@aws-sdk/client-nova-act"); // CommonJS import
|
|
36
|
+
* // import type { NovaActClientConfig } from "@aws-sdk/client-nova-act";
|
|
37
|
+
* const config = {}; // type is NovaActClientConfig
|
|
38
|
+
* const client = new NovaActClient(config);
|
|
39
|
+
* const input = { // CreateSessionRequest
|
|
40
|
+
* workflowDefinitionName: "STRING_VALUE", // required
|
|
41
|
+
* workflowRunId: "STRING_VALUE", // required
|
|
42
|
+
* clientToken: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new CreateSessionCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // CreateSessionResponse
|
|
47
|
+
* // sessionId: "STRING_VALUE", // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param CreateSessionCommandInput - {@link CreateSessionCommandInput}
|
|
53
|
+
* @returns {@link CreateSessionCommandOutput}
|
|
54
|
+
* @see {@link CreateSessionCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link CreateSessionCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link NovaActClientResolvedConfig | config} for NovaActClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
59
|
+
* <p>You don't have sufficient permissions to perform this action.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ConflictException} (client fault)
|
|
62
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>An internal server error occurred. Please try again later.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The requested resource was not found.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
71
|
+
* <p>The request would exceed a service quota limit.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>The request was throttled due to too many requests. Please try again later.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>The input parameters for the request are invalid.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link NovaActServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from NovaAct service.</p>
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class CreateSessionCommand extends CreateSessionCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: CreateSessionRequest;
|
|
90
|
+
output: CreateSessionResponse;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: CreateSessionCommandInput;
|
|
94
|
+
output: CreateSessionCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|