@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,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
|
+
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const t = "required", u = "fn", v = "argv", w = "ref";
|
|
2
|
+
const a = true, b = false, c = "isSet", d = "booleanEquals", e = "error", f = "endpoint", g = "tree", h = "PartitionResult", i = { [t]: true, "default": false, "type": "boolean" }, j = { [t]: false, "type": "string" }, k = { [w]: "Endpoint" }, l = { [u]: d, [v]: [{ [w]: "UseFIPS" }, true] }, m = { [w]: "UseFIPS" }, n = { [u]: d, [v]: [{ [w]: "UseDualStack" }, true] }, o = { [w]: "UseDualStack" }, p = {}, q = { [u]: "getAttr", [v]: [{ [w]: h }, "supportsFIPS"] }, r = { [u]: d, [v]: [true, { [u]: "getAttr", [v]: [{ [w]: h }, "supportsDualStack"] }] }, s = [{ [w]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j }, rules: [{ conditions: [{ [u]: c, [v]: [k] }], rules: [{ conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: e }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: e }, { endpoint: { url: k, properties: p, headers: p }, type: f }], type: g }], type: g }, { rules: [{ conditions: [{ [u]: c, [v]: s }], rules: [{ conditions: [{ [u]: "aws.partition", [v]: s, assign: h }], rules: [{ conditions: [l, n], rules: [{ conditions: [{ [u]: d, [v]: [a, q] }, r], rules: [{ endpoint: { url: "https://nova-act-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: e }], type: g }, { conditions: [l, { [u]: d, [v]: [o, b] }], rules: [{ conditions: [{ [u]: d, [v]: [q, a] }], rules: [{ endpoint: { url: "https://nova-act-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }], type: g }, { conditions: [{ [u]: d, [v]: [m, b] }, n], rules: [{ conditions: [r], rules: [{ endpoint: { url: "https://nova-act.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "DualStack is enabled but this partition does not support DualStack", type: e }], type: g }, { endpoint: { url: "https://nova-act.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }], type: g }], type: g }, { error: "Invalid Configuration: Missing Region", type: e }], type: g }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./NovaActClient";
|
|
2
|
+
export * from "./NovaAct";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export { NovaActServiceException } from "./models/NovaActServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class NovaActServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, NovaActServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export const ActStatus = {
|
|
2
|
+
FAILED: "FAILED",
|
|
3
|
+
PENDING_CLIENT_ACTION: "PENDING_CLIENT_ACTION",
|
|
4
|
+
PENDING_HUMAN_ACTION: "PENDING_HUMAN_ACTION",
|
|
5
|
+
RUNNING: "RUNNING",
|
|
6
|
+
SUCCEEDED: "SUCCEEDED",
|
|
7
|
+
TIMED_OUT: "TIMED_OUT",
|
|
8
|
+
};
|
|
9
|
+
export const InternalServerExceptionReason = {
|
|
10
|
+
INVALID_MODEL_GENERATION: "InvalidModelGeneration",
|
|
11
|
+
TOKEN_LIMIT_EXCEEDED: "RequestTokenLimitExceeded",
|
|
12
|
+
};
|
|
13
|
+
export const ValidationExceptionReason = {
|
|
14
|
+
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
15
|
+
GUARDRAIL_INTERVENED: "GuardrailIntervened",
|
|
16
|
+
INVALID_STATUS: "InvalidStatus",
|
|
17
|
+
};
|
|
18
|
+
export const SortOrder = {
|
|
19
|
+
ASC: "Ascending",
|
|
20
|
+
DESC: "Descending",
|
|
21
|
+
};
|
|
22
|
+
export const TraceLocationType = {
|
|
23
|
+
S3: "S3",
|
|
24
|
+
};
|
|
25
|
+
export const ModelStatus = {
|
|
26
|
+
ACTIVE: "ACTIVE",
|
|
27
|
+
DEPRECATED: "DEPRECATED",
|
|
28
|
+
LEGACY: "LEGACY",
|
|
29
|
+
PREVIEW: "PREVIEW",
|
|
30
|
+
};
|
|
31
|
+
export const WorkflowDefinitionStatus = {
|
|
32
|
+
ACTIVE: "ACTIVE",
|
|
33
|
+
DELETING: "DELETING",
|
|
34
|
+
};
|
|
35
|
+
export const WorkflowRunStatus = {
|
|
36
|
+
DELETING: "DELETING",
|
|
37
|
+
FAILED: "FAILED",
|
|
38
|
+
RUNNING: "RUNNING",
|
|
39
|
+
SUCCEEDED: "SUCCEEDED",
|
|
40
|
+
TIMED_OUT: "TIMED_OUT",
|
|
41
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { NovaActServiceException as __BaseException } from "./NovaActServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
resourceId;
|
|
18
|
+
resourceType;
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ConflictException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
26
|
+
this.resourceId = opts.resourceId;
|
|
27
|
+
this.resourceType = opts.resourceType;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class InternalServerException extends __BaseException {
|
|
31
|
+
name = "InternalServerException";
|
|
32
|
+
$fault = "server";
|
|
33
|
+
$retryable = {};
|
|
34
|
+
retryAfterSeconds;
|
|
35
|
+
reason;
|
|
36
|
+
constructor(opts) {
|
|
37
|
+
super({
|
|
38
|
+
name: "InternalServerException",
|
|
39
|
+
$fault: "server",
|
|
40
|
+
...opts,
|
|
41
|
+
});
|
|
42
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
43
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
44
|
+
this.reason = opts.reason;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
48
|
+
name = "ResourceNotFoundException";
|
|
49
|
+
$fault = "client";
|
|
50
|
+
resourceId;
|
|
51
|
+
resourceType;
|
|
52
|
+
constructor(opts) {
|
|
53
|
+
super({
|
|
54
|
+
name: "ResourceNotFoundException",
|
|
55
|
+
$fault: "client",
|
|
56
|
+
...opts,
|
|
57
|
+
});
|
|
58
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
59
|
+
this.resourceId = opts.resourceId;
|
|
60
|
+
this.resourceType = opts.resourceType;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
64
|
+
name = "ServiceQuotaExceededException";
|
|
65
|
+
$fault = "client";
|
|
66
|
+
resourceId;
|
|
67
|
+
resourceType;
|
|
68
|
+
serviceCode;
|
|
69
|
+
quotaCode;
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: "ServiceQuotaExceededException",
|
|
73
|
+
$fault: "client",
|
|
74
|
+
...opts,
|
|
75
|
+
});
|
|
76
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
77
|
+
this.resourceId = opts.resourceId;
|
|
78
|
+
this.resourceType = opts.resourceType;
|
|
79
|
+
this.serviceCode = opts.serviceCode;
|
|
80
|
+
this.quotaCode = opts.quotaCode;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export class ThrottlingException extends __BaseException {
|
|
84
|
+
name = "ThrottlingException";
|
|
85
|
+
$fault = "client";
|
|
86
|
+
$retryable = {
|
|
87
|
+
throttling: true,
|
|
88
|
+
};
|
|
89
|
+
serviceCode;
|
|
90
|
+
quotaCode;
|
|
91
|
+
retryAfterSeconds;
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "ThrottlingException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
99
|
+
this.serviceCode = opts.serviceCode;
|
|
100
|
+
this.quotaCode = opts.quotaCode;
|
|
101
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export class ValidationException extends __BaseException {
|
|
105
|
+
name = "ValidationException";
|
|
106
|
+
$fault = "client";
|
|
107
|
+
reason;
|
|
108
|
+
fieldList;
|
|
109
|
+
constructor(opts) {
|
|
110
|
+
super({
|
|
111
|
+
name: "ValidationException",
|
|
112
|
+
$fault: "client",
|
|
113
|
+
...opts,
|
|
114
|
+
});
|
|
115
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
116
|
+
this.reason = opts.reason;
|
|
117
|
+
this.fieldList = opts.fieldList;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListActsCommand } from "../commands/ListActsCommand";
|
|
3
|
+
import { NovaActClient } from "../NovaActClient";
|
|
4
|
+
export const paginateListActs = createPaginator(NovaActClient, ListActsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListSessionsCommand, } from "../commands/ListSessionsCommand";
|
|
3
|
+
import { NovaActClient } from "../NovaActClient";
|
|
4
|
+
export const paginateListSessions = createPaginator(NovaActClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListWorkflowDefinitionsCommand, } from "../commands/ListWorkflowDefinitionsCommand";
|
|
3
|
+
import { NovaActClient } from "../NovaActClient";
|
|
4
|
+
export const paginateListWorkflowDefinitions = createPaginator(NovaActClient, ListWorkflowDefinitionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListWorkflowRunsCommand, } from "../commands/ListWorkflowRunsCommand";
|
|
3
|
+
import { NovaActClient } from "../NovaActClient";
|
|
4
|
+
export const paginateListWorkflowRuns = createPaginator(NovaActClient, ListWorkflowRunsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
const loaderConfig = {
|
|
23
|
+
profile: config?.profile,
|
|
24
|
+
logger: clientSharedValues.logger,
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
32
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
33
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
34
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
37
|
+
region: config?.region ??
|
|
38
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
loadNodeConfig({
|
|
42
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
44
|
+
}, config),
|
|
45
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
49
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
5
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
|
+
import { defaultNovaActHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
export const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2025-08-22",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultNovaActHttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
+
{
|
|
20
|
+
schemeId: "aws.auth#sigv4",
|
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.novaact" }),
|
|
27
|
+
serviceId: config?.serviceId ?? "Nova Act",
|
|
28
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
29
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
30
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|